forge-openclaw-plugin 0.2.26 → 0.2.28
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 +60 -3
- package/dist/assets/{board-ta0rUHOf.js → board-DPFvZf-D.js} +2 -2
- package/dist/assets/{board-ta0rUHOf.js.map → board-DPFvZf-D.js.map} +1 -1
- package/dist/assets/index-Auw3JrdE.css +1 -0
- package/dist/assets/index-D1H7myQH.js +85 -0
- package/dist/assets/index-D1H7myQH.js.map +1 -0
- package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js +2 -0
- package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js.map +1 -0
- package/dist/assets/{motion-fBKPB6yw.js → motion-Bvwc85ch.js} +2 -2
- package/dist/assets/{motion-fBKPB6yw.js.map → motion-Bvwc85ch.js.map} +1 -1
- package/dist/assets/{table-C-IGTQni.js → table-FJQTJvUR.js} +2 -2
- package/dist/assets/{table-C-IGTQni.js.map → table-FJQTJvUR.js.map} +1 -1
- package/dist/assets/{ui-DInOpaYF.js → ui-GXFcgvSw.js} +2 -2
- package/dist/assets/{ui-DInOpaYF.js.map → ui-GXFcgvSw.js.map} +1 -1
- package/dist/assets/vendor-Cwf49UMz.js +1247 -0
- package/dist/assets/vendor-Cwf49UMz.js.map +1 -0
- package/dist/index.html +7 -7
- package/dist/openclaw/local-runtime.js +16 -0
- package/dist/openclaw/routes.d.ts +27 -0
- package/dist/openclaw/routes.js +16 -12
- package/dist/server/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
- package/dist/server/server/migrations/038_data_management_settings.sql +11 -0
- package/dist/server/server/migrations/039_life_force_and_action_points.sql +114 -0
- package/dist/server/server/migrations/040_screen_time_domain.sql +89 -0
- package/dist/server/server/migrations/041_companion_source_states.sql +21 -0
- package/dist/server/server/migrations/042_movement_boxes.sql +47 -0
- package/dist/server/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
- package/dist/server/server/src/app.js +1900 -91
- package/dist/server/server/src/connectors/box-registry.js +44 -9
- package/dist/server/server/src/data-management-types.js +107 -0
- package/dist/server/server/src/db.js +68 -4
- package/dist/server/server/src/demo-data.js +2 -2
- package/dist/server/server/src/health.js +702 -18
- package/dist/server/server/src/managers/platform/llm-manager.js +7 -4
- package/dist/server/server/src/managers/platform/mock-workbench-provider.js +149 -0
- package/dist/server/server/src/managers/platform/secrets-manager.js +18 -1
- package/dist/server/server/src/managers/runtime.js +9 -0
- package/dist/server/server/src/movement.js +1971 -112
- package/dist/server/server/src/openapi.js +1390 -105
- package/dist/server/server/src/psyche-types.js +9 -1
- package/dist/server/server/src/repositories/activity-events.js +8 -0
- package/dist/server/server/src/repositories/ai-connectors.js +522 -74
- package/dist/server/server/src/repositories/calendar.js +151 -0
- package/dist/server/server/src/repositories/habits.js +37 -1
- package/dist/server/server/src/repositories/model-settings.js +13 -3
- package/dist/server/server/src/repositories/notes.js +3 -0
- package/dist/server/server/src/repositories/settings.js +380 -18
- package/dist/server/server/src/repositories/tasks.js +170 -10
- package/dist/server/server/src/runtime-data-root.js +82 -0
- package/dist/server/server/src/screen-time.js +802 -0
- package/dist/server/server/src/services/data-management.js +788 -0
- package/dist/server/server/src/services/entity-crud.js +205 -2
- package/dist/server/server/src/services/knowledge-graph.js +1455 -0
- package/dist/server/server/src/services/life-force-model.js +217 -0
- package/dist/server/server/src/services/life-force.js +2506 -0
- package/dist/server/server/src/services/psyche-observation-calendar.js +383 -16
- package/dist/server/server/src/types.js +307 -14
- package/dist/server/server/src/web.js +228 -13
- package/dist/server/src/components/customization/utility-widgets.js +136 -27
- package/dist/server/src/components/ui/info-tooltip.js +25 -0
- package/dist/server/src/components/workbench-boxes/calendar/calendar-boxes.js +78 -0
- package/dist/server/src/components/workbench-boxes/goals/goals-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/habits/habits-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/health/health-boxes.js +63 -8
- package/dist/server/src/components/workbench-boxes/insights/insights-boxes.js +50 -0
- package/dist/server/src/components/workbench-boxes/kanban/kanban-boxes.js +62 -54
- package/dist/server/src/components/workbench-boxes/movement/movement-boxes.js +18 -8
- package/dist/server/src/components/workbench-boxes/notes/notes-boxes.js +56 -38
- package/dist/server/src/components/workbench-boxes/overview/overview-boxes.js +65 -0
- package/dist/server/src/components/workbench-boxes/preferences/preferences-boxes.js +78 -0
- package/dist/server/src/components/workbench-boxes/projects/projects-boxes.js +35 -30
- package/dist/server/src/components/workbench-boxes/psyche/psyche-boxes.js +88 -0
- package/dist/server/src/components/workbench-boxes/questionnaires/questionnaires-boxes.js +61 -0
- package/dist/server/src/components/workbench-boxes/review/review-boxes.js +53 -0
- package/dist/server/src/components/workbench-boxes/shared/define-workbench-box.js +3 -1
- package/dist/server/src/components/workbench-boxes/shared/generic-node-view.js +39 -3
- package/dist/server/src/components/workbench-boxes/strategies/strategies-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/tasks/tasks-boxes.js +76 -0
- package/dist/server/src/components/workbench-boxes/today/today-boxes.js +47 -32
- package/dist/server/src/components/workbench-boxes/wiki/wiki-boxes.js +60 -0
- package/dist/server/src/lib/api.js +280 -21
- package/dist/server/src/lib/data-management-types.js +1 -0
- package/dist/server/src/lib/entity-visuals.js +279 -0
- package/dist/server/src/lib/knowledge-graph-types.js +276 -0
- package/dist/server/src/lib/knowledge-graph.js +470 -0
- package/dist/server/src/lib/schemas.js +4 -0
- package/dist/server/src/lib/snapshot-normalizer.js +45 -1
- package/dist/server/src/lib/workbench/contracts.js +229 -0
- package/dist/server/src/lib/workbench/nodes.js +200 -0
- package/dist/server/src/lib/workbench/registry.js +52 -5
- package/dist/server/src/lib/workbench/runtime.js +254 -38
- package/dist/server/src/lib/workbench/tool-catalog.js +68 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
- package/server/migrations/038_data_management_settings.sql +11 -0
- package/server/migrations/039_life_force_and_action_points.sql +114 -0
- package/server/migrations/040_screen_time_domain.sql +89 -0
- package/server/migrations/041_companion_source_states.sql +21 -0
- package/server/migrations/042_movement_boxes.sql +47 -0
- package/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
- package/skills/forge-openclaw/SKILL.md +41 -11
- package/skills/forge-openclaw/entity_conversation_playbooks.md +448 -34
- package/skills/forge-openclaw/psyche_entity_playbooks.md +170 -17
- package/dist/assets/index-Ro0ZF_az.css +0 -1
- package/dist/assets/index-ytlpSj23.js +0 -79
- package/dist/assets/index-ytlpSj23.js.map +0 -1
- package/dist/assets/vendor-lE3tZJcC.js +0 -876
- package/dist/assets/vendor-lE3tZJcC.js.map +0 -1
|
@@ -0,0 +1,1247 @@
|
|
|
1
|
+
var ZF=Object.defineProperty;var oM=e=>{throw TypeError(e)};var XF=(e,t,n)=>t in e?ZF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ic=(e,t,n)=>XF(e,typeof t!="symbol"?t+"":t,n),iw=(e,t,n)=>t.has(e)||oM("Cannot "+n);var Q=(e,t,n)=>(iw(e,t,"read from private field"),n?n.call(e):t.get(e)),qe=(e,t,n)=>t.has(e)?oM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Te=(e,t,n,r)=>(iw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),it=(e,t,n)=>(iw(e,t,"access private method"),n);var dg=(e,t,n,r)=>({set _(i){Te(e,t,i,n)},get _(){return Q(e,t,r)}});function JF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aw={exports:{}},Md={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var sM;function eH(){if(sM)return Md;sM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Md.Fragment=t,Md.jsx=n,Md.jsxs=n,Md}var lM;function tH(){return lM||(lM=1,aw.exports=eH()),aw.exports}var ge=tH(),ow={exports:{}},Je={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var uM;function nH(){if(uM)return Je;uM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(B){return B===null||typeof B!="object"?null:(B=g&&B[g]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function _(B,K,X){this.props=B,this.context=K,this.refs=w,this.updater=X||y}_.prototype.isReactComponent={},_.prototype.setState=function(B,K){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,K,"setState")},_.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function C(){}C.prototype=_.prototype;function E(B,K,X){this.props=B,this.context=K,this.refs=w,this.updater=X||y}var S=E.prototype=new C;S.constructor=E,b(S,_.prototype),S.isPureReactComponent=!0;var T=Array.isArray;function O(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function R(B,K,X){var ee=X.ref;return{$$typeof:e,type:B,key:K,ref:ee!==void 0?ee:null,props:X}}function z(B,K){return R(B.type,K,B.props)}function D(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function N(B){var K={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(X){return K[X]})}var $=/\/+/g;function I(B,K){return typeof B=="object"&&B!==null&&B.key!=null?N(""+B.key):K.toString(36)}function U(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(O,O):(B.status="pending",B.then(function(K){B.status==="pending"&&(B.status="fulfilled",B.value=K)},function(K){B.status==="pending"&&(B.status="rejected",B.reason=K)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function j(B,K,X,ee,ce){var he=typeof B;(he==="undefined"||he==="boolean")&&(B=null);var de=!1;if(B===null)de=!0;else switch(he){case"bigint":case"string":case"number":de=!0;break;case"object":switch(B.$$typeof){case e:case t:de=!0;break;case h:return de=B._init,j(de(B._payload),K,X,ee,ce)}}if(de)return ce=ce(B),de=ee===""?"."+I(B,0):ee,T(ce)?(X="",de!=null&&(X=de.replace($,"$&/")+"/"),j(ce,K,X,"",function(pe){return pe})):ce!=null&&(D(ce)&&(ce=z(ce,X+(ce.key==null||B&&B.key===ce.key?"":(""+ce.key).replace($,"$&/")+"/")+de)),K.push(ce)),1;de=0;var ie=ee===""?".":ee+":";if(T(B))for(var J=0;J<B.length;J++)ee=B[J],he=ie+I(ee,J),de+=j(ee,K,X,he,ce);else if(J=v(B),typeof J=="function")for(B=J.call(B),J=0;!(ee=B.next()).done;)ee=ee.value,he=ie+I(ee,J++),de+=j(ee,K,X,he,ce);else if(he==="object"){if(typeof B.then=="function")return j(U(B),K,X,ee,ce);throw K=String(B),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return de}function G(B,K,X){if(B==null)return B;var ee=[],ce=0;return j(B,ee,"","",function(he){return K.call(X,he,ce++)}),ee}function q(B){if(B._status===-1){var K=B._result;K=K(),K.then(function(X){(B._status===0||B._status===-1)&&(B._status=1,B._result=X)},function(X){(B._status===0||B._status===-1)&&(B._status=2,B._result=X)}),B._status===-1&&(B._status=0,B._result=K)}if(B._status===1)return B._result.default;throw B._result}var H=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},V={map:G,forEach:function(B,K,X){G(B,function(){K.apply(this,arguments)},X)},count:function(B){var K=0;return G(B,function(){K++}),K},toArray:function(B){return G(B,function(K){return K})||[]},only:function(B){if(!D(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return Je.Activity=p,Je.Children=V,Je.Component=_,Je.Fragment=n,Je.Profiler=i,Je.PureComponent=E,Je.StrictMode=r,Je.Suspense=c,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Je.__COMPILER_RUNTIME={__proto__:null,c:function(B){return M.H.useMemoCache(B)}},Je.cache=function(B){return function(){return B.apply(null,arguments)}},Je.cacheSignal=function(){return null},Je.cloneElement=function(B,K,X){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var ee=b({},B.props),ce=B.key;if(K!=null)for(he in K.key!==void 0&&(ce=""+K.key),K)!P.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(ee[he]=K[he]);var he=arguments.length-2;if(he===1)ee.children=X;else if(1<he){for(var de=Array(he),ie=0;ie<he;ie++)de[ie]=arguments[ie+2];ee.children=de}return R(B.type,ce,ee)},Je.createContext=function(B){return B={$$typeof:s,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:a,_context:B},B},Je.createElement=function(B,K,X){var ee,ce={},he=null;if(K!=null)for(ee in K.key!==void 0&&(he=""+K.key),K)P.call(K,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ce[ee]=K[ee]);var de=arguments.length-2;if(de===1)ce.children=X;else if(1<de){for(var ie=Array(de),J=0;J<de;J++)ie[J]=arguments[J+2];ce.children=ie}if(B&&B.defaultProps)for(ee in de=B.defaultProps,de)ce[ee]===void 0&&(ce[ee]=de[ee]);return R(B,he,ce)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(B){return{$$typeof:u,render:B}},Je.isValidElement=D,Je.lazy=function(B){return{$$typeof:h,_payload:{_status:-1,_result:B},_init:q}},Je.memo=function(B,K){return{$$typeof:f,type:B,compare:K===void 0?null:K}},Je.startTransition=function(B){var K=M.T,X={};M.T=X;try{var ee=B(),ce=M.S;ce!==null&&ce(X,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(O,H)}catch(he){H(he)}finally{K!==null&&X.types!==null&&(K.types=X.types),M.T=K}},Je.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Je.use=function(B){return M.H.use(B)},Je.useActionState=function(B,K,X){return M.H.useActionState(B,K,X)},Je.useCallback=function(B,K){return M.H.useCallback(B,K)},Je.useContext=function(B){return M.H.useContext(B)},Je.useDebugValue=function(){},Je.useDeferredValue=function(B,K){return M.H.useDeferredValue(B,K)},Je.useEffect=function(B,K){return M.H.useEffect(B,K)},Je.useEffectEvent=function(B){return M.H.useEffectEvent(B)},Je.useId=function(){return M.H.useId()},Je.useImperativeHandle=function(B,K,X){return M.H.useImperativeHandle(B,K,X)},Je.useInsertionEffect=function(B,K){return M.H.useInsertionEffect(B,K)},Je.useLayoutEffect=function(B,K){return M.H.useLayoutEffect(B,K)},Je.useMemo=function(B,K){return M.H.useMemo(B,K)},Je.useOptimistic=function(B,K){return M.H.useOptimistic(B,K)},Je.useReducer=function(B,K,X){return M.H.useReducer(B,K,X)},Je.useRef=function(B){return M.H.useRef(B)},Je.useState=function(B){return M.H.useState(B)},Je.useSyncExternalStore=function(B,K,X){return M.H.useSyncExternalStore(B,K,X)},Je.useTransition=function(){return M.H.useTransition()},Je.version="19.2.4",Je}var cM;function vf(){return cM||(cM=1,ow.exports=nH()),ow.exports}var k=vf();const cn=ni(k),rH=JF({__proto__:null,default:cn},[k]);var sw={exports:{}},Pd={},lw={exports:{}},uw={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var fM;function iH(){return fM||(fM=1,(function(e){function t(j,G){var q=j.length;j.push(G);e:for(;0<q;){var H=q-1>>>1,V=j[H];if(0<i(V,G))j[H]=G,j[q]=V,q=H;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var G=j[0],q=j.pop();if(q!==G){j[0]=q;e:for(var H=0,V=j.length,B=V>>>1;H<B;){var K=2*(H+1)-1,X=j[K],ee=K+1,ce=j[ee];if(0>i(X,q))ee<V&&0>i(ce,X)?(j[H]=ce,j[ee]=q,H=ee):(j[H]=X,j[K]=q,H=K);else if(ee<V&&0>i(ce,q))j[H]=ce,j[ee]=q,H=ee;else break e}}return G}function i(j,G){var q=j.sortIndex-G.sortIndex;return q!==0?q:j.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],h=1,p=null,g=3,v=!1,y=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function S(j){for(var G=n(f);G!==null;){if(G.callback===null)r(f);else if(G.startTime<=j)r(f),G.sortIndex=G.expirationTime,t(c,G);else break;G=n(f)}}function T(j){if(b=!1,S(j),!y)if(n(c)!==null)y=!0,O||(O=!0,N());else{var G=n(f);G!==null&&U(T,G.startTime-j)}}var O=!1,M=-1,P=5,R=-1;function z(){return w?!0:!(e.unstable_now()-R<P)}function D(){if(w=!1,O){var j=e.unstable_now();R=j;var G=!0;try{e:{y=!1,b&&(b=!1,C(M),M=-1),v=!0;var q=g;try{t:{for(S(j),p=n(c);p!==null&&!(p.expirationTime>j&&z());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var V=H(p.expirationTime<=j);if(j=e.unstable_now(),typeof V=="function"){p.callback=V,S(j),G=!0;break t}p===n(c)&&r(c),S(j)}else r(c);p=n(c)}if(p!==null)G=!0;else{var B=n(f);B!==null&&U(T,B.startTime-j),G=!1}}break e}finally{p=null,g=q,v=!1}G=void 0}}finally{G?N():O=!1}}}var N;if(typeof E=="function")N=function(){E(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,I=$.port2;$.port1.onmessage=D,N=function(){I.postMessage(null)}}else N=function(){_(D,0)};function U(j,G){M=_(function(){j(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(j){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g}var q=g;g=G;try{return j()}finally{g=q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var q=g;g=j;try{return G()}finally{g=q}},e.unstable_scheduleCallback=function(j,G,q){var H=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?H+q:H):q=H,j){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=q+V,j={id:h++,callback:G,priorityLevel:j,startTime:q,expirationTime:V,sortIndex:-1},q>H?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(b?(C(M),M=-1):b=!0,U(T,q-H))):(j.sortIndex=V,t(c,j),y||v||(y=!0,O||(O=!0,N()))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var G=g;return function(){var q=g;g=G;try{return j.apply(this,arguments)}finally{g=q}}}})(uw)),uw}var dM;function aH(){return dM||(dM=1,lw.exports=iH()),lw.exports}var cw={exports:{}},sr={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var hM;function oH(){if(hM)return sr;hM=1;var e=vf();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,f,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:c,containerInfo:f,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,sr.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(c,f,null,h)},sr.flushSync=function(c){var f=s.T,h=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=f,r.p=h,r.d.f()}},sr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},sr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},sr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,p=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):h==="script"&&r.d.X(c,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},sr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},sr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,p=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},sr.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},sr.requestFormReset=function(c){r.d.r(c)},sr.unstable_batchedUpdates=function(c,f){return c(f)},sr.useFormState=function(c,f,h){return s.H.useFormState(c,f,h)},sr.useFormStatus=function(){return s.H.useHostTransitionStatus()},sr.version="19.2.4",sr}var pM;function z4(){if(pM)return cw.exports;pM=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(),cw.exports=oH(),cw.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var mM;function sH(){if(mM)return Pd;mM=1;var e=aH(),t=vf(),n=z4();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(a(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,m=l;;){var x=d.return;if(x===null)break;var A=x.alternate;if(A===null){if(m=x.return,m!==null){d=m;continue}break}if(x.child===A.child){for(A=x.child;A;){if(A===d)return c(x),o;if(A===m)return c(x),l;A=A.sibling}throw Error(r(188))}if(d.return!==m.return)d=x,m=A;else{for(var L=!1,F=x.child;F;){if(F===d){L=!0,d=x,m=A;break}if(F===m){L=!0,m=x,d=A;break}F=F.sibling}if(!L){for(F=A.child;F;){if(F===d){L=!0,d=A,m=x;break}if(F===m){L=!0,m=A,d=x;break}F=F.sibling}if(!L)throw Error(r(189))}}if(d.alternate!==m)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function h(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=h(o),l!==null)return l;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),D=Symbol.iterator;function N(o){return o===null||typeof o!="object"?null:(o=D&&o[D]||o["@@iterator"],typeof o=="function"?o:null)}var $=Symbol.for("react.client.reference");function I(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList";case R:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case E:return o.displayName||"Context";case C:return(o._context.displayName||"Context")+".Consumer";case S:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return l=o.displayName||null,l!==null?l:I(o.type)||"Memo";case P:l=o._payload,o=o._init;try{return I(o(l))}catch{}}return null}var U=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},H=[],V=-1;function B(o){return{current:o}}function K(o){0>V||(o.current=H[V],H[V]=null,V--)}function X(o,l){V++,H[V]=o.current,o.current=l}var ee=B(null),ce=B(null),he=B(null),de=B(null);function ie(o,l){switch(X(he,l),X(ce,o),X(ee,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?TT(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=TT(l),o=MT(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(ee),X(ee,o)}function J(){K(ee),K(ce),K(he)}function pe(o){o.memoizedState!==null&&X(de,o);var l=ee.current,d=MT(l,o.type);l!==d&&(X(ce,o),X(ee,d))}function ye(o){ce.current===o&&(K(ee),K(ce)),de.current===o&&(K(de),kd._currentValue=q)}var te,Ce;function Se(o){if(te===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);te=l&&l[1]||"",Ce=-1<d.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+te+o+Ce}var Ye=!1;function Ie(o,l){if(!o||Ye)return"";Ye=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(me){var fe=me}Reflect.construct(o,[],we)}else{try{we.call()}catch(me){fe=me}o.call(we.prototype)}}else{try{throw Error()}catch(me){fe=me}(we=o())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(me){if(me&&fe&&typeof me.stack=="string")return[me.stack,fe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=m.DetermineComponentFrameRoot(),L=A[0],F=A[1];if(L&&F){var Y=L.split(`
|
|
44
|
+
`),se=F.split(`
|
|
45
|
+
`);for(x=m=0;m<Y.length&&!Y[m].includes("DetermineComponentFrameRoot");)m++;for(;x<se.length&&!se[x].includes("DetermineComponentFrameRoot");)x++;if(m===Y.length||x===se.length)for(m=Y.length-1,x=se.length-1;1<=m&&0<=x&&Y[m]!==se[x];)x--;for(;1<=m&&0<=x;m--,x--)if(Y[m]!==se[x]){if(m!==1||x!==1)do if(m--,x--,0>x||Y[m]!==se[x]){var ve=`
|
|
46
|
+
`+Y[m].replace(" at new "," at ");return o.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",o.displayName)),ve}while(1<=m&&0<=x);break}}}finally{Ye=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?Se(d):""}function ut(o,l){switch(o.tag){case 26:case 27:case 5:return Se(o.type);case 16:return Se("Lazy");case 13:return o.child!==l&&l!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Ie(o.type,!1);case 11:return Ie(o.type.render,!1);case 1:return Ie(o.type,!0);case 31:return Se("Activity");default:return""}}function jt(o){try{var l="",d=null;do l+=ut(o,d),d=o,o=o.return;while(o);return l}catch(m){return`
|
|
47
|
+
Error generating stack: `+m.message+`
|
|
48
|
+
`+m.stack}}var Zt=Object.prototype.hasOwnProperty,ir=e.unstable_scheduleCallback,ar=e.unstable_cancelCallback,W=e.unstable_shouldYield,re=e.unstable_requestPaint,ae=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,ct=e.unstable_IdlePriority,Gn=e.log,xr=e.unstable_setDisableYieldValue,Xt=null,qn=null;function _r(o){if(typeof Gn=="function"&&xr(o),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(Xt,o)}catch{}}var Sn=Math.clz32?Math.clz32:Lf,If=Math.log,bu=Math.LN2;function Lf(o){return o>>>=0,o===0?32:31-(If(o)/bu|0)|0}var Oa=256,wu=262144,xu=4194304;function Ta(o){var l=o&42;if(l!==0)return l;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function _u(o,l,d){var m=o.pendingLanes;if(m===0)return 0;var x=0,A=o.suspendedLanes,L=o.pingedLanes;o=o.warmLanes;var F=m&134217727;return F!==0?(m=F&~A,m!==0?x=Ta(m):(L&=F,L!==0?x=Ta(L):d||(d=F&~o,d!==0&&(x=Ta(d))))):(F=m&~A,F!==0?x=Ta(F):L!==0?x=Ta(L):d||(d=m&~o,d!==0&&(x=Ta(d)))),x===0?0:l!==0&&l!==x&&(l&A)===0&&(A=x&-x,d=l&-l,A>=d||A===32&&(d&4194048)!==0)?l:x}function Qs(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function K0(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hp(){var o=xu;return xu<<=1,(xu&62914560)===0&&(xu=4194304),o}function zf(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function Zs(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Y0(o,l,d,m,x,A){var L=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var F=o.entanglements,Y=o.expirationTimes,se=o.hiddenUpdates;for(d=L&~d;0<d;){var ve=31-Sn(d),we=1<<ve;F[ve]=0,Y[ve]=-1;var fe=se[ve];if(fe!==null)for(se[ve]=null,ve=0;ve<fe.length;ve++){var me=fe[ve];me!==null&&(me.lane&=-536870913)}d&=~we}m!==0&&Gp(o,m,0),A!==0&&x===0&&o.tag!==0&&(o.suspendedLanes|=A&~(L&~l))}function Gp(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var m=31-Sn(l);o.entangledLanes|=l,o.entanglements[m]=o.entanglements[m]|1073741824|d&261930}function qp(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var m=31-Sn(d),x=1<<m;x&l|o[m]&l&&(o[m]|=l),d&=~x}}function Vp(o,l){var d=l&-l;return d=(d&42)!==0?1:jf(d),(d&(o.suspendedLanes|l))!==0?0:d}function jf(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function $f(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Kp(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:JT(o.type))}function Yp(o,l){var d=G.p;try{return G.p=o,l()}finally{G.p=d}}var Zi=Math.random().toString(36).slice(2),En="__reactFiber$"+Zi,or="__reactProps$"+Zi,Ma="__reactContainer$"+Zi,Su="__reactEvents$"+Zi,Wp="__reactListeners$"+Zi,W0="__reactHandles$"+Zi,Qp="__reactResources$"+Zi,Xs="__reactMarker$"+Zi;function Bf(o){delete o[En],delete o[or],delete o[Su],delete o[Wp],delete o[W0]}function Lo(o){var l=o[En];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Ma]||d[En]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=zT(o);o!==null;){if(d=o[En])return d;o=zT(o)}return l}o=d,d=o.parentNode}return null}function zo(o){if(o=o[En]||o[Ma]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function jo(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function $o(o){var l=o[Qp];return l||(l=o[Qp]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function hn(o){o[Xs]=!0}var Zp=new Set,Xp={};function Pa(o,l){Bo(o,l),Bo(o+"Capture",l)}function Bo(o,l){for(Xp[o]=l,o=0;o<l.length;o++)Zp.add(l[o])}var Q0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uf={},Jp={};function Z0(o){return Zt.call(Jp,o)?!0:Zt.call(Uf,o)?!1:Q0.test(o)?Jp[o]=!0:(Uf[o]=!0,!1)}function Eu(o,l,d){if(Z0(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function Au(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function Oi(o,l,d,m){if(m===null)o.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+m)}}function Sr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function em(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function X0(o,l,d){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var x=m.get,A=m.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return x.call(this)},set:function(L){d=""+L,A.call(this,L)}}),Object.defineProperty(o,l,{enumerable:m.enumerable}),{getValue:function(){return d},setValue:function(L){d=""+L},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Uo(o){if(!o._valueTracker){var l=em(o)?"checked":"value";o._valueTracker=X0(o,l,""+o[l])}}function tm(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),m="";return o&&(m=em(o)?o.checked?"true":"false":o.value),o=m,o!==d?(l.setValue(o),!0):!1}function Js(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}}var J0=/[\n"\\]/g;function Er(o){return o.replace(J0,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function el(o,l,d,m,x,A,L,F){o.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?o.type=L:o.removeAttribute("type"),l!=null?L==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Sr(l)):o.value!==""+Sr(l)&&(o.value=""+Sr(l)):L!=="submit"&&L!=="reset"||o.removeAttribute("value"),l!=null?Ff(o,L,Sr(l)):d!=null?Ff(o,L,Sr(d)):m!=null&&o.removeAttribute("value"),x==null&&A!=null&&(o.defaultChecked=!!A),x!=null&&(o.checked=x&&typeof x!="function"&&typeof x!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?o.name=""+Sr(F):o.removeAttribute("name")}function nm(o,l,d,m,x,A,L,F){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(o.type=A),l!=null||d!=null){if(!(A!=="submit"&&A!=="reset"||l!=null)){Uo(o);return}d=d!=null?""+Sr(d):"",l=l!=null?""+Sr(l):d,F||l===o.value||(o.value=l),o.defaultValue=l}m=m??x,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=F?o.checked:!!m,o.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(o.name=L),Uo(o)}function Ff(o,l,d){l==="number"&&Js(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Na(o,l,d,m){if(o=o.options,l){l={};for(var x=0;x<d.length;x++)l["$"+d[x]]=!0;for(d=0;d<o.length;d++)x=l.hasOwnProperty("$"+o[d].value),o[d].selected!==x&&(o[d].selected=x),x&&m&&(o[d].defaultSelected=!0)}else{for(d=""+Sr(d),l=null,x=0;x<o.length;x++){if(o[x].value===d){o[x].selected=!0,m&&(o[x].defaultSelected=!0);return}l!==null||o[x].disabled||(l=o[x])}l!==null&&(l.selected=!0)}}function Ek(o,l,d){if(l!=null&&(l=""+Sr(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Sr(d):""}function Ak(o,l,d,m){if(l==null){if(m!=null){if(d!=null)throw Error(r(92));if(U(m)){if(1<m.length)throw Error(r(93));m=m[0]}d=m}d==null&&(d=""),l=d}d=Sr(l),o.defaultValue=d,m=o.textContent,m===d&&m!==""&&m!==null&&(o.value=m),Uo(o)}function ku(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var VU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kk(o,l,d){var m=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?m?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":m?o.setProperty(l,d):typeof d!="number"||d===0||VU.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function Ck(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var m in d)!d.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var x in l)m=l[x],l.hasOwnProperty(x)&&d[x]!==m&&kk(o,x,m)}else for(var A in l)l.hasOwnProperty(A)&&kk(o,A,l[A])}function eb(o){if(o.indexOf("-")===-1)return!1;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 KU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),YU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rm(o){return YU.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Ra(){}var tb=null;function nb(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Cu=null,Ou=null;function Ok(o){var l=zo(o);if(l&&(o=l.stateNode)){var d=o[or]||null;e:switch(o=l.stateNode,l.type){case"input":if(el(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Er(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var m=d[l];if(m!==o&&m.form===o.form){var x=m[or]||null;if(!x)throw Error(r(90));el(m,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(l=0;l<d.length;l++)m=d[l],m.form===o.form&&tm(m)}break e;case"textarea":Ek(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&Na(o,!!d.multiple,l,!1)}}}var rb=!1;function Tk(o,l,d){if(rb)return o(l,d);rb=!0;try{var m=o(l);return m}finally{if(rb=!1,(Cu!==null||Ou!==null)&&(Gm(),Cu&&(l=Cu,o=Ou,Ou=Cu=null,Ok(l),o)))for(l=0;l<o.length;l++)Ok(o[l])}}function Hf(o,l){var d=o.stateNode;if(d===null)return null;var m=d[or]||null;if(m===null)return null;d=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ib=!1;if(Da)try{var Gf={};Object.defineProperty(Gf,"passive",{get:function(){ib=!0}}),window.addEventListener("test",Gf,Gf),window.removeEventListener("test",Gf,Gf)}catch{ib=!1}var Fo=null,ab=null,im=null;function Mk(){if(im)return im;var o,l=ab,d=l.length,m,x="value"in Fo?Fo.value:Fo.textContent,A=x.length;for(o=0;o<d&&l[o]===x[o];o++);var L=d-o;for(m=1;m<=L&&l[d-m]===x[A-m];m++);return im=x.slice(o,1<m?1-m:void 0)}function am(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function om(){return!0}function Pk(){return!1}function Ar(o){function l(d,m,x,A,L){this._reactName=d,this._targetInst=x,this.type=m,this.nativeEvent=A,this.target=L,this.currentTarget=null;for(var F in o)o.hasOwnProperty(F)&&(d=o[F],this[F]=d?d(A):A[F]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?om:Pk,this.isPropagationStopped=Pk,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=om)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=om)},persist:function(){},isPersistent:om}),l}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sm=Ar(tl),qf=p({},tl,{view:0,detail:0}),WU=Ar(qf),ob,sb,Vf,lm=p({},qf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ub,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!==Vf&&(Vf&&o.type==="mousemove"?(ob=o.screenX-Vf.screenX,sb=o.screenY-Vf.screenY):sb=ob=0,Vf=o),ob)},movementY:function(o){return"movementY"in o?o.movementY:sb}}),Nk=Ar(lm),QU=p({},lm,{dataTransfer:0}),ZU=Ar(QU),XU=p({},qf,{relatedTarget:0}),lb=Ar(XU),JU=p({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),e7=Ar(JU),t7=p({},tl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),n7=Ar(t7),r7=p({},tl,{data:0}),Rk=Ar(r7),i7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a7={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"},o7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s7(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=o7[o])?!!l[o]:!1}function ub(){return s7}var l7=p({},qf,{key:function(o){if(o.key){var l=i7[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=am(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?a7[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ub,charCode:function(o){return o.type==="keypress"?am(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?am(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),u7=Ar(l7),c7=p({},lm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dk=Ar(c7),f7=p({},qf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ub}),d7=Ar(f7),h7=p({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),p7=Ar(h7),m7=p({},lm,{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}),g7=Ar(m7),v7=p({},tl,{newState:0,oldState:0}),y7=Ar(v7),b7=[9,13,27,32],cb=Da&&"CompositionEvent"in window,Kf=null;Da&&"documentMode"in document&&(Kf=document.documentMode);var w7=Da&&"TextEvent"in window&&!Kf,Ik=Da&&(!cb||Kf&&8<Kf&&11>=Kf),Lk=" ",zk=!1;function jk(o,l){switch(o){case"keyup":return b7.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $k(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Tu=!1;function x7(o,l){switch(o){case"compositionend":return $k(l);case"keypress":return l.which!==32?null:(zk=!0,Lk);case"textInput":return o=l.data,o===Lk&&zk?null:o;default:return null}}function _7(o,l){if(Tu)return o==="compositionend"||!cb&&jk(o,l)?(o=Mk(),im=ab=Fo=null,Tu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ik&&l.locale!=="ko"?null:l.data;default:return null}}var S7={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 Bk(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!S7[o.type]:l==="textarea"}function Uk(o,l,d,m){Cu?Ou?Ou.push(m):Ou=[m]:Cu=m,l=Zm(l,"onChange"),0<l.length&&(d=new sm("onChange","change",null,d,m),o.push({event:d,listeners:l}))}var Yf=null,Wf=null;function E7(o){ST(o,0)}function um(o){var l=jo(o);if(tm(l))return o}function Fk(o,l){if(o==="change")return l}var Hk=!1;if(Da){var fb;if(Da){var db="oninput"in document;if(!db){var Gk=document.createElement("div");Gk.setAttribute("oninput","return;"),db=typeof Gk.oninput=="function"}fb=db}else fb=!1;Hk=fb&&(!document.documentMode||9<document.documentMode)}function qk(){Yf&&(Yf.detachEvent("onpropertychange",Vk),Wf=Yf=null)}function Vk(o){if(o.propertyName==="value"&&um(Wf)){var l=[];Uk(l,Wf,o,nb(o)),Tk(E7,l)}}function A7(o,l,d){o==="focusin"?(qk(),Yf=l,Wf=d,Yf.attachEvent("onpropertychange",Vk)):o==="focusout"&&qk()}function k7(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return um(Wf)}function C7(o,l){if(o==="click")return um(l)}function O7(o,l){if(o==="input"||o==="change")return um(l)}function T7(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var jr=typeof Object.is=="function"?Object.is:T7;function Qf(o,l){if(jr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),m=Object.keys(l);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var x=d[m];if(!Zt.call(l,x)||!jr(o[x],l[x]))return!1}return!0}function Kk(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Yk(o,l){var d=Kk(o);o=0;for(var m;d;){if(d.nodeType===3){if(m=o+d.textContent.length,o<=l&&m>=l)return{node:d,offset:l-o};o=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Kk(d)}}function Wk(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Wk(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Qk(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Js(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=Js(o.document)}return l}function hb(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var M7=Da&&"documentMode"in document&&11>=document.documentMode,Mu=null,pb=null,Zf=null,mb=!1;function Zk(o,l,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;mb||Mu==null||Mu!==Js(m)||(m=Mu,"selectionStart"in m&&hb(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zf&&Qf(Zf,m)||(Zf=m,m=Zm(pb,"onSelect"),0<m.length&&(l=new sm("onSelect","select",null,l,d),o.push({event:l,listeners:m}),l.target=Mu)))}function nl(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Pu={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},gb={},Xk={};Da&&(Xk=document.createElement("div").style,"AnimationEvent"in window||(delete Pu.animationend.animation,delete Pu.animationiteration.animation,delete Pu.animationstart.animation),"TransitionEvent"in window||delete Pu.transitionend.transition);function rl(o){if(gb[o])return gb[o];if(!Pu[o])return o;var l=Pu[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in Xk)return gb[o]=l[d];return o}var Jk=rl("animationend"),eC=rl("animationiteration"),tC=rl("animationstart"),P7=rl("transitionrun"),N7=rl("transitionstart"),R7=rl("transitioncancel"),nC=rl("transitionend"),rC=new Map,vb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vb.push("scrollEnd");function Ti(o,l){rC.set(o,l),Pa(l,[o])}var cm=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ii=[],Nu=0,yb=0;function fm(){for(var o=Nu,l=yb=Nu=0;l<o;){var d=ii[l];ii[l++]=null;var m=ii[l];ii[l++]=null;var x=ii[l];ii[l++]=null;var A=ii[l];if(ii[l++]=null,m!==null&&x!==null){var L=m.pending;L===null?x.next=x:(x.next=L.next,L.next=x),m.pending=x}A!==0&&iC(d,x,A)}}function dm(o,l,d,m){ii[Nu++]=o,ii[Nu++]=l,ii[Nu++]=d,ii[Nu++]=m,yb|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function bb(o,l,d,m){return dm(o,l,d,m),hm(o)}function il(o,l){return dm(o,null,null,l),hm(o)}function iC(o,l,d){o.lanes|=d;var m=o.alternate;m!==null&&(m.lanes|=d);for(var x=!1,A=o.return;A!==null;)A.childLanes|=d,m=A.alternate,m!==null&&(m.childLanes|=d),A.tag===22&&(o=A.stateNode,o===null||o._visibility&1||(x=!0)),o=A,A=A.return;return o.tag===3?(A=o.stateNode,x&&l!==null&&(x=31-Sn(d),o=A.hiddenUpdates,m=o[x],m===null?o[x]=[l]:m.push(l),l.lane=d|536870912),A):null}function hm(o){if(50<bd)throw bd=0,O1=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var Ru={};function D7(o,l,d,m){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(o,l,d,m){return new D7(o,l,d,m)}function wb(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ia(o,l){var d=o.alternate;return d===null?(d=$r(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function aC(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function pm(o,l,d,m,x,A){var L=0;if(m=o,typeof o=="function")wb(o)&&(L=1);else if(typeof o=="string")L=$F(o,d,ee.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case R:return o=$r(31,d,l,x),o.elementType=R,o.lanes=A,o;case b:return al(d.children,x,A,l);case w:L=8,x|=24;break;case _:return o=$r(12,d,l,x|2),o.elementType=_,o.lanes=A,o;case T:return o=$r(13,d,l,x),o.elementType=T,o.lanes=A,o;case O:return o=$r(19,d,l,x),o.elementType=O,o.lanes=A,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:L=10;break e;case C:L=9;break e;case S:L=11;break e;case M:L=14;break e;case P:L=16,m=null;break e}L=29,d=Error(r(130,o===null?"null":typeof o,"")),m=null}return l=$r(L,d,l,x),l.elementType=o,l.type=m,l.lanes=A,l}function al(o,l,d,m){return o=$r(7,o,m,l),o.lanes=d,o}function xb(o,l,d){return o=$r(6,o,null,l),o.lanes=d,o}function oC(o){var l=$r(18,null,null,0);return l.stateNode=o,l}function _b(o,l,d){return l=$r(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var sC=new WeakMap;function ai(o,l){if(typeof o=="object"&&o!==null){var d=sC.get(o);return d!==void 0?d:(l={value:o,source:l,stack:jt(l)},sC.set(o,l),l)}return{value:o,source:l,stack:jt(l)}}var Du=[],Iu=0,mm=null,Xf=0,oi=[],si=0,Ho=null,Xi=1,Ji="";function La(o,l){Du[Iu++]=Xf,Du[Iu++]=mm,mm=o,Xf=l}function lC(o,l,d){oi[si++]=Xi,oi[si++]=Ji,oi[si++]=Ho,Ho=o;var m=Xi;o=Ji;var x=32-Sn(m)-1;m&=~(1<<x),d+=1;var A=32-Sn(l)+x;if(30<A){var L=x-x%5;A=(m&(1<<L)-1).toString(32),m>>=L,x-=L,Xi=1<<32-Sn(l)+x|d<<x|m,Ji=A+o}else Xi=1<<A|d<<x|m,Ji=o}function Sb(o){o.return!==null&&(La(o,1),lC(o,1,0))}function Eb(o){for(;o===mm;)mm=Du[--Iu],Du[Iu]=null,Xf=Du[--Iu],Du[Iu]=null;for(;o===Ho;)Ho=oi[--si],oi[si]=null,Ji=oi[--si],oi[si]=null,Xi=oi[--si],oi[si]=null}function uC(o,l){oi[si++]=Xi,oi[si++]=Ji,oi[si++]=Ho,Xi=l.id,Ji=l.overflow,Ho=o}var Vn=null,$t=null,ht=!1,Go=null,li=!1,Ab=Error(r(519));function qo(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jf(ai(l,o)),Ab}function cC(o){var l=o.stateNode,d=o.type,m=o.memoizedProps;switch(l[En]=o,l[or]=m,d){case"dialog":lt("cancel",l),lt("close",l);break;case"iframe":case"object":case"embed":lt("load",l);break;case"video":case"audio":for(d=0;d<xd.length;d++)lt(xd[d],l);break;case"source":lt("error",l);break;case"img":case"image":case"link":lt("error",l),lt("load",l);break;case"details":lt("toggle",l);break;case"input":lt("invalid",l),nm(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":lt("invalid",l);break;case"textarea":lt("invalid",l),Ak(l,m.value,m.defaultValue,m.children)}d=m.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||m.suppressHydrationWarning===!0||CT(l.textContent,d)?(m.popover!=null&&(lt("beforetoggle",l),lt("toggle",l)),m.onScroll!=null&<("scroll",l),m.onScrollEnd!=null&<("scrollend",l),m.onClick!=null&&(l.onclick=Ra),l=!0):l=!1,l||qo(o,!0)}function fC(o){for(Vn=o.return;Vn;)switch(Vn.tag){case 5:case 31:case 13:li=!1;return;case 27:case 3:li=!0;return;default:Vn=Vn.return}}function Lu(o){if(o!==Vn)return!1;if(!ht)return fC(o),ht=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||H1(o.type,o.memoizedProps)),d=!d),d&&$t&&qo(o),fC(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));$t=LT(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));$t=LT(o)}else l===27?(l=$t,as(o.type)?(o=Y1,Y1=null,$t=o):$t=l):$t=Vn?ci(o.stateNode.nextSibling):null;return!0}function ol(){$t=Vn=null,ht=!1}function kb(){var o=Go;return o!==null&&(Tr===null?Tr=o:Tr.push.apply(Tr,o),Go=null),o}function Jf(o){Go===null?Go=[o]:Go.push(o)}var Cb=B(null),sl=null,za=null;function Vo(o,l,d){X(Cb,l._currentValue),l._currentValue=d}function ja(o){o._currentValue=Cb.current,K(Cb)}function Ob(o,l,d){for(;o!==null;){var m=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),o===d)break;o=o.return}}function Tb(o,l,d,m){var x=o.child;for(x!==null&&(x.return=o);x!==null;){var A=x.dependencies;if(A!==null){var L=x.child;A=A.firstContext;e:for(;A!==null;){var F=A;A=x;for(var Y=0;Y<l.length;Y++)if(F.context===l[Y]){A.lanes|=d,F=A.alternate,F!==null&&(F.lanes|=d),Ob(A.return,d,o),m||(L=null);break e}A=F.next}}else if(x.tag===18){if(L=x.return,L===null)throw Error(r(341));L.lanes|=d,A=L.alternate,A!==null&&(A.lanes|=d),Ob(L,d,o),L=null}else L=x.child;if(L!==null)L.return=x;else for(L=x;L!==null;){if(L===o){L=null;break}if(x=L.sibling,x!==null){x.return=L.return,L=x;break}L=L.return}x=L}}function zu(o,l,d,m){o=null;for(var x=l,A=!1;x!==null;){if(!A){if((x.flags&524288)!==0)A=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var L=x.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var F=x.type;jr(x.pendingProps.value,L.value)||(o!==null?o.push(F):o=[F])}}else if(x===de.current){if(L=x.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(o!==null?o.push(kd):o=[kd])}x=x.return}o!==null&&Tb(l,o,d,m),l.flags|=262144}function gm(o){for(o=o.firstContext;o!==null;){if(!jr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function ll(o){sl=o,za=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Kn(o){return dC(sl,o)}function vm(o,l){return sl===null&&ll(o),dC(o,l)}function dC(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},za===null){if(o===null)throw Error(r(308));za=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else za=za.next=l;return d}var I7=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,m){o.push(m)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},L7=e.unstable_scheduleCallback,z7=e.unstable_NormalPriority,pn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mb(){return{controller:new I7,data:new Map,refCount:0}}function ed(o){o.refCount--,o.refCount===0&&L7(z7,function(){o.controller.abort()})}var td=null,Pb=0,ju=0,$u=null;function j7(o,l){if(td===null){var d=td=[];Pb=0,ju=D1(),$u={status:"pending",value:void 0,then:function(m){d.push(m)}}}return Pb++,l.then(hC,hC),l}function hC(){if(--Pb===0&&td!==null){$u!==null&&($u.status="fulfilled");var o=td;td=null,ju=0,$u=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function $7(o,l){var d=[],m={status:"pending",value:null,reason:null,then:function(x){d.push(x)}};return o.then(function(){m.status="fulfilled",m.value=l;for(var x=0;x<d.length;x++)(0,d[x])(l)},function(x){for(m.status="rejected",m.reason=x,x=0;x<d.length;x++)(0,d[x])(void 0)}),m}var pC=j.S;j.S=function(o,l){ZO=ae(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&j7(o,l),pC!==null&&pC(o,l)};var ul=B(null);function Nb(){var o=ul.current;return o!==null?o:Dt.pooledCache}function ym(o,l){l===null?X(ul,ul.current):X(ul,l.pool)}function mC(){var o=Nb();return o===null?null:{parent:pn._currentValue,pool:o}}var Bu=Error(r(460)),Rb=Error(r(474)),bm=Error(r(542)),wm={then:function(){}};function gC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function vC(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(Ra,Ra),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,bC(o),o;default:if(typeof l.status=="string")l.then(Ra,Ra);else{if(o=Dt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(m){if(l.status==="pending"){var x=l;x.status="fulfilled",x.value=m}},function(m){if(l.status==="pending"){var x=l;x.status="rejected",x.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,bC(o),o}throw fl=l,Bu}}function cl(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(fl=d,Bu):d}}var fl=null;function yC(){if(fl===null)throw Error(r(459));var o=fl;return fl=null,o}function bC(o){if(o===Bu||o===bm)throw Error(r(483))}var Uu=null,nd=0;function xm(o){var l=nd;return nd+=1,Uu===null&&(Uu=[]),vC(Uu,o,l)}function rd(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function _m(o,l){throw l.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function wC(o){function l(ne,Z){if(o){var oe=ne.deletions;oe===null?(ne.deletions=[Z],ne.flags|=16):oe.push(Z)}}function d(ne,Z){if(!o)return null;for(;Z!==null;)l(ne,Z),Z=Z.sibling;return null}function m(ne){for(var Z=new Map;ne!==null;)ne.key!==null?Z.set(ne.key,ne):Z.set(ne.index,ne),ne=ne.sibling;return Z}function x(ne,Z){return ne=Ia(ne,Z),ne.index=0,ne.sibling=null,ne}function A(ne,Z,oe){return ne.index=oe,o?(oe=ne.alternate,oe!==null?(oe=oe.index,oe<Z?(ne.flags|=67108866,Z):oe):(ne.flags|=67108866,Z)):(ne.flags|=1048576,Z)}function L(ne){return o&&ne.alternate===null&&(ne.flags|=67108866),ne}function F(ne,Z,oe,be){return Z===null||Z.tag!==6?(Z=xb(oe,ne.mode,be),Z.return=ne,Z):(Z=x(Z,oe),Z.return=ne,Z)}function Y(ne,Z,oe,be){var Ve=oe.type;return Ve===b?ve(ne,Z,oe.props.children,be,oe.key):Z!==null&&(Z.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===P&&cl(Ve)===Z.type)?(Z=x(Z,oe.props),rd(Z,oe),Z.return=ne,Z):(Z=pm(oe.type,oe.key,oe.props,null,ne.mode,be),rd(Z,oe),Z.return=ne,Z)}function se(ne,Z,oe,be){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==oe.containerInfo||Z.stateNode.implementation!==oe.implementation?(Z=_b(oe,ne.mode,be),Z.return=ne,Z):(Z=x(Z,oe.children||[]),Z.return=ne,Z)}function ve(ne,Z,oe,be,Ve){return Z===null||Z.tag!==7?(Z=al(oe,ne.mode,be,Ve),Z.return=ne,Z):(Z=x(Z,oe),Z.return=ne,Z)}function we(ne,Z,oe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=xb(""+Z,ne.mode,oe),Z.return=ne,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:return oe=pm(Z.type,Z.key,Z.props,null,ne.mode,oe),rd(oe,Z),oe.return=ne,oe;case y:return Z=_b(Z,ne.mode,oe),Z.return=ne,Z;case P:return Z=cl(Z),we(ne,Z,oe)}if(U(Z)||N(Z))return Z=al(Z,ne.mode,oe,null),Z.return=ne,Z;if(typeof Z.then=="function")return we(ne,xm(Z),oe);if(Z.$$typeof===E)return we(ne,vm(ne,Z),oe);_m(ne,Z)}return null}function fe(ne,Z,oe,be){var Ve=Z!==null?Z.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Ve!==null?null:F(ne,Z,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return oe.key===Ve?Y(ne,Z,oe,be):null;case y:return oe.key===Ve?se(ne,Z,oe,be):null;case P:return oe=cl(oe),fe(ne,Z,oe,be)}if(U(oe)||N(oe))return Ve!==null?null:ve(ne,Z,oe,be,null);if(typeof oe.then=="function")return fe(ne,Z,xm(oe),be);if(oe.$$typeof===E)return fe(ne,Z,vm(ne,oe),be);_m(ne,oe)}return null}function me(ne,Z,oe,be,Ve){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ne=ne.get(oe)||null,F(Z,ne,""+be,Ve);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return ne=ne.get(be.key===null?oe:be.key)||null,Y(Z,ne,be,Ve);case y:return ne=ne.get(be.key===null?oe:be.key)||null,se(Z,ne,be,Ve);case P:return be=cl(be),me(ne,Z,oe,be,Ve)}if(U(be)||N(be))return ne=ne.get(oe)||null,ve(Z,ne,be,Ve,null);if(typeof be.then=="function")return me(ne,Z,oe,xm(be),Ve);if(be.$$typeof===E)return me(ne,Z,oe,vm(Z,be),Ve);_m(Z,be)}return null}function Le(ne,Z,oe,be){for(var Ve=null,yt=null,Fe=Z,rt=Z=0,dt=null;Fe!==null&&rt<oe.length;rt++){Fe.index>rt?(dt=Fe,Fe=null):dt=Fe.sibling;var bt=fe(ne,Fe,oe[rt],be);if(bt===null){Fe===null&&(Fe=dt);break}o&&Fe&&bt.alternate===null&&l(ne,Fe),Z=A(bt,Z,rt),yt===null?Ve=bt:yt.sibling=bt,yt=bt,Fe=dt}if(rt===oe.length)return d(ne,Fe),ht&&La(ne,rt),Ve;if(Fe===null){for(;rt<oe.length;rt++)Fe=we(ne,oe[rt],be),Fe!==null&&(Z=A(Fe,Z,rt),yt===null?Ve=Fe:yt.sibling=Fe,yt=Fe);return ht&&La(ne,rt),Ve}for(Fe=m(Fe);rt<oe.length;rt++)dt=me(Fe,ne,rt,oe[rt],be),dt!==null&&(o&&dt.alternate!==null&&Fe.delete(dt.key===null?rt:dt.key),Z=A(dt,Z,rt),yt===null?Ve=dt:yt.sibling=dt,yt=dt);return o&&Fe.forEach(function(cs){return l(ne,cs)}),ht&&La(ne,rt),Ve}function We(ne,Z,oe,be){if(oe==null)throw Error(r(151));for(var Ve=null,yt=null,Fe=Z,rt=Z=0,dt=null,bt=oe.next();Fe!==null&&!bt.done;rt++,bt=oe.next()){Fe.index>rt?(dt=Fe,Fe=null):dt=Fe.sibling;var cs=fe(ne,Fe,bt.value,be);if(cs===null){Fe===null&&(Fe=dt);break}o&&Fe&&cs.alternate===null&&l(ne,Fe),Z=A(cs,Z,rt),yt===null?Ve=cs:yt.sibling=cs,yt=cs,Fe=dt}if(bt.done)return d(ne,Fe),ht&&La(ne,rt),Ve;if(Fe===null){for(;!bt.done;rt++,bt=oe.next())bt=we(ne,bt.value,be),bt!==null&&(Z=A(bt,Z,rt),yt===null?Ve=bt:yt.sibling=bt,yt=bt);return ht&&La(ne,rt),Ve}for(Fe=m(Fe);!bt.done;rt++,bt=oe.next())bt=me(Fe,ne,rt,bt.value,be),bt!==null&&(o&&bt.alternate!==null&&Fe.delete(bt.key===null?rt:bt.key),Z=A(bt,Z,rt),yt===null?Ve=bt:yt.sibling=bt,yt=bt);return o&&Fe.forEach(function(QF){return l(ne,QF)}),ht&&La(ne,rt),Ve}function Pt(ne,Z,oe,be){if(typeof oe=="object"&&oe!==null&&oe.type===b&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:e:{for(var Ve=oe.key;Z!==null;){if(Z.key===Ve){if(Ve=oe.type,Ve===b){if(Z.tag===7){d(ne,Z.sibling),be=x(Z,oe.props.children),be.return=ne,ne=be;break e}}else if(Z.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===P&&cl(Ve)===Z.type){d(ne,Z.sibling),be=x(Z,oe.props),rd(be,oe),be.return=ne,ne=be;break e}d(ne,Z);break}else l(ne,Z);Z=Z.sibling}oe.type===b?(be=al(oe.props.children,ne.mode,be,oe.key),be.return=ne,ne=be):(be=pm(oe.type,oe.key,oe.props,null,ne.mode,be),rd(be,oe),be.return=ne,ne=be)}return L(ne);case y:e:{for(Ve=oe.key;Z!==null;){if(Z.key===Ve)if(Z.tag===4&&Z.stateNode.containerInfo===oe.containerInfo&&Z.stateNode.implementation===oe.implementation){d(ne,Z.sibling),be=x(Z,oe.children||[]),be.return=ne,ne=be;break e}else{d(ne,Z);break}else l(ne,Z);Z=Z.sibling}be=_b(oe,ne.mode,be),be.return=ne,ne=be}return L(ne);case P:return oe=cl(oe),Pt(ne,Z,oe,be)}if(U(oe))return Le(ne,Z,oe,be);if(N(oe)){if(Ve=N(oe),typeof Ve!="function")throw Error(r(150));return oe=Ve.call(oe),We(ne,Z,oe,be)}if(typeof oe.then=="function")return Pt(ne,Z,xm(oe),be);if(oe.$$typeof===E)return Pt(ne,Z,vm(ne,oe),be);_m(ne,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,Z!==null&&Z.tag===6?(d(ne,Z.sibling),be=x(Z,oe),be.return=ne,ne=be):(d(ne,Z),be=xb(oe,ne.mode,be),be.return=ne,ne=be),L(ne)):d(ne,Z)}return function(ne,Z,oe,be){try{nd=0;var Ve=Pt(ne,Z,oe,be);return Uu=null,Ve}catch(Fe){if(Fe===Bu||Fe===bm)throw Fe;var yt=$r(29,Fe,null,ne.mode);return yt.lanes=be,yt.return=ne,yt}finally{}}}var dl=wC(!0),xC=wC(!1),Ko=!1;function Db(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ib(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Yo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Wo(o,l,d){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(St&2)!==0){var x=m.pending;return x===null?l.next=l:(l.next=x.next,x.next=l),m.pending=l,l=hm(o),iC(o,null,d),l}return dm(o,m,l,d),hm(o)}function id(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,qp(o,d)}}function Lb(o,l){var d=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var x=null,A=null;if(d=d.firstBaseUpdate,d!==null){do{var L={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};A===null?x=A=L:A=A.next=L,d=d.next}while(d!==null);A===null?x=A=l:A=A.next=l}else x=A=l;d={baseState:m.baseState,firstBaseUpdate:x,lastBaseUpdate:A,shared:m.shared,callbacks:m.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var zb=!1;function ad(){if(zb){var o=$u;if(o!==null)throw o}}function od(o,l,d,m){zb=!1;var x=o.updateQueue;Ko=!1;var A=x.firstBaseUpdate,L=x.lastBaseUpdate,F=x.shared.pending;if(F!==null){x.shared.pending=null;var Y=F,se=Y.next;Y.next=null,L===null?A=se:L.next=se,L=Y;var ve=o.alternate;ve!==null&&(ve=ve.updateQueue,F=ve.lastBaseUpdate,F!==L&&(F===null?ve.firstBaseUpdate=se:F.next=se,ve.lastBaseUpdate=Y))}if(A!==null){var we=x.baseState;L=0,ve=se=Y=null,F=A;do{var fe=F.lane&-536870913,me=fe!==F.lane;if(me?(ft&fe)===fe:(m&fe)===fe){fe!==0&&fe===ju&&(zb=!0),ve!==null&&(ve=ve.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Le=o,We=F;fe=l;var Pt=d;switch(We.tag){case 1:if(Le=We.payload,typeof Le=="function"){we=Le.call(Pt,we,fe);break e}we=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=We.payload,fe=typeof Le=="function"?Le.call(Pt,we,fe):Le,fe==null)break e;we=p({},we,fe);break e;case 2:Ko=!0}}fe=F.callback,fe!==null&&(o.flags|=64,me&&(o.flags|=8192),me=x.callbacks,me===null?x.callbacks=[fe]:me.push(fe))}else me={lane:fe,tag:F.tag,payload:F.payload,callback:F.callback,next:null},ve===null?(se=ve=me,Y=we):ve=ve.next=me,L|=fe;if(F=F.next,F===null){if(F=x.shared.pending,F===null)break;me=F,F=me.next,me.next=null,x.lastBaseUpdate=me,x.shared.pending=null}}while(!0);ve===null&&(Y=we),x.baseState=Y,x.firstBaseUpdate=se,x.lastBaseUpdate=ve,A===null&&(x.shared.lanes=0),es|=L,o.lanes=L,o.memoizedState=we}}function _C(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function SC(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)_C(d[o],l)}var Fu=B(null),Sm=B(0);function EC(o,l){o=Ka,X(Sm,o),X(Fu,l),Ka=o|l.baseLanes}function jb(){X(Sm,Ka),X(Fu,Fu.current)}function $b(){Ka=Sm.current,K(Fu),K(Sm)}var Br=B(null),ui=null;function Qo(o){var l=o.alternate;X(ln,ln.current&1),X(Br,o),ui===null&&(l===null||Fu.current!==null||l.memoizedState!==null)&&(ui=o)}function Bb(o){X(ln,ln.current),X(Br,o),ui===null&&(ui=o)}function AC(o){o.tag===22?(X(ln,ln.current),X(Br,o),ui===null&&(ui=o)):Zo()}function Zo(){X(ln,ln.current),X(Br,Br.current)}function Ur(o){K(Br),ui===o&&(ui=null),K(ln)}var ln=B(0);function Em(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||V1(d)||K1(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var $a=0,nt=null,Tt=null,mn=null,Am=!1,Hu=!1,hl=!1,km=0,sd=0,Gu=null,B7=0;function Jt(){throw Error(r(321))}function Ub(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!jr(o[d],l[d]))return!1;return!0}function Fb(o,l,d,m,x,A){return $a=A,nt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=o===null||o.memoizedState===null?lO:r1,hl=!1,A=d(m,x),hl=!1,Hu&&(A=CC(l,d,m,x)),kC(o),A}function kC(o){j.H=cd;var l=Tt!==null&&Tt.next!==null;if($a=0,mn=Tt=nt=null,Am=!1,sd=0,Gu=null,l)throw Error(r(300));o===null||gn||(o=o.dependencies,o!==null&&gm(o)&&(gn=!0))}function CC(o,l,d,m){nt=o;var x=0;do{if(Hu&&(Gu=null),sd=0,Hu=!1,25<=x)throw Error(r(301));if(x+=1,mn=Tt=null,o.updateQueue!=null){var A=o.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}j.H=uO,A=l(d,m)}while(Hu);return A}function U7(){var o=j.H,l=o.useState()[0];return l=typeof l.then=="function"?ld(l):l,o=o.useState()[0],(Tt!==null?Tt.memoizedState:null)!==o&&(nt.flags|=1024),l}function Hb(){var o=km!==0;return km=0,o}function Gb(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function qb(o){if(Am){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Am=!1}$a=0,mn=Tt=nt=null,Hu=!1,sd=km=0,Gu=null}function hr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?nt.memoizedState=mn=o:mn=mn.next=o,mn}function un(){if(Tt===null){var o=nt.alternate;o=o!==null?o.memoizedState:null}else o=Tt.next;var l=mn===null?nt.memoizedState:mn.next;if(l!==null)mn=l,Tt=o;else{if(o===null)throw nt.alternate===null?Error(r(467)):Error(r(310));Tt=o,o={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},mn===null?nt.memoizedState=mn=o:mn=mn.next=o}return mn}function Cm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ld(o){var l=sd;return sd+=1,Gu===null&&(Gu=[]),o=vC(Gu,o,l),l=nt,(mn===null?l.memoizedState:mn.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?lO:r1),o}function Om(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ld(o);if(o.$$typeof===E)return Kn(o)}throw Error(r(438,String(o)))}function Vb(o){var l=null,d=nt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var m=nt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(x){return x.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Cm(),nt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),m=0;m<o;m++)d[m]=z;return l.index++,d}function Ba(o,l){return typeof l=="function"?l(o):l}function Tm(o){var l=un();return Kb(l,Tt,o)}function Kb(o,l,d){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=d;var x=o.baseQueue,A=m.pending;if(A!==null){if(x!==null){var L=x.next;x.next=A.next,A.next=L}l.baseQueue=x=A,m.pending=null}if(A=o.baseState,x===null)o.memoizedState=A;else{l=x.next;var F=L=null,Y=null,se=l,ve=!1;do{var we=se.lane&-536870913;if(we!==se.lane?(ft&we)===we:($a&we)===we){var fe=se.revertLane;if(fe===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),we===ju&&(ve=!0);else if(($a&fe)===fe){se=se.next,fe===ju&&(ve=!0);continue}else we={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},Y===null?(F=Y=we,L=A):Y=Y.next=we,nt.lanes|=fe,es|=fe;we=se.action,hl&&d(A,we),A=se.hasEagerState?se.eagerState:d(A,we)}else fe={lane:we,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},Y===null?(F=Y=fe,L=A):Y=Y.next=fe,nt.lanes|=we,es|=we;se=se.next}while(se!==null&&se!==l);if(Y===null?L=A:Y.next=F,!jr(A,o.memoizedState)&&(gn=!0,ve&&(d=$u,d!==null)))throw d;o.memoizedState=A,o.baseState=L,o.baseQueue=Y,m.lastRenderedState=A}return x===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Yb(o){var l=un(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var m=d.dispatch,x=d.pending,A=l.memoizedState;if(x!==null){d.pending=null;var L=x=x.next;do A=o(A,L.action),L=L.next;while(L!==x);jr(A,l.memoizedState)||(gn=!0),l.memoizedState=A,l.baseQueue===null&&(l.baseState=A),d.lastRenderedState=A}return[A,m]}function OC(o,l,d){var m=nt,x=un(),A=ht;if(A){if(d===void 0)throw Error(r(407));d=d()}else d=l();var L=!jr((Tt||x).memoizedState,d);if(L&&(x.memoizedState=d,gn=!0),x=x.queue,Zb(PC.bind(null,m,x,o),[o]),x.getSnapshot!==l||L||mn!==null&&mn.memoizedState.tag&1){if(m.flags|=2048,qu(9,{destroy:void 0},MC.bind(null,m,x,d,l),null),Dt===null)throw Error(r(349));A||($a&127)!==0||TC(m,l,d)}return d}function TC(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=nt.updateQueue,l===null?(l=Cm(),nt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function MC(o,l,d,m){l.value=d,l.getSnapshot=m,NC(l)&&RC(o)}function PC(o,l,d){return d(function(){NC(l)&&RC(o)})}function NC(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!jr(o,d)}catch{return!0}}function RC(o){var l=il(o,2);l!==null&&Mr(l,o,2)}function Wb(o){var l=hr();if(typeof o=="function"){var d=o;if(o=d(),hl){_r(!0);try{d()}finally{_r(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:o},l}function DC(o,l,d,m){return o.baseState=d,Kb(o,Tt,typeof m=="function"?m:Ba)}function F7(o,l,d,m,x){if(Nm(o))throw Error(r(485));if(o=l.action,o!==null){var A={payload:x,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){A.listeners.push(L)}};j.T!==null?d(!0):A.isTransition=!1,m(A),d=l.pending,d===null?(A.next=l.pending=A,IC(l,A)):(A.next=d.next,l.pending=d.next=A)}}function IC(o,l){var d=l.action,m=l.payload,x=o.state;if(l.isTransition){var A=j.T,L={};j.T=L;try{var F=d(x,m),Y=j.S;Y!==null&&Y(L,F),LC(o,l,F)}catch(se){Qb(o,l,se)}finally{A!==null&&L.types!==null&&(A.types=L.types),j.T=A}}else try{A=d(x,m),LC(o,l,A)}catch(se){Qb(o,l,se)}}function LC(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(m){zC(o,l,m)},function(m){return Qb(o,l,m)}):zC(o,l,d)}function zC(o,l,d){l.status="fulfilled",l.value=d,jC(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,IC(o,d)))}function Qb(o,l,d){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=d,jC(l),l=l.next;while(l!==m)}o.action=null}function jC(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function $C(o,l){return l}function BC(o,l){if(ht){var d=Dt.formState;if(d!==null){e:{var m=nt;if(ht){if($t){t:{for(var x=$t,A=li;x.nodeType!==8;){if(!A){x=null;break t}if(x=ci(x.nextSibling),x===null){x=null;break t}}A=x.data,x=A==="F!"||A==="F"?x:null}if(x){$t=ci(x.nextSibling),m=x.data==="F!";break e}}qo(m)}m=!1}m&&(l=d[0])}}return d=hr(),d.memoizedState=d.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$C,lastRenderedState:l},d.queue=m,d=aO.bind(null,nt,m),m.dispatch=d,m=Wb(!1),A=n1.bind(null,nt,!1,m.queue),m=hr(),x={state:l,dispatch:null,action:o,pending:null},m.queue=x,d=F7.bind(null,nt,x,A,d),x.dispatch=d,m.memoizedState=o,[l,d,!1]}function UC(o){var l=un();return FC(l,Tt,o)}function FC(o,l,d){if(l=Kb(o,l,$C)[0],o=Tm(Ba)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=ld(l)}catch(L){throw L===Bu?bm:L}else m=l;l=un();var x=l.queue,A=x.dispatch;return d!==l.memoizedState&&(nt.flags|=2048,qu(9,{destroy:void 0},H7.bind(null,x,d),null)),[m,A,o]}function H7(o,l){o.action=l}function HC(o){var l=un(),d=Tt;if(d!==null)return FC(l,d,o);un(),l=l.memoizedState,d=un();var m=d.queue.dispatch;return d.memoizedState=o,[l,m,!1]}function qu(o,l,d,m){return o={tag:o,create:d,deps:m,inst:l,next:null},l=nt.updateQueue,l===null&&(l=Cm(),nt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(m=d.next,d.next=o,o.next=m,l.lastEffect=o),o}function GC(){return un().memoizedState}function Mm(o,l,d,m){var x=hr();nt.flags|=o,x.memoizedState=qu(1|l,{destroy:void 0},d,m===void 0?null:m)}function Pm(o,l,d,m){var x=un();m=m===void 0?null:m;var A=x.memoizedState.inst;Tt!==null&&m!==null&&Ub(m,Tt.memoizedState.deps)?x.memoizedState=qu(l,A,d,m):(nt.flags|=o,x.memoizedState=qu(1|l,A,d,m))}function qC(o,l){Mm(8390656,8,o,l)}function Zb(o,l){Pm(2048,8,o,l)}function G7(o){nt.flags|=4;var l=nt.updateQueue;if(l===null)l=Cm(),nt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function VC(o){var l=un().memoizedState;return G7({ref:l,nextImpl:o}),function(){if((St&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function KC(o,l){return Pm(4,2,o,l)}function YC(o,l){return Pm(4,4,o,l)}function WC(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function QC(o,l,d){d=d!=null?d.concat([o]):null,Pm(4,4,WC.bind(null,l,o),d)}function Xb(){}function ZC(o,l){var d=un();l=l===void 0?null:l;var m=d.memoizedState;return l!==null&&Ub(l,m[1])?m[0]:(d.memoizedState=[o,l],o)}function XC(o,l){var d=un();l=l===void 0?null:l;var m=d.memoizedState;if(l!==null&&Ub(l,m[1]))return m[0];if(m=o(),hl){_r(!0);try{o()}finally{_r(!1)}}return d.memoizedState=[m,l],m}function Jb(o,l,d){return d===void 0||($a&1073741824)!==0&&(ft&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=JO(),nt.lanes|=o,es|=o,d)}function JC(o,l,d,m){return jr(d,l)?d:Fu.current!==null?(o=Jb(o,d,m),jr(o,l)||(gn=!0),o):($a&42)===0||($a&1073741824)!==0&&(ft&261930)===0?(gn=!0,o.memoizedState=d):(o=JO(),nt.lanes|=o,es|=o,l)}function eO(o,l,d,m,x){var A=G.p;G.p=A!==0&&8>A?A:8;var L=j.T,F={};j.T=F,n1(o,!1,l,d);try{var Y=x(),se=j.S;if(se!==null&&se(F,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var ve=$7(Y,m);ud(o,l,ve,Gr(o))}else ud(o,l,m,Gr(o))}catch(we){ud(o,l,{then:function(){},status:"rejected",reason:we},Gr())}finally{G.p=A,L!==null&&F.types!==null&&(L.types=F.types),j.T=L}}function q7(){}function e1(o,l,d,m){if(o.tag!==5)throw Error(r(476));var x=tO(o).queue;eO(o,x,l,q,d===null?q7:function(){return nO(o),d(m)})}function tO(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:q},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ba,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function nO(o){var l=tO(o);l.next===null&&(l=o.alternate.memoizedState),ud(o,l.next.queue,{},Gr())}function t1(){return Kn(kd)}function rO(){return un().memoizedState}function iO(){return un().memoizedState}function V7(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=Gr();o=Yo(d);var m=Wo(l,o,d);m!==null&&(Mr(m,l,d),id(m,l,d)),l={cache:Mb()},o.payload=l;return}l=l.return}}function K7(o,l,d){var m=Gr();d={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Nm(o)?oO(l,d):(d=bb(o,l,d,m),d!==null&&(Mr(d,o,m),sO(d,l,m)))}function aO(o,l,d){var m=Gr();ud(o,l,d,m)}function ud(o,l,d,m){var x={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Nm(o))oO(l,x);else{var A=o.alternate;if(o.lanes===0&&(A===null||A.lanes===0)&&(A=l.lastRenderedReducer,A!==null))try{var L=l.lastRenderedState,F=A(L,d);if(x.hasEagerState=!0,x.eagerState=F,jr(F,L))return dm(o,l,x,0),Dt===null&&fm(),!1}catch{}finally{}if(d=bb(o,l,x,m),d!==null)return Mr(d,o,m),sO(d,l,m),!0}return!1}function n1(o,l,d,m){if(m={lane:2,revertLane:D1(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Nm(o)){if(l)throw Error(r(479))}else l=bb(o,d,m,2),l!==null&&Mr(l,o,2)}function Nm(o){var l=o.alternate;return o===nt||l!==null&&l===nt}function oO(o,l){Hu=Am=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function sO(o,l,d){if((d&4194048)!==0){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,qp(o,d)}}var cd={readContext:Kn,use:Om,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};cd.useEffectEvent=Jt;var lO={readContext:Kn,use:Om,useCallback:function(o,l){return hr().memoizedState=[o,l===void 0?null:l],o},useContext:Kn,useEffect:qC,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,Mm(4194308,4,WC.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Mm(4194308,4,o,l)},useInsertionEffect:function(o,l){Mm(4,2,o,l)},useMemo:function(o,l){var d=hr();l=l===void 0?null:l;var m=o();if(hl){_r(!0);try{o()}finally{_r(!1)}}return d.memoizedState=[m,l],m},useReducer:function(o,l,d){var m=hr();if(d!==void 0){var x=d(l);if(hl){_r(!0);try{d(l)}finally{_r(!1)}}}else x=l;return m.memoizedState=m.baseState=x,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:x},m.queue=o,o=o.dispatch=K7.bind(null,nt,o),[m.memoizedState,o]},useRef:function(o){var l=hr();return o={current:o},l.memoizedState=o},useState:function(o){o=Wb(o);var l=o.queue,d=aO.bind(null,nt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:Xb,useDeferredValue:function(o,l){var d=hr();return Jb(d,o,l)},useTransition:function(){var o=Wb(!1);return o=eO.bind(null,nt,o.queue,!0,!1),hr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var m=nt,x=hr();if(ht){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Dt===null)throw Error(r(349));(ft&127)!==0||TC(m,l,d)}x.memoizedState=d;var A={value:d,getSnapshot:l};return x.queue=A,qC(PC.bind(null,m,A,o),[o]),m.flags|=2048,qu(9,{destroy:void 0},MC.bind(null,m,A,d,l),null),d},useId:function(){var o=hr(),l=Dt.identifierPrefix;if(ht){var d=Ji,m=Xi;d=(m&~(1<<32-Sn(m)-1)).toString(32)+d,l="_"+l+"R_"+d,d=km++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=B7++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:t1,useFormState:BC,useActionState:BC,useOptimistic:function(o){var l=hr();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=n1.bind(null,nt,!0,d),d.dispatch=l,[o,l]},useMemoCache:Vb,useCacheRefresh:function(){return hr().memoizedState=V7.bind(null,nt)},useEffectEvent:function(o){var l=hr(),d={impl:o};return l.memoizedState=d,function(){if((St&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},r1={readContext:Kn,use:Om,useCallback:ZC,useContext:Kn,useEffect:Zb,useImperativeHandle:QC,useInsertionEffect:KC,useLayoutEffect:YC,useMemo:XC,useReducer:Tm,useRef:GC,useState:function(){return Tm(Ba)},useDebugValue:Xb,useDeferredValue:function(o,l){var d=un();return JC(d,Tt.memoizedState,o,l)},useTransition:function(){var o=Tm(Ba)[0],l=un().memoizedState;return[typeof o=="boolean"?o:ld(o),l]},useSyncExternalStore:OC,useId:rO,useHostTransitionStatus:t1,useFormState:UC,useActionState:UC,useOptimistic:function(o,l){var d=un();return DC(d,Tt,o,l)},useMemoCache:Vb,useCacheRefresh:iO};r1.useEffectEvent=VC;var uO={readContext:Kn,use:Om,useCallback:ZC,useContext:Kn,useEffect:Zb,useImperativeHandle:QC,useInsertionEffect:KC,useLayoutEffect:YC,useMemo:XC,useReducer:Yb,useRef:GC,useState:function(){return Yb(Ba)},useDebugValue:Xb,useDeferredValue:function(o,l){var d=un();return Tt===null?Jb(d,o,l):JC(d,Tt.memoizedState,o,l)},useTransition:function(){var o=Yb(Ba)[0],l=un().memoizedState;return[typeof o=="boolean"?o:ld(o),l]},useSyncExternalStore:OC,useId:rO,useHostTransitionStatus:t1,useFormState:HC,useActionState:HC,useOptimistic:function(o,l){var d=un();return Tt!==null?DC(d,Tt,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:Vb,useCacheRefresh:iO};uO.useEffectEvent=VC;function i1(o,l,d,m){l=o.memoizedState,d=d(m,l),d=d==null?l:p({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var a1={enqueueSetState:function(o,l,d){o=o._reactInternals;var m=Gr(),x=Yo(m);x.payload=l,d!=null&&(x.callback=d),l=Wo(o,x,m),l!==null&&(Mr(l,o,m),id(l,o,m))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var m=Gr(),x=Yo(m);x.tag=1,x.payload=l,d!=null&&(x.callback=d),l=Wo(o,x,m),l!==null&&(Mr(l,o,m),id(l,o,m))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=Gr(),m=Yo(d);m.tag=2,l!=null&&(m.callback=l),l=Wo(o,m,d),l!==null&&(Mr(l,o,d),id(l,o,d))}};function cO(o,l,d,m,x,A,L){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,A,L):l.prototype&&l.prototype.isPureReactComponent?!Qf(d,m)||!Qf(x,A):!0}function fO(o,l,d,m){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,m),l.state!==o&&a1.enqueueReplaceState(l,l.state,null)}function pl(o,l){var d=l;if("ref"in l){d={};for(var m in l)m!=="ref"&&(d[m]=l[m])}if(o=o.defaultProps){d===l&&(d=p({},d));for(var x in o)d[x]===void 0&&(d[x]=o[x])}return d}function dO(o){cm(o)}function hO(o){console.error(o)}function pO(o){cm(o)}function Rm(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function mO(o,l,d){try{var m=o.onCaughtError;m(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function o1(o,l,d){return d=Yo(d),d.tag=3,d.payload={element:null},d.callback=function(){Rm(o,l)},d}function gO(o){return o=Yo(o),o.tag=3,o}function vO(o,l,d,m){var x=d.type.getDerivedStateFromError;if(typeof x=="function"){var A=m.value;o.payload=function(){return x(A)},o.callback=function(){mO(l,d,m)}}var L=d.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(o.callback=function(){mO(l,d,m),typeof x!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var F=m.stack;this.componentDidCatch(m.value,{componentStack:F!==null?F:""})})}function Y7(o,l,d,m,x){if(d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=d.alternate,l!==null&&zu(l,d,x,!0),d=Br.current,d!==null){switch(d.tag){case 31:case 13:return ui===null?qm():d.alternate===null&&en===0&&(en=3),d.flags&=-257,d.flags|=65536,d.lanes=x,m===wm?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([m]):l.add(m),P1(o,m,x)),!1;case 22:return d.flags|=65536,m===wm?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([m]):d.add(m)),P1(o,m,x)),!1}throw Error(r(435,d.tag))}return P1(o,m,x),qm(),!1}if(ht)return l=Br.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=x,m!==Ab&&(o=Error(r(422),{cause:m}),Jf(ai(o,d)))):(m!==Ab&&(l=Error(r(423),{cause:m}),Jf(ai(l,d))),o=o.current.alternate,o.flags|=65536,x&=-x,o.lanes|=x,m=ai(m,d),x=o1(o.stateNode,m,x),Lb(o,x),en!==4&&(en=2)),!1;var A=Error(r(520),{cause:m});if(A=ai(A,d),yd===null?yd=[A]:yd.push(A),en!==4&&(en=2),l===null)return!0;m=ai(m,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=x&-x,d.lanes|=o,o=o1(d.stateNode,m,o),Lb(d,o),!1;case 1:if(l=d.type,A=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(ts===null||!ts.has(A))))return d.flags|=65536,x&=-x,d.lanes|=x,x=gO(x),vO(x,o,d,m),Lb(d,x),!1}d=d.return}while(d!==null);return!1}var s1=Error(r(461)),gn=!1;function Yn(o,l,d,m){l.child=o===null?xC(l,null,d,m):dl(l,o.child,d,m)}function yO(o,l,d,m,x){d=d.render;var A=l.ref;if("ref"in m){var L={};for(var F in m)F!=="ref"&&(L[F]=m[F])}else L=m;return ll(l),m=Fb(o,l,d,L,A,x),F=Hb(),o!==null&&!gn?(Gb(o,l,x),Ua(o,l,x)):(ht&&F&&Sb(l),l.flags|=1,Yn(o,l,m,x),l.child)}function bO(o,l,d,m,x){if(o===null){var A=d.type;return typeof A=="function"&&!wb(A)&&A.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=A,wO(o,l,A,m,x)):(o=pm(d.type,null,m,l,l.mode,x),o.ref=l.ref,o.return=l,l.child=o)}if(A=o.child,!m1(o,x)){var L=A.memoizedProps;if(d=d.compare,d=d!==null?d:Qf,d(L,m)&&o.ref===l.ref)return Ua(o,l,x)}return l.flags|=1,o=Ia(A,m),o.ref=l.ref,o.return=l,l.child=o}function wO(o,l,d,m,x){if(o!==null){var A=o.memoizedProps;if(Qf(A,m)&&o.ref===l.ref)if(gn=!1,l.pendingProps=m=A,m1(o,x))(o.flags&131072)!==0&&(gn=!0);else return l.lanes=o.lanes,Ua(o,l,x)}return l1(o,l,d,m,x)}function xO(o,l,d,m){var x=m.children,A=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((l.flags&128)!==0){if(A=A!==null?A.baseLanes|d:d,o!==null){for(m=l.child=o.child,x=0;m!==null;)x=x|m.lanes|m.childLanes,m=m.sibling;m=x&~A}else m=0,l.child=null;return _O(o,l,A,d,m)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&ym(l,A!==null?A.cachePool:null),A!==null?EC(l,A):jb(),AC(l);else return m=l.lanes=536870912,_O(o,l,A!==null?A.baseLanes|d:d,d,m)}else A!==null?(ym(l,A.cachePool),EC(l,A),Zo(),l.memoizedState=null):(o!==null&&ym(l,null),jb(),Zo());return Yn(o,l,x,d),l.child}function fd(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function _O(o,l,d,m,x){var A=Nb();return A=A===null?null:{parent:pn._currentValue,pool:A},l.memoizedState={baseLanes:d,cachePool:A},o!==null&&ym(l,null),jb(),AC(l),o!==null&&zu(o,l,m,!0),l.childLanes=x,null}function Dm(o,l){return l=Lm({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function SO(o,l,d){return dl(l,o.child,null,d),o=Dm(l,l.pendingProps),o.flags|=2,Ur(l),l.memoizedState=null,o}function W7(o,l,d){var m=l.pendingProps,x=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(ht){if(m.mode==="hidden")return o=Dm(l,m),l.lanes=536870912,fd(null,o);if(Bb(l),(o=$t)?(o=IT(o,li),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ho!==null?{id:Xi,overflow:Ji}:null,retryLane:536870912,hydrationErrors:null},d=oC(o),d.return=l,l.child=d,Vn=l,$t=null)):o=null,o===null)throw qo(l);return l.lanes=536870912,null}return Dm(l,m)}var A=o.memoizedState;if(A!==null){var L=A.dehydrated;if(Bb(l),x)if(l.flags&256)l.flags&=-257,l=SO(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(gn||zu(o,l,d,!1),x=(d&o.childLanes)!==0,gn||x){if(m=Dt,m!==null&&(L=Vp(m,d),L!==0&&L!==A.retryLane))throw A.retryLane=L,il(o,L),Mr(m,o,L),s1;qm(),l=SO(o,l,d)}else o=A.treeContext,$t=ci(L.nextSibling),Vn=l,ht=!0,Go=null,li=!1,o!==null&&uC(l,o),l=Dm(l,m),l.flags|=4096;return l}return o=Ia(o.child,{mode:m.mode,children:m.children}),o.ref=l.ref,l.child=o,o.return=l,o}function Im(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function l1(o,l,d,m,x){return ll(l),d=Fb(o,l,d,m,void 0,x),m=Hb(),o!==null&&!gn?(Gb(o,l,x),Ua(o,l,x)):(ht&&m&&Sb(l),l.flags|=1,Yn(o,l,d,x),l.child)}function EO(o,l,d,m,x,A){return ll(l),l.updateQueue=null,d=CC(l,m,d,x),kC(o),m=Hb(),o!==null&&!gn?(Gb(o,l,A),Ua(o,l,A)):(ht&&m&&Sb(l),l.flags|=1,Yn(o,l,d,A),l.child)}function AO(o,l,d,m,x){if(ll(l),l.stateNode===null){var A=Ru,L=d.contextType;typeof L=="object"&&L!==null&&(A=Kn(L)),A=new d(m,A),l.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=a1,l.stateNode=A,A._reactInternals=l,A=l.stateNode,A.props=m,A.state=l.memoizedState,A.refs={},Db(l),L=d.contextType,A.context=typeof L=="object"&&L!==null?Kn(L):Ru,A.state=l.memoizedState,L=d.getDerivedStateFromProps,typeof L=="function"&&(i1(l,d,L,m),A.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(L=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),L!==A.state&&a1.enqueueReplaceState(A,A.state,null),od(l,m,A,x),ad(),A.state=l.memoizedState),typeof A.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(o===null){A=l.stateNode;var F=l.memoizedProps,Y=pl(d,F);A.props=Y;var se=A.context,ve=d.contextType;L=Ru,typeof ve=="object"&&ve!==null&&(L=Kn(ve));var we=d.getDerivedStateFromProps;ve=typeof we=="function"||typeof A.getSnapshotBeforeUpdate=="function",F=l.pendingProps!==F,ve||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(F||se!==L)&&fO(l,A,m,L),Ko=!1;var fe=l.memoizedState;A.state=fe,od(l,m,A,x),ad(),se=l.memoizedState,F||fe!==se||Ko?(typeof we=="function"&&(i1(l,d,we,m),se=l.memoizedState),(Y=Ko||cO(l,d,Y,m,fe,se,L))?(ve||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(l.flags|=4194308)):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=se),A.props=m,A.state=se,A.context=L,m=Y):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{A=l.stateNode,Ib(o,l),L=l.memoizedProps,ve=pl(d,L),A.props=ve,we=l.pendingProps,fe=A.context,se=d.contextType,Y=Ru,typeof se=="object"&&se!==null&&(Y=Kn(se)),F=d.getDerivedStateFromProps,(se=typeof F=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(L!==we||fe!==Y)&&fO(l,A,m,Y),Ko=!1,fe=l.memoizedState,A.state=fe,od(l,m,A,x),ad();var me=l.memoizedState;L!==we||fe!==me||Ko||o!==null&&o.dependencies!==null&&gm(o.dependencies)?(typeof F=="function"&&(i1(l,d,F,m),me=l.memoizedState),(ve=Ko||cO(l,d,ve,m,fe,me,Y)||o!==null&&o.dependencies!==null&&gm(o.dependencies))?(se||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(m,me,Y),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(m,me,Y)),typeof A.componentDidUpdate=="function"&&(l.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof A.componentDidUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=me),A.props=m,A.state=me,A.context=Y,m=ve):(typeof A.componentDidUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=1024),m=!1)}return A=m,Im(o,l),m=(l.flags&128)!==0,A||m?(A=l.stateNode,d=m&&typeof d.getDerivedStateFromError!="function"?null:A.render(),l.flags|=1,o!==null&&m?(l.child=dl(l,o.child,null,x),l.child=dl(l,null,d,x)):Yn(o,l,d,x),l.memoizedState=A.state,o=l.child):o=Ua(o,l,x),o}function kO(o,l,d,m){return ol(),l.flags|=256,Yn(o,l,d,m),l.child}var u1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function c1(o){return{baseLanes:o,cachePool:mC()}}function f1(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=Hr),o}function CO(o,l,d){var m=l.pendingProps,x=!1,A=(l.flags&128)!==0,L;if((L=A)||(L=o!==null&&o.memoizedState===null?!1:(ln.current&2)!==0),L&&(x=!0,l.flags&=-129),L=(l.flags&32)!==0,l.flags&=-33,o===null){if(ht){if(x?Qo(l):Zo(),(o=$t)?(o=IT(o,li),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ho!==null?{id:Xi,overflow:Ji}:null,retryLane:536870912,hydrationErrors:null},d=oC(o),d.return=l,l.child=d,Vn=l,$t=null)):o=null,o===null)throw qo(l);return K1(o)?l.lanes=32:l.lanes=536870912,null}var F=m.children;return m=m.fallback,x?(Zo(),x=l.mode,F=Lm({mode:"hidden",children:F},x),m=al(m,x,d,null),F.return=l,m.return=l,F.sibling=m,l.child=F,m=l.child,m.memoizedState=c1(d),m.childLanes=f1(o,L,d),l.memoizedState=u1,fd(null,m)):(Qo(l),d1(l,F))}var Y=o.memoizedState;if(Y!==null&&(F=Y.dehydrated,F!==null)){if(A)l.flags&256?(Qo(l),l.flags&=-257,l=h1(o,l,d)):l.memoizedState!==null?(Zo(),l.child=o.child,l.flags|=128,l=null):(Zo(),F=m.fallback,x=l.mode,m=Lm({mode:"visible",children:m.children},x),F=al(F,x,d,null),F.flags|=2,m.return=l,F.return=l,m.sibling=F,l.child=m,dl(l,o.child,null,d),m=l.child,m.memoizedState=c1(d),m.childLanes=f1(o,L,d),l.memoizedState=u1,l=fd(null,m));else if(Qo(l),K1(F)){if(L=F.nextSibling&&F.nextSibling.dataset,L)var se=L.dgst;L=se,m=Error(r(419)),m.stack="",m.digest=L,Jf({value:m,source:null,stack:null}),l=h1(o,l,d)}else if(gn||zu(o,l,d,!1),L=(d&o.childLanes)!==0,gn||L){if(L=Dt,L!==null&&(m=Vp(L,d),m!==0&&m!==Y.retryLane))throw Y.retryLane=m,il(o,m),Mr(L,o,m),s1;V1(F)||qm(),l=h1(o,l,d)}else V1(F)?(l.flags|=192,l.child=o.child,l=null):(o=Y.treeContext,$t=ci(F.nextSibling),Vn=l,ht=!0,Go=null,li=!1,o!==null&&uC(l,o),l=d1(l,m.children),l.flags|=4096);return l}return x?(Zo(),F=m.fallback,x=l.mode,Y=o.child,se=Y.sibling,m=Ia(Y,{mode:"hidden",children:m.children}),m.subtreeFlags=Y.subtreeFlags&65011712,se!==null?F=Ia(se,F):(F=al(F,x,d,null),F.flags|=2),F.return=l,m.return=l,m.sibling=F,l.child=m,fd(null,m),m=l.child,F=o.child.memoizedState,F===null?F=c1(d):(x=F.cachePool,x!==null?(Y=pn._currentValue,x=x.parent!==Y?{parent:Y,pool:Y}:x):x=mC(),F={baseLanes:F.baseLanes|d,cachePool:x}),m.memoizedState=F,m.childLanes=f1(o,L,d),l.memoizedState=u1,fd(o.child,m)):(Qo(l),d=o.child,o=d.sibling,d=Ia(d,{mode:"visible",children:m.children}),d.return=l,d.sibling=null,o!==null&&(L=l.deletions,L===null?(l.deletions=[o],l.flags|=16):L.push(o)),l.child=d,l.memoizedState=null,d)}function d1(o,l){return l=Lm({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function Lm(o,l){return o=$r(22,o,null,l),o.lanes=0,o}function h1(o,l,d){return dl(l,o.child,null,d),o=d1(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function OO(o,l,d){o.lanes|=l;var m=o.alternate;m!==null&&(m.lanes|=l),Ob(o.return,l,d)}function p1(o,l,d,m,x,A){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:x,treeForkCount:A}:(L.isBackwards=l,L.rendering=null,L.renderingStartTime=0,L.last=m,L.tail=d,L.tailMode=x,L.treeForkCount=A)}function TO(o,l,d){var m=l.pendingProps,x=m.revealOrder,A=m.tail;m=m.children;var L=ln.current,F=(L&2)!==0;if(F?(L=L&1|2,l.flags|=128):L&=1,X(ln,L),Yn(o,l,m,d),m=ht?Xf:0,!F&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&OO(o,d,l);else if(o.tag===19)OO(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(x){case"forwards":for(d=l.child,x=null;d!==null;)o=d.alternate,o!==null&&Em(o)===null&&(x=d),d=d.sibling;d=x,d===null?(x=l.child,l.child=null):(x=d.sibling,d.sibling=null),p1(l,!1,x,d,A,m);break;case"backwards":case"unstable_legacy-backwards":for(d=null,x=l.child,l.child=null;x!==null;){if(o=x.alternate,o!==null&&Em(o)===null){l.child=x;break}o=x.sibling,x.sibling=d,d=x,x=o}p1(l,!0,d,null,A,m);break;case"together":p1(l,!1,null,null,void 0,m);break;default:l.memoizedState=null}return l.child}function Ua(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),es|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(zu(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Ia(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Ia(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function m1(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&gm(o)))}function Q7(o,l,d){switch(l.tag){case 3:ie(l,l.stateNode.containerInfo),Vo(l,pn,o.memoizedState.cache),ol();break;case 27:case 5:pe(l);break;case 4:ie(l,l.stateNode.containerInfo);break;case 10:Vo(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Bb(l),null;break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(Qo(l),l.flags|=128,null):(d&l.child.childLanes)!==0?CO(o,l,d):(Qo(l),o=Ua(o,l,d),o!==null?o.sibling:null);Qo(l);break;case 19:var x=(o.flags&128)!==0;if(m=(d&l.childLanes)!==0,m||(zu(o,l,d,!1),m=(d&l.childLanes)!==0),x){if(m)return TO(o,l,d);l.flags|=128}if(x=l.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),X(ln,ln.current),m)break;return null;case 22:return l.lanes=0,xO(o,l,d,l.pendingProps);case 24:Vo(l,pn,o.memoizedState.cache)}return Ua(o,l,d)}function MO(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)gn=!0;else{if(!m1(o,d)&&(l.flags&128)===0)return gn=!1,Q7(o,l,d);gn=(o.flags&131072)!==0}else gn=!1,ht&&(l.flags&1048576)!==0&&lC(l,Xf,l.index);switch(l.lanes=0,l.tag){case 16:e:{var m=l.pendingProps;if(o=cl(l.elementType),l.type=o,typeof o=="function")wb(o)?(m=pl(o,m),l.tag=1,l=AO(null,l,o,m,d)):(l.tag=0,l=l1(null,l,o,m,d));else{if(o!=null){var x=o.$$typeof;if(x===S){l.tag=11,l=yO(null,l,o,m,d);break e}else if(x===M){l.tag=14,l=bO(null,l,o,m,d);break e}}throw l=I(o)||o,Error(r(306,l,""))}}return l;case 0:return l1(o,l,l.type,l.pendingProps,d);case 1:return m=l.type,x=pl(m,l.pendingProps),AO(o,l,m,x,d);case 3:e:{if(ie(l,l.stateNode.containerInfo),o===null)throw Error(r(387));m=l.pendingProps;var A=l.memoizedState;x=A.element,Ib(o,l),od(l,m,null,d);var L=l.memoizedState;if(m=L.cache,Vo(l,pn,m),m!==A.cache&&Tb(l,[pn],d,!0),ad(),m=L.element,A.isDehydrated)if(A={element:m,isDehydrated:!1,cache:L.cache},l.updateQueue.baseState=A,l.memoizedState=A,l.flags&256){l=kO(o,l,m,d);break e}else if(m!==x){x=ai(Error(r(424)),l),Jf(x),l=kO(o,l,m,d);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for($t=ci(o.firstChild),Vn=l,ht=!0,Go=null,li=!0,d=xC(l,null,m,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(ol(),m===x){l=Ua(o,l,d);break e}Yn(o,l,m,d)}l=l.child}return l;case 26:return Im(o,l),o===null?(d=UT(l.type,null,l.pendingProps,null))?l.memoizedState=d:ht||(d=l.type,o=l.pendingProps,m=Xm(he.current).createElement(d),m[En]=l,m[or]=o,Wn(m,d,o),hn(m),l.stateNode=m):l.memoizedState=UT(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return pe(l),o===null&&ht&&(m=l.stateNode=jT(l.type,l.pendingProps,he.current),Vn=l,li=!0,x=$t,as(l.type)?(Y1=x,$t=ci(m.firstChild)):$t=x),Yn(o,l,l.pendingProps.children,d),Im(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&ht&&((x=m=$t)&&(m=kF(m,l.type,l.pendingProps,li),m!==null?(l.stateNode=m,Vn=l,$t=ci(m.firstChild),li=!1,x=!0):x=!1),x||qo(l)),pe(l),x=l.type,A=l.pendingProps,L=o!==null?o.memoizedProps:null,m=A.children,H1(x,A)?m=null:L!==null&&H1(x,L)&&(l.flags|=32),l.memoizedState!==null&&(x=Fb(o,l,U7,null,null,d),kd._currentValue=x),Im(o,l),Yn(o,l,m,d),l.child;case 6:return o===null&&ht&&((o=d=$t)&&(d=CF(d,l.pendingProps,li),d!==null?(l.stateNode=d,Vn=l,$t=null,o=!0):o=!1),o||qo(l)),null;case 13:return CO(o,l,d);case 4:return ie(l,l.stateNode.containerInfo),m=l.pendingProps,o===null?l.child=dl(l,null,m,d):Yn(o,l,m,d),l.child;case 11:return yO(o,l,l.type,l.pendingProps,d);case 7:return Yn(o,l,l.pendingProps,d),l.child;case 8:return Yn(o,l,l.pendingProps.children,d),l.child;case 12:return Yn(o,l,l.pendingProps.children,d),l.child;case 10:return m=l.pendingProps,Vo(l,l.type,m.value),Yn(o,l,m.children,d),l.child;case 9:return x=l.type._context,m=l.pendingProps.children,ll(l),x=Kn(x),m=m(x),l.flags|=1,Yn(o,l,m,d),l.child;case 14:return bO(o,l,l.type,l.pendingProps,d);case 15:return wO(o,l,l.type,l.pendingProps,d);case 19:return TO(o,l,d);case 31:return W7(o,l,d);case 22:return xO(o,l,d,l.pendingProps);case 24:return ll(l),m=Kn(pn),o===null?(x=Nb(),x===null&&(x=Dt,A=Mb(),x.pooledCache=A,A.refCount++,A!==null&&(x.pooledCacheLanes|=d),x=A),l.memoizedState={parent:m,cache:x},Db(l),Vo(l,pn,x)):((o.lanes&d)!==0&&(Ib(o,l),od(l,null,null,d),ad()),x=o.memoizedState,A=l.memoizedState,x.parent!==m?(x={parent:m,cache:m},l.memoizedState=x,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=x),Vo(l,pn,m)):(m=A.cache,Vo(l,pn,m),m!==x.cache&&Tb(l,[pn],d,!0))),Yn(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Fa(o){o.flags|=4}function g1(o,l,d,m,x){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(x&335544128)===x)if(o.stateNode.complete)o.flags|=8192;else if(rT())o.flags|=8192;else throw fl=wm,Rb}else o.flags&=-16777217}function PO(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!VT(l))if(rT())o.flags|=8192;else throw fl=wm,Rb}function zm(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?Hp():536870912,o.lanes|=l,Wu|=l)}function dd(o,l){if(!ht)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Bt(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,m=0;if(l)for(var x=o.child;x!==null;)d|=x.lanes|x.childLanes,m|=x.subtreeFlags&65011712,m|=x.flags&65011712,x.return=o,x=x.sibling;else for(x=o.child;x!==null;)d|=x.lanes|x.childLanes,m|=x.subtreeFlags,m|=x.flags,x.return=o,x=x.sibling;return o.subtreeFlags|=m,o.childLanes=d,l}function Z7(o,l,d){var m=l.pendingProps;switch(Eb(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(l),null;case 1:return Bt(l),null;case 3:return d=l.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),ja(pn),J(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Lu(l)?Fa(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,kb())),Bt(l),null;case 26:var x=l.type,A=l.memoizedState;return o===null?(Fa(l),A!==null?(Bt(l),PO(l,A)):(Bt(l),g1(l,x,null,m,d))):A?A!==o.memoizedState?(Fa(l),Bt(l),PO(l,A)):(Bt(l),l.flags&=-16777217):(o=o.memoizedProps,o!==m&&Fa(l),Bt(l),g1(l,x,o,m,d)),null;case 27:if(ye(l),d=he.current,x=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&Fa(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Bt(l),null}o=ee.current,Lu(l)?cC(l):(o=jT(x,m,d),l.stateNode=o,Fa(l))}return Bt(l),null;case 5:if(ye(l),x=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&Fa(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Bt(l),null}if(A=ee.current,Lu(l))cC(l);else{var L=Xm(he.current);switch(A){case 1:A=L.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:A=L.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":A=L.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":A=L.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":A=L.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof m.is=="string"?L.createElement("select",{is:m.is}):L.createElement("select"),m.multiple?A.multiple=!0:m.size&&(A.size=m.size);break;default:A=typeof m.is=="string"?L.createElement(x,{is:m.is}):L.createElement(x)}}A[En]=l,A[or]=m;e:for(L=l.child;L!==null;){if(L.tag===5||L.tag===6)A.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===l)break e;for(;L.sibling===null;){if(L.return===null||L.return===l)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}l.stateNode=A;e:switch(Wn(A,x,m),x){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Fa(l)}}return Bt(l),g1(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==m&&Fa(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(o=he.current,Lu(l)){if(o=l.stateNode,d=l.memoizedProps,m=null,x=Vn,x!==null)switch(x.tag){case 27:case 5:m=x.memoizedProps}o[En]=l,o=!!(o.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||CT(o.nodeValue,d)),o||qo(l,!0)}else o=Xm(o).createTextNode(m),o[En]=l,l.stateNode=o}return Bt(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(m=Lu(l),d!==null){if(o===null){if(!m)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[En]=l}else ol(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Bt(l),o=!1}else d=kb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(Ur(l),l):(Ur(l),null);if((l.flags&128)!==0)throw Error(r(558))}return Bt(l),null;case 13:if(m=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(x=Lu(l),m!==null&&m.dehydrated!==null){if(o===null){if(!x)throw Error(r(318));if(x=l.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[En]=l}else ol(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Bt(l),x=!1}else x=kb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=x),x=!0;if(!x)return l.flags&256?(Ur(l),l):(Ur(l),null)}return Ur(l),(l.flags&128)!==0?(l.lanes=d,l):(d=m!==null,o=o!==null&&o.memoizedState!==null,d&&(m=l.child,x=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(x=m.alternate.memoizedState.cachePool.pool),A=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==x&&(m.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),zm(l,l.updateQueue),Bt(l),null);case 4:return J(),o===null&&j1(l.stateNode.containerInfo),Bt(l),null;case 10:return ja(l.type),Bt(l),null;case 19:if(K(ln),m=l.memoizedState,m===null)return Bt(l),null;if(x=(l.flags&128)!==0,A=m.rendering,A===null)if(x)dd(m,!1);else{if(en!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(A=Em(o),A!==null){for(l.flags|=128,dd(m,!1),o=A.updateQueue,l.updateQueue=o,zm(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)aC(d,o),d=d.sibling;return X(ln,ln.current&1|2),ht&&La(l,m.treeForkCount),l.child}o=o.sibling}m.tail!==null&&ae()>Fm&&(l.flags|=128,x=!0,dd(m,!1),l.lanes=4194304)}else{if(!x)if(o=Em(A),o!==null){if(l.flags|=128,x=!0,o=o.updateQueue,l.updateQueue=o,zm(l,o),dd(m,!0),m.tail===null&&m.tailMode==="hidden"&&!A.alternate&&!ht)return Bt(l),null}else 2*ae()-m.renderingStartTime>Fm&&d!==536870912&&(l.flags|=128,x=!0,dd(m,!1),l.lanes=4194304);m.isBackwards?(A.sibling=l.child,l.child=A):(o=m.last,o!==null?o.sibling=A:l.child=A,m.last=A)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=ae(),o.sibling=null,d=ln.current,X(ln,x?d&1|2:d&1),ht&&La(l,m.treeForkCount),o):(Bt(l),null);case 22:case 23:return Ur(l),$b(),m=l.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(d&536870912)!==0&&(l.flags&128)===0&&(Bt(l),l.subtreeFlags&6&&(l.flags|=8192)):Bt(l),d=l.updateQueue,d!==null&&zm(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==d&&(l.flags|=2048),o!==null&&K(ul),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),ja(pn),Bt(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function X7(o,l){switch(Eb(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ja(pn),J(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return ye(l),null;case 31:if(l.memoizedState!==null){if(Ur(l),l.alternate===null)throw Error(r(340));ol()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(Ur(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ol()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return K(ln),null;case 4:return J(),null;case 10:return ja(l.type),null;case 22:case 23:return Ur(l),$b(),o!==null&&K(ul),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return ja(pn),null;case 25:return null;default:return null}}function NO(o,l){switch(Eb(l),l.tag){case 3:ja(pn),J();break;case 26:case 27:case 5:ye(l);break;case 4:J();break;case 31:l.memoizedState!==null&&Ur(l);break;case 13:Ur(l);break;case 19:K(ln);break;case 10:ja(l.type);break;case 22:case 23:Ur(l),$b(),o!==null&&K(ul);break;case 24:ja(pn)}}function hd(o,l){try{var d=l.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var x=m.next;d=x;do{if((d.tag&o)===o){m=void 0;var A=d.create,L=d.inst;m=A(),L.destroy=m}d=d.next}while(d!==x)}}catch(F){Ot(l,l.return,F)}}function Xo(o,l,d){try{var m=l.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var A=x.next;m=A;do{if((m.tag&o)===o){var L=m.inst,F=L.destroy;if(F!==void 0){L.destroy=void 0,x=l;var Y=d,se=F;try{se()}catch(ve){Ot(x,Y,ve)}}}m=m.next}while(m!==A)}}catch(ve){Ot(l,l.return,ve)}}function RO(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{SC(l,d)}catch(m){Ot(o,o.return,m)}}}function DO(o,l,d){d.props=pl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(m){Ot(o,l,m)}}function pd(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof d=="function"?o.refCleanup=d(m):d.current=m}}catch(x){Ot(o,l,x)}}function ea(o,l){var d=o.ref,m=o.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(x){Ot(o,l,x)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(x){Ot(o,l,x)}else d.current=null}function IO(o){var l=o.type,d=o.memoizedProps,m=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(x){Ot(o,o.return,x)}}function v1(o,l,d){try{var m=o.stateNode;wF(m,o.type,d,l),m[or]=l}catch(x){Ot(o,o.return,x)}}function LO(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&as(o.type)||o.tag===4}function y1(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||LO(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.tag===27&&as(o.type)||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 b1(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Ra));else if(m!==4&&(m===27&&as(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(b1(o,l,d),o=o.sibling;o!==null;)b1(o,l,d),o=o.sibling}function jm(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(m!==4&&(m===27&&as(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(jm(o,l,d),o=o.sibling;o!==null;)jm(o,l,d),o=o.sibling}function zO(o){var l=o.stateNode,d=o.memoizedProps;try{for(var m=o.type,x=l.attributes;x.length;)l.removeAttributeNode(x[0]);Wn(l,m,d),l[En]=o,l[or]=d}catch(A){Ot(o,o.return,A)}}var Ha=!1,vn=!1,w1=!1,jO=typeof WeakSet=="function"?WeakSet:Set,In=null;function J7(o,l){if(o=o.containerInfo,U1=ag,o=Qk(o),hb(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var x=m.anchorOffset,A=m.focusNode;m=m.focusOffset;try{d.nodeType,A.nodeType}catch{d=null;break e}var L=0,F=-1,Y=-1,se=0,ve=0,we=o,fe=null;t:for(;;){for(var me;we!==d||x!==0&&we.nodeType!==3||(F=L+x),we!==A||m!==0&&we.nodeType!==3||(Y=L+m),we.nodeType===3&&(L+=we.nodeValue.length),(me=we.firstChild)!==null;)fe=we,we=me;for(;;){if(we===o)break t;if(fe===d&&++se===x&&(F=L),fe===A&&++ve===m&&(Y=L),(me=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=me}d=F===-1||Y===-1?null:{start:F,end:Y}}else d=null}d=d||{start:0,end:0}}else d=null;for(F1={focusedElem:o,selectionRange:d},ag=!1,In=l;In!==null;)if(l=In,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,In=o;else for(;In!==null;){switch(l=In,A=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)x=o[d],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&A!==null){o=void 0,d=l,x=A.memoizedProps,A=A.memoizedState,m=d.stateNode;try{var Le=pl(d.type,x);o=m.getSnapshotBeforeUpdate(Le,A),m.__reactInternalSnapshotBeforeUpdate=o}catch(We){Ot(d,d.return,We)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)q1(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":q1(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,In=o;break}In=l.return}}function $O(o,l,d){var m=d.flags;switch(d.tag){case 0:case 11:case 15:qa(o,d),m&4&&hd(5,d);break;case 1:if(qa(o,d),m&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(L){Ot(d,d.return,L)}else{var x=pl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(x,l,o.__reactInternalSnapshotBeforeUpdate)}catch(L){Ot(d,d.return,L)}}m&64&&RO(d),m&512&&pd(d,d.return);break;case 3:if(qa(o,d),m&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{SC(o,l)}catch(L){Ot(d,d.return,L)}}break;case 27:l===null&&m&4&&zO(d);case 26:case 5:qa(o,d),l===null&&m&4&&IO(d),m&512&&pd(d,d.return);break;case 12:qa(o,d);break;case 31:qa(o,d),m&4&&FO(o,d);break;case 13:qa(o,d),m&4&&HO(o,d),m&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=lF.bind(null,d),OF(o,d))));break;case 22:if(m=d.memoizedState!==null||Ha,!m){l=l!==null&&l.memoizedState!==null||vn,x=Ha;var A=vn;Ha=m,(vn=l)&&!A?Va(o,d,(d.subtreeFlags&8772)!==0):qa(o,d),Ha=x,vn=A}break;case 30:break;default:qa(o,d)}}function BO(o){var l=o.alternate;l!==null&&(o.alternate=null,BO(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Bf(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Gt=null,kr=!1;function Ga(o,l,d){for(d=d.child;d!==null;)UO(o,l,d),d=d.sibling}function UO(o,l,d){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Xt,d)}catch{}switch(d.tag){case 26:vn||ea(d,l),Ga(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:vn||ea(d,l);var m=Gt,x=kr;as(d.type)&&(Gt=d.stateNode,kr=!1),Ga(o,l,d),Sd(d.stateNode),Gt=m,kr=x;break;case 5:vn||ea(d,l);case 6:if(m=Gt,x=kr,Gt=null,Ga(o,l,d),Gt=m,kr=x,Gt!==null)if(kr)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(d.stateNode)}catch(A){Ot(d,l,A)}else try{Gt.removeChild(d.stateNode)}catch(A){Ot(d,l,A)}break;case 18:Gt!==null&&(kr?(o=Gt,RT(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),rc(o)):RT(Gt,d.stateNode));break;case 4:m=Gt,x=kr,Gt=d.stateNode.containerInfo,kr=!0,Ga(o,l,d),Gt=m,kr=x;break;case 0:case 11:case 14:case 15:Xo(2,d,l),vn||Xo(4,d,l),Ga(o,l,d);break;case 1:vn||(ea(d,l),m=d.stateNode,typeof m.componentWillUnmount=="function"&&DO(d,l,m)),Ga(o,l,d);break;case 21:Ga(o,l,d);break;case 22:vn=(m=vn)||d.memoizedState!==null,Ga(o,l,d),vn=m;break;default:Ga(o,l,d)}}function FO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{rc(o)}catch(d){Ot(l,l.return,d)}}}function HO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{rc(o)}catch(d){Ot(l,l.return,d)}}function eF(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new jO),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new jO),l;default:throw Error(r(435,o.tag))}}function $m(o,l){var d=eF(o);l.forEach(function(m){if(!d.has(m)){d.add(m);var x=uF.bind(null,o,m);m.then(x,x)}})}function Cr(o,l){var d=l.deletions;if(d!==null)for(var m=0;m<d.length;m++){var x=d[m],A=o,L=l,F=L;e:for(;F!==null;){switch(F.tag){case 27:if(as(F.type)){Gt=F.stateNode,kr=!1;break e}break;case 5:Gt=F.stateNode,kr=!1;break e;case 3:case 4:Gt=F.stateNode.containerInfo,kr=!0;break e}F=F.return}if(Gt===null)throw Error(r(160));UO(A,L,x),Gt=null,kr=!1,A=x.alternate,A!==null&&(A.return=null),x.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)GO(l,o),l=l.sibling}var Mi=null;function GO(o,l){var d=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Cr(l,o),Or(o),m&4&&(Xo(3,o,o.return),hd(3,o),Xo(5,o,o.return));break;case 1:Cr(l,o),Or(o),m&512&&(vn||d===null||ea(d,d.return)),m&64&&Ha&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?m:d.concat(m))));break;case 26:var x=Mi;if(Cr(l,o),Or(o),m&512&&(vn||d===null||ea(d,d.return)),m&4){var A=d!==null?d.memoizedState:null;if(m=o.memoizedState,d===null)if(m===null)if(o.stateNode===null){e:{m=o.type,d=o.memoizedProps,x=x.ownerDocument||x;t:switch(m){case"title":A=x.getElementsByTagName("title")[0],(!A||A[Xs]||A[En]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=x.createElement(m),x.head.insertBefore(A,x.querySelector("head > title"))),Wn(A,m,d),A[En]=o,hn(A),m=A;break e;case"link":var L=GT("link","href",x).get(m+(d.href||""));if(L){for(var F=0;F<L.length;F++)if(A=L[F],A.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&A.getAttribute("rel")===(d.rel==null?null:d.rel)&&A.getAttribute("title")===(d.title==null?null:d.title)&&A.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){L.splice(F,1);break t}}A=x.createElement(m),Wn(A,m,d),x.head.appendChild(A);break;case"meta":if(L=GT("meta","content",x).get(m+(d.content||""))){for(F=0;F<L.length;F++)if(A=L[F],A.getAttribute("content")===(d.content==null?null:""+d.content)&&A.getAttribute("name")===(d.name==null?null:d.name)&&A.getAttribute("property")===(d.property==null?null:d.property)&&A.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&A.getAttribute("charset")===(d.charSet==null?null:d.charSet)){L.splice(F,1);break t}}A=x.createElement(m),Wn(A,m,d),x.head.appendChild(A);break;default:throw Error(r(468,m))}A[En]=o,hn(A),m=A}o.stateNode=m}else qT(x,o.type,o.stateNode);else o.stateNode=HT(x,m,o.memoizedProps);else A!==m?(A===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):A.count--,m===null?qT(x,o.type,o.stateNode):HT(x,m,o.memoizedProps)):m===null&&o.stateNode!==null&&v1(o,o.memoizedProps,d.memoizedProps)}break;case 27:Cr(l,o),Or(o),m&512&&(vn||d===null||ea(d,d.return)),d!==null&&m&4&&v1(o,o.memoizedProps,d.memoizedProps);break;case 5:if(Cr(l,o),Or(o),m&512&&(vn||d===null||ea(d,d.return)),o.flags&32){x=o.stateNode;try{ku(x,"")}catch(Le){Ot(o,o.return,Le)}}m&4&&o.stateNode!=null&&(x=o.memoizedProps,v1(o,x,d!==null?d.memoizedProps:x)),m&1024&&(w1=!0);break;case 6:if(Cr(l,o),Or(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,d=o.stateNode;try{d.nodeValue=m}catch(Le){Ot(o,o.return,Le)}}break;case 3:if(tg=null,x=Mi,Mi=Jm(l.containerInfo),Cr(l,o),Mi=x,Or(o),m&4&&d!==null&&d.memoizedState.isDehydrated)try{rc(l.containerInfo)}catch(Le){Ot(o,o.return,Le)}w1&&(w1=!1,qO(o));break;case 4:m=Mi,Mi=Jm(o.stateNode.containerInfo),Cr(l,o),Or(o),Mi=m;break;case 12:Cr(l,o),Or(o);break;case 31:Cr(l,o),Or(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,$m(o,m)));break;case 13:Cr(l,o),Or(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Um=ae()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,$m(o,m)));break;case 22:x=o.memoizedState!==null;var Y=d!==null&&d.memoizedState!==null,se=Ha,ve=vn;if(Ha=se||x,vn=ve||Y,Cr(l,o),vn=ve,Ha=se,Or(o),m&8192)e:for(l=o.stateNode,l._visibility=x?l._visibility&-2:l._visibility|1,x&&(d===null||Y||Ha||vn||ml(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){Y=d=l;try{if(A=Y.stateNode,x)L=A.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{F=Y.stateNode;var we=Y.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;F.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(Le){Ot(Y,Y.return,Le)}}}else if(l.tag===6){if(d===null){Y=l;try{Y.stateNode.nodeValue=x?"":Y.memoizedProps}catch(Le){Ot(Y,Y.return,Le)}}}else if(l.tag===18){if(d===null){Y=l;try{var me=Y.stateNode;x?DT(me,!0):DT(Y.stateNode,!1)}catch(Le){Ot(Y,Y.return,Le)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=o.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,$m(o,d))));break;case 19:Cr(l,o),Or(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,$m(o,m)));break;case 30:break;case 21:break;default:Cr(l,o),Or(o)}}function Or(o){var l=o.flags;if(l&2){try{for(var d,m=o.return;m!==null;){if(LO(m)){d=m;break}m=m.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var x=d.stateNode,A=y1(o);jm(o,A,x);break;case 5:var L=d.stateNode;d.flags&32&&(ku(L,""),d.flags&=-33);var F=y1(o);jm(o,F,L);break;case 3:case 4:var Y=d.stateNode.containerInfo,se=y1(o);b1(o,se,Y);break;default:throw Error(r(161))}}catch(ve){Ot(o,o.return,ve)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function qO(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;qO(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function qa(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)$O(o,l.alternate,l),l=l.sibling}function ml(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Xo(4,l,l.return),ml(l);break;case 1:ea(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&DO(l,l.return,d),ml(l);break;case 27:Sd(l.stateNode);case 26:case 5:ea(l,l.return),ml(l);break;case 22:l.memoizedState===null&&ml(l);break;case 30:ml(l);break;default:ml(l)}o=o.sibling}}function Va(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,x=o,A=l,L=A.flags;switch(A.tag){case 0:case 11:case 15:Va(x,A,d),hd(4,A);break;case 1:if(Va(x,A,d),m=A,x=m.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(se){Ot(m,m.return,se)}if(m=A,x=m.updateQueue,x!==null){var F=m.stateNode;try{var Y=x.shared.hiddenCallbacks;if(Y!==null)for(x.shared.hiddenCallbacks=null,x=0;x<Y.length;x++)_C(Y[x],F)}catch(se){Ot(m,m.return,se)}}d&&L&64&&RO(A),pd(A,A.return);break;case 27:zO(A);case 26:case 5:Va(x,A,d),d&&m===null&&L&4&&IO(A),pd(A,A.return);break;case 12:Va(x,A,d);break;case 31:Va(x,A,d),d&&L&4&&FO(x,A);break;case 13:Va(x,A,d),d&&L&4&&HO(x,A);break;case 22:A.memoizedState===null&&Va(x,A,d),pd(A,A.return);break;case 30:break;default:Va(x,A,d)}l=l.sibling}}function x1(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&ed(d))}function _1(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&ed(o))}function Pi(o,l,d,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)VO(o,l,d,m),l=l.sibling}function VO(o,l,d,m){var x=l.flags;switch(l.tag){case 0:case 11:case 15:Pi(o,l,d,m),x&2048&&hd(9,l);break;case 1:Pi(o,l,d,m);break;case 3:Pi(o,l,d,m),x&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&ed(o)));break;case 12:if(x&2048){Pi(o,l,d,m),o=l.stateNode;try{var A=l.memoizedProps,L=A.id,F=A.onPostCommit;typeof F=="function"&&F(L,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Y){Ot(l,l.return,Y)}}else Pi(o,l,d,m);break;case 31:Pi(o,l,d,m);break;case 13:Pi(o,l,d,m);break;case 23:break;case 22:A=l.stateNode,L=l.alternate,l.memoizedState!==null?A._visibility&2?Pi(o,l,d,m):md(o,l):A._visibility&2?Pi(o,l,d,m):(A._visibility|=2,Vu(o,l,d,m,(l.subtreeFlags&10256)!==0||!1)),x&2048&&x1(L,l);break;case 24:Pi(o,l,d,m),x&2048&&_1(l.alternate,l);break;default:Pi(o,l,d,m)}}function Vu(o,l,d,m,x){for(x=x&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var A=o,L=l,F=d,Y=m,se=L.flags;switch(L.tag){case 0:case 11:case 15:Vu(A,L,F,Y,x),hd(8,L);break;case 23:break;case 22:var ve=L.stateNode;L.memoizedState!==null?ve._visibility&2?Vu(A,L,F,Y,x):md(A,L):(ve._visibility|=2,Vu(A,L,F,Y,x)),x&&se&2048&&x1(L.alternate,L);break;case 24:Vu(A,L,F,Y,x),x&&se&2048&&_1(L.alternate,L);break;default:Vu(A,L,F,Y,x)}l=l.sibling}}function md(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,m=l,x=m.flags;switch(m.tag){case 22:md(d,m),x&2048&&x1(m.alternate,m);break;case 24:md(d,m),x&2048&&_1(m.alternate,m);break;default:md(d,m)}l=l.sibling}}var gd=8192;function Ku(o,l,d){if(o.subtreeFlags&gd)for(o=o.child;o!==null;)KO(o,l,d),o=o.sibling}function KO(o,l,d){switch(o.tag){case 26:Ku(o,l,d),o.flags&gd&&o.memoizedState!==null&&BF(d,Mi,o.memoizedState,o.memoizedProps);break;case 5:Ku(o,l,d);break;case 3:case 4:var m=Mi;Mi=Jm(o.stateNode.containerInfo),Ku(o,l,d),Mi=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=gd,gd=16777216,Ku(o,l,d),gd=m):Ku(o,l,d));break;default:Ku(o,l,d)}}function YO(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function vd(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];In=m,QO(m,o)}YO(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)WO(o),o=o.sibling}function WO(o){switch(o.tag){case 0:case 11:case 15:vd(o),o.flags&2048&&Xo(9,o,o.return);break;case 3:vd(o);break;case 12:vd(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Bm(o)):vd(o);break;default:vd(o)}}function Bm(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];In=m,QO(m,o)}YO(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Xo(8,l,l.return),Bm(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Bm(l));break;default:Bm(l)}o=o.sibling}}function QO(o,l){for(;In!==null;){var d=In;switch(d.tag){case 0:case 11:case 15:Xo(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var m=d.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:ed(d.memoizedState.cache)}if(m=d.child,m!==null)m.return=d,In=m;else e:for(d=o;In!==null;){m=In;var x=m.sibling,A=m.return;if(BO(m),m===d){In=null;break e}if(x!==null){x.return=A,In=x;break e}In=A}}}var tF={getCacheForType:function(o){var l=Kn(pn),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return Kn(pn).controller.signal}},nF=typeof WeakMap=="function"?WeakMap:Map,St=0,Dt=null,st=null,ft=0,Ct=0,Fr=null,Jo=!1,Yu=!1,S1=!1,Ka=0,en=0,es=0,gl=0,E1=0,Hr=0,Wu=0,yd=null,Tr=null,A1=!1,Um=0,ZO=0,Fm=1/0,Hm=null,ts=null,An=0,ns=null,Qu=null,Ya=0,k1=0,C1=null,XO=null,bd=0,O1=null;function Gr(){return(St&2)!==0&&ft!==0?ft&-ft:j.T!==null?D1():Kp()}function JO(){if(Hr===0)if((ft&536870912)===0||ht){var o=wu;wu<<=1,(wu&3932160)===0&&(wu=262144),Hr=o}else Hr=536870912;return o=Br.current,o!==null&&(o.flags|=32),Hr}function Mr(o,l,d){(o===Dt&&(Ct===2||Ct===9)||o.cancelPendingCommit!==null)&&(Zu(o,0),rs(o,ft,Hr,!1)),Zs(o,d),((St&2)===0||o!==Dt)&&(o===Dt&&((St&2)===0&&(gl|=d),en===4&&rs(o,ft,Hr,!1)),ta(o))}function eT(o,l,d){if((St&6)!==0)throw Error(r(327));var m=!d&&(l&127)===0&&(l&o.expiredLanes)===0||Qs(o,l),x=m?aF(o,l):M1(o,l,!0),A=m;do{if(x===0){Yu&&!m&&rs(o,l,0,!1);break}else{if(d=o.current.alternate,A&&!rF(d)){x=M1(o,l,!1),A=!1;continue}if(x===2){if(A=l,o.errorRecoveryDisabledLanes&A)var L=0;else L=o.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){l=L;e:{var F=o;x=yd;var Y=F.current.memoizedState.isDehydrated;if(Y&&(Zu(F,L).flags|=256),L=M1(F,L,!1),L!==2){if(S1&&!Y){F.errorRecoveryDisabledLanes|=A,gl|=A,x=4;break e}A=Tr,Tr=x,A!==null&&(Tr===null?Tr=A:Tr.push.apply(Tr,A))}x=L}if(A=!1,x!==2)continue}}if(x===1){Zu(o,0),rs(o,l,0,!0);break}e:{switch(m=o,A=x,A){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:rs(m,l,Hr,!Jo);break e;case 2:Tr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(x=Um+300-ae(),10<x)){if(rs(m,l,Hr,!Jo),_u(m,0,!0)!==0)break e;Ya=l,m.timeoutHandle=PT(tT.bind(null,m,d,Tr,Hm,A1,l,Hr,gl,Wu,Jo,A,"Throttled",-0,0),x);break e}tT(m,d,Tr,Hm,A1,l,Hr,gl,Wu,Jo,A,null,-0,0)}}break}while(!0);ta(o)}function tT(o,l,d,m,x,A,L,F,Y,se,ve,we,fe,me){if(o.timeoutHandle=-1,we=l.subtreeFlags,we&8192||(we&16785408)===16785408){we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},KO(l,A,we);var Le=(A&62914560)===A?Um-ae():(A&4194048)===A?ZO-ae():0;if(Le=UF(we,Le),Le!==null){Ya=A,o.cancelPendingCommit=Le(uT.bind(null,o,l,A,d,m,x,L,F,Y,ve,we,null,fe,me)),rs(o,A,L,!se);return}}uT(o,l,A,d,m,x,L,F,Y)}function rF(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var m=0;m<d.length;m++){var x=d[m],A=x.getSnapshot;x=x.value;try{if(!jr(A(),x))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function rs(o,l,d,m){l&=~E1,l&=~gl,o.suspendedLanes|=l,o.pingedLanes&=~l,m&&(o.warmLanes|=l),m=o.expirationTimes;for(var x=l;0<x;){var A=31-Sn(x),L=1<<A;m[A]=-1,x&=~L}d!==0&&Gp(o,d,l)}function Gm(){return(St&6)===0?(wd(0),!1):!0}function T1(){if(st!==null){if(Ct===0)var o=st.return;else o=st,za=sl=null,qb(o),Uu=null,nd=0,o=st;for(;o!==null;)NO(o.alternate,o),o=o.return;st=null}}function Zu(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,SF(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),Ya=0,T1(),Dt=o,st=d=Ia(o.current,null),ft=l,Ct=0,Fr=null,Jo=!1,Yu=Qs(o,l),S1=!1,Wu=Hr=E1=gl=es=en=0,Tr=yd=null,A1=!1,(l&8)!==0&&(l|=l&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=l;0<m;){var x=31-Sn(m),A=1<<x;l|=o[x],m&=~A}return Ka=l,fm(),d}function nT(o,l){nt=null,j.H=cd,l===Bu||l===bm?(l=yC(),Ct=3):l===Rb?(l=yC(),Ct=4):Ct=l===s1?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Fr=l,st===null&&(en=1,Rm(o,ai(l,o.current)))}function rT(){var o=Br.current;return o===null?!0:(ft&4194048)===ft?ui===null:(ft&62914560)===ft||(ft&536870912)!==0?o===ui:!1}function iT(){var o=j.H;return j.H=cd,o===null?cd:o}function aT(){var o=j.A;return j.A=tF,o}function qm(){en=4,Jo||(ft&4194048)!==ft&&Br.current!==null||(Yu=!0),(es&134217727)===0&&(gl&134217727)===0||Dt===null||rs(Dt,ft,Hr,!1)}function M1(o,l,d){var m=St;St|=2;var x=iT(),A=aT();(Dt!==o||ft!==l)&&(Hm=null,Zu(o,l)),l=!1;var L=en;e:do try{if(Ct!==0&&st!==null){var F=st,Y=Fr;switch(Ct){case 8:T1(),L=6;break e;case 3:case 2:case 9:case 6:Br.current===null&&(l=!0);var se=Ct;if(Ct=0,Fr=null,Xu(o,F,Y,se),d&&Yu){L=0;break e}break;default:se=Ct,Ct=0,Fr=null,Xu(o,F,Y,se)}}iF(),L=en;break}catch(ve){nT(o,ve)}while(!0);return l&&o.shellSuspendCounter++,za=sl=null,St=m,j.H=x,j.A=A,st===null&&(Dt=null,ft=0,fm()),L}function iF(){for(;st!==null;)oT(st)}function aF(o,l){var d=St;St|=2;var m=iT(),x=aT();Dt!==o||ft!==l?(Hm=null,Fm=ae()+500,Zu(o,l)):Yu=Qs(o,l);e:do try{if(Ct!==0&&st!==null){l=st;var A=Fr;t:switch(Ct){case 1:Ct=0,Fr=null,Xu(o,l,A,1);break;case 2:case 9:if(gC(A)){Ct=0,Fr=null,sT(l);break}l=function(){Ct!==2&&Ct!==9||Dt!==o||(Ct=7),ta(o)},A.then(l,l);break e;case 3:Ct=7;break e;case 4:Ct=5;break e;case 7:gC(A)?(Ct=0,Fr=null,sT(l)):(Ct=0,Fr=null,Xu(o,l,A,7));break;case 5:var L=null;switch(st.tag){case 26:L=st.memoizedState;case 5:case 27:var F=st;if(L?VT(L):F.stateNode.complete){Ct=0,Fr=null;var Y=F.sibling;if(Y!==null)st=Y;else{var se=F.return;se!==null?(st=se,Vm(se)):st=null}break t}}Ct=0,Fr=null,Xu(o,l,A,5);break;case 6:Ct=0,Fr=null,Xu(o,l,A,6);break;case 8:T1(),en=6;break e;default:throw Error(r(462))}}oF();break}catch(ve){nT(o,ve)}while(!0);return za=sl=null,j.H=m,j.A=x,St=d,st!==null?0:(Dt=null,ft=0,fm(),en)}function oF(){for(;st!==null&&!W();)oT(st)}function oT(o){var l=MO(o.alternate,o,Ka);o.memoizedProps=o.pendingProps,l===null?Vm(o):st=l}function sT(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=EO(d,l,l.pendingProps,l.type,void 0,ft);break;case 11:l=EO(d,l,l.pendingProps,l.type.render,l.ref,ft);break;case 5:qb(l);default:NO(d,l),l=st=aC(l,Ka),l=MO(d,l,Ka)}o.memoizedProps=o.pendingProps,l===null?Vm(o):st=l}function Xu(o,l,d,m){za=sl=null,qb(l),Uu=null,nd=0;var x=l.return;try{if(Y7(o,x,l,d,ft)){en=1,Rm(o,ai(d,o.current)),st=null;return}}catch(A){if(x!==null)throw st=x,A;en=1,Rm(o,ai(d,o.current)),st=null;return}l.flags&32768?(ht||m===1?o=!0:Yu||(ft&536870912)!==0?o=!1:(Jo=o=!0,(m===2||m===9||m===3||m===6)&&(m=Br.current,m!==null&&m.tag===13&&(m.flags|=16384))),lT(l,o)):Vm(l)}function Vm(o){var l=o;do{if((l.flags&32768)!==0){lT(l,Jo);return}o=l.return;var d=Z7(l.alternate,l,Ka);if(d!==null){st=d;return}if(l=l.sibling,l!==null){st=l;return}st=l=o}while(l!==null);en===0&&(en=5)}function lT(o,l){do{var d=X7(o.alternate,o);if(d!==null){d.flags&=32767,st=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){st=o;return}st=o=d}while(o!==null);en=6,st=null}function uT(o,l,d,m,x,A,L,F,Y){o.cancelPendingCommit=null;do Km();while(An!==0);if((St&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(A=l.lanes|l.childLanes,A|=yb,Y0(o,d,A,L,F,Y),o===Dt&&(st=Dt=null,ft=0),Qu=l,ns=o,Ya=d,k1=A,C1=x,XO=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,cF(Re,function(){return pT(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=j.T,j.T=null,x=G.p,G.p=2,L=St,St|=4;try{J7(o,l,d)}finally{St=L,G.p=x,j.T=m}}An=1,cT(),fT(),dT()}}function cT(){if(An===1){An=0;var o=ns,l=Qu,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=j.T,j.T=null;var m=G.p;G.p=2;var x=St;St|=4;try{GO(l,o);var A=F1,L=Qk(o.containerInfo),F=A.focusedElem,Y=A.selectionRange;if(L!==F&&F&&F.ownerDocument&&Wk(F.ownerDocument.documentElement,F)){if(Y!==null&&hb(F)){var se=Y.start,ve=Y.end;if(ve===void 0&&(ve=se),"selectionStart"in F)F.selectionStart=se,F.selectionEnd=Math.min(ve,F.value.length);else{var we=F.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var me=fe.getSelection(),Le=F.textContent.length,We=Math.min(Y.start,Le),Pt=Y.end===void 0?We:Math.min(Y.end,Le);!me.extend&&We>Pt&&(L=Pt,Pt=We,We=L);var ne=Yk(F,We),Z=Yk(F,Pt);if(ne&&Z&&(me.rangeCount!==1||me.anchorNode!==ne.node||me.anchorOffset!==ne.offset||me.focusNode!==Z.node||me.focusOffset!==Z.offset)){var oe=we.createRange();oe.setStart(ne.node,ne.offset),me.removeAllRanges(),We>Pt?(me.addRange(oe),me.extend(Z.node,Z.offset)):(oe.setEnd(Z.node,Z.offset),me.addRange(oe))}}}}for(we=[],me=F;me=me.parentNode;)me.nodeType===1&&we.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<we.length;F++){var be=we[F];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}ag=!!U1,F1=U1=null}finally{St=x,G.p=m,j.T=d}}o.current=l,An=2}}function fT(){if(An===2){An=0;var o=ns,l=Qu,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=j.T,j.T=null;var m=G.p;G.p=2;var x=St;St|=4;try{$O(o,l.alternate,l)}finally{St=x,G.p=m,j.T=d}}An=3}}function dT(){if(An===4||An===3){An=0,re();var o=ns,l=Qu,d=Ya,m=XO;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?An=5:(An=0,Qu=ns=null,hT(o,o.pendingLanes));var x=o.pendingLanes;if(x===0&&(ts=null),$f(d),l=l.stateNode,qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(Xt,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=j.T,x=G.p,G.p=2,j.T=null;try{for(var A=o.onRecoverableError,L=0;L<m.length;L++){var F=m[L];A(F.value,{componentStack:F.stack})}}finally{j.T=l,G.p=x}}(Ya&3)!==0&&Km(),ta(o),x=o.pendingLanes,(d&261930)!==0&&(x&42)!==0?o===O1?bd++:(bd=0,O1=o):bd=0,wd(0)}}function hT(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,ed(l)))}function Km(){return cT(),fT(),dT(),pT()}function pT(){if(An!==5)return!1;var o=ns,l=k1;k1=0;var d=$f(Ya),m=j.T,x=G.p;try{G.p=32>d?32:d,j.T=null,d=C1,C1=null;var A=ns,L=Ya;if(An=0,Qu=ns=null,Ya=0,(St&6)!==0)throw Error(r(331));var F=St;if(St|=4,WO(A.current),VO(A,A.current,L,d),St=F,wd(0,!1),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Xt,A)}catch{}return!0}finally{G.p=x,j.T=m,hT(o,l)}}function mT(o,l,d){l=ai(d,l),l=o1(o.stateNode,l,2),o=Wo(o,l,2),o!==null&&(Zs(o,2),ta(o))}function Ot(o,l,d){if(o.tag===3)mT(o,o,d);else for(;l!==null;){if(l.tag===3){mT(l,o,d);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(ts===null||!ts.has(m))){o=ai(d,o),d=gO(2),m=Wo(l,d,2),m!==null&&(vO(d,m,l,o),Zs(m,2),ta(m));break}}l=l.return}}function P1(o,l,d){var m=o.pingCache;if(m===null){m=o.pingCache=new nF;var x=new Set;m.set(l,x)}else x=m.get(l),x===void 0&&(x=new Set,m.set(l,x));x.has(d)||(S1=!0,x.add(d),o=sF.bind(null,o,l,d),l.then(o,o))}function sF(o,l,d){var m=o.pingCache;m!==null&&m.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Dt===o&&(ft&d)===d&&(en===4||en===3&&(ft&62914560)===ft&&300>ae()-Um?(St&2)===0&&Zu(o,0):E1|=d,Wu===ft&&(Wu=0)),ta(o)}function gT(o,l){l===0&&(l=Hp()),o=il(o,l),o!==null&&(Zs(o,l),ta(o))}function lF(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),gT(o,d)}function uF(o,l){var d=0;switch(o.tag){case 31:case 13:var m=o.stateNode,x=o.memoizedState;x!==null&&(d=x.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),gT(o,d)}function cF(o,l){return ir(o,l)}var Ym=null,Ju=null,N1=!1,Wm=!1,R1=!1,is=0;function ta(o){o!==Ju&&o.next===null&&(Ju===null?Ym=Ju=o:Ju=Ju.next=o),Wm=!0,N1||(N1=!0,dF())}function wd(o,l){if(!R1&&Wm){R1=!0;do for(var d=!1,m=Ym;m!==null;){if(o!==0){var x=m.pendingLanes;if(x===0)var A=0;else{var L=m.suspendedLanes,F=m.pingedLanes;A=(1<<31-Sn(42|o)+1)-1,A&=x&~(L&~F),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(d=!0,wT(m,A))}else A=ft,A=_u(m,m===Dt?A:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(A&3)===0||Qs(m,A)||(d=!0,wT(m,A));m=m.next}while(d);R1=!1}}function fF(){vT()}function vT(){Wm=N1=!1;var o=0;is!==0&&_F()&&(o=is);for(var l=ae(),d=null,m=Ym;m!==null;){var x=m.next,A=yT(m,l);A===0?(m.next=null,d===null?Ym=x:d.next=x,x===null&&(Ju=d)):(d=m,(o!==0||(A&3)!==0)&&(Wm=!0)),m=x}An!==0&&An!==5||wd(o),is!==0&&(is=0)}function yT(o,l){for(var d=o.suspendedLanes,m=o.pingedLanes,x=o.expirationTimes,A=o.pendingLanes&-62914561;0<A;){var L=31-Sn(A),F=1<<L,Y=x[L];Y===-1?((F&d)===0||(F&m)!==0)&&(x[L]=K0(F,l)):Y<=l&&(o.expiredLanes|=F),A&=~F}if(l=Dt,d=ft,d=_u(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,d===0||o===l&&(Ct===2||Ct===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&ar(m),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||Qs(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(m!==null&&ar(m),$f(d)){case 2:case 8:d=Ee;break;case 32:d=Re;break;case 268435456:d=ct;break;default:d=Re}return m=bT.bind(null,o),d=ir(d,m),o.callbackPriority=l,o.callbackNode=d,l}return m!==null&&m!==null&&ar(m),o.callbackPriority=2,o.callbackNode=null,2}function bT(o,l){if(An!==0&&An!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(Km()&&o.callbackNode!==d)return null;var m=ft;return m=_u(o,o===Dt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(eT(o,m,l),yT(o,ae()),o.callbackNode!=null&&o.callbackNode===d?bT.bind(null,o):null)}function wT(o,l){if(Km())return null;eT(o,l,!0)}function dF(){EF(function(){(St&6)!==0?ir(_e,fF):vT()})}function D1(){if(is===0){var o=ju;o===0&&(o=Oa,Oa<<=1,(Oa&261888)===0&&(Oa=256)),is=o}return is}function xT(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:rm(""+o)}function _T(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function hF(o,l,d,m,x){if(l==="submit"&&d&&d.stateNode===x){var A=xT((x[or]||null).action),L=m.submitter;L&&(l=(l=L[or]||null)?xT(l.formAction):L.getAttribute("formAction"),l!==null&&(A=l,L=null));var F=new sm("action","action",null,m,x);o.push({event:F,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(is!==0){var Y=L?_T(x,L):new FormData(x);e1(d,{pending:!0,data:Y,method:x.method,action:A},null,Y)}}else typeof A=="function"&&(F.preventDefault(),Y=L?_T(x,L):new FormData(x),e1(d,{pending:!0,data:Y,method:x.method,action:A},A,Y))},currentTarget:x}]})}}for(var I1=0;I1<vb.length;I1++){var L1=vb[I1],pF=L1.toLowerCase(),mF=L1[0].toUpperCase()+L1.slice(1);Ti(pF,"on"+mF)}Ti(Jk,"onAnimationEnd"),Ti(eC,"onAnimationIteration"),Ti(tC,"onAnimationStart"),Ti("dblclick","onDoubleClick"),Ti("focusin","onFocus"),Ti("focusout","onBlur"),Ti(P7,"onTransitionRun"),Ti(N7,"onTransitionStart"),Ti(R7,"onTransitionCancel"),Ti(nC,"onTransitionEnd"),Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xd="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(" "),gF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xd));function ST(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var m=o[d],x=m.event;m=m.listeners;e:{var A=void 0;if(l)for(var L=m.length-1;0<=L;L--){var F=m[L],Y=F.instance,se=F.currentTarget;if(F=F.listener,Y!==A&&x.isPropagationStopped())break e;A=F,x.currentTarget=se;try{A(x)}catch(ve){cm(ve)}x.currentTarget=null,A=Y}else for(L=0;L<m.length;L++){if(F=m[L],Y=F.instance,se=F.currentTarget,F=F.listener,Y!==A&&x.isPropagationStopped())break e;A=F,x.currentTarget=se;try{A(x)}catch(ve){cm(ve)}x.currentTarget=null,A=Y}}}}function lt(o,l){var d=l[Su];d===void 0&&(d=l[Su]=new Set);var m=o+"__bubble";d.has(m)||(ET(l,o,2,!1),d.add(m))}function z1(o,l,d){var m=0;l&&(m|=4),ET(d,o,m,l)}var Qm="_reactListening"+Math.random().toString(36).slice(2);function j1(o){if(!o[Qm]){o[Qm]=!0,Zp.forEach(function(d){d!=="selectionchange"&&(gF.has(d)||z1(d,!1,o),z1(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Qm]||(l[Qm]=!0,z1("selectionchange",!1,l))}}function ET(o,l,d,m){switch(JT(l)){case 2:var x=GF;break;case 8:x=qF;break;default:x=J1}d=x.bind(null,l,d,o),x=void 0,!ib||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(x=!0),m?x!==void 0?o.addEventListener(l,d,{capture:!0,passive:x}):o.addEventListener(l,d,!0):x!==void 0?o.addEventListener(l,d,{passive:x}):o.addEventListener(l,d,!1)}function $1(o,l,d,m,x){var A=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var F=m.stateNode.containerInfo;if(F===x)break;if(L===4)for(L=m.return;L!==null;){var Y=L.tag;if((Y===3||Y===4)&&L.stateNode.containerInfo===x)return;L=L.return}for(;F!==null;){if(L=Lo(F),L===null)return;if(Y=L.tag,Y===5||Y===6||Y===26||Y===27){m=A=L;continue e}F=F.parentNode}}m=m.return}Tk(function(){var se=A,ve=nb(d),we=[];e:{var fe=rC.get(o);if(fe!==void 0){var me=sm,Le=o;switch(o){case"keypress":if(am(d)===0)break e;case"keydown":case"keyup":me=u7;break;case"focusin":Le="focus",me=lb;break;case"focusout":Le="blur",me=lb;break;case"beforeblur":case"afterblur":me=lb;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=Nk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=ZU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=d7;break;case Jk:case eC:case tC:me=e7;break;case nC:me=p7;break;case"scroll":case"scrollend":me=WU;break;case"wheel":me=g7;break;case"copy":case"cut":case"paste":me=n7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=Dk;break;case"toggle":case"beforetoggle":me=y7}var We=(l&4)!==0,Pt=!We&&(o==="scroll"||o==="scrollend"),ne=We?fe!==null?fe+"Capture":null:fe;We=[];for(var Z=se,oe;Z!==null;){var be=Z;if(oe=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||oe===null||ne===null||(be=Hf(Z,ne),be!=null&&We.push(_d(Z,be,oe))),Pt)break;Z=Z.return}0<We.length&&(fe=new me(fe,Le,null,d,ve),we.push({event:fe,listeners:We}))}}if((l&7)===0){e:{if(fe=o==="mouseover"||o==="pointerover",me=o==="mouseout"||o==="pointerout",fe&&d!==tb&&(Le=d.relatedTarget||d.fromElement)&&(Lo(Le)||Le[Ma]))break e;if((me||fe)&&(fe=ve.window===ve?ve:(fe=ve.ownerDocument)?fe.defaultView||fe.parentWindow:window,me?(Le=d.relatedTarget||d.toElement,me=se,Le=Le?Lo(Le):null,Le!==null&&(Pt=a(Le),We=Le.tag,Le!==Pt||We!==5&&We!==27&&We!==6)&&(Le=null)):(me=null,Le=se),me!==Le)){if(We=Nk,be="onMouseLeave",ne="onMouseEnter",Z="mouse",(o==="pointerout"||o==="pointerover")&&(We=Dk,be="onPointerLeave",ne="onPointerEnter",Z="pointer"),Pt=me==null?fe:jo(me),oe=Le==null?fe:jo(Le),fe=new We(be,Z+"leave",me,d,ve),fe.target=Pt,fe.relatedTarget=oe,be=null,Lo(ve)===se&&(We=new We(ne,Z+"enter",Le,d,ve),We.target=oe,We.relatedTarget=Pt,be=We),Pt=be,me&&Le)t:{for(We=vF,ne=me,Z=Le,oe=0,be=ne;be;be=We(be))oe++;be=0;for(var Ve=Z;Ve;Ve=We(Ve))be++;for(;0<oe-be;)ne=We(ne),oe--;for(;0<be-oe;)Z=We(Z),be--;for(;oe--;){if(ne===Z||Z!==null&&ne===Z.alternate){We=ne;break t}ne=We(ne),Z=We(Z)}We=null}else We=null;me!==null&&AT(we,fe,me,We,!1),Le!==null&&Pt!==null&&AT(we,Pt,Le,We,!0)}}e:{if(fe=se?jo(se):window,me=fe.nodeName&&fe.nodeName.toLowerCase(),me==="select"||me==="input"&&fe.type==="file")var yt=Fk;else if(Bk(fe))if(Hk)yt=O7;else{yt=k7;var Fe=A7}else me=fe.nodeName,!me||me.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?se&&eb(se.elementType)&&(yt=Fk):yt=C7;if(yt&&(yt=yt(o,se))){Uk(we,yt,d,ve);break e}Fe&&Fe(o,fe,se),o==="focusout"&&se&&fe.type==="number"&&se.memoizedProps.value!=null&&Ff(fe,"number",fe.value)}switch(Fe=se?jo(se):window,o){case"focusin":(Bk(Fe)||Fe.contentEditable==="true")&&(Mu=Fe,pb=se,Zf=null);break;case"focusout":Zf=pb=Mu=null;break;case"mousedown":mb=!0;break;case"contextmenu":case"mouseup":case"dragend":mb=!1,Zk(we,d,ve);break;case"selectionchange":if(M7)break;case"keydown":case"keyup":Zk(we,d,ve)}var rt;if(cb)e:{switch(o){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else Tu?jk(o,d)&&(dt="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(dt="onCompositionStart");dt&&(Ik&&d.locale!=="ko"&&(Tu||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Tu&&(rt=Mk()):(Fo=ve,ab="value"in Fo?Fo.value:Fo.textContent,Tu=!0)),Fe=Zm(se,dt),0<Fe.length&&(dt=new Rk(dt,o,null,d,ve),we.push({event:dt,listeners:Fe}),rt?dt.data=rt:(rt=$k(d),rt!==null&&(dt.data=rt)))),(rt=w7?x7(o,d):_7(o,d))&&(dt=Zm(se,"onBeforeInput"),0<dt.length&&(Fe=new Rk("onBeforeInput","beforeinput",null,d,ve),we.push({event:Fe,listeners:dt}),Fe.data=rt)),hF(we,o,se,d,ve)}ST(we,l)})}function _d(o,l,d){return{instance:o,listener:l,currentTarget:d}}function Zm(o,l){for(var d=l+"Capture",m=[];o!==null;){var x=o,A=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||A===null||(x=Hf(o,d),x!=null&&m.unshift(_d(o,x,A)),x=Hf(o,l),x!=null&&m.push(_d(o,x,A))),o.tag===3)return m;o=o.return}return[]}function vF(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function AT(o,l,d,m,x){for(var A=l._reactName,L=[];d!==null&&d!==m;){var F=d,Y=F.alternate,se=F.stateNode;if(F=F.tag,Y!==null&&Y===m)break;F!==5&&F!==26&&F!==27||se===null||(Y=se,x?(se=Hf(d,A),se!=null&&L.unshift(_d(d,se,Y))):x||(se=Hf(d,A),se!=null&&L.push(_d(d,se,Y)))),d=d.return}L.length!==0&&o.push({event:l,listeners:L})}var yF=/\r\n?/g,bF=/\u0000|\uFFFD/g;function kT(o){return(typeof o=="string"?o:""+o).replace(yF,`
|
|
49
|
+
`).replace(bF,"")}function CT(o,l){return l=kT(l),kT(o)===l}function Mt(o,l,d,m,x,A){switch(d){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||ku(o,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&ku(o,""+m);break;case"className":Au(o,"class",m);break;case"tabIndex":Au(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Au(o,d,m);break;case"style":Ck(o,m,A);break;case"data":if(l!=="object"){Au(o,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=rm(""+m),o.setAttribute(d,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(d==="formAction"?(l!=="input"&&Mt(o,l,"name",x.name,x,null),Mt(o,l,"formEncType",x.formEncType,x,null),Mt(o,l,"formMethod",x.formMethod,x,null),Mt(o,l,"formTarget",x.formTarget,x,null)):(Mt(o,l,"encType",x.encType,x,null),Mt(o,l,"method",x.method,x,null),Mt(o,l,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=rm(""+m),o.setAttribute(d,m);break;case"onClick":m!=null&&(o.onclick=Ra);break;case"onScroll":m!=null&<("scroll",o);break;case"onScrollEnd":m!=null&<("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}d=rm(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""+m):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":m===!0?o.setAttribute(d,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,m):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(d,m):o.removeAttribute(d);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(d):o.setAttribute(d,m);break;case"popover":lt("beforetoggle",o),lt("toggle",o),Eu(o,"popover",m);break;case"xlinkActuate":Oi(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Oi(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Oi(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Oi(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Oi(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Oi(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Oi(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Oi(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Oi(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Eu(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=KU.get(d)||d,Eu(o,d,m))}}function B1(o,l,d,m,x,A){switch(d){case"style":Ck(o,m,A);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof m=="string"?ku(o,m):(typeof m=="number"||typeof m=="bigint")&&ku(o,""+m);break;case"onScroll":m!=null&<("scroll",o);break;case"onScrollEnd":m!=null&<("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xp.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(x=d.endsWith("Capture"),l=d.slice(2,x?d.length-7:void 0),A=o[or]||null,A=A!=null?A[d]:null,typeof A=="function"&&o.removeEventListener(l,A,x),typeof m=="function")){typeof A!="function"&&A!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,m,x);break e}d in o?o[d]=m:m===!0?o.setAttribute(d,""):Eu(o,d,m)}}}function Wn(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",o),lt("load",o);var m=!1,x=!1,A;for(A in d)if(d.hasOwnProperty(A)){var L=d[A];if(L!=null)switch(A){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Mt(o,l,A,L,d,null)}}x&&Mt(o,l,"srcSet",d.srcSet,d,null),m&&Mt(o,l,"src",d.src,d,null);return;case"input":lt("invalid",o);var F=A=L=x=null,Y=null,se=null;for(m in d)if(d.hasOwnProperty(m)){var ve=d[m];if(ve!=null)switch(m){case"name":x=ve;break;case"type":L=ve;break;case"checked":Y=ve;break;case"defaultChecked":se=ve;break;case"value":A=ve;break;case"defaultValue":F=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,l));break;default:Mt(o,l,m,ve,d,null)}}nm(o,A,F,Y,se,L,x,!1);return;case"select":lt("invalid",o),m=L=A=null;for(x in d)if(d.hasOwnProperty(x)&&(F=d[x],F!=null))switch(x){case"value":A=F;break;case"defaultValue":L=F;break;case"multiple":m=F;default:Mt(o,l,x,F,d,null)}l=A,d=L,o.multiple=!!m,l!=null?Na(o,!!m,l,!1):d!=null&&Na(o,!!m,d,!0);return;case"textarea":lt("invalid",o),A=x=m=null;for(L in d)if(d.hasOwnProperty(L)&&(F=d[L],F!=null))switch(L){case"value":m=F;break;case"defaultValue":x=F;break;case"children":A=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:Mt(o,l,L,F,d,null)}Ak(o,m,x,A);return;case"option":for(Y in d)if(d.hasOwnProperty(Y)&&(m=d[Y],m!=null))switch(Y){case"selected":o.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Mt(o,l,Y,m,d,null)}return;case"dialog":lt("beforetoggle",o),lt("toggle",o),lt("cancel",o),lt("close",o);break;case"iframe":case"object":lt("load",o);break;case"video":case"audio":for(m=0;m<xd.length;m++)lt(xd[m],o);break;case"image":lt("error",o),lt("load",o);break;case"details":lt("toggle",o);break;case"embed":case"source":case"link":lt("error",o),lt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in d)if(d.hasOwnProperty(se)&&(m=d[se],m!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Mt(o,l,se,m,d,null)}return;default:if(eb(l)){for(ve in d)d.hasOwnProperty(ve)&&(m=d[ve],m!==void 0&&B1(o,l,ve,m,d,void 0));return}}for(F in d)d.hasOwnProperty(F)&&(m=d[F],m!=null&&Mt(o,l,F,m,d,null))}function wF(o,l,d,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,A=null,L=null,F=null,Y=null,se=null,ve=null;for(me in d){var we=d[me];if(d.hasOwnProperty(me)&&we!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":Y=we;default:m.hasOwnProperty(me)||Mt(o,l,me,null,m,we)}}for(var fe in m){var me=m[fe];if(we=d[fe],m.hasOwnProperty(fe)&&(me!=null||we!=null))switch(fe){case"type":A=me;break;case"name":x=me;break;case"checked":se=me;break;case"defaultChecked":ve=me;break;case"value":L=me;break;case"defaultValue":F=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,l));break;default:me!==we&&Mt(o,l,fe,me,m,we)}}el(o,L,F,Y,se,ve,A,x);return;case"select":me=L=F=fe=null;for(A in d)if(Y=d[A],d.hasOwnProperty(A)&&Y!=null)switch(A){case"value":break;case"multiple":me=Y;default:m.hasOwnProperty(A)||Mt(o,l,A,null,m,Y)}for(x in m)if(A=m[x],Y=d[x],m.hasOwnProperty(x)&&(A!=null||Y!=null))switch(x){case"value":fe=A;break;case"defaultValue":F=A;break;case"multiple":L=A;default:A!==Y&&Mt(o,l,x,A,m,Y)}l=F,d=L,m=me,fe!=null?Na(o,!!d,fe,!1):!!m!=!!d&&(l!=null?Na(o,!!d,l,!0):Na(o,!!d,d?[]:"",!1));return;case"textarea":me=fe=null;for(F in d)if(x=d[F],d.hasOwnProperty(F)&&x!=null&&!m.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Mt(o,l,F,null,m,x)}for(L in m)if(x=m[L],A=d[L],m.hasOwnProperty(L)&&(x!=null||A!=null))switch(L){case"value":fe=x;break;case"defaultValue":me=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==A&&Mt(o,l,L,x,m,A)}Ek(o,fe,me);return;case"option":for(var Le in d)if(fe=d[Le],d.hasOwnProperty(Le)&&fe!=null&&!m.hasOwnProperty(Le))switch(Le){case"selected":o.selected=!1;break;default:Mt(o,l,Le,null,m,fe)}for(Y in m)if(fe=m[Y],me=d[Y],m.hasOwnProperty(Y)&&fe!==me&&(fe!=null||me!=null))switch(Y){case"selected":o.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:Mt(o,l,Y,fe,m,me)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var We in d)fe=d[We],d.hasOwnProperty(We)&&fe!=null&&!m.hasOwnProperty(We)&&Mt(o,l,We,null,m,fe);for(se in m)if(fe=m[se],me=d[se],m.hasOwnProperty(se)&&fe!==me&&(fe!=null||me!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,l));break;default:Mt(o,l,se,fe,m,me)}return;default:if(eb(l)){for(var Pt in d)fe=d[Pt],d.hasOwnProperty(Pt)&&fe!==void 0&&!m.hasOwnProperty(Pt)&&B1(o,l,Pt,void 0,m,fe);for(ve in m)fe=m[ve],me=d[ve],!m.hasOwnProperty(ve)||fe===me||fe===void 0&&me===void 0||B1(o,l,ve,fe,m,me);return}}for(var ne in d)fe=d[ne],d.hasOwnProperty(ne)&&fe!=null&&!m.hasOwnProperty(ne)&&Mt(o,l,ne,null,m,fe);for(we in m)fe=m[we],me=d[we],!m.hasOwnProperty(we)||fe===me||fe==null&&me==null||Mt(o,l,we,fe,m,me)}function OT(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xF(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),m=0;m<d.length;m++){var x=d[m],A=x.transferSize,L=x.initiatorType,F=x.duration;if(A&&F&&OT(L)){for(L=0,F=x.responseEnd,m+=1;m<d.length;m++){var Y=d[m],se=Y.startTime;if(se>F)break;var ve=Y.transferSize,we=Y.initiatorType;ve&&OT(we)&&(Y=Y.responseEnd,L+=ve*(Y<F?1:(F-se)/(Y-se)))}if(--m,l+=8*(A+L)/(x.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var U1=null,F1=null;function Xm(o){return o.nodeType===9?o:o.ownerDocument}function TT(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function MT(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function H1(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var G1=null;function _F(){var o=window.event;return o&&o.type==="popstate"?o===G1?!1:(G1=o,!0):(G1=null,!1)}var PT=typeof setTimeout=="function"?setTimeout:void 0,SF=typeof clearTimeout=="function"?clearTimeout:void 0,NT=typeof Promise=="function"?Promise:void 0,EF=typeof queueMicrotask=="function"?queueMicrotask:typeof NT<"u"?function(o){return NT.resolve(null).then(o).catch(AF)}:PT;function AF(o){setTimeout(function(){throw o})}function as(o){return o==="head"}function RT(o,l){var d=l,m=0;do{var x=d.nextSibling;if(o.removeChild(d),x&&x.nodeType===8)if(d=x.data,d==="/$"||d==="/&"){if(m===0){o.removeChild(x),rc(l);return}m--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")m++;else if(d==="html")Sd(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,Sd(d);for(var A=d.firstChild;A;){var L=A.nextSibling,F=A.nodeName;A[Xs]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&A.rel.toLowerCase()==="stylesheet"||d.removeChild(A),A=L}}else d==="body"&&Sd(o.ownerDocument.body);d=x}while(d);rc(l)}function DT(o,l){var d=o;o=0;do{var m=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),m&&m.nodeType===8)if(d=m.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=m}while(d)}function q1(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":q1(d),Bf(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function kF(o,l,d,m){for(;o.nodeType===1;){var x=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Xs])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(A=o.getAttribute("rel"),A==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(A!==x.rel||o.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||o.getAttribute("title")!==(x.title==null?null:x.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(A=o.getAttribute("src"),(A!==(x.src==null?null:x.src)||o.getAttribute("type")!==(x.type==null?null:x.type)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&A&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var A=x.name==null?null:""+x.name;if(x.type==="hidden"&&o.getAttribute("name")===A)return o}else return o;if(o=ci(o.nextSibling),o===null)break}return null}function CF(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=ci(o.nextSibling),o===null))return null;return o}function IT(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ci(o.nextSibling),o===null))return null;return o}function V1(o){return o.data==="$?"||o.data==="$~"}function K1(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function OF(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var m=function(){l(),d.removeEventListener("DOMContentLoaded",m)};d.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function ci(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var Y1=null;function LT(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return ci(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function zT(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function jT(o,l,d){switch(l=Xm(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Sd(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Bf(o)}var fi=new Map,$T=new Set;function Jm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Wa=G.d;G.d={f:TF,r:MF,D:PF,C:NF,L:RF,m:DF,X:LF,S:IF,M:zF};function TF(){var o=Wa.f(),l=Gm();return o||l}function MF(o){var l=zo(o);l!==null&&l.tag===5&&l.type==="form"?nO(l):Wa.r(o)}var ec=typeof document>"u"?null:document;function BT(o,l,d){var m=ec;if(m&&typeof l=="string"&&l){var x=Er(l);x='link[rel="'+o+'"][href="'+x+'"]',typeof d=="string"&&(x+='[crossorigin="'+d+'"]'),$T.has(x)||($T.add(x),o={rel:o,crossOrigin:d,href:l},m.querySelector(x)===null&&(l=m.createElement("link"),Wn(l,"link",o),hn(l),m.head.appendChild(l)))}}function PF(o){Wa.D(o),BT("dns-prefetch",o,null)}function NF(o,l){Wa.C(o,l),BT("preconnect",o,l)}function RF(o,l,d){Wa.L(o,l,d);var m=ec;if(m&&o&&l){var x='link[rel="preload"][as="'+Er(l)+'"]';l==="image"&&d&&d.imageSrcSet?(x+='[imagesrcset="'+Er(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(x+='[imagesizes="'+Er(d.imageSizes)+'"]')):x+='[href="'+Er(o)+'"]';var A=x;switch(l){case"style":A=tc(o);break;case"script":A=nc(o)}fi.has(A)||(o=p({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),fi.set(A,o),m.querySelector(x)!==null||l==="style"&&m.querySelector(Ed(A))||l==="script"&&m.querySelector(Ad(A))||(l=m.createElement("link"),Wn(l,"link",o),hn(l),m.head.appendChild(l)))}}function DF(o,l){Wa.m(o,l);var d=ec;if(d&&o){var m=l&&typeof l.as=="string"?l.as:"script",x='link[rel="modulepreload"][as="'+Er(m)+'"][href="'+Er(o)+'"]',A=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=nc(o)}if(!fi.has(A)&&(o=p({rel:"modulepreload",href:o},l),fi.set(A,o),d.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Ad(A)))return}m=d.createElement("link"),Wn(m,"link",o),hn(m),d.head.appendChild(m)}}}function IF(o,l,d){Wa.S(o,l,d);var m=ec;if(m&&o){var x=$o(m).hoistableStyles,A=tc(o);l=l||"default";var L=x.get(A);if(!L){var F={loading:0,preload:null};if(L=m.querySelector(Ed(A)))F.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":l},d),(d=fi.get(A))&&W1(o,d);var Y=L=m.createElement("link");hn(Y),Wn(Y,"link",o),Y._p=new Promise(function(se,ve){Y.onload=se,Y.onerror=ve}),Y.addEventListener("load",function(){F.loading|=1}),Y.addEventListener("error",function(){F.loading|=2}),F.loading|=4,eg(L,l,m)}L={type:"stylesheet",instance:L,count:1,state:F},x.set(A,L)}}}function LF(o,l){Wa.X(o,l);var d=ec;if(d&&o){var m=$o(d).hoistableScripts,x=nc(o),A=m.get(x);A||(A=d.querySelector(Ad(x)),A||(o=p({src:o,async:!0},l),(l=fi.get(x))&&Q1(o,l),A=d.createElement("script"),hn(A),Wn(A,"link",o),d.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(x,A))}}function zF(o,l){Wa.M(o,l);var d=ec;if(d&&o){var m=$o(d).hoistableScripts,x=nc(o),A=m.get(x);A||(A=d.querySelector(Ad(x)),A||(o=p({src:o,async:!0,type:"module"},l),(l=fi.get(x))&&Q1(o,l),A=d.createElement("script"),hn(A),Wn(A,"link",o),d.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(x,A))}}function UT(o,l,d,m){var x=(x=he.current)?Jm(x):null;if(!x)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=tc(d.href),d=$o(x).hoistableStyles,m=d.get(l),m||(m={type:"style",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=tc(d.href);var A=$o(x).hoistableStyles,L=A.get(o);if(L||(x=x.ownerDocument||x,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(o,L),(A=x.querySelector(Ed(o)))&&!A._p&&(L.instance=A,L.state.loading=5),fi.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},fi.set(o,d),A||jF(x,o,d,L.state))),l&&m===null)throw Error(r(528,""));return L}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=nc(d),d=$o(x).hoistableScripts,m=d.get(l),m||(m={type:"script",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function tc(o){return'href="'+Er(o)+'"'}function Ed(o){return'link[rel="stylesheet"]['+o+"]"}function FT(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function jF(o,l,d,m){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=o.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),Wn(l,"link",d),hn(l),o.head.appendChild(l))}function nc(o){return'[src="'+Er(o)+'"]'}function Ad(o){return"script[async]"+o}function HT(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var m=o.querySelector('style[data-href~="'+Er(d.href)+'"]');if(m)return l.instance=m,hn(m),m;var x=p({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),hn(m),Wn(m,"style",x),eg(m,d.precedence,o),l.instance=m;case"stylesheet":x=tc(d.href);var A=o.querySelector(Ed(x));if(A)return l.state.loading|=4,l.instance=A,hn(A),A;m=FT(d),(x=fi.get(x))&&W1(m,x),A=(o.ownerDocument||o).createElement("link"),hn(A);var L=A;return L._p=new Promise(function(F,Y){L.onload=F,L.onerror=Y}),Wn(A,"link",m),l.state.loading|=4,eg(A,d.precedence,o),l.instance=A;case"script":return A=nc(d.src),(x=o.querySelector(Ad(A)))?(l.instance=x,hn(x),x):(m=d,(x=fi.get(A))&&(m=p({},d),Q1(m,x)),o=o.ownerDocument||o,x=o.createElement("script"),hn(x),Wn(x,"link",m),o.head.appendChild(x),l.instance=x);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,eg(m,d.precedence,o));return l.instance}function eg(o,l,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,A=x,L=0;L<m.length;L++){var F=m[L];if(F.dataset.precedence===l)A=F;else if(A!==x)break}A?A.parentNode.insertBefore(o,A.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function W1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function Q1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var tg=null;function GT(o,l,d){if(tg===null){var m=new Map,x=tg=new Map;x.set(d,m)}else x=tg,m=x.get(d),m||(m=new Map,x.set(d,m));if(m.has(o))return m;for(m.set(o,null),d=d.getElementsByTagName(o),x=0;x<d.length;x++){var A=d[x];if(!(A[Xs]||A[En]||o==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var L=A.getAttribute(l)||"";L=o+L;var F=m.get(L);F?F.push(A):m.set(L,[A])}}return m}function qT(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function $F(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return o=l.disabled,typeof l.precedence=="string"&&o==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function VT(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function BF(o,l,d,m){if(d.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var x=tc(m.href),A=l.querySelector(Ed(x));if(A){l=A._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=ng.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=A,hn(A);return}A=l.ownerDocument||l,m=FT(m),(x=fi.get(x))&&W1(m,x),A=A.createElement("link"),hn(A);var L=A;L._p=new Promise(function(F,Y){L.onload=F,L.onerror=Y}),Wn(A,"link",m),d.instance=A}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=ng.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var Z1=0;function UF(o,l){return o.stylesheets&&o.count===0&&ig(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var m=setTimeout(function(){if(o.stylesheets&&ig(o,o.stylesheets),o.unsuspend){var A=o.unsuspend;o.unsuspend=null,A()}},6e4+l);0<o.imgBytes&&Z1===0&&(Z1=62500*xF());var x=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&ig(o,o.stylesheets),o.unsuspend)){var A=o.unsuspend;o.unsuspend=null,A()}},(o.imgBytes>Z1?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(x)}}:null}function ng(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ig(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var rg=null;function ig(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,rg=new Map,l.forEach(FF,o),rg=null,ng.call(o))}function FF(o,l){if(!(l.state.loading&4)){var d=rg.get(o);if(d)var m=d.get(null);else{d=new Map,rg.set(o,d);for(var x=o.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<x.length;A++){var L=x[A];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(d.set(L.dataset.precedence,L),m=L)}m&&d.set(null,m)}x=l.instance,L=x.getAttribute("data-precedence"),A=d.get(L)||m,A===m&&d.set(null,x),d.set(L,x),this.count++,m=ng.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),A?A.parentNode.insertBefore(x,A.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(x,o.firstChild)),l.state.loading|=4}}var kd={$$typeof:E,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function HF(o,l,d,m,x,A,L,F,Y){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zf(0),this.hiddenUpdates=zf(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=A,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function KT(o,l,d,m,x,A,L,F,Y,se,ve,we){return o=new HF(o,l,d,L,Y,se,ve,we,F),l=1,A===!0&&(l|=24),A=$r(3,null,null,l),o.current=A,A.stateNode=o,l=Mb(),l.refCount++,o.pooledCache=l,l.refCount++,A.memoizedState={element:m,isDehydrated:d,cache:l},Db(A),o}function YT(o){return o?(o=Ru,o):Ru}function WT(o,l,d,m,x,A){x=YT(x),m.context===null?m.context=x:m.pendingContext=x,m=Yo(l),m.payload={element:d},A=A===void 0?null:A,A!==null&&(m.callback=A),d=Wo(o,m,l),d!==null&&(Mr(d,o,l),id(d,o,l))}function QT(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function X1(o,l){QT(o,l),(o=o.alternate)&&QT(o,l)}function ZT(o){if(o.tag===13||o.tag===31){var l=il(o,67108864);l!==null&&Mr(l,o,67108864),X1(o,67108864)}}function XT(o){if(o.tag===13||o.tag===31){var l=Gr();l=jf(l);var d=il(o,l);d!==null&&Mr(d,o,l),X1(o,l)}}var ag=!0;function GF(o,l,d,m){var x=j.T;j.T=null;var A=G.p;try{G.p=2,J1(o,l,d,m)}finally{G.p=A,j.T=x}}function qF(o,l,d,m){var x=j.T;j.T=null;var A=G.p;try{G.p=8,J1(o,l,d,m)}finally{G.p=A,j.T=x}}function J1(o,l,d,m){if(ag){var x=ew(m);if(x===null)$1(o,l,m,og,d),eM(o,m);else if(KF(x,o,l,d,m))m.stopPropagation();else if(eM(o,m),l&4&&-1<VF.indexOf(o)){for(;x!==null;){var A=zo(x);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var L=Ta(A.pendingLanes);if(L!==0){var F=A;for(F.pendingLanes|=2,F.entangledLanes|=2;L;){var Y=1<<31-Sn(L);F.entanglements[1]|=Y,L&=~Y}ta(A),(St&6)===0&&(Fm=ae()+500,wd(0))}}break;case 31:case 13:F=il(A,2),F!==null&&Mr(F,A,2),Gm(),X1(A,2)}if(A=ew(m),A===null&&$1(o,l,m,og,d),A===x)break;x=A}x!==null&&m.stopPropagation()}else $1(o,l,m,null,d)}}function ew(o){return o=nb(o),tw(o)}var og=null;function tw(o){if(og=null,o=Lo(o),o!==null){var l=a(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=s(l),o!==null)return o;o=null}else if(d===31){if(o=u(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return og=o,null}function JT(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case _e:return 2;case Ee:return 8;case Re:case Ze:return 32;case ct:return 268435456;default:return 32}default:return 32}}var nw=!1,os=null,ss=null,ls=null,Cd=new Map,Od=new Map,us=[],VF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eM(o,l){switch(o){case"focusin":case"focusout":os=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":Cd.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Od.delete(l.pointerId)}}function Td(o,l,d,m,x,A){return o===null||o.nativeEvent!==A?(o={blockedOn:l,domEventName:d,eventSystemFlags:m,nativeEvent:A,targetContainers:[x]},l!==null&&(l=zo(l),l!==null&&ZT(l)),o):(o.eventSystemFlags|=m,l=o.targetContainers,x!==null&&l.indexOf(x)===-1&&l.push(x),o)}function KF(o,l,d,m,x){switch(l){case"focusin":return os=Td(os,o,l,d,m,x),!0;case"dragenter":return ss=Td(ss,o,l,d,m,x),!0;case"mouseover":return ls=Td(ls,o,l,d,m,x),!0;case"pointerover":var A=x.pointerId;return Cd.set(A,Td(Cd.get(A)||null,o,l,d,m,x)),!0;case"gotpointercapture":return A=x.pointerId,Od.set(A,Td(Od.get(A)||null,o,l,d,m,x)),!0}return!1}function tM(o){var l=Lo(o.target);if(l!==null){var d=a(l);if(d!==null){if(l=d.tag,l===13){if(l=s(d),l!==null){o.blockedOn=l,Yp(o.priority,function(){XT(d)});return}}else if(l===31){if(l=u(d),l!==null){o.blockedOn=l,Yp(o.priority,function(){XT(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function sg(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=ew(o.nativeEvent);if(d===null){d=o.nativeEvent;var m=new d.constructor(d.type,d);tb=m,d.target.dispatchEvent(m),tb=null}else return l=zo(d),l!==null&&ZT(l),o.blockedOn=d,!1;l.shift()}return!0}function nM(o,l,d){sg(o)&&d.delete(l)}function YF(){nw=!1,os!==null&&sg(os)&&(os=null),ss!==null&&sg(ss)&&(ss=null),ls!==null&&sg(ls)&&(ls=null),Cd.forEach(nM),Od.forEach(nM)}function lg(o,l){o.blockedOn===l&&(o.blockedOn=null,nw||(nw=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,YF)))}var ug=null;function rM(o){ug!==o&&(ug=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ug===o&&(ug=null);for(var l=0;l<o.length;l+=3){var d=o[l],m=o[l+1],x=o[l+2];if(typeof m!="function"){if(tw(m||d)===null)continue;break}var A=zo(d);A!==null&&(o.splice(l,3),l-=3,e1(A,{pending:!0,data:x,method:d.method,action:m},m,x))}}))}function rc(o){function l(Y){return lg(Y,o)}os!==null&&lg(os,o),ss!==null&&lg(ss,o),ls!==null&&lg(ls,o),Cd.forEach(l),Od.forEach(l);for(var d=0;d<us.length;d++){var m=us[d];m.blockedOn===o&&(m.blockedOn=null)}for(;0<us.length&&(d=us[0],d.blockedOn===null);)tM(d),d.blockedOn===null&&us.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(m=0;m<d.length;m+=3){var x=d[m],A=d[m+1],L=x[or]||null;if(typeof A=="function")L||rM(d);else if(L){var F=null;if(A&&A.hasAttribute("formAction")){if(x=A,L=A[or]||null)F=L.formAction;else if(tw(x)!==null)continue}else F=L.action;typeof F=="function"?d[m+1]=F:(d.splice(m,3),m-=3),rM(d)}}}function iM(){function o(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(L){return x=L})},focusReset:"manual",scroll:"manual"})}function l(){x!==null&&(x(),x=null),m||setTimeout(d,20)}function d(){if(!m&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,x=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),x!==null&&(x(),x=null)}}}function rw(o){this._internalRoot=o}cg.prototype.render=rw.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,m=Gr();WT(d,m,o,l,null,null)},cg.prototype.unmount=rw.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;WT(o.current,2,null,o,null,null),Gm(),l[Ma]=null}};function cg(o){this._internalRoot=o}cg.prototype.unstable_scheduleHydration=function(o){if(o){var l=Kp();o={blockedOn:null,target:o,priority:l};for(var d=0;d<us.length&&l!==0&&l<us[d].priority;d++);us.splice(d,0,o),d===0&&tM(o)}};var aM=t.version;if(aM!=="19.2.4")throw Error(r(527,aM,"19.2.4"));G.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(l),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var WF={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fg.isDisabled&&fg.supportsFiber)try{Xt=fg.inject(WF),qn=fg}catch{}}return Pd.createRoot=function(o,l){if(!i(o))throw Error(r(299));var d=!1,m="",x=dO,A=hO,L=pO;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError)),l=KT(o,1,!1,null,null,d,m,null,x,A,L,iM),o[Ma]=l.current,j1(o),new rw(l)},Pd.hydrateRoot=function(o,l,d){if(!i(o))throw Error(r(299));var m=!1,x="",A=dO,L=hO,F=pO,Y=null;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(x=d.identifierPrefix),d.onUncaughtError!==void 0&&(A=d.onUncaughtError),d.onCaughtError!==void 0&&(L=d.onCaughtError),d.onRecoverableError!==void 0&&(F=d.onRecoverableError),d.formState!==void 0&&(Y=d.formState)),l=KT(o,1,!0,l,d??null,m,x,Y,A,L,F,iM),l.context=YT(null),d=l.current,m=Gr(),m=jf(m),x=Yo(m),x.callback=null,Wo(d,x,m),d=m,l.current.lanes=d,Zs(l,d),ta(l),o[Ma]=l.current,j1(o),new cg(l)},Pd.version="19.2.4",Pd}var gM;function lH(){if(gM)return sw.exports;gM=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(),sw.exports=sH(),sw.exports}var uH=lH();const S2e=ni(uH);var yf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ll,As,Dc,k4,cH=(k4=class extends yf{constructor(){super();qe(this,Ll);qe(this,As);qe(this,Dc);Te(this,Dc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Q(this,As)||this.setEventListener(Q(this,Dc))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,As))==null||t.call(this),Te(this,As,void 0))}setEventListener(t){var n;Te(this,Dc,t),(n=Q(this,As))==null||n.call(this),Te(this,As,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Q(this,Ll)!==t&&(Te(this,Ll,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Q(this,Ll)=="boolean"?Q(this,Ll):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ll=new WeakMap,As=new WeakMap,Dc=new WeakMap,k4),j2=new cH,fH={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ks,z2,C4,dH=(C4=class{constructor(){qe(this,ks,fH);qe(this,z2,!1)}setTimeoutProvider(e){Te(this,ks,e)}setTimeout(e,t){return Q(this,ks).setTimeout(e,t)}clearTimeout(e){Q(this,ks).clearTimeout(e)}setInterval(e,t){return Q(this,ks).setInterval(e,t)}clearInterval(e){Q(this,ks).clearInterval(e)}},ks=new WeakMap,z2=new WeakMap,C4),Ml=new dH;function hH(e){setTimeout(e,0)}var pH=typeof window>"u"||"Deno"in globalThis;function gr(){}function mH(e,t){return typeof e=="function"?e(t):e}function q_(e){return typeof e=="number"&&e>=0&&e!==1/0}function j4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t){return typeof e=="function"?e(t):e}function vi(e,t){return typeof e=="function"?e(t):e}function vM(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==$2(s,t.options))return!1}else if(!xh(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function yM(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ql(t.options.mutationKey)!==Ql(a))return!1}else if(!xh(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function $2(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ql)(e)}function Ql(e){return JSON.stringify(e,(t,n)=>V_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function xh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>xh(e[n],t[n])):!1}var gH=Object.prototype.hasOwnProperty;function B2(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=bM(e)&&bM(t);if(!r&&!(V_(e)&&V_(t)))return t;const a=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),u=s.length,c=r?new Array(u):{};let f=0;for(let h=0;h<u;h++){const p=r?h:s[h],g=e[p],v=t[p];if(g===v){c[p]=g,(r?h<a:gH.call(e,p))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){c[p]=v;continue}const y=B2(g,v,n+1);c[p]=y,y===g&&f++}return a===u&&f===a?e:c}function pv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function bM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function V_(e){if(!wM(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!wM(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wM(e){return Object.prototype.toString.call(e)==="[object Object]"}function vH(e){return new Promise(t=>{Ml.setTimeout(t,e)})}function K_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?B2(e,t):t}function yH(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var U2=Symbol();function $4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===U2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function F2(e,t){return typeof e=="function"?e(...t):!!e}function wH(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var _h=(()=>{let e=()=>pH;return{isServer(){return e()},setIsServer(t){e=t}}})();function Y_(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var xH=hH;function _H(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=xH;const a=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||s()}return c},batchCalls:u=>(...c)=>{a(()=>{u(...c)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var fn=_H(),Ic,Cs,Lc,O4,SH=(O4=class extends yf{constructor(){super();qe(this,Ic,!0);qe(this,Cs);qe(this,Lc);Te(this,Lc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Q(this,Cs)||this.setEventListener(Q(this,Lc))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,Cs))==null||t.call(this),Te(this,Cs,void 0))}setEventListener(t){var n;Te(this,Lc,t),(n=Q(this,Cs))==null||n.call(this),Te(this,Cs,t(this.setOnline.bind(this)))}setOnline(t){Q(this,Ic)!==t&&(Te(this,Ic,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Q(this,Ic)}},Ic=new WeakMap,Cs=new WeakMap,Lc=new WeakMap,O4),mv=new SH;function EH(e){return Math.min(1e3*2**e,3e4)}function B4(e){return(e??"online")==="online"?mv.isOnline():!0}var W_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function U4(e){let t=!1,n=0,r;const i=Y_(),a=()=>i.status!=="pending",s=b=>{var w;if(!a()){const _=new W_(b);g(_),(w=e.onCancel)==null||w.call(e,_)}},u=()=>{t=!0},c=()=>{t=!1},f=()=>j2.isFocused()&&(e.networkMode==="always"||mv.isOnline())&&e.canRun(),h=()=>B4(e.networkMode)&&e.canRun(),p=b=>{a()||(r==null||r(),i.resolve(b))},g=b=>{a()||(r==null||r(),i.reject(b))},v=()=>new Promise(b=>{var w;r=_=>{(a()||f())&&b(_)},(w=e.onPause)==null||w.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),y=()=>{if(a())return;let b;const w=n===0?e.initialPromise:void 0;try{b=w??e.fn()}catch(_){b=Promise.reject(_)}Promise.resolve(b).then(p).catch(_=>{var O;if(a())return;const C=e.retry??(_h.isServer()?0:3),E=e.retryDelay??EH,S=typeof E=="function"?E(n,_):E,T=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,_);if(t||!T){g(_);return}n++,(O=e.onFail)==null||O.call(e,n,_),vH(S).then(()=>f()?void 0:v()).then(()=>{t?g(_):y()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?y():v().then(y),i)}}var zl,T4,F4=(T4=class{constructor(){qe(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q_(this.gcTime)&&Te(this,zl,Ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_h.isServer()?1/0:300*1e3))}clearGcTimeout(){Q(this,zl)&&(Ml.clearTimeout(Q(this,zl)),Te(this,zl,void 0))}},zl=new WeakMap,T4),jl,zc,gi,$l,Ln,Zh,Bl,qr,H4,Ja,M4,AH=(M4=class extends F4{constructor(t){super();qe(this,qr);qe(this,jl);qe(this,zc);qe(this,gi);qe(this,$l);qe(this,Ln);qe(this,Zh);qe(this,Bl);Te(this,Bl,!1),Te(this,Zh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Te(this,$l,t.client),Te(this,gi,Q(this,$l).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Te(this,jl,_M(this.options)),this.state=t.state??Q(this,jl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,Ln))==null?void 0:t.promise}setOptions(t){if(this.options={...Q(this,Zh),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=_M(this.options);n.data!==void 0&&(this.setState(xM(n.data,n.dataUpdatedAt)),Te(this,jl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,gi).remove(this)}setData(t,n){const r=K_(this.state.data,t,this.options);return it(this,qr,Ja).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){it(this,qr,Ja).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Q(this,Ln))==null?void 0:r.promise;return(i=Q(this,Ln))==null||i.cancel(t),n?n.then(gr).catch(gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return Q(this,jl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>vi(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===U2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Is(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!j4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Q(this,Ln))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Q(this,Ln))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,gi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Q(this,Ln)&&(Q(this,Bl)||it(this,qr,H4).call(this)?Q(this,Ln).cancel({revert:!0}):Q(this,Ln).cancelRetry()),this.scheduleGc()),Q(this,gi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||it(this,qr,Ja).call(this,{type:"invalidate"})}async fetch(t,n){var c,f,h,p,g,v,y,b,w,_,C,E;if(this.state.fetchStatus!=="idle"&&((c=Q(this,Ln))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Q(this,Ln))return Q(this,Ln).continueRetry(),Q(this,Ln).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(T=>T.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Te(this,Bl,!0),r.signal)})},a=()=>{const S=$4(this.options,n),O=(()=>{const M={client:Q(this,$l),queryKey:this.queryKey,meta:this.meta};return i(M),M})();return Te(this,Bl,!1),this.options.persister?this.options.persister(S,O,this):S(O)},u=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Q(this,$l),state:this.state,fetchFn:a};return i(S),S})();(f=this.options.behavior)==null||f.onFetch(u,this),Te(this,zc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&it(this,qr,Ja).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),Te(this,Ln,U4({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:S=>{S instanceof W_&&S.revert&&this.setState({...Q(this,zc),fetchStatus:"idle"}),r.abort()},onFail:(S,T)=>{it(this,qr,Ja).call(this,{type:"failed",failureCount:S,error:T})},onPause:()=>{it(this,qr,Ja).call(this,{type:"pause"})},onContinue:()=>{it(this,qr,Ja).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const S=await Q(this,Ln).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(v=(g=Q(this,gi).config).onSuccess)==null||v.call(g,S,this),(b=(y=Q(this,gi).config).onSettled)==null||b.call(y,S,this.state.error,this),S}catch(S){if(S instanceof W_){if(S.silent)return Q(this,Ln).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw it(this,qr,Ja).call(this,{type:"error",error:S}),(_=(w=Q(this,gi).config).onError)==null||_.call(w,S,this),(E=(C=Q(this,gi).config).onSettled)==null||E.call(C,this.state.data,S,this),S}finally{this.scheduleGc()}}},jl=new WeakMap,zc=new WeakMap,gi=new WeakMap,$l=new WeakMap,Ln=new WeakMap,Zh=new WeakMap,Bl=new WeakMap,qr=new WeakSet,H4=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ja=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...G4(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...xM(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Te(this,zc,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),fn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Q(this,gi).notify({query:this,type:"updated",action:t})})},M4);function G4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:B4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xM(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _M(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Pr,pt,Xh,pr,Ul,jc,ro,Os,Jh,$c,Bc,Fl,Hl,Ts,Uc,kt,rh,Q_,Z_,X_,J_,eS,tS,nS,V4,P4,q4=(P4=class extends yf{constructor(t,n){super();qe(this,kt);qe(this,Pr);qe(this,pt);qe(this,Xh);qe(this,pr);qe(this,Ul);qe(this,jc);qe(this,ro);qe(this,Os);qe(this,Jh);qe(this,$c);qe(this,Bc);qe(this,Fl);qe(this,Hl);qe(this,Ts);qe(this,Uc,new Set);this.options=n,Te(this,Pr,t),Te(this,Os,null),Te(this,ro,Y_()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,pt).addObserver(this),SM(Q(this,pt),this.options)?it(this,kt,rh).call(this):this.updateResult(),it(this,kt,J_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rS(Q(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rS(Q(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,it(this,kt,eS).call(this),it(this,kt,tS).call(this),Q(this,pt).removeObserver(this)}setOptions(t){const n=this.options,r=Q(this,pt);if(this.options=Q(this,Pr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vi(this.options.enabled,Q(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");it(this,kt,nS).call(this),Q(this,pt).setOptions(this.options),n._defaulted&&!pv(this.options,n)&&Q(this,Pr).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,pt),observer:this});const i=this.hasListeners();i&&EM(Q(this,pt),r,this.options,n)&&it(this,kt,rh).call(this),this.updateResult(),i&&(Q(this,pt)!==r||vi(this.options.enabled,Q(this,pt))!==vi(n.enabled,Q(this,pt))||Is(this.options.staleTime,Q(this,pt))!==Is(n.staleTime,Q(this,pt)))&&it(this,kt,Q_).call(this);const a=it(this,kt,Z_).call(this);i&&(Q(this,pt)!==r||vi(this.options.enabled,Q(this,pt))!==vi(n.enabled,Q(this,pt))||a!==Q(this,Ts))&&it(this,kt,X_).call(this,a)}getOptimisticResult(t){const n=Q(this,Pr).getQueryCache().build(Q(this,Pr),t),r=this.createResult(n,t);return CH(this,r)&&(Te(this,pr,r),Te(this,jc,this.options),Te(this,Ul,Q(this,pt).state)),r}getCurrentResult(){return Q(this,pr)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Q(this,ro).status==="pending"&&Q(this,ro).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){Q(this,Uc).add(t)}getCurrentQuery(){return Q(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Q(this,Pr).defaultQueryOptions(t),r=Q(this,Pr).getQueryCache().build(Q(this,Pr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return it(this,kt,rh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,pr)))}createResult(t,n){var R;const r=Q(this,pt),i=this.options,a=Q(this,pr),s=Q(this,Ul),u=Q(this,jc),f=t!==r?t.state:Q(this,Xh),{state:h}=t;let p={...h},g=!1,v;if(n._optimisticResults){const z=this.hasListeners(),D=!z&&SM(t,n),N=z&&EM(t,r,n,i);(D||N)&&(p={...p,...G4(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=p;v=p.data;let _=!1;if(n.placeholderData!==void 0&&v===void 0&&w==="pending"){let z;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(z=a.data,_=!0):z=typeof n.placeholderData=="function"?n.placeholderData((R=Q(this,Bc))==null?void 0:R.state.data,Q(this,Bc)):n.placeholderData,z!==void 0&&(w="success",v=K_(a==null?void 0:a.data,z,n),g=!0)}if(n.select&&v!==void 0&&!_)if(a&&v===(s==null?void 0:s.data)&&n.select===Q(this,Jh))v=Q(this,$c);else try{Te(this,Jh,n.select),v=n.select(v),v=K_(a==null?void 0:a.data,v,n),Te(this,$c,v),Te(this,Os,null)}catch(z){Te(this,Os,z)}Q(this,Os)&&(y=Q(this,Os),v=Q(this,$c),b=Date.now(),w="error");const C=p.fetchStatus==="fetching",E=w==="pending",S=w==="error",T=E&&C,O=v!==void 0,P={status:w,fetchStatus:p.fetchStatus,isPending:E,isSuccess:w==="success",isError:S,isInitialLoading:T,isLoading:T,data:v,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!E,isLoadingError:S&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:S&&O,isStale:H2(t,n),refetch:this.refetch,promise:Q(this,ro),isEnabled:vi(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const z=P.data!==void 0,D=P.status==="error"&&!z,N=U=>{D?U.reject(P.error):z&&U.resolve(P.data)},$=()=>{const U=Te(this,ro,P.promise=Y_());N(U)},I=Q(this,ro);switch(I.status){case"pending":t.queryHash===r.queryHash&&N(I);break;case"fulfilled":(D||P.data!==I.value)&&$();break;case"rejected":(!D||P.error!==I.reason)&&$();break}}return P}updateResult(){const t=Q(this,pr),n=this.createResult(Q(this,pt),this.options);if(Te(this,Ul,Q(this,pt).state),Te(this,jc,this.options),Q(this,Ul).data!==void 0&&Te(this,Bc,Q(this,pt)),pv(n,t))return;Te(this,pr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!Q(this,Uc).size)return!0;const s=new Set(a??Q(this,Uc));return this.options.throwOnError&&s.add("error"),Object.keys(Q(this,pr)).some(u=>{const c=u;return Q(this,pr)[c]!==t[c]&&s.has(c)})};it(this,kt,V4).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&it(this,kt,J_).call(this)}},Pr=new WeakMap,pt=new WeakMap,Xh=new WeakMap,pr=new WeakMap,Ul=new WeakMap,jc=new WeakMap,ro=new WeakMap,Os=new WeakMap,Jh=new WeakMap,$c=new WeakMap,Bc=new WeakMap,Fl=new WeakMap,Hl=new WeakMap,Ts=new WeakMap,Uc=new WeakMap,kt=new WeakSet,rh=function(t){it(this,kt,nS).call(this);let n=Q(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gr)),n},Q_=function(){it(this,kt,eS).call(this);const t=Is(this.options.staleTime,Q(this,pt));if(_h.isServer()||Q(this,pr).isStale||!q_(t))return;const r=j4(Q(this,pr).dataUpdatedAt,t)+1;Te(this,Fl,Ml.setTimeout(()=>{Q(this,pr).isStale||this.updateResult()},r))},Z_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,pt)):this.options.refetchInterval)??!1},X_=function(t){it(this,kt,tS).call(this),Te(this,Ts,t),!(_h.isServer()||vi(this.options.enabled,Q(this,pt))===!1||!q_(Q(this,Ts))||Q(this,Ts)===0)&&Te(this,Hl,Ml.setInterval(()=>{(this.options.refetchIntervalInBackground||j2.isFocused())&&it(this,kt,rh).call(this)},Q(this,Ts)))},J_=function(){it(this,kt,Q_).call(this),it(this,kt,X_).call(this,it(this,kt,Z_).call(this))},eS=function(){Q(this,Fl)&&(Ml.clearTimeout(Q(this,Fl)),Te(this,Fl,void 0))},tS=function(){Q(this,Hl)&&(Ml.clearInterval(Q(this,Hl)),Te(this,Hl,void 0))},nS=function(){const t=Q(this,Pr).getQueryCache().build(Q(this,Pr),this.options);if(t===Q(this,pt))return;const n=Q(this,pt);Te(this,pt,t),Te(this,Xh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},V4=function(t){fn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Q(this,pr))}),Q(this,Pr).getQueryCache().notify({query:Q(this,pt),type:"observerResultsUpdated"})})},P4);function kH(e,t){return vi(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SM(e,t){return kH(e,t)||e.state.data!==void 0&&rS(e,t,t.refetchOnMount)}function rS(e,t,n){if(vi(t.enabled,e)!==!1&&Is(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&H2(e,t)}return!1}function EM(e,t,n,r){return(e!==t||vi(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&H2(e,n)}function H2(e,t){return vi(t.enabled,e)!==!1&&e.isStaleByTime(Is(t.staleTime,e))}function CH(e,t){return!pv(e.getCurrentResult(),t)}function gv(e){return{onFetch:(t,n)=>{var h,p,g,v,y;const r=t.options,i=(g=(p=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,a=((v=t.state.data)==null?void 0:v.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let b=!1;const w=E=>{wH(E,()=>t.signal,()=>b=!0)},_=$4(t.options,t.fetchOptions),C=async(E,S,T)=>{if(b)return Promise.reject();if(S==null&&E.pages.length)return Promise.resolve(E);const M=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return w(D),D})(),P=await _(M),{maxPages:R}=t.options,z=T?bH:yH;return{pages:z(E.pages,P,R),pageParams:z(E.pageParams,S,R)}};if(i&&a.length){const E=i==="backward",S=E?K4:iS,T={pages:a,pageParams:s},O=S(r,T);u=await C(T,O,E)}else{const E=e??a.length;do{const S=c===0?s[0]??r.initialPageParam:iS(r,u);if(c>0&&S==null)break;u=await C(u,S),c++}while(c<E)}return u};t.options.persister?t.fetchFn=()=>{var b,w;return(w=(b=t.options).persister)==null?void 0:w.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function iS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function K4(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function OH(e,t){return t?iS(e,t)!=null:!1}function TH(e,t){return!t||!e.getPreviousPageParam?!1:K4(e,t)!=null}var MH=class extends q4{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:gv()})}getOptimisticResult(e){return e.behavior=gv(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var y,b;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:u}=r,c=(b=(y=n.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=s&&c==="forward",h=i&&c==="forward",p=s&&c==="backward",g=i&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:OH(t,n.data),hasPreviousPage:TH(t,n.data),isFetchNextPageError:f,isFetchingNextPage:h,isFetchPreviousPageError:p,isFetchingPreviousPage:g,isRefetchError:u&&!f&&!p,isRefetching:a&&!h&&!g}}},ep,sa,lr,Gl,la,ys,N4,PH=(N4=class extends F4{constructor(t){super();qe(this,la);qe(this,ep);qe(this,sa);qe(this,lr);qe(this,Gl);Te(this,ep,t.client),this.mutationId=t.mutationId,Te(this,lr,t.mutationCache),Te(this,sa,[]),this.state=t.state||Y4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,sa).includes(t)||(Q(this,sa).push(t),this.clearGcTimeout(),Q(this,lr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Te(this,sa,Q(this,sa).filter(n=>n!==t)),this.scheduleGc(),Q(this,lr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,sa).length||(this.state.status==="pending"?this.scheduleGc():Q(this,lr).remove(this))}continue(){var t;return((t=Q(this,Gl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,u,c,f,h,p,g,v,y,b,w,_,C,E,S,T,O,M;const n=()=>{it(this,la,ys).call(this,{type:"continue"})},r={client:Q(this,ep),meta:this.options.meta,mutationKey:this.options.mutationKey};Te(this,Gl,U4({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,R)=>{it(this,la,ys).call(this,{type:"failed",failureCount:P,error:R})},onPause:()=>{it(this,la,ys).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,lr).canRun(this)}));const i=this.state.status==="pending",a=!Q(this,Gl).canStart();try{if(i)n();else{it(this,la,ys).call(this,{type:"pending",variables:t,isPaused:a}),Q(this,lr).config.onMutate&&await Q(this,lr).config.onMutate(t,this,r);const R=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t,r));R!==this.state.context&&it(this,la,ys).call(this,{type:"pending",context:R,variables:t,isPaused:a})}const P=await Q(this,Gl).start();return await((f=(c=Q(this,lr).config).onSuccess)==null?void 0:f.call(c,P,t,this.state.context,this,r)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,P,t,this.state.context,r)),await((v=(g=Q(this,lr).config).onSettled)==null?void 0:v.call(g,P,null,this.state.variables,this.state.context,this,r)),await((b=(y=this.options).onSettled)==null?void 0:b.call(y,P,null,t,this.state.context,r)),it(this,la,ys).call(this,{type:"success",data:P}),P}catch(P){try{await((_=(w=Q(this,lr).config).onError)==null?void 0:_.call(w,P,t,this.state.context,this,r))}catch(R){Promise.reject(R)}try{await((E=(C=this.options).onError)==null?void 0:E.call(C,P,t,this.state.context,r))}catch(R){Promise.reject(R)}try{await((T=(S=Q(this,lr).config).onSettled)==null?void 0:T.call(S,void 0,P,this.state.variables,this.state.context,this,r))}catch(R){Promise.reject(R)}try{await((M=(O=this.options).onSettled)==null?void 0:M.call(O,void 0,P,t,this.state.context,r))}catch(R){Promise.reject(R)}throw it(this,la,ys).call(this,{type:"error",error:P}),P}finally{Q(this,lr).runNext(this)}}},ep=new WeakMap,sa=new WeakMap,lr=new WeakMap,Gl=new WeakMap,la=new WeakSet,ys=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fn.batch(()=>{Q(this,sa).forEach(r=>{r.onMutationUpdate(t)}),Q(this,lr).notify({mutation:this,type:"updated",action:t})})},N4);function Y4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var io,Li,tp,R4,NH=(R4=class extends yf{constructor(t={}){super();qe(this,io);qe(this,Li);qe(this,tp);this.config=t,Te(this,io,new Set),Te(this,Li,new Map),Te(this,tp,0)}build(t,n,r){const i=new PH({client:t,mutationCache:this,mutationId:++dg(this,tp)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Q(this,io).add(t);const n=hg(t);if(typeof n=="string"){const r=Q(this,Li).get(n);r?r.push(t):Q(this,Li).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,io).delete(t)){const n=hg(t);if(typeof n=="string"){const r=Q(this,Li).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&Q(this,Li).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=hg(t);if(typeof n=="string"){const r=Q(this,Li).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=hg(t);if(typeof n=="string"){const i=(r=Q(this,Li).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{Q(this,io).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,io).clear(),Q(this,Li).clear()})}getAll(){return Array.from(Q(this,io))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yM(n,r))}findAll(t={}){return this.getAll().filter(n=>yM(t,n))}notify(t){fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fn.batch(()=>Promise.all(t.map(n=>n.continue().catch(gr))))}},io=new WeakMap,Li=new WeakMap,tp=new WeakMap,R4);function hg(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ao,Ms,Nr,oo,yo,ev,aS,D4,RH=(D4=class extends yf{constructor(n,r){super();qe(this,yo);qe(this,ao);qe(this,Ms);qe(this,Nr);qe(this,oo);Te(this,ao,n),this.setOptions(r),this.bindMethods(),it(this,yo,ev).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Q(this,ao).defaultMutationOptions(n),pv(this.options,r)||Q(this,ao).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,Nr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ql(r.mutationKey)!==Ql(this.options.mutationKey)?this.reset():((i=Q(this,Nr))==null?void 0:i.state.status)==="pending"&&Q(this,Nr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Q(this,Nr))==null||n.removeObserver(this)}onMutationUpdate(n){it(this,yo,ev).call(this),it(this,yo,aS).call(this,n)}getCurrentResult(){return Q(this,Ms)}reset(){var n;(n=Q(this,Nr))==null||n.removeObserver(this),Te(this,Nr,void 0),it(this,yo,ev).call(this),it(this,yo,aS).call(this)}mutate(n,r){var i;return Te(this,oo,r),(i=Q(this,Nr))==null||i.removeObserver(this),Te(this,Nr,Q(this,ao).getMutationCache().build(Q(this,ao),this.options)),Q(this,Nr).addObserver(this),Q(this,Nr).execute(n)}},ao=new WeakMap,Ms=new WeakMap,Nr=new WeakMap,oo=new WeakMap,yo=new WeakSet,ev=function(){var r;const n=((r=Q(this,Nr))==null?void 0:r.state)??Y4();Te(this,Ms,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},aS=function(n){fn.batch(()=>{var r,i,a,s,u,c,f,h;if(Q(this,oo)&&this.hasListeners()){const p=Q(this,Ms).variables,g=Q(this,Ms).context,v={client:Q(this,ao),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=Q(this,oo)).onSuccess)==null||i.call(r,n.data,p,g,v)}catch(y){Promise.reject(y)}try{(s=(a=Q(this,oo)).onSettled)==null||s.call(a,n.data,null,p,g,v)}catch(y){Promise.reject(y)}}else if((n==null?void 0:n.type)==="error"){try{(c=(u=Q(this,oo)).onError)==null||c.call(u,n.error,p,g,v)}catch(y){Promise.reject(y)}try{(h=(f=Q(this,oo)).onSettled)==null||h.call(f,void 0,n.error,p,g,v)}catch(y){Promise.reject(y)}}}this.listeners.forEach(p=>{p(Q(this,Ms))})})},D4),ua,I4,DH=(I4=class extends yf{constructor(t={}){super();qe(this,ua);this.config=t,Te(this,ua,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??$2(i,n);let s=this.get(a);return s||(s=new AH({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Q(this,ua).has(t.queryHash)||(Q(this,ua).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Q(this,ua).get(t.queryHash);n&&(t.destroy(),n===t&&Q(this,ua).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,ua).get(t)}getAll(){return[...Q(this,ua).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vM(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vM(t,r)):n}notify(t){fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ua=new WeakMap,I4),tn,Ps,Ns,Fc,Hc,Rs,Gc,qc,L4,A2e=(L4=class{constructor(e={}){qe(this,tn);qe(this,Ps);qe(this,Ns);qe(this,Fc);qe(this,Hc);qe(this,Rs);qe(this,Gc);qe(this,qc);Te(this,tn,e.queryCache||new DH),Te(this,Ps,e.mutationCache||new NH),Te(this,Ns,e.defaultOptions||{}),Te(this,Fc,new Map),Te(this,Hc,new Map),Te(this,Rs,0)}mount(){dg(this,Rs)._++,Q(this,Rs)===1&&(Te(this,Gc,j2.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,tn).onFocus())})),Te(this,qc,mv.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,tn).onOnline())})))}unmount(){var e,t;dg(this,Rs)._--,Q(this,Rs)===0&&((e=Q(this,Gc))==null||e.call(this),Te(this,Gc,void 0),(t=Q(this,qc))==null||t.call(this),Te(this,qc,void 0))}isFetching(e){return Q(this,tn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,Ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Q(this,tn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Q(this,tn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Is(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Q(this,tn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Q(this,tn).get(r.queryHash),a=i==null?void 0:i.state.data,s=mH(t,a);if(s!==void 0)return Q(this,tn).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return fn.batch(()=>Q(this,tn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Q(this,tn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Q(this,tn);fn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Q(this,tn);return fn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fn.batch(()=>Q(this,tn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gr).catch(gr)}invalidateQueries(e,t={}){return fn.batch(()=>(Q(this,tn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=fn.batch(()=>Q(this,tn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(gr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Q(this,tn).build(this,t);return n.isStaleByTime(Is(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gr).catch(gr)}fetchInfiniteQuery(e){return e.behavior=gv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gr).catch(gr)}ensureInfiniteQueryData(e){return e.behavior=gv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mv.isOnline()?Q(this,Ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,tn)}getMutationCache(){return Q(this,Ps)}getDefaultOptions(){return Q(this,Ns)}setDefaultOptions(e){Te(this,Ns,e)}setQueryDefaults(e,t){Q(this,Fc).set(Ql(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,Fc).values()],n={};return t.forEach(r=>{xh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Q(this,Hc).set(Ql(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,Hc).values()],n={};return t.forEach(r=>{xh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,Ns).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=$2(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===U2&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,Ns).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,tn).clear(),Q(this,Ps).clear()}},tn=new WeakMap,Ps=new WeakMap,Ns=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,Rs=new WeakMap,Gc=new WeakMap,qc=new WeakMap,L4),W4=k.createContext(void 0),np=e=>{const t=k.useContext(W4);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},k2e=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ge.jsx(W4.Provider,{value:e,children:t})),Q4=k.createContext(!1),IH=()=>k.useContext(Q4);Q4.Provider;function LH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var zH=k.createContext(LH()),jH=()=>k.useContext(zH),$H=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?F2(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},BH=e=>{k.useEffect(()=>{e.clearReset()},[e])},UH=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||F2(n,[e.error,r])),FH=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},HH=(e,t)=>e.isLoading&&e.isFetching&&!t,GH=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,AM=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Z4(e,t,n){var g,v,y,b;const r=IH(),i=jH(),a=np(n),s=a.defaultQueryOptions(e);(v=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||v.call(g,s);const u=a.getQueryCache().get(s.queryHash);s._optimisticResults=r?"isRestoring":"optimistic",FH(s),$H(s,i,u),BH(i);const c=!a.getQueryCache().get(s.queryHash),[f]=k.useState(()=>new t(a,s)),h=f.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(w=>{const _=p?f.subscribe(fn.batchCalls(w)):gr;return f.updateResult(),_},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),k.useEffect(()=>{f.setOptions(s)},[s,f]),GH(s,h))throw AM(s,f,i);if(UH({result:h,errorResetBoundary:i,throwOnError:s.throwOnError,query:u,suspense:s.suspense}))throw h.error;if((b=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||b.call(y,s,h),s.experimental_prefetchInRender&&!_h.isServer()&&HH(h,r)){const w=c?AM(s,f,i):u==null?void 0:u.promise;w==null||w.catch(gr).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?h:f.trackResult(h)}function C2e(e,t){return Z4(e,q4,t)}function O2e(e,t){const n=np(t),r=n.getQueryCache();return k.useSyncExternalStore(k.useCallback(i=>r.subscribe(fn.batchCalls(i)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function T2e(e,t){const n=np(t);return qH({filters:{...e,status:"pending"}},n).length}function kM(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function qH(e={},t){const n=np(t).getMutationCache(),r=k.useRef(e),i=k.useRef(null);return i.current===null&&(i.current=kM(n,e)),k.useEffect(()=>{r.current=e}),k.useSyncExternalStore(k.useCallback(a=>n.subscribe(()=>{const s=B2(i.current,kM(n,r.current));i.current!==s&&(i.current=s,fn.schedule(a))}),[n]),()=>i.current,()=>i.current)}function M2e(e,t){const n=np(t),[r]=k.useState(()=>new RH(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);const i=k.useSyncExternalStore(k.useCallback(s=>r.subscribe(fn.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((s,u)=>{r.mutate(s,u).catch(gr)},[r]);if(i.error&&F2(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function P2e(e,t){return Z4(e,MH,t)}var fw={exports:{}},dw={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-with-selector.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var CM;function VH(){if(CM)return dw;CM=1;var e=vf();function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,u=e.useDebugValue;return dw.useSyncExternalStoreWithSelector=function(c,f,h,p,g){var v=i(null);if(v.current===null){var y={hasValue:!1,value:null};v.current=y}else y=v.current;v=s(function(){function w(T){if(!_){if(_=!0,C=T,T=p(T),g!==void 0&&y.hasValue){var O=y.value;if(g(O,T))return E=O}return E=T}if(O=E,n(C,T))return O;var M=p(T);return g!==void 0&&g(O,M)?(C=T,O):(C=T,E=M)}var _=!1,C,E,S=h===void 0?null:h;return[function(){return w(f())},S===null?void 0:function(){return w(S())}]},[f,h,p,g]);var b=r(c,v[0],v[1]);return a(function(){y.hasValue=!0,y.value=b},[b]),u(b),b},dw}var OM;function KH(){return OM||(OM=1,fw.exports=VH()),fw.exports}var YH=KH();function X4(e){e()}function WH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){X4(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var TM={notify(){},get:()=>[]};function QH(e,t){let n,r=TM,i=0,a=!1;function s(b){h();const w=r.subscribe(b);let _=!1;return()=>{_||(_=!0,w(),p())}}function u(){r.notify()}function c(){y.onStateChange&&y.onStateChange()}function f(){return a}function h(){i++,n||(n=e.subscribe(c),r=WH())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=TM)}function g(){a||(a=!0,h())}function v(){a&&(a=!1,p())}const y={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:f,trySubscribe:g,tryUnsubscribe:v,getListeners:()=>r};return y}var ZH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",XH=ZH(),JH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",eG=JH(),tG=()=>XH||eG?k.useLayoutEffect:k.useEffect,nG=tG();function MM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Oc(e,t){if(MM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!MM(e[n[i]],t[n[i]]))return!1;return!0}var hw=Symbol.for("react-redux-context"),pw=typeof globalThis<"u"?globalThis:{};function rG(){if(!k.createContext)return{};const e=pw[hw]??(pw[hw]=new Map);let t=e.get(k.createContext);return t||(t=k.createContext(null),e.set(k.createContext,t)),t}var Bs=rG();function iG(e){const{children:t,context:n,serverState:r,store:i}=e,a=k.useMemo(()=>{const c=QH(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),s=k.useMemo(()=>i.getState(),[i]);nG(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const u=n||Bs;return k.createElement(u.Provider,{value:a},t)}var aG=iG;function G2(e=Bs){return function(){return k.useContext(e)}}var J4=G2();function ez(e=Bs){const t=e===Bs?J4:G2(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var tz=ez();function oG(e=Bs){const t=e===Bs?tz:ez(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var sG=oG(),lG=(e,t)=>e===t;function uG(e=Bs){const t=e===Bs?J4:G2(e),n=(r,i={})=>{const{equalityFn:a=lG}=typeof i=="function"?{equalityFn:i}:i,s=t(),{store:u,subscription:c,getServerState:f}=s;k.useRef(!0);const h=k.useCallback({[r.name](g){return r(g)}}[r.name],[r]),p=YH.useSyncExternalStoreWithSelector(c.addNestedSub,u.getState,f||u.getState,h,a);return k.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var cG=uG(),fG=X4;/**
|
|
58
|
+
* react-router v7.13.1
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) Remix Software Inc.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
64
|
+
*
|
|
65
|
+
* @license MIT
|
|
66
|
+
*/var PM="popstate";function NM(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function dG(e={}){function t(r,i){var f;let a=(f=i.state)==null?void 0:f.masked,{pathname:s,search:u,hash:c}=a||r.location;return oS("",{pathname:s,search:u,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:Sh(i)}return pG(t,n,null,e)}function Vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hG(){return Math.random().toString(36).substring(2,10)}function RM(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function oS(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bf(t):t,state:n,key:t&&t.key||r||hG(),unstable_mask:i}}function Sh({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function bf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pG(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u="POP",c=null,f=h();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function h(){return(s.state||{idx:null}).idx}function p(){u="POP";let w=h(),_=w==null?null:w-f;f=w,c&&c({action:u,location:b.location,delta:_})}function g(w,_){u="PUSH";let C=NM(w)?w:oS(b.location,w,_);f=h()+1;let E=RM(C,f),S=b.createHref(C.unstable_mask||C);try{s.pushState(E,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(S)}a&&c&&c({action:u,location:b.location,delta:1})}function v(w,_){u="REPLACE";let C=NM(w)?w:oS(b.location,w,_);f=h();let E=RM(C,f),S=b.createHref(C.unstable_mask||C);s.replaceState(E,"",S),a&&c&&c({action:u,location:b.location,delta:0})}function y(w){return mG(w)}let b={get action(){return u},get location(){return e(i,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(PM,p),c=w,()=>{i.removeEventListener(PM,p),c=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let _=y(w);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:g,replace:v,go(w){return s.go(w)}};return b}function mG(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Vt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Sh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function nz(e,t,n="/"){return gG(e,t,n,!1)}function gG(e,t,n,r){let i=typeof t=="string"?bf(t):t,a=bo(i.pathname||"/",n);if(a==null)return null;let s=rz(e);vG(s);let u=null;for(let c=0;u==null&&c<s.length;++c){let f=OG(a);u=kG(s[c],f,r)}return u}function rz(e,t=[],n=[],r="",i=!1){let a=(s,u,c=i,f)=>{let h={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&c)return;Vt(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let p=ha([r,h.relativePath]),g=n.concat(h);s.children&&s.children.length>0&&(Vt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),rz(s.children,t,g,p,c)),!(s.path==null&&!s.index)&&t.push({path:p,score:EG(p,s.index),routesMeta:g})};return e.forEach((s,u)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))a(s,u);else for(let f of iz(s.path))a(s,u,!0,f)}),t}function iz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=iz(r.join("/")),u=[];return u.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function vG(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AG(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var yG=/^:[\w-]+$/,bG=3,wG=2,xG=1,_G=10,SG=-2,DM=e=>e==="*";function EG(e,t){let n=e.split("/"),r=n.length;return n.some(DM)&&(r+=SG),t&&(r+=wG),n.filter(i=>!DM(i)).reduce((i,a)=>i+(yG.test(a)?bG:a===""?xG:_G),r)}function AG(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function kG(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",s=[];for(let u=0;u<r.length;++u){let c=r[u],f=u===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",p=vv({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},h),g=c.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=vv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:ha([a,p.pathname]),pathnameBase:NG(ha([a,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(a=ha([a,p.pathnameBase]))}return s}function vv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=CG(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:h,isOptional:p},g)=>{if(h==="*"){let y=u[g]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[g];return p&&!v?f[h]=void 0:f[h]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function CG(e,t=!1,n=!0){wi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,c,f,h)=>{if(r.push({paramName:u,isOptional:c!=null}),c){let p=h.charAt(f+s.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function OG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function bo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var TG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function MG(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bf(e):e,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=IM(n.substring(1),"/"):a=IM(n,t)):a=t,{pathname:a,search:RG(r),hash:DG(i)}}function IM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function mw(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function PG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function q2(e){let t=PG(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jy(e,t,n,r=!1){let i;typeof e=="string"?i=bf(e):(i={...e},Vt(!i.pathname||!i.pathname.includes("?"),mw("?","pathname","search",i)),Vt(!i.pathname||!i.pathname.includes("#"),mw("#","pathname","hash",i)),Vt(!i.search||!i.search.includes("#"),mw("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}u=p>=0?t[p]:"/"}let c=MG(i,u),f=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||h)&&(c.pathname+="/"),c}var ha=e=>e.join("/").replace(/\/\/+/g,"/"),NG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,IG=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function LG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function zG(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var az=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function oz(e,t){let n=e;if(typeof n!="string"||!TG.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(az)try{let a=new URL(window.location.href),s=n.startsWith("//")?new URL(a.protocol+n):new URL(n),u=bo(s.pathname,t);s.origin===a.origin&&u!=null?n=u+s.search+s.hash:i=!0}catch{wi(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sz=["POST","PUT","PATCH","DELETE"];new Set(sz);var jG=["GET",...sz];new Set(jG);var wf=k.createContext(null);wf.displayName="DataRouter";var $y=k.createContext(null);$y.displayName="DataRouterState";var $G=k.createContext(!1),lz=k.createContext({isTransitioning:!1});lz.displayName="ViewTransition";var BG=k.createContext(new Map);BG.displayName="Fetchers";var UG=k.createContext(null);UG.displayName="Await";var ri=k.createContext(null);ri.displayName="Navigation";var rp=k.createContext(null);rp.displayName="Location";var Si=k.createContext({outlet:null,matches:[],isDataRoute:!1});Si.displayName="Route";var V2=k.createContext(null);V2.displayName="RouteError";var uz="REACT_ROUTER_ERROR",FG="REDIRECT",HG="ROUTE_ERROR_RESPONSE";function GG(e){if(e.startsWith(`${uz}:${FG}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function qG(e){if(e.startsWith(`${uz}:${HG}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new IG(t.status,t.statusText,t.data)}catch{}}function VG(e,{relative:t}={}){Vt(xf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(ri),{hash:i,pathname:a,search:s}=ip(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:ha([n,a])),r.createHref({pathname:u,search:s,hash:i})}function xf(){return k.useContext(rp)!=null}function _a(){return Vt(xf(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(rp).location}var cz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fz(e){k.useContext(ri).static||k.useLayoutEffect(e)}function K2(){let{isDataRoute:e}=k.useContext(Si);return e?aq():KG()}function KG(){Vt(xf(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(wf),{basename:t,navigator:n}=k.useContext(ri),{matches:r}=k.useContext(Si),{pathname:i}=_a(),a=JSON.stringify(q2(r)),s=k.useRef(!1);return fz(()=>{s.current=!0}),k.useCallback((c,f={})=>{if(wi(s.current,cz),!s.current)return;if(typeof c=="number"){n.go(c);return}let h=jy(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ha([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,a,i,e])}var dz=k.createContext(null);function N2e(){return k.useContext(dz)}function R2e(e){let t=k.useContext(Si).outlet;return k.useMemo(()=>t&&k.createElement(dz.Provider,{value:e},t),[t,e])}function D2e(){let{matches:e}=k.useContext(Si),t=e[e.length-1];return t?t.params:{}}function ip(e,{relative:t}={}){let{matches:n}=k.useContext(Si),{pathname:r}=_a(),i=JSON.stringify(q2(n));return k.useMemo(()=>jy(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function YG(e,t){return hz(e,t)}function hz(e,t,n){var w;Vt(xf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(ri),{matches:i}=k.useContext(Si),a=i[i.length-1],s=a?a.params:{},u=a?a.pathname:"/",c=a?a.pathnameBase:"/",f=a&&a.route;{let _=f&&f.path||"";mz(u,!f||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
67
|
+
|
|
68
|
+
Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let h=_a(),p;if(t){let _=typeof t=="string"?bf(t):t;Vt(c==="/"||((w=_.pathname)==null?void 0:w.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${_.pathname}" was given in the \`location\` prop.`),p=_}else p=h;let g=p.pathname||"/",v=g;if(c!=="/"){let _=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(_.length).join("/")}let y=nz(e,{pathname:v});wi(f||y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),wi(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=JG(y&&y.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:ha([c,r.encodeLocation?r.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?c:ha([c,r.encodeLocation?r.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),i,n);return t&&b?k.createElement(rp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},b):b}function WG(){let e=iq(),t=LG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,s)}var QG=k.createElement(WG,null),pz=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=qG(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(Si.Provider,{value:this.props.routeContext},k.createElement(V2.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(ZG,{error:e},t):t}};pz.contextType=$G;var gw=new WeakMap;function ZG({children:e,error:t}){let{basename:n}=k.useContext(ri);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=GG(t.digest);if(r){let i=gw.get(t);if(i)throw i;let a=oz(r.location,n);if(az&&!gw.get(t))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw gw.set(t,s),s}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function XG({routeContext:e,match:t,children:n}){let r=k.useContext(wf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Si.Provider,{value:e},n)}function JG(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let h=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);Vt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,u=-1;if(n&&r){s=r.renderFallback;for(let h=0;h<i.length;h++){let p=i[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=h),p.route.id){let{loaderData:g,errors:v}=r,y=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||y){n.isStatic&&(s=!0),u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}}let c=n==null?void 0:n.onError,f=r&&c?(h,p)=>{var g,v;c(h,{location:r.location,params:((v=(g=r.matches)==null?void 0:g[0])==null?void 0:v.params)??{},unstable_pattern:zG(r.matches),errorInfo:p})}:void 0;return i.reduceRight((h,p,g)=>{let v,y=!1,b=null,w=null;r&&(v=a&&p.route.id?a[p.route.id]:void 0,b=p.route.errorElement||QG,s&&(u<0&&g===0?(mz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):u===g&&(y=!0,w=p.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,g+1)),C=()=>{let E;return v?E=b:y?E=w:p.route.Component?E=k.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=h,k.createElement(XG,{match:p,routeContext:{outlet:h,matches:_,isDataRoute:r!=null},children:E})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?k.createElement(pz,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:C(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:f}):C()},null)}function Y2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eq(e){let t=k.useContext(wf);return Vt(t,Y2(e)),t}function tq(e){let t=k.useContext($y);return Vt(t,Y2(e)),t}function nq(e){let t=k.useContext(Si);return Vt(t,Y2(e)),t}function W2(e){let t=nq(e),n=t.matches[t.matches.length-1];return Vt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rq(){return W2("useRouteId")}function iq(){var r;let e=k.useContext(V2),t=tq("useRouteError"),n=W2("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function aq(){let{router:e}=eq("useNavigate"),t=W2("useNavigate"),n=k.useRef(!1);return fz(()=>{n.current=!0}),k.useCallback(async(i,a={})=>{wi(n.current,cz),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var LM={};function mz(e,t,n){!t&&!LM[e]&&(LM[e]=!0,wi(!1,n))}k.memo(oq);function oq({routes:e,future:t,state:n,isStatic:r,onError:i}){return hz(e,void 0,{state:n,isStatic:r,onError:i})}function I2e({to:e,replace:t,state:n,relative:r}){Vt(xf(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=k.useContext(ri);wi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=k.useContext(Si),{pathname:s}=_a(),u=K2(),c=jy(e,q2(a),s,r==="path"),f=JSON.stringify(c);return k.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function sq(e){Vt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function lq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){Vt(!xf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:u,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[u,i,a,s]);typeof n=="string"&&(n=bf(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:v="default",unstable_mask:y}=n,b=k.useMemo(()=>{let w=bo(f,u);return w==null?null:{location:{pathname:w,search:h,hash:p,state:g,key:v,unstable_mask:y},navigationType:r}},[u,f,h,p,g,v,r,y]);return wi(b!=null,`<Router basename="${u}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:k.createElement(ri.Provider,{value:c},k.createElement(rp.Provider,{children:t,value:b}))}function L2e({children:e,location:t}){return YG(sS(e),t)}function sS(e,t=[]){let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let a=[...t,i];if(r.type===k.Fragment){n.push.apply(n,sS(r.props.children,a));return}Vt(r.type===sq,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Vt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=sS(r.props.children,a)),n.push(s)}),n}var tv="get",nv="application/x-www-form-urlencoded";function By(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function uq(e){return By(e)&&e.tagName.toLowerCase()==="button"}function cq(e){return By(e)&&e.tagName.toLowerCase()==="form"}function fq(e){return By(e)&&e.tagName.toLowerCase()==="input"}function dq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hq(e,t){return e.button===0&&(!t||t==="_self")&&!dq(e)}function lS(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function pq(e,t){let n=lS(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}var pg=null;function mq(){if(pg===null)try{new FormData(document.createElement("form"),0),pg=!1}catch{pg=!0}return pg}var gq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vw(e){return e!=null&&!gq.has(e)?(wi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nv}"`),null):e}function vq(e,t){let n,r,i,a,s;if(cq(e)){let u=e.getAttribute("action");r=u?bo(u,t):null,n=e.getAttribute("method")||tv,i=vw(e.getAttribute("enctype"))||nv,a=new FormData(e)}else if(uq(e)||fq(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(r=c?bo(c,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||tv,i=vw(e.getAttribute("formenctype"))||vw(u.getAttribute("enctype"))||nv,a=new FormData(u,e),!mq()){let{name:f,type:h,value:p}=e;if(h==="image"){let g=f?`${f}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else f&&a.append(f,p)}}else{if(By(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=tv,r=null,i=nv,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Q2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yq(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&bo(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function bq(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function wq(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xq(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await bq(a,n);return s.links?s.links():[]}return[]}));return Aq(r.flat(1).filter(wq).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function zM(e,t,n,r,i,a){let s=(c,f)=>n[f]?c.route.id!==n[f].route.id:!0,u=(c,f)=>{var h;return n[f].pathname!==c.pathname||((h=n[f].route.path)==null?void 0:h.endsWith("*"))&&n[f].params["*"]!==c.params["*"]};return a==="assets"?t.filter((c,f)=>s(c,f)||u(c,f)):a==="data"?t.filter((c,f)=>{var p;let h=r.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(s(c,f)||u(c,f))return!0;if(c.route.shouldRevalidate){let g=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function _q(e,t,{includeHydrateFallback:n}={}){return Sq(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function Sq(e){return[...new Set(e)]}function Eq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Aq(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(Eq(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function gz(){let e=k.useContext(wf);return Q2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kq(){let e=k.useContext($y);return Q2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Z2=k.createContext(void 0);Z2.displayName="FrameworkContext";function vz(){let e=k.useContext(Z2);return Q2(e,"You must render this element inside a <HydratedRouter> element"),e}function Cq(e,t){let n=k.useContext(Z2),[r,i]=k.useState(!1),[a,s]=k.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:f,onMouseLeave:h,onTouchStart:p}=t,g=k.useRef(null);k.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let b=_=>{_.forEach(C=>{s(C.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return g.current&&w.observe(g.current),()=>{w.disconnect()}}},[e]),k.useEffect(()=>{if(r){let b=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(b)}}},[r]);let v=()=>{i(!0)},y=()=>{i(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:Nd(u,v),onBlur:Nd(c,y),onMouseEnter:Nd(f,v),onMouseLeave:Nd(h,y),onTouchStart:Nd(p,v)}]:[!1,g,{}]}function Nd(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Oq({page:e,...t}){let{router:n}=gz(),r=k.useMemo(()=>nz(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(Mq,{page:e,matches:r,...t}):null}function Tq(e){let{manifest:t,routeModules:n}=vz(),[r,i]=k.useState([]);return k.useEffect(()=>{let a=!1;return xq(e,t,n).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,n]),r}function Mq({page:e,matches:t,...n}){let r=_a(),{future:i,manifest:a,routeModules:s}=vz(),{basename:u}=gz(),{loaderData:c,matches:f}=kq(),h=k.useMemo(()=>zM(e,t,f,a,r,"data"),[e,t,f,a,r]),p=k.useMemo(()=>zM(e,t,f,a,r,"assets"),[e,t,f,a,r]),g=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,w=!1;if(t.forEach(C=>{var S;let E=a.routes[C.route.id];!E||!E.hasLoader||(!h.some(T=>T.route.id===C.route.id)&&C.route.id in c&&((S=s[C.route.id])!=null&&S.shouldRevalidate)||E.hasClientLoader?w=!0:b.add(C.route.id))}),b.size===0)return[];let _=yq(e,u,i.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&_.searchParams.set("_routes",t.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[_.pathname+_.search]},[u,i.unstable_trailingSlashAwareDataRequests,c,r,a,h,t,e,s]),v=k.useMemo(()=>_q(p,a),[p,a]),y=Tq(p);return k.createElement(k.Fragment,null,g.map(b=>k.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),v.map(b=>k.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:w})=>k.createElement("link",{key:b,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function Pq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Nq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Nq&&(window.__reactRouterVersion="7.13.1")}catch{}function z2e({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=k.useRef();i.current==null&&(i.current=dG({window:r,v5Compat:!0}));let a=i.current,[s,u]=k.useState({action:a.action,location:a.location}),c=k.useCallback(f=>{n===!1?u(f):k.startTransition(()=>u(f))},[n]);return k.useLayoutEffect(()=>a.listen(c),[a,c]),k.createElement(lq,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:n})}var yz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bz=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,unstable_mask:u,state:c,target:f,to:h,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:v,...y},b){let{basename:w,navigator:_,unstable_useTransitions:C}=k.useContext(ri),E=typeof h=="string"&&yz.test(h),S=oz(h,w);h=S.to;let T=VG(h,{relative:i}),O=_a(),M=null;if(u){let U=jy(u,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);w!=="/"&&(U.pathname=U.pathname==="/"?w:ha([w,U.pathname])),M=_.createHref(U)}let[P,R,z]=Cq(r,y),D=Lq(h,{replace:s,unstable_mask:u,state:c,target:f,preventScrollReset:p,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:C});function N(U){t&&t(U),U.defaultPrevented||D(U)}let $=!(S.isExternal||a),I=k.createElement("a",{...y,...z,href:($?M:void 0)||S.absoluteURL||T,onClick:$?N:t,ref:Pq(b,R),target:f,"data-discover":!E&&n==="render"?"true":void 0});return P&&!E?k.createElement(k.Fragment,null,I,k.createElement(Oq,{page:T})):I});bz.displayName="Link";var Rq=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:u,children:c,...f},h){let p=ip(s,{relative:f.relative}),g=_a(),v=k.useContext($y),{navigator:y,basename:b}=k.useContext(ri),w=v!=null&&Uq(p)&&u===!0,_=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=g.pathname,E=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(C=C.toLowerCase(),E=E?E.toLowerCase():null,_=_.toLowerCase()),E&&b&&(E=bo(E,b)||E);const S=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let T=C===_||!i&&C.startsWith(_)&&C.charAt(S)==="/",O=E!=null&&(E===_||!i&&E.startsWith(_)&&E.charAt(_.length)==="/"),M={isActive:T,isPending:O,isTransitioning:w},P=T?t:void 0,R;typeof r=="function"?R=r(M):R=[r,T?"active":null,O?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(M):a;return k.createElement(bz,{...f,"aria-current":P,className:R,ref:h,style:z,to:s,viewTransition:u},typeof c=="function"?c(M):c)});Rq.displayName="NavLink";var Dq=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=tv,action:u,onSubmit:c,relative:f,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:g,...v},y)=>{let{unstable_useTransitions:b}=k.useContext(ri),w=$q(),_=Bq(u,{relative:f}),C=s.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&yz.test(u),S=T=>{if(c&&c(T),T.defaultPrevented)return;T.preventDefault();let O=T.nativeEvent.submitter,M=(O==null?void 0:O.getAttribute("formmethod"))||s,P=()=>w(O||T.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:i,state:a,relative:f,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:g});b&&n!==!1?k.startTransition(()=>P()):P()};return k.createElement("form",{ref:y,method:C,action:_,onSubmit:r?c:S,...v,"data-discover":!E&&e==="render"?"true":void 0})});Dq.displayName="Form";function Iq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wz(e){let t=k.useContext(wf);return Vt(t,Iq(e)),t}function Lq(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=K2(),p=_a(),g=ip(e,{relative:s});return k.useCallback(v=>{if(hq(v,t)){v.preventDefault();let y=n!==void 0?n:Sh(p)===Sh(g),b=()=>h(e,{replace:y,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c});f?k.startTransition(()=>b()):b()}},[p,h,g,n,r,i,t,e,a,s,u,c,f])}function j2e(e){wi(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=k.useRef(lS(e)),n=k.useRef(!1),r=_a(),i=k.useMemo(()=>pq(r.search,n.current?null:t.current),[r.search]),a=K2(),s=k.useCallback((u,c)=>{const f=lS(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,a("?"+f,c)},[a,i]);return[i,s]}var zq=0,jq=()=>`__${String(++zq)}__`;function $q(){let{router:e}=wz("useSubmit"),{basename:t}=k.useContext(ri),n=rq(),r=e.fetch,i=e.navigate;return k.useCallback(async(a,s={})=>{let{action:u,method:c,encType:f,formData:h,body:p}=vq(a,t);if(s.navigate===!1){let g=s.fetcherKey||jq();await r(g,n,s.action||u,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||c,formEncType:s.encType||f,flushSync:s.flushSync})}else await i(s.action||u,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||c,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,i,t,n])}function Bq(e,{relative:t}={}){let{basename:n}=k.useContext(ri),r=k.useContext(Si);Vt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...ip(e||".",{relative:t})},s=_a();if(e==null){a.search=s.search;let u=new URLSearchParams(a.search),c=u.getAll("index");if(c.some(h=>h==="")){u.delete("index"),c.filter(p=>p).forEach(p=>u.append("index",p));let h=u.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:ha([n,a.pathname])),Sh(a)}function Uq(e,{relative:t}={}){let n=k.useContext(lz);Vt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wz("useViewTransitionState"),i=ip(e,{relative:t});if(!n.isTransitioning)return!1;let a=bo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=bo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return vv(i.pathname,s)!=null||vv(i.pathname,a)!=null}var Uy=z4();const $2e=ni(Uy);var yv=function(){return yv=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yv.apply(this,arguments)};function Fq(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function B2e(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function yw(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hq(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Gq=typeof window<"u"?k.useLayoutEffect:k.useEffect,jM=new WeakMap;function U2e(e,t){var n=Hq(null,function(r){return e.forEach(function(i){return yw(i,r)})});return Gq(function(){var r=jM.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(u){a.has(u)||yw(u,null)}),a.forEach(function(u){i.has(u)||yw(u,s)})}jM.set(n,e)},[e]),n}function qq(e){return e}function Vq(e,t){t===void 0&&(t=qq);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(a),s=n}var c=function(){var h=s;s=[],h.forEach(a)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(h){s.push(h),f()},filter:function(h){return s=s.filter(h),n}}}};return i}function F2e(e){e===void 0&&(e={});var t=Vq(null);return t.options=yv({async:!0,ssr:!1},e),t}var xz=function(e){var t=e.sideCar,n=Fq(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,yv({},n))};xz.isSideCarExport=!0;function H2e(e,t){return e.useMedium(t),xz}var Kq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kq();return t&&e.setAttribute("nonce",t),e}function Wq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zq=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yq())&&(Wq(t,n),Qq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xq=function(){var e=Zq();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},G2e=function(){var e=Xq(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Jq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ac=new WeakMap,mg=new WeakMap,gg={},bw=0,_z=function(e){return e&&(e.host||_z(e.parentNode))},eV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_z(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tV=function(e,t,n,r){var i=eV(t,Array.isArray(e)?e:[e]);gg[n]||(gg[n]=new WeakMap);var a=gg[n],s=[],u=new Set,c=new Set(i),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};i.forEach(f);var h=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(u.has(g))h(g);else try{var v=g.getAttribute(r),y=v!==null&&v!=="false",b=(ac.get(g)||0)+1,w=(a.get(g)||0)+1;ac.set(g,b),a.set(g,w),s.push(g),b===1&&y&&mg.set(g,!0),w===1&&g.setAttribute(n,"true"),y||g.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",g,_)}})};return h(t),u.clear(),bw++,function(){s.forEach(function(p){var g=ac.get(p)-1,v=a.get(p)-1;ac.set(p,g),a.set(p,v),g||(mg.has(p)||p.removeAttribute(r),mg.delete(p)),v||p.removeAttribute(n)}),bw--,bw||(ac=new WeakMap,ac=new WeakMap,mg=new WeakMap,gg={})}},q2e=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Jq(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tV(r,i,n,"aria-hidden")):function(){return null}};/**
|
|
69
|
+
* @license lucide-react v0.525.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const nV=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rV=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),$M=e=>{const t=rV(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sz=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),iV=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
74
|
+
* @license lucide-react v0.525.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/var aV={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
79
|
+
* @license lucide-react v0.525.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const oV=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...u},c)=>k.createElement("svg",{ref:c,...aV,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sz("lucide",i),...!a&&!iV(u)&&{"aria-hidden":"true"},...u},[...s.map(([f,h])=>k.createElement(f,h)),...Array.isArray(a)?a:[a]]));/**
|
|
84
|
+
* @license lucide-react v0.525.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const ue=(e,t)=>{const n=k.forwardRef(({className:r,...i},a)=>k.createElement(oV,{ref:a,iconNode:t,className:Sz(`lucide-${nV($M(e))}`,`lucide-${e}`,r),...i}));return n.displayName=$M(e),n};/**
|
|
89
|
+
* @license lucide-react v0.525.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const sV=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],V2e=ue("activity",sV);/**
|
|
94
|
+
* @license lucide-react v0.525.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const lV=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],K2e=ue("archive-restore",lV);/**
|
|
99
|
+
* @license lucide-react v0.525.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const uV=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Y2e=ue("archive",uV);/**
|
|
104
|
+
* @license lucide-react v0.525.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const cV=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],W2e=ue("arrow-down",cV);/**
|
|
109
|
+
* @license lucide-react v0.525.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const fV=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Q2e=ue("arrow-left",fV);/**
|
|
114
|
+
* @license lucide-react v0.525.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const dV=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Z2e=ue("arrow-right",dV);/**
|
|
119
|
+
* @license lucide-react v0.525.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const hV=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],X2e=ue("arrow-up-right",hV);/**
|
|
124
|
+
* @license lucide-react v0.525.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const pV=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],J2e=ue("arrow-up",pV);/**
|
|
129
|
+
* @license lucide-react v0.525.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const mV=[["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["path",{d:"M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935",key:"lre1cr"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936",key:"13q5k0"}]],eEe=ue("battery-charging",mV);/**
|
|
134
|
+
* @license lucide-react v0.525.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const gV=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],tEe=ue("book-copy",gV);/**
|
|
139
|
+
* @license lucide-react v0.525.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const vV=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],nEe=ue("bot",vV);/**
|
|
144
|
+
* @license lucide-react v0.525.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const yV=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],rEe=ue("braces",yV);/**
|
|
149
|
+
* @license lucide-react v0.525.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const bV=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],iEe=ue("brain-circuit",bV);/**
|
|
154
|
+
* @license lucide-react v0.525.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const wV=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],aEe=ue("briefcase-business",wV);/**
|
|
159
|
+
* @license lucide-react v0.525.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const xV=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],oEe=ue("bug",xV);/**
|
|
164
|
+
* @license lucide-react v0.525.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const _V=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],sEe=ue("calendar-days",_V);/**
|
|
169
|
+
* @license lucide-react v0.525.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const SV=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],lEe=ue("chart-column",SV);/**
|
|
174
|
+
* @license lucide-react v0.525.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const EV=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],uEe=ue("check-check",EV);/**
|
|
179
|
+
* @license lucide-react v0.525.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const AV=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cEe=ue("check",AV);/**
|
|
184
|
+
* @license lucide-react v0.525.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const kV=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fEe=ue("chevron-down",kV);/**
|
|
189
|
+
* @license lucide-react v0.525.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const CV=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dEe=ue("chevron-right",CV);/**
|
|
194
|
+
* @license lucide-react v0.525.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const OV=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],hEe=ue("chevron-up",OV);/**
|
|
199
|
+
* @license lucide-react v0.525.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const TV=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],pEe=ue("chevrons-left",TV);/**
|
|
204
|
+
* @license lucide-react v0.525.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const MV=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],mEe=ue("chevrons-right",MV);/**
|
|
209
|
+
* @license lucide-react v0.525.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const PV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],gEe=ue("circle-alert",PV);/**
|
|
214
|
+
* @license lucide-react v0.525.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const NV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vEe=ue("circle-check",NV);/**
|
|
219
|
+
* @license lucide-react v0.525.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const RV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],yEe=ue("circle-pause",RV);/**
|
|
224
|
+
* @license lucide-react v0.525.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const DV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bEe=ue("circle-question-mark",DV);/**
|
|
229
|
+
* @license lucide-react v0.525.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const IV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],wEe=ue("circle-x",IV);/**
|
|
234
|
+
* @license lucide-react v0.525.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const LV=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],xEe=ue("clipboard-list",LV);/**
|
|
239
|
+
* @license lucide-react v0.525.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const zV=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],_Ee=ue("clipboard-paste",zV);/**
|
|
244
|
+
* @license lucide-react v0.525.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const jV=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],SEe=ue("clock-3",jV);/**
|
|
249
|
+
* @license lucide-react v0.525.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const $V=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],EEe=ue("cloud-sun",$V);/**
|
|
254
|
+
* @license lucide-react v0.525.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const BV=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],AEe=ue("cloud-upload",BV);/**
|
|
259
|
+
* @license lucide-react v0.525.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const UV=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],kEe=ue("cloud",UV);/**
|
|
264
|
+
* @license lucide-react v0.525.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const FV=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],CEe=ue("coffee",FV);/**
|
|
269
|
+
* @license lucide-react v0.525.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* This source code is licensed under the ISC license.
|
|
272
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
+
*/const HV=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],OEe=ue("compass",HV);/**
|
|
274
|
+
* @license lucide-react v0.525.0 - ISC
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the ISC license.
|
|
277
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/const GV=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],TEe=ue("copy-plus",GV);/**
|
|
279
|
+
* @license lucide-react v0.525.0 - ISC
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the ISC license.
|
|
282
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/const qV=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],MEe=ue("copy",qV);/**
|
|
284
|
+
* @license lucide-react v0.525.0 - ISC
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the ISC license.
|
|
287
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/const VV=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],PEe=ue("cpu",VV);/**
|
|
289
|
+
* @license lucide-react v0.525.0 - ISC
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the ISC license.
|
|
292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/const KV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],NEe=ue("crosshair",KV);/**
|
|
294
|
+
* @license lucide-react v0.525.0 - ISC
|
|
295
|
+
*
|
|
296
|
+
* This source code is licensed under the ISC license.
|
|
297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
+
*/const YV=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],REe=ue("database-zap",YV);/**
|
|
299
|
+
* @license lucide-react v0.525.0 - ISC
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the ISC license.
|
|
302
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/const WV=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],DEe=ue("database",WV);/**
|
|
304
|
+
* @license lucide-react v0.525.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/const QV=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],IEe=ue("download",QV);/**
|
|
309
|
+
* @license lucide-react v0.525.0 - ISC
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the ISC license.
|
|
312
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
+
*/const ZV=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],LEe=ue("dumbbell",ZV);/**
|
|
314
|
+
* @license lucide-react v0.525.0 - ISC
|
|
315
|
+
*
|
|
316
|
+
* This source code is licensed under the ISC license.
|
|
317
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
+
*/const XV=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],zEe=ue("ellipsis",XV);/**
|
|
319
|
+
* @license lucide-react v0.525.0 - ISC
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the ISC license.
|
|
322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/const JV=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],jEe=ue("external-link",JV);/**
|
|
324
|
+
* @license lucide-react v0.525.0 - ISC
|
|
325
|
+
*
|
|
326
|
+
* This source code is licensed under the ISC license.
|
|
327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
+
*/const eK=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$Ee=ue("eye-off",eK);/**
|
|
329
|
+
* @license lucide-react v0.525.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/const tK=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],BEe=ue("eye",tK);/**
|
|
334
|
+
* @license lucide-react v0.525.0 - ISC
|
|
335
|
+
*
|
|
336
|
+
* This source code is licensed under the ISC license.
|
|
337
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
+
*/const nK=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],UEe=ue("file-archive",nK);/**
|
|
339
|
+
* @license lucide-react v0.525.0 - ISC
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the ISC license.
|
|
342
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
+
*/const rK=[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]],FEe=ue("file-stack",rK);/**
|
|
344
|
+
* @license lucide-react v0.525.0 - ISC
|
|
345
|
+
*
|
|
346
|
+
* This source code is licensed under the ISC license.
|
|
347
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
+
*/const iK=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],HEe=ue("file-text",iK);/**
|
|
349
|
+
* @license lucide-react v0.525.0 - ISC
|
|
350
|
+
*
|
|
351
|
+
* This source code is licensed under the ISC license.
|
|
352
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
+
*/const aK=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],GEe=ue("flame",aK);/**
|
|
354
|
+
* @license lucide-react v0.525.0 - ISC
|
|
355
|
+
*
|
|
356
|
+
* This source code is licensed under the ISC license.
|
|
357
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
+
*/const oK=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],qEe=ue("folder-open",oK);/**
|
|
359
|
+
* @license lucide-react v0.525.0 - ISC
|
|
360
|
+
*
|
|
361
|
+
* This source code is licensed under the ISC license.
|
|
362
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
+
*/const sK=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],VEe=ue("folder-search",sK);/**
|
|
364
|
+
* @license lucide-react v0.525.0 - ISC
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the ISC license.
|
|
367
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
+
*/const lK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],KEe=ue("frown",lK);/**
|
|
369
|
+
* @license lucide-react v0.525.0 - ISC
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the ISC license.
|
|
372
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/const uK=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],YEe=ue("funnel",uK);/**
|
|
374
|
+
* @license lucide-react v0.525.0 - ISC
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the ISC license.
|
|
377
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
+
*/const cK=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],WEe=ue("git-branch-plus",cK);/**
|
|
379
|
+
* @license lucide-react v0.525.0 - ISC
|
|
380
|
+
*
|
|
381
|
+
* This source code is licensed under the ISC license.
|
|
382
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
+
*/const fK=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],QEe=ue("git-branch",fK);/**
|
|
384
|
+
* @license lucide-react v0.525.0 - ISC
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the ISC license.
|
|
387
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
+
*/const dK=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],ZEe=ue("git-merge",dK);/**
|
|
389
|
+
* @license lucide-react v0.525.0 - ISC
|
|
390
|
+
*
|
|
391
|
+
* This source code is licensed under the ISC license.
|
|
392
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
+
*/const hK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],XEe=ue("globe",hK);/**
|
|
394
|
+
* @license lucide-react v0.525.0 - ISC
|
|
395
|
+
*
|
|
396
|
+
* This source code is licensed under the ISC license.
|
|
397
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
+
*/const pK=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],JEe=ue("grip-vertical",pK);/**
|
|
399
|
+
* @license lucide-react v0.525.0 - ISC
|
|
400
|
+
*
|
|
401
|
+
* This source code is licensed under the ISC license.
|
|
402
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
403
|
+
*/const mK=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],eAe=ue("hard-drive",mK);/**
|
|
404
|
+
* @license lucide-react v0.525.0 - ISC
|
|
405
|
+
*
|
|
406
|
+
* This source code is licensed under the ISC license.
|
|
407
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
408
|
+
*/const gK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],tAe=ue("heart-handshake",gK);/**
|
|
409
|
+
* @license lucide-react v0.525.0 - ISC
|
|
410
|
+
*
|
|
411
|
+
* This source code is licensed under the ISC license.
|
|
412
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
413
|
+
*/const vK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],nAe=ue("heart-pulse",vK);/**
|
|
414
|
+
* @license lucide-react v0.525.0 - ISC
|
|
415
|
+
*
|
|
416
|
+
* This source code is licensed under the ISC license.
|
|
417
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
418
|
+
*/const yK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],rAe=ue("heart",yK);/**
|
|
419
|
+
* @license lucide-react v0.525.0 - ISC
|
|
420
|
+
*
|
|
421
|
+
* This source code is licensed under the ISC license.
|
|
422
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
423
|
+
*/const bK=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],iAe=ue("history",bK);/**
|
|
424
|
+
* @license lucide-react v0.525.0 - ISC
|
|
425
|
+
*
|
|
426
|
+
* This source code is licensed under the ISC license.
|
|
427
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
428
|
+
*/const wK=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],aAe=ue("image-plus",wK);/**
|
|
429
|
+
* @license lucide-react v0.525.0 - ISC
|
|
430
|
+
*
|
|
431
|
+
* This source code is licensed under the ISC license.
|
|
432
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
433
|
+
*/const xK=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],oAe=ue("key-round",xK);/**
|
|
434
|
+
* @license lucide-react v0.525.0 - ISC
|
|
435
|
+
*
|
|
436
|
+
* This source code is licensed under the ISC license.
|
|
437
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
438
|
+
*/const _K=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],sAe=ue("layers",_K);/**
|
|
439
|
+
* @license lucide-react v0.525.0 - ISC
|
|
440
|
+
*
|
|
441
|
+
* This source code is licensed under the ISC license.
|
|
442
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
443
|
+
*/const SK=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],lAe=ue("layout-dashboard",SK);/**
|
|
444
|
+
* @license lucide-react v0.525.0 - ISC
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the ISC license.
|
|
447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
448
|
+
*/const EK=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],uAe=ue("layout-grid",EK);/**
|
|
449
|
+
* @license lucide-react v0.525.0 - ISC
|
|
450
|
+
*
|
|
451
|
+
* This source code is licensed under the ISC license.
|
|
452
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
453
|
+
*/const AK=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],cAe=ue("layout-template",AK);/**
|
|
454
|
+
* @license lucide-react v0.525.0 - ISC
|
|
455
|
+
*
|
|
456
|
+
* This source code is licensed under the ISC license.
|
|
457
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
458
|
+
*/const kK=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],fAe=ue("library-big",kK);/**
|
|
459
|
+
* @license lucide-react v0.525.0 - ISC
|
|
460
|
+
*
|
|
461
|
+
* This source code is licensed under the ISC license.
|
|
462
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
463
|
+
*/const CK=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],dAe=ue("link-2",CK);/**
|
|
464
|
+
* @license lucide-react v0.525.0 - ISC
|
|
465
|
+
*
|
|
466
|
+
* This source code is licensed under the ISC license.
|
|
467
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
468
|
+
*/const OK=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],hAe=ue("list-checks",OK);/**
|
|
469
|
+
* @license lucide-react v0.525.0 - ISC
|
|
470
|
+
*
|
|
471
|
+
* This source code is licensed under the ISC license.
|
|
472
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
473
|
+
*/const TK=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],pAe=ue("list-plus",TK);/**
|
|
474
|
+
* @license lucide-react v0.525.0 - ISC
|
|
475
|
+
*
|
|
476
|
+
* This source code is licensed under the ISC license.
|
|
477
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
478
|
+
*/const MK=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],mAe=ue("list-todo",MK);/**
|
|
479
|
+
* @license lucide-react v0.525.0 - ISC
|
|
480
|
+
*
|
|
481
|
+
* This source code is licensed under the ISC license.
|
|
482
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
483
|
+
*/const PK=[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]],gAe=ue("list-tree",PK);/**
|
|
484
|
+
* @license lucide-react v0.525.0 - ISC
|
|
485
|
+
*
|
|
486
|
+
* This source code is licensed under the ISC license.
|
|
487
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
488
|
+
*/const NK=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vAe=ue("loader-circle",NK);/**
|
|
489
|
+
* @license lucide-react v0.525.0 - ISC
|
|
490
|
+
*
|
|
491
|
+
* This source code is licensed under the ISC license.
|
|
492
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
493
|
+
*/const RK=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],yAe=ue("map-pin",RK);/**
|
|
494
|
+
* @license lucide-react v0.525.0 - ISC
|
|
495
|
+
*
|
|
496
|
+
* This source code is licensed under the ISC license.
|
|
497
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
498
|
+
*/const DK=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],bAe=ue("map",DK);/**
|
|
499
|
+
* @license lucide-react v0.525.0 - ISC
|
|
500
|
+
*
|
|
501
|
+
* This source code is licensed under the ISC license.
|
|
502
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
503
|
+
*/const IK=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],wAe=ue("maximize-2",IK);/**
|
|
504
|
+
* @license lucide-react v0.525.0 - ISC
|
|
505
|
+
*
|
|
506
|
+
* This source code is licensed under the ISC license.
|
|
507
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
508
|
+
*/const LK=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],xAe=ue("maximize",LK);/**
|
|
509
|
+
* @license lucide-react v0.525.0 - ISC
|
|
510
|
+
*
|
|
511
|
+
* This source code is licensed under the ISC license.
|
|
512
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
513
|
+
*/const zK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],_Ae=ue("meh",zK);/**
|
|
514
|
+
* @license lucide-react v0.525.0 - ISC
|
|
515
|
+
*
|
|
516
|
+
* This source code is licensed under the ISC license.
|
|
517
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
518
|
+
*/const jK=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],SAe=ue("message-square",jK);/**
|
|
519
|
+
* @license lucide-react v0.525.0 - ISC
|
|
520
|
+
*
|
|
521
|
+
* This source code is licensed under the ISC license.
|
|
522
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
523
|
+
*/const $K=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],EAe=ue("minimize-2",$K);/**
|
|
524
|
+
* @license lucide-react v0.525.0 - ISC
|
|
525
|
+
*
|
|
526
|
+
* This source code is licensed under the ISC license.
|
|
527
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
528
|
+
*/const BK=[["path",{d:"M5 12h14",key:"1ays0h"}]],AAe=ue("minus",BK);/**
|
|
529
|
+
* @license lucide-react v0.525.0 - ISC
|
|
530
|
+
*
|
|
531
|
+
* This source code is licensed under the ISC license.
|
|
532
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
533
|
+
*/const UK=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],kAe=ue("monitor-smartphone",UK);/**
|
|
534
|
+
* @license lucide-react v0.525.0 - ISC
|
|
535
|
+
*
|
|
536
|
+
* This source code is licensed under the ISC license.
|
|
537
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
538
|
+
*/const FK=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],CAe=ue("moon-star",FK);/**
|
|
539
|
+
* @license lucide-react v0.525.0 - ISC
|
|
540
|
+
*
|
|
541
|
+
* This source code is licensed under the ISC license.
|
|
542
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
543
|
+
*/const HK=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],OAe=ue("moon",HK);/**
|
|
544
|
+
* @license lucide-react v0.525.0 - ISC
|
|
545
|
+
*
|
|
546
|
+
* This source code is licensed under the ISC license.
|
|
547
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
548
|
+
*/const GK=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],TAe=ue("move",GK);/**
|
|
549
|
+
* @license lucide-react v0.525.0 - ISC
|
|
550
|
+
*
|
|
551
|
+
* This source code is licensed under the ISC license.
|
|
552
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
553
|
+
*/const qK=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],MAe=ue("music-4",qK);/**
|
|
554
|
+
* @license lucide-react v0.525.0 - ISC
|
|
555
|
+
*
|
|
556
|
+
* This source code is licensed under the ISC license.
|
|
557
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
558
|
+
*/const VK=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],PAe=ue("network",VK);/**
|
|
559
|
+
* @license lucide-react v0.525.0 - ISC
|
|
560
|
+
*
|
|
561
|
+
* This source code is licensed under the ISC license.
|
|
562
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
563
|
+
*/const KK=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],NAe=ue("notebook-pen",KK);/**
|
|
564
|
+
* @license lucide-react v0.525.0 - ISC
|
|
565
|
+
*
|
|
566
|
+
* This source code is licensed under the ISC license.
|
|
567
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
568
|
+
*/const YK=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],RAe=ue("orbit",YK);/**
|
|
569
|
+
* @license lucide-react v0.525.0 - ISC
|
|
570
|
+
*
|
|
571
|
+
* This source code is licensed under the ISC license.
|
|
572
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
573
|
+
*/const WK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],DAe=ue("panel-right-close",WK);/**
|
|
574
|
+
* @license lucide-react v0.525.0 - ISC
|
|
575
|
+
*
|
|
576
|
+
* This source code is licensed under the ISC license.
|
|
577
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
578
|
+
*/const QK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],IAe=ue("panel-right-open",QK);/**
|
|
579
|
+
* @license lucide-react v0.525.0 - ISC
|
|
580
|
+
*
|
|
581
|
+
* This source code is licensed under the ISC license.
|
|
582
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
583
|
+
*/const ZK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],LAe=ue("panel-top",ZK);/**
|
|
584
|
+
* @license lucide-react v0.525.0 - ISC
|
|
585
|
+
*
|
|
586
|
+
* This source code is licensed under the ISC license.
|
|
587
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
588
|
+
*/const XK=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],zAe=ue("party-popper",XK);/**
|
|
589
|
+
* @license lucide-react v0.525.0 - ISC
|
|
590
|
+
*
|
|
591
|
+
* This source code is licensed under the ISC license.
|
|
592
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
593
|
+
*/const JK=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],jAe=ue("pencil-line",JK);/**
|
|
594
|
+
* @license lucide-react v0.525.0 - ISC
|
|
595
|
+
*
|
|
596
|
+
* This source code is licensed under the ISC license.
|
|
597
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
598
|
+
*/const eY=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$Ae=ue("pencil",eY);/**
|
|
599
|
+
* @license lucide-react v0.525.0 - ISC
|
|
600
|
+
*
|
|
601
|
+
* This source code is licensed under the ISC license.
|
|
602
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
603
|
+
*/const tY=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],BAe=ue("play",tY);/**
|
|
604
|
+
* @license lucide-react v0.525.0 - ISC
|
|
605
|
+
*
|
|
606
|
+
* This source code is licensed under the ISC license.
|
|
607
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
608
|
+
*/const nY=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],UAe=ue("plug-zap",nY);/**
|
|
609
|
+
* @license lucide-react v0.525.0 - ISC
|
|
610
|
+
*
|
|
611
|
+
* This source code is licensed under the ISC license.
|
|
612
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
613
|
+
*/const rY=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],FAe=ue("plus",rY);/**
|
|
614
|
+
* @license lucide-react v0.525.0 - ISC
|
|
615
|
+
*
|
|
616
|
+
* This source code is licensed under the ISC license.
|
|
617
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
618
|
+
*/const iY=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],HAe=ue("qr-code",iY);/**
|
|
619
|
+
* @license lucide-react v0.525.0 - ISC
|
|
620
|
+
*
|
|
621
|
+
* This source code is licensed under the ISC license.
|
|
622
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
623
|
+
*/const aY=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],GAe=ue("quote",aY);/**
|
|
624
|
+
* @license lucide-react v0.525.0 - ISC
|
|
625
|
+
*
|
|
626
|
+
* This source code is licensed under the ISC license.
|
|
627
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
628
|
+
*/const oY=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],qAe=ue("radar",oY);/**
|
|
629
|
+
* @license lucide-react v0.525.0 - ISC
|
|
630
|
+
*
|
|
631
|
+
* This source code is licensed under the ISC license.
|
|
632
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
633
|
+
*/const sY=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],VAe=ue("refresh-ccw",sY);/**
|
|
634
|
+
* @license lucide-react v0.525.0 - ISC
|
|
635
|
+
*
|
|
636
|
+
* This source code is licensed under the ISC license.
|
|
637
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
638
|
+
*/const lY=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],KAe=ue("refresh-cw",lY);/**
|
|
639
|
+
* @license lucide-react v0.525.0 - ISC
|
|
640
|
+
*
|
|
641
|
+
* This source code is licensed under the ISC license.
|
|
642
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
643
|
+
*/const uY=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],YAe=ue("repeat",uY);/**
|
|
644
|
+
* @license lucide-react v0.525.0 - ISC
|
|
645
|
+
*
|
|
646
|
+
* This source code is licensed under the ISC license.
|
|
647
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
648
|
+
*/const cY=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],WAe=ue("rocket",cY);/**
|
|
649
|
+
* @license lucide-react v0.525.0 - ISC
|
|
650
|
+
*
|
|
651
|
+
* This source code is licensed under the ISC license.
|
|
652
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
653
|
+
*/const fY=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],QAe=ue("rotate-ccw",fY);/**
|
|
654
|
+
* @license lucide-react v0.525.0 - ISC
|
|
655
|
+
*
|
|
656
|
+
* This source code is licensed under the ISC license.
|
|
657
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
658
|
+
*/const dY=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],ZAe=ue("route",dY);/**
|
|
659
|
+
* @license lucide-react v0.525.0 - ISC
|
|
660
|
+
*
|
|
661
|
+
* This source code is licensed under the ISC license.
|
|
662
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
663
|
+
*/const hY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],XAe=ue("rows-3",hY);/**
|
|
664
|
+
* @license lucide-react v0.525.0 - ISC
|
|
665
|
+
*
|
|
666
|
+
* This source code is licensed under the ISC license.
|
|
667
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
668
|
+
*/const pY=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],JAe=ue("save",pY);/**
|
|
669
|
+
* @license lucide-react v0.525.0 - ISC
|
|
670
|
+
*
|
|
671
|
+
* This source code is licensed under the ISC license.
|
|
672
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
673
|
+
*/const mY=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],eke=ue("scan-search",mY);/**
|
|
674
|
+
* @license lucide-react v0.525.0 - ISC
|
|
675
|
+
*
|
|
676
|
+
* This source code is licensed under the ISC license.
|
|
677
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
678
|
+
*/const gY=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],tke=ue("scissors",gY);/**
|
|
679
|
+
* @license lucide-react v0.525.0 - ISC
|
|
680
|
+
*
|
|
681
|
+
* This source code is licensed under the ISC license.
|
|
682
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
683
|
+
*/const vY=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],nke=ue("scroll-text",vY);/**
|
|
684
|
+
* @license lucide-react v0.525.0 - ISC
|
|
685
|
+
*
|
|
686
|
+
* This source code is licensed under the ISC license.
|
|
687
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
688
|
+
*/const yY=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],rke=ue("search-check",yY);/**
|
|
689
|
+
* @license lucide-react v0.525.0 - ISC
|
|
690
|
+
*
|
|
691
|
+
* This source code is licensed under the ISC license.
|
|
692
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
693
|
+
*/const bY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ike=ue("search",bY);/**
|
|
694
|
+
* @license lucide-react v0.525.0 - ISC
|
|
695
|
+
*
|
|
696
|
+
* This source code is licensed under the ISC license.
|
|
697
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
698
|
+
*/const wY=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ake=ue("send",wY);/**
|
|
699
|
+
* @license lucide-react v0.525.0 - ISC
|
|
700
|
+
*
|
|
701
|
+
* This source code is licensed under the ISC license.
|
|
702
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
703
|
+
*/const xY=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],oke=ue("settings-2",xY);/**
|
|
704
|
+
* @license lucide-react v0.525.0 - ISC
|
|
705
|
+
*
|
|
706
|
+
* This source code is licensed under the ISC license.
|
|
707
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
708
|
+
*/const _Y=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ske=ue("settings",_Y);/**
|
|
709
|
+
* @license lucide-react v0.525.0 - ISC
|
|
710
|
+
*
|
|
711
|
+
* This source code is licensed under the ISC license.
|
|
712
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
713
|
+
*/const SY=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],lke=ue("shapes",SY);/**
|
|
714
|
+
* @license lucide-react v0.525.0 - ISC
|
|
715
|
+
*
|
|
716
|
+
* This source code is licensed under the ISC license.
|
|
717
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
718
|
+
*/const EY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],uke=ue("shield-ban",EY);/**
|
|
719
|
+
* @license lucide-react v0.525.0 - ISC
|
|
720
|
+
*
|
|
721
|
+
* This source code is licensed under the ISC license.
|
|
722
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
723
|
+
*/const AY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cke=ue("shield-check",AY);/**
|
|
724
|
+
* @license lucide-react v0.525.0 - ISC
|
|
725
|
+
*
|
|
726
|
+
* This source code is licensed under the ISC license.
|
|
727
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
728
|
+
*/const kY=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],fke=ue("shield-off",kY);/**
|
|
729
|
+
* @license lucide-react v0.525.0 - ISC
|
|
730
|
+
*
|
|
731
|
+
* This source code is licensed under the ISC license.
|
|
732
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
733
|
+
*/const CY=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],dke=ue("sliders-horizontal",CY);/**
|
|
734
|
+
* @license lucide-react v0.525.0 - ISC
|
|
735
|
+
*
|
|
736
|
+
* This source code is licensed under the ISC license.
|
|
737
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
738
|
+
*/const OY=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],hke=ue("smartphone",OY);/**
|
|
739
|
+
* @license lucide-react v0.525.0 - ISC
|
|
740
|
+
*
|
|
741
|
+
* This source code is licensed under the ISC license.
|
|
742
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
743
|
+
*/const TY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],pke=ue("smile",TY);/**
|
|
744
|
+
* @license lucide-react v0.525.0 - ISC
|
|
745
|
+
*
|
|
746
|
+
* This source code is licensed under the ISC license.
|
|
747
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
748
|
+
*/const MY=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],mke=ue("sparkles",MY);/**
|
|
749
|
+
* @license lucide-react v0.525.0 - ISC
|
|
750
|
+
*
|
|
751
|
+
* This source code is licensed under the ISC license.
|
|
752
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
753
|
+
*/const PY=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],gke=ue("split",PY);/**
|
|
754
|
+
* @license lucide-react v0.525.0 - ISC
|
|
755
|
+
*
|
|
756
|
+
* This source code is licensed under the ISC license.
|
|
757
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
758
|
+
*/const NY=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],vke=ue("square-pen",NY);/**
|
|
759
|
+
* @license lucide-react v0.525.0 - ISC
|
|
760
|
+
*
|
|
761
|
+
* This source code is licensed under the ISC license.
|
|
762
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
763
|
+
*/const RY=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],yke=ue("square-terminal",RY);/**
|
|
764
|
+
* @license lucide-react v0.525.0 - ISC
|
|
765
|
+
*
|
|
766
|
+
* This source code is licensed under the ISC license.
|
|
767
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
768
|
+
*/const DY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],bke=ue("square",DY);/**
|
|
769
|
+
* @license lucide-react v0.525.0 - ISC
|
|
770
|
+
*
|
|
771
|
+
* This source code is licensed under the ISC license.
|
|
772
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
773
|
+
*/const IY=[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]],wke=ue("sticky-note",IY);/**
|
|
774
|
+
* @license lucide-react v0.525.0 - ISC
|
|
775
|
+
*
|
|
776
|
+
* This source code is licensed under the ISC license.
|
|
777
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
778
|
+
*/const LY=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],xke=ue("table-properties",LY);/**
|
|
779
|
+
* @license lucide-react v0.525.0 - ISC
|
|
780
|
+
*
|
|
781
|
+
* This source code is licensed under the ISC license.
|
|
782
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
783
|
+
*/const zY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],_ke=ue("target",zY);/**
|
|
784
|
+
* @license lucide-react v0.525.0 - ISC
|
|
785
|
+
*
|
|
786
|
+
* This source code is licensed under the ISC license.
|
|
787
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
788
|
+
*/const jY=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],Ske=ue("timer-reset",jY);/**
|
|
789
|
+
* @license lucide-react v0.525.0 - ISC
|
|
790
|
+
*
|
|
791
|
+
* This source code is licensed under the ISC license.
|
|
792
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
793
|
+
*/const $Y=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Eke=ue("timer",$Y);/**
|
|
794
|
+
* @license lucide-react v0.525.0 - ISC
|
|
795
|
+
*
|
|
796
|
+
* This source code is licensed under the ISC license.
|
|
797
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
798
|
+
*/const BY=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ake=ue("trash-2",BY);/**
|
|
799
|
+
* @license lucide-react v0.525.0 - ISC
|
|
800
|
+
*
|
|
801
|
+
* This source code is licensed under the ISC license.
|
|
802
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
803
|
+
*/const UY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],kke=ue("triangle-alert",UY);/**
|
|
804
|
+
* @license lucide-react v0.525.0 - ISC
|
|
805
|
+
*
|
|
806
|
+
* This source code is licensed under the ISC license.
|
|
807
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
808
|
+
*/const FY=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Cke=ue("trophy",FY);/**
|
|
809
|
+
* @license lucide-react v0.525.0 - ISC
|
|
810
|
+
*
|
|
811
|
+
* This source code is licensed under the ISC license.
|
|
812
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
813
|
+
*/const HY=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Oke=ue("type",HY);/**
|
|
814
|
+
* @license lucide-react v0.525.0 - ISC
|
|
815
|
+
*
|
|
816
|
+
* This source code is licensed under the ISC license.
|
|
817
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
818
|
+
*/const GY=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],Tke=ue("unfold-vertical",GY);/**
|
|
819
|
+
* @license lucide-react v0.525.0 - ISC
|
|
820
|
+
*
|
|
821
|
+
* This source code is licensed under the ISC license.
|
|
822
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
823
|
+
*/const qY=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Mke=ue("upload",qY);/**
|
|
824
|
+
* @license lucide-react v0.525.0 - ISC
|
|
825
|
+
*
|
|
826
|
+
* This source code is licensed under the ISC license.
|
|
827
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
828
|
+
*/const VY=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Pke=ue("user-round",VY);/**
|
|
829
|
+
* @license lucide-react v0.525.0 - ISC
|
|
830
|
+
*
|
|
831
|
+
* This source code is licensed under the ISC license.
|
|
832
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
833
|
+
*/const KY=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Nke=ue("users",KY);/**
|
|
834
|
+
* @license lucide-react v0.525.0 - ISC
|
|
835
|
+
*
|
|
836
|
+
* This source code is licensed under the ISC license.
|
|
837
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
838
|
+
*/const YY=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Rke=ue("wand-sparkles",YY);/**
|
|
839
|
+
* @license lucide-react v0.525.0 - ISC
|
|
840
|
+
*
|
|
841
|
+
* This source code is licensed under the ISC license.
|
|
842
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
843
|
+
*/const WY=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Dke=ue("waves",WY);/**
|
|
844
|
+
* @license lucide-react v0.525.0 - ISC
|
|
845
|
+
*
|
|
846
|
+
* This source code is licensed under the ISC license.
|
|
847
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
848
|
+
*/const QY=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],Ike=ue("waypoints",QY);/**
|
|
849
|
+
* @license lucide-react v0.525.0 - ISC
|
|
850
|
+
*
|
|
851
|
+
* This source code is licensed under the ISC license.
|
|
852
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
853
|
+
*/const ZY=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Lke=ue("workflow",ZY);/**
|
|
854
|
+
* @license lucide-react v0.525.0 - ISC
|
|
855
|
+
*
|
|
856
|
+
* This source code is licensed under the ISC license.
|
|
857
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
858
|
+
*/const XY=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zke=ue("x",XY);/**
|
|
859
|
+
* @license lucide-react v0.525.0 - ISC
|
|
860
|
+
*
|
|
861
|
+
* This source code is licensed under the ISC license.
|
|
862
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
863
|
+
*/const JY=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],jke=ue("zap",JY);function Ez(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ez(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ez(e))&&(r&&(r+=" "),r+=t);return r}const eW=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},tW=(e,t)=>({classGroupId:e,validator:t}),Az=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bv="-",BM=[],nW="arbitrary..",rW=e=>{const t=aW(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return iW(s);const u=s.split(bv),c=u[0]===""&&u.length>1?1:0;return kz(u,c,t)},getConflictingClassGroupIds:(s,u)=>{if(u){const c=r[s],f=n[s];return c?f?eW(f,c):c:f||BM}return n[s]||BM}}},kz=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const f=kz(e,t+1,a);if(f)return f}const s=n.validators;if(s===null)return;const u=t===0?e.join(bv):e.slice(t).join(bv),c=s.length;for(let f=0;f<c;f++){const h=s[f];if(h.validator(u))return h.classGroupId}},iW=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?nW+r:void 0})(),aW=e=>{const{theme:t,classGroups:n}=e;return oW(n,t)},oW=(e,t)=>{const n=Az();for(const r in e){const i=e[r];X2(i,n,r,t)}return n},X2=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];sW(s,t,n,r)}},sW=(e,t,n,r)=>{if(typeof e=="string"){lW(e,t,n);return}if(typeof e=="function"){uW(e,t,n,r);return}cW(e,t,n,r)},lW=(e,t,n)=>{const r=e===""?t:Cz(t,e);r.classGroupId=n},uW=(e,t,n,r)=>{if(fW(e)){X2(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(tW(n,e))},cW=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[u,c]=i[s];X2(c,Cz(t,u),n,r)}},Cz=(e,t)=>{let n=e;const r=t.split(bv),i=r.length;for(let a=0;a<i;a++){const s=r[a];let u=n.nextPart.get(s);u||(u=Az(),n.nextPart.set(s,u)),n=u}return n},fW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},uS="!",UM=":",hW=[],FM=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),pW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,u=0,c=0,f;const h=i.length;for(let b=0;b<h;b++){const w=i[b];if(s===0&&u===0){if(w===UM){a.push(i.slice(c,b)),c=b+1;continue}if(w==="/"){f=b;continue}}w==="["?s++:w==="]"?s--:w==="("?u++:w===")"&&u--}const p=a.length===0?i:i.slice(c);let g=p,v=!1;p.endsWith(uS)?(g=p.slice(0,-1),v=!0):p.startsWith(uS)&&(g=p.slice(1),v=!0);const y=f&&f>c?f-c:void 0;return FM(a,v,g,y)};if(t){const i=t+UM,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):FM(hW,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},mW=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],u=s[0]==="[",c=t.has(s);u||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},gW=e=>({cache:dW(e.cacheSize),parseClassName:pW(e),sortModifiers:mW(e),...rW(e)}),vW=/\s+/,yW=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],u=e.trim().split(vW);let c="";for(let f=u.length-1;f>=0;f-=1){const h=u[f],{isExternal:p,modifiers:g,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:b}=n(h);if(p){c=h+(c.length>0?" "+c:c);continue}let w=!!b,_=r(w?y.substring(0,b):y);if(!_){if(!w){c=h+(c.length>0?" "+c:c);continue}if(_=r(y),!_){c=h+(c.length>0?" "+c:c);continue}w=!1}const C=g.length===0?"":g.length===1?g[0]:a(g).join(":"),E=v?C+uS:C,S=E+_;if(s.indexOf(S)>-1)continue;s.push(S);const T=i(_,w);for(let O=0;O<T.length;++O){const M=T[O];s.push(E+M)}c=h+(c.length>0?" "+c:c)}return c},bW=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Oz(n))&&(i&&(i+=" "),i+=r);return i},Oz=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Oz(e[r]))&&(n&&(n+=" "),n+=t);return n},wW=(e,...t)=>{let n,r,i,a;const s=c=>{const f=t.reduce((h,p)=>p(h),e());return n=gW(f),r=n.cache.get,i=n.cache.set,a=u,u(c)},u=c=>{const f=r(c);if(f)return f;const h=yW(c,n);return i(c,h),h};return a=s,(...c)=>a(bW(...c))},xW=[],kn=e=>{const t=n=>n[e]||xW;return t.isThemeGetter=!0,t},Tz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_W=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,SW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EW=/\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$/,AW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=e=>_W.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),ds=e=>!!e&&Number.isInteger(Number(e)),ww=e=>e.endsWith("%")&&at(e.slice(0,-1)),Qa=e=>SW.test(e),Pz=()=>!0,OW=e=>EW.test(e)&&!AW.test(e),J2=()=>!1,TW=e=>kW.test(e),MW=e=>CW.test(e),PW=e=>!ze(e)&&!je(e),NW=e=>Vs(e,Dz,J2),ze=e=>Tz.test(e),vl=e=>Vs(e,Iz,OW),HM=e=>Vs(e,BW,at),RW=e=>Vs(e,zz,Pz),DW=e=>Vs(e,Lz,J2),GM=e=>Vs(e,Nz,J2),IW=e=>Vs(e,Rz,MW),vg=e=>Vs(e,jz,TW),je=e=>Mz.test(e),Rd=e=>pu(e,Iz),LW=e=>pu(e,Lz),qM=e=>pu(e,Nz),zW=e=>pu(e,Dz),jW=e=>pu(e,Rz),yg=e=>pu(e,jz,!0),$W=e=>pu(e,zz,!0),Vs=(e,t,n)=>{const r=Tz.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pu=(e,t,n=!1)=>{const r=Mz.exec(e);return r?r[1]?t(r[1]):n:!1},Nz=e=>e==="position"||e==="percentage",Rz=e=>e==="image"||e==="url",Dz=e=>e==="length"||e==="size"||e==="bg-size",Iz=e=>e==="length",BW=e=>e==="number",Lz=e=>e==="family-name",zz=e=>e==="number"||e==="weight",jz=e=>e==="shadow",UW=()=>{const e=kn("color"),t=kn("font"),n=kn("text"),r=kn("font-weight"),i=kn("tracking"),a=kn("leading"),s=kn("breakpoint"),u=kn("container"),c=kn("spacing"),f=kn("radius"),h=kn("shadow"),p=kn("inset-shadow"),g=kn("text-shadow"),v=kn("drop-shadow"),y=kn("blur"),b=kn("perspective"),w=kn("aspect"),_=kn("ease"),C=kn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...S(),je,ze],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],P=()=>[je,ze,c],R=()=>[fs,"full","auto",...P()],z=()=>[ds,"none","subgrid",je,ze],D=()=>["auto",{span:["full",ds,je,ze]},ds,je,ze],N=()=>[ds,"auto",je,ze],$=()=>["auto","min","max","fr",je,ze],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],G=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],q=()=>[fs,"screen","full","dvw","lvw","svw","min","max","fit",...P()],H=()=>[fs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],V=()=>[e,je,ze],B=()=>[...S(),qM,GM,{position:[je,ze]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",zW,NW,{size:[je,ze]}],ee=()=>[ww,Rd,vl],ce=()=>["","none","full",f,je,ze],he=()=>["",at,Rd,vl],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[at,ww,qM,GM],pe=()=>["","none",y,je,ze],ye=()=>["none",at,je,ze],te=()=>["none",at,je,ze],Ce=()=>[at,je,ze],Se=()=>[fs,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qa],breakpoint:[Qa],color:[Pz],container:[Qa],"drop-shadow":[Qa],ease:["in","out","in-out"],font:[PW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qa],shadow:[Qa],spacing:["px",at],text:[Qa],"text-shadow":[Qa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,ze,je,w]}],container:["container"],columns:[{columns:[at,ze,je,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[ds,"auto",je,ze]}],basis:[{basis:[fs,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,fs,"auto","initial","none",ze]}],grow:[{grow:["",at,je,ze]}],shrink:[{shrink:["",at,je,ze]}],order:[{order:[ds,"first","last","none",je,ze]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[u,"screen",...G()]}],"min-w":[{"min-w":[u,"screen","none",...G()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Rd,vl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$W,RW]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ww,ze]}],"font-family":[{font:[LW,DW,t]}],"font-features":[{"font-features":[ze]}],"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,je,ze]}],"line-clamp":[{"line-clamp":[at,"none",je,HM]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",je,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",je,vl]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[at,"auto",je,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,ze]}],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",je,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ds,je,ze],radial:["",je,ze],conic:[ds,je,ze]},jW,IW]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,je,ze]}],"outline-w":[{outline:["",at,Rd,vl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",h,yg,vg]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",p,yg,vg]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[at,vl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",g,yg,vg]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[at,je,ze]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[at]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[je,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[at]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,ze]}],filter:[{filter:["","none",je,ze]}],blur:[{blur:pe()}],brightness:[{brightness:[at,je,ze]}],contrast:[{contrast:[at,je,ze]}],"drop-shadow":[{"drop-shadow":["","none",v,yg,vg]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",at,je,ze]}],"hue-rotate":[{"hue-rotate":[at,je,ze]}],invert:[{invert:["",at,je,ze]}],saturate:[{saturate:[at,je,ze]}],sepia:[{sepia:["",at,je,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",je,ze]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[at,je,ze]}],"backdrop-contrast":[{"backdrop-contrast":[at,je,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,je,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,je,ze]}],"backdrop-invert":[{"backdrop-invert":["",at,je,ze]}],"backdrop-opacity":[{"backdrop-opacity":[at,je,ze]}],"backdrop-saturate":[{"backdrop-saturate":[at,je,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",at,je,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",je,ze]}],ease:[{ease:["linear","initial",_,je,ze]}],delay:[{delay:[at,je,ze]}],animate:[{animate:["none",C,je,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,je,ze]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[je,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",je,ze]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",je,ze]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[at,Rd,vl,HM]}],stroke:[{stroke:["none",...V()]}],"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"]}},$ke=wW(UW),VM=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KM=Et,Bke=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return KM(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(f=>{const h=n==null?void 0:n[f],p=a==null?void 0:a[f];if(h===null)return null;const g=VM(h)||VM(p);return i[f][g]}),u=n&&Object.entries(n).reduce((f,h)=>{let[p,g]=h;return g===void 0||(f[p]=g),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,h)=>{let{class:p,className:g,...v}=h;return Object.entries(v).every(y=>{let[b,w]=y;return Array.isArray(w)?w.includes({...a,...u}[b]):{...a,...u}[b]===w})?[...f,p,g]:f},[]);return KM(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)};var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),s={};for(const u of a)s[u]=i[u];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(wt||(wt={}));var YM;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(YM||(YM={}));const Be=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bs=e=>{switch(typeof e){case"undefined":return Be.undefined;case"string":return Be.string;case"number":return Number.isNaN(e)?Be.nan:Be.number;case"boolean":return Be.boolean;case"function":return Be.function;case"bigint":return Be.bigint;case"symbol":return Be.symbol;case"object":return Array.isArray(e)?Be.array:e===null?Be.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Be.promise:typeof Map<"u"&&e instanceof Map?Be.map:typeof Set<"u"&&e instanceof Set?Be.set:typeof Date<"u"&&e instanceof Date?Be.date:Be.object;default:return Be.unknown}},Ae=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class wo extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let u=r,c=0;for(;c<s.path.length;){const f=s.path[c];c===s.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(s))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return i(this),r}static assert(t){if(!(t instanceof wo))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wo.create=e=>new wo(e);const cS=(e,t)=>{let n;switch(e.code){case Ae.invalid_type:e.received===Be.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case Ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case Ae.invalid_union:n="Invalid input";break;case Ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case Ae.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case Ae.invalid_arguments:n="Invalid function arguments";break;case Ae.invalid_return_type:n="Invalid function return type";break;case Ae.invalid_date:n="Invalid date";break;case Ae.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ae.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ae.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ae.custom:n="Invalid input";break;case Ae.invalid_intersection_types:n="Intersection results could not be merged";break;case Ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let FW=cS;function HW(){return FW}const GW=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(s,{data:t,defaultError:u}).message;return{...i,path:a,message:u}};function Pe(e,t){const n=HW(),r=GW({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===cS?void 0:cS].filter(i=>!!i)});e.common.issues.push(r)}class Qr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return et;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,s=await i.value;r.push({key:a,value:s})}return Qr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return et;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[a.value]=s.value)}return{status:t.value,value:r}}}const et=Object.freeze({status:"aborted"}),ih=e=>({status:"dirty",value:e}),Ei=e=>({status:"valid",value:e}),WM=e=>e.status==="aborted",QM=e=>e.status==="dirty",Vc=e=>e.status==="valid",wv=e=>typeof Promise<"u"&&e instanceof Promise;var Ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ge||(Ge={}));class Us{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ZM=(e,t)=>{if(Vc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new wo(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,u)=>{const{message:c}=e;return s.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:s.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:i}}class vt{get description(){return this._def.description}_getType(t){return bs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qr,ctx:{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(wv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parseSync({data:t,path:r.path,parent:r});return ZM(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Vc(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Vc(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(wv(i)?i:Promise.resolve(i));return ZM(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const s=t(i),u=()=>a.addIssue({code:Ae.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(u(),!1)):s?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Wc({schema:this,typeName:tt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ls.create(this,this._def)}nullable(){return Qc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return pa.create(this)}promise(){return Ev.create(this,this._def)}or(t){return _v.create([this,t],this._def)}and(t){return Sv.create(this,t,this._def)}transform(t){return new Wc({...ot(this._def),schema:this,typeName:tt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new hS({...ot(this._def),innerType:this,defaultValue:n,typeName:tt.ZodDefault})}brand(){return new hQ({typeName:tt.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new pS({...ot(this._def),innerType:this,catchValue:n,typeName:tt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return eE.create(this,t)}readonly(){return mS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const qW=/^c[^\s-]{8,}$/i,VW=/^[0-9a-z]+$/,KW=/^[0-9A-HJKMNP-TV-Z]{26}$/i,YW=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,WW=/^[a-z0-9_-]{21}$/i,QW=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ZW=/^[-+]?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)?)??$/,XW=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xw;const eQ=/^(?:(?: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])$/,tQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,nQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iQ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,aQ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$z="((\\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])))",oQ=new RegExp(`^${$z}$`);function Bz(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function sQ(e){return new RegExp(`^${Bz(e)}$`)}function lQ(e){let t=`${$z}T${Bz(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function uQ(e,t){return!!((t==="v4"||!t)&&eQ.test(e)||(t==="v6"||!t)&&nQ.test(e))}function cQ(e,t){if(!QW.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function fQ(e,t){return!!((t==="v4"||!t)&&tQ.test(e)||(t==="v6"||!t)&&rQ.test(e))}class uo extends vt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Be.string){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.string,received:a.parsedType}),et}const r=new Qr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,u=t.data.length<a.value;(s||u)&&(i=this._getOrReturnCtx(t,i),s?Pe(i,{code:Ae.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):u&&Pe(i,{code:Ae.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")XW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"email",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")xw||(xw=new RegExp(JW,"u")),xw.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"emoji",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")YW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"uuid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")WW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"nanoid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")qW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cuid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")VW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cuid2",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")KW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"ulid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Pe(i,{validation:"url",code:Ae.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"regex",code:Ae.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?lQ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?oQ.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?sQ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?ZW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"duration",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?uQ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"ip",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?cQ(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"jwt",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?fQ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cidr",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?iQ.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"base64",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?aQ.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"base64url",code:Ae.invalid_string,message:a.message}),r.dirty()):wt.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Ae.invalid_string,...Ge.errToObj(r)})}_addCheck(t){return new uo({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ge.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ge.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ge.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ge.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ge.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ge.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ge.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ge.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ge.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ge.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ge.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ge.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ge.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Ge.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ge.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ge.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ge.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ge.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ge.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ge.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ge.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ge.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ge.errToObj(n)})}nonempty(t){return this.min(1,Ge.errToObj(t))}trim(){return new uo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new uo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new uo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}uo.create=e=>new uo({checks:[],typeName:tt.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});function dQ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class Zl extends vt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Be.number){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.number,received:a.parsedType}),et}let r;const i=new Qr;for(const a of this._def.checks)a.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?dQ(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_finite,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ge.toString(n))}setLimit(t,n,r,i){return new Zl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(t){return new Zl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zl.create=e=>new Zl({checks:[],typeName:tt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Xl extends vt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Be.bigint)return this._getInvalidInput(t);let r;const i=new Qr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ae.invalid_type,expected:Be.bigint,received:n.parsedType}),et}gte(t,n){return this.setLimit("min",t,!0,Ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ge.toString(n))}setLimit(t,n,r,i){return new Xl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(t){return new Xl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Xl.create=e=>new Xl({checks:[],typeName:tt.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});class xv extends vt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Be.boolean){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.boolean,received:r.parsedType}),et}return Ei(t.data)}}xv.create=e=>new xv({typeName:tt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Kc extends vt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Be.date){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.date,received:a.parsedType}),et}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_date}),et}const r=new Qr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):wt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Kc({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ge.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ge.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Kc.create=e=>new Kc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:tt.ZodDate,...ot(e)});class XM extends vt{_parse(t){if(this._getType(t)!==Be.symbol){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.symbol,received:r.parsedType}),et}return Ei(t.data)}}XM.create=e=>new XM({typeName:tt.ZodSymbol,...ot(e)});class JM extends vt{_parse(t){if(this._getType(t)!==Be.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.undefined,received:r.parsedType}),et}return Ei(t.data)}}JM.create=e=>new JM({typeName:tt.ZodUndefined,...ot(e)});class eP extends vt{_parse(t){if(this._getType(t)!==Be.null){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.null,received:r.parsedType}),et}return Ei(t.data)}}eP.create=e=>new eP({typeName:tt.ZodNull,...ot(e)});class tP extends vt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ei(t.data)}}tP.create=e=>new tP({typeName:tt.ZodAny,...ot(e)});class nP extends vt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ei(t.data)}}nP.create=e=>new nP({typeName:tt.ZodUnknown,...ot(e)});class Fs extends vt{_parse(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ae.invalid_type,expected:Be.never,received:n.parsedType}),et}}Fs.create=e=>new Fs({typeName:tt.ZodNever,...ot(e)});class rP extends vt{_parse(t){if(this._getType(t)!==Be.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.void,received:r.parsedType}),et}return Ei(t.data)}}rP.create=e=>new rP({typeName:tt.ZodVoid,...ot(e)});class pa extends vt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Be.array)return Pe(n,{code:Ae.invalid_type,expected:Be.array,received:n.parsedType}),et;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,u=n.data.length<i.exactLength.value;(s||u)&&(Pe(n,{code:s?Ae.too_big:Ae.too_small,minimum:u?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Pe(n,{code:Ae.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Pe(n,{code:Ae.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,u)=>i.type._parseAsync(new Us(n,s,n.path,u)))).then(s=>Qr.mergeArray(r,s));const a=[...n.data].map((s,u)=>i.type._parseSync(new Us(n,s,n.path,u)));return Qr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new pa({...this._def,minLength:{value:t,message:Ge.toString(n)}})}max(t,n){return new pa({...this._def,maxLength:{value:t,message:Ge.toString(n)}})}length(t,n){return new pa({...this._def,exactLength:{value:t,message:Ge.toString(n)}})}nonempty(t){return this.min(1,t)}}pa.create=(e,t)=>new pa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tt.ZodArray,...ot(t)});function xc(e){if(e instanceof bn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ls.create(xc(r))}return new bn({...e._def,shape:()=>t})}else return e instanceof pa?new pa({...e._def,type:xc(e.element)}):e instanceof Ls?Ls.create(xc(e.unwrap())):e instanceof Qc?Qc.create(xc(e.unwrap())):e instanceof Jl?Jl.create(e.items.map(t=>xc(t))):e}class bn extends vt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Be.object){const f=this._getOrReturnCtx(t);return Pe(f,{code:Ae.invalid_type,expected:Be.object,received:f.parsedType}),et}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),u=[];if(!(this._def.catchall instanceof Fs&&this._def.unknownKeys==="strip"))for(const f in i.data)s.includes(f)||u.push(f);const c=[];for(const f of s){const h=a[f],p=i.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Us(i,p,i.path,f)),alwaysSet:f in i.data})}if(this._def.catchall instanceof Fs){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:i.data[h]}});else if(f==="strict")u.length>0&&(Pe(i,{code:Ae.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const p=i.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Us(i,p,i.path,h)),alwaysSet:h in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const p=await h.key,g=await h.value;f.push({key:p,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>Qr.mergeObjectSync(r,f)):Qr.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Ge.errToObj,new bn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Ge.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new bn({...this._def,unknownKeys:"strip"})}passthrough(){return new bn({...this._def,unknownKeys:"passthrough"})}extend(t){return new bn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new bn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:tt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new bn({...this._def,catchall:t})}pick(t){const n={};for(const r of wt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new bn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of wt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new bn({...this._def,shape:()=>n})}deepPartial(){return xc(this)}partial(t){const n={};for(const r of wt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new bn({...this._def,shape:()=>n})}required(t){const n={};for(const r of wt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Ls;)a=a._def.innerType;n[r]=a}return new bn({...this._def,shape:()=>n})}keyof(){return Uz(wt.objectKeys(this.shape))}}bn.create=(e,t)=>new bn({shape:()=>e,unknownKeys:"strip",catchall:Fs.create(),typeName:tt.ZodObject,...ot(t)});bn.strictCreate=(e,t)=>new bn({shape:()=>e,unknownKeys:"strict",catchall:Fs.create(),typeName:tt.ZodObject,...ot(t)});bn.lazycreate=(e,t)=>new bn({shape:e,unknownKeys:"strip",catchall:Fs.create(),typeName:tt.ZodObject,...ot(t)});class _v extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const u of a)if(u.result.status==="valid")return u.result;for(const u of a)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const s=a.map(u=>new wo(u.ctx.common.issues));return Pe(n,{code:Ae.invalid_union,unionErrors:s}),et}if(n.common.async)return Promise.all(r.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:f}),f.common.issues.length&&s.push(f.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const u=s.map(c=>new wo(c));return Pe(n,{code:Ae.invalid_union,unionErrors:u}),et}}get options(){return this._def.options}}_v.create=(e,t)=>new _v({options:e,typeName:tt.ZodUnion,...ot(t)});function fS(e,t){const n=bs(e),r=bs(t);if(e===t)return{valid:!0,data:e};if(n===Be.object&&r===Be.object){const i=wt.objectKeys(t),a=wt.objectKeys(e).filter(u=>i.indexOf(u)!==-1),s={...e,...t};for(const u of a){const c=fS(e[u],t[u]);if(!c.valid)return{valid:!1};s[u]=c.data}return{valid:!0,data:s}}else if(n===Be.array&&r===Be.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],u=t[a],c=fS(s,u);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Be.date&&r===Be.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Sv extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,s)=>{if(WM(a)||WM(s))return et;const u=fS(a.value,s.value);return u.valid?((QM(a)||QM(s))&&n.dirty(),{status:n.value,value:u.data}):(Pe(r,{code:Ae.invalid_intersection_types}),et)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Sv.create=(e,t,n)=>new Sv({left:e,right:t,typeName:tt.ZodIntersection,...ot(n)});class Jl extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.array)return Pe(r,{code:Ae.invalid_type,expected:Be.array,received:r.parsedType}),et;if(r.data.length<this._def.items.length)return Pe(r,{code:Ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),et;!this._def.rest&&r.data.length>this._def.items.length&&(Pe(r,{code:Ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((s,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Us(r,s,r.path,u)):null}).filter(s=>!!s);return r.common.async?Promise.all(a).then(s=>Qr.mergeArray(n,s)):Qr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Jl({...this._def,rest:t})}}Jl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jl({items:e,typeName:tt.ZodTuple,rest:null,...ot(t)})};class iP extends vt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.map)return Pe(r,{code:Ae.invalid_type,expected:Be.map,received:r.parsedType}),et;const i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([u,c],f)=>({key:i._parse(new Us(r,u,r.path,[f,"key"])),value:a._parse(new Us(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of s){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return et;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of s){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return et;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}iP.create=(e,t,n)=>new iP({valueType:t,keyType:e,typeName:tt.ZodMap,...ot(n)});class Eh extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.set)return Pe(r,{code:Ae.invalid_type,expected:Be.set,received:r.parsedType}),et;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Pe(r,{code:Ae.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Pe(r,{code:Ae.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function s(c){const f=new Set;for(const h of c){if(h.status==="aborted")return et;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>a._parse(new Us(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>s(c)):s(u)}min(t,n){return new Eh({...this._def,minSize:{value:t,message:Ge.toString(n)}})}max(t,n){return new Eh({...this._def,maxSize:{value:t,message:Ge.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Eh.create=(e,t)=>new Eh({valueType:e,minSize:null,maxSize:null,typeName:tt.ZodSet,...ot(t)});class aP extends vt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}aP.create=(e,t)=>new aP({getter:e,typeName:tt.ZodLazy,...ot(t)});class dS extends vt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Pe(n,{received:n.data,code:Ae.invalid_literal,expected:this._def.value}),et}return{status:"valid",value:t.data}}get value(){return this._def.value}}dS.create=(e,t)=>new dS({value:e,typeName:tt.ZodLiteral,...ot(t)});function Uz(e,t){return new Yc({values:e,typeName:tt.ZodEnum,...ot(t)})}class Yc extends vt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{expected:wt.joinValues(r),received:n.parsedType,code:Ae.invalid_type}),et}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{received:n.data,code:Ae.invalid_enum_value,options:r}),et}return Ei(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yc.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yc.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yc.create=Uz;class oP extends vt{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Be.string&&r.parsedType!==Be.number){const i=wt.objectValues(n);return Pe(r,{expected:wt.joinValues(i),received:r.parsedType,code:Ae.invalid_type}),et}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return Pe(r,{received:r.data,code:Ae.invalid_enum_value,options:i}),et}return Ei(t.data)}get enum(){return this._def.values}}oP.create=(e,t)=>new oP({values:e,typeName:tt.ZodNativeEnum,...ot(t)});class Ev extends vt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Be.promise&&n.common.async===!1)return Pe(n,{code:Ae.invalid_type,expected:Be.promise,received:n.parsedType}),et;const r=n.parsedType===Be.promise?n.data:Promise.resolve(n.data);return Ei(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ev.create=(e,t)=>new Ev({type:e,typeName:tt.ZodPromise,...ot(t)});class Wc extends vt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{Pe(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(r.data,a);if(r.common.async)return Promise.resolve(s).then(async u=>{if(n.value==="aborted")return et;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?et:c.status==="dirty"||n.value==="dirty"?ih(c.value):c});{if(n.value==="aborted")return et;const u=this._def.schema._parseSync({data:s,path:r.path,parent:r});return u.status==="aborted"?et:u.status==="dirty"||n.value==="dirty"?ih(u.value):u}}if(i.type==="refinement"){const s=u=>{const c=i.refinement(u,a);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?et:(u.status==="dirty"&&n.dirty(),s(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?et:(u.status==="dirty"&&n.dirty(),s(u.value).then(()=>({status:n.value,value:u.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vc(s))return et;const u=i.transform(s.value,a);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Vc(s)?Promise.resolve(i.transform(s.value,a)).then(u=>({status:n.value,value:u})):et);wt.assertNever(i)}}Wc.create=(e,t,n)=>new Wc({schema:e,typeName:tt.ZodEffects,effect:t,...ot(n)});Wc.createWithPreprocess=(e,t,n)=>new Wc({schema:t,effect:{type:"preprocess",transform:e},typeName:tt.ZodEffects,...ot(n)});class Ls extends vt{_parse(t){return this._getType(t)===Be.undefined?Ei(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ls.create=(e,t)=>new Ls({innerType:e,typeName:tt.ZodOptional,...ot(t)});class Qc extends vt{_parse(t){return this._getType(t)===Be.null?Ei(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qc.create=(e,t)=>new Qc({innerType:e,typeName:tt.ZodNullable,...ot(t)});class hS extends vt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Be.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}hS.create=(e,t)=>new hS({innerType:e,typeName:tt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class pS extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return wv(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new wo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}pS.create=(e,t)=>new pS({innerType:e,typeName:tt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class sP extends vt{_parse(t){if(this._getType(t)!==Be.nan){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.nan,received:r.parsedType}),et}return{status:"valid",value:t.data}}}sP.create=e=>new sP({typeName:tt.ZodNaN,...ot(e)});class hQ extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class eE extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?et:a.status==="dirty"?(n.dirty(),ih(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?et:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new eE({in:t,out:n,typeName:tt.ZodPipeline})}}class mS extends vt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Vc(i)&&(i.value=Object.freeze(i.value)),i);return wv(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}mS.create=(e,t)=>new mS({innerType:e,typeName:tt.ZodReadonly,...ot(t)});var tt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(tt||(tt={}));const Uke=uo.create,Fke=Zl.create;Xl.create;const Hke=xv.create;Kc.create;Fs.create;const Gke=pa.create,qke=bn.create;_v.create;Sv.create;Jl.create;const Vke=dS.create,Kke=Yc.create;Ev.create;Ls.create;Qc.create;const Yke={string:(e=>uo.create({...e,coerce:!0})),number:(e=>Zl.create({...e,coerce:!0})),boolean:(e=>xv.create({...e,coerce:!0})),bigint:(e=>Xl.create({...e,coerce:!0})),date:(e=>Kc.create({...e,coerce:!0}))};function Qn(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 pQ=typeof Symbol=="function"&&Symbol.observable||"@@observable",lP=pQ,_w=()=>Math.random().toString(36).substring(7).split("").join("."),mQ={INIT:`@@redux/INIT${_w()}`,REPLACE:`@@redux/REPLACE${_w()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_w()}`},Av=mQ;function Zc(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 Fz(e,t,n){if(typeof e!="function")throw new Error(Qn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Qn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Qn(1));return n(Fz)(e,t)}let r=e,i=t,a=new Map,s=a,u=0,c=!1;function f(){s===a&&(s=new Map,a.forEach((w,_)=>{s.set(_,w)}))}function h(){if(c)throw new Error(Qn(3));return i}function p(w){if(typeof w!="function")throw new Error(Qn(4));if(c)throw new Error(Qn(5));let _=!0;f();const C=u++;return s.set(C,w),function(){if(_){if(c)throw new Error(Qn(6));_=!1,f(),s.delete(C),a=null}}}function g(w){if(!Zc(w))throw new Error(Qn(7));if(typeof w.type>"u")throw new Error(Qn(8));if(typeof w.type!="string")throw new Error(Qn(17));if(c)throw new Error(Qn(9));try{c=!0,i=r(i,w)}finally{c=!1}return(a=s).forEach(C=>{C()}),w}function v(w){if(typeof w!="function")throw new Error(Qn(10));r=w,g({type:Av.REPLACE})}function y(){const w=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Qn(11));function C(){const S=_;S.next&&S.next(h())}return C(),{unsubscribe:w(C)}},[lP](){return this}}}return g({type:Av.INIT}),{dispatch:g,subscribe:p,getState:h,replaceReducer:v,[lP]:y}}function gQ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Av.INIT})>"u")throw new Error(Qn(12));if(typeof n(void 0,{type:Av.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Qn(13))})}function tE(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{gQ(n)}catch(a){i=a}return function(s={},u){if(i)throw i;let c=!1;const f={};for(let h=0;h<r.length;h++){const p=r[h],g=n[p],v=s[p],y=g(v,u);if(typeof y>"u")throw u&&u.type,new Error(Qn(14));f[p]=y,c=c||y!==v}return c=c||r.length!==Object.keys(s).length,c?f:s}}function kv(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function vQ(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Qn(15))};const s={getState:i.getState,dispatch:(c,...f)=>a(c,...f)},u=e.map(c=>c(s));return a=kv(...u)(i.dispatch),{...i,dispatch:a}}}function nE(e){return Zc(e)&&"type"in e&&typeof e.type=="string"}var rE=Symbol.for("immer-nothing"),dh=Symbol.for("immer-draftable"),jn=Symbol.for("immer-state");function Xn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Yr=Object,eu=Yr.getPrototypeOf,Ah="constructor",ap="prototype",gS="configurable",Cv="enumerable",rv="writable",kh="value",Zr=e=>!!e&&!!e[jn];function Xr(e){var t;return e?Hz(e)||sp(e)||!!e[dh]||!!((t=e[Ah])!=null&&t[dh])||lp(e)||up(e):!1}var yQ=Yr[ap][Ah].toString(),uP=new WeakMap;function Hz(e){if(!e||!Xc(e))return!1;const t=eu(e);if(t===null||t===Yr[ap])return!0;const n=Yr.hasOwnProperty.call(t,Ah)&&t[Ah];if(n===Object)return!0;if(!Tl(n))return!1;let r=uP.get(n);return r===void 0&&(r=Function.toString.call(n),uP.set(n,r)),r===yQ}function bQ(e){return Zr(e)||Xn(15,e),e[jn].base_}function op(e,t,n=!0){tu(e)===0?(n?Reflect.ownKeys(e):Yr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function tu(e){const t=e[jn];return t?t.type_:sp(e)?1:lp(e)?2:up(e)?3:0}var hh=(e,t,n=tu(e))=>n===2?e.has(t):Yr[ap].hasOwnProperty.call(e,t),to=(e,t,n=tu(e))=>n===2?e.get(t):e[t],Ov=(e,t,n,r=tu(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function wQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var sp=Array.isArray,lp=e=>e instanceof Map,up=e=>e instanceof Set,Xc=e=>typeof e=="object",Tl=e=>typeof e=="function",Sw=e=>typeof e=="boolean";function xQ(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var _Q=e=>Xc(e)?e==null?void 0:e[jn]:null,no=e=>e.copy_||e.base_,iE=e=>e.modified_?e.copy_:e.base_;function vS(e,t){if(lp(e))return new Map(e);if(up(e))return new Set(e);if(sp(e))return Array[ap].slice.call(e);const n=Hz(e);if(t===!0||t==="class_only"&&!n){const r=Yr.getOwnPropertyDescriptors(e);delete r[jn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],u=r[s];u[rv]===!1&&(u[rv]=!0,u[gS]=!0),(u.get||u.set)&&(r[s]={[gS]:!0,[rv]:!0,[Cv]:u[Cv],[kh]:e[s]})}return Yr.create(eu(e),r)}else{const r=eu(e);if(r!==null&&n)return{...e};const i=Yr.create(r);return Yr.assign(i,e)}}function aE(e,t=!1){return Fy(e)||Zr(e)||!Xr(e)||(tu(e)>1&&Yr.defineProperties(e,{set:bg,add:bg,clear:bg,delete:bg}),Yr.freeze(e),t&&op(e,(n,r)=>{aE(r,!0)},!1)),e}function SQ(){Xn(2)}var bg={[kh]:SQ};function Fy(e){return e===null||!Xc(e)?!0:Yr.isFrozen(e)}var Tv="MapSet",Mv="Patches",cP="ArrayMethods",Pv={};function nu(e){const t=Pv[e];return t||Xn(0,e),t}var fP=e=>!!Pv[e];function EQ(e,t){Pv[e]||(Pv[e]=t)}var Ch,Gz=()=>Ch,AQ=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:fP(Tv)?nu(Tv):void 0,arrayMethodsPlugin_:fP(cP)?nu(cP):void 0});function dP(e,t){t&&(e.patchPlugin_=nu(Mv),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yS(e){bS(e),e.drafts_.forEach(kQ),e.drafts_=null}function bS(e){e===Ch&&(Ch=e.parent_)}var hP=e=>Ch=AQ(Ch,e);function kQ(e){const t=e[jn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pP(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[jn].modified_&&(yS(t),Xn(4)),Xr(e)&&(e=mP(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[jn].base_,e,t)}else e=mP(t,n);return CQ(t,e,!0),yS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rE?e:void 0}function mP(e,t){if(Fy(t))return t;const n=t[jn];if(!n)return Nv(t,e.handledSet_,e);if(!Hy(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Kz(n,e)}return n.copy_}function CQ(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aE(t,n)}function qz(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hy=(e,t)=>e.scope_===t,OQ=[];function Vz(e,t,n,r){const i=no(e),a=e.type_;if(r!==void 0&&to(i,r,a)===t){Ov(i,r,n,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;op(i,(c,f)=>{if(Zr(f)){const h=u.get(f)||[];h.push(c),u.set(f,h)}})}const s=e.draftLocations_.get(t)??OQ;for(const u of s)Ov(i,u,n,a)}function TQ(e,t,n){e.callbacks_.push(function(i){var u;const a=t;if(!a||!Hy(a,i))return;(u=i.mapSetPlugin_)==null||u.fixSetContents(a);const s=iE(a);Vz(e,a.draft_??a,s,n),Kz(a,i)})}function Kz(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}qz(e)}}function MQ(e,t,n){const{scope_:r}=e;if(Zr(n)){const i=n[jn];Hy(i,r)&&i.callbacks_.push(function(){iv(e);const s=iE(i);Vz(e,n,s,t)})}else Xr(n)&&e.callbacks_.push(function(){const a=no(e);e.type_===3?a.has(n)&&Nv(n,r.handledSet_,r):to(a,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Nv(to(e.copy_,t,e.type_),r.handledSet_,r)})}function Nv(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Zr(e)||t.has(e)||!Xr(e)||Fy(e)||(t.add(e),op(e,(r,i)=>{if(Zr(i)){const a=i[jn];if(Hy(a,n)){const s=iE(a);Ov(e,r,s,e.type_),qz(a)}}else Xr(i)&&Nv(i,t,n)})),e}function PQ(e,t){const n=sp(e),r={type_:n?1:0,scope_:t?t.scope_:Gz(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,a=Rv;n&&(i=[r],a=Oh);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,[u,r]}var Rv={get(e,t){if(t===jn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=no(e);if(!hh(i,t,e.type_))return NQ(e,i,t);const a=i[t];if(e.finalized_||!Xr(a)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&xQ(t))return a;if(a===Ew(e.base_,t)){iv(e);const s=e.type_===1?+t:t,u=xS(e.scope_,a,e,s);return e.copy_[s]=u}return a},has(e,t){return t in no(e)},ownKeys(e){return Reflect.ownKeys(no(e))},set(e,t,n){const r=Yz(no(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ew(no(e),t),a=i==null?void 0:i[jn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(wQ(n,i)&&(n!==void 0||hh(e.base_,t,e.type_)))return!0;iv(e),wS(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),MQ(e,t,n)),!0},deleteProperty(e,t){return iv(e),Ew(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),wS(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=no(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[rv]:!0,[gS]:e.type_!==1||t!=="length",[Cv]:r[Cv],[kh]:n[t]}},defineProperty(){Xn(11)},getPrototypeOf(e){return eu(e.base_)},setPrototypeOf(){Xn(12)}},Oh={};for(let e in Rv){let t=Rv[e];Oh[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Oh.deleteProperty=function(e,t){return Oh.set.call(this,e,t,void 0)};Oh.set=function(e,t,n){return Rv.set.call(this,e[0],t,n,e[0])};function Ew(e,t){const n=e[jn];return(n?no(n):e)[t]}function NQ(e,t,n){var i;const r=Yz(t,n);return r?kh in r?r[kh]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Yz(e,t){if(!(t in e))return;let n=eu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=eu(n)}}function wS(e){e.modified_||(e.modified_=!0,e.parent_&&wS(e.parent_))}function iv(e){e.copy_||(e.assigned_=new Map,e.copy_=vS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var RQ=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(Tl(n)&&!Tl(r)){const s=r;r=n;const u=this;return function(f=s,...h){return u.produce(f,p=>r.call(this,p,...h))}}Tl(r)||Xn(6),i!==void 0&&!Tl(i)&&Xn(7);let a;if(Xr(n)){const s=hP(this),u=xS(s,n,void 0);let c=!0;try{a=r(u),c=!1}finally{c?yS(s):bS(s)}return dP(s,i),pP(a,s)}else if(!n||!Xc(n)){if(a=r(n),a===void 0&&(a=n),a===rE&&(a=void 0),this.autoFreeze_&&aE(a,!0),i){const s=[],u=[];nu(Mv).generateReplacementPatches_(n,a,{patches_:s,inversePatches_:u}),i(s,u)}return a}else Xn(1,n)},this.produceWithPatches=(n,r)=>{if(Tl(n))return(u,...c)=>this.produceWithPatches(u,f=>n(f,...c));let i,a;return[this.produce(n,r,(u,c)=>{i=u,a=c}),i,a]},Sw(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Sw(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Sw(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Xr(t)||Xn(8),Zr(t)&&(t=Wr(t));const n=hP(this),r=xS(n,t,void 0);return r[jn].isManual_=!0,bS(n),r}finishDraft(t,n){const r=t&&t[jn];(!r||!r.isManual_)&&Xn(9);const{scope_:i}=r;return dP(i,n),pP(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const a=n[r];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}r>-1&&(n=n.slice(r+1));const i=nu(Mv).applyPatches_;return Zr(t)?i(t,n):this.produce(t,a=>i(a,n))}};function xS(e,t,n,r){const[i,a]=lp(t)?nu(Tv).proxyMap_(t,n):up(t)?nu(Tv).proxySet_(t,n):PQ(t,n);return((n==null?void 0:n.scope_)??Gz()).drafts_.push(i),a.callbacks_=(n==null?void 0:n.callbacks_)??[],a.key_=r,n&&r!==void 0?TQ(n,a,r):a.callbacks_.push(function(c){var h;(h=c.mapSetPlugin_)==null||h.fixSetContents(a);const{patchPlugin_:f}=c;a.modified_&&f&&f.generatePatches_(a,[],c)}),i}function Wr(e){return Zr(e)||Xn(10,e),Wz(e)}function Wz(e){if(!Xr(e)||Fy(e))return e;const t=e[jn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=vS(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=vS(e,!0);return op(n,(i,a)=>{Ov(n,i,Wz(a))},r),t&&(t.finalized_=!1),n}function DQ(){function t(y,b=[]){if(y.key_!==void 0){const w=y.parent_.copy_??y.parent_.base_,_=_Q(to(w,y.key_)),C=to(w,y.key_);if(C===void 0||C!==y.draft_&&C!==y.base_&&C!==y.copy_||_!=null&&_.base_!==y.base_)return null;const E=y.parent_.type_===3;let S;if(E){const T=y.parent_;S=Array.from(T.drafts_.keys()).indexOf(y.key_)}else S=y.key_;if(!(E&&w.size>S||hh(w,S)))return null;b.push(S)}if(y.parent_)return t(y.parent_,b);b.reverse();try{n(y.copy_,b)}catch{return null}return b}function n(y,b){let w=y;for(let _=0;_<b.length-1;_++){const C=b[_];if(w=to(w,C),!Xc(w)||w===null)throw new Error(`Cannot resolve path at '${b.join("/")}'`)}return w}const r="replace",i="add",a="remove";function s(y,b,w){if(y.scope_.processedForPatches_.has(y))return;y.scope_.processedForPatches_.add(y);const{patches_:_,inversePatches_:C}=w;switch(y.type_){case 0:case 2:return c(y,b,_,C);case 1:return u(y,b,_,C);case 3:return f(y,b,_,C)}}function u(y,b,w,_){let{base_:C,assigned_:E}=y,S=y.copy_;S.length<C.length&&([C,S]=[S,C],[w,_]=[_,w]);const T=y.allIndicesReassigned_===!0;for(let O=0;O<C.length;O++){const M=S[O],P=C[O];if((T||(E==null?void 0:E.get(O.toString())))&&M!==P){const z=M==null?void 0:M[jn];if(z&&z.modified_)continue;const D=b.concat([O]);w.push({op:r,path:D,value:v(M)}),_.push({op:r,path:D,value:v(P)})}}for(let O=C.length;O<S.length;O++){const M=b.concat([O]);w.push({op:i,path:M,value:v(S[O])})}for(let O=S.length-1;C.length<=O;--O){const M=b.concat([O]);_.push({op:a,path:M})}}function c(y,b,w,_){const{base_:C,copy_:E,type_:S}=y;op(y.assigned_,(T,O)=>{const M=to(C,T,S),P=to(E,T,S),R=O?hh(C,T)?r:i:a;if(M===P&&R===r)return;const z=b.concat(T);w.push(R===a?{op:R,path:z}:{op:R,path:z,value:v(P)}),_.push(R===i?{op:a,path:z}:R===a?{op:i,path:z,value:v(M)}:{op:r,path:z,value:v(M)})})}function f(y,b,w,_){let{base_:C,copy_:E}=y,S=0;C.forEach(T=>{if(!E.has(T)){const O=b.concat([S]);w.push({op:a,path:O,value:T}),_.unshift({op:i,path:O,value:T})}S++}),S=0,E.forEach(T=>{if(!C.has(T)){const O=b.concat([S]);w.push({op:i,path:O,value:T}),_.unshift({op:a,path:O,value:T})}S++})}function h(y,b,w){const{patches_:_,inversePatches_:C}=w;_.push({op:r,path:[],value:b===rE?void 0:b}),C.push({op:r,path:[],value:y})}function p(y,b){return b.forEach(w=>{const{path:_,op:C}=w;let E=y;for(let M=0;M<_.length-1;M++){const P=tu(E);let R=_[M];typeof R!="string"&&typeof R!="number"&&(R=""+R),(P===0||P===1)&&(R==="__proto__"||R===Ah)&&Xn(19),Tl(E)&&R===ap&&Xn(19),E=to(E,R),Xc(E)||Xn(18,_.join("/"))}const S=tu(E),T=g(w.value),O=_[_.length-1];switch(C){case r:switch(S){case 2:return E.set(O,T);case 3:Xn(16);default:return E[O]=T}case i:switch(S){case 1:return O==="-"?E.push(T):E.splice(O,0,T);case 2:return E.set(O,T);case 3:return E.add(T);default:return E[O]=T}case a:switch(S){case 1:return E.splice(O,1);case 2:return E.delete(O);case 3:return E.delete(w.value);default:return delete E[O]}default:Xn(17,C)}}),y}function g(y){if(!Xr(y))return y;if(sp(y))return y.map(g);if(lp(y))return new Map(Array.from(y.entries()).map(([w,_])=>[w,g(_)]));if(up(y))return new Set(Array.from(y).map(g));const b=Object.create(eu(y));for(const w in y)b[w]=g(y[w]);return hh(y,dh)&&(b[dh]=y[dh]),b}function v(y){return Zr(y)?g(y):y}EQ(Mv,{applyPatches_:p,generatePatches_:s,generateReplacementPatches_:h,getPath:t})}var Th=new RQ,cp=Th.produce,Qz=Th.produceWithPatches.bind(Th),gP=Th.applyPatches.bind(Th);function IQ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function LQ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zQ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var vP=e=>Array.isArray(e)?e:[e];function jQ(e){const t=Array.isArray(e[0])?e[0]:e;return zQ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $Q(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var BQ=class{constructor(e){this.value=e}deref(){return this.value}},UQ=typeof WeakRef<"u"?WeakRef:BQ,FQ=0,yP=1;function wg(){return{s:FQ,v:void 0,o:null,p:null}}function Dv(e,t={}){let n=wg();const{resultEqualityCheck:r}=t;let i,a=0;function s(){var p;let u=n;const{length:c}=arguments;for(let g=0,v=c;g<v;g++){const y=arguments[g];if(typeof y=="function"||typeof y=="object"&&y!==null){let b=u.o;b===null&&(u.o=b=new WeakMap);const w=b.get(y);w===void 0?(u=wg(),b.set(y,u)):u=w}else{let b=u.p;b===null&&(u.p=b=new Map);const w=b.get(y);w===void 0?(u=wg(),b.set(y,u)):u=w}}const f=u;let h;if(u.s===yP)h=u.v;else if(h=e.apply(null,arguments),a++,r){const g=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;g!=null&&r(g,h)&&(h=g,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new UQ(h):h}return f.s=yP,f.v=h,h}return s.clearCache=()=>{n=wg(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function HQ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,u,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),IQ(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...n,...c},{memoize:p,memoizeOptions:g=[],argsMemoize:v=Dv,argsMemoizeOptions:y=[]}=h,b=vP(g),w=vP(y),_=jQ(i),C=p(function(){return a++,f.apply(null,arguments)},...b),E=v(function(){s++;const T=$Q(_,arguments);return u=C.apply(null,T),u},...w);return Object.assign(E,{resultFunc:f,memoizedResultFunc:C,dependencies:_,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var le=HQ(Dv),GQ=Object.assign((e,t=le)=>{LQ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,u,c)=>(s[n[c]]=u,s),{}))},{withTypes:()=>GQ});function Zz(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var qQ=Zz(),VQ=Zz,KQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kv:kv.apply(null,arguments)},YQ=e=>e&&typeof e.match=="function";function on(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(tr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>nE(r)&&r.type===e,n}var Xz=class ah extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ah.prototype)}static get[Symbol.species](){return ah}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ah(...t[0].concat(this)):new ah(...t.concat(this))}};function bP(e){return Xr(e)?cp(e,()=>{}):e}function xg(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function WQ(e){return typeof e=="boolean"}var QQ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Xz;return n&&(WQ(n)?s.push(qQ):s.push(VQ(n.extraArgument))),s},Gy="RTK_autoBatch",At=()=>e=>({payload:e,meta:{[Gy]:!0}}),wP=e=>t=>{setTimeout(t,e)},Jz=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wP(10):e.type==="callback"?e.queueNotification:wP(e.timeout),f=()=>{s=!1,a&&(a=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),g=r.subscribe(p);return u.add(h),()=>{g(),u.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[Gy]),a=!i,a&&(s||(s=!0,c(f))),r.dispatch(h)}finally{i=!0}}})},ZQ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Xz(e);return r&&i.push(Jz(typeof r=="object"?r:void 0)),i};function XQ(e){const t=QQ(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Zc(n))c=tE(n);else throw new Error(tr(1));let f;typeof r=="function"?f=r(t):f=t();let h=kv;i&&(h=KQ({trace:!1,...typeof i=="object"&&i}));const p=vQ(...f),g=ZQ(p);let v=typeof u=="function"?u(g):g();const y=h(...v);return Fz(c,s,y)}function e5(e){const t={},n=[];let r;const i={addCase(a,s){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(tr(28));if(u in t)throw new Error(tr(29));return t[u]=s,i},addAsyncThunk(a,s){return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function JQ(e){return typeof e=="function"}function eZ(e,t){let[n,r,i]=e5(t),a;if(JQ(e))a=()=>bP(e());else{const u=bP(e);a=()=>u}function s(u=a(),c){let f=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return f.filter(h=>!!h).length===0&&(f=[i]),f.reduce((h,p)=>{if(p)if(Zr(h)){const v=p(h,c);return v===void 0?h:v}else{if(Xr(h))return cp(h,g=>p(g,c));{const g=p(h,c);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},u)}return s.getInitialState=a,s}var t5=(e,t)=>YQ(e)?e.match(t):e(t);function xo(...e){return t=>e.some(n=>t5(n,t))}function ph(...e){return t=>e.every(n=>t5(n,t))}function qy(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function fp(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function oE(...e){return e.length===0?t=>qy(t,["pending"]):fp(e)?xo(...e.map(t=>t.pending)):oE()(e[0])}function Jc(...e){return e.length===0?t=>qy(t,["rejected"]):fp(e)?xo(...e.map(t=>t.rejected)):Jc()(e[0])}function Vy(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?ph(Jc(...e),t):fp(e)?ph(Jc(...e),t):Vy()(e[0])}function Hs(...e){return e.length===0?t=>qy(t,["fulfilled"]):fp(e)?xo(...e.map(t=>t.fulfilled)):Hs()(e[0])}function _S(...e){return e.length===0?t=>qy(t,["pending","fulfilled","rejected"]):fp(e)?xo(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):_S()(e[0])}var tZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ky=(e=21)=>{let t="",n=e;for(;n--;)t+=tZ[Math.random()*64|0];return t},nZ=["name","message","stack","code"],Aw=class{constructor(e,t){ic(this,"_type");this.payload=e,this.meta=t}},xP=class{constructor(e,t){ic(this,"_type");this.payload=e,this.meta=t}},rZ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nZ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},_P="External signal was aborted",SP=(()=>{function e(t,n,r){const i=on(t+"/fulfilled",(c,f,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:f,requestStatus:"fulfilled"}})),a=on(t+"/pending",(c,f,h)=>({payload:void 0,meta:{...h||{},arg:f,requestId:c,requestStatus:"pending"}})),s=on(t+"/rejected",(c,f,h,p,g)=>({payload:p,error:(r&&r.serializeError||rZ)(c||"Rejected"),meta:{...g||{},arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c,{signal:f}={}){return(h,p,g)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):Ky(),y=new AbortController;let b,w;function _(E){w=E,y.abort()}f&&(f.aborted?_(_P):f.addEventListener("abort",()=>_(_P),{once:!0}));const C=(async function(){var T,O;let E;try{let M=(T=r==null?void 0:r.condition)==null?void 0:T.call(r,c,{getState:p,extra:g});if(aZ(M)&&(M=await M),M===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((R,z)=>{b=()=>{z({name:"AbortError",message:w||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});h(a(v,c,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:v,arg:c},{getState:p,extra:g}))),E=await Promise.race([P,Promise.resolve(n(c,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:_,rejectWithValue:(R,z)=>new Aw(R,z),fulfillWithValue:(R,z)=>new xP(R,z)})).then(R=>{if(R instanceof Aw)throw R;return R instanceof xP?i(R.payload,v,c,R.meta):i(R,v,c)})])}catch(M){E=M instanceof Aw?s(null,v,c,M.payload,M.meta):s(M,v,c)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||h(E),E})();return Object.assign(C,{abort:_,requestId:v,arg:c,unwrap(){return C.then(iZ)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,settled:xo(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function iZ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function aZ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var oZ=Symbol.for("rtk-slice-createasyncthunk");function sZ(e,t){return`${e}/${t}`}function lZ({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[oZ];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(tr(11));const u=(typeof i.reducers=="function"?i.reducers(cZ()):i.reducers)||{},c=Object.keys(u),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(S,T){const O=typeof S=="string"?S:S.type;if(!O)throw new Error(tr(12));if(O in f.sliceCaseReducersByType)throw new Error(tr(13));return f.sliceCaseReducersByType[O]=T,h},addMatcher(S,T){return f.sliceMatchers.push({matcher:S,reducer:T}),h},exposeAction(S,T){return f.actionCreators[S]=T,h},exposeCaseReducer(S,T){return f.sliceCaseReducersByName[S]=T,h}};c.forEach(S=>{const T=u[S],O={reducerName:S,type:sZ(a,S),createNotation:typeof i.reducers=="function"};dZ(T)?pZ(O,T,h,t):fZ(O,T,h)});function p(){const[S={},T=[],O=void 0]=typeof i.extraReducers=="function"?e5(i.extraReducers):[i.extraReducers],M={...S,...f.sliceCaseReducersByType};return eZ(i.initialState,P=>{for(let R in M)P.addCase(R,M[R]);for(let R of f.sliceMatchers)P.addMatcher(R.matcher,R.reducer);for(let R of T)P.addMatcher(R.matcher,R.reducer);O&&P.addDefaultCase(O)})}const g=S=>S,v=new Map,y=new WeakMap;let b;function w(S,T){return b||(b=p()),b(S,T)}function _(){return b||(b=p()),b.getInitialState()}function C(S,T=!1){function O(P){let R=P[S];return typeof R>"u"&&T&&(R=xg(y,O,_)),R}function M(P=g){const R=xg(v,T,()=>new WeakMap);return xg(R,P,()=>{const z={};for(const[D,N]of Object.entries(i.selectors??{}))z[D]=uZ(N,P,()=>xg(y,P,_),T);return z})}return{reducerPath:S,getSelectors:M,get selectors(){return M(O)},selectSlice:O}}const E={name:a,reducer:w,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:_,...C(s),injectInto(S,{reducerPath:T,...O}={}){const M=T??s;return S.inject({reducerPath:M,reducer:w},O),{...E,...C(M,!0)}}};return E}}function uZ(e,t,n,r){function i(a,...s){let u=t(a);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var an=lZ();function cZ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function fZ({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!hZ(r))throw new Error(tr(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?on(e,s):on(e))}function dZ(e){return e._reducerDefinitionType==="asyncThunk"}function hZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(tr(18));const{payloadCreator:a,fulfilled:s,pending:u,rejected:c,settled:f,options:h}=n,p=i(e,a,h);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),c&&r.addCase(p.rejected,c),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:s||_g,pending:u||_g,rejected:c||_g,settled:f||_g})}function _g(){}var mZ="task",n5="listener",r5="completed",sE="cancelled",gZ=`task-${sE}`,vZ=`task-${r5}`,SS=`${n5}-${sE}`,yZ=`${n5}-${r5}`,Yy=class{constructor(e){ic(this,"name","TaskAbortError");ic(this,"message");this.code=e,this.message=`${mZ} ${sE} (reason: ${e})`}},lE=(e,t)=>{if(typeof e!="function")throw new TypeError(tr(32))},Iv=()=>{},i5=(e,t=Iv)=>(e.catch(t),e),a5=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ql=e=>{if(e.aborted)throw new Yy(e.reason)};function o5(e,t){let n=Iv;return new Promise((r,i)=>{const a=()=>i(new Yy(e.reason));if(e.aborted){a();return}n=a5(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Iv})}var bZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Yy?"cancelled":"rejected",error:n}}finally{t==null||t()}},Lv=e=>t=>i5(o5(e,t).then(n=>(ql(e),n))),s5=e=>{const t=Lv(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Tc}=Object,EP={},Wy="listenerMiddleware",wZ=(e,t)=>{const n=r=>a5(e,()=>r.abort(e.reason));return(r,i)=>{lE(r);const a=new AbortController;n(a);const s=bZ(async()=>{ql(e),ql(a.signal);const u=await r({pause:Lv(a.signal),delay:s5(a.signal),signal:a.signal});return ql(a.signal),u},()=>a.abort(vZ));return i!=null&&i.autoJoin&&t.push(s.catch(Iv)),{result:Lv(e)(s),cancel(){a.abort(gZ)}}}},xZ=(e,t)=>{const n=async(r,i)=>{ql(t);let a=()=>{};const u=[new Promise((c,f)=>{let h=e({predicate:r,effect:(p,g)=>{g.unsubscribe(),c([p,g.getState(),g.getOriginalState()])}});a=()=>{h(),f()}})];i!=null&&u.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await o5(t,Promise.race(u));return ql(t),c}finally{a()}};return(r,i)=>i5(n(r,i))},l5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=on(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(tr(21));return lE(a),{predicate:i,type:t,effect:a}},u5=Tc(e=>{const{type:t,predicate:n,effect:r}=l5(e);return{id:Ky(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(tr(22))}}},{withTypes:()=>u5}),AP=(e,t)=>{const{type:n,effect:r,predicate:i}=l5(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},ES=e=>{e.pending.forEach(t=>{t.abort(SS)})},_Z=(e,t)=>()=>{for(const n of t.keys())ES(n);e.clear()},kP=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},c5=Tc(on(`${Wy}/add`),{withTypes:()=>c5}),SZ=on(`${Wy}/removeAll`),f5=Tc(on(`${Wy}/remove`),{withTypes:()=>f5}),EZ=(...e)=>{console.error(`${Wy}/error`,...e)},dp=(e={})=>{const t=new Map,n=new Map,r=v=>{const y=n.get(v)??0;n.set(v,y+1)},i=v=>{const y=n.get(v)??1;y===1?n.delete(v):n.set(v,y-1)},{extra:a,onError:s=EZ}=e;lE(s);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),y=>{v.unsubscribe(),y!=null&&y.cancelActive&&ES(v)}),c=v=>{const y=AP(t,v)??u5(v);return u(y)};Tc(c,{withTypes:()=>c});const f=v=>{const y=AP(t,v);return y&&(y.unsubscribe(),v.cancelActive&&ES(y)),!!y};Tc(f,{withTypes:()=>f});const h=async(v,y,b,w)=>{const _=new AbortController,C=xZ(c,_.signal),E=[];try{v.pending.add(_),r(v),await Promise.resolve(v.effect(y,Tc({},b,{getOriginalState:w,condition:(S,T)=>C(S,T).then(Boolean),take:C,delay:s5(_.signal),pause:Lv(_.signal),extra:a,signal:_.signal,fork:wZ(_.signal,E),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,T,O)=>{S!==_&&(S.abort(SS),O.delete(S))})},cancel:()=>{_.abort(SS),v.pending.delete(_)},throwIfCancelled:()=>{ql(_.signal)}})))}catch(S){S instanceof Yy||kP(s,S,{raisedBy:"effect"})}finally{await Promise.all(E),_.abort(yZ),i(v),v.pending.delete(_)}},p=_Z(t,n);return{middleware:v=>y=>b=>{if(!nE(b))return y(b);if(c5.match(b))return c(b.payload);if(SZ.match(b)){p();return}if(f5.match(b))return f(b.payload);let w=v.getState();const _=()=>{if(w===EP)throw new Error(tr(23));return w};let C;try{if(C=y(b),t.size>0){const E=v.getState(),S=Array.from(t.values());for(const T of S){let O=!1;try{O=T.predicate(b,E,w)}catch(M){O=!1,kP(s,M,{raisedBy:"predicate"})}O&&h(T,b,v,_)}}}finally{w=EP}return C},startListening:c,stopListening:f,clearListeners:p}};function tr(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 AZ=class extends Error{constructor(t){super(t[0].message);ic(this,"issues");this.name="SchemaError",this.issues=t}},d5=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(d5||{}),_o="uninitialized",AS="pending",oh="fulfilled",sh="rejected";function CP(e){return{status:e,isUninitialized:e===_o,isLoading:e===AS,isSuccess:e===oh,isError:e===sh}}var OP=Zc;function uE(e,t){if(e===t||!(OP(e)&&OP(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const a=Array.isArray(t)?[]:{};for(const s of n)a[s]=uE(e[s],t[s]),i&&(i=e[s]===a[s]);return i?e:a}function kS(e,t,n){return e.reduce((r,i,a)=>(t(i,a)&&r.push(n(i,a)),r),[]).flat()}function kZ(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function cE(e){return e!=null}function TP(e){return[...(e==null?void 0:e.values())??[]].filter(cE)}function CZ(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function zv(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var CS=()=>new Map,MP=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Qy="__rtkq/",h5="online",p5="offline",OZ="focus",m5="focused",TZ="visibilitychange",Zy=on(`${Qy}${m5}`),fE=on(`${Qy}un${m5}`),Xy=on(`${Qy}${h5}`),dE=on(`${Qy}${p5}`),Sg=!1;function Qke(e,t){function n(){const[r,i,a,s]=[Zy,fE,Xy,dE].map(f=>()=>e(f())),u=()=>{window.document.visibilityState==="visible"?r():i()};let c=()=>{Sg=!1};if(!Sg&&typeof window<"u"&&window.addEventListener){let f=function(p){Object.entries(h).forEach(([g,v])=>{p?window.addEventListener(g,v,!1):window.removeEventListener(g,v)})};const h={[OZ]:r,[TZ]:u,[h5]:a,[p5]:s};f(!0),Sg=!0,c=()=>{f(!1),Sg=!1}}return c}return n()}var hp="query",g5="mutation",v5="infinitequery";function Jy(e){return e.type===hp}function MZ(e){return e.type===g5}function e0(e){return e.type===v5}function jv(e){return Jy(e)||e0(e)}function hE(e,t,n,r,i,a){const s=PZ(e)?e(t,n,r,i):e;return s?kS(s,cE,u=>a(y5(u))):[]}function PZ(e){return typeof e=="function"}function y5(e){return typeof e=="string"?{type:e}:e}function NZ(e,t){return e.catch(t)}var ef=(e,t)=>e.endpointDefinitions[t],Mh=Symbol("forceQueryFn"),OS=e=>typeof e[Mh]=="function";function RZ({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:a,getInternalState:s}){const u=S=>{var T;return(T=s(S))==null?void 0:T.runningQueries},c=S=>{var T;return(T=s(S))==null?void 0:T.runningMutations},{unsubscribeQueryResult:f,removeMutationResult:h,updateSubscriptionOptions:p}=i.internalActions;return{buildInitiateQuery:_,buildInitiateInfiniteQuery:C,buildInitiateMutation:E,getRunningQueryThunk:g,getRunningMutationThunk:v,getRunningQueriesThunk:y,getRunningMutationsThunk:b};function g(S,T){return O=>{var R;const M=ef(a,S),P=e({queryArgs:T,endpointDefinition:M,endpointName:S});return(R=u(O))==null?void 0:R.get(P)}}function v(S,T){return O=>{var M;return(M=c(O))==null?void 0:M.get(T)}}function y(){return S=>TP(u(S))}function b(){return S=>TP(c(S))}function w(S,T){const O=(M,{subscribe:P=!0,forceRefetch:R,subscriptionOptions:z,[Mh]:D,...N}={})=>($,I)=>{var de;const U=e({queryArgs:M,endpointDefinition:T,endpointName:S});let j;const G={...N,type:hp,subscribe:P,forceRefetch:R,subscriptionOptions:z,endpointName:S,originalArgs:M,queryCacheKey:U,[Mh]:D};if(Jy(T))j=t(G);else{const{direction:ie,initialPageParam:J,refetchCachedPages:pe}=N;j=n({...G,direction:ie,initialPageParam:J,refetchCachedPages:pe})}const q=i.endpoints[S].select(M),H=$(j),V=q(I()),{requestId:B,abort:K}=H,X=V.requestId!==B,ee=(de=u($))==null?void 0:de.get(U),ce=()=>q(I()),he=Object.assign(D?H.then(ce):X&&!ee?Promise.resolve(V):Promise.all([ee,H]).then(ce),{arg:M,requestId:B,subscriptionOptions:z,queryCacheKey:U,abort:K,async unwrap(){const ie=await he;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>$(O(M,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){P&&$(f({queryCacheKey:U,requestId:B}))},updateSubscriptionOptions(ie){he.subscriptionOptions=ie,$(p({endpointName:S,requestId:B,queryCacheKey:U,options:ie}))}});if(!ee&&!X&&!D){const ie=u($);ie.set(U,he),he.then(()=>{ie.delete(U)})}return he};return O}function _(S,T){return w(S,T)}function C(S,T){return w(S,T)}function E(S){return(T,{track:O=!0,fixedCacheKey:M}={})=>(P,R)=>{const z=r({type:"mutation",endpointName:S,originalArgs:T,track:O,fixedCacheKey:M}),D=P(z),{requestId:N,abort:$,unwrap:I}=D,U=NZ(D.unwrap().then(H=>({data:H})),H=>({error:H})),j=()=>{P(h({requestId:N,fixedCacheKey:M}))},G=Object.assign(U,{arg:D.arg,requestId:N,abort:$,unwrap:I,reset:j}),q=c(P);return q.set(N,G),G.then(()=>{q.delete(N)}),M&&(q.set(M,G),G.then(()=>{q.get(M)===G&&q.delete(M)})),G}}}var b5=class extends AZ{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},yl=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function bl(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new b5(i.issues,t,n,r);return i.value}function PP(e){return e}var Dd=(e={})=>({...e,[Gy]:!0});function DZ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:a,selectors:s,onSchemaFailure:u,catchSchemaFailure:c,skipSchemaValidation:f}){const h=(D,N,$,I)=>(U,j)=>{const G=n[D],q=r({queryArgs:N,endpointDefinition:G,endpointName:D});if(U(i.internalActions.queryResultPatched({queryCacheKey:q,patches:$})),!I)return;const H=i.endpoints[D].select(N)(j()),V=hE(G.providesTags,H.data,void 0,N,{},a);U(i.internalActions.updateProvidedBy([{queryCacheKey:q,providedTags:V}]))};function p(D,N,$=0){const I=[N,...D];return $&&I.length>$?I.slice(0,-1):I}function g(D,N,$=0){const I=[...D,N];return $&&I.length>$?I.slice(1):I}const v=(D,N,$,I=!0)=>(U,j)=>{const q=i.endpoints[D].select(N)(j()),H={patches:[],inversePatches:[],undo:()=>U(i.util.patchQueryData(D,N,H.inversePatches,I))};if(q.status===_o)return H;let V;if("data"in q)if(Xr(q.data)){const[B,K,X]=Qz(q.data,$);H.patches.push(...K),H.inversePatches.push(...X),V=B}else V=$(q.data),H.patches.push({op:"replace",path:[],value:V}),H.inversePatches.push({op:"replace",path:[],value:q.data});return H.patches.length===0||U(i.util.patchQueryData(D,N,H.patches,I)),H},y=(D,N,$)=>I=>I(i.endpoints[D].initiate(N,{subscribe:!1,forceRefetch:!0,[Mh]:()=>({data:$})})),b=(D,N)=>D.query&&D[N]?D[N]:PP,w=async(D,{signal:N,abort:$,rejectWithValue:I,fulfillWithValue:U,dispatch:j,getState:G,extra:q})=>{var X,ee;const H=n[D.endpointName],{metaSchema:V,skipSchemaValidation:B=f}=H,K=D.type===hp;try{let ce=PP;const he={signal:N,abort:$,dispatch:j,getState:G,extra:q,endpoint:D.endpointName,type:D.type,forced:K?_(D,G()):void 0,queryCacheKey:K?D.queryCacheKey:void 0},de=K?D[Mh]:void 0;let ie;const J=async(ye,te,Ce,Se)=>{if(te==null&&ye.pages.length)return Promise.resolve({data:ye});const Ye={queryArg:D.originalArgs,pageParam:te},Ie=await pe(Ye),ut=Se?p:g;return{data:{pages:ut(ye.pages,Ie.data,Ce),pageParams:ut(ye.pageParams,te,Ce)},meta:Ie.meta}};async function pe(ye){let te;const{extraOptions:Ce,argSchema:Se,rawResponseSchema:Ye,responseSchema:Ie}=H;if(Se&&!yl(B,"arg")&&(ye=await bl(Se,ye,"argSchema",{})),de?te=de():H.query?(ce=b(H,"transformResponse"),te=await t(H.query(ye),he,Ce)):te=await H.queryFn(ye,he,Ce,Zt=>t(Zt,he,Ce)),typeof process<"u",te.error)throw new MP(te.error,te.meta);let{data:ut}=te;Ye&&!yl(B,"rawResponse")&&(ut=await bl(Ye,te.data,"rawResponseSchema",te.meta));let jt=await ce(ut,te.meta,ye);return Ie&&!yl(B,"response")&&(jt=await bl(Ie,jt,"responseSchema",te.meta)),{...te,data:jt}}if(K&&"infiniteQueryOptions"in H){const{infiniteQueryOptions:ye}=H,{maxPages:te=1/0}=ye,Ce=D.refetchCachedPages??ye.refetchCachedPages??!0;let Se;const Ye={pages:[],pageParams:[]},Ie=(X=s.selectQueryEntry(G(),D.queryCacheKey))==null?void 0:X.data,jt=_(D,G())&&!D.direction||!Ie?Ye:Ie;if("direction"in D&&D.direction&&jt.pages.length){const Zt=D.direction==="backward",ar=(Zt?w5:TS)(ye,jt,D.originalArgs);Se=await J(jt,ar,te,Zt)}else{const{initialPageParam:Zt=ye.initialPageParam}=D,ir=(Ie==null?void 0:Ie.pageParams)??[],ar=ir[0]??Zt,W=ir.length;if(Se=await J(jt,ar,te),de&&(Se={data:Se.data.pages[0]}),Ce)for(let re=1;re<W;re++){const ae=TS(ye,Se.data,D.originalArgs);Se=await J(Se.data,ae,te)}}ie=Se}else ie=await pe(D.originalArgs);return V&&!yl(B,"meta")&&ie.meta&&(ie.meta=await bl(V,ie.meta,"metaSchema",ie.meta)),U(ie.data,Dd({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ce){let he=ce;if(he instanceof MP){let de=b(H,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:J}=H;let{value:pe,meta:ye}=he;try{ie&&!yl(B,"rawErrorResponse")&&(pe=await bl(ie,pe,"rawErrorResponseSchema",ye)),V&&!yl(B,"meta")&&(ye=await bl(V,ye,"metaSchema",ye));let te=await de(pe,ye,D.originalArgs);return J&&!yl(B,"errorResponse")&&(te=await bl(J,te,"errorResponseSchema",ye)),I(te,Dd({baseQueryMeta:ye}))}catch(te){he=te}}try{if(he instanceof b5){const de={endpoint:D.endpointName,arg:D.originalArgs,type:D.type,queryCacheKey:K?D.queryCacheKey:void 0};(ee=H.onSchemaFailure)==null||ee.call(H,he,de),u==null||u(he,de);const{catchSchemaFailure:ie=c}=H;if(ie)return I(ie(he,de),Dd({baseQueryMeta:he._bqMeta}))}}catch(de){he=de}throw console.error(he),he}};function _(D,N){const $=s.selectQueryEntry(N,D.queryCacheKey),I=s.selectConfig(N).refetchOnMountOrArgChange,U=$==null?void 0:$.fulfilledTimeStamp,j=D.forceRefetch??(D.subscribe&&I);return j?j===!0||(Number(new Date)-Number(U))/1e3>=j:!1}const C=()=>SP(`${e}/executeQuery`,w,{getPendingMeta({arg:N}){const $=n[N.endpointName];return Dd({startedTimeStamp:Date.now(),...e0($)?{direction:N.direction}:{}})},condition(N,{getState:$}){var B;const I=$(),U=s.selectQueryEntry(I,N.queryCacheKey),j=U==null?void 0:U.fulfilledTimeStamp,G=N.originalArgs,q=U==null?void 0:U.originalArgs,H=n[N.endpointName],V=N.direction;return OS(N)?!0:(U==null?void 0:U.status)==="pending"?!1:_(N,I)||Jy(H)&&((B=H==null?void 0:H.forceRefetch)!=null&&B.call(H,{currentArg:G,previousArg:q,endpointState:U,state:I}))?!0:!(j&&!V)},dispatchConditionRejection:!0}),E=C(),S=C(),T=SP(`${e}/executeMutation`,w,{getPendingMeta(){return Dd({startedTimeStamp:Date.now()})}}),O=D=>"force"in D,M=D=>"ifOlderThan"in D,P=(D,N,$={})=>(I,U)=>{const j=O($)&&$.force,G=M($)&&$.ifOlderThan,q=(V=!0)=>{const B={forceRefetch:V,subscribe:!1};return i.endpoints[D].initiate(N,B)},H=i.endpoints[D].select(N)(U());if(j)I(q());else if(G){const V=H==null?void 0:H.fulfilledTimeStamp;if(!V){I(q());return}(Number(new Date)-Number(new Date(V)))/1e3>=G&&I(q())}else I(q(!1))};function R(D){return N=>{var $,I;return((I=($=N==null?void 0:N.meta)==null?void 0:$.arg)==null?void 0:I.endpointName)===D}}function z(D,N){return{matchPending:ph(oE(D),R(N)),matchFulfilled:ph(Hs(D),R(N)),matchRejected:ph(Jc(D),R(N))}}return{queryThunk:E,mutationThunk:T,infiniteQueryThunk:S,prefetch:P,updateQueryData:v,upsertQueryData:y,patchQueryData:h,buildMatchThunkActions:z}}function TS(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function w5(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function x5(e,t,n,r){return hE(n[e.meta.arg.endpointName][t],Hs(e)?e.payload:void 0,Vy(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function NP(e){return Zr(e)?Wr(e):e}function Eg(e,t,n){const r=e[t];r&&n(r)}function Ph(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function RP(e,t,n){const r=e[Ph(t)];r&&n(r)}var Ag={};function IZ({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:a,extractRehydrationInfo:s,hasRehydrationInfo:u},assertTagType:c,config:f}){const h=on(`${e}/resetApiState`);function p(R,z,D,N){var $;R[$=z.queryCacheKey]??(R[$]={status:_o,endpointName:z.endpointName}),Eg(R,z.queryCacheKey,I=>{I.status=AS,I.requestId=D&&I.requestId?I.requestId:N.requestId,z.originalArgs!==void 0&&(I.originalArgs=z.originalArgs),I.startedTimeStamp=N.startedTimeStamp;const U=i[N.arg.endpointName];e0(U)&&"direction"in z&&(I.direction=z.direction)})}function g(R,z,D,N){Eg(R,z.arg.queryCacheKey,$=>{if($.requestId!==z.requestId&&!N)return;const{merge:I}=i[z.arg.endpointName];if($.status=oh,I)if($.data!==void 0){const{fulfilledTimeStamp:U,arg:j,baseQueryMeta:G,requestId:q}=z;let H=cp($.data,V=>I(V,D,{arg:j.originalArgs,baseQueryMeta:G,fulfilledTimeStamp:U,requestId:q}));$.data=H}else $.data=D;else $.data=i[z.arg.endpointName].structuralSharing??!0?uE(Zr($.data)?bQ($.data):$.data,D):D;delete $.error,$.fulfilledTimeStamp=z.fulfilledTimeStamp})}const v=an({name:`${e}/queries`,initialState:Ag,reducers:{removeQueryResult:{reducer(R,{payload:{queryCacheKey:z}}){delete R[z]},prepare:At()},cacheEntriesUpserted:{reducer(R,z){for(const D of z.payload){const{queryDescription:N,value:$}=D;p(R,N,!0,{arg:N,requestId:z.meta.requestId,startedTimeStamp:z.meta.timestamp}),g(R,{arg:N,requestId:z.meta.requestId,fulfilledTimeStamp:z.meta.timestamp,baseQueryMeta:{}},$,!0)}},prepare:R=>({payload:R.map(N=>{const{endpointName:$,arg:I,value:U}=N,j=i[$];return{queryDescription:{type:hp,endpointName:$,originalArgs:N.arg,queryCacheKey:r({queryArgs:I,endpointDefinition:j,endpointName:$})},value:U}}),meta:{[Gy]:!0,requestId:Ky(),timestamp:Date.now()}})},queryResultPatched:{reducer(R,{payload:{queryCacheKey:z,patches:D}}){Eg(R,z,N=>{N.data=gP(N.data,D.concat())})},prepare:At()}},extraReducers(R){R.addCase(t.pending,(z,{meta:D,meta:{arg:N}})=>{const $=OS(N);p(z,N,$,D)}).addCase(t.fulfilled,(z,{meta:D,payload:N})=>{const $=OS(D.arg);g(z,D,N,$)}).addCase(t.rejected,(z,{meta:{condition:D,arg:N,requestId:$},error:I,payload:U})=>{Eg(z,N.queryCacheKey,j=>{if(!D){if(j.requestId!==$)return;j.status=sh,j.error=U??I}})}).addMatcher(u,(z,D)=>{const{queries:N}=s(D);for(const[$,I]of Object.entries(N))((I==null?void 0:I.status)===oh||(I==null?void 0:I.status)===sh)&&(z[$]=I)})}}),y=an({name:`${e}/mutations`,initialState:Ag,reducers:{removeMutationResult:{reducer(R,{payload:z}){const D=Ph(z);D in R&&delete R[D]},prepare:At()}},extraReducers(R){R.addCase(n.pending,(z,{meta:D,meta:{requestId:N,arg:$,startedTimeStamp:I}})=>{$.track&&(z[Ph(D)]={requestId:N,status:AS,endpointName:$.endpointName,startedTimeStamp:I})}).addCase(n.fulfilled,(z,{payload:D,meta:N})=>{N.arg.track&&RP(z,N,$=>{$.requestId===N.requestId&&($.status=oh,$.data=D,$.fulfilledTimeStamp=N.fulfilledTimeStamp)})}).addCase(n.rejected,(z,{payload:D,error:N,meta:$})=>{$.arg.track&&RP(z,$,I=>{I.requestId===$.requestId&&(I.status=sh,I.error=D??N)})}).addMatcher(u,(z,D)=>{const{mutations:N}=s(D);for(const[$,I]of Object.entries(N))((I==null?void 0:I.status)===oh||(I==null?void 0:I.status)===sh)&&$!==(I==null?void 0:I.requestId)&&(z[$]=I)})}}),b={tags:{},keys:{}},w=an({name:`${e}/invalidation`,initialState:b,reducers:{updateProvidedBy:{reducer(R,z){var D,N,$;for(const{queryCacheKey:I,providedTags:U}of z.payload){_(R,I);for(const{type:j,id:G}of U){const q=(N=(D=R.tags)[j]??(D[j]={}))[$=G||"__internal_without_id"]??(N[$]=[]);q.includes(I)||q.push(I)}R.keys[I]=U}},prepare:At()}},extraReducers(R){R.addCase(v.actions.removeQueryResult,(z,{payload:{queryCacheKey:D}})=>{_(z,D)}).addMatcher(u,(z,D)=>{var $,I,U;const{provided:N}=s(D);for(const[j,G]of Object.entries(N.tags??{}))for(const[q,H]of Object.entries(G)){const V=(I=($=z.tags)[j]??($[j]={}))[U=q||"__internal_without_id"]??(I[U]=[]);for(const B of H)V.includes(B)||V.push(B),z.keys[B]=N.keys[B]}}).addMatcher(xo(Hs(t),Vy(t)),(z,D)=>{C(z,[D])}).addMatcher(v.actions.cacheEntriesUpserted.match,(z,D)=>{const N=D.payload.map(({queryDescription:$,value:I})=>({type:"UNKNOWN",payload:I,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:$}}));C(z,N)})}});function _(R,z){var N;const D=NP(R.keys[z]??[]);for(const $ of D){const I=$.type,U=$.id??"__internal_without_id",j=(N=R.tags[I])==null?void 0:N[U];j&&(R.tags[I][U]=NP(j).filter(G=>G!==z))}delete R.keys[z]}function C(R,z){const D=z.map(N=>{const $=x5(N,"providesTags",i,c),{queryCacheKey:I}=N.meta.arg;return{queryCacheKey:I,providedTags:$}});w.caseReducers.updateProvidedBy(R,w.actions.updateProvidedBy(D))}const E=an({name:`${e}/subscriptions`,initialState:Ag,reducers:{updateSubscriptionOptions(R,z){},unsubscribeQueryResult(R,z){},internal_getRTKQSubscriptions(){}}}),S=an({name:`${e}/internalSubscriptions`,initialState:Ag,reducers:{subscriptionsUpdated:{reducer(R,z){return gP(R,z.payload)},prepare:At()}}}),T=an({name:`${e}/config`,initialState:{online:CZ(),focused:kZ(),middlewareRegistered:!1,...f},reducers:{middlewareRegistered(R,{payload:z}){R.middlewareRegistered=R.middlewareRegistered==="conflict"||a!==z?"conflict":!0}},extraReducers:R=>{R.addCase(Xy,z=>{z.online=!0}).addCase(dE,z=>{z.online=!1}).addCase(Zy,z=>{z.focused=!0}).addCase(fE,z=>{z.focused=!1}).addMatcher(u,z=>({...z}))}}),O=tE({queries:v.reducer,mutations:y.reducer,provided:w.reducer,subscriptions:S.reducer,config:T.reducer}),M=(R,z)=>O(h.match(z)?void 0:R,z),P={...T.actions,...v.actions,...E.actions,...S.actions,...y.actions,...w.actions,resetApiState:h};return{reducer:M,actions:P}}var Ii=Symbol.for("RTKQ/skipToken"),_5={status:_o},DP=cp(_5,()=>{}),IP=cp(_5,()=>{});function LZ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=E=>DP,i=E=>IP;return{buildQuerySelector:g,buildInfiniteQuerySelector:v,buildMutationSelector:y,selectInvalidatedBy:b,selectCachedArgsForQuery:w,selectApiState:s,selectQueries:u,selectMutations:f,selectQueryEntry:c,selectConfig:h};function a(E){return{...E,...CP(E.status)}}function s(E){return E[t]}function u(E){var S;return(S=s(E))==null?void 0:S.queries}function c(E,S){var T;return(T=u(E))==null?void 0:T[S]}function f(E){var S;return(S=s(E))==null?void 0:S.mutations}function h(E){var S;return(S=s(E))==null?void 0:S.config}function p(E,S,T){return O=>{if(O===Ii)return n(r,T);const M=e({queryArgs:O,endpointDefinition:S,endpointName:E});return n(R=>c(R,M)??DP,T)}}function g(E,S){return p(E,S,a)}function v(E,S){const{infiniteQueryOptions:T}=S;function O(M){const P={...M,...CP(M.status)},{isLoading:R,isError:z,direction:D}=P,N=D==="forward",$=D==="backward";return{...P,hasNextPage:_(T,P.data,P.originalArgs),hasPreviousPage:C(T,P.data,P.originalArgs),isFetchingNextPage:R&&N,isFetchingPreviousPage:R&&$,isFetchNextPageError:z&&N,isFetchPreviousPageError:z&&$}}return p(E,S,O)}function y(){return E=>{let S;return typeof E=="object"?S=Ph(E)??Ii:S=E,n(S===Ii?i:M=>{var P,R;return((R=(P=s(M))==null?void 0:P.mutations)==null?void 0:R[S])??IP},a)}}function b(E,S){const T=E[t],O=new Set,M=kS(S,cE,y5);for(const P of M){const R=T.provided.tags[P.type];if(!R)continue;let z=(P.id!==void 0?R[P.id]:Object.values(R).flat())??[];for(const D of z)O.add(D)}return Array.from(O.values()).flatMap(P=>{const R=T.queries[P];return R?{queryCacheKey:P,endpointName:R.endpointName,originalArgs:R.originalArgs}:[]})}function w(E,S){return kS(Object.values(u(E)),T=>(T==null?void 0:T.endpointName)===S&&T.status!==_o,T=>T.originalArgs)}function _(E,S,T){return S?TS(E,S,T)!=null:!1}function C(E,S,T){return!S||!E.getPreviousPageParam?!1:w5(E,S,T)!=null}}var oc=WeakMap?new WeakMap:void 0,LP=({endpointName:e,queryArgs:t})=>{let n="";const r=oc==null?void 0:oc.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(a,s)=>(s=typeof s=="bigint"?{$bigint:s.toString()}:s,s=Zc(s)?Object.keys(s).sort().reduce((u,c)=>(u[c]=s[c],u),{}):s,s));Zc(t)&&(oc==null||oc.set(t,i)),n=i}return`${e}(${n})`};function S5(...e){return function(n){const r=Dv(f=>{var h;return(h=n.extractRehydrationInfo)==null?void 0:h.call(n,f,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(f){let h=LP;if("serializeQueryArgs"in f.endpointDefinition){const p=f.endpointDefinition.serializeQueryArgs;h=g=>{const v=p(g);return typeof v=="string"?v:LP({...g,queryArgs:v})}}else n.serializeQueryArgs&&(h=n.serializeQueryArgs);return h(f)},tagTypes:[...n.tagTypes||[]]},a={endpointDefinitions:{},batch(f){f()},apiUid:Ky(),extractRehydrationInfo:r,hasRehydrationInfo:Dv(f=>r(f)!=null)},s={injectEndpoints:c,enhanceEndpoints({addTagTypes:f,endpoints:h}){if(f)for(const p of f)i.tagTypes.includes(p)||i.tagTypes.push(p);if(h)for(const[p,g]of Object.entries(h))typeof g=="function"?g(ef(a,p)):Object.assign(ef(a,p)||{},g);return s}},u=e.map(f=>f.init(s,i,a));function c(f){const h=f.endpoints({query:p=>({...p,type:hp}),mutation:p=>({...p,type:g5}),infiniteQuery:p=>({...p,type:v5})});for(const[p,g]of Object.entries(h)){if(f.overrideExisting!==!0&&p in a.endpointDefinitions){if(f.overrideExisting==="throw")throw new Error(tr(39));continue}a.endpointDefinitions[p]=g;for(const v of u)v.injectEndpoint(p,g)}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function Zke(){return function(){throw new Error(tr(33))}}function Za(e,...t){return Object.assign(e,...t)}var zZ=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let a=null,s=null;const{updateSubscriptionOptions:u,unsubscribeQueryResult:c}=e.internalActions,f=(b,w)=>{if(u.match(w)){const{queryCacheKey:C,requestId:E,options:S}=w.payload,T=b.get(C);return T!=null&&T.has(E)&&T.set(E,S),!0}if(c.match(w)){const{queryCacheKey:C,requestId:E}=w.payload,S=b.get(C);return S&&S.delete(E),!0}if(e.internalActions.removeQueryResult.match(w))return b.delete(w.payload.queryCacheKey),!0;if(t.pending.match(w)){const{meta:{arg:C,requestId:E}}=w,S=zv(b,C.queryCacheKey,CS);return C.subscribe&&S.set(E,C.subscriptionOptions??S.get(E)??{}),!0}let _=!1;if(t.rejected.match(w)){const{meta:{condition:C,arg:E,requestId:S}}=w;if(C&&E.subscribe){const T=zv(b,E.queryCacheKey,CS);T.set(S,E.subscriptionOptions??T.get(S)??{}),_=!0}}return _},h=()=>n.currentSubscriptions,v={getSubscriptions:h,getSubscriptionCount:b=>{const _=h().get(b);return(_==null?void 0:_.size)??0},isRequestSubscribed:(b,w)=>{var C;const _=h();return!!((C=_==null?void 0:_.get(b))!=null&&C.get(w))}};function y(b){return JSON.parse(JSON.stringify(Object.fromEntries([...b].map(([w,_])=>[w,Object.fromEntries(_)]))))}return(b,w)=>{if(a||(a=y(n.currentSubscriptions)),e.util.resetApiState.match(b))return a={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(b))return[!1,v];const _=f(n.currentSubscriptions,b);let C=!0;if(_){s||(s=setTimeout(()=>{const T=y(n.currentSubscriptions),[,O]=Qz(a,()=>T);w.next(e.internalActions.subscriptionsUpdated(O)),a=T,s=null},500));const E=typeof b.type=="string"&&!!b.type.startsWith(i),S=t.rejected.match(b)&&b.meta.condition&&!!b.meta.arg.subscribe;C=!E&&!S}return[C,!1]}},jZ=2147483647/1e3-1,$Z=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:a,selectConfig:s},getRunningQueryThunk:u,mwApi:c})=>{const{removeQueryResult:f,unsubscribeQueryResult:h,cacheEntriesUpserted:p}=t.internalActions,g=xo(h.match,n.fulfilled,n.rejected,p.match);function v(E){const S=i.currentSubscriptions.get(E);return S?S.size>0:!1}const y={};function b(E){var S;for(const T of E.values())(S=T==null?void 0:T.abort)==null||S.call(T)}const w=(E,S)=>{const T=S.getState(),O=s(T);if(g(E)){let M;if(p.match(E))M=E.payload.map(P=>P.queryDescription.queryCacheKey);else{const{queryCacheKey:P}=h.match(E)?E.payload:E.meta.arg;M=[P]}_(M,S,O)}if(t.util.resetApiState.match(E)){for(const[M,P]of Object.entries(y))P&&clearTimeout(P),delete y[M];b(i.runningQueries),b(i.runningMutations)}if(r.hasRehydrationInfo(E)){const{queries:M}=r.extractRehydrationInfo(E);_(Object.keys(M),S,O)}};function _(E,S,T){const O=S.getState();for(const M of E){const P=a(O,M);P!=null&&P.endpointName&&C(M,P.endpointName,S,T)}}function C(E,S,T,O){const M=ef(r,S),P=(M==null?void 0:M.keepUnusedDataFor)??O.keepUnusedDataFor;if(P===1/0)return;const R=Math.max(0,Math.min(P,jZ));if(!v(E)){const z=y[E];z&&clearTimeout(z),y[E]=setTimeout(()=>{if(!v(E)){const D=a(T.getState(),E);if(D!=null&&D.endpointName){const N=T.dispatch(u(D.endpointName,D.originalArgs));N==null||N.abort()}T.dispatch(f({queryCacheKey:E}))}delete y[E]},R*1e3)}}return w},zP=new Error("Promise never resolved before cacheEntryRemoved."),BZ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a,selectors:{selectQueryEntry:s,selectApiState:u}})=>{const c=_S(r),f=_S(i),h=Hs(r,i),p={},{removeQueryResult:g,removeMutationResult:v,cacheEntriesUpserted:y}=e.internalActions;function b(T,O,M){const P=p[T];P!=null&&P.valueResolved&&(P.valueResolved({data:O,meta:M}),delete P.valueResolved)}function w(T){const O=p[T];O&&(delete p[T],O.cacheEntryRemoved())}function _(T){const{arg:O,requestId:M}=T.meta,{endpointName:P,originalArgs:R}=O;return[P,R,M]}const C=(T,O,M)=>{const P=E(T);function R(z,D,N,$){const I=s(M,D),U=s(O.getState(),D);!I&&U&&S(z,$,D,O,N)}if(r.pending.match(T)){const[z,D,N]=_(T);R(z,P,N,D)}else if(y.match(T))for(const{queryDescription:z,value:D}of T.payload){const{endpointName:N,originalArgs:$,queryCacheKey:I}=z;R(N,I,T.meta.requestId,$),b(I,D,{})}else if(i.pending.match(T)){if(O.getState()[t].mutations[P]){const[D,N,$]=_(T);S(D,N,P,O,$)}}else if(h(T))b(P,T.payload,T.meta.baseQueryMeta);else if(g.match(T)||v.match(T))w(P);else if(e.util.resetApiState.match(T))for(const z of Object.keys(p))w(z)};function E(T){return c(T)?T.meta.arg.queryCacheKey:f(T)?T.meta.arg.fixedCacheKey??T.meta.requestId:g.match(T)?T.payload.queryCacheKey:v.match(T)?Ph(T.payload):""}function S(T,O,M,P,R){const z=ef(n,T),D=z==null?void 0:z.onCacheEntryAdded;if(!D)return;const N={},$=new Promise(H=>{N.cacheEntryRemoved=H}),I=Promise.race([new Promise(H=>{N.valueResolved=H}),$.then(()=>{throw zP})]);I.catch(()=>{}),p[M]=N;const U=e.endpoints[T].select(jv(z)?O:M),j=P.dispatch((H,V,B)=>B),G={...P,getCacheEntry:()=>U(P.getState()),requestId:R,extra:j,updateCachedData:jv(z)?H=>P.dispatch(e.util.updateQueryData(T,O,H)):void 0,cacheDataLoaded:I,cacheEntryRemoved:$},q=D(O,G);Promise.resolve(q).catch(H=>{if(H!==zP)throw H})}return C},UZ=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},FZ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:s,refetchQuery:u,internalState:c})=>{const{removeQueryResult:f}=a.internalActions,h=xo(Hs(r),Vy(r)),p=xo(Hs(i,r),Jc(i,r));let g=[],v=0;const y=(_,C)=>{(i.pending.match(_)||r.pending.match(_))&&v++,p(_)&&(v=Math.max(0,v-1)),h(_)?w(x5(_,"invalidatesTags",n,s),C):p(_)?w([],C):a.util.invalidateTags.match(_)&&w(hE(_.payload,void 0,void 0,void 0,void 0,s),C)};function b(){return v>0}function w(_,C){const E=C.getState(),S=E[e];if(g.push(..._),S.config.invalidationBehavior==="delayed"&&b())return;const T=g;if(g=[],T.length===0)return;const O=a.util.selectInvalidatedBy(E,T);t.batch(()=>{const M=Array.from(O.values());for(const{queryCacheKey:P}of M){const R=S.queries[P],z=zv(c.currentSubscriptions,P,CS);R&&(z.size===0?C.dispatch(f({queryCacheKey:P})):R.status!==_o&&C.dispatch(u(R)))}})}return y},HZ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:a,currentSubscriptions:s}=i,u=new Set;let c=null;const f=(w,_)=>{(n.internalActions.updateSubscriptionOptions.match(w)||n.internalActions.unsubscribeQueryResult.match(w))&&h(w.payload.queryCacheKey,_),(t.pending.match(w)||t.rejected.match(w)&&w.meta.condition)&&h(w.meta.arg.queryCacheKey,_),(t.fulfilled.match(w)||t.rejected.match(w)&&!w.meta.condition)&&p(w.meta.arg,_),n.util.resetApiState.match(w)&&(y(),c&&(clearTimeout(c),c=null),u.clear())};function h(w,_){u.add(w),c||(c=setTimeout(()=>{for(const C of u)g({queryCacheKey:C},_);u.clear(),c=null},0))}function p({queryCacheKey:w},_){const C=_.getState()[e],E=C.queries[w],S=s.get(w);if(!E||E.status===_o)return;const{lowestPollingInterval:T,skipPollingIfUnfocused:O}=b(S);if(!Number.isFinite(T))return;const M=a.get(w);M!=null&&M.timeout&&(clearTimeout(M.timeout),M.timeout=void 0);const P=Date.now()+T;a.set(w,{nextPollTimestamp:P,pollingInterval:T,timeout:setTimeout(()=>{(C.config.focused||!O)&&_.dispatch(r(E)),p({queryCacheKey:w},_)},T)})}function g({queryCacheKey:w},_){const E=_.getState()[e].queries[w],S=s.get(w);if(!E||E.status===_o)return;const{lowestPollingInterval:T}=b(S);if(!Number.isFinite(T)){v(w);return}const O=a.get(w),M=Date.now()+T;(!O||M<O.nextPollTimestamp)&&p({queryCacheKey:w},_)}function v(w){const _=a.get(w);_!=null&&_.timeout&&clearTimeout(_.timeout),a.delete(w)}function y(){for(const w of a.keys())v(w)}function b(w=new Map){let _=!1,C=Number.POSITIVE_INFINITY;for(const E of w.values())E.pollingInterval&&(C=Math.min(E.pollingInterval,C),_=E.skipPollingIfUnfocused||_);return{lowestPollingInterval:C,skipPollingIfUnfocused:_}}return f},GZ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=oE(n,r),a=Jc(n,r),s=Hs(n,r),u={};return(f,h)=>{var p,g;if(i(f)){const{requestId:v,arg:{endpointName:y,originalArgs:b}}=f.meta,w=ef(t,y),_=w==null?void 0:w.onQueryStarted;if(_){const C={},E=new Promise((M,P)=>{C.resolve=M,C.reject=P});E.catch(()=>{}),u[v]=C;const S=e.endpoints[y].select(jv(w)?b:v),T=h.dispatch((M,P,R)=>R),O={...h,getCacheEntry:()=>S(h.getState()),requestId:v,extra:T,updateCachedData:jv(w)?M=>h.dispatch(e.util.updateQueryData(y,b,M)):void 0,queryFulfilled:E};_(b,O)}}else if(s(f)){const{requestId:v,baseQueryMeta:y}=f.meta;(p=u[v])==null||p.resolve({data:f.payload,meta:y}),delete u[v]}else if(a(f)){const{requestId:v,rejectedWithValue:y,baseQueryMeta:b}=f.meta;(g=u[v])==null||g.reject({error:f.payload??f.error,isUnhandledError:!y,meta:b}),delete u[v]}}},qZ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:a}=n.internalActions,s=(c,f)=>{Zy.match(c)&&u(f,"refetchOnFocus"),Xy.match(c)&&u(f,"refetchOnReconnect")};function u(c,f){const h=c.getState()[e],p=h.queries,g=i.currentSubscriptions;t.batch(()=>{for(const v of g.keys()){const y=p[v],b=g.get(v);if(!b||!y)continue;const w=[...b.values()];(w.some(C=>C[f]===!0)||w.every(C=>C[f]===void 0)&&h.config[f])&&(b.size===0?c.dispatch(a({queryCacheKey:v})):y.status!==_o&&c.dispatch(r(y)))}})}return s};function VZ(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:a}=e,{apiUid:s}=i,u={invalidateTags:on(`${t}/invalidateTags`)},c=g=>g.type.startsWith(`${t}/`),f=[UZ,$Z,FZ,HZ,BZ,GZ];return{middleware:g=>{let v=!1;const y=a(g.dispatch),b={...e,internalState:y,refetchQuery:p,isThisApiSliceAction:c,mwApi:g},w=f.map(E=>E(b)),_=zZ(b),C=qZ(b);return E=>S=>{if(!nE(S))return E(S);v||(v=!0,g.dispatch(r.internalActions.middlewareRegistered(s)));const T={...g,next:E},O=g.getState(),[M,P]=_(S,T,O);let R;if(M?R=E(S):R=P,g.getState()[t]&&(C(S,T,O),c(S)||i.hasRehydrationInfo(S)))for(const z of w)z(S,T,O);return R}},actions:u};function p(g){return e.api.endpoints[g.endpointName].initiate(g.originalArgs,{subscribe:!1,forceRefetch:!0})}}var jP=Symbol(),E5=({createSelector:e=le}={})=>({name:jP,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:s,refetchOnMountOrArgChange:u,refetchOnFocus:c,refetchOnReconnect:f,invalidationBehavior:h,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:v},y){DQ();const b=de=>de;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:Xy,onOffline:dE,onFocus:Zy,onFocusLost:fE},util:{}});const w=LZ({serializeQueryArgs:a,reducerPath:i,createSelector:e}),{selectInvalidatedBy:_,selectCachedArgsForQuery:C,buildQuerySelector:E,buildInfiniteQuerySelector:S,buildMutationSelector:T}=w;Za(t.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:C});const{queryThunk:O,infiniteQueryThunk:M,mutationThunk:P,patchQueryData:R,updateQueryData:z,upsertQueryData:D,prefetch:N,buildMatchThunkActions:$}=DZ({baseQuery:n,reducerPath:i,context:y,api:t,serializeQueryArgs:a,assertTagType:b,selectors:w,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:v}),{reducer:I,actions:U}=IZ({context:y,queryThunk:O,mutationThunk:P,serializeQueryArgs:a,reducerPath:i,assertTagType:b,config:{refetchOnFocus:c,refetchOnReconnect:f,refetchOnMountOrArgChange:u,keepUnusedDataFor:s,reducerPath:i,invalidationBehavior:h}});Za(t.util,{patchQueryData:R,updateQueryData:z,upsertQueryData:D,prefetch:N,resetApiState:U.resetApiState,upsertQueryEntries:U.cacheEntriesUpserted}),Za(t.internalActions,U);const j=new WeakMap,G=de=>zv(j,de,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:q,buildInitiateInfiniteQuery:H,buildInitiateMutation:V,getRunningMutationThunk:B,getRunningMutationsThunk:K,getRunningQueriesThunk:X,getRunningQueryThunk:ee}=RZ({queryThunk:O,mutationThunk:P,infiniteQueryThunk:M,api:t,serializeQueryArgs:a,context:y,getInternalState:G});Za(t.util,{getRunningMutationThunk:B,getRunningMutationsThunk:K,getRunningQueryThunk:ee,getRunningQueriesThunk:X});const{middleware:ce,actions:he}=VZ({reducerPath:i,context:y,queryThunk:O,mutationThunk:P,infiniteQueryThunk:M,api:t,assertTagType:b,selectors:w,getRunningQueryThunk:ee,getInternalState:G});return Za(t.util,he),Za(t,{reducer:I,middleware:ce}),{name:jP,injectEndpoint(de,ie){var ye;const pe=(ye=t.endpoints)[de]??(ye[de]={});Jy(ie)&&Za(pe,{name:de,select:E(de,ie),initiate:q(de,ie)},$(O,de)),MZ(ie)&&Za(pe,{name:de,select:T(),initiate:V(de)},$(P,de)),e0(ie)&&Za(pe,{name:de,select:S(de,ie),initiate:H(de,ie)},$(O,de))}}}});E5();function kg(e){return e.replace(e[0],e[0].toUpperCase())}var KZ="query",YZ="mutation",WZ="infinitequery";function QZ(e){return e.type===KZ}function ZZ(e){return e.type===YZ}function A5(e){return e.type===WZ}function Id(e,...t){return Object.assign(e,...t)}var kw=Symbol();function Cw(e){const t=k.useRef(e),n=k.useMemo(()=>uE(t.current,e),[e]);return k.useEffect(()=>{t.current!==n&&(t.current=n)},[n]),n}function sc(e){const t=k.useRef(e);return k.useEffect(()=>{Oc(t.current,e)||(t.current=e)},[e]),Oc(t.current,e)?t.current:e}var XZ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JZ=XZ(),eX=()=>typeof navigator<"u"&&navigator.product==="ReactNative",tX=eX(),nX=()=>JZ||tX?k.useLayoutEffect:k.useEffect,rX=nX(),$P=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:d5.pending}:e;function Ow(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var Tw=["data","status","isLoading","isSuccess","isError","error"];function iX({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:a,createSelector:s},serializeQueryArgs:u,context:c}){const f=a?O=>O():k.useEffect,h=O=>{var M,P;return(P=(M=O.current)==null?void 0:M.unsubscribe)==null?void 0:P.call(M)},p=c.endpointDefinitions;return{buildQueryHooks:E,buildInfiniteQueryHooks:S,buildMutationHook:T,usePrefetch:y};function g(O,M,P){if(M!=null&&M.endpointName&&O.isUninitialized){const{endpointName:I}=M,U=p[I];P!==Ii&&u({queryArgs:M.originalArgs,endpointDefinition:U,endpointName:I})===u({queryArgs:P,endpointDefinition:U,endpointName:I})&&(M=void 0)}let R=O.isSuccess?O.data:M==null?void 0:M.data;R===void 0&&(R=O.data);const z=R!==void 0,D=O.isLoading,N=(!M||M.isLoading||M.isUninitialized)&&!z&&D,$=O.isSuccess||z&&(D&&!(M!=null&&M.isError)||O.isUninitialized);return{...O,data:R,currentData:O.data,isFetching:D,isLoading:N,isSuccess:$}}function v(O,M,P){if(M!=null&&M.endpointName&&O.isUninitialized){const{endpointName:I}=M,U=p[I];P!==Ii&&u({queryArgs:M.originalArgs,endpointDefinition:U,endpointName:I})===u({queryArgs:P,endpointDefinition:U,endpointName:I})&&(M=void 0)}let R=O.isSuccess?O.data:M==null?void 0:M.data;R===void 0&&(R=O.data);const z=R!==void 0,D=O.isLoading,N=(!M||M.isLoading||M.isUninitialized)&&!z&&D,$=O.isSuccess||D&&z;return{...O,data:R,currentData:O.data,isFetching:D,isLoading:N,isSuccess:$}}function y(O,M){const P=n(),R=sc(M);return k.useCallback((z,D)=>P(e.util.prefetch(O,z,{...R,...D})),[O,P,R])}function b(O,M,{refetchOnReconnect:P,refetchOnFocus:R,refetchOnMountOrArgChange:z,skip:D=!1,pollingInterval:N=0,skipPollingIfUnfocused:$=!1,...I}={}){const{initiate:U}=e.endpoints[O],j=n(),G=k.useRef(void 0);if(!G.current){const J=j(e.internalActions.internal_getRTKQSubscriptions());G.current=J}const q=Cw(D?Ii:M),H=sc({refetchOnReconnect:P,refetchOnFocus:R,pollingInterval:N,skipPollingIfUnfocused:$}),V=I.initialPageParam,B=sc(V),K=I.refetchCachedPages,X=sc(K),ee=k.useRef(void 0);let{queryCacheKey:ce,requestId:he}=ee.current||{},de=!1;ce&&he&&(de=G.current.isRequestSubscribed(ce,he));const ie=!de&&ee.current!==void 0;return f(()=>{ie&&(ee.current=void 0)},[ie]),f(()=>{var ye;const J=ee.current;if(q===Ii){J==null||J.unsubscribe(),ee.current=void 0;return}const pe=(ye=ee.current)==null?void 0:ye.subscriptionOptions;if(!J||J.arg!==q){J==null||J.unsubscribe();const te=j(U(q,{subscriptionOptions:H,forceRefetch:z,...A5(p[O])?{initialPageParam:B,refetchCachedPages:X}:{}}));ee.current=te}else H!==pe&&J.updateSubscriptionOptions(H)},[j,U,z,q,H,ie,B,X,O]),[ee,j,U,H]}function w(O,M){return(R,{skip:z=!1,selectFromResult:D}={})=>{const{select:N}=e.endpoints[O],$=Cw(z?Ii:R),I=k.useRef(void 0),U=k.useMemo(()=>s([N($),(V,B)=>B,V=>$],M,{memoizeOptions:{resultEqualityCheck:Oc}}),[N,$]),j=k.useMemo(()=>D?s([U],D,{devModeChecks:{identityFunctionCheck:"never"}}):U,[U,D]),G=r(V=>j(V,I.current),Oc),q=i(),H=U(q.getState(),I.current);return rX(()=>{I.current=H},[H]),G}}function _(O){k.useEffect(()=>()=>{h(O),O.current=void 0},[O])}function C(O){if(!O.current)throw new Error(tr(38));return O.current.refetch()}function E(O){const M=(z,D={})=>{const[N]=b(O,z,D);return _(N),k.useMemo(()=>({refetch:()=>C(N)}),[N])},P=({refetchOnReconnect:z,refetchOnFocus:D,pollingInterval:N=0,skipPollingIfUnfocused:$=!1}={})=>{const{initiate:I}=e.endpoints[O],U=n(),[j,G]=k.useState(kw),q=k.useRef(void 0),H=sc({refetchOnReconnect:z,refetchOnFocus:D,pollingInterval:N,skipPollingIfUnfocused:$});f(()=>{var ee,ce;const X=(ee=q.current)==null?void 0:ee.subscriptionOptions;H!==X&&((ce=q.current)==null||ce.updateSubscriptionOptions(H))},[H]);const V=k.useRef(H);f(()=>{V.current=H},[H]);const B=k.useCallback(function(X,ee=!1){let ce;return t(()=>{h(q),q.current=ce=U(I(X,{subscriptionOptions:V.current,forceRefetch:!ee})),G(X)}),ce},[U,I]),K=k.useCallback(()=>{var X,ee;(X=q.current)!=null&&X.queryCacheKey&&U(e.internalActions.removeQueryResult({queryCacheKey:(ee=q.current)==null?void 0:ee.queryCacheKey}))},[U]);return k.useEffect(()=>()=>{h(q)},[]),k.useEffect(()=>{j!==kw&&!q.current&&B(j,!0)},[j,B]),k.useMemo(()=>[B,j,{reset:K}],[B,j,K])},R=w(O,g);return{useQueryState:R,useQuerySubscription:M,useLazyQuerySubscription:P,useLazyQuery(z){const[D,N,{reset:$}]=P(z),I=R(N,{...z,skip:N===kw}),U=k.useMemo(()=>({lastArg:N}),[N]);return k.useMemo(()=>[D,{...I,reset:$},U],[D,I,$,U])},useQuery(z,D){const N=M(z,D),$=R(z,{selectFromResult:z===Ii||D!=null&&D.skip?void 0:$P,...D}),I=Ow($,...Tw);return k.useDebugValue(I),k.useMemo(()=>({...$,...N}),[$,N])}}}function S(O){const M=(R,z={})=>{const[D,N,$,I]=b(O,R,z),U=k.useRef(I);f(()=>{U.current=I},[I]);const j=z.refetchCachedPages,G=sc(j),q=k.useCallback(function(B,K){let X;return t(()=>{h(D),D.current=X=N($(B,{subscriptionOptions:U.current,direction:K}))}),X},[D,N,$]);_(D);const H=Cw(z.skip?Ii:R),V=k.useCallback(B=>{if(!D.current)throw new Error(tr(38));const K={refetchCachedPages:(B==null?void 0:B.refetchCachedPages)??G};return D.current.refetch(K)},[D,G]);return k.useMemo(()=>({trigger:q,refetch:V,fetchNextPage:()=>q(H,"forward"),fetchPreviousPage:()=>q(H,"backward")}),[V,q,H])},P=w(O,v);return{useInfiniteQueryState:P,useInfiniteQuerySubscription:M,useInfiniteQuery(R,z){const{refetch:D,fetchNextPage:N,fetchPreviousPage:$}=M(R,z),I=P(R,{selectFromResult:R===Ii||z!=null&&z.skip?void 0:$P,...z}),U=Ow(I,...Tw,"hasNextPage","hasPreviousPage");return k.useDebugValue(U),k.useMemo(()=>({...I,fetchNextPage:N,fetchPreviousPage:$,refetch:D}),[I,N,$,D])}}}function T(O){return({selectFromResult:M,fixedCacheKey:P}={})=>{const{select:R,initiate:z}=e.endpoints[O],D=n(),[N,$]=k.useState();k.useEffect(()=>()=>{N!=null&&N.arg.fixedCacheKey||N==null||N.reset()},[N]);const I=k.useCallback(function(X){const ee=D(z(X,{fixedCacheKey:P}));return $(ee),ee},[D,z,P]),{requestId:U}=N||{},j=k.useMemo(()=>R({fixedCacheKey:P,requestId:N==null?void 0:N.requestId}),[P,N,R]),G=k.useMemo(()=>M?s([j],M):j,[M,j]),q=r(G,Oc),H=P==null?N==null?void 0:N.arg.originalArgs:void 0,V=k.useCallback(()=>{t(()=>{N&&$(void 0),P&&D(e.internalActions.removeMutationResult({requestId:U,fixedCacheKey:P}))})},[D,P,N,U]),B=Ow(q,...Tw,"endpointName");k.useDebugValue(B);const K=k.useMemo(()=>({...q,originalArgs:H,reset:V}),[q,H,V]);return k.useMemo(()=>[I,K],[I,K])}}}var aX=Symbol(),oX=({batch:e=fG,hooks:t={useDispatch:sG,useSelector:cG,useStore:tz},createSelector:n=le,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:aX,init(a,{serializeQueryArgs:s},u){const c=a,{buildQueryHooks:f,buildInfiniteQueryHooks:h,buildMutationHook:p,usePrefetch:g}=iX({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:u});return Id(c,{usePrefetch:g}),Id(u,{batch:e}),{injectEndpoint(v,y){if(QZ(y)){const{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:C,useQuerySubscription:E}=f(v);Id(c.endpoints[v],{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:C,useQuerySubscription:E}),a[`use${kg(v)}Query`]=b,a[`useLazy${kg(v)}Query`]=w}if(ZZ(y)){const b=p(v);Id(c.endpoints[v],{useMutation:b}),a[`use${kg(v)}Mutation`]=b}else if(A5(y)){const{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}=h(v);Id(c.endpoints[v],{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}),a[`use${kg(v)}InfiniteQuery`]=b}}}}}),Xke=S5(E5(),oX());function _n(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=_n(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var sX={value:()=>{}};function t0(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new av(n)}function av(e){this._=e}function lX(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}av.prototype=t0.prototype={constructor:av,on:function(e,t){var n=this._,r=lX(e+"",n),i,a=-1,s=r.length;if(arguments.length<2){for(;++a<s;)if((i=(e=r[a]).type)&&(i=uX(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(i=(e=r[a]).type)n[i]=BP(n[i],e.name,t);else if(t==null)for(i in n)n[i]=BP(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new av(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function uX(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function BP(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=sX,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var MS="http://www.w3.org/1999/xhtml";const UP={svg:"http://www.w3.org/2000/svg",xhtml:MS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function n0(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),UP.hasOwnProperty(t)?{space:UP[t],local:e}:e}function cX(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===MS&&t.documentElement.namespaceURI===MS?t.createElement(e):t.createElementNS(n,e)}}function fX(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function k5(e){var t=n0(e);return(t.local?fX:cX)(t)}function dX(){}function pE(e){return e==null?dX:function(){return this.querySelector(e)}}function hX(e){typeof e!="function"&&(e=pE(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=new Array(s),c,f,h=0;h<s;++h)(c=a[h])&&(f=e.call(c,c.__data__,h,a))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f);return new Jr(r,this._parents)}function pX(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function mX(){return[]}function C5(e){return e==null?mX:function(){return this.querySelectorAll(e)}}function gX(e){return function(){return pX(e.apply(this,arguments))}}function vX(e){typeof e=="function"?e=gX(e):e=C5(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var s=t[a],u=s.length,c,f=0;f<u;++f)(c=s[f])&&(r.push(e.call(c,c.__data__,f,s)),i.push(c));return new Jr(r,i)}function O5(e){return function(){return this.matches(e)}}function T5(e){return function(t){return t.matches(e)}}var yX=Array.prototype.find;function bX(e){return function(){return yX.call(this.children,e)}}function wX(){return this.firstElementChild}function xX(e){return this.select(e==null?wX:bX(typeof e=="function"?e:T5(e)))}var _X=Array.prototype.filter;function SX(){return Array.from(this.children)}function EX(e){return function(){return _X.call(this.children,e)}}function AX(e){return this.selectAll(e==null?SX:EX(typeof e=="function"?e:T5(e)))}function kX(e){typeof e!="function"&&(e=O5(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=[],c,f=0;f<s;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&u.push(c);return new Jr(r,this._parents)}function M5(e){return new Array(e.length)}function CX(){return new Jr(this._enter||this._groups.map(M5),this._parents)}function $v(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$v.prototype={constructor:$v,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function OX(e){return function(){return e}}function TX(e,t,n,r,i,a){for(var s=0,u,c=t.length,f=a.length;s<f;++s)(u=t[s])?(u.__data__=a[s],r[s]=u):n[s]=new $v(e,a[s]);for(;s<c;++s)(u=t[s])&&(i[s]=u)}function MX(e,t,n,r,i,a,s){var u,c,f=new Map,h=t.length,p=a.length,g=new Array(h),v;for(u=0;u<h;++u)(c=t[u])&&(g[u]=v=s.call(c,c.__data__,u,t)+"",f.has(v)?i[u]=c:f.set(v,c));for(u=0;u<p;++u)v=s.call(e,a[u],u,a)+"",(c=f.get(v))?(r[u]=c,c.__data__=a[u],f.delete(v)):n[u]=new $v(e,a[u]);for(u=0;u<h;++u)(c=t[u])&&f.get(g[u])===c&&(i[u]=c)}function PX(e){return e.__data__}function NX(e,t){if(!arguments.length)return Array.from(this,PX);var n=t?MX:TX,r=this._parents,i=this._groups;typeof e!="function"&&(e=OX(e));for(var a=i.length,s=new Array(a),u=new Array(a),c=new Array(a),f=0;f<a;++f){var h=r[f],p=i[f],g=p.length,v=RX(e.call(h,h&&h.__data__,f,r)),y=v.length,b=u[f]=new Array(y),w=s[f]=new Array(y),_=c[f]=new Array(g);n(h,p,b,w,_,v,t);for(var C=0,E=0,S,T;C<y;++C)if(S=b[C]){for(C>=E&&(E=C+1);!(T=w[E])&&++E<y;);S._next=T||null}}return s=new Jr(s,r),s._enter=u,s._exit=c,s}function RX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DX(){return new Jr(this._exit||this._groups.map(M5),this._parents)}function IX(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function LX(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),u=new Array(i),c=0;c<s;++c)for(var f=n[c],h=r[c],p=f.length,g=u[c]=new Array(p),v,y=0;y<p;++y)(v=f[y]||h[y])&&(g[y]=v);for(;c<i;++c)u[c]=n[c];return new Jr(u,this._parents)}function zX(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],s;--i>=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function jX(e){e||(e=$X);function t(p,g){return p&&g?e(p.__data__,g.__data__):!p-!g}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var s=n[a],u=s.length,c=i[a]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(c[h]=f);c.sort(t)}return new Jr(i,this._parents).order()}function $X(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function BX(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function UX(){return Array.from(this)}function FX(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null}function HX(){let e=0;for(const t of this)++e;return e}function GX(){return!this.node()}function qX(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,s=i.length,u;a<s;++a)(u=i[a])&&e.call(u,u.__data__,a,i);return this}function VX(e){return function(){this.removeAttribute(e)}}function KX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function YX(e,t){return function(){this.setAttribute(e,t)}}function WX(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function QX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function ZX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function XX(e,t){var n=n0(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?KX:VX:typeof t=="function"?n.local?ZX:QX:n.local?WX:YX)(n,t))}function P5(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function JX(e){return function(){this.style.removeProperty(e)}}function eJ(e,t,n){return function(){this.style.setProperty(e,t,n)}}function tJ(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function nJ(e,t,n){return arguments.length>1?this.each((t==null?JX:typeof t=="function"?tJ:eJ)(e,t,n??"")):tf(this.node(),e)}function tf(e,t){return e.style.getPropertyValue(t)||P5(e).getComputedStyle(e,null).getPropertyValue(t)}function rJ(e){return function(){delete this[e]}}function iJ(e,t){return function(){this[e]=t}}function aJ(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function oJ(e,t){return arguments.length>1?this.each((t==null?rJ:typeof t=="function"?aJ:iJ)(e,t)):this.node()[e]}function N5(e){return e.trim().split(/^|\s+/)}function mE(e){return e.classList||new R5(e)}function R5(e){this._node=e,this._names=N5(e.getAttribute("class")||"")}R5.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function D5(e,t){for(var n=mE(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function I5(e,t){for(var n=mE(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function sJ(e){return function(){D5(this,e)}}function lJ(e){return function(){I5(this,e)}}function uJ(e,t){return function(){(t.apply(this,arguments)?D5:I5)(this,e)}}function cJ(e,t){var n=N5(e+"");if(arguments.length<2){for(var r=mE(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?uJ:t?sJ:lJ)(n,t))}function fJ(){this.textContent=""}function dJ(e){return function(){this.textContent=e}}function hJ(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function pJ(e){return arguments.length?this.each(e==null?fJ:(typeof e=="function"?hJ:dJ)(e)):this.node().textContent}function mJ(){this.innerHTML=""}function gJ(e){return function(){this.innerHTML=e}}function vJ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function yJ(e){return arguments.length?this.each(e==null?mJ:(typeof e=="function"?vJ:gJ)(e)):this.node().innerHTML}function bJ(){this.nextSibling&&this.parentNode.appendChild(this)}function wJ(){return this.each(bJ)}function xJ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _J(){return this.each(xJ)}function SJ(e){var t=typeof e=="function"?e:k5(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function EJ(){return null}function AJ(e,t){var n=typeof e=="function"?e:k5(e),r=t==null?EJ:typeof t=="function"?t:pE(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function kJ(){var e=this.parentNode;e&&e.removeChild(this)}function CJ(){return this.each(kJ)}function OJ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function TJ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function MJ(e){return this.select(e?TJ:OJ)}function PJ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function NJ(e){return function(t){e.call(this,t,this.__data__)}}function RJ(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function DJ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function IJ(e,t,n){return function(){var r=this.__on,i,a=NJ(t);if(r){for(var s=0,u=r.length;s<u;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function LJ(e,t,n){var r=RJ(e+""),i,a=r.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var c=0,f=u.length,h;c<f;++c)for(i=0,h=u[c];i<a;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(u=t?IJ:DJ,i=0;i<a;++i)this.each(u(r[i],t,n));return this}function L5(e,t,n){var r=P5(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function zJ(e,t){return function(){return L5(this,e,t)}}function jJ(e,t){return function(){return L5(this,e,t.apply(this,arguments))}}function $J(e,t){return this.each((typeof t=="function"?jJ:zJ)(e,t))}function*BJ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,s;i<a;++i)(s=r[i])&&(yield s)}var z5=[null];function Jr(e,t){this._groups=e,this._parents=t}function pp(){return new Jr([[document.documentElement]],z5)}function UJ(){return this}Jr.prototype=pp.prototype={constructor:Jr,select:hX,selectAll:vX,selectChild:xX,selectChildren:AX,filter:kX,data:NX,enter:CX,exit:DX,join:IX,merge:LX,selection:UJ,order:zX,sort:jX,call:BX,nodes:UX,node:FX,size:HX,empty:GX,each:qX,attr:XX,style:nJ,property:oJ,classed:cJ,text:pJ,html:yJ,raise:wJ,lower:_J,append:SJ,insert:AJ,remove:CJ,clone:MJ,datum:PJ,on:LJ,dispatch:$J,[Symbol.iterator]:BJ};function Vr(e){return typeof e=="string"?new Jr([[document.querySelector(e)]],[document.documentElement]):new Jr([[e]],z5)}function FJ(e){let t;for(;t=e.sourceEvent;)e=t;return e}function zi(e,t){if(e=FJ(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const HJ={passive:!1},Nh={capture:!0,passive:!1};function Mw(e){e.stopImmediatePropagation()}function Mc(e){e.preventDefault(),e.stopImmediatePropagation()}function j5(e){var t=e.document.documentElement,n=Vr(e).on("dragstart.drag",Mc,Nh);"onselectstart"in t?n.on("selectstart.drag",Mc,Nh):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function $5(e,t){var n=e.document.documentElement,r=Vr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Mc,Nh),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Cg=e=>()=>e;function PS(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:s,y:u,dx:c,dy:f,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:h}})}PS.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function GJ(e){return!e.ctrlKey&&!e.button}function qJ(){return this.parentNode}function VJ(e,t){return t??{x:e.x,y:e.y}}function KJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function B5(){var e=GJ,t=qJ,n=VJ,r=KJ,i={},a=t0("start","drag","end"),s=0,u,c,f,h,p=0;function g(S){S.on("mousedown.drag",v).filter(r).on("touchstart.drag",w).on("touchmove.drag",_,HJ).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(S,T){if(!(h||!e.call(this,S,T))){var O=E(this,t.call(this,S,T),S,T,"mouse");O&&(Vr(S.view).on("mousemove.drag",y,Nh).on("mouseup.drag",b,Nh),j5(S.view),Mw(S),f=!1,u=S.clientX,c=S.clientY,O("start",S))}}function y(S){if(Mc(S),!f){var T=S.clientX-u,O=S.clientY-c;f=T*T+O*O>p}i.mouse("drag",S)}function b(S){Vr(S.view).on("mousemove.drag mouseup.drag",null),$5(S.view,f),Mc(S),i.mouse("end",S)}function w(S,T){if(e.call(this,S,T)){var O=S.changedTouches,M=t.call(this,S,T),P=O.length,R,z;for(R=0;R<P;++R)(z=E(this,M,S,T,O[R].identifier,O[R]))&&(Mw(S),z("start",S,O[R]))}}function _(S){var T=S.changedTouches,O=T.length,M,P;for(M=0;M<O;++M)(P=i[T[M].identifier])&&(Mc(S),P("drag",S,T[M]))}function C(S){var T=S.changedTouches,O=T.length,M,P;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),M=0;M<O;++M)(P=i[T[M].identifier])&&(Mw(S),P("end",S,T[M]))}function E(S,T,O,M,P,R){var z=a.copy(),D=zi(R||O,T),N,$,I;if((I=n.call(S,new PS("beforestart",{sourceEvent:O,target:g,identifier:P,active:s,x:D[0],y:D[1],dx:0,dy:0,dispatch:z}),M))!=null)return N=I.x-D[0]||0,$=I.y-D[1]||0,function U(j,G,q){var H=D,V;switch(j){case"start":i[P]=U,V=s++;break;case"end":delete i[P],--s;case"drag":D=zi(q||G,T),V=s;break}z.call(j,S,new PS(j,{sourceEvent:G,subject:I,target:g,identifier:P,active:V,x:D[0]+N,y:D[1]+$,dx:D[0]-H[0],dy:D[1]-H[1],dispatch:z}),M)}}return g.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Cg(!!S),g):e},g.container=function(S){return arguments.length?(t=typeof S=="function"?S:Cg(S),g):t},g.subject=function(S){return arguments.length?(n=typeof S=="function"?S:Cg(S),g):n},g.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:Cg(!!S),g):r},g.on=function(){var S=a.on.apply(a,arguments);return S===a?g:S},g.clickDistance=function(S){return arguments.length?(p=(S=+S)*S,g):Math.sqrt(p)},g}function gE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function U5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mp(){}var Rh=.7,Bv=1/Rh,Pc="\\s*([+-]?\\d+)\\s*",Dh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",YJ=/^#([0-9a-f]{3,8})$/,WJ=new RegExp(`^rgb\\(${Pc},${Pc},${Pc}\\)$`),QJ=new RegExp(`^rgb\\(${ma},${ma},${ma}\\)$`),ZJ=new RegExp(`^rgba\\(${Pc},${Pc},${Pc},${Dh}\\)$`),XJ=new RegExp(`^rgba\\(${ma},${ma},${ma},${Dh}\\)$`),JJ=new RegExp(`^hsl\\(${Dh},${ma},${ma}\\)$`),eee=new RegExp(`^hsla\\(${Dh},${ma},${ma},${Dh}\\)$`),FP={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};gE(mp,ru,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:HP,formatHex:HP,formatHex8:tee,formatHsl:nee,formatRgb:GP,toString:GP});function HP(){return this.rgb().formatHex()}function tee(){return this.rgb().formatHex8()}function nee(){return F5(this).formatHsl()}function GP(){return this.rgb().formatRgb()}function ru(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=YJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?qP(t):n===3?new Dr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Og(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Og(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=WJ.exec(e))?new Dr(t[1],t[2],t[3],1):(t=QJ.exec(e))?new Dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ZJ.exec(e))?Og(t[1],t[2],t[3],t[4]):(t=XJ.exec(e))?Og(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JJ.exec(e))?YP(t[1],t[2]/100,t[3]/100,1):(t=eee.exec(e))?YP(t[1],t[2]/100,t[3]/100,t[4]):FP.hasOwnProperty(e)?qP(FP[e]):e==="transparent"?new Dr(NaN,NaN,NaN,0):null}function qP(e){return new Dr(e>>16&255,e>>8&255,e&255,1)}function Og(e,t,n,r){return r<=0&&(e=t=n=NaN),new Dr(e,t,n,r)}function ree(e){return e instanceof mp||(e=ru(e)),e?(e=e.rgb(),new Dr(e.r,e.g,e.b,e.opacity)):new Dr}function NS(e,t,n,r){return arguments.length===1?ree(e):new Dr(e,t,n,r??1)}function Dr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}gE(Dr,NS,U5(mp,{brighter(e){return e=e==null?Bv:Math.pow(Bv,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rh:Math.pow(Rh,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dr(Vl(this.r),Vl(this.g),Vl(this.b),Uv(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:VP,formatHex:VP,formatHex8:iee,formatRgb:KP,toString:KP}));function VP(){return`#${Pl(this.r)}${Pl(this.g)}${Pl(this.b)}`}function iee(){return`#${Pl(this.r)}${Pl(this.g)}${Pl(this.b)}${Pl((isNaN(this.opacity)?1:this.opacity)*255)}`}function KP(){const e=Uv(this.opacity);return`${e===1?"rgb(":"rgba("}${Vl(this.r)}, ${Vl(this.g)}, ${Vl(this.b)}${e===1?")":`, ${e})`}`}function Uv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pl(e){return e=Vl(e),(e<16?"0":"")+e.toString(16)}function YP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $i(e,t,n,r)}function F5(e){if(e instanceof $i)return new $i(e.h,e.s,e.l,e.opacity);if(e instanceof mp||(e=ru(e)),!e)return new $i;if(e instanceof $i)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,c=(a+i)/2;return u?(t===a?s=(n-r)/u+(n<r)*6:n===a?s=(r-t)/u+2:s=(t-n)/u+4,u/=c<.5?a+i:2-a-i,s*=60):u=c>0&&c<1?0:s,new $i(s,u,c,e.opacity)}function aee(e,t,n,r){return arguments.length===1?F5(e):new $i(e,t,n,r??1)}function $i(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}gE($i,aee,U5(mp,{brighter(e){return e=e==null?Bv:Math.pow(Bv,e),new $i(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rh:Math.pow(Rh,e),new $i(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Dr(Pw(e>=240?e-240:e+120,i,r),Pw(e,i,r),Pw(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new $i(WP(this.h),Tg(this.s),Tg(this.l),Uv(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=Uv(this.opacity);return`${e===1?"hsl(":"hsla("}${WP(this.h)}, ${Tg(this.s)*100}%, ${Tg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function WP(e){return e=(e||0)%360,e<0?e+360:e}function Tg(e){return Math.max(0,Math.min(1,e||0))}function Pw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const vE=e=>()=>e;function oee(e,t){return function(n){return e+n*t}}function see(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function lee(e){return(e=+e)==1?H5:function(t,n){return n-t?see(t,n,e):vE(isNaN(t)?n:t)}}function H5(e,t){var n=t-e;return n?oee(e,n):vE(isNaN(e)?t:e)}const Fv=(function e(t){var n=lee(t);function r(i,a){var s=n((i=NS(i)).r,(a=NS(a)).r),u=n(i.g,a.g),c=n(i.b,a.b),f=H5(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=u(h),i.b=c(h),i.opacity=f(h),i+""}}return r.gamma=e,r})(1);function uee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function cee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=po(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(u){for(s=0;s<r;++s)a[s]=i[s](u);return a}}function dee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ji(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function hee(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=po(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var RS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nw=new RegExp(RS.source,"g");function pee(e){return function(){return e}}function mee(e){return function(t){return e(t)+""}}function G5(e,t){var n=RS.lastIndex=Nw.lastIndex=0,r,i,a,s=-1,u=[],c=[];for(e=e+"",t=t+"";(r=RS.exec(e))&&(i=Nw.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[s]?u[s]+=a:u[++s]=a),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,c.push({i:s,x:ji(r,i)})),n=Nw.lastIndex;return n<t.length&&(a=t.slice(n),u[s]?u[s]+=a:u[++s]=a),u.length<2?c[0]?mee(c[0].x):pee(t):(t=c.length,function(f){for(var h=0,p;h<t;++h)u[(p=c[h]).i]=p.x(f);return u.join("")})}function po(e,t){var n=typeof t,r;return t==null||n==="boolean"?vE(t):(n==="number"?ji:n==="string"?(r=ru(t))?(t=r,Fv):G5:t instanceof ru?Fv:t instanceof Date?dee:cee(t)?uee:Array.isArray(t)?fee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hee:ji)(e,t)}function yE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var QP=180/Math.PI,DS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function q5(e,t,n,r,i,a){var s,u,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*QP,skewX:Math.atan(c)*QP,scaleX:s,scaleY:u}}var Mg;function gee(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?DS:q5(t.a,t.b,t.c,t.d,t.e,t.f)}function vee(e){return e==null||(Mg||(Mg=document.createElementNS("http://www.w3.org/2000/svg","g")),Mg.setAttribute("transform",e),!(e=Mg.transform.baseVal.consolidate()))?DS:(e=e.matrix,q5(e.a,e.b,e.c,e.d,e.e,e.f))}function V5(e,t,n,r){function i(f){return f.length?f.pop()+" ":""}function a(f,h,p,g,v,y){if(f!==p||h!==g){var b=v.push("translate(",null,t,null,n);y.push({i:b-4,x:ji(f,p)},{i:b-2,x:ji(h,g)})}else(p||g)&&v.push("translate("+p+t+g+n)}function s(f,h,p,g){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),g.push({i:p.push(i(p)+"rotate(",null,r)-2,x:ji(f,h)})):h&&p.push(i(p)+"rotate("+h+r)}function u(f,h,p,g){f!==h?g.push({i:p.push(i(p)+"skewX(",null,r)-2,x:ji(f,h)}):h&&p.push(i(p)+"skewX("+h+r)}function c(f,h,p,g,v,y){if(f!==p||h!==g){var b=v.push(i(v)+"scale(",null,",",null,")");y.push({i:b-4,x:ji(f,p)},{i:b-2,x:ji(h,g)})}else(p!==1||g!==1)&&v.push(i(v)+"scale("+p+","+g+")")}return function(f,h){var p=[],g=[];return f=e(f),h=e(h),a(f.translateX,f.translateY,h.translateX,h.translateY,p,g),s(f.rotate,h.rotate,p,g),u(f.skewX,h.skewX,p,g),c(f.scaleX,f.scaleY,h.scaleX,h.scaleY,p,g),f=h=null,function(v){for(var y=-1,b=g.length,w;++y<b;)p[(w=g[y]).i]=w.x(v);return p.join("")}}}var yee=V5(gee,"px, ","px)","deg)"),bee=V5(vee,", ",")",")"),wee=1e-12;function ZP(e){return((e=Math.exp(e))+1/e)/2}function xee(e){return((e=Math.exp(e))-1/e)/2}function _ee(e){return((e=Math.exp(2*e))-1)/(e+1)}const ov=(function e(t,n,r){function i(a,s){var u=a[0],c=a[1],f=a[2],h=s[0],p=s[1],g=s[2],v=h-u,y=p-c,b=v*v+y*y,w,_;if(b<wee)_=Math.log(g/f)/t,w=function(M){return[u+M*v,c+M*y,f*Math.exp(t*M*_)]};else{var C=Math.sqrt(b),E=(g*g-f*f+r*b)/(2*f*n*C),S=(g*g-f*f-r*b)/(2*g*n*C),T=Math.log(Math.sqrt(E*E+1)-E),O=Math.log(Math.sqrt(S*S+1)-S);_=(O-T)/t,w=function(M){var P=M*_,R=ZP(T),z=f/(n*C)*(R*_ee(t*P+T)-xee(T));return[u+z*v,c+z*y,f*R/ZP(t*P+T)]}}return w.duration=_*1e3*t/Math.SQRT2,w}return i.rho=function(a){var s=Math.max(.001,+a),u=s*s,c=u*u;return e(s,u,c)},i})(Math.SQRT2,2,4);function See(e,t){t===void 0&&(t=e,e=po);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return a[u](s-u)}}var nf=0,lh=0,Ld=0,K5=1e3,Hv,uh,Gv=0,iu=0,r0=0,Ih=typeof performance=="object"&&performance.now?performance:Date,Y5=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function bE(){return iu||(Y5(Eee),iu=Ih.now()+r0)}function Eee(){iu=0}function qv(){this._call=this._time=this._next=null}qv.prototype=W5.prototype={constructor:qv,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?bE():+n)+(t==null?0:+t),!this._next&&uh!==this&&(uh?uh._next=this:Hv=this,uh=this),this._call=e,this._time=n,IS()},stop:function(){this._call&&(this._call=null,this._time=1/0,IS())}};function W5(e,t,n){var r=new qv;return r.restart(e,t,n),r}function Aee(){bE(),++nf;for(var e=Hv,t;e;)(t=iu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nf}function XP(){iu=(Gv=Ih.now())+r0,nf=lh=0;try{Aee()}finally{nf=0,Cee(),iu=0}}function kee(){var e=Ih.now(),t=e-Gv;t>K5&&(r0-=t,Gv=e)}function Cee(){for(var e,t=Hv,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Hv=n);uh=e,IS(r)}function IS(e){if(!nf){lh&&(lh=clearTimeout(lh));var t=e-iu;t>24?(e<1/0&&(lh=setTimeout(XP,e-Ih.now()-r0)),Ld&&(Ld=clearInterval(Ld))):(Ld||(Gv=Ih.now(),Ld=setInterval(kee,K5)),nf=1,Y5(XP))}}function JP(e,t,n){var r=new qv;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Oee=t0("start","end","cancel","interrupt"),Tee=[],Q5=0,eN=1,LS=2,sv=3,tN=4,zS=5,lv=6;function i0(e,t,n,r,i,a){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Mee(e,n,{name:t,index:r,group:i,on:Oee,tween:Tee,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Q5})}function wE(e,t){var n=Yi(e,t);if(n.state>Q5)throw new Error("too late; already scheduled");return n}function Sa(e,t){var n=Yi(e,t);if(n.state>sv)throw new Error("too late; already running");return n}function Yi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Mee(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=W5(a,0,n.time);function a(f){n.state=eN,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}function s(f){var h,p,g,v;if(n.state!==eN)return c();for(h in r)if(v=r[h],v.name===n.name){if(v.state===sv)return JP(s);v.state===tN?(v.state=lv,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete r[h]):+h<t&&(v.state=lv,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete r[h])}if(JP(function(){n.state===sv&&(n.state=tN,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=LS,n.on.call("start",e,e.__data__,n.index,n.group),n.state===LS){for(n.state=sv,i=new Array(g=n.tween.length),h=0,p=-1;h<g;++h)(v=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(i[++p]=v);i.length=p+1}}function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(c),n.state=zS,1),p=-1,g=i.length;++p<g;)i[p].call(e,h);n.state===zS&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=lv,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function uv(e,t){var n=e.__transition,r,i,a=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){a=!1;continue}i=r.state>LS&&r.state<zS,r.state=lv,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}a&&delete e.__transition}}function Pee(e){return this.each(function(){uv(this,e)})}function Nee(e,t){var n,r;return function(){var i=Sa(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,u=r.length;s<u;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function Ree(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Sa(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var u={name:t,value:n},c=0,f=i.length;c<f;++c)if(i[c].name===t){i[c]=u;break}c===f&&i.push(u)}a.tween=i}}function Dee(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Yi(this.node(),n).tween,i=0,a=r.length,s;i<a;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?Nee:Ree)(n,e,t))}function xE(e,t,n){var r=e._id;return e.each(function(){var i=Sa(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Yi(i,r).value[t]}}function Z5(e,t){var n;return(typeof t=="number"?ji:t instanceof ru?Fv:(n=ru(t))?(t=n,Fv):G5)(e,t)}function Iee(e){return function(){this.removeAttribute(e)}}function Lee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zee(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===r?a:a=t(r=s,n)}}function jee(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?a:a=t(r=s,n)}}function $ee(e,t,n){var r,i,a;return function(){var s,u=n(this),c;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=u+"",s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u)))}}function Bee(e,t,n){var r,i,a;return function(){var s,u=n(this),c;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=u+"",s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u)))}}function Uee(e,t){var n=n0(e),r=n==="transform"?bee:Z5;return this.attrTween(e,typeof t=="function"?(n.local?Bee:$ee)(n,r,xE(this,"attr."+e,t)):t==null?(n.local?Lee:Iee)(n):(n.local?jee:zee)(n,r,t))}function Fee(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Hee(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Gee(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Hee(e,a)),n}return i._value=t,i}function qee(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Fee(e,a)),n}return i._value=t,i}function Vee(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=n0(e);return this.tween(n,(r.local?Gee:qee)(r,t))}function Kee(e,t){return function(){wE(this,e).delay=+t.apply(this,arguments)}}function Yee(e,t){return t=+t,function(){wE(this,e).delay=t}}function Wee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kee:Yee)(t,e)):Yi(this.node(),t).delay}function Qee(e,t){return function(){Sa(this,e).duration=+t.apply(this,arguments)}}function Zee(e,t){return t=+t,function(){Sa(this,e).duration=t}}function Xee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Qee:Zee)(t,e)):Yi(this.node(),t).duration}function Jee(e,t){if(typeof t!="function")throw new Error;return function(){Sa(this,e).ease=t}}function ete(e){var t=this._id;return arguments.length?this.each(Jee(t,e)):Yi(this.node(),t).ease}function tte(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Sa(this,e).ease=n}}function nte(e){if(typeof e!="function")throw new Error;return this.each(tte(this._id,e))}function rte(e){typeof e!="function"&&(e=O5(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=[],c,f=0;f<s;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&u.push(c);return new So(r,this._parents,this._name,this._id)}function ite(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=new Array(r),u=0;u<a;++u)for(var c=t[u],f=n[u],h=c.length,p=s[u]=new Array(h),g,v=0;v<h;++v)(g=c[v]||f[v])&&(p[v]=g);for(;u<r;++u)s[u]=t[u];return new So(s,this._parents,this._name,this._id)}function ate(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ote(e,t,n){var r,i,a=ate(t)?wE:Sa;return function(){var s=a(this,e),u=s.on;u!==r&&(i=(r=u).copy()).on(t,n),s.on=i}}function ste(e,t){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(ote(n,e,t))}function lte(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ute(){return this.on("end.remove",lte(this._id))}function cte(e){var t=this._name,n=this._id;typeof e!="function"&&(e=pE(e));for(var r=this._groups,i=r.length,a=new Array(i),s=0;s<i;++s)for(var u=r[s],c=u.length,f=a[s]=new Array(c),h,p,g=0;g<c;++g)(h=u[g])&&(p=e.call(h,h.__data__,g,u))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p,i0(f[g],t,n,g,f,Yi(h,n)));return new So(a,this._parents,t,n)}function fte(e){var t=this._name,n=this._id;typeof e!="function"&&(e=C5(e));for(var r=this._groups,i=r.length,a=[],s=[],u=0;u<i;++u)for(var c=r[u],f=c.length,h,p=0;p<f;++p)if(h=c[p]){for(var g=e.call(h,h.__data__,p,c),v,y=Yi(h,n),b=0,w=g.length;b<w;++b)(v=g[b])&&i0(v,t,n,b,g,y);a.push(g),s.push(h)}return new So(a,s,t,n)}var dte=pp.prototype.constructor;function hte(){return new dte(this._groups,this._parents)}function pte(e,t){var n,r,i;return function(){var a=tf(this,e),s=(this.style.removeProperty(e),tf(this,e));return a===s?null:a===n&&s===r?i:i=t(n=a,r=s)}}function X5(e){return function(){this.style.removeProperty(e)}}function mte(e,t,n){var r,i=n+"",a;return function(){var s=tf(this,e);return s===i?null:s===r?a:a=t(r=s,n)}}function gte(e,t,n){var r,i,a;return function(){var s=tf(this,e),u=n(this),c=u+"";return u==null&&(c=u=(this.style.removeProperty(e),tf(this,e))),s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u))}}function vte(e,t){var n,r,i,a="style."+t,s="end."+a,u;return function(){var c=Sa(this,e),f=c.on,h=c.value[a]==null?u||(u=X5(t)):void 0;(f!==n||i!==h)&&(r=(n=f).copy()).on(s,i=h),c.on=r}}function yte(e,t,n){var r=(e+="")=="transform"?yee:Z5;return t==null?this.styleTween(e,pte(e,r)).on("end.style."+e,X5(e)):typeof t=="function"?this.styleTween(e,gte(e,r,xE(this,"style."+e,t))).each(vte(this._id,e)):this.styleTween(e,mte(e,r,t),n).on("end.style."+e,null)}function bte(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function wte(e,t,n){var r,i;function a(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&bte(e,s,n)),r}return a._value=t,a}function xte(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,wte(e,t,n??""))}function _te(e){return function(){this.textContent=e}}function Ste(e){return function(){var t=e(this);this.textContent=t??""}}function Ete(e){return this.tween("text",typeof e=="function"?Ste(xE(this,"text",e)):_te(e==null?"":e+""))}function Ate(e){return function(t){this.textContent=e.call(this,t)}}function kte(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Ate(i)),t}return r._value=e,r}function Cte(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,kte(e))}function Ote(){for(var e=this._name,t=this._id,n=J5(),r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],u=s.length,c,f=0;f<u;++f)if(c=s[f]){var h=Yi(c,t);i0(c,e,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new So(r,this._parents,e,n)}function Tte(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var u={value:s},c={value:function(){--i===0&&a()}};n.each(function(){var f=Sa(this,r),h=f.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(c)),f.on=t}),i===0&&a()})}var Mte=0;function So(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function J5(){return++Mte}var Xa=pp.prototype;So.prototype={constructor:So,select:cte,selectAll:fte,selectChild:Xa.selectChild,selectChildren:Xa.selectChildren,filter:rte,merge:ite,selection:hte,transition:Ote,call:Xa.call,nodes:Xa.nodes,node:Xa.node,size:Xa.size,empty:Xa.empty,each:Xa.each,on:ste,attr:Uee,attrTween:Vee,style:yte,styleTween:xte,text:Ete,textTween:Cte,remove:ute,tween:Dee,delay:Wee,duration:Xee,ease:ete,easeVarying:nte,end:Tte,[Symbol.iterator]:Xa[Symbol.iterator]};function Pte(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Nte={time:null,delay:0,duration:250,ease:Pte};function Rte(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Dte(e){var t,n;e instanceof So?(t=e._id,e=e._name):(t=J5(),(n=Nte).time=bE(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],u=s.length,c,f=0;f<u;++f)(c=s[f])&&i0(c,e,t,f,s,n||Rte(c,t));return new So(r,this._parents,e,t)}pp.prototype.interrupt=Pee;pp.prototype.transition=Dte;const Pg=e=>()=>e;function Ite(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function co(e,t,n){this.k=e,this.x=t,this.y=n}co.prototype={constructor:co,scale:function(e){return e===1?this:new co(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new co(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var a0=new co(1,0,0);ej.prototype=co.prototype;function ej(e){for(;!e.__zoom;)if(!(e=e.parentNode))return a0;return e.__zoom}function Rw(e){e.stopImmediatePropagation()}function zd(e){e.preventDefault(),e.stopImmediatePropagation()}function Lte(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function zte(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function nN(){return this.__zoom||a0}function jte(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $te(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bte(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function tj(){var e=Lte,t=zte,n=Bte,r=jte,i=$te,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,c=ov,f=t0("start","zoom","end"),h,p,g,v=500,y=150,b=0,w=10;function _(I){I.property("__zoom",nN).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",z).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(I,U,j,G){var q=I.selection?I.selection():I;q.property("__zoom",nN),I!==q?T(I,U,j,G):q.interrupt().each(function(){O(this,arguments).event(G).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},_.scaleBy=function(I,U,j,G){_.scaleTo(I,function(){var q=this.__zoom.k,H=typeof U=="function"?U.apply(this,arguments):U;return q*H},j,G)},_.scaleTo=function(I,U,j,G){_.transform(I,function(){var q=t.apply(this,arguments),H=this.__zoom,V=j==null?S(q):typeof j=="function"?j.apply(this,arguments):j,B=H.invert(V),K=typeof U=="function"?U.apply(this,arguments):U;return n(E(C(H,K),V,B),q,s)},j,G)},_.translateBy=function(I,U,j,G){_.transform(I,function(){return n(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,G)},_.translateTo=function(I,U,j,G,q){_.transform(I,function(){var H=t.apply(this,arguments),V=this.__zoom,B=G==null?S(H):typeof G=="function"?G.apply(this,arguments):G;return n(a0.translate(B[0],B[1]).scale(V.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof j=="function"?-j.apply(this,arguments):-j),H,s)},G,q)};function C(I,U){return U=Math.max(a[0],Math.min(a[1],U)),U===I.k?I:new co(U,I.x,I.y)}function E(I,U,j){var G=U[0]-j[0]*I.k,q=U[1]-j[1]*I.k;return G===I.x&&q===I.y?I:new co(I.k,G,q)}function S(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function T(I,U,j,G){I.on("start.zoom",function(){O(this,arguments).event(G).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(G).end()}).tween("zoom",function(){var q=this,H=arguments,V=O(q,H).event(G),B=t.apply(q,H),K=j==null?S(B):typeof j=="function"?j.apply(q,H):j,X=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),ee=q.__zoom,ce=typeof U=="function"?U.apply(q,H):U,he=c(ee.invert(K).concat(X/ee.k),ce.invert(K).concat(X/ce.k));return function(de){if(de===1)de=ce;else{var ie=he(de),J=X/ie[2];de=new co(J,K[0]-ie[0]*J,K[1]-ie[1]*J)}V.zoom(null,de)}})}function O(I,U,j){return!j&&I.__zooming||new M(I,U)}function M(I,U){this.that=I,this.args=U,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,U),this.taps=0}M.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,U){return this.mouse&&I!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var U=Vr(this.that).datum();f.call(I,this.that,new Ite(I,{sourceEvent:this.sourceEvent,target:_,transform:this.that.__zoom,dispatch:f}),U)}};function P(I,...U){if(!e.apply(this,arguments))return;var j=O(this,U).event(I),G=this.__zoom,q=Math.max(a[0],Math.min(a[1],G.k*Math.pow(2,r.apply(this,arguments)))),H=zi(I);if(j.wheel)(j.mouse[0][0]!==H[0]||j.mouse[0][1]!==H[1])&&(j.mouse[1]=G.invert(j.mouse[0]=H)),clearTimeout(j.wheel);else{if(G.k===q)return;j.mouse=[H,G.invert(H)],uv(this),j.start()}zd(I),j.wheel=setTimeout(V,y),j.zoom("mouse",n(E(C(G,q),j.mouse[0],j.mouse[1]),j.extent,s));function V(){j.wheel=null,j.end()}}function R(I,...U){if(g||!e.apply(this,arguments))return;var j=I.currentTarget,G=O(this,U,!0).event(I),q=Vr(I.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",X,!0),H=zi(I,j),V=I.clientX,B=I.clientY;j5(I.view),Rw(I),G.mouse=[H,this.__zoom.invert(H)],uv(this),G.start();function K(ee){if(zd(ee),!G.moved){var ce=ee.clientX-V,he=ee.clientY-B;G.moved=ce*ce+he*he>b}G.event(ee).zoom("mouse",n(E(G.that.__zoom,G.mouse[0]=zi(ee,j),G.mouse[1]),G.extent,s))}function X(ee){q.on("mousemove.zoom mouseup.zoom",null),$5(ee.view,G.moved),zd(ee),G.event(ee).end()}}function z(I,...U){if(e.apply(this,arguments)){var j=this.__zoom,G=zi(I.changedTouches?I.changedTouches[0]:I,this),q=j.invert(G),H=j.k*(I.shiftKey?.5:2),V=n(E(C(j,H),G,q),t.apply(this,U),s);zd(I),u>0?Vr(this).transition().duration(u).call(T,V,G,I):Vr(this).call(_.transform,V,G,I)}}function D(I,...U){if(e.apply(this,arguments)){var j=I.touches,G=j.length,q=O(this,U,I.changedTouches.length===G).event(I),H,V,B,K;for(Rw(I),V=0;V<G;++V)B=j[V],K=zi(B,this),K=[K,this.__zoom.invert(K),B.identifier],q.touch0?!q.touch1&&q.touch0[2]!==K[2]&&(q.touch1=K,q.taps=0):(q.touch0=K,H=!0,q.taps=1+!!h);h&&(h=clearTimeout(h)),H&&(q.taps<2&&(p=K[0],h=setTimeout(function(){h=null},v)),uv(this),q.start())}}function N(I,...U){if(this.__zooming){var j=O(this,U).event(I),G=I.changedTouches,q=G.length,H,V,B,K;for(zd(I),H=0;H<q;++H)V=G[H],B=zi(V,this),j.touch0&&j.touch0[2]===V.identifier?j.touch0[0]=B:j.touch1&&j.touch1[2]===V.identifier&&(j.touch1[0]=B);if(V=j.that.__zoom,j.touch1){var X=j.touch0[0],ee=j.touch0[1],ce=j.touch1[0],he=j.touch1[1],de=(de=ce[0]-X[0])*de+(de=ce[1]-X[1])*de,ie=(ie=he[0]-ee[0])*ie+(ie=he[1]-ee[1])*ie;V=C(V,Math.sqrt(de/ie)),B=[(X[0]+ce[0])/2,(X[1]+ce[1])/2],K=[(ee[0]+he[0])/2,(ee[1]+he[1])/2]}else if(j.touch0)B=j.touch0[0],K=j.touch0[1];else return;j.zoom("touch",n(E(V,B,K),j.extent,s))}}function $(I,...U){if(this.__zooming){var j=O(this,U).event(I),G=I.changedTouches,q=G.length,H,V;for(Rw(I),g&&clearTimeout(g),g=setTimeout(function(){g=null},v),H=0;H<q;++H)V=G[H],j.touch0&&j.touch0[2]===V.identifier?delete j.touch0:j.touch1&&j.touch1[2]===V.identifier&&delete j.touch1;if(j.touch1&&!j.touch0&&(j.touch0=j.touch1,delete j.touch1),j.touch0)j.touch0[1]=this.__zoom.invert(j.touch0[0]);else if(j.end(),j.taps===2&&(V=zi(V,this),Math.hypot(p[0]-V[0],p[1]-V[1])<w)){var B=Vr(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return _.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:Pg(+I),_):r},_.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Pg(!!I),_):e},_.touchable=function(I){return arguments.length?(i=typeof I=="function"?I:Pg(!!I),_):i},_.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Pg([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),_):t},_.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],_):[a[0],a[1]]},_.translateExtent=function(I){return arguments.length?(s[0][0]=+I[0][0],s[1][0]=+I[1][0],s[0][1]=+I[0][1],s[1][1]=+I[1][1],_):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},_.constrain=function(I){return arguments.length?(n=I,_):n},_.duration=function(I){return arguments.length?(u=+I,_):u},_.interpolate=function(I){return arguments.length?(c=I,_):c},_.on=function(){var I=f.on.apply(f,arguments);return I===f?_:I},_.clickDistance=function(I){return arguments.length?(b=(I=+I)*I,_):Math.sqrt(b)},_.tapDistance=function(I){return arguments.length?(w=+I,_):w},_}const va={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Lh=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nj=["Enter"," ","Escape"],rj={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var rf;(function(e){e.Strict="strict",e.Loose="loose"})(rf||(rf={}));var Kl;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Kl||(Kl={}));var zh;(function(e){e.Partial="partial",e.Full="full"})(zh||(zh={}));const ij={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var _s;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(_s||(_s={}));var Vv;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Vv||(Vv={}));var Ke;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Ke||(Ke={}));const rN={[Ke.Left]:Ke.Right,[Ke.Right]:Ke.Left,[Ke.Top]:Ke.Bottom,[Ke.Bottom]:Ke.Top};function aj(e){return e===null?null:e?"valid":"invalid"}const oj=e=>"id"in e&&"source"in e&&"target"in e,Ute=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),_E=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),gp=(e,t=[0,0])=>{const{width:n,height:r}=Oo(e),i=e.origin??t,a=n*i[0],s=r*i[1];return{x:e.position.x-a,y:e.position.y-s}},Fte=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const a=typeof i=="string";let s=!t.nodeLookup&&!a?i:void 0;t.nodeLookup&&(s=a?t.nodeLookup.get(i):_E(i)?i:t.nodeLookup.get(i.id));const u=s?Kv(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return o0(r,u)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return s0(n)},vp=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(i=>{(t.filter===void 0||t.filter(i))&&(n=o0(n,Kv(i)),r=!0)}),r?s0(n):{x:0,y:0,width:0,height:0}},SE=(e,t,[n,r,i]=[0,0,1],a=!1,s=!1)=>{const u={...bp(t,[n,r,i]),width:t.width/i,height:t.height/i},c=[];for(const f of e.values()){const{measured:h,selectable:p=!0,hidden:g=!1}=f;if(s&&!p||g)continue;const v=h.width??f.width??f.initialWidth??null,y=h.height??f.height??f.initialHeight??null,b=jh(u,of(f)),w=(v??0)*(y??0),_=a&&b>0;(!f.internals.handleBounds||_||b>=w||f.dragging)&&c.push(f)}return c},Hte=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function Gte(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(i=>i.id)):null;return e.forEach(i=>{i.measured.width&&i.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}async function qte({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},s){if(e.size===0)return Promise.resolve(!0);const u=Gte(e,s),c=vp(u),f=EE(c,t,n,(s==null?void 0:s.minZoom)??i,(s==null?void 0:s.maxZoom)??a,(s==null?void 0:s.padding)??.1);return await r.setViewport(f,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)}function sj({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){const s=n.get(e),u=s.parentId?n.get(s.parentId):void 0,{x:c,y:f}=u?u.internals.positionAbsolute:{x:0,y:0},h=s.origin??r;let p=s.extent||i;if(s.extent==="parent"&&!s.expandParent)if(!u)a==null||a("005",va.error005());else{const v=u.measured.width,y=u.measured.height;v&&y&&(p=[[c,f],[c+v,f+y]])}else u&&sf(s.extent)&&(p=[[s.extent[0][0]+c,s.extent[0][1]+f],[s.extent[1][0]+c,s.extent[1][1]+f]]);const g=sf(p)?au(t,p,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&(a==null||a("015",va.error015())),{position:{x:g.x-c+(s.measured.width??0)*h[0],y:g.y-f+(s.measured.height??0)*h[1]},positionAbsolute:g}}async function Vte({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){const a=new Set(e.map(g=>g.id)),s=[];for(const g of n){if(g.deletable===!1)continue;const v=a.has(g.id),y=!v&&g.parentId&&s.find(b=>b.id===g.parentId);(v||y)&&s.push(g)}const u=new Set(t.map(g=>g.id)),c=r.filter(g=>g.deletable!==!1),h=Hte(s,c);for(const g of c)u.has(g.id)&&!h.find(y=>y.id===g.id)&&h.push(g);if(!i)return{edges:h,nodes:s};const p=await i({nodes:s,edges:h});return typeof p=="boolean"?p?{edges:h,nodes:s}:{edges:[],nodes:[]}:p}const af=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),au=(e={x:0,y:0},t,n)=>({x:af(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:af(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function lj(e,t,n){const{width:r,height:i}=Oo(n),{x:a,y:s}=n.internals.positionAbsolute;return au(e,[[a,s],[a+r,s+i]],t)}const iN=(e,t,n)=>e<t?af(Math.abs(e-t),1,t)/t:e>n?-af(Math.abs(e-n),1,t)/t:0,uj=(e,t,n=15,r=40)=>{const i=iN(e.x,r,t.width-r)*n,a=iN(e.y,r,t.height-r)*n;return[i,a]},o0=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),jS=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),s0=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),of=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=_E(e)?e.internals.positionAbsolute:gp(e,t);return{x:n,y:r,width:((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},Kv=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=_E(e)?e.internals.positionAbsolute:gp(e,t);return{x:n,y:r,x2:n+(((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0),y2:r+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},cj=(e,t)=>s0(o0(jS(e),jS(t))),jh=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},aN=e=>Gi(e.width)&&Gi(e.height)&&Gi(e.x)&&Gi(e.y),Gi=e=>!isNaN(e)&&isFinite(e),Kte=(e,t)=>{},yp=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),bp=({x:e,y:t},[n,r,i],a=!1,s=[1,1])=>{const u={x:(e-n)/i,y:(t-r)/i};return a?yp(u,s):u},Yv=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function lc(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Yte(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=lc(e,n),i=lc(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e=="object"){const r=lc(e.top??e.y??0,n),i=lc(e.bottom??e.y??0,n),a=lc(e.left??e.x??0,t),s=lc(e.right??e.x??0,t);return{top:r,right:s,bottom:i,left:a,x:a+s,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Wte(e,t,n,r,i,a){const{x:s,y:u}=Yv(e,[t,n,r]),{x:c,y:f}=Yv({x:e.x+e.width,y:e.y+e.height},[t,n,r]),h=i-c,p=a-f;return{left:Math.floor(s),top:Math.floor(u),right:Math.floor(h),bottom:Math.floor(p)}}const EE=(e,t,n,r,i,a)=>{const s=Yte(a,t,n),u=(t-s.x)/e.width,c=(n-s.y)/e.height,f=Math.min(u,c),h=af(f,r,i),p=e.x+e.width/2,g=e.y+e.height/2,v=t/2-p*h,y=n/2-g*h,b=Wte(e,v,y,h,t,n),w={left:Math.min(b.left-s.left,0),top:Math.min(b.top-s.top,0),right:Math.min(b.right-s.right,0),bottom:Math.min(b.bottom-s.bottom,0)};return{x:v-w.left+w.right,y:y-w.top+w.bottom,zoom:h}},$h=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function sf(e){return e!=null&&e!=="parent"}function Oo(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function fj(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function dj(e,t={width:0,height:0},n,r,i){const a={...e},s=r.get(n);if(s){const u=s.origin||i;a.x+=s.internals.positionAbsolute.x-(t.width??0)*u[0],a.y+=s.internals.positionAbsolute.y-(t.height??0)*u[1]}return a}function oN(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Qte(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}function Zte(e){return{...rj,...e||{}}}function mh(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:a,y:s}=qi(e),u=bp({x:a-((i==null?void 0:i.left)??0),y:s-((i==null?void 0:i.top)??0)},r),{x:c,y:f}=n?yp(u,t):u;return{xSnapped:c,ySnapped:f,...u}}const AE=e=>({width:e.offsetWidth,height:e.offsetHeight}),hj=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},Xte=["INPUT","SELECT","TEXTAREA"];function pj(e){var r,i;const t=((i=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:i[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:Xte.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const mj=e=>"clientX"in e,qi=(e,t)=>{var a,s;const n=mj(e),r=n?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,i=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:i-((t==null?void 0:t.top)??0)}},sN=(e,t,n,r,i)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(s=>{const u=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:i,position:s.getAttribute("data-handlepos"),x:(u.left-n.left)/r,y:(u.top-n.top)/r,...AE(s)}})};function gj({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:s,targetControlY:u}){const c=e*.125+i*.375+s*.375+n*.125,f=t*.125+a*.375+u*.375+r*.125,h=Math.abs(c-e),p=Math.abs(f-t);return[c,f,h,p]}function Ng(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function lN({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case Ke.Left:return[t-Ng(t-r,a),n];case Ke.Right:return[t+Ng(r-t,a),n];case Ke.Top:return[t,n-Ng(n-i,a)];case Ke.Bottom:return[t,n+Ng(i-n,a)]}}function vj({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top,curvature:s=.25}){const[u,c]=lN({pos:n,x1:e,y1:t,x2:r,y2:i,c:s}),[f,h]=lN({pos:a,x1:r,y1:i,x2:e,y2:t,c:s}),[p,g,v,y]=gj({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:u,sourceControlY:c,targetControlX:f,targetControlY:h});return[`M${e},${t} C${u},${c} ${f},${h} ${r},${i}`,p,g,v,y]}function yj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,a=n<e?n+i:n-i,s=Math.abs(r-t)/2,u=r<t?r+s:r-s;return[a,u,i,s]}function Jte({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a="basic"}){if(a==="manual")return r;const s=i&&n?r+1e3:r,u=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return s+u}function ene({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){const a=o0(Kv(e),Kv(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const s={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return jh(s,s0(a))>0}const tne=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,nne=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),rne=(e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||tne;let i;return oj(e)?i={...e}:i={...e,id:r(e)},nne(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function bj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,a,s,u]=yj({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,s,u]}const uN={[Ke.Left]:{x:-1,y:0},[Ke.Right]:{x:1,y:0},[Ke.Top]:{x:0,y:-1},[Ke.Bottom]:{x:0,y:1}},ine=({source:e,sourcePosition:t=Ke.Bottom,target:n})=>t===Ke.Left||t===Ke.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},cN=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function ane({source:e,sourcePosition:t=Ke.Bottom,target:n,targetPosition:r=Ke.Top,center:i,offset:a,stepPosition:s}){const u=uN[t],c=uN[r],f={x:e.x+u.x*a,y:e.y+u.y*a},h={x:n.x+c.x*a,y:n.y+c.y*a},p=ine({source:f,sourcePosition:t,target:h}),g=p.x!==0?"x":"y",v=p[g];let y=[],b,w;const _={x:0,y:0},C={x:0,y:0},[,,E,S]=yj({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[g]*c[g]===-1){g==="x"?(b=i.x??f.x+(h.x-f.x)*s,w=i.y??(f.y+h.y)/2):(b=i.x??(f.x+h.x)/2,w=i.y??f.y+(h.y-f.y)*s);const P=[{x:b,y:f.y},{x:b,y:h.y}],R=[{x:f.x,y:w},{x:h.x,y:w}];u[g]===v?y=g==="x"?P:R:y=g==="x"?R:P}else{const P=[{x:f.x,y:h.y}],R=[{x:h.x,y:f.y}];if(g==="x"?y=u.x===v?R:P:y=u.y===v?P:R,t===r){const I=Math.abs(e[g]-n[g]);if(I<=a){const U=Math.min(a-1,a-I);u[g]===v?_[g]=(f[g]>e[g]?-1:1)*U:C[g]=(h[g]>n[g]?-1:1)*U}}if(t!==r){const I=g==="x"?"y":"x",U=u[g]===c[I],j=f[I]>h[I],G=f[I]<h[I];(u[g]===1&&(!U&&j||U&&G)||u[g]!==1&&(!U&&G||U&&j))&&(y=g==="x"?P:R)}const z={x:f.x+_.x,y:f.y+_.y},D={x:h.x+C.x,y:h.y+C.y},N=Math.max(Math.abs(z.x-y[0].x),Math.abs(D.x-y[0].x)),$=Math.max(Math.abs(z.y-y[0].y),Math.abs(D.y-y[0].y));N>=$?(b=(z.x+D.x)/2,w=y[0].y):(b=y[0].x,w=(z.y+D.y)/2)}const T={x:f.x+_.x,y:f.y+_.y},O={x:h.x+C.x,y:h.y+C.y};return[[e,...T.x!==y[0].x||T.y!==y[0].y?[T]:[],...y,...O.x!==y[y.length-1].x||O.y!==y[y.length-1].y?[O]:[],n],b,w,E,S]}function one(e,t,n,r){const i=Math.min(cN(e,t)/2,cN(t,n)/2,r),{x:a,y:s}=t;if(e.x===a&&a===n.x||e.y===s&&s===n.y)return`L${a} ${s}`;if(e.y===s){const f=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${a+i*f},${s}Q ${a},${s} ${a},${s+i*h}`}const u=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${a},${s+i*c}Q ${a},${s} ${a+i*u},${s}`}function $S({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top,borderRadius:s=5,centerX:u,centerY:c,offset:f=20,stepPosition:h=.5}){const[p,g,v,y,b]=ane({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:u,y:c},offset:f,stepPosition:h});let w=`M${p[0].x} ${p[0].y}`;for(let _=1;_<p.length-1;_++)w+=one(p[_-1],p[_],p[_+1],s);return w+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[w,g,v,y,b]}function fN(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function sne(e){var p;const{sourceNode:t,targetNode:n}=e;if(!fN(t)||!fN(n))return null;const r=t.internals.handleBounds||dN(t.handles),i=n.internals.handleBounds||dN(n.handles),a=hN((r==null?void 0:r.source)??[],e.sourceHandle),s=hN(e.connectionMode===rf.Strict?(i==null?void 0:i.target)??[]:((i==null?void 0:i.target)??[]).concat((i==null?void 0:i.source)??[]),e.targetHandle);if(!a||!s)return(p=e.onError)==null||p.call(e,"008",va.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const u=(a==null?void 0:a.position)||Ke.Bottom,c=(s==null?void 0:s.position)||Ke.Top,f=ou(t,a,u),h=ou(n,s,c);return{sourceX:f.x,sourceY:f.y,targetX:h.x,targetY:h.y,sourcePosition:u,targetPosition:c}}function dN(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function ou(e,t,n=Ke.Left,r=!1){const i=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:u}=t??Oo(e);if(r)return{x:i+s/2,y:a+u/2};switch((t==null?void 0:t.position)??n){case Ke.Top:return{x:i+s/2,y:a};case Ke.Right:return{x:i+s,y:a+u/2};case Ke.Bottom:return{x:i+s/2,y:a+u};case Ke.Left:return{x:i,y:a+u/2}}}function hN(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function BS(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function lne(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const a=new Set;return e.reduce((s,u)=>([u.markerStart||r,u.markerEnd||i].forEach(c=>{if(c&&typeof c=="object"){const f=BS(c,t);a.has(f)||(s.push({id:f,color:c.color||n,...c}),a.add(f))}}),s),[]).sort((s,u)=>s.id.localeCompare(u.id))}const wj=1e3,une=10,kE={nodeOrigin:[0,0],nodeExtent:Lh,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},cne={...kE,checkEquality:!0};function CE(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function fne(e,t,n){const r=CE(kE,n);for(const i of e.values())if(i.parentId)TE(i,e,t,r);else{const a=gp(i,r.nodeOrigin),s=sf(i.extent)?i.extent:r.nodeExtent,u=au(a,s,Oo(i));i.internals.positionAbsolute=u}}function dne(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],r=[];for(const i of e.handles){const a={id:i.id,width:i.width??1,height:i.height??1,nodeId:e.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(a):i.type==="target"&&r.push(a)}return{source:n,target:r}}function OE(e){return e==="manual"}function US(e,t,n,r={}){var h,p;const i=CE(cne,r),a={i:0},s=new Map(t),u=i!=null&&i.elevateNodesOnSelect&&!OE(i.zIndexMode)?wj:0;let c=e.length>0,f=!1;t.clear(),n.clear();for(const g of e){let v=s.get(g.id);if(i.checkEquality&&g===(v==null?void 0:v.internals.userNode))t.set(g.id,v);else{const y=gp(g,i.nodeOrigin),b=sf(g.extent)?g.extent:i.nodeExtent,w=au(y,b,Oo(g));v={...i.defaults,...g,measured:{width:(h=g.measured)==null?void 0:h.width,height:(p=g.measured)==null?void 0:p.height},internals:{positionAbsolute:w,handleBounds:dne(g,v),z:xj(g,u,i.zIndexMode),userNode:g}},t.set(g.id,v)}(v.measured===void 0||v.measured.width===void 0||v.measured.height===void 0)&&!v.hidden&&(c=!1),g.parentId&&TE(v,t,n,r,a),f||(f=g.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:f}}function hne(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function TE(e,t,n,r,i){const{elevateNodesOnSelect:a,nodeOrigin:s,nodeExtent:u,zIndexMode:c}=CE(kE,r),f=e.parentId,h=t.get(f);if(!h){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}hne(e,n),i&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++i.i,h.internals.z=h.internals.z+i.i*une),i&&h.internals.rootParentIndex!==void 0&&(i.i=h.internals.rootParentIndex);const p=a&&!OE(c)?wj:0,{x:g,y:v,z:y}=pne(e,h,s,u,p,c),{positionAbsolute:b}=e.internals,w=g!==b.x||v!==b.y;(w||y!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:g,y:v}:b,z:y}})}function xj(e,t,n){const r=Gi(e.zIndex)?e.zIndex:0;return OE(n)?r:r+(e.selected?t:0)}function pne(e,t,n,r,i,a){const{x:s,y:u}=t.internals.positionAbsolute,c=Oo(e),f=gp(e,n),h=sf(e.extent)?au(f,e.extent,c):f;let p=au({x:s+h.x,y:u+h.y},r,c);e.extent==="parent"&&(p=lj(p,c,t));const g=xj(e,i,a),v=t.internals.z??0;return{x:p.x,y:p.y,z:v>=g?v+1:g}}function ME(e,t,n,r=[0,0]){var s;const i=[],a=new Map;for(const u of e){const c=t.get(u.parentId);if(!c)continue;const f=((s=a.get(u.parentId))==null?void 0:s.expandedRect)??of(c),h=cj(f,u.rect);a.set(u.parentId,{expandedRect:h,parent:c})}return a.size>0&&a.forEach(({expandedRect:u,parent:c},f)=>{var E;const h=c.internals.positionAbsolute,p=Oo(c),g=c.origin??r,v=u.x<h.x?Math.round(Math.abs(h.x-u.x)):0,y=u.y<h.y?Math.round(Math.abs(h.y-u.y)):0,b=Math.max(p.width,Math.round(u.width)),w=Math.max(p.height,Math.round(u.height)),_=(b-p.width)*g[0],C=(w-p.height)*g[1];(v>0||y>0||_||C)&&(i.push({id:f,type:"position",position:{x:c.position.x-v+_,y:c.position.y-y+C}}),(E=n.get(f))==null||E.forEach(S=>{e.some(T=>T.id===S.id)||i.push({id:S.id,type:"position",position:{x:S.position.x+v,y:S.position.y+y}})})),(p.width<u.width||p.height<u.height||v||y)&&i.push({id:f,type:"dimensions",setAttributes:!0,dimensions:{width:b+(v?g[0]*v-_:0),height:w+(y?g[1]*y-C:0)}})}),i}function mne(e,t,n,r,i,a,s){const u=r==null?void 0:r.querySelector(".xyflow__viewport");let c=!1;if(!u)return{changes:[],updatedInternals:c};const f=[],h=window.getComputedStyle(u),{m22:p}=new window.DOMMatrixReadOnly(h.transform),g=[];for(const v of e.values()){const y=t.get(v.id);if(!y)continue;if(y.hidden){t.set(y.id,{...y,internals:{...y.internals,handleBounds:void 0}}),c=!0;continue}const b=AE(v.nodeElement),w=y.measured.width!==b.width||y.measured.height!==b.height;if(!!(b.width&&b.height&&(w||!y.internals.handleBounds||v.force))){const C=v.nodeElement.getBoundingClientRect(),E=sf(y.extent)?y.extent:a;let{positionAbsolute:S}=y.internals;y.parentId&&y.extent==="parent"?S=lj(S,b,t.get(y.parentId)):E&&(S=au(S,E,b));const T={...y,measured:b,internals:{...y.internals,positionAbsolute:S,handleBounds:{source:sN("source",v.nodeElement,C,p,y.id),target:sN("target",v.nodeElement,C,p,y.id)}}};t.set(y.id,T),y.parentId&&TE(T,t,n,{nodeOrigin:i,zIndexMode:s}),c=!0,w&&(f.push({id:y.id,type:"dimensions",dimensions:b}),y.expandParent&&y.parentId&&g.push({id:y.id,parentId:y.parentId,rect:of(T,i)}))}}if(g.length>0){const v=ME(g,t,n,i);f.push(...v)}return{changes:f,updatedInternals:c}}async function gne({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r),u=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(u)}function pN(e,t,n,r,i,a){let s=i;const u=r.get(s)||new Map;r.set(s,u.set(n,t)),s=`${i}-${e}`;const c=r.get(s)||new Map;if(r.set(s,c.set(n,t)),a){s=`${i}-${e}-${a}`;const f=r.get(s)||new Map;r.set(s,f.set(n,t))}}function _j(e,t,n){e.clear(),t.clear();for(const r of n){const{source:i,target:a,sourceHandle:s=null,targetHandle:u=null}=r,c={edgeId:r.id,source:i,target:a,sourceHandle:s,targetHandle:u},f=`${i}-${s}--${a}-${u}`,h=`${a}-${u}--${i}-${s}`;pN("source",c,h,e,i,s),pN("target",c,f,e,a,u),t.set(r.id,r)}}function Sj(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:Sj(n,t):!1}function mN(e,t,n){var i;let r=e;do{if((i=r==null?void 0:r.matches)!=null&&i.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function vne(e,t,n,r){const i=new Map;for(const[a,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!Sj(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const u=e.get(a);u&&i.set(a,{id:a,position:u.position||{x:0,y:0},distance:{x:n.x-u.internals.positionAbsolute.x,y:n.y-u.internals.positionAbsolute.y},extent:u.extent,parentId:u.parentId,origin:u.origin,expandParent:u.expandParent,internals:{positionAbsolute:u.internals.positionAbsolute||{x:0,y:0}},measured:{width:u.measured.width??0,height:u.measured.height??0}})}return i}function Dw({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var s,u,c;const i=[];for(const[f,h]of t){const p=(s=n.get(f))==null?void 0:s.internals.userNode;p&&i.push({...p,position:h.position,dragging:r})}if(!e)return[i[0],i];const a=(u=n.get(e))==null?void 0:u.internals.userNode;return[a?{...a,position:((c=t.get(e))==null?void 0:c.position)||a.position,dragging:r}:i[0],i]}function yne({dragItems:e,snapGrid:t,x:n,y:r}){const i=e.values().next().value;if(!i)return null;const a={x:n-i.distance.x,y:r-i.distance.y},s=yp(a,t);return{x:s.x-a.x,y:s.y-a.y}}function bne({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},s=0,u=new Map,c=!1,f={x:0,y:0},h=null,p=!1,g=null,v=!1,y=!1,b=null;function w({noDragClassName:C,handleSelector:E,domNode:S,isSelectable:T,nodeId:O,nodeClickDistance:M=0}){g=Vr(S);function P({x:N,y:$}){const{nodeLookup:I,nodeExtent:U,snapGrid:j,snapToGrid:G,nodeOrigin:q,onNodeDrag:H,onSelectionDrag:V,onError:B,updateNodePositions:K}=t();a={x:N,y:$};let X=!1;const ee=u.size>1,ce=ee&&U?jS(vp(u)):null,he=ee&&G?yne({dragItems:u,snapGrid:j,x:N,y:$}):null;for(const[de,ie]of u){if(!I.has(de))continue;let J={x:N-ie.distance.x,y:$-ie.distance.y};G&&(J=he?{x:Math.round(J.x+he.x),y:Math.round(J.y+he.y)}:yp(J,j));let pe=null;if(ee&&U&&!ie.extent&&ce){const{positionAbsolute:Ce}=ie.internals,Se=Ce.x-ce.x+U[0][0],Ye=Ce.x+ie.measured.width-ce.x2+U[1][0],Ie=Ce.y-ce.y+U[0][1],ut=Ce.y+ie.measured.height-ce.y2+U[1][1];pe=[[Se,Ie],[Ye,ut]]}const{position:ye,positionAbsolute:te}=sj({nodeId:de,nextPosition:J,nodeLookup:I,nodeExtent:pe||U,nodeOrigin:q,onError:B});X=X||ie.position.x!==ye.x||ie.position.y!==ye.y,ie.position=ye,ie.internals.positionAbsolute=te}if(y=y||X,!!X&&(K(u,!0),b&&(r||H||!O&&V))){const[de,ie]=Dw({nodeId:O,dragItems:u,nodeLookup:I});r==null||r(b,u,de,ie),H==null||H(b,de,ie),O||V==null||V(b,ie)}}async function R(){if(!h)return;const{transform:N,panBy:$,autoPanSpeed:I,autoPanOnNodeDrag:U}=t();if(!U){c=!1,cancelAnimationFrame(s);return}const[j,G]=uj(f,h,I);(j!==0||G!==0)&&(a.x=(a.x??0)-j/N[2],a.y=(a.y??0)-G/N[2],await $({x:j,y:G})&&P(a)),s=requestAnimationFrame(R)}function z(N){var ee;const{nodeLookup:$,multiSelectionActive:I,nodesDraggable:U,transform:j,snapGrid:G,snapToGrid:q,selectNodesOnDrag:H,onNodeDragStart:V,onSelectionDragStart:B,unselectNodesAndEdges:K}=t();p=!0,(!H||!T)&&!I&&O&&((ee=$.get(O))!=null&&ee.selected||K()),T&&H&&O&&(e==null||e(O));const X=mh(N.sourceEvent,{transform:j,snapGrid:G,snapToGrid:q,containerBounds:h});if(a=X,u=vne($,U,X,O),u.size>0&&(n||V||!O&&B)){const[ce,he]=Dw({nodeId:O,dragItems:u,nodeLookup:$});n==null||n(N.sourceEvent,u,ce,he),V==null||V(N.sourceEvent,ce,he),O||B==null||B(N.sourceEvent,he)}}const D=B5().clickDistance(M).on("start",N=>{const{domNode:$,nodeDragThreshold:I,transform:U,snapGrid:j,snapToGrid:G}=t();h=($==null?void 0:$.getBoundingClientRect())||null,v=!1,y=!1,b=N.sourceEvent,I===0&&z(N),a=mh(N.sourceEvent,{transform:U,snapGrid:j,snapToGrid:G,containerBounds:h}),f=qi(N.sourceEvent,h)}).on("drag",N=>{const{autoPanOnNodeDrag:$,transform:I,snapGrid:U,snapToGrid:j,nodeDragThreshold:G,nodeLookup:q}=t(),H=mh(N.sourceEvent,{transform:I,snapGrid:U,snapToGrid:j,containerBounds:h});if(b=N.sourceEvent,(N.sourceEvent.type==="touchmove"&&N.sourceEvent.touches.length>1||O&&!q.has(O))&&(v=!0),!v){if(!c&&$&&p&&(c=!0,R()),!p){const V=qi(N.sourceEvent,h),B=V.x-f.x,K=V.y-f.y;Math.sqrt(B*B+K*K)>G&&z(N)}(a.x!==H.xSnapped||a.y!==H.ySnapped)&&u&&p&&(f=qi(N.sourceEvent,h),P(H))}}).on("end",N=>{if(!(!p||v)&&(c=!1,p=!1,cancelAnimationFrame(s),u.size>0)){const{nodeLookup:$,updateNodePositions:I,onNodeDragStop:U,onSelectionDragStop:j}=t();if(y&&(I(u,!1),y=!1),i||U||!O&&j){const[G,q]=Dw({nodeId:O,dragItems:u,nodeLookup:$,dragging:!1});i==null||i(N.sourceEvent,u,G,q),U==null||U(N.sourceEvent,G,q),O||j==null||j(N.sourceEvent,q)}}}).filter(N=>{const $=N.target;return!N.button&&(!C||!mN($,`.${C}`,S))&&(!E||mN($,E,S))});g.call(D)}function _(){g==null||g.on(".drag",null)}return{update:w,destroy:_}}function wne(e,t,n){const r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())jh(i,of(a))>0&&r.push(a);return r}const xne=250;function _ne(e,t,n,r){var u,c;let i=[],a=1/0;const s=wne(e,n,t+xne);for(const f of s){const h=[...((u=f.internals.handleBounds)==null?void 0:u.source)??[],...((c=f.internals.handleBounds)==null?void 0:c.target)??[]];for(const p of h){if(r.nodeId===p.nodeId&&r.type===p.type&&r.id===p.id)continue;const{x:g,y:v}=ou(f,p,p.position,!0),y=Math.sqrt(Math.pow(g-e.x,2)+Math.pow(v-e.y,2));y>t||(y<a?(i=[{...p,x:g,y:v}],a=y):y===a&&i.push({...p,x:g,y:v}))}}if(!i.length)return null;if(i.length>1){const f=r.type==="source"?"target":"source";return i.find(h=>h.type===f)??i[0]}return i[0]}function Ej(e,t,n,r,i,a=!1){var f,h,p;const s=r.get(e);if(!s)return null;const u=i==="strict"?(f=s.internals.handleBounds)==null?void 0:f[t]:[...((h=s.internals.handleBounds)==null?void 0:h.source)??[],...((p=s.internals.handleBounds)==null?void 0:p.target)??[]],c=(n?u==null?void 0:u.find(g=>g.id===n):u==null?void 0:u[0])??null;return c&&a?{...c,...ou(s,c,c.position,!0)}:c}function Aj(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function Sne(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const kj=()=>!0;function Ene(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:s,domNode:u,nodeLookup:c,lib:f,autoPanOnConnect:h,flowId:p,panBy:g,cancelConnection:v,onConnectStart:y,onConnect:b,onConnectEnd:w,isValidConnection:_=kj,onReconnectEnd:C,updateConnection:E,getTransform:S,getFromHandle:T,autoPanSpeed:O,dragThreshold:M=1,handleDomNode:P}){const R=hj(e.target);let z=0,D;const{x:N,y:$}=qi(e),I=Aj(a,P),U=u==null?void 0:u.getBoundingClientRect();let j=!1;if(!U||!I)return;const G=Ej(i,I,r,c,t);if(!G)return;let q=qi(e,U),H=!1,V=null,B=!1,K=null;function X(){if(!h||!U)return;const[ye,te]=uj(q,U,O);g({x:ye,y:te}),z=requestAnimationFrame(X)}const ee={...G,nodeId:i,type:I,position:G.position},ce=c.get(i);let de={inProgress:!0,isValid:null,from:ou(ce,ee,Ke.Left,!0),fromHandle:ee,fromPosition:ee.position,fromNode:ce,to:q,toHandle:null,toPosition:rN[ee.position],toNode:null,pointer:q};function ie(){j=!0,E(de),y==null||y(e,{nodeId:i,handleId:r,handleType:I})}M===0&&ie();function J(ye){if(!j){const{x:ut,y:jt}=qi(ye),Zt=ut-N,ir=jt-$;if(!(Zt*Zt+ir*ir>M*M))return;ie()}if(!T()||!ee){pe(ye);return}const te=S();q=qi(ye,U),D=_ne(bp(q,te,!1,[1,1]),n,c,ee),H||(X(),H=!0);const Ce=Cj(ye,{handle:D,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:s?"target":"source",isValidConnection:_,doc:R,lib:f,flowId:p,nodeLookup:c});K=Ce.handleDomNode,V=Ce.connection,B=Sne(!!D,Ce.isValid);const Se=c.get(i),Ye=Se?ou(Se,ee,Ke.Left,!0):de.from,Ie={...de,from:Ye,isValid:B,to:Ce.toHandle&&B?Yv({x:Ce.toHandle.x,y:Ce.toHandle.y},te):q,toHandle:Ce.toHandle,toPosition:B&&Ce.toHandle?Ce.toHandle.position:rN[ee.position],toNode:Ce.toHandle?c.get(Ce.toHandle.nodeId):null,pointer:q};E(Ie),de=Ie}function pe(ye){if(!("touches"in ye&&ye.touches.length>0)){if(j){(D||K)&&V&&B&&(b==null||b(V));const{inProgress:te,...Ce}=de,Se={...Ce,toPosition:de.toHandle?de.toPosition:null};w==null||w(ye,Se),a&&(C==null||C(ye,Se))}v(),cancelAnimationFrame(z),H=!1,B=!1,V=null,K=null,R.removeEventListener("mousemove",J),R.removeEventListener("mouseup",pe),R.removeEventListener("touchmove",J),R.removeEventListener("touchend",pe)}}R.addEventListener("mousemove",J),R.addEventListener("mouseup",pe),R.addEventListener("touchmove",J),R.addEventListener("touchend",pe)}function Cj(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:s,lib:u,flowId:c,isValidConnection:f=kj,nodeLookup:h}){const p=a==="target",g=t?s.querySelector(`.${u}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:v,y}=qi(e),b=s.elementFromPoint(v,y),w=b!=null&&b.classList.contains(`${u}-flow__handle`)?b:g,_={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=Aj(void 0,w),E=w.getAttribute("data-nodeid"),S=w.getAttribute("data-handleid"),T=w.classList.contains("connectable"),O=w.classList.contains("connectableend");if(!E||!C)return _;const M={source:p?E:r,sourceHandle:p?S:i,target:p?r:E,targetHandle:p?i:S};_.connection=M;const R=T&&O&&(n===rf.Strict?p&&C==="source"||!p&&C==="target":E!==r||S!==i);_.isValid=R&&f(M),_.toHandle=Ej(E,C,S,h,n,!0)}return _}const FS={onPointerDown:Ene,isValid:Cj};function Ane({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const i=Vr(e);function a({translateExtent:u,width:c,height:f,zoomStep:h=1,pannable:p=!0,zoomable:g=!0,inversePan:v=!1}){const y=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const S=n(),T=E.sourceEvent.ctrlKey&&$h()?10:1,O=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*h,M=S[2]*Math.pow(2,O*T);t.scaleTo(M)};let b=[0,0];const w=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(b=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},_=E=>{const S=n();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const T=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],O=[T[0]-b[0],T[1]-b[1]];b=T;const M=r()*Math.max(S[2],Math.log(S[2]))*(v?-1:1),P={x:S[0]-O[0]*M,y:S[1]-O[1]*M},R=[[0,0],[c,f]];t.setViewportConstrained({x:P.x,y:P.y,zoom:S[2]},R,u)},C=tj().on("start",w).on("zoom",p?_:null).on("zoom.wheel",g?y:null);i.call(C,{})}function s(){i.on("zoom",null)}return{update:a,destroy:s,pointer:zi}}const l0=e=>({x:e.x,y:e.y,zoom:e.k}),Iw=({x:e,y:t,zoom:n})=>a0.translate(e,t).scale(n),Sc=(e,t)=>e.target.closest(`.${t}`),Oj=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),kne=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Lw=(e,t=0,n=kne,r=()=>{})=>{const i=typeof t=="number"&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},Tj=e=>{const t=e.ctrlKey&&$h()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function Cne({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:s,onPanZoomStart:u,onPanZoom:c,onPanZoomEnd:f}){return h=>{if(Sc(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(h.ctrlKey&&s){const w=zi(h),_=Tj(h),C=p*Math.pow(2,_);r.scaleTo(n,C,w,h);return}const g=h.deltaMode===1?20:1;let v=i===Kl.Vertical?0:h.deltaX*g,y=i===Kl.Horizontal?0:h.deltaY*g;!$h()&&h.shiftKey&&i!==Kl.Vertical&&(v=h.deltaY*g,y=0),r.translateBy(n,-(v/p)*a,-(y/p)*a,{internal:!0});const b=l0(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,b),e.panScrollTimeout=setTimeout(()=>{f==null||f(h,b),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,u==null||u(h,b))}}function One({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){const a=r.type==="wheel",s=!t&&a&&!r.ctrlKey,u=Sc(r,e);if(r.ctrlKey&&a&&u&&r.preventDefault(),s||u)return null;r.preventDefault(),n.call(this,r,i)}}function Tne({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var a,s,u;if((a=r.sourceEvent)!=null&&a.internal)return;const i=l0(r.transform);e.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=i,((u=r.sourceEvent)==null?void 0:u.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,i))}}function Mne({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{var s,u;e.usedRightMouseButton=!!(n&&Oj(t,e.mouseButton??0)),(s=a.sourceEvent)!=null&&s.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!((u=a.sourceEvent)!=null&&u.internal)&&(i==null||i(a.sourceEvent,l0(a.transform)))}}function Pne({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return s=>{var u;if(!((u=s.sourceEvent)!=null&&u.internal)&&(e.isZoomingOrPanning=!1,a&&Oj(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&a(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){const c=l0(s.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i==null||i(s.sourceEvent,c)},n?150:0)}}}function Nne({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:a,userSelectionActive:s,noWheelClassName:u,noPanClassName:c,lib:f,connectionInProgress:h}){return p=>{var w;const g=e||t,v=n&&p.ctrlKey,y=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Sc(p,`${f}-flow__node`)||Sc(p,`${f}-flow__edge`)))return!0;if(!r&&!g&&!i&&!a&&!n||s||h&&!y||Sc(p,u)&&y||Sc(p,c)&&(!y||i&&y&&!e)||!n&&p.ctrlKey&&y)return!1;if(!n&&p.type==="touchstart"&&((w=p.touches)==null?void 0:w.length)>1)return p.preventDefault(),!1;if(!g&&!i&&!v&&y||!r&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(r)&&!r.includes(p.button)&&p.type==="mousedown")return!1;const b=Array.isArray(r)&&r.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||y)&&b}}function Rne({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:u,onDraggingChange:c}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=tj().scaleExtent([t,n]).translateExtent(r),g=Vr(e).call(p);C({x:i.x,y:i.y,zoom:af(i.zoom,t,n)},[[0,0],[h.width,h.height]],r);const v=g.on("wheel.zoom"),y=g.on("dblclick.zoom");p.wheelDelta(Tj);function b(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?po:ov).transform(Lw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function w({noWheelClassName:D,noPanClassName:N,onPaneContextMenu:$,userSelectionActive:I,panOnScroll:U,panOnDrag:j,panOnScrollMode:G,panOnScrollSpeed:q,preventScrolling:H,zoomOnPinch:V,zoomOnScroll:B,zoomOnDoubleClick:K,zoomActivationKeyPressed:X,lib:ee,onTransformChange:ce,connectionInProgress:he,paneClickDistance:de,selectionOnDrag:ie}){I&&!f.isZoomingOrPanning&&_();const J=U&&!X&&!I;p.clickDistance(ie?1/0:!Gi(de)||de<0?0:de);const pe=J?Cne({zoomPanValues:f,noWheelClassName:D,d3Selection:g,d3Zoom:p,panOnScrollMode:G,panOnScrollSpeed:q,zoomOnPinch:V,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:u}):One({noWheelClassName:D,preventScrolling:H,d3ZoomHandler:v});if(g.on("wheel.zoom",pe,{passive:!1}),!I){const te=Tne({zoomPanValues:f,onDraggingChange:c,onPanZoomStart:s});p.on("start",te);const Ce=Mne({zoomPanValues:f,panOnDrag:j,onPaneContextMenu:!!$,onPanZoom:a,onTransformChange:ce});p.on("zoom",Ce);const Se=Pne({zoomPanValues:f,panOnDrag:j,panOnScroll:U,onPaneContextMenu:$,onPanZoomEnd:u,onDraggingChange:c});p.on("end",Se)}const ye=Nne({zoomActivationKeyPressed:X,panOnDrag:j,zoomOnScroll:B,panOnScroll:U,zoomOnDoubleClick:K,zoomOnPinch:V,userSelectionActive:I,noPanClassName:N,noWheelClassName:D,lib:ee,connectionInProgress:he});p.filter(ye),K?g.on("dblclick.zoom",y):g.on("dblclick.zoom",null)}function _(){p.on("zoom",null)}async function C(D,N,$){const I=Iw(D),U=p==null?void 0:p.constrain()(I,N,$);return U&&await b(U),new Promise(j=>j(U))}async function E(D,N){const $=Iw(D);return await b($,N),new Promise(I=>I($))}function S(D){if(g){const N=Iw(D),$=g.property("__zoom");($.k!==D.zoom||$.x!==D.x||$.y!==D.y)&&(p==null||p.transform(g,N,null,{sync:!0}))}}function T(){const D=g?ej(g.node()):{x:0,y:0,k:1};return{x:D.x,y:D.y,zoom:D.k}}function O(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?po:ov).scaleTo(Lw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function M(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?po:ov).scaleBy(Lw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function P(D){p==null||p.scaleExtent(D)}function R(D){p==null||p.translateExtent(D)}function z(D){const N=!Gi(D)||D<0?0:D;p==null||p.clickDistance(N)}return{update:w,destroy:_,setViewport:E,setViewportConstrained:C,getViewport:T,scaleTo:O,scaleBy:M,setScaleExtent:P,setTranslateExtent:R,syncViewport:S,setClickDistance:z}}var lf;(function(e){e.Line="line",e.Handle="handle"})(lf||(lf={}));function Dne({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){const s=e-t,u=n-r,c=[s>0?1:s<0?-1:0,u>0?1:u<0?-1:0];return s&&i&&(c[0]=c[0]*-1),u&&a&&(c[1]=c[1]*-1),c}function gN(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),i=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:i}}function hs(e,t){return Math.max(0,t-e)}function ps(e,t){return Math.max(0,e-t)}function Rg(e,t,n){return Math.max(0,t-e,e-n)}function vN(e,t){return e?!t:t}function Ine(e,t,n,r,i,a,s,u){let{affectsX:c,affectsY:f}=t;const{isHorizontal:h,isVertical:p}=t,g=h&&p,{xSnapped:v,ySnapped:y}=n,{minWidth:b,maxWidth:w,minHeight:_,maxHeight:C}=r,{x:E,y:S,width:T,height:O,aspectRatio:M}=e;let P=Math.floor(h?v-e.pointerX:0),R=Math.floor(p?y-e.pointerY:0);const z=T+(c?-P:P),D=O+(f?-R:R),N=-a[0]*T,$=-a[1]*O;let I=Rg(z,b,w),U=Rg(D,_,C);if(s){let q=0,H=0;c&&P<0?q=hs(E+P+N,s[0][0]):!c&&P>0&&(q=ps(E+z+N,s[1][0])),f&&R<0?H=hs(S+R+$,s[0][1]):!f&&R>0&&(H=ps(S+D+$,s[1][1])),I=Math.max(I,q),U=Math.max(U,H)}if(u){let q=0,H=0;c&&P>0?q=ps(E+P,u[0][0]):!c&&P<0&&(q=hs(E+z,u[1][0])),f&&R>0?H=ps(S+R,u[0][1]):!f&&R<0&&(H=hs(S+D,u[1][1])),I=Math.max(I,q),U=Math.max(U,H)}if(i){if(h){const q=Rg(z/M,_,C)*M;if(I=Math.max(I,q),s){let H=0;!c&&!f||c&&!f&&g?H=ps(S+$+z/M,s[1][1])*M:H=hs(S+$+(c?P:-P)/M,s[0][1])*M,I=Math.max(I,H)}if(u){let H=0;!c&&!f||c&&!f&&g?H=hs(S+z/M,u[1][1])*M:H=ps(S+(c?P:-P)/M,u[0][1])*M,I=Math.max(I,H)}}if(p){const q=Rg(D*M,b,w)/M;if(U=Math.max(U,q),s){let H=0;!c&&!f||f&&!c&&g?H=ps(E+D*M+N,s[1][0])/M:H=hs(E+(f?R:-R)*M+N,s[0][0])/M,U=Math.max(U,H)}if(u){let H=0;!c&&!f||f&&!c&&g?H=hs(E+D*M,u[1][0])/M:H=ps(E+(f?R:-R)*M,u[0][0])/M,U=Math.max(U,H)}}}R=R+(R<0?U:-U),P=P+(P<0?I:-I),i&&(g?z>D*M?R=(vN(c,f)?-P:P)/M:P=(vN(c,f)?-R:R)*M:h?(R=P/M,f=c):(P=R*M,c=f));const j=c?E+P:E,G=f?S+R:S;return{width:T+(c?-P:P),height:O+(f?-R:R),x:a[0]*P*(c?-1:1)+j,y:a[1]*R*(f?-1:1)+G}}const Mj={width:0,height:0,x:0,y:0},Lne={...Mj,pointerX:0,pointerY:0,aspectRatio:1};function zne(e){return[[0,0],[e.measured.width,e.measured.height]]}function jne(e,t,n){const r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,s=e.measured.height??0,u=n[0]*a,c=n[1]*s;return[[r-u,i-c],[r+a-u,i+s-c]]}function $ne({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){const a=Vr(e);let s={controlDirection:gN("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:f,boundaries:h,keepAspectRatio:p,resizeDirection:g,onResizeStart:v,onResize:y,onResizeEnd:b,shouldResize:w}){let _={...Mj},C={...Lne};s={boundaries:h,resizeDirection:g,keepAspectRatio:p,controlDirection:gN(f)};let E,S=null,T=[],O,M,P,R=!1;const z=B5().on("start",D=>{const{nodeLookup:N,transform:$,snapGrid:I,snapToGrid:U,nodeOrigin:j,paneDomNode:G}=n();if(E=N.get(t),!E)return;S=(G==null?void 0:G.getBoundingClientRect())??null;const{xSnapped:q,ySnapped:H}=mh(D.sourceEvent,{transform:$,snapGrid:I,snapToGrid:U,containerBounds:S});_={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={..._,pointerX:q,pointerY:H,aspectRatio:_.width/_.height},O=void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(O=N.get(E.parentId),M=O&&E.extent==="parent"?zne(O):void 0),T=[],P=void 0;for(const[V,B]of N)if(B.parentId===t&&(T.push({id:V,position:{...B.position},extent:B.extent}),B.extent==="parent"||B.expandParent)){const K=jne(B,E,B.origin??j);P?P=[[Math.min(K[0][0],P[0][0]),Math.min(K[0][1],P[0][1])],[Math.max(K[1][0],P[1][0]),Math.max(K[1][1],P[1][1])]]:P=K}v==null||v(D,{..._})}).on("drag",D=>{const{transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U}=n(),j=mh(D.sourceEvent,{transform:N,snapGrid:$,snapToGrid:I,containerBounds:S}),G=[];if(!E)return;const{x:q,y:H,width:V,height:B}=_,K={},X=E.origin??U,{width:ee,height:ce,x:he,y:de}=Ine(C,s.controlDirection,j,s.boundaries,s.keepAspectRatio,X,M,P),ie=ee!==V,J=ce!==B,pe=he!==q&&ie,ye=de!==H&&J;if(!pe&&!ye&&!ie&&!J)return;if((pe||ye||X[0]===1||X[1]===1)&&(K.x=pe?he:_.x,K.y=ye?de:_.y,_.x=K.x,_.y=K.y,T.length>0)){const Ye=he-q,Ie=de-H;for(const ut of T)ut.position={x:ut.position.x-Ye+X[0]*(ee-V),y:ut.position.y-Ie+X[1]*(ce-B)},G.push(ut)}if((ie||J)&&(K.width=ie&&(!s.resizeDirection||s.resizeDirection==="horizontal")?ee:_.width,K.height=J&&(!s.resizeDirection||s.resizeDirection==="vertical")?ce:_.height,_.width=K.width,_.height=K.height),O&&E.expandParent){const Ye=X[0]*(K.width??0);K.x&&K.x<Ye&&(_.x=Ye,C.x=C.x-(K.x-Ye));const Ie=X[1]*(K.height??0);K.y&&K.y<Ie&&(_.y=Ie,C.y=C.y-(K.y-Ie))}const te=Dne({width:_.width,prevWidth:V,height:_.height,prevHeight:B,affectsX:s.controlDirection.affectsX,affectsY:s.controlDirection.affectsY}),Ce={..._,direction:te};(w==null?void 0:w(D,Ce))!==!1&&(R=!0,y==null||y(D,Ce),r(K,G))}).on("end",D=>{R&&(b==null||b(D,{..._}),i==null||i({..._}),R=!1)});a.call(z)}function c(){a.on(".drag",null)}return{update:u,destroy:c}}var zw={exports:{}},jw={},$w={exports:{}},Bw={};/**
|
|
864
|
+
* @license React
|
|
865
|
+
* use-sync-external-store-shim.production.js
|
|
866
|
+
*
|
|
867
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
868
|
+
*
|
|
869
|
+
* This source code is licensed under the MIT license found in the
|
|
870
|
+
* LICENSE file in the root directory of this source tree.
|
|
871
|
+
*/var yN;function Bne(){if(yN)return Bw;yN=1;var e=vf();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(p,g){var v=g(),y=r({inst:{value:v,getSnapshot:g}}),b=y[0].inst,w=y[1];return a(function(){b.value=v,b.getSnapshot=g,c(b)&&w({inst:b})},[p,v,g]),i(function(){return c(b)&&w({inst:b}),p(function(){c(b)&&w({inst:b})})},[p]),s(v),v}function c(p){var g=p.getSnapshot;p=p.value;try{var v=g();return!n(p,v)}catch{return!0}}function f(p,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Bw.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Bw}var bN;function Une(){return bN||(bN=1,$w.exports=Bne()),$w.exports}/**
|
|
872
|
+
* @license React
|
|
873
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
874
|
+
*
|
|
875
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
876
|
+
*
|
|
877
|
+
* This source code is licensed under the MIT license found in the
|
|
878
|
+
* LICENSE file in the root directory of this source tree.
|
|
879
|
+
*/var wN;function Fne(){if(wN)return jw;wN=1;var e=vf(),t=Une();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,c=e.useDebugValue;return jw.useSyncExternalStoreWithSelector=function(f,h,p,g,v){var y=a(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=u(function(){function _(O){if(!C){if(C=!0,E=O,O=g(O),v!==void 0&&b.hasValue){var M=b.value;if(v(M,O))return S=M}return S=O}if(M=S,r(E,O))return M;var P=g(O);return v!==void 0&&v(M,P)?(E=O,M):(E=O,S=P)}var C=!1,E,S,T=p===void 0?null:p;return[function(){return _(h())},T===null?void 0:function(){return _(T())}]},[h,p,g,v]);var w=i(f,y[0],y[1]);return s(function(){b.hasValue=!0,b.value=w},[w]),c(w),w},jw}var xN;function Hne(){return xN||(xN=1,zw.exports=Fne()),zw.exports}var Pj=Hne();const Gne=ni(Pj),qne={},_N=e=>{let t;const n=new Set,r=(h,p)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const v=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,v))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(qne?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},f=t=e(r,i,c);return c},Vne=e=>e?_N(e):_N,{useDebugValue:Kne}=cn,{useSyncExternalStoreWithSelector:Yne}=Gne,Wne=e=>e;function Nj(e,t=Wne,n){const r=Yne(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Kne(r),r}const SN=(e,t)=>{const n=Vne(e),r=(i,a=t)=>Nj(n,i,a);return Object.assign(r,n),r},Qne=(e,t)=>e?SN(e,t):SN;function Kt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const u0=k.createContext(null),Zne=u0.Provider,Rj=va.error001();function gt(e,t){const n=k.useContext(u0);if(n===null)throw new Error(Rj);return Nj(n,e,t)}function Yt(){const e=k.useContext(u0);if(e===null)throw new Error(Rj);return k.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const EN={display:"none"},Xne={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Dj="react-flow__node-desc",Ij="react-flow__edge-desc",Jne="react-flow__aria-live",ere=e=>e.ariaLiveMessage,tre=e=>e.ariaLabelConfig;function nre({rfId:e}){const t=gt(ere);return ge.jsx("div",{id:`${Jne}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Xne,children:t})}function rre({rfId:e,disableKeyboardA11y:t}){const n=gt(tre);return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{id:`${Dj}-${e}`,style:EN,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),ge.jsx("div",{id:`${Ij}-${e}`,style:EN,children:n["edge.a11yDescription.default"]}),!t&&ge.jsx(nre,{rfId:e})]})}const c0=k.forwardRef(({position:e="top-left",children:t,className:n,style:r,...i},a)=>{const s=`${e}`.split("-");return ge.jsx("div",{className:_n(["react-flow__panel",n,...s]),style:r,ref:a,...i,children:t})});c0.displayName="Panel";function ire({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:ge.jsx(c0,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:ge.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const are=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},Dg=e=>e.id;function ore(e,t){return Kt(e.selectedNodes.map(Dg),t.selectedNodes.map(Dg))&&Kt(e.selectedEdges.map(Dg),t.selectedEdges.map(Dg))}function sre({onSelectionChange:e}){const t=Yt(),{selectedNodes:n,selectedEdges:r}=gt(are,ore);return k.useEffect(()=>{const i={nodes:n,edges:r};e==null||e(i),t.getState().onSelectionChangeHandlers.forEach(a=>a(i))},[n,r,e]),null}const lre=e=>!!e.onSelectionChangeHandlers;function ure({onSelectionChange:e}){const t=gt(lre);return e||t?ge.jsx(sre,{onSelectionChange:e}):null}const HS=typeof window<"u"?k.useLayoutEffect:k.useEffect,Lj=[0,0],cre={x:0,y:0,zoom:1},fre=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],AN=[...fre,"rfId"],dre=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),kN={translateExtent:Lh,nodeOrigin:Lj,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function hre(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:s,reset:u,setDefaultNodesAndEdges:c}=gt(dre,Kt),f=Yt();HS(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=kN,u()}),[]);const h=k.useRef(kN);return HS(()=>{for(const p of AN){const g=e[p],v=h.current[p];g!==v&&(typeof e[p]>"u"||(p==="nodes"?t(g):p==="edges"?n(g):p==="minZoom"?r(g):p==="maxZoom"?i(g):p==="translateExtent"?a(g):p==="nodeExtent"?s(g):p==="ariaLabelConfig"?f.setState({ariaLabelConfig:Zte(g)}):p==="fitView"?f.setState({fitViewQueued:g}):p==="fitViewOptions"?f.setState({fitViewOptions:g}):f.setState({[p]:g})))}h.current=e},AN.map(p=>e[p])),null}function CN(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function pre(e){var r;const[t,n]=k.useState(e==="system"?null:e);return k.useEffect(()=>{if(e!=="system"){n(e);return}const i=CN(),a=()=>n(i!=null&&i.matches?"dark":"light");return a(),i==null||i.addEventListener("change",a),()=>{i==null||i.removeEventListener("change",a)}},[e]),t!==null?t:(r=CN())!=null&&r.matches?"dark":"light"}const ON=typeof document<"u"?document:null;function Bh(e=null,t={target:ON,actInsideInputWithModifier:!0}){const[n,r]=k.useState(!1),i=k.useRef(!1),a=k.useRef(new Set([])),[s,u]=k.useMemo(()=>{if(e!==null){const f=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
|
|
880
|
+
`).replace(`
|
|
881
|
+
|
|
882
|
+
`,`
|
|
883
|
+
+`).split(`
|
|
884
|
+
`)),h=f.reduce((p,g)=>p.concat(...g),[]);return[f,h]}return[[],[]]},[e]);return k.useEffect(()=>{const c=(t==null?void 0:t.target)??ON,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const h=v=>{var w,_;if(i.current=v.ctrlKey||v.metaKey||v.shiftKey||v.altKey,(!i.current||i.current&&!f)&&pj(v))return!1;const b=MN(v.code,u);if(a.current.add(v[b]),TN(s,a.current,!1)){const C=((_=(w=v.composedPath)==null?void 0:w.call(v))==null?void 0:_[0])||v.target,E=(C==null?void 0:C.nodeName)==="BUTTON"||(C==null?void 0:C.nodeName)==="A";t.preventDefault!==!1&&(i.current||!E)&&v.preventDefault(),r(!0)}},p=v=>{const y=MN(v.code,u);TN(s,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(v[y]),v.key==="Meta"&&a.current.clear(),i.current=!1},g=()=>{a.current.clear(),r(!1)};return c==null||c.addEventListener("keydown",h),c==null||c.addEventListener("keyup",p),window.addEventListener("blur",g),window.addEventListener("contextmenu",g),()=>{c==null||c.removeEventListener("keydown",h),c==null||c.removeEventListener("keyup",p),window.removeEventListener("blur",g),window.removeEventListener("contextmenu",g)}}},[e,r]),n}function TN(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function MN(e,t){return t.includes(e)?"code":"key"}const mre=()=>{const e=Yt();return k.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,i,a],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??a},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:i,minZoom:a,maxZoom:s,panZoom:u}=e.getState(),c=EE(t,r,i,a,s,(n==null?void 0:n.padding)??.1);return u?(await u.setViewport(c,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:i,snapToGrid:a,domNode:s}=e.getState();if(!s)return t;const{x:u,y:c}=s.getBoundingClientRect(),f={x:t.x-u,y:t.y-c},h=n.snapGrid??i,p=n.snapToGrid??a;return bp(f,r,p,h)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:i,y:a}=r.getBoundingClientRect(),s=Yv(t,n);return{x:s.x+i,y:s.y+a}}}),[])};function zj(e,t){const n=[],r=new Map,i=[];for(const a of e)if(a.type==="add"){i.push(a);continue}else if(a.type==="remove"||a.type==="replace")r.set(a.id,[a]);else{const s=r.get(a.id);s?s.push(a):r.set(a.id,[a])}for(const a of t){const s=r.get(a.id);if(!s){n.push(a);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const u={...a};for(const c of s)gre(c,u);n.push(u)}return i.length&&i.forEach(a=>{a.index!==void 0?n.splice(a.index,0,{...a.item}):n.push({...a.item})}),n}function gre(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function vre(e,t){return zj(e,t)}function yre(e,t){return zj(e,t)}function Al(e,t){return{id:e,type:"select",selected:t}}function Ec(e,t=new Set,n=!1){const r=[];for(const[i,a]of e){const s=t.has(i);!(a.selected===void 0&&!s)&&a.selected!==s&&(n&&(a.selected=s),r.push(Al(a.id,s)))}return r}function PN({items:e=[],lookup:t}){var i;const n=[],r=new Map(e.map(a=>[a.id,a]));for(const[a,s]of e.entries()){const u=t.get(s.id),c=((i=u==null?void 0:u.internals)==null?void 0:i.userNode)??u;c!==void 0&&c!==s&&n.push({id:s.id,item:s,type:"replace"}),c===void 0&&n.push({item:s,type:"add",index:a})}for(const[a]of t)r.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function NN(e){return{id:e.id,type:"remove"}}const RN=e=>Ute(e),bre=e=>oj(e);function jj(e){return k.forwardRef(e)}function DN(e){const[t,n]=k.useState(BigInt(0)),[r]=k.useState(()=>wre(()=>n(i=>i+BigInt(1))));return HS(()=>{const i=r.get();i.length&&(e(i),r.reset())},[t]),r}function wre(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const $j=k.createContext(null);function xre({children:e}){const t=Yt(),n=k.useCallback(u=>{const{nodes:c=[],setNodes:f,hasDefaultNodes:h,onNodesChange:p,nodeLookup:g,fitViewQueued:v,onNodesChangeMiddlewareMap:y}=t.getState();let b=c;for(const _ of u)b=typeof _=="function"?_(b):_;let w=PN({items:b,lookup:g});for(const _ of y.values())w=_(w);h&&f(b),w.length>0?p==null||p(w):v&&window.requestAnimationFrame(()=>{const{fitViewQueued:_,nodes:C,setNodes:E}=t.getState();_&&E(C)})},[]),r=DN(n),i=k.useCallback(u=>{const{edges:c=[],setEdges:f,hasDefaultEdges:h,onEdgesChange:p,edgeLookup:g}=t.getState();let v=c;for(const y of u)v=typeof y=="function"?y(v):y;h?f(v):p&&p(PN({items:v,lookup:g}))},[]),a=DN(i),s=k.useMemo(()=>({nodeQueue:r,edgeQueue:a}),[]);return ge.jsx($j.Provider,{value:s,children:e})}function _re(){const e=k.useContext($j);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const Sre=e=>!!e.panZoom;function PE(){const e=mre(),t=Yt(),n=_re(),r=gt(Sre),i=k.useMemo(()=>{const a=p=>t.getState().nodeLookup.get(p),s=p=>{n.nodeQueue.push(p)},u=p=>{n.edgeQueue.push(p)},c=p=>{var _,C;const{nodeLookup:g,nodeOrigin:v}=t.getState(),y=RN(p)?p:g.get(p.id),b=y.parentId?dj(y.position,y.measured,y.parentId,g,v):y.position,w={...y,position:b,width:((_=y.measured)==null?void 0:_.width)??y.width,height:((C=y.measured)==null?void 0:C.height)??y.height};return of(w)},f=(p,g,v={replace:!1})=>{s(y=>y.map(b=>{if(b.id===p){const w=typeof g=="function"?g(b):g;return v.replace&&RN(w)?w:{...b,...w}}return b}))},h=(p,g,v={replace:!1})=>{u(y=>y.map(b=>{if(b.id===p){const w=typeof g=="function"?g(b):g;return v.replace&&bre(w)?w:{...b,...w}}return b}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var g;return(g=a(p))==null?void 0:g.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(g=>({...g}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:s,setEdges:u,addNodes:p=>{const g=Array.isArray(p)?p:[p];n.nodeQueue.push(v=>[...v,...g])},addEdges:p=>{const g=Array.isArray(p)?p:[p];n.edgeQueue.push(v=>[...v,...g])},toObject:()=>{const{nodes:p=[],edges:g=[],transform:v}=t.getState(),[y,b,w]=v;return{nodes:p.map(_=>({..._})),edges:g.map(_=>({..._})),viewport:{x:y,y:b,zoom:w}}},deleteElements:async({nodes:p=[],edges:g=[]})=>{const{nodes:v,edges:y,onNodesDelete:b,onEdgesDelete:w,triggerNodeChanges:_,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:S}=t.getState(),{nodes:T,edges:O}=await Vte({nodesToRemove:p,edgesToRemove:g,nodes:v,edges:y,onBeforeDelete:S}),M=O.length>0,P=T.length>0;if(M){const R=O.map(NN);w==null||w(O),C(R)}if(P){const R=T.map(NN);b==null||b(T),_(R)}return(P||M)&&(E==null||E({nodes:T,edges:O})),{deletedNodes:T,deletedEdges:O}},getIntersectingNodes:(p,g=!0,v)=>{const y=aN(p),b=y?p:c(p),w=v!==void 0;return b?(v||t.getState().nodes).filter(_=>{const C=t.getState().nodeLookup.get(_.id);if(C&&!y&&(_.id===p.id||!C.internals.positionAbsolute))return!1;const E=of(w?_:C),S=jh(E,b);return g&&S>0||S>=E.width*E.height||S>=b.width*b.height}):[]},isNodeIntersecting:(p,g,v=!0)=>{const b=aN(p)?p:c(p);if(!b)return!1;const w=jh(b,g);return v&&w>0||w>=g.width*g.height||w>=b.width*b.height},updateNode:f,updateNodeData:(p,g,v={replace:!1})=>{f(p,y=>{const b=typeof g=="function"?g(y):g;return v.replace?{...y,data:b}:{...y,data:{...y.data,...b}}},v)},updateEdge:h,updateEdgeData:(p,g,v={replace:!1})=>{h(p,y=>{const b=typeof g=="function"?g(y):g;return v.replace?{...y,data:b}:{...y,data:{...y.data,...b}}},v)},getNodesBounds:p=>{const{nodeLookup:g,nodeOrigin:v}=t.getState();return Fte(p,{nodeLookup:g,nodeOrigin:v})},getHandleConnections:({type:p,id:g,nodeId:v})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${v}-${p}${g?`-${g}`:""}`))==null?void 0:y.values())??[])},getNodeConnections:({type:p,handleId:g,nodeId:v})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${v}${p?g?`-${p}-${g}`:`-${p}`:""}`))==null?void 0:y.values())??[])},fitView:async p=>{const g=t.getState().fitViewResolver??Qte();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:g}),n.nodeQueue.push(v=>[...v]),g.promise}}},[]);return k.useMemo(()=>({...i,...e,viewportInitialized:r}),[r])}const IN=e=>e.selected,Ere=typeof window<"u"?window:void 0;function Are({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Yt(),{deleteElements:r}=PE(),i=Bh(e,{actInsideInputWithModifier:!1}),a=Bh(t,{target:Ere});k.useEffect(()=>{if(i){const{edges:s,nodes:u}=n.getState();r({nodes:u.filter(IN),edges:s.filter(IN)}),n.setState({nodesSelectionActive:!1})}},[i]),k.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])}function kre(e){const t=Yt();k.useEffect(()=>{const n=()=>{var i,a,s,u;if(!e.current||!(((a=(i=e.current).checkVisibility)==null?void 0:a.call(i))??!0))return!1;const r=AE(e.current);(r.height===0||r.width===0)&&((u=(s=t.getState()).onError)==null||u.call(s,"004",va.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const f0={position:"absolute",width:"100%",height:"100%",top:0,left:0},Cre=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Ore({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:a=Kl.Free,zoomOnDoubleClick:s=!0,panOnDrag:u=!0,defaultViewport:c,translateExtent:f,minZoom:h,maxZoom:p,zoomActivationKeyCode:g,preventScrolling:v=!0,children:y,noWheelClassName:b,noPanClassName:w,onViewportChange:_,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:S}){const T=Yt(),O=k.useRef(null),{userSelectionActive:M,lib:P,connectionInProgress:R}=gt(Cre,Kt),z=Bh(g),D=k.useRef();kre(O);const N=k.useCallback($=>{_==null||_({x:$[0],y:$[1],zoom:$[2]}),C||T.setState({transform:$})},[_,C]);return k.useEffect(()=>{if(O.current){D.current=Rne({domNode:O.current,minZoom:h,maxZoom:p,translateExtent:f,viewport:c,onDraggingChange:j=>T.setState(G=>G.paneDragging===j?G:{paneDragging:j}),onPanZoomStart:(j,G)=>{const{onViewportChangeStart:q,onMoveStart:H}=T.getState();H==null||H(j,G),q==null||q(G)},onPanZoom:(j,G)=>{const{onViewportChange:q,onMove:H}=T.getState();H==null||H(j,G),q==null||q(G)},onPanZoomEnd:(j,G)=>{const{onViewportChangeEnd:q,onMoveEnd:H}=T.getState();H==null||H(j,G),q==null||q(G)}});const{x:$,y:I,zoom:U}=D.current.getViewport();return T.setState({panZoom:D.current,transform:[$,I,U],domNode:O.current.closest(".react-flow")}),()=>{var j;(j=D.current)==null||j.destroy()}}},[]),k.useEffect(()=>{var $;($=D.current)==null||$.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:a,zoomOnDoubleClick:s,panOnDrag:u,zoomActivationKeyPressed:z,preventScrolling:v,noPanClassName:w,userSelectionActive:M,noWheelClassName:b,lib:P,onTransformChange:N,connectionInProgress:R,selectionOnDrag:S,paneClickDistance:E})},[e,t,n,r,i,a,s,u,z,v,w,M,b,P,N,R,S,E]),ge.jsx("div",{className:"react-flow__renderer",ref:O,style:f0,children:y})}const Tre=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Mre(){const{userSelectionActive:e,userSelectionRect:t}=gt(Tre,Kt);return e&&t?ge.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Uw=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},Pre=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function Nre({isSelecting:e,selectionKeyPressed:t,selectionMode:n=zh.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:a,onSelectionStart:s,onSelectionEnd:u,onPaneClick:c,onPaneContextMenu:f,onPaneScroll:h,onPaneMouseEnter:p,onPaneMouseMove:g,onPaneMouseLeave:v,children:y}){const b=Yt(),{userSelectionActive:w,elementsSelectable:_,dragging:C,connectionInProgress:E}=gt(Pre,Kt),S=_&&(e||w),T=k.useRef(null),O=k.useRef(),M=k.useRef(new Set),P=k.useRef(new Set),R=k.useRef(!1),z=q=>{if(R.current||E){R.current=!1;return}c==null||c(q),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},D=q=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){q.preventDefault();return}f==null||f(q)},N=h?q=>h(q):void 0,$=q=>{R.current&&(q.stopPropagation(),R.current=!1)},I=q=>{var ce,he;const{domNode:H}=b.getState();if(O.current=H==null?void 0:H.getBoundingClientRect(),!O.current)return;const V=q.target===T.current;if(!V&&!!q.target.closest(".nokey")||!e||!(a&&V||t)||q.button!==0||!q.isPrimary)return;(he=(ce=q.target)==null?void 0:ce.setPointerCapture)==null||he.call(ce,q.pointerId),R.current=!1;const{x:X,y:ee}=qi(q.nativeEvent,O.current);b.setState({userSelectionRect:{width:0,height:0,startX:X,startY:ee,x:X,y:ee}}),V||(q.stopPropagation(),q.preventDefault())},U=q=>{const{userSelectionRect:H,transform:V,nodeLookup:B,edgeLookup:K,connectionLookup:X,triggerNodeChanges:ee,triggerEdgeChanges:ce,defaultEdgeOptions:he,resetSelectedElements:de}=b.getState();if(!O.current||!H)return;const{x:ie,y:J}=qi(q.nativeEvent,O.current),{startX:pe,startY:ye}=H;if(!R.current){const Ie=t?0:i;if(Math.hypot(ie-pe,J-ye)<=Ie)return;de(),s==null||s(q)}R.current=!0;const te={startX:pe,startY:ye,x:ie<pe?ie:pe,y:J<ye?J:ye,width:Math.abs(ie-pe),height:Math.abs(J-ye)},Ce=M.current,Se=P.current;M.current=new Set(SE(B,te,V,n===zh.Partial,!0).map(Ie=>Ie.id)),P.current=new Set;const Ye=(he==null?void 0:he.selectable)??!0;for(const Ie of M.current){const ut=X.get(Ie);if(ut)for(const{edgeId:jt}of ut.values()){const Zt=K.get(jt);Zt&&(Zt.selectable??Ye)&&P.current.add(jt)}}if(!oN(Ce,M.current)){const Ie=Ec(B,M.current,!0);ee(Ie)}if(!oN(Se,P.current)){const Ie=Ec(K,P.current);ce(Ie)}b.setState({userSelectionRect:te,userSelectionActive:!0,nodesSelectionActive:!1})},j=q=>{var H,V;q.button===0&&((V=(H=q.target)==null?void 0:H.releasePointerCapture)==null||V.call(H,q.pointerId),!w&&q.target===T.current&&b.getState().userSelectionRect&&(z==null||z(q)),b.setState({userSelectionActive:!1,userSelectionRect:null}),R.current&&(u==null||u(q),b.setState({nodesSelectionActive:M.current.size>0})))},G=r===!0||Array.isArray(r)&&r.includes(0);return ge.jsxs("div",{className:_n(["react-flow__pane",{draggable:G,dragging:C,selection:e}]),onClick:S?void 0:Uw(z,T),onContextMenu:Uw(D,T),onWheel:Uw(N,T),onPointerEnter:S?void 0:p,onPointerMove:S?U:g,onPointerUp:S?j:void 0,onPointerDownCapture:S?I:void 0,onClickCapture:S?$:void 0,onPointerLeave:v,ref:T,style:f0,children:[y,ge.jsx(Mre,{})]})}function GS({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:s,nodeLookup:u,onError:c}=t.getState(),f=u.get(e);if(!f){c==null||c("012",va.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(n||f.selected&&s)&&(a({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var h;return(h=r==null?void 0:r.current)==null?void 0:h.blur()})):i([e])}function Bj({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:s}){const u=Yt(),[c,f]=k.useState(!1),h=k.useRef();return k.useEffect(()=>{h.current=bne({getStoreItems:()=>u.getState(),onNodeMouseDown:p=>{GS({id:p,store:u,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}})},[]),k.useEffect(()=>{if(!(t||!e.current||!h.current))return h.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:a,nodeId:i,nodeClickDistance:s}),()=>{var p;(p=h.current)==null||p.destroy()}},[n,r,t,a,e,i,s]),c}const Rre=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function Uj(){const e=Yt();return k.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:s,onError:u,updateNodePositions:c,nodeLookup:f,nodeOrigin:h}=e.getState(),p=new Map,g=Rre(s),v=i?a[0]:5,y=i?a[1]:5,b=n.direction.x*v*n.factor,w=n.direction.y*y*n.factor;for(const[,_]of f){if(!g(_))continue;let C={x:_.internals.positionAbsolute.x+b,y:_.internals.positionAbsolute.y+w};i&&(C=yp(C,a));const{position:E,positionAbsolute:S}=sj({nodeId:_.id,nextPosition:C,nodeLookup:f,nodeExtent:r,nodeOrigin:h,onError:u});_.position=E,_.internals.positionAbsolute=S,p.set(_.id,_)}c(p)},[])}const NE=k.createContext(null),Dre=NE.Provider;NE.Consumer;const Fj=()=>k.useContext(NE),Ire=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Lre=(e,t,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:a,connection:s}=r,{fromHandle:u,toHandle:c,isValid:f}=s,h=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===t&&(c==null?void 0:c.type)===n;return{connectingFrom:(u==null?void 0:u.nodeId)===e&&(u==null?void 0:u.id)===t&&(u==null?void 0:u.type)===n,connectingTo:h,clickConnecting:(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.id)===t&&(i==null?void 0:i.type)===n,isPossibleEndHandle:a===rf.Strict?(u==null?void 0:u.type)!==n:e!==(u==null?void 0:u.nodeId)||t!==(u==null?void 0:u.id),connectionInProcess:!!u,clickConnectionInProcess:!!i,valid:h&&f}};function zre({type:e="source",position:t=Ke.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:s,onConnect:u,children:c,className:f,onMouseDown:h,onTouchStart:p,...g},v){var U,j;const y=s||null,b=e==="target",w=Yt(),_=Fj(),{connectOnClick:C,noPanClassName:E,rfId:S}=gt(Ire,Kt),{connectingFrom:T,connectingTo:O,clickConnecting:M,isPossibleEndHandle:P,connectionInProcess:R,clickConnectionInProcess:z,valid:D}=gt(Lre(_,y,e),Kt);_||(j=(U=w.getState()).onError)==null||j.call(U,"010",va.error010());const N=G=>{const{defaultEdgeOptions:q,onConnect:H,hasDefaultEdges:V}=w.getState(),B={...q,...G};if(V){const{edges:K,setEdges:X}=w.getState();X(rne(B,K))}H==null||H(B),u==null||u(B)},$=G=>{if(!_)return;const q=mj(G.nativeEvent);if(i&&(q&&G.button===0||!q)){const H=w.getState();FS.onPointerDown(G.nativeEvent,{handleDomNode:G.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:b,handleId:y,nodeId:_,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:(...V)=>{var B,K;return(K=(B=w.getState()).onConnectEnd)==null?void 0:K.call(B,...V)},updateConnection:H.updateConnection,onConnect:N,isValidConnection:n||((...V)=>{var B,K;return((K=(B=w.getState()).isValidConnection)==null?void 0:K.call(B,...V))??!0}),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}q?h==null||h(G):p==null||p(G)},I=G=>{const{onClickConnectStart:q,onClickConnectEnd:H,connectionClickStartHandle:V,connectionMode:B,isValidConnection:K,lib:X,rfId:ee,nodeLookup:ce,connection:he}=w.getState();if(!_||!V&&!i)return;if(!V){q==null||q(G.nativeEvent,{nodeId:_,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:_,type:e,id:y}});return}const de=hj(G.target),ie=n||K,{connection:J,isValid:pe}=FS.isValid(G.nativeEvent,{handle:{nodeId:_,id:y,type:e},connectionMode:B,fromNodeId:V.nodeId,fromHandleId:V.id||null,fromType:V.type,isValidConnection:ie,flowId:ee,doc:de,lib:X,nodeLookup:ce});pe&&J&&N(J);const ye=structuredClone(he);delete ye.inProgress,ye.toPosition=ye.toHandle?ye.toHandle.position:null,H==null||H(G,ye),w.setState({connectionClickStartHandle:null})};return ge.jsx("div",{"data-handleid":y,"data-nodeid":_,"data-handlepos":t,"data-id":`${S}-${_}-${y}-${e}`,className:_n(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!b,target:b,connectable:r,connectablestart:i,connectableend:a,clickconnecting:M,connectingfrom:T,connectingto:O,valid:D,connectionindicator:r&&(!R||P)&&(R||z?a:i)}]),onMouseDown:$,onTouchStart:$,onClick:C?I:void 0,ref:v,...g,children:c})}const Wv=k.memo(jj(zre));function jre({data:e,isConnectable:t,sourcePosition:n=Ke.Bottom}){return ge.jsxs(ge.Fragment,{children:[e==null?void 0:e.label,ge.jsx(Wv,{type:"source",position:n,isConnectable:t})]})}function $re({data:e,isConnectable:t,targetPosition:n=Ke.Top,sourcePosition:r=Ke.Bottom}){return ge.jsxs(ge.Fragment,{children:[ge.jsx(Wv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,ge.jsx(Wv,{type:"source",position:r,isConnectable:t})]})}function Bre(){return null}function Ure({data:e,isConnectable:t,targetPosition:n=Ke.Top}){return ge.jsxs(ge.Fragment,{children:[ge.jsx(Wv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const Qv={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},LN={input:jre,default:$re,output:Ure,group:Bre};function Fre(e){var t,n,r,i;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((i=e.style)==null?void 0:i.height)}}const Hre=e=>{const{width:t,height:n,x:r,y:i}=vp(e.nodeLookup,{filter:a=>!!a.selected});return{width:Gi(t)?t:null,height:Gi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function Gre({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Yt(),{width:i,height:a,transformString:s,userSelectionActive:u}=gt(Hre,Kt),c=Uj(),f=k.useRef(null);k.useEffect(()=>{var v;n||(v=f.current)==null||v.focus({preventScroll:!0})},[n]);const h=!u&&i!==null&&a!==null;if(Bj({nodeRef:f,disabled:!h}),!h)return null;const p=e?v=>{const y=r.getState().nodes.filter(b=>b.selected);e(v,y)}:void 0,g=v=>{Object.prototype.hasOwnProperty.call(Qv,v.key)&&(v.preventDefault(),c({direction:Qv[v.key],factor:v.shiftKey?4:1}))};return ge.jsx("div",{className:_n(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:ge.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:n?void 0:-1,onKeyDown:n?void 0:g,style:{width:i,height:a}})})}const zN=typeof window<"u"?window:void 0,qre=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Hj({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,paneClickDistance:u,deleteKeyCode:c,selectionKeyCode:f,selectionOnDrag:h,selectionMode:p,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:y,panActivationKeyCode:b,zoomActivationKeyCode:w,elementsSelectable:_,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:S,panOnScrollSpeed:T,panOnScrollMode:O,zoomOnDoubleClick:M,panOnDrag:P,defaultViewport:R,translateExtent:z,minZoom:D,maxZoom:N,preventScrolling:$,onSelectionContextMenu:I,noWheelClassName:U,noPanClassName:j,disableKeyboardA11y:G,onViewportChange:q,isControlledViewport:H}){const{nodesSelectionActive:V,userSelectionActive:B}=gt(qre,Kt),K=Bh(f,{target:zN}),X=Bh(b,{target:zN}),ee=X||P,ce=X||S,he=h&&ee!==!0,de=K||B||he;return Are({deleteKeyCode:c,multiSelectionKeyCode:y}),ge.jsx(Ore,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:ce,panOnScrollSpeed:T,panOnScrollMode:O,zoomOnDoubleClick:M,panOnDrag:!K&&ee,defaultViewport:R,translateExtent:z,minZoom:D,maxZoom:N,zoomActivationKeyCode:w,preventScrolling:$,noWheelClassName:U,noPanClassName:j,onViewportChange:q,isControlledViewport:H,paneClickDistance:u,selectionOnDrag:he,children:ge.jsxs(Nre,{onSelectionStart:g,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:ee,isSelecting:!!de,selectionMode:p,selectionKeyPressed:K,paneClickDistance:u,selectionOnDrag:he,children:[e,V&&ge.jsx(Gre,{onSelectionContextMenu:I,noPanClassName:j,disableKeyboardA11y:G})]})})}Hj.displayName="FlowRenderer";const Vre=k.memo(Hj),Kre=e=>t=>e?SE(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function Yre(e){return gt(k.useCallback(Kre(e),[e]),Kt)}const Wre=e=>e.updateNodeInternals;function Qre(){const e=gt(Wre),[t]=k.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const a=i.target.getAttribute("data-id");r.set(a,{id:a,nodeElement:i.target,force:!0})}),e(r)}));return k.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function Zre({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=Yt(),a=k.useRef(null),s=k.useRef(null),u=k.useRef(e.sourcePosition),c=k.useRef(e.targetPosition),f=k.useRef(t),h=n&&!!e.internals.handleBounds;return k.useEffect(()=>{a.current&&!e.hidden&&(!h||s.current!==a.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(a.current),s.current=a.current)},[h,e.hidden]),k.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),k.useEffect(()=>{if(a.current){const p=f.current!==t,g=u.current!==e.sourcePosition,v=c.current!==e.targetPosition;(p||g||v)&&(f.current=t,u.current=e.sourcePosition,c.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function Xre({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:s,nodesDraggable:u,elementsSelectable:c,nodesConnectable:f,nodesFocusable:h,resizeObserver:p,noDragClassName:g,noPanClassName:v,disableKeyboardA11y:y,rfId:b,nodeTypes:w,nodeClickDistance:_,onError:C}){const{node:E,internals:S,isParent:T}=gt(ie=>{const J=ie.nodeLookup.get(e),pe=ie.parentLookup.has(e);return{node:J,internals:J.internals,isParent:pe}},Kt);let O=E.type||"default",M=(w==null?void 0:w[O])||LN[O];M===void 0&&(C==null||C("003",va.error003(O)),O="default",M=(w==null?void 0:w.default)||LN.default);const P=!!(E.draggable||u&&typeof E.draggable>"u"),R=!!(E.selectable||c&&typeof E.selectable>"u"),z=!!(E.connectable||f&&typeof E.connectable>"u"),D=!!(E.focusable||h&&typeof E.focusable>"u"),N=Yt(),$=fj(E),I=Zre({node:E,nodeType:O,hasDimensions:$,resizeObserver:p}),U=Bj({nodeRef:I,disabled:E.hidden||!P,noDragClassName:g,handleSelector:E.dragHandle,nodeId:e,isSelectable:R,nodeClickDistance:_}),j=Uj();if(E.hidden)return null;const G=Oo(E),q=Fre(E),H=R||P||t||n||r||i,V=n?ie=>n(ie,{...S.userNode}):void 0,B=r?ie=>r(ie,{...S.userNode}):void 0,K=i?ie=>i(ie,{...S.userNode}):void 0,X=a?ie=>a(ie,{...S.userNode}):void 0,ee=s?ie=>s(ie,{...S.userNode}):void 0,ce=ie=>{const{selectNodesOnDrag:J,nodeDragThreshold:pe}=N.getState();R&&(!J||!P||pe>0)&&GS({id:e,store:N,nodeRef:I}),t&&t(ie,{...S.userNode})},he=ie=>{if(!(pj(ie.nativeEvent)||y)){if(nj.includes(ie.key)&&R){const J=ie.key==="Escape";GS({id:e,store:N,unselect:J,nodeRef:I})}else if(P&&E.selected&&Object.prototype.hasOwnProperty.call(Qv,ie.key)){ie.preventDefault();const{ariaLabelConfig:J}=N.getState();N.setState({ariaLiveMessage:J["node.a11yDescription.ariaLiveMessage"]({direction:ie.key.replace("Arrow","").toLowerCase(),x:~~S.positionAbsolute.x,y:~~S.positionAbsolute.y})}),j({direction:Qv[ie.key],factor:ie.shiftKey?4:1})}}},de=()=>{var Se;if(y||!((Se=I.current)!=null&&Se.matches(":focus-visible")))return;const{transform:ie,width:J,height:pe,autoPanOnNodeFocus:ye,setCenter:te}=N.getState();if(!ye)return;SE(new Map([[e,E]]),{x:0,y:0,width:J,height:pe},ie,!0).length>0||te(E.position.x+G.width/2,E.position.y+G.height/2,{zoom:ie[2]})};return ge.jsx("div",{className:_n(["react-flow__node",`react-flow__node-${O}`,{[v]:P},E.className,{selected:E.selected,selectable:R,parent:T,draggable:P,dragging:U}]),ref:I,style:{zIndex:S.z,transform:`translate(${S.positionAbsolute.x}px,${S.positionAbsolute.y}px)`,pointerEvents:H?"all":"none",visibility:$?"visible":"hidden",...E.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:V,onMouseMove:B,onMouseLeave:K,onContextMenu:X,onClick:ce,onDoubleClick:ee,onKeyDown:D?he:void 0,tabIndex:D?0:void 0,onFocus:D?de:void 0,role:E.ariaRole??(D?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${Dj}-${b}`,"aria-label":E.ariaLabel,...E.domAttributes,children:ge.jsx(Dre,{value:e,children:ge.jsx(M,{id:e,data:E.data,type:O,positionAbsoluteX:S.positionAbsolute.x,positionAbsoluteY:S.positionAbsolute.y,selected:E.selected??!1,selectable:R,draggable:P,deletable:E.deletable??!0,isConnectable:z,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:U,dragHandle:E.dragHandle,zIndex:S.z,parentId:E.parentId,...G})})})}var Jre=k.memo(Xre);const eie=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Gj(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:a}=gt(eie,Kt),s=Yre(e.onlyRenderVisibleElements),u=Qre();return ge.jsx("div",{className:"react-flow__nodes",style:f0,children:s.map(c=>ge.jsx(Jre,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:a},c))})}Gj.displayName="NodeRenderer";const tie=k.memo(Gj);function nie(e){return gt(k.useCallback(n=>{if(!e)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const a=n.nodeLookup.get(i.source),s=n.nodeLookup.get(i.target);a&&s&&ene({sourceNode:a,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[e]),Kt)}const rie=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return ge.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},iie=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return ge.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},jN={[Vv.Arrow]:rie,[Vv.ArrowClosed]:iie};function aie(e){const t=Yt();return k.useMemo(()=>{var i,a;return Object.prototype.hasOwnProperty.call(jN,e)?jN[e]:((a=(i=t.getState()).onError)==null||a.call(i,"009",va.error009(e)),null)},[e])}const oie=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:u="auto-start-reverse"})=>{const c=aie(t);return c?ge.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:u,refX:"0",refY:"0",children:ge.jsx(c,{color:n,strokeWidth:s})}):null},qj=({defaultColor:e,rfId:t})=>{const n=gt(a=>a.edges),r=gt(a=>a.defaultEdgeOptions),i=k.useMemo(()=>lne(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return i.length?ge.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:ge.jsx("defs",{children:i.map(a=>ge.jsx(oie,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};qj.displayName="MarkerDefinitions";var sie=k.memo(qj);function Vj({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:s=[2,4],labelBgBorderRadius:u=2,children:c,className:f,...h}){const[p,g]=k.useState({x:1,y:0,width:0,height:0}),v=_n(["react-flow__edge-textwrapper",f]),y=k.useRef(null);return k.useEffect(()=>{if(y.current){const b=y.current.getBBox();g({x:b.x,y:b.y,width:b.width,height:b.height})}},[n]),n?ge.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:v,visibility:p.width?"visible":"hidden",...h,children:[i&&ge.jsx("rect",{width:p.width+2*s[0],x:-s[0],y:-s[1],height:p.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:u,ry:u}),ge.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:y,style:r,children:n}),c]}):null}Vj.displayName="EdgeText";const lie=k.memo(Vj);function d0({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:c,interactionWidth:f=20,...h}){return ge.jsxs(ge.Fragment,{children:[ge.jsx("path",{...h,d:e,fill:"none",className:_n(["react-flow__edge-path",h.className])}),f?ge.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,r&&Gi(t)&&Gi(n)?ge.jsx(lie,{x:t,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:c}):null]})}function $N({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===Ke.Left||e===Ke.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function Kj({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top}){const[s,u]=$N({pos:n,x1:e,y1:t,x2:r,y2:i}),[c,f]=$N({pos:a,x1:r,y1:i,x2:e,y2:t}),[h,p,g,v]=gj({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:u,targetControlX:c,targetControlY:f});return[`M${e},${t} C${s},${u} ${c},${f} ${r},${i}`,h,p,g,v]}function Yj(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:s,targetPosition:u,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:_})=>{const[C,E,S]=Kj({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:a,targetPosition:u}),T=e.isInternal?void 0:t;return ge.jsx(d0,{id:T,path:C,labelX:E,labelY:S,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:_})})}const uie=Yj({isInternal:!1}),Wj=Yj({isInternal:!0});uie.displayName="SimpleBezierEdge";Wj.displayName="SimpleBezierEdgeInternal";function Qj(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,sourcePosition:v=Ke.Bottom,targetPosition:y=Ke.Top,markerEnd:b,markerStart:w,pathOptions:_,interactionWidth:C})=>{const[E,S,T]=$S({sourceX:n,sourceY:r,sourcePosition:v,targetX:i,targetY:a,targetPosition:y,borderRadius:_==null?void 0:_.borderRadius,offset:_==null?void 0:_.offset,stepPosition:_==null?void 0:_.stepPosition}),O=e.isInternal?void 0:t;return ge.jsx(d0,{id:O,path:E,labelX:S,labelY:T,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:b,markerStart:w,interactionWidth:C})})}const Zj=Qj({isInternal:!1}),Xj=Qj({isInternal:!0});Zj.displayName="SmoothStepEdge";Xj.displayName="SmoothStepEdgeInternal";function Jj(e){return k.memo(({id:t,...n})=>{var i;const r=e.isInternal?void 0:t;return ge.jsx(Zj,{...n,id:r,pathOptions:k.useMemo(()=>{var a;return{borderRadius:0,offset:(a=n.pathOptions)==null?void 0:a.offset}},[(i=n.pathOptions)==null?void 0:i.offset])})})}const cie=Jj({isInternal:!1}),e6=Jj({isInternal:!0});cie.displayName="StepEdge";e6.displayName="StepEdgeInternal";function t6(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:v,markerStart:y,interactionWidth:b})=>{const[w,_,C]=bj({sourceX:n,sourceY:r,targetX:i,targetY:a}),E=e.isInternal?void 0:t;return ge.jsx(d0,{id:E,path:w,labelX:_,labelY:C,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:v,markerStart:y,interactionWidth:b})})}const fie=t6({isInternal:!1}),n6=t6({isInternal:!0});fie.displayName="StraightEdge";n6.displayName="StraightEdgeInternal";function r6(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:s=Ke.Bottom,targetPosition:u=Ke.Top,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,pathOptions:_,interactionWidth:C})=>{const[E,S,T]=vj({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:a,targetPosition:u,curvature:_==null?void 0:_.curvature}),O=e.isInternal?void 0:t;return ge.jsx(d0,{id:O,path:E,labelX:S,labelY:T,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:C})})}const die=r6({isInternal:!1}),i6=r6({isInternal:!0});die.displayName="BezierEdge";i6.displayName="BezierEdgeInternal";const BN={default:i6,straight:n6,step:e6,smoothstep:Xj,simplebezier:Wj},UN={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},hie=(e,t,n)=>n===Ke.Left?e-t:n===Ke.Right?e+t:e,pie=(e,t,n)=>n===Ke.Top?e-t:n===Ke.Bottom?e+t:e,FN="react-flow__edgeupdater";function HN({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:s,type:u}){return ge.jsx("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:s,className:_n([FN,`${FN}-${u}`]),cx:hie(t,r,e),cy:pie(n,r,e),r,stroke:"transparent",fill:"transparent"})}function mie({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:s,sourcePosition:u,targetPosition:c,onReconnect:f,onReconnectStart:h,onReconnectEnd:p,setReconnecting:g,setUpdateHover:v}){const y=Yt(),b=(S,T)=>{if(S.button!==0)return;const{autoPanOnConnect:O,domNode:M,connectionMode:P,connectionRadius:R,lib:z,onConnectStart:D,cancelConnection:N,nodeLookup:$,rfId:I,panBy:U,updateConnection:j}=y.getState(),G=T.type==="target",q=(B,K)=>{g(!1),p==null||p(B,n,T.type,K)},H=B=>f==null?void 0:f(n,B),V=(B,K)=>{g(!0),h==null||h(S,n,T.type),D==null||D(B,K)};FS.onPointerDown(S.nativeEvent,{autoPanOnConnect:O,connectionMode:P,connectionRadius:R,domNode:M,handleId:T.id,nodeId:T.nodeId,nodeLookup:$,isTarget:G,edgeUpdaterType:T.type,lib:z,flowId:I,cancelConnection:N,panBy:U,isValidConnection:(...B)=>{var K,X;return((X=(K=y.getState()).isValidConnection)==null?void 0:X.call(K,...B))??!0},onConnect:H,onConnectStart:V,onConnectEnd:(...B)=>{var K,X;return(X=(K=y.getState()).onConnectEnd)==null?void 0:X.call(K,...B)},onReconnectEnd:q,updateConnection:j,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:S.currentTarget})},w=S=>b(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),_=S=>b(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>v(!0),E=()=>v(!1);return ge.jsxs(ge.Fragment,{children:[(e===!0||e==="source")&&ge.jsx(HN,{position:u,centerX:r,centerY:i,radius:t,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&ge.jsx(HN,{position:c,centerX:a,centerY:s,radius:t,onMouseDown:_,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function gie({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:s,onMouseEnter:u,onMouseMove:c,onMouseLeave:f,reconnectRadius:h,onReconnect:p,onReconnectStart:g,onReconnectEnd:v,rfId:y,edgeTypes:b,noPanClassName:w,onError:_,disableKeyboardA11y:C}){let E=gt(te=>te.edgeLookup.get(e));const S=gt(te=>te.defaultEdgeOptions);E=S?{...S,...E}:E;let T=E.type||"default",O=(b==null?void 0:b[T])||BN[T];O===void 0&&(_==null||_("011",va.error011(T)),T="default",O=(b==null?void 0:b.default)||BN.default);const M=!!(E.focusable||t&&typeof E.focusable>"u"),P=typeof p<"u"&&(E.reconnectable||n&&typeof E.reconnectable>"u"),R=!!(E.selectable||r&&typeof E.selectable>"u"),z=k.useRef(null),[D,N]=k.useState(!1),[$,I]=k.useState(!1),U=Yt(),{zIndex:j,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K}=gt(k.useCallback(te=>{const Ce=te.nodeLookup.get(E.source),Se=te.nodeLookup.get(E.target);if(!Ce||!Se)return{zIndex:E.zIndex,...UN};const Ye=sne({id:e,sourceNode:Ce,targetNode:Se,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:te.connectionMode,onError:_});return{zIndex:Jte({selected:E.selected,zIndex:E.zIndex,sourceNode:Ce,targetNode:Se,elevateOnSelect:te.elevateEdgesOnSelect,zIndexMode:te.zIndexMode}),...Ye||UN}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),Kt),X=k.useMemo(()=>E.markerStart?`url('#${BS(E.markerStart,y)}')`:void 0,[E.markerStart,y]),ee=k.useMemo(()=>E.markerEnd?`url('#${BS(E.markerEnd,y)}')`:void 0,[E.markerEnd,y]);if(E.hidden||G===null||q===null||H===null||V===null)return null;const ce=te=>{var Ie;const{addSelectedEdges:Ce,unselectNodesAndEdges:Se,multiSelectionActive:Ye}=U.getState();R&&(U.setState({nodesSelectionActive:!1}),E.selected&&Ye?(Se({nodes:[],edges:[E]}),(Ie=z.current)==null||Ie.blur()):Ce([e])),i&&i(te,E)},he=a?te=>{a(te,{...E})}:void 0,de=s?te=>{s(te,{...E})}:void 0,ie=u?te=>{u(te,{...E})}:void 0,J=c?te=>{c(te,{...E})}:void 0,pe=f?te=>{f(te,{...E})}:void 0,ye=te=>{var Ce;if(!C&&nj.includes(te.key)&&R){const{unselectNodesAndEdges:Se,addSelectedEdges:Ye}=U.getState();te.key==="Escape"?((Ce=z.current)==null||Ce.blur(),Se({edges:[E]})):Ye([e])}};return ge.jsx("svg",{style:{zIndex:j},children:ge.jsxs("g",{className:_n(["react-flow__edge",`react-flow__edge-${T}`,E.className,w,{selected:E.selected,animated:E.animated,inactive:!R&&!i,updating:D,selectable:R}]),onClick:ce,onDoubleClick:he,onContextMenu:de,onMouseEnter:ie,onMouseMove:J,onMouseLeave:pe,onKeyDown:M?ye:void 0,tabIndex:M?0:void 0,role:E.ariaRole??(M?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":M?`${Ij}-${y}`:void 0,ref:z,...E.domAttributes,children:[!$&&ge.jsx(O,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:R,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:X,markerEnd:ee,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),P&&ge.jsx(mie,{edge:E,isReconnectable:P,reconnectRadius:h,onReconnect:p,onReconnectStart:g,onReconnectEnd:v,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K,setUpdateHover:N,setReconnecting:I})]})})}var vie=k.memo(gie);const yie=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function a6({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:s,onEdgeMouseEnter:u,onEdgeMouseMove:c,onEdgeMouseLeave:f,onEdgeClick:h,reconnectRadius:p,onEdgeDoubleClick:g,onReconnectStart:v,onReconnectEnd:y,disableKeyboardA11y:b}){const{edgesFocusable:w,edgesReconnectable:_,elementsSelectable:C,onError:E}=gt(yie,Kt),S=nie(t);return ge.jsxs("div",{className:"react-flow__edges",children:[ge.jsx(sie,{defaultColor:e,rfId:n}),S.map(T=>ge.jsx(vie,{id:T,edgesFocusable:w,edgesReconnectable:_,elementsSelectable:C,noPanClassName:i,onReconnect:a,onContextMenu:s,onMouseEnter:u,onMouseMove:c,onMouseLeave:f,onClick:h,reconnectRadius:p,onDoubleClick:g,onReconnectStart:v,onReconnectEnd:y,rfId:n,onError:E,edgeTypes:r,disableKeyboardA11y:b},T))]})}a6.displayName="EdgeRenderer";const bie=k.memo(a6),wie=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function xie({children:e}){const t=gt(wie);return ge.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function _ie(e){const t=PE(),n=k.useRef(!1);k.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const Sie=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function Eie(e){const t=gt(Sie),n=Yt();return k.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function Aie(e){return e.connection.inProgress?{...e.connection,to:bp(e.connection.to,e.transform)}:{...e.connection}}function kie(e){return Aie}function Cie(e){const t=kie();return gt(t,Kt)}const Oie=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Tie({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:i,width:a,height:s,isValid:u,inProgress:c}=gt(Oie,Kt);return!(a&&i&&c)?null:ge.jsx("svg",{style:e,width:a,height:s,className:"react-flow__connectionline react-flow__container",children:ge.jsx("g",{className:_n(["react-flow__connection",aj(u)]),children:ge.jsx(o6,{style:t,type:n,CustomComponent:r,isValid:u})})})}const o6=({style:e,type:t=_s.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:a,fromNode:s,fromHandle:u,fromPosition:c,to:f,toNode:h,toHandle:p,toPosition:g,pointer:v}=Cie();if(!i)return;if(n)return ge.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:u,fromX:a.x,fromY:a.y,toX:f.x,toY:f.y,fromPosition:c,toPosition:g,connectionStatus:aj(r),toNode:h,toHandle:p,pointer:v});let y="";const b={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:f.x,targetY:f.y,targetPosition:g};switch(t){case _s.Bezier:[y]=vj(b);break;case _s.SimpleBezier:[y]=Kj(b);break;case _s.Step:[y]=$S({...b,borderRadius:0});break;case _s.SmoothStep:[y]=$S(b);break;default:[y]=bj(b)}return ge.jsx("path",{d:y,fill:"none",className:"react-flow__connection-path",style:e})};o6.displayName="ConnectionLine";const Mie={};function GN(e=Mie){k.useRef(e),Yt(),k.useEffect(()=>{},[e])}function Pie(){Yt(),k.useRef(!1),k.useEffect(()=>{},[])}function s6({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:s,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:f,onNodeContextMenu:h,onSelectionContextMenu:p,onSelectionStart:g,onSelectionEnd:v,connectionLineType:y,connectionLineStyle:b,connectionLineComponent:w,connectionLineContainerStyle:_,selectionKeyCode:C,selectionOnDrag:E,selectionMode:S,multiSelectionKeyCode:T,panActivationKeyCode:O,zoomActivationKeyCode:M,deleteKeyCode:P,onlyRenderVisibleElements:R,elementsSelectable:z,defaultViewport:D,translateExtent:N,minZoom:$,maxZoom:I,preventScrolling:U,defaultMarkerColor:j,zoomOnScroll:G,zoomOnPinch:q,panOnScroll:H,panOnScrollSpeed:V,panOnScrollMode:B,zoomOnDoubleClick:K,panOnDrag:X,onPaneClick:ee,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneScroll:ie,onPaneContextMenu:J,paneClickDistance:pe,nodeClickDistance:ye,onEdgeContextMenu:te,onEdgeMouseEnter:Ce,onEdgeMouseMove:Se,onEdgeMouseLeave:Ye,reconnectRadius:Ie,onReconnect:ut,onReconnectStart:jt,onReconnectEnd:Zt,noDragClassName:ir,noWheelClassName:ar,noPanClassName:W,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe,viewport:_e,onViewportChange:Ee}){return GN(e),GN(t),Pie(),_ie(n),Eie(_e),ge.jsx(Vre,{onPaneClick:ee,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneContextMenu:J,onPaneScroll:ie,paneClickDistance:pe,deleteKeyCode:P,selectionKeyCode:C,selectionOnDrag:E,selectionMode:S,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:T,panActivationKeyCode:O,zoomActivationKeyCode:M,elementsSelectable:z,zoomOnScroll:G,zoomOnPinch:q,zoomOnDoubleClick:K,panOnScroll:H,panOnScrollSpeed:V,panOnScrollMode:B,panOnDrag:X,defaultViewport:D,translateExtent:N,minZoom:$,maxZoom:I,onSelectionContextMenu:p,preventScrolling:U,noDragClassName:ir,noWheelClassName:ar,noPanClassName:W,disableKeyboardA11y:re,onViewportChange:Ee,isControlledViewport:!!_e,children:ge.jsxs(xie,{children:[ge.jsx(bie,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:s,onReconnect:ut,onReconnectStart:jt,onReconnectEnd:Zt,onlyRenderVisibleElements:R,onEdgeContextMenu:te,onEdgeMouseEnter:Ce,onEdgeMouseMove:Se,onEdgeMouseLeave:Ye,reconnectRadius:Ie,defaultMarkerColor:j,noPanClassName:W,disableKeyboardA11y:re,rfId:Oe}),ge.jsx(Tie,{style:b,type:y,component:w,containerStyle:_}),ge.jsx("div",{className:"react-flow__edgelabel-renderer"}),ge.jsx(tie,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:f,onNodeContextMenu:h,nodeClickDistance:ye,onlyRenderVisibleElements:R,noPanClassName:W,noDragClassName:ir,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe}),ge.jsx("div",{className:"react-flow__viewport-portal"})]})})}s6.displayName="GraphView";const Nie=k.memo(s6),qN=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c=.5,maxZoom:f=2,nodeOrigin:h,nodeExtent:p,zIndexMode:g="basic"}={})=>{const v=new Map,y=new Map,b=new Map,w=new Map,_=r??t??[],C=n??e??[],E=h??[0,0],S=p??Lh;_j(b,w,_);const{nodesInitialized:T}=US(C,v,y,{nodeOrigin:E,nodeExtent:S,zIndexMode:g});let O=[0,0,1];if(s&&i&&a){const M=vp(v,{filter:D=>!!((D.width||D.initialWidth)&&(D.height||D.initialHeight))}),{x:P,y:R,zoom:z}=EE(M,i,a,c,f,(u==null?void 0:u.padding)??.1);O=[P,R,z]}return{rfId:"1",width:i??0,height:a??0,transform:O,nodes:C,nodesInitialized:T,nodeLookup:v,parentLookup:y,edges:_,edgeLookup:w,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:c,maxZoom:f,translateExtent:Lh,nodeExtent:S,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:rf.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:u,fitViewResolver:null,connection:{...ij},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Kte,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:rj,zIndexMode:g,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Rie=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:h,nodeExtent:p,zIndexMode:g})=>Qne((v,y)=>{async function b(){const{nodeLookup:w,panZoom:_,fitViewOptions:C,fitViewResolver:E,width:S,height:T,minZoom:O,maxZoom:M}=y();_&&(await qte({nodes:w,width:S,height:T,panZoom:_,minZoom:O,maxZoom:M},C),E==null||E.resolve(!0),v({fitViewResolver:null}))}return{...qN({nodes:e,edges:t,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:h,nodeExtent:p,defaultNodes:n,defaultEdges:r,zIndexMode:g}),setNodes:w=>{const{nodeLookup:_,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:S,fitViewQueued:T,zIndexMode:O,nodesSelectionActive:M}=y(),{nodesInitialized:P,hasSelectedNodes:R}=US(w,_,C,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:S,checkEquality:!0,zIndexMode:O}),z=M&&R;T&&P?(b(),v({nodes:w,nodesInitialized:P,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:z})):v({nodes:w,nodesInitialized:P,nodesSelectionActive:z})},setEdges:w=>{const{connectionLookup:_,edgeLookup:C}=y();_j(_,C,w),v({edges:w})},setDefaultNodesAndEdges:(w,_)=>{if(w){const{setNodes:C}=y();C(w),v({hasDefaultNodes:!0})}if(_){const{setEdges:C}=y();C(_),v({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:_,nodeLookup:C,parentLookup:E,domNode:S,nodeOrigin:T,nodeExtent:O,debug:M,fitViewQueued:P,zIndexMode:R}=y(),{changes:z,updatedInternals:D}=mne(w,C,E,S,T,O,R);D&&(fne(C,E,{nodeOrigin:T,nodeExtent:O,zIndexMode:R}),P?(b(),v({fitViewQueued:!1,fitViewOptions:void 0})):v({}),(z==null?void 0:z.length)>0&&(M&&console.log("React Flow: trigger node changes",z),_==null||_(z)))},updateNodePositions:(w,_=!1)=>{const C=[];let E=[];const{nodeLookup:S,triggerNodeChanges:T,connection:O,updateConnection:M,onNodesChangeMiddlewareMap:P}=y();for(const[R,z]of w){const D=S.get(R),N=!!(D!=null&&D.expandParent&&(D!=null&&D.parentId)&&(z!=null&&z.position)),$={id:R,type:"position",position:N?{x:Math.max(0,z.position.x),y:Math.max(0,z.position.y)}:z.position,dragging:_};if(D&&O.inProgress&&O.fromNode.id===D.id){const I=ou(D,O.fromHandle,Ke.Left,!0);M({...O,from:I})}N&&D.parentId&&C.push({id:R,parentId:D.parentId,rect:{...z.internals.positionAbsolute,width:z.measured.width??0,height:z.measured.height??0}}),E.push($)}if(C.length>0){const{parentLookup:R,nodeOrigin:z}=y(),D=ME(C,S,R,z);E.push(...D)}for(const R of P.values())E=R(E);T(E)},triggerNodeChanges:w=>{const{onNodesChange:_,setNodes:C,nodes:E,hasDefaultNodes:S,debug:T}=y();if(w!=null&&w.length){if(S){const O=vre(w,E);C(O)}T&&console.log("React Flow: trigger node changes",w),_==null||_(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:_,setEdges:C,edges:E,hasDefaultEdges:S,debug:T}=y();if(w!=null&&w.length){if(S){const O=yre(w,E);C(O)}T&&console.log("React Flow: trigger edge changes",w),_==null||_(w)}},addSelectedNodes:w=>{const{multiSelectionActive:_,edgeLookup:C,nodeLookup:E,triggerNodeChanges:S,triggerEdgeChanges:T}=y();if(_){const O=w.map(M=>Al(M,!0));S(O);return}S(Ec(E,new Set([...w]),!0)),T(Ec(C))},addSelectedEdges:w=>{const{multiSelectionActive:_,edgeLookup:C,nodeLookup:E,triggerNodeChanges:S,triggerEdgeChanges:T}=y();if(_){const O=w.map(M=>Al(M,!0));T(O);return}T(Ec(C,new Set([...w]))),S(Ec(E,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:_}={})=>{const{edges:C,nodes:E,nodeLookup:S,triggerNodeChanges:T,triggerEdgeChanges:O}=y(),M=w||E,P=_||C,R=[];for(const D of M){if(!D.selected)continue;const N=S.get(D.id);N&&(N.selected=!1),R.push(Al(D.id,!1))}const z=[];for(const D of P)D.selected&&z.push(Al(D.id,!1));T(R),O(z)},setMinZoom:w=>{const{panZoom:_,maxZoom:C}=y();_==null||_.setScaleExtent([w,C]),v({minZoom:w})},setMaxZoom:w=>{const{panZoom:_,minZoom:C}=y();_==null||_.setScaleExtent([C,w]),v({maxZoom:w})},setTranslateExtent:w=>{var _;(_=y().panZoom)==null||_.setTranslateExtent(w),v({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:_,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:S}=y();if(!S)return;const T=_.reduce((M,P)=>P.selected?[...M,Al(P.id,!1)]:M,[]),O=w.reduce((M,P)=>P.selected?[...M,Al(P.id,!1)]:M,[]);C(T),E(O)},setNodeExtent:w=>{const{nodes:_,nodeLookup:C,parentLookup:E,nodeOrigin:S,elevateNodesOnSelect:T,nodeExtent:O,zIndexMode:M}=y();w[0][0]===O[0][0]&&w[0][1]===O[0][1]&&w[1][0]===O[1][0]&&w[1][1]===O[1][1]||(US(_,C,E,{nodeOrigin:S,nodeExtent:w,elevateNodesOnSelect:T,checkEquality:!1,zIndexMode:M}),v({nodeExtent:w}))},panBy:w=>{const{transform:_,width:C,height:E,panZoom:S,translateExtent:T}=y();return gne({delta:w,panZoom:S,transform:_,translateExtent:T,width:C,height:E})},setCenter:async(w,_,C)=>{const{width:E,height:S,maxZoom:T,panZoom:O}=y();if(!O)return Promise.resolve(!1);const M=typeof(C==null?void 0:C.zoom)<"u"?C.zoom:T;return await O.setViewport({x:E/2-w*M,y:S/2-_*M,zoom:M},{duration:C==null?void 0:C.duration,ease:C==null?void 0:C.ease,interpolate:C==null?void 0:C.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{v({connection:{...ij}})},updateConnection:w=>{v({connection:w})},reset:()=>v({...qN()})}},Object.is);function Die({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:s,initialMaxZoom:u,initialFitViewOptions:c,fitView:f,nodeOrigin:h,nodeExtent:p,zIndexMode:g,children:v}){const[y]=k.useState(()=>Rie({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:f,minZoom:s,maxZoom:u,fitViewOptions:c,nodeOrigin:h,nodeExtent:p,zIndexMode:g}));return ge.jsx(Zne,{value:y,children:ge.jsx(xre,{children:v})})}function Iie({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:s,fitView:u,fitViewOptions:c,minZoom:f,maxZoom:h,nodeOrigin:p,nodeExtent:g,zIndexMode:v}){return k.useContext(u0)?ge.jsx(ge.Fragment,{children:e}):ge.jsx(Die,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:s,fitView:u,initialFitViewOptions:c,initialMinZoom:f,initialMaxZoom:h,nodeOrigin:p,nodeExtent:g,zIndexMode:v,children:e})}const Lie={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function zie({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:s,onNodeClick:u,onEdgeClick:c,onInit:f,onMove:h,onMoveStart:p,onMoveEnd:g,onConnect:v,onConnectStart:y,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:_,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:T,onNodeDoubleClick:O,onNodeDragStart:M,onNodeDrag:P,onNodeDragStop:R,onNodesDelete:z,onEdgesDelete:D,onDelete:N,onSelectionChange:$,onSelectionDragStart:I,onSelectionDrag:U,onSelectionDragStop:j,onSelectionContextMenu:G,onSelectionStart:q,onSelectionEnd:H,onBeforeDelete:V,connectionMode:B,connectionLineType:K=_s.Bezier,connectionLineStyle:X,connectionLineComponent:ee,connectionLineContainerStyle:ce,deleteKeyCode:he="Backspace",selectionKeyCode:de="Shift",selectionOnDrag:ie=!1,selectionMode:J=zh.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:ye=$h()?"Meta":"Control",zoomActivationKeyCode:te=$h()?"Meta":"Control",snapToGrid:Ce,snapGrid:Se,onlyRenderVisibleElements:Ye=!1,selectNodesOnDrag:Ie,nodesDraggable:ut,autoPanOnNodeFocus:jt,nodesConnectable:Zt,nodesFocusable:ir,nodeOrigin:ar=Lj,edgesFocusable:W,edgesReconnectable:re,elementsSelectable:ae=!0,defaultViewport:Oe=cre,minZoom:_e=.5,maxZoom:Ee=2,translateExtent:Re=Lh,preventScrolling:Ze=!0,nodeExtent:ct,defaultMarkerColor:Gn="#b1b1b7",zoomOnScroll:xr=!0,zoomOnPinch:Xt=!0,panOnScroll:qn=!1,panOnScrollSpeed:_r=.5,panOnScrollMode:Sn=Kl.Free,zoomOnDoubleClick:If=!0,panOnDrag:bu=!0,onPaneClick:Lf,onPaneMouseEnter:Oa,onPaneMouseMove:wu,onPaneMouseLeave:xu,onPaneScroll:Ta,onPaneContextMenu:_u,paneClickDistance:Qs=1,nodeClickDistance:K0=0,children:Hp,onReconnect:zf,onReconnectStart:Zs,onReconnectEnd:Y0,onEdgeContextMenu:Gp,onEdgeDoubleClick:qp,onEdgeMouseEnter:Vp,onEdgeMouseMove:jf,onEdgeMouseLeave:$f,reconnectRadius:Kp=10,onNodesChange:Yp,onEdgesChange:Zi,noDragClassName:En="nodrag",noWheelClassName:or="nowheel",noPanClassName:Ma="nopan",fitView:Su,fitViewOptions:Wp,connectOnClick:W0,attributionPosition:Qp,proOptions:Xs,defaultEdgeOptions:Bf,elevateNodesOnSelect:Lo=!0,elevateEdgesOnSelect:zo=!1,disableKeyboardA11y:jo=!1,autoPanOnConnect:$o,autoPanOnNodeDrag:hn,autoPanSpeed:Zp,connectionRadius:Xp,isValidConnection:Pa,onError:Bo,style:Q0,id:Uf,nodeDragThreshold:Jp,connectionDragThreshold:Z0,viewport:Eu,onViewportChange:Au,width:Oi,height:Sr,colorMode:em="light",debug:X0,onScroll:Uo,ariaLabelConfig:tm,zIndexMode:Js="basic",...J0},Er){const el=Uf||"1",nm=pre(em),Ff=k.useCallback(Na=>{Na.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Uo==null||Uo(Na)},[Uo]);return ge.jsx("div",{"data-testid":"rf__wrapper",...J0,onScroll:Ff,style:{...Q0,...Lie},ref:Er,className:_n(["react-flow",i,nm]),id:Uf,role:"application",children:ge.jsxs(Iie,{nodes:e,edges:t,width:Oi,height:Sr,fitView:Su,fitViewOptions:Wp,minZoom:_e,maxZoom:Ee,nodeOrigin:ar,nodeExtent:ct,zIndexMode:Js,children:[ge.jsx(hre,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:v,onConnectStart:y,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:_,nodesDraggable:ut,autoPanOnNodeFocus:jt,nodesConnectable:Zt,nodesFocusable:ir,edgesFocusable:W,edgesReconnectable:re,elementsSelectable:ae,elevateNodesOnSelect:Lo,elevateEdgesOnSelect:zo,minZoom:_e,maxZoom:Ee,nodeExtent:ct,onNodesChange:Yp,onEdgesChange:Zi,snapToGrid:Ce,snapGrid:Se,connectionMode:B,translateExtent:Re,connectOnClick:W0,defaultEdgeOptions:Bf,fitView:Su,fitViewOptions:Wp,onNodesDelete:z,onEdgesDelete:D,onDelete:N,onNodeDragStart:M,onNodeDrag:P,onNodeDragStop:R,onSelectionDrag:U,onSelectionDragStart:I,onSelectionDragStop:j,onMove:h,onMoveStart:p,onMoveEnd:g,noPanClassName:Ma,nodeOrigin:ar,rfId:el,autoPanOnConnect:$o,autoPanOnNodeDrag:hn,autoPanSpeed:Zp,onError:Bo,connectionRadius:Xp,isValidConnection:Pa,selectNodesOnDrag:Ie,nodeDragThreshold:Jp,connectionDragThreshold:Z0,onBeforeDelete:V,debug:X0,ariaLabelConfig:tm,zIndexMode:Js}),ge.jsx(Nie,{onInit:f,onNodeClick:u,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:T,onNodeDoubleClick:O,nodeTypes:a,edgeTypes:s,connectionLineType:K,connectionLineStyle:X,connectionLineComponent:ee,connectionLineContainerStyle:ce,selectionKeyCode:de,selectionOnDrag:ie,selectionMode:J,deleteKeyCode:he,multiSelectionKeyCode:ye,panActivationKeyCode:pe,zoomActivationKeyCode:te,onlyRenderVisibleElements:Ye,defaultViewport:Oe,translateExtent:Re,minZoom:_e,maxZoom:Ee,preventScrolling:Ze,zoomOnScroll:xr,zoomOnPinch:Xt,zoomOnDoubleClick:If,panOnScroll:qn,panOnScrollSpeed:_r,panOnScrollMode:Sn,panOnDrag:bu,onPaneClick:Lf,onPaneMouseEnter:Oa,onPaneMouseMove:wu,onPaneMouseLeave:xu,onPaneScroll:Ta,onPaneContextMenu:_u,paneClickDistance:Qs,nodeClickDistance:K0,onSelectionContextMenu:G,onSelectionStart:q,onSelectionEnd:H,onReconnect:zf,onReconnectStart:Zs,onReconnectEnd:Y0,onEdgeContextMenu:Gp,onEdgeDoubleClick:qp,onEdgeMouseEnter:Vp,onEdgeMouseMove:jf,onEdgeMouseLeave:$f,reconnectRadius:Kp,defaultMarkerColor:Gn,noDragClassName:En,noWheelClassName:or,noPanClassName:Ma,rfId:el,disableKeyboardA11y:jo,nodeExtent:ct,viewport:Eu,onViewportChange:Au}),ge.jsx(ure,{onSelectionChange:$}),Hp,ge.jsx(ire,{proOptions:Xs,position:Qp}),ge.jsx(rre,{rfId:el,disableKeyboardA11y:jo})]})})}var Jke=jj(zie);function jie({dimensions:e,lineWidth:t,variant:n,className:r}){return ge.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:_n(["react-flow__background-pattern",n,r])})}function $ie({radius:e,className:t}){return ge.jsx("circle",{cx:e,cy:e,r:e,className:_n(["react-flow__background-pattern","dots",t])})}var zs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(zs||(zs={}));const Bie={[zs.Dots]:1,[zs.Lines]:1,[zs.Cross]:6},Uie=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function l6({id:e,variant:t=zs.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:s,bgColor:u,style:c,className:f,patternClassName:h}){const p=k.useRef(null),{transform:g,patternId:v}=gt(Uie,Kt),y=r||Bie[t],b=t===zs.Dots,w=t===zs.Cross,_=Array.isArray(n)?n:[n,n],C=[_[0]*g[2]||1,_[1]*g[2]||1],E=y*g[2],S=Array.isArray(a)?a:[a,a],T=w?[E,E]:C,O=[S[0]*g[2]||1+T[0]/2,S[1]*g[2]||1+T[1]/2],M=`${v}${e||""}`;return ge.jsxs("svg",{className:_n(["react-flow__background",f]),style:{...c,...f0,"--xy-background-color-props":u,"--xy-background-pattern-color-props":s},ref:p,"data-testid":"rf__background",children:[ge.jsx("pattern",{id:M,x:g[0]%C[0],y:g[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${O[0]},-${O[1]})`,children:b?ge.jsx($ie,{radius:E/2,className:h}):ge.jsx(jie,{dimensions:T,lineWidth:i,variant:t,className:h})}),ge.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${M})`})]})}l6.displayName="Background";const eCe=k.memo(l6);function Fie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:ge.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Hie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:ge.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Gie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:ge.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function qie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ge.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Vie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ge.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Ig({children:e,className:t,...n}){return ge.jsx("button",{type:"button",className:_n(["react-flow__controls-button",t]),...n,children:e})}const Kie=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function u6({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:s,onFitView:u,onInteractiveChange:c,className:f,children:h,position:p="bottom-left",orientation:g="vertical","aria-label":v}){const y=Yt(),{isInteractive:b,minZoomReached:w,maxZoomReached:_,ariaLabelConfig:C}=gt(Kie,Kt),{zoomIn:E,zoomOut:S,fitView:T}=PE(),O=()=>{E(),a==null||a()},M=()=>{S(),s==null||s()},P=()=>{T(i),u==null||u()},R=()=>{y.setState({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),c==null||c(!b)},z=g==="horizontal"?"horizontal":"vertical";return ge.jsxs(c0,{className:_n(["react-flow__controls",z,f]),position:p,style:e,"data-testid":"rf__controls","aria-label":v??C["controls.ariaLabel"],children:[t&&ge.jsxs(ge.Fragment,{children:[ge.jsx(Ig,{onClick:O,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:_,children:ge.jsx(Fie,{})}),ge.jsx(Ig,{onClick:M,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:ge.jsx(Hie,{})})]}),n&&ge.jsx(Ig,{className:"react-flow__controls-fitview",onClick:P,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:ge.jsx(Gie,{})}),r&&ge.jsx(Ig,{className:"react-flow__controls-interactive",onClick:R,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:b?ge.jsx(Vie,{}):ge.jsx(qie,{})}),h]})}u6.displayName="Controls";const tCe=k.memo(u6);function Yie({id:e,x:t,y:n,width:r,height:i,style:a,color:s,strokeColor:u,strokeWidth:c,className:f,borderRadius:h,shapeRendering:p,selected:g,onClick:v}){const{background:y,backgroundColor:b}=a||{},w=s||y||b;return ge.jsx("rect",{className:_n(["react-flow__minimap-node",{selected:g},f]),x:t,y:n,rx:h,ry:h,width:r,height:i,style:{fill:w,stroke:u,strokeWidth:c},shapeRendering:p,onClick:v?_=>v(_,e):void 0})}const Wie=k.memo(Yie),Qie=e=>e.nodes.map(t=>t.id),Fw=e=>e instanceof Function?e:()=>e;function Zie({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=Wie,onClick:s}){const u=gt(Qie,Kt),c=Fw(t),f=Fw(e),h=Fw(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return ge.jsx(ge.Fragment,{children:u.map(g=>ge.jsx(Jie,{id:g,nodeColorFunc:c,nodeStrokeColorFunc:f,nodeClassNameFunc:h,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:s,shapeRendering:p},g))})}function Xie({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:s,NodeComponent:u,onClick:c}){const{node:f,x:h,y:p,width:g,height:v}=gt(y=>{const b=y.nodeLookup.get(e);if(!b)return{node:void 0,x:0,y:0,width:0,height:0};const w=b.internals.userNode,{x:_,y:C}=b.internals.positionAbsolute,{width:E,height:S}=Oo(w);return{node:w,x:_,y:C,width:E,height:S}},Kt);return!f||f.hidden||!fj(f)?null:ge.jsx(u,{x:h,y:p,width:g,height:v,style:f.style,selected:!!f.selected,className:r(f),color:t(f),borderRadius:i,strokeColor:n(f),strokeWidth:a,shapeRendering:s,onClick:c,id:f.id})}const Jie=k.memo(Xie);var eae=k.memo(Zie);const tae=200,nae=150,rae=e=>!e.hidden,iae=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?cj(vp(e.nodeLookup,{filter:rae}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},aae="react-flow__minimap-desc";function c6({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:u,bgColor:c,maskColor:f,maskStrokeColor:h,maskStrokeWidth:p,position:g="bottom-right",onClick:v,onNodeClick:y,pannable:b=!1,zoomable:w=!1,ariaLabel:_,inversePan:C,zoomStep:E=1,offsetScale:S=5}){const T=Yt(),O=k.useRef(null),{boundingRect:M,viewBB:P,rfId:R,panZoom:z,translateExtent:D,flowWidth:N,flowHeight:$,ariaLabelConfig:I}=gt(iae,Kt),U=(e==null?void 0:e.width)??tae,j=(e==null?void 0:e.height)??nae,G=M.width/U,q=M.height/j,H=Math.max(G,q),V=H*U,B=H*j,K=S*H,X=M.x-(V-M.width)/2-K,ee=M.y-(B-M.height)/2-K,ce=V+K*2,he=B+K*2,de=`${aae}-${R}`,ie=k.useRef(0),J=k.useRef();ie.current=H,k.useEffect(()=>{if(O.current&&z)return J.current=Ane({domNode:O.current,panZoom:z,getTransform:()=>T.getState().transform,getViewScale:()=>ie.current}),()=>{var Ce;(Ce=J.current)==null||Ce.destroy()}},[z]),k.useEffect(()=>{var Ce;(Ce=J.current)==null||Ce.update({translateExtent:D,width:N,height:$,inversePan:C,pannable:b,zoomStep:E,zoomable:w})},[b,w,C,E,D,N,$]);const pe=v?Ce=>{var Ie;const[Se,Ye]=((Ie=J.current)==null?void 0:Ie.pointer(Ce))||[0,0];v(Ce,{x:Se,y:Ye})}:void 0,ye=y?k.useCallback((Ce,Se)=>{const Ye=T.getState().nodeLookup.get(Se).internals.userNode;y(Ce,Ye)},[]):void 0,te=_??I["minimap.ariaLabel"];return ge.jsx(c0,{position:g,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*H:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:_n(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:ge.jsxs("svg",{width:U,height:j,viewBox:`${X} ${ee} ${ce} ${he}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":de,ref:O,onClick:pe,children:[te&&ge.jsx("title",{id:de,children:te}),ge.jsx(eae,{onClick:ye,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:u}),ge.jsx("path",{className:"react-flow__minimap-mask",d:`M${X-K},${ee-K}h${ce+K*2}v${he+K*2}h${-ce-K*2}z
|
|
885
|
+
M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}c6.displayName="MiniMap";k.memo(c6);const oae=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,sae={[lf.Line]:"right",[lf.Handle]:"bottom-right"};function lae({nodeId:e,position:t,variant:n=lf.Handle,className:r,style:i=void 0,children:a,color:s,minWidth:u=10,minHeight:c=10,maxWidth:f=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:g,autoScale:v=!0,shouldResize:y,onResizeStart:b,onResize:w,onResizeEnd:_}){const C=Fj(),E=typeof e=="string"?e:C,S=Yt(),T=k.useRef(null),O=n===lf.Handle,M=gt(k.useCallback(oae(O&&v),[O,v]),Kt),P=k.useRef(null),R=t??sae[n];k.useEffect(()=>{if(!(!T.current||!E))return P.current||(P.current=$ne({domNode:T.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:D,transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U,domNode:j}=S.getState();return{nodeLookup:D,transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U,paneDomNode:j}},onChange:(D,N)=>{const{triggerNodeChanges:$,nodeLookup:I,parentLookup:U,nodeOrigin:j}=S.getState(),G=[],q={x:D.x,y:D.y},H=I.get(E);if(H&&H.expandParent&&H.parentId){const V=H.origin??j,B=D.width??H.measured.width??0,K=D.height??H.measured.height??0,X={id:H.id,parentId:H.parentId,rect:{width:B,height:K,...dj({x:D.x??H.position.x,y:D.y??H.position.y},{width:B,height:K},H.parentId,I,V)}},ee=ME([X],I,U,j);G.push(...ee),q.x=D.x?Math.max(V[0]*B,D.x):void 0,q.y=D.y?Math.max(V[1]*K,D.y):void 0}if(q.x!==void 0&&q.y!==void 0){const V={id:E,type:"position",position:{...q}};G.push(V)}if(D.width!==void 0&&D.height!==void 0){const B={id:E,type:"dimensions",resizing:!0,setAttributes:g?g==="horizontal"?"width":"height":!0,dimensions:{width:D.width,height:D.height}};G.push(B)}for(const V of N){const B={...V,type:"position"};G.push(B)}$(G)},onEnd:({width:D,height:N})=>{const $={id:E,type:"dimensions",resizing:!1,dimensions:{width:D,height:N}};S.getState().triggerNodeChanges([$])}})),P.current.update({controlPosition:R,boundaries:{minWidth:u,minHeight:c,maxWidth:f,maxHeight:h},keepAspectRatio:p,resizeDirection:g,onResizeStart:b,onResize:w,onResizeEnd:_,shouldResize:y}),()=>{var D;(D=P.current)==null||D.destroy()}},[R,u,c,f,h,p,b,w,_,y]);const z=R.split("-");return ge.jsx("div",{className:_n(["react-flow__resize-control","nodrag",...z,n,r]),ref:T,style:{...i,scale:M,...s&&{[O?"backgroundColor":"borderColor"]:s}},children:a})}k.memo(lae);const VN=e=>{let t;const n=new Set,r=(f,h)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const g=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,g))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>c,subscribe:f=>(n.add(f),()=>n.delete(f))},c=t=e(r,i,u);return u},uae=(e=>e?VN(e):VN),cae=e=>e;function fae(e,t=cae){const n=cn.useSyncExternalStore(e.subscribe,cn.useCallback(()=>t(e.getState()),[e,t]),cn.useCallback(()=>t(e.getInitialState()),[e,t]));return cn.useDebugValue(n),n}const KN=e=>{const t=uae(e),n=r=>fae(t,r);return Object.assign(n,t),n},nCe=(e=>e?KN(e):KN);var dae=["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 RE(e){if(typeof e!="string")return!1;var t=dae;return t.includes(e)}var hae=["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"],pae=new Set(hae);function f6(e){return typeof e!="string"?!1:pae.has(e)}function d6(e){return typeof e=="string"&&e.startsWith("data-")}function ei(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(f6(n)||d6(n))&&(t[n]=e[n]);return t}function wp(e){if(e==null)return null;if(k.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ei(t)}return typeof e=="object"&&!Array.isArray(e)?ei(e):null}function nr(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(f6(n)||d6(n)||RE(n))&&(t[n]=e[n]);return t}function mae(e){return e==null?null:k.isValidElement(e)?nr(e.props):typeof e=="object"&&!Array.isArray(e)?nr(e):null}var gae=["children","width","height","viewBox","className","style","title","desc"];function qS(){return qS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qS.apply(null,arguments)}function vae(e,t){if(e==null)return{};var n,r,i=yae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var h6=k.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:s,style:u,title:c,desc:f}=e,h=vae(e,gae),p=a||{width:r,height:i,x:0,y:0},g=Et("recharts-surface",s);return k.createElement("svg",qS({},nr(h),{className:g,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),k.createElement("title",null,c),k.createElement("desc",null,f),n)}),bae=["children","className"];function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(null,arguments)}function wae(e,t){if(e==null)return{};var n,r,i=xae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $n=k.forwardRef((e,t)=>{var{children:n,className:r}=e,i=wae(e,bae),a=Et("recharts-layer",r);return k.createElement("g",VS({className:a},nr(i),{ref:t}),n)}),_ae=k.createContext(null);function zt(e){return function(){return e}}const p6=Math.cos,Zv=Math.sin,Wi=Math.sqrt,Xv=Math.PI,h0=2*Xv,KS=Math.PI,YS=2*KS,kl=1e-6,Sae=YS-kl;function m6(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Eae(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return m6;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Aae{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?m6:Eae(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,c=r-t,f=i-n,h=s-t,p=u-n,g=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>kl)if(!(Math.abs(p*c-f*h)>kl)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,y=i-u,b=c*c+f*f,w=v*v+y*y,_=Math.sqrt(b),C=Math.sqrt(g),E=a*Math.tan((KS-Math.acos((b+g-w)/(2*_*C)))/2),S=E/C,T=E/_;Math.abs(S-1)>kl&&this._append`L${t+S*h},${n+S*p}`,this._append`A${a},${a},0,0,${+(p*v>h*y)},${this._x1=t+T*c},${this._y1=n+T*f}`}}arc(t,n,r,i,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),c=r*Math.sin(i),f=t+u,h=n+c,p=1^s,g=s?i-a:a-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>kl||Math.abs(this._y1-h)>kl)&&this._append`L${f},${h}`,r&&(g<0&&(g=g%YS+YS),g>Sae?this._append`A${r},${r},0,1,${p},${t-u},${n-c}A${r},${r},0,1,${p},${this._x1=f},${this._y1=h}`:g>kl&&this._append`A${r},${r},0,${+(g>=KS)},${p},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function DE(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Aae(t)}function IE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function g6(e){this._context=e}g6.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 p0(e){return new g6(e)}function v6(e){return e[0]}function y6(e){return e[1]}function b6(e,t){var n=zt(!0),r=null,i=p0,a=null,s=DE(u);e=typeof e=="function"?e:e===void 0?v6:zt(e),t=typeof t=="function"?t:t===void 0?y6:zt(t);function u(c){var f,h=(c=IE(c)).length,p,g=!1,v;for(r==null&&(a=i(v=s())),f=0;f<=h;++f)!(f<h&&n(p=c[f],f,c))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+e(p,f,c),+t(p,f,c));if(v)return a=null,v+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:zt(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:zt(+c),u):t},u.defined=function(c){return arguments.length?(n=typeof c=="function"?c:zt(!!c),u):n},u.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),u):i},u.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),u):r},u}function Lg(e,t,n){var r=null,i=zt(!0),a=null,s=p0,u=null,c=DE(f);e=typeof e=="function"?e:e===void 0?v6:zt(+e),t=typeof t=="function"?t:zt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?y6:zt(+n);function f(p){var g,v,y,b=(p=IE(p)).length,w,_=!1,C,E=new Array(b),S=new Array(b);for(a==null&&(u=s(C=c())),g=0;g<=b;++g){if(!(g<b&&i(w=p[g],g,p))===_)if(_=!_)v=g,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=g-1;y>=v;--y)u.point(E[y],S[y]);u.lineEnd(),u.areaEnd()}_&&(E[g]=+e(w,g,p),S[g]=+t(w,g,p),u.point(r?+r(w,g,p):E[g],n?+n(w,g,p):S[g]))}if(C)return u=null,C+""||null}function h(){return b6().defined(i).curve(s).context(a)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:zt(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:zt(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:zt(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:zt(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:zt(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:zt(+p),f):n},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(n)},f.lineX1=function(){return h().x(r).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:zt(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,a!=null&&(u=s(a)),f):s},f.context=function(p){return arguments.length?(p==null?a=u=null:u=s(a=p),f):a},f}class w6{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function kae(e){return new w6(e,!0)}function Cae(e){return new w6(e,!1)}const LE={draw(e,t){const n=Wi(t/Xv);e.moveTo(n,0),e.arc(0,0,n,0,h0)}},Oae={draw(e,t){const n=Wi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},x6=Wi(1/3),Tae=x6*2,Mae={draw(e,t){const n=Wi(t/Tae),r=n*x6;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Pae={draw(e,t){const n=Wi(t),r=-n/2;e.rect(r,r,n,n)}},Nae=.8908130915292852,_6=Zv(Xv/10)/Zv(7*Xv/10),Rae=Zv(h0/10)*_6,Dae=-p6(h0/10)*_6,Iae={draw(e,t){const n=Wi(t*Nae),r=Rae*n,i=Dae*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const s=h0*a/5,u=p6(s),c=Zv(s);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*i,c*r+u*i)}e.closePath()}},Hw=Wi(3),Lae={draw(e,t){const n=-Wi(t/(Hw*3));e.moveTo(0,n*2),e.lineTo(-Hw*n,-n),e.lineTo(Hw*n,-n),e.closePath()}},di=-.5,hi=Wi(3)/2,WS=1/Wi(12),zae=(WS/2+1)*3,jae={draw(e,t){const n=Wi(t/zae),r=n/2,i=n*WS,a=r,s=n*WS+n,u=-a,c=s;e.moveTo(r,i),e.lineTo(a,s),e.lineTo(u,c),e.lineTo(di*r-hi*i,hi*r+di*i),e.lineTo(di*a-hi*s,hi*a+di*s),e.lineTo(di*u-hi*c,hi*u+di*c),e.lineTo(di*r+hi*i,di*i-hi*r),e.lineTo(di*a+hi*s,di*s-hi*a),e.lineTo(di*u+hi*c,di*c-hi*u),e.closePath()}};function $ae(e,t){let n=null,r=DE(i);e=typeof e=="function"?e:zt(e||LE),t=typeof t=="function"?t:zt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:zt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:zt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Jv(){}function ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function S6(e){this._context=e}S6.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:ey(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:ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bae(e){return new S6(e)}function E6(e){this._context=e}E6.prototype={areaStart:Jv,areaEnd:Jv,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:ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uae(e){return new E6(e)}function A6(e){this._context=e}A6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fae(e){return new A6(e)}function k6(e){this._context=e}k6.prototype={areaStart:Jv,areaEnd:Jv,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 Hae(e){return new k6(e)}function YN(e){return e<0?-1:1}function WN(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(a*i+s*r)/(r+i);return(YN(a)+YN(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function QN(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Gw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,s-u*n,a,s)}function ty(e){this._context=e}ty.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:Gw(this,this._t0,QN(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Gw(this,QN(this,n=WN(this,e,t)),n);break;default:Gw(this,this._t0,n=WN(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function C6(e){this._context=new O6(e)}(C6.prototype=Object.create(ty.prototype)).point=function(e,t){ty.prototype.point.call(this,t,e)};function O6(e){this._context=e}O6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Gae(e){return new ty(e)}function qae(e){return new C6(e)}function T6(e){this._context=e}T6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ZN(e),i=ZN(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ZN(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),s=new Array(n);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Vae(e){return new T6(e)}function m0(e,t){this._context=e,this._t=t}m0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Kae(e){return new m0(e,.5)}function Yae(e){return new m0(e,0)}function Wae(e){return new m0(e,1)}function su(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,u=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function QS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Qae(e,t){return e[t]}function Zae(e){const t=[];return t.key=e,t}function Xae(){var e=zt([]),t=QS,n=su,r=Qae;function i(a){var s=Array.from(e.apply(this,arguments),Zae),u,c=s.length,f=-1,h;for(const p of a)for(u=0,++f;u<c;++u)(s[u][f]=[0,+r(p,s[u].key,f,a)]).data=p;for(u=0,h=IE(t(s));u<c;++u)s[h[u]].index=u;return n(s,h),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:zt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:zt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?QS:typeof a=="function"?a:zt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??su,i):n},i}function Jae(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,s;i<a;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}su(e,t)}}function eoe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}su(e,t)}}function toe(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,s;r<a;++r){for(var u=0,c=0,f=0;u<s;++u){for(var h=e[t[u]],p=h[r][1]||0,g=h[r-1][1]||0,v=(p-g)/2,y=0;y<u;++y){var b=e[t[y]],w=b[r][1]||0,_=b[r-1][1]||0;v+=w-_}c+=p,f+=v*p}i[r-1][1]+=i[r-1][0]=n,c&&(n-=f/c)}i[r-1][1]+=i[r-1][0]=n,su(e,t)}}var qw={},Vw={},XN;function noe(){return XN||(XN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Vw)),Vw}var Kw={},JN;function M6(){return JN||(JN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Kw)),Kw}var Yw={},eR;function zE(){return eR||(eR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(Yw)),Yw}var Ww={},Qw={},tR;function roe(){return tR||(tR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Qw)),Qw}var nR;function jE(){return nR||(nR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=roe(),n=zE();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],s=i.length;if(s===0)return a;let u=0,c="",f="",h=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<s;){const p=i[u];f?p==="\\"&&u+1<s?(u++,c+=i[u]):p===f?f="":c+=p:h?p==='"'||p==="'"?f=p:p==="]"?(h=!1,a.push(c),c=""):c+=p:p==="["?(h=!0,c&&(a.push(c),c="")):p==="."?c&&(a.push(c),c=""):c+=p,u++}return c&&a.push(c),a}e.toPath=r})(Ww)),Ww}var rR;function $E(){return rR||(rR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=noe(),n=M6(),r=zE(),i=jE();function a(u,c,f){if(u==null)return f;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return f;const h=u[c];return h===void 0?n.isDeepKey(c)?a(u,i.toPath(c),f):f:h}case"number":case"symbol":{typeof c=="number"&&(c=r.toKey(c));const h=u[c];return h===void 0?f:h}default:{if(Array.isArray(c))return s(u,c,f);if(Object.is(c==null?void 0:c.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return f;const h=u[c];return h===void 0?f:h}}}function s(u,c,f){if(c.length===0)return f;let h=u;for(let p=0;p<c.length;p++){if(h==null||t.isUnsafeProperty(c[p]))return f;h=h[c[p]]}return h===void 0?f:h}e.get=a})(qw)),qw}var Zw,iR;function ioe(){return iR||(iR=1,Zw=$E().get),Zw}var aoe=ioe();const uf=ni(aoe);var ooe=4;function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ooe,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function rn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,a,s)=>{var u=n[s-1];return typeof u=="string"?i+u+a:u!==void 0?i+Ds(u)+a:i+a},"")}var Ir=e=>e===0?0:e>0?1:-1,Vi=e=>typeof e=="number"&&e!=+e,lu=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Ne=e=>(typeof e=="number"||e instanceof Number)&&!Vi(e),xi=e=>Ne(e)||typeof e=="string",soe=0,Uh=e=>{var t=++soe;return"".concat(e||"").concat(t)},Ki=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ne(t)&&typeof t!="string")return r;var a;if(lu(t)){if(n==null)return r;var s=t.indexOf("%");a=n*parseFloat(t.slice(0,s))/100}else a=+t;return Vi(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},P6=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Rt(e,t,n){return Ne(e)&&Ne(t)?Ds(e+n*(t-e)):t}function N6(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):uf(r,t))===n)}var Ht=e=>e===null||typeof e>"u",xp=e=>Ht(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Lr(e){return e!=null}function To(){}var loe=["type","size","sizeType"];function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZS.apply(null,arguments)}function aR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(n),!0).forEach(function(r){uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=foe(e,"string");return typeof t=="symbol"?t:t+""}function foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function doe(e,t){if(e==null)return{};var n,r,i=hoe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hoe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var R6={symbolCircle:LE,symbolCross:Oae,symbolDiamond:Mae,symbolSquare:Pae,symbolStar:Iae,symbolTriangle:Lae,symbolWye:jae},poe=Math.PI/180,moe=e=>{var t="symbol".concat(xp(e));return R6[t]||LE},goe=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*poe;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},voe=(e,t)=>{R6["symbol".concat(xp(e))]=t},D6=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=doe(e,loe),a=oR(oR({},i),{},{type:t,size:n,sizeType:r}),s="circle";typeof t=="string"&&(s=t);var u=()=>{var g=moe(s),v=$ae().type(g).size(goe(n,r,s)),y=v();if(y!==null)return y},{className:c,cx:f,cy:h}=a,p=nr(a);return Ne(f)&&Ne(h)&&Ne(n)?k.createElement("path",ZS({},p,{className:Et("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(h,")"),d:u()})):null};D6.registerSymbol=voe;var I6=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,BE=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(k.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{RE(i)&&typeof n[i]=="function"&&(r[i]=(a=>n[i](n,a)))}),r},yoe=(e,t,n)=>r=>(e(t,n,r),null),UE=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];RE(i)&&typeof a=="function"&&(r||(r={}),r[i]=yoe(a,t,n))}),r};function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function boe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){woe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function woe(e,t,n){return(t=xoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xoe(e){var t=_oe(e,"string");return typeof t=="symbol"?t:t+""}function _oe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rr(e,t){var n=boe({},e),r=t,i=Object.keys(t),a=i.reduce((s,u)=>(s[u]===void 0&&r[u]!==void 0&&(s[u]=r[u]),s),n);return a}var Xw={},Jw={},lR;function Soe(){return lR||(lR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let a=0;a<n.length;a++){const s=n[a],u=r(s,a,n);i.has(u)||i.set(u,s)}return Array.from(i.values())}e.uniqBy=t})(Jw)),Jw}var ex={},uR;function Eoe(){return uR||(uR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(ex)),ex}var tx={},cR;function L6(){return cR||(cR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(tx)),tx}var nx={},rx={},ix={},fR;function Aoe(){return fR||(fR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(ix)),ix}var dR;function z6(){return dR||(dR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Aoe();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(rx)),rx}var ax={},hR;function koe(){return hR||(hR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(ax)),ax}var pR;function Coe(){return pR||(pR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z6(),n=koe();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(nx)),nx}var ox={},sx={},mR;function Ooe(){return mR||(mR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$E();function n(r){return function(i){return t.get(i,r)}}e.property=n})(sx)),sx}var lx={},ux={},cx={},fx={},gR;function j6(){return gR||(gR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(fx)),fx}var dx={},vR;function $6(){return vR||(vR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(dx)),dx}var hx={},yR;function B6(){return yR||(yR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(hx)),hx}var bR;function Toe(){return bR||(bR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j6(),n=$6(),r=B6();function i(h,p,g){return typeof g!="function"?i(h,p,()=>{}):a(h,p,function v(y,b,w,_,C,E){const S=g(y,b,w,_,C,E);return S!==void 0?!!S:a(y,b,v,E)},new Map)}function a(h,p,g,v){if(p===h)return!0;switch(typeof p){case"object":return s(h,p,g,v);case"function":return Object.keys(p).length>0?a(h,{...p},g,v):r.isEqualsSameValueZero(h,p);default:return t.isObject(h)?typeof p=="string"?p==="":!0:r.isEqualsSameValueZero(h,p)}}function s(h,p,g,v){if(p==null)return!0;if(Array.isArray(p))return c(h,p,g,v);if(p instanceof Map)return u(h,p,g,v);if(p instanceof Set)return f(h,p,g,v);const y=Object.keys(p);if(h==null||n.isPrimitive(h))return y.length===0;if(y.length===0)return!0;if(v!=null&&v.has(p))return v.get(p)===h;v==null||v.set(p,h);try{for(let b=0;b<y.length;b++){const w=y[b];if(!n.isPrimitive(h)&&!(w in h)||p[w]===void 0&&h[w]!==void 0||p[w]===null&&h[w]!==null||!g(h[w],p[w],w,h,p,v))return!1}return!0}finally{v==null||v.delete(p)}}function u(h,p,g,v){if(p.size===0)return!0;if(!(h instanceof Map))return!1;for(const[y,b]of p.entries()){const w=h.get(y);if(g(w,b,y,h,p,v)===!1)return!1}return!0}function c(h,p,g,v){if(p.length===0)return!0;if(!Array.isArray(h))return!1;const y=new Set;for(let b=0;b<p.length;b++){const w=p[b];let _=!1;for(let C=0;C<h.length;C++){if(y.has(C))continue;const E=h[C];let S=!1;if(g(E,w,b,h,p,v)&&(S=!0),S){y.add(C),_=!0;break}}if(!_)return!1}return!0}function f(h,p,g,v){return p.size===0?!0:h instanceof Set?c([...h],[...p],g,v):!1}e.isMatchWith=i,e.isSetMatch=f})(cx)),cx}var wR;function U6(){return wR||(wR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Toe();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(ux)),ux}var px={},mx={},gx={},xR;function Moe(){return xR||(xR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(gx)),gx}var vx={},_R;function FE(){return _R||(_R=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(vx)),vx}var yx={},SR;function F6(){return SR||(SR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",u="[object Date]",c="[object Map]",f="[object Set]",h="[object Array]",p="[object Function]",g="[object ArrayBuffer]",v="[object Object]",y="[object Error]",b="[object DataView]",w="[object Uint8Array]",_="[object Uint8ClampedArray]",C="[object Uint16Array]",E="[object Uint32Array]",S="[object BigUint64Array]",T="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",P="[object BigInt64Array]",R="[object Float32Array]",z="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=g,e.arrayTag=h,e.bigInt64ArrayTag=P,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=b,e.dateTag=u,e.errorTag=y,e.float32ArrayTag=R,e.float64ArrayTag=z,e.functionTag=p,e.int16ArrayTag=O,e.int32ArrayTag=M,e.int8ArrayTag=T,e.mapTag=c,e.numberTag=r,e.objectTag=v,e.regexpTag=t,e.setTag=f,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=C,e.uint32ArrayTag=E,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=_})(yx)),yx}var bx={},ER;function Poe(){return ER||(ER=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(bx)),bx}var AR;function H6(){return AR||(AR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Moe(),n=FE(),r=F6(),i=$6(),a=Poe();function s(h,p){return u(h,void 0,h,new Map,p)}function u(h,p,g,v=new Map,y=void 0){const b=y==null?void 0:y(h,p,g,v);if(b!==void 0)return b;if(i.isPrimitive(h))return h;if(v.has(h))return v.get(h);if(Array.isArray(h)){const w=new Array(h.length);v.set(h,w);for(let _=0;_<h.length;_++)w[_]=u(h[_],_,g,v,y);return Object.hasOwn(h,"index")&&(w.index=h.index),Object.hasOwn(h,"input")&&(w.input=h.input),w}if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const w=new RegExp(h.source,h.flags);return w.lastIndex=h.lastIndex,w}if(h instanceof Map){const w=new Map;v.set(h,w);for(const[_,C]of h)w.set(_,u(C,_,g,v,y));return w}if(h instanceof Set){const w=new Set;v.set(h,w);for(const _ of h)w.add(u(_,void 0,g,v,y));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(h))return h.subarray();if(a.isTypedArray(h)){const w=new(Object.getPrototypeOf(h)).constructor(h.length);v.set(h,w);for(let _=0;_<h.length;_++)w[_]=u(h[_],_,g,v,y);return w}if(h instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&h instanceof SharedArrayBuffer)return h.slice(0);if(h instanceof DataView){const w=new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);return v.set(h,w),c(w,h,g,v,y),w}if(typeof File<"u"&&h instanceof File){const w=new File([h],h.name,{type:h.type});return v.set(h,w),c(w,h,g,v,y),w}if(typeof Blob<"u"&&h instanceof Blob){const w=new Blob([h],{type:h.type});return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof Error){const w=structuredClone(h);return v.set(h,w),w.message=h.message,w.name=h.name,w.stack=h.stack,w.cause=h.cause,w.constructor=h.constructor,c(w,h,g,v,y),w}if(h instanceof Boolean){const w=new Boolean(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof Number){const w=new Number(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof String){const w=new String(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(typeof h=="object"&&f(h)){const w=Object.create(Object.getPrototypeOf(h));return v.set(h,w),c(w,h,g,v,y),w}return h}function c(h,p,g=h,v,y){const b=[...Object.keys(p),...t.getSymbols(p)];for(let w=0;w<b.length;w++){const _=b[w],C=Object.getOwnPropertyDescriptor(h,_);(C==null||C.writable)&&(h[_]=u(p[_],_,g,v,y))}}function f(h){switch(n.getTag(h)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=u,e.copyProperties=c})(mx)),mx}var kR;function Noe(){return kR||(kR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H6();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(px)),px}var CR;function Roe(){return CR||(CR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U6(),n=Noe();function r(i){return i=n.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=r})(lx)),lx}var wx={},xx={},_x={},OR;function Doe(){return OR||(OR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H6(),n=FE(),r=F6();function i(a,s){return t.cloneDeepWith(a,(u,c,f,h)=>{const p=s==null?void 0:s(u,c,f,h);if(p!==void 0)return p;if(typeof a=="object"){if(n.getTag(a)===r.objectTag&&typeof a.constructor!="function"){const g={};return h.set(a,g),t.copyProperties(g,a,f,h),g}switch(Object.prototype.toString.call(a)){case r.numberTag:case r.stringTag:case r.booleanTag:{const g=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(g,a),g}case r.argumentsTag:{const g={};return t.copyProperties(g,a),g.length=a.length,g[Symbol.iterator]=a[Symbol.iterator],g}default:return}}})}e.cloneDeepWith=i})(_x)),_x}var TR;function Ioe(){return TR||(TR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Doe();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(xx)),xx}var Sx={},Ex={},MR;function G6(){return MR||(MR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Ex)),Ex}var Ax={},PR;function Loe(){return PR||(PR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FE();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Ax)),Ax}var NR;function zoe(){return NR||(NR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M6(),n=G6(),r=Loe(),i=jE();function a(s,u){let c;if(Array.isArray(u)?c=u:typeof u=="string"&&t.isDeepKey(u)&&(s==null?void 0:s[u])==null?c=i.toPath(u):c=[u],c.length===0)return!1;let f=s;for(let h=0;h<c.length;h++){const p=c[h];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||r.isArguments(f))&&n.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=a})(Sx)),Sx}var RR;function joe(){return RR||(RR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U6(),n=zE(),r=Ioe(),i=$E(),a=zoe();function s(u,c){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return c=r.cloneDeep(c),function(f){const h=i.get(f,u);return h===void 0?a.has(f,u):c===void 0?h===void 0:t.isMatch(h,c)}}e.matchesProperty=s})(wx)),wx}var DR;function $oe(){return DR||(DR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L6(),n=Ooe(),r=Roe(),i=joe();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=a})(ox)),ox}var IR;function Boe(){return IR||(IR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Soe(),n=Eoe(),r=L6(),i=Coe(),a=$oe();function s(u,c=r.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),n.ary(a.iteratee(c),1)):[]}e.uniqBy=s})(Xw)),Xw}var kx,LR;function Uoe(){return LR||(LR=1,kx=Boe().uniqBy),kx}var Foe=Uoe();const zR=ni(Foe);function Hoe(e,t,n){return t===!0?zR(e,n):typeof t=="function"?zR(e,t):e}var HE=k.createContext(null),Goe=e=>e,Wt=()=>{var e=k.useContext(HE);return e?e.store.dispatch:Goe},cv=()=>{},qoe=()=>cv,Voe=(e,t)=>e===t;function Ue(e){var t=k.useContext(HE),n=k.useMemo(()=>t?r=>{if(r!=null)return e(r)}:cv,[t,e]);return Pj.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:qoe,t?t.store.getState:cv,t?t.store.getState:cv,n,Voe)}var Cx={},Ox={},Tx={},jR;function Koe(){return jR||(jR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const s=t(r),u=t(i);if(s===u&&s===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?u-s:s-u}return 0};e.compareValues=n})(Tx)),Tx}var Mx={},Px={},$R;function q6(){return $R||($R=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Px)),Px}var BR;function Yoe(){return BR||(BR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q6(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i})(Mx)),Mx}var UR;function Woe(){return UR||(UR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Koe(),n=Yoe(),r=jE();function i(a,s,u,c){if(a==null)return[];u=c?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const f=(v,y)=>{let b=v;for(let w=0;w<y.length&&b!=null;++w)b=b[y[w]];return b},h=(v,y)=>y==null||v==null?y:typeof v=="object"&&"key"in v?Object.hasOwn(y,v.key)?y[v.key]:f(y,v.path):typeof v=="function"?v(y):Array.isArray(v)?f(y,v):typeof y=="object"?y[v]:y,p=s.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||n.isKey(v)?v:{key:v,path:r.toPath(v)}));return a.map(v=>({original:v,criteria:p.map(y=>h(y,v))})).slice().sort((v,y)=>{for(let b=0;b<p.length;b++){const w=t.compareValues(v.criteria[b],y.criteria[b],u[b]);if(w!==0)return w}return 0}).map(v=>v.original)}e.orderBy=i})(Ox)),Ox}var Nx={},FR;function Qoe(){return FR||(FR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),s=(u,c)=>{for(let f=0;f<u.length;f++){const h=u[f];Array.isArray(h)&&c<a?s(h,c+1):i.push(h)}};return s(n,0),i}e.flatten=t})(Nx)),Nx}var Rx={},HR;function V6(){return HR||(HR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G6(),n=z6(),r=j6(),i=B6();function a(s,u,c){return r.isObject(c)&&(typeof u=="number"&&n.isArrayLike(c)&&t.isIndex(u)&&u<c.length||typeof u=="string"&&u in c)?i.isEqualsSameValueZero(c[u],s):!1}e.isIterateeCall=a})(Rx)),Rx}var GR;function Zoe(){return GR||(GR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Woe(),n=Qoe(),r=V6();function i(a,...s){const u=s.length;return u>1&&r.isIterateeCall(a,s[0],s[1])?s=[]:u>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,n.flatten(s),["asc"])}e.sortBy=i})(Cx)),Cx}var Dx,qR;function Xoe(){return qR||(qR=1,Dx=Zoe().sortBy),Dx}var Joe=Xoe();const g0=ni(Joe);var K6=e=>e.legend.settings,ese=e=>e.legend.size,tse=e=>e.legend.payload;le([tse,K6],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?g0(r,n):r});var zg=1;function nse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=k.useState({height:0,left:0,top:0,width:0}),r=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>zg||Math.abs(s.left-t.left)>zg||Math.abs(s.top-t.top)>zg||Math.abs(s.width-t.width)>zg)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var rse={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Y6=an({name:"chartLayout",initialState:rse,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 n,r,i,a;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r: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:ise,setLayout:ase,setChartSize:ose,setScale:sse}=Y6.actions,lse=Y6.reducer;function W6(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Xe(e){return Number.isFinite(e)}function ya(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function VR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ac(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(n),!0).forEach(function(r){use(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function use(e,t,n){return(t=cse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cse(e){var t=fse(e,"string");return typeof t=="symbol"?t:t+""}function fse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sn(e,t,n){return Ht(e)||Ht(t)?n:xi(t)?uf(e,t,n):typeof t=="function"?t(e):n}var dse=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:s,layout:u}=t;if((u==="vertical"||u==="horizontal"&&s==="middle")&&a!=="center"&&Ne(e[a]))return Ac(Ac({},e),{},{[a]:e[a]+(r||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&s!=="middle"&&Ne(e[s]))return Ac(Ac({},e),{},{[s]:e[s]+(i||0)})}return e},Qi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Q6=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,a,s=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(a=!0),u.coordinate));return i||s.push(t),a||s.push(n),s},Z6=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:s,realScaleType:u,isCategorical:c,categoricalDomain:f,tickCount:h,ticks:p,niceTicks:g,axisType:v}=e;if(!s)return null;var y=u==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,b=i==="category"&&s.bandwidth?s.bandwidth()/y:0;if(b=v==="angleAxis"&&a&&a.length>=2?Ir(a[0]-a[1])*2*b:b,p||g){var w=(p||g||[]).map((_,C)=>{var E=r?r.indexOf(_):_,S=s.map(E);return Xe(S)?{coordinate:S+b,value:_,offset:b,index:C}:null}).filter(Lr);return w}return c&&f?f.map((_,C)=>{var E=s.map(_);return Xe(E)?{coordinate:E+b,value:_,index:C,offset:b}:null}).filter(Lr):s.ticks&&h!=null?s.ticks(h).map((_,C)=>{var E=s.map(_);return Xe(E)?{coordinate:E+b,value:_,index:C,offset:b}:null}).filter(Lr):s.domain().map((_,C)=>{var E=s.map(_);return Xe(E)?{coordinate:E+b,value:r?r[_]:_,index:C,offset:b}:null}).filter(Lr)},hse=(e,t)=>{if(!t||t.length!==2||!Ne(t[0])||!Ne(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ne(e[0])||e[0]<n)&&(i[0]=n),(!Ne(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},pse=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,s=0,u=0;u<n;++u){var c=e[u],f=c==null?void 0:c[i];if(f!=null){var h=f[1],p=f[0],g=Vi(h)?p:h;g>=0?(f[0]=a,a+=g,f[1]=a):(f[0]=s,s+=g,f[1]=s)}}}},mse=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,s=0;s<n;++s){var u=e[s],c=u==null?void 0:u[i];if(c!=null){var f=Vi(c[1])?c[0]:c[1];f>=0?(c[0]=a,a+=f,c[1]=a):(c[0]=0,c[1]=0)}}}},gse={sign:pse,expand:Jae,none:su,silhouette:eoe,wiggle:toe,positive:mse},vse=(e,t,n)=>{var r,i=(r=gse[n])!==null&&r!==void 0?r:su,a=Xae().keys(t).value((u,c)=>Number(sn(u,c,0))).order(QS).offset(i),s=a(e);return s.forEach((u,c)=>{u.forEach((f,h)=>{var p=sn(e[h],t[c],0);Array.isArray(p)&&p.length===2&&Ne(p[0])&&Ne(p[1])&&(f[0]=p[0],f[1]=p[1])})}),s};function X6(e){return e==null?void 0:String(e)}function ny(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ht(i[t.dataKey])){var u=N6(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=sn(i,Ht(s)?t.dataKey:s),f=t.scale.map(c);return Ne(f)?f:null}var KR=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var u=sn(a,t.dataKey,t.scale.domain()[s]);if(Ht(u))return null;var c=t.scale.map(u);return Ne(c)?c-i/2+r:null},yse=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},bse=e=>{var t=e.flat(2).filter(Ne);return[Math.min(...t),Math.max(...t)]},wse=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],xse=(e,t,n)=>{if(e!=null)return wse(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:s}=a,u=s.reduce((c,f)=>{var h=W6(f,t,n),p=bse(h);return!Xe(p[0])||!Xe(p[1])?c:[Math.min(c[0],p[0]),Math.max(c[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},YR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gs=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=g0(t,h=>h.coordinate),a=1/0,s=1,u=i.length;s<u;s++){var c=i[s],f=i[s-1];a=Math.min(((c==null?void 0:c.coordinate)||0)-((f==null?void 0:f.coordinate)||0),a)}return a===1/0?0:a}return n?void 0:0};function QR(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Ac(Ac({},t),{},{dataKey:n,payload:r,value:i,name:a})}function _f(e,t){if(e)return String(e);if(typeof t=="string")return t}var _se=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Sse=(e,t)=>t==="centric"?e.angle:e.radius,Mo=e=>e.layout.width,Po=e=>e.layout.height,Ese=e=>e.layout.scale,J6=e=>e.layout.margin,v0=le(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),y0=le(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Ase="data-recharts-item-index",kse="data-recharts-item-id",_p=60;function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){Cse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cse(e,t,n){return(t=Ose(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ose(e){var t=Tse(e,"string");return typeof t=="symbol"?t:t+""}function Tse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mse=e=>e.brush.height;function Pse(e){var t=y0(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:_p;return n+i}return n},0)}function Nse(e){var t=y0(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:_p;return n+i}return n},0)}function Rse(e){var t=v0(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function Dse(e){var t=v0(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Bn=le([Mo,Po,J6,Mse,Pse,Nse,Rse,Dse,K6,ese],(e,t,n,r,i,a,s,u,c,f)=>{var h={left:(n.left||0)+i,right:(n.right||0)+a},p={top:(n.top||0)+s,bottom:(n.bottom||0)+u},g=jg(jg({},p),h),v=g.bottom;g.bottom+=r,g=dse(g,c,f);var y=e-g.left-g.right,b=t-g.top-g.bottom;return jg(jg({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(b,0)})}),Ise=le(Bn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),GE=le(Mo,Po,(e,t)=>({x:0,y:0,width:e,height:t})),Lse=k.createContext(null),Nn=()=>k.useContext(Lse)!=null,b0=e=>e.brush,w0=le([b0,Bn,J6],(e,t,n)=>({height:e.height,x:Ne(e.x)?e.x:t.left,y:Ne(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:Ne(e.width)?e.width:t.width})),Ix={},Lx={},zx={},XR;function zse(){return XR||(XR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:a}={}){let s,u=null;const c=a!=null&&a.includes("leading"),f=a==null||a.includes("trailing"),h=()=>{u!==null&&(n.apply(s,u),s=void 0,u=null)},p=()=>{f&&h(),b()};let g=null;const v=()=>{g!=null&&clearTimeout(g),g=setTimeout(()=>{g=null,p()},r)},y=()=>{g!==null&&(clearTimeout(g),g=null)},b=()=>{y(),s=void 0,u=null},w=()=>{h()},_=function(...C){if(i!=null&&i.aborted)return;s=this,u=C;const E=g==null;v(),c&&E&&h()};return _.schedule=v,_.cancel=b,_.flush=w,i==null||i.addEventListener("abort",b,{once:!0}),_}e.debounce=t})(zx)),zx}var JR;function jse(){return JR||(JR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zse();function n(r,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:u=!0,maxWait:c}=a,f=Array(2);s&&(f[0]="leading"),u&&(f[1]="trailing");let h,p=null;const g=t.debounce(function(...b){h=r.apply(this,b),p=null},i,{edges:f}),v=function(...b){return c!=null&&(p===null&&(p=Date.now()),Date.now()-p>=c)?(h=r.apply(this,b),p=Date.now(),g.cancel(),g.schedule(),h):(g.apply(this,b),h)},y=()=>(g.flush(),h);return v.cancel=g.cancel,v.flush=y,v}e.debounce=n})(Lx)),Lx}var eD;function $se(){return eD||(eD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jse();function n(r,i=0,a={}){const{leading:s=!0,trailing:u=!0}=a;return t.debounce(r,i,{leading:s,maxWait:i,trailing:u})}e.throttle=n})(Ix)),Ix}var jx,tD;function Bse(){return tD||(tD=1,jx=$se().throttle),jx}var Use=Bse();const Fse=ni(Use);var ry=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(n.replace(/%s/g,()=>i[s++]))}},fa={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},e8=(e,t,n)=>{var{width:r=fa.width,height:i=fa.height,aspect:a,maxHeight:s}=n,u=lu(r)?e:Number(r),c=lu(i)?t:Number(i);return a&&a>0&&(u?c=u/a:c&&(u=c*a),s&&c!=null&&c>s&&(c=s)),{calculatedWidth:u,calculatedHeight:c}},Hse={width:0,height:0,overflow:"visible"},Gse={width:0,overflowX:"visible"},qse={height:0,overflowY:"visible"},Vse={},Kse=e=>{var{width:t,height:n}=e,r=lu(t),i=lu(n);return r&&i?Hse:r?Gse:i?qse:Vse};function Yse(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=fa.width,a=fa.height):i===void 0?i=r&&r>0?void 0:fa.width:a===void 0&&(a=r&&r>0?void 0:fa.height),{width:i,height:a}}function XS(){return XS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XS.apply(null,arguments)}function nD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(n),!0).forEach(function(r){Wse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wse(e,t,n){return(t=Qse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qse(e){var t=Zse(e,"string");return typeof t=="symbol"?t:t+""}function Zse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t8=k.createContext(fa.initialDimension);function Xse(e){return ya(e.width)&&ya(e.height)}function n8(e){var{children:t,width:n,height:r}=e,i=k.useMemo(()=>({width:n,height:r}),[n,r]);return Xse(i)?k.createElement(t8.Provider,{value:i},t):null}var qE=()=>k.useContext(t8),Jse=k.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=fa.initialDimension,width:i,height:a,minWidth:s=fa.minWidth,minHeight:u,maxHeight:c,children:f,debounce:h=fa.debounce,id:p,className:g,onResize:v,style:y={}}=e,b=k.useRef(null),w=k.useRef();w.current=v,k.useImperativeHandle(t,()=>b.current);var[_,C]=k.useState({containerWidth:r.width,containerHeight:r.height}),E=k.useCallback((P,R)=>{C(z=>{var D=Math.round(P),N=Math.round(R);return z.containerWidth===D&&z.containerHeight===N?z:{containerWidth:D,containerHeight:N}})},[]);k.useEffect(()=>{if(b.current==null||typeof ResizeObserver>"u")return To;var P=N=>{var $,I=N[0];if(I!=null){var{width:U,height:j}=I.contentRect;E(U,j),($=w.current)===null||$===void 0||$.call(w,U,j)}};h>0&&(P=Fse(P,h,{trailing:!0,leading:!1}));var R=new ResizeObserver(P),{width:z,height:D}=b.current.getBoundingClientRect();return E(z,D),R.observe(b.current),()=>{R.disconnect()}},[E,h]);var{containerWidth:S,containerHeight:T}=_;ry(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:O,calculatedHeight:M}=e8(S,T,{width:i,height:a,aspect:n,maxHeight:c});return ry(O!=null&&O>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
886
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
887
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
888
|
+
height and width.`,O,M,i,a,s,u,n),k.createElement("div",{id:p?"".concat(p):void 0,className:Et("recharts-responsive-container",g),style:rD(rD({},y),{},{width:i,height:a,minWidth:s,minHeight:u,maxHeight:c}),ref:b},k.createElement("div",{style:Kse({width:i,height:a})},k.createElement(n8,{width:O,height:M},f)))}),rCe=k.forwardRef((e,t)=>{var n=qE();if(ya(n.width)&&ya(n.height))return e.children;var{width:r,height:i}=Yse({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=e8(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Ne(a)&&Ne(s)?k.createElement(n8,{width:a,height:s},e.children):k.createElement(Jse,XS({},e,{width:r,height:i,ref:t}))});function VE(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 Sp=()=>{var e,t=Nn(),n=Ue(Ise),r=Ue(w0),i=(e=Ue(b0))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},ele={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},r8=()=>{var e;return(e=Ue(Bn))!==null&&e!==void 0?e:ele},i8=()=>Ue(Mo),a8=()=>Ue(Po),_t=e=>e.layout.layoutType,Ks=()=>Ue(_t),KE=()=>{var e=Ks();if(e==="horizontal"||e==="vertical")return e},o8=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},tle=()=>{var e=Ks();return e!==void 0},Ep=e=>{var t=Wt(),n=Nn(),{width:r,height:i}=e,a=qE(),s=r,u=i;return a&&(s=a.width>0?a.width:r,u=a.height>0?a.height:i),k.useEffect(()=>{!n&&ya(s)&&ya(u)&&t(ose({width:s,height:u}))},[t,n,s,u]),null},s8=Symbol.for("immer-nothing"),iD=Symbol.for("immer-draftable"),ti=Symbol.for("immer-state");function Bi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fh=Object.getPrototypeOf;function cf(e){return!!e&&!!e[ti]}function uu(e){var t;return e?l8(e)||Array.isArray(e)||!!e[iD]||!!((t=e.constructor)!=null&&t[iD])||Ap(e)||_0(e):!1}var nle=Object.prototype.constructor.toString(),aD=new WeakMap;function l8(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=aD.get(n);return r===void 0&&(r=Function.toString.call(n),aD.set(n,r)),r===nle}function iy(e,t,n=!0){x0(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function x0(e){const t=e[ti];return t?t.type_:Array.isArray(e)?1:Ap(e)?2:_0(e)?3:0}function JS(e,t){return x0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u8(e,t,n){const r=x0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function rle(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ap(e){return e instanceof Map}function _0(e){return e instanceof Set}function Cl(e){return e.copy_||e.base_}function e2(e,t){if(Ap(e))return new Map(e);if(_0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=l8(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ti];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(Fh(e),r)}else{const r=Fh(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function YE(e,t=!1){return S0(e)||cf(e)||!uu(e)||(x0(e)>1&&Object.defineProperties(e,{set:$g,add:$g,clear:$g,delete:$g}),Object.freeze(e),t&&Object.values(e).forEach(n=>YE(n,!0))),e}function ile(){Bi(2)}var $g={value:ile};function S0(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var ale={};function cu(e){const t=ale[e];return t||Bi(0,e),t}var Hh;function c8(){return Hh}function ole(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function oD(e,t){t&&(cu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function t2(e){n2(e),e.drafts_.forEach(sle),e.drafts_=null}function n2(e){e===Hh&&(Hh=e.parent_)}function sD(e){return Hh=ole(Hh,e)}function sle(e){const t=e[ti];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lD(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ti].modified_&&(t2(t),Bi(4)),uu(e)&&(e=ay(t,e),t.parent_||oy(t,e)),t.patches_&&cu("Patches").generateReplacementPatches_(n[ti].base_,e,t.patches_,t.inversePatches_)):e=ay(t,n,[]),t2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==s8?e:void 0}function ay(e,t,n){if(S0(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[ti];if(!i)return iy(t,(a,s)=>uD(e,i,t,a,s,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return oy(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let s=a,u=!1;i.type_===3&&(s=new Set(a),a.clear(),u=!0),iy(s,(c,f)=>uD(e,i,a,c,f,n,u),r),oy(e,a,!1),n&&e.patches_&&cu("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function uD(e,t,n,r,i,a,s){if(i==null||typeof i!="object"&&!s)return;const u=S0(i);if(!(u&&!s)){if(cf(i)){const c=a&&t&&t.type_!==3&&!JS(t.assigned_,r)?a.concat(r):void 0,f=ay(e,i,c);if(u8(n,r,f),cf(f))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(uu(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&u)return;ay(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Ap(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&oy(e,i)}}}function oy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&YE(t,n)}function lle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:c8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=WE;n&&(i=[r],a=Gh);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,u}var WE={get(e,t){if(t===ti)return e;const n=Cl(e);if(!JS(n,t))return ule(e,n,t);const r=n[t];return e.finalized_||!uu(r)?r:r===$x(e.base_,t)?(Bx(e),e.copy_[t]=i2(r,e)):r},has(e,t){return t in Cl(e)},ownKeys(e){return Reflect.ownKeys(Cl(e))},set(e,t,n){const r=f8(Cl(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=$x(Cl(e),t),a=i==null?void 0:i[ti];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rle(n,i)&&(n!==void 0||JS(e.base_,t)))return!0;Bx(e),r2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $x(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Bx(e),r2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Cl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Bi(11)},getPrototypeOf(e){return Fh(e.base_)},setPrototypeOf(){Bi(12)}},Gh={};iy(WE,(e,t)=>{Gh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gh.deleteProperty=function(e,t){return Gh.set.call(this,e,t,void 0)};Gh.set=function(e,t,n){return WE.set.call(this,e[0],t,n,e[0])};function $x(e,t){const n=e[ti];return(n?Cl(n):e)[t]}function ule(e,t,n){var i;const r=f8(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function f8(e,t){if(!(t in e))return;let n=Fh(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fh(n)}}function r2(e){e.modified_||(e.modified_=!0,e.parent_&&r2(e.parent_))}function Bx(e){e.copy_||(e.copy_=e2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cle=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...f){return s.produce(c,h=>n.call(this,h,...f))}}typeof n!="function"&&Bi(6),r!==void 0&&typeof r!="function"&&Bi(7);let i;if(uu(t)){const a=sD(this),s=i2(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?t2(a):n2(a)}return oD(a,r),lD(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===s8&&(i=void 0),this.autoFreeze_&&YE(i,!0),r){const a=[],s=[];cu("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else Bi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,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){uu(e)||Bi(8),cf(e)&&(e=fle(e));const t=sD(this),n=i2(e,void 0);return n[ti].isManual_=!0,n2(t),n}finishDraft(e,t){const n=e&&e[ti];(!n||!n.isManual_)&&Bi(9);const{scope_:r}=n;return oD(r,t),lD(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=cu("Patches").applyPatches_;return cf(e)?r(e,t):this.produce(e,i=>r(i,t))}};function i2(e,t){const n=Ap(e)?cu("MapSet").proxyMap_(e,t):_0(e)?cu("MapSet").proxySet_(e,t):lle(e,t);return(t?t.scope_:c8()).drafts_.push(n),n}function fle(e){return cf(e)||Bi(10,e),d8(e)}function d8(e){if(!uu(e)||S0(e))return e;const t=e[ti];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=e2(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=e2(e,!0);return iy(n,(i,a)=>{u8(n,i,d8(a))},r),t&&(t.finalized_=!1),n}var dle=new cle;dle.produce;var hle={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},h8=an({name:"legend",initialState:hle,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:At()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Wr(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:At()},removeLegendPayload:{reducer(e,t){var n=Wr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:At()}}}),{setLegendSize:iCe,setLegendSettings:aCe,addLegendPayload:ple,replaceLegendPayload:mle,removeLegendPayload:gle}=h8.actions,vle=h8.reducer,yle=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function ble(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Sf(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(yle.has(r)){if(e[r]==null&&t[r]==null)continue;if(!Oc(e[r],t[r]))return!1}else if(!ble(e[r],t[r]))return!1;return!0}function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a2.apply(null,arguments)}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){wle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wle(e,t,n){return(t=xle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xle(e){var t=_le(e,"string");return typeof t=="symbol"?t:t+""}function _le(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sle(e){return Array.isArray(e)&&xi(e[0])&&xi(e[1])?e.join(" ~ "):e}var uc={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};function Ele(e,t){return t==null?e:g0(e,t)}var Ale=e=>{var{separator:t=uc.separator,contentStyle:n,itemStyle:r,labelStyle:i=uc.labelStyle,payload:a,formatter:s,itemSorter:u,wrapperClassName:c,labelClassName:f,label:h,labelFormatter:p,accessibilityLayer:g=uc.accessibilityLayer}=e,v=()=>{if(a&&a.length){var T={padding:0,margin:0},O=Ele(a,u),M=O.map((P,R)=>{if(P.type==="none")return null;var z=P.formatter||s||Sle,{value:D,name:N}=P,$=D,I=N;if(z){var U=z(D,N,P,R,a);if(Array.isArray(U))[$,I]=U;else if(U!=null)$=U;else return null}var j=jd(jd({},uc.itemStyle),{},{color:P.color||uc.itemStyle.color},r);return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:j},xi(I)?k.createElement("span",{className:"recharts-tooltip-item-name"},I):null,xi(I)?k.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,k.createElement("span",{className:"recharts-tooltip-item-value"},$),k.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},y=jd(jd({},uc.contentStyle),n),b=jd({margin:0},i),w=!Ht(h),_=w?h:"",C=Et("recharts-default-tooltip",c),E=Et("recharts-tooltip-label",f);w&&p&&a!==void 0&&a!==null&&(_=p(h,a));var S=g?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",a2({className:C,style:y},S),k.createElement("p",{className:E,style:b},k.isValidElement(_)?_:"".concat(_)),v())},$d="recharts-tooltip-wrapper",kle={visibility:"hidden"};function Cle(e){var{coordinate:t,translateX:n,translateY:r}=e;return Et($d,{["".concat($d,"-right")]:Ne(n)&&t&&Ne(t.x)&&n>=t.x,["".concat($d,"-left")]:Ne(n)&&t&&Ne(t.x)&&n<t.x,["".concat($d,"-bottom")]:Ne(r)&&t&&Ne(t.y)&&r>=t.y,["".concat($d,"-top")]:Ne(r)&&t&&Ne(t.y)&&r<t.y})}function fD(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:s,tooltipDimension:u,viewBox:c,viewBoxDimension:f}=e;if(a&&Ne(a[r]))return a[r];var h=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return s[r]?h:p;var g=c[r];if(g==null)return 0;if(s[r]){var v=h,y=g;return v<y?Math.max(p,g):Math.max(h,g)}if(f==null)return 0;var b=p+u,w=g+f;return b>w?Math.max(h,g):Math.max(p,g)}function Ole(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Tle(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:s,tooltipBox:u,useTranslate3d:c,viewBox:f}=e,h,p,g;return u.height>0&&u.width>0&&n?(p=fD({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:a,reverseDirection:s,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),g=fD({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:a,reverseDirection:s,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),h=Ole({translateX:p,translateY:g,useTranslate3d:c})):h=kle,{cssProperties:h,cssClasses:Cle({translateX:p,translateY:g,coordinate:n})}}var Mle=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),kp={isSsr:Mle()};function p8(){var[e,t]=k.useState(()=>kp.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return k.useEffect(()=>{if(window.matchMedia){var n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(n.matches)};return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}}},[]),e}function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(n),!0).forEach(function(r){Ple(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ple(e,t,n){return(t=Nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nle(e){var t=Rle(e,"string");return typeof t=="symbol"?t:t+""}function Rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dle(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function Ile(e){var t,n,r,i,a,s,u=p8(),[c,f]=k.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));k.useEffect(()=>{var y=b=>{if(b.key==="Escape"){var w,_,C,E;f({dismissed:!0,dismissedAtCoordinate:{x:(w=(_=e.coordinate)===null||_===void 0?void 0:_.x)!==null&&w!==void 0?w:0,y:(C=(E=e.coordinate)===null||E===void 0?void 0:E.y)!==null&&C!==void 0?C:0}})}};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),c.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==c.dismissedAtCoordinate.x||((a=(s=e.coordinate)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)!==c.dismissedAtCoordinate.y)&&f(cc(cc({},c),{},{dismissed:!1}));var{cssClasses:h,cssProperties:p}=Tle({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),g=e.hasPortalFromProps?{}:cc(cc({transition:Dle({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},p),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),v=cc(cc({},g),{},{visibility:!c.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return k.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:h,style:v,ref:e.innerRef},e.children)}var Lle=k.memo(Ile),m8=()=>{var e;return(e=Ue(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o2.apply(null,arguments)}function hD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hD(Object(n),!0).forEach(function(r){zle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zle(e,t,n){return(t=jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=$le(e,"string");return typeof t=="symbol"?t:t+""}function $le(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mD={curveBasisClosed:Uae,curveBasisOpen:Fae,curveBasis:Bae,curveBumpX:kae,curveBumpY:Cae,curveLinearClosed:Hae,curveLinear:p0,curveMonotoneX:Gae,curveMonotoneY:qae,curveNatural:Vae,curveStep:Kae,curveStepAfter:Wae,curveStepBefore:Yae},sy=e=>Xe(e.x)&&Xe(e.y),gD=e=>e.base!=null&&sy(e.base)&&sy(e),Bd=e=>e.x,Ud=e=>e.y,Ble=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(xp(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=mD["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return mD[n]||p0},vD={connectNulls:!1,type:"linear"},Ule=e=>{var{type:t=vD.type,points:n=[],baseLine:r,layout:i,connectNulls:a=vD.connectNulls}=e,s=Ble(t,i),u=a?n.filter(sy):n;if(Array.isArray(r)){var c,f=n.map((y,b)=>pD(pD({},y),{},{base:r[b]}));i==="vertical"?c=Lg().y(Ud).x1(Bd).x0(y=>y.base.x):c=Lg().x(Bd).y1(Ud).y0(y=>y.base.y);var h=c.defined(gD).curve(s),p=a?f.filter(gD):f;return h(p)}var g;i==="vertical"&&Ne(r)?g=Lg().y(Ud).x1(Bd).x0(r):Ne(r)?g=Lg().x(Bd).y1(Ud).y0(r):g=b6().x(Bd).y(Ud);var v=g.defined(sy).curve(s);return v(u)},gh=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=Ks();if((!n||!n.length)&&!r)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=n&&n.length?Ule(s):r;return k.createElement("path",o2({},ei(e),BE(e),{className:Et("recharts-curve",t),d:u===null?void 0:u,ref:i}))},Fle=["x","y","top","left","width","height","className"];function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s2.apply(null,arguments)}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){Gle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gle(e,t,n){return(t=qle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qle(e){var t=Vle(e,"string");return typeof t=="symbol"?t:t+""}function Vle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kle(e,t){if(e==null)return{};var n,r,i=Yle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Yle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Wle=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),Qle=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:s=0,className:u}=e,c=Kle(e,Fle),f=Hle({x:t,y:n,top:r,left:i,width:a,height:s},c);return!Ne(t)||!Ne(n)||!Ne(a)||!Ne(s)||!Ne(r)||!Ne(i)?null:k.createElement("path",s2({},nr(f),{className:Et("recharts-cross",u),d:Wle(t,n,a,s,r,i)}))};function Zle(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(n),!0).forEach(function(r){Xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xle(e,t,n){return(t=Jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jle(e){var t=eue(e,"string");return typeof t=="symbol"?t:t+""}function eue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tue=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),g8=(e,t,n)=>e.map(r=>"".concat(tue(r)," ").concat(t,"ms ").concat(n)).join(","),nue=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),qh=(e,t)=>Object.keys(t).reduce((n,r)=>wD(wD({},n),{},{[r]:e(r,t[r])}),{});function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(r){rue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rue(e,t,n){return(t=iue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iue(e){var t=aue(e,"string");return typeof t=="symbol"?t:t+""}function aue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ly=(e,t,n)=>e+(t-e)*n,l2=e=>{var{from:t,to:n}=e;return t!==n},v8=(e,t,n)=>{var r=qh((i,a)=>{if(l2(a)){var[s,u]=e(a.from,a.to,a.velocity);return Mn(Mn({},a),{},{from:s,velocity:u})}return a},t);return n<1?qh((i,a)=>l2(a)&&r[i]!=null?Mn(Mn({},a),{},{velocity:ly(a.velocity,r[i].velocity,n),from:ly(a.from,r[i].from,n)}):a,t):v8(e,r,n-1)};function oue(e,t,n,r,i,a){var s,u=r.reduce((g,v)=>Mn(Mn({},g),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),c=()=>qh((g,v)=>v.from,u),f=()=>!Object.values(u).filter(l2).length,h=null,p=g=>{s||(s=g);var v=g-s,y=v/n.dt;u=v8(n,u,y),i(Mn(Mn(Mn({},e),t),c())),s=g,f()||(h=a.setTimeout(p))};return()=>(h=a.setTimeout(p),()=>{var g;(g=h)===null||g===void 0||g()})}function sue(e,t,n,r,i,a,s){var u=null,c=i.reduce((p,g)=>{var v=e[g],y=t[g];return v==null||y==null?p:Mn(Mn({},p),{},{[g]:[v,y]})},{}),f,h=p=>{f||(f=p);var g=(p-f)/r,v=qh((b,w)=>ly(...w,n(g)),c);if(a(Mn(Mn(Mn({},e),t),v)),g<1)u=s.setTimeout(h);else{var y=qh((b,w)=>ly(...w,n(1)),c);a(Mn(Mn(Mn({},e),t),y))}};return()=>(u=s.setTimeout(h),()=>{var p;(p=u)===null||p===void 0||p()})}const lue=(e,t,n,r,i,a)=>{var s=nue(e,t);return n==null?()=>(i(Mn(Mn({},e),t)),()=>{}):n.isStepper===!0?oue(e,t,n,s,i,a):sue(e,t,n,r,s,i,a)};var uy=1e-4,y8=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],b8=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),_D=(e,t)=>n=>{var r=y8(e,t);return b8(r,n)},uue=(e,t)=>n=>{var r=y8(e,t),i=[...r.map((a,s)=>a*s).slice(1),0];return b8(i,n)},cue=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},fue=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[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=cue(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},due=(e,t,n,r)=>{var i=_D(e,n),a=_D(t,r),s=uue(e,n),u=f=>f>1?1:f<0?0:f,c=f=>{for(var h=f>1?1:f,p=h,g=0;g<8;++g){var v=i(p)-h,y=s(p);if(Math.abs(v-h)<uy||y<uy)return a(p);p=u(p-v/y)}return a(p)};return c.isStepper=!1,c},SD=function(){return due(...fue(...arguments))},hue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(s,u,c)=>{var f=-(s-u)*n,h=c*r,p=c+(f-h)*i/1e3,g=c*i/1e3+s;return Math.abs(g-u)<uy&&Math.abs(p)<uy?[u,0]:[g,p]};return a.isStepper=!0,a.dt=i,a},pue=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return SD(e);case"spring":return hue();default:if(e.split("(")[0]==="cubic-bezier")return SD(e)}return typeof e=="function"?e:null};function mue(e){var t,n=()=>null,r=!1,i=null,a=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var u=s,[c,...f]=u;if(typeof c=="number"){i=e.setTimeout(a.bind(null,f),c);return}a(c),i=e.setTimeout(a.bind(null,f));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),a(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class gue{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function vue(){return mue(new gue)}var yue=k.createContext(vue);function bue(e,t){var n=k.useContext(yue);return k.useMemo(()=>t??n(e),[e,t,n])}var wue={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},ED={t:0},Ux={t:1};function Cp(e){var t=rr(e,wue),{isActive:n,canBegin:r,duration:i,easing:a,begin:s,onAnimationEnd:u,onAnimationStart:c,children:f}=t,h=p8(),p=n==="auto"?!kp.isSsr&&!h:n,g=bue(t.animationId,t.animationManager),[v,y]=k.useState(p?ED:Ux),b=k.useRef(null);return k.useEffect(()=>{p||y(Ux)},[p]),k.useEffect(()=>{if(!p||!r)return To;var w=lue(ED,Ux,pue(a),i,y,g.getTimeoutController()),_=()=>{b.current=w()};return g.start([c,s,_,i,u]),()=>{g.stop(),b.current&&b.current(),u()}},[p,r,i,a,s,c,u,g]),f(v.t)}function Op(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=k.useRef(Uh(t)),r=k.useRef(e);return r.current!==e&&(n.current=Uh(t),r.current=e),n.current}var xue=["radius"],_ue=["radius"],AD,kD,CD,OD,TD,MD,PD,ND,RD,DD;function ID(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(n),!0).forEach(function(r){Sue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sue(e,t,n){return(t=Eue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eue(e){var t=Aue(e,"string");return typeof t=="symbol"?t:t+""}function Aue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cy(){return cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cy.apply(null,arguments)}function zD(e,t){if(e==null)return{};var n,r,i=kue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function na(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var jD=(e,t,n,r,i)=>{var a=Ds(n),s=Ds(r),u=Math.min(Math.abs(a)/2,Math.abs(s)/2),c=s>=0?1:-1,f=a>=0?1:-1,h=s>=0&&a>=0||s<0&&a<0?1:0,p;if(u>0&&Array.isArray(i)){for(var g=[0,0,0,0],v=0,y=4;v<y;v++){var b,w=(b=i[v])!==null&&b!==void 0?b:0;g[v]=w>u?u:w}p=rn(AD||(AD=na(["M",",",""])),e,t+c*g[0]),g[0]>0&&(p+=rn(kD||(kD=na(["A ",",",",0,0,",",",",",""])),g[0],g[0],h,e+f*g[0],t)),p+=rn(CD||(CD=na(["L ",",",""])),e+n-f*g[1],t),g[1]>0&&(p+=rn(OD||(OD=na(["A ",",",",0,0,",`,
|
|
889
|
+
`,",",""])),g[1],g[1],h,e+n,t+c*g[1])),p+=rn(TD||(TD=na(["L ",",",""])),e+n,t+r-c*g[2]),g[2]>0&&(p+=rn(MD||(MD=na(["A ",",",",0,0,",`,
|
|
890
|
+
`,",",""])),g[2],g[2],h,e+n-f*g[2],t+r)),p+=rn(PD||(PD=na(["L ",",",""])),e+f*g[3],t+r),g[3]>0&&(p+=rn(ND||(ND=na(["A ",",",",0,0,",`,
|
|
891
|
+
`,",",""])),g[3],g[3],h,e,t+r-c*g[3])),p+="Z"}else if(u>0&&i===+i&&i>0){var _=Math.min(u,i);p=rn(RD||(RD=na(["M ",",",`
|
|
892
|
+
A `,",",",0,0,",",",",",`
|
|
893
|
+
L `,",",`
|
|
894
|
+
A `,",",",0,0,",",",",",`
|
|
895
|
+
L `,",",`
|
|
896
|
+
A `,",",",0,0,",",",",",`
|
|
897
|
+
L `,",",`
|
|
898
|
+
A `,",",",0,0,",",",","," Z"])),e,t+c*_,_,_,h,e+f*_,t,e+n-f*_,t,_,_,h,e+n,t+c*_,e+n,t+r-c*_,_,_,h,e+n-f*_,t+r,e+f*_,t+r,_,_,h,e,t+r-c*_)}else p=rn(DD||(DD=na(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},$D={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},w8=e=>{var t=rr(e,$D),n=k.useRef(null),[r,i]=k.useState(-1);k.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var G=n.current.getTotalLength();G&&i(G)}catch{}},[]);var{x:a,y:s,width:u,height:c,radius:f,className:h}=t,{animationEasing:p,animationDuration:g,animationBegin:v,isAnimationActive:y,isUpdateAnimationActive:b}=t,w=k.useRef(u),_=k.useRef(c),C=k.useRef(a),E=k.useRef(s),S=k.useMemo(()=>({x:a,y:s,width:u,height:c,radius:f}),[a,s,u,c,f]),T=Op(S,"rectangle-");if(a!==+a||s!==+s||u!==+u||c!==+c||u===0||c===0)return null;var O=Et("recharts-rectangle",h);if(!b){var M=nr(t),{radius:P}=M,R=zD(M,xue);return k.createElement("path",cy({},R,{x:Ds(a),y:Ds(s),width:Ds(u),height:Ds(c),radius:typeof f=="number"?f:void 0,className:O,d:jD(a,s,u,c,f)}))}var z=w.current,D=_.current,N=C.current,$=E.current,I="0px ".concat(r===-1?1:r,"px"),U="".concat(r,"px ").concat(r,"px"),j=g8(["strokeDasharray"],g,typeof p=="string"?p:$D.animationEasing);return k.createElement(Cp,{animationId:T,key:T,canBegin:r>0,duration:g,easing:p,isActive:b,begin:v},G=>{var q=Rt(z,u,G),H=Rt(D,c,G),V=Rt(N,a,G),B=Rt($,s,G);n.current&&(w.current=q,_.current=H,C.current=V,E.current=B);var K;y?G>0?K={transition:j,strokeDasharray:U}:K={strokeDasharray:I}:K={strokeDasharray:U};var X=nr(t),{radius:ee}=X,ce=zD(X,_ue);return k.createElement("path",cy({},ce,{radius:typeof f=="number"?f:void 0,className:O,d:jD(V,B,q,H,f),ref:n,style:LD(LD({},K),t.style)}))})};function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(n),!0).forEach(function(r){Cue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cue(e,t,n){return(t=Oue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oue(e){var t=Tue(e,"string");return typeof t=="symbol"?t:t+""}function Tue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fy=Math.PI/180,Mue=e=>e*180/Math.PI,er=(e,t,n,r)=>({x:e+Math.cos(-fy*r)*n,y:t+Math.sin(-fy*r)*n}),Pue=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Nue=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},Rue=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,s=Nue({x:n,y:r},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var u=(n-i)/s,c=Math.acos(u);return r>a&&(c=2*Math.PI-c),{radius:s,angle:Mue(c),angleInRadian:c}},Due=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Iue=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return e+s*360},Lue=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=Rue({x:n,y:r},t),{innerRadius:s,outerRadius:u}=t;if(i<s||i>u||i===0)return null;var{startAngle:c,endAngle:f}=Due(t),h=a,p;if(c<=f){for(;h>f;)h-=360;for(;h<c;)h+=360;p=h>=c&&h<=f}else{for(;h>c;)h-=360;for(;h<f;)h+=360;p=h>=f&&h<=c}return p?UD(UD({},t),{},{radius:i,angle:Iue(h,t)}):null};function x8(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,s=er(t,n,r,i),u=er(t,n,r,a);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var FD,HD,GD,qD,VD,KD,YD;function u2(){return u2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u2.apply(null,arguments)}function Nl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zue=(e,t)=>{var n=Ir(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Bg=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:s,cornerRadius:u,cornerIsExternal:c}=e,f=u*(s?1:-1)+r,h=Math.asin(u/f)/fy,p=c?i:i+a*h,g=er(t,n,f,p),v=er(t,n,r,p),y=c?i-a*h:i,b=er(t,n,f*Math.cos(h*fy),y);return{center:g,circleTangency:v,lineTangency:b,theta:h}},_8=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:s}=e,u=zue(a,s),c=a+u,f=er(t,n,i,a),h=er(t,n,i,c),p=rn(FD||(FD=Nl(["M ",",",`
|
|
899
|
+
A `,",",`,0,
|
|
900
|
+
`,",",`,
|
|
901
|
+
`,",",`
|
|
902
|
+
`])),f.x,f.y,i,i,+(Math.abs(u)>180),+(a>c),h.x,h.y);if(r>0){var g=er(t,n,r,a),v=er(t,n,r,c);p+=rn(HD||(HD=Nl(["L ",",",`
|
|
903
|
+
A `,",",`,0,
|
|
904
|
+
`,",",`,
|
|
905
|
+
`,","," Z"])),v.x,v.y,r,r,+(Math.abs(u)>180),+(a<=c),g.x,g.y)}else p+=rn(GD||(GD=Nl(["L ",","," Z"])),t,n);return p},jue=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}=e,h=Ir(f-c),{circleTangency:p,lineTangency:g,theta:v}=Bg({cx:t,cy:n,radius:i,angle:c,sign:h,cornerRadius:a,cornerIsExternal:u}),{circleTangency:y,lineTangency:b,theta:w}=Bg({cx:t,cy:n,radius:i,angle:f,sign:-h,cornerRadius:a,cornerIsExternal:u}),_=u?Math.abs(c-f):Math.abs(c-f)-v-w;if(_<0)return s?rn(qD||(qD=Nl(["M ",",",`
|
|
906
|
+
a`,",",",0,0,1,",`,0
|
|
907
|
+
a`,",",",0,0,1,",`,0
|
|
908
|
+
`])),g.x,g.y,a,a,a*2,a,a,-a*2):_8({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:f});var C=rn(VD||(VD=Nl(["M ",",",`
|
|
909
|
+
A`,",",",0,0,",",",",",`
|
|
910
|
+
A`,",",",0,",",",",",",",`
|
|
911
|
+
A`,",",",0,0,",",",",",`
|
|
912
|
+
`])),g.x,g.y,a,a,+(h<0),p.x,p.y,i,i,+(_>180),+(h<0),y.x,y.y,a,a,+(h<0),b.x,b.y);if(r>0){var{circleTangency:E,lineTangency:S,theta:T}=Bg({cx:t,cy:n,radius:r,angle:c,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:M,theta:P}=Bg({cx:t,cy:n,radius:r,angle:f,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),R=u?Math.abs(c-f):Math.abs(c-f)-T-P;if(R<0&&a===0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=rn(KD||(KD=Nl(["L",",",`
|
|
913
|
+
A`,",",",0,0,",",",",",`
|
|
914
|
+
A`,",",",0,",",",",",",",`
|
|
915
|
+
A`,",",",0,0,",",",",","Z"])),M.x,M.y,a,a,+(h<0),O.x,O.y,r,r,+(R>180),+(h>0),E.x,E.y,a,a,+(h<0),S.x,S.y)}else C+=rn(YD||(YD=Nl(["L",",","Z"])),t,n);return C},$ue={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},S8=e=>{var t=rr(e,$ue),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:h,className:p}=t;if(a<i||f===h)return null;var g=Et("recharts-sector",p),v=a-i,y=Ki(s,v,0,!0),b;return y>0&&Math.abs(f-h)<360?b=jue({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,v/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:h}):b=_8({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:f,endAngle:h}),k.createElement("path",u2({},nr(t),{className:g,d:b}))};function Bue(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(I6(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:a,outerRadius:s,angle:u}=t,c=er(r,i,a,u),f=er(r,i,s,u);return[{x:c.x,y:c.y},{x:f.x,y:f.y}]}return x8(t)}}var Fx={},Hx={},Gx={},WD;function Uue(){return WD||(WD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q6();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Gx)),Gx}var QD;function Fue(){return QD||(QD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uue();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Hx)),Hx}var ZD;function Hue(){return ZD||(ZD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=V6(),n=Fue();function r(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),s=s===void 0?i<a?1:-1:n.toFinite(s);const u=Math.max(Math.ceil((a-i)/(s||1)),0),c=new Array(u);for(let f=0;f<u;f++)c[f]=i,i+=s;return c}e.range=r})(Fx)),Fx}var qx,XD;function Gue(){return XD||(XD=1,qx=Hue().range),qx}var que=Gue();const E8=ni(que);var No=e=>e.chartData,A8=le([No],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),QE=(e,t,n,r)=>r?A8(e):No(e),k8=(e,t,n)=>n?A8(e):No(e);function ga(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Xe(t)&&Xe(n))return!0}return!1}function JD(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function C8(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(Xe(n))i=n;else if(typeof n=="function")return;if(Xe(r))a=r;else if(typeof r=="function")return;var s=[i,a];if(ga(s))return s}}function Vue(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ga(r))return JD(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,u;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Ne(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&YR.test(i)){var c=YR.exec(i);if(c==null||c[1]==null||t==null)s=void 0;else{var f=+c[1];s=t[0]-f}}else s=t==null?void 0:t[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(Ne(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&WR.test(a)){var h=WR.exec(a);if(h==null||h[1]==null||t==null)u=void 0;else{var p=+h[1];u=t[1]+p}}else u=t==null?void 0:t[1];var g=[s,u];if(ga(g))return t==null?g:JD(g,t,n)}}}var Ef=1e9,Kue={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},XE,qt=!0,_i="[DecimalError] ",Yl=_i+"Invalid argument: ",ZE=_i+"Exponent out of range: ",Af=Math.floor,Ol=Math.pow,Yue=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Kr,zn=1e7,Ft=7,O8=9007199254740991,dy=Af(O8/Ft),De={};De.absoluteValue=De.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};De.comparedTo=De.cmp=function(e){var t,n,r,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(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};De.decimalPlaces=De.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};De.dividedBy=De.div=function(e){return mo(this,new this.constructor(e))};De.dividedToIntegerBy=De.idiv=function(e){var t=this,n=t.constructor;return It(mo(t,new n(e),0,1),n.precision)};De.equals=De.eq=function(e){return!this.cmp(e)};De.exponent=function(){return xn(this)};De.greaterThan=De.gt=function(e){return this.cmp(e)>0};De.greaterThanOrEqualTo=De.gte=function(e){return this.cmp(e)>=0};De.isInteger=De.isint=function(){return this.e>this.d.length-2};De.isNegative=De.isneg=function(){return this.s<0};De.isPositive=De.ispos=function(){return this.s>0};De.isZero=function(){return this.s===0};De.lessThan=De.lt=function(e){return this.cmp(e)<0};De.lessThanOrEqualTo=De.lte=function(e){return this.cmp(e)<1};De.logarithm=De.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Kr))throw Error(_i+"NaN");if(n.s<1)throw Error(_i+(n.s?"NaN":"-Infinity"));return n.eq(Kr)?new r(0):(qt=!1,t=mo(Vh(n,a),Vh(e,a),a),qt=!0,It(t,i))};De.minus=De.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P8(t,e):T8(t,(e.s=-e.s,e))};De.modulo=De.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(_i+"NaN");return n.s?(qt=!1,t=mo(n,e,0,1).times(e),qt=!0,n.minus(t)):It(new r(n),i)};De.naturalExponential=De.exp=function(){return M8(this)};De.naturalLogarithm=De.ln=function(){return Vh(this)};De.negated=De.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};De.plus=De.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?T8(t,e):P8(t,(e.s=-e.s,e))};De.precision=De.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yl+e);if(t=xn(i)+1,r=i.d.length-1,n=r*Ft+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};De.squareRoot=De.sqrt=function(){var e,t,n,r,i,a,s,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(_i+"NaN")}for(e=xn(u),qt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=da(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Af((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=s=n+3;;)if(a=r,r=a.plus(mo(u,a,s+2)).times(.5),da(a.d).slice(0,s)===(t=da(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(It(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;s+=4}return qt=!0,It(r,n)};De.times=De.mul=function(e){var t,n,r,i,a,s,u,c,f,h=this,p=h.constructor,g=h.d,v=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,c=g.length,f=v.length,c<f&&(a=g,g=v,v=a,s=c,c=f,f=s),a=[],s=c+f,r=s;r--;)a.push(0);for(r=f;--r>=0;){for(t=0,i=c+r;i>r;)u=a[i]+v[r]*g[i-r-1]+t,a[i--]=u%zn|0,t=u/zn|0;a[i]=(a[i]+t)%zn|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,qt?It(e,p.precision):e};De.toDecimalPlaces=De.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ba(e,0,Ef),t===void 0?t=r.rounding:ba(t,0,8),It(n,e+xn(n)+1,t))};De.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=fu(r,!0):(ba(e,0,Ef),t===void 0?t=i.rounding:ba(t,0,8),r=It(new i(r),e+1,t),n=fu(r,!0,e+1)),n};De.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?fu(i):(ba(e,0,Ef),t===void 0?t=a.rounding:ba(t,0,8),r=It(new a(i),e+xn(i)+1,t),n=fu(r.abs(),!1,e+xn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};De.toInteger=De.toint=function(){var e=this,t=e.constructor;return It(new t(e),xn(e)+1,t.rounding)};De.toNumber=function(){return+this};De.toPower=De.pow=function(e){var t,n,r,i,a,s,u=this,c=u.constructor,f=12,h=+(e=new c(e));if(!e.s)return new c(Kr);if(u=new c(u),!u.s){if(e.s<1)throw Error(_i+"Infinity");return u}if(u.eq(Kr))return u;if(r=c.precision,e.eq(Kr))return It(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,a=u.s,s){if((n=h<0?-h:h)<=O8){for(i=new c(Kr),t=Math.ceil(r/Ft+4),qt=!1;n%2&&(i=i.times(u),t3(i.d,t)),n=Af(n/2),n!==0;)u=u.times(u),t3(u.d,t);return qt=!0,e.s<0?new c(Kr).div(i):It(i,r)}}else if(a<0)throw Error(_i+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,qt=!1,i=e.times(Vh(u,r+f)),qt=!0,i=M8(i),i.s=a,i};De.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=xn(i),r=fu(i,n<=a.toExpNeg||n>=a.toExpPos)):(ba(e,1,Ef),t===void 0?t=a.rounding:ba(t,0,8),i=It(new a(i),e,t),n=xn(i),r=fu(i,e<=n||n<=a.toExpNeg,e)),r};De.toSignificantDigits=De.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ba(e,1,Ef),t===void 0?t=r.rounding:ba(t,0,8)),It(new r(n),e,t)};De.toString=De.valueOf=De.val=De.toJSON=De[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xn(e),n=e.constructor;return fu(e,t<=n.toExpNeg||t>=n.toExpPos)};function T8(e,t){var n,r,i,a,s,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),qt?It(t,p):t;if(c=e.d,f=t.d,s=e.e,i=t.e,c=c.slice(),a=s-i,a){for(a<0?(r=c,a=-a,u=f.length):(r=f,i=s,u=c.length),s=Math.ceil(p/Ft),u=s>u?s+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=c.length,a=f.length,u-a<0&&(a=u,r=f,f=c,c=r),n=0;a;)n=(c[--a]=c[a]+f[a]+n)/zn|0,c[a]%=zn;for(n&&(c.unshift(n),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,qt?It(t,p):t}function ba(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yl+e)}function da(e){var t,n,r,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)r=e[t]+"",n=Ft-r.length,n&&(a+=ws(n)),a+=r;s=e[t],r=s+"",n=Ft-r.length,n&&(a+=ws(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var mo=(function(){function e(r,i){var a,s=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+s,r[u]=a%zn|0,s=a/zn|0;return s&&r.unshift(s),r}function t(r,i,a,s){var u,c;if(a!=s)c=a>s?1:-1;else for(u=c=0;u<a;u++)if(r[u]!=i[u]){c=r[u]>i[u]?1:-1;break}return c}function n(r,i,a){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*zn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,s){var u,c,f,h,p,g,v,y,b,w,_,C,E,S,T,O,M,P,R=r.constructor,z=r.s==i.s?1:-1,D=r.d,N=i.d;if(!r.s)return new R(r);if(!i.s)throw Error(_i+"Division by zero");for(c=r.e-i.e,M=N.length,T=D.length,v=new R(z),y=v.d=[],f=0;N[f]==(D[f]||0);)++f;if(N[f]>(D[f]||0)&&--c,a==null?C=a=R.precision:s?C=a+(xn(r)-xn(i))+1:C=a,C<0)return new R(0);if(C=C/Ft+2|0,f=0,M==1)for(h=0,N=N[0],C++;(f<T||h)&&C--;f++)E=h*zn+(D[f]||0),y[f]=E/N|0,h=E%N|0;else{for(h=zn/(N[0]+1)|0,h>1&&(N=e(N,h),D=e(D,h),M=N.length,T=D.length),S=M,b=D.slice(0,M),w=b.length;w<M;)b[w++]=0;P=N.slice(),P.unshift(0),O=N[0],N[1]>=zn/2&&++O;do h=0,u=t(N,b,M,w),u<0?(_=b[0],M!=w&&(_=_*zn+(b[1]||0)),h=_/O|0,h>1?(h>=zn&&(h=zn-1),p=e(N,h),g=p.length,w=b.length,u=t(p,b,g,w),u==1&&(h--,n(p,M<g?P:N,g))):(h==0&&(u=h=1),p=N.slice()),g=p.length,g<w&&p.unshift(0),n(b,p,w),u==-1&&(w=b.length,u=t(N,b,M,w),u<1&&(h++,n(b,M<w?P:N,w))),w=b.length):u===0&&(h++,b=[0]),y[f++]=h,u&&b[0]?b[w++]=D[S]||0:(b=[D[S]],w=1);while((S++<T||b[0]!==void 0)&&C--)}return y[0]||y.shift(),v.e=c,It(v,s?a+xn(v)+1:a)}})();function M8(e,t){var n,r,i,a,s,u,c=0,f=0,h=e.constructor,p=h.precision;if(xn(e)>16)throw Error(ZE+xn(e));if(!e.s)return new h(Kr);for(qt=!1,u=p,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Ol(2,f))/Math.LN10*2+5|0,u+=r,n=i=a=new h(Kr),h.precision=u;;){if(i=It(i.times(e),u),n=n.times(++c),s=a.plus(mo(i,n,u)),da(s.d).slice(0,u)===da(a.d).slice(0,u)){for(;f--;)a=It(a.times(a),u);return h.precision=p,t==null?(qt=!0,It(a,p)):a}a=s}}function xn(e){for(var t=e.e*Ft,n=e.d[0];n>=10;n/=10)t++;return t}function Vx(e,t,n){if(t>e.LN10.sd())throw qt=!0,n&&(e.precision=n),Error(_i+"LN10 precision limit exceeded");return It(new e(e.LN10),t)}function ws(e){for(var t="";e--;)t+="0";return t}function Vh(e,t){var n,r,i,a,s,u,c,f,h,p=1,g=10,v=e,y=v.d,b=v.constructor,w=b.precision;if(v.s<1)throw Error(_i+(v.s?"NaN":"-Infinity"));if(v.eq(Kr))return new b(0);if(t==null?(qt=!1,f=w):f=t,v.eq(10))return t==null&&(qt=!0),Vx(b,f);if(f+=g,b.precision=f,n=da(y),r=n.charAt(0),a=xn(v),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=da(v.d),r=n.charAt(0),p++;a=xn(v),r>1?(v=new b("0."+n),a++):v=new b(r+"."+n.slice(1))}else return c=Vx(b,f+2,w).times(a+""),v=Vh(new b(r+"."+n.slice(1)),f-g).plus(c),b.precision=w,t==null?(qt=!0,It(v,w)):v;for(u=s=v=mo(v.minus(Kr),v.plus(Kr),f),h=It(v.times(v),f),i=3;;){if(s=It(s.times(h),f),c=u.plus(mo(s,new b(i),f)),da(c.d).slice(0,f)===da(u.d).slice(0,f))return u=u.times(2),a!==0&&(u=u.plus(Vx(b,f+2,w).times(a+""))),u=mo(u,new b(p),f),b.precision=w,t==null?(qt=!0,It(u,w)):u;u=c,i+=2}}function e3(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Af(n/Ft),e.d=[],r=(n+1)%Ft,n<0&&(r+=Ft),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ft;r<i;)e.d.push(+t.slice(r,r+=Ft));t=t.slice(r),r=Ft-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),qt&&(e.e>dy||e.e<-dy))throw Error(ZE+n)}else e.s=0,e.e=0,e.d=[0];return e}function It(e,t,n){var r,i,a,s,u,c,f,h,p=e.d;for(s=1,a=p[0];a>=10;a/=10)s++;if(r=t-s,r<0)r+=Ft,i=t,f=p[h=0];else{if(h=Math.ceil((r+1)/Ft),a=p.length,h>=a)return e;for(f=a=p[h],s=1;a>=10;a/=10)s++;r%=Ft,i=r-Ft+s}if(n!==void 0&&(a=Ol(10,s-i-1),u=f/a%10|0,c=t<0||p[h+1]!==void 0||f%a,c=n<4?(u||c)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||c||n==6&&(r>0?i>0?f/Ol(10,s-i):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(a=xn(e),p.length=1,t=t-a-1,p[0]=Ol(10,(Ft-t%Ft)%Ft),e.e=Af(-t/Ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,a=1,h--):(p.length=h+1,a=Ol(10,Ft-r),p[h]=i>0?(f/Ol(10,s-i)%Ol(10,i)|0)*a:0),c)for(;;)if(h==0){(p[0]+=a)==zn&&(p[0]=1,++e.e);break}else{if(p[h]+=a,p[h]!=zn)break;p[h--]=0,a=1}for(r=p.length;p[--r]===0;)p.pop();if(qt&&(e.e>dy||e.e<-dy))throw Error(ZE+xn(e));return e}function P8(e,t){var n,r,i,a,s,u,c,f,h,p,g=e.constructor,v=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),qt?It(t,v):t;if(c=e.d,p=t.d,r=t.e,f=e.e,c=c.slice(),s=f-r,s){for(h=s<0,h?(n=c,s=-s,u=p.length):(n=p,r=f,u=c.length),i=Math.max(Math.ceil(v/Ft),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=c.length,u=p.length,h=i<u,h&&(u=i),i=0;i<u;i++)if(c[i]!=p[i]){h=c[i]<p[i];break}s=0}for(h&&(n=c,c=p,p=n,t.s=-t.s),u=c.length,i=p.length-u;i>0;--i)c[u++]=0;for(i=p.length;i>s;){if(c[--i]<p[i]){for(a=i;a&&c[--a]===0;)c[a]=zn-1;--c[a],c[i]+=zn}c[i]-=p[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,qt?It(t,v):t):new g(0)}function fu(e,t,n){var r,i=xn(e),a=da(e.d),s=a.length;return t?(n&&(r=n-s)>0?a=a.charAt(0)+"."+a.slice(1)+ws(r):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ws(-i-1)+a,n&&(r=n-s)>0&&(a+=ws(r))):i>=s?(a+=ws(i+1-s),n&&(r=n-i-1)>0&&(a=a+"."+ws(r))):((r=i+1)<s&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(a+="."),a+=ws(r))),e.s<0?"-"+a:a}function t3(e,t){if(e.length>t)return e.length=t,!0}function N8(e){var t,n,r;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Yl+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return e3(s,a.toString())}else if(typeof a!="string")throw Error(Yl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,Yue.test(a))e3(s,a);else throw Error(Yl+a)}if(i.prototype=De,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=N8,i.config=i.set=Wue,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Wue(e){if(!e||typeof e!="object")throw Error(_i+"Object expected");var t,n,r,i=["precision",1,Ef,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Af(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Yl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yl+n+": "+r);return this}var XE=N8(Kue);Kr=new XE(1);const mt=XE;function R8(e){var t;return e===0?t=1:t=Math.floor(new mt(e).abs().log(10).toNumber())+1,t}function D8(e,t,n){for(var r=new mt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var I8=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},JE=(e,t,n)=>{if(e.lte(0))return new mt(0);var r=R8(e.toNumber()),i=new mt(10).pow(r),a=e.div(i),s=r!==1?.05:.1,u=new mt(Math.ceil(a.div(s).toNumber())).add(n).mul(s),c=u.mul(i);return t?new mt(c.toNumber()):new mt(Math.ceil(c.toNumber()))},L8=(e,t,n)=>{var r;if(e.lte(0))return new mt(0);var i=[1,2,2.5,5],a=e.toNumber(),s=Math.floor(new mt(a).abs().log(10).toNumber()),u=new mt(10).pow(s),c=e.div(u).toNumber(),f=i.findIndex(v=>v>=c-1e-10);if(f===-1&&(u=u.mul(10),f=0),f+=n,f>=i.length){var h=Math.floor(f/i.length);f%=i.length,u=u.mul(new mt(10).pow(h))}var p=(r=i[f])!==null&&r!==void 0?r:1,g=new mt(p).mul(u);return t?g:new mt(Math.ceil(g.toNumber()))},Que=(e,t,n)=>{var r=new mt(1),i=new mt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new mt(10).pow(R8(e)-1),i=new mt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new mt(Math.floor(e)))}else e===0?i=new mt(Math.floor((t-1)/2)):n||(i=new mt(Math.floor(e)));for(var s=Math.floor((t-1)/2),u=[],c=0;c<t;c++)u.push(i.add(new mt(c-s).mul(r)).toNumber());return u},z8=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:JE;if(!Number.isFinite((n-t)/(r-1)))return{step:new mt(0),tickMin:new mt(0),tickMax:new mt(0)};var u=s(new mt(n).sub(t).div(r-1),i,a),c;t<=0&&n>=0?c=new mt(0):(c=new mt(t).add(n).div(2),c=c.sub(new mt(c).mod(u)));var f=Math.ceil(c.sub(t).div(u).toNumber()),h=Math.ceil(new mt(n).sub(c).div(u).toNumber()),p=f+h+1;return p>r?z8(t,n,r,i,a+1,s):(p<r&&(h=n>0?h+(r-p):h,f=n>0?f:f+(r-p)),{step:u,tickMin:c.sub(new mt(f).mul(u)),tickMax:c.add(new mt(h).mul(u))})},n3=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[c,f]=I8([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),f];return n>r?h.reverse():h}if(c===f)return Que(c,i,a);var p=s==="snap125"?L8:JE,{step:g,tickMin:v,tickMax:y}=z8(c,f,u,a,0,p),b=D8(v,y.add(new mt(.1).mul(g)),g);return n>r?b.reverse():b},r3=function(t,n){var[r,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,c]=I8([r,i]);if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var f=s==="snap125"?L8:JE,h=Math.max(n,2),p=f(new mt(c).sub(u).div(h-1),a,0),g=[...D8(new mt(u),new mt(c),p),c];return a===!1&&(g=g.map(v=>Math.round(v))),r>i?g.reverse():g},j8=e=>e.rootProps.maxBarSize,Zue=e=>e.rootProps.barGap,$8=e=>e.rootProps.barCategoryGap,Xue=e=>e.rootProps.barSize,E0=e=>e.rootProps.stackOffset,B8=e=>e.rootProps.reverseStackOrder,eA=e=>e.options.chartName,tA=e=>e.rootProps.syncId,U8=e=>e.rootProps.syncMethod,nA=e=>e.options.eventEmitter,Jue=e=>e.rootProps.baseValue,wn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},wl={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},ra={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},A0=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function k0(e,t,n){if(n!=="auto")return n;if(e!=null)return Qi(e,t)?"category":"number"}function i3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i3(Object(n),!0).forEach(function(r){ece(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ece(e,t,n){return(t=tce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tce(e){var t=nce(e,"string");return typeof t=="symbol"?t:t+""}function nce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a3={allowDataOverflow:wl.allowDataOverflow,allowDecimals:wl.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:wl.angleAxisId,includeHidden:!1,name:void 0,reversed:wl.reversed,scale:wl.scale,tick:wl.tick,tickCount:void 0,ticks:void 0,type:wl.type,unit:void 0,niceTicks:"auto"},o3={allowDataOverflow:ra.allowDataOverflow,allowDecimals:ra.allowDecimals,allowDuplicatedCategory:ra.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ra.radiusAxisId,includeHidden:ra.includeHidden,name:void 0,reversed:ra.reversed,scale:ra.scale,tick:ra.tick,tickCount:ra.tickCount,ticks:void 0,type:ra.type,unit:void 0,niceTicks:"auto"},rce=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},rA=le([rce,o8],(e,t)=>{var n;if(e!=null)return e;var r=(n=k0(t,"angleAxis",a3.type))!==null&&n!==void 0?n:"category";return hy(hy({},a3),{},{type:r})}),ice=(e,t)=>e.polarAxis.radiusAxis[t],iA=le([ice,o8],(e,t)=>{var n;if(e!=null)return e;var r=(n=k0(t,"radiusAxis",o3.type))!==null&&n!==void 0?n:"category";return hy(hy({},o3),{},{type:r})}),C0=e=>e.polarOptions,aA=le([Mo,Po,Bn],Pue),F8=le([C0,aA],(e,t)=>{if(e!=null)return Ki(e.innerRadius,t,0)}),H8=le([C0,aA],(e,t)=>{if(e!=null)return Ki(e.outerRadius,t,t*.8)}),ace=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},G8=le([C0],ace);le([rA,G8],A0);var q8=le([aA,F8,H8],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});le([iA,q8],A0);var V8=le([_t,C0,F8,H8,Mo,Po],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:u,startAngle:c,endAngle:f}=t;return{cx:Ki(s,i,i/2),cy:Ki(u,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:f,clockWise:!1}}}),Un=(e,t)=>t,O0=(e,t,n)=>n;function T0(e){return e==null?void 0:e.id}function K8(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,s=new Map;return e.forEach(u=>{var c,f=(c=u.data)!==null&&c!==void 0?c:r;if(!(f==null||f.length===0)){var h=T0(u);f.forEach((p,g)=>{var v=a==null||i?g:String(sn(p,a,null)),y=sn(p,u.dataKey,0),b;s.has(v)?b=s.get(v):b={},Object.assign(b,{[h]:y}),s.set(v,b)})}}),Array.from(s.values())}function M0(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var P0=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function N0(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function oce(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Fn=e=>{var t=_t(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},kf=e=>e.tooltip.settings.axisId;function oA(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(a){function s(){return a.apply(this,arguments)}return s.toString=function(){return a.toString()},s})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var s=i[0],u=i[1];return s<=u?a>=s&&a<=u:a>=u&&a<=s},bandwidth:n?()=>n.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,s)=>{var u=e(a);if(u!=null){if(e.bandwidth&&s!==null&&s!==void 0&&s.position){var c=e.bandwidth();switch(s.position){case"middle":u+=c/2;break;case"end":u+=c;break}}return u}}}}}var sce=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ga(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];Xe(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function js(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lce(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sA(e){let t,n,r;e.length!==2?(t=js,n=(u,c)=>js(e(u),c),r=(u,c)=>e(u)-c):(t=e===js||e===lce?e:uce,n=e,r=e);function i(u,c,f=0,h=u.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;n(u[p],c)<0?f=p+1:h=p}while(f<h)}return f}function a(u,c,f=0,h=u.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;n(u[p],c)<=0?f=p+1:h=p}while(f<h)}return f}function s(u,c,f=0,h=u.length){const p=i(u,c,f,h-1);return p>f&&r(u[p-1],c)>-r(u[p],c)?p-1:p}return{left:i,center:s,right:a}}function uce(){return 0}function Y8(e){return e===null?NaN:+e}function*cce(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const fce=sA(js),Tp=fce.right;sA(Y8).center;class s3 extends Map{constructor(t,n=pce){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(l3(this,t))}has(t){return super.has(l3(this,t))}set(t,n){return super.set(dce(this,t),n)}delete(t){return super.delete(hce(this,t))}}function l3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dce({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hce({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pce(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mce(e=js){if(e===js)return W8;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function W8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gce=Math.sqrt(50),vce=Math.sqrt(10),yce=Math.sqrt(2);function py(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=gce?10:a>=vce?5:a>=yce?2:1;let u,c,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(e*f),c=Math.round(t*f),u/f<e&&++u,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*s,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?py(e,t,n*2):[u,c,f]}function c2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?py(t,e,n):py(e,t,n);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)c[f]=(a-f)/-s;else for(let f=0;f<u;++f)c[f]=(a-f)*s;else if(s<0)for(let f=0;f<u;++f)c[f]=(i+f)/-s;else for(let f=0;f<u;++f)c[f]=(i+f)*s;return c}function f2(e,t,n){return t=+t,e=+e,n=+n,py(e,t,n)[2]}function d2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?f2(t,e,n):f2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function u3(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function c3(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Q8(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?W8:mce(i);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,h=Math.log(c),p=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*p*(c-p)/c)*(f-c/2<0?-1:1),v=Math.max(n,Math.floor(t-f*p/c+g)),y=Math.min(r,Math.floor(t+(c-f)*p/c+g));Q8(e,t,v,y,i)}const a=e[t];let s=n,u=r;for(Fd(e,n,t),i(e[r],a)>0&&Fd(e,n,r);s<u;){for(Fd(e,s,u),++s,--u;i(e[s],a)<0;)++s;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?Fd(e,n,u):(++u,Fd(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Fd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bce(e,t,n){if(e=Float64Array.from(cce(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return c3(e);if(t>=1)return u3(e);var r,i=(r-1)*t,a=Math.floor(i),s=u3(Q8(e,a).subarray(0,a+1)),u=c3(e.subarray(a+1));return s+(u-s)*(i-a)}}function wce(e,t,n=Y8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),s=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return s+(u-s)*(i-a)}}function xce(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Ai(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ro(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 h2=Symbol("implicit");function lA(){var e=new s3,t=[],n=[],r=h2;function i(a){let s=e.get(a);if(s===void 0){if(r!==h2)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new s3;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return lA(t,n).unknown(r)},Ai.apply(i,arguments),i}function uA(){var e=lA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,u=!1,c=0,f=0,h=.5;delete e.unknown;function p(){var g=t().length,v=i<r,y=v?i:r,b=v?r:i;a=(b-y)/Math.max(1,g-c+f*2),u&&(a=Math.floor(a)),y+=(b-y-a*(g-c))*h,s=a*(1-c),u&&(y=Math.round(y),s=Math.round(s));var w=xce(g).map(function(_){return y+a*_});return n(v?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(g){return arguments.length?(u=!!g,p()):u},e.padding=function(g){return arguments.length?(c=Math.min(1,f=+g),p()):c},e.paddingInner=function(g){return arguments.length?(c=Math.min(1,g),p()):c},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),p()):h},e.copy=function(){return uA(t(),[r,i]).round(u).paddingInner(c).paddingOuter(f).align(h)},Ai.apply(p(),arguments)}function Z8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Z8(t())},e}function _ce(){return Z8(uA.apply(null,arguments).paddingInner(1))}function Sce(e){return function(){return e}}function my(e){return+e}var f3=[0,1];function br(e){return e}function p2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Sce(isNaN(t)?NaN:.5)}function Ece(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ace(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=p2(i,r),a=n(s,a)):(r=p2(r,i),a=n(a,s)),function(u){return a(r(u))}}function kce(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=p2(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(u){var c=Tp(e,u,1,r)-1;return a[c](i[c](u))}}function Mp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function R0(){var e=f3,t=f3,n=po,r,i,a,s=br,u,c,f;function h(){var g=Math.min(e.length,t.length);return s!==br&&(s=Ece(e[0],e[g-1])),u=g>2?kce:Ace,c=f=null,p}function p(g){return g==null||isNaN(g=+g)?a:(c||(c=u(e.map(r),t,n)))(r(s(g)))}return p.invert=function(g){return s(i((f||(f=u(t,e.map(r),ji)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,my),h()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),h()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=yE,h()},p.clamp=function(g){return arguments.length?(s=g?!0:br,h()):s!==br},p.interpolate=function(g){return arguments.length?(n=g,h()):n},p.unknown=function(g){return arguments.length?(a=g,p):a},function(g,v){return r=g,i=v,h()}}function cA(){return R0()(br,br)}function Cce(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gy(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ff(e){return e=gy(Math.abs(e)),e?e[1]:NaN}function Oce(e,t){return function(n,r){for(var i=n.length,a=[],s=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(n.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[s=(s+1)%e.length];return a.reverse().join(t)}}function Tce(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Mce=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kh(e){if(!(t=Mce.exec(e)))throw new Error("invalid format: "+e);var t;return new fA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Kh.prototype=fA.prototype;function fA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Pce(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var vy;function Nce(e,t){var n=gy(e,t);if(!n)return vy=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(vy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+gy(e,Math.max(0,t+a-1))[0]}function d3(e,t){var n=gy(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const h3={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Cce,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)=>d3(e*100,t),r:d3,s:Nce,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p3(e){return e}var m3=Array.prototype.map,g3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rce(e){var t=e.grouping===void 0||e.thousands===void 0?p3:Oce(m3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?p3:Tce(m3.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(p,g){p=Kh(p);var v=p.fill,y=p.align,b=p.sign,w=p.symbol,_=p.zero,C=p.width,E=p.comma,S=p.precision,T=p.trim,O=p.type;O==="n"?(E=!0,O="g"):h3[O]||(S===void 0&&(S=12),T=!0,O="g"),(_||v==="0"&&y==="=")&&(_=!0,v="0",y="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),P=(w==="$"?r:/[%p]/.test(O)?s:"")+(g&&g.suffix!==void 0?g.suffix:""),R=h3[O],z=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function D(N){var $=M,I=P,U,j,G;if(O==="c")I=R(N)+I,N="";else{N=+N;var q=N<0||1/N<0;if(N=isNaN(N)?c:R(Math.abs(N),S),T&&(N=Pce(N)),q&&+N==0&&b!=="+"&&(q=!1),$=(q?b==="("?b:u:b==="-"||b==="("?"":b)+$,I=(O==="s"&&!isNaN(N)&&vy!==void 0?g3[8+vy/3]:"")+I+(q&&b==="("?")":""),z){for(U=-1,j=N.length;++U<j;)if(G=N.charCodeAt(U),48>G||G>57){I=(G===46?i+N.slice(U+1):N.slice(U))+I,N=N.slice(0,U);break}}}E&&!_&&(N=t(N,1/0));var H=$.length+N.length+I.length,V=H<C?new Array(C-H+1).join(v):"";switch(E&&_&&(N=t(V+N,V.length?C-I.length:1/0),V=""),y){case"<":N=$+N+I+V;break;case"=":N=$+V+N+I;break;case"^":N=V.slice(0,H=V.length>>1)+$+N+I+V.slice(H);break;default:N=V+$+N+I;break}return a(N)}return D.toString=function(){return p+""},D}function h(p,g){var v=Math.max(-8,Math.min(8,Math.floor(ff(g)/3)))*3,y=Math.pow(10,-v),b=f((p=Kh(p),p.type="f",p),{suffix:g3[8+v/3]});return function(w){return b(y*w)}}return{format:f,formatPrefix:h}}var Ug,dA,X8;Dce({thousands:",",grouping:[3],currency:["$",""]});function Dce(e){return Ug=Rce(e),dA=Ug.format,X8=Ug.formatPrefix,Ug}function Ice(e){return Math.max(0,-ff(Math.abs(e)))}function Lce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ff(t)/3)))*3-ff(Math.abs(e)))}function zce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ff(t)-ff(e))+1}function J8(e,t,n,r){var i=d2(e,t,n),a;switch(r=Kh(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Lce(i,s))&&(r.precision=a),X8(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=zce(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Ice(i))&&(r.precision=a-(r.type==="%")*2);break}}return dA(r)}function Ys(e){var t=e.domain;return e.ticks=function(n){var r=t();return c2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return J8(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],u=r[a],c,f,h=10;for(u<s&&(f=s,s=u,u=f,f=i,i=a,a=f);h-- >0;){if(f=f2(s,u,n),f===c)return r[i]=s,r[a]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function e$(){var e=cA();return e.copy=function(){return Mp(e,e$())},Ai.apply(e,arguments),Ys(e)}function t$(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,my),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return t$(e).unknown(t)},e=arguments.length?Array.from(e,my):[0,1],Ys(n)}function n$(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}function v3(e){return Math.log(e)}function y3(e){return Math.exp(e)}function jce(e){return-Math.log(-e)}function $ce(e){return-Math.exp(-e)}function Bce(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Uce(e){return e===10?Bce:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Fce(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 b3(e){return(t,n)=>-e(-t,n)}function hA(e){const t=e(v3,y3),n=t.domain;let r=10,i,a;function s(){return i=Fce(r),a=Uce(r),n()[0]<0?(i=b3(i),a=b3(a),e(jce,$ce)):e(v3,y3),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const c=n();let f=c[0],h=c[c.length-1];const p=h<f;p&&([f,h]=[h,f]);let g=i(f),v=i(h),y,b;const w=u==null?10:+u;let _=[];if(!(r%1)&&v-g<w){if(g=Math.floor(g),v=Math.ceil(v),f>0){for(;g<=v;++g)for(y=1;y<r;++y)if(b=g<0?y/a(-g):y*a(g),!(b<f)){if(b>h)break;_.push(b)}}else for(;g<=v;++g)for(y=r-1;y>=1;--y)if(b=g>0?y/a(-g):y*a(g),!(b<f)){if(b>h)break;_.push(b)}_.length*2<w&&(_=c2(f,h,w))}else _=c2(g,v,Math.min(v-g,w)).map(a);return p?_.reverse():_},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Kh(c)).precision==null&&(c.trim=!0),c=dA(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return h=>{let p=h/a(Math.round(i(h)));return p*r<r-.5&&(p*=r),p<=f?c(h):""}},t.nice=()=>n(n$(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function r$(){const e=hA(R0()).domain([1,10]);return e.copy=()=>Mp(e,r$()).base(e.base()),Ai.apply(e,arguments),e}function w3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function x3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pA(e){var t=1,n=e(w3(t),x3(t));return n.constant=function(r){return arguments.length?e(w3(t=+r),x3(t)):t},Ys(n)}function i$(){var e=pA(R0());return e.copy=function(){return Mp(e,i$()).constant(e.constant())},Ai.apply(e,arguments)}function _3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Hce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gce(e){return e<0?-e*e:e*e}function mA(e){var t=e(br,br),n=1;function r(){return n===1?e(br,br):n===.5?e(Hce,Gce):e(_3(n),_3(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ys(t)}function gA(){var e=mA(R0());return e.copy=function(){return Mp(e,gA()).exponent(e.exponent())},Ai.apply(e,arguments),e}function qce(){return gA.apply(null,arguments).exponent(.5)}function S3(e){return Math.sign(e)*e*e}function Vce(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function a$(){var e=cA(),t=[0,1],n=!1,r;function i(a){var s=Vce(e(a));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(a){return e.invert(S3(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,my)).map(S3)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return a$(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ai.apply(i,arguments),Ys(i)}function o$(){var e=[],t=[],n=[],r;function i(){var s=0,u=Math.max(1,t.length);for(n=new Array(u-1);++s<u;)n[s-1]=wce(e,s/u);return a}function a(s){return s==null||isNaN(s=+s)?r:t[Tp(n,s)]}return a.invertExtent=function(s){var u=t.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let u of s)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(js),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return o$().domain(e).range(t).unknown(r)},Ai.apply(a,arguments)}function s$(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(c){return c!=null&&c<=c?i[Tp(r,c,0,n)]:a}function u(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return s}return s.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},s.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,u()):i.slice()},s.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(c){return arguments.length&&(a=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return s$().domain([e,t]).range(i).unknown(a)},Ai.apply(Ys(s),arguments)}function l$(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Tp(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return l$().domain(e).range(t).unknown(n)},Ai.apply(i,arguments)}const Kx=new Date,Yx=new Date;function Rn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),u=i.ceil(a);return a-s<u-a?s:u},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<s)||!(u>0))return c;let f;do c.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<s);return c},i.filter=a=>Rn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!a(s););else for(;--u>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(Kx.setTime(+a),Yx.setTime(+s),e(Kx),e(Yx),Math.floor(n(Kx,Yx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const yy=Rn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):yy);yy.range;const fo=1e3,yi=fo*60,ho=yi*60,Eo=ho*24,vA=Eo*7,E3=Eo*30,Wx=Eo*365,Rl=Rn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fo)},(e,t)=>(t-e)/fo,e=>e.getUTCSeconds());Rl.range;const yA=Rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fo)},(e,t)=>{e.setTime(+e+t*yi)},(e,t)=>(t-e)/yi,e=>e.getMinutes());yA.range;const bA=Rn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yi)},(e,t)=>(t-e)/yi,e=>e.getUTCMinutes());bA.range;const wA=Rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fo-e.getMinutes()*yi)},(e,t)=>{e.setTime(+e+t*ho)},(e,t)=>(t-e)/ho,e=>e.getHours());wA.range;const xA=Rn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ho)},(e,t)=>(t-e)/ho,e=>e.getUTCHours());xA.range;const Pp=Rn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/Eo,e=>e.getDate()-1);Pp.range;const D0=Rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Eo,e=>e.getUTCDate()-1);D0.range;const u$=Rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Eo,e=>Math.floor(e/Eo));u$.range;function mu(e){return Rn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/vA)}const I0=mu(0),by=mu(1),Kce=mu(2),Yce=mu(3),df=mu(4),Wce=mu(5),Qce=mu(6);I0.range;by.range;Kce.range;Yce.range;df.range;Wce.range;Qce.range;function gu(e){return Rn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vA)}const L0=gu(0),wy=gu(1),Zce=gu(2),Xce=gu(3),hf=gu(4),Jce=gu(5),efe=gu(6);L0.range;wy.range;Zce.range;Xce.range;hf.range;Jce.range;efe.range;const _A=Rn(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());_A.range;const SA=Rn(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());SA.range;const Ao=Rn(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());Ao.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ao.range;const ko=Rn(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());ko.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ko.range;function c$(e,t,n,r,i,a){const s=[[Rl,1,fo],[Rl,5,5*fo],[Rl,15,15*fo],[Rl,30,30*fo],[a,1,yi],[a,5,5*yi],[a,15,15*yi],[a,30,30*yi],[i,1,ho],[i,3,3*ho],[i,6,6*ho],[i,12,12*ho],[r,1,Eo],[r,2,2*Eo],[n,1,vA],[t,1,E3],[t,3,3*E3],[e,1,Wx]];function u(f,h,p){const g=h<f;g&&([f,h]=[h,f]);const v=p&&typeof p.range=="function"?p:c(f,h,p),y=v?v.range(f,+h+1):[];return g?y.reverse():y}function c(f,h,p){const g=Math.abs(h-f)/p,v=sA(([,,w])=>w).right(s,g);if(v===s.length)return e.every(d2(f/Wx,h/Wx,p));if(v===0)return yy.every(Math.max(d2(f,h,p),1));const[y,b]=s[g/s[v-1][2]<s[v][2]/g?v-1:v];return y.every(b)}return[u,c]}const[tfe,nfe]=c$(ko,SA,L0,u$,xA,bA),[rfe,ife]=c$(Ao,_A,I0,Pp,wA,yA);function Qx(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 Zx(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 Hd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function afe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,u=e.months,c=e.shortMonths,f=Gd(i),h=qd(i),p=Gd(a),g=qd(a),v=Gd(s),y=qd(s),b=Gd(u),w=qd(u),_=Gd(c),C=qd(c),E={a:G,A:q,b:H,B:V,c:null,d:M3,e:M3,f:Ofe,g:jfe,G:Bfe,H:Afe,I:kfe,j:Cfe,L:f$,m:Tfe,M:Mfe,p:B,q:K,Q:R3,s:D3,S:Pfe,u:Nfe,U:Rfe,V:Dfe,w:Ife,W:Lfe,x:null,X:null,y:zfe,Y:$fe,Z:Ufe,"%":N3},S={a:X,A:ee,b:ce,B:he,c:null,d:P3,e:P3,f:qfe,g:tde,G:rde,H:Ffe,I:Hfe,j:Gfe,L:h$,m:Vfe,M:Kfe,p:de,q:ie,Q:R3,s:D3,S:Yfe,u:Wfe,U:Qfe,V:Zfe,w:Xfe,W:Jfe,x:null,X:null,y:ede,Y:nde,Z:ide,"%":N3},T={a:z,A:D,b:N,B:$,c:I,d:O3,e:O3,f:xfe,g:C3,G:k3,H:T3,I:T3,j:vfe,L:wfe,m:gfe,M:yfe,p:R,q:mfe,Q:Sfe,s:Efe,S:bfe,u:cfe,U:ffe,V:dfe,w:ufe,W:hfe,x:U,X:j,y:C3,Y:k3,Z:pfe,"%":_fe};E.x=O(n,E),E.X=O(r,E),E.c=O(t,E),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(J,pe){return function(ye){var te=[],Ce=-1,Se=0,Ye=J.length,Ie,ut,jt;for(ye instanceof Date||(ye=new Date(+ye));++Ce<Ye;)J.charCodeAt(Ce)===37&&(te.push(J.slice(Se,Ce)),(ut=A3[Ie=J.charAt(++Ce)])!=null?Ie=J.charAt(++Ce):ut=Ie==="e"?" ":"0",(jt=pe[Ie])&&(Ie=jt(ye,ut)),te.push(Ie),Se=Ce+1);return te.push(J.slice(Se,Ce)),te.join("")}}function M(J,pe){return function(ye){var te=Hd(1900,void 0,1),Ce=P(te,J,ye+="",0),Se,Ye;if(Ce!=ye.length)return null;if("Q"in te)return new Date(te.Q);if("s"in te)return new Date(te.s*1e3+("L"in te?te.L:0));if(pe&&!("Z"in te)&&(te.Z=0),"p"in te&&(te.H=te.H%12+te.p*12),te.m===void 0&&(te.m="q"in te?te.q:0),"V"in te){if(te.V<1||te.V>53)return null;"w"in te||(te.w=1),"Z"in te?(Se=Zx(Hd(te.y,0,1)),Ye=Se.getUTCDay(),Se=Ye>4||Ye===0?wy.ceil(Se):wy(Se),Se=D0.offset(Se,(te.V-1)*7),te.y=Se.getUTCFullYear(),te.m=Se.getUTCMonth(),te.d=Se.getUTCDate()+(te.w+6)%7):(Se=Qx(Hd(te.y,0,1)),Ye=Se.getDay(),Se=Ye>4||Ye===0?by.ceil(Se):by(Se),Se=Pp.offset(Se,(te.V-1)*7),te.y=Se.getFullYear(),te.m=Se.getMonth(),te.d=Se.getDate()+(te.w+6)%7)}else("W"in te||"U"in te)&&("w"in te||(te.w="u"in te?te.u%7:"W"in te?1:0),Ye="Z"in te?Zx(Hd(te.y,0,1)).getUTCDay():Qx(Hd(te.y,0,1)).getDay(),te.m=0,te.d="W"in te?(te.w+6)%7+te.W*7-(Ye+5)%7:te.w+te.U*7-(Ye+6)%7);return"Z"in te?(te.H+=te.Z/100|0,te.M+=te.Z%100,Zx(te)):Qx(te)}}function P(J,pe,ye,te){for(var Ce=0,Se=pe.length,Ye=ye.length,Ie,ut;Ce<Se;){if(te>=Ye)return-1;if(Ie=pe.charCodeAt(Ce++),Ie===37){if(Ie=pe.charAt(Ce++),ut=T[Ie in A3?pe.charAt(Ce++):Ie],!ut||(te=ut(J,ye,te))<0)return-1}else if(Ie!=ye.charCodeAt(te++))return-1}return te}function R(J,pe,ye){var te=f.exec(pe.slice(ye));return te?(J.p=h.get(te[0].toLowerCase()),ye+te[0].length):-1}function z(J,pe,ye){var te=v.exec(pe.slice(ye));return te?(J.w=y.get(te[0].toLowerCase()),ye+te[0].length):-1}function D(J,pe,ye){var te=p.exec(pe.slice(ye));return te?(J.w=g.get(te[0].toLowerCase()),ye+te[0].length):-1}function N(J,pe,ye){var te=_.exec(pe.slice(ye));return te?(J.m=C.get(te[0].toLowerCase()),ye+te[0].length):-1}function $(J,pe,ye){var te=b.exec(pe.slice(ye));return te?(J.m=w.get(te[0].toLowerCase()),ye+te[0].length):-1}function I(J,pe,ye){return P(J,t,pe,ye)}function U(J,pe,ye){return P(J,n,pe,ye)}function j(J,pe,ye){return P(J,r,pe,ye)}function G(J){return s[J.getDay()]}function q(J){return a[J.getDay()]}function H(J){return c[J.getMonth()]}function V(J){return u[J.getMonth()]}function B(J){return i[+(J.getHours()>=12)]}function K(J){return 1+~~(J.getMonth()/3)}function X(J){return s[J.getUTCDay()]}function ee(J){return a[J.getUTCDay()]}function ce(J){return c[J.getUTCMonth()]}function he(J){return u[J.getUTCMonth()]}function de(J){return i[+(J.getUTCHours()>=12)]}function ie(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var pe=O(J+="",E);return pe.toString=function(){return J},pe},parse:function(J){var pe=M(J+="",!1);return pe.toString=function(){return J},pe},utcFormat:function(J){var pe=O(J+="",S);return pe.toString=function(){return J},pe},utcParse:function(J){var pe=M(J+="",!0);return pe.toString=function(){return J},pe}}}var A3={"-":"",_:" ",0:"0"},Hn=/^\s*\d+/,ofe=/^%/,sfe=/[\\^$*+?|[\]().{}]/g;function xt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function lfe(e){return e.replace(sfe,"\\$&")}function Gd(e){return new RegExp("^(?:"+e.map(lfe).join("|")+")","i")}function qd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function ufe(e,t,n){var r=Hn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function cfe(e,t,n){var r=Hn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ffe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function dfe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function hfe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function k3(e,t,n){var r=Hn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function C3(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function pfe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function mfe(e,t,n){var r=Hn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function gfe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function O3(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vfe(e,t,n){var r=Hn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function T3(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function yfe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bfe(e,t,n){var r=Hn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wfe(e,t,n){var r=Hn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xfe(e,t,n){var r=Hn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _fe(e,t,n){var r=ofe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Sfe(e,t,n){var r=Hn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Efe(e,t,n){var r=Hn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function M3(e,t){return xt(e.getDate(),t,2)}function Afe(e,t){return xt(e.getHours(),t,2)}function kfe(e,t){return xt(e.getHours()%12||12,t,2)}function Cfe(e,t){return xt(1+Pp.count(Ao(e),e),t,3)}function f$(e,t){return xt(e.getMilliseconds(),t,3)}function Ofe(e,t){return f$(e,t)+"000"}function Tfe(e,t){return xt(e.getMonth()+1,t,2)}function Mfe(e,t){return xt(e.getMinutes(),t,2)}function Pfe(e,t){return xt(e.getSeconds(),t,2)}function Nfe(e){var t=e.getDay();return t===0?7:t}function Rfe(e,t){return xt(I0.count(Ao(e)-1,e),t,2)}function d$(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function Dfe(e,t){return e=d$(e),xt(df.count(Ao(e),e)+(Ao(e).getDay()===4),t,2)}function Ife(e){return e.getDay()}function Lfe(e,t){return xt(by.count(Ao(e)-1,e),t,2)}function zfe(e,t){return xt(e.getFullYear()%100,t,2)}function jfe(e,t){return e=d$(e),xt(e.getFullYear()%100,t,2)}function $fe(e,t){return xt(e.getFullYear()%1e4,t,4)}function Bfe(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),xt(e.getFullYear()%1e4,t,4)}function Ufe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xt(t/60|0,"0",2)+xt(t%60,"0",2)}function P3(e,t){return xt(e.getUTCDate(),t,2)}function Ffe(e,t){return xt(e.getUTCHours(),t,2)}function Hfe(e,t){return xt(e.getUTCHours()%12||12,t,2)}function Gfe(e,t){return xt(1+D0.count(ko(e),e),t,3)}function h$(e,t){return xt(e.getUTCMilliseconds(),t,3)}function qfe(e,t){return h$(e,t)+"000"}function Vfe(e,t){return xt(e.getUTCMonth()+1,t,2)}function Kfe(e,t){return xt(e.getUTCMinutes(),t,2)}function Yfe(e,t){return xt(e.getUTCSeconds(),t,2)}function Wfe(e){var t=e.getUTCDay();return t===0?7:t}function Qfe(e,t){return xt(L0.count(ko(e)-1,e),t,2)}function p$(e){var t=e.getUTCDay();return t>=4||t===0?hf(e):hf.ceil(e)}function Zfe(e,t){return e=p$(e),xt(hf.count(ko(e),e)+(ko(e).getUTCDay()===4),t,2)}function Xfe(e){return e.getUTCDay()}function Jfe(e,t){return xt(wy.count(ko(e)-1,e),t,2)}function ede(e,t){return xt(e.getUTCFullYear()%100,t,2)}function tde(e,t){return e=p$(e),xt(e.getUTCFullYear()%100,t,2)}function nde(e,t){return xt(e.getUTCFullYear()%1e4,t,4)}function rde(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hf(e):hf.ceil(e),xt(e.getUTCFullYear()%1e4,t,4)}function ide(){return"+0000"}function N3(){return"%"}function R3(e){return+e}function D3(e){return Math.floor(+e/1e3)}var fc,m$,g$;ade({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 ade(e){return fc=afe(e),m$=fc.format,fc.parse,g$=fc.utcFormat,fc.utcParse,fc}function ode(e){return new Date(e)}function sde(e){return e instanceof Date?+e:+new Date(+e)}function EA(e,t,n,r,i,a,s,u,c,f){var h=cA(),p=h.invert,g=h.domain,v=f(".%L"),y=f(":%S"),b=f("%I:%M"),w=f("%I %p"),_=f("%a %d"),C=f("%b %d"),E=f("%B"),S=f("%Y");function T(O){return(c(O)<O?v:u(O)<O?y:s(O)<O?b:a(O)<O?w:r(O)<O?i(O)<O?_:C:n(O)<O?E:S)(O)}return h.invert=function(O){return new Date(p(O))},h.domain=function(O){return arguments.length?g(Array.from(O,sde)):g().map(ode)},h.ticks=function(O){var M=g();return e(M[0],M[M.length-1],O??10)},h.tickFormat=function(O,M){return M==null?T:f(M)},h.nice=function(O){var M=g();return(!O||typeof O.range!="function")&&(O=t(M[0],M[M.length-1],O??10)),O?g(n$(M,O)):h},h.copy=function(){return Mp(h,EA(e,t,n,r,i,a,s,u,c,f))},h}function lde(){return Ai.apply(EA(rfe,ife,Ao,_A,I0,Pp,wA,yA,Rl,m$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ude(){return Ai.apply(EA(tfe,nfe,ko,SA,L0,D0,xA,bA,Rl,g$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){var e=0,t=1,n,r,i,a,s=br,u=!1,c;function f(p){return p==null||isNaN(p=+p)?c:s(i===0?.5:(p=(a(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(s=p,f):s};function h(p){return function(g){var v,y;return arguments.length?([v,y]=g,s=p(v,y),f):[s(0),s(1)]}}return f.range=h(po),f.rangeRound=h(yE),f.unknown=function(p){return arguments.length?(c=p,f):c},function(p){return a=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),f}}function Ws(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function v$(){var e=Ys(z0()(br));return e.copy=function(){return Ws(e,v$())},Ro.apply(e,arguments)}function y$(){var e=hA(z0()).domain([1,10]);return e.copy=function(){return Ws(e,y$()).base(e.base())},Ro.apply(e,arguments)}function b$(){var e=pA(z0());return e.copy=function(){return Ws(e,b$()).constant(e.constant())},Ro.apply(e,arguments)}function AA(){var e=mA(z0());return e.copy=function(){return Ws(e,AA()).exponent(e.exponent())},Ro.apply(e,arguments)}function cde(){return AA.apply(null,arguments).exponent(.5)}function w$(){var e=[],t=br;function n(r){if(r!=null&&!isNaN(r=+r))return t((Tp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(js),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>bce(e,a/r))},n.copy=function(){return w$(t).domain(e)},Ro.apply(n,arguments)}function j0(){var e=0,t=.5,n=1,r=1,i,a,s,u,c,f=br,h,p=!1,g;function v(b){return isNaN(b=+b)?g:(b=.5+((b=+h(b))-a)*(r*b<r*a?u:c),f(p?Math.max(0,Math.min(1,b)):b))}v.domain=function(b){return arguments.length?([e,t,n]=b,i=h(e=+e),a=h(t=+t),s=h(n=+n),u=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,v):[e,t,n]},v.clamp=function(b){return arguments.length?(p=!!b,v):p},v.interpolator=function(b){return arguments.length?(f=b,v):f};function y(b){return function(w){var _,C,E;return arguments.length?([_,C,E]=w,f=See(b,[_,C,E]),v):[f(0),f(.5),f(1)]}}return v.range=y(po),v.rangeRound=y(yE),v.unknown=function(b){return arguments.length?(g=b,v):g},function(b){return h=b,i=b(e),a=b(t),s=b(n),u=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,v}}function x$(){var e=Ys(j0()(br));return e.copy=function(){return Ws(e,x$())},Ro.apply(e,arguments)}function _$(){var e=hA(j0()).domain([.1,1,10]);return e.copy=function(){return Ws(e,_$()).base(e.base())},Ro.apply(e,arguments)}function S$(){var e=pA(j0());return e.copy=function(){return Ws(e,S$()).constant(e.constant())},Ro.apply(e,arguments)}function kA(){var e=mA(j0());return e.copy=function(){return Ws(e,kA()).exponent(e.exponent())},Ro.apply(e,arguments)}function fde(){return kA.apply(null,arguments).exponent(.5)}const ch=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:uA,scaleDiverging:x$,scaleDivergingLog:_$,scaleDivergingPow:kA,scaleDivergingSqrt:fde,scaleDivergingSymlog:S$,scaleIdentity:t$,scaleImplicit:h2,scaleLinear:e$,scaleLog:r$,scaleOrdinal:lA,scalePoint:_ce,scalePow:gA,scaleQuantile:o$,scaleQuantize:s$,scaleRadial:a$,scaleSequential:v$,scaleSequentialLog:y$,scaleSequentialPow:AA,scaleSequentialQuantile:w$,scaleSequentialSqrt:cde,scaleSequentialSymlog:b$,scaleSqrt:qce,scaleSymlog:i$,scaleThreshold:l$,scaleTime:lde,scaleUtc:ude,tickFormat:J8},Symbol.toStringTag,{value:"Module"}));function dde(e){if(e in ch)return ch[e]();var t="scale".concat(xp(e));if(t in ch)return ch[t]()}function I3(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=dde(e);if(r!=null)return r.domain(t).range(n),r}}function CA(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?I3(e.scale,n,r):I3(t,n,r)}function hde(e){return"scale".concat(xp(e))}function pde(e){return hde(e)in ch}var E$=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return pde(r)?r:"point"}};function mde(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function A$(e,t){if(e){var n=t??e.domain(),r=n.map(a=>{var s;return(s=e(a))!==null&&s!==void 0?s:0}),i=e.range();if(!(n.length===0||i.length<2))return a=>{var s,u,c=mde(r,a);if(c<=0)return n[0];if(c>=n.length)return n[n.length-1];var f=(s=r[c-1])!==null&&s!==void 0?s:0,h=(u=r[c])!==null&&u!==void 0?u:0;return Math.abs(a-f)<=Math.abs(a-h)?n[c-1]:n[c]}}}function gde(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):A$(e,void 0)}function L3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L3(Object(n),!0).forEach(function(r){vde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vde(e,t,n){return(t=yde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yde(e){var t=bde(e,"string");return typeof t=="symbol"?t:t+""}function bde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m2=[0,"auto"],On={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,niceTicks:"auto"},k$=(e,t)=>e.cartesianAxis.xAxis[t],Ea=(e,t)=>{var n=k$(e,t);return n??On},Tn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:m2,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,niceTicks:"auto",width:_p},C$=(e,t)=>e.cartesianAxis.yAxis[t],Aa=(e,t)=>{var n=C$(e,t);return n??Tn},wde={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:""},OA=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??wde},wr=(e,t,n)=>{switch(t){case"xAxis":return Ea(e,n);case"yAxis":return Aa(e,n);case"zAxis":return OA(e,n);case"angleAxis":return rA(e,n);case"radiusAxis":return iA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},xde=(e,t,n)=>{switch(t){case"xAxis":return Ea(e,n);case"yAxis":return Aa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Np=(e,t,n)=>{switch(t){case"xAxis":return Ea(e,n);case"yAxis":return Aa(e,n);case"angleAxis":return rA(e,n);case"radiusAxis":return iA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},O$=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function T$(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Rp=e=>e.graphicalItems.cartesianItems,_de=le([Un,O0],T$),M$=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Dp=le([Rp,wr,_de],M$,{memoizeOptions:{resultEqualityCheck:N0}}),P$=le([Dp],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(M0)),N$=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Sde=le([Dp],N$),R$=e=>e.map(t=>t.data).filter(Boolean).flat(1),Ede=le([Dp],R$,{memoizeOptions:{resultEqualityCheck:N0}}),D$=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},TA=le([Ede,QE],D$),I$=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:sn(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:sn(i,r)}))):e.map(r=>({value:r})),Ip=le([TA,wr,Dp],I$);function Nc(e){if(xi(e)||e instanceof Date){var t=Number(e);if(Xe(t))return t}}function z3(e){if(Array.isArray(e)){var t=[Nc(e[0]),Nc(e[1])];return ga(t)?t:void 0}var n=Nc(e);if(n!=null)return[n,n]}function Co(e){return e.map(Nc).filter(Lr)}function Ade(e,t){var n=Nc(e),r=Nc(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var kde=le([Ip],e=>e==null?void 0:e.map(t=>t.value).sort(Ade));function L$(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Cde(e,t,n){return!n||typeof t!="number"||Vi(t)?[]:n.length?Co(n.flatMap(r=>{var i=sn(e,r.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!Xe(a)||!Xe(s)))return[t-a,t+s]})):[]}var Dn=e=>{var t=Fn(e),n=kf(e);return Np(e,t,n)},Lp=le([Dn],e=>e==null?void 0:e.dataKey),Ode=le([P$,QE,Dn],K8),z$=(e,t,n,r)=>{var i={},a=t.reduce((s,u)=>{if(u.stackId==null)return s;var c=s[u.stackId];return c==null&&(c=[]),c.push(u),s[u.stackId]=c,s},i);return Object.fromEntries(Object.entries(a).map(s=>{var[u,c]=s,f=r?[...c].reverse():c,h=f.map(T0);return[u,{stackedData:vse(e,h,n),graphicalItems:f}]}))},_y=le([Ode,P$,E0,B8],z$),j$=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!=="zAxis"){var s=xse(e,i,a);if(!(s!=null&&s[0]===0&&s[1]===0))return s}},Tde=le([wr],e=>e.allowDataOverflow),MA=e=>{var t;if(e==null||!("domain"in e))return m2;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Co(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:m2},$$=le([wr],MA),B$=le([$$,Tde],C8),Mde=le([_y,No,Un,B$],j$,{memoizeOptions:{resultEqualityCheck:P0}}),PA=e=>e.errorBars,Pde=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>L$(n,r)),Sy=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),u=Math.max(...a);return[s,u]}},U$=(e,t,n,r,i)=>{var a,s;if(n.length>0&&e.forEach(u=>{n.forEach(c=>{var f,h,p=(f=r[c.id])===null||f===void 0?void 0:f.filter(_=>L$(i,_)),g=sn(u,(h=t.dataKey)!==null&&h!==void 0?h:c.dataKey),v=Cde(u,g,p);if(v.length>=2){var y=Math.min(...v),b=Math.max(...v);(a==null||y<a)&&(a=y),(s==null||b>s)&&(s=b)}var w=z3(g);w!=null&&(a=a==null?w[0]:Math.min(a,w[0]),s=s==null?w[1]:Math.max(s,w[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(u=>{var c=z3(sn(u,t.dataKey));c!=null&&(a=a==null?c[0]:Math.min(a,c[0]),s=s==null?c[1]:Math.max(s,c[1]))}),Xe(a)&&Xe(s))return[a,s]},Nde=le([TA,wr,Sde,PA,Un],U$,{memoizeOptions:{resultEqualityCheck:P0}});function Rde(e){var{value:t}=e;if(xi(t)||t instanceof Date)return t}var Dde=(e,t,n)=>{var r=e.map(Rde).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&P6(r))?E8(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},F$=e=>e.referenceElements.dots,Cf=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Ide=le([F$,Un,O0],Cf),H$=e=>e.referenceElements.areas,Lde=le([H$,Un,O0],Cf),G$=e=>e.referenceElements.lines,zde=le([G$,Un,O0],Cf),q$=(e,t)=>{if(e!=null){var n=Co(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},jde=le(Ide,Un,q$),V$=(e,t)=>{if(e!=null){var n=Co(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},$de=le([Lde,Un],V$);function Bde(e){var t;if(e.x!=null)return Co([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Co(n)}function Ude(e){var t;if(e.y!=null)return Co([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Co(n)}var K$=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Bde(r):Ude(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Fde=le([zde,Un],K$),Hde=le(jde,Fde,$de,(e,t,n)=>Sy(e,n,t)),Y$=(e,t,n,r,i,a,s,u)=>{if(n!=null)return n;var c=s==="vertical"&&u==="xAxis"||s==="horizontal"&&u==="yAxis",f=c?Sy(r,a,i):Sy(a,i);return Vue(t,f,e.allowDataOverflow)},Gde=le([wr,$$,B$,Mde,Nde,Hde,_t,Un],Y$,{memoizeOptions:{resultEqualityCheck:P0}}),qde=[0,1],W$=(e,t,n,r,i,a,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:u,type:c}=e,f=Qi(t,a);if(f&&u==null){var h;return E8(0,(h=n==null?void 0:n.length)!==null&&h!==void 0?h:0)}return c==="category"?Dde(r,e,f):i==="expand"?qde:s}},NA=le([wr,_t,TA,Ip,E0,Un,Gde],W$),Of=le([wr,O$,eA],E$),Q$=(e,t,n)=>{var{niceTicks:r}=t;if(r!=="none"){var i=MA(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&ga(e)){if(a)return n3(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return r3(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(a&&ga(e))return n3(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ga(e))return r3(e,t.tickCount,t.allowDecimals,"adaptive")}}},RA=le([NA,Np,Of],Q$),Z$=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&ga(t)&&Array.isArray(n)&&n.length>0){var i,a,s=t[0],u=(i=n[0])!==null&&i!==void 0?i:0,c=t[1],f=(a=n[n.length-1])!==null&&a!==void 0?a:0;return[Math.min(s,u),Math.max(c,f)]}return t},Vde=le([wr,NA,RA,Un],Z$),Kde=le(Ip,wr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Co(e.map(p=>p.value))).sort((p,g)=>p-g),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var s=a-i;if(s===0)return 1/0;for(var u=0;u<r.length-1;u++){var c=r[u],f=r[u+1];if(!(c==null||f==null)){var h=f-c;n=Math.min(n,h)}}return n/s}}),X$=le(Kde,_t,$8,Bn,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Xe(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=Ki(n,e*a),u=e*a/2;return u-s-(u-s)/a*s}return 0}),Yde=(e,t,n)=>{var r=Ea(e,t);return r==null||typeof r.padding!="string"?0:X$(e,"xAxis",t,n,r.padding)},Wde=(e,t,n)=>{var r=Aa(e,t);return r==null||typeof r.padding!="string"?0:X$(e,"yAxis",t,n,r.padding)},Qde=le(Ea,Yde,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),Zde=le(Aa,Wde,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Xde=le([Bn,Qde,w0,b0,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Jde=le([Bn,_t,Zde,w0,b0,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:s}=i;return a?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),zp=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Xde(e,n,r);case"yAxis":return Jde(e,n,r);case"zAxis":return(i=OA(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return G8(e);case"radiusAxis":return q8(e,n);default:return}},J$=le([wr,zp],A0),ehe=le([Of,Vde],sce),DA=le([wr,Of,ehe,J$],CA),eB=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,s=Qi(e,r);if(s&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},IA=le([_t,Ip,Np,Un],eB),pf=le([DA],oA);le([DA],gde);le([DA,kde],A$);le([Dp,PA,Un],Pde);function tB(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var $0=(e,t)=>t,B0=(e,t,n)=>n,the=le(v0,$0,B0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(tB)),nhe=le(y0,$0,B0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(tB)),nB=(e,t)=>({width:e.width,height:t.height}),rhe=(e,t)=>{var n=typeof t.width=="number"?t.width:_p;return{width:n,height:e.height}},rB=le(Bn,Ea,nB),ihe=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},ahe=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},ohe=le(Po,Bn,the,$0,B0,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var c=nB(t,u);s==null&&(s=ihe(t,r,e));var f=r==="top"&&!i||r==="bottom"&&i;a[u.id]=s-Number(f)*c.height,s+=(f?-1:1)*c.height}),a}),she=le(Mo,Bn,nhe,$0,B0,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var c=rhe(t,u);s==null&&(s=ahe(t,r,e));var f=r==="left"&&!i||r==="right"&&i;a[u.id]=s-Number(f)*c.width,s+=(f?-1:1)*c.width}),a}),lhe=(e,t)=>{var n=Ea(e,t);if(n!=null)return ohe(e,n.orientation,n.mirror)},uhe=le([Bn,Ea,lhe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),che=(e,t)=>{var n=Aa(e,t);if(n!=null)return she(e,n.orientation,n.mirror)},fhe=le([Bn,Aa,che,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),iB=le(Bn,Aa,(e,t)=>{var n=typeof t.width=="number"?t.width:_p;return{width:n,height:e.height}}),j3=(e,t,n)=>{switch(t){case"xAxis":return rB(e,n).width;case"yAxis":return iB(e,n).height;default:return}},aB=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=n,u=Qi(e,r),c=t.map(f=>f.value);if(s&&u&&a==="category"&&i&&P6(c))return c}},LA=le([_t,Ip,wr,Un],aB),$3=le([_t,xde,Of,pf,LA,IA,zp,RA,Un],(e,t,n,r,i,a,s,u,c)=>{if(t!=null){var f=Qi(e,c);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:c,categoricalDomain:a,duplicateDomain:i,isCategorical:f,niceTicks:u,range:s,realScaleType:n,scale:r}}}),dhe=(e,t,n,r,i,a,s,u,c)=>{if(!(t==null||r==null)){var f=Qi(e,c),{type:h,ticks:p,tickCount:g}=t,v=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,y=h==="category"&&r.bandwidth?r.bandwidth()/v:0;y=c==="angleAxis"&&a!=null&&a.length>=2?Ir(a[0]-a[1])*2*y:y;var b=p||i;return b?b.map((w,_)=>{var C=s?s.indexOf(w):w,E=r.map(C);return Xe(E)?{index:_,coordinate:E+y,value:w,offset:y}:null}).filter(Lr):f&&u?u.map((w,_)=>{var C=r.map(w);return Xe(C)?{coordinate:C+y,value:w,index:_,offset:y}:null}).filter(Lr):r.ticks?r.ticks(g).map((w,_)=>{var C=r.map(w);return Xe(C)?{coordinate:C+y,value:w,index:_,offset:y}:null}).filter(Lr):r.domain().map((w,_)=>{var C=r.map(w);return Xe(C)?{coordinate:C+y,value:s?s[w]:w,index:_,offset:y}:null}).filter(Lr)}},oB=le([_t,Np,Of,pf,RA,zp,LA,IA,Un],dhe),hhe=(e,t,n,r,i,a,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Qi(e,s),{tickCount:c}=t,f=0;return f=s==="angleAxis"&&(r==null?void 0:r.length)>=2?Ir(r[0]-r[1])*2*f:f,u&&a?a.map((h,p)=>{var g=n.map(h);return Xe(g)?{coordinate:g+f,value:h,index:p,offset:f}:null}).filter(Lr):n.ticks?n.ticks(c).map((h,p)=>{var g=n.map(h);return Xe(g)?{coordinate:g+f,value:h,index:p,offset:f}:null}).filter(Lr):n.domain().map((h,p)=>{var g=n.map(h);return Xe(g)?{coordinate:g+f,value:i?i[h]:h,index:p,offset:f}:null}).filter(Lr)}},wa=le([_t,Np,pf,zp,LA,IA,Un],hhe),xa=le(wr,pf,(e,t)=>{if(!(e==null||t==null))return xy(xy({},e),{},{scale:t})}),phe=le([wr,Of,NA,J$],CA),mhe=le([phe],oA);le((e,t,n)=>OA(e,n),mhe,(e,t)=>{if(!(e==null||t==null))return xy(xy({},e),{},{scale:t})});var ghe=le([_t,v0,y0],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),vhe=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};le([vhe],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var a of e){var s=Math.abs(a.coordinate-t);s<r&&(r=s,i=a)}return(n=i)===null||n===void 0?void 0:n.value}});var sB=e=>e.options.defaultTooltipEventType,lB=e=>e.options.validateTooltipEventTypes;function uB(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function zA(e,t){var n=sB(e),r=lB(e);return uB(t,n,r)}function yhe(e){return Ue(t=>zA(t,e))}var cB=(e,t)=>{var n,r=Number(t);if(!(Vi(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},bhe=e=>e.tooltip.settings,Ss={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},whe={itemInteraction:{click:Ss,hover:Ss},axisInteraction:{click:Ss,hover:Ss},keyboardInteraction:Ss,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}},fB=an({name:"tooltip",initialState:whe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:At()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Wr(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:At()},removeTooltipEntrySettings:{reducer(e,t){var n=Wr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:At()},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:xhe,replaceTooltipEntrySettings:_he,removeTooltipEntrySettings:She,setTooltipSettingsState:Ehe,setActiveMouseOverItemIndex:dB,mouseLeaveItem:Ahe,mouseLeaveChart:hB,setActiveClickItemIndex:khe,setMouseOverAxisIndex:pB,setMouseClickAxisIndex:Che,setSyncInteraction:g2,setKeyboardInteraction:Ey}=fB.actions,Ohe=fB.reducer;function B3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B3(Object(n),!0).forEach(function(r){The(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function The(e,t,n){return(t=Mhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mhe(e){var t=Phe(e,"string");return typeof t=="symbol"?t:t+""}function Phe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nhe(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Rhe(e){return e.index!=null}var mB=(e,t,n,r)=>{if(t==null)return Ss;var i=Nhe(e,t,n);if(i==null)return Ss;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(Rhe(i)){if(a)return Fg(Fg({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Fg(Fg({},Ss),{},{coordinate:i.coordinate})};function Dhe(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 n=Number(e);return Number.isFinite(n)?n:void 0}function Ihe(e,t){var n=Dhe(e),r=t[0],i=t[1];if(n===void 0)return!1;var a=Math.min(r,i),s=Math.max(r,i);return n>=a&&n<=s}function Lhe(e,t,n){if(n==null||t==null)return!0;var r=sn(e,t);return r==null||!ga(n)?!0:Ihe(r,n)}var jA=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!Xe(a))return i;var s=0,u=1/0;t.length>0&&(u=t.length-1);var c=Math.max(s,Math.min(a,u)),f=t[c];return f==null||Lhe(f,n,r)?String(c):null},gB=(e,t,n,r,i,a,s)=>{if(a!=null){var u=s[0],c=u==null?void 0:u.getPosition(a);if(c!=null)return c;var f=i==null?void 0:i[Number(a)];if(f)switch(n){case"horizontal":return{x:f.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:f.coordinate}}}},vB=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&r!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(s=>{var u;return((u=s.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},yB=e=>e.options.tooltipPayloadSearcher,Tf=e=>e.tooltip;function U3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U3(Object(n),!0).forEach(function(r){zhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zhe(e,t,n){return(t=jhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jhe(e){var t=$he(e,"string");return typeof t=="symbol"?t:t+""}function $he(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bhe(e){if(typeof e=="string"||typeof e=="number")return e}function Uhe(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function Fhe(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function H3(e){if(typeof e=="string")return e}function Hhe(e){if(!(e==null||typeof e!="object")){var t="name"in e?Bhe(e.name):void 0,n="unit"in e?Uhe(e.unit):void 0,r="dataKey"in e?Fhe(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?H3(e.color):void 0,s="fill"in e?H3(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:a,fill:s}}}function Ghe(e,t){return e??t}var bB=(e,t,n,r,i,a,s)=>{if(!(t==null||a==null)){var{chartData:u,computedData:c,dataStartIndex:f,dataEndIndex:h}=n,p=[];return e.reduce((g,v)=>{var y,{dataDefinedOnItem:b,settings:w}=v,_=Ghe(b,u),C=Array.isArray(_)?W6(_,f,h):_,E=(y=w==null?void 0:w.dataKey)!==null&&y!==void 0?y:r,S=w==null?void 0:w.nameKey,T;if(r&&Array.isArray(C)&&!Array.isArray(C[0])&&s==="axis"?T=N6(C,r,i):T=a(C,t,c,S),Array.isArray(T))T.forEach(M=>{var P,R,z=Hhe(M),D=z==null?void 0:z.name,N=z==null?void 0:z.dataKey,$=z==null?void 0:z.payload,I=F3(F3({},w),{},{name:D,unit:z==null?void 0:z.unit,color:(P=z==null?void 0:z.color)!==null&&P!==void 0?P:w==null?void 0:w.color,fill:(R=z==null?void 0:z.fill)!==null&&R!==void 0?R:w==null?void 0:w.fill});g.push(QR({tooltipEntrySettings:I,dataKey:N,payload:$,value:sn($,N),name:D==null?void 0:String(D)}))});else{var O;g.push(QR({tooltipEntrySettings:w,dataKey:E,payload:T,value:sn(T,E),name:(O=sn(T,S))!==null&&O!==void 0?O:w==null?void 0:w.name}))}return g},p)}},$A=le([Dn,O$,eA],E$),qhe=le([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Vhe=le([Fn,kf],T$),Mf=le([qhe,Dn,Vhe],M$,{memoizeOptions:{resultEqualityCheck:N0}}),Khe=le([Mf],e=>e.filter(M0)),Yhe=le([Mf],R$,{memoizeOptions:{resultEqualityCheck:N0}}),Pf=le([Yhe,No],D$),Whe=le([Khe,No,Dn],K8),BA=le([Pf,Dn,Mf],I$),wB=le([Dn],MA),Qhe=le([Dn],e=>e.allowDataOverflow),xB=le([wB,Qhe],C8),Zhe=le([Mf],e=>e.filter(M0)),Xhe=le([Whe,Zhe,E0,B8],z$),Jhe=le([Xhe,No,Fn,xB],j$),epe=le([Mf],N$),tpe=le([Pf,Dn,epe,PA,Fn],U$,{memoizeOptions:{resultEqualityCheck:P0}}),npe=le([F$,Fn,kf],Cf),rpe=le([npe,Fn],q$),ipe=le([H$,Fn,kf],Cf),ape=le([ipe,Fn],V$),ope=le([G$,Fn,kf],Cf),spe=le([ope,Fn],K$),lpe=le([rpe,spe,ape],Sy),upe=le([Dn,wB,xB,Jhe,tpe,lpe,_t,Fn],Y$),jp=le([Dn,_t,Pf,BA,E0,Fn,upe],W$),cpe=le([jp,Dn,$A],Q$),fpe=le([Dn,jp,cpe,Fn],Z$),_B=e=>{var t=Fn(e),n=kf(e),r=!1;return zp(e,t,n,r)},SB=le([Dn,_B],A0),dpe=le([Dn,$A,fpe,SB],CA),EB=le([dpe],oA),hpe=le([_t,BA,Dn,Fn],aB),ppe=le([_t,BA,Dn,Fn],eB),mpe=(e,t,n,r,i,a,s,u)=>{if(t){var{type:c}=t,f=Qi(e,u);if(r){var h=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=c==="category"&&r.bandwidth?r.bandwidth()/h:0;return p=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ir(i[0]-i[1])*2*p:p,f&&s?s.map((g,v)=>{var y=r.map(g);return Xe(y)?{coordinate:y+p,value:g,index:v,offset:p}:null}).filter(Lr):r.domain().map((g,v)=>{var y=r.map(g);return Xe(y)?{coordinate:y+p,value:a?a[g]:g,index:v,offset:p}:null}).filter(Lr)}}},Do=le([_t,Dn,$A,EB,_B,hpe,ppe,Fn],mpe),UA=le([sB,lB,bhe],(e,t,n)=>uB(n.shared,e,t)),AB=e=>e.tooltip.settings.trigger,FA=e=>e.tooltip.settings.defaultIndex,$p=le([Tf,UA,AB,FA],mB),du=le([$p,Pf,Lp,jp],jA),kB=le([Do,du],cB),CB=le([$p],e=>{if(e)return e.dataKey}),gpe=le([$p],e=>{if(e)return e.graphicalItemId}),OB=le([Tf,UA,AB,FA],vB),vpe=le([Mo,Po,_t,Bn,Do,FA,OB],gB),ype=le([$p,vpe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),bpe=le([$p],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),wpe=le([OB,du,No,Lp,kB,yB,UA],bB),xpe=le([wpe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function G3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G3(Object(n),!0).forEach(function(r){_pe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _pe(e,t,n){return(t=Spe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Spe(e){var t=Epe(e,"string");return typeof t=="symbol"?t:t+""}function Epe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ape=()=>Ue(Dn),kpe=()=>{var e=Ape(),t=Ue(Do),n=Ue(EB);return Gs(!e||!n?void 0:q3(q3({},e),{},{scale:n}),t)};function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V3(Object(n),!0).forEach(function(r){Cpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cpe(e,t,n){return(t=Ope(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ope(e){var t=Tpe(e,"string");return typeof t=="symbol"?t:t+""}function Tpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mpe=(e,t,n,r)=>{var i=t.find(a=>a&&a.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},Ppe=(e,t,n,r)=>{var i=t.find(f=>f&&f.index===n);if(i){if(e==="centric"){var a=i.coordinate,{radius:s}=r;return dc(dc(dc({},r),er(r.cx,r.cy,s,a)),{},{angle:a,radius:s})}var u=i.coordinate,{angle:c}=r;return dc(dc(dc({},r),er(r.cx,r.cy,u,c)),{},{angle:c,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Npe(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var TB=(e,t,n,r,i)=>{var a,s=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c,f,h,p,g,v=u>0?(c=n[u-1])===null||c===void 0?void 0:c.coordinate:(f=n[s-1])===null||f===void 0?void 0:f.coordinate,y=(h=n[u])===null||h===void 0?void 0:h.coordinate,b=u>=s-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(g=n[u+1])===null||g===void 0?void 0:g.coordinate,w=void 0;if(!(v==null||y==null||b==null))if(Ir(y-v)!==Ir(b-y)){var _=[];if(Ir(b-y)===Ir(i[1]-i[0])){w=b;var C=y+i[1]-i[0];_[0]=Math.min(C,(C+v)/2),_[1]=Math.max(C,(C+v)/2)}else{w=v;var E=b+i[1]-i[0];_[0]=Math.min(y,(E+y)/2),_[1]=Math.max(y,(E+y)/2)}var S=[Math.min(y,(w+y)/2),Math.max(y,(w+y)/2)];if(e>S[0]&&e<=S[1]||e>=_[0]&&e<=_[1]){var T;return(T=n[u])===null||T===void 0?void 0:T.index}}else{var O=Math.min(v,b),M=Math.max(v,b);if(e>(O+y)/2&&e<=(M+y)/2){var P;return(P=n[u])===null||P===void 0?void 0:P.index}}}else if(t)for(var R=0;R<s;R++){var z=t[R];if(z!=null){var D=t[R+1],N=t[R-1];if(R===0&&D!=null&&e<=(z.coordinate+D.coordinate)/2||R===s-1&&N!=null&&e>(z.coordinate+N.coordinate)/2||R>0&&R<s-1&&N!=null&&D!=null&&e>(z.coordinate+N.coordinate)/2&&e<=(z.coordinate+D.coordinate)/2)return z.index}}return-1},MB=()=>Ue(eA),HA=(e,t)=>t,PB=(e,t,n)=>n,GA=(e,t,n,r)=>r,Rpe=le(Do,e=>g0(e,t=>t.coordinate)),qA=le([Tf,HA,PB,GA],mB),VA=le([qA,Pf,Lp,jp],jA),Dpe=(e,t,n)=>{if(t!=null){var r=Tf(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},NB=le([Tf,HA,PB,GA],vB),Ay=le([Mo,Po,_t,Bn,Do,GA,NB],gB),Ipe=le([qA,Ay],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),RB=le([Do,VA],cB),Lpe=le([NB,VA,No,Lp,RB,yB,HA],bB),zpe=le([qA,VA],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),jpe=(e,t,n,r,i,a,s)=>{if(!(!e||!n||!r||!i)&&Npe(e,s)){var u=_se(e,t),c=TB(u,a,i,n,r),f=Mpe(t,i,c,e);return{activeIndex:String(c),activeCoordinate:f}}},$pe=(e,t,n,r,i,a,s)=>{if(!(!e||!r||!i||!a||!n)){var u=Lue(e,n);if(u){var c=Sse(u,t),f=TB(c,s,a,r,i),h=Ppe(t,a,f,u);return{activeIndex:String(f),activeCoordinate:h}}}},Bpe=(e,t,n,r,i,a,s,u)=>{if(!(!e||!t||!r||!i||!a))return t==="horizontal"||t==="vertical"?jpe(e,t,r,i,a,s,u):$pe(e,t,n,r,i,a,s)},Upe=le(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),Fpe=le(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(wn)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:oce}});function K3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K3(Object(n),!0).forEach(function(r){Hpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hpe(e,t,n){return(t=Gpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gpe(e){var t=qpe(e,"string");return typeof t=="symbol"?t:t+""}function qpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vpe={},Kpe={zIndexMap:Object.values(wn).reduce((e,t)=>Y3(Y3({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Vpe)},Ype=new Set(Object.values(wn));function Wpe(e){return Ype.has(e)}var DB=an({name:"zIndex",initialState:Kpe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:At()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Wpe(n)&&delete e.zIndexMap[n])},prepare:At()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:At()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:At()}}}),{registerZIndexPortal:Qpe,unregisterZIndexPortal:Zpe,registerZIndexPortalElement:Xpe,unregisterZIndexPortalElement:Jpe}=DB.actions,eme=DB.reducer;function zr(e){var{zIndex:t,children:n}=e,r=tle(),i=r&&t!==void 0&&t!==0,a=Nn(),s=Wt();k.useLayoutEffect(()=>i?(s(Qpe({zIndex:t})),()=>{s(Zpe({zIndex:t}))}):To,[s,t,i]);var u=Ue(c=>Upe(c,t,a));return i?u?Uy.createPortal(n,u):null:n}function v2(){return v2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v2.apply(null,arguments)}function W3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W3(Object(n),!0).forEach(function(r){tme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tme(e,t,n){return(t=nme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nme(e){var t=rme(e,"string");return typeof t=="symbol"?t:t+""}function rme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ime(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return k.isValidElement(t)?k.cloneElement(t,r):k.createElement(n,r)}function ame(e){var t,{coordinate:n,payload:r,index:i,offset:a,tooltipAxisBandSize:s,layout:u,cursor:c,tooltipEventType:f,chartName:h}=e,p=n,g=r,v=i;if(!c||!p||h!=="ScatterChart"&&f!=="axis")return null;var y,b,w;if(h==="ScatterChart")y=p,b=Qle,w=wn.cursorLine;else if(h==="BarChart")y=Zle(u,p,a,s),b=w8,w=wn.cursorRectangle;else if(u==="radial"&&I6(p)){var{cx:_,cy:C,radius:E,startAngle:S,endAngle:T}=x8(p);y={cx:_,cy:C,startAngle:S,endAngle:T,innerRadius:E,outerRadius:E},b=S8,w=wn.cursorLine}else y={points:Bue(u,p,a)},b=gh,w=wn.cursorLine;var O=typeof c=="object"&&"className"in c?c.className:void 0,M=Hg(Hg(Hg(Hg({stroke:"#ccc",pointerEvents:"none"},a),y),wp(c)),{},{payload:g,payloadIndex:v,className:Et("recharts-tooltip-cursor",O)});return k.createElement(zr,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},k.createElement(ime,{cursor:c,cursorComp:b,cursorProps:M}))}function ome(e){var t=kpe(),n=r8(),r=Ks(),i=MB();return t==null||n==null||r==null||i==null?null:k.createElement(ame,v2({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var IB=k.createContext(null),sme=()=>k.useContext(IB),Xx={exports:{}},Q3;function lme(){return Q3||(Q3=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,f,h){this.fn=c,this.context=f,this.once=h||!1}function a(c,f,h,p,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,p||c,g),y=n?n+f:f;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],v]:c._events[y].push(v):(c._events[y]=v,c._eventsCount++),c}function s(c,f){--c._eventsCount===0?c._events=new r:delete c._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],h,p;if(this._eventsCount===0)return f;for(p in h=this._events)t.call(h,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f},u.prototype.listeners=function(f){var h=n?n+f:f,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,v=p.length,y=new Array(v);g<v;g++)y[g]=p[g].fn;return y},u.prototype.listenerCount=function(f){var h=n?n+f:f,p=this._events[h];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,h,p,g,v,y){var b=n?n+f:f;if(!this._events[b])return!1;var w=this._events[b],_=arguments.length,C,E;if(w.fn){switch(w.once&&this.removeListener(f,w.fn,void 0,!0),_){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,g),!0;case 5:return w.fn.call(w.context,h,p,g,v),!0;case 6:return w.fn.call(w.context,h,p,g,v,y),!0}for(E=1,C=new Array(_-1);E<_;E++)C[E-1]=arguments[E];w.fn.apply(w.context,C)}else{var S=w.length,T;for(E=0;E<S;E++)switch(w[E].once&&this.removeListener(f,w[E].fn,void 0,!0),_){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,h);break;case 3:w[E].fn.call(w[E].context,h,p);break;case 4:w[E].fn.call(w[E].context,h,p,g);break;default:if(!C)for(T=1,C=new Array(_-1);T<_;T++)C[T-1]=arguments[T];w[E].fn.apply(w[E].context,C)}}return!0},u.prototype.on=function(f,h,p){return a(this,f,h,p,!1)},u.prototype.once=function(f,h,p){return a(this,f,h,p,!0)},u.prototype.removeListener=function(f,h,p,g){var v=n?n+f:f;if(!this._events[v])return this;if(!h)return s(this,v),this;var y=this._events[v];if(y.fn)y.fn===h&&(!g||y.once)&&(!p||y.context===p)&&s(this,v);else{for(var b=0,w=[],_=y.length;b<_;b++)(y[b].fn!==h||g&&!y[b].once||p&&y[b].context!==p)&&w.push(y[b]);w.length?this._events[v]=w.length===1?w[0]:w:s(this,v)}return this},u.prototype.removeAllListeners=function(f){var h;return f?(h=n?n+f:f,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(Xx)),Xx.exports}var ume=lme();const cme=ni(ume);var Yh=new cme,y2="recharts.syncEvent.tooltip",Z3="recharts.syncEvent.brush",KA=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Vi(n))return e[n]}},fme={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},LB=an({name:"options",initialState:fme,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),dme=LB.reducer,{createEventEmitter:hme}=LB.actions;function pme(e){return e.tooltip.syncInteraction}var mme={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},zB=an({name:"chartData",initialState:mme,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:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:X3,setDataStartEndIndexes:gme,setComputedData:oCe}=zB.actions,vme=zB.reducer,yme=["x","y"];function J3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J3(Object(n),!0).forEach(function(r){bme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bme(e,t,n){return(t=wme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wme(e){var t=xme(e,"string");return typeof t=="symbol"?t:t+""}function xme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _me(e,t){if(e==null)return{};var n,r,i=Sme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Eme(){var e=Ue(tA),t=Ue(nA),n=Wt(),r=Ue(U8),i=Ue(Do),a=Ks(),s=Sp(),u=Ue(c=>c.rootProps.className);k.useEffect(()=>{if(e==null)return To;var c=(f,h,p)=>{if(t!==p&&e===f){if(r==="index"){var g;if(s&&h!==null&&h!==void 0&&(g=h.payload)!==null&&g!==void 0&&g.coordinate&&h.payload.sourceViewBox){var v=h.payload.coordinate,{x:y,y:b}=v,w=_me(v,yme),{x:_,y:C,width:E,height:S}=h.payload.sourceViewBox,T=hc(hc({},w),{},{x:s.x+(E?(y-_)/E:0)*s.width,y:s.y+(S?(b-C)/S:0)*s.height});n(hc(hc({},h),{},{payload:hc(hc({},h.payload),{},{coordinate:T})}))}else n(h);return}if(i!=null){var O;if(typeof r=="function"){var M={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},P=r(i,M);O=i[P]}else r==="value"&&(O=i.find(j=>String(j.value)===h.payload.label));var{coordinate:R}=h.payload;if(O==null||h.payload.active===!1||R==null||s==null){n(g2({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:z,y:D}=R,N=Math.min(z,s.x+s.width),$=Math.min(D,s.y+s.height),I={x:a==="horizontal"?O.coordinate:N,y:a==="horizontal"?$:O.coordinate},U=g2({active:h.payload.active,coordinate:I,dataKey:h.payload.dataKey,index:String(O.index),label:h.payload.label,sourceViewBox:h.payload.sourceViewBox,graphicalItemId:h.payload.graphicalItemId});n(U)}}};return Yh.on(y2,c),()=>{Yh.off(y2,c)}},[u,n,t,e,r,i,a,s])}function Ame(){var e=Ue(tA),t=Ue(nA),n=Wt();k.useEffect(()=>{if(e==null)return To;var r=(i,a,s)=>{t!==s&&e===i&&n(gme(a))};return Yh.on(Z3,r),()=>{Yh.off(Z3,r)}},[n,t,e])}function kme(){var e=Wt();k.useEffect(()=>{e(hme())},[e]),Eme(),Ame()}function Cme(e,t,n,r,i,a){var s=Ue(y=>Dpe(y,e,t)),u=Ue(gpe),c=Ue(nA),f=Ue(tA),h=Ue(U8),p=Ue(pme),g=p==null?void 0:p.active,v=Sp();k.useEffect(()=>{if(!g&&f!=null&&c!=null){var y=g2({active:a,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:v,graphicalItemId:u});Yh.emit(y2,f,y,c)}},[g,n,s,u,i,r,c,f,h,a,v])}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(r){Ome(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ome(e,t,n){return(t=Tme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tme(e){var t=Mme(e,"string");return typeof t=="symbol"?t:t+""}function Mme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pme(e){return e.dataKey}function Nme(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement(Ale,t)}var nI=[],Rme={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 sCe(e){var t,n,r=rr(e,Rme),{active:i,allowEscapeViewBox:a,animationDuration:s,animationEasing:u,content:c,filterNull:f,isAnimationActive:h,offset:p,payloadUniqBy:g,position:v,reverseDirection:y,useTranslate3d:b,wrapperStyle:w,cursor:_,shared:C,trigger:E,defaultIndex:S,portal:T,axisId:O}=r,M=Wt(),P=typeof S=="number"?String(S):S;k.useEffect(()=>{M(Ehe({shared:C,trigger:E,axisId:O,active:i,defaultIndex:P}))},[M,C,E,O,i,P]);var R=Sp(),z=m8(),D=yhe(C),{activeIndex:N,isActive:$}=(t=Ue(ie=>zpe(ie,D,E,P)))!==null&&t!==void 0?t:{},I=Ue(ie=>Lpe(ie,D,E,P)),U=Ue(ie=>RB(ie,D,E,P)),j=Ue(ie=>Ipe(ie,D,E,P)),G=I,q=sme(),H=(n=i??$)!==null&&n!==void 0?n:!1,[V,B]=nse([G,H]),K=D==="axis"?U:void 0;Cme(D,E,j,K,N,H);var X=T??q;if(X==null||R==null||D==null)return null;var ee=G??nI;H||(ee=nI),f&&ee.length&&(ee=Hoe(ee.filter(ie=>ie.value!=null&&(ie.hide!==!0||r.includeHidden)),g,Pme));var ce=ee.length>0,he=tI(tI({},r),{},{payload:ee,label:K,active:H,activeIndex:N,coordinate:j,accessibilityLayer:z}),de=k.createElement(Lle,{allowEscapeViewBox:a,animationDuration:s,animationEasing:u,isAnimationActive:h,active:H,coordinate:j,hasPayload:ce,offset:p,position:v,reverseDirection:y,useTranslate3d:b,viewBox:R,wrapperStyle:w,lastBoundingBox:V,innerRef:B,hasPortalFromProps:!!T},Nme(c,he));return k.createElement(k.Fragment,null,Uy.createPortal(de,X),H&&k.createElement(ome,{cursor:_,tooltipEventType:D,coordinate:j,payload:ee,index:N}))}var jB=e=>null;jB.displayName="Cell";function Dme(e,t,n){return(t=Ime(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ime(e){var t=Lme(e,"string");return typeof t=="symbol"?t:t+""}function Lme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class zme{constructor(t){Dme(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function rI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(n),!0).forEach(function(r){$me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $me(e,t,n){return(t=Bme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bme(e){var t=Ume(e,"string");return typeof t=="symbol"?t:t+""}function Ume(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fme={cacheSize:2e3,enableCache:!0},$B=jme({},Fme),iI=new zme($B.cacheSize),Hme={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},aI="recharts_measurement_span";function Gme(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(u)}var oI=(e,t)=>{try{var n=document.getElementById(aI);n||(n=document.createElement("span"),n.setAttribute("id",aI),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Hme,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},vh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||kp.isSsr)return{width:0,height:0};if(!$B.enableCache)return oI(t,n);var r=Gme(t,n),i=iI.get(r);if(i)return i;var a=oI(t,n);return iI.set(r,a),a},BB;function qme(e,t,n){return(t=Vme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vme(e){var t=Kme(e,"string");return typeof t=="symbol"?t:t+""}function Kme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yme=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Wme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Qme={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Zme=["cm","mm","pt","pc","in","Q","px"];function Xme(e){return Zme.includes(e)}var kc="NaN";function Jme(e,t){return e*Qme[t]}class Zn{static parse(t){var n,[,r,i]=(n=Wme.exec(t))!==null&&n!==void 0?n:[];return r==null?Zn.NaN:new Zn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Vi(t)&&(this.unit=""),n!==""&&!Yme.test(n)&&(this.num=NaN,this.unit=""),Xme(n)&&(this.num=Jme(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Zn(NaN,""):new Zn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Zn(NaN,""):new Zn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Zn(NaN,""):new Zn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Zn(NaN,""):new Zn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Vi(this.num)}}BB=Zn;qme(Zn,"NaN",new BB(NaN,""));function UB(e){if(e==null||e.includes(kc))return kc;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=sI.exec(t))!==null&&n!==void 0?n:[],s=Zn.parse(r??""),u=Zn.parse(a??""),c=i==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return kc;t=t.replace(sI,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,h,p,g]=(f=lI.exec(t))!==null&&f!==void 0?f:[],v=Zn.parse(h??""),y=Zn.parse(g??""),b=p==="+"?v.add(y):v.subtract(y);if(b.isNaN())return kc;t=t.replace(lI,b.toString())}return t}var uI=/\(([^()]*)\)/;function ege(e){for(var t=e,n;(n=uI.exec(t))!=null;){var[,r]=n;t=t.replace(uI,UB(r))}return t}function tge(e){var t=e.replace(/\s+/g,"");return t=ege(t),t=UB(t),t}function nge(e){try{return tge(e)}catch{return kc}}function Jx(e){var t=nge(e.slice(5,-1));return t===kc?"":t}var rge=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],ige=["dx","dy","angle","className","breakAll"];function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b2.apply(null,arguments)}function cI(e,t){if(e==null)return{};var n,r,i=age(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function age(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var FB=/[ \f\n\r\t\v\u2028\u2029]+/,HB=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];Ht(t)||(n?i=t.toString().split(""):i=t.toString().split(FB));var a=i.map(u=>({word:u,width:vh(u,r).width})),s=n?0:vh(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}};function GB(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function oge(e){return Ht(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var qB=(e,t,n,r)=>e.reduce((i,a)=>{var{word:s,width:u}=a,c=i[i.length-1];if(c&&u!=null&&(t==null||r||c.width+u+n<Number(t)))c.words.push(s),c.width+=u+n;else{var f={words:[s],width:u};i.push(f)}return i},[]),VB=e=>e.reduce((t,n)=>t.width>n.width?t:n),sge="…",fI=(e,t,n,r,i,a,s,u)=>{var c=e.slice(0,t),f=HB({breakAll:n,style:r,children:c+sge});if(!f)return[!1,[]];var h=qB(f.wordsWithComputedWidth,a,s,u),p=h.length>i||VB(h).width>Number(a);return[p,h]},lge=(e,t,n,r,i)=>{var{maxLines:a,children:s,style:u,breakAll:c}=e,f=Ne(a),h=String(s),p=qB(t,r,n,i);if(!f||i)return p;var g=p.length>a||VB(p).width>Number(r);if(!g)return p;for(var v=0,y=h.length-1,b=0,w;v<=y&&b<=h.length-1;){var _=Math.floor((v+y)/2),C=_-1,[E,S]=fI(h,C,c,u,a,r,n,i),[T]=fI(h,_,c,u,a,r,n,i);if(!E&&!T&&(v=_+1),E&&T&&(y=_-1),!E&&T){w=S;break}b++}return w||p},dI=e=>{var t=Ht(e)?[]:e.toString().split(FB);return[{words:t,width:void 0}]},uge=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:s}=e;if((t||n)&&!kp.isSsr){var u,c,f=HB({breakAll:a,children:r,style:i});if(f){var{wordsWithComputedWidth:h,spaceWidth:p}=f;u=h,c=p}else return dI(r);return lge({breakAll:a,children:r,maxLines:s,style:i},u,c,t,!!n)}return dI(r)},KB="#808080",cge={angle:0,breakAll:!1,capHeight:"0.71em",fill:KB,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},YA=k.forwardRef((e,t)=>{var n=rr(e,cge),{x:r,y:i,lineHeight:a,capHeight:s,fill:u,scaleToFit:c,textAnchor:f,verticalAnchor:h}=n,p=cI(n,rge),g=k.useMemo(()=>uge({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:c,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,c,p.style,p.width]),{dx:v,dy:y,angle:b,className:w,breakAll:_}=p,C=cI(p,ige);if(!xi(r)||!xi(i)||g.length===0)return null;var E=Number(r)+(Ne(v)?v:0),S=Number(i)+(Ne(y)?y:0);if(!Xe(E)||!Xe(S))return null;var T;switch(h){case"start":T=Jx("calc(".concat(s,")"));break;case"middle":T=Jx("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(s," / 2))"));break;default:T=Jx("calc(".concat(g.length-1," * -").concat(a,")"));break}var O=[],M=g[0];if(c&&M!=null){var P=M.width,{width:R}=p;O.push("scale(".concat(Ne(R)&&Ne(P)?R/P:1,")"))}return b&&O.push("rotate(".concat(b,", ").concat(E,", ").concat(S,")")),O.length&&(C.transform=O.join(" ")),k.createElement("text",b2({},nr(C),{ref:t,x:E,y:S,className:Et("recharts-text",w),textAnchor:f,fill:u.includes("url")?KB:u}),g.map((z,D)=>{var N=z.words.join(_?"":" ");return k.createElement("tspan",{x:E,dy:D===0?T:a,key:"".concat(N,"-").concat(D)},N)}))});YA.displayName="Text";function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hI(Object(n),!0).forEach(function(r){fge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fge(e,t,n){return(t=dge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dge(e){var t=hge(e,"string");return typeof t=="symbol"?t:t+""}function hge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pge=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i}=e,{x:a,y:s,height:u,upperWidth:c,lowerWidth:f}=VE(t),h=a,p=a+(c-f)/2,g=(h+p)/2,v=(c+f)/2,y=h+c/2,b=u>=0?1:-1,w=b*r,_=b>0?"end":"start",C=b>0?"start":"end",E=c>=0?1:-1,S=E*r,T=E>0?"end":"start",O=E>0?"start":"end",M=i;if(n==="top"){var P={x:h+c/2,y:s-w,horizontalAnchor:"middle",verticalAnchor:_};return M&&(P.height=Math.max(s-M.y,0),P.width=c),P}if(n==="bottom"){var R={x:p+f/2,y:s+u+w,horizontalAnchor:"middle",verticalAnchor:C};return M&&(R.height=Math.max(M.y+M.height-(s+u),0),R.width=f),R}if(n==="left"){var z={x:g-S,y:s+u/2,horizontalAnchor:T,verticalAnchor:"middle"};return M&&(z.width=Math.max(z.x-M.x,0),z.height=u),z}if(n==="right"){var D={x:g+v+S,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return M&&(D.width=Math.max(M.x+M.width-D.x,0),D.height=u),D}var N=M?{width:v,height:u}:{};return n==="insideLeft"?ia({x:g+S,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"},N):n==="insideRight"?ia({x:g+v-S,y:s+u/2,horizontalAnchor:T,verticalAnchor:"middle"},N):n==="insideTop"?ia({x:h+c/2,y:s+w,horizontalAnchor:"middle",verticalAnchor:C},N):n==="insideBottom"?ia({x:p+f/2,y:s+u-w,horizontalAnchor:"middle",verticalAnchor:_},N):n==="insideTopLeft"?ia({x:h+S,y:s+w,horizontalAnchor:O,verticalAnchor:C},N):n==="insideTopRight"?ia({x:h+c-S,y:s+w,horizontalAnchor:T,verticalAnchor:C},N):n==="insideBottomLeft"?ia({x:p+S,y:s+u-w,horizontalAnchor:O,verticalAnchor:_},N):n==="insideBottomRight"?ia({x:p+f-S,y:s+u-w,horizontalAnchor:T,verticalAnchor:_},N):n&&typeof n=="object"&&(Ne(n.x)||lu(n.x))&&(Ne(n.y)||lu(n.y))?ia({x:a+Ki(n.x,v),y:s+Ki(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},N):ia({x:y,y:s+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},N)},mge=["labelRef"],gge=["content"];function pI(e,t){if(e==null)return{};var n,r,i=vge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mI(Object(n),!0).forEach(function(r){yge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yge(e,t,n){return(t=bge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bge(e){var t=wge(e,"string");return typeof t=="symbol"?t:t+""}function wge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(null,arguments)}var YB=k.createContext(null),WB=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:s,children:u}=e,c=k.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:s}),[t,n,r,i,a,s]);return k.createElement(YB.Provider,{value:c},u)},QB=()=>{var e=k.useContext(YB),t=Sp();return e||(t?VE(t):void 0)},xge=k.createContext(null),_ge=()=>{var e=k.useContext(xge),t=Ue(V8);return e||t},Sge=e=>{var{value:t,formatter:n}=e,r=Ht(e.children)?t:e.children;return typeof n=="function"?n(r):r},WA=e=>e!=null&&typeof e=="function",Ege=(e,t)=>{var n=Ir(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Age=(e,t,n,r,i)=>{var{offset:a,className:s}=e,{cx:u,cy:c,innerRadius:f,outerRadius:h,startAngle:p,endAngle:g,clockWise:v}=i,y=(f+h)/2,b=Ege(p,g),w=b>=0?1:-1,_,C;switch(t){case"insideStart":_=p+w*a,C=v;break;case"insideEnd":_=g-w*a,C=!v;break;case"end":_=g+w*a,C=v;break;default:throw new Error("Unsupported position ".concat(t))}C=b<=0?C:!C;var E=er(u,c,y,_),S=er(u,c,y,_+(C?1:-1)*359),T="M".concat(E.x,",").concat(E.y,`
|
|
916
|
+
A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
|
|
917
|
+
`).concat(S.x,",").concat(S.y),O=Ht(e.id)?Uh("recharts-radial-line-"):e.id;return k.createElement("text",so({},r,{dominantBaseline:"central",className:Et("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:O,d:T})),k.createElement("textPath",{xlinkHref:"#".concat(O)},n))},kge=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:u,endAngle:c}=e,f=(u+c)/2;if(n==="outside"){var{x:h,y:p}=er(r,i,s+t,f);return{x:h,y:p,textAnchor:h>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var g=(a+s)/2,{x:v,y}=er(r,i,g,f);return{x:v,y,textAnchor:"middle",verticalAnchor:"middle"}},fv=e=>e!=null&&"cx"in e&&Ne(e.cx),Cge={angle:0,offset:5,zIndex:wn.label,position:"middle",textBreakAll:!1};function Oge(e){if(!fv(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function xs(e){var t=rr(e,Cge),{viewBox:n,parentViewBox:r,position:i,value:a,children:s,content:u,className:c="",textBreakAll:f,labelRef:h}=t,p=_ge(),g=QB(),v=i==="center"?g:p??g,y,b,w;n==null?y=v:fv(n)?y=n:y=VE(n);var _=Oge(y);if(!y||Ht(a)&&Ht(s)&&!k.isValidElement(u)&&typeof u!="function")return null;var C=fh(fh({},t),{},{viewBox:y});if(k.isValidElement(u)){var{labelRef:E}=C,S=pI(C,mge);return k.cloneElement(u,S)}if(typeof u=="function"){var{content:T}=C,O=pI(C,gge);if(b=k.createElement(u,O),k.isValidElement(b))return b}else b=Sge(t);var M=nr(t);if(fv(y)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Age(t,i,b,M,y);w=kge(y,t.offset,t.position)}else{if(!_)return null;var P=pge({viewBox:_,position:i,offset:t.offset,parentViewBox:fv(r)?void 0:r});w=fh(fh({x:P.x,y:P.y,textAnchor:P.horizontalAnchor,verticalAnchor:P.verticalAnchor},P.width!==void 0?{width:P.width}:{}),P.height!==void 0?{height:P.height}:{})}return k.createElement(zr,{zIndex:t.zIndex},k.createElement(YA,so({ref:h,className:Et("recharts-label",c)},M,w,{textAnchor:GB(M.textAnchor)?M.textAnchor:w.textAnchor,breakAll:f}),b))}xs.displayName="Label";var Tge=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?k.createElement(xs,so({key:"label-implicit"},r)):xi(e)?k.createElement(xs,so({key:"label-implicit",value:e},r)):k.isValidElement(e)?e.type===xs?k.cloneElement(e,fh({key:"label-implicit"},r)):k.createElement(xs,so({key:"label-implicit",content:e},r)):WA(e)?k.createElement(xs,so({key:"label-implicit",content:e},r)):e&&typeof e=="object"?k.createElement(xs,so({},e,{key:"label-implicit"},r)):null};function ZB(e){var{label:t,labelRef:n}=e,r=QB();return Tge(t,r,n)||null}var Mge=["valueAccessor"],Pge=["dataKey","clockWise","id","textBreakAll","zIndex"];function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ky.apply(null,arguments)}function gI(e,t){if(e==null)return{};var n,r,i=Nge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rge=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(oge(t))return t},XB=k.createContext(void 0),QA=XB.Provider,JB=k.createContext(void 0);JB.Provider;function Dge(){return k.useContext(XB)}function Ige(){return k.useContext(JB)}function dv(e){var{valueAccessor:t=Rge}=e,n=gI(e,Mge),{dataKey:r,clockWise:i,id:a,textBreakAll:s,zIndex:u}=n,c=gI(n,Pge),f=Dge(),h=Ige(),p=f||h;return!p||!p.length?null:k.createElement(zr,{zIndex:u??wn.label},k.createElement($n,{className:"recharts-label-list"},p.map((g,v)=>{var y,b=Ht(r)?t(g,v):sn(g.payload,r),w=Ht(a)?{}:{id:"".concat(a,"-").concat(v)};return k.createElement(xs,ky({key:"label-".concat(v)},nr(g),c,w,{fill:(y=n.fill)!==null&&y!==void 0?y:g.fill,parentViewBox:g.parentViewBox,value:b,textBreakAll:s,viewBox:g.viewBox,index:v,zIndex:0}))})))}dv.displayName="LabelList";function ZA(e){var{label:t}=e;return t?t===!0?k.createElement(dv,{key:"labelList-implicit"}):k.isValidElement(t)||WA(t)?k.createElement(dv,{key:"labelList-implicit",content:t}):typeof t=="object"?k.createElement(dv,ky({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(null,arguments)}var e9=e=>{var{cx:t,cy:n,r,className:i}=e,a=Et("recharts-dot",i);return Ne(t)&&Ne(n)&&Ne(r)?k.createElement("circle",w2({},ei(e),BE(e),{className:a,cx:t,cy:n,r})):null},Lge={radiusAxis:{},angleAxis:{}},t9=an({name:"polarAxis",initialState:Lge,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:lCe,removeRadiusAxis:uCe,addAngleAxis:cCe,removeAngleAxis:fCe}=t9.actions,zge=t9.reducer;function jge(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var e_={exports:{}},Nt={};/**
|
|
918
|
+
* @license React
|
|
919
|
+
* react-is.production.js
|
|
920
|
+
*
|
|
921
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
922
|
+
*
|
|
923
|
+
* This source code is licensed under the MIT license found in the
|
|
924
|
+
* LICENSE file in the root directory of this source tree.
|
|
925
|
+
*/var vI;function $ge(){if(vI)return Nt;vI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case i:case r:case c:case f:case g:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:return b;case a:return b;default:return w}}case t:return w}}}return Nt.ContextConsumer=a,Nt.ContextProvider=s,Nt.Element=e,Nt.ForwardRef=u,Nt.Fragment=n,Nt.Lazy=p,Nt.Memo=h,Nt.Portal=t,Nt.Profiler=i,Nt.StrictMode=r,Nt.Suspense=c,Nt.SuspenseList=f,Nt.isContextConsumer=function(b){return y(b)===a},Nt.isContextProvider=function(b){return y(b)===s},Nt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Nt.isForwardRef=function(b){return y(b)===u},Nt.isFragment=function(b){return y(b)===n},Nt.isLazy=function(b){return y(b)===p},Nt.isMemo=function(b){return y(b)===h},Nt.isPortal=function(b){return y(b)===t},Nt.isProfiler=function(b){return y(b)===i},Nt.isStrictMode=function(b){return y(b)===r},Nt.isSuspense=function(b){return y(b)===c},Nt.isSuspenseList=function(b){return y(b)===f},Nt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===c||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===v||b.getModuleId!==void 0)},Nt.typeOf=y,Nt}var yI;function Bge(){return yI||(yI=1,e_.exports=$ge()),e_.exports}var Uge=Bge(),bI=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",wI=null,t_=null,n9=e=>{if(e===wI&&Array.isArray(t_))return t_;var t=[];return k.Children.forEach(e,n=>{Ht(n)||(Uge.isFragment(n)?t=t.concat(n9(n.props.children)):t.push(n))}),t_=t,wI=e,t};function Fge(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>bI(i)):r=[bI(t)],n9(e).forEach(i=>{var a=uf(i,"type.displayName")||uf(i,"type.name");a&&r.indexOf(a)!==-1&&n.push(i)}),n}var XA=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,n_={},xI;function Hge(){return xI||(xI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const a=n[Symbol.toStringTag];return a==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${a}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(n_)),n_}var r_,_I;function Gge(){return _I||(_I=1,r_=Hge().isPlainObject),r_}var qge=Gge();const Vge=ni(qge);var SI,EI,AI,kI,CI;function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OI(Object(n),!0).forEach(function(r){Kge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kge(e,t,n){return(t=Yge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yge(e){var t=Wge(e,"string");return typeof t=="symbol"?t:t+""}function Wge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cy.apply(null,arguments)}function Vd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var MI=(e,t,n,r,i)=>{var a=n-r,s;return s=rn(SI||(SI=Vd(["M ",",",""])),e,t),s+=rn(EI||(EI=Vd(["L ",",",""])),e+n,t),s+=rn(AI||(AI=Vd(["L ",",",""])),e+n-a/2,t+i),s+=rn(kI||(kI=Vd(["L ",",",""])),e+n-a/2-r,t+i),s+=rn(CI||(CI=Vd(["L ",","," Z"])),e,t),s},Qge={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Zge=e=>{var t=rr(e,Qge),{x:n,y:r,upperWidth:i,lowerWidth:a,height:s,className:u}=t,{animationEasing:c,animationDuration:f,animationBegin:h,isUpdateAnimationActive:p}=t,g=k.useRef(null),[v,y]=k.useState(-1),b=k.useRef(i),w=k.useRef(a),_=k.useRef(s),C=k.useRef(n),E=k.useRef(r),S=Op(e,"trapezoid-");if(k.useEffect(()=>{if(g.current&&g.current.getTotalLength)try{var I=g.current.getTotalLength();I&&y(I)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||s!==+s||i===0&&a===0||s===0)return null;var T=Et("recharts-trapezoid",u);if(!p)return k.createElement("g",null,k.createElement("path",Cy({},nr(t),{className:T,d:MI(n,r,i,a,s)})));var O=b.current,M=w.current,P=_.current,R=C.current,z=E.current,D="0px ".concat(v===-1?1:v,"px"),N="".concat(v,"px ").concat(v,"px"),$=g8(["strokeDasharray"],f,c);return k.createElement(Cp,{animationId:S,key:S,canBegin:v>0,duration:f,easing:c,isActive:p,begin:h},I=>{var U=Rt(O,i,I),j=Rt(M,a,I),G=Rt(P,s,I),q=Rt(R,n,I),H=Rt(z,r,I);g.current&&(b.current=U,w.current=j,_.current=G,C.current=q,E.current=H);var V=I>0?{transition:$,strokeDasharray:N}:{strokeDasharray:D};return k.createElement("path",Cy({},nr(t),{className:T,d:MI(q,H,U,j,G),ref:g,style:TI(TI({},V),t.style)}))})},Xge=["option","shapeType","activeClassName","inActiveClassName"];function Jge(e,t){if(e==null)return{};var n,r,i=eve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function PI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(r){tve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tve(e,t,n){return(t=nve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nve(e){var t=rve(e,"string");return typeof t=="symbol"?t:t+""}function rve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ive(e,t){return Oy(Oy({},t),e)}function ave(e,t){return e==="symbols"}function NI(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return k.createElement(w8,n);case"trapezoid":return k.createElement(Zge,n);case"sector":return k.createElement(S8,n);case"symbols":if(ave(t))return k.createElement(D6,n);break;case"curve":return k.createElement(gh,n);default:return null}}function ove(e){return k.isValidElement(e)?e.props:e}function r9(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=Jge(e,Xge),s;if(k.isValidElement(t))s=k.cloneElement(t,Oy(Oy({},a),ove(t)));else if(typeof t=="function")s=t(a,a.index);else if(Vge(t)&&typeof t!="boolean"){var u=ive(t,a);s=k.createElement(NI,{shapeType:n,elementProps:u})}else{var c=a;s=k.createElement(NI,{shapeType:n,elementProps:c})}return a.isActive?k.createElement($n,{className:r},s):k.createElement($n,{className:i},s)}var i9=(e,t,n)=>{var r=Wt();return(i,a)=>s=>{e==null||e(i,a,s),r(dB({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},a9=e=>{var t=Wt();return(n,r)=>i=>{e==null||e(n,r,i),t(Ahe())}},o9=(e,t,n)=>{var r=Wt();return(i,a)=>s=>{e==null||e(i,a,s),r(khe({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function JA(e){var{tooltipEntrySettings:t}=e,n=Wt(),r=Nn(),i=k.useRef(null);return k.useLayoutEffect(()=>{r||(i.current===null?n(xhe(t)):i.current!==t&&n(_he({prev:i.current,next:t})),i.current=t)},[t,n,r]),k.useLayoutEffect(()=>()=>{i.current&&(n(She(i.current)),i.current=null)},[n]),null}function ek(e){var{legendPayload:t}=e,n=Wt(),r=Nn(),i=k.useRef(null);return k.useLayoutEffect(()=>{r||(i.current===null?n(ple(t)):i.current!==t&&n(mle({prev:i.current,next:t})),i.current=t)},[n,r,t]),k.useLayoutEffect(()=>()=>{i.current&&(n(gle(i.current)),i.current=null)},[n]),null}var i_,sve=()=>{var[e]=k.useState(()=>Uh("uid-"));return e},lve=(i_=rH.useId)!==null&&i_!==void 0?i_:sve;function uve(e,t){var n=lve();return t||(e?"".concat(e,"-").concat(n):n)}var cve=k.createContext(void 0),tk=e=>{var{id:t,type:n,children:r}=e,i=uve("recharts-".concat(n),t);return k.createElement(cve.Provider,{value:i},r(i))},fve={cartesianItems:[],polarItems:[]},s9=an({name:"graphicalItems",initialState:fve,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:At()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Wr(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:At()},removeCartesianGraphicalItem:{reducer(e,t){var n=Wr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:At()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:At()},removePolarGraphicalItem:{reducer(e,t){var n=Wr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:At()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Wr(e).polarItems.indexOf(n);i>-1&&(e.polarItems[i]=r)},prepare:At()}}}),{addCartesianGraphicalItem:dve,replaceCartesianGraphicalItem:hve,removeCartesianGraphicalItem:pve,addPolarGraphicalItem:dCe,removePolarGraphicalItem:hCe,replacePolarGraphicalItem:pCe}=s9.actions,mve=s9.reducer,gve=e=>{var t=Wt(),n=k.useRef(null);return k.useLayoutEffect(()=>{n.current===null?t(dve(e)):n.current!==e&&t(hve({prev:n.current,next:e})),n.current=e},[t,e]),k.useLayoutEffect(()=>()=>{n.current&&(t(pve(n.current)),n.current=null)},[t]),null},nk=k.memo(gve),vve=["points"];function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RI(Object(n),!0).forEach(function(r){yve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yve(e,t,n){return(t=bve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bve(e){var t=wve(e,"string");return typeof t=="symbol"?t:t+""}function wve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(null,arguments)}function xve(e,t){if(e==null)return{};var n,r,i=_ve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _ve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Sve(e){var{option:t,dotProps:n,className:r}=e;if(k.isValidElement(t))return k.cloneElement(t,n);if(typeof t=="function")return t(n);var i=Et(r,typeof t!="boolean"?t.className:""),a=n??{},{points:s}=a,u=xve(a,vve);return k.createElement(e9,Ty({},u,{className:i}))}function Eve(e,t){return e==null?!1:t?!0:e.length===1}function l9(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:s,needClip:u,clipPathId:c,zIndex:f=wn.scatter}=e;if(!Eve(t,n))return null;var h=XA(n),p=mae(n),g=t.map((y,b)=>{var w,_,C=a_(a_(a_({r:3},s),p),{},{index:b,cx:(w=y.x)!==null&&w!==void 0?w:void 0,cy:(_=y.y)!==null&&_!==void 0?_:void 0,dataKey:a,value:y.value,payload:y.payload,points:t});return k.createElement(Sve,{key:"dot-".concat(b),option:n,dotProps:C,className:i})}),v={};return u&&c!=null&&(v.clipPath="url(#clipPath-".concat(h?"":"dots-").concat(c,")")),k.createElement(zr,{zIndex:f},k.createElement($n,Ty({className:r},v),g))}function DI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function II(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DI(Object(n),!0).forEach(function(r){Ave(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ave(e,t,n){return(t=kve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kve(e){var t=Cve(e,"string");return typeof t=="symbol"?t:t+""}function Cve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u9=0,Ove={xAxis:{},yAxis:{},zAxis:{}},c9=an({name:"cartesianAxis",initialState:Ove,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:At()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:At()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:At()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:At()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:At()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:At()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:At()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:At()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:At()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a,s=i.widthHistory||[];if(s.length===3&&s[0]===s[2]&&r===s[1]&&r!==i.width&&Math.abs(r-((a=s[0])!==null&&a!==void 0?a:0))<=1)return;var u=[...s,r].slice(-3);e.yAxis[n]=II(II({},i),{},{width:r,widthHistory:u})}}}}),{addXAxis:Tve,replaceXAxis:Mve,removeXAxis:Pve,addYAxis:Nve,replaceYAxis:Rve,removeYAxis:Dve,addZAxis:mCe,replaceZAxis:gCe,removeZAxis:vCe,updateYAxisWidth:Ive}=c9.actions,Lve=c9.reducer,zve=le([Bn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),jve=le([zve,Mo,Po],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),U0=()=>Ue(jve),$ve=()=>Ue(xpe);function LI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function o_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LI(Object(n),!0).forEach(function(r){Bve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bve(e,t,n){return(t=Uve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uve(e){var t=Fve(e,"string");return typeof t=="symbol"?t:t+""}function Fve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hve=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:s}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},c=o_(o_(o_({},u),wp(i)),BE(i)),f;return k.isValidElement(i)?f=k.cloneElement(i,c):typeof i=="function"?f=i(c):f=k.createElement(e9,c),k.createElement($n,{className:"recharts-active-dot",clipPath:s},f)};function x2(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:s=wn.activeDot}=e,u=Ue(du),c=$ve();if(t==null||c==null)return null;var f=t.find(h=>c.includes(h.payload));return Ht(f)?null:k.createElement(zr,{zIndex:s},k.createElement(Hve,{point:f,childIndex:Number(u),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var zI=(e,t,n)=>{var r=n??e;if(!Ht(r))return Ki(r,t,0)},Gve=(e,t,n)=>{var r={},i=e.filter(M0),a=e.filter(f=>f.stackId==null),s=i.reduce((f,h)=>{var p=f[h.stackId];return p==null&&(p=[]),p.push(h),f[h.stackId]=p,f},r),u=Object.entries(s).map(f=>{var h,[p,g]=f,v=g.map(b=>b.dataKey),y=zI(t,n,(h=g[0])===null||h===void 0?void 0:h.barSize);return{stackId:p,dataKeys:v,barSize:y}}),c=a.map(f=>{var h=[f.dataKey].filter(g=>g!=null),p=zI(t,n,f.barSize);return{stackId:void 0,dataKeys:h,barSize:p}});return[...u,...c]};function jI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jI(Object(n),!0).forEach(function(r){qve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qve(e,t,n){return(t=Vve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vve(e){var t=Kve(e,"string");return typeof t=="symbol"?t:t+""}function Kve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yve(e,t,n,r,i){var a,s=r.length;if(!(s<1)){var u=Ki(e,n,0,!0),c,f=[];if(Xe((a=r[0])===null||a===void 0?void 0:a.barSize)){var h=!1,p=n/s,g=r.reduce((C,E)=>C+(E.barSize||0),0);g+=(s-1)*u,g>=n&&(g-=(s-1)*u,u=0),g>=n&&p>0&&(h=!0,p*=.9,g=s*p);var v=(n-g)/2>>0,y={offset:v-u,size:0};c=r.reduce((C,E)=>{var S,T={stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:y.offset+y.size+u,size:h?p:(S=E.barSize)!==null&&S!==void 0?S:0}},O=[...C,T];return y=T.position,O},f)}else{var b=Ki(t,n,0,!0);n-2*b-(s-1)*u<=0&&(u=0);var w=(n-2*b-(s-1)*u)/s;w>1&&(w>>=0);var _=Xe(i)?Math.min(w,i):w;c=r.reduce((C,E,S)=>[...C,{stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:b+(w+u)*S+(w-_)/2,size:_}}],f)}return c}}var Wve=(e,t,n,r,i,a,s)=>{var u=Ht(s)?t:s,c=Yve(n,r,i!==a?i:a,e,u);return i!==a&&c!=null&&(c=c.map(f=>Gg(Gg({},f),{},{position:Gg(Gg({},f.position),{},{offset:f.position.offset-i/2})}))),c},Qve=(e,t)=>{var n=T0(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(s=>s.key===n)}}}},Zve=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function Xve(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Xe(e.zIndex)?e.zIndex:t}var Jve=e=>{var{chartData:t}=e,n=Wt(),r=Nn();return k.useEffect(()=>r?()=>{}:(n(X3(t)),()=>{n(X3(void 0))}),[t,n,r]),null},$I={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},f9=an({name:"brush",initialState:$I,reducers:{setBrushSettings(e,t){return t.payload==null?$I:t.payload}}}),{setBrushSettings:yCe}=f9.actions,eye=f9.reducer,tye=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},nye=e=>{var{x1:t,y1:n,x2:r,y2:i}=e;return tye({x:t,y:n},{x:r,y:i})};function rye(e){return(e%180+180)%180}var iye=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=rye(i),s=a*Math.PI/180,u=Math.atan(r/n),c=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(c)},aye={dots:[],areas:[],lines:[]},d9=an({name:"referenceElements",initialState:aye,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Wr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Wr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Wr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:bCe,removeDot:wCe,addArea:xCe,removeArea:_Ce,addLine:oye,removeLine:sye}=d9.actions,lye=d9.reducer,h9=k.createContext(void 0),uye=e=>{var{children:t}=e,[n]=k.useState("".concat(Uh("recharts"),"-clip")),r=U0();if(r==null)return null;var{x:i,y:a,width:s,height:u}=r;return k.createElement(h9.Provider,{value:n},k.createElement("defs",null,k.createElement("clipPath",{id:n},k.createElement("rect",{x:i,y:a,height:u,width:s}))),t)},cye=()=>k.useContext(h9);class fye{constructor(t){var{x:n,y:r}=t;this.xAxisScale=n,this.yAxisScale=r}map(t,n){var r,i,{position:a}=n;return{x:(r=this.xAxisScale.map(t.x,{position:a}))!==null&&r!==void 0?r:0,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:0}}mapWithFallback(t,n){var r,i,{position:a,fallback:s}=n,u,c;return s==="rangeMin"?u=this.yAxisScale.rangeMin():s==="rangeMax"?u=this.yAxisScale.rangeMax():u=0,s==="rangeMin"?c=this.xAxisScale.rangeMin():s==="rangeMax"?c=this.xAxisScale.rangeMax():c=0,{x:(r=this.xAxisScale.map(t.x,{position:a}))!==null&&r!==void 0?r:c,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:u}}isInRange(t){var{x:n,y:r}=t,i=n==null||this.xAxisScale.isInRange(n),a=r==null||this.yAxisScale.isInRange(r);return i&&a}}function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){dye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dye(e,t,n){return(t=hye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hye(e){var t=pye(e,"string");return typeof t=="symbol"?t:t+""}function pye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},My.apply(null,arguments)}var mye=(e,t)=>{var n;if(k.isValidElement(e))n=k.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{if(!Xe(t.x1)||!Xe(t.y1)||!Xe(t.x2)||!Xe(t.y2))return null;n=k.createElement("line",My({},t,{className:"recharts-reference-line-line"}))}return n},gye=(e,t,n,r,i,a)=>{var{x:s,width:u}=a,c=i.map(e,{position:n});if(!Xe(c)||t==="discard"&&!i.isInRange(c))return null;var f=[{x:s+u,y:c},{x:s,y:c}];return r==="left"?f.reverse():f},vye=(e,t,n,r,i,a)=>{var{y:s,height:u}=a,c=i.map(e,{position:n});if(!Xe(c)||t==="discard"&&!i.isInRange(c))return null;var f=[{x:c,y:s+u},{x:c,y:s}];return r==="top"?f.reverse():f},yye=(e,t,n,r)=>{var i=[r.mapWithFallback(e[0],{position:n,fallback:"rangeMin"}),r.mapWithFallback(e[1],{position:n,fallback:"rangeMax"})];return t==="discard"&&i.some(a=>!r.isInRange(a))?null:i},bye=(e,t,n,r,i,a,s)=>{var{x:u,y:c,segment:f,ifOverflow:h}=s,p=xi(u),g=xi(c);return g?gye(c,h,r,a,t,n):p?vye(u,h,r,i,e,n):f!=null&&f.length===2?yye(f,h,r,new fye({x:e,y:t})):null};function wye(e){var t=Wt();return k.useEffect(()=>(t(oye(e)),()=>{t(sye(e))})),null}function xye(e){var{xAxisId:t,yAxisId:n,shape:r,className:i,ifOverflow:a}=e,s=Nn(),u=cye(),c=Ue(M=>Ea(M,t)),f=Ue(M=>Aa(M,n)),h=Ue(M=>pf(M,"xAxis",t,s)),p=Ue(M=>pf(M,"yAxis",n,s)),g=Sp();if(!u||!g||c==null||f==null||h==null||p==null)return null;var v=bye(h,p,g,e.position,c.orientation,f.orientation,e);if(!v)return null;var y=v[0],b=v[1];if(y==null||b==null)return null;var{x:w,y:_}=y,{x:C,y:E}=b,S=a==="hidden"?"url(#".concat(u,")"):void 0,T=UI(UI({clipPath:S},nr(e)),{},{x1:w,y1:_,x2:C,y2:E}),O=nye({x1:w,y1:_,x2:C,y2:E});return k.createElement(zr,{zIndex:e.zIndex},k.createElement($n,{className:Et("recharts-reference-line",i)},mye(r,T),k.createElement(WB,My({},O,{lowerWidth:O.width,upperWidth:O.width}),k.createElement(ZB,{label:e.label}),e.children)))}var _ye={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",label:!1,stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:wn.line};function Sye(e){var t=rr(e,_ye);return k.createElement(k.Fragment,null,k.createElement(wye,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),k.createElement(xye,t))}Sye.displayName="ReferenceLine";function p9(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function Eye(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return iye(r,n)}function Aye(e,t,n){var r=n==="width",{x:i,y:a,width:s,height:u}=e;return t===1?{start:r?i:a,end:r?i+s:a+u}:{start:r?i+s:a+u,end:r?i:a}}function Wh(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function kye(e,t){return p9(e,t+1)}function Cye(e,t,n,r,i){for(var a=(r||[]).slice(),{start:s,end:u}=t,c=0,f=1,h=s,p=function(){var y=r==null?void 0:r[c];if(y===void 0)return{v:p9(r,f)};var b=c,w,_=()=>(w===void 0&&(w=n(y,b)),w),C=y.coordinate,E=c===0||Wh(e,C,_,h,u);E||(c=0,h=s,f+=1),E&&(h=C+e*(_()/2+i),c+=f)},g;f<=a.length;)if(g=p(),g)return g.v;return[]}function Oye(e,t,n,r,i){var a=(r||[]).slice(),s=a.length;if(s===0)return[];for(var{start:u,end:c}=t,f=1;f<=s;f++){for(var h=(s-1)%f,p=u,g=!0,v=function(){var S=r[b];if(S==null)return 0;var T=b,O,M=()=>(O===void 0&&(O=n(S,T)),O),P=S.coordinate,R=b===h||Wh(e,P,M,p,c);if(!R)return g=!1,1;R&&(p=P+e*(M()/2+i))},y,b=h;b<s&&(y=v(),!(y!==0&&y===1));b+=f);if(g){for(var w=[],_=h;_<s;_+=f){var C=r[_];C!=null&&w.push(C)}return w}}return[]}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(r){Tye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tye(e,t,n){return(t=Mye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mye(e){var t=Pye(e,"string");return typeof t=="symbol"?t:t+""}function Pye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nye(e,t,n,r,i){for(var a=(r||[]).slice(),s=a.length,{start:u}=t,{end:c}=t,f=function(g){var v=a[g];if(v==null)return 1;var y=v,b,w=()=>(b===void 0&&(b=n(v,g)),b);if(g===s-1){var _=e*(y.coordinate+e*w()/2-c);a[g]=y=ur(ur({},y),{},{tickCoord:_>0?y.coordinate-_*e:y.coordinate})}else a[g]=y=ur(ur({},y),{},{tickCoord:y.coordinate});if(y.tickCoord!=null){var C=Wh(e,y.tickCoord,w,u,c);C&&(c=y.tickCoord-e*(w()/2+i),a[g]=ur(ur({},y),{},{isShow:!0}))}},h=s-1;h>=0;h--)f(h);return a}function Rye(e,t,n,r,i,a){var s=(r||[]).slice(),u=s.length,{start:c,end:f}=t;if(a){var h=r[u-1];if(h!=null){var p=n(h,u-1),g=e*(h.coordinate+e*p/2-f);if(s[u-1]=h=ur(ur({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate}),h.tickCoord!=null){var v=Wh(e,h.tickCoord,()=>p,c,f);v&&(f=h.tickCoord-e*(p/2+i),s[u-1]=ur(ur({},h),{},{isShow:!0}))}}}for(var y=a?u-1:u,b=function(C){var E=s[C];if(E==null)return 1;var S=E,T,O=()=>(T===void 0&&(T=n(E,C)),T);if(C===0){var M=e*(S.coordinate-e*O()/2-c);s[C]=S=ur(ur({},S),{},{tickCoord:M<0?S.coordinate-M*e:S.coordinate})}else s[C]=S=ur(ur({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var P=Wh(e,S.tickCoord,O,c,f);P&&(c=S.tickCoord+e*(O()/2+i),s[C]=ur(ur({},S),{},{isShow:!0}))}},w=0;w<y;w++)b(w);return s}function rk(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:s,orientation:u,interval:c,tickFormatter:f,unit:h,angle:p}=e;if(!i||!i.length||!r)return[];if(Ne(c)||kp.isSsr){var g;return(g=kye(i,Ne(c)?c:0))!==null&&g!==void 0?g:[]}var v=[],y=u==="top"||u==="bottom"?"width":"height",b=h&&y==="width"?vh(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=(T,O)=>{var M=typeof f=="function"?f(T.value,O):T.value;return y==="width"?Eye(vh(M,{fontSize:t,letterSpacing:n}),b,p):vh(M,{fontSize:t,letterSpacing:n})[y]},_=i[0],C=i[1],E=i.length>=2&&_!=null&&C!=null?Ir(C.coordinate-_.coordinate):1,S=Aye(a,E,y);return c==="equidistantPreserveStart"?Cye(E,S,w,i,s):c==="equidistantPreserveEnd"?Oye(E,S,w,i,s):(c==="preserveStart"||c==="preserveStartEnd"?v=Rye(E,S,w,i,s,c==="preserveStartEnd"):v=Nye(E,S,w,i,s),v.filter(T=>T.isShow))}var Dye=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){Array.from(t).forEach(h=>{if(h){var p=h.getBoundingClientRect();p.width>s&&(s=p.width)}});var u=n?n.getBoundingClientRect().width:0,c=i+a,f=s+c+u+(n?r:0);return Math.round(f)}return 0},Iye={xAxis:{},yAxis:{}},m9=an({name:"renderedTicks",initialState:Iye,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=i},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:Lye,removeRenderedTicks:zye}=m9.actions,jye=m9.reducer,$ye=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function Bye(e,t){if(e==null)return{};var n,r,i=Uye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hu.apply(null,arguments)}function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){Fye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fye(e,t,n){return(t=Hye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hye(e){var t=Gye(e,"string");return typeof t=="symbol"?t:t+""}function Gye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var go={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:wn.axis};function qye(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:s,axisLine:u,otherSvgProps:c}=e;if(!u)return null;var f=nn(nn(nn({},c),ei(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var h=+(a==="top"&&!s||a==="bottom"&&s);f=nn(nn({},f),{},{x1:t,y1:n+h*i,x2:t+r,y2:n+h*i})}else{var p=+(a==="left"&&!s||a==="right"&&s);f=nn(nn({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return k.createElement("line",hu({},f,{className:Et("recharts-cartesian-axis-line",uf(u,"className"))}))}function Vye(e,t,n,r,i,a,s,u,c){var f,h,p,g,v,y,b=u?-1:1,w=e.tickSize||s,_=Ne(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":f=h=e.coordinate,g=n+ +!u*i,p=g-b*w,y=p-b*c,v=_;break;case"left":p=g=e.coordinate,h=t+ +!u*r,f=h-b*w,v=f-b*c,y=_;break;case"right":p=g=e.coordinate,h=t+ +u*r,f=h+b*w,v=f+b*c,y=_;break;default:f=h=e.coordinate,g=n+ +u*i,p=g+b*w,y=p+b*c,v=_;break}return{line:{x1:f,y1:p,x2:h,y2:g},tick:{x:v,y}}}function Kye(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Yye(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Wye(e){var{option:t,tickProps:n,value:r}=e,i,a=Et(n.className,"recharts-cartesian-axis-tick-value");if(k.isValidElement(t))i=k.cloneElement(t,nn(nn({},n),{},{className:a}));else if(typeof t=="function")i=t(nn(nn({},n),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Et(s,jge(t))),i=k.createElement(YA,hu({},n,{className:s}),r)}return i}function Qye(e){var{ticks:t,axisType:n,axisId:r}=e,i=Wt();return k.useEffect(()=>{if(r==null||n==null)return To;var a=t.map(s=>({value:s.value,coordinate:s.coordinate,offset:s.offset,index:s.index}));return i(Lye({ticks:a,axisId:r,axisType:n})),()=>{i(zye({axisId:r,axisType:n}))}},[i,t,r,n]),null}var Zye=k.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:s,unit:u,padding:c,tickTextProps:f,orientation:h,mirror:p,x:g,y:v,width:y,height:b,tickSize:w,tickMargin:_,fontSize:C,letterSpacing:E,getTicksConfig:S,events:T,axisType:O,axisId:M}=e,P=rk(nn(nn({},S),{},{ticks:n}),C,E),R=ei(S),z=wp(r),D=GB(R.textAnchor)?R.textAnchor:Kye(h,p),N=Yye(h,p),$={};typeof i=="object"&&($=i);var I=nn(nn({},R),{},{fill:"none"},$),U=P.map(q=>nn({entry:q},Vye(q,g,v,y,b,h,w,p,_))),j=U.map(q=>{var{entry:H,line:V}=q;return k.createElement($n,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(H.value,"-").concat(H.coordinate,"-").concat(H.tickCoord)},i&&k.createElement("line",hu({},I,V,{className:Et("recharts-cartesian-axis-tick-line",uf(i,"className"))})))}),G=U.map((q,H)=>{var V,B,{entry:K,tick:X}=q,ee=nn(nn(nn(nn({verticalAnchor:N},R),{},{textAnchor:D,stroke:"none",fill:a},X),{},{index:H,payload:K,visibleTicksCount:P.length,tickFormatter:s,padding:c},f),{},{angle:(V=(B=f==null?void 0:f.angle)!==null&&B!==void 0?B:R.angle)!==null&&V!==void 0?V:0}),ce=nn(nn({},ee),z);return k.createElement($n,hu({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(K.value,"-").concat(K.coordinate,"-").concat(K.tickCoord)},UE(T,K,H)),r&&k.createElement(Wye,{option:r,tickProps:ce,value:"".concat(typeof s=="function"?s(K.value,H):K.value).concat(u||"")}))});return k.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},k.createElement(Qye,{ticks:P,axisId:M,axisType:O}),G.length>0&&k.createElement(zr,{zIndex:wn.label},k.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},G)),j.length>0&&k.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},j))}),Xye=k.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:s,ticks:u,axisType:c,axisId:f}=e,h=Bye(e,$ye),[p,g]=k.useState(""),[v,y]=k.useState(""),b=k.useRef(null);k.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return Dye({ticks:b.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=k.useCallback(_=>{if(_){var C=_.getElementsByClassName("recharts-cartesian-axis-tick-value");b.current=C;var E=C[0];if(E){var S=window.getComputedStyle(E),T=S.fontSize,O=S.letterSpacing;(T!==p||O!==v)&&(g(T),y(O))}}},[p,v]);return s||r!=null&&r<=0||i!=null&&i<=0?null:k.createElement(zr,{zIndex:e.zIndex},k.createElement($n,{className:Et("recharts-cartesian-axis",a)},k.createElement(qye,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:ei(e)}),k.createElement(Zye,{ref:w,axisType:c,events:h,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:v,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:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:f}),k.createElement(WB,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},k.createElement(ZB,{label:e.label,labelRef:e.labelRef}),e.children)))}),ik=k.forwardRef((e,t)=>{var n=rr(e,go);return k.createElement(Xye,hu({},n,{ref:t}))});ik.displayName="CartesianAxis";var Jye=["x1","y1","x2","y2","key"],e0e=["offset"],t0e=["xAxisId","yAxisId"],n0e=["xAxisId","yAxisId"];function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(r){r0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r0e(e,t,n){return(t=i0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i0e(e){var t=a0e(e,"string");return typeof t=="symbol"?t:t+""}function a0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(null,arguments)}function Py(e,t){if(e==null)return{};var n,r,i=o0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var s0e=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:s,ry:u}=e;return k.createElement("rect",{x:r,y:i,ry:u,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function g9(e){var{option:t,lineItemProps:n}=e,r;if(k.isValidElement(t))r=k.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:a,y1:s,x2:u,y2:c,key:f}=n,h=Py(n,Jye),p=(i=ei(h))!==null&&i!==void 0?i:{},{offset:g}=p,v=Py(p,e0e);r=k.createElement("line",Dl({},v,{x1:a,y1:s,x2:u,y2:c,fill:"none",key:f}))}return r}function l0e(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Py(e,t0e),c=i.map((f,h)=>{var p=cr(cr({},u),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(h),index:h});return k.createElement(g9,{key:"line-".concat(h),option:r,lineItemProps:p})});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function u0e(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Py(e,n0e),c=i.map((f,h)=>{var p=cr(cr({},u),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(h),index:h});return k.createElement(g9,{option:r,lineItemProps:p,key:"line-".concat(h)})});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function c0e(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:s,horizontalPoints:u,horizontal:c=!0}=e;if(!c||!t||!t.length||u==null)return null;var f=u.map(p=>Math.round(p+i-i)).sort((p,g)=>p-g);i!==f[0]&&f.unshift(0);var h=f.map((p,g)=>{var v=f[g+1],y=v==null,b=y?i+s-p:v-p;if(b<=0)return null;var w=g%t.length;return k.createElement("rect",{key:"react-".concat(g),y:p,x:r,height:b,width:a,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function f0e(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:s,height:u,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var f=c.map(p=>Math.round(p+i-i)).sort((p,g)=>p-g);i!==f[0]&&f.unshift(0);var h=f.map((p,g)=>{var v=f[g+1],y=v==null,b=y?i+s-p:v-p;if(b<=0)return null;var w=g%n.length;return k.createElement("rect",{key:"react-".concat(g),x:p,y:a,width:b,height:u,stroke:"none",fill:n[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var d0e=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return Q6(rk(cr(cr(cr({},go),n),{},{ticks:Z6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},h0e=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return Q6(rk(cr(cr(cr({},go),n),{},{ticks:Z6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},p0e={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:wn.grid};function m0e(e){var t=i8(),n=a8(),r=r8(),i=cr(cr({},rr(e,p0e)),{},{x:Ne(e.x)?e.x:r.left,y:Ne(e.y)?e.y:r.top,width:Ne(e.width)?e.width:r.width,height:Ne(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:s,x:u,y:c,width:f,height:h,syncWithTicks:p,horizontalValues:g,verticalValues:v}=i,y=Nn(),b=Ue(R=>$3(R,"xAxis",a,y)),w=Ue(R=>$3(R,"yAxis",s,y));if(!ya(f)||!ya(h)||!Ne(u)||!Ne(c))return null;var _=i.verticalCoordinatesGenerator||d0e,C=i.horizontalCoordinatesGenerator||h0e,{horizontalPoints:E,verticalPoints:S}=i;if((!E||!E.length)&&typeof C=="function"){var T=g&&g.length,O=C({yAxis:w?cr(cr({},w),{},{ticks:T?g:w.ticks}):void 0,width:t??f,height:n??h,offset:r},T?!0:p);ry(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(E=O)}if((!S||!S.length)&&typeof _=="function"){var M=v&&v.length,P=_({xAxis:b?cr(cr({},b),{},{ticks:M?v:b.ticks}):void 0,width:t??f,height:n??h,offset:r},M?!0:p);ry(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(S=P)}return k.createElement(zr,{zIndex:i.zIndex},k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(s0e,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),k.createElement(c0e,Dl({},i,{horizontalPoints:E})),k.createElement(f0e,Dl({},i,{verticalPoints:S})),k.createElement(l0e,Dl({},i,{offset:r,horizontalPoints:E,xAxis:b,yAxis:w})),k.createElement(u0e,Dl({},i,{offset:r,verticalPoints:S,xAxis:b,yAxis:w}))))}m0e.displayName="CartesianGrid";var g0e={},v9=an({name:"errorBars",initialState:g0e,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(a=>a.dataKey===r.dataKey&&a.direction===r.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:SCe,replaceErrorBar:ECe,removeErrorBar:ACe}=v9.actions,v0e=v9.reducer,y0e=["children"];function b0e(e,t){if(e==null)return{};var n,r,i=w0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var x0e={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},_0e=k.createContext(x0e);function y9(e){var{children:t}=e,n=b0e(e,y0e);return k.createElement(_0e.Provider,{value:n},t)}function F0(e,t){var n,r,i=Ue(f=>Ea(f,e)),a=Ue(f=>Aa(f,t)),s=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:On.allowDataOverflow,u=(r=a==null?void 0:a.allowDataOverflow)!==null&&r!==void 0?r:Tn.allowDataOverflow,c=s||u;return{needClip:c,needClipX:s,needClipY:u}}function ak(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=U0(),{needClipX:a,needClipY:s,needClip:u}=F0(t,n);if(!u||!i)return null;var{x:c,y:f,width:h,height:p}=i;return k.createElement("clipPath",{id:"clipPath-".concat(r)},k.createElement("rect",{x:a?c:c-h/2,y:s?f:f-p/2,width:a?h:h*2,height:s?p:p*2}))}var b9=(e,t,n,r)=>xa(e,"xAxis",t,r),w9=(e,t,n,r)=>wa(e,"xAxis",t,r),x9=(e,t,n,r)=>xa(e,"yAxis",n,r),_9=(e,t,n,r)=>wa(e,"yAxis",n,r),S0e=le([_t,b9,x9,w9,_9],(e,t,n,r,i)=>Qi(e,"xAxis")?Gs(t,r,!1):Gs(n,i,!1)),E0e=(e,t,n,r,i)=>i;function A0e(e){return e.type==="line"}var k0e=le([Rp,E0e],(e,t)=>e.filter(A0e).find(n=>n.id===t)),C0e=le([_t,b9,x9,w9,_9,k0e,S0e,QE],(e,t,n,r,i,a,s,u)=>{var{chartData:c,dataStartIndex:f,dataEndIndex:h}=u;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:p,data:g}=a,v;if(g!=null&&g.length>0?v=g:v=c==null?void 0:c.slice(f,h+1),v!=null)return K0e({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:v})}});function S9(e){var t=wp(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,s=Number(i),u=Number(a);return(Number.isNaN(s)||s<0)&&(s=n),(Number.isNaN(u)||u<0)&&(u=r),{r:s,strokeWidth:u}}return{r:n,strokeWidth:r}}var O0e=["id"],T0e=["type","layout","connectNulls","needClip","shape"],M0e=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qh.apply(null,arguments)}function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){P0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P0e(e,t,n){return(t=N0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N0e(e){var t=R0e(e,"string");return typeof t=="symbol"?t:t+""}function R0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ok(e,t){if(e==null)return{};var n,r,i=D0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var I0e=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:_f(n,t),payload:e}]},L0e=k.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:s,hide:u,unit:c,tooltipType:f,id:h}=e,p={dataDefinedOnItem:n,getPosition:To,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:_f(s,t),hide:u,type:f,color:r,unit:c,graphicalItemId:h}};return k.createElement(JA,{tooltipEntrySettings:p})}),E9=(e,t)=>"".concat(t,"px ").concat(e,"px");function z0e(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r.push(...n);return r}var j0e=(e,t,n)=>{var r=n.reduce((g,v)=>g+v,0);if(!r)return E9(t,e);for(var i=Math.floor(e/r),a=e%r,s=[],u=0,c=0;u<n.length;c+=(f=n[u])!==null&&f!==void 0?f:0,++u){var f,h=n[u];if(h!=null&&c+h>a){s=[...n.slice(0,u),a-c];break}}var p=s.length%2===0?[0,t]:[t];return[...z0e(n,i),...s,...p].map(g=>"".concat(g,"px")).join(", ")};function $0e(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:s}=r,{id:u}=r,c=ok(r,O0e),f=ei(c);return k.createElement(l9,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:f,needClip:s,clipPathId:t})}function B0e(e){var{showLabels:t,children:n,points:r}=e,i=k.useMemo(()=>r==null?void 0:r.map(a=>{var s,u,c={x:(s=a.x)!==null&&s!==void 0?s:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ca(ca({},c),{},{value:a.value,payload:a.payload,viewBox:c,parentViewBox:void 0,fill:void 0})}),[r]);return k.createElement(QA,{value:t?i:void 0},n)}function VI(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:s,layout:u,connectNulls:c,needClip:f,shape:h}=a,p=ok(a,T0e),g=ca(ca({},nr(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:f?"url(#clipPath-".concat(t,")"):void 0,points:r,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return k.createElement(k.Fragment,null,(r==null?void 0:r.length)>1&&k.createElement(r9,Qh({shapeType:"curve",option:h},g,{pathRef:n})),k.createElement($0e,{points:r,clipPathId:t,props:a}))}function U0e(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function F0e(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:s,strokeDasharray:u,isAnimationActive:c,animationBegin:f,animationDuration:h,animationEasing:p,animateNewValues:g,width:v,height:y,onAnimationEnd:b,onAnimationStart:w}=n,_=i.current,C=Op(s,"recharts-line-"),E=k.useRef(C),[S,T]=k.useState(!1),O=!S,M=k.useCallback(()=>{typeof b=="function"&&b(),T(!1)},[b]),P=k.useCallback(()=>{typeof w=="function"&&w(),T(!0)},[w]),R=U0e(r.current),z=k.useRef(0);E.current!==C&&(z.current=a.current,E.current=C);var D=z.current;return k.createElement(B0e,{points:s,showLabels:O},n.children,k.createElement(Cp,{animationId:C,begin:f,duration:h,isActive:c,easing:p,onAnimationEnd:M,onAnimationStart:P,key:C},N=>{var $=Rt(D,R+D,N),I=Math.min($,R),U;if(c)if(u){var j="".concat(u).split(/[,\s]+/gim).map(H=>parseFloat(H));U=j0e(I,R,j)}else U=E9(R,I);else U=u==null?void 0:String(u);if(N>0&&R>0&&(i.current=s,a.current=Math.max(a.current,I)),_){var G=_.length/s.length,q=N===1?s:s.map((H,V)=>{var B=Math.floor(V*G);if(_[B]){var K=_[B];return ca(ca({},H),{},{x:Rt(K.x,H.x,N),y:Rt(K.y,H.y,N)})}return g?ca(ca({},H),{},{x:Rt(v*2,H.x,N),y:Rt(y/2,H.y,N)}):ca(ca({},H),{},{x:H.x,y:H.y})});return i.current=q,k.createElement(VI,{props:n,points:q,clipPathId:t,pathRef:r,strokeDasharray:U})}return k.createElement(VI,{props:n,points:s,clipPathId:t,pathRef:r,strokeDasharray:U})}),k.createElement(ZA,{label:n.label}))}function H0e(e){var{clipPathId:t,props:n}=e,r=k.useRef(null),i=k.useRef(0),a=k.useRef(null);return k.createElement(F0e,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var G0e=(e,t)=>{var n,r;return{x:(n=e.x)!==null&&n!==void 0?n:void 0,y:(r=e.y)!==null&&r!==void 0?r:void 0,value:e.value,errorVal:sn(e.payload,t)}};class q0e extends k.Component{render(){var{hide:t,dot:n,points:r,className:i,xAxisId:a,yAxisId:s,top:u,left:c,width:f,height:h,id:p,needClip:g,zIndex:v}=this.props;if(t)return null;var y=Et("recharts-line",i),b=p,{r:w,strokeWidth:_}=S9(n),C=XA(n),E=w*2+_,S=g?"url(#clipPath-".concat(C?"":"dots-").concat(b,")"):void 0;return k.createElement(zr,{zIndex:v},k.createElement($n,{className:y},g&&k.createElement("defs",null,k.createElement(ak,{clipPathId:b,xAxisId:a,yAxisId:s}),!C&&k.createElement("clipPath",{id:"clipPath-dots-".concat(b)},k.createElement("rect",{x:c-E/2,y:u-E/2,width:f+E,height:h+E}))),k.createElement(y9,{xAxisId:a,yAxisId:s,data:r,dataPointFormatter:G0e,errorBarOffset:0},k.createElement(H0e,{props:this.props,clipPathId:b}))),k.createElement(x2,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var A9={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:wn.line,type:"linear"};function V0e(e){var t=rr(e,A9),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,connectNulls:u,dot:c,hide:f,isAnimationActive:h,label:p,legendType:g,xAxisId:v,yAxisId:y,id:b}=t,w=ok(t,M0e),{needClip:_}=F0(v,y),C=U0(),E=Ks(),S=Nn(),T=Ue(z=>C0e(z,v,y,S,b));if(E!=="horizontal"&&E!=="vertical"||T==null||C==null)return null;var{height:O,width:M,x:P,y:R}=C;return k.createElement(q0e,Qh({},w,{id:b,connectNulls:u,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,isAnimationActive:h,hide:f,label:p,legendType:g,xAxisId:v,yAxisId:y,points:T,layout:E,height:O,width:M,left:P,top:R,needClip:_}))}function K0e(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:u,displayedData:c}=e;return c.map((f,h)=>{var p=sn(f,s);if(t==="horizontal"){var g=ny({axis:n,ticks:i,bandSize:u,entry:f,index:h}),v=Ht(p)?null:r.scale.map(p);return{x:g,y:v??null,value:p,payload:f}}var y=Ht(p)?null:n.scale.map(p),b=ny({axis:r,ticks:a,bandSize:u,entry:f,index:h});return y==null||b==null?null:{x:y,y:b,value:p,payload:f}}).filter(Boolean)}function Y0e(e){var t=rr(e,A9),n=Nn();return k.createElement(tk,{id:t.id,type:"line"},r=>k.createElement(k.Fragment,null,k.createElement(ek,{legendPayload:I0e(t)}),k.createElement(L0e,{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:r}),k.createElement(nk,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),k.createElement(V0e,Qh({},t,{id:r}))))}var W0e=k.memo(Y0e,Sf);W0e.displayName="Line";function ka(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:u9}function Ca(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:u9}var k9=(e,t,n)=>xa(e,"xAxis",ka(e,t),n),C9=(e,t,n)=>wa(e,"xAxis",ka(e,t),n),O9=(e,t,n)=>xa(e,"yAxis",Ca(e,t),n),T9=(e,t,n)=>wa(e,"yAxis",Ca(e,t),n),Q0e=le([_t,k9,O9,C9,T9],(e,t,n,r,i)=>Qi(e,"xAxis")?Gs(t,r,!1):Gs(n,i,!1)),Z0e=(e,t)=>t,M9=le([Rp,Z0e],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),P9=e=>{var t=_t(e),n=Qi(t,"xAxis");return n?"yAxis":"xAxis"},X0e=(e,t)=>{var n=P9(e);return n==="yAxis"?Ca(e,t):ka(e,t)},J0e=(e,t,n)=>_y(e,P9(e),X0e(e,t),n),ebe=le([M9,J0e],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=T0(e);if(!(r==null||i==null)){var a=(n=t[r])===null||n===void 0?void 0:n.stackedData,s=a==null?void 0:a.find(u=>u.key===i);if(s!=null)return s.map(u=>[u[0],u[1]])}}}),tbe=le([_t,k9,O9,C9,T9,ebe,k8,Q0e,M9,Jue],(e,t,n,r,i,a,s,u,c,f)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:g}=s;if(!(c==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||u==null)){var{data:v}=c,y;if(v&&v.length>0?y=v:y=h==null?void 0:h.slice(p,g+1),y!=null)return xbe({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:p,areaSettings:c,stackedData:a,displayedData:y,chartBaseValue:f,bandSize:u})}}),nbe=["id"],rbe=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wl.apply(null,arguments)}function N9(e,t){if(e==null)return{};var n,r,i=ibe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ibe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function KI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(n),!0).forEach(function(r){abe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function abe(e,t,n){return(t=obe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function obe(e){var t=sbe(e,"string");return typeof t=="symbol"?t:t+""}function sbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ny(e,t){return e&&e!=="none"?e:t}var lbe=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:s}=e;return[{inactive:s,dataKey:t,type:a,color:Ny(r,i),value:_f(n,t),payload:e}]},ube=k.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:s,hide:u,unit:c,tooltipType:f,id:h}=e,p={dataDefinedOnItem:n,getPosition:To,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:_f(s,t),hide:u,type:f,color:Ny(r,a),unit:c,graphicalItemId:h}};return k.createElement(JA,{tooltipEntrySettings:p})});function cbe(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:s}=r,u=ei(r);return k.createElement(l9,{points:n,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:u,needClip:i,clipPathId:t})}function fbe(e){var{showLabels:t,children:n,points:r}=e,i=r.map(a=>{var s,u,c={x:(s=a.x)!==null&&s!==void 0?s:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Cc(Cc({},c),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:c,fill:void 0})});return k.createElement(QA,{value:t?i:void 0},n)}function YI(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:s,type:u,stroke:c,connectNulls:f,isRange:h}=a,{id:p}=a,g=N9(a,nbe),v=ei(g),y=nr(g);return k.createElement(k.Fragment,null,(t==null?void 0:t.length)>1&&k.createElement($n,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},k.createElement(gh,Wl({},y,{id:p,points:t,connectNulls:f,type:u,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&k.createElement(gh,Wl({},v,{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:t})),c!=="none"&&h&&Array.isArray(n)&&k.createElement(gh,Wl({},v,{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:n}))),k.createElement(cbe,{points:t,props:g,clipPathId:i}))}function dbe(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:s}=e,u=(t=a[0])===null||t===void 0?void 0:t.y,c=(n=a[a.length-1])===null||n===void 0?void 0:n.y;if(!Xe(u)||!Xe(c))return null;var f=r*Math.abs(u-c),h=Math.max(...a.map(p=>p.x||0));return Ne(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.x||0),h)),Ne(h)?k.createElement("rect",{x:0,y:u<c?u:u-f,width:h+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}function hbe(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:s}=e,u=(t=a[0])===null||t===void 0?void 0:t.x,c=(n=a[a.length-1])===null||n===void 0?void 0:n.x;if(!Xe(u)||!Xe(c))return null;var f=r*Math.abs(u-c),h=Math.max(...a.map(p=>p.y||0));return Ne(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.y||0),h)),Ne(h)?k.createElement("rect",{x:u<c?u:u-f,y:0,width:f,height:Math.floor(h+(s?parseInt("".concat(s),10):1))}):null}function pbe(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n==="vertical"?k.createElement(dbe,{alpha:t,points:r,baseLine:i,strokeWidth:a}):k.createElement(hbe,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function mbe(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:s,baseLine:u,isAnimationActive:c,animationBegin:f,animationDuration:h,animationEasing:p,onAnimationStart:g,onAnimationEnd:v}=r,y=k.useMemo(()=>({points:s,baseLine:u}),[s,u]),b=Op(y,"recharts-area-"),w=KE(),[_,C]=k.useState(!1),E=!_,S=k.useCallback(()=>{typeof v=="function"&&v(),C(!1)},[v]),T=k.useCallback(()=>{typeof g=="function"&&g(),C(!0)},[g]);if(w==null)return null;var O=i.current,M=a.current;return k.createElement(fbe,{showLabels:E,points:s},r.children,k.createElement(Cp,{animationId:b,begin:f,duration:h,isActive:c,easing:p,onAnimationEnd:S,onAnimationStart:T,key:b},P=>{if(O){var R=O.length/s.length,z=P===1?s:s.map((N,$)=>{var I=Math.floor($*R);if(O[I]){var U=O[I];return Cc(Cc({},N),{},{x:Rt(U.x,N.x,P),y:Rt(U.y,N.y,P)})}return N}),D;return Ne(u)?D=Rt(M,u,P):Ht(u)||Vi(u)?D=Rt(M,0,P):D=u.map((N,$)=>{var I=Math.floor($*R);if(Array.isArray(M)&&M[I]){var U=M[I];return Cc(Cc({},N),{},{x:Rt(U.x,N.x,P),y:Rt(U.y,N.y,P)})}return N}),P>0&&(i.current=z,a.current=D),k.createElement(YI,{points:z,baseLine:D,needClip:t,clipPathId:n,props:r})}return P>0&&(i.current=s,a.current=u),k.createElement($n,null,c&&k.createElement("defs",null,k.createElement("clipPath",{id:"animationClipPath-".concat(n)},k.createElement(pbe,{alpha:P,points:s,baseLine:u,layout:w,strokeWidth:r.strokeWidth}))),k.createElement($n,{clipPath:"url(#animationClipPath-".concat(n,")")},k.createElement(YI,{points:s,baseLine:u,needClip:t,clipPathId:n,props:r})))}),k.createElement(ZA,{label:r.label}))}function gbe(e){var{needClip:t,clipPathId:n,props:r}=e,i=k.useRef(null),a=k.useRef();return k.createElement(mbe,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}class vbe extends k.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:a,left:s,needClip:u,xAxisId:c,yAxisId:f,width:h,height:p,id:g,baseLine:v,zIndex:y}=this.props;if(t)return null;var b=Et("recharts-area",i),w=g,{r:_,strokeWidth:C}=S9(n),E=XA(n),S=_*2+C,T=u?"url(#clipPath-".concat(E?"":"dots-").concat(w,")"):void 0;return k.createElement(zr,{zIndex:y},k.createElement($n,{className:b},u&&k.createElement("defs",null,k.createElement(ak,{clipPathId:w,xAxisId:c,yAxisId:f}),!E&&k.createElement("clipPath",{id:"clipPath-dots-".concat(w)},k.createElement("rect",{x:s-S/2,y:a-S/2,width:h+S,height:p+S}))),k.createElement(gbe,{needClip:u,clipPathId:w,props:this.props})),k.createElement(x2,{points:r,mainColor:Ny(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}),this.props.isRange&&Array.isArray(v)&&k.createElement(x2,{points:v,mainColor:Ny(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}))}}var ybe={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:wn.area};function bbe(e){var t,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,connectNulls:s,dot:u,fill:c,fillOpacity:f,hide:h,isAnimationActive:p,legendType:g,stroke:v,xAxisId:y,yAxisId:b}=e,w=N9(e,rbe),_=Ks(),C=MB(),{needClip:E}=F0(y,b),S=Nn(),{points:T,isRange:O,baseLine:M}=(t=Ue($=>tbe($,e.id,S)))!==null&&t!==void 0?t:{},P=U0();if(_!=="horizontal"&&_!=="vertical"||P==null||C!=="AreaChart"&&C!=="ComposedChart")return null;var{height:R,width:z,x:D,y:N}=P;return!T||!T.length?null:k.createElement(vbe,Wl({},w,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,baseLine:M,connectNulls:s,dot:u,fill:c,fillOpacity:f,height:R,hide:h,layout:_,isAnimationActive:p,isRange:O,legendType:g,needClip:E,points:T,stroke:v,width:z,left:D,top:N,xAxisId:y,yAxisId:b}))}var wbe=(e,t,n,r,i)=>{var a=n??t;if(Ne(a))return a;var s=e==="horizontal"?i:r,u=s.scale.domain();if(s.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return a==="dataMin"?f:a==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return a==="dataMin"?u[0]:a==="dataMax"?u[1]:u[0]};function xbe(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:s,xAxis:u,yAxis:c,displayedData:f,dataStartIndex:h,xAxisTicks:p,yAxisTicks:g,bandSize:v}=e,y=i&&i.length,b=wbe(a,s,n,u,c),w=a==="horizontal",_=!1,C=f.map((S,T)=>{var O,M,P,R;if(y)R=i[h+T];else{var z=sn(S,r);Array.isArray(z)?(R=z,_=!0):R=[b,z]}var D=(O=(M=R)===null||M===void 0?void 0:M[1])!==null&&O!==void 0?O:null,N=D==null||y&&!t&&sn(S,r)==null;if(w){var $;return{x:ny({axis:u,ticks:p,bandSize:v,entry:S,index:T}),y:N?null:($=c.scale.map(D))!==null&&$!==void 0?$:null,value:R,payload:S}}return{x:N?null:(P=u.scale.map(D))!==null&&P!==void 0?P:null,y:ny({axis:c,ticks:g,bandSize:v,entry:S,index:T}),value:R,payload:S}}),E;return y||_?E=C.map(S=>{var T,O=Array.isArray(S.value)?S.value[0]:null;if(w){var M;return{x:S.x,y:O!=null&&S.y!=null&&(M=c.scale.map(O))!==null&&M!==void 0?M:null,payload:S.payload}}return{x:O!=null&&(T=u.scale.map(O))!==null&&T!==void 0?T:null,y:S.y,payload:S.payload}}):E=w?c.scale.map(b):u.scale.map(b),{points:C,baseLine:E??0,isRange:_}}function _be(e){var t=rr(e,ybe),n=Nn();return k.createElement(tk,{id:t.id,type:"area"},r=>k.createElement(k.Fragment,null,k.createElement(ek,{legendPayload:lbe(t)}),k.createElement(ube,{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:r}),k.createElement(nk,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:X6(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),k.createElement(bbe,Wl({},t,{id:r}))))}var Sbe=k.memo(_be,Sf);Sbe.displayName="Area";var Ebe="Invariant failed";function Abe(e,t){throw new Error(Ebe)}function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_2.apply(null,arguments)}function sk(e){return k.createElement(r9,_2({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var kbe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Ne(t))return t;var a=Ne(r)||Ht(r);return a?t(r,i):(a||Abe(),n)}},Cbe=(e,t,n)=>n,Obe=(e,t)=>t,Bp=le([Rp,Obe],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Tbe=le([Bp],e=>e==null?void 0:e.maxBarSize),Mbe=(e,t,n,r)=>r,Pbe=le([_t,Rp,ka,Ca,Cbe],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Nbe=(e,t,n)=>{var r=_t(e),i=ka(e,t),a=Ca(e,t);if(!(i==null||a==null))return r==="horizontal"?_y(e,"yAxis",a,n):_y(e,"xAxis",i,n)},Rbe=(e,t)=>{var n=_t(e),r=ka(e,t),i=Ca(e,t);if(!(r==null||i==null))return n==="horizontal"?j3(e,"xAxis",r):j3(e,"yAxis",i)},Dbe=le([Pbe,Xue,Rbe],Gve),Ibe=(e,t,n)=>{var r,i,a=Bp(e,t);if(a==null)return 0;var s=ka(e,t),u=Ca(e,t);if(s==null||u==null)return 0;var c=_t(e),f=j8(e),{maxBarSize:h}=a,p=Ht(h)?f:h,g,v;return c==="horizontal"?(g=xa(e,"xAxis",s,n),v=wa(e,"xAxis",s,n)):(g=xa(e,"yAxis",u,n),v=wa(e,"yAxis",u,n)),(r=(i=Gs(g,v,!0))!==null&&i!==void 0?i:p)!==null&&r!==void 0?r:0},R9=(e,t,n)=>{var r=_t(e),i=ka(e,t),a=Ca(e,t);if(!(i==null||a==null)){var s,u;return r==="horizontal"?(s=xa(e,"xAxis",i,n),u=wa(e,"xAxis",i,n)):(s=xa(e,"yAxis",a,n),u=wa(e,"yAxis",a,n)),Gs(s,u)}},Lbe=le([Dbe,j8,Zue,$8,Ibe,R9,Tbe],Wve),zbe=(e,t,n)=>{var r=ka(e,t);if(r!=null)return xa(e,"xAxis",r,n)},jbe=(e,t,n)=>{var r=Ca(e,t);if(r!=null)return xa(e,"yAxis",r,n)},$be=(e,t,n)=>{var r=ka(e,t);if(r!=null)return wa(e,"xAxis",r,n)},Bbe=(e,t,n)=>{var r=Ca(e,t);if(r!=null)return wa(e,"yAxis",r,n)},Ube=le([Lbe,Bp],Zve),Fbe=le([Nbe,Bp],Qve),Hbe=le([Bn,GE,zbe,jbe,$be,Bbe,Ube,_t,k8,R9,Fbe,Bp,Mbe],(e,t,n,r,i,a,s,u,c,f,h,p,g)=>{var{chartData:v,dataStartIndex:y,dataEndIndex:b}=c;if(!(p==null||s==null||t==null||u!=="horizontal"&&u!=="vertical"||n==null||r==null||i==null||a==null||f==null)){var{data:w}=p,_;if(w!=null&&w.length>0?_=w:_=v==null?void 0:v.slice(y,b+1),_!=null)return v1e({layout:u,barSettings:p,pos:s,parentViewBox:t,bandSize:f,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:h,displayedData:_,offset:e,cells:g,dataStartIndex:y})}}),Gbe=["index"];function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S2.apply(null,arguments)}function qbe(e,t){if(e==null)return{};var n,r,i=Vbe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vbe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var D9=k.createContext(void 0),Kbe=e=>{var t=k.useContext(D9);if(t!=null)return t.stackId;if(e!=null)return X6(e)},Ybe=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Wbe=e=>{var t=k.useContext(D9);if(t!=null){var{stackId:n}=t;return"url(#".concat(Ybe(n,e),")")}},I9=e=>{var{index:t}=e,n=qbe(e,Gbe),r=Wbe(t);return k.createElement($n,S2({className:"recharts-bar-stack-layer",clipPath:r},n))},Qbe=["onMouseEnter","onMouseLeave","onClick"],Zbe=["value","background","tooltipPosition"],Xbe=["id"],Jbe=["onMouseEnter","onClick","onMouseLeave"];function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(null,arguments)}function WI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WI(Object(n),!0).forEach(function(r){e1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e1e(e,t,n){return(t=t1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t1e(e){var t=n1e(e,"string");return typeof t=="symbol"?t:t+""}function n1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ry(e,t){if(e==null)return{};var n,r,i=r1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function r1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var i1e=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:_f(n,t),payload:e}]},a1e=k.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:s,unit:u,tooltipType:c,id:f}=e,h={dataDefinedOnItem:void 0,getPosition:To,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:_f(a,t),hide:s,type:c,color:i,unit:u,graphicalItemId:f}};return k.createElement(JA,{tooltipEntrySettings:h})});function o1e(e){var t=Ue(du),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:s,onMouseLeave:u,onClick:c}=a,f=Ry(a,Qbe),h=i9(s,r,a.id),p=a9(u),g=o9(c,r,a.id);if(!i||n==null)return null;var v=wp(i);return k.createElement(zr,{zIndex:Xve(i,wn.barBackground)},n.map((y,b)=>{var{value:w,background:_,tooltipPosition:C}=y,E=Ry(y,Zbe);if(!_)return null;var S=h(y,b),T=p(y,b),O=g(y,b),M=vr(vr(vr(vr(vr({option:i,isActive:String(b)===t},E),{},{fill:"#eee"},_),v),UE(f,y,b)),{},{onMouseEnter:S,onMouseLeave:T,onClick:O,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return k.createElement(sk,qs({key:"background-bar-".concat(b)},M))}))}function s1e(e){var{showLabels:t,children:n,rects:r}=e,i=r==null?void 0:r.map(a=>{var s={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return vr(vr({},s),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:s,fill:a.fill})});return k.createElement(QA,{value:t?i:void 0},n)}function l1e(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:s}=e,u=Ue(du),c=Ue(CB),f=n&&String(i.originalDataIndex)===u&&(c==null||s===c),[h,p]=k.useState(!1),[g,v]=k.useState(!1);k.useEffect(()=>{var E;return f?(p(!0),E=requestAnimationFrame(()=>{v(!0)})):v(!1),()=>{cancelAnimationFrame(E)}},[f]);var y=k.useCallback(()=>{f||p(!1)},[f]),b=f&&g,w=f||h,_;f?n===!0?_=t:_=n:_=t;var C=k.createElement(sk,qs({},r,{name:String(r.name)},i,{isActive:b,option:_,index:a,dataKey:s,onTransitionEnd:y}));return w?k.createElement(zr,{zIndex:wn.activeBar},k.createElement(I9,{index:i.originalDataIndex},C)):C}function u1e(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return k.createElement(sk,qs({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function c1e(e){var t,{data:n,props:r}=e,i=(t=ei(r))!==null&&t!==void 0?t:{},{id:a}=i,s=Ry(i,Xbe),{shape:u,dataKey:c,activeBar:f}=r,{onMouseEnter:h,onClick:p,onMouseLeave:g}=r,v=Ry(r,Jbe),y=i9(h,c,a),b=a9(g),w=o9(p,c,a);return n?k.createElement(k.Fragment,null,n.map((_,C)=>k.createElement(I9,qs({index:_.originalDataIndex,key:"rectangle-".concat(_==null?void 0:_.x,"-").concat(_==null?void 0:_.y,"-").concat(_==null?void 0:_.value,"-").concat(C),className:"recharts-bar-rectangle"},UE(v,_,C),{onMouseEnter:y(_,C),onMouseLeave:b(_,C),onClick:w(_,C)}),f?k.createElement(l1e,{shape:u,activeBar:f,baseProps:s,entry:_,index:C,dataKey:c}):k.createElement(u1e,{shape:u,baseProps:s,entry:_,index:C,dataKey:c})))):null}function f1e(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:s,animationDuration:u,animationEasing:c,onAnimationEnd:f,onAnimationStart:h}=t,p=n.current,g=Op(t,"recharts-bar-"),[v,y]=k.useState(!1),b=!v,w=k.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),_=k.useCallback(()=>{typeof h=="function"&&h(),y(!0)},[h]);return k.createElement(s1e,{showLabels:b,rects:r},k.createElement(Cp,{animationId:g,begin:s,duration:u,isActive:a,easing:c,onAnimationEnd:w,onAnimationStart:_,key:g},C=>{var E=C===1?r:r==null?void 0:r.map((S,T)=>{var O=p&&p[T];if(O)return vr(vr({},S),{},{x:Rt(O.x,S.x,C),y:Rt(O.y,S.y,C),width:Rt(O.width,S.width,C),height:Rt(O.height,S.height,C)});if(i==="horizontal"){var M=Rt(0,S.height,C),P=Rt(S.stackedBarStart,S.y,C);return vr(vr({},S),{},{y:P,height:M})}var R=Rt(0,S.width,C),z=Rt(S.stackedBarStart,S.x,C);return vr(vr({},S),{},{width:R,x:z})});return C>0&&(n.current=E??null),E==null?null:k.createElement($n,null,k.createElement(c1e,{props:t,data:E}))}),k.createElement(ZA,{label:t.label}),t.children)}function d1e(e){var t=k.useRef(null);return k.createElement(f1e,{previousRectanglesRef:t,props:e})}var L9=0,h1e=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:sn(e,t)}};class p1e extends k.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:s,needClip:u,background:c,id:f}=this.props;if(t||n==null)return null;var h=Et("recharts-bar",i),p=f;return k.createElement($n,{className:h,id:f},u&&k.createElement("defs",null,k.createElement(ak,{clipPathId:p,xAxisId:a,yAxisId:s})),k.createElement($n,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},k.createElement(o1e,{data:n,dataKey:r,background:c,allOtherBarProps:this.props}),k.createElement(d1e,this.props)))}}var m1e={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:L9,xAxisId:0,yAxisId:0,zIndex:wn.bar};function g1e(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:c,animationEasing:f,isAnimationActive:h}=e,{needClip:p}=F0(t,n),g=Ks(),v=Nn(),y=Fge(e.children,jB),b=Ue(C=>Hbe(C,e.id,v,y));if(g!=="vertical"&&g!=="horizontal")return null;var w,_=b==null?void 0:b[0];return _==null||_.height==null||_.width==null?w=0:w=g==="vertical"?_.height/2:_.width/2,k.createElement(y9,{xAxisId:t,yAxisId:n,data:b,dataPointFormatter:h1e,errorBarOffset:w},k.createElement(p1e,qs({},e,{layout:g,needClip:p,data:b,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:c,animationEasing:f,isAnimationActive:h})))}function v1e(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:s,xAxis:u,yAxis:c,xAxisTicks:f,yAxisTicks:h,stackedData:p,displayedData:g,offset:v,cells:y,parentViewBox:b,dataStartIndex:w}=e,_=t==="horizontal"?c:u,C=p?_.scale.domain():null,E=yse({numericAxis:_}),S=_.scale.map(E);return g.map((T,O)=>{var M,P,R,z,D,N;if(p){var $=p[O+w];if($==null)return null;M=hse($,C)}else M=sn(T,n),Array.isArray(M)||(M=[E,M]);var I=kbe(r,L9)(M[1],O);if(t==="horizontal"){var U,j=c.scale.map(M[0]),G=c.scale.map(M[1]);if(j==null||G==null)return null;P=KR({axis:u,ticks:f,bandSize:s,offset:a.offset,entry:T,index:O}),R=(U=G??j)!==null&&U!==void 0?U:void 0,z=a.size;var q=j-G;if(D=Vi(q)?0:q,N={x:P,y:v.top,width:z,height:v.height},Math.abs(I)>0&&Math.abs(D)<Math.abs(I)){var H=Ir(D||I)*(Math.abs(I)-Math.abs(D));R-=H,D+=H}}else{var V=u.scale.map(M[0]),B=u.scale.map(M[1]);if(V==null||B==null)return null;if(P=V,R=KR({axis:c,ticks:h,bandSize:s,offset:a.offset,entry:T,index:O}),z=B-V,D=a.size,N={x:v.left,y:R,width:v.width,height:D},Math.abs(I)>0&&Math.abs(z)<Math.abs(I)){var K=Ir(z||I)*(Math.abs(I)-Math.abs(z));z+=K}}if(P==null||R==null||z==null||D==null||!i&&(z===0||D===0))return null;var X=vr(vr({},T),{},{stackedBarStart:S,x:P,y:R,width:z,height:D,value:p?M:M[1],payload:T,background:N,tooltipPosition:{x:P+z/2,y:R+D/2},parentViewBox:b,originalDataIndex:O},y&&y[O]&&y[O].props);return X}).filter(Boolean)}function y1e(e){var t=rr(e,m1e),n=Kbe(t.stackId),r=Nn();return k.createElement(tk,{id:t.id,type:"bar"},i=>k.createElement(k.Fragment,null,k.createElement(ek,{legendPayload:i1e(t)}),k.createElement(a1e,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),k.createElement(nk,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),k.createElement(zr,{zIndex:t.zIndex},k.createElement(g1e,qs({},t,{id:i})))))}var b1e=k.memo(y1e,Sf);b1e.displayName="Bar";var w1e=["domain","range"],x1e=["domain","range"];function QI(e,t){if(e==null)return{};var n,r,i=_1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZI(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 z9(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=QI(e,w1e),{domain:a,range:s}=t,u=QI(t,x1e);return!ZI(n,a)||!ZI(r,s)?!1:Sf(i,u)}var S1e=["type"],E1e=["dangerouslySetInnerHTML","ticks","scale"],A1e=["id","scale"];function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(null,arguments)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){k1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k1e(e,t,n){return(t=C1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C1e(e){var t=O1e(e,"string");return typeof t=="symbol"?t:t+""}function O1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A2(e,t){if(e==null)return{};var n,r,i=T1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function M1e(e){var t=Wt(),n=k.useRef(null),r=KE(),{type:i}=e,a=A2(e,S1e),s=k0(r,"xAxis",i),u=k.useMemo(()=>{if(s!=null)return JI(JI({},a),{},{type:s})},[a,s]);return k.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Tve(u)):n.current!==u&&t(Mve({prev:n.current,next:u})),n.current=u)},[u,t]),k.useLayoutEffect(()=>()=>{n.current&&(t(Pve(n.current)),n.current=null)},[t]),null}var P1e=e=>{var{xAxisId:t,className:n}=e,r=Ue(GE),i=Nn(),a="xAxis",s=Ue(_=>oB(_,a,t,i)),u=Ue(_=>rB(_,t)),c=Ue(_=>uhe(_,t)),f=Ue(_=>k$(_,t));if(u==null||c==null||f==null)return null;var{dangerouslySetInnerHTML:h,ticks:p,scale:g}=e,v=A2(e,E1e),{id:y,scale:b}=f,w=A2(f,A1e);return k.createElement(ik,E2({},v,w,{x:c.x,y:c.y,width:u.width,height:u.height,className:Et("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:s,axisType:a,axisId:t}))},N1e={allowDataOverflow:On.allowDataOverflow,allowDecimals:On.allowDecimals,allowDuplicatedCategory:On.allowDuplicatedCategory,angle:On.angle,axisLine:go.axisLine,height:On.height,hide:!1,includeHidden:On.includeHidden,interval:On.interval,label:!1,minTickGap:On.minTickGap,mirror:On.mirror,orientation:On.orientation,padding:On.padding,reversed:On.reversed,scale:On.scale,tick:On.tick,tickCount:On.tickCount,tickLine:go.tickLine,tickSize:go.tickSize,type:On.type,niceTicks:On.niceTicks,xAxisId:0},R1e=e=>{var t=rr(e,N1e);return k.createElement(k.Fragment,null,k.createElement(M1e,{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,niceTicks:t.niceTicks}),k.createElement(P1e,t))},D1e=k.memo(R1e,z9);D1e.displayName="XAxis";var I1e=["type"],L1e=["dangerouslySetInnerHTML","ticks","scale"],z1e=["id","scale"];function k2(){return k2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k2.apply(null,arguments)}function eL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){j1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j1e(e,t,n){return(t=$1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $1e(e){var t=B1e(e,"string");return typeof t=="symbol"?t:t+""}function B1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C2(e,t){if(e==null)return{};var n,r,i=U1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function F1e(e){var t=Wt(),n=k.useRef(null),r=KE(),{type:i}=e,a=C2(e,I1e),s=k0(r,"yAxis",i),u=k.useMemo(()=>{if(s!=null)return tL(tL({},a),{},{type:s})},[s,a]);return k.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Nve(u)):n.current!==u&&t(Rve({prev:n.current,next:u})),n.current=u)},[u,t]),k.useLayoutEffect(()=>()=>{n.current&&(t(Dve(n.current)),n.current=null)},[t]),null}function H1e(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=k.useRef(null),s=k.useRef(null),u=Ue(GE),c=Nn(),f=Wt(),h="yAxis",p=Ue(O=>iB(O,t)),g=Ue(O=>fhe(O,t)),v=Ue(O=>oB(O,h,t,c)),y=Ue(O=>C$(O,t));if(k.useLayoutEffect(()=>{if(!(r!=="auto"||!p||WA(i)||k.isValidElement(i)||y==null)){var O=a.current;if(O){var M=O.getCalculatedWidth();Math.round(p.width)!==Math.round(M)&&f(Ive({id:t,width:M}))}}},[v,p,f,i,t,r,y]),p==null||g==null||y==null)return null;var{dangerouslySetInnerHTML:b,ticks:w,scale:_}=e,C=C2(e,L1e),{id:E,scale:S}=y,T=C2(y,z1e);return k.createElement(ik,k2({},C,T,{ref:a,labelRef:s,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:Et("recharts-".concat(h," ").concat(h),n),viewBox:u,ticks:v,axisType:h,axisId:t}))}var G1e={allowDataOverflow:Tn.allowDataOverflow,allowDecimals:Tn.allowDecimals,allowDuplicatedCategory:Tn.allowDuplicatedCategory,angle:Tn.angle,axisLine:go.axisLine,hide:!1,includeHidden:Tn.includeHidden,interval:Tn.interval,label:!1,minTickGap:Tn.minTickGap,mirror:Tn.mirror,orientation:Tn.orientation,padding:Tn.padding,reversed:Tn.reversed,scale:Tn.scale,tick:Tn.tick,tickCount:Tn.tickCount,tickLine:go.tickLine,tickSize:go.tickSize,type:Tn.type,niceTicks:Tn.niceTicks,width:Tn.width,yAxisId:0},q1e=e=>{var t=rr(e,G1e);return k.createElement(k.Fragment,null,k.createElement(F1e,{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,niceTicks:t.niceTicks}),k.createElement(H1e,t))},V1e=k.memo(q1e,z9);V1e.displayName="YAxis";var K1e=(e,t)=>t,lk=le([K1e,_t,V8,Fn,SB,Do,Rpe,Bn],Bpe);function Y1e(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function uk(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(Y1e(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var s=(u,c)=>({relativeX:Math.round((u-t.left)/n),relativeY:Math.round((c-t.top)/r)});return"touches"in e?Array.from(e.touches).map(u=>s(u.clientX,u.clientY)):s(e.clientX,e.clientY)}var j9=on("mouseClick"),$9=dp();$9.startListening({actionCreator:j9,effect:(e,t)=>{var n=e.payload,r=lk(t.getState(),uk(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Che({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var O2=on("mouseMove"),B9=dp(),pc=null,xl=null,s_=null;B9.startListening({actionCreator:O2,effect:(e,t)=>{var n=e.payload,r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,s=a==="all"||(a==null?void 0:a.includes("mousemove"));pc!==null&&(cancelAnimationFrame(pc),pc=null),xl!==null&&(typeof i!="number"||!s)&&(clearTimeout(xl),xl=null),s_=uk(n);var u=()=>{var c=t.getState(),f=zA(c,c.tooltip.settings.shared);if(!s_){pc=null,xl=null;return}if(f==="axis"){var h=lk(c,s_);(h==null?void 0:h.activeIndex)!=null?t.dispatch(pB({activeIndex:h.activeIndex,activeDataKey:void 0,activeCoordinate:h.activeCoordinate})):t.dispatch(hB())}pc=null,xl=null};if(!s){u();return}i==="raf"?pc=requestAnimationFrame(u):typeof i=="number"&&xl===null&&(xl=setTimeout(u,i))}});function W1e(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 nL={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},U9=an({name:"rootProps",initialState:nL,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:nL.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}}}),Q1e=U9.reducer,{updateOptions:Z1e}=U9.actions,X1e=null,J1e={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},F9=an({name:"polarOptions",initialState:X1e,reducers:J1e}),{updatePolarOptions:kCe}=F9.actions,ewe=F9.reducer,H9=on("keyDown"),G9=on("focus"),q9=on("blur"),H0=dp(),mc=null,_l=null,qg=null;H0.startListening({actionCreator:H9,effect:(e,t)=>{qg=e.payload,mc!==null&&(cancelAnimationFrame(mc),mc=null);var n=t.getState(),{throttleDelay:r,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("keydown");_l!==null&&(typeof r!="number"||!a)&&(clearTimeout(_l),_l=null);var s=()=>{try{var u=t.getState(),c=u.rootProps.accessibilityLayer!==!1;if(!c)return;var{keyboardInteraction:f}=u.tooltip,h=qg;if(h!=="ArrowRight"&&h!=="ArrowLeft"&&h!=="Enter")return;var p=jA(f,Pf(u),Lp(u),jp(u)),g=p==null?-1:Number(p);if(!Number.isFinite(g)||g<0)return;var v=Do(u);if(h==="Enter"){var y=Ay(u,"axis","hover",String(f.index));t.dispatch(Ey({active:!f.active,activeIndex:f.index,activeCoordinate:y}));return}var b=ghe(u),w=b==="left-to-right"?1:-1,_=h==="ArrowRight"?1:-1,C=g+_*w;if(v==null||C>=v.length||C<0)return;var E=Ay(u,"axis","hover",String(C));t.dispatch(Ey({active:!0,activeIndex:C.toString(),activeCoordinate:E}))}finally{mc=null,_l=null}};if(!a){s();return}r==="raf"?mc=requestAnimationFrame(s):typeof r=="number"&&_l===null&&(s(),qg=null,_l=setTimeout(()=>{qg?s():(_l=null,mc=null)},r))}});H0.startListening({actionCreator:G9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",s=Ay(n,"axis","hover",String(a));t.dispatch(Ey({active:!0,activeIndex:a,activeCoordinate:s}))}}}});H0.startListening({actionCreator:q9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;i.active&&t.dispatch(Ey({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function V9(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var mi=on("externalEvent"),K9=dp(),Vg=new Map,Kd=new Map,l_=new Map;K9.startListening({actionCreator:mi,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=V9(r);l_.set(i,{handler:n,reactEvent:a});var s=Vg.get(i);s!==void 0&&(cancelAnimationFrame(s),Vg.delete(i));var u=t.getState(),{throttleDelay:c,throttledEvents:f}=u.eventSettings,h=f,p=h==="all"||(h==null?void 0:h.includes(i)),g=Kd.get(i);g!==void 0&&(typeof c!="number"||!p)&&(clearTimeout(g),Kd.delete(i));var v=()=>{var w=l_.get(i);try{if(!w)return;var{handler:_,reactEvent:C}=w,E=t.getState(),S={activeCoordinate:ype(E),activeDataKey:CB(E),activeIndex:du(E),activeLabel:kB(E),activeTooltipIndex:du(E),isTooltipActive:bpe(E)};_&&_(S,C)}finally{Vg.delete(i),Kd.delete(i),l_.delete(i)}};if(!p){v();return}if(c==="raf"){var y=requestAnimationFrame(v);Vg.set(i,y)}else if(typeof c=="number"){if(!Kd.has(i)){v();var b=setTimeout(v,c);Kd.set(i,b)}}else v()}}});var twe=le([Tf],e=>e.tooltipItemPayloads),nwe=le([twe,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(a=>a.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),Y9=on("touchMove"),W9=dp(),Sl=null,ms=null,rL=null,Yd=null;W9.startListening({actionCreator:Y9,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Yd=V9(n);var r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,s=a==="all"||a.includes("touchmove");Sl!==null&&(cancelAnimationFrame(Sl),Sl=null),ms!==null&&(typeof i!="number"||!s)&&(clearTimeout(ms),ms=null),rL=Array.from(n.touches).map(c=>uk({clientX:c.clientX,clientY:c.clientY,currentTarget:n.currentTarget}));var u=()=>{if(Yd!=null){var c=t.getState(),f=zA(c,c.tooltip.settings.shared);if(f==="axis"){var h,p=(h=rL)===null||h===void 0?void 0:h[0];if(p==null){Sl=null,ms=null;return}var g=lk(c,p);(g==null?void 0:g.activeIndex)!=null&&t.dispatch(pB({activeIndex:g.activeIndex,activeDataKey:void 0,activeCoordinate:g.activeCoordinate}))}else if(f==="item"){var v,y=Yd.touches[0];if(document.elementFromPoint==null||y==null)return;var b=document.elementFromPoint(y.clientX,y.clientY);if(!b||!b.getAttribute)return;var w=b.getAttribute(Ase),_=(v=b.getAttribute(kse))!==null&&v!==void 0?v:void 0,C=Mf(c).find(T=>T.id===_);if(w==null||C==null||_==null)return;var{dataKey:E}=C,S=nwe(c,w,_);t.dispatch(dB({activeDataKey:E,activeIndex:w,activeCoordinate:S,activeGraphicalItemId:_}))}Sl=null,ms=null}};if(!s){u();return}i==="raf"?Sl=requestAnimationFrame(u):typeof i=="number"&&ms===null&&(u(),Yd=null,ms=setTimeout(()=>{Yd?u():(ms=null,Sl=null)},i))}}});var Q9={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},Z9=an({name:"eventSettings",initialState:Q9,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:rwe}=Z9.actions,iwe=Z9.reducer,awe=tE({brush:eye,cartesianAxis:Lve,chartData:vme,errorBars:v0e,eventSettings:iwe,graphicalItems:mve,layout:lse,legend:vle,options:dme,polarAxis:zge,polarOptions:ewe,referenceElements:lye,renderedTicks:jye,rootProps:Q1e,tooltip:Ohe,zIndex:eme}),owe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return XQ({reducer:awe,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([$9.middleware,B9.middleware,H0.middleware,K9.middleware,W9.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(Jz({type:"raf"}))},devTools:{serialize:{replacer:W1e},name:"recharts-".concat(n)}})};function swe(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Nn(),a=k.useRef(null);if(i)return n;a.current==null&&(a.current=owe(t,r));var s=HE;return k.createElement(aG,{context:s,store:a.current},n)}function lwe(e){var{layout:t,margin:n}=e,r=Wt(),i=Nn();return k.useEffect(()=>{i||(r(ase(t)),r(ise(n)))},[r,i,t,n]),null}var uwe=k.memo(lwe,Sf);function cwe(e){var t=Wt();return k.useEffect(()=>{t(Z1e(e))},[t,e]),null}var fwe=e=>{var t=Wt();return k.useEffect(()=>{t(rwe(e))},[t,e]),null},dwe=k.memo(fwe,Sf);function iL(e){var{zIndex:t,isPanorama:n}=e,r=k.useRef(null),i=Wt();return k.useLayoutEffect(()=>(r.current&&i(Xpe({zIndex:t,element:r.current,isPanorama:n})),()=>{i(Jpe({zIndex:t,isPanorama:n}))}),[i,t,n]),k.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function aL(e){var{children:t,isPanorama:n}=e,r=Ue(Fpe);if(!r||r.length===0)return t;var i=r.filter(s=>s<0),a=r.filter(s=>s>0);return k.createElement(k.Fragment,null,i.map(s=>k.createElement(iL,{key:s,zIndex:s,isPanorama:n})),t,a.map(s=>k.createElement(iL,{key:s,zIndex:s,isPanorama:n})))}var hwe=["children"];function pwe(e,t){if(e==null)return{};var n,r,i=mwe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dy.apply(null,arguments)}var gwe={width:"100%",height:"100%",display:"block"},vwe=k.forwardRef((e,t)=>{var n=i8(),r=a8(),i=m8();if(!ya(n)||!ya(r))return null;var{children:a,otherAttributes:s,title:u,desc:c}=e,f,h;return s!=null&&(typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?h=s.role:h=i?"application":void 0),k.createElement(h6,Dy({},s,{title:u,desc:c,role:h,tabIndex:f,width:n,height:r,style:gwe,ref:t}),a)}),ywe=e=>{var{children:t}=e,n=Ue(w0);if(!n)return null;var{width:r,height:i,y:a,x:s}=n;return k.createElement(h6,{width:r,height:i,x:s,y:a},t)},oL=k.forwardRef((e,t)=>{var{children:n}=e,r=pwe(e,hwe),i=Nn();return i?k.createElement(ywe,null,k.createElement(aL,{isPanorama:!0},n)):k.createElement(vwe,Dy({ref:t},r),k.createElement(aL,{isPanorama:!1},n))});function bwe(){var e=Wt(),[t,n]=k.useState(null),r=Ue(Ese);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Xe(a)&&a!==r&&e(sse(a))}},[t,e,r]),n}function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(n),!0).forEach(function(r){xwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xwe(e,t,n){return(t=_we(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _we(e){var t=Swe(e,"string");return typeof t=="symbol"?t:t+""}function Swe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(null,arguments)}var Ewe=()=>(kme(),null);function Iy(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Awe=k.forwardRef((e,t)=>{var n,r,i=k.useRef(null),[a,s]=k.useState({containerWidth:Iy((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Iy((r=e.style)===null||r===void 0?void 0:r.height)}),u=k.useCallback((f,h)=>{s(p=>{var g=Math.round(f),v=Math.round(h);return p.containerWidth===g&&p.containerHeight===v?p:{containerWidth:g,containerHeight:v}})},[]),c=k.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null&&typeof ResizeObserver<"u"){var{width:h,height:p}=f.getBoundingClientRect();u(h,p);var g=y=>{var b=y[0];if(b!=null){var{width:w,height:_}=b.contentRect;u(w,_)}},v=new ResizeObserver(g);v.observe(f),i.current=v}},[t,u]);return k.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[u]),k.createElement(k.Fragment,null,k.createElement(Ep,{width:a.containerWidth,height:a.containerHeight}),k.createElement("div",$s({ref:c},e)))}),kwe=k.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,a]=k.useState({containerWidth:Iy(n),containerHeight:Iy(r)}),s=k.useCallback((c,f)=>{a(h=>{var p=Math.round(c),g=Math.round(f);return h.containerWidth===p&&h.containerHeight===g?h:{containerWidth:p,containerHeight:g}})},[]),u=k.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null){var{width:f,height:h}=c.getBoundingClientRect();s(f,h)}},[t,s]);return k.createElement(k.Fragment,null,k.createElement(Ep,{width:i.containerWidth,height:i.containerHeight}),k.createElement("div",$s({ref:u},e)))}),Cwe=k.forwardRef((e,t)=>{var{width:n,height:r}=e;return k.createElement(k.Fragment,null,k.createElement(Ep,{width:n,height:r}),k.createElement("div",$s({ref:t},e)))}),Owe=k.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?k.createElement(kwe,$s({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?k.createElement(Cwe,$s({},e,{width:n,height:r,ref:t})):k.createElement(k.Fragment,null,k.createElement(Ep,{width:n,height:r}),k.createElement("div",$s({ref:t},e)))});function Twe(e){return e?Awe:Owe}var Mwe=k.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:s,onDoubleClick:u,onMouseDown:c,onMouseEnter:f,onMouseLeave:h,onMouseMove:p,onMouseUp:g,onTouchEnd:v,onTouchMove:y,onTouchStart:b,style:w,width:_,responsive:C,dispatchTouchEvents:E=!0}=e,S=k.useRef(null),T=Wt(),[O,M]=k.useState(null),[P,R]=k.useState(null),z=bwe(),D=qE(),N=(D==null?void 0:D.width)>0?D.width:_,$=(D==null?void 0:D.height)>0?D.height:i,I=k.useCallback(pe=>{z(pe),typeof t=="function"&&t(pe),M(pe),R(pe),pe!=null&&(S.current=pe)},[z,t,M,R]),U=k.useCallback(pe=>{T(j9(pe)),T(mi({handler:a,reactEvent:pe}))},[T,a]),j=k.useCallback(pe=>{T(O2(pe)),T(mi({handler:f,reactEvent:pe}))},[T,f]),G=k.useCallback(pe=>{T(hB()),T(mi({handler:h,reactEvent:pe}))},[T,h]),q=k.useCallback(pe=>{T(O2(pe)),T(mi({handler:p,reactEvent:pe}))},[T,p]),H=k.useCallback(()=>{T(G9())},[T]),V=k.useCallback(()=>{T(q9())},[T]),B=k.useCallback(pe=>{T(H9(pe.key))},[T]),K=k.useCallback(pe=>{T(mi({handler:s,reactEvent:pe}))},[T,s]),X=k.useCallback(pe=>{T(mi({handler:u,reactEvent:pe}))},[T,u]),ee=k.useCallback(pe=>{T(mi({handler:c,reactEvent:pe}))},[T,c]),ce=k.useCallback(pe=>{T(mi({handler:g,reactEvent:pe}))},[T,g]),he=k.useCallback(pe=>{T(mi({handler:b,reactEvent:pe}))},[T,b]),de=k.useCallback(pe=>{E&&T(Y9(pe)),T(mi({handler:y,reactEvent:pe}))},[T,E,y]),ie=k.useCallback(pe=>{T(mi({handler:v,reactEvent:pe}))},[T,v]),J=Twe(C);return k.createElement(IB.Provider,{value:O},k.createElement(_ae.Provider,{value:P},k.createElement(J,{width:N??(w==null?void 0:w.width),height:$??(w==null?void 0:w.height),className:Et("recharts-wrapper",r),style:wwe({position:"relative",cursor:"default",width:N,height:$},w),onClick:U,onContextMenu:K,onDoubleClick:X,onFocus:H,onBlur:V,onKeyDown:B,onMouseDown:ee,onMouseEnter:j,onMouseLeave:G,onMouseMove:q,onMouseUp:ce,onTouchEnd:ie,onTouchMove:de,onTouchStart:he,ref:I},k.createElement(Ewe,null),n)))}),Pwe=["width","height","responsive","children","className","style","compact","title","desc"];function Nwe(e,t){if(e==null)return{};var n,r,i=Rwe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dwe=k.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:s,style:u,compact:c,title:f,desc:h}=e,p=Nwe(e,Pwe),g=ei(p);return c?k.createElement(k.Fragment,null,k.createElement(Ep,{width:n,height:r}),k.createElement(oL,{otherAttributes:g,title:f,desc:h},a)):k.createElement(Mwe,{className:s,style:u,width:n,height:r,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(oL,{otherAttributes:g,title:f,desc:h,ref:t},k.createElement(uye,null,a)))});function T2(){return T2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T2.apply(null,arguments)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){Lwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lwe(e,t,n){return(t=zwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zwe(e){var t=jwe(e,"string");return typeof t=="symbol"?t:t+""}function jwe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $we={top:5,right:5,bottom:5,left:5},Bwe=Iwe({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:$we,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},Q9),ck=k.forwardRef(function(t,n){var r,i=rr(t.categoricalChartProps,Bwe),{chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,categoricalChartProps:f}=t,h={chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,eventEmitter:void 0};return k.createElement(swe,{preloadedState:{options:h},reduxStoreName:(r=f.id)!==null&&r!==void 0?r:a},k.createElement(Jve,{chartData:f.data}),k.createElement(uwe,{layout:i.layout,margin:i.margin}),k.createElement(dwe,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),k.createElement(cwe,{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(Dwe,T2({},i,{ref:n})))}),Uwe=["axis"],CCe=k.forwardRef((e,t)=>k.createElement(ck,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Uwe,tooltipPayloadSearcher:KA,categoricalChartProps:e,ref:t})),Fwe=["axis","item"],OCe=k.forwardRef((e,t)=>k.createElement(ck,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Fwe,tooltipPayloadSearcher:KA,categoricalChartProps:e,ref:t})),Hwe=["axis"],TCe=k.forwardRef((e,t)=>k.createElement(ck,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Hwe,tooltipPayloadSearcher:KA,categoricalChartProps:e,ref:t})),Kg={exports:{}},uL;function Gwe(){if(uL)return Kg.exports;uL=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(T,O,M){return Function.prototype.apply.call(T,O,M)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:n=function(T){return Object.getOwnPropertyNames(T)};function r(S){console&&console.warn&&console.warn(S)}var i=Number.isNaN||function(T){return T!==T};function a(){a.init.call(this)}Kg.exports=a,Kg.exports.once=_,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(S){if(typeof S!="number"||S<0||i(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");s=S}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function c(S){return S._maxListeners===void 0?a.defaultMaxListeners:S._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(T){for(var O=[],M=1;M<arguments.length;M++)O.push(arguments[M]);var P=T==="error",R=this._events;if(R!==void 0)P=P&&R.error===void 0;else if(!P)return!1;if(P){var z;if(O.length>0&&(z=O[0]),z instanceof Error)throw z;var D=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw D.context=z,D}var N=R[T];if(N===void 0)return!1;if(typeof N=="function")t(N,this,O);else for(var $=N.length,I=y(N,$),M=0;M<$;++M)t(I[M],this,O);return!0};function f(S,T,O,M){var P,R,z;if(u(O),R=S._events,R===void 0?(R=S._events=Object.create(null),S._eventsCount=0):(R.newListener!==void 0&&(S.emit("newListener",T,O.listener?O.listener:O),R=S._events),z=R[T]),z===void 0)z=R[T]=O,++S._eventsCount;else if(typeof z=="function"?z=R[T]=M?[O,z]:[z,O]:M?z.unshift(O):z.push(O),P=c(S),P>0&&z.length>P&&!z.warned){z.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=S,D.type=T,D.count=z.length,r(D)}return S}a.prototype.addListener=function(T,O){return f(this,T,O,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(T,O){return f(this,T,O,!0)};function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(S,T,O){var M={fired:!1,wrapFn:void 0,target:S,type:T,listener:O},P=h.bind(M);return P.listener=O,M.wrapFn=P,P}a.prototype.once=function(T,O){return u(O),this.on(T,p(this,T,O)),this},a.prototype.prependOnceListener=function(T,O){return u(O),this.prependListener(T,p(this,T,O)),this},a.prototype.removeListener=function(T,O){var M,P,R,z,D;if(u(O),P=this._events,P===void 0)return this;if(M=P[T],M===void 0)return this;if(M===O||M.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,M.listener||O));else if(typeof M!="function"){for(R=-1,z=M.length-1;z>=0;z--)if(M[z]===O||M[z].listener===O){D=M[z].listener,R=z;break}if(R<0)return this;R===0?M.shift():b(M,R),M.length===1&&(P[T]=M[0]),P.removeListener!==void 0&&this.emit("removeListener",T,D||O)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(T){var O,M,P;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[T]),this;if(arguments.length===0){var R=Object.keys(M),z;for(P=0;P<R.length;++P)z=R[P],z!=="removeListener"&&this.removeAllListeners(z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=M[T],typeof O=="function")this.removeListener(T,O);else if(O!==void 0)for(P=O.length-1;P>=0;P--)this.removeListener(T,O[P]);return this};function g(S,T,O){var M=S._events;if(M===void 0)return[];var P=M[T];return P===void 0?[]:typeof P=="function"?O?[P.listener||P]:[P]:O?w(P):y(P,P.length)}a.prototype.listeners=function(T){return g(this,T,!0)},a.prototype.rawListeners=function(T){return g(this,T,!1)},a.listenerCount=function(S,T){return typeof S.listenerCount=="function"?S.listenerCount(T):v.call(S,T)},a.prototype.listenerCount=v;function v(S){var T=this._events;if(T!==void 0){var O=T[S];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function y(S,T){for(var O=new Array(T),M=0;M<T;++M)O[M]=S[M];return O}function b(S,T){for(;T+1<S.length;T++)S[T]=S[T+1];S.pop()}function w(S){for(var T=new Array(S.length),O=0;O<T.length;++O)T[O]=S[O].listener||S[O];return T}function _(S,T){return new Promise(function(O,M){function P(z){S.removeListener(T,R),M(z)}function R(){typeof S.removeListener=="function"&&S.removeListener("error",P),O([].slice.call(arguments))}E(S,T,R,{once:!0}),T!=="error"&&C(S,P,{once:!0})})}function C(S,T,O){typeof S.on=="function"&&E(S,"error",T,O)}function E(S,T,O,M){if(typeof S.on=="function")M.once?S.once(T,O):S.on(T,O);else if(typeof S.addEventListener=="function")S.addEventListener(T,function P(R){M.once&&S.removeEventListener(T,P),O(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return Kg.exports}var X9=Gwe();function qwe(){const e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)if(arguments[t])for(const r in arguments[t])e[r]=arguments[t][r];return e}let Pn=qwe;typeof Object.assign=="function"&&(Pn=Object.assign);function bi(e,t,n,r){const i=e._nodes.get(t);let a=null;return i&&(r==="mixed"?a=i.out&&i.out[n]||i.undirected&&i.undirected[n]:r==="directed"?a=i.out&&i.out[n]:a=i.undirected&&i.undirected[n]),a}function Jn(e){return typeof e=="object"&&e!==null}function J9(e){let t;for(t in e)return!1;return!0}function pi(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function Ni(e,t,n){const r={enumerable:!0,configurable:!0};typeof n=="function"?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function cL(e){return!(!Jn(e)||e.attributes&&!Array.isArray(e.attributes))}function Vwe(){let e=Math.floor(Math.random()*256)&255;return()=>e++}function vo(){const e=arguments;let t=null,n=-1;return{[Symbol.iterator](){return this},next(){let r=null;do{if(t===null){if(n++,n>=e.length)return{done:!0};t=e[n][Symbol.iterator]()}if(r=t.next(),r.done){t=null;continue}break}while(!0);return r}}}function Nf(){return{[Symbol.iterator](){return this},next(){return{done:!0}}}}class fk extends Error{constructor(t){super(),this.name="GraphError",this.message=t}}class Me extends fk{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Me.prototype.constructor)}}class ke extends fk{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ke.prototype.constructor)}}class Qe extends fk{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Qe.prototype.constructor)}}function eU(e,t){this.key=e,this.attributes=t,this.clear()}eU.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function tU(e,t){this.key=e,this.attributes=t,this.clear()}tU.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function nU(e,t){this.key=e,this.attributes=t,this.clear()}nU.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function Rf(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}Rf.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");const n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};Rf.prototype.attachMulti=function(){let e="out",t="in";const n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");const i=this.source[e],a=i[r];if(typeof a>"u"){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}a.previous=this,this.next=a,i[r]=this,this.target[t][n]=this};Rf.prototype.detach=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};Rf.prototype.detachMulti=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};const rU=0,iU=1,Kwe=2,aU=3;function Io(e,t,n,r,i,a,s){let u,c,f,h;if(r=""+r,n===rU){if(u=e._nodes.get(r),!u)throw new ke(`Graph.${t}: could not find the "${r}" node in the graph.`);f=i,h=a}else if(n===aU){if(i=""+i,c=e._edges.get(i),!c)throw new ke(`Graph.${t}: could not find the "${i}" edge in the graph.`);const p=c.source.key,g=c.target.key;if(r===p)u=c.target;else if(r===g)u=c.source;else throw new ke(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${p}, ${g}).`);f=a,h=s}else{if(c=e._edges.get(r),!c)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===iU?u=c.source:u=c.target,f=i,h=a}return[u,f,h]}function Ywe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return s.attributes[u]}}function Wwe(e,t,n){e.prototype[t]=function(r,i){const[a]=Io(this,t,n,r,i);return a.attributes}}function Qwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return s.attributes.hasOwnProperty(u)}}function Zwe(e,t,n){e.prototype[t]=function(r,i,a,s){const[u,c,f]=Io(this,t,n,r,i,a,s);return u.attributes[c]=f,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:c}),this}}function Xwe(e,t,n){e.prototype[t]=function(r,i,a,s){const[u,c,f]=Io(this,t,n,r,i,a,s);if(typeof f!="function")throw new Me(`Graph.${t}: updater should be a function.`);const h=u.attributes,p=f(h[c]);return h[c]=p,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:c}),this}}function Jwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return delete s.attributes[u],this.emit("nodeAttributesUpdated",{key:s.key,type:"remove",attributes:s.attributes,name:u}),this}}function exe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(!Jn(u))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return s.attributes=u,this.emit("nodeAttributesUpdated",{key:s.key,type:"replace",attributes:s.attributes}),this}}function txe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(!Jn(u))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return Pn(s.attributes,u),this.emit("nodeAttributesUpdated",{key:s.key,type:"merge",attributes:s.attributes,data:u}),this}}function nxe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(typeof u!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return s.attributes=u(s.attributes),this.emit("nodeAttributesUpdated",{key:s.key,type:"update",attributes:s.attributes}),this}}const rxe=[{name:e=>`get${e}Attribute`,attacher:Ywe},{name:e=>`get${e}Attributes`,attacher:Wwe},{name:e=>`has${e}Attribute`,attacher:Qwe},{name:e=>`set${e}Attribute`,attacher:Zwe},{name:e=>`update${e}Attribute`,attacher:Xwe},{name:e=>`remove${e}Attribute`,attacher:Jwe},{name:e=>`replace${e}Attributes`,attacher:exe},{name:e=>`merge${e}Attributes`,attacher:txe},{name:e=>`update${e}Attributes`,attacher:nxe}];function ixe(e){rxe.forEach(function({name:t,attacher:n}){n(e,t("Node"),rU),n(e,t("Source"),iU),n(e,t("Target"),Kwe),n(e,t("Opposite"),aU)})}function axe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes[i]}}function oxe(e,t,n){e.prototype[t]=function(r){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+arguments[1];if(i=bi(this,a,s,n),!i)throw new ke(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes}}function sxe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes.hasOwnProperty(i)}}function lxe(e,t,n){e.prototype[t]=function(r,i,a){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const u=""+r,c=""+i;if(i=arguments[2],a=arguments[3],s=bi(this,u,c,n),!s)throw new ke(`Graph.${t}: could not find an edge for the given path ("${u}" - "${c}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return s.attributes[i]=a,this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function uxe(e,t,n){e.prototype[t]=function(r,i,a){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const u=""+r,c=""+i;if(i=arguments[2],a=arguments[3],s=bi(this,u,c,n),!s)throw new ke(`Graph.${t}: could not find an edge for the given path ("${u}" - "${c}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof a!="function")throw new Me(`Graph.${t}: updater should be a function.`);return s.attributes[i]=a(s.attributes[i]),this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function cxe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete a.attributes[i],this.emit("edgeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:i}),this}}function fxe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Jn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return a.attributes=i,this.emit("edgeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}function dxe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Jn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return Pn(a.attributes,i),this.emit("edgeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:i}),this}}function hxe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return a.attributes=i(a.attributes),this.emit("edgeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}const pxe=[{name:e=>`get${e}Attribute`,attacher:axe},{name:e=>`get${e}Attributes`,attacher:oxe},{name:e=>`has${e}Attribute`,attacher:sxe},{name:e=>`set${e}Attribute`,attacher:lxe},{name:e=>`update${e}Attribute`,attacher:uxe},{name:e=>`remove${e}Attribute`,attacher:cxe},{name:e=>`replace${e}Attributes`,attacher:fxe},{name:e=>`merge${e}Attributes`,attacher:dxe},{name:e=>`update${e}Attributes`,attacher:hxe}];function mxe(e){pxe.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}const gxe=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function vxe(e,t,n,r){let i=!1;for(const a in t){if(a===r)continue;const s=t[a];if(i=n(s.key,s.attributes,s.source.key,s.target.key,s.source.attributes,s.target.attributes,s.undirected),e&&i)return s.key}}function yxe(e,t,n,r){let i,a,s,u=!1;for(const c in t)if(c!==r){i=t[c];do{if(a=i.source,s=i.target,u=n(i.key,i.attributes,a.key,s.key,a.attributes,s.attributes,i.undirected),e&&u)return i.key;i=i.next}while(i!==void 0)}}function u_(e,t){const n=Object.keys(e),r=n.length;let i,a=0;return{[Symbol.iterator](){return this},next(){do if(i)i=i.next;else{if(a>=r)return{done:!0};const s=n[a++];if(s===t){i=void 0;continue}i=e[s]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}}}}function bxe(e,t,n,r){const i=t[n];if(!i)return;const a=i.source,s=i.target;if(r(i.key,i.attributes,a.key,s.key,a.attributes,s.attributes,i.undirected)&&e)return i.key}function wxe(e,t,n,r){let i=t[n];if(!i)return;let a=!1;do{if(a=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}function c_(e,t){let n=e[t];if(n.next!==void 0)return{[Symbol.iterator](){return this},next(){if(!n)return{done:!0};const i={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:i}}};let r=!1;return{[Symbol.iterator](){return this},next(){return r===!0?{done:!0}:(r=!0,{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}})}}}function xxe(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return Array.from(e._edges.keys());const n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),i=t==="undirected",a=e._edges.values();let s=0,u,c;for(;u=a.next(),u.done!==!0;)c=u.value,c.undirected===i&&(r[s++]=c.key);return r}function oU(e,t,n,r){if(t.size===0)return;const i=n!=="mixed"&&n!==t.type,a=n==="undirected";let s,u,c=!1;const f=t._edges.values();for(;s=f.next(),s.done!==!0;){if(u=s.value,i&&u.undirected!==a)continue;const{key:h,attributes:p,source:g,target:v}=u;if(c=r(h,p,g.key,v.key,g.attributes,v.attributes,u.undirected),e&&c)return h}}function _xe(e,t){if(e.size===0)return Nf();const n=t!=="mixed"&&t!==e.type,r=t==="undirected",i=e._edges.values();return{[Symbol.iterator](){return this},next(){let a,s;for(;;){if(a=i.next(),a.done)return a;if(s=a.value,!(n&&s.undirected!==r))break}return{value:{edge:s.key,attributes:s.attributes,source:s.source.key,target:s.target.key,sourceAttributes:s.source.attributes,targetAttributes:s.target.attributes,undirected:s.undirected},done:!1}}}}function dk(e,t,n,r,i,a){const s=t?yxe:vxe;let u;if(n!=="undirected"&&(r!=="out"&&(u=s(e,i.in,a),e&&u)||r!=="in"&&(u=s(e,i.out,a,r?void 0:i.key),e&&u))||n!=="directed"&&(u=s(e,i.undirected,a),e&&u))return u}function Sxe(e,t,n,r){const i=[];return dk(!1,e,t,n,r,function(a){i.push(a)}),i}function Exe(e,t,n){let r=Nf();return e!=="undirected"&&(t!=="out"&&typeof n.in<"u"&&(r=vo(r,u_(n.in))),t!=="in"&&typeof n.out<"u"&&(r=vo(r,u_(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected<"u"&&(r=vo(r,u_(n.undirected))),r}function hk(e,t,n,r,i,a,s){const u=n?wxe:bxe;let c;if(t!=="undirected"&&(typeof i.in<"u"&&r!=="out"&&(c=u(e,i.in,a,s),e&&c)||typeof i.out<"u"&&r!=="in"&&(r||i.key!==a)&&(c=u(e,i.out,a,s),e&&c))||t!=="directed"&&typeof i.undirected<"u"&&(c=u(e,i.undirected,a,s),e&&c))return c}function Axe(e,t,n,r,i){const a=[];return hk(!1,e,t,n,r,i,function(s){a.push(s)}),a}function kxe(e,t,n,r){let i=Nf();return e!=="undirected"&&(typeof n.in<"u"&&t!=="out"&&r in n.in&&(i=vo(i,c_(n.in,r))),typeof n.out<"u"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(i=vo(i,c_(n.out,r)))),e!=="directed"&&typeof n.undirected<"u"&&r in n.undirected&&(i=vo(i,c_(n.undirected,r))),i}function Cxe(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return xxe(this,r);if(arguments.length===1){a=""+a;const u=this._nodes.get(a);if(typeof u>"u")throw new ke(`Graph.${n}: could not find the "${a}" node in the graph.`);return Sxe(this.multi,r==="mixed"?this.type:r,i,u)}if(arguments.length===2){a=""+a,s=""+s;const u=this._nodes.get(a);if(!u)throw new ke(`Graph.${n}: could not find the "${a}" source node in the graph.`);if(!this._nodes.has(s))throw new ke(`Graph.${n}: could not find the "${s}" target node in the graph.`);return Axe(r,this.multi,i,u,s)}throw new Me(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Oxe(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,h,p){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return p=f,oU(!1,this,r,p);if(arguments.length===2){f=""+f,p=h;const g=this._nodes.get(f);if(typeof g>"u")throw new ke(`Graph.${a}: could not find the "${f}" node in the graph.`);return dk(!1,this.multi,r==="mixed"?this.type:r,i,g,p)}if(arguments.length===3){f=""+f,h=""+h;const g=this._nodes.get(f);if(!g)throw new ke(`Graph.${a}: could not find the "${f}" source node in the graph.`);if(!this._nodes.has(h))throw new ke(`Graph.${a}: could not find the "${h}" target node in the graph.`);return hk(!1,r,this.multi,i,g,h,p)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};const s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){const f=Array.prototype.slice.call(arguments),h=f.pop();let p;if(f.length===0){let g=0;r!=="directed"&&(g+=this.undirectedSize),r!=="undirected"&&(g+=this.directedSize),p=new Array(g);let v=0;f.push((y,b,w,_,C,E,S)=>{p[v++]=h(y,b,w,_,C,E,S)})}else p=[],f.push((g,v,y,b,w,_,C)=>{p.push(h(g,v,y,b,w,_,C))});return this[a].apply(this,f),p};const u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){const f=Array.prototype.slice.call(arguments),h=f.pop(),p=[];return f.push((g,v,y,b,w,_,C)=>{h(g,v,y,b,w,_,C)&&p.push(g)}),this[a].apply(this,f),p};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(){let f=Array.prototype.slice.call(arguments);if(f.length<2||f.length>4)throw new Me(`Graph.${c}: invalid number of arguments (expecting 2, 3 or 4 and got ${f.length}).`);if(typeof f[f.length-1]=="function"&&typeof f[f.length-2]!="function")throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let h,p;f.length===2?(h=f[0],p=f[1],f=[]):f.length===3?(h=f[1],p=f[2],f=[f[0]]):f.length===4&&(h=f[2],p=f[3],f=[f[0],f[1]]);let g=p;return f.push((v,y,b,w,_,C,E)=>{g=h(g,v,y,b,w,_,C,E)}),this[a].apply(this,f),g}}function Txe(e,t){const{name:n,type:r,direction:i}=t,a="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(c,f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return h=c,oU(!0,this,r,h);if(arguments.length===2){c=""+c,h=f;const p=this._nodes.get(c);if(typeof p>"u")throw new ke(`Graph.${a}: could not find the "${c}" node in the graph.`);return dk(!0,this.multi,r==="mixed"?this.type:r,i,p,h)}if(arguments.length===3){c=""+c,f=""+f;const p=this._nodes.get(c);if(!p)throw new ke(`Graph.${a}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(f))throw new ke(`Graph.${a}: could not find the "${f}" target node in the graph.`);return hk(!0,r,this.multi,i,p,f,h)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};const s="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((p,g,v,y,b,w,_)=>f(p,g,v,y,b,w,_)),!!this[a].apply(this,c)};const u="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[u]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((p,g,v,y,b,w,_)=>!f(p,g,v,y,b,w,_)),!this[a].apply(this,c)}}function Mxe(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(s,u){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Nf();if(!arguments.length)return _xe(this,r);if(arguments.length===1){s=""+s;const c=this._nodes.get(s);if(!c)throw new ke(`Graph.${a}: could not find the "${s}" node in the graph.`);return Exe(r,i,c)}if(arguments.length===2){s=""+s,u=""+u;const c=this._nodes.get(s);if(!c)throw new ke(`Graph.${a}: could not find the "${s}" source node in the graph.`);if(!this._nodes.has(u))throw new ke(`Graph.${a}: could not find the "${u}" target node in the graph.`);return kxe(r,i,c,u)}throw new Me(`Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Pxe(e){gxe.forEach(t=>{Cxe(e,t),Oxe(e,t),Txe(e,t),Mxe(e,t)})}const Nxe=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function G0(){this.A=null,this.B=null}G0.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};G0.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function Wd(e,t,n,r,i){for(const a in r){const s=r[a],u=s.source,c=s.target,f=u===n?c:u;if(t&&t.has(f.key))continue;const h=i(f.key,f.attributes);if(e&&h)return f.key}}function pk(e,t,n,r,i){if(t!=="mixed"){if(t==="undirected")return Wd(e,null,r,r.undirected,i);if(typeof n=="string")return Wd(e,null,r,r[n],i)}const a=new G0;let s;if(t!=="undirected"){if(n!=="out"){if(s=Wd(e,null,r,r.in,i),e&&s)return s;a.wrap(r.in)}if(n!=="in"){if(s=Wd(e,a,r,r.out,i),e&&s)return s;a.wrap(r.out)}}if(t!=="directed"&&(s=Wd(e,a,r,r.undirected,i),e&&s))return s}function Rxe(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}const r=[];return pk(!1,e,t,n,function(i){r.push(i)}),r}function Qd(e,t,n){const r=Object.keys(n),i=r.length;let a=0;return{[Symbol.iterator](){return this},next(){let s=null;do{if(a>=i)return e&&e.wrap(n),{done:!0};const u=n[r[a++]],c=u.source,f=u.target;if(s=c===t?f:c,e&&e.has(s.key)){s=null;continue}}while(s===null);return{done:!1,value:{neighbor:s.key,attributes:s.attributes}}}}}function Dxe(e,t,n){if(e!=="mixed"){if(e==="undirected")return Qd(null,n,n.undirected);if(typeof t=="string")return Qd(null,n,n[t])}let r=Nf();const i=new G0;return e!=="undirected"&&(t!=="out"&&(r=vo(r,Qd(i,n,n.in))),t!=="in"&&(r=vo(r,Qd(i,n,n.out)))),e!=="directed"&&(r=vo(r,Qd(i,n,n.undirected))),r}function Ixe(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];a=""+a;const s=this._nodes.get(a);if(typeof s>"u")throw new ke(`Graph.${n}: could not find the "${a}" node in the graph.`);return Rxe(r==="mixed"?this.type:r,i,s)}}function Lxe(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const p=this._nodes.get(f);if(typeof p>"u")throw new ke(`Graph.${a}: could not find the "${f}" node in the graph.`);pk(!1,r==="mixed"?this.type:r,i,p,h)};const s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(f,h){const p=[];return this[a](f,(g,v)=>{p.push(h(g,v))}),p};const u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(f,h){const p=[];return this[a](f,(g,v)=>{h(g,v)&&p.push(g)}),p};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(f,h,p){if(arguments.length<3)throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let g=p;return this[a](f,(v,y)=>{g=h(g,v,y)}),g}}function zxe(e,t){const{name:n,type:r,direction:i}=t,a=n[0].toUpperCase()+n.slice(1,-1),s="find"+a;e.prototype[s]=function(f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const p=this._nodes.get(f);if(typeof p>"u")throw new ke(`Graph.${s}: could not find the "${f}" node in the graph.`);return pk(!0,r==="mixed"?this.type:r,i,p,h)};const u="some"+a;e.prototype[u]=function(f,h){return!!this[s](f,h)};const c="every"+a;e.prototype[c]=function(f,h){return!this[s](f,(g,v)=>!h(g,v))}}function jxe(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Nf();s=""+s;const u=this._nodes.get(s);if(typeof u>"u")throw new ke(`Graph.${a}: could not find the "${s}" node in the graph.`);return Dxe(r==="mixed"?this.type:r,i,u)}}function $xe(e){Nxe.forEach(t=>{Ixe(e,t),Lxe(e,t),zxe(e,t),jxe(e,t)})}function Yg(e,t,n,r,i){const a=r._nodes.values(),s=r.type;let u,c,f,h,p,g;for(;u=a.next(),u.done!==!0;){let v=!1;if(c=u.value,s!=="undirected"){h=c.out;for(f in h){p=h[f];do g=p.target,v=!0,i(c.key,g.key,c.attributes,g.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}if(s!=="directed"){h=c.undirected;for(f in h)if(!(t&&c.key>f)){p=h[f];do g=p.target,g.key!==f&&(g=p.source),v=!0,i(c.key,g.key,c.attributes,g.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}n&&!v&&i(c.key,null,c.attributes,null,null,null,null)}}function Bxe(e,t){const n={key:e};return J9(t.attributes)||(n.attributes=Pn({},t.attributes)),n}function Uxe(e,t,n){const r={key:t,source:n.source.key,target:n.target.key};return J9(n.attributes)||(r.attributes=Pn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function Fxe(e){if(!Jn(e))throw new Me('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new Me("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!Jn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Hxe(e){if(!Jn(e))throw new Me('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new Me("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new Me("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!Jn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new Me("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}const Gxe=Vwe(),qxe=new Set(["directed","undirected","mixed"]),fL=new Set(["domain","_events","_eventsCount","_maxListeners"]),Vxe=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],Kxe={allowSelfLoops:!0,multi:!1,type:"mixed"};function Yxe(e,t,n){if(n&&!Jn(n))throw new Me(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new Qe(`Graph.addNode: the "${t}" node already exist in the graph.`);const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function dL(e,t,n){const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function sU(e,t,n,r,i,a,s,u){if(!r&&e.type==="undirected")throw new Qe(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Qe(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(u&&!Jn(u))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${u}"`);if(a=""+a,s=""+s,u=u||{},!e.allowSelfLoops&&a===s)throw new Qe(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);const c=e._nodes.get(a),f=e._nodes.get(s);if(!c)throw new ke(`Graph.${t}: source node "${a}" not found.`);if(!f)throw new ke(`Graph.${t}: target node "${s}" not found.`);const h={key:null,undirected:r,source:a,target:s,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Qe(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?typeof c.undirected[s]<"u":typeof c.out[s]<"u"))throw new Qe(`Graph.${t}: an edge linking "${a}" to "${s}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);const p=new Rf(r,i,c,f,u);e._edges.set(i,p);const g=a===s;return r?(c.undirectedDegree++,f.undirectedDegree++,g&&(c.undirectedLoops++,e._undirectedSelfLoopCount++)):(c.outDegree++,f.inDegree++,g&&(c.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,h.key=i,e.emit("edgeAdded",h),i}function Wxe(e,t,n,r,i,a,s,u,c){if(!r&&e.type==="undirected")throw new Qe(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Qe(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(u){if(c){if(typeof u!="function")throw new Me(`Graph.${t}: invalid updater function. Expecting a function but got "${u}"`)}else if(!Jn(u))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${u}"`)}a=""+a,s=""+s;let f;if(c&&(f=u,u=void 0),!e.allowSelfLoops&&a===s)throw new Qe(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let h=e._nodes.get(a),p=e._nodes.get(s),g,v;if(!n&&(g=e._edges.get(i),g)){if((g.source.key!==a||g.target.key!==s)&&(!r||g.source.key!==s||g.target.key!==a))throw new Qe(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${a}" source & "${s}" target vs. ("${g.source.key}", "${g.target.key}").`);v=g}if(!v&&!e.multi&&h&&(v=r?h.undirected[s]:h.out[s]),v){const C=[v.key,!1,!1,!1];if(c?!f:!u)return C;if(c){const E=v.attributes;v.attributes=f(E),e.emit("edgeAttributesUpdated",{type:"replace",key:v.key,attributes:v.attributes})}else Pn(v.attributes,u),e.emit("edgeAttributesUpdated",{type:"merge",key:v.key,attributes:v.attributes,data:u});return C}u=u||{},c&&f&&(u=f(u));const y={key:null,undirected:r,source:a,target:s,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Qe(`Graph.${t}: the "${i}" edge already exists in the graph.`);let b=!1,w=!1;h||(h=dL(e,a,{}),b=!0,a===s&&(p=h,w=!0)),p||(p=dL(e,s,{}),w=!0),g=new Rf(r,i,h,p,u),e._edges.set(i,g);const _=a===s;return r?(h.undirectedDegree++,p.undirectedDegree++,_&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,p.inDegree++,_&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?g.attachMulti():g.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,w]}function gc(e,t){e._edges.delete(t.key);const{source:n,target:r,attributes:i}=t,a=t.undirected,s=n===r;a?(n.undirectedDegree--,r.undirectedDegree--,s&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,s&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),a?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:a})}class Lt extends X9.EventEmitter{constructor(t){if(super(),t=Pn({},Kxe,t),typeof t.multi!="boolean")throw new Me(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!qxe.has(t.type))throw new Me(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new Me(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);const n=t.type==="mixed"?eU:t.type==="directed"?tU:nU;pi(this,"NodeDataClass",n);const r="geid_"+Gxe()+"_";let i=0;const a=()=>{let s;do s=r+i++;while(this._edges.has(s));return s};pi(this,"_attributes",{}),pi(this,"_nodes",new Map),pi(this,"_edges",new Map),pi(this,"_directedSize",0),pi(this,"_undirectedSize",0),pi(this,"_directedSelfLoopCount",0),pi(this,"_undirectedSelfLoopCount",0),pi(this,"_edgeKeyGenerator",a),pi(this,"_options",t),fL.forEach(s=>pi(this,s,this[s])),Ni(this,"order",()=>this._nodes.size),Ni(this,"size",()=>this._edges.size),Ni(this,"directedSize",()=>this._directedSize),Ni(this,"undirectedSize",()=>this._undirectedSize),Ni(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),Ni(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),Ni(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),Ni(this,"multi",this._options.multi),Ni(this,"type",this._options.type),Ni(this,"allowSelfLoops",this._options.allowSelfLoops),Ni(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&!i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){const r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?typeof r.out<"u"&&r.out.hasOwnProperty(n)||typeof r.undirected<"u"&&r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new Qe("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ke(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||void 0;if(i)return i.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new Qe("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ke(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);const i=r.undirected&&r.undirected[n]||void 0;if(i)return i.key}edge(t,n){if(this.multi)throw new Qe("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.edge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(i)return i.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,i+=n.directedLoops),r-i}outboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,i+=n.directedLoops),r-i}degreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,i+=n.directedLoops*2),r-i}source(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;const r=this._edges.get(n);if(!r)throw new ke(`Graph.opposite: could not find the "${n}" edge in the graph.`);const i=r.source.key,a=r.target.key;if(t===i)return a;if(t===a)return i;throw new ke(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${i}, ${a}).`)}hasExtremity(t,n){t=""+t,n=""+n;const r=this._edges.get(t);if(!r)throw new ke(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return Yxe(this,t,n).key}mergeNode(t,n){if(n&&!Jn(n))throw new Me(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(Pn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new Me(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){const a=r.attributes;r.attributes=n(a),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}const i=n?n({}):{};return r=new this.NodeDataClass(t,i),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:i}),[t,!0]}dropNode(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(const i in n.out){r=n.out[i];do gc(this,r),r=r.next;while(r)}for(const i in n.in){r=n.in[i];do gc(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(const i in n.undirected){r=n.undirected[i];do gc(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){const r=""+arguments[0],i=""+arguments[1];if(n=bi(this,r,i,this.type),!n)throw new ke(`Graph.dropEdge: could not find the "${r}" -> "${i}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new ke(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return gc(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new Qe("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Qe("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;const r=bi(this,t,n,"directed");if(!r)throw new ke(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return gc(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new Qe("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Qe("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");const r=bi(this,t,n,"undirected");if(!r)throw new ke(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return gc(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){const t=this._nodes.values();let n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new Me("Graph.updateAttribute: updater should be a function.");const r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!Jn(t))throw new Me("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!Jn(t))throw new Me("Graph.mergeAttributes: provided attributes are not a plain object.");return Pn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new Me("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!cL(n))throw new Me("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._nodes.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,a.attributes=t(a.key,a.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!cL(n))throw new Me("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._edges.values();let i,a,s,u;for(;i=r.next(),i.done!==!0;)a=i.value,s=a.source,u=a.target,a.attributes=t(a.key,a.attributes,s.key,u.key,s.attributes,u.attributes,a.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntry: expecting a callback.");Yg(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Yg(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Yg(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Yg(!1,!0,!0,this,t)}nodes(){return Array.from(this._nodes.keys())}forEachNode(t){if(typeof t!="function")throw new Me("Graph.forEachNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)}findNode(t){if(typeof t!="function")throw new Me("Graph.findNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return i.key}mapNodes(t){if(typeof t!="function")throw new Me("Graph.mapNode: expecting a callback.");const n=this._nodes.values();let r,i;const a=new Array(this.order);let s=0;for(;r=n.next(),r.done!==!0;)i=r.value,a[s++]=t(i.key,i.attributes);return a}someNode(t){if(typeof t!="function")throw new Me("Graph.someNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new Me("Graph.everyNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,!t(i.key,i.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new Me("Graph.filterNodes: expecting a callback.");const n=this._nodes.values();let r,i;const a=[];for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)&&a.push(i.key);return a}reduceNodes(t,n){if(typeof t!="function")throw new Me("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new Me("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n;const i=this._nodes.values();let a,s;for(;a=i.next(),a.done!==!0;)s=a.value,r=t(r,s.key,s.attributes);return r}nodeEntries(){const t=this._nodes.values();return{[Symbol.iterator](){return this},next(){const n=t.next();if(n.done)return n;const r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}}}}export(){const t=new Array(this._nodes.size);let n=0;this._nodes.forEach((i,a)=>{t[n++]=Bxe(a,i)});const r=new Array(this._edges.size);return n=0,this._edges.forEach((i,a)=>{r[n++]=Uxe(this.type,a,i)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof Lt)return t.forEachNode((c,f)=>{n?this.mergeNode(c,f):this.addNode(c,f)}),t.forEachEdge((c,f,h,p,g,v,y)=>{n?y?this.mergeUndirectedEdgeWithKey(c,h,p,f):this.mergeDirectedEdgeWithKey(c,h,p,f):y?this.addUndirectedEdgeWithKey(c,h,p,f):this.addDirectedEdgeWithKey(c,h,p,f)}),this;if(!Jn(t))throw new Me("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!Jn(t.attributes))throw new Me("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,a,s,u;if(t.nodes){if(a=t.nodes,!Array.isArray(a))throw new Me("Graph.import: invalid nodes. Expecting an array.");for(r=0,i=a.length;r<i;r++){s=a[r],Fxe(s);const{key:c,attributes:f}=s;n?this.mergeNode(c,f):this.addNode(c,f)}}if(t.edges){let c=!1;if(this.type==="undirected"&&(c=!0),a=t.edges,!Array.isArray(a))throw new Me("Graph.import: invalid edges. Expecting an array.");for(r=0,i=a.length;r<i;r++){u=a[r],Hxe(u);const{source:f,target:h,attributes:p,undirected:g=c}=u;let v;"key"in u?(v=n?g?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:g?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey,v.call(this,u.key,f,h,p)):(v=n?g?this.mergeUndirectedEdge:this.mergeDirectedEdge:g?this.addUndirectedEdge:this.addDirectedEdge,v.call(this,f,h,p))}}return this}nullCopy(t){const n=new Lt(Pn({},this._options,t));return n.replaceAttributes(Pn({},this.getAttributes())),n}emptyCopy(t){const n=this.nullCopy(t);return this._nodes.forEach((r,i)=>{const a=Pn({},r.attributes);r=new n.NodeDataClass(i,a),n._nodes.set(i,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new Qe(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new Qe("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new Qe("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");const n=this.emptyCopy(t),r=this._edges.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,sU(n,"copy",!1,a.undirected,a.key,a.source.key,a.target.key,Pn({},a.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){const t={};this._nodes.forEach((a,s)=>{t[s]=a.attributes});const n={},r={};this._edges.forEach((a,s)=>{const u=a.undirected?"--":"->";let c="",f=a.source.key,h=a.target.key,p;a.undirected&&f>h&&(p=f,f=h,h=p);const g=`(${f})${u}(${h})`;s.startsWith("geid_")?this.multi&&(typeof r[g]>"u"?r[g]=0:r[g]++,c+=`${r[g]}. `):c+=`[${s}]: `,c+=g,n[c]=a.attributes});const i={};for(const a in this)this.hasOwnProperty(a)&&!fL.has(a)&&typeof this[a]!="function"&&typeof a!="symbol"&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=t,i.edges=n,pi(i,"constructor",this.constructor),i}}typeof Symbol<"u"&&(Lt.prototype[Symbol.for("nodejs.util.inspect.custom")]=Lt.prototype.inspect);Vxe.forEach(e=>{["add","merge","update"].forEach(t=>{const n=e.name(t),r=t==="add"?sU:Wxe;e.generateKey?Lt.prototype[n]=function(i,a,s){return r(this,n,!0,(e.type||this.type)==="undirected",null,i,a,s,t==="update")}:Lt.prototype[n]=function(i,a,s,u){return r(this,n,!1,(e.type||this.type)==="undirected",i,a,s,u,t==="update")}})});ixe(Lt);mxe(Lt);Pxe(Lt);$xe(Lt);class lU extends Lt{constructor(t){const n=Pn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new Me("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new Me('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class uU extends Lt{constructor(t){const n=Pn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new Me("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new Me('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class cU extends Lt{constructor(t){const n=Pn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}}class fU extends Lt{constructor(t){const n=Pn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new Me('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class dU extends Lt{constructor(t){const n=Pn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new Me('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}function Df(e){e.from=function(t,n){const r=Pn({},t.options,n),i=new e(r);return i.import(t),i}}Df(Lt);Df(lU);Df(uU);Df(cU);Df(fU);Df(dU);Lt.Graph=Lt;Lt.DirectedGraph=lU;Lt.UndirectedGraph=uU;Lt.MultiGraph=cU;Lt.MultiDirectedGraph=fU;Lt.MultiUndirectedGraph=dU;Lt.InvalidArgumentsGraphError=Me;Lt.NotFoundGraphError=ke;Lt.UsageGraphError=Qe;function Qxe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yh(e){var t=Qxe(e,"string");return typeof t=="symbol"?t:t+""}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yh(r.key),r)}}function dr(e,t,n){return t&&hL(e.prototype,t),n&&hL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mf(e)}function hU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hU=function(){return!!e})()}function Zxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xxe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zxe(e)}function ki(e,t,n){return t=mf(t),Xxe(e,hU()?Reflect.construct(t,n||[],mf(e).constructor):t.apply(e,n))}function M2(e,t){return M2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},M2(e,t)}function Ci(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M2(e,t)}function Jxe(e){if(Array.isArray(e))return e}function e_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],c=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(h){f=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pU(e,t){if(e){if(typeof e=="string")return P2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P2(e,t):void 0}}function t_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
926
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(e,t){return Jxe(e)||e_e(e,t)||pU(e,t)||t_e()}var f_={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"},mU=new Int8Array(4),d_=new Int32Array(mU.buffer,0,1),n_e=new Float32Array(mU.buffer,0,1),r_e=/^\s*rgba?\s*\(/,i_e=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function a_e(e){var t=0,n=0,r=0,i=1;if(e[0]==="#")e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(r_e.test(e)){var a=e.match(i_e);a&&(t=+a[1],n=+a[2],r=+a[3],a[4]&&(i=+a[4]))}return{r:t,g:n,b:r,a:i}}var Rc={};for(var Wg in f_)Rc[Wg]=Up(f_[Wg]),Rc[f_[Wg]]=Rc[Wg];function gU(e,t,n,r,i){return d_[0]=r<<24|n<<16|t<<8|e,d_[0]=d_[0]&4278190079,n_e[0]}function Up(e){if(e=e.toLowerCase(),typeof Rc[e]<"u")return Rc[e];var t=a_e(e),n=t.r,r=t.g,i=t.b,a=t.a;a=a*255|0;var s=gU(n,r,i,a);return Rc[e]=s,s}var h_={};function vU(e){if(typeof h_[e]<"u")return h_[e];var t=(e&16711680)>>>16,n=(e&65280)>>>8,r=e&255,i=255,a=gU(t,n,r,i);return h_[e]=a,a}function pL(e,t,n,r){return n+(t<<8)+(e<<16)}function mL(e,t,n,r,i,a){var s=Math.floor(n/a*i),u=Math.floor(e.drawingBufferHeight/a-r/a*i),c=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(s,u,1,1,e.RGBA,e.UNSIGNED_BYTE,c);var f=gf(c,4),h=f[0],p=f[1],g=f[2],v=f[3];return[h,p,g,v]}function xe(e,t,n){return(t=yh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(n),!0).forEach(function(r){xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o_e(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=mf(e))!==null;);return e}function N2(){return N2=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=o_e(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},N2.apply(null,arguments)}function yU(e,t,n,r){var i=N2(mf(e.prototype),t,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}function s_e(e){return e.normalized?1:e.size}function p_(e){var t=0;return e.forEach(function(n){return t+=s_e(n)}),t}function bU(e,t,n){var r=e==="VERTEX"?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(i===null)throw new Error("loadShader: error while creating the shader");t.shaderSource(i,n),t.compileShader(i);var a=t.getShaderParameter(i,t.COMPILE_STATUS);if(!a){var s=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error(`loadShader: error while compiling the shader:
|
|
927
|
+
`.concat(s,`
|
|
928
|
+
`).concat(n))}return i}function l_e(e,t){return bU("VERTEX",e,t)}function u_e(e,t){return bU("FRAGMENT",e,t)}function c_e(e,t){var n=e.createProgram();if(n===null)throw new Error("loadProgram: error while creating the program.");var r,i;for(r=0,i=t.length;r<i;r++)e.attachShader(n,t[r]);e.linkProgram(n);var a=e.getProgramParameter(n,e.LINK_STATUS);if(!a)throw e.deleteProgram(n),new Error("loadProgram: error while linking the program.");return n}function vL(e){var t=e.gl,n=e.buffer,r=e.program,i=e.vertexShader,a=e.fragmentShader;t.deleteShader(i),t.deleteShader(a),t.deleteProgram(r),t.deleteBuffer(n)}var yL=`#define PICKING_MODE
|
|
929
|
+
`,f_e=xe(xe(xe(xe(xe(xe(xe(xe({},WebGL2RenderingContext.BOOL,1),WebGL2RenderingContext.BYTE,1),WebGL2RenderingContext.UNSIGNED_BYTE,1),WebGL2RenderingContext.SHORT,2),WebGL2RenderingContext.UNSIGNED_SHORT,2),WebGL2RenderingContext.INT,4),WebGL2RenderingContext.UNSIGNED_INT,4),WebGL2RenderingContext.FLOAT,4),wU=(function(){function e(t,n,r){fr(this,e),xe(this,"array",new Float32Array),xe(this,"constantArray",new Float32Array),xe(this,"capacity",0),xe(this,"verticesCount",0);var i=this.getDefinition();if(this.VERTICES=i.VERTICES,this.VERTEX_SHADER_SOURCE=i.VERTEX_SHADER_SOURCE,this.FRAGMENT_SHADER_SOURCE=i.FRAGMENT_SHADER_SOURCE,this.UNIFORMS=i.UNIFORMS,this.ATTRIBUTES=i.ATTRIBUTES,this.METHOD=i.METHOD,this.CONSTANT_ATTRIBUTES="CONSTANT_ATTRIBUTES"in i?i.CONSTANT_ATTRIBUTES:[],this.CONSTANT_DATA="CONSTANT_DATA"in i?i.CONSTANT_DATA:[],this.isInstanced="CONSTANT_ATTRIBUTES"in i,this.ATTRIBUTES_ITEMS_COUNT=p_(this.ATTRIBUTES),this.STRIDE=this.VERTICES*this.ATTRIBUTES_ITEMS_COUNT,this.renderer=r,this.normalProgram=this.getProgramInfo("normal",t,i.VERTEX_SHADER_SOURCE,i.FRAGMENT_SHADER_SOURCE,null),this.pickProgram=n?this.getProgramInfo("pick",t,yL+i.VERTEX_SHADER_SOURCE,yL+i.FRAGMENT_SHADER_SOURCE,n):null,this.isInstanced){var a=p_(this.CONSTANT_ATTRIBUTES);if(this.CONSTANT_DATA.length!==this.VERTICES)throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES," items, received ").concat(this.CONSTANT_DATA.length," instead)"));this.constantArray=new Float32Array(this.CONSTANT_DATA.length*a);for(var s=0;s<this.CONSTANT_DATA.length;s++){var u=this.CONSTANT_DATA[s];if(u.length!==a)throw new Error("Program: error while getting constant data (one vector has ".concat(u.length," items instead of ").concat(a,")"));for(var c=0;c<u.length;c++)this.constantArray[s*a+c]=u[c]}this.STRIDE=this.ATTRIBUTES_ITEMS_COUNT}}return dr(e,[{key:"kill",value:function(){vL(this.normalProgram),this.pickProgram&&(vL(this.pickProgram),this.pickProgram=null)}},{key:"getProgramInfo",value:function(n,r,i,a,s){var u=this.getDefinition(),c=r.createBuffer();if(c===null)throw new Error("Program: error while creating the WebGL buffer.");var f=l_e(r,i),h=u_e(r,a),p=c_e(r,[f,h]),g={};u.UNIFORMS.forEach(function(b){var w=r.getUniformLocation(p,b);w&&(g[b]=w)});var v={};u.ATTRIBUTES.forEach(function(b){v[b.name]=r.getAttribLocation(p,b.name)});var y;if("CONSTANT_ATTRIBUTES"in u&&(u.CONSTANT_ATTRIBUTES.forEach(function(b){v[b.name]=r.getAttribLocation(p,b.name)}),y=r.createBuffer(),y===null))throw new Error("Program: error while creating the WebGL constant buffer.");return{name:n,program:p,gl:r,frameBuffer:s,buffer:c,constantBuffer:y||{},uniformLocations:g,attributeLocations:v,isPicking:n==="pick",vertexShader:f,fragmentShader:h}}},{key:"bindProgram",value:function(n){var r=this,i=0,a=n.gl,s=n.buffer;this.isInstanced?(a.bindBuffer(a.ARRAY_BUFFER,n.constantBuffer),i=0,this.CONSTANT_ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i,!1)}),a.bufferData(a.ARRAY_BUFFER,this.constantArray,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,n.buffer),i=0,this.ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i,!0)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)):(a.bindBuffer(a.ARRAY_BUFFER,s),i=0,this.ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)),a.bindBuffer(a.ARRAY_BUFFER,null)}},{key:"unbindProgram",value:function(n){var r=this;this.isInstanced?(this.CONSTANT_ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!1)}),this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!0)})):this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n)})}},{key:"bindAttribute",value:function(n,r,i,a){var s=f_e[n.type];if(typeof s!="number")throw new Error('Program.bind: yet unsupported attribute type "'.concat(n.type,'"'));var u=r.attributeLocations[n.name],c=r.gl;if(u!==-1){c.enableVertexAttribArray(u);var f=this.isInstanced?(a?this.ATTRIBUTES_ITEMS_COUNT:p_(this.CONSTANT_ATTRIBUTES))*Float32Array.BYTES_PER_ELEMENT:this.ATTRIBUTES_ITEMS_COUNT*Float32Array.BYTES_PER_ELEMENT;if(c.vertexAttribPointer(u,n.size,n.type,n.normalized||!1,f,i),this.isInstanced&&a)if(c instanceof WebGL2RenderingContext)c.vertexAttribDivisor(u,1);else{var h=c.getExtension("ANGLE_instanced_arrays");h&&h.vertexAttribDivisorANGLE(u,1)}}return n.size*s}},{key:"unbindAttribute",value:function(n,r,i){var a=r.attributeLocations[n.name],s=r.gl;if(a!==-1&&(s.disableVertexAttribArray(a),this.isInstanced&&i))if(s instanceof WebGL2RenderingContext)s.vertexAttribDivisor(a,0);else{var u=s.getExtension("ANGLE_instanced_arrays");u&&u.vertexAttribDivisorANGLE(a,0)}}},{key:"reallocate",value:function(n){n!==this.capacity&&(this.capacity=n,this.verticesCount=this.VERTICES*n,this.array=new Float32Array(this.isInstanced?this.capacity*this.ATTRIBUTES_ITEMS_COUNT:this.verticesCount*this.ATTRIBUTES_ITEMS_COUNT))}},{key:"hasNothingToRender",value:function(){return this.verticesCount===0}},{key:"renderProgram",value:function(n,r){var i=r.gl,a=r.program;i.enable(i.BLEND),i.useProgram(a),this.setUniforms(n,r),this.drawWebGL(this.METHOD,r)}},{key:"render",value:function(n){this.hasNothingToRender()||(this.pickProgram&&(this.pickProgram.gl.viewport(0,0,n.width*n.pixelRatio/n.downSizingRatio,n.height*n.pixelRatio/n.downSizingRatio),this.bindProgram(this.pickProgram),this.renderProgram(He(He({},n),{},{pixelRatio:n.pixelRatio/n.downSizingRatio}),this.pickProgram),this.unbindProgram(this.pickProgram)),this.normalProgram.gl.viewport(0,0,n.width*n.pixelRatio,n.height*n.pixelRatio),this.bindProgram(this.normalProgram),this.renderProgram(n,this.normalProgram),this.unbindProgram(this.normalProgram))}},{key:"drawWebGL",value:function(n,r){var i=r.gl,a=r.frameBuffer;if(i.bindFramebuffer(i.FRAMEBUFFER,a),!this.isInstanced)i.drawArrays(n,0,this.verticesCount);else if(i instanceof WebGL2RenderingContext)i.drawArraysInstanced(n,0,this.VERTICES,this.capacity);else{var s=i.getExtension("ANGLE_instanced_arrays");s&&s.drawArraysInstancedANGLE(n,0,this.VERTICES,this.capacity)}}}])})(),d_e=(function(e){function t(){return fr(this,t),ki(this,t,arguments)}return Ci(t,e),dr(t,[{key:"kill",value:function(){yU(t,"kill",this)([])}},{key:"process",value:function(r,i,a){var s=i*this.STRIDE;if(a.hidden){for(var u=s+this.STRIDE;s<u;s++)this.array[s]=0;return}return this.processVisibleItem(vU(r),s,a)}}])})(wU),mk=(function(e){function t(){var n;fr(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=ki(this,t,[].concat(i)),xe(n,"drawLabel",void 0),n}return Ci(t,e),dr(t,[{key:"kill",value:function(){yU(t,"kill",this)([])}},{key:"process",value:function(r,i,a,s,u){var c=i*this.STRIDE;if(u.hidden||a.hidden||s.hidden){for(var f=c+this.STRIDE;c<f;c++)this.array[c]=0;return}return this.processVisibleItem(vU(r),c,a,s,u)}}])})(wU);function h_e(e,t){return(function(){function n(r,i,a){fr(this,n),xe(this,"drawLabel",t),this.programs=e.map(function(s){return new s(r,i,a)})}return dr(n,[{key:"reallocate",value:function(i){this.programs.forEach(function(a){return a.reallocate(i)})}},{key:"process",value:function(i,a,s,u,c){this.programs.forEach(function(f){return f.process(i,a,s,u,c)})}},{key:"render",value:function(i){this.programs.forEach(function(a){return a.render(i)})}},{key:"kill",value:function(){this.programs.forEach(function(i){return i.kill()})}}])})()}function p_e(e,t,n,r,i){var a=i.edgeLabelSize,s=i.edgeLabelFont,u=i.edgeLabelWeight,c=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,f=t.label;if(f){e.fillStyle=c,e.font="".concat(u," ").concat(a,"px ").concat(s);var h=n.size,p=r.size,g=n.x,v=n.y,y=r.x,b=r.y,w=(g+y)/2,_=(v+b)/2,C=y-g,E=b-v,S=Math.sqrt(C*C+E*E);if(!(S<h+p)){g+=C*h/S,v+=E*h/S,y-=C*p/S,b-=E*p/S,w=(g+y)/2,_=(v+b)/2,C=y-g,E=b-v,S=Math.sqrt(C*C+E*E);var T=e.measureText(f).width;if(T>S){var O="…";for(f=f+O,T=e.measureText(f).width;T>S&&f.length>1;)f=f.slice(0,-2)+O,T=e.measureText(f).width;if(f.length<4)return}var M;C>0?E>0?M=Math.acos(C/S):M=Math.asin(E/S):E>0?M=Math.acos(C/S)+Math.PI:M=Math.asin(C/S)+Math.PI/2,e.save(),e.translate(w,_),e.rotate(M),e.fillText(f,-T/2,t.size/2+a),e.restore()}}}function xU(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,a=n.labelWeight,s=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=s,e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}function m_e(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000";var s=2;if(typeof t.label=="string"){var u=e.measureText(t.label).width,c=Math.round(u+5),f=Math.round(r+2*s),h=Math.max(t.size,r/2)+s,p=Math.asin(f/2/h),g=Math.sqrt(Math.abs(Math.pow(h,2)-Math.pow(f/2,2)));e.beginPath(),e.moveTo(t.x+g,t.y+f/2),e.lineTo(t.x+h+c,t.y+f/2),e.lineTo(t.x+h+c,t.y-f/2),e.lineTo(t.x+g,t.y-f/2),e.arc(t.x,t.y,h,p,-p),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+s,0,Math.PI*2),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,xU(e,t,n)}var g_e=`
|
|
930
|
+
precision highp float;
|
|
931
|
+
|
|
932
|
+
varying vec4 v_color;
|
|
933
|
+
varying vec2 v_diffVector;
|
|
934
|
+
varying float v_radius;
|
|
935
|
+
|
|
936
|
+
uniform float u_correctionRatio;
|
|
937
|
+
|
|
938
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
939
|
+
|
|
940
|
+
void main(void) {
|
|
941
|
+
float border = u_correctionRatio * 2.0;
|
|
942
|
+
float dist = length(v_diffVector) - v_radius + border;
|
|
943
|
+
|
|
944
|
+
// No antialiasing for picking mode:
|
|
945
|
+
#ifdef PICKING_MODE
|
|
946
|
+
if (dist > border)
|
|
947
|
+
gl_FragColor = transparent;
|
|
948
|
+
else
|
|
949
|
+
gl_FragColor = v_color;
|
|
950
|
+
|
|
951
|
+
#else
|
|
952
|
+
float t = 0.0;
|
|
953
|
+
if (dist > border)
|
|
954
|
+
t = 1.0;
|
|
955
|
+
else if (dist > 0.0)
|
|
956
|
+
t = dist / border;
|
|
957
|
+
|
|
958
|
+
gl_FragColor = mix(v_color, transparent, t);
|
|
959
|
+
#endif
|
|
960
|
+
}
|
|
961
|
+
`,v_e=g_e,y_e=`
|
|
962
|
+
attribute vec4 a_id;
|
|
963
|
+
attribute vec4 a_color;
|
|
964
|
+
attribute vec2 a_position;
|
|
965
|
+
attribute float a_size;
|
|
966
|
+
attribute float a_angle;
|
|
967
|
+
|
|
968
|
+
uniform mat3 u_matrix;
|
|
969
|
+
uniform float u_sizeRatio;
|
|
970
|
+
uniform float u_correctionRatio;
|
|
971
|
+
|
|
972
|
+
varying vec4 v_color;
|
|
973
|
+
varying vec2 v_diffVector;
|
|
974
|
+
varying float v_radius;
|
|
975
|
+
varying float v_border;
|
|
976
|
+
|
|
977
|
+
const float bias = 255.0 / 254.0;
|
|
978
|
+
|
|
979
|
+
void main() {
|
|
980
|
+
float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
|
|
981
|
+
vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
|
|
982
|
+
vec2 position = a_position + diffVector;
|
|
983
|
+
gl_Position = vec4(
|
|
984
|
+
(u_matrix * vec3(position, 1)).xy,
|
|
985
|
+
0,
|
|
986
|
+
1
|
|
987
|
+
);
|
|
988
|
+
|
|
989
|
+
v_diffVector = diffVector;
|
|
990
|
+
v_radius = size / 2.0;
|
|
991
|
+
|
|
992
|
+
#ifdef PICKING_MODE
|
|
993
|
+
// For picking mode, we use the ID as the color:
|
|
994
|
+
v_color = a_id;
|
|
995
|
+
#else
|
|
996
|
+
// For normal mode, we use the color:
|
|
997
|
+
v_color = a_color;
|
|
998
|
+
#endif
|
|
999
|
+
|
|
1000
|
+
v_color.a *= bias;
|
|
1001
|
+
}
|
|
1002
|
+
`,b_e=y_e,_U=WebGLRenderingContext,bL=_U.UNSIGNED_BYTE,m_=_U.FLOAT,w_e=["u_sizeRatio","u_correctionRatio","u_matrix"],q0=(function(e){function t(){return fr(this,t),ki(this,t,arguments)}return Ci(t,e),dr(t,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:b_e,FRAGMENT_SHADER_SOURCE:v_e,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:w_e,ATTRIBUTES:[{name:"a_position",size:2,type:m_},{name:"a_size",size:1,type:m_},{name:"a_color",size:4,type:bL,normalized:!0},{name:"a_id",size:4,type:bL,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:m_}],CONSTANT_DATA:[[t.ANGLE_1],[t.ANGLE_2],[t.ANGLE_3]]}}},{key:"processVisibleItem",value:function(r,i,a){var s=this.array,u=Up(a.color);s[i++]=a.x,s[i++]=a.y,s[i++]=a.size,s[i++]=u,s[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,s=i.uniformLocations,u=s.u_sizeRatio,c=s.u_correctionRatio,f=s.u_matrix;a.uniform1f(c,r.correctionRatio),a.uniform1f(u,r.sizeRatio),a.uniformMatrix3fv(f,!1,r.matrix)}}])})(d_e);xe(q0,"ANGLE_1",0);xe(q0,"ANGLE_2",2*Math.PI/3);xe(q0,"ANGLE_3",4*Math.PI/3);var x_e=`
|
|
1003
|
+
precision mediump float;
|
|
1004
|
+
|
|
1005
|
+
varying vec4 v_color;
|
|
1006
|
+
|
|
1007
|
+
void main(void) {
|
|
1008
|
+
gl_FragColor = v_color;
|
|
1009
|
+
}
|
|
1010
|
+
`,__e=x_e,S_e=`
|
|
1011
|
+
attribute vec2 a_position;
|
|
1012
|
+
attribute vec2 a_normal;
|
|
1013
|
+
attribute float a_radius;
|
|
1014
|
+
attribute vec3 a_barycentric;
|
|
1015
|
+
|
|
1016
|
+
#ifdef PICKING_MODE
|
|
1017
|
+
attribute vec4 a_id;
|
|
1018
|
+
#else
|
|
1019
|
+
attribute vec4 a_color;
|
|
1020
|
+
#endif
|
|
1021
|
+
|
|
1022
|
+
uniform mat3 u_matrix;
|
|
1023
|
+
uniform float u_sizeRatio;
|
|
1024
|
+
uniform float u_correctionRatio;
|
|
1025
|
+
uniform float u_minEdgeThickness;
|
|
1026
|
+
uniform float u_lengthToThicknessRatio;
|
|
1027
|
+
uniform float u_widenessToThicknessRatio;
|
|
1028
|
+
|
|
1029
|
+
varying vec4 v_color;
|
|
1030
|
+
|
|
1031
|
+
const float bias = 255.0 / 254.0;
|
|
1032
|
+
|
|
1033
|
+
void main() {
|
|
1034
|
+
float minThickness = u_minEdgeThickness;
|
|
1035
|
+
|
|
1036
|
+
float normalLength = length(a_normal);
|
|
1037
|
+
vec2 unitNormal = a_normal / normalLength;
|
|
1038
|
+
|
|
1039
|
+
// These first computations are taken from edge.vert.glsl and
|
|
1040
|
+
// edge.clamped.vert.glsl. Please read it to get better comments on what's
|
|
1041
|
+
// happening:
|
|
1042
|
+
float pixelsThickness = max(normalLength / u_sizeRatio, minThickness);
|
|
1043
|
+
float webGLThickness = pixelsThickness * u_correctionRatio;
|
|
1044
|
+
float webGLNodeRadius = a_radius * 2.0 * u_correctionRatio / u_sizeRatio;
|
|
1045
|
+
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
|
|
1046
|
+
float webGLArrowHeadThickness = webGLThickness * u_widenessToThicknessRatio;
|
|
1047
|
+
|
|
1048
|
+
float da = a_barycentric.x;
|
|
1049
|
+
float db = a_barycentric.y;
|
|
1050
|
+
float dc = a_barycentric.z;
|
|
1051
|
+
|
|
1052
|
+
vec2 delta = vec2(
|
|
1053
|
+
da * (webGLNodeRadius * unitNormal.y)
|
|
1054
|
+
+ db * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y + webGLArrowHeadThickness * unitNormal.x)
|
|
1055
|
+
+ dc * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y - webGLArrowHeadThickness * unitNormal.x),
|
|
1056
|
+
|
|
1057
|
+
da * (-webGLNodeRadius * unitNormal.x)
|
|
1058
|
+
+ db * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x + webGLArrowHeadThickness * unitNormal.y)
|
|
1059
|
+
+ dc * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x - webGLArrowHeadThickness * unitNormal.y)
|
|
1060
|
+
);
|
|
1061
|
+
|
|
1062
|
+
vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;
|
|
1063
|
+
|
|
1064
|
+
gl_Position = vec4(position, 0, 1);
|
|
1065
|
+
|
|
1066
|
+
#ifdef PICKING_MODE
|
|
1067
|
+
// For picking mode, we use the ID as the color:
|
|
1068
|
+
v_color = a_id;
|
|
1069
|
+
#else
|
|
1070
|
+
// For normal mode, we use the color:
|
|
1071
|
+
v_color = a_color;
|
|
1072
|
+
#endif
|
|
1073
|
+
|
|
1074
|
+
v_color.a *= bias;
|
|
1075
|
+
}
|
|
1076
|
+
`,E_e=S_e,SU=WebGLRenderingContext,wL=SU.UNSIGNED_BYTE,Qg=SU.FLOAT,A_e=["u_matrix","u_sizeRatio","u_correctionRatio","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio"],EU={extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2};function AU(e){var t=He(He({},EU),{});return(function(n){function r(){return fr(this,r),ki(this,r,arguments)}return Ci(r,n),dr(r,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:E_e,FRAGMENT_SHADER_SOURCE:__e,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:A_e,ATTRIBUTES:[{name:"a_position",size:2,type:Qg},{name:"a_normal",size:2,type:Qg},{name:"a_radius",size:1,type:Qg},{name:"a_color",size:4,type:wL,normalized:!0},{name:"a_id",size:4,type:wL,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_barycentric",size:3,type:Qg}],CONSTANT_DATA:[[1,0,0],[0,1,0],[0,0,1]]}}},{key:"processVisibleItem",value:function(a,s,u,c,f){if(t.extremity==="source"){var h=[c,u];u=h[0],c=h[1]}var p=f.size||1,g=c.size||1,v=u.x,y=u.y,b=c.x,w=c.y,_=Up(f.color),C=b-v,E=w-y,S=C*C+E*E,T=0,O=0;S&&(S=1/Math.sqrt(S),T=-E*S*p,O=C*S*p);var M=this.array;M[s++]=b,M[s++]=w,M[s++]=-T,M[s++]=-O,M[s++]=g,M[s++]=_,M[s++]=a}},{key:"setUniforms",value:function(a,s){var u=s.gl,c=s.uniformLocations,f=c.u_matrix,h=c.u_sizeRatio,p=c.u_correctionRatio,g=c.u_minEdgeThickness,v=c.u_lengthToThicknessRatio,y=c.u_widenessToThicknessRatio;u.uniformMatrix3fv(f,!1,a.matrix),u.uniform1f(h,a.sizeRatio),u.uniform1f(p,a.correctionRatio),u.uniform1f(g,a.minEdgeThickness),u.uniform1f(v,t.lengthToThicknessRatio),u.uniform1f(y,t.widenessToThicknessRatio)}}])})(mk)}AU();var k_e=`
|
|
1077
|
+
precision mediump float;
|
|
1078
|
+
|
|
1079
|
+
varying vec4 v_color;
|
|
1080
|
+
varying vec2 v_normal;
|
|
1081
|
+
varying float v_thickness;
|
|
1082
|
+
varying float v_feather;
|
|
1083
|
+
|
|
1084
|
+
const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
|
|
1085
|
+
|
|
1086
|
+
void main(void) {
|
|
1087
|
+
// We only handle antialiasing for normal mode:
|
|
1088
|
+
#ifdef PICKING_MODE
|
|
1089
|
+
gl_FragColor = v_color;
|
|
1090
|
+
#else
|
|
1091
|
+
float dist = length(v_normal) * v_thickness;
|
|
1092
|
+
|
|
1093
|
+
float t = smoothstep(
|
|
1094
|
+
v_thickness - v_feather,
|
|
1095
|
+
v_thickness,
|
|
1096
|
+
dist
|
|
1097
|
+
);
|
|
1098
|
+
|
|
1099
|
+
gl_FragColor = mix(v_color, transparent, t);
|
|
1100
|
+
#endif
|
|
1101
|
+
}
|
|
1102
|
+
`,kU=k_e,C_e=`
|
|
1103
|
+
attribute vec4 a_id;
|
|
1104
|
+
attribute vec4 a_color;
|
|
1105
|
+
attribute vec2 a_normal;
|
|
1106
|
+
attribute float a_normalCoef;
|
|
1107
|
+
attribute vec2 a_positionStart;
|
|
1108
|
+
attribute vec2 a_positionEnd;
|
|
1109
|
+
attribute float a_positionCoef;
|
|
1110
|
+
attribute float a_radius;
|
|
1111
|
+
attribute float a_radiusCoef;
|
|
1112
|
+
|
|
1113
|
+
uniform mat3 u_matrix;
|
|
1114
|
+
uniform float u_zoomRatio;
|
|
1115
|
+
uniform float u_sizeRatio;
|
|
1116
|
+
uniform float u_pixelRatio;
|
|
1117
|
+
uniform float u_correctionRatio;
|
|
1118
|
+
uniform float u_minEdgeThickness;
|
|
1119
|
+
uniform float u_lengthToThicknessRatio;
|
|
1120
|
+
uniform float u_feather;
|
|
1121
|
+
|
|
1122
|
+
varying vec4 v_color;
|
|
1123
|
+
varying vec2 v_normal;
|
|
1124
|
+
varying float v_thickness;
|
|
1125
|
+
varying float v_feather;
|
|
1126
|
+
|
|
1127
|
+
const float bias = 255.0 / 254.0;
|
|
1128
|
+
|
|
1129
|
+
void main() {
|
|
1130
|
+
float minThickness = u_minEdgeThickness;
|
|
1131
|
+
|
|
1132
|
+
float radius = a_radius * a_radiusCoef;
|
|
1133
|
+
vec2 normal = a_normal * a_normalCoef;
|
|
1134
|
+
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
|
|
1135
|
+
|
|
1136
|
+
float normalLength = length(normal);
|
|
1137
|
+
vec2 unitNormal = normal / normalLength;
|
|
1138
|
+
|
|
1139
|
+
// These first computations are taken from edge.vert.glsl. Please read it to
|
|
1140
|
+
// get better comments on what's happening:
|
|
1141
|
+
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
|
|
1142
|
+
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
|
|
1143
|
+
|
|
1144
|
+
// Here, we move the point to leave space for the arrow head:
|
|
1145
|
+
float direction = sign(radius);
|
|
1146
|
+
float webGLNodeRadius = direction * radius * 2.0 * u_correctionRatio / u_sizeRatio;
|
|
1147
|
+
float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
|
|
1148
|
+
|
|
1149
|
+
vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (webGLNodeRadius + webGLArrowHeadLength);
|
|
1150
|
+
|
|
1151
|
+
// Here is the proper position of the vertex
|
|
1152
|
+
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + compensationVector, 1)).xy, 0, 1);
|
|
1153
|
+
|
|
1154
|
+
v_thickness = webGLThickness / u_zoomRatio;
|
|
1155
|
+
|
|
1156
|
+
v_normal = unitNormal;
|
|
1157
|
+
|
|
1158
|
+
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
|
|
1159
|
+
|
|
1160
|
+
#ifdef PICKING_MODE
|
|
1161
|
+
// For picking mode, we use the ID as the color:
|
|
1162
|
+
v_color = a_id;
|
|
1163
|
+
#else
|
|
1164
|
+
// For normal mode, we use the color:
|
|
1165
|
+
v_color = a_color;
|
|
1166
|
+
#endif
|
|
1167
|
+
|
|
1168
|
+
v_color.a *= bias;
|
|
1169
|
+
}
|
|
1170
|
+
`,O_e=C_e,CU=WebGLRenderingContext,xL=CU.UNSIGNED_BYTE,El=CU.FLOAT,T_e=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],M_e={lengthToThicknessRatio:EU.lengthToThicknessRatio};function OU(e){var t=He(He({},M_e),{});return(function(n){function r(){return fr(this,r),ki(this,r,arguments)}return Ci(r,n),dr(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:O_e,FRAGMENT_SHADER_SOURCE:kU,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:T_e,ATTRIBUTES:[{name:"a_positionStart",size:2,type:El},{name:"a_positionEnd",size:2,type:El},{name:"a_normal",size:2,type:El},{name:"a_color",size:4,type:xL,normalized:!0},{name:"a_id",size:4,type:xL,normalized:!0},{name:"a_radius",size:1,type:El}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:El},{name:"a_normalCoef",size:1,type:El},{name:"a_radiusCoef",size:1,type:El}],CONSTANT_DATA:[[0,1,0],[0,-1,0],[1,1,1],[1,1,1],[0,-1,0],[1,-1,-1]]}}},{key:"processVisibleItem",value:function(a,s,u,c,f){var h=f.size||1,p=u.x,g=u.y,v=c.x,y=c.y,b=Up(f.color),w=v-p,_=y-g,C=c.size||1,E=w*w+_*_,S=0,T=0;E&&(E=1/Math.sqrt(E),S=-_*E*h,T=w*E*h);var O=this.array;O[s++]=p,O[s++]=g,O[s++]=v,O[s++]=y,O[s++]=S,O[s++]=T,O[s++]=b,O[s++]=a,O[s++]=C}},{key:"setUniforms",value:function(a,s){var u=s.gl,c=s.uniformLocations,f=c.u_matrix,h=c.u_zoomRatio,p=c.u_feather,g=c.u_pixelRatio,v=c.u_correctionRatio,y=c.u_sizeRatio,b=c.u_minEdgeThickness,w=c.u_lengthToThicknessRatio;u.uniformMatrix3fv(f,!1,a.matrix),u.uniform1f(h,a.zoomRatio),u.uniform1f(y,a.sizeRatio),u.uniform1f(v,a.correctionRatio),u.uniform1f(g,a.pixelRatio),u.uniform1f(p,a.antiAliasingFeather),u.uniform1f(b,a.minEdgeThickness),u.uniform1f(w,t.lengthToThicknessRatio)}}])})(mk)}OU();function P_e(e){return h_e([OU(),AU()])}var N_e=P_e(),R_e=N_e,D_e=`
|
|
1171
|
+
attribute vec4 a_id;
|
|
1172
|
+
attribute vec4 a_color;
|
|
1173
|
+
attribute vec2 a_normal;
|
|
1174
|
+
attribute float a_normalCoef;
|
|
1175
|
+
attribute vec2 a_positionStart;
|
|
1176
|
+
attribute vec2 a_positionEnd;
|
|
1177
|
+
attribute float a_positionCoef;
|
|
1178
|
+
|
|
1179
|
+
uniform mat3 u_matrix;
|
|
1180
|
+
uniform float u_sizeRatio;
|
|
1181
|
+
uniform float u_zoomRatio;
|
|
1182
|
+
uniform float u_pixelRatio;
|
|
1183
|
+
uniform float u_correctionRatio;
|
|
1184
|
+
uniform float u_minEdgeThickness;
|
|
1185
|
+
uniform float u_feather;
|
|
1186
|
+
|
|
1187
|
+
varying vec4 v_color;
|
|
1188
|
+
varying vec2 v_normal;
|
|
1189
|
+
varying float v_thickness;
|
|
1190
|
+
varying float v_feather;
|
|
1191
|
+
|
|
1192
|
+
const float bias = 255.0 / 254.0;
|
|
1193
|
+
|
|
1194
|
+
void main() {
|
|
1195
|
+
float minThickness = u_minEdgeThickness;
|
|
1196
|
+
|
|
1197
|
+
vec2 normal = a_normal * a_normalCoef;
|
|
1198
|
+
vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
|
|
1199
|
+
|
|
1200
|
+
float normalLength = length(normal);
|
|
1201
|
+
vec2 unitNormal = normal / normalLength;
|
|
1202
|
+
|
|
1203
|
+
// We require edges to be at least "minThickness" pixels thick *on screen*
|
|
1204
|
+
// (so we need to compensate the size ratio):
|
|
1205
|
+
float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
|
|
1206
|
+
|
|
1207
|
+
// Then, we need to retrieve the normalized thickness of the edge in the WebGL
|
|
1208
|
+
// referential (in a ([0, 1], [0, 1]) space), using our "magic" correction
|
|
1209
|
+
// ratio:
|
|
1210
|
+
float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
|
|
1211
|
+
|
|
1212
|
+
// Here is the proper position of the vertex
|
|
1213
|
+
gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness, 1)).xy, 0, 1);
|
|
1214
|
+
|
|
1215
|
+
// For the fragment shader though, we need a thickness that takes the "magic"
|
|
1216
|
+
// correction ratio into account (as in webGLThickness), but so that the
|
|
1217
|
+
// antialiasing effect does not depend on the zoom level. So here's yet
|
|
1218
|
+
// another thickness version:
|
|
1219
|
+
v_thickness = webGLThickness / u_zoomRatio;
|
|
1220
|
+
|
|
1221
|
+
v_normal = unitNormal;
|
|
1222
|
+
|
|
1223
|
+
v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
|
|
1224
|
+
|
|
1225
|
+
#ifdef PICKING_MODE
|
|
1226
|
+
// For picking mode, we use the ID as the color:
|
|
1227
|
+
v_color = a_id;
|
|
1228
|
+
#else
|
|
1229
|
+
// For normal mode, we use the color:
|
|
1230
|
+
v_color = a_color;
|
|
1231
|
+
#endif
|
|
1232
|
+
|
|
1233
|
+
v_color.a *= bias;
|
|
1234
|
+
}
|
|
1235
|
+
`,I_e=D_e,TU=WebGLRenderingContext,_L=TU.UNSIGNED_BYTE,Zd=TU.FLOAT,L_e=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness"],z_e=(function(e){function t(){return fr(this,t),ki(this,t,arguments)}return Ci(t,e),dr(t,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:I_e,FRAGMENT_SHADER_SOURCE:kU,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:L_e,ATTRIBUTES:[{name:"a_positionStart",size:2,type:Zd},{name:"a_positionEnd",size:2,type:Zd},{name:"a_normal",size:2,type:Zd},{name:"a_color",size:4,type:_L,normalized:!0},{name:"a_id",size:4,type:_L,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:Zd},{name:"a_normalCoef",size:1,type:Zd}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[1,1],[0,-1],[1,-1]]}}},{key:"processVisibleItem",value:function(r,i,a,s,u){var c=u.size||1,f=a.x,h=a.y,p=s.x,g=s.y,v=Up(u.color),y=p-f,b=g-h,w=y*y+b*b,_=0,C=0;w&&(w=1/Math.sqrt(w),_=-b*w*c,C=y*w*c);var E=this.array;E[i++]=f,E[i++]=h,E[i++]=p,E[i++]=g,E[i++]=_,E[i++]=C,E[i++]=v,E[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,s=i.uniformLocations,u=s.u_matrix,c=s.u_zoomRatio,f=s.u_feather,h=s.u_pixelRatio,p=s.u_correctionRatio,g=s.u_sizeRatio,v=s.u_minEdgeThickness;a.uniformMatrix3fv(u,!1,r.matrix),a.uniform1f(c,r.zoomRatio),a.uniform1f(g,r.sizeRatio),a.uniform1f(p,r.correctionRatio),a.uniform1f(h,r.pixelRatio),a.uniform1f(f,r.antiAliasingFeather),a.uniform1f(v,r.minEdgeThickness)}}])})(mk),gk=(function(e){function t(){var n;return fr(this,t),n=ki(this,t),n.rawEmitter=n,n}return Ci(t,e),dr(t)})(X9.EventEmitter),g_,SL;function j_e(){return SL||(SL=1,g_=function(t){return t!==null&&typeof t=="object"&&typeof t.addUndirectedEdgeWithKey=="function"&&typeof t.dropNode=="function"&&typeof t.multi=="boolean"}),g_}var $_e=j_e();const B_e=ni($_e);var U_e=function(t){return t},F_e=function(t){return t*t},H_e=function(t){return t*(2-t)},G_e=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},q_e=function(t){return t*t*t},V_e=function(t){return--t*t*t+1},K_e=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},Y_e={linear:U_e,quadraticIn:F_e,quadraticOut:H_e,quadraticInOut:G_e,cubicIn:q_e,cubicOut:V_e,cubicInOut:K_e},W_e={easing:"quadraticInOut",duration:150};function Ri(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function Zg(e,t,n){return e[0]=t,e[4]=typeof n=="number"?n:t,e}function EL(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function AL(e,t,n){return e[6]=t,e[7]=n,e}function gs(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],h=e[8],p=t[0],g=t[1],v=t[2],y=t[3],b=t[4],w=t[5],_=t[6],C=t[7],E=t[8];return e[0]=p*n+g*a+v*c,e[1]=p*r+g*s+v*f,e[2]=p*i+g*u+v*h,e[3]=y*n+b*a+w*c,e[4]=y*r+b*s+w*f,e[5]=y*i+b*u+w*h,e[6]=_*n+C*a+E*c,e[7]=_*r+C*s+E*f,e[8]=_*i+C*u+E*h,e}function R2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],i=e[1],a=e[3],s=e[4],u=e[6],c=e[7],f=t.x,h=t.y;return{x:f*r+h*a+u*n,y:f*i+h*s+c*n}}function Q_e(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function Xd(e,t,n,r,i){var a=e.angle,s=e.ratio,u=e.x,c=e.y,f=t.width,h=t.height,p=Ri(),g=Math.min(f,h)-2*r,v=Q_e(t,n);return i?(gs(p,AL(Ri(),u,c)),gs(p,Zg(Ri(),s)),gs(p,EL(Ri(),a)),gs(p,Zg(Ri(),f/g/2/v,h/g/2/v))):(gs(p,Zg(Ri(),2*(g/f)*v,2*(g/h)*v)),gs(p,EL(Ri(),-a)),gs(p,Zg(Ri(),1/s)),gs(p,AL(Ri(),-u,-c))),p}function Z_e(e,t,n){var r=R2(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,a=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(a,2))/n.width}function X_e(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode(function(a,s){var u=s.x,c=s.y;u<t&&(t=u),u>n&&(n=u),c<r&&(r=c),c>i&&(i=c)}),{x:[t,n],y:[r,i]}}function J_e(e){if(!B_e(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode(function(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))throw new Error("Sigma: Coordinates of node ".concat(t," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}function eSe(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var a in n)r.setAttribute(a,n[a]);return r}function kL(){return typeof window.devicePixelRatio<"u"?window.devicePixelRatio:1}function CL(e,t,n){return n.sort(function(r,i){var a=t(r)||0,s=t(i)||0;return a<s?-1:a>s?1:0})}function OL(e){var t=gf(e.x,2),n=t[0],r=t[1],i=gf(e.y,2),a=i[0],s=i[1],u=Math.max(r-n,s-a),c=(r+n)/2,f=(s+a)/2;(u===0||Math.abs(u)===1/0||isNaN(u))&&(u=1),isNaN(c)&&(c=0),isNaN(f)&&(f=0);var h=function(g){return{x:.5+(g.x-c)/u,y:.5+(g.y-f)/u}};return h.applyTo=function(p){p.x=.5+(p.x-c)/u,p.y=.5+(p.y-f)/u},h.inverse=function(p){return{x:c+u*(p.x-.5),y:f+u*(p.y-.5)}},h.ratio=u,h}function D2(e){"@babel/helpers - typeof";return D2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D2(e)}function TL(e,t){var n=t.size;if(n!==0){var r=e.length;e.length+=n;var i=0;t.forEach(function(a){e[r+i]=a,i++})}}function v_(e){e=e||{};for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];r&&Object.assign(e,r)}return e}var vk={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,defaultDrawEdgeLabel:p_e,defaultDrawNodeLabel:xU,defaultDrawNodeHover:m_e,minEdgeThickness:1.7,antiAliasingFeather:1,dragTimeout:100,draggedEventsTolerance:3,inertiaDuration:200,inertiaRatio:3,zoomDuration:250,zoomingRatio:1.7,doubleClickTimeout:300,doubleClickZoomingRatio:2.2,doubleClickZoomingDuration:200,tapMoveTolerance:10,zoomToSizeRatioFunction:Math.sqrt,itemSizesReference:"screen",autoRescale:!0,autoCenter:!0,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,enableCameraZooming:!0,enableCameraPanning:!0,enableCameraRotation:!0,cameraPanBoundaries:null,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},tSe={circle:q0},nSe={arrow:R_e,line:z_e};function y_(e){if(typeof e.labelDensity!="number"||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if(typeof t=="number"&&typeof n=="number"&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")}function rSe(e){var t=v_({},vk,e);return t.nodeProgramClasses=v_({},tSe,t.nodeProgramClasses),t.edgeProgramClasses=v_({},nSe,t.edgeProgramClasses),t}var Xg=1.5,ML=(function(e){function t(){var n;return fr(this,t),n=ki(this,t),xe(n,"x",.5),xe(n,"y",.5),xe(n,"angle",0),xe(n,"ratio",1),xe(n,"minRatio",null),xe(n,"maxRatio",null),xe(n,"enabledZooming",!0),xe(n,"enabledPanning",!0),xe(n,"enabledRotation",!0),xe(n,"clean",null),xe(n,"nextFrame",null),xe(n,"previousState",null),xe(n,"enabled",!0),n.previousState=n.getState(),n}return Ci(t,e),dr(t,[{key:"enable",value:function(){return this.enabled=!0,this}},{key:"disable",value:function(){return this.enabled=!1,this}},{key:"getState",value:function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}}},{key:"hasState",value:function(r){return this.x===r.x&&this.y===r.y&&this.ratio===r.ratio&&this.angle===r.angle}},{key:"getPreviousState",value:function(){var r=this.previousState;return r?{x:r.x,y:r.y,angle:r.angle,ratio:r.ratio}:null}},{key:"getBoundedRatio",value:function(r){var i=r;return typeof this.minRatio=="number"&&(i=Math.max(i,this.minRatio)),typeof this.maxRatio=="number"&&(i=Math.min(i,this.maxRatio)),i}},{key:"validateState",value:function(r){var i={};return this.enabledPanning&&typeof r.x=="number"&&(i.x=r.x),this.enabledPanning&&typeof r.y=="number"&&(i.y=r.y),this.enabledZooming&&typeof r.ratio=="number"&&(i.ratio=this.getBoundedRatio(r.ratio)),this.enabledRotation&&typeof r.angle=="number"&&(i.angle=r.angle),this.clean?this.clean(He(He({},this.getState()),i)):i}},{key:"isAnimated",value:function(){return!!this.nextFrame}},{key:"setState",value:function(r){if(!this.enabled)return this;this.previousState=this.getState();var i=this.validateState(r);return typeof i.x=="number"&&(this.x=i.x),typeof i.y=="number"&&(this.y=i.y),typeof i.ratio=="number"&&(this.ratio=i.ratio),typeof i.angle=="number"&&(this.angle=i.angle),this.hasState(this.previousState)||this.emit("updated",this.getState()),this}},{key:"updateState",value:function(r){return this.setState(r(this.getState())),this}},{key:"animate",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(!s)return new Promise(function(v){return i.animate(r,a,v)});if(this.enabled){var u=He(He({},W_e),a),c=this.validateState(r),f=typeof u.easing=="function"?u.easing:Y_e[u.easing],h=Date.now(),p=this.getState(),g=function(){var y=(Date.now()-h)/u.duration;if(y>=1){i.nextFrame=null,i.setState(c),i.animationCallback&&(i.animationCallback.call(null),i.animationCallback=void 0);return}var b=f(y),w={};typeof c.x=="number"&&(w.x=p.x+(c.x-p.x)*b),typeof c.y=="number"&&(w.y=p.y+(c.y-p.y)*b),i.enabledRotation&&typeof c.angle=="number"&&(w.angle=p.angle+(c.angle-p.angle)*b),typeof c.ratio=="number"&&(w.ratio=p.ratio+(c.ratio-p.ratio)*b),i.setState(w),i.nextFrame=requestAnimationFrame(g)};this.nextFrame?(cancelAnimationFrame(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=requestAnimationFrame(g)):g(),this.animationCallback=s}}},{key:"animatedZoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio/r}):this.animate({ratio:this.ratio/(r.factor||Xg)},r):this.animate({ratio:this.ratio/Xg})}},{key:"animatedUnzoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio*r}):this.animate({ratio:this.ratio*(r.factor||Xg)},r):this.animate({ratio:this.ratio*Xg})}},{key:"animatedReset",value:function(r){return this.animate({x:.5,y:.5,ratio:1,angle:0},r)}},{key:"copy",value:function(){return t.from(this.getState())}}],[{key:"from",value:function(r){var i=new t;return i.setState(r)}}])})(gk);function Ui(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function eo(e,t){var n=He(He({},Ui(e,t)),{},{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function Jd(e){var t="x"in e?e:He(He({},e.touches[0]||e.previousTouches[0]),{},{original:e.original,sigmaDefaultPrevented:e.sigmaDefaultPrevented,preventSigmaDefault:function(){e.sigmaDefaultPrevented=!0,t.sigmaDefaultPrevented=!0}});return t}function iSe(e,t){return He(He({},eo(e,t)),{},{delta:MU(e)})}var aSe=2;function hv(e){for(var t=[],n=0,r=Math.min(e.length,aSe);n<r;n++)t.push(e[n]);return t}function eh(e,t,n){var r={touches:hv(e.touches).map(function(i){return Ui(i,n)}),previousTouches:t.map(function(i){return Ui(i,n)}),sigmaDefaultPrevented:!1,preventSigmaDefault:function(){r.sigmaDefaultPrevented=!0},original:e};return r}function MU(e){if(typeof e.deltaY<"u")return e.deltaY*-3/360;if(typeof e.detail<"u")return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}var PU=(function(e){function t(n,r){var i;return fr(this,t),i=ki(this,t),i.container=n,i.renderer=r,i}return Ci(t,e),dr(t)})(gk),oSe=["doubleClickTimeout","doubleClickZoomingDuration","doubleClickZoomingRatio","dragTimeout","draggedEventsTolerance","inertiaDuration","inertiaRatio","zoomDuration","zoomingRatio"],sSe=oSe.reduce(function(e,t){return He(He({},e),{},xe({},t,vk[t]))},{}),lSe=(function(e){function t(n,r){var i;return fr(this,t),i=ki(this,t,[n,r]),xe(i,"enabled",!0),xe(i,"draggedEvents",0),xe(i,"downStartTime",null),xe(i,"lastMouseX",null),xe(i,"lastMouseY",null),xe(i,"isMouseDown",!1),xe(i,"isMoving",!1),xe(i,"movingTimeout",null),xe(i,"startCameraState",null),xe(i,"clicks",0),xe(i,"doubleClickTimeout",null),xe(i,"currentWheelDirection",0),xe(i,"settings",sSe),i.handleClick=i.handleClick.bind(i),i.handleRightClick=i.handleRightClick.bind(i),i.handleDown=i.handleDown.bind(i),i.handleUp=i.handleUp.bind(i),i.handleMove=i.handleMove.bind(i),i.handleWheel=i.handleWheel.bind(i),i.handleLeave=i.handleLeave.bind(i),i.handleEnter=i.handleEnter.bind(i),n.addEventListener("click",i.handleClick,{capture:!1}),n.addEventListener("contextmenu",i.handleRightClick,{capture:!1}),n.addEventListener("mousedown",i.handleDown,{capture:!1}),n.addEventListener("wheel",i.handleWheel,{capture:!1}),n.addEventListener("mouseleave",i.handleLeave,{capture:!1}),n.addEventListener("mouseenter",i.handleEnter,{capture:!1}),document.addEventListener("mousemove",i.handleMove,{capture:!1}),document.addEventListener("mouseup",i.handleUp,{capture:!1}),i}return Ci(t,e),dr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("click",this.handleClick),r.removeEventListener("contextmenu",this.handleRightClick),r.removeEventListener("mousedown",this.handleDown),r.removeEventListener("wheel",this.handleWheel),r.removeEventListener("mouseleave",this.handleLeave),r.removeEventListener("mouseenter",this.handleEnter),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)}},{key:"handleClick",value:function(r){var i=this;if(this.enabled){if(this.clicks++,this.clicks===2)return this.clicks=0,typeof this.doubleClickTimeout=="number"&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(r);setTimeout(function(){i.clicks=0,i.doubleClickTimeout=null},this.settings.doubleClickTimeout),this.draggedEvents<this.settings.draggedEventsTolerance&&this.emit("click",eo(r,this.container))}}},{key:"handleRightClick",value:function(r){this.enabled&&this.emit("rightClick",eo(r,this.container))}},{key:"handleDoubleClick",value:function(r){if(this.enabled){r.preventDefault(),r.stopPropagation();var i=eo(r,this.container);if(this.emit("doubleClick",i),!i.sigmaDefaultPrevented){var a=this.renderer.getCamera(),s=a.getBoundedRatio(a.getState().ratio/this.settings.doubleClickZoomingRatio);a.animate(this.renderer.getViewportZoomedState(Ui(r,this.container),s),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}}},{key:"handleDown",value:function(r){if(this.enabled){if(r.button===0){this.startCameraState=this.renderer.getCamera().getState();var i=Ui(r,this.container),a=i.x,s=i.y;this.lastMouseX=a,this.lastMouseY=s,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",eo(r,this.container))}}},{key:"handleUp",value:function(r){var i=this;if(!(!this.enabled||!this.isMouseDown)){var a=this.renderer.getCamera();this.isMouseDown=!1,typeof this.movingTimeout=="number"&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var s=Ui(r,this.container),u=s.x,c=s.y,f=a.getState(),h=a.getPreviousState()||{x:0,y:0};this.isMoving?a.animate({x:f.x+this.settings.inertiaRatio*(f.x-h.x),y:f.y+this.settings.inertiaRatio*(f.y-h.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"}):(this.lastMouseX!==u||this.lastMouseY!==c)&&a.setState({x:f.x,y:f.y}),this.isMoving=!1,setTimeout(function(){var p=i.draggedEvents>0;i.draggedEvents=0,p&&i.renderer.getSetting("hideEdgesOnMove")&&i.renderer.refresh()},0),this.emit("mouseup",eo(r,this.container))}}},{key:"handleMove",value:function(r){var i=this;if(this.enabled){var a=eo(r,this.container);if(this.emit("mousemovebody",a),(r.target===this.container||r.composedPath()[0]===this.container)&&this.emit("mousemove",a),!a.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,typeof this.movingTimeout=="number"&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.movingTimeout=null,i.isMoving=!1},this.settings.dragTimeout);var s=this.renderer.getCamera(),u=Ui(r,this.container),c=u.x,f=u.y,h=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),p=this.renderer.viewportToFramedGraph({x:c,y:f}),g=h.x-p.x,v=h.y-p.y,y=s.getState(),b=y.x+g,w=y.y+v;s.setState({x:b,y:w}),this.lastMouseX=c,this.lastMouseY=f,r.preventDefault(),r.stopPropagation()}}}},{key:"handleLeave",value:function(r){this.emit("mouseleave",eo(r,this.container))}},{key:"handleEnter",value:function(r){this.emit("mouseenter",eo(r,this.container))}},{key:"handleWheel",value:function(r){var i=this,a=this.renderer.getCamera();if(!(!this.enabled||!a.enabledZooming)){var s=MU(r);if(s){var u=iSe(r,this.container);if(this.emit("wheel",u),u.sigmaDefaultPrevented){r.preventDefault(),r.stopPropagation();return}var c=a.getState().ratio,f=s>0?1/this.settings.zoomingRatio:this.settings.zoomingRatio,h=a.getBoundedRatio(c*f),p=s>0?1:-1,g=Date.now();c!==h&&(r.preventDefault(),r.stopPropagation(),!(this.currentWheelDirection===p&&this.lastWheelTriggerTime&&g-this.lastWheelTriggerTime<this.settings.zoomDuration/5)&&(a.animate(this.renderer.getViewportZoomedState(Ui(r,this.container),h),{easing:"quadraticOut",duration:this.settings.zoomDuration},function(){i.currentWheelDirection=0}),this.currentWheelDirection=p,this.lastWheelTriggerTime=g))}}}},{key:"setSettings",value:function(r){this.settings=r}}])})(PU),uSe=["dragTimeout","inertiaDuration","inertiaRatio","doubleClickTimeout","doubleClickZoomingRatio","doubleClickZoomingDuration","tapMoveTolerance"],cSe=uSe.reduce(function(e,t){return He(He({},e),{},xe({},t,vk[t]))},{}),fSe=(function(e){function t(n,r){var i;return fr(this,t),i=ki(this,t,[n,r]),xe(i,"enabled",!0),xe(i,"isMoving",!1),xe(i,"hasMoved",!1),xe(i,"touchMode",0),xe(i,"startTouchesPositions",[]),xe(i,"lastTouches",[]),xe(i,"lastTap",null),xe(i,"settings",cSe),i.handleStart=i.handleStart.bind(i),i.handleLeave=i.handleLeave.bind(i),i.handleMove=i.handleMove.bind(i),n.addEventListener("touchstart",i.handleStart,{capture:!1}),n.addEventListener("touchcancel",i.handleLeave,{capture:!1}),document.addEventListener("touchend",i.handleLeave,{capture:!1,passive:!1}),document.addEventListener("touchmove",i.handleMove,{capture:!1,passive:!1}),i}return Ci(t,e),dr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("touchstart",this.handleStart),r.removeEventListener("touchcancel",this.handleLeave),document.removeEventListener("touchend",this.handleLeave),document.removeEventListener("touchmove",this.handleMove)}},{key:"getDimensions",value:function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}}},{key:"handleStart",value:function(r){var i=this;if(this.enabled){r.preventDefault();var a=hv(r.touches);if(this.touchMode=a.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=a.map(function(v){return Ui(v,i.container)}),this.touchMode===2){var s=gf(this.startTouchesPositions,2),u=s[0],c=u.x,f=u.y,h=s[1],p=h.x,g=h.y;this.startTouchesAngle=Math.atan2(g-f,p-c),this.startTouchesDistance=Math.sqrt(Math.pow(p-c,2)+Math.pow(g-f,2))}this.emit("touchdown",eh(r,this.lastTouches,this.container)),this.lastTouches=a,this.lastTouchesPositions=this.startTouchesPositions}}},{key:"handleLeave",value:function(r){if(!(!this.enabled||!this.startTouchesPositions.length)){switch(r.cancelable&&r.preventDefault(),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(r.touches.length===1){this.handleStart(r),r.preventDefault();break}case 1:if(this.isMoving){var i=this.renderer.getCamera(),a=i.getState(),s=i.getPreviousState()||{x:0,y:0};i.animate({x:a.x+this.settings.inertiaRatio*(a.x-s.x),y:a.y+this.settings.inertiaRatio*(a.y-s.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0;break}if(this.emit("touchup",eh(r,this.lastTouches,this.container)),!r.touches.length){var u=Ui(this.lastTouches[0],this.container),c=this.startTouchesPositions[0],f=Math.pow(u.x-c.x,2)+Math.pow(u.y-c.y,2);if(!r.touches.length&&f<Math.pow(this.settings.tapMoveTolerance,2))if(this.lastTap&&Date.now()-this.lastTap.time<this.settings.doubleClickTimeout){var h=eh(r,this.lastTouches,this.container);if(this.emit("doubletap",h),this.lastTap=null,!h.sigmaDefaultPrevented){var p=this.renderer.getCamera(),g=p.getBoundedRatio(p.getState().ratio/this.settings.doubleClickZoomingRatio);p.animate(this.renderer.getViewportZoomedState(u,g),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}else{var v=eh(r,this.lastTouches,this.container);this.emit("tap",v),this.lastTap={time:Date.now(),position:v.touches[0]||v.previousTouches[0]}}}this.lastTouches=hv(r.touches),this.startTouchesPositions=[]}}},{key:"handleMove",value:function(r){var i=this;if(!(!this.enabled||!this.startTouchesPositions.length)){r.preventDefault();var a=hv(r.touches),s=a.map(function(B){return Ui(B,i.container)}),u=this.lastTouches;this.lastTouches=a,this.lastTouchesPositions=s;var c=eh(r,u,this.container);if(this.emit("touchmove",c),!c.sigmaDefaultPrevented&&(this.hasMoved||(this.hasMoved=s.some(function(B,K){var X=i.startTouchesPositions[K];return X&&(B.x!==X.x||B.y!==X.y)})),!!this.hasMoved)){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.isMoving=!1},this.settings.dragTimeout);var f=this.renderer.getCamera(),h=this.startCameraState,p=this.renderer.getSetting("stagePadding");switch(this.touchMode){case 1:{var g=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),v=g.x,y=g.y,b=this.renderer.viewportToFramedGraph(s[0]),w=b.x,_=b.y;f.setState({x:h.x+v-w,y:h.y+y-_});break}case 2:{var C={x:.5,y:.5,angle:0,ratio:1},E=s[0],S=E.x,T=E.y,O=s[1],M=O.x,P=O.y,R=Math.atan2(P-T,M-S)-this.startTouchesAngle,z=Math.hypot(P-T,M-S)/this.startTouchesDistance,D=f.getBoundedRatio(h.ratio/z);C.ratio=D,C.angle=h.angle+R;var N=this.getDimensions(),$=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:h}),I=Math.min(N.width,N.height)-2*p,U=I/N.width,j=I/N.height,G=D/I,q=S-I/2/U,H=T-I/2/j,V=[q*Math.cos(-C.angle)-H*Math.sin(-C.angle),H*Math.cos(-C.angle)+q*Math.sin(-C.angle)];q=V[0],H=V[1],C.x=$.x-q*G,C.y=$.y+H*G,f.setState(C);break}}}}}},{key:"setSettings",value:function(r){this.settings=r}}])})(PU);function dSe(e){if(Array.isArray(e))return P2(e)}function hSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1236
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PL(e){return dSe(e)||hSe(e)||pU(e)||pSe()}function mSe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function b_(e,t){if(e==null)return{};var n,r,i=mSe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var NL=(function(){function e(t,n){fr(this,e),this.key=t,this.size=n}return dr(e,null,[{key:"compare",value:function(n,r){return n.size>r.size?-1:n.size<r.size||n.key>r.key?1:-1}}])})(),RL=(function(){function e(){fr(this,e),xe(this,"width",0),xe(this,"height",0),xe(this,"cellSize",0),xe(this,"columns",0),xe(this,"rows",0),xe(this,"cells",{})}return dr(e,[{key:"resizeAndClear",value:function(n,r){this.width=n.width,this.height=n.height,this.cellSize=r,this.columns=Math.ceil(n.width/r),this.rows=Math.ceil(n.height/r),this.cells={}}},{key:"getIndex",value:function(n){var r=Math.floor(n.x/this.cellSize),i=Math.floor(n.y/this.cellSize);return i*this.columns+r}},{key:"add",value:function(n,r,i){var a=new NL(n,r),s=this.getIndex(i),u=this.cells[s];u||(u=[],this.cells[s]=u),u.push(a)}},{key:"organize",value:function(){for(var n in this.cells){var r=this.cells[n];r.sort(NL.compare)}}},{key:"getLabelsToDisplay",value:function(n,r){var i=this.cellSize*this.cellSize,a=i/n/n,s=a*r/i,u=Math.ceil(s),c=[];for(var f in this.cells)for(var h=this.cells[f],p=0;p<Math.min(u,h.length);p++)c.push(h[p].key);return c}}])})();function gSe(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,a=[];return t.forEachEdge(function(s,u,c,f){(c===n||f===n||r.has(c)||r.has(f)||i.has(c)&&i.has(f))&&a.push(s)}),a}var DL=150,IL=50,lo=Object.prototype.hasOwnProperty;function vSe(e,t,n){if(!lo.call(n,"x")||!lo.call(n,"y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),!n.label&&n.label!==""&&(n.label=null),n.label!==void 0&&n.label!==null?n.label=""+n.label:n.label=null,n.size||(n.size=2),lo.call(n,"hidden")||(n.hidden=!1),lo.call(n,"highlighted")||(n.highlighted=!1),lo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function ySe(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),lo.call(n,"hidden")||(n.hidden=!1),lo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var bSe=(function(e){function t(n,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(fr(this,t),i=ki(this,t),xe(i,"elements",{}),xe(i,"canvasContexts",{}),xe(i,"webGLContexts",{}),xe(i,"pickingLayers",new Set),xe(i,"textures",{}),xe(i,"frameBuffers",{}),xe(i,"activeListeners",{}),xe(i,"labelGrid",new RL),xe(i,"nodeDataCache",{}),xe(i,"edgeDataCache",{}),xe(i,"nodeProgramIndex",{}),xe(i,"edgeProgramIndex",{}),xe(i,"nodesWithForcedLabels",new Set),xe(i,"edgesWithForcedLabels",new Set),xe(i,"nodeExtent",{x:[0,1],y:[0,1]}),xe(i,"nodeZExtent",[1/0,-1/0]),xe(i,"edgeZExtent",[1/0,-1/0]),xe(i,"matrix",Ri()),xe(i,"invMatrix",Ri()),xe(i,"correctionRatio",1),xe(i,"customBBox",null),xe(i,"normalizationFunction",OL({x:[0,1],y:[0,1]})),xe(i,"graphToViewportRatio",1),xe(i,"itemIDsIndex",{}),xe(i,"nodeIndices",{}),xe(i,"edgeIndices",{}),xe(i,"width",0),xe(i,"height",0),xe(i,"pixelRatio",kL()),xe(i,"pickingDownSizingRatio",2*i.pixelRatio),xe(i,"displayedNodeLabels",new Set),xe(i,"displayedEdgeLabels",new Set),xe(i,"highlightedNodes",new Set),xe(i,"hoveredNode",null),xe(i,"hoveredEdge",null),xe(i,"renderFrame",null),xe(i,"renderHighlightedNodesFrame",null),xe(i,"needToProcess",!1),xe(i,"checkEdgesEventsFrame",null),xe(i,"nodePrograms",{}),xe(i,"nodeHoverPrograms",{}),xe(i,"edgePrograms",{}),i.settings=rSe(a),y_(i.settings),J_e(n),!(r instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");i.graph=n,i.container=r,i.createWebGLContext("edges",{picking:a.enableEdgeEvents}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes",{picking:!0}),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse",{style:{touchAction:"none",userSelect:"none"}}),i.resize();for(var s in i.settings.nodeProgramClasses)i.registerNodeProgram(s,i.settings.nodeProgramClasses[s],i.settings.nodeHoverProgramClasses[s]);for(var u in i.settings.edgeProgramClasses)i.registerEdgeProgram(u,i.settings.edgeProgramClasses[u]);return i.camera=new ML,i.bindCameraHandlers(),i.mouseCaptor=new lSe(i.elements.mouse,i),i.mouseCaptor.setSettings(i.settings),i.touchCaptor=new fSe(i.elements.mouse,i),i.touchCaptor.setSettings(i.settings),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.refresh(),i}return Ci(t,e),dr(t,[{key:"registerNodeProgram",value:function(r,i,a){return this.nodePrograms[r]&&this.nodePrograms[r].kill(),this.nodeHoverPrograms[r]&&this.nodeHoverPrograms[r].kill(),this.nodePrograms[r]=new i(this.webGLContexts.nodes,this.frameBuffers.nodes,this),this.nodeHoverPrograms[r]=new(a||i)(this.webGLContexts.hoverNodes,null,this),this}},{key:"registerEdgeProgram",value:function(r,i){return this.edgePrograms[r]&&this.edgePrograms[r].kill(),this.edgePrograms[r]=new i(this.webGLContexts.edges,this.frameBuffers.edges,this),this}},{key:"unregisterNodeProgram",value:function(r){if(this.nodePrograms[r]){var i=this.nodePrograms,a=i[r],s=b_(i,[r].map(yh));a.kill(),this.nodePrograms=s}if(this.nodeHoverPrograms[r]){var u=this.nodeHoverPrograms,c=u[r],f=b_(u,[r].map(yh));c.kill(),this.nodePrograms=f}return this}},{key:"unregisterEdgeProgram",value:function(r){if(this.edgePrograms[r]){var i=this.edgePrograms,a=i[r],s=b_(i,[r].map(yh));a.kill(),this.edgePrograms=s}return this}},{key:"resetWebGLTexture",value:function(r){var i=this.webGLContexts[r],a=this.frameBuffers[r],s=this.textures[r];s&&i.deleteTexture(s);var u=i.createTexture();return i.bindFramebuffer(i.FRAMEBUFFER,a),i.bindTexture(i.TEXTURE_2D,u),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,this.width,this.height,0,i.RGBA,i.UNSIGNED_BYTE,null),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,u,0),this.textures[r]=u,this}},{key:"bindCameraHandlers",value:function(){var r=this;return this.activeListeners.camera=function(){r.scheduleRender()},this.camera.on("updated",this.activeListeners.camera),this}},{key:"unbindCameraHandlers",value:function(){return this.camera.removeListener("updated",this.activeListeners.camera),this}},{key:"getNodeAtPosition",value:function(r){var i=r.x,a=r.y,s=mL(this.webGLContexts.nodes,this.frameBuffers.nodes,i,a,this.pixelRatio,this.pickingDownSizingRatio),u=pL.apply(void 0,PL(s)),c=this.itemIDsIndex[u];return c&&c.type==="node"?c.id:null}},{key:"bindEventHandlers",value:function(){var r=this;this.activeListeners.handleResize=function(){r.scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(a){var s=Jd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}},c=r.getNodeAtPosition(s);if(c&&r.hoveredNode!==c&&!r.nodeDataCache[c].hidden){r.hoveredNode&&r.emit("leaveNode",He(He({},u),{},{node:r.hoveredNode})),r.hoveredNode=c,r.emit("enterNode",He(He({},u),{},{node:c})),r.scheduleHighlightedNodesRender();return}if(r.hoveredNode&&r.getNodeAtPosition(s)!==r.hoveredNode){var f=r.hoveredNode;r.hoveredNode=null,r.emit("leaveNode",He(He({},u),{},{node:f})),r.scheduleHighlightedNodesRender();return}if(r.settings.enableEdgeEvents){var h=r.hoveredNode?null:r.getEdgeAtPoint(u.event.x,u.event.y);h!==r.hoveredEdge&&(r.hoveredEdge&&r.emit("leaveEdge",He(He({},u),{},{edge:r.hoveredEdge})),h&&r.emit("enterEdge",He(He({},u),{},{edge:h})),r.hoveredEdge=h)}},this.activeListeners.handleMoveBody=function(a){var s=Jd(a);r.emit("moveBody",{event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}})},this.activeListeners.handleLeave=function(a){var s=Jd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}};r.hoveredNode&&(r.emit("leaveNode",He(He({},u),{},{node:r.hoveredNode})),r.scheduleHighlightedNodesRender()),r.settings.enableEdgeEvents&&r.hoveredEdge&&(r.emit("leaveEdge",He(He({},u),{},{edge:r.hoveredEdge})),r.scheduleHighlightedNodesRender()),r.emit("leaveStage",He({},u))},this.activeListeners.handleEnter=function(a){var s=Jd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}};r.emit("enterStage",He({},u))};var i=function(s){return function(u){var c=Jd(u),f={event:c,preventSigmaDefault:function(){c.preventSigmaDefault()}},h=r.getNodeAtPosition(c);if(h)return r.emit("".concat(s,"Node"),He(He({},f),{},{node:h}));if(r.settings.enableEdgeEvents){var p=r.getEdgeAtPoint(c.x,c.y);if(p)return r.emit("".concat(s,"Edge"),He(He({},f),{},{edge:p}))}return r.emit("".concat(s,"Stage"),f)}};return this.activeListeners.handleClick=i("click"),this.activeListeners.handleRightClick=i("rightClick"),this.activeListeners.handleDoubleClick=i("doubleClick"),this.activeListeners.handleWheel=i("wheel"),this.activeListeners.handleDown=i("down"),this.activeListeners.handleUp=i("up"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("mousemovebody",this.activeListeners.handleMoveBody),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this.mouseCaptor.on("mouseup",this.activeListeners.handleUp),this.mouseCaptor.on("mouseleave",this.activeListeners.handleLeave),this.mouseCaptor.on("mouseenter",this.activeListeners.handleEnter),this.touchCaptor.on("touchdown",this.activeListeners.handleDown),this.touchCaptor.on("touchdown",this.activeListeners.handleMove),this.touchCaptor.on("touchup",this.activeListeners.handleUp),this.touchCaptor.on("touchmove",this.activeListeners.handleMove),this.touchCaptor.on("tap",this.activeListeners.handleClick),this.touchCaptor.on("doubletap",this.activeListeners.handleDoubleClick),this.touchCaptor.on("touchmove",this.activeListeners.handleMoveBody),this}},{key:"bindGraphHandlers",value:function(){var r=this,i=this.graph,a=new Set(["x","y","zIndex","type"]);return this.activeListeners.eachNodeAttributesUpdatedGraphUpdate=function(s){var u,c=(u=s.hints)===null||u===void 0?void 0:u.attributes;r.graph.forEachNode(function(h){return r.updateNode(h)});var f=!c||c.some(function(h){return a.has(h)});r.refresh({partialGraph:{nodes:i.nodes()},skipIndexation:!f,schedule:!0})},this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate=function(s){var u,c=(u=s.hints)===null||u===void 0?void 0:u.attributes;r.graph.forEachEdge(function(h){return r.updateEdge(h)});var f=c&&["zIndex","type"].some(function(h){return c==null?void 0:c.includes(h)});r.refresh({partialGraph:{edges:i.edges()},skipIndexation:!f,schedule:!0})},this.activeListeners.addNodeGraphUpdate=function(s){var u=s.key;r.addNode(u),r.refresh({partialGraph:{nodes:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.updateNodeGraphUpdate=function(s){var u=s.key;r.refresh({partialGraph:{nodes:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropNodeGraphUpdate=function(s){var u=s.key;r.removeNode(u),r.refresh({schedule:!0})},this.activeListeners.addEdgeGraphUpdate=function(s){var u=s.key;r.addEdge(u),r.refresh({partialGraph:{edges:[u]},schedule:!0})},this.activeListeners.updateEdgeGraphUpdate=function(s){var u=s.key;r.refresh({partialGraph:{edges:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropEdgeGraphUpdate=function(s){var u=s.key;r.removeEdge(u),r.refresh({schedule:!0})},this.activeListeners.clearEdgesGraphUpdate=function(){r.clearEdgeState(),r.clearEdgeIndices(),r.refresh({schedule:!0})},this.activeListeners.clearGraphUpdate=function(){r.clearEdgeState(),r.clearNodeState(),r.clearEdgeIndices(),r.clearNodeIndices(),r.refresh({schedule:!0})},i.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),i.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),i.on("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),i.on("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),i.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),i.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),i.on("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),i.on("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),i.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),i.on("cleared",this.activeListeners.clearGraphUpdate),this}},{key:"unbindGraphHandlers",value:function(){var r=this.graph;r.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),r.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),r.removeListener("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),r.removeListener("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),r.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),r.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),r.removeListener("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),r.removeListener("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),r.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),r.removeListener("cleared",this.activeListeners.clearGraphUpdate)}},{key:"getEdgeAtPoint",value:function(r,i){var a=mL(this.webGLContexts.edges,this.frameBuffers.edges,r,i,this.pixelRatio,this.pickingDownSizingRatio),s=pL.apply(void 0,PL(a)),u=this.itemIDsIndex[s];return u&&u.type==="edge"?u.id:null}},{key:"process",value:function(){var r=this;this.emit("beforeProcess");var i=this.graph,a=this.settings,s=this.getDimensions();if(this.nodeExtent=X_e(this.graph),!this.settings.autoRescale){var u=s.width,c=s.height,f=this.nodeExtent,h=f.x,p=f.y;this.nodeExtent={x:[(h[0]+h[1])/2-u/2,(h[0]+h[1])/2+u/2],y:[(p[0]+p[1])/2-c/2,(p[0]+p[1])/2+c/2]}}this.normalizationFunction=OL(this.customBBox||this.nodeExtent);var g=new ML,v=Xd(g.getState(),s,this.getGraphDimensions(),this.getStagePadding());this.labelGrid.resizeAndClear(s,a.labelGridCellSize);for(var y={},b={},w={},_={},C=1,E=i.nodes(),S=0,T=E.length;S<T;S++){var O=E[S],M=this.nodeDataCache[O],P=i.getNodeAttributes(O);M.x=P.x,M.y=P.y,this.normalizationFunction.applyTo(M),typeof M.label=="string"&&!M.hidden&&this.labelGrid.add(O,M.size,this.framedGraphToViewport(M,{matrix:v})),y[M.type]=(y[M.type]||0)+1}this.labelGrid.organize();for(var R in this.nodePrograms){if(!lo.call(this.nodePrograms,R))throw new Error('Sigma: could not find a suitable program for node type "'.concat(R,'"!'));this.nodePrograms[R].reallocate(y[R]||0),y[R]=0}this.settings.zIndex&&this.nodeZExtent[0]!==this.nodeZExtent[1]&&(E=CL(this.nodeZExtent,function(ce){return r.nodeDataCache[ce].zIndex},E));for(var z=0,D=E.length;z<D;z++){var N=E[z];b[N]=C,_[b[N]]={type:"node",id:N},C++;var $=this.nodeDataCache[N];this.addNodeToProgram(N,b[N],y[$.type]++)}for(var I={},U=i.edges(),j=0,G=U.length;j<G;j++){var q=U[j],H=this.edgeDataCache[q];I[H.type]=(I[H.type]||0)+1}this.settings.zIndex&&this.edgeZExtent[0]!==this.edgeZExtent[1]&&(U=CL(this.edgeZExtent,function(ce){return r.edgeDataCache[ce].zIndex},U));for(var V in this.edgePrograms){if(!lo.call(this.edgePrograms,V))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(V,'"!'));this.edgePrograms[V].reallocate(I[V]||0),I[V]=0}for(var B=0,K=U.length;B<K;B++){var X=U[B];w[X]=C,_[w[X]]={type:"edge",id:X},C++;var ee=this.edgeDataCache[X];this.addEdgeToProgram(X,w[X],I[ee.type]++)}return this.itemIDsIndex=_,this.nodeIndices=b,this.edgeIndices=w,this.emit("afterProcess"),this}},{key:"handleSettingsUpdate",value:function(r){var i=this,a=this.settings;if(this.camera.minRatio=a.minCameraRatio,this.camera.maxRatio=a.maxCameraRatio,this.camera.enabledZooming=a.enableCameraZooming,this.camera.enabledPanning=a.enableCameraPanning,this.camera.enabledRotation=a.enableCameraRotation,a.cameraPanBoundaries?this.camera.clean=function(h){return i.cleanCameraState(h,a.cameraPanBoundaries&&D2(a.cameraPanBoundaries)==="object"?a.cameraPanBoundaries:{})}:this.camera.clean=null,this.camera.setState(this.camera.validateState(this.camera.getState())),r){if(r.edgeProgramClasses!==a.edgeProgramClasses){for(var s in a.edgeProgramClasses)a.edgeProgramClasses[s]!==r.edgeProgramClasses[s]&&this.registerEdgeProgram(s,a.edgeProgramClasses[s]);for(var u in r.edgeProgramClasses)a.edgeProgramClasses[u]||this.unregisterEdgeProgram(u)}if(r.nodeProgramClasses!==a.nodeProgramClasses||r.nodeHoverProgramClasses!==a.nodeHoverProgramClasses){for(var c in a.nodeProgramClasses)(a.nodeProgramClasses[c]!==r.nodeProgramClasses[c]||a.nodeHoverProgramClasses[c]!==r.nodeHoverProgramClasses[c])&&this.registerNodeProgram(c,a.nodeProgramClasses[c],a.nodeHoverProgramClasses[c]);for(var f in r.nodeProgramClasses)a.nodeProgramClasses[f]||this.unregisterNodeProgram(f)}}return this.mouseCaptor.setSettings(this.settings),this.touchCaptor.setSettings(this.settings),this}},{key:"cleanCameraState",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.tolerance,s=a===void 0?0:a,u=i.boundaries,c=He({},r),f=u||this.nodeExtent,h=gf(f.x,2),p=h[0],g=h[1],v=gf(f.y,2),y=v[0],b=v[1],w=[this.graphToViewport({x:p,y},{cameraState:r}),this.graphToViewport({x:g,y},{cameraState:r}),this.graphToViewport({x:p,y:b},{cameraState:r}),this.graphToViewport({x:g,y:b},{cameraState:r})],_=1/0,C=-1/0,E=1/0,S=-1/0;w.forEach(function(I){var U=I.x,j=I.y;_=Math.min(_,U),C=Math.max(C,U),E=Math.min(E,j),S=Math.max(S,j)});var T=C-_,O=S-E,M=this.getDimensions(),P=M.width,R=M.height,z=0,D=0;if(T>=P?C<P-s?z=C-(P-s):_>s&&(z=_-s):C>P+s?z=C-(P+s):_<-s&&(z=_+s),O>=R?S<R-s?D=S-(R-s):E>s&&(D=E-s):S>R+s?D=S-(R+s):E<-s&&(D=E+s),z||D){var N=this.viewportToFramedGraph({x:0,y:0},{cameraState:r}),$=this.viewportToFramedGraph({x:z,y:D},{cameraState:r});z=$.x-N.x,D=$.y-N.y,c.x+=z,c.y+=D}return c}},{key:"renderLabels",value:function(){if(!this.settings.renderLabels)return this;var r=this.camera.getState(),i=this.labelGrid.getLabelsToDisplay(r.ratio,this.settings.labelDensity);TL(i,this.nodesWithForcedLabels),this.displayedNodeLabels=new Set;for(var a=this.canvasContexts.labels,s=0,u=i.length;s<u;s++){var c=i[s],f=this.nodeDataCache[c];if(!this.displayedNodeLabels.has(c)&&!f.hidden){var h=this.framedGraphToViewport(f),p=h.x,g=h.y,v=this.scaleSize(f.size);if(!(!f.forceLabel&&v<this.settings.labelRenderedSizeThreshold)&&!(p<-DL||p>this.width+DL||g<-IL||g>this.height+IL)){this.displayedNodeLabels.add(c);var y=this.settings.defaultDrawNodeLabel,b=this.nodePrograms[f.type],w=(b==null?void 0:b.drawLabel)||y;w(a,He(He({key:c},f),{},{size:v,x:p,y:g}),this.settings)}}}return this}},{key:"renderEdgeLabels",value:function(){if(!this.settings.renderEdgeLabels)return this;var r=this.canvasContexts.edgeLabels;r.clearRect(0,0,this.width,this.height);var i=gSe({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedNodeLabels,highlightedNodes:this.highlightedNodes});TL(i,this.edgesWithForcedLabels);for(var a=new Set,s=0,u=i.length;s<u;s++){var c=i[s],f=this.graph.extremities(c),h=this.nodeDataCache[f[0]],p=this.nodeDataCache[f[1]],g=this.edgeDataCache[c];if(!a.has(c)&&!(g.hidden||h.hidden||p.hidden)){var v=this.settings.defaultDrawEdgeLabel,y=this.edgePrograms[g.type],b=(y==null?void 0:y.drawLabel)||v;b(r,He(He({key:c},g),{},{size:this.scaleSize(g.size)}),He(He(He({key:f[0]},h),this.framedGraphToViewport(h)),{},{size:this.scaleSize(h.size)}),He(He(He({key:f[1]},p),this.framedGraphToViewport(p)),{},{size:this.scaleSize(p.size)}),this.settings),a.add(c)}}return this.displayedEdgeLabels=a,this}},{key:"renderHighlightedNodes",value:function(){var r=this,i=this.canvasContexts.hovers;i.clearRect(0,0,this.width,this.height);var a=function(v){var y=r.nodeDataCache[v],b=r.framedGraphToViewport(y),w=b.x,_=b.y,C=r.scaleSize(y.size),E=r.settings.defaultDrawNodeHover,S=r.nodePrograms[y.type],T=(S==null?void 0:S.drawHover)||E;T(i,He(He({key:v},y),{},{size:C,x:w,y:_}),r.settings)},s=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&s.push(this.hoveredNode),this.highlightedNodes.forEach(function(g){g!==r.hoveredNode&&s.push(g)}),s.forEach(function(g){return a(g)});var u={};s.forEach(function(g){var v=r.nodeDataCache[g].type;u[v]=(u[v]||0)+1});for(var c in this.nodeHoverPrograms)this.nodeHoverPrograms[c].reallocate(u[c]||0),u[c]=0;s.forEach(function(g){var v=r.nodeDataCache[g];r.nodeHoverPrograms[v.type].process(0,u[v.type]++,v)}),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT);var f=this.getRenderParams();for(var h in this.nodeHoverPrograms){var p=this.nodeHoverPrograms[h];p.render(f)}}},{key:"scheduleHighlightedNodesRender",value:function(){var r=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=requestAnimationFrame(function(){r.renderHighlightedNodesFrame=null,r.renderHighlightedNodes(),r.renderEdgeLabels()}))}},{key:"render",value:function(){var r=this;this.emit("beforeRender");var i=function(){return r.emit("afterRender"),r};if(this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.resize(),this.needToProcess&&this.process(),this.needToProcess=!1,this.clear(),this.pickingLayers.forEach(function(w){return r.resetWebGLTexture(w)}),!this.graph.order)return i();var a=this.mouseCaptor,s=this.camera.isAnimated()||a.isMoving||a.draggedEvents||a.currentWheelDirection,u=this.camera.getState(),c=this.getDimensions(),f=this.getGraphDimensions(),h=this.getStagePadding();this.matrix=Xd(u,c,f,h),this.invMatrix=Xd(u,c,f,h,!0),this.correctionRatio=Z_e(this.matrix,u,c),this.graphToViewportRatio=this.getGraphToViewportRatio();var p=this.getRenderParams();for(var g in this.nodePrograms){var v=this.nodePrograms[g];v.render(p)}if(!this.settings.hideEdgesOnMove||!s)for(var y in this.edgePrograms){var b=this.edgePrograms[y];b.render(p)}return this.settings.hideLabelsOnMove&&s||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),i()}},{key:"addNode",value:function(r){var i=Object.assign({},this.graph.getNodeAttributes(r));this.settings.nodeReducer&&(i=this.settings.nodeReducer(r,i));var a=vSe(this.settings,r,i);this.nodeDataCache[r]=a,this.nodesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.nodesWithForcedLabels.add(r),this.highlightedNodes.delete(r),a.highlighted&&!a.hidden&&this.highlightedNodes.add(r),this.settings.zIndex&&(a.zIndex<this.nodeZExtent[0]&&(this.nodeZExtent[0]=a.zIndex),a.zIndex>this.nodeZExtent[1]&&(this.nodeZExtent[1]=a.zIndex))}},{key:"updateNode",value:function(r){this.addNode(r);var i=this.nodeDataCache[r];this.normalizationFunction.applyTo(i)}},{key:"removeNode",value:function(r){delete this.nodeDataCache[r],delete this.nodeProgramIndex[r],this.highlightedNodes.delete(r),this.hoveredNode===r&&(this.hoveredNode=null),this.nodesWithForcedLabels.delete(r)}},{key:"addEdge",value:function(r){var i=Object.assign({},this.graph.getEdgeAttributes(r));this.settings.edgeReducer&&(i=this.settings.edgeReducer(r,i));var a=ySe(this.settings,r,i);this.edgeDataCache[r]=a,this.edgesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.edgesWithForcedLabels.add(r),this.settings.zIndex&&(a.zIndex<this.edgeZExtent[0]&&(this.edgeZExtent[0]=a.zIndex),a.zIndex>this.edgeZExtent[1]&&(this.edgeZExtent[1]=a.zIndex))}},{key:"updateEdge",value:function(r){this.addEdge(r)}},{key:"removeEdge",value:function(r){delete this.edgeDataCache[r],delete this.edgeProgramIndex[r],this.hoveredEdge===r&&(this.hoveredEdge=null),this.edgesWithForcedLabels.delete(r)}},{key:"clearNodeIndices",value:function(){this.labelGrid=new RL,this.nodeExtent={x:[0,1],y:[0,1]},this.nodeDataCache={},this.edgeProgramIndex={},this.nodesWithForcedLabels=new Set,this.nodeZExtent=[1/0,-1/0],this.highlightedNodes=new Set}},{key:"clearEdgeIndices",value:function(){this.edgeDataCache={},this.edgeProgramIndex={},this.edgesWithForcedLabels=new Set,this.edgeZExtent=[1/0,-1/0]}},{key:"clearIndices",value:function(){this.clearEdgeIndices(),this.clearNodeIndices()}},{key:"clearNodeState",value:function(){this.displayedNodeLabels=new Set,this.highlightedNodes=new Set,this.hoveredNode=null}},{key:"clearEdgeState",value:function(){this.displayedEdgeLabels=new Set,this.highlightedNodes=new Set,this.hoveredEdge=null}},{key:"clearState",value:function(){this.clearEdgeState(),this.clearNodeState()}},{key:"addNodeToProgram",value:function(r,i,a){var s=this.nodeDataCache[r],u=this.nodePrograms[s.type];if(!u)throw new Error('Sigma: could not find a suitable program for node type "'.concat(s.type,'"!'));u.process(i,a,s),this.nodeProgramIndex[r]=a}},{key:"addEdgeToProgram",value:function(r,i,a){var s=this.edgeDataCache[r],u=this.edgePrograms[s.type];if(!u)throw new Error('Sigma: could not find a suitable program for edge type "'.concat(s.type,'"!'));var c=this.graph.extremities(r),f=this.nodeDataCache[c[0]],h=this.nodeDataCache[c[1]];u.process(i,a,f,h,s),this.edgeProgramIndex[r]=a}},{key:"getRenderParams",value:function(){return{matrix:this.matrix,invMatrix:this.invMatrix,width:this.width,height:this.height,pixelRatio:this.pixelRatio,zoomRatio:this.camera.ratio,cameraAngle:this.camera.angle,sizeRatio:1/this.scaleSize(),correctionRatio:this.correctionRatio,downSizingRatio:this.pickingDownSizingRatio,minEdgeThickness:this.settings.minEdgeThickness,antiAliasingFeather:this.settings.antiAliasingFeather}}},{key:"getStagePadding",value:function(){var r=this.settings,i=r.stagePadding,a=r.autoRescale;return a&&i||0}},{key:"createLayer",value:function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.elements[r])throw new Error('Sigma: a layer named "'.concat(r,'" already exists'));var s=eSe(i,{position:"absolute"},{class:"sigma-".concat(r)});return a.style&&Object.assign(s.style,a.style),this.elements[r]=s,"beforeLayer"in a&&a.beforeLayer?this.elements[a.beforeLayer].before(s):"afterLayer"in a&&a.afterLayer?this.elements[a.afterLayer].after(s):this.container.appendChild(s),s}},{key:"createCanvas",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createLayer(r,"canvas",i)}},{key:"createCanvasContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.createCanvas(r,i),s={preserveDrawingBuffer:!1,antialias:!1};return this.canvasContexts[r]=a.getContext("2d",s),this}},{key:"createWebGLContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(i==null?void 0:i.canvas)||this.createCanvas(r,i);i.hidden&&a.remove();var s=He({preserveDrawingBuffer:!1,antialias:!1},i),u;u=a.getContext("webgl2",s),u||(u=a.getContext("webgl",s)),u||(u=a.getContext("experimental-webgl",s));var c=u;if(this.webGLContexts[r]=c,c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),i.picking){this.pickingLayers.add(r);var f=c.createFramebuffer();if(!f)throw new Error("Sigma: cannot create a new frame buffer for layer ".concat(r));this.frameBuffers[r]=f}return c}},{key:"killLayer",value:function(r){var i=this.elements[r];if(!i)throw new Error("Sigma: cannot kill layer ".concat(r,", which does not exist"));if(this.webGLContexts[r]){var a,s=this.webGLContexts[r];(a=s.getExtension("WEBGL_lose_context"))===null||a===void 0||a.loseContext(),delete this.webGLContexts[r]}else this.canvasContexts[r]&&delete this.canvasContexts[r];return i.remove(),delete this.elements[r],this}},{key:"getCamera",value:function(){return this.camera}},{key:"setCamera",value:function(r){this.unbindCameraHandlers(),this.camera=r,this.bindCameraHandlers()}},{key:"getContainer",value:function(){return this.container}},{key:"getGraph",value:function(){return this.graph}},{key:"setGraph",value:function(r){r!==this.graph&&(this.hoveredNode&&!r.hasNode(this.hoveredNode)&&(this.hoveredNode=null),this.hoveredEdge&&!r.hasEdge(this.hoveredEdge)&&(this.hoveredEdge=null),this.unbindGraphHandlers(),this.checkEdgesEventsFrame!==null&&(cancelAnimationFrame(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=r,this.bindGraphHandlers(),this.refresh())}},{key:"getMouseCaptor",value:function(){return this.mouseCaptor}},{key:"getTouchCaptor",value:function(){return this.touchCaptor}},{key:"getDimensions",value:function(){return{width:this.width,height:this.height}}},{key:"getGraphDimensions",value:function(){var r=this.customBBox||this.nodeExtent;return{width:r.x[1]-r.x[0]||1,height:r.y[1]-r.y[0]||1}}},{key:"getNodeDisplayData",value:function(r){var i=this.nodeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getEdgeDisplayData",value:function(r){var i=this.edgeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getNodeDisplayedLabels",value:function(){return new Set(this.displayedNodeLabels)}},{key:"getEdgeDisplayedLabels",value:function(){return new Set(this.displayedEdgeLabels)}},{key:"getSettings",value:function(){return He({},this.settings)}},{key:"getSetting",value:function(r){return this.settings[r]}},{key:"setSetting",value:function(r,i){var a=He({},this.settings);return this.settings[r]=i,y_(this.settings),this.handleSettingsUpdate(a),this.scheduleRefresh(),this}},{key:"updateSetting",value:function(r,i){return this.setSetting(r,i(this.settings[r])),this}},{key:"setSettings",value:function(r){var i=He({},this.settings);return this.settings=He(He({},this.settings),r),y_(this.settings),this.handleSettingsUpdate(i),this.scheduleRefresh(),this}},{key:"resize",value:function(r){var i=this.width,a=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=kL(),this.width===0)if(this.settings.allowInvalidContainer)this.width=1;else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(this.height===0)if(this.settings.allowInvalidContainer)this.height=1;else throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(!r&&i===this.width&&a===this.height)return this;for(var s in this.elements){var u=this.elements[s];u.style.width=this.width+"px",u.style.height=this.height+"px"}for(var c in this.canvasContexts)this.elements[c].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[c].setAttribute("height",this.height*this.pixelRatio+"px"),this.pixelRatio!==1&&this.canvasContexts[c].scale(this.pixelRatio,this.pixelRatio);for(var f in this.webGLContexts){this.elements[f].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[f].setAttribute("height",this.height*this.pixelRatio+"px");var h=this.webGLContexts[f];if(h.viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio),this.pickingLayers.has(f)){var p=this.textures[f];p&&h.deleteTexture(p)}}return this.emit("resize"),this}},{key:"clear",value:function(){return this.emit("beforeClear"),this.webGLContexts.nodes.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.nodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.edges.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.edges.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this.emit("afterClear"),this}},{key:"refresh",value:function(r){var i=this,a=(r==null?void 0:r.skipIndexation)!==void 0?r==null?void 0:r.skipIndexation:!1,s=(r==null?void 0:r.schedule)!==void 0?r.schedule:!1,u=!r||!r.partialGraph;if(u)this.clearEdgeIndices(),this.clearNodeIndices(),this.graph.forEachNode(function(S){return i.addNode(S)}),this.graph.forEachEdge(function(S){return i.addEdge(S)});else{for(var c,f,h=((c=r.partialGraph)===null||c===void 0?void 0:c.nodes)||[],p=0,g=(h==null?void 0:h.length)||0;p<g;p++){var v=h[p];if(this.updateNode(v),a){var y=this.nodeProgramIndex[v];if(y===void 0)throw new Error('Sigma: node "'.concat(v,`" can't be repaint`));this.addNodeToProgram(v,this.nodeIndices[v],y)}}for(var b=(r==null||(f=r.partialGraph)===null||f===void 0?void 0:f.edges)||[],w=0,_=b.length;w<_;w++){var C=b[w];if(this.updateEdge(C),a){var E=this.edgeProgramIndex[C];if(E===void 0)throw new Error('Sigma: edge "'.concat(C,`" can't be repaint`));this.addEdgeToProgram(C,this.edgeIndices[C],E)}}}return(u||!a)&&(this.needToProcess=!0),s?this.scheduleRender():this.render(),this}},{key:"scheduleRender",value:function(){var r=this;return this.renderFrame||(this.renderFrame=requestAnimationFrame(function(){r.render()})),this}},{key:"scheduleRefresh",value:function(r){return this.refresh(He(He({},r),{},{schedule:!0}))}},{key:"getViewportZoomedState",value:function(r,i){var a=this.camera.getState(),s=a.ratio,u=a.angle,c=a.x,f=a.y,h=this.settings,p=h.minCameraRatio,g=h.maxCameraRatio;typeof g=="number"&&(i=Math.min(i,g)),typeof p=="number"&&(i=Math.max(i,p));var v=i/s,y={x:this.width/2,y:this.height/2},b=this.viewportToFramedGraph(r),w=this.viewportToFramedGraph(y);return{angle:u,x:(b.x-w.x)*(1-v)+c,y:(b.y-w.y)*(1-v)+f,ratio:i}}},{key:"viewRectangle",value:function(){var r=this.viewportToFramedGraph({x:0,y:0}),i=this.viewportToFramedGraph({x:this.width,y:0}),a=this.viewportToFramedGraph({x:0,y:this.height});return{x1:r.x,y1:r.y,x2:i.x,y2:i.y,height:i.y-a.y}}},{key:"framedGraphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!!i.graphDimensions,s=i.matrix?i.matrix:a?Xd(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding()):this.matrix,u=R2(s,r);return{x:(1+u.x)*this.width/2,y:(1-u.y)*this.height/2}}},{key:"viewportToFramedGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!i.graphDimensions,s=i.matrix?i.matrix:a?Xd(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding(),!0):this.invMatrix,u=R2(s,{x:r.x/this.width*2-1,y:1-r.y/this.height*2});return isNaN(u.x)&&(u.x=0),isNaN(u.y)&&(u.y=0),u}},{key:"viewportToGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.normalizationFunction.inverse(this.viewportToFramedGraph(r,i))}},{key:"graphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.framedGraphToViewport(this.normalizationFunction(r),i)}},{key:"getGraphToViewportRatio",value:function(){var r={x:0,y:0},i={x:1,y:1},a=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),s=this.graphToViewport(r),u=this.graphToViewport(i),c=Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2));return c/a}},{key:"getBBox",value:function(){return this.nodeExtent}},{key:"getCustomBBox",value:function(){return this.customBBox}},{key:"setCustomBBox",value:function(r){return this.customBBox=r,this.scheduleRender(),this}},{key:"kill",value:function(){this.emit("kill"),this.removeAllListeners(),this.unbindCameraHandlers(),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.clearIndices(),this.clearState(),this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&(cancelAnimationFrame(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var r=this.container;r.firstChild;)r.removeChild(r.firstChild);for(var i in this.nodePrograms)this.nodePrograms[i].kill();for(var a in this.nodeHoverPrograms)this.nodeHoverPrograms[a].kill();for(var s in this.edgePrograms)this.edgePrograms[s].kill();this.nodePrograms={},this.nodeHoverPrograms={},this.edgePrograms={};for(var u in this.elements)this.killLayer(u);this.canvasContexts={},this.webGLContexts={},this.elements={}}},{key:"scaleSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.camera.ratio;return r/this.settings.zoomToSizeRatioFunction(i)*(this.getSetting("itemSizesReference")==="positions"?i*this.graphToViewportRatio:1)}},{key:"getCanvases",value:function(){var r={};for(var i in this.elements)this.elements[i]instanceof HTMLCanvasElement&&(r[i]=this.elements[i]);return r}}])})(gk),MCe=bSe;function vc(e,t,n){let r=n.initialDeps??[],i,a=!0;function s(){var u,c,f;let h;n.key&&((u=n.debug)!=null&&u.call(n))&&(h=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return i;r=p;let v;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(v=Date.now()),i=t(...p),n.key&&((f=n.debug)!=null&&f.call(n))){const y=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-v)*100)/100,w=b/16,_=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${_(b,5)} /${_(y,5)} ms`,`
|
|
1237
|
+
font-size: .6rem;
|
|
1238
|
+
font-weight: bold;
|
|
1239
|
+
color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return s.updateDeps=u=>{r=u},s}function LL(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const wSe=(e,t)=>Math.abs(e-t)<1.01,xSe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},zL=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},_Se=e=>e,SSe=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},ESe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=s=>{const{width:u,height:c}=s;t({width:Math.round(u),height:Math.round(c)})};if(i(zL(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(s=>{const u=()=>{const c=s[0];if(c!=null&&c.borderBoxSize){const f=c.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(zL(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},jL={passive:!0},$L=typeof window>"u"?!0:"onscrollend"in window,ASe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&$L?()=>{}:xSe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:g}=e.options;i=p?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(i,h)},u=s(!0),c=s(!1);n.addEventListener("scroll",u,jL);const f=e.options.useScrollendEvent&&$L;return f&&n.addEventListener("scrollend",c,jL),()=>{n.removeEventListener("scroll",u),f&&n.removeEventListener("scrollend",c)}},kSe=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},CSe=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const s=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class OSe{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const s=()=>{const u=a.target,c=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u);return}this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(u,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_Se,rangeExtractor:SSe,onChange:()=>{},measureElement:kSe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=vc(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let s=r-1;s>=0;s--){const u=n[s];if(i.has(u.lane))continue;const c=a.get(u.lane);if(c==null||u.end>c.end?a.set(u.lane,u):u.end<c.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurementOptions=vc(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,i,a,s,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:s,lanes:u}),{key:!1}),this.getMeasurements=vc(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:s,lanes:u},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,f),p=new Array(u).fill(void 0);for(let g=0;g<f;g++){const v=h[g];v&&(p[v.lane]=g)}for(let g=f;g<n;g++){const v=a(g),y=this.laneAssignments.get(g);let b,w;if(y!==void 0&&this.options.lanes>1){b=y;const S=p[b],T=S!==void 0?h[S]:void 0;w=T?T.end+this.options.gap:r+i}else{const S=this.options.lanes===1?h[g-1]:this.getFurthestMeasurement(h,g);w=S?S.end+this.options.gap:r+i,b=S?S.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,b)}const _=c.get(v),C=typeof _=="number"?_:this.options.estimateSize(g),E=w+C;h[g]={index:g,start:w,size:C,end:E,key:v,lane:b},p[b]=g}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=vc(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?TSe({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=vc(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-a),u=Math.min(this.options.count-1,i+a);return n>=s&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,u)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),i=this.options.getItemKey(r),a=this.elementsCache.get(i);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i;const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,u=r-s;u!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.getVirtualItems=vc(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,s=n.length;a<s;a++){const u=n[a],c=r[u];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return LL(r[NU(0,r.length-1,i=>LL(r[i]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,i=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=n>=s+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(r==="auto")if(s.end>=a+i-this.options.scrollPaddingEnd)r="end";else if(s.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,s.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{const a=this.getOffsetForAlignment(n,r),s=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[s,u]=a,c=this.now();this.scrollState={index:n,align:u,behavior:i,startedAt:c,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=r.length-1;for(;s>=0&&a.some(u=>u===null);){const u=r[s];a[u.lane]===null&&(a[u.lane]=u.end),s--}i=Math.max(...a.filter(u=>u!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=r?r[0]:this.scrollState.lastTargetOffset,a=1,s=i!==this.scrollState.lastTargetOffset;if(!s&&wSe(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=i,this.scrollState.behavior="auto",this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const NU=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function TSe({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:i};let s=NU(0,i,a,n),u=s;if(r===1)for(;u<i&&e[u].end<n+t;)u++;else if(r>1){const c=Array(r).fill(0);for(;u<i&&c.some(h=>h<n+t);){const h=e[u];c[h.lane]=h.end,u++}const f=Array(r).fill(n+t);for(;s>=0&&f.some(h=>h>=n);){const h=e[s];f[h.lane]=h.start,s--}s=Math.max(0,s-s%r),u=Math.min(i,u+(r-1-u%r))}return{startIndex:s,endIndex:u}}const BL=typeof document<"u"?k.useLayoutEffect:k.useEffect;function MSe({useFlushSync:e=!0,...t}){const n=k.useReducer(()=>({}),{})[1],r={...t,onChange:(a,s)=>{var u;e&&s?Uy.flushSync(n):n(),(u=t.onChange)==null||u.call(t,a,s)}},[i]=k.useState(()=>new OSe(r));return i.setOptions(r),BL(()=>i._didMount(),[]),BL(()=>i._willUpdate()),i}function PCe(e){return MSe({observeElementRect:ESe,observeElementOffset:ASe,scrollToFn:CSe,...e})}var Fp=e=>e.type==="checkbox",Il=e=>e instanceof Date,Rr=e=>e==null;const RU=e=>typeof e=="object";var dn=e=>!Rr(e)&&!Array.isArray(e)&&RU(e)&&!Il(e),PSe=e=>dn(e)&&e.target?Fp(e.target)?e.target.checked:e.target.value:e,DU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,NSe=(e,t)=>e.has(DU(t)),RSe=e=>{const t=e.constructor&&e.constructor.prototype;return dn(t)&&t.hasOwnProperty("isPrototypeOf")},yk=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Cn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(yk&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(dn(e)&&RSe(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Cn(e[i]));return r}var V0=e=>/^\w*$/.test(e),Qt=e=>e===void 0,bk=e=>Array.isArray(e)?e.filter(Boolean):[],wk=e=>bk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$e=(e,t,n)=>{if(!t||!dn(e))return n;const r=(V0(t)?[t]:wk(t)).reduce((i,a)=>Rr(i)?i:i[a],e);return Qt(r)||r===e?Qt(e[t])?n:e[t]:r},oa=e=>typeof e=="boolean",Fi=e=>typeof e=="function",Ut=(e,t,n)=>{let r=-1;const i=V0(t)?[t]:wk(t),a=i.length,s=a-1;for(;++r<a;){const u=i[r];let c=n;if(r!==s){const f=e[u];c=dn(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}};const yc={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Hi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Di={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},w_="form",IU="root",DSe=cn.createContext(null);DSe.displayName="HookFormControlContext";var ISe=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Hi.all&&(t._proxyFormState[s]=!r||Hi.all),e[s]}});return i};const LSe=typeof window<"u"?cn.useLayoutEffect:cn.useEffect;var yr=e=>typeof e=="string",zSe=(e,t,n,r,i)=>yr(e)?(r&&t.watch.add(e),$e(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),$e(n,a))):(r&&(t.watchAll=!0),n),I2=e=>Rr(e)||!RU(e);function Es(e,t,n=new WeakSet){if(I2(e)||I2(t))return Object.is(e,t);if(Il(e)&&Il(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const u=t[a];if(Il(s)&&Il(u)||dn(s)&&dn(u)||Array.isArray(s)&&Array.isArray(u)?!Es(s,u,n):!Object.is(s,u))return!1}}return!0}const jSe=cn.createContext(null);jSe.displayName="HookFormContext";var $Se=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},bh=e=>Array.isArray(e)?e:[e],UL=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function LU(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&dn(i)&&a){const s=LU(i,a);dn(s)&&(n[r]=s)}else e[r]&&(n[r]=a)}return n}var mr=e=>dn(e)&&!Object.keys(e).length,xk=e=>e.type==="file",Ly=e=>{if(!yk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},zU=e=>e.type==="select-multiple",_k=e=>e.type==="radio",BSe=e=>_k(e)||Fp(e),x_=e=>Ly(e)&&e.isConnected;function USe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Qt(e)?r++:e[t[r++]];return e}function FSe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Qt(e[t]))return!1;return!0}function yn(e,t){const n=Array.isArray(t)?t:V0(t)?[t]:wk(t),r=n.length===1?e:USe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(dn(r)&&mr(r)||Array.isArray(r)&&FSe(r))&&yn(e,n.slice(0,-1)),e}var HSe=e=>{for(const t in e)if(Fi(e[t]))return!0;return!1};function jU(e){return Array.isArray(e)||dn(e)&&!HSe(e)}function L2(e,t={}){for(const n in e){const r=e[n];jU(r)?(t[n]=Array.isArray(r)?[]:{},L2(r,t[n])):Qt(r)||(t[n]=!0)}return t}function _c(e,t,n){n||(n=L2(t));for(const r in e){const i=e[r];if(jU(i))Qt(t)||I2(n[r])?n[r]=L2(i,Array.isArray(i)?[]:{}):_c(i,Rr(t)?{}:t[r],n[r]);else{const a=t[r];n[r]=!Es(i,a)}}return n}const FL={value:!1,isValid:!1},HL={value:!0,isValid:!0};var $U=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Qt(e[0].attributes.value)?Qt(e[0].value)||e[0].value===""?HL:{value:e[0].value,isValid:!0}:HL:FL}return FL},BU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Qt(e)?e:t?e===""?NaN:e&&+e:n&&yr(e)?new Date(e):r?r(e):e;const GL={isValid:!1,value:null};var UU=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,GL):GL;function qL(e){const t=e.ref;return xk(t)?t.files:_k(t)?UU(e.refs).value:zU(t)?[...t.selectedOptions].map(({value:n})=>n):Fp(t)?$U(e.refs).value:BU(Qt(t.value)?e.ref.value:t.value,e)}var GSe=(e,t,n,r)=>{const i={};for(const a of e){const s=$e(t,a);s&&Ut(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},zy=e=>e instanceof RegExp,th=e=>Qt(e)?e:zy(e)?e.source:dn(e)?zy(e.value)?e.value.source:e.value:e,VL=e=>({isOnSubmit:!e||e===Hi.onSubmit,isOnBlur:e===Hi.onBlur,isOnChange:e===Hi.onChange,isOnAll:e===Hi.all,isOnTouch:e===Hi.onTouched});const KL="AsyncFunction";var qSe=e=>!!e&&!!e.validate&&!!(Fi(e.validate)&&e.validate.constructor.name===KL||dn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===KL)),VSe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),YL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wh=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=$e(e,i);if(a){const{_f:s,...u}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(wh(u,t))break}else if(dn(u)&&wh(u,t))break}}};function WL(e,t,n){const r=$e(e,n);if(r||V0(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=$e(t,a),u=$e(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};i.pop()}return{name:n}}var KSe=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return mr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Hi.all))},YSe=(e,t,n)=>!e||!t||e===t||bh(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),WSe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,QSe=(e,t)=>!bk($e(e,t)).length&&yn(e,t),ZSe=(e,t,n)=>{const r=bh($e(e,n));return Ut(r,IU,t[n]),Ut(e,n,r),e};function QL(e,t,n="validate"){if(yr(e)||Array.isArray(e)&&e.every(yr)||oa(e)&&!e)return{type:n,message:yr(e)?e:"",ref:t}}var bc=e=>dn(e)&&!zy(e)?e:{value:e,message:""},ZL=async(e,t,n,r,i,a)=>{const{ref:s,refs:u,required:c,maxLength:f,minLength:h,min:p,max:g,pattern:v,validate:y,name:b,valueAsNumber:w,mount:_}=e._f,C=$e(n,b);if(!_||t.has(b))return{};const E=u?u[0]:s,S=N=>{i&&E.reportValidity&&(E.setCustomValidity(oa(N)?"":N||""),E.reportValidity())},T={},O=_k(s),M=Fp(s),P=O||M,R=(w||xk(s))&&Qt(s.value)&&Qt(C)||Ly(s)&&s.value===""||C===""||Array.isArray(C)&&!C.length,z=$Se.bind(null,b,r,T),D=(N,$,I,U=Di.maxLength,j=Di.minLength)=>{const G=N?$:I;T[b]={type:N?U:j,message:G,ref:s,...z(N?U:j,G)}};if(a?!Array.isArray(C)||!C.length:c&&(!P&&(R||Rr(C))||oa(C)&&!C||M&&!$U(u).isValid||O&&!UU(u).isValid)){const{value:N,message:$}=yr(c)?{value:!!c,message:c}:bc(c);if(N&&(T[b]={type:Di.required,message:$,ref:E,...z(Di.required,$)},!r))return S($),T}if(!R&&(!Rr(p)||!Rr(g))){let N,$;const I=bc(g),U=bc(p);if(!Rr(C)&&!isNaN(C)){const j=s.valueAsNumber||C&&+C;Rr(I.value)||(N=j>I.value),Rr(U.value)||($=j<U.value)}else{const j=s.valueAsDate||new Date(C),G=V=>new Date(new Date().toDateString()+" "+V),q=s.type=="time",H=s.type=="week";yr(I.value)&&C&&(N=q?G(C)>G(I.value):H?C>I.value:j>new Date(I.value)),yr(U.value)&&C&&($=q?G(C)<G(U.value):H?C<U.value:j<new Date(U.value))}if((N||$)&&(D(!!N,I.message,U.message,Di.max,Di.min),!r))return S(T[b].message),T}if((f||h)&&!R&&(yr(C)||a&&Array.isArray(C))){const N=bc(f),$=bc(h),I=!Rr(N.value)&&C.length>+N.value,U=!Rr($.value)&&C.length<+$.value;if((I||U)&&(D(I,N.message,$.message),!r))return S(T[b].message),T}if(v&&!R&&yr(C)){const{value:N,message:$}=bc(v);if(zy(N)&&!C.match(N)&&(T[b]={type:Di.pattern,message:$,ref:s,...z(Di.pattern,$)},!r))return S($),T}if(y){if(Fi(y)){const N=await y(C,n),$=QL(N,E);if($&&(T[b]={...$,...z(Di.validate,$.message)},!r))return S($.message),T}else if(dn(y)){let N={};for(const $ in y){if(!mr(N)&&!r)break;const I=QL(await y[$](C,n),E,$);I&&(N={...I,...z($,I.message)},S(I.message),r&&(T[b]=N))}if(!mr(N)&&(T[b]={ref:E,...N},!r))return T}}return S(!0),T};const XSe={mode:Hi.onSubmit,reValidateMode:Hi.onChange,shouldFocusError:!0};function JSe(e={}){let t={...XSe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Fi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=dn(t.defaultValues)||dn(t.values)?Cn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Cn(i),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...h};let g={...p};const v={array:UL(),state:UL()},y=t.criteriaMode===Hi.all,b=W=>re=>{clearTimeout(f),f=setTimeout(W,re)},w=async W=>{if(!s.keepIsValid&&!t.disabled&&(p.isValid||g.isValid||W)){let re;t.resolver?(re=mr((await P()).errors),_()):re=await D({fields:r,onlyCheckValid:!0,eventType:yc.VALID}),re!==n.isValid&&v.state.next({isValid:re})}},_=(W,re)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((W||Array.from(u.mount)).forEach(ae=>{ae&&(re?Ut(n.validatingFields,ae,re):yn(n.validatingFields,ae))}),v.state.next({validatingFields:n.validatingFields,isValidating:!mr(n.validatingFields)}))},C=(W,re=[],ae,Oe,_e=!0,Ee=!0)=>{if(Oe&&ae&&!t.disabled){if(s.action=!0,Ee&&Array.isArray($e(r,W))){const Re=ae($e(r,W),Oe.argA,Oe.argB);_e&&Ut(r,W,Re)}if(Ee&&Array.isArray($e(n.errors,W))){const Re=ae($e(n.errors,W),Oe.argA,Oe.argB);_e&&Ut(n.errors,W,Re),QSe(n.errors,W)}if((p.touchedFields||g.touchedFields)&&Ee&&Array.isArray($e(n.touchedFields,W))){const Re=ae($e(n.touchedFields,W),Oe.argA,Oe.argB);_e&&Ut(n.touchedFields,W,Re)}if(p.dirtyFields||g.dirtyFields){const Re=_c(i,a),Ze=DU(W);Ut(n.dirtyFields,Ze,$e(Re,Ze))}v.state.next({name:W,isDirty:$(W,re),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ut(a,W,re)},E=(W,re)=>{Ut(n.errors,W,re),v.state.next({errors:n.errors})},S=W=>{n.errors=W,v.state.next({errors:n.errors,isValid:!1})},T=(W,re,ae,Oe)=>{const _e=$e(r,W);if(_e){const Ee=$e(a,W,Qt(ae)?$e(i,W):ae);Qt(Ee)||Oe&&Oe.defaultChecked||re?Ut(a,W,re?Ee:qL(_e._f)):j(W,Ee),s.mount&&!s.action&&w()}},O=(W,re,ae,Oe,_e)=>{let Ee=!1,Re=!1;const Ze={name:W};if(!t.disabled){if(!ae||Oe){(p.isDirty||g.isDirty)&&(Re=n.isDirty,n.isDirty=Ze.isDirty=$(),Ee=Re!==Ze.isDirty);const ct=Es($e(i,W),re);Re=!!$e(n.dirtyFields,W),ct?yn(n.dirtyFields,W):Ut(n.dirtyFields,W,!0),Ze.dirtyFields=n.dirtyFields,Ee=Ee||(p.dirtyFields||g.dirtyFields)&&Re!==!ct}if(ae){const ct=$e(n.touchedFields,W);ct||(Ut(n.touchedFields,W,ae),Ze.touchedFields=n.touchedFields,Ee=Ee||(p.touchedFields||g.touchedFields)&&ct!==ae)}Ee&&_e&&v.state.next(Ze)}return Ee?Ze:{}},M=(W,re,ae,Oe)=>{const _e=$e(n.errors,W),Ee=(p.isValid||g.isValid)&&oa(re)&&n.isValid!==re;if(t.delayError&&ae?(c=b(()=>E(W,ae)),c(t.delayError)):(clearTimeout(f),c=null,ae?Ut(n.errors,W,ae):yn(n.errors,W)),(ae?!Es(_e,ae):_e)||!mr(Oe)||Ee){const Re={...Oe,...Ee&&oa(re)?{isValid:re}:{},errors:n.errors,name:W};n={...n,...Re},v.state.next(Re)}},P=async W=>(_(W,!0),await t.resolver(a,t.context,GSe(W||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),R=async W=>{const{errors:re}=await P(W);if(_(W),W)for(const ae of W){const Oe=$e(re,ae);Oe?Ut(n.errors,ae,Oe):yn(n.errors,ae)}else n.errors=re;return re},z=async({name:W,eventType:re})=>{if(e.validate){const ae=await e.validate({formValues:a,formState:n,name:W,eventType:re});if(dn(ae))for(const Oe in ae)ae[Oe]&&ce(`${w_}.${Oe}`,{message:yr(ae.message)?ae.message:"",type:Di.validate});else yr(ae)||!ae?ce(w_,{message:ae||"",type:Di.validate}):ee(w_);return ae}return!0},D=async({fields:W,onlyCheckValid:re,name:ae,eventType:Oe,context:_e={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(_e.runRootValidation=!0,!await z({name:ae,eventType:Oe})&&(_e.valid=!1,re)))return _e.valid;for(const Ee in W){const Re=W[Ee];if(Re){const{_f:Ze,...ct}=Re;if(Ze){const Gn=u.array.has(Ze.name),xr=Re._f&&qSe(Re._f);xr&&p.validatingFields&&_([Ze.name],!0);const Xt=await ZL(Re,u.disabled,a,y,t.shouldUseNativeValidation&&!re,Gn);if(xr&&p.validatingFields&&_([Ze.name]),Xt[Ze.name]&&(_e.valid=!1,re)||(!re&&($e(Xt,Ze.name)?Gn?ZSe(n.errors,Xt,Ze.name):Ut(n.errors,Ze.name,Xt[Ze.name]):yn(n.errors,Ze.name)),e.shouldUseNativeValidation&&Xt[Ze.name]))break}!mr(ct)&&await D({context:_e,onlyCheckValid:re,fields:ct,name:Ee,eventType:Oe})}}return _e.valid},N=()=>{for(const W of u.unMount){const re=$e(r,W);re&&(re._f.refs?re._f.refs.every(ae=>!x_(ae)):!x_(re._f.ref))&&J(W)}u.unMount=new Set},$=(W,re)=>!t.disabled&&(W&&re&&Ut(a,W,re),!Es(K(),i)),I=(W,re,ae)=>zSe(W,u,{...s.mount?a:Qt(re)?i:yr(W)?{[W]:re}:re},ae,re),U=W=>bk($e(s.mount?a:i,W,t.shouldUnregister?$e(i,W,[]):[])),j=(W,re,ae={})=>{const Oe=$e(r,W);let _e=re;if(Oe){const Ee=Oe._f;Ee&&(!Ee.disabled&&Ut(a,W,BU(re,Ee)),_e=Ly(Ee.ref)&&Rr(re)?"":re,zU(Ee.ref)?[...Ee.ref.options].forEach(Re=>Re.selected=_e.includes(Re.value)):Ee.refs?Fp(Ee.ref)?Ee.refs.forEach(Re=>{(!Re.defaultChecked||!Re.disabled)&&(Array.isArray(_e)?Re.checked=!!_e.find(Ze=>Ze===Re.value):Re.checked=_e===Re.value||!!_e)}):Ee.refs.forEach(Re=>Re.checked=Re.value===_e):xk(Ee.ref)?Ee.ref.value="":(Ee.ref.value=_e,Ee.ref.type||v.state.next({name:W,values:Cn(a)})))}(ae.shouldDirty||ae.shouldTouch)&&O(W,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&B(W)},G=(W,re,ae)=>{for(const Oe in re){if(!re.hasOwnProperty(Oe))return;const _e=re[Oe],Ee=W+"."+Oe,Re=$e(r,Ee);(u.array.has(W)||dn(_e)||Re&&!Re._f)&&!Il(_e)?G(Ee,_e,ae):j(Ee,_e,ae)}},q=(W,re,ae={})=>{const Oe=$e(r,W),_e=u.array.has(W),Ee=Cn(re);Ut(a,W,Ee),_e?(v.array.next({name:W,values:Cn(a)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ae.shouldDirty&&v.state.next({name:W,dirtyFields:_c(i,a),isDirty:$(W,Ee)})):Oe&&!Oe._f&&!Rr(Ee)?G(W,Ee,ae):j(W,Ee,ae),YL(W,u)?v.state.next({...n,name:W,values:Cn(a)}):v.state.next({name:s.mount?W:void 0,values:Cn(a)})},H=async W=>{s.mount=!0;const re=W.target;let ae=re.name,Oe=!0;const _e=$e(r,ae),Ee=ct=>{Oe=Number.isNaN(ct)||Il(ct)&&isNaN(ct.getTime())||Es(ct,$e(a,ae,ct))},Re=VL(t.mode),Ze=VL(t.reValidateMode);if(_e){let ct,Gn;const xr=re.type?qL(_e._f):PSe(W),Xt=W.type===yc.BLUR||W.type===yc.FOCUS_OUT,qn=!VSe(_e._f)&&!e.validate&&!t.resolver&&!$e(n.errors,ae)&&!_e._f.deps||WSe(Xt,$e(n.touchedFields,ae),n.isSubmitted,Ze,Re),_r=YL(ae,u,Xt);Ut(a,ae,xr),Xt?(!re||!re.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(W),c&&c(0)):_e._f.onChange&&_e._f.onChange(W);const Sn=O(ae,xr,Xt),If=!mr(Sn)||_r;if(!Xt&&v.state.next({name:ae,type:W.type,values:Cn(a)}),qn)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Xt&&w():Xt||w()),If&&v.state.next({name:ae,..._r?{}:Sn});if(!t.resolver&&e.validate&&await z({name:ae,eventType:W.type}),!Xt&&_r&&v.state.next({...n}),t.resolver){const{errors:bu}=await P([ae]);if(_([ae]),Ee(xr),Oe){const Lf=WL(n.errors,r,ae),Oa=WL(bu,r,Lf.name||ae);ct=Oa.error,ae=Oa.name,Gn=mr(bu)}}else _([ae],!0),ct=(await ZL(_e,u.disabled,a,y,t.shouldUseNativeValidation))[ae],_([ae]),Ee(xr),Oe&&(ct?Gn=!1:(p.isValid||g.isValid)&&(Gn=await D({fields:r,onlyCheckValid:!0,name:ae,eventType:W.type})));Oe&&(_e._f.deps&&(!Array.isArray(_e._f.deps)||_e._f.deps.length>0)&&B(_e._f.deps),M(ae,Gn,ct,Sn))}},V=(W,re)=>{if($e(n.errors,re)&&W.focus)return W.focus(),1},B=async(W,re={})=>{let ae,Oe;const _e=bh(W);if(t.resolver){const Ee=await R(Qt(W)?W:_e);ae=mr(Ee),Oe=W?!_e.some(Re=>$e(Ee,Re)):ae}else W?(Oe=(await Promise.all(_e.map(async Ee=>{const Re=$e(r,Ee);return await D({fields:Re&&Re._f?{[Ee]:Re}:Re,eventType:yc.TRIGGER})}))).every(Boolean),!(!Oe&&!n.isValid)&&w()):Oe=ae=await D({fields:r,name:W,eventType:yc.TRIGGER});return v.state.next({...!yr(W)||(p.isValid||g.isValid)&&ae!==n.isValid?{}:{name:W},...t.resolver||!W?{isValid:ae}:{},errors:n.errors}),re.shouldFocus&&!Oe&&wh(r,V,W?_e:u.mount),Oe},K=(W,re)=>{let ae={...s.mount?a:i};return re&&(ae=LU(re.dirtyFields?n.dirtyFields:n.touchedFields,ae)),Qt(W)?ae:yr(W)?$e(ae,W):W.map(Oe=>$e(ae,Oe))},X=(W,re)=>({invalid:!!$e((re||n).errors,W),isDirty:!!$e((re||n).dirtyFields,W),error:$e((re||n).errors,W),isValidating:!!$e(n.validatingFields,W),isTouched:!!$e((re||n).touchedFields,W)}),ee=W=>{const re=W?bh(W):void 0;re==null||re.forEach(ae=>yn(n.errors,ae)),re?re.forEach(ae=>{v.state.next({name:ae,errors:n.errors})}):v.state.next({errors:{}})},ce=(W,re,ae)=>{const Oe=($e(r,W,{_f:{}})._f||{}).ref,_e=$e(n.errors,W)||{},{ref:Ee,message:Re,type:Ze,...ct}=_e;Ut(n.errors,W,{...ct,...re,ref:Oe}),v.state.next({name:W,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Oe&&Oe.focus&&Oe.focus()},he=(W,re)=>Fi(W)?v.state.subscribe({next:ae=>"values"in ae&&W(I(void 0,re),ae)}):I(W,re,!0),de=W=>v.state.subscribe({next:re=>{YSe(W.name,re.name,W.exact)&&KSe(re,W.formState||p,Zt,W.reRenderRoot)&&W.callback({values:{...a},...n,...re,defaultValues:i})}}).unsubscribe,ie=W=>(s.mount=!0,g={...g,...W.formState},de({...W,formState:{...h,...W.formState}})),J=(W,re={})=>{for(const ae of W?bh(W):u.mount)u.mount.delete(ae),u.array.delete(ae),re.keepValue||(yn(r,ae),yn(a,ae)),!re.keepError&&yn(n.errors,ae),!re.keepDirty&&yn(n.dirtyFields,ae),!re.keepTouched&&yn(n.touchedFields,ae),!re.keepIsValidating&&yn(n.validatingFields,ae),!t.shouldUnregister&&!re.keepDefaultValue&&yn(i,ae);v.state.next({values:Cn(a)}),v.state.next({...n,...re.keepDirty?{isDirty:$()}:{}}),!re.keepIsValid&&w()},pe=({disabled:W,name:re})=>{if(oa(W)&&s.mount||W||u.disabled.has(re)){const _e=u.disabled.has(re)!==!!W;W?u.disabled.add(re):u.disabled.delete(re),_e&&s.mount&&!s.action&&w()}},ye=(W,re={})=>{let ae=$e(r,W);const Oe=oa(re.disabled)||oa(t.disabled);return Ut(r,W,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:W}},name:W,mount:!0,...re}}),u.mount.add(W),ae?pe({disabled:oa(re.disabled)?re.disabled:t.disabled,name:W}):T(W,!0,re.value),{...Oe?{disabled:re.disabled||t.disabled}:{},...t.progressive?{required:!!re.required,min:th(re.min),max:th(re.max),minLength:th(re.minLength),maxLength:th(re.maxLength),pattern:th(re.pattern)}:{},name:W,onChange:H,onBlur:H,ref:_e=>{if(_e){ye(W,re),ae=$e(r,W);const Ee=Qt(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Re=BSe(Ee),Ze=ae._f.refs||[];if(Re?Ze.find(ct=>ct===Ee):Ee===ae._f.ref)return;Ut(r,W,{_f:{...ae._f,...Re?{refs:[...Ze.filter(x_),Ee,...Array.isArray($e(i,W))?[{}]:[]],ref:{type:Ee.type,name:W}}:{ref:Ee}}}),T(W,!1,void 0,Ee)}else ae=$e(r,W,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||re.shouldUnregister)&&!(NSe(u.array,W)&&s.action)&&u.unMount.add(W)}}},te=()=>t.shouldFocusError&&wh(r,V,u.mount),Ce=W=>{oa(W)&&(v.state.next({disabled:W}),wh(r,(re,ae)=>{const Oe=$e(r,ae);Oe&&(re.disabled=Oe._f.disabled||W,Array.isArray(Oe._f.refs)&&Oe._f.refs.forEach(_e=>{_e.disabled=Oe._f.disabled||W}))},0,!1))},Se=(W,re)=>async ae=>{let Oe;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let _e=Cn(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:Ee,values:Re}=await P();_(),n.errors=Ee,_e=Cn(Re)}else await D({fields:r,eventType:yc.SUBMIT});if(u.disabled.size)for(const Ee of u.disabled)yn(_e,Ee);if(yn(n.errors,IU),mr(n.errors)){v.state.next({errors:{}});try{await W(_e,ae)}catch(Ee){Oe=Ee}}else re&&await re({...n.errors},ae),te(),setTimeout(te);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:mr(n.errors)&&!Oe,submitCount:n.submitCount+1,errors:n.errors}),Oe)throw Oe},Ye=(W,re={})=>{$e(r,W)&&(Qt(re.defaultValue)?q(W,Cn($e(i,W))):(q(W,re.defaultValue),Ut(i,W,Cn(re.defaultValue))),re.keepTouched||yn(n.touchedFields,W),re.keepDirty||(yn(n.dirtyFields,W),n.isDirty=re.defaultValue?$(W,Cn($e(i,W))):$()),re.keepError||(yn(n.errors,W),p.isValid&&w()),v.state.next({...n}))},Ie=(W,re={})=>{const ae=W?Cn(W):i,Oe=Cn(ae),_e=mr(W),Ee=_e?i:Oe;if(re.keepDefaultValues||(i=ae),!re.keepValues){if(re.keepDirtyValues){const Re=new Set([...u.mount,...Object.keys(_c(i,a))]);for(const Ze of Array.from(Re)){const ct=$e(n.dirtyFields,Ze),Gn=$e(a,Ze),xr=$e(Ee,Ze);ct&&!Qt(Gn)?Ut(Ee,Ze,Gn):!ct&&!Qt(xr)&&q(Ze,xr)}}else{if(yk&&Qt(W))for(const Re of u.mount){const Ze=$e(r,Re);if(Ze&&Ze._f){const ct=Array.isArray(Ze._f.refs)?Ze._f.refs[0]:Ze._f.ref;if(Ly(ct)){const Gn=ct.closest("form");if(Gn){Gn.reset();break}}}}if(re.keepFieldsRef)for(const Re of u.mount)q(Re,$e(Ee,Re));else r={}}a=t.shouldUnregister?re.keepDefaultValues?Cn(i):{}:Cn(Ee),v.array.next({values:{...Ee}}),v.state.next({values:{...Ee}})}u={mount:re.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!re.keepIsValid||!!re.keepDirtyValues||!t.shouldUnregister&&!mr(Ee),s.watch=!!t.shouldUnregister,s.keepIsValid=!!re.keepIsValid,s.action=!1,re.keepErrors||(n.errors={}),v.state.next({submitCount:re.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:re.keepDirty?n.isDirty:!!(re.keepDefaultValues&&!Es(W,i)),isSubmitted:re.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:re.keepDirtyValues?re.keepDefaultValues&&a?_c(i,a):n.dirtyFields:re.keepDefaultValues&&W?_c(i,W):re.keepDirty?n.dirtyFields:{},touchedFields:re.keepTouched?n.touchedFields:{},errors:re.keepErrors?n.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ut=(W,re)=>Ie(Fi(W)?W(a):W,{...t.resetOptions,...re}),jt=(W,re={})=>{const ae=$e(r,W),Oe=ae&&ae._f;if(Oe){const _e=Oe.refs?Oe.refs[0]:Oe.ref;_e.focus&&setTimeout(()=>{_e.focus(),re.shouldSelect&&Fi(_e.select)&&_e.select()})}},Zt=W=>{n={...n,...W}},ar={control:{register:ye,unregister:J,getFieldState:X,handleSubmit:Se,setError:ce,_subscribe:de,_runSchema:P,_updateIsValidating:_,_focusError:te,_getWatch:I,_getDirty:$,_setValid:w,_setFieldArray:C,_setDisabledField:pe,_setErrors:S,_getFieldArray:U,_reset:Ie,_resetDefaultValues:()=>Fi(t.defaultValues)&&t.defaultValues().then(W=>{ut(W,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:N,_disableForm:Ce,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(W){s=W},get _defaultValues(){return i},get _names(){return u},set _names(W){u=W},get _formState(){return n},get _options(){return t},set _options(W){t={...t,...W}}},subscribe:ie,trigger:B,register:ye,handleSubmit:Se,watch:he,setValue:q,getValues:K,reset:ut,resetField:Ye,clearErrors:ee,unregister:J,setError:ce,setFocus:jt,getFieldState:X};return{...ar,formControl:ar}}function NCe(e={}){const t=cn.useRef(void 0),n=cn.useRef(void 0),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:Fi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Fi(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Fi(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...u}=JSe(e);t.current={...u,formState:r}}const a=t.current.control;return a._options=e,LSe(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),a._formState.isReady=!0,s},[a]),cn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),cn.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),cn.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),cn.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),cn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),cn.useEffect(()=>{var s;e.values&&!Es(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((s=a._options.resetOptions)===null||s===void 0)&&s.keepIsValid||a._setValid(),n.current=e.values,i(u=>({...u}))):a._resetDefaultValues()},[a,e.values]),cn.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=cn.useMemo(()=>ISe(r,a),[a,r]),t.current}var wc={},__,XL;function e2e(){return XL||(XL=1,__=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),__}var S_={},vs={},JL;function vu(){if(JL)return vs;JL=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return vs.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},vs.getSymbolTotalCodewords=function(r){return t[r]},vs.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},vs.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},vs.isKanjiModeEnabled=function(){return typeof e<"u"},vs.toSJIS=function(r){return e(r)},vs}var E_={},e4;function Sk(){return e4||(e4=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(E_)),E_}var A_,t4;function t2e(){if(t4)return A_;t4=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},A_=e,A_}var k_,n4;function n2e(){if(n4)return k_;n4=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,i){const a=t*this.size+n;this.data[a]=r,i&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},k_=e,k_}var C_={},r4;function r2e(){return r4||(r4=1,(function(e){const t=vu().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let c=1;c<i-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),s=a.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||i.push([a[u],a[c]]);return i}})(C_)),C_}var O_={},i4;function i2e(){if(i4)return O_;i4=1;const e=vu().getSymbolSize,t=7;return O_.getPositions=function(r){const i=e(r);return[[0,0],[i-t,0],[0,i-t]]},O_}var T_={},a4;function a2e(){return a4||(a4=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,u=0,c=0,f=null,h=null;for(let p=0;p<a;p++){u=c=0,f=h=null;for(let g=0;g<a;g++){let v=i.get(p,g);v===f?u++:(u>=5&&(s+=t.N1+(u-5)),f=v,u=1),v=i.get(g,p),v===h?c++:(c>=5&&(s+=t.N1+(c-5)),h=v,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let u=0;u<a-1;u++)for(let c=0;c<a-1;c++){const f=i.get(u,c)+i.get(u,c+1)+i.get(u+1,c)+i.get(u+1,c+1);(f===4||f===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,u=0,c=0;for(let f=0;f<a;f++){u=c=0;for(let h=0;h<a;h++)u=u<<1&2047|i.get(f,h),h>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|i.get(h,f),h>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const s=a.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)a.isReserved(c,u)||a.xor(c,u,n(i,c,u))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let f=0;f<s;f++){a(f),e.applyMask(f,i);const h=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(f,i),h<c&&(c=h,u=f)}return u}})(T_)),T_}var Jg={},o4;function FU(){if(o4)return Jg;o4=1;const e=Sk(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Jg.getBlocksCount=function(i,a){switch(a){case e.L:return t[(i-1)*4+0];case e.M:return t[(i-1)*4+1];case e.Q:return t[(i-1)*4+2];case e.H:return t[(i-1)*4+3];default:return}},Jg.getTotalCodewordsCount=function(i,a){switch(a){case e.L:return n[(i-1)*4+0];case e.M:return n[(i-1)*4+1];case e.Q:return n[(i-1)*4+2];case e.H:return n[(i-1)*4+3];default:return}},Jg}var M_={},nh={},s4;function o2e(){if(s4)return nh;s4=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)e[i]=r,t[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)e[i]=e[i-255]})(),nh.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},nh.exp=function(r){return e[r]},nh.mul=function(r,i){return r===0||i===0?0:e[t[r]+t[i]]},nh}var l4;function s2e(){return l4||(l4=1,(function(e){const t=o2e();e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<i.length;u++)a[s+u]^=t.mul(r[s],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(M_)),M_}var P_,u4;function l2e(){if(u4)return P_;u4=1;const e=s2e();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const a=e.mod(i,this.genPoly),s=this.degree-a.length;if(s>0){const u=new Uint8Array(this.degree);return u.set(a,s),u}return a},P_=t,P_}var N_={},R_={},D_={},c4;function HU(){return c4||(c4=1,D_.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),D_}var aa={},f4;function GU(){if(f4)return aa;f4=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
1240
|
+
]))+`;aa.KANJI=new RegExp(n,"g"),aa.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),aa.BYTE=new RegExp(r,"g"),aa.NUMERIC=new RegExp(e,"g"),aa.ALPHANUMERIC=new RegExp(t,"g");const i=new RegExp("^"+n+"$"),a=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return aa.testKanji=function(c){return i.test(c)},aa.testNumeric=function(c){return a.test(c)},aa.testAlphanumeric=function(c){return s.test(c)},aa}var d4;function yu(){return d4||(d4=1,(function(e){const t=HU(),n=GU();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return r(a)}catch{return s}}})(R_)),R_}var h4;function u2e(){return h4||(h4=1,(function(e){const t=vu(),n=FU(),r=Sk(),i=yu(),a=HU(),s=7973,u=t.getBCHDigit(s);function c(g,v,y){for(let b=1;b<=40;b++)if(v<=e.getCapacity(b,y,g))return b}function f(g,v){return i.getCharCountIndicator(g,v)+4}function h(g,v){let y=0;return g.forEach(function(b){const w=f(b.mode,v);y+=w+b.getBitsLength()}),y}function p(g,v){for(let y=1;y<=40;y++)if(h(g,y)<=e.getCapacity(y,v,i.MIXED))return y}e.from=function(v,y){return a.isValid(v)?parseInt(v,10):y},e.getCapacity=function(v,y,b){if(!a.isValid(v))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=i.BYTE);const w=t.getSymbolTotalCodewords(v),_=n.getTotalCodewordsCount(v,y),C=(w-_)*8;if(b===i.MIXED)return C;const E=C-f(b,v);switch(b){case i.NUMERIC:return Math.floor(E/10*3);case i.ALPHANUMERIC:return Math.floor(E/11*2);case i.KANJI:return Math.floor(E/13);case i.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(v,y){let b;const w=r.from(y,r.M);if(Array.isArray(v)){if(v.length>1)return p(v,w);if(v.length===0)return 1;b=v[0]}else b=v;return c(b.mode,b.getLength(),w)},e.getEncodedBits=function(v){if(!a.isValid(v)||v<7)throw new Error("Invalid QR Code version");let y=v<<12;for(;t.getBCHDigit(y)-u>=0;)y^=s<<t.getBCHDigit(y)-u;return v<<12|y}})(N_)),N_}var I_={},p4;function c2e(){if(p4)return I_;p4=1;const e=vu(),t=1335,n=21522,r=e.getBCHDigit(t);return I_.getEncodedBits=function(a,s){const u=a.bit<<3|s;let c=u<<10;for(;e.getBCHDigit(c)-r>=0;)c^=t<<e.getBCHDigit(c)-r;return(u<<10|c)^n},I_}var L_={},z_,m4;function f2e(){if(m4)return z_;m4=1;const e=yu();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let i,a,s;for(i=0;i+3<=this.data.length;i+=3)a=this.data.substr(i,3),s=parseInt(a,10),r.put(s,10);const u=this.data.length-i;u>0&&(a=this.data.substr(i),s=parseInt(a,10),r.put(s,u*3+1))},z_=t,z_}var j_,g4;function d2e(){if(g4)return j_;g4=1;const e=yu(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let a;for(a=0;a+2<=this.data.length;a+=2){let s=t.indexOf(this.data[a])*45;s+=t.indexOf(this.data[a+1]),i.put(s,11)}this.data.length%2&&i.put(t.indexOf(this.data[a]),6)},j_=n,j_}var $_,v4;function h2e(){if(v4)return $_;v4=1;const e=yu();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},$_=t,$_}var B_,y4;function p2e(){if(y4)return B_;y4=1;const e=yu(),t=vu();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let a=t.toSJIS(this.data[i]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
|
|
1241
|
+
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}},B_=n,B_}var U_={exports:{}},b4;function m2e(){return b4||(b4=1,(function(e){var t={single_source_shortest_paths:function(n,r,i){var a={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,f,h,p,g,v,y,b,w;!u.empty();){c=u.pop(),f=c.value,p=c.cost,g=n[f]||{};for(h in g)g.hasOwnProperty(h)&&(v=g[h],y=p+v,b=s[h],w=typeof s[h]>"u",(w||b>y)&&(s[h]=y,u.push(h,y),a[h]=f))}if(typeof i<"u"&&typeof s[i]>"u"){var _=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(_)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],a=r;a;)i.push(a),n[a],a=n[a];return i.reverse(),i},find_path:function(n,r,i){var a=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(U_)),U_.exports}var w4;function g2e(){return w4||(w4=1,(function(e){const t=yu(),n=f2e(),r=d2e(),i=h2e(),a=p2e(),s=GU(),u=vu(),c=m2e();function f(_){return unescape(encodeURIComponent(_)).length}function h(_,C,E){const S=[];let T;for(;(T=_.exec(E))!==null;)S.push({data:T[0],index:T.index,mode:C,length:T[0].length});return S}function p(_){const C=h(s.NUMERIC,t.NUMERIC,_),E=h(s.ALPHANUMERIC,t.ALPHANUMERIC,_);let S,T;return u.isKanjiModeEnabled()?(S=h(s.BYTE,t.BYTE,_),T=h(s.KANJI,t.KANJI,_)):(S=h(s.BYTE_KANJI,t.BYTE,_),T=[]),C.concat(E,S,T).sort(function(M,P){return M.index-P.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function g(_,C){switch(C){case t.NUMERIC:return n.getBitsLength(_);case t.ALPHANUMERIC:return r.getBitsLength(_);case t.KANJI:return a.getBitsLength(_);case t.BYTE:return i.getBitsLength(_)}}function v(_){return _.reduce(function(C,E){const S=C.length-1>=0?C[C.length-1]:null;return S&&S.mode===E.mode?(C[C.length-1].data+=E.data,C):(C.push(E),C)},[])}function y(_){const C=[];for(let E=0;E<_.length;E++){const S=_[E];switch(S.mode){case t.NUMERIC:C.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:C.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:C.push([S,{data:S.data,mode:t.BYTE,length:f(S.data)}]);break;case t.BYTE:C.push([{data:S.data,mode:t.BYTE,length:f(S.data)}])}}return C}function b(_,C){const E={},S={start:{}};let T=["start"];for(let O=0;O<_.length;O++){const M=_[O],P=[];for(let R=0;R<M.length;R++){const z=M[R],D=""+O+R;P.push(D),E[D]={node:z,lastCount:0},S[D]={};for(let N=0;N<T.length;N++){const $=T[N];E[$]&&E[$].node.mode===z.mode?(S[$][D]=g(E[$].lastCount+z.length,z.mode)-g(E[$].lastCount,z.mode),E[$].lastCount+=z.length):(E[$]&&(E[$].lastCount=z.length),S[$][D]=g(z.length,z.mode)+4+t.getCharCountIndicator(z.mode,C))}}T=P}for(let O=0;O<T.length;O++)S[T[O]].end=0;return{map:S,table:E}}function w(_,C){let E;const S=t.getBestModeForData(_);if(E=t.from(C,S),E!==t.BYTE&&E.bit<S.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(E)+`.
|
|
1242
|
+
Suggested mode is: `+t.toString(S));switch(E===t.KANJI&&!u.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new n(_);case t.ALPHANUMERIC:return new r(_);case t.KANJI:return new a(_);case t.BYTE:return new i(_)}}e.fromArray=function(C){return C.reduce(function(E,S){return typeof S=="string"?E.push(w(S,null)):S.data&&E.push(w(S.data,S.mode)),E},[])},e.fromString=function(C,E){const S=p(C,u.isKanjiModeEnabled()),T=y(S),O=b(T,E),M=c.find_path(O.map,"start","end"),P=[];for(let R=1;R<M.length-1;R++)P.push(O.table[M[R]].node);return e.fromArray(v(P))},e.rawSplit=function(C){return e.fromArray(p(C,u.isKanjiModeEnabled()))}})(L_)),L_}var x4;function v2e(){if(x4)return S_;x4=1;const e=vu(),t=Sk(),n=t2e(),r=n2e(),i=r2e(),a=i2e(),s=a2e(),u=FU(),c=l2e(),f=u2e(),h=c2e(),p=yu(),g=g2e();function v(O,M){const P=O.size,R=a.getPositions(M);for(let z=0;z<R.length;z++){const D=R[z][0],N=R[z][1];for(let $=-1;$<=7;$++)if(!(D+$<=-1||P<=D+$))for(let I=-1;I<=7;I++)N+I<=-1||P<=N+I||($>=0&&$<=6&&(I===0||I===6)||I>=0&&I<=6&&($===0||$===6)||$>=2&&$<=4&&I>=2&&I<=4?O.set(D+$,N+I,!0,!0):O.set(D+$,N+I,!1,!0))}}function y(O){const M=O.size;for(let P=8;P<M-8;P++){const R=P%2===0;O.set(P,6,R,!0),O.set(6,P,R,!0)}}function b(O,M){const P=i.getPositions(M);for(let R=0;R<P.length;R++){const z=P[R][0],D=P[R][1];for(let N=-2;N<=2;N++)for(let $=-2;$<=2;$++)N===-2||N===2||$===-2||$===2||N===0&&$===0?O.set(z+N,D+$,!0,!0):O.set(z+N,D+$,!1,!0)}}function w(O,M){const P=O.size,R=f.getEncodedBits(M);let z,D,N;for(let $=0;$<18;$++)z=Math.floor($/3),D=$%3+P-8-3,N=(R>>$&1)===1,O.set(z,D,N,!0),O.set(D,z,N,!0)}function _(O,M,P){const R=O.size,z=h.getEncodedBits(M,P);let D,N;for(D=0;D<15;D++)N=(z>>D&1)===1,D<6?O.set(D,8,N,!0):D<8?O.set(D+1,8,N,!0):O.set(R-15+D,8,N,!0),D<8?O.set(8,R-D-1,N,!0):D<9?O.set(8,15-D-1+1,N,!0):O.set(8,15-D-1,N,!0);O.set(R-8,8,1,!0)}function C(O,M){const P=O.size;let R=-1,z=P-1,D=7,N=0;for(let $=P-1;$>0;$-=2)for($===6&&$--;;){for(let I=0;I<2;I++)if(!O.isReserved(z,$-I)){let U=!1;N<M.length&&(U=(M[N]>>>D&1)===1),O.set(z,$-I,U),D--,D===-1&&(N++,D=7)}if(z+=R,z<0||P<=z){z-=R,R=-R;break}}}function E(O,M,P){const R=new n;P.forEach(function(I){R.put(I.mode.bit,4),R.put(I.getLength(),p.getCharCountIndicator(I.mode,O)),I.write(R)});const z=e.getSymbolTotalCodewords(O),D=u.getTotalCodewordsCount(O,M),N=(z-D)*8;for(R.getLengthInBits()+4<=N&&R.put(0,4);R.getLengthInBits()%8!==0;)R.putBit(0);const $=(N-R.getLengthInBits())/8;for(let I=0;I<$;I++)R.put(I%2?17:236,8);return S(R,O,M)}function S(O,M,P){const R=e.getSymbolTotalCodewords(M),z=u.getTotalCodewordsCount(M,P),D=R-z,N=u.getBlocksCount(M,P),$=R%N,I=N-$,U=Math.floor(R/N),j=Math.floor(D/N),G=j+1,q=U-j,H=new c(q);let V=0;const B=new Array(N),K=new Array(N);let X=0;const ee=new Uint8Array(O.buffer);for(let J=0;J<N;J++){const pe=J<I?j:G;B[J]=ee.slice(V,V+pe),K[J]=H.encode(B[J]),V+=pe,X=Math.max(X,pe)}const ce=new Uint8Array(R);let he=0,de,ie;for(de=0;de<X;de++)for(ie=0;ie<N;ie++)de<B[ie].length&&(ce[he++]=B[ie][de]);for(de=0;de<q;de++)for(ie=0;ie<N;ie++)ce[he++]=K[ie][de];return ce}function T(O,M,P,R){let z;if(Array.isArray(O))z=g.fromArray(O);else if(typeof O=="string"){let U=M;if(!U){const j=g.rawSplit(O);U=f.getBestVersionForData(j,P)}z=g.fromString(O,U||40)}else throw new Error("Invalid data");const D=f.getBestVersionForData(z,P);if(!D)throw new Error("The amount of data is too big to be stored in a QR Code");if(!M)M=D;else if(M<D)throw new Error(`
|
|
1243
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
1244
|
+
Minimum version required to store current data is: `+D+`.
|
|
1245
|
+
`);const N=E(M,P,z),$=e.getSymbolSize(M),I=new r($);return v(I,M),y(I),b(I,M),_(I,P,0),M>=7&&w(I,M),C(I,N),isNaN(R)&&(R=s.getBestMask(I,_.bind(null,I,P))),s.applyMask(R,I),_(I,P,R),{modules:I,version:M,errorCorrectionLevel:P,maskPattern:R,segments:z}}return S_.create=function(M,P){if(typeof M>"u"||M==="")throw new Error("No input text");let R=t.M,z,D;return typeof P<"u"&&(R=t.from(P.errorCorrectionLevel,t.M),z=f.from(P.version),D=s.from(P.maskPattern),P.toSJISFunc&&e.setToSJISFunction(P.toSJISFunc)),T(M,z,R,D)},S_}var F_={},H_={},_4;function qU(){return _4||(_4=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const a=e.getScale(r,i);return Math.floor((r+i.margin*2)*a)},e.qrToImageData=function(r,i,a){const s=i.modules.size,u=i.modules.data,c=e.getScale(s,a),f=Math.floor((s+a.margin*2)*c),h=a.margin*c,p=[a.color.light,a.color.dark];for(let g=0;g<f;g++)for(let v=0;v<f;v++){let y=(g*f+v)*4,b=a.color.light;if(g>=h&&v>=h&&g<f-h&&v<f-h){const w=Math.floor((g-h)/c),_=Math.floor((v-h)/c);b=p[u[w*s+_]?1:0]}r[y++]=b.r,r[y++]=b.g,r[y++]=b.b,r[y]=b.a}}})(H_)),H_}var S4;function y2e(){return S4||(S4=1,(function(e){const t=qU();function n(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,u){let c=u,f=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(f=r()),c=t.getOptions(c);const h=t.getImageWidth(a.modules.size,c),p=f.getContext("2d"),g=p.createImageData(h,h);return t.qrToImageData(g.data,a,c),n(p,f,h),p.putImageData(g,0,0),f},e.renderToDataURL=function(a,s,u){let c=u;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const f=e.render(a,s,c),h=c.type||"image/png",p=c.rendererOpts||{};return f.toDataURL(h,p.quality)}})(F_)),F_}var G_={},E4;function b2e(){if(E4)return G_;E4=1;const e=qU();function t(i,a){const s=i.a/255,u=a+'="'+i.hex+'"';return s<1?u+" "+a+'-opacity="'+s.toFixed(2).slice(1)+'"':u}function n(i,a,s){let u=i+a;return typeof s<"u"&&(u+=" "+s),u}function r(i,a,s){let u="",c=0,f=!1,h=0;for(let p=0;p<i.length;p++){const g=Math.floor(p%a),v=Math.floor(p/a);!g&&!f&&(f=!0),i[p]?(h++,p>0&&g>0&&i[p-1]||(u+=f?n("M",g+s,.5+v+s):n("m",c,0),c=0,f=!1),g+1<a&&i[p+1]||(u+=n("h",h),h=0)):c++}return u}return G_.render=function(a,s,u){const c=e.getOptions(s),f=a.modules.size,h=a.modules.data,p=f+c.margin*2,g=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",v="<path "+t(c.color.dark,"stroke")+' d="'+r(h,f,c.margin)+'"/>',y='viewBox="0 0 '+p+" "+p+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+y+' shape-rendering="crispEdges">'+g+v+`</svg>
|
|
1246
|
+
`;return typeof u=="function"&&u(null,w),w},G_}var A4;function w2e(){if(A4)return wc;A4=1;const e=e2e(),t=v2e(),n=y2e(),r=b2e();function i(a,s,u,c,f){const h=[].slice.call(arguments,1),p=h.length,g=typeof h[p-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(p<2)throw new Error("Too few arguments provided");p===2?(f=u,u=s,s=c=void 0):p===3&&(s.getContext&&typeof f>"u"?(f=c,c=void 0):(f=c,c=u,u=s,s=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(u=s,s=c=void 0):p===2&&!s.getContext&&(c=u,u=s,s=void 0),new Promise(function(v,y){try{const b=t.create(u,c);v(a(b,s,c))}catch(b){y(b)}})}try{const v=t.create(u,c);f(null,a(v,s,c))}catch(v){f(v)}}return wc.create=t.create,wc.toCanvas=i.bind(null,n.render),wc.toDataURL=i.bind(null,n.renderToDataURL),wc.toString=i.bind(null,function(a,s,u){return r.render(a,u)}),wc}var x2e=w2e();const RCe=ni(x2e);export{ske as $,C2e as A,nEe as B,sEe as C,YEe as D,vAe as E,qEe as F,QEe as G,rAe as H,Z2e as I,qAe as J,tEe as K,mAe as L,lAe as M,NAe as N,SEe as O,LAe as P,GAe as Q,cn as R,wke as S,_ke as T,iEe as U,aEe as V,Lke as W,zke as X,dke as Y,jke as Z,Fq as _,Uy as a,Ke as a$,Bke as a0,X2e as a1,WEe as a2,IAe as a3,bEe as a4,Q2e as a5,cEe as a6,Kke as a7,Uke as a8,qke as a9,dp as aA,xo as aB,tE as aC,XQ as aD,Qke as aE,np as aF,le as aG,sG as aH,cG as aI,eEe as aJ,bAe as aK,LEe as aL,lEe as aM,rp as aN,R2e as aO,O2e as aP,M2e as aQ,N2e as aR,T2e as aS,GEe as aT,V2e as aU,bz as aV,mEe as aW,pEe as aX,JEe as aY,Nke as aZ,Wv as a_,Gke as aa,Yke as ab,Vke as ac,Hke as ad,Ae as ae,Fke as af,Pke as ag,RAe as ah,Dke as ai,hAe as aj,Ike as ak,Tke as al,tAe as am,kAe as an,OAe as ao,_a as ap,Rq as aq,Ske as ar,BAe as as,bke as at,yEe as au,uEe as av,VAe as aw,Xke as ax,Zke as ay,an as az,rH as b,Cke as b$,MAe as b0,jEe as b1,EEe as b2,JAe as b3,j2e as b4,yAe as b5,nCe as b6,jAe as b7,uke as b8,_Ee as b9,eCe as bA,Vv as bB,XAe as bC,oke as bD,AAe as bE,NEe as bF,eke as bG,CEe as bH,m0e as bI,xs as bJ,sCe as bK,Sye as bL,W0e as bM,P2e as bN,PCe as bO,DEe as bP,Oke as bQ,QAe as bR,uAe as bS,J2e as bT,W2e as bU,EAe as bV,wAe as bW,$Ee as bX,hke as bY,PEe as bZ,nke as b_,Ake as ba,MEe as bb,tke as bc,zEe as bd,dAe as be,BEe as bf,$Ae as bg,D2e as bh,fEe as bi,gEe as bj,wEe as bk,kke as bl,zAe as bm,pke as bn,_Ae as bo,KEe as bp,rCe as bq,TCe as br,D1e as bs,V1e as bt,Sbe as bu,hEe as bv,MCe as bw,Lt as bx,Jke as by,tCe as bz,$2e as c,K2e as c0,fAe as c1,REe as c2,dEe as c3,gke as c4,sAe as c5,xke as c6,iAe as c7,TAe as c8,xAe as c9,XEe as cA,UEe as cB,Rke as cC,pAe as cD,aAe as cE,OCe as cF,b1e as cG,rne as cH,yre as cI,vre as cJ,oEe as cK,yke as cL,gAe as cM,ZEe as cN,rEe as cO,ake as cP,SAe as cQ,L2e as cR,sq as cS,I2e as cT,A2e as cU,S2e as cV,aG as cW,k2e as cX,z2e as cY,NCe as ca,vke as cb,cAe as cc,FEe as cd,WAe as ce,TEe as cf,CCe as cg,vEe as ch,rke as ci,DAe as cj,IEe as ck,VEe as cl,Y2e as cm,eAe as cn,cke as co,oAe as cp,xEe as cq,kEe as cr,RCe as cs,HAe as ct,fke as cu,AEe as cv,UAe as cw,CAe as cx,nAe as cy,Mke as cz,F2e as d,yv as e,B2e as f,H2e as g,q2e as h,Et as i,ge as j,KAe as k,PAe as l,mke as m,Eke as n,YAe as o,ZAe as p,lke as q,k as r,G2e as s,$ke as t,U2e as u,OEe as v,HEe as w,ike as x,FAe as y,K2 as z};
|
|
1247
|
+
//# sourceMappingURL=vendor-Cwf49UMz.js.map
|