react-luminus-components 1.5.15 → 1.5.17

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.
@@ -1,4 +1,4 @@
1
- "use strict";const m=require("react"),no=require("react-router-dom"),QC=require("@azure/msal-browser"),r0=require("@azure/msal-react"),oi=require("react-dom"),gn=require("react-hook-form");require("react-flexmonster");function JC(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ue=JC(m);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},Eo={};/**
1
+ "use strict";const m=require("react"),no=require("react-router-dom"),QC=require("@azure/msal-browser"),i0=require("@azure/msal-react"),oi=require("react-dom"),gn=require("react-hook-form");require("react-flexmonster");function JC(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ue=JC(m);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf={exports:{}},Eo={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var i0;function eT(){if(i0)return Eo;i0=1;var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,c,l){var u,d={},f=null,h=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)r.call(c,u)&&!a.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return Eo.Fragment=n,Eo.jsx=o,Eo.jsxs=o,Eo}var Oo={};/**
9
+ */var a0;function eT(){if(a0)return Eo;a0=1;var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,c,l){var u,d={},f=null,h=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)r.call(c,u)&&!a.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return Eo.Fragment=n,Eo.jsx=o,Eo.jsxs=o,Eo}var Oo={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var a0;function tT(){return a0||(a0=1,process.env.NODE_ENV!=="production"&&function(){var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function v(W){if(W===null||typeof W!="object")return null;var ce=g&&W[g]||W[p];return typeof ce=="function"?ce:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(W){{for(var ce=arguments.length,ae=new Array(ce>1?ce-1:0),se=1;se<ce;se++)ae[se-1]=arguments[se];x("error",W,ae)}}function x(W,ce,ae){{var se=w.ReactDebugCurrentFrame,be=se.getStackAddendum();be!==""&&(ce+="%s",ae=ae.concat([be]));var Oe=ae.map(function(xe){return String(xe)});Oe.unshift("Warning: "+ce),Function.prototype.apply.call(console[W],console,Oe)}}var T=!1,b=!1,S=!1,R=!1,M=!1,k;k=Symbol.for("react.module.reference");function E(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===a||M||W===i||W===l||W===u||R||W===h||T||b||S||typeof W=="object"&&W!==null&&(W.$$typeof===f||W.$$typeof===d||W.$$typeof===o||W.$$typeof===s||W.$$typeof===c||W.$$typeof===k||W.getModuleId!==void 0))}function C(W,ce,ae){var se=W.displayName;if(se)return se;var be=ce.displayName||ce.name||"";return be!==""?ae+"("+be+")":ae}function O(W){return W.displayName||"Context"}function $(W){if(W==null)return null;if(typeof W.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case s:var ce=W;return O(ce)+".Consumer";case o:var ae=W;return O(ae._context)+".Provider";case c:return C(W,W.render,"ForwardRef");case d:var se=W.displayName||null;return se!==null?se:$(W.type)||"Memo";case f:{var be=W,Oe=be._payload,xe=be._init;try{return $(xe(Oe))}catch{return null}}}return null}var A=Object.assign,P=0,D,F,q,z,U,G,ee;function ie(){}ie.__reactDisabledLog=!0;function J(){{if(P===0){D=console.log,F=console.info,q=console.warn,z=console.error,U=console.group,G=console.groupCollapsed,ee=console.groupEnd;var W={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}P++}}function X(){{if(P--,P===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},W,{value:D}),info:A({},W,{value:F}),warn:A({},W,{value:q}),error:A({},W,{value:z}),group:A({},W,{value:U}),groupCollapsed:A({},W,{value:G}),groupEnd:A({},W,{value:ee})})}P<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=w.ReactCurrentDispatcher,re;function N(W,ce,ae){{if(re===void 0)try{throw Error()}catch(be){var se=be.stack.trim().match(/\n( *(at )?)/);re=se&&se[1]||""}return`
17
+ */var o0;function tT(){return o0||(o0=1,process.env.NODE_ENV!=="production"&&function(){var e=m,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function v(W){if(W===null||typeof W!="object")return null;var ce=g&&W[g]||W[p];return typeof ce=="function"?ce:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(W){{for(var ce=arguments.length,ae=new Array(ce>1?ce-1:0),se=1;se<ce;se++)ae[se-1]=arguments[se];x("error",W,ae)}}function x(W,ce,ae){{var se=w.ReactDebugCurrentFrame,be=se.getStackAddendum();be!==""&&(ce+="%s",ae=ae.concat([be]));var Oe=ae.map(function(xe){return String(xe)});Oe.unshift("Warning: "+ce),Function.prototype.apply.call(console[W],console,Oe)}}var T=!1,b=!1,S=!1,R=!1,M=!1,k;k=Symbol.for("react.module.reference");function E(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===a||M||W===i||W===l||W===u||R||W===h||T||b||S||typeof W=="object"&&W!==null&&(W.$$typeof===f||W.$$typeof===d||W.$$typeof===o||W.$$typeof===s||W.$$typeof===c||W.$$typeof===k||W.getModuleId!==void 0))}function C(W,ce,ae){var se=W.displayName;if(se)return se;var be=ce.displayName||ce.name||"";return be!==""?ae+"("+be+")":ae}function O(W){return W.displayName||"Context"}function $(W){if(W==null)return null;if(typeof W.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case s:var ce=W;return O(ce)+".Consumer";case o:var ae=W;return O(ae._context)+".Provider";case c:return C(W,W.render,"ForwardRef");case d:var se=W.displayName||null;return se!==null?se:$(W.type)||"Memo";case f:{var be=W,Oe=be._payload,xe=be._init;try{return $(xe(Oe))}catch{return null}}}return null}var A=Object.assign,P=0,D,F,q,z,U,G,ee;function ie(){}ie.__reactDisabledLog=!0;function J(){{if(P===0){D=console.log,F=console.info,q=console.warn,z=console.error,U=console.group,G=console.groupCollapsed,ee=console.groupEnd;var W={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}P++}}function X(){{if(P--,P===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},W,{value:D}),info:A({},W,{value:F}),warn:A({},W,{value:q}),error:A({},W,{value:z}),group:A({},W,{value:U}),groupCollapsed:A({},W,{value:G}),groupEnd:A({},W,{value:ee})})}P<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=w.ReactCurrentDispatcher,re;function N(W,ce,ae){{if(re===void 0)try{throw Error()}catch(be){var se=be.stack.trim().match(/\n( *(at )?)/);re=se&&se[1]||""}return`
18
18
  `+re+W}}var I=!1,L;{var V=typeof WeakMap=="function"?WeakMap:Map;L=new V}function j(W,ce){if(!W||I)return"";{var ae=L.get(W);if(ae!==void 0)return ae}var se;I=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=K.current,K.current=null,J();try{if(ce){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ge){se=ge}Reflect.construct(W,[],xe)}else{try{xe.call()}catch(ge){se=ge}W.call(xe.prototype)}}else{try{throw Error()}catch(ge){se=ge}W()}}catch(ge){if(ge&&se&&typeof ge.stack=="string"){for(var ke=ge.stack.split(`
19
19
  `),Le=se.stack.split(`
20
20
  `),Pe=ke.length-1,Xe=Le.length-1;Pe>=1&&Xe>=0&&ke[Pe]!==Le[Xe];)Xe--;for(;Pe>=1&&Xe>=0;Pe--,Xe--)if(ke[Pe]!==Le[Xe]){if(Pe!==1||Xe!==1)do if(Pe--,Xe--,Xe<0||ke[Pe]!==Le[Xe]){var zt=`
@@ -27,30 +27,30 @@ Check the top-level render call using <`+ae+">.")}return ce}}function vt(W,ce){{
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ln,Xt,Mt,Xt),ye[Xt+ln]=!0}}return W===r?Jt(Xe):rn(Xe),Xe}}function je(W,ce,ae){return Ee(W,ce,ae,!0)}function Ye(W,ce,ae){return Ee(W,ce,ae,!1)}var We=Ye,ft=je;Oo.Fragment=r,Oo.jsx=We,Oo.jsxs=ft}()),Oo}process.env.NODE_ENV==="production"?Gf.exports=eT():Gf.exports=tT();var y=Gf.exports,sb={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,ln,Xt,Mt,Xt),ye[Xt+ln]=!0}}return W===r?Jt(Xe):rn(Xe),Xe}}function je(W,ce,ae){return Ee(W,ce,ae,!0)}function Ye(W,ce,ae){return Ee(W,ce,ae,!1)}var We=Ye,ft=je;Oo.Fragment=r,Oo.jsx=We,Oo.jsxs=ft}()),Oo}process.env.NODE_ENV==="production"?Gf.exports=eT():Gf.exports=tT();var y=Gf.exports,cb={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sb);var nT=sb.exports;const oe=Ht(nT);function Sn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function rT(e,t){const n=+Sn(e);return Ur(e,n+t)}const iT=365.2425,gp=6048e5,aT=864e5,vp=6e4,iu=36e5,cb=3600,oT=60,yp=cb*24,sT=yp*7,lb=yp*iT,ub=lb/12,cT=ub*3;function db(e,t){return rT(e,t*iu)}let lT={};function au(){return lT}function La(e,t){var s,c,l,u;const n=au(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=Sn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ll(e){return La(e,{weekStartsOn:1})}function fb(e){const t=Sn(e),n=t.getFullYear(),r=Ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=ll(r),a=Ur(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=ll(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Zf(e){const t=Sn(e);return t.setHours(0,0,0,0),t}function Kf(e){const t=Sn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function hb(e,t){const n=Zf(e),r=Zf(t),i=+n-Kf(n),a=+r-Kf(r);return Math.round((i-a)/aT)}function uT(e){const t=fb(e),n=Ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ll(n)}function dT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fT(e){if(!dT(e)&&typeof e!="number")return!1;const t=Sn(e);return!isNaN(Number(t))}function hT(e){const t=Sn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pT(e){const t=Sn(e),n=Ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const mT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gT=(e,t,n)=>{let r;const i=mT[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Zd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xT={date:Zd({formats:vT,defaultWidth:"full"}),time:Zd({formats:yT,defaultWidth:"full"}),dateTime:Zd({formats:bT,defaultWidth:"full"})},_T={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wT=(e,t,n,r)=>_T[e];function Mo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const CT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ST={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ET={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},MT=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$T={ordinalNumber:MT,era:Mo({values:CT,defaultWidth:"wide"}),quarter:Mo({values:TT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mo({values:ST,defaultWidth:"wide"}),day:Mo({values:kT,defaultWidth:"wide"}),dayPeriod:Mo({values:ET,defaultWidth:"wide",formattingValues:OT,defaultFormattingWidth:"wide"})};function $o(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?RT(s,d=>d.test(o)):AT(s,d=>d.test(o));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(o.length);return{value:l,rest:u}}}function AT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function RT(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jT(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const PT=/^(\d+)(th|st|nd|rd)?/i,IT=/\d+/i,DT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NT={any:[/^b/i,/^(a|c)/i]},LT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FT={any:[/1/i,/2/i,/3/i,/4/i]},BT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},WT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},VT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qT={ordinalNumber:jT({matchPattern:PT,parsePattern:IT,valueCallback:e=>parseInt(e,10)}),era:$o({matchPatterns:DT,defaultMatchWidth:"wide",parsePatterns:NT,defaultParseWidth:"any"}),quarter:$o({matchPatterns:LT,defaultMatchWidth:"wide",parsePatterns:FT,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$o({matchPatterns:BT,defaultMatchWidth:"wide",parsePatterns:UT,defaultParseWidth:"any"}),day:$o({matchPatterns:WT,defaultMatchWidth:"wide",parsePatterns:zT,defaultParseWidth:"any"}),dayPeriod:$o({matchPatterns:HT,defaultMatchWidth:"any",parsePatterns:VT,defaultParseWidth:"any"})},YT={code:"en-US",formatDistance:gT,formatLong:xT,formatRelative:wT,localize:$T,match:qT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GT(e){const t=Sn(e);return hb(t,pT(t))+1}function ZT(e){const t=Sn(e),n=+ll(t)-+uT(t);return Math.round(n/gp)+1}function pb(e,t){var u,d,f,h;const n=Sn(e),r=n.getFullYear(),i=au(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=Ur(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=La(o,t),c=Ur(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=La(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function KT(e,t){var s,c,l,u;const n=au(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=pb(e,t),a=Ur(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),La(a,t)}function XT(e,t){const n=Sn(e),r=+La(n,t)-+KT(n,t);return Math.round(r/gp)+1}function wt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Xr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return wt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):wt(n+1,2)},d(e,t){return wt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return wt(e.getHours()%12||12,t.length)},H(e,t){return wt(e.getHours(),t.length)},m(e,t){return wt(e.getMinutes(),t.length)},s(e,t){return wt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return wt(i,t.length)}},ga={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Xr.y(e,t)},Y:function(e,t,n,r){const i=pb(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return wt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):wt(a,t.length)},R:function(e,t){const n=fb(e);return wt(n,t.length)},u:function(e,t){const n=e.getFullYear();return wt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return wt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return wt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Xr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return wt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=XT(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):wt(i,t.length)},I:function(e,t,n){const r=ZT(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):wt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Xr.d(e,t)},D:function(e,t,n){const r=GT(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):wt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return wt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return wt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return wt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ga.noon:r===0?i=ga.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ga.evening:r>=12?i=ga.afternoon:r>=4?i=ga.morning:i=ga.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Xr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Xr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):wt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):wt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Xr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Xr.s(e,t)},S:function(e,t){return Xr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return c0(r);case"XXXX":case"XX":return $i(r);case"XXXXX":case"XXX":default:return $i(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return c0(r);case"xxxx":case"xx":return $i(r);case"xxxxx":case"xxx":default:return $i(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+s0(r,":");case"OOOO":default:return"GMT"+$i(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+s0(r,":");case"zzzz":default:return"GMT"+$i(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return wt(r,t.length)},T:function(e,t,n){const r=e.getTime();return wt(r,t.length)}};function s0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+wt(a,2)}function c0(e,t){return e%60===0?(e>0?"-":"+")+wt(Math.abs(e)/60,2):$i(e,t)}function $i(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=wt(Math.trunc(r/60),2),a=wt(r%60,2);return n+i+t+a}const l0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},mb=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},QT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return l0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",l0(r,t)).replace("{{time}}",mb(i,t))},JT={p:mb,P:QT},e6=/^D+$/,t6=/^Y+$/,n6=["D","DD","YY","YYYY"];function r6(e){return e6.test(e)}function i6(e){return t6.test(e)}function a6(e,t,n){const r=o6(e,t,n);if(console.warn(r),n6.includes(e))throw new RangeError(r)}function o6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const s6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l6=/^'([^]*?)'?$/,u6=/''/g,d6=/[a-zA-Z]/;function bp(e,t,n){var u,d,f,h,g,p,v,w;const r=au(),i=(n==null?void 0:n.locale)??r.locale??YT,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,s=Sn(e);if(!fT(s))throw new RangeError("Invalid time value");let c=t.match(c6).map(_=>{const x=_[0];if(x==="p"||x==="P"){const T=JT[x];return T(_,i.formatLong)}return _}).join("").match(s6).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const x=_[0];if(x==="'")return{isToken:!1,value:f6(_)};if(o0[x])return{isToken:!0,value:_};if(x.match(d6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(_=>{if(!_.isToken)return _.value;const x=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&i6(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&r6(x))&&a6(x,t,String(e));const T=o0[x[0]];return T(s,x,i.localize,l)}).join("")}function f6(e){const t=e.match(l6);return t?t[1].replace(u6,"'"):e}function gb(e){return+Sn(e)<Date.now()}function ou(e,t){const r=g6(e);let i;if(r.date){const c=v6(r.date,2);i=y6(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,s;if(r.time&&(o=b6(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=x6(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(a+o),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(a+o+s)}const Sc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},h6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,p6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function g6(e){const t={},n=e.split(Sc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Sc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function v6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function y6(e,t){if(t===null)return new Date(NaN);const n=e.match(h6);if(!n)return new Date(NaN);const r=!!n[4],i=Ao(n[1]),a=Ao(n[2])-1,o=Ao(n[3]),s=Ao(n[4]),c=Ao(n[5])-1;if(r)return S6(t,s,c)?_6(t,s,c):new Date(NaN);{const l=new Date(0);return!C6(t,a,o)||!T6(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}}function Ao(e){return e?parseInt(e):1}function b6(e){const t=e.match(p6);if(!t)return NaN;const n=Kd(t[1]),r=Kd(t[2]),i=Kd(t[3]);return k6(n,r,i)?n*iu+r*vp+i*1e3:NaN}function Kd(e){return e&&parseFloat(e.replace(",","."))||0}function x6(e){if(e==="Z")return 0;const t=e.match(m6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return E6(r,i)?n*(r*iu+i*vp):NaN}function _6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const w6=[31,null,31,30,31,30,31,31,30,31,30,31];function vb(e){return e%400===0||e%4===0&&e%100!==0}function C6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(w6[t]||(vb(e)?29:28))}function T6(e,t){return t>=1&&t<=(vb(e)?366:365)}function S6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function k6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function E6(e,t){return t>=0&&t<=59}function ul(){return ul=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},ul.apply(null,arguments)}function xp(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var O6=function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;c=new Error(t.replace(/%s/g,function(){return l[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},M6=O6;const Xf=Ht(M6);function u0(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function $6(e){var t=A6(e,"string");return typeof t=="symbol"?t:String(t)}function A6(e,t){if(typeof e!="object"||e===null)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 yb(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),a=i[0],o=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&a!==t&&o(t),[s?e:a,m.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),o(l)},[n])]}function _p(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[u0(r)],s=a[r],c=xp(a,[u0(r),r].map($6)),l=t[r],u=yb(s,o,e[l]),d=u[0],f=u[1];return ul({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qf(e,t)}function bb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qf(e,t)}const R6=["xxl","xl","lg","md","sm","xs"],j6="xs",su=ue.createContext({prefixes:{},breakpoints:R6,minBreakpoint:j6});function it(e,t){const{prefixes:n}=m.useContext(su);return e||n[t]||t}function xb(){const{breakpoints:e}=m.useContext(su);return e}function _b(){const{minBreakpoint:e}=m.useContext(su);return e}function cu(){const{dir:e}=m.useContext(su);return e==="rtl"}function ro(e){return e&&e.ownerDocument||document}function P6(e){var t=ro(e);return t&&t.defaultView||window}function I6(e,t){return P6(e).getComputedStyle(e,t)}var D6=/([A-Z])/g;function N6(e){return e.replace(D6,"-$1").toLowerCase()}var L6=/^ms-/;function kc(e){return N6(e).replace(L6,"-ms-")}var F6=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function B6(e){return!!(e&&F6.test(e))}function li(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(kc(t))||I6(e).getPropertyValue(kc(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(kc(i)):B6(i)?r+=i+"("+a+") ":n+=kc(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Jf={exports:{}},Ec={exports:{}},yt={};/** @license React v16.13.1
34
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(cb);var nT=cb.exports;const oe=Ht(nT);function Sn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ur(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function rT(e,t){const n=+Sn(e);return Ur(e,n+t)}const iT=365.2425,vp=6048e5,aT=864e5,yp=6e4,ru=36e5,lb=3600,oT=60,bp=lb*24,sT=bp*7,ub=bp*iT,db=ub/12,cT=db*3;function fb(e,t){return rT(e,t*ru)}let lT={};function iu(){return lT}function La(e,t){var s,c,l,u;const n=iu(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=Sn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function cl(e){return La(e,{weekStartsOn:1})}function hb(e){const t=Sn(e),n=t.getFullYear(),r=Ur(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=cl(r),a=Ur(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=cl(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Zf(e){const t=Sn(e);return t.setHours(0,0,0,0),t}function Kf(e){const t=Sn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function pb(e,t){const n=Zf(e),r=Zf(t),i=+n-Kf(n),a=+r-Kf(r);return Math.round((i-a)/aT)}function uT(e){const t=hb(e),n=Ur(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),cl(n)}function dT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fT(e){if(!dT(e)&&typeof e!="number")return!1;const t=Sn(e);return!isNaN(Number(t))}function hT(e){const t=Sn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pT(e){const t=Sn(e),n=Ur(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const mT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gT=(e,t,n)=>{let r;const i=mT[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Gd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xT={date:Gd({formats:vT,defaultWidth:"full"}),time:Gd({formats:yT,defaultWidth:"full"}),dateTime:Gd({formats:bT,defaultWidth:"full"})},_T={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wT=(e,t,n,r)=>_T[e];function Mo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const CT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ST={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ET={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},MT=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$T={ordinalNumber:MT,era:Mo({values:CT,defaultWidth:"wide"}),quarter:Mo({values:TT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mo({values:ST,defaultWidth:"wide"}),day:Mo({values:kT,defaultWidth:"wide"}),dayPeriod:Mo({values:ET,defaultWidth:"wide",formattingValues:OT,defaultFormattingWidth:"wide"})};function $o(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?RT(s,d=>d.test(o)):AT(s,d=>d.test(o));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(o.length);return{value:l,rest:u}}}function AT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function RT(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jT(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const PT=/^(\d+)(th|st|nd|rd)?/i,IT=/\d+/i,DT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NT={any:[/^b/i,/^(a|c)/i]},LT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FT={any:[/1/i,/2/i,/3/i,/4/i]},BT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},WT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},VT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qT={ordinalNumber:jT({matchPattern:PT,parsePattern:IT,valueCallback:e=>parseInt(e,10)}),era:$o({matchPatterns:DT,defaultMatchWidth:"wide",parsePatterns:NT,defaultParseWidth:"any"}),quarter:$o({matchPatterns:LT,defaultMatchWidth:"wide",parsePatterns:FT,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$o({matchPatterns:BT,defaultMatchWidth:"wide",parsePatterns:UT,defaultParseWidth:"any"}),day:$o({matchPatterns:WT,defaultMatchWidth:"wide",parsePatterns:zT,defaultParseWidth:"any"}),dayPeriod:$o({matchPatterns:HT,defaultMatchWidth:"any",parsePatterns:VT,defaultParseWidth:"any"})},YT={code:"en-US",formatDistance:gT,formatLong:xT,formatRelative:wT,localize:$T,match:qT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GT(e){const t=Sn(e);return pb(t,pT(t))+1}function ZT(e){const t=Sn(e),n=+cl(t)-+uT(t);return Math.round(n/vp)+1}function mb(e,t){var u,d,f,h;const n=Sn(e),r=n.getFullYear(),i=iu(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=Ur(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=La(o,t),c=Ur(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=La(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function KT(e,t){var s,c,l,u;const n=iu(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=mb(e,t),a=Ur(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),La(a,t)}function XT(e,t){const n=Sn(e),r=+La(n,t)-+KT(n,t);return Math.round(r/vp)+1}function wt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Xr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return wt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):wt(n+1,2)},d(e,t){return wt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return wt(e.getHours()%12||12,t.length)},H(e,t){return wt(e.getHours(),t.length)},m(e,t){return wt(e.getMinutes(),t.length)},s(e,t){return wt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return wt(i,t.length)}},ga={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},s0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Xr.y(e,t)},Y:function(e,t,n,r){const i=mb(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return wt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):wt(a,t.length)},R:function(e,t){const n=hb(e);return wt(n,t.length)},u:function(e,t){const n=e.getFullYear();return wt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return wt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return wt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Xr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return wt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=XT(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):wt(i,t.length)},I:function(e,t,n){const r=ZT(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):wt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Xr.d(e,t)},D:function(e,t,n){const r=GT(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):wt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return wt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return wt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return wt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ga.noon:r===0?i=ga.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ga.evening:r>=12?i=ga.afternoon:r>=4?i=ga.morning:i=ga.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Xr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Xr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):wt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):wt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Xr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Xr.s(e,t)},S:function(e,t){return Xr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return l0(r);case"XXXX":case"XX":return $i(r);case"XXXXX":case"XXX":default:return $i(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return l0(r);case"xxxx":case"xx":return $i(r);case"xxxxx":case"xxx":default:return $i(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+c0(r,":");case"OOOO":default:return"GMT"+$i(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+c0(r,":");case"zzzz":default:return"GMT"+$i(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return wt(r,t.length)},T:function(e,t,n){const r=e.getTime();return wt(r,t.length)}};function c0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+wt(a,2)}function l0(e,t){return e%60===0?(e>0?"-":"+")+wt(Math.abs(e)/60,2):$i(e,t)}function $i(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=wt(Math.trunc(r/60),2),a=wt(r%60,2);return n+i+t+a}const u0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gb=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},QT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return u0(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",u0(r,t)).replace("{{time}}",gb(i,t))},JT={p:gb,P:QT},e6=/^D+$/,t6=/^Y+$/,n6=["D","DD","YY","YYYY"];function r6(e){return e6.test(e)}function i6(e){return t6.test(e)}function a6(e,t,n){const r=o6(e,t,n);if(console.warn(r),n6.includes(e))throw new RangeError(r)}function o6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const s6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l6=/^'([^]*?)'?$/,u6=/''/g,d6=/[a-zA-Z]/;function xp(e,t,n){var u,d,f,h,g,p,v,w;const r=iu(),i=(n==null?void 0:n.locale)??r.locale??YT,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,s=Sn(e);if(!fT(s))throw new RangeError("Invalid time value");let c=t.match(c6).map(_=>{const x=_[0];if(x==="p"||x==="P"){const T=JT[x];return T(_,i.formatLong)}return _}).join("").match(s6).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const x=_[0];if(x==="'")return{isToken:!1,value:f6(_)};if(s0[x])return{isToken:!0,value:_};if(x.match(d6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(_=>{if(!_.isToken)return _.value;const x=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&i6(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&r6(x))&&a6(x,t,String(e));const T=s0[x[0]];return T(s,x,i.localize,l)}).join("")}function f6(e){const t=e.match(l6);return t?t[1].replace(u6,"'"):e}function vb(e){return+Sn(e)<Date.now()}function au(e,t){const r=g6(e);let i;if(r.date){const c=v6(r.date,2);i=y6(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,s;if(r.time&&(o=b6(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=x6(r.timezone),isNaN(s))return new Date(NaN)}else{const c=new Date(a+o),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(a+o+s)}const Sc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},h6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,p6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function g6(e){const t={},n=e.split(Sc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Sc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function v6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function y6(e,t){if(t===null)return new Date(NaN);const n=e.match(h6);if(!n)return new Date(NaN);const r=!!n[4],i=Ao(n[1]),a=Ao(n[2])-1,o=Ao(n[3]),s=Ao(n[4]),c=Ao(n[5])-1;if(r)return S6(t,s,c)?_6(t,s,c):new Date(NaN);{const l=new Date(0);return!C6(t,a,o)||!T6(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}}function Ao(e){return e?parseInt(e):1}function b6(e){const t=e.match(p6);if(!t)return NaN;const n=Zd(t[1]),r=Zd(t[2]),i=Zd(t[3]);return k6(n,r,i)?n*ru+r*yp+i*1e3:NaN}function Zd(e){return e&&parseFloat(e.replace(",","."))||0}function x6(e){if(e==="Z")return 0;const t=e.match(m6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return E6(r,i)?n*(r*ru+i*yp):NaN}function _6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const w6=[31,null,31,30,31,30,31,31,30,31,30,31];function yb(e){return e%400===0||e%4===0&&e%100!==0}function C6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(w6[t]||(yb(e)?29:28))}function T6(e,t){return t>=1&&t<=(yb(e)?366:365)}function S6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function k6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function E6(e,t){return t>=0&&t<=59}function ll(){return ll=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},ll.apply(null,arguments)}function _p(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var O6=function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;c=new Error(t.replace(/%s/g,function(){return l[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},M6=O6;const Xf=Ht(M6);function d0(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function $6(e){var t=A6(e,"string");return typeof t=="symbol"?t:String(t)}function A6(e,t){if(typeof e!="object"||e===null)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 bb(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),a=i[0],o=i[1],s=e!==void 0,c=r.current;return r.current=s,!s&&c&&a!==t&&o(t),[s?e:a,m.useCallback(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[l].concat(d)),o(l)},[n])]}function wp(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[d0(r)],s=a[r],c=_p(a,[d0(r),r].map($6)),l=t[r],u=bb(s,o,e[l]),d=u[0],f=u[1];return ll({},c,(i={},i[r]=d,i[l]=f,i))},e)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qf(e,t)}function xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qf(e,t)}const R6=["xxl","xl","lg","md","sm","xs"],j6="xs",ou=ue.createContext({prefixes:{},breakpoints:R6,minBreakpoint:j6});function it(e,t){const{prefixes:n}=m.useContext(ou);return e||n[t]||t}function _b(){const{breakpoints:e}=m.useContext(ou);return e}function wb(){const{minBreakpoint:e}=m.useContext(ou);return e}function su(){const{dir:e}=m.useContext(ou);return e==="rtl"}function ro(e){return e&&e.ownerDocument||document}function P6(e){var t=ro(e);return t&&t.defaultView||window}function I6(e,t){return P6(e).getComputedStyle(e,t)}var D6=/([A-Z])/g;function N6(e){return e.replace(D6,"-$1").toLowerCase()}var L6=/^ms-/;function kc(e){return N6(e).replace(L6,"-ms-")}var F6=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function B6(e){return!!(e&&F6.test(e))}function li(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(kc(t))||I6(e).getPropertyValue(kc(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(kc(i)):B6(i)?r+=i+"("+a+") ":n+=kc(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Jf={exports:{}},Ec={exports:{}},yt={};/** @license React v16.13.1
35
35
  * react-is.production.min.js
36
36
  *
37
37
  * Copyright (c) Facebook, Inc. and its affiliates.
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var d0;function U6(){if(d0)return yt;d0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case c:case l:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case g:case h:case o:return b;default:return S}}case n:return S}}}function T(b){return x(b)===l}return yt.AsyncMode=c,yt.ConcurrentMode=l,yt.ContextConsumer=s,yt.ContextProvider=o,yt.Element=t,yt.ForwardRef=u,yt.Fragment=r,yt.Lazy=g,yt.Memo=h,yt.Portal=n,yt.Profiler=a,yt.StrictMode=i,yt.Suspense=d,yt.isAsyncMode=function(b){return T(b)||x(b)===c},yt.isConcurrentMode=T,yt.isContextConsumer=function(b){return x(b)===s},yt.isContextProvider=function(b){return x(b)===o},yt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},yt.isForwardRef=function(b){return x(b)===u},yt.isFragment=function(b){return x(b)===r},yt.isLazy=function(b){return x(b)===g},yt.isMemo=function(b){return x(b)===h},yt.isPortal=function(b){return x(b)===n},yt.isProfiler=function(b){return x(b)===a},yt.isStrictMode=function(b){return x(b)===i},yt.isSuspense=function(b){return x(b)===d},yt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===w||b.$$typeof===_||b.$$typeof===p)},yt.typeOf=x,yt}var bt={};/** @license React v16.13.1
41
+ */var f0;function U6(){if(f0)return yt;f0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case c:case l:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case g:case h:case o:return b;default:return S}}case n:return S}}}function T(b){return x(b)===l}return yt.AsyncMode=c,yt.ConcurrentMode=l,yt.ContextConsumer=s,yt.ContextProvider=o,yt.Element=t,yt.ForwardRef=u,yt.Fragment=r,yt.Lazy=g,yt.Memo=h,yt.Portal=n,yt.Profiler=a,yt.StrictMode=i,yt.Suspense=d,yt.isAsyncMode=function(b){return T(b)||x(b)===c},yt.isConcurrentMode=T,yt.isContextConsumer=function(b){return x(b)===s},yt.isContextProvider=function(b){return x(b)===o},yt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},yt.isForwardRef=function(b){return x(b)===u},yt.isFragment=function(b){return x(b)===r},yt.isLazy=function(b){return x(b)===g},yt.isMemo=function(b){return x(b)===h},yt.isPortal=function(b){return x(b)===n},yt.isProfiler=function(b){return x(b)===a},yt.isStrictMode=function(b){return x(b)===i},yt.isSuspense=function(b){return x(b)===d},yt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===w||b.$$typeof===_||b.$$typeof===p)},yt.typeOf=x,yt}var bt={};/** @license React v16.13.1
42
42
  * react-is.development.js
43
43
  *
44
44
  * Copyright (c) Facebook, Inc. and its affiliates.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var f0;function W6(){return f0||(f0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(j){return typeof j=="string"||typeof j=="function"||j===r||j===l||j===a||j===i||j===d||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===u||j.$$typeof===v||j.$$typeof===w||j.$$typeof===_||j.$$typeof===p)}function T(j){if(typeof j=="object"&&j!==null){var Z=j.$$typeof;switch(Z){case t:var Q=j.type;switch(Q){case c:case l:case r:case a:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case h:case o:return te;default:return Z}}case n:return Z}}}var b=c,S=l,R=s,M=o,k=t,E=u,C=r,O=g,$=h,A=n,P=a,D=i,F=d,q=!1;function z(j){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(j)||T(j)===c}function U(j){return T(j)===l}function G(j){return T(j)===s}function ee(j){return T(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function J(j){return T(j)===u}function X(j){return T(j)===r}function K(j){return T(j)===g}function re(j){return T(j)===h}function N(j){return T(j)===n}function I(j){return T(j)===a}function L(j){return T(j)===i}function V(j){return T(j)===d}bt.AsyncMode=b,bt.ConcurrentMode=S,bt.ContextConsumer=R,bt.ContextProvider=M,bt.Element=k,bt.ForwardRef=E,bt.Fragment=C,bt.Lazy=O,bt.Memo=$,bt.Portal=A,bt.Profiler=P,bt.StrictMode=D,bt.Suspense=F,bt.isAsyncMode=z,bt.isConcurrentMode=U,bt.isContextConsumer=G,bt.isContextProvider=ee,bt.isElement=ie,bt.isForwardRef=J,bt.isFragment=X,bt.isLazy=K,bt.isMemo=re,bt.isPortal=N,bt.isProfiler=I,bt.isStrictMode=L,bt.isSuspense=V,bt.isValidElementType=x,bt.typeOf=T}()),bt}var h0;function wp(){return h0||(h0=1,process.env.NODE_ENV==="production"?Ec.exports=U6():Ec.exports=W6()),Ec.exports}/*
48
+ */var h0;function W6(){return h0||(h0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(j){return typeof j=="string"||typeof j=="function"||j===r||j===l||j===a||j===i||j===d||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===u||j.$$typeof===v||j.$$typeof===w||j.$$typeof===_||j.$$typeof===p)}function T(j){if(typeof j=="object"&&j!==null){var Z=j.$$typeof;switch(Z){case t:var Q=j.type;switch(Q){case c:case l:case r:case a:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case h:case o:return te;default:return Z}}case n:return Z}}}var b=c,S=l,R=s,M=o,k=t,E=u,C=r,O=g,$=h,A=n,P=a,D=i,F=d,q=!1;function z(j){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(j)||T(j)===c}function U(j){return T(j)===l}function G(j){return T(j)===s}function ee(j){return T(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function J(j){return T(j)===u}function X(j){return T(j)===r}function K(j){return T(j)===g}function re(j){return T(j)===h}function N(j){return T(j)===n}function I(j){return T(j)===a}function L(j){return T(j)===i}function V(j){return T(j)===d}bt.AsyncMode=b,bt.ConcurrentMode=S,bt.ContextConsumer=R,bt.ContextProvider=M,bt.Element=k,bt.ForwardRef=E,bt.Fragment=C,bt.Lazy=O,bt.Memo=$,bt.Portal=A,bt.Profiler=P,bt.StrictMode=D,bt.Suspense=F,bt.isAsyncMode=z,bt.isConcurrentMode=U,bt.isContextConsumer=G,bt.isContextProvider=ee,bt.isElement=ie,bt.isForwardRef=J,bt.isFragment=X,bt.isLazy=K,bt.isMemo=re,bt.isPortal=N,bt.isProfiler=I,bt.isStrictMode=L,bt.isSuspense=V,bt.isValidElementType=x,bt.typeOf=T}()),bt}var p0;function Cp(){return p0||(p0=1,process.env.NODE_ENV==="production"?Ec.exports=U6():Ec.exports=W6()),Ec.exports}/*
49
49
  object-assign
50
50
  (c) Sindre Sorhus
51
51
  @license MIT
52
- */var Xd,p0;function z6(){if(p0)return Xd;p0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xd=i()?Object.assign:function(a,o){for(var s,c=r(a),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},Xd}var Qd,m0;function Cp(){if(m0)return Qd;m0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qd=e,Qd}var Jd,g0;function wb(){return g0||(g0=1,Jd=Function.call.bind(Object.prototype.hasOwnProperty)),Jd}var ef,v0;function H6(){if(v0)return ef;v0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cp(),n={},r=wb();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ef=i,ef}var tf,y0;function V6(){if(y0)return tf;y0=1;var e=wp(),t=z6(),n=Cp(),r=wb(),i=H6(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return tf=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(U){var G=U&&(l&&U[l]||U[u]);if(typeof G=="function")return G}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:x,element:T(),elementType:b(),instanceOf:S,node:E(),objectOf:M,oneOf:R,oneOfType:k,shape:O,exact:$};function g(U,G){return U===G?U!==0||1/U===1/G:U!==U&&G!==G}function p(U,G){this.message=U,this.data=G&&typeof G=="object"?G:{},this.stack=""}p.prototype=Error.prototype;function v(U){if(process.env.NODE_ENV!=="production")var G={},ee=0;function ie(X,K,re,N,I,L,V){if(N=N||f,L=L||re,V!==n){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=N+":"+re;!G[Z]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+L+"` prop on `"+N+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[Z]=!0,ee++)}}return K[re]==null?X?K[re]===null?new p("The "+I+" `"+L+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new p("The "+I+" `"+L+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:U(K,re,N,I,L)}var J=ie.bind(null,!1);return J.isRequired=ie.bind(null,!0),J}function w(U){function G(ee,ie,J,X,K,re){var N=ee[ie],I=D(N);if(I!==U){var L=F(N);return new p("Invalid "+X+" `"+K+"` of type "+("`"+L+"` supplied to `"+J+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return v(G)}function _(){return v(o)}function x(U){function G(ee,ie,J,X,K){if(typeof U!="function")return new p("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var re=ee[ie];if(!Array.isArray(re)){var N=D(re);return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected an array."))}for(var I=0;I<re.length;I++){var L=U(re,I,J,X,K+"["+I+"]",n);if(L instanceof Error)return L}return null}return v(G)}function T(){function U(G,ee,ie,J,X){var K=G[ee];if(!s(K)){var re=D(K);return new p("Invalid "+J+" `"+X+"` of type "+("`"+re+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return v(U)}function b(){function U(G,ee,ie,J,X){var K=G[ee];if(!e.isValidElementType(K)){var re=D(K);return new p("Invalid "+J+" `"+X+"` of type "+("`"+re+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return v(U)}function S(U){function G(ee,ie,J,X,K){if(!(ee[ie]instanceof U)){var re=U.name||f,N=z(ee[ie]);return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected ")+("instance of `"+re+"`."))}return null}return v(G)}function R(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function G(ee,ie,J,X,K){for(var re=ee[ie],N=0;N<U.length;N++)if(g(re,U[N]))return null;var I=JSON.stringify(U,function(V,j){var Z=F(j);return Z==="symbol"?String(j):j});return new p("Invalid "+X+" `"+K+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+I+"."))}return v(G)}function M(U){function G(ee,ie,J,X,K){if(typeof U!="function")return new p("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected an object."));for(var I in re)if(r(re,I)){var L=U(re,I,J,X,K+"."+I,n);if(L instanceof Error)return L}return null}return v(G)}function k(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var G=0;G<U.length;G++){var ee=U[G];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ee)+" at index "+G+"."),o}function ie(J,X,K,re,N){for(var I=[],L=0;L<U.length;L++){var V=U[L],j=V(J,X,K,re,N,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&I.push(j.data.expectedType)}var Z=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new p("Invalid "+re+" `"+N+"` supplied to "+("`"+K+"`"+Z+"."))}return v(ie)}function E(){function U(G,ee,ie,J,X){return A(G[ee])?null:new p("Invalid "+J+" `"+X+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return v(U)}function C(U,G,ee,ie,J){return new p((U||"React class")+": "+G+" type `"+ee+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function O(U){function G(ee,ie,J,X,K){var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+N+"` "+("supplied to `"+J+"`, expected `object`."));for(var I in U){var L=U[I];if(typeof L!="function")return C(J,X,K,I,F(L));var V=L(re,I,J,X,K+"."+I,n);if(V)return V}return null}return v(G)}function $(U){function G(ee,ie,J,X,K){var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+N+"` "+("supplied to `"+J+"`, expected `object`."));var I=t({},ee[ie],U);for(var L in I){var V=U[L];if(r(U,L)&&typeof V!="function")return C(J,X,K,L,F(V));if(!V)return new p("Invalid "+X+" `"+K+"` key `"+L+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[ie],null," ")+`
53
- Valid keys: `+JSON.stringify(Object.keys(U),null," "));var j=V(re,L,J,X,K+"."+L,n);if(j)return j}return null}return v(G)}function A(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(A);if(U===null||s(U))return!0;var G=d(U);if(G){var ee=G.call(U),ie;if(G!==U.entries){for(;!(ie=ee.next()).done;)if(!A(ie.value))return!1}else for(;!(ie=ee.next()).done;){var J=ie.value;if(J&&!A(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(U,G){return U==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function D(U){var G=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":P(G,U)?"symbol":G}function F(U){if(typeof U>"u"||U===null)return""+U;var G=D(U);if(G==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return G}function q(U){var G=F(U);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function z(U){return!U.constructor||!U.constructor.name?f:U.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},tf}var nf,b0;function q6(){if(b0)return nf;b0=1;var e=Cp();function t(){}function n(){}return n.resetWarningCache=t,nf=function(){function r(o,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},nf}if(process.env.NODE_ENV!=="production"){var Y6=wp(),G6=!0;Jf.exports=V6()(Y6.isElement,G6)}else Jf.exports=q6()();var Z6=Jf.exports;const H=Ht(Z6),x0={disabled:!1};var K6=process.env.NODE_ENV!=="production"?H.oneOfType([H.number,H.shape({enter:H.number,exit:H.number,appear:H.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&H.oneOfType([H.string,H.shape({enter:H.string,exit:H.string,active:H.string}),H.shape({enter:H.string,enterDone:H.string,enterActive:H.string,exit:H.string,exitDone:H.string,exitActive:H.string})]);const Cb=m.createContext(null);var X6=function(t){return t.scrollTop},Go="unmounted",ni="exited",Ir="entering",ri="entered",dl="exiting",Yr=function(e){bb(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?s?(c=ni,a.appearStatus=Ir):c=ri:r.unmountOnExit||r.mountOnEnter?c=Go:c=ni,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Go?{status:ni}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ir&&o!==ri&&(a=Ir):(o===Ir||o===ri)&&(a=dl)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ir){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:oi.findDOMNode(this);o&&X6(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ni&&this.setState({status:Go})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[oi.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||x0.disabled){this.safeSetState({status:ri},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Ir},function(){a.props.onEntering(l,u),a.onTransitionEnd(f,function(){a.safeSetState({status:ri},function(){a.props.onEntered(l,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:oi.findDOMNode(this);if(!a||x0.disabled){this.safeSetState({status:ni},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:dl},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ni},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:oi.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Go)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=xp(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(Cb.Provider,{value:null},typeof o=="function"?o(i,s):m.cloneElement(m.Children.only(o),s))},t}(m.Component);Yr.contextType=Cb;Yr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:H.shape({current:typeof Element>"u"?H.any:function(e,t,n,r,i,a){var o=e[t];return H.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:H.oneOfType([H.func.isRequired,H.element.isRequired]).isRequired,in:H.bool,mountOnEnter:H.bool,unmountOnExit:H.bool,appear:H.bool,enter:H.bool,exit:H.bool,timeout:function(t){var n=K6;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:H.func,onEnter:H.func,onEntering:H.func,onEntered:H.func,onExit:H.func,onExiting:H.func,onExited:H.func}:{};function va(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:va,onEntering:va,onEntered:va,onExit:va,onExiting:va,onExited:va};Yr.UNMOUNTED=Go;Yr.EXITED=ni;Yr.ENTERING=Ir;Yr.ENTERED=ri;Yr.EXITING=dl;const io=!!(typeof window<"u"&&window.document&&window.document.createElement);var eh=!1,th=!1;try{var rf={get passive(){return eh=!0},get once(){return th=eh=!0}};io&&(window.addEventListener("test",rf,rf),window.removeEventListener("test",rf,!0))}catch{}function Tp(e,t,n,r){if(r&&typeof r!="boolean"&&!th){var i=r.once,a=r.capture,o=n;!th&&i&&(o=n.__once||function s(c){this.removeEventListener(t,s,a),n.call(this,c)},n.__once=o),e.addEventListener(t,o,eh?r:a)}e.addEventListener(t,n,r)}function nh(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Nr(e,t,n,r){return Tp(e,t,n,r),function(){nh(e,t,n,r)}}function Q6(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function J6(e){var t=li(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function e5(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||Q6(e,"transitionend",!0)},t+n),a=Nr(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Tb(e,t,n,r){n==null&&(n=J6(e)||0);var i=e5(e,n,r),a=Nr(e,"transitionend",t);return function(){i(),a()}}function _0(e,t){const n=li(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Sb(e,t){const n=_0(e,"transitionDuration"),r=_0(e,"transitionDelay"),i=Tb(e,a=>{a.target===e&&(i(),t(a))},n+r)}function kb(e){e.offsetHeight}const w0=e=>!e||typeof e=="function"?e:t=>{e.current=t};function t5(e,t){const n=w0(e),r=w0(t);return i=>{n&&n(i),r&&r(i)}}function Xn(e,t){return m.useMemo(()=>t5(e,t),[e,t])}function fl(e){return e&&"setState"in e?oi.findDOMNode(e):e??null}const Eb=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:c,...l},u)=>{const d=m.useRef(null),f=Xn(d,c),h=S=>{f(fl(S))},g=S=>R=>{S&&d.current&&S(d.current,R)},p=m.useCallback(g(e),[e]),v=m.useCallback(g(t),[t]),w=m.useCallback(g(n),[n]),_=m.useCallback(g(r),[r]),x=m.useCallback(g(i),[i]),T=m.useCallback(g(a),[a]),b=m.useCallback(g(o),[o]);return y.jsx(Yr,{ref:u,...l,onEnter:p,onEntered:w,onEntering:v,onExit:_,onExited:T,onExiting:x,addEndListener:b,nodeRef:d,children:typeof s=="function"?(S,R)=>s(S,{...R,ref:h}):m.cloneElement(s,{ref:h})})});function n5(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Bt(e){const t=n5(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Sp=e=>ue.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:oe(t.className,e)})),Ob=Sp("h4");Ob.displayName="DivStyledAsH4";const Mb=ue.forwardRef(({className:e,bsPrefix:t,as:n=Ob,...r},i)=>(t=it(t,"alert-heading"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Mb.displayName="AlertHeading";function hl(){return m.useState(null)}function r5(e,t,n,r=!1){const i=Bt(n);m.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function kp(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function $b(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const i5=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",a5=typeof document<"u",ss=a5||i5?m.useLayoutEffect:m.useEffect,o5=["as","disabled"];function s5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function c5(e){return!e||e.trim()==="#"}function Ep({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&c5(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const Op=ue.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=s5(e,o5);const[a,{tagName:o}]=Ep(Object.assign({tagName:n,disabled:r},i));return y.jsx(o,Object.assign({},i,a,{ref:t}))});Op.displayName="Button";const l5=["onKeyDown"];function u5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function d5(e){return!e||e.trim()==="#"}const Mp=ue.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=u5(e,l5);const[i]=Ep(Object.assign({tagName:"a"},r)),a=Bt(o=>{i.onKeyDown(o),n==null||n(o)});return d5(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Mp.displayName="Anchor";const Ab=ue.forwardRef(({className:e,bsPrefix:t,as:n=Mp,...r},i)=>(t=it(t,"alert-link"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Ab.displayName="AlertLink";function Rb(e){return e.code==="Escape"||e.keyCode===27}function jb(){const e=ue.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const f5={[Ir]:"show",[ri]:"show"},di=ue.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=m.useCallback((u,d)=>{kb(u),r==null||r(u,d)},[r]),{major:c}=jb(),l=c>=19?t.props.ref:t.ref;return y.jsx(Eb,{ref:a,addEndListener:Sb,...o,onEnter:s,childRef:l,children:(u,d)=>ue.cloneElement(t,{...d,className:oe("fade",e,t.props.className,f5[u],n[u])})})});di.displayName="Fade";const h5={"aria-label":H.string,onClick:H.func,variant:H.oneOf(["white"])},lu=ue.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:oe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));lu.displayName="CloseButton";lu.propTypes=h5;const Pb=ue.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:a,className:o,children:s,variant:c="primary",onClose:l,dismissible:u,transition:d=di,...f}=_p(e,{show:"onClose"}),h=it(n,"alert"),g=Bt(w=>{l&&l(!1,w)}),p=d===!0?di:d,v=y.jsxs("div",{role:"alert",...p?void 0:f,ref:t,className:oe(o,h,c&&`${h}-${c}`,u&&`${h}-dismissible`),children:[u&&y.jsx(lu,{onClick:g,"aria-label":i,variant:a}),s]});return p?y.jsx(p,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});Pb.displayName="Alert";const p5=Object.assign(Pb,{Link:Ab,Heading:Mb}),$p=ue.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},c)=>{const l=it(t,"btn"),[u,{tagName:d}]=Ep({tagName:e,disabled:a,...s}),f=d;return y.jsx(f,{...u,...s,ref:c,disabled:a,className:oe(o,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&a&&"disabled")})});$p.displayName="Button";function m5(e){const t=m.useRef(e);return t.current=e,t}function Ap(e){const t=m5(e);m.useEffect(()=>()=>t.current(),[])}const rh=2**31-1;function Ib(e,t,n){const r=n-Date.now();e.current=r<=rh?setTimeout(t,r):setTimeout(()=>Ib(e,t,n),rh)}function g5(){const e=kp(),t=m.useRef();return Ap(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=rh?t.current=setTimeout(i,a):Ib(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function v5(e,t){return ue.Children.toArray(e).some(n=>ue.isValidElement(n)&&n.type===t)}function Db({as:e,bsPrefix:t,className:n,...r}){t=it(t,"col");const i=xb(),a=_b(),o=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const h=c!==a?`-${c}`:"";u&&o.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:oe(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const Rp=ue.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=Db(e);return y.jsx(i,{...r,ref:t,className:oe(n,!o.length&&a)})});Rp.displayName="Col";var y5=Function.prototype.bind.call(Function.prototype.call,[].slice);function Dr(e,t){return y5(e.querySelectorAll(t))}function b5(e,t,n){const r=m.useRef(e!==void 0),[i,a]=m.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,m.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return a(l),d},[n])]}function Nb(){const[,e]=m.useReducer(t=>!t,!1);return e}const uu=ue.createContext(null);var C0=Object.prototype.hasOwnProperty;function T0(e,t,n){for(n of e.keys())if(Jo(n,t))return n}function Jo(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Jo(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=T0(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=T0(t,i),!i)||!Jo(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(C0.call(e,n)&&++r&&!C0.call(t,n)||!(n in t)||!Jo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function x5(e){const t=kp();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var $n="top",Zn="bottom",Kn="right",An="left",jp="auto",Gs=[$n,Zn,Kn,An],Fa="start",cs="end",_5="clippingParents",Lb="viewport",Ro="popper",w5="reference",S0=Gs.reduce(function(e,t){return e.concat([t+"-"+Fa,t+"-"+cs])},[]),Fb=[].concat(Gs,[jp]).reduce(function(e,t){return e.concat([t,t+"-"+Fa,t+"-"+cs])},[]),C5="beforeRead",T5="read",S5="afterRead",k5="beforeMain",E5="main",O5="afterMain",M5="beforeWrite",$5="write",A5="afterWrite",R5=[C5,T5,S5,k5,E5,O5,M5,$5,A5];function hr(e){return e.split("-")[0]}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gi(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function pr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pp(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ui=Math.max,pl=Math.min,Ba=Math.round;function ih(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bb(){return!/^((?!chrome|android).)*safari/i.test(ih())}function Ua(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&pr(e)&&(i=e.offsetWidth>0&&Ba(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ba(r.height)/e.offsetHeight||1);var o=Gi(e)?Fn(e):window,s=o.visualViewport,c=!Bb()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Ip(e){var t=Ua(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ub(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fi(e){return e?(e.nodeName||"").toLowerCase():null}function Wr(e){return Fn(e).getComputedStyle(e)}function j5(e){return["table","td","th"].indexOf(fi(e))>=0}function wi(e){return((Gi(e)?e.ownerDocument:e.document)||window.document).documentElement}function du(e){return fi(e)==="html"?e:e.assignedSlot||e.parentNode||(Pp(e)?e.host:null)||wi(e)}function k0(e){return!pr(e)||Wr(e).position==="fixed"?null:e.offsetParent}function P5(e){var t=/firefox/i.test(ih()),n=/Trident/i.test(ih());if(n&&pr(e)){var r=Wr(e);if(r.position==="fixed")return null}var i=du(e);for(Pp(i)&&(i=i.host);pr(i)&&["html","body"].indexOf(fi(i))<0;){var a=Wr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Zs(e){for(var t=Fn(e),n=k0(e);n&&j5(n)&&Wr(n).position==="static";)n=k0(n);return n&&(fi(n)==="html"||fi(n)==="body"&&Wr(n).position==="static")?t:n||P5(e)||t}function Dp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Ui(e,pl(t,n))}function I5(e,t,n){var r=es(e,t,n);return r>n?n:r}function Wb(){return{top:0,right:0,bottom:0,left:0}}function zb(e){return Object.assign({},Wb(),e)}function Hb(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var D5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zb(typeof t!="number"?t:Hb(t,Gs))};function N5(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=hr(n.placement),c=Dp(s),l=[An,Kn].indexOf(s)>=0,u=l?"height":"width";if(!(!a||!o)){var d=D5(i.padding,n),f=Ip(a),h=c==="y"?$n:An,g=c==="y"?Zn:Kn,p=n.rects.reference[u]+n.rects.reference[c]-o[c]-n.rects.popper[u],v=o[c]-n.rects.reference[c],w=Zs(a),_=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=p/2-v/2,T=d[h],b=_-f[u]-d[g],S=_/2-f[u]/2+x,R=es(T,S,b),M=c;n.modifiersData[r]=(t={},t[M]=R,t.centerOffset=R-S,t)}}function L5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Ub(t.elements.popper,i)&&(t.elements.arrow=i))}const F5={name:"arrow",enabled:!0,phase:"main",fn:N5,effect:L5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wa(e){return e.split("-")[1]}var B5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ba(n*i)/i||0,y:Ba(r*i)/i||0}}function E0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,g=o.y,p=g===void 0?0:g,v=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=v.x,p=v.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),x=An,T=$n,b=window;if(l){var S=Zs(n),R="clientHeight",M="clientWidth";if(S===Fn(n)&&(S=wi(n),Wr(S).position!=="static"&&s==="absolute"&&(R="scrollHeight",M="scrollWidth")),S=S,i===$n||(i===An||i===Kn)&&a===cs){T=Zn;var k=d&&S===b&&b.visualViewport?b.visualViewport.height:S[R];p-=k-r.height,p*=c?1:-1}if(i===An||(i===$n||i===Zn)&&a===cs){x=Kn;var E=d&&S===b&&b.visualViewport?b.visualViewport.width:S[M];h-=E-r.width,h*=c?1:-1}}var C=Object.assign({position:s},l&&B5),O=u===!0?U5({x:h,y:p},Fn(n)):{x:h,y:p};if(h=O.x,p=O.y,c){var $;return Object.assign({},C,($={},$[T]=_?"0":"",$[x]=w?"0":"",$.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",$))}return Object.assign({},C,(t={},t[T]=_?p+"px":"",t[x]=w?h+"px":"",t.transform="",t))}function W5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:hr(t.placement),variation:Wa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,E0(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,E0(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const z5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W5,data:{}};var Oc={passive:!0};function H5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Fn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",n.update,Oc)}),s&&c.addEventListener("resize",n.update,Oc),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Oc)}),s&&c.removeEventListener("resize",n.update,Oc)}}const V5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H5,data:{}};var q5={left:"right",right:"left",bottom:"top",top:"bottom"};function Zc(e){return e.replace(/left|right|bottom|top/g,function(t){return q5[t]})}var Y5={start:"end",end:"start"};function O0(e){return e.replace(/start|end/g,function(t){return Y5[t]})}function Np(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lp(e){return Ua(wi(e)).left+Np(e).scrollLeft}function G5(e,t){var n=Fn(e),r=wi(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Bb();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Lp(e),y:c}}function Z5(e){var t,n=wi(e),r=Np(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ui(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ui(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Lp(e),c=-r.scrollTop;return Wr(i||n).direction==="rtl"&&(s+=Ui(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function Fp(e){var t=Wr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Vb(e){return["html","body","#document"].indexOf(fi(e))>=0?e.ownerDocument.body:pr(e)&&Fp(e)?e:Vb(du(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=Vb(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Fn(r),o=i?[a].concat(a.visualViewport||[],Fp(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(ts(du(o)))}function ah(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K5(e,t){var n=Ua(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function M0(e,t,n){return t===Lb?ah(G5(e,n)):Gi(t)?K5(t,n):ah(Z5(wi(e)))}function X5(e){var t=ts(du(e)),n=["absolute","fixed"].indexOf(Wr(e).position)>=0,r=n&&pr(e)?Zs(e):e;return Gi(r)?t.filter(function(i){return Gi(i)&&Ub(i,r)&&fi(i)!=="body"}):[]}function Q5(e,t,n,r){var i=t==="clippingParents"?X5(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(c,l){var u=M0(e,l,r);return c.top=Ui(u.top,c.top),c.right=pl(u.right,c.right),c.bottom=pl(u.bottom,c.bottom),c.left=Ui(u.left,c.left),c},M0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qb(e){var t=e.reference,n=e.element,r=e.placement,i=r?hr(r):null,a=r?Wa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case $n:c={x:o,y:t.y-n.height};break;case Zn:c={x:o,y:t.y+t.height};break;case Kn:c={x:t.x+t.width,y:s};break;case An:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Dp(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case Fa:c[l]=c[l]-(t[u]/2-n[u]/2);break;case cs:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function ls(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?_5:s,l=n.rootBoundary,u=l===void 0?Lb:l,d=n.elementContext,f=d===void 0?Ro:d,h=n.altBoundary,g=h===void 0?!1:h,p=n.padding,v=p===void 0?0:p,w=zb(typeof v!="number"?v:Hb(v,Gs)),_=f===Ro?w5:Ro,x=e.rects.popper,T=e.elements[g?_:f],b=Q5(Gi(T)?T:T.contextElement||wi(e.elements.popper),c,u,o),S=Ua(e.elements.reference),R=qb({reference:S,element:x,strategy:"absolute",placement:i}),M=ah(Object.assign({},x,R)),k=f===Ro?M:S,E={top:b.top-k.top+w.top,bottom:k.bottom-b.bottom+w.bottom,left:b.left-k.left+w.left,right:k.right-b.right+w.right},C=e.modifiersData.offset;if(f===Ro&&C){var O=C[i];Object.keys(E).forEach(function($){var A=[Kn,Zn].indexOf($)>=0?1:-1,P=[$n,Zn].indexOf($)>=0?"y":"x";E[$]+=O[P]*A})}return E}function J5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Fb:c,u=Wa(r),d=u?s?S0:S0.filter(function(g){return Wa(g)===u}):Gs,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,p){return g[p]=ls(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[hr(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function eS(e){if(hr(e)===jp)return[];var t=Zc(e);return[O0(e),t,O0(t)]}function tS(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,p=n.allowedAutoPlacements,v=t.options.placement,w=hr(v),_=w===v,x=c||(_||!g?[Zc(v)]:eS(v)),T=[v].concat(x).reduce(function(J,X){return J.concat(hr(X)===jp?J5(t,{placement:X,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:p}):X)},[]),b=t.rects.reference,S=t.rects.popper,R=new Map,M=!0,k=T[0],E=0;E<T.length;E++){var C=T[E],O=hr(C),$=Wa(C)===Fa,A=[$n,Zn].indexOf(O)>=0,P=A?"width":"height",D=ls(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),F=A?$?Kn:An:$?Zn:$n;b[P]>S[P]&&(F=Zc(F));var q=Zc(F),z=[];if(a&&z.push(D[O]<=0),s&&z.push(D[F]<=0,D[q]<=0),z.every(function(J){return J})){k=C,M=!1;break}R.set(C,z)}if(M)for(var U=g?3:1,G=function(X){var K=T.find(function(re){var N=R.get(re);if(N)return N.slice(0,X).every(function(I){return I})});if(K)return k=K,"break"},ee=U;ee>0;ee--){var ie=G(ee);if(ie==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const nS={name:"flip",enabled:!0,phase:"main",fn:tS,requiresIfExists:["offset"],data:{_skip:!1}};function $0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function A0(e){return[$n,Kn,Zn,An].some(function(t){return e[t]>=0})}function rS(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ls(t,{elementContext:"reference"}),s=ls(t,{altBoundary:!0}),c=$0(o,r),l=$0(s,i,a),u=A0(c),d=A0(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const iS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rS};function aS(e,t,n){var r=hr(e),i=[An,$n].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[An,Kn].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function oS(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Fb.reduce(function(u,d){return u[d]=aS(d,t.rects,a),u},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}const sS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oS};function cS(e){var t=e.state,n=e.name;t.modifiersData[n]=qb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lS={name:"popperOffsets",enabled:!0,phase:"read",fn:cS,data:{}};function uS(e){return e==="x"?"y":"x"}function dS(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,p=g===void 0?0:g,v=ls(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),w=hr(t.placement),_=Wa(t.placement),x=!_,T=Dp(w),b=uS(T),S=t.modifiersData.popperOffsets,R=t.rects.reference,M=t.rects.popper,k=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var $,A=T==="y"?$n:An,P=T==="y"?Zn:Kn,D=T==="y"?"height":"width",F=S[T],q=F+v[A],z=F-v[P],U=h?-M[D]/2:0,G=_===Fa?R[D]:M[D],ee=_===Fa?-M[D]:-R[D],ie=t.elements.arrow,J=h&&ie?Ip(ie):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Wb(),K=X[A],re=X[P],N=es(0,R[D],J[D]),I=x?R[D]/2-U-N-K-E.mainAxis:G-N-K-E.mainAxis,L=x?-R[D]/2+U+N+re+E.mainAxis:ee+N+re+E.mainAxis,V=t.elements.arrow&&Zs(t.elements.arrow),j=V?T==="y"?V.clientTop||0:V.clientLeft||0:0,Z=($=C==null?void 0:C[T])!=null?$:0,Q=F+I-Z-j,te=F+L-Z,he=es(h?pl(q,Q):q,F,h?Ui(z,te):z);S[T]=he,O[T]=he-F}if(s){var we,me=T==="x"?$n:An,Ue=T==="x"?Zn:Kn,Ae=S[b],Ve=b==="y"?"height":"width",Ke=Ae+v[me],st=Ae-v[Ue],pe=[$n,An].indexOf(w)!==-1,Te=(we=C==null?void 0:C[b])!=null?we:0,ve=pe?Ke:Ae-R[Ve]-M[Ve]-Te+E.altAxis,Ne=pe?Ae+R[Ve]+M[Ve]-Te-E.altAxis:st,nt=h&&pe?I5(ve,Ae,Ne):es(h?ve:Ke,Ae,h?Ne:st);S[b]=nt,O[b]=nt-Ae}t.modifiersData[r]=O}}const fS={name:"preventOverflow",enabled:!0,phase:"main",fn:dS,requiresIfExists:["offset"]};function hS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pS(e){return e===Fn(e)||!pr(e)?Np(e):hS(e)}function mS(e){var t=e.getBoundingClientRect(),n=Ba(t.width)/e.offsetWidth||1,r=Ba(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gS(e,t,n){n===void 0&&(n=!1);var r=pr(t),i=pr(t)&&mS(t),a=wi(t),o=Ua(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((fi(t)!=="body"||Fp(a))&&(s=pS(t)),pr(t)?(c=Ua(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Lp(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function vS(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function yS(e){var t=vS(e);return R5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function bS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xS(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var R0={placement:"bottom",modifiers:[],strategy:"absolute"};function j0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _S(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?R0:i;return function(s,c,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},R0,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(w){var _=typeof w=="function"?w(u.options):w;p(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:Gi(s)?ts(s):s.contextElement?ts(s.contextElement):[],popper:ts(c)};var x=yS(xS([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(T){return T.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var w=u.elements,_=w.reference,x=w.popper;if(j0(_,x)){u.rects={reference:gS(_,Zs(x),u.options.strategy==="fixed"),popper:Ip(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var b=u.orderedModifiers[T],S=b.fn,R=b.options,M=R===void 0?{}:R,k=b.name;typeof S=="function"&&(u=S({state:u,options:M,name:k,instance:h})||u)}}}},update:bS(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!j0(s,c))return h;h.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var w=v.name,_=v.options,x=_===void 0?{}:_,T=v.effect;if(typeof T=="function"){var b=T({state:u,name:w,instance:h,options:x}),S=function(){};d.push(b||S)}})}function p(){d.forEach(function(v){return v()}),d=[]}return h}}const wS=_S({defaultModifiers:[iS,lS,z5,V5,sS,nS,fS,F5]}),CS=["enabled","placement","strategy","modifiers"];function TS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const SS={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},kS={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const a=r.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},ES=[];function Yb(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=ES}=n,s=TS(n,CS);const c=m.useRef(o),l=m.useRef(),u=m.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,h]=x5(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const w={},_={};Object.keys(v.elements).forEach(x=>{w[x]=v.styles[x],_[x]=v.attributes[x]}),h({state:v,styles:w,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),p=m.useMemo(()=>(Jo(c.current,o)||(c.current=o),c.current),[o]);return m.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:a,modifiers:[...p,g,SS]})},[a,i,g,r,p]),m.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=wS(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...p,kS,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function us(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var OS=process.env.NODE_ENV!=="production",Gb=function(){};if(OS){var MS=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Gb=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||MS.apply(null,[t].concat(n))}}var $S=Gb;const aa=Ht($S),P0=()=>{};function AS(e){return e.button===0}function RS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Kc=e=>e&&("current"in e?e.current:e),I0={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Zb(e,t=P0,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),a=m.useRef(!1),o=m.useCallback(l=>{const u=Kc(e);aa(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||RS(l)||!AS(l)||!!us(u,l.target)||a.current,a.current=!1},[e]),s=Bt(l=>{const u=Kc(e);u&&us(u,l.target)&&(a.current=!0)}),c=Bt(l=>{i.current||t(l)});m.useEffect(()=>{var l,u;if(n||e==null)return;const d=ro(Kc(e)),f=d.defaultView||window;let h=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;I0[r]&&(g=Nr(d,I0[r],s,!0));const p=Nr(d,r,o,!0),v=Nr(d,r,_=>{if(_===h){h=void 0;return}c(_)});let w=[];return"ontouchstart"in d.documentElement&&(w=[].slice.call(d.body.children).map(_=>Nr(_,"mousemove",P0))),()=>{g==null||g(),p(),v(),w.forEach(_=>_())}},[e,n,r,o,s,c])}function jS(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function PS(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Kb({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:c={}}){var l,u,d,f,h;const g=jS(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:a?"fixed":c.strategy,modifiers:PS(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(h=g.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const IS=["children","usePopper"];function DS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const NS=()=>{};function Xb(e={}){const t=m.useContext(uu),[n,r]=hl(),i=m.useRef(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const g=S=>{t==null||t.toggle(!1,S)},{placement:p,setMenu:v,menuElement:w,toggleElement:_}=t||{},x=Yb(_,w,Kb({placement:l||p||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:a,fixed:c,arrowElement:n,popperConfig:u})),T=Object.assign({ref:v||NS,"aria-labelledby":_==null?void 0:_.id},x.attributes.popper,{style:x.styles.popper}),b={show:h,placement:p,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?x:null,arrowProps:f?Object.assign({ref:r},x.attributes.arrow,{style:x.styles.arrow}):{}};return Zb(w,g,{clickTrigger:s,disabled:!h}),[T,b]}function Qb(e){let{children:t,usePopper:n=!0}=e,r=DS(e,IS);const[i,a]=Xb(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,a)})}Qb.displayName="DropdownMenu";const ml={prefix:String(Math.round(Math.random()*1e10)),current:0},Jb=m.createContext(ml),LS=m.createContext(!1);let FS=!!(typeof window<"u"&&window.document&&window.document.createElement),af=new WeakMap;function BS(e=!1){let t=m.useContext(Jb),n=m.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=af.get(a);o==null?af.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,af.delete(a))}n.current=++t.current}return n.current}function US(e){let t=m.useContext(Jb);t===ml&&!FS&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=BS(!!e),r=t===ml&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function WS(e){let t=m.useId(),[n]=m.useState(YS()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ml.prefix}`;return e||`${r}-${t}`}const zS=typeof m.useId=="function"?WS:US;function HS(){return!1}function VS(){return!0}function qS(e){return()=>{}}function YS(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(qS,HS,VS):m.useContext(LS)}const ex=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},D0=()=>{};function tx(){const e=zS(),{show:t=!1,toggle:n=D0,setToggle:r,menuElement:i}=m.useContext(uu)||{},a=m.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||D0,onClick:a,"aria-expanded":!!t};return i&&ex(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function nx({children:e}){const[t,n]=tx();return y.jsx(y.Fragment,{children:e(t,n)})}nx.displayName="DropdownToggle";const za=ue.createContext(null),ds=(e,t=null)=>e!=null?String(e):t||null,fu=ue.createContext(null);fu.displayName="NavContext";const GS="data-rr-ui-",ZS="rrUi";function ao(e){return`${GS}${e}`}function KS(e){return`${ZS}${e}`}const XS=["eventKey","disabled","onClick","active","as"];function QS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rx({key:e,href:t,active:n,disabled:r,onClick:i}){const a=m.useContext(za),o=m.useContext(fu),{activeKey:s}=o||{},c=ds(e,t),l=n==null&&e!=null?ds(s)===c:n;return[{onClick:Bt(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(c,d))}),"aria-disabled":r||void 0,"aria-selected":l,[ao("dropdown-item")]:""},{isActive:l}]}const ix=ue.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=Op}=e,s=QS(e,XS);const[c]=rx({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,Object.assign({},s,{ref:t},c))});ix.displayName="DropdownItem";const ax=m.createContext(io?window:void 0);ax.Provider;function hu(){return m.useContext(ax)}function N0(){const e=Nb(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Ks({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ao("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const c=hu(),[l,u]=b5(t,e,r),[d,f]=N0(),h=d.current,[g,p]=N0(),v=g.current,w=$b(l),_=m.useRef(null),x=m.useRef(!1),T=m.useContext(za),b=m.useCallback((C,O,$=O==null?void 0:O.type)=>{u(C,{originalEvent:O,source:$})},[u]),S=Bt((C,O)=>{n==null||n(C,O),b(!1,O,"select"),O.isPropagationStopped()||T==null||T(C,O)}),R=m.useMemo(()=>({toggle:b,placement:o,show:l,menuElement:h,toggleElement:v,setMenu:f,setToggle:p}),[b,o,l,h,v,f,p]);h&&w&&!l&&(x.current=h.contains(h.ownerDocument.activeElement));const M=Bt(()=>{v&&v.focus&&v.focus()}),k=Bt(()=>{const C=_.current;let O=a;if(O==null&&(O=d.current&&ex(d.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(C))return;const $=Dr(d.current,i)[0];$&&$.focus&&$.focus()});m.useEffect(()=>{l?k():x.current&&(x.current=!1,M())},[l,x,M,k]),m.useEffect(()=>{_.current=null});const E=(C,O)=>{if(!d.current)return null;const $=Dr(d.current,i);let A=$.indexOf(C)+O;return A=Math.max(0,Math.min(A,$.length)),$[A]};return r5(m.useCallback(()=>c.document,[c]),"keydown",C=>{var O,$;const{key:A}=C,P=C.target,D=(O=d.current)==null?void 0:O.contains(P),F=($=g.current)==null?void 0:$.contains(P);if(/input|textarea/i.test(P.tagName)&&(A===" "||A!=="Escape"&&D||A==="Escape"&&P.type==="search")||!D&&!F||A==="Tab"&&(!d.current||!l))return;_.current=C.type;const z={originalEvent:C,source:C.type};switch(A){case"ArrowUp":{const U=E(P,-1);U&&U.focus&&U.focus(),C.preventDefault();return}case"ArrowDown":if(C.preventDefault(),!l)u(!0,z);else{const U=E(P,1);U&&U.focus&&U.focus()}return;case"Tab":Tp(P.ownerDocument,"keyup",U=>{var G;(U.key==="Tab"&&!U.target||!((G=d.current)!=null&&G.contains(U.target)))&&u(!1,z)},{once:!0});break;case"Escape":A==="Escape"&&(C.preventDefault(),C.stopPropagation()),u(!1,z);break}}),y.jsx(za.Provider,{value:S,children:y.jsx(uu.Provider,{value:R,children:s})})}Ks.displayName="Dropdown";Ks.Menu=Qb;Ks.Toggle=nx;Ks.Item=ix;const Bp=ue.createContext({});Bp.displayName="DropdownContext";const ox=ue.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=it(t,"dropdown-divider"),y.jsx(n,{ref:a,className:oe(e,t),role:r,...i})));ox.displayName="DropdownDivider";const sx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=it(t,"dropdown-header"),y.jsx(n,{ref:a,className:oe(e,t),role:r,...i})));sx.displayName="DropdownHeader";const cx=ue.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=Mp,...s},c)=>{const l=it(e,"dropdown-item"),[u,d]=rx({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,{...s,...u,ref:c,className:oe(t,l,d.isActive&&"active",r&&"disabled")})});cx.displayName="DropdownItem";const lx=ue.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=it(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:oe(e,t),...r})));lx.displayName="DropdownItemText";const pu=ue.createContext(null);pu.displayName="InputGroupContext";const ux=ue.createContext(null);ux.displayName="NavbarContext";function dx(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?Xf(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):Xf(!1))},[t]);return Xn(n,e)}function fx(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",a=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?o:a;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const hx=ue.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const h=m.useContext(ux),g=it(e,"dropdown-menu"),{align:p,drop:v,isRTL:w}=m.useContext(Bp);n=n||p;const _=m.useContext(pu),x=[];if(n)if(typeof n=="object"){const C=Object.keys(n);if(process.env.NODE_ENV!=="production"&&aa(C.length===1,"There should only be 1 breakpoint when passing an object to `align`"),C.length){const O=C[0],$=n[O];f=$==="start",x.push(`${g}-${O}-${$}`)}}else n==="end"&&(f=!0);const T=fx(f,v,w),[b,{hasShown:S,popper:R,show:M,toggle:k}]=Xb({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&x.length===0,offset:[0,2],popperConfig:c,placement:T});if(b.ref=Xn(dx(d,"DropdownMenu"),b.ref),ss(()=>{M&&(R==null||R.update())},[M]),!S&&!o&&!_)return null;typeof s!="string"&&(b.show=M,b.close=()=>k==null?void 0:k(!1),b.align=n);let E=u.style;return R!=null&&R.placement&&(E={...u.style,...b.style},u["x-placement"]=R.placement),y.jsx(s,{...u,...b,style:E,...(x.length||h)&&{"data-bs-popper":"static"},className:oe(t,g,M&&"show",f&&`${g}-end`,l&&`${g}-${l}`,...x)})});hx.displayName="DropdownMenu";const px=ue.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=$p,...a},o)=>{const s=it(e,"dropdown-toggle"),c=m.useContext(uu);r!==void 0&&(a.bsPrefix=r);const[l]=tx();return l.ref=Xn(l.ref,dx(o,"DropdownToggle")),y.jsx(i,{className:oe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...a})});px.displayName="DropdownToggle";const mx=ue.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:a,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...h}=_p(e,{show:"onToggle"}),g=m.useContext(pu),p=it(n,"dropdown"),v=cu(),w=R=>f===!1?R==="click":f==="inside"?R!=="rootClose":f==="outside"?R!=="select":!0,_=Bt((R,M)=>{var k;!((k=M.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&M.source==="mousedown"||(M.originalEvent.currentTarget===document&&(M.source!=="keydown"||M.originalEvent.key==="Escape")&&(M.source="rootClose"),w(M.source)&&(c==null||c(R,M)))}),T=fx(o==="end",r,v),b=m.useMemo(()=>({align:o,drop:r,isRTL:v}),[o,r,v]),S={down:p,"down-centered":`${p}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(Bp.Provider,{value:b,children:y.jsx(Ks,{placement:T,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:l,itemSelector:`.${p}-item:not(.disabled):not(:disabled)`,children:g?h.children:y.jsx(u,{...h,ref:t,className:oe(a,i&&"show",S[r])})})})});mx.displayName="Dropdown";const Ha=Object.assign(mx,{Toggle:px,Menu:hx,Item:cx,ItemText:lx,Divider:ox,Header:sx}),JS={type:H.string,tooltip:H.bool,as:H.elementType},mu=ue.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>y.jsx(e,{...i,ref:a,className:oe(t,`${n}-${r?"tooltip":"feedback"}`)}));mu.displayName="Feedback";mu.propTypes=JS;const zr=ue.createContext({}),gu=ue.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},c)=>{const{controlId:l}=m.useContext(zr);return t=it(t,"form-check-input"),y.jsx(o,{...s,ref:c,type:r,id:e||l,className:oe(n,t,i&&"is-valid",a&&"is-invalid")})});gu.displayName="FormCheckInput";const gl=ue.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=m.useContext(zr);return e=it(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||a,className:oe(t,e)})});gl.displayName="FormCheckLabel";const gx=ue.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:a=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:h="",type:g="checkbox",label:p,children:v,as:w="input",..._},x)=>{t=it(t,"form-check"),n=it(n,"form-switch");const{controlId:T}=m.useContext(zr),b=m.useMemo(()=>({controlId:e||T}),[T,e]),S=!v&&p!=null&&p!==!1||v5(v,gl),R=y.jsx(gu,{..._,type:g==="switch"?"checkbox":g,ref:x,isValid:o,isInvalid:s,disabled:a,as:w});return y.jsx(zr.Provider,{value:b,children:y.jsx("div",{style:f,className:oe(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[R,S&&y.jsx(gl,{title:h,children:p}),l&&y.jsx(mu,{type:u,tooltip:c,children:l})]})})})});gx.displayName="FormCheck";const vl=Object.assign(gx,{Input:gu,Label:gl}),vx=ue.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:a,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:h}=m.useContext(zr);return e=it(e,"form-control"),process.env.NODE_ENV!=="production"&&aa(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||h,className:oe(a,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});vx.displayName="FormControl";const yx=Object.assign(vx,{Feedback:mu}),bx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"form-floating"),y.jsx(n,{ref:i,className:oe(e,t),...r})));bx.displayName="FormFloating";const Up=ue.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(zr.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});Up.displayName="FormGroup";const xx=ue.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:c}=m.useContext(zr);t=it(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=oe(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&aa(c==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||c,n?y.jsx(Rp,{ref:s,as:"label",className:u,htmlFor:a,...o}):y.jsx(e,{ref:s,className:u,htmlFor:a,...o})});xx.displayName="FormLabel";const _x=ue.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=m.useContext(zr);return e=it(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:oe(t,e),id:n||a})});_x.displayName="FormRange";const Wp=ue.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},c)=>{const{controlId:l}=m.useContext(zr);return e=it(e,"form-select"),y.jsx("select",{...s,size:n,ref:c,className:oe(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||l})});Wp.displayName="FormSelect";const wx=ue.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=it(e,"form-text"),y.jsx(n,{...i,ref:a,className:oe(t,e,r&&"text-muted")})));wx.displayName="FormText";const Cx=ue.forwardRef((e,t)=>y.jsx(vl,{...e,ref:t,type:"switch"}));Cx.displayName="Switch";const ek=Object.assign(Cx,{Input:vl.Input,Label:vl.Label}),zp=ue.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=it(e,"form-floating"),y.jsxs(Up,{ref:o,className:oe(t,e),controlId:r,...a,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));zp.displayName="FloatingLabel";const tk={_ref:H.any,validated:H.bool,as:H.elementType},Hp=ue.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:oe(e,t&&"was-validated")}));Hp.displayName="Form";Hp.propTypes=tk;const Tr=Object.assign(Hp,{Group:Up,Control:yx,Floating:bx,Check:vl,Switch:ek,Label:xx,Text:wx,Range:_x,Select:Wp,FloatingLabel:zp}),Tx=ue.createContext(null),nk=["as","active","eventKey"];function rk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Sx({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=m.useContext(za),s=m.useContext(fu),c=m.useContext(Tx);let l=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[ao("event-key")]=e,u.id=d||r,l=n==null&&e!=null?s.activeKey===e:n,(l||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=l,l||(u.tabIndex=-1),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=Bt(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:l}]}const kx=ue.forwardRef((e,t)=>{let{as:n=Op,active:r,eventKey:i}=e,a=rk(e,nk);const[o,s]=Sx(Object.assign({key:ds(i,a.href),active:r},a));return o[ao("active")]=s.isActive,y.jsx(n,Object.assign({},a,o,{ref:t}))});kx.displayName="NavItem";const ik=["as","onSelect","activeKey","role","onKeyDown"];function ak(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const L0=()=>{},F0=ao("event-key"),Ex=ue.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=ak(e,ik);const c=Nb(),l=m.useRef(!1),u=m.useContext(za),d=m.useContext(Tx);let f,h;d&&(a=a||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const g=m.useRef(null),p=x=>{const T=g.current;if(!T)return null;const b=Dr(T,`[${F0}]:not([aria-disabled=true])`),S=T.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const R=b.indexOf(S);if(R===-1)return null;let M=R+x;return M>=b.length&&(M=0),M<0&&(M=b.length-1),b[M]},v=(x,T)=>{x!=null&&(r==null||r(x,T),u==null||u(x,T))},w=x=>{if(o==null||o(x),!d)return;let T;switch(x.key){case"ArrowLeft":case"ArrowUp":T=p(-1);break;case"ArrowRight":case"ArrowDown":T=p(1);break;default:return}T&&(x.preventDefault(),v(T.dataset[KS("EventKey")]||null,x),l.current=!0,c())};m.useEffect(()=>{if(g.current&&l.current){const x=g.current.querySelector(`[${F0}][aria-selected=true]`);x==null||x.focus()}l.current=!1});const _=Xn(t,g);return y.jsx(za.Provider,{value:v,children:y.jsx(fu.Provider,{value:{role:a,activeKey:ds(i),getControlledId:f||L0,getControllerId:h||L0},children:y.jsx(n,Object.assign({},s,{onKeyDown:w,ref:_,role:a}))})})});Ex.displayName="Nav";const ok=Object.assign(Ex,{Item:kx}),vu=ue.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...c},l)=>{e=it(e,"list-group-item");const[u,d]=Sx({key:ds(r,c.href),active:t,...c}),f=Bt(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0);const h=s||(o?c.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&aa(s||!(!o&&c.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:l,...c,...u,onClick:f,className:oe(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});vu.displayName="ListGroupItem";const Ox=ue.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...c}=_p(e,{activeKey:"onSelect"}),l=it(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&aa(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(ok,{ref:t,...c,as:s,className:oe(n,l,i&&`${l}-${i}`,u&&`${l}-${u}`,o&&`${l}-numbered`)})});Ox.displayName="ListGroup";const Mx=Object.assign(Ox,{Item:vu});var Mc;function B0(e){if((!Mc&&Mc!==0||e)&&io){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Mc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mc}function of(e){e===void 0&&(e=ro());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function sk(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const U0=ao("modal-open");class Vp{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return sk(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(li(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(U0,""),li(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(U0),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const sf=(e,t)=>io?e==null?(t||ro()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function oh(e,t){const n=hu(),[r,i]=m.useState(()=>sf(e,n==null?void 0:n.document));if(!r){const a=sf(e);a&&i(a)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const a=sf(e);a!==r&&i(a)},[e,r]),r}function ck({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=m.useRef(null),o=m.useRef(t),s=Bt(n);m.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const c=Xn(a,e.ref),l=m.cloneElement(e,{ref:c});return t?l:i||!o.current&&r?null:l}const lk=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function uk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dk(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:c}=e,l=uk(e,lk);const{major:u}=jb(),d=u>=19?c.props.ref:c.ref,f=m.useRef(null),h=Xn(f,typeof c=="function"?null:d),g=S=>R=>{S&&f.current&&S(f.current,R)},p=m.useCallback(g(t),[t]),v=m.useCallback(g(n),[n]),w=m.useCallback(g(r),[r]),_=m.useCallback(g(i),[i]),x=m.useCallback(g(a),[a]),T=m.useCallback(g(o),[o]),b=m.useCallback(g(s),[s]);return Object.assign({},l,{nodeRef:f},t&&{onEnter:p},n&&{onEntering:v},r&&{onEntered:w},i&&{onExit:_},a&&{onExiting:x},o&&{onExited:T},s&&{addEndListener:b},{children:typeof c=="function"?(S,R)=>c(S,Object.assign({},R,{ref:h})):m.cloneElement(c,{ref:h})})}const fk=["component"];function hk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const pk=ue.forwardRef((e,t)=>{let{component:n}=e,r=hk(e,fk);const i=dk(r);return y.jsx(n,Object.assign({ref:t},i))});function mk({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Bt(t);return ss(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),ss(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function gk({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=m.useState(!t);t&&a&&o(!1);const s=mk({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(o(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||o(!0),d})}}),c=Xn(s,e.ref);return a&&!t?null:m.cloneElement(e,{ref:c})}function sh(e,t,n){return e?y.jsx(pk,Object.assign({},n,{component:e})):t?y.jsx(gk,Object.assign({},n,{transition:t})):y.jsx(ck,Object.assign({},n))}const vk=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function yk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let cf;function bk(e){return cf||(cf=new Vp({ownerDocument:e==null?void 0:e.document})),cf}function xk(e){const t=hu(),n=e||bk(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const $x=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:g,autoFocus:p=!0,enforceFocus:v=!0,restoreFocus:w=!0,restoreFocusOptions:_,renderDialog:x,renderBackdrop:T=te=>y.jsx("div",Object.assign({},te)),manager:b,container:S,onShow:R,onHide:M=()=>{},onExit:k,onExited:E,onExiting:C,onEnter:O,onEntering:$,onEntered:A}=e,P=yk(e,vk);const D=hu(),F=oh(S),q=xk(b),z=kp(),U=$b(n),[G,ee]=m.useState(!n),ie=m.useRef(null);m.useImperativeHandle(t,()=>q,[q]),io&&!U&&n&&(ie.current=of(D==null?void 0:D.document)),n&&G&&ee(!1);const J=Bt(()=>{if(q.add(),L.current=Nr(document,"keydown",N),I.current=Nr(document,"focus",()=>setTimeout(K),!0),R&&R(),p){var te,he;const we=of((te=(he=q.dialog)==null?void 0:he.ownerDocument)!=null?te:D==null?void 0:D.document);q.dialog&&we&&!us(q.dialog,we)&&(ie.current=we,q.dialog.focus())}}),X=Bt(()=>{if(q.remove(),L.current==null||L.current(),I.current==null||I.current(),w){var te;(te=ie.current)==null||te.focus==null||te.focus(_),ie.current=null}});m.useEffect(()=>{!n||!F||J()},[n,F,J]),m.useEffect(()=>{G&&X()},[G,X]),Ap(()=>{X()});const K=Bt(()=>{if(!v||!z()||!q.isTopModal())return;const te=of(D==null?void 0:D.document);q.dialog&&te&&!us(q.dialog,te)&&q.dialog.focus()}),re=Bt(te=>{te.target===te.currentTarget&&(l==null||l(te),s===!0&&M())}),N=Bt(te=>{c&&Rb(te)&&q.isTopModal()&&(u==null||u(te),te.defaultPrevented||M())}),I=m.useRef(),L=m.useRef(),V=(...te)=>{ee(!0),E==null||E(...te)};if(!F)return null;const j=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},P,{style:a,className:i,tabIndex:-1});let Z=x?x(j):y.jsx("div",Object.assign({},j,{children:ue.cloneElement(o,{role:"document"})}));Z=sh(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:C,onExited:V,onEnter:O,onEntering:$,onEntered:A,children:Z});let Q=null;return s&&(Q=T({ref:q.setBackdropRef,onClick:re}),Q=sh(h,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),y.jsx(y.Fragment,{children:oi.createPortal(y.jsxs(y.Fragment,{children:[Q,Z]}),F)})});$x.displayName="Modal";const Ax=Object.assign($x,{Manager:Vp});function ch(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function _k(e,t){e.classList?e.classList.add(t):ch(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function W0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=W0(e.className,t):e.setAttribute("class",W0(e.className&&e.className.baseVal||"",t))}const ya={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Rx extends Vp{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,li(n,{[t]:`${parseFloat(li(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],li(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(_k(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Dr(n,ya.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),Dr(n,ya.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),Dr(n,ya.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();wk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Dr(n,ya.FIXED_CONTENT).forEach(a=>this.restore(r,a)),Dr(n,ya.STICKY_CONTENT).forEach(a=>this.restore(i,a)),Dr(n,ya.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let lf;function jx(e){return lf||(lf=new Rx(e)),lf}const Px=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"modal-body"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Px.displayName="ModalBody";const qp=ue.createContext({onHide(){}}),Yp=ue.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...c},l)=>{e=it(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:l,className:oe(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:y.jsx("div",{className:oe(`${e}-content`,n),children:o})})});Yp.displayName="ModalDialog";const Ix=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"modal-footer"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Ix.displayName="ModalFooter";const Dx=ue.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=m.useContext(qp),c=Bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...a,children:[i,n&&y.jsx(lu,{"aria-label":e,variant:t,onClick:c})]})}),Nx=ue.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=it(e,"modal-header"),y.jsx(Dx,{ref:a,...i,className:oe(t,e),closeLabel:n,closeButton:r})));Nx.displayName="ModalHeader";const Ck=Sp("h4"),Lx=ue.forwardRef(({className:e,bsPrefix:t,as:n=Ck,...r},i)=>(t=it(t,"modal-title"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Lx.displayName="ModalTitle";function Tk(e){return y.jsx(di,{...e,timeout:null})}function Sk(e){return y.jsx(di,{...e,timeout:null})}const Fx=ue.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=Yp,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:g=!0,onEscapeKeyDown:p,onShow:v,onHide:w,container:_,autoFocus:x=!0,enforceFocus:T=!0,restoreFocus:b=!0,restoreFocusOptions:S,onEntered:R,onExit:M,onExiting:k,onEnter:E,onEntering:C,onExited:O,backdropClassName:$,manager:A,...P},D)=>{const[F,q]=m.useState({}),[z,U]=m.useState(!1),G=m.useRef(!1),ee=m.useRef(!1),ie=m.useRef(null),[J,X]=hl(),K=Xn(D,X),re=Bt(w),N=cu();e=it(e,"modal");const I=m.useMemo(()=>({onHide:re}),[re]);function L(){return A||jx({isRTL:N})}function V(ve){if(!io)return;const Ne=L().getScrollbarWidth()>0,nt=ve.scrollHeight>ro(ve).documentElement.clientHeight;q({paddingRight:Ne&&!nt?B0():void 0,paddingLeft:!Ne&&nt?B0():void 0})}const j=Bt(()=>{J&&V(J.dialog)});Ap(()=>{nh(window,"resize",j),ie.current==null||ie.current()});const Z=()=>{G.current=!0},Q=ve=>{G.current&&J&&ve.target===J.dialog&&(ee.current=!0),G.current=!1},te=()=>{U(!0),ie.current=Tb(J.dialog,()=>{U(!1)})},he=ve=>{ve.target===ve.currentTarget&&te()},we=ve=>{if(h==="static"){he(ve);return}if(ee.current||ve.target!==ve.currentTarget){ee.current=!1;return}w==null||w()},me=ve=>{g?p==null||p(ve):(ve.preventDefault(),h==="static"&&te())},Ue=(ve,Ne)=>{ve&&V(ve),E==null||E(ve,Ne)},Ae=ve=>{ie.current==null||ie.current(),M==null||M(ve)},Ve=(ve,Ne)=>{C==null||C(ve,Ne),Tp(window,"resize",j)},Ke=ve=>{ve&&(ve.style.display=""),O==null||O(ve),nh(window,"resize",j)},st=m.useCallback(ve=>y.jsx("div",{...ve,className:oe(`${e}-backdrop`,$,!f&&"show")}),[f,$,e]),pe={...n,...F};pe.display="block";const Te=ve=>y.jsx("div",{role:"dialog",...ve,style:pe,className:oe(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?we:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:y.jsx(o,{...P,onMouseDown:Z,className:r,contentClassName:i,children:a})});return y.jsx(qp.Provider,{value:I,children:y.jsx(Ax,{show:d,ref:K,backdrop:h,container:_,keyboard:!0,autoFocus:x,enforceFocus:T,restoreFocus:b,restoreFocusOptions:S,onEscapeKeyDown:me,onShow:v,onHide:w,onEnter:Ue,onEntering:Ve,onEntered:R,onExit:Ae,onExiting:k,onExited:Ke,manager:L(),transition:f?Tk:void 0,backdropTransition:f?Sk:void 0,renderBackdrop:st,renderDialog:Te})})});Fx.displayName="Modal";const Mn=Object.assign(Fx,{Body:Px,Header:Nx,Title:Lx,Footer:Ix,Dialog:Yp,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),kk=()=>{};function Ek(e,t,{disabled:n,clickTrigger:r}={}){const i=t||kk;Zb(e,i,{disabled:n,clickTrigger:r});const a=Bt(o=>{Rb(o)&&i(o)});m.useEffect(()=>{if(n||e==null)return;const o=ro(Kc(e));let s=(o.defaultView||window).event;const c=Nr(o,"keyup",l=>{if(l===s){s=void 0;return}a(l)});return()=>{c()}},[e,n,a])}const Bx=ue.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:c}=e,[l,u]=hl(),[d,f]=hl(),h=Xn(u,t),g=oh(e.container),p=oh(e.target),[v,w]=m.useState(!e.show),_=Yb(p,l,Kb({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&v&&w(!1);const x=(...C)=>{w(!0),e.onExited&&e.onExited(...C)},T=e.show||!v;if(Ek(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:b,onExiting:S,onEnter:R,onEntering:M,onEntered:k}=e;let E=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return E=sh(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:b,onExiting:S,onExited:x,onEnter:R,onEntering:M,onEntered:k}),g?oi.createPortal(E,g):null});Bx.displayName="Overlay";const Ux=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"popover-header"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Ux.displayName="PopoverHeader";const Gp=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"popover-body"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Gp.displayName="PopoverBody";function Wx(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function zx(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Ok=ue.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{const f=it(e,"popover"),h=cu(),[g]=(t==null?void 0:t.split("-"))||[],p=Wx(g,h);let v=r;return l&&!s&&(v={...r,...zx(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":g,className:oe(n,f,g&&`bs-popover-${p}`),...u,children:[y.jsx("div",{className:"popover-arrow",...o}),a?y.jsx(Gp,{children:i}):i]})}),Xc=Object.assign(Ok,{Header:Ux,Body:Gp,POPPER_OFFSET:[0,8]}),Hx=ue.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:c,...l},u)=>{e=it(e,"tooltip");const d=cu(),[f]=(t==null?void 0:t.split("-"))||[],h=Wx(f,d);let g=r;return c&&!o&&(g={...r,...zx(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:oe(n,e,`bs-tooltip-${h}`),...l,children:[y.jsx("div",{className:"tooltip-arrow",...a}),y.jsx("div",{className:`${e}-inner`,children:i})]})});Hx.displayName="Tooltip";const Vx=Object.assign(Hx,{TOOLTIP_OFFSET:[0,6]});function Mk(e){const t=m.useRef(null),n=it(void 0,"popover"),r=it(void 0,"tooltip"),i=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(ch(t.current,n))return Xc.POPPER_OFFSET;if(ch(t.current,r))return Vx.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function $k(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(fl(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(fl(i)))}const qx=ue.forwardRef(({children:e,transition:t=di,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const c=m.useRef({}),[l,u]=m.useState(null),[d,f]=Mk(o.offset),h=Xn(s,d),g=t===!0?di:t||void 0,p=Bt(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return ss(()=>{l&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,o.target]),m.useEffect(()=>{a||u(null)},[a]),y.jsx(Bx,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:p},transition:g,rootClose:r,placement:i,show:a,children:(v,{arrowProps:w,popper:_,show:x})=>{var T;$k(v,w);const b=_==null?void 0:_.placement,S=Object.assign(c.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||(T=_.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),R=!!l;return typeof e=="function"?e({...v,placement:b,show:x,...!t&&x&&{className:"show"},popper:S,arrowProps:w,hasDoneInitialMeasure:R}):ue.cloneElement(e,{...v,placement:b,arrowProps:w,popper:S,hasDoneInitialMeasure:R,className:oe(e.props.className,!t&&x&&"show"),style:{...e.props.style,...v.style}})}})});qx.displayName="Overlay";function Ak(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function z0(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!us(i,a)&&e(...t)}H.oneOf(["click","hover","focus"]);const Yx=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const d=m.useRef(null),f=Xn(d,n.ref),h=g5(),g=m.useRef(""),[p,v]=yb(i,a,o),w=Ak(s),{onFocus:_,onBlur:x,onClick:T}=typeof n!="function"?ue.Children.only(n).props:{},b=P=>{f(fl(P))},S=m.useCallback(()=>{if(h.clear(),g.current="show",!w.show){v(!0);return}h.set(()=>{g.current==="show"&&v(!0)},w.show)},[w.show,v,h]),R=m.useCallback(()=>{if(h.clear(),g.current="hide",!w.hide){v(!1);return}h.set(()=>{g.current==="hide"&&v(!1)},w.hide)},[w.hide,v,h]),M=m.useCallback((...P)=>{S(),_==null||_(...P)},[S,_]),k=m.useCallback((...P)=>{R(),x==null||x(...P)},[R,x]),E=m.useCallback((...P)=>{v(!p),T==null||T(...P)},[T,v,p]),C=m.useCallback((...P)=>{z0(S,P,"fromElement")},[S]),O=m.useCallback((...P)=>{z0(R,P,"toElement")},[R]),$=e==null?[]:[].concat(e),A={ref:b};return $.indexOf("click")!==-1&&(A.onClick=E),$.indexOf("focus")!==-1&&(A.onFocus=M,A.onBlur=k),$.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&aa($.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),A.onMouseOver=C,A.onMouseOut=O),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(A):m.cloneElement(n,A),y.jsx(qx,{...u,show:p,onHide:R,flip:l,placement:c,popperConfig:r,target:d.current,children:t})]})},Zp=ue.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=it(e,"spinner");const c=`${e}-${n}`;return y.jsx(i,{ref:s,...o,className:oe(a,c,r&&`${c}-${r}`,t&&`text-${t}`)})});Zp.displayName="Spinner";var Gx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},H0=m.createContext&&m.createContext(Gx),Rk=["attr","size","title"];function jk(e,t){if(e==null)return{};var n=Pk(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}function V0(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 bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(n),!0).forEach(function(r){Ik(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ik(e,t,n){return t=Dk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dk(e){var t=Nk(e,"string");return typeof t=="symbol"?t:t+""}function Nk(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zx(e){return e&&e.map((t,n)=>m.createElement(t.tag,bl({key:n},t.attr),Zx(t.child)))}function tt(e){return t=>m.createElement(Lk,yl({attr:bl({},e.attr)},t),Zx(e.child))}function Lk(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=jk(e,Rk),s=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),m.createElement("svg",yl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:bl(bl({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&m.createElement("title",null,a),e.children)};return H0!==void 0?m.createElement(H0.Consumer,null,n=>t(n)):t(Gx)}function Fk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Xs(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function Bk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function Uk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function Wk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function zk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function Hk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Vk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function qk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Kx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function Yk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Gk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Zk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Kk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Xk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Qk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function Jk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Xx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function eE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function tE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function nE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function rE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function iE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function aE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"},child:[]}]})(e)}function oE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function sE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Qx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function cE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function Jx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function lE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function uE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function dE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Kt=m.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),e2=m.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),t2=m.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),n2=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:a}=m.useContext(t2),o=m.useCallback(c=>{r(),i.current(c)},[r,i]),s=m.useCallback(async(c,l)=>(a(u=>({...u,...l})),n(c),new Promise(u=>{i.current=u})),[i,a,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let fE={data:""},hE=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||fE,pE=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,mE=/\/\*[^]*?\*\/| +/g,q0=/\n+/g,ii=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?ii(o,a):a+"{"+ii(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=ii(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=ii.p?ii.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ar={},r2=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+r2(e[n]);return t}return e},gE=(e,t,n,r,i)=>{let a=r2(e),o=Ar[a]||(Ar[a]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(a));if(!Ar[o]){let c=a!==e?e:(l=>{let u,d,f=[{}];for(;u=pE.exec(l.replace(mE,""));)u[4]?f.shift():u[3]?(d=u[3].replace(q0," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(q0," ").trim();return f[0]})(e);Ar[o]=ii(i?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&Ar.g?Ar.g:null;return n&&(Ar.g=Ar[o]),((c,l,u,d)=>{d?l.data=l.data.replace(d,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(Ar[o],t,r,s),o},vE=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=c?"."+c:s&&typeof s=="object"?s.props?"":ii(s,""):s===!1?"":s}return r+i+(o??"")},"");function yu(e){let t=this||{},n=e.call?e(t.p):e;return gE(n.unshift?n.raw?vE(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,hE(t.target),t.g,t.o,t.k)}let i2,lh,uh;yu.bind({g:1});let Hr=yu.bind({k:1});function yE(e,t,n,r){ii.p=t,i2=e,lh=n,uh=r}function Ci(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),c=s.className||i.className;n.p=Object.assign({theme:lh&&lh()},s),n.o=/ *go\d+/.test(c),s.className=yu.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),uh&&l[0]&&uh(s),i2(l,s)}return i}}var bE=e=>typeof e=="function",xl=(e,t)=>bE(e)?e(t):e,xE=(()=>{let e=0;return()=>(++e).toString()})(),a2=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),_E=20,Qc=new Map,wE=1e3,Y0=e=>{if(Qc.has(e))return;let t=setTimeout(()=>{Qc.delete(e),oa({type:4,toastId:e})},wE);Qc.set(e,t)},CE=e=>{let t=Qc.get(e);t&&clearTimeout(t)},dh=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,_E)};case 1:return t.toast.id&&CE(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?dh(e,{type:1,toast:n}):dh(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Y0(r):e.toasts.forEach(a=>{Y0(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},Jc=[],el={toasts:[],pausedAt:void 0},oa=e=>{el=dh(el,e),Jc.forEach(t=>{t(el)})},TE={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},SE=(e={})=>{let[t,n]=m.useState(el);m.useEffect(()=>(Jc.push(n),()=>{let i=Jc.indexOf(n);i>-1&&Jc.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||TE[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},kE=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||xE()}),Qs=e=>(t,n)=>{let r=kE(t,e,n);return oa({type:2,toast:r}),r.id},Dn=(e,t)=>Qs("blank")(e,t);Dn.error=Qs("error");Dn.success=Qs("success");Dn.loading=Qs("loading");Dn.custom=Qs("custom");Dn.dismiss=e=>{oa({type:3,toastId:e})};Dn.remove=e=>oa({type:4,toastId:e});Dn.promise=(e,t,n)=>{let r=Dn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Dn.success(xl(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Dn.error(xl(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var EE=(e,t)=>{oa({type:1,toast:{id:e,height:t}})},OE=()=>{oa({type:5,time:Date.now()})},ME=e=>{let{toasts:t,pausedAt:n}=SE(e);m.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(c<0){s.visible&&Dn.dismiss(s.id);return}return setTimeout(()=>Dn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=m.useCallback(()=>{n&&oa({type:6,time:Date.now()})},[n]),i=m.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=o||{},u=t.filter(h=>(h.position||l)===(a.position||l)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,g)=>g<d&&h.visible).length;return u.filter(h=>h.visible).slice(...s?[f+1]:[0,f]).reduce((h,g)=>h+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:EE,startPause:OE,endPause:r,calculateOffset:i}}},$E=Hr`
52
+ */var Kd,m0;function z6(){if(m0)return Kd;m0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kd=i()?Object.assign:function(a,o){for(var s,c=r(a),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},Kd}var Xd,g0;function Tp(){if(g0)return Xd;g0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xd=e,Xd}var Qd,v0;function Cb(){return v0||(v0=1,Qd=Function.call.bind(Object.prototype.hasOwnProperty)),Qd}var Jd,y0;function H6(){if(y0)return Jd;y0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tp(),n={},r=Cb();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,u,c,s,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Jd=i,Jd}var ef,b0;function V6(){if(b0)return ef;b0=1;var e=Cp(),t=z6(),n=Tp(),r=Cb(),i=H6(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return ef=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(U){var G=U&&(l&&U[l]||U[u]);if(typeof G=="function")return G}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:x,element:T(),elementType:b(),instanceOf:S,node:E(),objectOf:M,oneOf:R,oneOfType:k,shape:O,exact:$};function g(U,G){return U===G?U!==0||1/U===1/G:U!==U&&G!==G}function p(U,G){this.message=U,this.data=G&&typeof G=="object"?G:{},this.stack=""}p.prototype=Error.prototype;function v(U){if(process.env.NODE_ENV!=="production")var G={},ee=0;function ie(X,K,re,N,I,L,V){if(N=N||f,L=L||re,V!==n){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=N+":"+re;!G[Z]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+L+"` prop on `"+N+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[Z]=!0,ee++)}}return K[re]==null?X?K[re]===null?new p("The "+I+" `"+L+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new p("The "+I+" `"+L+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:U(K,re,N,I,L)}var J=ie.bind(null,!1);return J.isRequired=ie.bind(null,!0),J}function w(U){function G(ee,ie,J,X,K,re){var N=ee[ie],I=D(N);if(I!==U){var L=F(N);return new p("Invalid "+X+" `"+K+"` of type "+("`"+L+"` supplied to `"+J+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return v(G)}function _(){return v(o)}function x(U){function G(ee,ie,J,X,K){if(typeof U!="function")return new p("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var re=ee[ie];if(!Array.isArray(re)){var N=D(re);return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected an array."))}for(var I=0;I<re.length;I++){var L=U(re,I,J,X,K+"["+I+"]",n);if(L instanceof Error)return L}return null}return v(G)}function T(){function U(G,ee,ie,J,X){var K=G[ee];if(!s(K)){var re=D(K);return new p("Invalid "+J+" `"+X+"` of type "+("`"+re+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return v(U)}function b(){function U(G,ee,ie,J,X){var K=G[ee];if(!e.isValidElementType(K)){var re=D(K);return new p("Invalid "+J+" `"+X+"` of type "+("`"+re+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return v(U)}function S(U){function G(ee,ie,J,X,K){if(!(ee[ie]instanceof U)){var re=U.name||f,N=z(ee[ie]);return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected ")+("instance of `"+re+"`."))}return null}return v(G)}function R(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function G(ee,ie,J,X,K){for(var re=ee[ie],N=0;N<U.length;N++)if(g(re,U[N]))return null;var I=JSON.stringify(U,function(V,j){var Z=F(j);return Z==="symbol"?String(j):j});return new p("Invalid "+X+" `"+K+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+I+"."))}return v(G)}function M(U){function G(ee,ie,J,X,K){if(typeof U!="function")return new p("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type "+("`"+N+"` supplied to `"+J+"`, expected an object."));for(var I in re)if(r(re,I)){var L=U(re,I,J,X,K+"."+I,n);if(L instanceof Error)return L}return null}return v(G)}function k(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var G=0;G<U.length;G++){var ee=U[G];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ee)+" at index "+G+"."),o}function ie(J,X,K,re,N){for(var I=[],L=0;L<U.length;L++){var V=U[L],j=V(J,X,K,re,N,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&I.push(j.data.expectedType)}var Z=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new p("Invalid "+re+" `"+N+"` supplied to "+("`"+K+"`"+Z+"."))}return v(ie)}function E(){function U(G,ee,ie,J,X){return A(G[ee])?null:new p("Invalid "+J+" `"+X+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return v(U)}function C(U,G,ee,ie,J){return new p((U||"React class")+": "+G+" type `"+ee+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function O(U){function G(ee,ie,J,X,K){var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+N+"` "+("supplied to `"+J+"`, expected `object`."));for(var I in U){var L=U[I];if(typeof L!="function")return C(J,X,K,I,F(L));var V=L(re,I,J,X,K+"."+I,n);if(V)return V}return null}return v(G)}function $(U){function G(ee,ie,J,X,K){var re=ee[ie],N=D(re);if(N!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+N+"` "+("supplied to `"+J+"`, expected `object`."));var I=t({},ee[ie],U);for(var L in I){var V=U[L];if(r(U,L)&&typeof V!="function")return C(J,X,K,L,F(V));if(!V)return new p("Invalid "+X+" `"+K+"` key `"+L+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[ie],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(U),null," "));var j=V(re,L,J,X,K+"."+L,n);if(j)return j}return null}return v(G)}function A(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(A);if(U===null||s(U))return!0;var G=d(U);if(G){var ee=G.call(U),ie;if(G!==U.entries){for(;!(ie=ee.next()).done;)if(!A(ie.value))return!1}else for(;!(ie=ee.next()).done;){var J=ie.value;if(J&&!A(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(U,G){return U==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function D(U){var G=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":P(G,U)?"symbol":G}function F(U){if(typeof U>"u"||U===null)return""+U;var G=D(U);if(G==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return G}function q(U){var G=F(U);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function z(U){return!U.constructor||!U.constructor.name?f:U.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},ef}var tf,x0;function q6(){if(x0)return tf;x0=1;var e=Tp();function t(){}function n(){}return n.resetWarningCache=t,tf=function(){function r(o,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},tf}if(process.env.NODE_ENV!=="production"){var Y6=Cp(),G6=!0;Jf.exports=V6()(Y6.isElement,G6)}else Jf.exports=q6()();var Z6=Jf.exports;const H=Ht(Z6),_0={disabled:!1};var K6=process.env.NODE_ENV!=="production"?H.oneOfType([H.number,H.shape({enter:H.number,exit:H.number,appear:H.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&H.oneOfType([H.string,H.shape({enter:H.string,exit:H.string,active:H.string}),H.shape({enter:H.string,enterDone:H.string,enterActive:H.string,exit:H.string,exitDone:H.string,exitActive:H.string})]);const Tb=m.createContext(null);var X6=function(t){return t.scrollTop},Go="unmounted",ni="exited",Ir="entering",ri="entered",ul="exiting",Yr=function(e){xb(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?s?(c=ni,a.appearStatus=Ir):c=ri:r.unmountOnExit||r.mountOnEnter?c=Go:c=ni,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Go?{status:ni}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ir&&o!==ri&&(a=Ir):(o===Ir||o===ri)&&(a=ul)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ir){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:oi.findDOMNode(this);o&&X6(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ni&&this.setState({status:Go})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[oi.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||_0.disabled){this.safeSetState({status:ri},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Ir},function(){a.props.onEntering(l,u),a.onTransitionEnd(f,function(){a.safeSetState({status:ri},function(){a.props.onEntered(l,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:oi.findDOMNode(this);if(!a||_0.disabled){this.safeSetState({status:ni},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ul},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ni},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:oi.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Go)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=_p(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(Tb.Provider,{value:null},typeof o=="function"?o(i,s):m.cloneElement(m.Children.only(o),s))},t}(m.Component);Yr.contextType=Tb;Yr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:H.shape({current:typeof Element>"u"?H.any:function(e,t,n,r,i,a){var o=e[t];return H.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:H.oneOfType([H.func.isRequired,H.element.isRequired]).isRequired,in:H.bool,mountOnEnter:H.bool,unmountOnExit:H.bool,appear:H.bool,enter:H.bool,exit:H.bool,timeout:function(t){var n=K6;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:H.func,onEnter:H.func,onEntering:H.func,onEntered:H.func,onExit:H.func,onExiting:H.func,onExited:H.func}:{};function va(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:va,onEntering:va,onEntered:va,onExit:va,onExiting:va,onExited:va};Yr.UNMOUNTED=Go;Yr.EXITED=ni;Yr.ENTERING=Ir;Yr.ENTERED=ri;Yr.EXITING=ul;const io=!!(typeof window<"u"&&window.document&&window.document.createElement);var eh=!1,th=!1;try{var nf={get passive(){return eh=!0},get once(){return th=eh=!0}};io&&(window.addEventListener("test",nf,nf),window.removeEventListener("test",nf,!0))}catch{}function Sp(e,t,n,r){if(r&&typeof r!="boolean"&&!th){var i=r.once,a=r.capture,o=n;!th&&i&&(o=n.__once||function s(c){this.removeEventListener(t,s,a),n.call(this,c)},n.__once=o),e.addEventListener(t,o,eh?r:a)}e.addEventListener(t,n,r)}function nh(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Nr(e,t,n,r){return Sp(e,t,n,r),function(){nh(e,t,n,r)}}function Q6(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function J6(e){var t=li(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function e5(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||Q6(e,"transitionend",!0)},t+n),a=Nr(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Sb(e,t,n,r){n==null&&(n=J6(e)||0);var i=e5(e,n,r),a=Nr(e,"transitionend",t);return function(){i(),a()}}function w0(e,t){const n=li(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function kb(e,t){const n=w0(e,"transitionDuration"),r=w0(e,"transitionDelay"),i=Sb(e,a=>{a.target===e&&(i(),t(a))},n+r)}function Eb(e){e.offsetHeight}const C0=e=>!e||typeof e=="function"?e:t=>{e.current=t};function t5(e,t){const n=C0(e),r=C0(t);return i=>{n&&n(i),r&&r(i)}}function Xn(e,t){return m.useMemo(()=>t5(e,t),[e,t])}function dl(e){return e&&"setState"in e?oi.findDOMNode(e):e??null}const Ob=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:c,...l},u)=>{const d=m.useRef(null),f=Xn(d,c),h=S=>{f(dl(S))},g=S=>R=>{S&&d.current&&S(d.current,R)},p=m.useCallback(g(e),[e]),v=m.useCallback(g(t),[t]),w=m.useCallback(g(n),[n]),_=m.useCallback(g(r),[r]),x=m.useCallback(g(i),[i]),T=m.useCallback(g(a),[a]),b=m.useCallback(g(o),[o]);return y.jsx(Yr,{ref:u,...l,onEnter:p,onEntered:w,onEntering:v,onExit:_,onExited:T,onExiting:x,addEndListener:b,nodeRef:d,children:typeof s=="function"?(S,R)=>s(S,{...R,ref:h}):m.cloneElement(s,{ref:h})})});function n5(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Bt(e){const t=n5(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const kp=e=>ue.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:oe(t.className,e)})),Mb=kp("h4");Mb.displayName="DivStyledAsH4";const $b=ue.forwardRef(({className:e,bsPrefix:t,as:n=Mb,...r},i)=>(t=it(t,"alert-heading"),y.jsx(n,{ref:i,className:oe(e,t),...r})));$b.displayName="AlertHeading";function fl(){return m.useState(null)}function r5(e,t,n,r=!1){const i=Bt(n);m.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function Ep(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Ab(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const i5=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",a5=typeof document<"u",ss=a5||i5?m.useLayoutEffect:m.useEffect,o5=["as","disabled"];function s5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function c5(e){return!e||e.trim()==="#"}function Op({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,tabIndex:s=0,type:c}){e||(n!=null||r!=null||i!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:c||"button",disabled:t},l];const u=f=>{if((t||e==="a"&&c5(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},l]}const Mp=ue.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=s5(e,o5);const[a,{tagName:o}]=Op(Object.assign({tagName:n,disabled:r},i));return y.jsx(o,Object.assign({},i,a,{ref:t}))});Mp.displayName="Button";const l5=["onKeyDown"];function u5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function d5(e){return!e||e.trim()==="#"}const $p=ue.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=u5(e,l5);const[i]=Op(Object.assign({tagName:"a"},r)),a=Bt(o=>{i.onKeyDown(o),n==null||n(o)});return d5(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});$p.displayName="Anchor";const Rb=ue.forwardRef(({className:e,bsPrefix:t,as:n=$p,...r},i)=>(t=it(t,"alert-link"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Rb.displayName="AlertLink";function jb(e){return e.code==="Escape"||e.keyCode===27}function Pb(){const e=ue.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const f5={[Ir]:"show",[ri]:"show"},di=ue.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=m.useCallback((u,d)=>{Eb(u),r==null||r(u,d)},[r]),{major:c}=Pb(),l=c>=19?t.props.ref:t.ref;return y.jsx(Ob,{ref:a,addEndListener:kb,...o,onEnter:s,childRef:l,children:(u,d)=>ue.cloneElement(t,{...d,className:oe("fade",e,t.props.className,f5[u],n[u])})})});di.displayName="Fade";const h5={"aria-label":H.string,onClick:H.func,variant:H.oneOf(["white"])},cu=ue.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:oe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));cu.displayName="CloseButton";cu.propTypes=h5;const Ib=ue.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:a,className:o,children:s,variant:c="primary",onClose:l,dismissible:u,transition:d=di,...f}=wp(e,{show:"onClose"}),h=it(n,"alert"),g=Bt(w=>{l&&l(!1,w)}),p=d===!0?di:d,v=y.jsxs("div",{role:"alert",...p?void 0:f,ref:t,className:oe(o,h,c&&`${h}-${c}`,u&&`${h}-dismissible`),children:[u&&y.jsx(cu,{onClick:g,"aria-label":i,variant:a}),s]});return p?y.jsx(p,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});Ib.displayName="Alert";const p5=Object.assign(Ib,{Link:Rb,Heading:$b}),Ap=ue.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},c)=>{const l=it(t,"btn"),[u,{tagName:d}]=Op({tagName:e,disabled:a,...s}),f=d;return y.jsx(f,{...u,...s,ref:c,disabled:a,className:oe(o,l,i&&"active",n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&a&&"disabled")})});Ap.displayName="Button";function m5(e){const t=m.useRef(e);return t.current=e,t}function Rp(e){const t=m5(e);m.useEffect(()=>()=>t.current(),[])}const rh=2**31-1;function Db(e,t,n){const r=n-Date.now();e.current=r<=rh?setTimeout(t,r):setTimeout(()=>Db(e,t,n),rh)}function g5(){const e=Ep(),t=m.useRef();return Rp(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=rh?t.current=setTimeout(i,a):Db(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function v5(e,t){return ue.Children.toArray(e).some(n=>ue.isValidElement(n)&&n.type===t)}function Nb({as:e,bsPrefix:t,className:n,...r}){t=it(t,"col");const i=_b(),a=wb(),o=[],s=[];return i.forEach(c=>{const l=r[c];delete r[c];let u,d,f;typeof l=="object"&&l!=null?{span:u,offset:d,order:f}=l:u=l;const h=c!==a?`-${c}`:"";u&&o.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:oe(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const jp=ue.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=Nb(e);return y.jsx(i,{...r,ref:t,className:oe(n,!o.length&&a)})});jp.displayName="Col";var y5=Function.prototype.bind.call(Function.prototype.call,[].slice);function Dr(e,t){return y5(e.querySelectorAll(t))}function b5(e,t,n){const r=m.useRef(e!==void 0),[i,a]=m.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,m.useCallback((...c)=>{const[l,...u]=c;let d=n==null?void 0:n(l,...u);return a(l),d},[n])]}function Lb(){const[,e]=m.useReducer(t=>!t,!1);return e}const lu=ue.createContext(null);var T0=Object.prototype.hasOwnProperty;function S0(e,t,n){for(n of e.keys())if(Jo(n,t))return n}function Jo(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Jo(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=S0(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=S0(t,i),!i)||!Jo(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(T0.call(e,n)&&++r&&!T0.call(t,n)||!(n in t)||!Jo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function x5(e){const t=Ep();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var $n="top",Zn="bottom",Kn="right",An="left",Pp="auto",Gs=[$n,Zn,Kn,An],Fa="start",cs="end",_5="clippingParents",Fb="viewport",Ro="popper",w5="reference",k0=Gs.reduce(function(e,t){return e.concat([t+"-"+Fa,t+"-"+cs])},[]),Bb=[].concat(Gs,[Pp]).reduce(function(e,t){return e.concat([t,t+"-"+Fa,t+"-"+cs])},[]),C5="beforeRead",T5="read",S5="afterRead",k5="beforeMain",E5="main",O5="afterMain",M5="beforeWrite",$5="write",A5="afterWrite",R5=[C5,T5,S5,k5,E5,O5,M5,$5,A5];function hr(e){return e.split("-")[0]}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gi(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function pr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ip(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ui=Math.max,hl=Math.min,Ba=Math.round;function ih(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ub(){return!/^((?!chrome|android).)*safari/i.test(ih())}function Ua(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&pr(e)&&(i=e.offsetWidth>0&&Ba(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ba(r.height)/e.offsetHeight||1);var o=Gi(e)?Fn(e):window,s=o.visualViewport,c=!Ub()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,u=(r.top+(c&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Dp(e){var t=Ua(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Wb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ip(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fi(e){return e?(e.nodeName||"").toLowerCase():null}function Wr(e){return Fn(e).getComputedStyle(e)}function j5(e){return["table","td","th"].indexOf(fi(e))>=0}function wi(e){return((Gi(e)?e.ownerDocument:e.document)||window.document).documentElement}function uu(e){return fi(e)==="html"?e:e.assignedSlot||e.parentNode||(Ip(e)?e.host:null)||wi(e)}function E0(e){return!pr(e)||Wr(e).position==="fixed"?null:e.offsetParent}function P5(e){var t=/firefox/i.test(ih()),n=/Trident/i.test(ih());if(n&&pr(e)){var r=Wr(e);if(r.position==="fixed")return null}var i=uu(e);for(Ip(i)&&(i=i.host);pr(i)&&["html","body"].indexOf(fi(i))<0;){var a=Wr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Zs(e){for(var t=Fn(e),n=E0(e);n&&j5(n)&&Wr(n).position==="static";)n=E0(n);return n&&(fi(n)==="html"||fi(n)==="body"&&Wr(n).position==="static")?t:n||P5(e)||t}function Np(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Ui(e,hl(t,n))}function I5(e,t,n){var r=es(e,t,n);return r>n?n:r}function zb(){return{top:0,right:0,bottom:0,left:0}}function Hb(e){return Object.assign({},zb(),e)}function Vb(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var D5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hb(typeof t!="number"?t:Vb(t,Gs))};function N5(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=hr(n.placement),c=Np(s),l=[An,Kn].indexOf(s)>=0,u=l?"height":"width";if(!(!a||!o)){var d=D5(i.padding,n),f=Dp(a),h=c==="y"?$n:An,g=c==="y"?Zn:Kn,p=n.rects.reference[u]+n.rects.reference[c]-o[c]-n.rects.popper[u],v=o[c]-n.rects.reference[c],w=Zs(a),_=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=p/2-v/2,T=d[h],b=_-f[u]-d[g],S=_/2-f[u]/2+x,R=es(T,S,b),M=c;n.modifiersData[r]=(t={},t[M]=R,t.centerOffset=R-S,t)}}function L5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Wb(t.elements.popper,i)&&(t.elements.arrow=i))}const F5={name:"arrow",enabled:!0,phase:"main",fn:N5,effect:L5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wa(e){return e.split("-")[1]}var B5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ba(n*i)/i||0,y:Ba(r*i)/i||0}}function O0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,g=o.y,p=g===void 0?0:g,v=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=v.x,p=v.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),x=An,T=$n,b=window;if(l){var S=Zs(n),R="clientHeight",M="clientWidth";if(S===Fn(n)&&(S=wi(n),Wr(S).position!=="static"&&s==="absolute"&&(R="scrollHeight",M="scrollWidth")),S=S,i===$n||(i===An||i===Kn)&&a===cs){T=Zn;var k=d&&S===b&&b.visualViewport?b.visualViewport.height:S[R];p-=k-r.height,p*=c?1:-1}if(i===An||(i===$n||i===Zn)&&a===cs){x=Kn;var E=d&&S===b&&b.visualViewport?b.visualViewport.width:S[M];h-=E-r.width,h*=c?1:-1}}var C=Object.assign({position:s},l&&B5),O=u===!0?U5({x:h,y:p},Fn(n)):{x:h,y:p};if(h=O.x,p=O.y,c){var $;return Object.assign({},C,($={},$[T]=_?"0":"",$[x]=w?"0":"",$.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",$))}return Object.assign({},C,(t={},t[T]=_?p+"px":"",t[x]=w?h+"px":"",t.transform="",t))}function W5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:hr(t.placement),variation:Wa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,O0(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,O0(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const z5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W5,data:{}};var Oc={passive:!0};function H5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Fn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",n.update,Oc)}),s&&c.addEventListener("resize",n.update,Oc),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Oc)}),s&&c.removeEventListener("resize",n.update,Oc)}}const V5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H5,data:{}};var q5={left:"right",right:"left",bottom:"top",top:"bottom"};function Gc(e){return e.replace(/left|right|bottom|top/g,function(t){return q5[t]})}var Y5={start:"end",end:"start"};function M0(e){return e.replace(/start|end/g,function(t){return Y5[t]})}function Lp(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Fp(e){return Ua(wi(e)).left+Lp(e).scrollLeft}function G5(e,t){var n=Fn(e),r=wi(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Ub();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Fp(e),y:c}}function Z5(e){var t,n=wi(e),r=Lp(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ui(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ui(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Fp(e),c=-r.scrollTop;return Wr(i||n).direction==="rtl"&&(s+=Ui(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function Bp(e){var t=Wr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qb(e){return["html","body","#document"].indexOf(fi(e))>=0?e.ownerDocument.body:pr(e)&&Bp(e)?e:qb(uu(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=qb(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Fn(r),o=i?[a].concat(a.visualViewport||[],Bp(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(ts(uu(o)))}function ah(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K5(e,t){var n=Ua(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $0(e,t,n){return t===Fb?ah(G5(e,n)):Gi(t)?K5(t,n):ah(Z5(wi(e)))}function X5(e){var t=ts(uu(e)),n=["absolute","fixed"].indexOf(Wr(e).position)>=0,r=n&&pr(e)?Zs(e):e;return Gi(r)?t.filter(function(i){return Gi(i)&&Wb(i,r)&&fi(i)!=="body"}):[]}function Q5(e,t,n,r){var i=t==="clippingParents"?X5(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(c,l){var u=$0(e,l,r);return c.top=Ui(u.top,c.top),c.right=hl(u.right,c.right),c.bottom=hl(u.bottom,c.bottom),c.left=Ui(u.left,c.left),c},$0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Yb(e){var t=e.reference,n=e.element,r=e.placement,i=r?hr(r):null,a=r?Wa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case $n:c={x:o,y:t.y-n.height};break;case Zn:c={x:o,y:t.y+t.height};break;case Kn:c={x:t.x+t.width,y:s};break;case An:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Np(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case Fa:c[l]=c[l]-(t[u]/2-n[u]/2);break;case cs:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function ls(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?_5:s,l=n.rootBoundary,u=l===void 0?Fb:l,d=n.elementContext,f=d===void 0?Ro:d,h=n.altBoundary,g=h===void 0?!1:h,p=n.padding,v=p===void 0?0:p,w=Hb(typeof v!="number"?v:Vb(v,Gs)),_=f===Ro?w5:Ro,x=e.rects.popper,T=e.elements[g?_:f],b=Q5(Gi(T)?T:T.contextElement||wi(e.elements.popper),c,u,o),S=Ua(e.elements.reference),R=Yb({reference:S,element:x,strategy:"absolute",placement:i}),M=ah(Object.assign({},x,R)),k=f===Ro?M:S,E={top:b.top-k.top+w.top,bottom:k.bottom-b.bottom+w.bottom,left:b.left-k.left+w.left,right:k.right-b.right+w.right},C=e.modifiersData.offset;if(f===Ro&&C){var O=C[i];Object.keys(E).forEach(function($){var A=[Kn,Zn].indexOf($)>=0?1:-1,P=[$n,Zn].indexOf($)>=0?"y":"x";E[$]+=O[P]*A})}return E}function J5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Bb:c,u=Wa(r),d=u?s?k0:k0.filter(function(g){return Wa(g)===u}):Gs,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,p){return g[p]=ls(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[hr(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function eS(e){if(hr(e)===Pp)return[];var t=Gc(e);return[M0(e),t,M0(t)]}function tS(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,p=n.allowedAutoPlacements,v=t.options.placement,w=hr(v),_=w===v,x=c||(_||!g?[Gc(v)]:eS(v)),T=[v].concat(x).reduce(function(J,X){return J.concat(hr(X)===Pp?J5(t,{placement:X,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:p}):X)},[]),b=t.rects.reference,S=t.rects.popper,R=new Map,M=!0,k=T[0],E=0;E<T.length;E++){var C=T[E],O=hr(C),$=Wa(C)===Fa,A=[$n,Zn].indexOf(O)>=0,P=A?"width":"height",D=ls(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),F=A?$?Kn:An:$?Zn:$n;b[P]>S[P]&&(F=Gc(F));var q=Gc(F),z=[];if(a&&z.push(D[O]<=0),s&&z.push(D[F]<=0,D[q]<=0),z.every(function(J){return J})){k=C,M=!1;break}R.set(C,z)}if(M)for(var U=g?3:1,G=function(X){var K=T.find(function(re){var N=R.get(re);if(N)return N.slice(0,X).every(function(I){return I})});if(K)return k=K,"break"},ee=U;ee>0;ee--){var ie=G(ee);if(ie==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const nS={name:"flip",enabled:!0,phase:"main",fn:tS,requiresIfExists:["offset"],data:{_skip:!1}};function A0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function R0(e){return[$n,Kn,Zn,An].some(function(t){return e[t]>=0})}function rS(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ls(t,{elementContext:"reference"}),s=ls(t,{altBoundary:!0}),c=A0(o,r),l=A0(s,i,a),u=R0(c),d=R0(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const iS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rS};function aS(e,t,n){var r=hr(e),i=[An,$n].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[An,Kn].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function oS(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Bb.reduce(function(u,d){return u[d]=aS(d,t.rects,a),u},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}const sS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oS};function cS(e){var t=e.state,n=e.name;t.modifiersData[n]=Yb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lS={name:"popperOffsets",enabled:!0,phase:"read",fn:cS,data:{}};function uS(e){return e==="x"?"y":"x"}function dS(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,p=g===void 0?0:g,v=ls(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),w=hr(t.placement),_=Wa(t.placement),x=!_,T=Np(w),b=uS(T),S=t.modifiersData.popperOffsets,R=t.rects.reference,M=t.rects.popper,k=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var $,A=T==="y"?$n:An,P=T==="y"?Zn:Kn,D=T==="y"?"height":"width",F=S[T],q=F+v[A],z=F-v[P],U=h?-M[D]/2:0,G=_===Fa?R[D]:M[D],ee=_===Fa?-M[D]:-R[D],ie=t.elements.arrow,J=h&&ie?Dp(ie):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zb(),K=X[A],re=X[P],N=es(0,R[D],J[D]),I=x?R[D]/2-U-N-K-E.mainAxis:G-N-K-E.mainAxis,L=x?-R[D]/2+U+N+re+E.mainAxis:ee+N+re+E.mainAxis,V=t.elements.arrow&&Zs(t.elements.arrow),j=V?T==="y"?V.clientTop||0:V.clientLeft||0:0,Z=($=C==null?void 0:C[T])!=null?$:0,Q=F+I-Z-j,te=F+L-Z,he=es(h?hl(q,Q):q,F,h?Ui(z,te):z);S[T]=he,O[T]=he-F}if(s){var we,me=T==="x"?$n:An,Ue=T==="x"?Zn:Kn,Ae=S[b],Ve=b==="y"?"height":"width",Ke=Ae+v[me],st=Ae-v[Ue],pe=[$n,An].indexOf(w)!==-1,Te=(we=C==null?void 0:C[b])!=null?we:0,ve=pe?Ke:Ae-R[Ve]-M[Ve]-Te+E.altAxis,Ne=pe?Ae+R[Ve]+M[Ve]-Te-E.altAxis:st,nt=h&&pe?I5(ve,Ae,Ne):es(h?ve:Ke,Ae,h?Ne:st);S[b]=nt,O[b]=nt-Ae}t.modifiersData[r]=O}}const fS={name:"preventOverflow",enabled:!0,phase:"main",fn:dS,requiresIfExists:["offset"]};function hS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pS(e){return e===Fn(e)||!pr(e)?Lp(e):hS(e)}function mS(e){var t=e.getBoundingClientRect(),n=Ba(t.width)/e.offsetWidth||1,r=Ba(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gS(e,t,n){n===void 0&&(n=!1);var r=pr(t),i=pr(t)&&mS(t),a=wi(t),o=Ua(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((fi(t)!=="body"||Bp(a))&&(s=pS(t)),pr(t)?(c=Ua(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Fp(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function vS(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function yS(e){var t=vS(e);return R5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function bS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xS(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var j0={placement:"bottom",modifiers:[],strategy:"absolute"};function P0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _S(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?j0:i;return function(s,c,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},j0,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(w){var _=typeof w=="function"?w(u.options):w;p(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:Gi(s)?ts(s):s.contextElement?ts(s.contextElement):[],popper:ts(c)};var x=yS(xS([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(T){return T.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var w=u.elements,_=w.reference,x=w.popper;if(P0(_,x)){u.rects={reference:gS(_,Zs(x),u.options.strategy==="fixed"),popper:Dp(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var b=u.orderedModifiers[T],S=b.fn,R=b.options,M=R===void 0?{}:R,k=b.name;typeof S=="function"&&(u=S({state:u,options:M,name:k,instance:h})||u)}}}},update:bS(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!P0(s,c))return h;h.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var w=v.name,_=v.options,x=_===void 0?{}:_,T=v.effect;if(typeof T=="function"){var b=T({state:u,name:w,instance:h,options:x}),S=function(){};d.push(b||S)}})}function p(){d.forEach(function(v){return v()}),d=[]}return h}}const wS=_S({defaultModifiers:[iS,lS,z5,V5,sS,nS,fS,F5]}),CS=["enabled","placement","strategy","modifiers"];function TS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const SS={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},kS={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const a=r.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},ES=[];function Gb(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=ES}=n,s=TS(n,CS);const c=m.useRef(o),l=m.useRef(),u=m.useCallback(()=>{var v;(v=l.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=l.current)==null||v.forceUpdate()},[]),[f,h]=x5(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const w={},_={};Object.keys(v.elements).forEach(x=>{w[x]=v.styles[x],_[x]=v.attributes[x]}),h({state:v,styles:w,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),p=m.useMemo(()=>(Jo(c.current,o)||(c.current=o),c.current),[o]);return m.useEffect(()=>{!l.current||!r||l.current.setOptions({placement:i,strategy:a,modifiers:[...p,g,SS]})},[a,i,g,r,p]),m.useEffect(()=>{if(!(!r||e==null||t==null))return l.current=wS(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...p,kS,g]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function us(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var OS=process.env.NODE_ENV!=="production",Zb=function(){};if(OS){var MS=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Zb=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||MS.apply(null,[t].concat(n))}}var $S=Zb;const aa=Ht($S),I0=()=>{};function AS(e){return e.button===0}function RS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Zc=e=>e&&("current"in e?e.current:e),D0={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Kb(e,t=I0,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),a=m.useRef(!1),o=m.useCallback(l=>{const u=Zc(e);aa(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||RS(l)||!AS(l)||!!us(u,l.target)||a.current,a.current=!1},[e]),s=Bt(l=>{const u=Zc(e);u&&us(u,l.target)&&(a.current=!0)}),c=Bt(l=>{i.current||t(l)});m.useEffect(()=>{var l,u;if(n||e==null)return;const d=ro(Zc(e)),f=d.defaultView||window;let h=(l=f.event)!=null?l:(u=f.parent)==null?void 0:u.event,g=null;D0[r]&&(g=Nr(d,D0[r],s,!0));const p=Nr(d,r,o,!0),v=Nr(d,r,_=>{if(_===h){h=void 0;return}c(_)});let w=[];return"ontouchstart"in d.documentElement&&(w=[].slice.call(d.body.children).map(_=>Nr(_,"mousemove",I0))),()=>{g==null||g(),p(),v(),w.forEach(_=>_())}},[e,n,r,o,s,c])}function jS(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function PS(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Xb({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:c={}}){var l,u,d,f,h;const g=jS(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:a?"fixed":c.strategy,modifiers:PS(Object.assign({},g,{eventListeners:{enabled:t,options:(l=g.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},g.preventOverflow,{options:o?Object.assign({padding:o},(u=g.preventOverflow)==null?void 0:u.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!s,options:Object.assign({},(h=g.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const IS=["children","usePopper"];function DS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const NS=()=>{};function Qb(e={}){const t=m.useContext(lu),[n,r]=fl(),i=m.useRef(!1),{flip:a,offset:o,rootCloseEvent:s,fixed:c=!1,placement:l,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const g=S=>{t==null||t.toggle(!1,S)},{placement:p,setMenu:v,menuElement:w,toggleElement:_}=t||{},x=Gb(_,w,Xb({placement:l||p||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:a,fixed:c,arrowElement:n,popperConfig:u})),T=Object.assign({ref:v||NS,"aria-labelledby":_==null?void 0:_.id},x.attributes.popper,{style:x.styles.popper}),b={show:h,placement:p,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?x:null,arrowProps:f?Object.assign({ref:r},x.attributes.arrow,{style:x.styles.arrow}):{}};return Kb(w,g,{clickTrigger:s,disabled:!h}),[T,b]}function Jb(e){let{children:t,usePopper:n=!0}=e,r=DS(e,IS);const[i,a]=Qb(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,a)})}Jb.displayName="DropdownMenu";const pl={prefix:String(Math.round(Math.random()*1e10)),current:0},ex=m.createContext(pl),LS=m.createContext(!1);let FS=!!(typeof window<"u"&&window.document&&window.document.createElement),rf=new WeakMap;function BS(e=!1){let t=m.useContext(ex),n=m.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=rf.get(a);o==null?rf.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,rf.delete(a))}n.current=++t.current}return n.current}function US(e){let t=m.useContext(ex);t===pl&&!FS&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=BS(!!e),r=t===pl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function WS(e){let t=m.useId(),[n]=m.useState(YS()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${pl.prefix}`;return e||`${r}-${t}`}const zS=typeof m.useId=="function"?WS:US;function HS(){return!1}function VS(){return!0}function qS(e){return()=>{}}function YS(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(qS,HS,VS):m.useContext(LS)}const tx=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},N0=()=>{};function nx(){const e=zS(),{show:t=!1,toggle:n=N0,setToggle:r,menuElement:i}=m.useContext(lu)||{},a=m.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||N0,onClick:a,"aria-expanded":!!t};return i&&tx(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function rx({children:e}){const[t,n]=nx();return y.jsx(y.Fragment,{children:e(t,n)})}rx.displayName="DropdownToggle";const za=ue.createContext(null),ds=(e,t=null)=>e!=null?String(e):t||null,du=ue.createContext(null);du.displayName="NavContext";const GS="data-rr-ui-",ZS="rrUi";function ao(e){return`${GS}${e}`}function KS(e){return`${ZS}${e}`}const XS=["eventKey","disabled","onClick","active","as"];function QS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ix({key:e,href:t,active:n,disabled:r,onClick:i}){const a=m.useContext(za),o=m.useContext(du),{activeKey:s}=o||{},c=ds(e,t),l=n==null&&e!=null?ds(s)===c:n;return[{onClick:Bt(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(c,d))}),"aria-disabled":r||void 0,"aria-selected":l,[ao("dropdown-item")]:""},{isActive:l}]}const ax=ue.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=Mp}=e,s=QS(e,XS);const[c]=ix({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,Object.assign({},s,{ref:t},c))});ax.displayName="DropdownItem";const ox=m.createContext(io?window:void 0);ox.Provider;function fu(){return m.useContext(ox)}function L0(){const e=Lb(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Ks({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ao("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const c=fu(),[l,u]=b5(t,e,r),[d,f]=L0(),h=d.current,[g,p]=L0(),v=g.current,w=Ab(l),_=m.useRef(null),x=m.useRef(!1),T=m.useContext(za),b=m.useCallback((C,O,$=O==null?void 0:O.type)=>{u(C,{originalEvent:O,source:$})},[u]),S=Bt((C,O)=>{n==null||n(C,O),b(!1,O,"select"),O.isPropagationStopped()||T==null||T(C,O)}),R=m.useMemo(()=>({toggle:b,placement:o,show:l,menuElement:h,toggleElement:v,setMenu:f,setToggle:p}),[b,o,l,h,v,f,p]);h&&w&&!l&&(x.current=h.contains(h.ownerDocument.activeElement));const M=Bt(()=>{v&&v.focus&&v.focus()}),k=Bt(()=>{const C=_.current;let O=a;if(O==null&&(O=d.current&&tx(d.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(C))return;const $=Dr(d.current,i)[0];$&&$.focus&&$.focus()});m.useEffect(()=>{l?k():x.current&&(x.current=!1,M())},[l,x,M,k]),m.useEffect(()=>{_.current=null});const E=(C,O)=>{if(!d.current)return null;const $=Dr(d.current,i);let A=$.indexOf(C)+O;return A=Math.max(0,Math.min(A,$.length)),$[A]};return r5(m.useCallback(()=>c.document,[c]),"keydown",C=>{var O,$;const{key:A}=C,P=C.target,D=(O=d.current)==null?void 0:O.contains(P),F=($=g.current)==null?void 0:$.contains(P);if(/input|textarea/i.test(P.tagName)&&(A===" "||A!=="Escape"&&D||A==="Escape"&&P.type==="search")||!D&&!F||A==="Tab"&&(!d.current||!l))return;_.current=C.type;const z={originalEvent:C,source:C.type};switch(A){case"ArrowUp":{const U=E(P,-1);U&&U.focus&&U.focus(),C.preventDefault();return}case"ArrowDown":if(C.preventDefault(),!l)u(!0,z);else{const U=E(P,1);U&&U.focus&&U.focus()}return;case"Tab":Sp(P.ownerDocument,"keyup",U=>{var G;(U.key==="Tab"&&!U.target||!((G=d.current)!=null&&G.contains(U.target)))&&u(!1,z)},{once:!0});break;case"Escape":A==="Escape"&&(C.preventDefault(),C.stopPropagation()),u(!1,z);break}}),y.jsx(za.Provider,{value:S,children:y.jsx(lu.Provider,{value:R,children:s})})}Ks.displayName="Dropdown";Ks.Menu=Jb;Ks.Toggle=rx;Ks.Item=ax;const Up=ue.createContext({});Up.displayName="DropdownContext";const sx=ue.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=it(t,"dropdown-divider"),y.jsx(n,{ref:a,className:oe(e,t),role:r,...i})));sx.displayName="DropdownDivider";const cx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=it(t,"dropdown-header"),y.jsx(n,{ref:a,className:oe(e,t),role:r,...i})));cx.displayName="DropdownHeader";const lx=ue.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=$p,...s},c)=>{const l=it(e,"dropdown-item"),[u,d]=ix({key:n,href:s.href,disabled:r,onClick:i,active:a});return y.jsx(o,{...s,...u,ref:c,className:oe(t,l,d.isActive&&"active",r&&"disabled")})});lx.displayName="DropdownItem";const ux=ue.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=it(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:oe(e,t),...r})));ux.displayName="DropdownItemText";const hu=ue.createContext(null);hu.displayName="InputGroupContext";const dx=ue.createContext(null);dx.displayName="NavbarContext";function fx(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?Xf(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):Xf(!1))},[t]);return Xn(n,e)}function hx(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",a=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",c=n?"right-end":"left-end",l=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?o:a;return t==="up"?d=e?i:r:t==="end"?d=e?u:l:t==="start"?d=e?c:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const px=ue.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s="div",popperConfig:c,variant:l,...u},d)=>{let f=!1;const h=m.useContext(dx),g=it(e,"dropdown-menu"),{align:p,drop:v,isRTL:w}=m.useContext(Up);n=n||p;const _=m.useContext(hu),x=[];if(n)if(typeof n=="object"){const C=Object.keys(n);if(process.env.NODE_ENV!=="production"&&aa(C.length===1,"There should only be 1 breakpoint when passing an object to `align`"),C.length){const O=C[0],$=n[O];f=$==="start",x.push(`${g}-${O}-${$}`)}}else n==="end"&&(f=!0);const T=hx(f,v,w),[b,{hasShown:S,popper:R,show:M,toggle:k}]=Qb({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&x.length===0,offset:[0,2],popperConfig:c,placement:T});if(b.ref=Xn(fx(d,"DropdownMenu"),b.ref),ss(()=>{M&&(R==null||R.update())},[M]),!S&&!o&&!_)return null;typeof s!="string"&&(b.show=M,b.close=()=>k==null?void 0:k(!1),b.align=n);let E=u.style;return R!=null&&R.placement&&(E={...u.style,...b.style},u["x-placement"]=R.placement),y.jsx(s,{...u,...b,style:E,...(x.length||h)&&{"data-bs-popper":"static"},className:oe(t,g,M&&"show",f&&`${g}-end`,l&&`${g}-${l}`,...x)})});px.displayName="DropdownMenu";const mx=ue.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Ap,...a},o)=>{const s=it(e,"dropdown-toggle"),c=m.useContext(lu);r!==void 0&&(a.bsPrefix=r);const[l]=nx();return l.ref=Xn(l.ref,fx(o,"DropdownToggle")),y.jsx(i,{className:oe(n,s,t&&`${s}-split`,(c==null?void 0:c.show)&&"show"),...l,...a})});mx.displayName="DropdownToggle";const gx=ue.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:a,align:o="start",onSelect:s,onToggle:c,focusFirstItemOnShow:l,as:u="div",navbar:d,autoClose:f=!0,...h}=wp(e,{show:"onToggle"}),g=m.useContext(hu),p=it(n,"dropdown"),v=su(),w=R=>f===!1?R==="click":f==="inside"?R!=="rootClose":f==="outside"?R!=="select":!0,_=Bt((R,M)=>{var k;!((k=M.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&M.source==="mousedown"||(M.originalEvent.currentTarget===document&&(M.source!=="keydown"||M.originalEvent.key==="Escape")&&(M.source="rootClose"),w(M.source)&&(c==null||c(R,M)))}),T=hx(o==="end",r,v),b=m.useMemo(()=>({align:o,drop:r,isRTL:v}),[o,r,v]),S={down:p,"down-centered":`${p}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(Up.Provider,{value:b,children:y.jsx(Ks,{placement:T,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:l,itemSelector:`.${p}-item:not(.disabled):not(:disabled)`,children:g?h.children:y.jsx(u,{...h,ref:t,className:oe(a,i&&"show",S[r])})})})});gx.displayName="Dropdown";const Ha=Object.assign(gx,{Toggle:mx,Menu:px,Item:lx,ItemText:ux,Divider:sx,Header:cx}),JS={type:H.string,tooltip:H.bool,as:H.elementType},pu=ue.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>y.jsx(e,{...i,ref:a,className:oe(t,`${n}-${r?"tooltip":"feedback"}`)}));pu.displayName="Feedback";pu.propTypes=JS;const zr=ue.createContext({}),mu=ue.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},c)=>{const{controlId:l}=m.useContext(zr);return t=it(t,"form-check-input"),y.jsx(o,{...s,ref:c,type:r,id:e||l,className:oe(n,t,i&&"is-valid",a&&"is-invalid")})});mu.displayName="FormCheckInput";const ml=ue.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=m.useContext(zr);return e=it(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||a,className:oe(t,e)})});ml.displayName="FormCheckLabel";const vx=ue.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:a=!1,isValid:o=!1,isInvalid:s=!1,feedbackTooltip:c=!1,feedback:l,feedbackType:u,className:d,style:f,title:h="",type:g="checkbox",label:p,children:v,as:w="input",..._},x)=>{t=it(t,"form-check"),n=it(n,"form-switch");const{controlId:T}=m.useContext(zr),b=m.useMemo(()=>({controlId:e||T}),[T,e]),S=!v&&p!=null&&p!==!1||v5(v,ml),R=y.jsx(mu,{..._,type:g==="switch"?"checkbox":g,ref:x,isValid:o,isInvalid:s,disabled:a,as:w});return y.jsx(zr.Provider,{value:b,children:y.jsx("div",{style:f,className:oe(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,g==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[R,S&&y.jsx(ml,{title:h,children:p}),l&&y.jsx(pu,{type:u,tooltip:c,children:l})]})})})});vx.displayName="FormCheck";const gl=Object.assign(vx,{Input:mu,Label:ml}),yx=ue.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:a,isValid:o=!1,isInvalid:s=!1,plaintext:c,readOnly:l,as:u="input",...d},f)=>{const{controlId:h}=m.useContext(zr);return e=it(e,"form-control"),process.env.NODE_ENV!=="production"&&aa(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:l,id:i||h,className:oe(a,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});yx.displayName="FormControl";const bx=Object.assign(yx,{Feedback:pu}),xx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"form-floating"),y.jsx(n,{ref:i,className:oe(e,t),...r})));xx.displayName="FormFloating";const Wp=ue.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(zr.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});Wp.displayName="FormGroup";const _x=ue.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},s)=>{const{controlId:c}=m.useContext(zr);t=it(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const u=oe(i,t,r&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&aa(c==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||c,n?y.jsx(jp,{ref:s,as:"label",className:u,htmlFor:a,...o}):y.jsx(e,{ref:s,className:u,htmlFor:a,...o})});_x.displayName="FormLabel";const wx=ue.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=m.useContext(zr);return e=it(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:oe(t,e),id:n||a})});wx.displayName="FormRange";const zp=ue.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},c)=>{const{controlId:l}=m.useContext(zr);return e=it(e,"form-select"),y.jsx("select",{...s,size:n,ref:c,className:oe(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||l})});zp.displayName="FormSelect";const Cx=ue.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=it(e,"form-text"),y.jsx(n,{...i,ref:a,className:oe(t,e,r&&"text-muted")})));Cx.displayName="FormText";const Tx=ue.forwardRef((e,t)=>y.jsx(gl,{...e,ref:t,type:"switch"}));Tx.displayName="Switch";const ek=Object.assign(Tx,{Input:gl.Input,Label:gl.Label}),Hp=ue.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=it(e,"form-floating"),y.jsxs(Wp,{ref:o,className:oe(t,e),controlId:r,...a,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));Hp.displayName="FloatingLabel";const tk={_ref:H.any,validated:H.bool,as:H.elementType},Vp=ue.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:oe(e,t&&"was-validated")}));Vp.displayName="Form";Vp.propTypes=tk;const Tr=Object.assign(Vp,{Group:Wp,Control:bx,Floating:xx,Check:gl,Switch:ek,Label:_x,Text:Cx,Range:wx,Select:zp,FloatingLabel:Hp}),Sx=ue.createContext(null),nk=["as","active","eventKey"];function rk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kx({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=m.useContext(za),s=m.useContext(du),c=m.useContext(Sx);let l=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[ao("event-key")]=e,u.id=d||r,l=n==null&&e!=null?s.activeKey===e:n,(l||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=l,l||(u.tabIndex=-1),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=Bt(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:l}]}const Ex=ue.forwardRef((e,t)=>{let{as:n=Mp,active:r,eventKey:i}=e,a=rk(e,nk);const[o,s]=kx(Object.assign({key:ds(i,a.href),active:r},a));return o[ao("active")]=s.isActive,y.jsx(n,Object.assign({},a,o,{ref:t}))});Ex.displayName="NavItem";const ik=["as","onSelect","activeKey","role","onKeyDown"];function ak(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const F0=()=>{},B0=ao("event-key"),Ox=ue.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=ak(e,ik);const c=Lb(),l=m.useRef(!1),u=m.useContext(za),d=m.useContext(Sx);let f,h;d&&(a=a||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const g=m.useRef(null),p=x=>{const T=g.current;if(!T)return null;const b=Dr(T,`[${B0}]:not([aria-disabled=true])`),S=T.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const R=b.indexOf(S);if(R===-1)return null;let M=R+x;return M>=b.length&&(M=0),M<0&&(M=b.length-1),b[M]},v=(x,T)=>{x!=null&&(r==null||r(x,T),u==null||u(x,T))},w=x=>{if(o==null||o(x),!d)return;let T;switch(x.key){case"ArrowLeft":case"ArrowUp":T=p(-1);break;case"ArrowRight":case"ArrowDown":T=p(1);break;default:return}T&&(x.preventDefault(),v(T.dataset[KS("EventKey")]||null,x),l.current=!0,c())};m.useEffect(()=>{if(g.current&&l.current){const x=g.current.querySelector(`[${B0}][aria-selected=true]`);x==null||x.focus()}l.current=!1});const _=Xn(t,g);return y.jsx(za.Provider,{value:v,children:y.jsx(du.Provider,{value:{role:a,activeKey:ds(i),getControlledId:f||F0,getControllerId:h||F0},children:y.jsx(n,Object.assign({},s,{onKeyDown:w,ref:_,role:a}))})})});Ox.displayName="Nav";const ok=Object.assign(Ox,{Item:Ex}),gu=ue.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...c},l)=>{e=it(e,"list-group-item");const[u,d]=kx({key:ds(r,c.href),active:t,...c}),f=Bt(g=>{if(n){g.preventDefault(),g.stopPropagation();return}u.onClick(g)});n&&c.tabIndex===void 0&&(c.tabIndex=-1,c["aria-disabled"]=!0);const h=s||(o?c.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&aa(s||!(!o&&c.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:l,...c,...u,onClick:f,className:oe(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});gu.displayName="ListGroupItem";const Mx=ue.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...c}=wp(e,{activeKey:"onSelect"}),l=it(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&aa(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(ok,{ref:t,...c,as:s,className:oe(n,l,i&&`${l}-${i}`,u&&`${l}-${u}`,o&&`${l}-numbered`)})});Mx.displayName="ListGroup";const $x=Object.assign(Mx,{Item:gu});var Mc;function U0(e){if((!Mc&&Mc!==0||e)&&io){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Mc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mc}function af(e){e===void 0&&(e=ro());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function sk(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const W0=ao("modal-open");class qp{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return sk(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(li(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(W0,""),li(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(W0),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const of=(e,t)=>io?e==null?(t||ro()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function oh(e,t){const n=fu(),[r,i]=m.useState(()=>of(e,n==null?void 0:n.document));if(!r){const a=of(e);a&&i(a)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const a=of(e);a!==r&&i(a)},[e,r]),r}function ck({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=m.useRef(null),o=m.useRef(t),s=Bt(n);m.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const c=Xn(a,e.ref),l=m.cloneElement(e,{ref:c});return t?l:i||!o.current&&r?null:l}const lk=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function uk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dk(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:c}=e,l=uk(e,lk);const{major:u}=Pb(),d=u>=19?c.props.ref:c.ref,f=m.useRef(null),h=Xn(f,typeof c=="function"?null:d),g=S=>R=>{S&&f.current&&S(f.current,R)},p=m.useCallback(g(t),[t]),v=m.useCallback(g(n),[n]),w=m.useCallback(g(r),[r]),_=m.useCallback(g(i),[i]),x=m.useCallback(g(a),[a]),T=m.useCallback(g(o),[o]),b=m.useCallback(g(s),[s]);return Object.assign({},l,{nodeRef:f},t&&{onEnter:p},n&&{onEntering:v},r&&{onEntered:w},i&&{onExit:_},a&&{onExiting:x},o&&{onExited:T},s&&{addEndListener:b},{children:typeof c=="function"?(S,R)=>c(S,Object.assign({},R,{ref:h})):m.cloneElement(c,{ref:h})})}const fk=["component"];function hk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const pk=ue.forwardRef((e,t)=>{let{component:n}=e,r=hk(e,fk);const i=dk(r);return y.jsx(n,Object.assign({ref:t},i))});function mk({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Bt(t);return ss(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),ss(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function gk({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=m.useState(!t);t&&a&&o(!1);const s=mk({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?r==null||r(l.element,l.initial):(o(!0),n==null||n(l.element)))};Promise.resolve(i(l)).then(u,d=>{throw l.in||o(!0),d})}}),c=Xn(s,e.ref);return a&&!t?null:m.cloneElement(e,{ref:c})}function sh(e,t,n){return e?y.jsx(pk,Object.assign({},n,{component:e})):t?y.jsx(gk,Object.assign({},n,{transition:t})):y.jsx(ck,Object.assign({},n))}const vk=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function yk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let sf;function bk(e){return sf||(sf=new qp({ownerDocument:e==null?void 0:e.document})),sf}function xk(e){const t=fu(),n=e||bk(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const Ax=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,backdrop:s=!0,keyboard:c=!0,onBackdropClick:l,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:g,autoFocus:p=!0,enforceFocus:v=!0,restoreFocus:w=!0,restoreFocusOptions:_,renderDialog:x,renderBackdrop:T=te=>y.jsx("div",Object.assign({},te)),manager:b,container:S,onShow:R,onHide:M=()=>{},onExit:k,onExited:E,onExiting:C,onEnter:O,onEntering:$,onEntered:A}=e,P=yk(e,vk);const D=fu(),F=oh(S),q=xk(b),z=Ep(),U=Ab(n),[G,ee]=m.useState(!n),ie=m.useRef(null);m.useImperativeHandle(t,()=>q,[q]),io&&!U&&n&&(ie.current=af(D==null?void 0:D.document)),n&&G&&ee(!1);const J=Bt(()=>{if(q.add(),L.current=Nr(document,"keydown",N),I.current=Nr(document,"focus",()=>setTimeout(K),!0),R&&R(),p){var te,he;const we=af((te=(he=q.dialog)==null?void 0:he.ownerDocument)!=null?te:D==null?void 0:D.document);q.dialog&&we&&!us(q.dialog,we)&&(ie.current=we,q.dialog.focus())}}),X=Bt(()=>{if(q.remove(),L.current==null||L.current(),I.current==null||I.current(),w){var te;(te=ie.current)==null||te.focus==null||te.focus(_),ie.current=null}});m.useEffect(()=>{!n||!F||J()},[n,F,J]),m.useEffect(()=>{G&&X()},[G,X]),Rp(()=>{X()});const K=Bt(()=>{if(!v||!z()||!q.isTopModal())return;const te=af(D==null?void 0:D.document);q.dialog&&te&&!us(q.dialog,te)&&q.dialog.focus()}),re=Bt(te=>{te.target===te.currentTarget&&(l==null||l(te),s===!0&&M())}),N=Bt(te=>{c&&jb(te)&&q.isTopModal()&&(u==null||u(te),te.defaultPrevented||M())}),I=m.useRef(),L=m.useRef(),V=(...te)=>{ee(!0),E==null||E(...te)};if(!F)return null;const j=Object.assign({role:r,ref:q.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},P,{style:a,className:i,tabIndex:-1});let Z=x?x(j):y.jsx("div",Object.assign({},j,{children:ue.cloneElement(o,{role:"document"})}));Z=sh(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:C,onExited:V,onEnter:O,onEntering:$,onEntered:A,children:Z});let Q=null;return s&&(Q=T({ref:q.setBackdropRef,onClick:re}),Q=sh(h,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),y.jsx(y.Fragment,{children:oi.createPortal(y.jsxs(y.Fragment,{children:[Q,Z]}),F)})});Ax.displayName="Modal";const Rx=Object.assign(Ax,{Manager:qp});function ch(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function _k(e,t){e.classList?e.classList.add(t):ch(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function z0(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=z0(e.className,t):e.setAttribute("class",z0(e.className&&e.className.baseVal||"",t))}const ya={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class jx extends qp{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,li(n,{[t]:`${parseFloat(li(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],li(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(_k(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Dr(n,ya.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),Dr(n,ya.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),Dr(n,ya.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();wk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Dr(n,ya.FIXED_CONTENT).forEach(a=>this.restore(r,a)),Dr(n,ya.STICKY_CONTENT).forEach(a=>this.restore(i,a)),Dr(n,ya.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let cf;function Px(e){return cf||(cf=new jx(e)),cf}const Ix=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"modal-body"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Ix.displayName="ModalBody";const Yp=ue.createContext({onHide(){}}),Gp=ue.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...c},l)=>{e=it(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:l,className:oe(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:y.jsx("div",{className:oe(`${e}-content`,n),children:o})})});Gp.displayName="ModalDialog";const Dx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"modal-footer"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Dx.displayName="ModalFooter";const Nx=ue.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=m.useContext(Yp),c=Bt(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:o,...a,children:[i,n&&y.jsx(cu,{"aria-label":e,variant:t,onClick:c})]})}),Lx=ue.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=it(e,"modal-header"),y.jsx(Nx,{ref:a,...i,className:oe(t,e),closeLabel:n,closeButton:r})));Lx.displayName="ModalHeader";const Ck=kp("h4"),Fx=ue.forwardRef(({className:e,bsPrefix:t,as:n=Ck,...r},i)=>(t=it(t,"modal-title"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Fx.displayName="ModalTitle";function Tk(e){return y.jsx(di,{...e,timeout:null})}function Sk(e){return y.jsx(di,{...e,timeout:null})}const Bx=ue.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=Gp,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":l,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:g=!0,onEscapeKeyDown:p,onShow:v,onHide:w,container:_,autoFocus:x=!0,enforceFocus:T=!0,restoreFocus:b=!0,restoreFocusOptions:S,onEntered:R,onExit:M,onExiting:k,onEnter:E,onEntering:C,onExited:O,backdropClassName:$,manager:A,...P},D)=>{const[F,q]=m.useState({}),[z,U]=m.useState(!1),G=m.useRef(!1),ee=m.useRef(!1),ie=m.useRef(null),[J,X]=fl(),K=Xn(D,X),re=Bt(w),N=su();e=it(e,"modal");const I=m.useMemo(()=>({onHide:re}),[re]);function L(){return A||Px({isRTL:N})}function V(ve){if(!io)return;const Ne=L().getScrollbarWidth()>0,nt=ve.scrollHeight>ro(ve).documentElement.clientHeight;q({paddingRight:Ne&&!nt?U0():void 0,paddingLeft:!Ne&&nt?U0():void 0})}const j=Bt(()=>{J&&V(J.dialog)});Rp(()=>{nh(window,"resize",j),ie.current==null||ie.current()});const Z=()=>{G.current=!0},Q=ve=>{G.current&&J&&ve.target===J.dialog&&(ee.current=!0),G.current=!1},te=()=>{U(!0),ie.current=Sb(J.dialog,()=>{U(!1)})},he=ve=>{ve.target===ve.currentTarget&&te()},we=ve=>{if(h==="static"){he(ve);return}if(ee.current||ve.target!==ve.currentTarget){ee.current=!1;return}w==null||w()},me=ve=>{g?p==null||p(ve):(ve.preventDefault(),h==="static"&&te())},Ue=(ve,Ne)=>{ve&&V(ve),E==null||E(ve,Ne)},Ae=ve=>{ie.current==null||ie.current(),M==null||M(ve)},Ve=(ve,Ne)=>{C==null||C(ve,Ne),Sp(window,"resize",j)},Ke=ve=>{ve&&(ve.style.display=""),O==null||O(ve),nh(window,"resize",j)},st=m.useCallback(ve=>y.jsx("div",{...ve,className:oe(`${e}-backdrop`,$,!f&&"show")}),[f,$,e]),pe={...n,...F};pe.display="block";const Te=ve=>y.jsx("div",{role:"dialog",...ve,style:pe,className:oe(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?we:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,children:y.jsx(o,{...P,onMouseDown:Z,className:r,contentClassName:i,children:a})});return y.jsx(Yp.Provider,{value:I,children:y.jsx(Rx,{show:d,ref:K,backdrop:h,container:_,keyboard:!0,autoFocus:x,enforceFocus:T,restoreFocus:b,restoreFocusOptions:S,onEscapeKeyDown:me,onShow:v,onHide:w,onEnter:Ue,onEntering:Ve,onEntered:R,onExit:Ae,onExiting:k,onExited:Ke,manager:L(),transition:f?Tk:void 0,backdropTransition:f?Sk:void 0,renderBackdrop:st,renderDialog:Te})})});Bx.displayName="Modal";const Mn=Object.assign(Bx,{Body:Ix,Header:Lx,Title:Fx,Footer:Dx,Dialog:Gp,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),kk=()=>{};function Ek(e,t,{disabled:n,clickTrigger:r}={}){const i=t||kk;Kb(e,i,{disabled:n,clickTrigger:r});const a=Bt(o=>{jb(o)&&i(o)});m.useEffect(()=>{if(n||e==null)return;const o=ro(Zc(e));let s=(o.defaultView||window).event;const c=Nr(o,"keyup",l=>{if(l===s){s=void 0;return}a(l)});return()=>{c()}},[e,n,a])}const Ux=ue.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:c}=e,[l,u]=fl(),[d,f]=fl(),h=Xn(u,t),g=oh(e.container),p=oh(e.target),[v,w]=m.useState(!e.show),_=Gb(p,l,Xb({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&v&&w(!1);const x=(...C)=>{w(!0),e.onExited&&e.onExited(...C)},T=e.show||!v;if(Ek(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:b,onExiting:S,onEnter:R,onEntering:M,onEntered:k}=e;let E=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return E=sh(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:b,onExiting:S,onExited:x,onEnter:R,onEntering:M,onEntered:k}),g?oi.createPortal(E,g):null});Ux.displayName="Overlay";const Wx=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"popover-header"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Wx.displayName="PopoverHeader";const Zp=ue.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=it(t,"popover-body"),y.jsx(n,{ref:i,className:oe(e,t),...r})));Zp.displayName="PopoverBody";function zx(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function Hx(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Ok=ue.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{const f=it(e,"popover"),h=su(),[g]=(t==null?void 0:t.split("-"))||[],p=zx(g,h);let v=r;return l&&!s&&(v={...r,...Hx(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":g,className:oe(n,f,g&&`bs-popover-${p}`),...u,children:[y.jsx("div",{className:"popover-arrow",...o}),a?y.jsx(Zp,{children:i}):i]})}),Kc=Object.assign(Ok,{Header:Wx,Body:Zp,POPPER_OFFSET:[0,8]}),Vx=ue.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:c,...l},u)=>{e=it(e,"tooltip");const d=su(),[f]=(t==null?void 0:t.split("-"))||[],h=zx(f,d);let g=r;return c&&!o&&(g={...r,...Hx(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:g,role:"tooltip","x-placement":f,className:oe(n,e,`bs-tooltip-${h}`),...l,children:[y.jsx("div",{className:"tooltip-arrow",...a}),y.jsx("div",{className:`${e}-inner`,children:i})]})});Vx.displayName="Tooltip";const qx=Object.assign(Vx,{TOOLTIP_OFFSET:[0,6]});function Mk(e){const t=m.useRef(null),n=it(void 0,"popover"),r=it(void 0,"tooltip"),i=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(ch(t.current,n))return Kc.POPPER_OFFSET;if(ch(t.current,r))return qx.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function $k(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(dl(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(dl(i)))}const Yx=ue.forwardRef(({children:e,transition:t=di,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const c=m.useRef({}),[l,u]=m.useState(null),[d,f]=Mk(o.offset),h=Xn(s,d),g=t===!0?di:t||void 0,p=Bt(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return ss(()=>{l&&o.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,o.target]),m.useEffect(()=>{a||u(null)},[a]),y.jsx(Ux,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:p},transition:g,rootClose:r,placement:i,show:a,children:(v,{arrowProps:w,popper:_,show:x})=>{var T;$k(v,w);const b=_==null?void 0:_.placement,S=Object.assign(c.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||(T=_.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),R=!!l;return typeof e=="function"?e({...v,placement:b,show:x,...!t&&x&&{className:"show"},popper:S,arrowProps:w,hasDoneInitialMeasure:R}):ue.cloneElement(e,{...v,placement:b,arrowProps:w,popper:S,hasDoneInitialMeasure:R,className:oe(e.props.className,!t&&x&&"show"),style:{...e.props.style,...v.style}})}})});Yx.displayName="Overlay";function Ak(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function H0(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!us(i,a)&&e(...t)}H.oneOf(["click","hover","focus"]);const Gx=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const d=m.useRef(null),f=Xn(d,n.ref),h=g5(),g=m.useRef(""),[p,v]=bb(i,a,o),w=Ak(s),{onFocus:_,onBlur:x,onClick:T}=typeof n!="function"?ue.Children.only(n).props:{},b=P=>{f(dl(P))},S=m.useCallback(()=>{if(h.clear(),g.current="show",!w.show){v(!0);return}h.set(()=>{g.current==="show"&&v(!0)},w.show)},[w.show,v,h]),R=m.useCallback(()=>{if(h.clear(),g.current="hide",!w.hide){v(!1);return}h.set(()=>{g.current==="hide"&&v(!1)},w.hide)},[w.hide,v,h]),M=m.useCallback((...P)=>{S(),_==null||_(...P)},[S,_]),k=m.useCallback((...P)=>{R(),x==null||x(...P)},[R,x]),E=m.useCallback((...P)=>{v(!p),T==null||T(...P)},[T,v,p]),C=m.useCallback((...P)=>{H0(S,P,"fromElement")},[S]),O=m.useCallback((...P)=>{H0(R,P,"toElement")},[R]),$=e==null?[]:[].concat(e),A={ref:b};return $.indexOf("click")!==-1&&(A.onClick=E),$.indexOf("focus")!==-1&&(A.onFocus=M,A.onBlur=k),$.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&aa($.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),A.onMouseOver=C,A.onMouseOut=O),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(A):m.cloneElement(n,A),y.jsx(Yx,{...u,show:p,onHide:R,flip:l,placement:c,popperConfig:r,target:d.current,children:t})]})},Kp=ue.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=it(e,"spinner");const c=`${e}-${n}`;return y.jsx(i,{ref:s,...o,className:oe(a,c,r&&`${c}-${r}`,t&&`text-${t}`)})});Kp.displayName="Spinner";var Zx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},V0=m.createContext&&m.createContext(Zx),Rk=["attr","size","title"];function jk(e,t){if(e==null)return{};var n=Pk(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vl.apply(this,arguments)}function q0(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 yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(n),!0).forEach(function(r){Ik(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ik(e,t,n){return t=Dk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dk(e){var t=Nk(e,"string");return typeof t=="symbol"?t:t+""}function Nk(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kx(e){return e&&e.map((t,n)=>m.createElement(t.tag,yl({key:n},t.attr),Kx(t.child)))}function tt(e){return t=>m.createElement(Lk,vl({attr:yl({},e.attr)},t),Kx(e.child))}function Lk(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=jk(e,Rk),s=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),m.createElement("svg",vl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:yl(yl({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&m.createElement("title",null,a),e.children)};return V0!==void 0?m.createElement(V0.Consumer,null,n=>t(n)):t(Zx)}function Fk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Xs(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function Bk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function Uk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function Wk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function zk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function Hk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Vk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function qk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Xx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function Yk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Gk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Zk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Kk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Xk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Qk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function Jk(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function Qx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function eE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function tE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function nE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function rE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function iE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function aE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"},child:[]}]})(e)}function oE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function sE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Jx(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function cE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function e2(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function lE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function uE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function dE(e){return tt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Kt=m.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),t2=m.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),n2=m.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),r2=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:i,setOptions:a}=m.useContext(n2),o=m.useCallback(c=>{r(),i.current(c)},[r,i]),s=m.useCallback(async(c,l)=>(a(u=>({...u,...l})),n(c),new Promise(u=>{i.current=u})),[i,a,n]);return{isShown:e,text:t,prompt:s,onFinish:o}};let fE={data:""},hE=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||fE,pE=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,mE=/\/\*[^]*?\*\/| +/g,Y0=/\n+/g,ii=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?ii(o,a):a+"{"+ii(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=ii(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=ii.p?ii.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ar={},i2=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+i2(e[n]);return t}return e},gE=(e,t,n,r,i)=>{let a=i2(e),o=Ar[a]||(Ar[a]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(a));if(!Ar[o]){let c=a!==e?e:(l=>{let u,d,f=[{}];for(;u=pE.exec(l.replace(mE,""));)u[4]?f.shift():u[3]?(d=u[3].replace(Y0," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(Y0," ").trim();return f[0]})(e);Ar[o]=ii(i?{["@keyframes "+o]:c}:c,n?"":"."+o)}let s=n&&Ar.g?Ar.g:null;return n&&(Ar.g=Ar[o]),((c,l,u,d)=>{d?l.data=l.data.replace(d,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(Ar[o],t,r,s),o},vE=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=c?"."+c:s&&typeof s=="object"?s.props?"":ii(s,""):s===!1?"":s}return r+i+(o??"")},"");function vu(e){let t=this||{},n=e.call?e(t.p):e;return gE(n.unshift?n.raw?vE(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,hE(t.target),t.g,t.o,t.k)}let a2,lh,uh;vu.bind({g:1});let Hr=vu.bind({k:1});function yE(e,t,n,r){ii.p=t,a2=e,lh=n,uh=r}function Ci(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),c=s.className||i.className;n.p=Object.assign({theme:lh&&lh()},s),n.o=/ *go\d+/.test(c),s.className=vu.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),uh&&l[0]&&uh(s),a2(l,s)}return i}}var bE=e=>typeof e=="function",bl=(e,t)=>bE(e)?e(t):e,xE=(()=>{let e=0;return()=>(++e).toString()})(),o2=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),_E=20,Xc=new Map,wE=1e3,G0=e=>{if(Xc.has(e))return;let t=setTimeout(()=>{Xc.delete(e),oa({type:4,toastId:e})},wE);Xc.set(e,t)},CE=e=>{let t=Xc.get(e);t&&clearTimeout(t)},dh=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,_E)};case 1:return t.toast.id&&CE(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?dh(e,{type:1,toast:n}):dh(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?G0(r):e.toasts.forEach(a=>{G0(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},Qc=[],Jc={toasts:[],pausedAt:void 0},oa=e=>{Jc=dh(Jc,e),Qc.forEach(t=>{t(Jc)})},TE={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},SE=(e={})=>{let[t,n]=m.useState(Jc);m.useEffect(()=>(Qc.push(n),()=>{let i=Qc.indexOf(n);i>-1&&Qc.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||TE[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},kE=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||xE()}),Qs=e=>(t,n)=>{let r=kE(t,e,n);return oa({type:2,toast:r}),r.id},Dn=(e,t)=>Qs("blank")(e,t);Dn.error=Qs("error");Dn.success=Qs("success");Dn.loading=Qs("loading");Dn.custom=Qs("custom");Dn.dismiss=e=>{oa({type:3,toastId:e})};Dn.remove=e=>oa({type:4,toastId:e});Dn.promise=(e,t,n)=>{let r=Dn.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Dn.success(bl(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Dn.error(bl(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var EE=(e,t)=>{oa({type:1,toast:{id:e,height:t}})},OE=()=>{oa({type:5,time:Date.now()})},ME=e=>{let{toasts:t,pausedAt:n}=SE(e);m.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(c<0){s.visible&&Dn.dismiss(s.id);return}return setTimeout(()=>Dn.dismiss(s.id),c)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=m.useCallback(()=>{n&&oa({type:6,time:Date.now()})},[n]),i=m.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=o||{},u=t.filter(h=>(h.position||l)===(a.position||l)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,g)=>g<d&&h.visible).length;return u.filter(h=>h.visible).slice(...s?[f+1]:[0,f]).reduce((h,g)=>h+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:EE,startPause:OE,endPause:r,calculateOffset:i}}},$E=Hr`
54
54
  from {
55
55
  transform: scale(0) rotate(45deg);
56
56
  opacity: 0;
@@ -221,38 +221,38 @@ to {
221
221
  color: inherit;
222
222
  flex: 1 1 auto;
223
223
  white-space: pre-line;
224
- `,KE=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=a2()?[qE,YE]:[HE(n),VE(n)];return{animation:t?`${Hr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Hr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},XE=ue.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?KE(e.position||t||"top-center",e.visible):{opacity:0},a=ue.createElement(zE,{toast:e}),o=ue.createElement(ZE,{...e.ariaProps},xl(e.message,e));return ue.createElement(GE,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):ue.createElement(ue.Fragment,null,a,o))});yE(ue.createElement);var QE=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=ue.useCallback(o=>{if(o){let s=()=>{let c=o.getBoundingClientRect().height;r(e,c)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return ue.createElement("div",{ref:a,className:t,style:n},i)},JE=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:a2()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},eO=yu`
224
+ `,KE=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=o2()?[qE,YE]:[HE(n),VE(n)];return{animation:t?`${Hr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Hr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},XE=ue.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?KE(e.position||t||"top-center",e.visible):{opacity:0},a=ue.createElement(zE,{toast:e}),o=ue.createElement(ZE,{...e.ariaProps},bl(e.message,e));return ue.createElement(GE,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):ue.createElement(ue.Fragment,null,a,o))});yE(ue.createElement);var QE=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=ue.useCallback(o=>{if(o){let s=()=>{let c=o.getBoundingClientRect().height;r(e,c)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return ue.createElement("div",{ref:a,className:t,style:n},i)},JE=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:o2()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},eO=vu`
225
225
  z-index: 9999;
226
226
  > * {
227
227
  pointer-events: auto;
228
228
  }
229
- `,$c=16,tO=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:c}=ME(n);return ue.createElement("div",{style:{position:"fixed",zIndex:9999,top:$c,left:$c,right:$c,bottom:$c,pointerEvents:"none",...a},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(l=>{let u=l.position||t,d=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),f=JE(u,d);return ue.createElement(QE,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?eO:"",style:f},l.type==="custom"?xl(l.message,l):i?i(l):ue.createElement(XE,{toast:l,position:u}))}))},ba=Dn;const bu=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var fh;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})(fh||(fh={}));const o2=fh;var hh;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(hh||(hh={}));const nO=hh,s2=m.createContext({user:null,userLoginState:{state:o2.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),xu=m.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),c2=m.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),_l=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),l2=e=>{_l(e)||Object.keys(e).forEach(t=>{const n=e[t];if(_l(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:l2(n)})},u2=e=>Object.values(e).every(t=>t===null),rO=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&u2(r)?t[n]=null:t[n]=r}),t},Kp=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(a=>`${a.charAt(0).toLowerCase()}${a.slice(1)}`).join("."),errors:r.errors})):[]},iO=(e,t)=>{Kp(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),_l(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},d2=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},f2=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:a,small:o,delay:s,...c})=>{const l=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return y.jsx(Yx,{placement:n,overlay:y.jsxs(Xc,{className:oe("luminus-popover",{"luminus-popover-sm":o},a),onClick:u=>u.stopPropagation(),children:[e&&y.jsx(Xc.Header,{children:typeof e=="string"?y.jsx(_n,{variant:"h6",className:"text-primary",children:e}):e}),y.jsx(Xc.Body,{children:t})]}),trigger:l,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r})},aO="_h1_14r4v_1",oO="_h3_14r4v_8",sO="_h6_14r4v_15",cO="_subtitle_14r4v_22",lO="_body_14r4v_29",uO="_body2_14r4v_36",dO="_caption_14r4v_43",fO="_form-label_14r4v_50",Qr={h1:aO,h3:oO,h6:sO,subtitle:cO,body:lO,body2:uO,caption:dO,"form-label":"_form-label_14r4v_50",formLabel:fO},hO=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:oe("luminus-text-primary luminus-h1",Qr.h1,t),children:n});case"h3":return y.jsx("h3",{className:oe("luminus-text luminus-h3",Qr.h3,t),children:n});case"h6":return y.jsx("h6",{className:oe("luminus-text luminus-h6",Qr.h6,t),children:n});case"subtitle":return y.jsx("div",{className:oe("luminus-text luminus-subtitle",Qr.subtitle,t),children:n});case"body":return y.jsx("div",{className:oe("luminus-text luminus-body",Qr.body,t),children:n});case"body2":return y.jsx("div",{className:oe("luminus-text luminus-body2",Qr.body2,t),children:n});case"caption":return y.jsx("div",{className:oe("luminus-text-muted luminus-caption",Qr.caption,t),children:n});case"form-label":return y.jsx("div",{className:oe("luminus-text luminus-form-label",Qr.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},_n=({variant:e,className:t,children:n})=>y.jsx(hO,{variant:e,className:t,children:n}),Xp=({text:e,placement:t,children:n,delay:r})=>y.jsx(f2,{content:y.jsx(_n,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),h2=e=>e.length<300?e:e.substring(0,300)+"...",Va=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function fs(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const ph=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),pO=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function mO(e){return e==null?"":bp(ou(e),"dd.MM.yyyy")}function _u(e){return(e==null?void 0:e.toString().split("T")[0])??""}function gO(e){return e==null?"":bp(ou(e),"dd.MM.yyyy HH:mm")}function vO(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const yO=(e,t)=>fs(" ",e?`${e},`:void 0,t),bO=(e,t)=>`${t}${e!=null?` (${e})`:""}`,xO=(e,t)=>`[${e??""}] ${t??""}`,p2=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),m2=e=>{const t=ou(e);return!Number.isNaN(t.getTime())};function _O(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function wO(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function CO(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function TO(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function SO(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function g2(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function v2(e=new Date){return hT(e)}function kO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),g2(t)}function EO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),v2(t)}function OO(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function MO(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function $O(e){return _u(e.toISOString())}function y2(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,a=r.match(i);if(a){const o=a[2].toUpperCase(),s=a[3];try{return o==="B"?r=p2(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,l)=>String.fromCharCode(parseInt(l,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function wl(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const AO=["application/pdf","text/plain","text/html","application/xml","text/xml","image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/x-icon","audio/mpeg","audio/wav","audio/ogg","audio/mp4","video/mp4","video/webm","video/ogg"],RO=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],b2=e=>AO.includes(e.type),x2=e=>RO.includes(e.toLowerCase());function jO(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const a=e.headers.get("Content-disposition");typeof a=="string"&&a.length>0&&(n=y2(e.headers.get("Content-disposition"))??n)}const r=b2(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;wl(e.data,n,r?i:!1)}function qa(e,t=qa.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}qa.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const mh=(e,t)=>t?e?qa(e).toLowerCase().includes(qa(t.toLowerCase())):!1:!0,_2=(e,t)=>t?e?qa(e).toLowerCase().startsWith(qa(t.toLowerCase())):!1:!0,Qp=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,a=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?mh(a,i.substring(1)):_2(a,i):mh(a,i):!0};function w2(e,t){return function(){return e.apply(t,arguments)}}const{toString:PO}=Object.prototype,{getPrototypeOf:Jp}=Object,wu=(e=>t=>{const n=PO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lr=e=>(e=e.toLowerCase(),t=>wu(t)===e),Cu=e=>t=>typeof t===e,{isArray:oo}=Array,hs=Cu("undefined");function IO(e){return e!==null&&!hs(e)&&e.constructor!==null&&!hs(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C2=lr("ArrayBuffer");function DO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C2(e.buffer),t}const NO=Cu("string"),Nn=Cu("function"),T2=Cu("number"),Tu=e=>e!==null&&typeof e=="object",LO=e=>e===!0||e===!1,tl=e=>{if(wu(e)!=="object")return!1;const t=Jp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},FO=lr("Date"),BO=lr("File"),UO=lr("Blob"),WO=lr("FileList"),zO=e=>Tu(e)&&Nn(e.pipe),HO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=wu(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},VO=lr("URLSearchParams"),[qO,YO,GO,ZO]=["ReadableStream","Request","Response","Headers"].map(lr),KO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Js(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),oo(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function S2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,k2=e=>!hs(e)&&e!==Pi;function gh(){const{caseless:e}=k2(this)&&this||{},t={},n=(r,i)=>{const a=e&&S2(t,i)||i;tl(t[a])&&tl(r)?t[a]=gh(t[a],r):tl(r)?t[a]=gh({},r):oo(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Js(arguments[r],n);return t}const XO=(e,t,n,{allOwnKeys:r}={})=>(Js(t,(i,a)=>{n&&Nn(i)?e[a]=w2(i,n):e[a]=i},{allOwnKeys:r}),e),QO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},eM=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Jp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nM=e=>{if(!e)return null;if(oo(e))return e;let t=e.length;if(!T2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Jp(Uint8Array)),iM=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},aM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oM=lr("HTMLFormElement"),sM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),G0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cM=lr("RegExp"),E2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Js(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},lM=e=>{E2(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uM=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return oo(e)?r(e):r(String(e).split(t)),n},dM=()=>{},fM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uf="abcdefghijklmnopqrstuvwxyz",Z0="0123456789",O2={DIGIT:Z0,ALPHA:uf,ALPHA_DIGIT:uf+uf.toUpperCase()+Z0},hM=(e=16,t=O2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pM(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mM=e=>{const t=new Array(10),n=(r,i)=>{if(Tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=oo(r)?[]:{};return Js(r,(o,s)=>{const c=n(o,i+1);!hs(c)&&(a[s]=c)}),t[i]=void 0,a}}return r};return n(e,0)},gM=lr("AsyncFunction"),vM=e=>e&&(Tu(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch),M2=((e,t)=>e?setImmediate:t?((n,r)=>(Pi.addEventListener("message",({source:i,data:a})=>{i===Pi&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nn(Pi.postMessage)),yM=typeof queueMicrotask<"u"?queueMicrotask.bind(Pi):typeof process<"u"&&process.nextTick||M2,ne={isArray:oo,isArrayBuffer:C2,isBuffer:IO,isFormData:HO,isArrayBufferView:DO,isString:NO,isNumber:T2,isBoolean:LO,isObject:Tu,isPlainObject:tl,isReadableStream:qO,isRequest:YO,isResponse:GO,isHeaders:ZO,isUndefined:hs,isDate:FO,isFile:BO,isBlob:UO,isRegExp:cM,isFunction:Nn,isStream:zO,isURLSearchParams:VO,isTypedArray:rM,isFileList:WO,forEach:Js,merge:gh,extend:XO,trim:KO,stripBOM:QO,inherits:JO,toFlatObject:eM,kindOf:wu,kindOfTest:lr,endsWith:tM,toArray:nM,forEachEntry:iM,matchAll:aM,isHTMLForm:oM,hasOwnProperty:G0,hasOwnProp:G0,reduceDescriptors:E2,freezeMethods:lM,toObjectSet:uM,toCamelCase:sM,noop:dM,toFiniteNumber:fM,findKey:S2,global:Pi,isContextDefined:k2,ALPHABET:O2,generateString:hM,isSpecCompliantForm:pM,toJSONObject:mM,isAsyncFn:gM,isThenable:vM,setImmediate:M2,asap:yM};function Ge(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ne.inherits(Ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const $2=Ge.prototype,A2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{A2[e]={value:e}});Object.defineProperties(Ge,A2);Object.defineProperty($2,"isAxiosError",{value:!0});Ge.from=(e,t,n,r,i,a)=>{const o=Object.create($2);return ne.toFlatObject(e,o,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Ge.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const bM=null;function vh(e){return ne.isPlainObject(e)||ne.isArray(e)}function R2(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function K0(e,t,n){return e?e.concat(t).map(function(i,a){return i=R2(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function xM(e){return ne.isArray(e)&&!e.some(vh)}const _M=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Su(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!ne.isUndefined(v[p])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(ne.isDate(g))return g.toISOString();if(!c&&ne.isBlob(g))throw new Ge("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(g)||ne.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let w=g;if(g&&!v&&typeof g=="object"){if(ne.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(ne.isArray(g)&&xM(g)||(ne.isFileList(g)||ne.endsWith(p,"[]"))&&(w=ne.toArray(g)))return p=R2(p),w.forEach(function(x,T){!(ne.isUndefined(x)||x===null)&&t.append(o===!0?K0([p],T,a):o===null?p:p+"[]",l(x))}),!1}return vh(g)?!0:(t.append(K0(v,p,a),l(g)),!1)}const d=[],f=Object.assign(_M,{defaultVisitor:u,convertValue:l,isVisitable:vh});function h(g,p){if(!ne.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),ne.forEach(g,function(w,_){(!(ne.isUndefined(w)||w===null)&&i.call(t,w,ne.isString(_)?_.trim():_,p,f))===!0&&h(w,p?p.concat(_):[_])}),d.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function X0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function em(e,t){this._pairs=[],e&&Su(e,this,t)}const j2=em.prototype;j2.append=function(t,n){this._pairs.push([t,n])};j2.toString=function(t){const n=t?function(r){return t.call(this,r,X0)}:X0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P2(e,t,n){if(!t)return e;const r=n&&n.encode||wM,i=n&&n.serialize;let a;if(i?a=i(t,n):a=ne.isURLSearchParams(t)?t.toString():new em(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Q0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const I2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CM=typeof URLSearchParams<"u"?URLSearchParams:em,TM=typeof FormData<"u"?FormData:null,SM=typeof Blob<"u"?Blob:null,kM={isBrowser:!0,classes:{URLSearchParams:CM,FormData:TM,Blob:SM},protocols:["http","https","file","blob","url","data"]},tm=typeof window<"u"&&typeof document<"u",yh=typeof navigator=="object"&&navigator||void 0,EM=tm&&(!yh||["ReactNative","NativeScript","NS"].indexOf(yh.product)<0),OM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MM=tm&&window.location.href||"http://localhost",$M=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tm,hasStandardBrowserEnv:EM,hasStandardBrowserWebWorkerEnv:OM,navigator:yh,origin:MM},Symbol.toStringTag,{value:"Module"})),Rn={...$M,...kM};function AM(e,t){return Su(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Rn.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function RM(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jM(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function D2(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=a>=n.length;return o=!o&&ne.isArray(i)?i.length:o,c?(ne.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ne.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ne.isArray(i[o])&&(i[o]=jM(i[o])),!s)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,i)=>{t(RM(r),i,n,0)}),n}return null}function PM(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ec={transitional:I2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ne.isObject(t);if(a&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return i?JSON.stringify(D2(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return AM(t,this.formSerializer).toString();if((s=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Su(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),PM(t)):t}],transformResponse:[function(t){const n=this.transitional||ec.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Ge.from(s,Ge.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{ec.headers[e]={}});const IM=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DM=e=>{const t={};let n,r,i;return e&&e.split(`
230
- `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&IM[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},J0=Symbol("internals");function jo(e){return e&&String(e).trim().toLowerCase()}function nl(e){return e===!1||e==null?e:ne.isArray(e)?e.map(nl):String(e)}function NM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const LM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function df(e,t,n,r,i){if(ne.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function FM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function BM(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class jn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,c,l){const u=jo(c);if(!u)throw new Error("header name must be a non-empty string");const d=ne.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=nl(s))}const o=(s,c)=>ne.forEach(s,(l,u)=>a(l,u,c));if(ne.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ne.isString(t)&&(t=t.trim())&&!LM(t))o(DM(t),n);else if(ne.isHeaders(t))for(const[s,c]of t.entries())a(c,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=jo(t),t){const r=ne.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return NM(i);if(ne.isFunction(n))return n.call(this,i,r);if(ne.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jo(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||df(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=jo(o),o){const s=ne.findKey(r,o);s&&(!n||df(r,r[s],s,n))&&(delete r[s],i=!0)}}return ne.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||df(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ne.forEach(this,(i,a)=>{const o=ne.findKey(r,a);if(o){n[o]=nl(i),delete n[a];return}const s=t?FM(a):String(a).trim();s!==a&&delete n[a],n[s]=nl(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
231
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[J0]=this[J0]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=jo(o);r[s]||(BM(i,o),r[s]=!0)}return ne.isArray(t)?t.forEach(a):a(t),this}}jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(jn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(jn);function ff(e,t){const n=this||ec,r=t||n,i=jn.from(r.headers);let a=r.data;return ne.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function N2(e){return!!(e&&e.__CANCEL__)}function so(e,t,n){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(so,Ge,{__CANCEL__:!0});function L2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ge("Request failed with status code "+n.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function UM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[a];o||(o=l),n[i]=c,r[i]=l;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function zM(e,t){let n=0,r=1e3/t,i,a;const o=(l,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(i=l,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const Cl=(e,t,n=3)=>{let r=0;const i=WM(50,250);return zM(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,c=o-r,l=i(c),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},ev=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tv=e=>(...t)=>ne.asap(()=>e(...t)),HM=Rn.hasStandardBrowserEnv?function(){const t=Rn.navigator&&/(msie|trident)/i.test(Rn.navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=ne.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),VM=Rn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function YM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function F2(e,t){return e&&!qM(t)?YM(e,t):t}const nv=e=>e instanceof jn?{...e}:e;function Zi(e,t){t=t||{};const n={};function r(l,u,d){return ne.isPlainObject(l)&&ne.isPlainObject(u)?ne.merge.call({caseless:d},l,u):ne.isPlainObject(u)?ne.merge({},u):ne.isArray(u)?u.slice():u}function i(l,u,d){if(ne.isUndefined(u)){if(!ne.isUndefined(l))return r(void 0,l,d)}else return r(l,u,d)}function a(l,u){if(!ne.isUndefined(u))return r(void 0,u)}function o(l,u){if(ne.isUndefined(u)){if(!ne.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u)=>i(nv(l),nv(u),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);ne.isUndefined(f)&&d!==s||(n[u]=f)}),n}const B2=e=>{const t=Zi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=jn.from(o),t.url=P2(F2(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(ne.isFormData(n)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Rn.hasStandardBrowserEnv&&(r&&ne.isFunction(r)&&(r=r(t)),r||r!==!1&&HM(t.url))){const l=i&&a&&VM.read(a);l&&o.set(i,l)}return t},GM=typeof XMLHttpRequest<"u",ZM=GM&&function(e){return new Promise(function(n,r){const i=B2(e);let a=i.data;const o=jn.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,h,g;function p(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function w(){if(!v)return;const x=jn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};L2(function(R){n(R),p()},function(R){r(R),p()},b),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new Ge("Request aborted",Ge.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ge("Network Error",Ge.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||I2;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new Ge(T,b.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&ne.forEach(o.toJSON(),function(T,b){v.setRequestHeader(b,T)}),ne.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),l&&([f,g]=Cl(l,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,h]=Cl(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=x=>{v&&(r(!x||x.type?new so(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=UM(i.url);if(_&&Rn.protocols.indexOf(_)===-1){r(new Ge("Unsupported protocol "+_+":",Ge.ERR_BAD_REQUEST,e));return}v.send(a||null)})},KM=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(l){if(!i){i=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof Ge?u:new so(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new Ge(`timeout ${t} of ms exceeded`,Ge.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>ne.asap(s),c}},XM=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},QM=async function*(e,t){for await(const n of JM(e))yield*XM(n,t)},JM=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},rv=(e,t,n,r)=>{const i=QM(e,t);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let f=a+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},ku=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",U2=ku&&typeof ReadableStream=="function",e8=ku&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),W2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},t8=U2&&W2(()=>{let e=!1;const t=new Request(Rn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),iv=64*1024,bh=U2&&W2(()=>ne.isReadableStream(new Response("").body)),Tl={stream:bh&&(e=>e.body)};ku&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Tl[t]&&(Tl[t]=ne.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ge(`Response type '${t}' is not supported`,Ge.ERR_NOT_SUPPORT,r)})})})(new Response);const n8=async e=>{if(e==null)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e))return(await new Request(Rn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(e)||ne.isArrayBuffer(e))return e.byteLength;if(ne.isURLSearchParams(e)&&(e=e+""),ne.isString(e))return(await e8(e)).byteLength},r8=async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return n??n8(t)},i8=ku&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=B2(e);l=l?(l+"").toLowerCase():"text";let h=KM([i,a&&a.toAbortSignal()],o),g;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&t8&&n!=="get"&&n!=="head"&&(v=await r8(u,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(ne.isFormData(r)&&(S=b.headers.get("content-type"))&&u.setContentType(S),b.body){const[R,M]=ev(v,Cl(tv(c)));r=rv(b.body,iv,R,M)}}ne.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let _=await fetch(g);const x=bh&&(l==="stream"||l==="response");if(bh&&(s||x&&p)){const b={};["status","statusText","headers"].forEach(k=>{b[k]=_[k]});const S=ne.toFiniteNumber(_.headers.get("content-length")),[R,M]=s&&ev(S,Cl(tv(s),!0))||[];_=new Response(rv(_.body,iv,R,()=>{M&&M(),p&&p()}),b)}l=l||"text";let T=await Tl[ne.findKey(Tl,l)||"text"](_,e);return!x&&p&&p(),await new Promise((b,S)=>{L2(b,S,{data:T,headers:jn.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:g})})}catch(w){throw p&&p(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Ge("Network Error",Ge.ERR_NETWORK,e,g),{cause:w.cause||w}):Ge.from(w,w&&w.code,e,g)}}),xh={http:bM,xhr:ZM,fetch:i8};ne.forEach(xh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const av=e=>`- ${e}`,a8=e=>ne.isFunction(e)||e===null||e===!1,z2={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!a8(n)&&(r=xh[(o=String(n)).toLowerCase()],r===void 0))throw new Ge(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
232
- `+a.map(av).join(`
233
- `):" "+av(a[0]):"as no adapter specified";throw new Ge("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:xh};function hf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new so(null,e)}function ov(e){return hf(e),e.headers=jn.from(e.headers),e.data=ff.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z2.getAdapter(e.adapter||ec.adapter)(e).then(function(r){return hf(e),r.data=ff.call(e,e.transformResponse,r),r.headers=jn.from(r.headers),r},function(r){return N2(r)||(hf(e),r&&r.response&&(r.response.data=ff.call(e,e.transformResponse,r.response),r.response.headers=jn.from(r.response.headers))),Promise.reject(r)})}const H2="1.7.7",nm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sv={};nm.transitional=function(t,n,r){function i(a,o){return"[Axios v"+H2+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Ge(i(o," has been removed"+(n?" in "+n:"")),Ge.ERR_DEPRECATED);return n&&!sv[o]&&(sv[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function o8(e,t,n){if(typeof e!="object")throw new Ge("options must be an object",Ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],c=s===void 0||o(s,a,e);if(c!==!0)throw new Ge("option "+a+" must be "+c,Ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ge("Unknown option "+a,Ge.ERR_BAD_OPTION)}}const _h={assertOptions:o8,validators:nm},Jr=_h.validators;class Wi{constructor(t){this.defaults=t,this.interceptors={request:new Q0,response:new Q0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
- `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&_h.assertOptions(r,{silentJSONParsing:Jr.transitional(Jr.boolean),forcedJSONParsing:Jr.transitional(Jr.boolean),clarifyTimeoutError:Jr.transitional(Jr.boolean)},!1),i!=null&&(ne.isFunction(i)?n.paramsSerializer={serialize:i}:_h.assertOptions(i,{encode:Jr.function,serialize:Jr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ne.merge(a.common,a[n.method]);a&&ne.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=jn.concat(o,a);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[ov.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let h=n;for(d=0;d<f;){const g=s[d++],p=s[d++];try{h=g(h)}catch(v){p.call(this,v);break}}try{u=ov.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Zi(this.defaults,t);const n=F2(t.baseURL,t.url);return P2(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){Wi.prototype[t]=function(n,r){return this.request(Zi(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(Zi(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Wi.prototype[t]=n(),Wi.prototype[t+"Form"]=n(!0)});class rm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new so(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rm(function(i){t=i}),cancel:t}}}function s8(e){return function(n){return e.apply(null,n)}}function c8(e){return ne.isObject(e)&&e.isAxiosError===!0}const wh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wh).forEach(([e,t])=>{wh[t]=e});function V2(e){const t=new Wi(e),n=w2(Wi.prototype.request,t);return ne.extend(n,Wi.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return V2(Zi(e,i))},n}const Ut=V2(ec);Ut.Axios=Wi;Ut.CanceledError=so;Ut.CancelToken=rm;Ut.isCancel=N2;Ut.VERSION=H2;Ut.toFormData=Su;Ut.AxiosError=Ge;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=s8;Ut.isAxiosError=c8;Ut.mergeConfig=Zi;Ut.AxiosHeaders=jn;Ut.formToJSON=e=>D2(ne.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=z2.getAdapter;Ut.HttpStatusCode=wh;Ut.default=Ut;var Ac={};/*!
229
+ `,$c=16,tO=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:c}=ME(n);return ue.createElement("div",{style:{position:"fixed",zIndex:9999,top:$c,left:$c,right:$c,bottom:$c,pointerEvents:"none",...a},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(l=>{let u=l.position||t,d=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),f=JE(u,d);return ue.createElement(QE,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?eO:"",style:f},l.type==="custom"?bl(l.message,l):i?i(l):ue.createElement(XE,{toast:l,position:u}))}))},ba=Dn;const yu=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var fh;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})(fh||(fh={}));const s2=fh;var hh;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(hh||(hh={}));const nO=hh,c2=m.createContext({user:null,userLoginState:{state:s2.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),bu=m.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),l2=m.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),xl=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),u2=e=>{xl(e)||Object.keys(e).forEach(t=>{const n=e[t];if(xl(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:u2(n)})},d2=e=>Object.values(e).every(t=>t===null),rO=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&d2(r)?t[n]=null:t[n]=r}),t},Xp=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(a=>`${a.charAt(0).toLowerCase()}${a.slice(1)}`).join("."),errors:r.errors})):[]},iO=(e,t)=>{Xp(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),xl(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},f2=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},h2=({heading:e,content:t,placement:n,children:r,trigger:i=["hover"],popoverClassName:a,small:o,delay:s,...c})=>{const l=i.includes("hover")&&!i.includes("focus")?[...i,"focus"]:i;return y.jsx(Gx,{placement:n,overlay:y.jsxs(Kc,{className:oe("luminus-popover",{"luminus-popover-sm":o},a),onClick:u=>u.stopPropagation(),children:[e&&y.jsx(Kc.Header,{children:typeof e=="string"?y.jsx(_n,{variant:"h6",className:"text-primary",children:e}):e}),y.jsx(Kc.Body,{children:t})]}),trigger:l,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r})},aO="_h1_14r4v_1",oO="_h3_14r4v_8",sO="_h6_14r4v_15",cO="_subtitle_14r4v_22",lO="_body_14r4v_29",uO="_body2_14r4v_36",dO="_caption_14r4v_43",fO="_form-label_14r4v_50",Qr={h1:aO,h3:oO,h6:sO,subtitle:cO,body:lO,body2:uO,caption:dO,"form-label":"_form-label_14r4v_50",formLabel:fO},hO=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:oe("luminus-text-primary luminus-h1",Qr.h1,t),children:n});case"h3":return y.jsx("h3",{className:oe("luminus-text luminus-h3",Qr.h3,t),children:n});case"h6":return y.jsx("h6",{className:oe("luminus-text luminus-h6",Qr.h6,t),children:n});case"subtitle":return y.jsx("div",{className:oe("luminus-text luminus-subtitle",Qr.subtitle,t),children:n});case"body":return y.jsx("div",{className:oe("luminus-text luminus-body",Qr.body,t),children:n});case"body2":return y.jsx("div",{className:oe("luminus-text luminus-body2",Qr.body2,t),children:n});case"caption":return y.jsx("div",{className:oe("luminus-text-muted luminus-caption",Qr.caption,t),children:n});case"form-label":return y.jsx("div",{className:oe("luminus-text luminus-form-label",Qr.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},_n=({variant:e,className:t,children:n})=>y.jsx(hO,{variant:e,className:t,children:n}),Qp=({text:e,placement:t,children:n,delay:r})=>y.jsx(h2,{content:y.jsx(_n,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),p2=e=>e.length<300?e:e.substring(0,300)+"...",Va=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function fs(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const ph=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),pO=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function mO(e){return e==null?"":xp(au(e),"dd.MM.yyyy")}function xu(e){return(e==null?void 0:e.toString().split("T")[0])??""}function gO(e){return e==null?"":xp(au(e),"dd.MM.yyyy HH:mm")}function vO(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const yO=(e,t)=>fs(" ",e?`${e},`:void 0,t),bO=(e,t)=>`${t}${e!=null?` (${e})`:""}`,xO=(e,t)=>`[${e??""}] ${t??""}`,m2=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),g2=e=>{const t=au(e);return!Number.isNaN(t.getTime())};function _O(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function wO(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function CO(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function TO(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function SO(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function v2(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function y2(e=new Date){return hT(e)}function kO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),v2(t)}function EO(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),y2(t)}function OO(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function MO(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function $O(e){return xu(e.toISOString())}function b2(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,a=r.match(i);if(a){const o=a[2].toUpperCase(),s=a[3];try{return o==="B"?r=m2(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,l)=>String.fromCharCode(parseInt(l,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function _l(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const AO=["application/pdf","text/plain","text/html","application/xml","text/xml","image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/x-icon","audio/mpeg","audio/wav","audio/ogg","audio/mp4","video/mp4","video/webm","video/ogg"],RO=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],x2=e=>AO.includes(e.type),_2=e=>RO.includes(e.toLowerCase());function jO(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const a=e.headers.get("Content-disposition");typeof a=="string"&&a.length>0&&(n=b2(e.headers.get("Content-disposition"))??n)}const r=x2(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;_l(e.data,n,r?i:!1)}function qa(e,t=qa.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}qa.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const mh=(e,t)=>t?e?qa(e).toLowerCase().includes(qa(t.toLowerCase())):!1:!0,w2=(e,t)=>t?e?qa(e).toLowerCase().startsWith(qa(t.toLowerCase())):!1:!0,Jp=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,a=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?mh(a,i.substring(1)):w2(a,i):mh(a,i):!0};function C2(e,t){return function(){return e.apply(t,arguments)}}const{toString:PO}=Object.prototype,{getPrototypeOf:em}=Object,_u=(e=>t=>{const n=PO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lr=e=>(e=e.toLowerCase(),t=>_u(t)===e),wu=e=>t=>typeof t===e,{isArray:oo}=Array,hs=wu("undefined");function IO(e){return e!==null&&!hs(e)&&e.constructor!==null&&!hs(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T2=lr("ArrayBuffer");function DO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T2(e.buffer),t}const NO=wu("string"),Nn=wu("function"),S2=wu("number"),Cu=e=>e!==null&&typeof e=="object",LO=e=>e===!0||e===!1,el=e=>{if(_u(e)!=="object")return!1;const t=em(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},FO=lr("Date"),BO=lr("File"),UO=lr("Blob"),WO=lr("FileList"),zO=e=>Cu(e)&&Nn(e.pipe),HO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=_u(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},VO=lr("URLSearchParams"),[qO,YO,GO,ZO]=["ReadableStream","Request","Response","Headers"].map(lr),KO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Js(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),oo(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function k2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,E2=e=>!hs(e)&&e!==Pi;function gh(){const{caseless:e}=E2(this)&&this||{},t={},n=(r,i)=>{const a=e&&k2(t,i)||i;el(t[a])&&el(r)?t[a]=gh(t[a],r):el(r)?t[a]=gh({},r):oo(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Js(arguments[r],n);return t}const XO=(e,t,n,{allOwnKeys:r}={})=>(Js(t,(i,a)=>{n&&Nn(i)?e[a]=C2(i,n):e[a]=i},{allOwnKeys:r}),e),QO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},eM=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&em(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nM=e=>{if(!e)return null;if(oo(e))return e;let t=e.length;if(!S2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&em(Uint8Array)),iM=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},aM=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oM=lr("HTMLFormElement"),sM=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Z0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cM=lr("RegExp"),O2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Js(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},lM=e=>{O2(e,(t,n)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uM=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return oo(e)?r(e):r(String(e).split(t)),n},dM=()=>{},fM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,lf="abcdefghijklmnopqrstuvwxyz",K0="0123456789",M2={DIGIT:K0,ALPHA:lf,ALPHA_DIGIT:lf+lf.toUpperCase()+K0},hM=(e=16,t=M2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pM(e){return!!(e&&Nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mM=e=>{const t=new Array(10),n=(r,i)=>{if(Cu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=oo(r)?[]:{};return Js(r,(o,s)=>{const c=n(o,i+1);!hs(c)&&(a[s]=c)}),t[i]=void 0,a}}return r};return n(e,0)},gM=lr("AsyncFunction"),vM=e=>e&&(Cu(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch),$2=((e,t)=>e?setImmediate:t?((n,r)=>(Pi.addEventListener("message",({source:i,data:a})=>{i===Pi&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nn(Pi.postMessage)),yM=typeof queueMicrotask<"u"?queueMicrotask.bind(Pi):typeof process<"u"&&process.nextTick||$2,ne={isArray:oo,isArrayBuffer:T2,isBuffer:IO,isFormData:HO,isArrayBufferView:DO,isString:NO,isNumber:S2,isBoolean:LO,isObject:Cu,isPlainObject:el,isReadableStream:qO,isRequest:YO,isResponse:GO,isHeaders:ZO,isUndefined:hs,isDate:FO,isFile:BO,isBlob:UO,isRegExp:cM,isFunction:Nn,isStream:zO,isURLSearchParams:VO,isTypedArray:rM,isFileList:WO,forEach:Js,merge:gh,extend:XO,trim:KO,stripBOM:QO,inherits:JO,toFlatObject:eM,kindOf:_u,kindOfTest:lr,endsWith:tM,toArray:nM,forEachEntry:iM,matchAll:aM,isHTMLForm:oM,hasOwnProperty:Z0,hasOwnProp:Z0,reduceDescriptors:O2,freezeMethods:lM,toObjectSet:uM,toCamelCase:sM,noop:dM,toFiniteNumber:fM,findKey:k2,global:Pi,isContextDefined:E2,ALPHABET:M2,generateString:hM,isSpecCompliantForm:pM,toJSONObject:mM,isAsyncFn:gM,isThenable:vM,setImmediate:$2,asap:yM};function Ge(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ne.inherits(Ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const A2=Ge.prototype,R2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{R2[e]={value:e}});Object.defineProperties(Ge,R2);Object.defineProperty(A2,"isAxiosError",{value:!0});Ge.from=(e,t,n,r,i,a)=>{const o=Object.create(A2);return ne.toFlatObject(e,o,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Ge.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const bM=null;function vh(e){return ne.isPlainObject(e)||ne.isArray(e)}function j2(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function X0(e,t,n){return e?e.concat(t).map(function(i,a){return i=j2(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function xM(e){return ne.isArray(e)&&!e.some(vh)}const _M=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Tu(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!ne.isUndefined(v[p])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(ne.isDate(g))return g.toISOString();if(!c&&ne.isBlob(g))throw new Ge("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(g)||ne.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let w=g;if(g&&!v&&typeof g=="object"){if(ne.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(ne.isArray(g)&&xM(g)||(ne.isFileList(g)||ne.endsWith(p,"[]"))&&(w=ne.toArray(g)))return p=j2(p),w.forEach(function(x,T){!(ne.isUndefined(x)||x===null)&&t.append(o===!0?X0([p],T,a):o===null?p:p+"[]",l(x))}),!1}return vh(g)?!0:(t.append(X0(v,p,a),l(g)),!1)}const d=[],f=Object.assign(_M,{defaultVisitor:u,convertValue:l,isVisitable:vh});function h(g,p){if(!ne.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),ne.forEach(g,function(w,_){(!(ne.isUndefined(w)||w===null)&&i.call(t,w,ne.isString(_)?_.trim():_,p,f))===!0&&h(w,p?p.concat(_):[_])}),d.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Q0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function tm(e,t){this._pairs=[],e&&Tu(e,this,t)}const P2=tm.prototype;P2.append=function(t,n){this._pairs.push([t,n])};P2.toString=function(t){const n=t?function(r){return t.call(this,r,Q0)}:Q0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I2(e,t,n){if(!t)return e;const r=n&&n.encode||wM,i=n&&n.serialize;let a;if(i?a=i(t,n):a=ne.isURLSearchParams(t)?t.toString():new tm(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class J0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const D2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CM=typeof URLSearchParams<"u"?URLSearchParams:tm,TM=typeof FormData<"u"?FormData:null,SM=typeof Blob<"u"?Blob:null,kM={isBrowser:!0,classes:{URLSearchParams:CM,FormData:TM,Blob:SM},protocols:["http","https","file","blob","url","data"]},nm=typeof window<"u"&&typeof document<"u",yh=typeof navigator=="object"&&navigator||void 0,EM=nm&&(!yh||["ReactNative","NativeScript","NS"].indexOf(yh.product)<0),OM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MM=nm&&window.location.href||"http://localhost",$M=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nm,hasStandardBrowserEnv:EM,hasStandardBrowserWebWorkerEnv:OM,navigator:yh,origin:MM},Symbol.toStringTag,{value:"Module"})),Rn={...$M,...kM};function AM(e,t){return Tu(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Rn.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function RM(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jM(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function N2(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=a>=n.length;return o=!o&&ne.isArray(i)?i.length:o,c?(ne.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ne.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ne.isArray(i[o])&&(i[o]=jM(i[o])),!s)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,i)=>{t(RM(r),i,n,0)}),n}return null}function PM(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ec={transitional:D2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ne.isObject(t);if(a&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return i?JSON.stringify(N2(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return AM(t,this.formSerializer).toString();if((s=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Tu(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),PM(t)):t}],transformResponse:[function(t){const n=this.transitional||ec.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Ge.from(s,Ge.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{ec.headers[e]={}});const IM=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DM=e=>{const t={};let n,r,i;return e&&e.split(`
230
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&IM[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ev=Symbol("internals");function jo(e){return e&&String(e).trim().toLowerCase()}function tl(e){return e===!1||e==null?e:ne.isArray(e)?e.map(tl):String(e)}function NM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const LM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uf(e,t,n,r,i){if(ne.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function FM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function BM(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class jn{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,c,l){const u=jo(c);if(!u)throw new Error("header name must be a non-empty string");const d=ne.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=tl(s))}const o=(s,c)=>ne.forEach(s,(l,u)=>a(l,u,c));if(ne.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ne.isString(t)&&(t=t.trim())&&!LM(t))o(DM(t),n);else if(ne.isHeaders(t))for(const[s,c]of t.entries())a(c,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=jo(t),t){const r=ne.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return NM(i);if(ne.isFunction(n))return n.call(this,i,r);if(ne.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jo(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=jo(o),o){const s=ne.findKey(r,o);s&&(!n||uf(r,r[s],s,n))&&(delete r[s],i=!0)}}return ne.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||uf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ne.forEach(this,(i,a)=>{const o=ne.findKey(r,a);if(o){n[o]=tl(i),delete n[a];return}const s=t?FM(a):String(a).trim();s!==a&&delete n[a],n[s]=tl(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
231
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ev]=this[ev]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=jo(o);r[s]||(BM(i,o),r[s]=!0)}return ne.isArray(t)?t.forEach(a):a(t),this}}jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(jn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(jn);function df(e,t){const n=this||ec,r=t||n,i=jn.from(r.headers);let a=r.data;return ne.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function L2(e){return!!(e&&e.__CANCEL__)}function so(e,t,n){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(so,Ge,{__CANCEL__:!0});function F2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ge("Request failed with status code "+n.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function UM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[a];o||(o=l),n[i]=c,r[i]=l;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function zM(e,t){let n=0,r=1e3/t,i,a;const o=(l,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(i=l,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const wl=(e,t,n=3)=>{let r=0;const i=WM(50,250);return zM(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,c=o-r,l=i(c),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},tv=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nv=e=>(...t)=>ne.asap(()=>e(...t)),HM=Rn.hasStandardBrowserEnv?function(){const t=Rn.navigator&&/(msie|trident)/i.test(Rn.navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=ne.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),VM=Rn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function YM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function B2(e,t){return e&&!qM(t)?YM(e,t):t}const rv=e=>e instanceof jn?{...e}:e;function Zi(e,t){t=t||{};const n={};function r(l,u,d){return ne.isPlainObject(l)&&ne.isPlainObject(u)?ne.merge.call({caseless:d},l,u):ne.isPlainObject(u)?ne.merge({},u):ne.isArray(u)?u.slice():u}function i(l,u,d){if(ne.isUndefined(u)){if(!ne.isUndefined(l))return r(void 0,l,d)}else return r(l,u,d)}function a(l,u){if(!ne.isUndefined(u))return r(void 0,u)}function o(l,u){if(ne.isUndefined(u)){if(!ne.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u)=>i(rv(l),rv(u),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||i,f=d(e[u],t[u],u);ne.isUndefined(f)&&d!==s||(n[u]=f)}),n}const U2=e=>{const t=Zi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=jn.from(o),t.url=I2(B2(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(ne.isFormData(n)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Rn.hasStandardBrowserEnv&&(r&&ne.isFunction(r)&&(r=r(t)),r||r!==!1&&HM(t.url))){const l=i&&a&&VM.read(a);l&&o.set(i,l)}return t},GM=typeof XMLHttpRequest<"u",ZM=GM&&function(e){return new Promise(function(n,r){const i=U2(e);let a=i.data;const o=jn.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,h,g;function p(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function w(){if(!v)return;const x=jn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};F2(function(R){n(R),p()},function(R){r(R),p()},b),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new Ge("Request aborted",Ge.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ge("Network Error",Ge.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||D2;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),r(new Ge(T,b.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&ne.forEach(o.toJSON(),function(T,b){v.setRequestHeader(b,T)}),ne.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),l&&([f,g]=wl(l,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,h]=wl(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=x=>{v&&(r(!x||x.type?new so(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=UM(i.url);if(_&&Rn.protocols.indexOf(_)===-1){r(new Ge("Unsupported protocol "+_+":",Ge.ERR_BAD_REQUEST,e));return}v.send(a||null)})},KM=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(l){if(!i){i=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof Ge?u:new so(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new Ge(`timeout ${t} of ms exceeded`,Ge.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>ne.asap(s),c}},XM=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},QM=async function*(e,t){for await(const n of JM(e))yield*XM(n,t)},JM=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},iv=(e,t,n,r)=>{const i=QM(e,t);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let f=a+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},Su=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",W2=Su&&typeof ReadableStream=="function",e8=Su&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),z2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},t8=W2&&z2(()=>{let e=!1;const t=new Request(Rn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),av=64*1024,bh=W2&&z2(()=>ne.isReadableStream(new Response("").body)),Cl={stream:bh&&(e=>e.body)};Su&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cl[t]&&(Cl[t]=ne.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ge(`Response type '${t}' is not supported`,Ge.ERR_NOT_SUPPORT,r)})})})(new Response);const n8=async e=>{if(e==null)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e))return(await new Request(Rn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(e)||ne.isArrayBuffer(e))return e.byteLength;if(ne.isURLSearchParams(e)&&(e=e+""),ne.isString(e))return(await e8(e)).byteLength},r8=async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return n??n8(t)},i8=Su&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=U2(e);l=l?(l+"").toLowerCase():"text";let h=KM([i,a&&a.toAbortSignal()],o),g;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&t8&&n!=="get"&&n!=="head"&&(v=await r8(u,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(ne.isFormData(r)&&(S=b.headers.get("content-type"))&&u.setContentType(S),b.body){const[R,M]=tv(v,wl(nv(c)));r=iv(b.body,av,R,M)}}ne.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let _=await fetch(g);const x=bh&&(l==="stream"||l==="response");if(bh&&(s||x&&p)){const b={};["status","statusText","headers"].forEach(k=>{b[k]=_[k]});const S=ne.toFiniteNumber(_.headers.get("content-length")),[R,M]=s&&tv(S,wl(nv(s),!0))||[];_=new Response(iv(_.body,av,R,()=>{M&&M(),p&&p()}),b)}l=l||"text";let T=await Cl[ne.findKey(Cl,l)||"text"](_,e);return!x&&p&&p(),await new Promise((b,S)=>{F2(b,S,{data:T,headers:jn.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:g})})}catch(w){throw p&&p(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Ge("Network Error",Ge.ERR_NETWORK,e,g),{cause:w.cause||w}):Ge.from(w,w&&w.code,e,g)}}),xh={http:bM,xhr:ZM,fetch:i8};ne.forEach(xh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ov=e=>`- ${e}`,a8=e=>ne.isFunction(e)||e===null||e===!1,H2={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let o;if(r=n,!a8(n)&&(r=xh[(o=String(n)).toLowerCase()],r===void 0))throw new Ge(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
232
+ `+a.map(ov).join(`
233
+ `):" "+ov(a[0]):"as no adapter specified";throw new Ge("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:xh};function ff(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new so(null,e)}function sv(e){return ff(e),e.headers=jn.from(e.headers),e.data=df.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),H2.getAdapter(e.adapter||ec.adapter)(e).then(function(r){return ff(e),r.data=df.call(e,e.transformResponse,r),r.headers=jn.from(r.headers),r},function(r){return L2(r)||(ff(e),r&&r.response&&(r.response.data=df.call(e,e.transformResponse,r.response),r.response.headers=jn.from(r.response.headers))),Promise.reject(r)})}const V2="1.7.7",rm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cv={};rm.transitional=function(t,n,r){function i(a,o){return"[Axios v"+V2+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Ge(i(o," has been removed"+(n?" in "+n:"")),Ge.ERR_DEPRECATED);return n&&!cv[o]&&(cv[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function o8(e,t,n){if(typeof e!="object")throw new Ge("options must be an object",Ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],c=s===void 0||o(s,a,e);if(c!==!0)throw new Ge("option "+a+" must be "+c,Ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ge("Unknown option "+a,Ge.ERR_BAD_OPTION)}}const _h={assertOptions:o8,validators:rm},Jr=_h.validators;class Wi{constructor(t){this.defaults=t,this.interceptors={request:new J0,response:new J0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&_h.assertOptions(r,{silentJSONParsing:Jr.transitional(Jr.boolean),forcedJSONParsing:Jr.transitional(Jr.boolean),clarifyTimeoutError:Jr.transitional(Jr.boolean)},!1),i!=null&&(ne.isFunction(i)?n.paramsSerializer={serialize:i}:_h.assertOptions(i,{encode:Jr.function,serialize:Jr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ne.merge(a.common,a[n.method]);a&&ne.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=jn.concat(o,a);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[sv.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let h=n;for(d=0;d<f;){const g=s[d++],p=s[d++];try{h=g(h)}catch(v){p.call(this,v);break}}try{u=sv.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Zi(this.defaults,t);const n=B2(t.baseURL,t.url);return I2(n,t.params,t.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(t){Wi.prototype[t]=function(n,r){return this.request(Zi(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(Zi(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Wi.prototype[t]=n(),Wi.prototype[t+"Form"]=n(!0)});class im{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new so(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new im(function(i){t=i}),cancel:t}}}function s8(e){return function(n){return e.apply(null,n)}}function c8(e){return ne.isObject(e)&&e.isAxiosError===!0}const wh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wh).forEach(([e,t])=>{wh[t]=e});function q2(e){const t=new Wi(e),n=C2(Wi.prototype.request,t);return ne.extend(n,Wi.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return q2(Zi(e,i))},n}const Ut=q2(ec);Ut.Axios=Wi;Ut.CanceledError=so;Ut.CancelToken=im;Ut.isCancel=L2;Ut.VERSION=V2;Ut.toFormData=Tu;Ut.AxiosError=Ge;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=s8;Ut.isAxiosError=c8;Ut.mergeConfig=Zi;Ut.AxiosHeaders=jn;Ut.formToJSON=e=>N2(ne.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=H2.getAdapter;Ut.HttpStatusCode=wh;Ut.default=Ut;var Ac={};/*!
235
235
  * cookie
236
236
  * Copyright(c) 2012-2014 Roman Shtylman
237
237
  * Copyright(c) 2015 Douglas Christopher Wilson
238
238
  * MIT Licensed
239
- */var cv;function l8(){if(cv)return Ac;cv=1,Ac.parse=o,Ac.serialize=l;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(h,g){if(typeof h!="string")throw new TypeError("argument str must be a string");var p={},v=h.length;if(v<2)return p;var w=g&&g.decode||u,_=0,x=0,T=0;do{if(x=h.indexOf("=",_),x===-1)break;if(T=h.indexOf(";",_),T===-1)T=v;else if(x>T){_=h.lastIndexOf(";",x-1)+1;continue}var b=s(h,_,x),S=c(h,x,b),R=h.slice(b,S);if(!t.call(p,R)){var M=s(h,x+1,T),k=c(h,T,M);h.charCodeAt(M)===34&&h.charCodeAt(k-1)===34&&(M++,k--);var E=h.slice(M,k);p[R]=f(E,w)}_=T+1}while(_<v);return p}function s(h,g,p){do{var v=h.charCodeAt(g);if(v!==32&&v!==9)return g}while(++g<p);return p}function c(h,g,p){for(;g>p;){var v=h.charCodeAt(--g);if(v!==32&&v!==9)return g+1}return p}function l(h,g,p){var v=p&&p.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var w=v(g);if(!r.test(w))throw new TypeError("argument val is invalid");var _=h+"="+w;if(!p)return _;if(p.maxAge!=null){var x=Math.floor(p.maxAge);if(!isFinite(x))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+x}if(p.domain){if(!i.test(p.domain))throw new TypeError("option domain is invalid");_+="; Domain="+p.domain}if(p.path){if(!a.test(p.path))throw new TypeError("option path is invalid");_+="; Path="+p.path}if(p.expires){var T=p.expires;if(!d(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+T.toUTCString()}if(p.httpOnly&&(_+="; HttpOnly"),p.secure&&(_+="; Secure"),p.partitioned&&(_+="; Partitioned"),p.priority){var b=typeof p.priority=="string"?p.priority.toLowerCase():p.priority;switch(b){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(p.sameSite){var S=typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite;switch(S){case!0:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return _}function u(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function d(h){return e.call(h)==="[object Date]"}function f(h,g){try{return g(h)}catch{return h}}return Ac}var rl=l8();function u8(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function d8(e){return typeof e=="string"?rl.parse(e):typeof e=="object"&&e!==null?e:{}}function pf(e,t={}){const n=f8(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function f8(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class h8{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=rl.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=d8(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=u8()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:pf(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),pf(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=pf(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=rl.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=rl.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const p8=ue.createContext(new h8);var Rc={exports:{}},xt={};/** @license React v16.13.1
239
+ */var lv;function l8(){if(lv)return Ac;lv=1,Ac.parse=o,Ac.serialize=l;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(h,g){if(typeof h!="string")throw new TypeError("argument str must be a string");var p={},v=h.length;if(v<2)return p;var w=g&&g.decode||u,_=0,x=0,T=0;do{if(x=h.indexOf("=",_),x===-1)break;if(T=h.indexOf(";",_),T===-1)T=v;else if(x>T){_=h.lastIndexOf(";",x-1)+1;continue}var b=s(h,_,x),S=c(h,x,b),R=h.slice(b,S);if(!t.call(p,R)){var M=s(h,x+1,T),k=c(h,T,M);h.charCodeAt(M)===34&&h.charCodeAt(k-1)===34&&(M++,k--);var E=h.slice(M,k);p[R]=f(E,w)}_=T+1}while(_<v);return p}function s(h,g,p){do{var v=h.charCodeAt(g);if(v!==32&&v!==9)return g}while(++g<p);return p}function c(h,g,p){for(;g>p;){var v=h.charCodeAt(--g);if(v!==32&&v!==9)return g+1}return p}function l(h,g,p){var v=p&&p.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var w=v(g);if(!r.test(w))throw new TypeError("argument val is invalid");var _=h+"="+w;if(!p)return _;if(p.maxAge!=null){var x=Math.floor(p.maxAge);if(!isFinite(x))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+x}if(p.domain){if(!i.test(p.domain))throw new TypeError("option domain is invalid");_+="; Domain="+p.domain}if(p.path){if(!a.test(p.path))throw new TypeError("option path is invalid");_+="; Path="+p.path}if(p.expires){var T=p.expires;if(!d(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+T.toUTCString()}if(p.httpOnly&&(_+="; HttpOnly"),p.secure&&(_+="; Secure"),p.partitioned&&(_+="; Partitioned"),p.priority){var b=typeof p.priority=="string"?p.priority.toLowerCase():p.priority;switch(b){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(p.sameSite){var S=typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite;switch(S){case!0:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return _}function u(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function d(h){return e.call(h)==="[object Date]"}function f(h,g){try{return g(h)}catch{return h}}return Ac}var nl=l8();function u8(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function d8(e){return typeof e=="string"?nl.parse(e):typeof e=="object"&&e!==null?e:{}}function hf(e,t={}){const n=f8(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function f8(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class h8{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=nl.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=d8(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=u8()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:hf(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),hf(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=hf(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=nl.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=nl.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const p8=ue.createContext(new h8);var Rc={exports:{}},xt={};/** @license React v16.13.1
240
240
  * react-is.production.min.js
241
241
  *
242
242
  * Copyright (c) Facebook, Inc. and its affiliates.
243
243
  *
244
244
  * This source code is licensed under the MIT license found in the
245
245
  * LICENSE file in the root directory of this source tree.
246
- */var lv;function m8(){if(lv)return xt;lv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case c:case l:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case g:case h:case o:return b;default:return S}}case n:return S}}}function T(b){return x(b)===l}return xt.AsyncMode=c,xt.ConcurrentMode=l,xt.ContextConsumer=s,xt.ContextProvider=o,xt.Element=t,xt.ForwardRef=u,xt.Fragment=r,xt.Lazy=g,xt.Memo=h,xt.Portal=n,xt.Profiler=a,xt.StrictMode=i,xt.Suspense=d,xt.isAsyncMode=function(b){return T(b)||x(b)===c},xt.isConcurrentMode=T,xt.isContextConsumer=function(b){return x(b)===s},xt.isContextProvider=function(b){return x(b)===o},xt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},xt.isForwardRef=function(b){return x(b)===u},xt.isFragment=function(b){return x(b)===r},xt.isLazy=function(b){return x(b)===g},xt.isMemo=function(b){return x(b)===h},xt.isPortal=function(b){return x(b)===n},xt.isProfiler=function(b){return x(b)===a},xt.isStrictMode=function(b){return x(b)===i},xt.isSuspense=function(b){return x(b)===d},xt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===w||b.$$typeof===_||b.$$typeof===p)},xt.typeOf=x,xt}var _t={};/** @license React v16.13.1
246
+ */var uv;function m8(){if(uv)return xt;uv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case c:case l:case r:case a:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case g:case h:case o:return b;default:return S}}case n:return S}}}function T(b){return x(b)===l}return xt.AsyncMode=c,xt.ConcurrentMode=l,xt.ContextConsumer=s,xt.ContextProvider=o,xt.Element=t,xt.ForwardRef=u,xt.Fragment=r,xt.Lazy=g,xt.Memo=h,xt.Portal=n,xt.Profiler=a,xt.StrictMode=i,xt.Suspense=d,xt.isAsyncMode=function(b){return T(b)||x(b)===c},xt.isConcurrentMode=T,xt.isContextConsumer=function(b){return x(b)===s},xt.isContextProvider=function(b){return x(b)===o},xt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},xt.isForwardRef=function(b){return x(b)===u},xt.isFragment=function(b){return x(b)===r},xt.isLazy=function(b){return x(b)===g},xt.isMemo=function(b){return x(b)===h},xt.isPortal=function(b){return x(b)===n},xt.isProfiler=function(b){return x(b)===a},xt.isStrictMode=function(b){return x(b)===i},xt.isSuspense=function(b){return x(b)===d},xt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===a||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===o||b.$$typeof===s||b.$$typeof===u||b.$$typeof===v||b.$$typeof===w||b.$$typeof===_||b.$$typeof===p)},xt.typeOf=x,xt}var _t={};/** @license React v16.13.1
247
247
  * react-is.development.js
248
248
  *
249
249
  * Copyright (c) Facebook, Inc. and its affiliates.
250
250
  *
251
251
  * This source code is licensed under the MIT license found in the
252
252
  * LICENSE file in the root directory of this source tree.
253
- */var uv;function g8(){return uv||(uv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(j){return typeof j=="string"||typeof j=="function"||j===r||j===l||j===a||j===i||j===d||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===u||j.$$typeof===v||j.$$typeof===w||j.$$typeof===_||j.$$typeof===p)}function T(j){if(typeof j=="object"&&j!==null){var Z=j.$$typeof;switch(Z){case t:var Q=j.type;switch(Q){case c:case l:case r:case a:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case h:case o:return te;default:return Z}}case n:return Z}}}var b=c,S=l,R=s,M=o,k=t,E=u,C=r,O=g,$=h,A=n,P=a,D=i,F=d,q=!1;function z(j){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(j)||T(j)===c}function U(j){return T(j)===l}function G(j){return T(j)===s}function ee(j){return T(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function J(j){return T(j)===u}function X(j){return T(j)===r}function K(j){return T(j)===g}function re(j){return T(j)===h}function N(j){return T(j)===n}function I(j){return T(j)===a}function L(j){return T(j)===i}function V(j){return T(j)===d}_t.AsyncMode=b,_t.ConcurrentMode=S,_t.ContextConsumer=R,_t.ContextProvider=M,_t.Element=k,_t.ForwardRef=E,_t.Fragment=C,_t.Lazy=O,_t.Memo=$,_t.Portal=A,_t.Profiler=P,_t.StrictMode=D,_t.Suspense=F,_t.isAsyncMode=z,_t.isConcurrentMode=U,_t.isContextConsumer=G,_t.isContextProvider=ee,_t.isElement=ie,_t.isForwardRef=J,_t.isFragment=X,_t.isLazy=K,_t.isMemo=re,_t.isPortal=N,_t.isProfiler=I,_t.isStrictMode=L,_t.isSuspense=V,_t.isValidElementType=x,_t.typeOf=T}()),_t}var dv;function v8(){return dv||(dv=1,process.env.NODE_ENV==="production"?Rc.exports=m8():Rc.exports=g8()),Rc.exports}var mf,fv;function y8(){if(fv)return mf;fv=1;var e=v8(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(g){return e.isMemo(g)?i:a[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,p,v){if(typeof p!="string"){if(f){var w=d(p);w&&w!==f&&h(g,w,v)}var _=c(p);l&&(_=_.concat(l(p)));for(var x=o(g),T=o(p),b=0;b<_.length;++b){var S=_[b];if(!n[S]&&!(v&&v[S])&&!(T&&T[S])&&!(x&&x[S])){var R=u(p,S);try{s(g,S,R)}catch{}}}}return g}return mf=h,mf}y8();function b8(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function im(e,t){const n=m.useContext(p8);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=m.useState(()=>n.getAll(i));b8()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);x8(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);const s=m.useMemo(()=>n.set.bind(n),[n]),c=m.useMemo(()=>n.remove.bind(n),[n]),l=m.useMemo(()=>n.update.bind(n),[n]);return[a,s,c,l]}function x8(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const _8=()=>{const{axiosOptions:e,cookieDomain:t}=m.useContext(Kt),[,n,r]=im(["Authorization"]),i=Ut.create(e),a=m.useCallback(()=>{const c=localStorage.getItem("token");return c!==null&&c.length>0},[]),o=m.useCallback(async(c,l)=>i.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),n("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:db(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[i,n,t]),s=m.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:a,login:o,logout:s}},w8=()=>{const[,,e]=im(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=m.useContext(xu),{instance:r,inProgress:i}=r0.useMsal(),a=r0.useIsAuthenticated(),o=m.useCallback(()=>a,[a]),s=m.useCallback(()=>!o()&&i!==QC.InteractionStatus.None,[o,i]),c=m.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=m.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:o,isAuthenticating:s,login:c,logout:l}},q2=()=>{const{useMsal:e}=m.useContext(xu),t=_8(),n=w8();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,login:e?n.login:t.login,logout:e?n.logout:t.logout}},C8="_toast_1s57i_1",Po={toast:C8},T8=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Eu=()=>({addNotification:m.useCallback((t,n)=>{const r=h2(t),i=T8(n),a=y.jsxs(y.Fragment,{children:[r,y.jsx(Qx,{onClick:()=>ba.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(oE,{size:12}),className:oe("luminus-toast-success rounded shadow bg-success",Po.toast)});break}case"danger":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Kk,{size:12}),className:oe("luminus-toast-danger rounded shadow bg-danger",Po.toast)});break}case"warning":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(qk,{size:12}),className:oe("luminus-toast-warning rounded shadow bg-warning",Po.toast)});break}case"info":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Gk,{size:12}),className:oe("luminus-toast-info rounded shadow bg-info",Po.toast)});break}case"prompt":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Zk,{size:12}),className:oe("luminus-toast-prompt rounded shadow bg-light",Po.toast)});break}}},[])}),S8=Ut.CancelToken,Ou=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:l}}=m.useContext(Kt),{delegation:u}=m.useContext(c2),{getToken:d}=m.useContext(xu),f=m.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=Eu(),{isAuthenticating:g}=q2(),p=m.useMemo(()=>Ut.create(c),[c]),v=m.useCallback(async _=>{var T,b,S;if(t&&!_.headers.Authorization){if(g())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const R=i?{token:i,expiresOn:db(new Date(Date.now()),1)}:await d();if(!R)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(gb(R.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));_.headers.Authorization=`Bearer ${R.token}`}f!==null&&!a&&(_.headers.DelegationId=f.toString());const x=localStorage.getItem("search-use-asterisk")!=="false";return _.headers["Search-Use-Asterisk"]=x?"true":"false",(T=_.url)!=null&&T.includes("culture=")?_.url=(b=_.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):_.url=`${_.url}${(S=_.url)!=null&&S.includes("?")?"&":"?"}culture=${s}`,_},[t,d,s,i,f,a,g]),w=m.useCallback(_=>{var b,S;if(console.log(_),Ut.isCancel(_)||_.message==="Authentication in progress"||_.message==="No bearer token"||_.message==="Token expired")return Promise.reject(_);const x=Kp(_);if(x.length>0){const R=x.find(M=>M.name.toLowerCase()==="others");return R?(!r&&h(R.errors,"danger"),Promise.reject(_)):(!r&&h(l.validationError,"warning"),Promise.reject(_))}const T=d2(_);return T!==null?(!r&&h(`${l.permissionError}: ${fs(", ",...T)}`,"danger"),Promise.reject(_)):(o??[]).includes((b=_.response)==null?void 0:b.status)?Promise.reject(_):((S=_.response)==null?void 0:S.status)===403?(!r&&h(l.forbiddenError,"danger"),Promise.reject(_)):_.message&&_.message==="Network Error"?(!r&&h(l.networkError,"danger"),Promise.reject(_)):(Ut.isCancel(_)||(!r&&h(l.unexpectedError,"danger"),(_.response||_.request)&&!r&&h(l.unexpectedError,"danger")),Promise.reject(_))},[h,l.forbiddenError,l.networkError,l.permissionError,l.unexpectedError,l.validationError,r,o]);return m.useEffect(()=>{n&&(p.defaults.baseURL=n),p.interceptors.request.clear(),p.interceptors.response.clear();const _=p.interceptors.request.use(v,T=>Promise.reject(T)),x=p.interceptors.response.use(T=>T,w);return()=>{p.interceptors.request.eject(_),p.interceptors.response.eject(x)}},[p.defaults,p.interceptors.request,p.interceptors.response,n,v,w]),p};let Io;const am=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=m.useContext(e2),a=()=>{r()};return{confirm:async(l,u)=>(n(l,u),new Promise(d=>{Io=d})),onConfirm:()=>{a(),Io&&Io(!0)},onCancel:()=>{a(),Io&&Io(!1)},show:e,text:t,textSm:i}};var ut;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(ut||(ut={}));var Ch;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ch||(Ch={}));const Ce=ut.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ai=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},fe=ut.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"]),k8=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ln extends Error{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}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const l=o.path[c];c===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(o))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),r}static assert(t){if(!(t instanceof Ln))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ut.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ln.create=e=>new Ln(e);const Ya=(e,t)=>{let n;switch(e.code){case fe.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case fe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ut.jsonStringifyReplacer)}`;break;case fe.unrecognized_keys:n=`Unrecognized key(s) in object: ${ut.joinValues(e.keys,", ")}`;break;case fe.invalid_union:n="Invalid input";break;case fe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ut.joinValues(e.options)}`;break;case fe.invalid_enum_value:n=`Invalid enum value. Expected ${ut.joinValues(e.options)}, received '${e.received}'`;break;case fe.invalid_arguments:n="Invalid function arguments";break;case fe.invalid_return_type:n="Invalid function return type";break;case fe.invalid_date:n="Invalid date";break;case fe.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}"`:ut.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case fe.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==="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 fe.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 fe.custom:n="Invalid input";break;case fe.invalid_intersection_types:n="Intersection results could not be merged";break;case fe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case fe.not_finite:n="Number must be finite";break;default:n=t.defaultError,ut.assertNever(e)}return{message:n}};let Y2=Ya;function E8(e){Y2=e}function Sl(){return Y2}const kl=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)s=l(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},O8=[];function _e(e,t){const n=Sl(),r=kl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ya?void 0:Ya].filter(i=>!!i)});e.common.issues.push(r)}class yn{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 Be;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,o=await i.value;r.push({key:a,value:o})}return yn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return Be;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const Be=Object.freeze({status:"aborted"}),Ea=e=>({status:"dirty",value:e}),Tn=e=>({status:"valid",value:e}),Th=e=>e.status==="aborted",Sh=e=>e.status==="dirty",ps=e=>e.status==="valid",ms=e=>typeof Promise<"u"&&e instanceof Promise;function El(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function G2(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var $e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})($e||($e={}));var Zo,Ko;class vr{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||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hv=(e,t)=>{if(ps(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 Ln(e.common.issues);return this._error=n,this._error}}};function Ze(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:(o,s)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}},description:i}}class et{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return ai(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ai(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new yn,ctx:{common:t.parent.common,data:t.data,parsedType:ai(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ms(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){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ai(t)},a=this._parseSync({data:t,path:i.path,parent:i});return hv(i,a)}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:ai(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(ms(i)?i:Promise.resolve(i));return hv(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 o=t(i),s=()=>a.addIssue({code:fe.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!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 sr({schema:this,typeName:Fe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return mr.create(this,this._def)}nullable(){return gi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return or.create(this,this._def)}promise(){return Za.create(this,this._def)}or(t){return bs.create([this,t],this._def)}and(t){return xs.create(this,t,this._def)}transform(t){return new sr({...Ze(this._def),schema:this,typeName:Fe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ss({...Ze(this._def),innerType:this,defaultValue:n,typeName:Fe.ZodDefault})}brand(){return new om({typeName:Fe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ks({...Ze(this._def),innerType:this,catchValue:n,typeName:Fe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return tc.create(this,t)}readonly(){return Es.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const M8=/^c[^\s-]{8,}$/i,$8=/^[0-9a-z]+$/,A8=/^[0-9A-HJKMNP-TV-Z]{26}$/,R8=/^[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,j8=/^[a-z0-9_-]{21}$/i,P8=/^[-+]?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)?)??$/,I8=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,D8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let gf;const N8=/^(?:(?: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])$/,L8=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,F8=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z2="((\\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])))",B8=new RegExp(`^${Z2}$`);function K2(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function U8(e){return new RegExp(`^${K2(e)}$`)}function X2(e){let t=`${Z2}T${K2(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 W8(e,t){return!!((t==="v4"||!t)&&N8.test(e)||(t==="v6"||!t)&&L8.test(e))}class ir extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.string,received:a.parsedType}),Be}const r=new yn;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.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),_e(i,{code:fe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?_e(i,{code:fe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&_e(i,{code:fe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")I8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")gf||(gf=new RegExp(D8,"u")),gf.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")R8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")j8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")M8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")$8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")A8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:fe.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),_e(i,{validation:"regex",code:fe.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),_e(i,{code:fe.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),_e(i,{code:fe.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?X2(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?B8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?U8(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?P8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:fe.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?W8(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:fe.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?F8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:fe.invalid_string,message:a.message}),r.dirty()):ut.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:fe.invalid_string,...$e.errToObj(r)})}_addCheck(t){return new ir({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...$e.errToObj(t)})}url(t){return this._addCheck({kind:"url",...$e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...$e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...$e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...$e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...$e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...$e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...$e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...$e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...$e.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...$e.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,...$e.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...$e.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...$e.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...$e.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...$e.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...$e.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...$e.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...$e.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...$e.errToObj(n)})}nonempty(t){return this.min(1,$e.errToObj(t))}trim(){return new ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const 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}}ir.create=e=>{var t;return new ir({checks:[],typeName:Fe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ze(e)})};function z8(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class hi extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.number,received:a.parsedType}),Be}let r;const i=new yn;for(const a of this._def.checks)a.kind==="int"?ut.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.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),_e(r,{code:fe.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),_e(r,{code:fe.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?z8(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.not_finite,message:a.message}),i.dirty()):ut.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,$e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,$e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,$e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,$e.toString(n))}setLimit(t,n,r,i){return new hi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:$e.toString(i)}]})}_addCheck(t){return new hi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:$e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:$e.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:$e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$e.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"&&ut.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)}}hi.create=e=>new hi({checks:[],typeName:Fe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class pi extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ce.bigint){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.bigint,received:a.parsedType}),Be}let r;const i=new yn;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),_e(r,{code:fe.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),_e(r,{code:fe.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),_e(r,{code:fe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):ut.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,$e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,$e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,$e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,$e.toString(n))}setLimit(t,n,r,i){return new pi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:$e.toString(i)}]})}_addCheck(t){return new pi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:$e.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}}pi.create=e=>{var t;return new pi({checks:[],typeName:Fe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ze(e)})};class gs extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.boolean,received:r.parsedType}),Be}return Tn(t.data)}}gs.create=e=>new gs({typeName:Fe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Ki extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.date,received:a.parsedType}),Be}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_date}),Be}const r=new yn;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.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),_e(i,{code:fe.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):ut.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ki({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:$e.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:$e.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}}Ki.create=e=>new Ki({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Fe.ZodDate,...Ze(e)});class Ol extends et{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.symbol,received:r.parsedType}),Be}return Tn(t.data)}}Ol.create=e=>new Ol({typeName:Fe.ZodSymbol,...Ze(e)});class vs extends et{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.undefined,received:r.parsedType}),Be}return Tn(t.data)}}vs.create=e=>new vs({typeName:Fe.ZodUndefined,...Ze(e)});class ys extends et{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.null,received:r.parsedType}),Be}return Tn(t.data)}}ys.create=e=>new ys({typeName:Fe.ZodNull,...Ze(e)});class Ga extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Tn(t.data)}}Ga.create=e=>new Ga({typeName:Fe.ZodAny,...Ze(e)});class zi extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Tn(t.data)}}zi.create=e=>new zi({typeName:Fe.ZodUnknown,...Ze(e)});class Vr extends et{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:fe.invalid_type,expected:Ce.never,received:n.parsedType}),Be}}Vr.create=e=>new Vr({typeName:Fe.ZodNever,...Ze(e)});class Ml extends et{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.void,received:r.parsedType}),Be}return Tn(t.data)}}Ml.create=e=>new Ml({typeName:Fe.ZodVoid,...Ze(e)});class or extends et{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return _e(n,{code:fe.invalid_type,expected:Ce.array,received:n.parsedType}),Be;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(_e(n,{code:o?fe.too_big:fe.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(_e(n,{code:fe.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&&(_e(n,{code:fe.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((o,s)=>i.type._parseAsync(new vr(n,o,n.path,s)))).then(o=>yn.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new vr(n,o,n.path,s)));return yn.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new or({...this._def,minLength:{value:t,message:$e.toString(n)}})}max(t,n){return new or({...this._def,maxLength:{value:t,message:$e.toString(n)}})}length(t,n){return new or({...this._def,exactLength:{value:t,message:$e.toString(n)}})}nonempty(t){return this.min(1,t)}}or.create=(e,t)=>new or({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Fe.ZodArray,...Ze(t)});function ka(e){if(e instanceof Zt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=mr.create(ka(r))}return new Zt({...e._def,shape:()=>t})}else return e instanceof or?new or({...e._def,type:ka(e.element)}):e instanceof mr?mr.create(ka(e.unwrap())):e instanceof gi?gi.create(ka(e.unwrap())):e instanceof yr?yr.create(e.items.map(t=>ka(t))):e}class Zt extends et{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=ut.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return _e(l,{code:fe.invalid_type,expected:Ce.object,received:l.parsedType}),Be}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Vr&&this._def.unknownKeys==="strip"))for(const l in i.data)o.includes(l)||s.push(l);const c=[];for(const l of o){const u=a[l],d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new vr(i,d,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Vr){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(l==="strict")s.length>0&&(_e(i,{code:fe.unrecognized_keys,keys:s}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new vr(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>yn.mergeObjectSync(r,l)):yn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return $e.errToObj,new Zt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const c=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=$e.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new Zt({...this._def,unknownKeys:"strip"})}passthrough(){return new Zt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Zt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Zt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Fe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Zt({...this._def,catchall:t})}pick(t){const n={};return ut.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Zt({...this._def,shape:()=>n})}omit(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Zt({...this._def,shape:()=>n})}deepPartial(){return ka(this)}partial(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Zt({...this._def,shape:()=>n})}required(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof mr;)a=a._def.innerType;n[r]=a}}),new Zt({...this._def,shape:()=>n})}keyof(){return Q2(ut.objectKeys(this.shape))}}Zt.create=(e,t)=>new Zt({shape:()=>e,unknownKeys:"strip",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});Zt.strictCreate=(e,t)=>new Zt({shape:()=>e,unknownKeys:"strict",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});Zt.lazycreate=(e,t)=>new Zt({shape:e,unknownKeys:"strip",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});class bs extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new Ln(s.ctx.common.issues));return _e(n,{code:fe.invalid_union,unionErrors:o}),Be}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(c=>new Ln(c));return _e(n,{code:fe.invalid_union,unionErrors:s}),Be}}get options(){return this._def.options}}bs.create=(e,t)=>new bs({options:e,typeName:Fe.ZodUnion,...Ze(t)});const jr=e=>e instanceof ws?jr(e.schema):e instanceof sr?jr(e.innerType()):e instanceof Cs?[e.value]:e instanceof mi?e.options:e instanceof Ts?ut.objectValues(e.enum):e instanceof Ss?jr(e._def.innerType):e instanceof vs?[void 0]:e instanceof ys?[null]:e instanceof mr?[void 0,...jr(e.unwrap())]:e instanceof gi?[null,...jr(e.unwrap())]:e instanceof om||e instanceof Es?jr(e.unwrap()):e instanceof ks?jr(e._def.innerType):[];class Mu extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.object)return _e(n,{code:fe.invalid_type,expected:Ce.object,received:n.parsedType}),Be;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:fe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=jr(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Mu({typeName:Fe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ze(r)})}}function kh(e,t){const n=ai(e),r=ai(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const i=ut.objectKeys(t),a=ut.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const c=kh(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===Ce.array&&r===Ce.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],c=kh(o,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class xs extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Th(a)||Th(o))return Be;const s=kh(a.value,o.value);return s.valid?((Sh(a)||Sh(o))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:fe.invalid_intersection_types}),Be)};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,o])=>i(a,o)):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}))}}xs.create=(e,t,n)=>new xs({left:e,right:t,typeName:Fe.ZodIntersection,...Ze(n)});class yr extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return _e(r,{code:fe.invalid_type,expected:Ce.array,received:r.parsedType}),Be;if(r.data.length<this._def.items.length)return _e(r,{code:fe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Be;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:fe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new vr(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>yn.mergeArray(n,o)):yn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new yr({...this._def,rest:t})}}yr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yr({items:e,typeName:Fe.ZodTuple,rest:null,...Ze(t)})};class _s extends et{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!==Ce.object)return _e(r,{code:fe.invalid_type,expected:Ce.object,received:r.parsedType}),Be;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new vr(r,s,r.path,s)),value:o._parse(new vr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?yn.mergeObjectAsync(n,i):yn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof et?new _s({keyType:t,valueType:n,typeName:Fe.ZodRecord,...Ze(r)}):new _s({keyType:ir.create(),valueType:t,typeName:Fe.ZodRecord,...Ze(n)})}}class $l extends et{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!==Ce.map)return _e(r,{code:fe.invalid_type,expected:Ce.map,received:r.parsedType}),Be;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,c],l)=>({key:i._parse(new vr(r,s,r.path,[l,"key"])),value:a._parse(new vr(r,c,r.path,[l,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return Be;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return Be;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}}}}$l.create=(e,t,n)=>new $l({valueType:t,keyType:e,typeName:Fe.ZodMap,...Ze(n)});class Xi extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return _e(r,{code:fe.invalid_type,expected:Ce.set,received:r.parsedType}),Be;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:fe.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&&(_e(r,{code:fe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return Be;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const s=[...r.data.values()].map((c,l)=>a._parse(new vr(r,c,r.path,l)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new Xi({...this._def,minSize:{value:t,message:$e.toString(n)}})}max(t,n){return new Xi({...this._def,maxSize:{value:t,message:$e.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Xi.create=(e,t)=>new Xi({valueType:e,minSize:null,maxSize:null,typeName:Fe.ZodSet,...Ze(t)});class Ra extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.function)return _e(n,{code:fe.invalid_type,expected:Ce.function,received:n.parsedType}),Be;function r(s,c){return kl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Sl(),Ya].filter(l=>!!l),issueData:{code:fe.invalid_arguments,argumentsError:c}})}function i(s,c){return kl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Sl(),Ya].filter(l=>!!l),issueData:{code:fe.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Za){const s=this;return Tn(async function(...c){const l=new Ln([]),u=await s._def.args.parseAsync(c,a).catch(h=>{throw l.addIssue(r(c,h)),l}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(h=>{throw l.addIssue(i(d,h)),l})})}else{const s=this;return Tn(function(...c){const l=s._def.args.safeParse(c,a);if(!l.success)throw new Ln([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new Ln([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ra({...this._def,args:yr.create(t).rest(zi.create())})}returns(t){return new Ra({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ra({args:t||yr.create([]).rest(zi.create()),returns:n||zi.create(),typeName:Fe.ZodFunction,...Ze(r)})}}class ws extends et{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})}}ws.create=(e,t)=>new ws({getter:e,typeName:Fe.ZodLazy,...Ze(t)});class Cs extends et{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:fe.invalid_literal,expected:this._def.value}),Be}return{status:"valid",value:t.data}}get value(){return this._def.value}}Cs.create=(e,t)=>new Cs({value:e,typeName:Fe.ZodLiteral,...Ze(t)});function Q2(e,t){return new mi({values:e,typeName:Fe.ZodEnum,...Ze(t)})}class mi extends et{constructor(){super(...arguments),Zo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:ut.joinValues(r),received:n.parsedType,code:fe.invalid_type}),Be}if(El(this,Zo)||G2(this,Zo,new Set(this._def.values)),!El(this,Zo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:fe.invalid_enum_value,options:r}),Be}return Tn(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 mi.create(t,{...this._def,...n})}exclude(t,n=this._def){return mi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Zo=new WeakMap;mi.create=Q2;class Ts extends et{constructor(){super(...arguments),Ko.set(this,void 0)}_parse(t){const n=ut.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const i=ut.objectValues(n);return _e(r,{expected:ut.joinValues(i),received:r.parsedType,code:fe.invalid_type}),Be}if(El(this,Ko)||G2(this,Ko,new Set(ut.getValidEnumValues(this._def.values))),!El(this,Ko).has(t.data)){const i=ut.objectValues(n);return _e(r,{received:r.data,code:fe.invalid_enum_value,options:i}),Be}return Tn(t.data)}get enum(){return this._def.values}}Ko=new WeakMap;Ts.create=(e,t)=>new Ts({values:e,typeName:Fe.ZodNativeEnum,...Ze(t)});class Za extends et{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return _e(n,{code:fe.invalid_type,expected:Ce.promise,received:n.parsedType}),Be;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Tn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Za.create=(e,t)=>new Za({type:e,typeName:Fe.ZodPromise,...Ze(t)});class sr extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fe.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:o=>{_e(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return Be;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Be:c.status==="dirty"||n.value==="dirty"?Ea(c.value):c});{if(n.value==="aborted")return Be;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Be:s.status==="dirty"||n.value==="dirty"?Ea(s.value):s}}if(i.type==="refinement"){const o=s=>{const c=i.refinement(s,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 s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Be:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Be:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ps(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>ps(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);ut.assertNever(i)}}sr.create=(e,t,n)=>new sr({schema:e,typeName:Fe.ZodEffects,effect:t,...Ze(n)});sr.createWithPreprocess=(e,t,n)=>new sr({schema:t,effect:{type:"preprocess",transform:e},typeName:Fe.ZodEffects,...Ze(n)});class mr extends et{_parse(t){return this._getType(t)===Ce.undefined?Tn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}mr.create=(e,t)=>new mr({innerType:e,typeName:Fe.ZodOptional,...Ze(t)});class gi extends et{_parse(t){return this._getType(t)===Ce.null?Tn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:Fe.ZodNullable,...Ze(t)});class Ss extends et{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ss.create=(e,t)=>new Ss({innerType:e,typeName:Fe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class ks extends et{_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 ms(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ln(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ln(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ks.create=(e,t)=>new ks({innerType:e,typeName:Fe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class Al extends et{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.nan,received:r.parsedType}),Be}return{status:"valid",value:t.data}}}Al.create=e=>new Al({typeName:Fe.ZodNaN,...Ze(e)});const H8=Symbol("zod_brand");class om extends et{_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 tc extends et{_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"?Be:a.status==="dirty"?(n.dirty(),Ea(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"?Be: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 tc({in:t,out:n,typeName:Fe.ZodPipeline})}}class Es extends et{_parse(t){const n=this._def.innerType._parse(t),r=i=>(ps(i)&&(i.value=Object.freeze(i.value)),i);return ms(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Es.create=(e,t)=>new Es({innerType:e,typeName:Fe.ZodReadonly,...Ze(t)});function J2(e,t={},n){return e?Ga.create().superRefine((r,i)=>{var a,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):Ga.create()}const V8={object:Zt.lazycreate};var Fe;(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"})(Fe||(Fe={}));const q8=(e,t={message:`Input not instance of ${e.name}`})=>J2(n=>n instanceof e,t),e_=ir.create,t_=hi.create,Y8=Al.create,G8=pi.create,n_=gs.create,Z8=Ki.create,K8=Ol.create,X8=vs.create,Q8=ys.create,J8=Ga.create,e$=zi.create,t$=Vr.create,n$=Ml.create,r$=or.create,i$=Zt.create,a$=Zt.strictCreate,o$=bs.create,s$=Mu.create,c$=xs.create,l$=yr.create,u$=_s.create,d$=$l.create,f$=Xi.create,h$=Ra.create,p$=ws.create,m$=Cs.create,g$=mi.create,v$=Ts.create,y$=Za.create,pv=sr.create,b$=mr.create,x$=gi.create,_$=sr.createWithPreprocess,w$=tc.create,C$=()=>e_().optional(),T$=()=>t_().optional(),S$=()=>n_().optional(),k$={string:e=>ir.create({...e,coerce:!0}),number:e=>hi.create({...e,coerce:!0}),boolean:e=>gs.create({...e,coerce:!0}),bigint:e=>pi.create({...e,coerce:!0}),date:e=>Ki.create({...e,coerce:!0})},E$=Be;var sn=Object.freeze({__proto__:null,defaultErrorMap:Ya,setErrorMap:E8,getErrorMap:Sl,makeIssue:kl,EMPTY_PATH:O8,addIssueToContext:_e,ParseStatus:yn,INVALID:Be,DIRTY:Ea,OK:Tn,isAborted:Th,isDirty:Sh,isValid:ps,isAsync:ms,get util(){return ut},get objectUtil(){return Ch},ZodParsedType:Ce,getParsedType:ai,ZodType:et,datetimeRegex:X2,ZodString:ir,ZodNumber:hi,ZodBigInt:pi,ZodBoolean:gs,ZodDate:Ki,ZodSymbol:Ol,ZodUndefined:vs,ZodNull:ys,ZodAny:Ga,ZodUnknown:zi,ZodNever:Vr,ZodVoid:Ml,ZodArray:or,ZodObject:Zt,ZodUnion:bs,ZodDiscriminatedUnion:Mu,ZodIntersection:xs,ZodTuple:yr,ZodRecord:_s,ZodMap:$l,ZodSet:Xi,ZodFunction:Ra,ZodLazy:ws,ZodLiteral:Cs,ZodEnum:mi,ZodNativeEnum:Ts,ZodPromise:Za,ZodEffects:sr,ZodTransformer:sr,ZodOptional:mr,ZodNullable:gi,ZodDefault:Ss,ZodCatch:ks,ZodNaN:Al,BRAND:H8,ZodBranded:om,ZodPipeline:tc,ZodReadonly:Es,custom:J2,Schema:et,ZodSchema:et,late:V8,get ZodFirstPartyTypeKind(){return Fe},coerce:k$,any:J8,array:r$,bigint:G8,boolean:n_,date:Z8,discriminatedUnion:s$,effect:pv,enum:g$,function:h$,instanceof:q8,intersection:c$,lazy:p$,literal:m$,map:d$,nan:Y8,nativeEnum:v$,never:t$,null:Q8,nullable:x$,number:t_,object:i$,oboolean:S$,onumber:T$,optional:b$,ostring:C$,pipeline:w$,preprocess:_$,promise:y$,record:u$,set:f$,strictObject:a$,string:e_,symbol:K8,transformer:pv,tuple:l$,undefined:X8,union:o$,unknown:e$,void:n$,NEVER:E$,ZodIssueCode:fe,quotelessJson:k8,ZodError:Ln});const $u=()=>{const{texts:{formValidation:e}}=m.useContext(Kt),t=m.useCallback(p=>{let v=(p!=null&&p.useCoerce?sn.coerce:sn).string({invalid_type_error:e.required,required_error:e.required});return p!=null&&p.email&&(v=v.email(e.invalidEmail)),p!=null&&p.length&&(v=v.min(p.length,e.length(p.length))),p!=null&&p.minLength&&(v=v.min(p.minLength,e.minLength(p.minLength))),p!=null&&p.maxLength&&(v=v.max(p.maxLength,e.maxLength(p.maxLength))),p!=null&&p.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),p!=null&&p.regex&&(v=v.regex(p.regex,e.invalidFormat)),v.transform(w=>w??null)},[e]),n=m.useCallback(p=>t(p).nullable().optional().transform(v=>v??null),[t]),r=m.useCallback(p=>{const v=(p==null?void 0:p.min)??Number.MIN_SAFE_INTEGER,w=(p==null?void 0:p.max)??Number.MAX_SAFE_INTEGER,_=(p!=null&&p.useCoerce?sn.coerce:sn).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(w,e.moreThanMax(w));return _.transform(x=>x??null),_},[e]),i=m.useCallback(p=>r(p).nullable().optional().transform(v=>v??null),[r]),a=m.useCallback(p=>(p!=null&&p.useCoerce?sn.coerce:sn).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=m.useCallback(p=>(p!=null&&p.useCoerce?sn.coerce:sn).string({invalid_type_error:e.required,required_error:e.required}).refine(m2,{message:e.invalidDate}).transform(w=>w??null),[e.invalidDate,e.required]),s=m.useCallback(p=>o(p).nullable().transform(v=>v??null),[o]),c=m.useCallback((p,v)=>sn.enum(p,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),l=m.useCallback((p,v)=>c(p,v).nullable().transform(w=>w??null),[c]),u=m.useCallback(p=>sn.object({id:i({useCoerce:!0})}).nullable().transform(w=>w??null),[i]),d=m.useCallback(p=>sn.object({id:r()}).transform(w=>w??null),[r]),f=m.useCallback(p=>sn.object({id:n({useCoerce:!0})}).nullable().transform(w=>w??null),[n]),h=m.useCallback(p=>sn.object({id:t()}).transform(w=>w??null),[t]),g=m.useCallback(({required:p,multiple:v,maxFileSize:w})=>sn.any().transform(x=>Array.from(x??[])).refine(x=>!p||(x==null?void 0:x.length)>0,"File is required.").refine(x=>v||(x==null?void 0:x.length)<=1,"Multiple files not allowed.").refine(x=>x.every(T=>T.size<=w),`Maximum file size is ${Va(w)}.`).transform(x=>(v?x:x==null?void 0:x[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:a,zDate:s,zDateRequired:o,zEnum:l,zEnumRequired:c,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:h,zFile:g}},r_=(e,t)=>{m.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},i_=()=>{const{user:e}=m.useContext(s2);return{checkUserHasPermissions:m.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}):n.every(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}),[e])}},a_=(e,t)=>{m.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e]),m.useEffect(()=>t===void 0?()=>{}:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),[t])},sm=(e,t,n)=>m.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),o_=()=>{const{addNotification:e}=Eu(),{texts:{clipboard:t}}=m.useContext(Kt);return{copyToClipboard:m.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},nc=()=>{const[e,t]=m.useState(window.innerWidth),[n,r]=m.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return m.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},s_=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),c_=m.createContext(void 0),mv={falseIfNotInit:!1},Au=({falseIfNotInit:e=mv.falseIfNotInit}=mv)=>{const t=m.useContext(c_);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},O$="_button_1wjon_1",M$="_filled_1wjon_7",$$="_sm_1wjon_13",A$="_md_1wjon_18",R$="_lg_1wjon_23",xa={button:O$,filled:M$,sm:$$,md:A$,lg:R$},Qi=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...a})=>a.as==="link"?y.jsx(no.Link,{to:a.href??"/",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,xa.button,xa[e],xa[n]),...a,children:i}):a.as==="button"||a.as===void 0?y.jsx("button",{type:"button",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,xa.button,xa[e],xa[n]),...a,children:i}):null,j$="_button_1r3i0_1",Eh={button:j$},Ru=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?y.jsxs(no.Link,{to:i.href??"/",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Eh.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?y.jsxs("button",{type:"button",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Eh.button),...i,children:[t,r]}):null,P$=m.forwardRef(({color:e="primary",icon:t=y.jsx(Xx,{size:12}),inputId:n="context-file-input",accept:r="*",onUpload:i,className:a,children:o,multiple:s,...c},l)=>{const u=d=>{d.target.files&&(i(d.target.files),d.target.value="")};return y.jsxs(y.Fragment,{children:[y.jsxs("label",{ref:l,htmlFor:n,className:oe(`luminus-context-button btn text-${e} ${a??""}`,Eh.button),...c,children:[t,o]}),y.jsx("input",{id:n,type:"file",accept:r,onChange:u,hidden:!0,multiple:s})]})}),I$="_icon-button_15e26_1",D$="_sm_15e26_14",N$="_md_15e26_23",L$="_lg_15e26_32",jc={"icon-button":"_icon-button_15e26_1",iconButton:I$,sm:D$,md:N$,lg:L$},rc=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...a})=>a.as==="link"?y.jsx(no.Link,{to:a.href??"/",className:oe(`luminus-icon-button btn text-${t} ${i??""}`,jc.iconButton,jc[n]),...a,children:r}):a.as==="button"||a.as===void 0?y.jsx("button",{type:e,className:oe(`luminus-icon-button btn text-${t} ${i??""}`,jc.iconButton,jc[n]),...a,children:r}):null,F$="_feedback_esh1j_1",B$="_feedback-spacer_esh1j_8",gv={feedback:F$,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:B$},ju=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe("invalid-feedback luminus-invalid-feedback",gv.feedback),children:e}),y.jsx("div",{className:oe("invalid-feedback-spacer",gv.feedbackSpacer),children:e})]}),U$="_item_1dy8x_1",l_={item:U$},ja=({color:e="primary",icon:t,className:n,children:r,to:i,as:a,...o})=>y.jsxs(Ha.Item,{className:oe(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,l_.item),as:a==="link"?no.Link:void 0,to:i??"",...o,children:[t,r]}),W$="_button_qhwih_1",z$={button:W$},cm=m.forwardRef(({color:e="primary",icon:t=y.jsx(Jx,{size:21}),text:n,onClick:r,className:i,children:a,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:oe(`btn luminus-context-button text-${e} ${i??""}`,z$.button),...o,children:[t,n]})),H$="_avatar-icon_1axl6_1",V$={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:H$},u_=({name:e,fontSize:t,size:n})=>{const r=m.useMemo(()=>{const o=e.split(" ");return o.length<2?e:fs(" ",o.at(o.length-2),o.at(o.length-1))},[e]),i=m.useMemo(()=>{const o=r.split(" ");return fs("",...o.map(s=>s.at(0)??void 0))},[r]),a=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let l="#";for(c=0;c<3;c+=1){const u=s>>c*8&255;l+=`00${u.toString(16)}`.slice(-2)}return l};return y.jsx(Yx,{placement:"bottom",overlay:y.jsx(Vx,{children:e}),children:y.jsx("div",{className:oe("luminus-avatar-icon",V$.avatarIcon),style:{backgroundColor:a(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:i})})})},q$=m.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:i=>{i.preventDefault(),t(i)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(u_,{name:e}),n]})),lm=e=>y.jsx(Ha.Toggle,{...e}),Y$="_divider_1e6rk_1",G$={divider:Y$},d_=({className:e})=>y.jsx(Ha.Divider,{className:oe("luminus-dropdown-divider",e,G$.divider)}),Z$="_dropdown_1lk66_1",K$={dropdown:Z$},um=({toggle:e,children:t,align:n,...r})=>y.jsxs(Ha,{...r,align:n,children:[e,y.jsx(Ha.Menu,{className:oe("luminus-dropdown rounded shadow",K$.dropdown),align:n,children:t})]});function X$(e,t,n){var r=this,i=m.useRef(null),a=m.useRef(0),o=m.useRef(null),s=m.useRef([]),c=m.useRef(),l=m.useRef(),u=m.useRef(e),d=m.useRef(!0);u.current=e;var f=typeof window<"u",h=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,v="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,_=v?Math.max(+n.maxWait||0,t):null;m.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var x=m.useMemo(function(){var T=function(E){var C=s.current,O=c.current;return s.current=c.current=null,a.current=E,l.current=u.current.apply(O,C)},b=function(E,C){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(E):setTimeout(E,C)},S=function(E){if(!d.current)return!1;var C=E-i.current;return!i.current||C>=t||C<0||v&&E-a.current>=_},R=function(E){return o.current=null,p&&s.current?T(E):(s.current=c.current=null,l.current)},M=function E(){var C=Date.now();if(S(C))return R(C);if(d.current){var O=t-(C-i.current),$=v?Math.min(O,_-(C-a.current)):O;b(E,$)}},k=function(){if(f||w){var E=Date.now(),C=S(E);if(s.current=[].slice.call(arguments),c.current=r,i.current=E,C){if(!o.current&&d.current)return a.current=i.current,b(M,t),g?T(i.current):l.current;if(v)return b(M,t),T(i.current)}return o.current||b(M,t),l.current}};return k.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=c.current=o.current=null},k.isPending=function(){return!!o.current},k.flush=function(){return o.current?R(Date.now()):l.current},k},[g,v,t,_,p,h,f,w]);return x}function Q$(e,t){return e===t}function f_(e,t,n){var r=Q$,i=m.useRef(e),a=m.useState({})[1],o=X$(m.useCallback(function(c){i.current=c,a({})},[a]),t,n),s=m.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const J$="_wrapper_1mvyk_1",e7="_open_1mvyk_9",t7="_dropdown_1mvyk_13",n7="_search-input-container_1mvyk_19",r7="_search-input_1mvyk_19",i7="_loading-container_1mvyk_25",a7="_items-container_1mvyk_32",o7="_header-row_1mvyk_38",s7="_name_1mvyk_49",c7="_item_1mvyk_32",l7="_column-item_1mvyk_65",u7="_icon_1mvyk_69",d7="_action-buttons-container_1mvyk_89",f7="_reverse_1mvyk_97",h7="_action-button_1mvyk_89",p7="_actions-dropdown_1mvyk_110",on={wrapper:J$,open:e7,dropdown:t7,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:n7,"search-input":"_search-input_1mvyk_19",searchInput:r7,"loading-container":"_loading-container_1mvyk_25",loadingContainer:i7,"items-container":"_items-container_1mvyk_32",itemsContainer:a7,"header-row":"_header-row_1mvyk_38",headerRow:o7,name:s7,item:c7,"column-item":"_column-item_1mvyk_65",columnItem:l7,icon:u7,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:d7,reverse:f7,"action-button":"_action-button_1mvyk_89",actionButton:h7,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:p7},h_=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:c,itemsNameWidth:l,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:g,isLoading:p=!1,inputRef:v,archiveColumn:w="archive",addNewOptionPath:_,refreshOptions:x,noRemoveButton:T=!1})=>{var st;const{texts:{customSelect:b}}=m.useContext(Kt),S=m.useRef(null),R=m.useRef(null),M=m.useRef(null),k=m.useRef(null),E=m.useRef(null),[C,O]=m.useState(""),[$]=f_(C,500),[,A]=m.useState(!1),{copyToClipboard:P}=o_(),D=(st=v.current)==null?void 0:st.getBoundingClientRect(),F=(D==null?void 0:D.x)??0,q=((D==null?void 0:D.x)??0)+((D==null?void 0:D.width)??0),z=(D==null?void 0:D.y)??0,U=((D==null?void 0:D.y)??0)+((D==null?void 0:D.height)??0),G=(D==null?void 0:D.width)??0,ee=(D==null?void 0:D.height)??0,ie=5,{isMobile:J}=nc(),X=8,K=m.useMemo(()=>F?F>window.innerWidth/2-X:!1,[F]),re=m.useMemo(()=>z?z>window.innerHeight/2-X:!1,[z]);m.useEffect(()=>{var pe;e&&((pe=M.current)==null||pe.focus())},[M,e]),m.useEffect(()=>{e||O("")},[e]),m.useEffect(()=>{s&&s($)},[$,s]);const[N,I]=m.useState(null);m.useEffect(()=>{e&&n.length>0?I(0):I(null)},[n,e]);const L=m.useMemo(()=>N!==null?n.at(N)??null:null,[N,n]),V=m.useCallback((pe,Te)=>{var Ne,nt;const ve=document.getElementById(`item-${pe}`);if(ve){const Et=ve.clientHeight??0;Te==="down"?(Ne=k.current)==null||Ne.scrollBy({left:0,top:Et,behavior:"smooth"}):(nt=k.current)==null||nt.scrollBy({left:0,top:-Et,behavior:"smooth"})}},[]),j=m.useCallback(pe=>{if(N===null||g)return;const Te=N+pe;Te<0||Te>=n.length||I(ve=>(ve!==null&&V(ve,pe>0?"down":"up"),Te))},[N,n,g,V]),Z=m.useCallback(pe=>{if(e)switch(pe.key){case"Escape":pe.stopPropagation(),pe.preventDefault(),t();break;case"Enter":pe.stopPropagation(),pe.preventDefault(),g||o(L);break;case"ArrowUp":pe.stopPropagation(),pe.preventDefault(),j(-1);break;case"ArrowDown":pe.stopPropagation(),pe.preventDefault(),j(1);break}},[t,e,j,L,g,o]),Q=m.useCallback(()=>{A(pe=>!pe)},[]);m.useEffect(()=>(window.addEventListener("scroll",Q),()=>{window.removeEventListener("scroll",Q)}),[Q]),m.useEffect(()=>(window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q)}),[Q]),a_(Z),r_([S,R,E],t);const te=l??(u&&u.length>0?250:0),he=(u==null?void 0:u.reduce((pe,Te)=>pe+(Te.width??100),0))??0,we=m.useMemo(()=>(a&&e&&!g&&!T)??!1,[a,e,g,T]),me=m.useMemo(()=>(a&&e)??!1,[a,e]),Ue=m.useMemo(()=>e&&(me||_!==void 0||x!==void 0),[e,me,_,x]),Ae=32,Ve=J?`calc(100vw - ${Ae}px)`:`calc(max(${G}px, calc(${te}px + ${he}px)))`,Ke=m.useMemo(()=>(C.length<1&&r&&r.length>0?r:n).map(pe=>{var Te,ve;return d?((Te=pe.id)==null?void 0:Te.toString())??"":((ve=pe.name)==null?void 0:ve.toString())??""}).reduce((pe,Te)=>pe.length>Te.length?pe:Te,""),[C,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(w_,{show:e,onClick:t}),y.jsxs("div",{className:oe("luminus-dropdown-picker-actions",on.actionButtonsContainer,{[on.reverse]:K}),style:{top:`calc(${z}px + ${ee/2}px - 12px)`,left:K?we&&me?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${q}px + 8px)`},children:[we&&y.jsx("button",{ref:R,type:"button",className:oe("luminus-dropdown-picker-clear-button",on.actionButton),onClick:()=>!g&&o(null),children:y.jsx(_n,{variant:"caption",className:"text-danger",children:y.jsx(Kx,{size:16})})}),Ue?y.jsx("div",{ref:E,children:y.jsxs(um,{toggle:y.jsx(lm,{as:cm,className:oe("luminus-dropdown-picker-actions-dropdown",on.actionsDropdown),icon:y.jsx(_n,{variant:"caption",className:"text-primary",children:y.jsx(Jx,{size:16})})}),children:[me?y.jsx(ja,{icon:y.jsx(Jk,{}),onClick:()=>{var pe,Te;P(d?((pe=a==null?void 0:a.id)==null?void 0:pe.toString())??"":((Te=a==null?void 0:a.name)==null?void 0:Te.toString())??"")},children:b.copySelection}):null,me&&(_||x)?y.jsx(d_,{}):null,_?y.jsx(ja,{icon:y.jsx(Qk,{}),onClick:()=>{window.open(_,"_blank")},children:b.addNewOption}):null,x?y.jsx(ja,{icon:y.jsx(lE,{}),onClick:()=>{x()},children:b.refreshOptions}):null]})}):null]}),y.jsx("div",{className:oe("luminus-dropdown-picker",on.wrapper,{[on.open]:e}),style:{top:re?`calc(${z}px - 50vh - 8px)`:`calc(${U}px + 8px)`,left:J?`${Ae/2}px`:K?`calc(${q}px - ${Ve})`:F,right:J?`${Ae/2}px`:K?`${q}px`:`calc(${F}px + ${Ve})`,width:Ve,justifyContent:re?"flex-end":"flex-start"},children:y.jsx("div",{ref:S,className:oe("shadow rounded",on.dropdown),children:!g&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=ie?null:y.jsx("div",{className:oe("search-input-container border-bottom",on.searchInputContainer),children:y.jsx(Tr.Control,{ref:M,type:"search",size:"sm",className:on.searchInput,placeholder:c.searchPlaceholder,value:C,onChange:pe=>{var Te;return O(((Te=pe.target)==null?void 0:Te.value)??"")}})}),C.length<1&&r&&r.length>0?y.jsx(mm,{variant:"info",size:"sm",children:i??b.suggestedItemsTitle}):null,p?y.jsx("div",{className:on.loadingContainer,children:y.jsx(Zp,{animation:"border",variant:"primary"})}):(C.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:k,className:oe("items",on.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:oe("header-row border-bottom",on.headerRow),children:[y.jsx("div",{className:on.name,children:y.jsx(_n,{variant:"body2",children:Ke})}),u==null?void 0:u.filter(pe=>pe.key!==w).map(pe=>y.jsx("div",{className:on.columnItem,style:{width:`${pe.width??100}px`,minWidth:`${pe.width??100}px`,maxWidth:`${pe.width??100}px`},children:y.jsx(_n,{variant:"caption",children:pe.name})},pe.key))]}),(C.length<1&&r&&r.length>0?r:n).map((pe,Te)=>y.jsxs("button",{id:`item-${Te}`,type:"button",className:oe("item cursor-pointer",on.item,{[on.focused]:N===Te},{focused:N===Te},{archive:pe.additionalColumns?pe.additionalColumns[w]:!1}),onClick:()=>!g&&o(pe),onMouseEnter:()=>I(Te),children:[y.jsx("div",{className:on.name,children:y.jsx(_n,{variant:"body2",children:d?pe.id:pe.name})}),u==null?void 0:u.filter(ve=>ve.key!==w).map(ve=>y.jsx("div",{className:on.columnItem,style:{width:`${ve.width??100}px`,minWidth:`${ve.width??100}px`,maxWidth:`${ve.width??100}px`},children:y.jsx(_n,{variant:"caption",className:oe("text-muted"),children:pe.additionalColumns&&pe.additionalColumns[ve.key]})},ve.key))]},pe.id))]})]})})})]})};var dm={};dm.match=x7;dm.parse=p_;var m7=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,g7=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,v7=/^(?:(min|max)-)?(.+)/,y7=/(em|rem|px|cm|mm|in|pt|pc)?$/,b7=/(dpi|dpcm|dppx)?$/;function x7(e,t){return p_(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,c=o.modifier,l=o.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===l.toLowerCase();case"width":case"height":case"device-width":case"device-height":l=bv(l),u=bv(u);break;case"resolution":l=yv(l),u=yv(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":l=vv(l),u=vv(u);break;case"grid":case"color":case"color-index":case"monochrome":l=parseInt(l,10)||1,u=parseInt(u,10)||0;break}switch(c){case"min":return u>=l;case"max":return u<=l;default:return u===l}});return a&&!r||!a&&r})}function p_(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(m7),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var c=s.match(g7),l=c[1].toLowerCase().match(v7);return{modifier:l[1],feature:l[2],value:c[2]}}),o})}function vv(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function yv(e){var t=parseFloat(e),n=String(e).match(b7)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function bv(e){var t=parseFloat(e),n=String(e).match(y7)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var _7=dm.match,xv=typeof window<"u"?window.matchMedia:null;function w7(e,t,n){var r=this,i;xv&&!n&&(i=xv.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=_7(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=c;function a(l){i&&i.addListener(l)}function o(l){i&&i.removeListener(l)}function s(l){r.matches=l.matches,r.media=l.media}function c(){i&&i.removeListener(s)}}function C7(e,t,n){return new w7(e,t,n)}var T7=C7;const S7=Ht(T7);var k7=/[A-Z]/g,E7=/^ms-/,vf={};function O7(e){return"-"+e.toLowerCase()}function m_(e){if(vf.hasOwnProperty(e))return vf[e];var t=e.replace(k7,O7);return vf[e]=E7.test(t)?"-"+t:t}function M7(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const xn=H.oneOfType([H.string,H.number]),fm={all:H.bool,grid:H.bool,aural:H.bool,braille:H.bool,handheld:H.bool,print:H.bool,projection:H.bool,screen:H.bool,tty:H.bool,tv:H.bool,embossed:H.bool},g_={orientation:H.oneOf(["portrait","landscape"]),scan:H.oneOf(["progressive","interlace"]),aspectRatio:H.string,deviceAspectRatio:H.string,height:xn,deviceHeight:xn,width:xn,deviceWidth:xn,color:H.bool,colorIndex:H.bool,monochrome:H.bool,resolution:xn,type:Object.keys(fm)},{type:Xne,...$7}=g_,v_={minAspectRatio:H.string,maxAspectRatio:H.string,minDeviceAspectRatio:H.string,maxDeviceAspectRatio:H.string,minHeight:xn,maxHeight:xn,minDeviceHeight:xn,maxDeviceHeight:xn,minWidth:xn,maxWidth:xn,minDeviceWidth:xn,maxDeviceWidth:xn,minColor:H.number,maxColor:H.number,minColorIndex:H.number,maxColorIndex:H.number,minMonochrome:H.number,maxMonochrome:H.number,minResolution:xn,maxResolution:xn,...$7},A7={...fm,...v_};var R7={all:A7,types:fm,matchers:g_,features:v_};const j7=e=>`not ${e}`,P7=(e,t)=>{const n=m_(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?j7(n):`(${n}: ${t})`},I7=e=>e.join(" and "),D7=e=>{const t=[];return Object.keys(R7.all).forEach(n=>{const r=e[n];r!=null&&t.push(P7(n,r))}),I7(t)},N7=m.createContext(void 0),L7=e=>e.query||D7(e),_v=e=>e?Object.keys(e).reduce((n,r)=>(n[m_(r)]=e[r],n),{}):void 0,y_=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},F7=e=>{const t=m.useContext(N7),n=()=>_v(e)||_v(t),[r,i]=m.useState(n);return m.useEffect(()=>{const a=n();M7(r,a)||i(a)},[e,t]),r},B7=e=>{const t=()=>L7(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},U7=(e,t)=>{const n=()=>S7(e,t||{},!!t),[r,i]=m.useState(n),a=y_();return m.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},W7=e=>{const[t,n]=m.useState(e.matches);return m.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},yf=(e,t,n)=>{const r=F7(t),i=B7(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=U7(i,r),o=W7(a),s=y_();return m.useEffect(()=>{s&&n&&n(o)},[o]),m.useEffect(()=>()=>{a&&a.dispose()},[]),o},z7=["sm","md","lg","always"],b_="ResponsiveContextDropdownItem",H7=e=>e.type.displayName===b_,hm=e=>({});hm.displayName=b_;function V7(e){return e.type&&e.type===m.Fragment}const x_=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(V7(r)){n.push(...x_(r.props.children));return}n.push(r)}}),n},q7=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return no.generatePath(e,r)+"?"+n},Y7="_disabled_9mp5v_1",G7={disabled:Y7},Z7=()=>{const{ProjectIconComponent:e}=m.useContext(Kt),{checkUserHasPermissions:t}=i_();return{getProcessedChildren:m.useCallback((r,i)=>{const a=[],o=[];let s=null;const c=u=>{const{hideOn:d,children:f,cKey:h,to:g,toRoute:p,disabled:v,icon:w,pathParams:_,...x}=u.props,T=(p==null?void 0:p.permissions)!=null,b=(p==null?void 0:p.permissions)!=null&&t(p==null?void 0:p.permissions),S=(v??!1)||T&&!b,R=g??(p==null?void 0:q7(p==null?void 0:p.route,_)),M=f??(p==null?void 0:p.name),k=w??(p!=null?y.jsx(e,{icon:"link"}):void 0);if(d==="always"||z7.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const E=oe(x.className,{[G7.disabled]:S});R!=null?o.push(y.jsx(ja,{...x,as:"link",to:R,disabled:S,icon:k,className:E,children:M},h)):o.push(y.jsx(ja,{...x,icon:k,className:E,children:M},h))}else{const E=R!=null?{as:"link",href:R}:{};a.push(y.jsx(Ru,{...x,...E,icon:k,className:oe(S?"disabled":void 0,x.className),children:M},h))}};return x_(r).forEach(u=>{u&&m.isValidElement(u)&&(H7(u)?c(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},__=({children:e})=>{const{getProcessedChildren:t}=Z7(),n=yf({maxWidth:768}),r=yf({minWidth:769,maxWidth:1200}),i=yf({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return y.jsxs("div",{className:"d-flex gap-1",children:[y.jsx(y.Fragment,{children:o}),s.length>0?y.jsx(um,{toggle:y.jsx(lm,{as:cm}),children:s}):null]})};__.Item=hm;const K7="Left",X7="Right",Q7="Up",J7="Down",Oa={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Oh={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},wv="mousemove",Cv="mouseup",eA="touchend",tA="touchmove",nA="touchstart";function rA(e,t,n,r){return e>t?n>0?X7:K7:r>0?J7:Q7}function Tv(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function iA(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(wv,r),document.addEventListener(Cv,o));const{clientX:g,clientY:p}=d?u.touches[0]:u,v=Tv([g,p],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Oh),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:p}=h?u.touches[0]:u,[v,w]=Tv([g,p],f.rotationAngle),_=v-d.xy[0],x=w-d.xy[1],T=Math.abs(_),b=Math.abs(x),S=(u.timeStamp||0)-d.start,R=Math.sqrt(T*T+b*b)/(S||1),M=[_/(S||1),x/(S||1)],k=rA(T,b,_,x),E=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Oa.delta;if(T<E&&b<E&&!d.swiping)return d;const C={absX:T,absY:b,deltaX:_,deltaY:x,dir:k,event:u,first:d.first,initial:d.initial,velocity:R,vxvy:M};C.first&&f.onSwipeStart&&f.onSwipeStart(C),f.onSwiping&&f.onSwiping(C);let O=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(O=!0),O&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:C,swiping:!0})})},i=u=>{e((d,f)=>{let h;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){h=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(h);const g=f[`onSwiped${h.dir}`];g&&g(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),Oh),{eventData:h})})},a=()=>{document.removeEventListener(wv,r),document.removeEventListener(Cv,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Oa.touchEventOptions),d.touchEventOptions),g=[[nA,n,h],[tA,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[eA,i,h]];g.forEach(([p,v,w])=>u.addEventListener(p,v,w)),f=()=>g.forEach(([p,v])=>u.removeEventListener(p,v))}return f},l={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const h={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),h.cleanUpTouch=void 0),f.trackTouch&&u&&(h.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),h)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function aA(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function pm(e){const{trackMouse:t}=e,n=ue.useRef(Object.assign({},Oh)),r=ue.useRef(Object.assign({},Oa)),i=ue.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Oa),e);let a;for(a in Oa)r.current[a]===void 0&&(r.current[a]=Oa[a]);const[o,s]=ue.useMemo(()=>iA(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=aA(n.current,r.current,i.current,s),o}const oA="_backdrop_3huvf_1",sA="_show_3huvf_11",Sv={backdrop:oA,show:sA},w_=({show:e,onClick:t})=>y.jsx("div",{className:oe("luminus-backdrop",Sv.backdrop,{[Sv.show]:e}),onClick:()=>t&&t()}),mm=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return y.jsx(p5,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:y.jsx(_n,{variant:a,children:n})})},cA="_floating-label_3xm9u_1",lA="_without-label_3xm9u_21",uA="_floating-label-check_3xm9u_184",bf={"floating-label":"_floating-label_3xm9u_1",floatingLabel:cA,"without-label":"_without-label_3xm9u_21",withoutLabel:lA,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:uA},dA=({hint:e,children:t})=>e?y.jsx(Xp,{text:e,placement:"top",children:t}):t,Pu=m.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:i,inputContainerClassName:a,isForCheckInput:o,hint:s,required:c,disabled:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Kt),h=u.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?y.jsx("span",{className:oe("fw-bold",{"text-danger":!l}),style:{fontSize:"16px"},children:"*"}):null,s?y.jsx("div",{className:"d-flex align-items-center",children:y.jsx(f,{icon:"info"})}):null]});return o?y.jsx("div",{className:oe("luminus-floating-label-check",bf.floatingLabelCheck),children:t}):y.jsx(dA,{hint:s,children:y.jsx(zp,{ref:d,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:e??!1,className:oe(`luminus-floating-label ${n??""}`,bf.floatingLabel,{[a??""]:a},{[bf.withoutLabel]:u.withoutLabel}),children:t})})});Pu.displayName="FloatingLabelInput";const fA="_row-label-input_mqkkx_1",hA="_label_mqkkx_4",pA="_input-container_mqkkx_9",mA="_invalid-feedback_mqkkx_104",gA="_keep-check-label_mqkkx_132",vA="_is-invalid_mqkkx_160",Do={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:fA,label:hA,"input-container":"_input-container_mqkkx_9",inputContainer:pA,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:mA,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:gA,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:vA},ic=m.forwardRef(({hidden:e,children:t,required:n,disabled:r,className:i,isInvalid:a,isForRadioInput:o,isForTextAreaInput:s,inputContainerClassName:c,hint:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Kt),h=u.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:oe("label col-6",{"col-12":s},Do.label),children:y.jsxs(_n,{variant:"form-label",className:oe("d-flex gap-1 align-items-center",a?"text-danger":""),children:[u.label,n?y.jsx("span",{className:oe("fw-bold",{"text-danger":!r}),style:{fontSize:"16px"},children:"*"}):null,l?y.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:y.jsx(f,{icon:"info"})}):null]})});return y.jsxs("div",{ref:d,className:oe("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Do.isInvalid]:a},{[i??""]:i},{"d-none":e},Do.rowLabelInput),children:[l?y.jsx(Xp,{text:l,placement:"top",children:h}):h,y.jsx("div",{className:oe("input-container",Do.inputContainer,{"col-6":!u.withoutLabel&&!s},{"col-12":u.withoutLabel||s},{[Do.keepCheckLabel]:o},{[c??""]:c}),children:t})]})});ic.displayName="RowLabelInput";const C_=m.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));C_.displayName="NoInputContainer";const T_=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return y.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return y.jsx(no.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},S_=({InputContainer:e=Pu,type:t,value:n,onChange:r,debounceMs:i,label:a,withoutLabel:o,placeholder:s,size:c,hidden:l,disabled:u,showClearIcon:d,clearValue:f,list:h,className:g,step:p,minLength:v,maxLength:w,noSelectOnFocus:_,hint:x,onConfirm:T,autoComplete:b})=>{const S=t==="number",R=m.useCallback(()=>{if(!r)return;const F=f??null;r(S?F?Number(F):null:(F==null?void 0:F.toString())??"")},[f,S,r]),M=m.useRef(null),[k,E]=m.useState((n==null?void 0:n.toString())??""),C=m.useCallback(F=>{const q=F;r&&r(S?q==null||q===""?null:Number(q):q||null)},[S,r]),O=m.useCallback(F=>{var z;const q=(z=F.target)==null?void 0:z.value;if(!i){C(q);return}E(q),M.current!==null&&window.clearTimeout(M.current),M.current=window.setTimeout(()=>{C(q)},i)},[i,C]),$=m.useMemo(()=>{if(T!==void 0)return F=>{F.key==="Enter"&&T&&T()}},[T]);m.useEffect(()=>{E(n===null?"":n.toString())},[n]);const[A,P]=m.useState(!1),D=sm(t,n?n.toString()??null:null,A);return y.jsxs(e,{withoutLabel:o,label:a??"",hidden:l,className:g,hint:x,disabled:u,children:[y.jsx(Tr.Control,{type:D,placeholder:s??a,size:c,value:i?k:(n==null?void 0:n.toString())??"",onChange:O,className:g??"",hidden:l,disabled:u??!1,list:h,onFocus:F=>{P(!0),!_&&F.target.select()},onBlur:()=>P(!1),onKeyDown:$,step:p,minLength:v,maxLength:w,autoComplete:b}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(rc,{color:"secondary",size:"sm",onClick:R,children:y.jsx(Xs,{})})})]})};var gm={},Rl={exports:{}};Rl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",v="[object Number]",w="[object Null]",_="[object Object]",x="[object Promise]",T="[object Proxy]",b="[object RegExp]",S="[object Set]",R="[object String]",M="[object Symbol]",k="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",$="[object Float32Array]",A="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",q="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",G="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ie=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,X={};X[$]=X[A]=X[P]=X[D]=X[F]=X[q]=X[z]=X[U]=X[G]=!0,X[s]=X[c]=X[C]=X[u]=X[O]=X[d]=X[f]=X[h]=X[p]=X[v]=X[_]=X[b]=X[S]=X[R]=X[E]=!1;var K=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,re=typeof self=="object"&&self&&self.Object===Object&&self,N=K||re||Function("return this")(),I=t&&!t.nodeType&&t,L=I&&!0&&e&&!e.nodeType&&e,V=L&&L.exports===I,j=V&&K.process,Z=function(){try{return j&&j.binding&&j.binding("util")}catch{}}(),Q=Z&&Z.isTypedArray;function te(B,Y){for(var le=-1,Se=B==null?0:B.length,Nt=0,Qe=[];++le<Se;){var Qt=B[le];Y(Qt,le,B)&&(Qe[Nt++]=Qt)}return Qe}function he(B,Y){for(var le=-1,Se=Y.length,Nt=B.length;++le<Se;)B[Nt+le]=Y[le];return B}function we(B,Y){for(var le=-1,Se=B==null?0:B.length;++le<Se;)if(Y(B[le],le,B))return!0;return!1}function me(B,Y){for(var le=-1,Se=Array(B);++le<B;)Se[le]=Y(le);return Se}function Ue(B){return function(Y){return B(Y)}}function Ae(B,Y){return B.has(Y)}function Ve(B,Y){return B==null?void 0:B[Y]}function Ke(B){var Y=-1,le=Array(B.size);return B.forEach(function(Se,Nt){le[++Y]=[Nt,Se]}),le}function st(B,Y){return function(le){return B(Y(le))}}function pe(B){var Y=-1,le=Array(B.size);return B.forEach(function(Se){le[++Y]=Se}),le}var Te=Array.prototype,ve=Function.prototype,Ne=Object.prototype,nt=N["__core-js_shared__"],Et=ve.toString,rt=Ne.hasOwnProperty,ot=function(){var B=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return B?"Symbol(src)_1."+B:""}(),pt=Ne.toString,It=RegExp("^"+Et.call(rt).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=V?N.Buffer:void 0,dt=N.Symbol,mt=N.Uint8Array,Wt=Ne.propertyIsEnumerable,De=Te.splice,Re=dt?dt.toStringTag:void 0,qe=Object.getOwnPropertySymbols,lt=ct?ct.isBuffer:void 0,gt=st(Object.keys,Object),St=ma(N,"DataView"),Vt=ma(N,"Map"),Rt=ma(N,"Promise"),Dt=ma(N,"Set"),qt=ma(N,"WeakMap"),vt=ma(Object,"create"),Yt=Si(St),rn=Si(Vt),Jt=Si(Rt),ye=Si(Dt),Ee=Si(qt),je=dt?dt.prototype:void 0,Ye=je?je.valueOf:void 0;function We(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function ft(){this.__data__=vt?vt(null):{},this.size=0}function W(B){var Y=this.has(B)&&delete this.__data__[B];return this.size-=Y?1:0,Y}function ce(B){var Y=this.__data__;if(vt){var le=Y[B];return le===r?void 0:le}return rt.call(Y,B)?Y[B]:void 0}function ae(B){var Y=this.__data__;return vt?Y[B]!==void 0:rt.call(Y,B)}function se(B,Y){var le=this.__data__;return this.size+=this.has(B)?0:1,le[B]=vt&&Y===void 0?r:Y,this}We.prototype.clear=ft,We.prototype.delete=W,We.prototype.get=ce,We.prototype.has=ae,We.prototype.set=se;function be(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function Oe(){this.__data__=[],this.size=0}function xe(B){var Y=this.__data__,le=xc(Y,B);if(le<0)return!1;var Se=Y.length-1;return le==Se?Y.pop():De.call(Y,le,1),--this.size,!0}function ke(B){var Y=this.__data__,le=xc(Y,B);return le<0?void 0:Y[le][1]}function Le(B){return xc(this.__data__,B)>-1}function Pe(B,Y){var le=this.__data__,Se=xc(le,B);return Se<0?(++this.size,le.push([B,Y])):le[Se][1]=Y,this}be.prototype.clear=Oe,be.prototype.delete=xe,be.prototype.get=ke,be.prototype.has=Le,be.prototype.set=Pe;function Xe(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function zt(){this.size=0,this.__data__={hash:new We,map:new(Vt||be),string:new We}}function Ot(B){var Y=_c(this,B).delete(B);return this.size-=Y?1:0,Y}function Xt(B){return _c(this,B).get(B)}function ge(B){return _c(this,B).has(B)}function ln(B,Y){var le=_c(this,B),Se=le.size;return le.set(B,Y),this.size+=le.size==Se?0:1,this}Xe.prototype.clear=zt,Xe.prototype.delete=Ot,Xe.prototype.get=Xt,Xe.prototype.has=ge,Xe.prototype.set=ln;function Mt(B){var Y=-1,le=B==null?0:B.length;for(this.__data__=new Xe;++Y<le;)this.add(B[Y])}function Jn(B){return this.__data__.set(B,r),this}function yc(B){return this.__data__.has(B)}Mt.prototype.add=Mt.prototype.push=Jn,Mt.prototype.has=yc;function er(B){var Y=this.__data__=new be(B);this.size=Y.size}function Ti(){this.__data__=new be,this.size=0}function bc(B){var Y=this.__data__,le=Y.delete(B);return this.size=Y.size,le}function Or(B){return this.__data__.get(B)}function Yd(B){return this.__data__.has(B)}function Mr(B,Y){var le=this.__data__;if(le instanceof be){var Se=le.__data__;if(!Vt||Se.length<n-1)return Se.push([B,Y]),this.size=++le.size,this;le=this.__data__=new Xe(Se)}return le.set(B,Y),this.size=le.size,this}er.prototype.clear=Ti,er.prototype.delete=bc,er.prototype.get=Or,er.prototype.has=Yd,er.prototype.set=Mr;function To(B,Y){var le=wc(B),Se=!le&&qC(B),Nt=!le&&!Se&&Gd(B),Qe=!le&&!Se&&!Nt&&t0(B),Qt=le||Se||Nt||Qe,an=Qt?me(B.length,String):[],un=an.length;for(var Gt in B)rt.call(B,Gt)&&!(Qt&&(Gt=="length"||Nt&&(Gt=="offset"||Gt=="parent")||Qe&&(Gt=="buffer"||Gt=="byteLength"||Gt=="byteOffset")||UC(Gt,un)))&&an.push(Gt);return an}function xc(B,Y){for(var le=B.length;le--;)if(Xg(B[le][0],Y))return le;return-1}function RC(B,Y,le){var Se=Y(B);return wc(B)?Se:he(Se,le(B))}function So(B){return B==null?B===void 0?k:w:Re&&Re in Object(B)?FC(B):VC(B)}function Yg(B){return ko(B)&&So(B)==s}function Gg(B,Y,le,Se,Nt){return B===Y?!0:B==null||Y==null||!ko(B)&&!ko(Y)?B!==B&&Y!==Y:jC(B,Y,le,Se,Gg,Nt)}function jC(B,Y,le,Se,Nt,Qe){var Qt=wc(B),an=wc(Y),un=Qt?c:Zr(B),Gt=an?c:Zr(Y);un=un==s?_:un,Gt=Gt==s?_:Gt;var In=un==_,tr=Gt==_,fn=un==Gt;if(fn&&Gd(B)){if(!Gd(Y))return!1;Qt=!0,In=!1}if(fn&&!In)return Qe||(Qe=new er),Qt||t0(B)?Zg(B,Y,le,Se,Nt,Qe):NC(B,Y,un,le,Se,Nt,Qe);if(!(le&i)){var Bn=In&&rt.call(B,"__wrapped__"),Un=tr&&rt.call(Y,"__wrapped__");if(Bn||Un){var Kr=Bn?B.value():B,$r=Un?Y.value():Y;return Qe||(Qe=new er),Nt(Kr,$r,le,Se,Qe)}}return fn?(Qe||(Qe=new er),LC(B,Y,le,Se,Nt,Qe)):!1}function PC(B){if(!e0(B)||zC(B))return!1;var Y=Qg(B)?It:ie;return Y.test(Si(B))}function IC(B){return ko(B)&&Jg(B.length)&&!!X[So(B)]}function DC(B){if(!HC(B))return gt(B);var Y=[];for(var le in Object(B))rt.call(B,le)&&le!="constructor"&&Y.push(le);return Y}function Zg(B,Y,le,Se,Nt,Qe){var Qt=le&i,an=B.length,un=Y.length;if(an!=un&&!(Qt&&un>an))return!1;var Gt=Qe.get(B);if(Gt&&Qe.get(Y))return Gt==Y;var In=-1,tr=!0,fn=le&a?new Mt:void 0;for(Qe.set(B,Y),Qe.set(Y,B);++In<an;){var Bn=B[In],Un=Y[In];if(Se)var Kr=Qt?Se(Un,Bn,In,Y,B,Qe):Se(Bn,Un,In,B,Y,Qe);if(Kr!==void 0){if(Kr)continue;tr=!1;break}if(fn){if(!we(Y,function($r,ki){if(!Ae(fn,ki)&&(Bn===$r||Nt(Bn,$r,le,Se,Qe)))return fn.push(ki)})){tr=!1;break}}else if(!(Bn===Un||Nt(Bn,Un,le,Se,Qe))){tr=!1;break}}return Qe.delete(B),Qe.delete(Y),tr}function NC(B,Y,le,Se,Nt,Qe,Qt){switch(le){case O:if(B.byteLength!=Y.byteLength||B.byteOffset!=Y.byteOffset)return!1;B=B.buffer,Y=Y.buffer;case C:return!(B.byteLength!=Y.byteLength||!Qe(new mt(B),new mt(Y)));case u:case d:case v:return Xg(+B,+Y);case f:return B.name==Y.name&&B.message==Y.message;case b:case R:return B==Y+"";case p:var an=Ke;case S:var un=Se&i;if(an||(an=pe),B.size!=Y.size&&!un)return!1;var Gt=Qt.get(B);if(Gt)return Gt==Y;Se|=a,Qt.set(B,Y);var In=Zg(an(B),an(Y),Se,Nt,Qe,Qt);return Qt.delete(B),In;case M:if(Ye)return Ye.call(B)==Ye.call(Y)}return!1}function LC(B,Y,le,Se,Nt,Qe){var Qt=le&i,an=Kg(B),un=an.length,Gt=Kg(Y),In=Gt.length;if(un!=In&&!Qt)return!1;for(var tr=un;tr--;){var fn=an[tr];if(!(Qt?fn in Y:rt.call(Y,fn)))return!1}var Bn=Qe.get(B);if(Bn&&Qe.get(Y))return Bn==Y;var Un=!0;Qe.set(B,Y),Qe.set(Y,B);for(var Kr=Qt;++tr<un;){fn=an[tr];var $r=B[fn],ki=Y[fn];if(Se)var n0=Qt?Se(ki,$r,fn,Y,B,Qe):Se($r,ki,fn,B,Y,Qe);if(!(n0===void 0?$r===ki||Nt($r,ki,le,Se,Qe):n0)){Un=!1;break}Kr||(Kr=fn=="constructor")}if(Un&&!Kr){var Cc=B.constructor,Tc=Y.constructor;Cc!=Tc&&"constructor"in B&&"constructor"in Y&&!(typeof Cc=="function"&&Cc instanceof Cc&&typeof Tc=="function"&&Tc instanceof Tc)&&(Un=!1)}return Qe.delete(B),Qe.delete(Y),Un}function Kg(B){return RC(B,ZC,BC)}function _c(B,Y){var le=B.__data__;return WC(Y)?le[typeof Y=="string"?"string":"hash"]:le.map}function ma(B,Y){var le=Ve(B,Y);return PC(le)?le:void 0}function FC(B){var Y=rt.call(B,Re),le=B[Re];try{B[Re]=void 0;var Se=!0}catch{}var Nt=pt.call(B);return Se&&(Y?B[Re]=le:delete B[Re]),Nt}var BC=qe?function(B){return B==null?[]:(B=Object(B),te(qe(B),function(Y){return Wt.call(B,Y)}))}:KC,Zr=So;(St&&Zr(new St(new ArrayBuffer(1)))!=O||Vt&&Zr(new Vt)!=p||Rt&&Zr(Rt.resolve())!=x||Dt&&Zr(new Dt)!=S||qt&&Zr(new qt)!=E)&&(Zr=function(B){var Y=So(B),le=Y==_?B.constructor:void 0,Se=le?Si(le):"";if(Se)switch(Se){case Yt:return O;case rn:return p;case Jt:return x;case ye:return S;case Ee:return E}return Y});function UC(B,Y){return Y=Y??o,!!Y&&(typeof B=="number"||J.test(B))&&B>-1&&B%1==0&&B<Y}function WC(B){var Y=typeof B;return Y=="string"||Y=="number"||Y=="symbol"||Y=="boolean"?B!=="__proto__":B===null}function zC(B){return!!ot&&ot in B}function HC(B){var Y=B&&B.constructor,le=typeof Y=="function"&&Y.prototype||Ne;return B===le}function VC(B){return pt.call(B)}function Si(B){if(B!=null){try{return Et.call(B)}catch{}try{return B+""}catch{}}return""}function Xg(B,Y){return B===Y||B!==B&&Y!==Y}var qC=Yg(function(){return arguments}())?Yg:function(B){return ko(B)&&rt.call(B,"callee")&&!Wt.call(B,"callee")},wc=Array.isArray;function YC(B){return B!=null&&Jg(B.length)&&!Qg(B)}var Gd=lt||XC;function GC(B,Y){return Gg(B,Y)}function Qg(B){if(!e0(B))return!1;var Y=So(B);return Y==h||Y==g||Y==l||Y==T}function Jg(B){return typeof B=="number"&&B>-1&&B%1==0&&B<=o}function e0(B){var Y=typeof B;return B!=null&&(Y=="object"||Y=="function")}function ko(B){return B!=null&&typeof B=="object"}var t0=Q?Ue(Q):IC;function ZC(B){return YC(B)?To(B):DC(B)}function KC(){return[]}function XC(){return!1}e.exports=GC})(Rl,Rl.exports);var yA=Rl.exports,k_={exports:{}};(function(e,t){var n=function(){var r=function(b,S){var R=236,M=17,k=b,E=a[S],C=null,O=0,$=null,A=[],P={},D=function(N,I){O=k*4+17,C=function(L){for(var V=new Array(L),j=0;j<L;j+=1){V[j]=new Array(L);for(var Z=0;Z<L;Z+=1)V[j][Z]=null}return V}(O),F(0,0),F(O-7,0),F(0,O-7),U(),z(),ee(N,I),k>=7&&G(N),$==null&&($=X(k,E,A)),ie($,I)},F=function(N,I){for(var L=-1;L<=7;L+=1)if(!(N+L<=-1||O<=N+L))for(var V=-1;V<=7;V+=1)I+V<=-1||O<=I+V||(0<=L&&L<=6&&(V==0||V==6)||0<=V&&V<=6&&(L==0||L==6)||2<=L&&L<=4&&2<=V&&V<=4?C[N+L][I+V]=!0:C[N+L][I+V]=!1)},q=function(){for(var N=0,I=0,L=0;L<8;L+=1){D(!0,L);var V=s.getLostPoint(P);(L==0||N>V)&&(N=V,I=L)}return I},z=function(){for(var N=8;N<O-8;N+=1)C[N][6]==null&&(C[N][6]=N%2==0);for(var I=8;I<O-8;I+=1)C[6][I]==null&&(C[6][I]=I%2==0)},U=function(){for(var N=s.getPatternPosition(k),I=0;I<N.length;I+=1)for(var L=0;L<N.length;L+=1){var V=N[I],j=N[L];if(C[V][j]==null)for(var Z=-2;Z<=2;Z+=1)for(var Q=-2;Q<=2;Q+=1)Z==-2||Z==2||Q==-2||Q==2||Z==0&&Q==0?C[V+Z][j+Q]=!0:C[V+Z][j+Q]=!1}},G=function(N){for(var I=s.getBCHTypeNumber(k),L=0;L<18;L+=1){var V=!N&&(I>>L&1)==1;C[Math.floor(L/3)][L%3+O-8-3]=V}for(var L=0;L<18;L+=1){var V=!N&&(I>>L&1)==1;C[L%3+O-8-3][Math.floor(L/3)]=V}},ee=function(N,I){for(var L=E<<3|I,V=s.getBCHTypeInfo(L),j=0;j<15;j+=1){var Z=!N&&(V>>j&1)==1;j<6?C[j][8]=Z:j<8?C[j+1][8]=Z:C[O-15+j][8]=Z}for(var j=0;j<15;j+=1){var Z=!N&&(V>>j&1)==1;j<8?C[8][O-j-1]=Z:j<9?C[8][15-j-1+1]=Z:C[8][15-j-1]=Z}C[O-8][8]=!N},ie=function(N,I){for(var L=-1,V=O-1,j=7,Z=0,Q=s.getMaskFunction(I),te=O-1;te>0;te-=2)for(te==6&&(te-=1);;){for(var he=0;he<2;he+=1)if(C[V][te-he]==null){var we=!1;Z<N.length&&(we=(N[Z]>>>j&1)==1);var me=Q(V,te-he);me&&(we=!we),C[V][te-he]=we,j-=1,j==-1&&(Z+=1,j=7)}if(V+=L,V<0||O<=V){V-=L,L=-L;break}}},J=function(N,I){for(var L=0,V=0,j=0,Z=new Array(I.length),Q=new Array(I.length),te=0;te<I.length;te+=1){var he=I[te].dataCount,we=I[te].totalCount-he;V=Math.max(V,he),j=Math.max(j,we),Z[te]=new Array(he);for(var me=0;me<Z[te].length;me+=1)Z[te][me]=255&N.getBuffer()[me+L];L+=he;var Ue=s.getErrorCorrectPolynomial(we),Ae=l(Z[te],Ue.getLength()-1),Ve=Ae.mod(Ue);Q[te]=new Array(Ue.getLength()-1);for(var me=0;me<Q[te].length;me+=1){var Ke=me+Ve.getLength()-Q[te].length;Q[te][me]=Ke>=0?Ve.getAt(Ke):0}}for(var st=0,me=0;me<I.length;me+=1)st+=I[me].totalCount;for(var pe=new Array(st),Te=0,me=0;me<V;me+=1)for(var te=0;te<I.length;te+=1)me<Z[te].length&&(pe[Te]=Z[te][me],Te+=1);for(var me=0;me<j;me+=1)for(var te=0;te<I.length;te+=1)me<Q[te].length&&(pe[Te]=Q[te][me],Te+=1);return pe},X=function(N,I,L){for(var V=u.getRSBlocks(N,I),j=d(),Z=0;Z<L.length;Z+=1){var Q=L[Z];j.put(Q.getMode(),4),j.put(Q.getLength(),s.getLengthInBits(Q.getMode(),N)),Q.write(j)}for(var te=0,Z=0;Z<V.length;Z+=1)te+=V[Z].dataCount;if(j.getLengthInBits()>te*8)throw"code length overflow. ("+j.getLengthInBits()+">"+te*8+")";for(j.getLengthInBits()+4<=te*8&&j.put(0,4);j.getLengthInBits()%8!=0;)j.putBit(!1);for(;!(j.getLengthInBits()>=te*8||(j.put(R,8),j.getLengthInBits()>=te*8));)j.put(M,8);return J(j,V)};P.addData=function(N,I){I=I||"Byte";var L=null;switch(I){case"Numeric":L=f(N);break;case"Alphanumeric":L=h(N);break;case"Byte":L=g(N);break;case"Kanji":L=p(N);break;default:throw"mode:"+I}A.push(L),$=null},P.isDark=function(N,I){if(N<0||O<=N||I<0||O<=I)throw N+","+I;return C[N][I]},P.getModuleCount=function(){return O},P.make=function(){if(k<1){for(var N=1;N<40;N++){for(var I=u.getRSBlocks(N,E),L=d(),V=0;V<A.length;V++){var j=A[V];L.put(j.getMode(),4),L.put(j.getLength(),s.getLengthInBits(j.getMode(),N)),j.write(L)}for(var Z=0,V=0;V<I.length;V++)Z+=I[V].dataCount;if(L.getLengthInBits()<=Z*8)break}k=N}D(!1,q())},P.createTableTag=function(N,I){N=N||2,I=typeof I>"u"?N*4:I;var L="";L+='<table style="',L+=" border-width: 0px; border-style: none;",L+=" border-collapse: collapse;",L+=" padding: 0px; margin: "+I+"px;",L+='">',L+="<tbody>";for(var V=0;V<P.getModuleCount();V+=1){L+="<tr>";for(var j=0;j<P.getModuleCount();j+=1)L+='<td style="',L+=" border-width: 0px; border-style: none;",L+=" border-collapse: collapse;",L+=" padding: 0px; margin: 0px;",L+=" width: "+N+"px;",L+=" height: "+N+"px;",L+=" background-color: ",L+=P.isDark(V,j)?"#000000":"#ffffff",L+=";",L+='"/>';L+="</tr>"}return L+="</tbody>",L+="</table>",L},P.createSvgTag=function(N,I,L,V){var j={};typeof arguments[0]=="object"&&(j=arguments[0],N=j.cellSize,I=j.margin,L=j.alt,V=j.title),N=N||2,I=typeof I>"u"?N*4:I,L=typeof L=="string"?{text:L}:L||{},L.text=L.text||null,L.id=L.text?L.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var Z=P.getModuleCount()*N+I*2,Q,te,he,we,me="",Ue;for(Ue="l"+N+",0 0,"+N+" -"+N+",0 0,-"+N+"z ",me+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',me+=j.scalable?"":' width="'+Z+'px" height="'+Z+'px"',me+=' viewBox="0 0 '+Z+" "+Z+'" ',me+=' preserveAspectRatio="xMinYMin meet"',me+=V.text||L.text?' role="img" aria-labelledby="'+K([V.id,L.id].join(" ").trim())+'"':"",me+=">",me+=V.text?'<title id="'+K(V.id)+'">'+K(V.text)+"</title>":"",me+=L.text?'<description id="'+K(L.id)+'">'+K(L.text)+"</description>":"",me+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',me+='<path d="',he=0;he<P.getModuleCount();he+=1)for(we=he*N+I,Q=0;Q<P.getModuleCount();Q+=1)P.isDark(he,Q)&&(te=Q*N+I,me+="M"+te+","+we+Ue);return me+='" stroke="transparent" fill="black"/>',me+="</svg>",me},P.createDataURL=function(N,I){N=N||2,I=typeof I>"u"?N*4:I;var L=P.getModuleCount()*N+I*2,V=I,j=L-I;return T(L,L,function(Z,Q){if(V<=Z&&Z<j&&V<=Q&&Q<j){var te=Math.floor((Z-V)/N),he=Math.floor((Q-V)/N);return P.isDark(he,te)?0:1}else return 1})},P.createImgTag=function(N,I,L){N=N||2,I=typeof I>"u"?N*4:I;var V=P.getModuleCount()*N+I*2,j="";return j+="<img",j+=' src="',j+=P.createDataURL(N,I),j+='"',j+=' width="',j+=V,j+='"',j+=' height="',j+=V,j+='"',L&&(j+=' alt="',j+=K(L),j+='"'),j+="/>",j};var K=function(N){for(var I="",L=0;L<N.length;L+=1){var V=N.charAt(L);switch(V){case"<":I+="&lt;";break;case">":I+="&gt;";break;case"&":I+="&amp;";break;case'"':I+="&quot;";break;default:I+=V;break}}return I},re=function(N){var I=1;N=typeof N>"u"?I*2:N;var L=P.getModuleCount()*I+N*2,V=N,j=L-N,Z,Q,te,he,we,me={"██":"█","█ ":"▀"," █":"▄"," ":" "},Ue={"██":"▀","█ ":"▀"," █":" "," ":" "},Ae="";for(Z=0;Z<L;Z+=2){for(te=Math.floor((Z-V)/I),he=Math.floor((Z+1-V)/I),Q=0;Q<L;Q+=1)we="█",V<=Q&&Q<j&&V<=Z&&Z<j&&P.isDark(te,Math.floor((Q-V)/I))&&(we=" "),V<=Q&&Q<j&&V<=Z+1&&Z+1<j&&P.isDark(he,Math.floor((Q-V)/I))?we+=" ":we+="█",Ae+=N<1&&Z+1>=j?Ue[we]:me[we];Ae+=`
253
+ */var dv;function g8(){return dv||(dv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(j){return typeof j=="string"||typeof j=="function"||j===r||j===l||j===a||j===i||j===d||j===f||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===u||j.$$typeof===v||j.$$typeof===w||j.$$typeof===_||j.$$typeof===p)}function T(j){if(typeof j=="object"&&j!==null){var Z=j.$$typeof;switch(Z){case t:var Q=j.type;switch(Q){case c:case l:case r:case a:case i:case d:return Q;default:var te=Q&&Q.$$typeof;switch(te){case s:case u:case g:case h:case o:return te;default:return Z}}case n:return Z}}}var b=c,S=l,R=s,M=o,k=t,E=u,C=r,O=g,$=h,A=n,P=a,D=i,F=d,q=!1;function z(j){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(j)||T(j)===c}function U(j){return T(j)===l}function G(j){return T(j)===s}function ee(j){return T(j)===o}function ie(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function J(j){return T(j)===u}function X(j){return T(j)===r}function K(j){return T(j)===g}function re(j){return T(j)===h}function N(j){return T(j)===n}function I(j){return T(j)===a}function L(j){return T(j)===i}function V(j){return T(j)===d}_t.AsyncMode=b,_t.ConcurrentMode=S,_t.ContextConsumer=R,_t.ContextProvider=M,_t.Element=k,_t.ForwardRef=E,_t.Fragment=C,_t.Lazy=O,_t.Memo=$,_t.Portal=A,_t.Profiler=P,_t.StrictMode=D,_t.Suspense=F,_t.isAsyncMode=z,_t.isConcurrentMode=U,_t.isContextConsumer=G,_t.isContextProvider=ee,_t.isElement=ie,_t.isForwardRef=J,_t.isFragment=X,_t.isLazy=K,_t.isMemo=re,_t.isPortal=N,_t.isProfiler=I,_t.isStrictMode=L,_t.isSuspense=V,_t.isValidElementType=x,_t.typeOf=T}()),_t}var fv;function v8(){return fv||(fv=1,process.env.NODE_ENV==="production"?Rc.exports=m8():Rc.exports=g8()),Rc.exports}var pf,hv;function y8(){if(hv)return pf;hv=1;var e=v8(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(g){return e.isMemo(g)?i:a[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,p,v){if(typeof p!="string"){if(f){var w=d(p);w&&w!==f&&h(g,w,v)}var _=c(p);l&&(_=_.concat(l(p)));for(var x=o(g),T=o(p),b=0;b<_.length;++b){var S=_[b];if(!n[S]&&!(v&&v[S])&&!(T&&T[S])&&!(x&&x[S])){var R=u(p,S);try{s(g,S,R)}catch{}}}}return g}return pf=h,pf}y8();function b8(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function am(e,t){const n=m.useContext(p8);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=m.useState(()=>n.getAll(i));b8()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);x8(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);const s=m.useMemo(()=>n.set.bind(n),[n]),c=m.useMemo(()=>n.remove.bind(n),[n]),l=m.useMemo(()=>n.update.bind(n),[n]);return[a,s,c,l]}function x8(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const _8=()=>{const{axiosOptions:e,cookieDomain:t}=m.useContext(Kt),[,n,r]=am(["Authorization"]),i=Ut.create(e),a=m.useCallback(()=>{const c=localStorage.getItem("token");return c!==null&&c.length>0},[]),o=m.useCallback(async(c,l)=>i.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),n("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:fb(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[i,n,t]),s=m.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:a,login:o,logout:s}},w8=()=>{const[,,e]=am(["Authorization"]),{msalScopes:t,msalExtraScopes:n}=m.useContext(bu),{instance:r,inProgress:i}=i0.useMsal(),a=i0.useIsAuthenticated(),o=m.useCallback(()=>a,[a]),s=m.useCallback(()=>!o()&&i!==QC.InteractionStatus.None,[o,i]),c=m.useCallback(async()=>r.loginRedirect({scopes:t,extraScopesToConsent:n}).then(()=>"").catch(()=>null),[r,t,n]),l=m.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:o,isAuthenticating:s,login:c,logout:l}},Y2=()=>{const{useMsal:e}=m.useContext(bu),t=_8(),n=w8();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,login:e?n.login:t.login,logout:e?n.logout:t.logout}},C8="_toast_1s57i_1",Po={toast:C8},T8=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},ku=()=>({addNotification:m.useCallback((t,n)=>{const r=p2(t),i=T8(n),a=y.jsxs(y.Fragment,{children:[r,y.jsx(Jx,{onClick:()=>ba.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(oE,{size:12}),className:oe("luminus-toast-success rounded shadow bg-success",Po.toast)});break}case"danger":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Kk,{size:12}),className:oe("luminus-toast-danger rounded shadow bg-danger",Po.toast)});break}case"warning":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(qk,{size:12}),className:oe("luminus-toast-warning rounded shadow bg-warning",Po.toast)});break}case"info":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Gk,{size:12}),className:oe("luminus-toast-info rounded shadow bg-info",Po.toast)});break}case"prompt":{ba(a,{id:r,duration:i,position:"top-center",icon:y.jsx(Zk,{size:12}),className:oe("luminus-toast-prompt rounded shadow bg-light",Po.toast)});break}}},[])}),S8=Ut.CancelToken,Eu=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:c,texts:{axios:l}}=m.useContext(Kt),{delegation:u}=m.useContext(l2),{getToken:d}=m.useContext(bu),f=m.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=ku(),{isAuthenticating:g}=Y2(),p=m.useMemo(()=>Ut.create(c),[c]),v=m.useCallback(async _=>{var T,b,S;if(t&&!_.headers.Authorization){if(g())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const R=i?{token:i,expiresOn:fb(new Date(Date.now()),1)}:await d();if(!R)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(vb(R.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));_.headers.Authorization=`Bearer ${R.token}`}f!==null&&!a&&(_.headers.DelegationId=f.toString());const x=localStorage.getItem("search-use-asterisk")!=="false";return _.headers["Search-Use-Asterisk"]=x?"true":"false",(T=_.url)!=null&&T.includes("culture=")?_.url=(b=_.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):_.url=`${_.url}${(S=_.url)!=null&&S.includes("?")?"&":"?"}culture=${s}`,_},[t,d,s,i,f,a,g]),w=m.useCallback(_=>{var b,S;if(console.log(_),Ut.isCancel(_)||_.message==="Authentication in progress"||_.message==="No bearer token"||_.message==="Token expired")return Promise.reject(_);const x=Xp(_);if(x.length>0){const R=x.find(M=>M.name.toLowerCase()==="others");return R?(!r&&h(R.errors,"danger"),Promise.reject(_)):(!r&&h(l.validationError,"warning"),Promise.reject(_))}const T=f2(_);return T!==null?(!r&&h(`${l.permissionError}: ${fs(", ",...T)}`,"danger"),Promise.reject(_)):(o??[]).includes((b=_.response)==null?void 0:b.status)?Promise.reject(_):((S=_.response)==null?void 0:S.status)===403?(!r&&h(l.forbiddenError,"danger"),Promise.reject(_)):_.message&&_.message==="Network Error"?(!r&&h(l.networkError,"danger"),Promise.reject(_)):(Ut.isCancel(_)||(!r&&h(l.unexpectedError,"danger"),(_.response||_.request)&&!r&&h(l.unexpectedError,"danger")),Promise.reject(_))},[h,l.forbiddenError,l.networkError,l.permissionError,l.unexpectedError,l.validationError,r,o]);return m.useEffect(()=>{n&&(p.defaults.baseURL=n),p.interceptors.request.clear(),p.interceptors.response.clear();const _=p.interceptors.request.use(v,T=>Promise.reject(T)),x=p.interceptors.response.use(T=>T,w);return()=>{p.interceptors.request.eject(_),p.interceptors.response.eject(x)}},[p.defaults,p.interceptors.request,p.interceptors.response,n,v,w]),p};let Io;const om=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r,textSm:i}=m.useContext(t2),a=()=>{r()};return{confirm:async(l,u)=>(n(l,u),new Promise(d=>{Io=d})),onConfirm:()=>{a(),Io&&Io(!0)},onCancel:()=>{a(),Io&&Io(!1)},show:e,text:t,textSm:i}};var ut;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(ut||(ut={}));var Ch;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ch||(Ch={}));const Ce=ut.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ai=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},fe=ut.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"]),k8=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ln extends Error{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}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,c=0;for(;c<o.path.length;){const l=o.path[c];c===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(o))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),r}static assert(t){if(!(t instanceof Ln))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ut.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ln.create=e=>new Ln(e);const Ya=(e,t)=>{let n;switch(e.code){case fe.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case fe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ut.jsonStringifyReplacer)}`;break;case fe.unrecognized_keys:n=`Unrecognized key(s) in object: ${ut.joinValues(e.keys,", ")}`;break;case fe.invalid_union:n="Invalid input";break;case fe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ut.joinValues(e.options)}`;break;case fe.invalid_enum_value:n=`Invalid enum value. Expected ${ut.joinValues(e.options)}, received '${e.received}'`;break;case fe.invalid_arguments:n="Invalid function arguments";break;case fe.invalid_return_type:n="Invalid function return type";break;case fe.invalid_date:n="Invalid date";break;case fe.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}"`:ut.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case fe.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==="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 fe.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 fe.custom:n="Invalid input";break;case fe.invalid_intersection_types:n="Intersection results could not be merged";break;case fe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case fe.not_finite:n="Number must be finite";break;default:n=t.defaultError,ut.assertNever(e)}return{message:n}};let G2=Ya;function E8(e){G2=e}function Tl(){return G2}const Sl=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)s=l(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},O8=[];function _e(e,t){const n=Tl(),r=Sl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ya?void 0:Ya].filter(i=>!!i)});e.common.issues.push(r)}class yn{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 Be;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,o=await i.value;r.push({key:a,value:o})}return yn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return Be;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const Be=Object.freeze({status:"aborted"}),Ea=e=>({status:"dirty",value:e}),Tn=e=>({status:"valid",value:e}),Th=e=>e.status==="aborted",Sh=e=>e.status==="dirty",ps=e=>e.status==="valid",ms=e=>typeof Promise<"u"&&e instanceof Promise;function kl(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Z2(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var $e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})($e||($e={}));var Zo,Ko;class vr{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||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pv=(e,t)=>{if(ps(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 Ln(e.common.issues);return this._error=n,this._error}}};function Ze(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:(o,s)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:s.defaultError}},description:i}}class et{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return ai(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ai(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new yn,ctx:{common:t.parent.common,data:t.data,parsedType:ai(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ms(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){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ai(t)},a=this._parseSync({data:t,path:i.path,parent:i});return pv(i,a)}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:ai(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(ms(i)?i:Promise.resolve(i));return pv(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 o=t(i),s=()=>a.addIssue({code:fe.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(s(),!1)):o?!0:(s(),!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 sr({schema:this,typeName:Fe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return mr.create(this,this._def)}nullable(){return gi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return or.create(this,this._def)}promise(){return Za.create(this,this._def)}or(t){return bs.create([this,t],this._def)}and(t){return xs.create(this,t,this._def)}transform(t){return new sr({...Ze(this._def),schema:this,typeName:Fe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ss({...Ze(this._def),innerType:this,defaultValue:n,typeName:Fe.ZodDefault})}brand(){return new sm({typeName:Fe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ks({...Ze(this._def),innerType:this,catchValue:n,typeName:Fe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return tc.create(this,t)}readonly(){return Es.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const M8=/^c[^\s-]{8,}$/i,$8=/^[0-9a-z]+$/,A8=/^[0-9A-HJKMNP-TV-Z]{26}$/,R8=/^[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,j8=/^[a-z0-9_-]{21}$/i,P8=/^[-+]?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)?)??$/,I8=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,D8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let mf;const N8=/^(?:(?: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])$/,L8=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,F8=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,K2="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B8=new RegExp(`^${K2}$`);function X2(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function U8(e){return new RegExp(`^${X2(e)}$`)}function Q2(e){let t=`${K2}T${X2(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 W8(e,t){return!!((t==="v4"||!t)&&N8.test(e)||(t==="v6"||!t)&&L8.test(e))}class ir extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.string,received:a.parsedType}),Be}const r=new yn;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.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),_e(i,{code:fe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?_e(i,{code:fe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&_e(i,{code:fe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")I8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")mf||(mf=new RegExp(D8,"u")),mf.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")R8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")j8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")M8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")$8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")A8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:fe.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:fe.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),_e(i,{validation:"regex",code:fe.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),_e(i,{code:fe.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),_e(i,{code:fe.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?Q2(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?B8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?U8(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?P8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:fe.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?W8(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:fe.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?F8.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:fe.invalid_string,message:a.message}),r.dirty()):ut.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:fe.invalid_string,...$e.errToObj(r)})}_addCheck(t){return new ir({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...$e.errToObj(t)})}url(t){return this._addCheck({kind:"url",...$e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...$e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...$e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...$e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...$e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...$e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...$e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...$e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...$e.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...$e.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,...$e.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...$e.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...$e.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...$e.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...$e.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...$e.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...$e.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...$e.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...$e.errToObj(n)})}nonempty(t){return this.min(1,$e.errToObj(t))}trim(){return new ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const 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}}ir.create=e=>{var t;return new ir({checks:[],typeName:Fe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ze(e)})};function z8(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class hi extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.number,received:a.parsedType}),Be}let r;const i=new yn;for(const a of this._def.checks)a.kind==="int"?ut.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.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),_e(r,{code:fe.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),_e(r,{code:fe.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?z8(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:fe.not_finite,message:a.message}),i.dirty()):ut.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,$e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,$e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,$e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,$e.toString(n))}setLimit(t,n,r,i){return new hi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:$e.toString(i)}]})}_addCheck(t){return new hi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:$e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:$e.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:$e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$e.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"&&ut.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)}}hi.create=e=>new hi({checks:[],typeName:Fe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class pi extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ce.bigint){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.bigint,received:a.parsedType}),Be}let r;const i=new yn;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),_e(r,{code:fe.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),_e(r,{code:fe.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),_e(r,{code:fe.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):ut.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,$e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,$e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,$e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,$e.toString(n))}setLimit(t,n,r,i){return new pi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:$e.toString(i)}]})}_addCheck(t){return new pi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:$e.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}}pi.create=e=>{var t;return new pi({checks:[],typeName:Fe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ze(e)})};class gs extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.boolean,received:r.parsedType}),Be}return Tn(t.data)}}gs.create=e=>new gs({typeName:Fe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Ki extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_type,expected:Ce.date,received:a.parsedType}),Be}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return _e(a,{code:fe.invalid_date}),Be}const r=new yn;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:fe.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),_e(i,{code:fe.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):ut.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ki({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:$e.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:$e.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}}Ki.create=e=>new Ki({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Fe.ZodDate,...Ze(e)});class El extends et{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.symbol,received:r.parsedType}),Be}return Tn(t.data)}}El.create=e=>new El({typeName:Fe.ZodSymbol,...Ze(e)});class vs extends et{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.undefined,received:r.parsedType}),Be}return Tn(t.data)}}vs.create=e=>new vs({typeName:Fe.ZodUndefined,...Ze(e)});class ys extends et{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.null,received:r.parsedType}),Be}return Tn(t.data)}}ys.create=e=>new ys({typeName:Fe.ZodNull,...Ze(e)});class Ga extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Tn(t.data)}}Ga.create=e=>new Ga({typeName:Fe.ZodAny,...Ze(e)});class zi extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Tn(t.data)}}zi.create=e=>new zi({typeName:Fe.ZodUnknown,...Ze(e)});class Vr extends et{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:fe.invalid_type,expected:Ce.never,received:n.parsedType}),Be}}Vr.create=e=>new Vr({typeName:Fe.ZodNever,...Ze(e)});class Ol extends et{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.void,received:r.parsedType}),Be}return Tn(t.data)}}Ol.create=e=>new Ol({typeName:Fe.ZodVoid,...Ze(e)});class or extends et{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return _e(n,{code:fe.invalid_type,expected:Ce.array,received:n.parsedType}),Be;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(_e(n,{code:o?fe.too_big:fe.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(_e(n,{code:fe.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&&(_e(n,{code:fe.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((o,s)=>i.type._parseAsync(new vr(n,o,n.path,s)))).then(o=>yn.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new vr(n,o,n.path,s)));return yn.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new or({...this._def,minLength:{value:t,message:$e.toString(n)}})}max(t,n){return new or({...this._def,maxLength:{value:t,message:$e.toString(n)}})}length(t,n){return new or({...this._def,exactLength:{value:t,message:$e.toString(n)}})}nonempty(t){return this.min(1,t)}}or.create=(e,t)=>new or({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Fe.ZodArray,...Ze(t)});function ka(e){if(e instanceof Zt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=mr.create(ka(r))}return new Zt({...e._def,shape:()=>t})}else return e instanceof or?new or({...e._def,type:ka(e.element)}):e instanceof mr?mr.create(ka(e.unwrap())):e instanceof gi?gi.create(ka(e.unwrap())):e instanceof yr?yr.create(e.items.map(t=>ka(t))):e}class Zt extends et{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=ut.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return _e(l,{code:fe.invalid_type,expected:Ce.object,received:l.parsedType}),Be}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Vr&&this._def.unknownKeys==="strip"))for(const l in i.data)o.includes(l)||s.push(l);const c=[];for(const l of o){const u=a[l],d=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new vr(i,d,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Vr){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(l==="strict")s.length>0&&(_e(i,{code:fe.unrecognized_keys,keys:s}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const d=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new vr(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>yn.mergeObjectSync(r,l)):yn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return $e.errToObj,new Zt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const c=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=$e.errToObj(t).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new Zt({...this._def,unknownKeys:"strip"})}passthrough(){return new Zt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Zt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Zt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Fe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Zt({...this._def,catchall:t})}pick(t){const n={};return ut.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Zt({...this._def,shape:()=>n})}omit(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Zt({...this._def,shape:()=>n})}deepPartial(){return ka(this)}partial(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Zt({...this._def,shape:()=>n})}required(t){const n={};return ut.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof mr;)a=a._def.innerType;n[r]=a}}),new Zt({...this._def,shape:()=>n})}keyof(){return J2(ut.objectKeys(this.shape))}}Zt.create=(e,t)=>new Zt({shape:()=>e,unknownKeys:"strip",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});Zt.strictCreate=(e,t)=>new Zt({shape:()=>e,unknownKeys:"strict",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});Zt.lazycreate=(e,t)=>new Zt({shape:e,unknownKeys:"strip",catchall:Vr.create(),typeName:Fe.ZodObject,...Ze(t)});class bs extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new Ln(s.ctx.common.issues));return _e(n,{code:fe.invalid_union,unionErrors:o}),Be}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(c=>new Ln(c));return _e(n,{code:fe.invalid_union,unionErrors:s}),Be}}get options(){return this._def.options}}bs.create=(e,t)=>new bs({options:e,typeName:Fe.ZodUnion,...Ze(t)});const jr=e=>e instanceof ws?jr(e.schema):e instanceof sr?jr(e.innerType()):e instanceof Cs?[e.value]:e instanceof mi?e.options:e instanceof Ts?ut.objectValues(e.enum):e instanceof Ss?jr(e._def.innerType):e instanceof vs?[void 0]:e instanceof ys?[null]:e instanceof mr?[void 0,...jr(e.unwrap())]:e instanceof gi?[null,...jr(e.unwrap())]:e instanceof sm||e instanceof Es?jr(e.unwrap()):e instanceof ks?jr(e._def.innerType):[];class Ou extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.object)return _e(n,{code:fe.invalid_type,expected:Ce.object,received:n.parsedType}),Be;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:fe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=jr(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new Ou({typeName:Fe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ze(r)})}}function kh(e,t){const n=ai(e),r=ai(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const i=ut.objectKeys(t),a=ut.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const c=kh(e[s],t[s]);if(!c.valid)return{valid:!1};o[s]=c.data}return{valid:!0,data:o}}else if(n===Ce.array&&r===Ce.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],c=kh(o,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class xs extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Th(a)||Th(o))return Be;const s=kh(a.value,o.value);return s.valid?((Sh(a)||Sh(o))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:fe.invalid_intersection_types}),Be)};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,o])=>i(a,o)):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}))}}xs.create=(e,t,n)=>new xs({left:e,right:t,typeName:Fe.ZodIntersection,...Ze(n)});class yr extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return _e(r,{code:fe.invalid_type,expected:Ce.array,received:r.parsedType}),Be;if(r.data.length<this._def.items.length)return _e(r,{code:fe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Be;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:fe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new vr(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>yn.mergeArray(n,o)):yn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new yr({...this._def,rest:t})}}yr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yr({items:e,typeName:Fe.ZodTuple,rest:null,...Ze(t)})};class _s extends et{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!==Ce.object)return _e(r,{code:fe.invalid_type,expected:Ce.object,received:r.parsedType}),Be;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new vr(r,s,r.path,s)),value:o._parse(new vr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?yn.mergeObjectAsync(n,i):yn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof et?new _s({keyType:t,valueType:n,typeName:Fe.ZodRecord,...Ze(r)}):new _s({keyType:ir.create(),valueType:t,typeName:Fe.ZodRecord,...Ze(n)})}}class Ml extends et{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!==Ce.map)return _e(r,{code:fe.invalid_type,expected:Ce.map,received:r.parsedType}),Be;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,c],l)=>({key:i._parse(new vr(r,s,r.path,[l,"key"])),value:a._parse(new vr(r,c,r.path,[l,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return Be;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return Be;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(l.value,u.value)}return{status:n.value,value:s}}}}Ml.create=(e,t,n)=>new Ml({valueType:t,keyType:e,typeName:Fe.ZodMap,...Ze(n)});class Xi extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return _e(r,{code:fe.invalid_type,expected:Ce.set,received:r.parsedType}),Be;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:fe.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&&(_e(r,{code:fe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return Be;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const s=[...r.data.values()].map((c,l)=>a._parse(new vr(r,c,r.path,l)));return r.common.async?Promise.all(s).then(c=>o(c)):o(s)}min(t,n){return new Xi({...this._def,minSize:{value:t,message:$e.toString(n)}})}max(t,n){return new Xi({...this._def,maxSize:{value:t,message:$e.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Xi.create=(e,t)=>new Xi({valueType:e,minSize:null,maxSize:null,typeName:Fe.ZodSet,...Ze(t)});class Ra extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.function)return _e(n,{code:fe.invalid_type,expected:Ce.function,received:n.parsedType}),Be;function r(s,c){return Sl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Tl(),Ya].filter(l=>!!l),issueData:{code:fe.invalid_arguments,argumentsError:c}})}function i(s,c){return Sl({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Tl(),Ya].filter(l=>!!l),issueData:{code:fe.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Za){const s=this;return Tn(async function(...c){const l=new Ln([]),u=await s._def.args.parseAsync(c,a).catch(h=>{throw l.addIssue(r(c,h)),l}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(h=>{throw l.addIssue(i(d,h)),l})})}else{const s=this;return Tn(function(...c){const l=s._def.args.safeParse(c,a);if(!l.success)throw new Ln([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new Ln([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ra({...this._def,args:yr.create(t).rest(zi.create())})}returns(t){return new Ra({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ra({args:t||yr.create([]).rest(zi.create()),returns:n||zi.create(),typeName:Fe.ZodFunction,...Ze(r)})}}class ws extends et{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})}}ws.create=(e,t)=>new ws({getter:e,typeName:Fe.ZodLazy,...Ze(t)});class Cs extends et{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:fe.invalid_literal,expected:this._def.value}),Be}return{status:"valid",value:t.data}}get value(){return this._def.value}}Cs.create=(e,t)=>new Cs({value:e,typeName:Fe.ZodLiteral,...Ze(t)});function J2(e,t){return new mi({values:e,typeName:Fe.ZodEnum,...Ze(t)})}class mi extends et{constructor(){super(...arguments),Zo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:ut.joinValues(r),received:n.parsedType,code:fe.invalid_type}),Be}if(kl(this,Zo)||Z2(this,Zo,new Set(this._def.values)),!kl(this,Zo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:fe.invalid_enum_value,options:r}),Be}return Tn(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 mi.create(t,{...this._def,...n})}exclude(t,n=this._def){return mi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Zo=new WeakMap;mi.create=J2;class Ts extends et{constructor(){super(...arguments),Ko.set(this,void 0)}_parse(t){const n=ut.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const i=ut.objectValues(n);return _e(r,{expected:ut.joinValues(i),received:r.parsedType,code:fe.invalid_type}),Be}if(kl(this,Ko)||Z2(this,Ko,new Set(ut.getValidEnumValues(this._def.values))),!kl(this,Ko).has(t.data)){const i=ut.objectValues(n);return _e(r,{received:r.data,code:fe.invalid_enum_value,options:i}),Be}return Tn(t.data)}get enum(){return this._def.values}}Ko=new WeakMap;Ts.create=(e,t)=>new Ts({values:e,typeName:Fe.ZodNativeEnum,...Ze(t)});class Za extends et{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return _e(n,{code:fe.invalid_type,expected:Ce.promise,received:n.parsedType}),Be;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Tn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Za.create=(e,t)=>new Za({type:e,typeName:Fe.ZodPromise,...Ze(t)});class sr extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fe.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:o=>{_e(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return Be;const c=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return c.status==="aborted"?Be:c.status==="dirty"||n.value==="dirty"?Ea(c.value):c});{if(n.value==="aborted")return Be;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Be:s.status==="dirty"||n.value==="dirty"?Ea(s.value):s}}if(i.type==="refinement"){const o=s=>{const c=i.refinement(s,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 s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Be:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Be:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ps(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>ps(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);ut.assertNever(i)}}sr.create=(e,t,n)=>new sr({schema:e,typeName:Fe.ZodEffects,effect:t,...Ze(n)});sr.createWithPreprocess=(e,t,n)=>new sr({schema:t,effect:{type:"preprocess",transform:e},typeName:Fe.ZodEffects,...Ze(n)});class mr extends et{_parse(t){return this._getType(t)===Ce.undefined?Tn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}mr.create=(e,t)=>new mr({innerType:e,typeName:Fe.ZodOptional,...Ze(t)});class gi extends et{_parse(t){return this._getType(t)===Ce.null?Tn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:Fe.ZodNullable,...Ze(t)});class Ss extends et{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ss.create=(e,t)=>new Ss({innerType:e,typeName:Fe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class ks extends et{_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 ms(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ln(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ln(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ks.create=(e,t)=>new ks({innerType:e,typeName:Fe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class $l extends et{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:fe.invalid_type,expected:Ce.nan,received:r.parsedType}),Be}return{status:"valid",value:t.data}}}$l.create=e=>new $l({typeName:Fe.ZodNaN,...Ze(e)});const H8=Symbol("zod_brand");class sm extends et{_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 tc extends et{_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"?Be:a.status==="dirty"?(n.dirty(),Ea(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"?Be: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 tc({in:t,out:n,typeName:Fe.ZodPipeline})}}class Es extends et{_parse(t){const n=this._def.innerType._parse(t),r=i=>(ps(i)&&(i.value=Object.freeze(i.value)),i);return ms(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Es.create=(e,t)=>new Es({innerType:e,typeName:Fe.ZodReadonly,...Ze(t)});function e_(e,t={},n){return e?Ga.create().superRefine((r,i)=>{var a,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(a=s.fatal)!==null&&a!==void 0?a:n)!==null&&o!==void 0?o:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):Ga.create()}const V8={object:Zt.lazycreate};var Fe;(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"})(Fe||(Fe={}));const q8=(e,t={message:`Input not instance of ${e.name}`})=>e_(n=>n instanceof e,t),t_=ir.create,n_=hi.create,Y8=$l.create,G8=pi.create,r_=gs.create,Z8=Ki.create,K8=El.create,X8=vs.create,Q8=ys.create,J8=Ga.create,e$=zi.create,t$=Vr.create,n$=Ol.create,r$=or.create,i$=Zt.create,a$=Zt.strictCreate,o$=bs.create,s$=Ou.create,c$=xs.create,l$=yr.create,u$=_s.create,d$=Ml.create,f$=Xi.create,h$=Ra.create,p$=ws.create,m$=Cs.create,g$=mi.create,v$=Ts.create,y$=Za.create,mv=sr.create,b$=mr.create,x$=gi.create,_$=sr.createWithPreprocess,w$=tc.create,C$=()=>t_().optional(),T$=()=>n_().optional(),S$=()=>r_().optional(),k$={string:e=>ir.create({...e,coerce:!0}),number:e=>hi.create({...e,coerce:!0}),boolean:e=>gs.create({...e,coerce:!0}),bigint:e=>pi.create({...e,coerce:!0}),date:e=>Ki.create({...e,coerce:!0})},E$=Be;var sn=Object.freeze({__proto__:null,defaultErrorMap:Ya,setErrorMap:E8,getErrorMap:Tl,makeIssue:Sl,EMPTY_PATH:O8,addIssueToContext:_e,ParseStatus:yn,INVALID:Be,DIRTY:Ea,OK:Tn,isAborted:Th,isDirty:Sh,isValid:ps,isAsync:ms,get util(){return ut},get objectUtil(){return Ch},ZodParsedType:Ce,getParsedType:ai,ZodType:et,datetimeRegex:Q2,ZodString:ir,ZodNumber:hi,ZodBigInt:pi,ZodBoolean:gs,ZodDate:Ki,ZodSymbol:El,ZodUndefined:vs,ZodNull:ys,ZodAny:Ga,ZodUnknown:zi,ZodNever:Vr,ZodVoid:Ol,ZodArray:or,ZodObject:Zt,ZodUnion:bs,ZodDiscriminatedUnion:Ou,ZodIntersection:xs,ZodTuple:yr,ZodRecord:_s,ZodMap:Ml,ZodSet:Xi,ZodFunction:Ra,ZodLazy:ws,ZodLiteral:Cs,ZodEnum:mi,ZodNativeEnum:Ts,ZodPromise:Za,ZodEffects:sr,ZodTransformer:sr,ZodOptional:mr,ZodNullable:gi,ZodDefault:Ss,ZodCatch:ks,ZodNaN:$l,BRAND:H8,ZodBranded:sm,ZodPipeline:tc,ZodReadonly:Es,custom:e_,Schema:et,ZodSchema:et,late:V8,get ZodFirstPartyTypeKind(){return Fe},coerce:k$,any:J8,array:r$,bigint:G8,boolean:r_,date:Z8,discriminatedUnion:s$,effect:mv,enum:g$,function:h$,instanceof:q8,intersection:c$,lazy:p$,literal:m$,map:d$,nan:Y8,nativeEnum:v$,never:t$,null:Q8,nullable:x$,number:n_,object:i$,oboolean:S$,onumber:T$,optional:b$,ostring:C$,pipeline:w$,preprocess:_$,promise:y$,record:u$,set:f$,strictObject:a$,string:t_,symbol:K8,transformer:mv,tuple:l$,undefined:X8,union:o$,unknown:e$,void:n$,NEVER:E$,ZodIssueCode:fe,quotelessJson:k8,ZodError:Ln});const Mu=()=>{const{texts:{formValidation:e}}=m.useContext(Kt),t=m.useCallback(p=>{let v=(p!=null&&p.useCoerce?sn.coerce:sn).string({invalid_type_error:e.required,required_error:e.required});return p!=null&&p.email&&(v=v.email(e.invalidEmail)),p!=null&&p.length&&(v=v.min(p.length,e.length(p.length))),p!=null&&p.minLength&&(v=v.min(p.minLength,e.minLength(p.minLength))),p!=null&&p.maxLength&&(v=v.max(p.maxLength,e.maxLength(p.maxLength))),p!=null&&p.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),p!=null&&p.regex&&(v=v.regex(p.regex,e.invalidFormat)),v.transform(w=>w??null)},[e]),n=m.useCallback(p=>t(p).nullable().optional().transform(v=>v??null),[t]),r=m.useCallback(p=>{const v=(p==null?void 0:p.min)??Number.MIN_SAFE_INTEGER,w=(p==null?void 0:p.max)??Number.MAX_SAFE_INTEGER,_=(p!=null&&p.useCoerce?sn.coerce:sn).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(w,e.moreThanMax(w));return _.transform(x=>x??null),_},[e]),i=m.useCallback(p=>r(p).nullable().optional().transform(v=>v??null),[r]),a=m.useCallback(p=>(p!=null&&p.useCoerce?sn.coerce:sn).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=m.useCallback(p=>(p!=null&&p.useCoerce?sn.coerce:sn).string({invalid_type_error:e.required,required_error:e.required}).refine(g2,{message:e.invalidDate}).transform(w=>w??null),[e.invalidDate,e.required]),s=m.useCallback(p=>o(p).nullable().transform(v=>v??null),[o]),c=m.useCallback((p,v)=>sn.enum(p,{invalid_type_error:e.required,required_error:e.required}).transform(_=>_??null),[e.required]),l=m.useCallback((p,v)=>c(p,v).nullable().transform(w=>w??null),[c]),u=m.useCallback(p=>sn.object({id:i({useCoerce:!0})}).nullable().transform(w=>w??null),[i]),d=m.useCallback(p=>sn.object({id:r()}).transform(w=>w??null),[r]),f=m.useCallback(p=>sn.object({id:n({useCoerce:!0})}).nullable().transform(w=>w??null),[n]),h=m.useCallback(p=>sn.object({id:t()}).transform(w=>w??null),[t]),g=m.useCallback(({required:p,multiple:v,maxFileSize:w})=>sn.any().transform(x=>Array.from(x??[])).refine(x=>!p||(x==null?void 0:x.length)>0,"File is required.").refine(x=>v||(x==null?void 0:x.length)<=1,"Multiple files not allowed.").refine(x=>x.every(T=>T.size<=w),`Maximum file size is ${Va(w)}.`).transform(x=>(v?x:x==null?void 0:x[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:i,zNumberRequired:r,zBool:a,zDate:s,zDateRequired:o,zEnum:l,zEnumRequired:c,zObjectIdInt:u,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:h,zFile:g}},i_=(e,t)=>{m.useEffect(()=>{const n=r=>{e.some(i=>i.current&&i.current.contains(r.target))||t()};return document.addEventListener("mouseup",n),()=>{document.removeEventListener("mouseup",n)}},[e,t])},a_=()=>{const{user:e}=m.useContext(c2);return{checkUserHasPermissions:m.useCallback((n,r="any")=>n.length===0?!0:r==="any"?n.some(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}):n.every(i=>{var a;return(a=e==null?void 0:e.permissions)==null?void 0:a.includes(i)}),[e])}},o_=(e,t)=>{m.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e]),m.useEffect(()=>t===void 0?()=>{}:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),[t])},cm=(e,t,n)=>m.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),s_=()=>{const{addNotification:e}=ku(),{texts:{clipboard:t}}=m.useContext(Kt);return{copyToClipboard:m.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},nc=()=>{const[e,t]=m.useState(window.innerWidth),[n,r]=m.useState(window.innerHeight),i=()=>{t(window.innerWidth),r(window.innerHeight)};return m.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[]),{width:e,height:n,isMobile:e<992}},c_=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),l_=m.createContext(void 0),gv={falseIfNotInit:!1},$u=({falseIfNotInit:e=gv.falseIfNotInit}=gv)=>{const t=m.useContext(l_);if(!e&&t===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return t??!1},O$="_button_1wjon_1",M$="_filled_1wjon_7",$$="_sm_1wjon_13",A$="_md_1wjon_18",R$="_lg_1wjon_23",xa={button:O$,filled:M$,sm:$$,md:A$,lg:R$},Qi=({variant:e="filled",color:t="primary",size:n="md",className:r,children:i,...a})=>a.as==="link"?y.jsx(no.Link,{to:a.href??"/",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,xa.button,xa[e],xa[n]),...a,children:i}):a.as==="button"||a.as===void 0?y.jsx("button",{type:"button",className:oe(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,xa.button,xa[e],xa[n]),...a,children:i}):null,j$="_button_1r3i0_1",Eh={button:j$},Au=({color:e="primary",icon:t,className:n,children:r,...i})=>i.as==="link"?y.jsxs(no.Link,{to:i.href??"/",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Eh.button),...i,children:[t,r]}):i.as==="button"||i.as===void 0?y.jsxs("button",{type:"button",className:oe(`luminus-context-button btn text-${e} ${n??""}`,Eh.button),...i,children:[t,r]}):null,P$=m.forwardRef(({color:e="primary",icon:t=y.jsx(Qx,{size:12}),inputId:n="context-file-input",accept:r="*",onUpload:i,className:a,children:o,multiple:s,...c},l)=>{const u=d=>{d.target.files&&(i(d.target.files),d.target.value="")};return y.jsxs(y.Fragment,{children:[y.jsxs("label",{ref:l,htmlFor:n,className:oe(`luminus-context-button btn text-${e} ${a??""}`,Eh.button),...c,children:[t,o]}),y.jsx("input",{id:n,type:"file",accept:r,onChange:u,hidden:!0,multiple:s})]})}),I$="_icon-button_15e26_1",D$="_sm_15e26_14",N$="_md_15e26_23",L$="_lg_15e26_32",jc={"icon-button":"_icon-button_15e26_1",iconButton:I$,sm:D$,md:N$,lg:L$},rc=({type:e="button",color:t="primary",size:n="md",children:r,className:i,...a})=>a.as==="link"?y.jsx(no.Link,{to:a.href??"/",className:oe(`luminus-icon-button btn text-${t} ${i??""}`,jc.iconButton,jc[n]),...a,children:r}):a.as==="button"||a.as===void 0?y.jsx("button",{type:e,className:oe(`luminus-icon-button btn text-${t} ${i??""}`,jc.iconButton,jc[n]),...a,children:r}):null,F$="_feedback_esh1j_1",B$="_feedback-spacer_esh1j_8",vv={feedback:F$,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:B$},Ru=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe("invalid-feedback luminus-invalid-feedback",vv.feedback),children:e}),y.jsx("div",{className:oe("invalid-feedback-spacer",vv.feedbackSpacer),children:e})]}),U$="_item_1dy8x_1",u_={item:U$},ja=({color:e="primary",icon:t,className:n,children:r,to:i,as:a,...o})=>y.jsxs(Ha.Item,{className:oe(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,u_.item),as:a==="link"?no.Link:void 0,to:i??"",...o,children:[t,r]}),W$="_button_qhwih_1",z$={button:W$},lm=m.forwardRef(({color:e="primary",icon:t=y.jsx(e2,{size:21}),text:n,onClick:r,className:i,children:a,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:oe(`btn luminus-context-button text-${e} ${i??""}`,z$.button),...o,children:[t,n]})),H$="_avatar-icon_1axl6_1",V$={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:H$},d_=({name:e,fontSize:t,size:n})=>{const r=m.useMemo(()=>{const o=e.split(" ");return o.length<2?e:fs(" ",o.at(o.length-2),o.at(o.length-1))},[e]),i=m.useMemo(()=>{const o=r.split(" ");return fs("",...o.map(s=>s.at(0)??void 0))},[r]),a=o=>{let s=0,c;for(c=0;c<o.length;c+=1)s=o.charCodeAt(c)+((s<<5)-s);let l="#";for(c=0;c<3;c+=1){const u=s>>c*8&255;l+=`00${u.toString(16)}`.slice(-2)}return l};return y.jsx(Gx,{placement:"bottom",overlay:y.jsx(qx,{children:e}),children:y.jsx("div",{className:oe("luminus-avatar-icon",V$.avatarIcon),style:{backgroundColor:a(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:i})})})},q$=m.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:i=>{i.preventDefault(),t(i)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(d_,{name:e}),n]})),um=e=>y.jsx(Ha.Toggle,{...e}),Y$="_divider_1e6rk_1",G$={divider:Y$},f_=({className:e})=>y.jsx(Ha.Divider,{className:oe("luminus-dropdown-divider",e,G$.divider)}),Z$="_dropdown_1lk66_1",K$={dropdown:Z$},dm=({toggle:e,children:t,align:n,...r})=>y.jsxs(Ha,{...r,align:n,children:[e,y.jsx(Ha.Menu,{className:oe("luminus-dropdown rounded shadow",K$.dropdown),align:n,children:t})]});function X$(e,t,n){var r=this,i=m.useRef(null),a=m.useRef(0),o=m.useRef(null),s=m.useRef([]),c=m.useRef(),l=m.useRef(),u=m.useRef(e),d=m.useRef(!0);u.current=e;var f=typeof window<"u",h=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,v="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,_=v?Math.max(+n.maxWait||0,t):null;m.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var x=m.useMemo(function(){var T=function(E){var C=s.current,O=c.current;return s.current=c.current=null,a.current=E,l.current=u.current.apply(O,C)},b=function(E,C){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(E):setTimeout(E,C)},S=function(E){if(!d.current)return!1;var C=E-i.current;return!i.current||C>=t||C<0||v&&E-a.current>=_},R=function(E){return o.current=null,p&&s.current?T(E):(s.current=c.current=null,l.current)},M=function E(){var C=Date.now();if(S(C))return R(C);if(d.current){var O=t-(C-i.current),$=v?Math.min(O,_-(C-a.current)):O;b(E,$)}},k=function(){if(f||w){var E=Date.now(),C=S(E);if(s.current=[].slice.call(arguments),c.current=r,i.current=E,C){if(!o.current&&d.current)return a.current=i.current,b(M,t),g?T(i.current):l.current;if(v)return b(M,t),T(i.current)}return o.current||b(M,t),l.current}};return k.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=c.current=o.current=null},k.isPending=function(){return!!o.current},k.flush=function(){return o.current?R(Date.now()):l.current},k},[g,v,t,_,p,h,f,w]);return x}function Q$(e,t){return e===t}function h_(e,t,n){var r=Q$,i=m.useRef(e),a=m.useState({})[1],o=X$(m.useCallback(function(c){i.current=c,a({})},[a]),t,n),s=m.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const J$="_wrapper_1mvyk_1",e7="_open_1mvyk_9",t7="_dropdown_1mvyk_13",n7="_search-input-container_1mvyk_19",r7="_search-input_1mvyk_19",i7="_loading-container_1mvyk_25",a7="_items-container_1mvyk_32",o7="_header-row_1mvyk_38",s7="_name_1mvyk_49",c7="_item_1mvyk_32",l7="_column-item_1mvyk_65",u7="_icon_1mvyk_69",d7="_action-buttons-container_1mvyk_89",f7="_reverse_1mvyk_97",h7="_action-button_1mvyk_89",p7="_actions-dropdown_1mvyk_110",on={wrapper:J$,open:e7,dropdown:t7,"search-input-container":"_search-input-container_1mvyk_19",searchInputContainer:n7,"search-input":"_search-input_1mvyk_19",searchInput:r7,"loading-container":"_loading-container_1mvyk_25",loadingContainer:i7,"items-container":"_items-container_1mvyk_32",itemsContainer:a7,"header-row":"_header-row_1mvyk_38",headerRow:o7,name:s7,item:c7,"column-item":"_column-item_1mvyk_65",columnItem:l7,icon:u7,"action-buttons-container":"_action-buttons-container_1mvyk_89",actionButtonsContainer:d7,reverse:f7,"action-button":"_action-button_1mvyk_89",actionButton:h7,"actions-dropdown":"_actions-dropdown_1mvyk_110",actionsDropdown:p7},p_=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:c,itemsNameWidth:l,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:g,isLoading:p=!1,inputRef:v,archiveColumn:w="archive",addNewOptionPath:_,refreshOptions:x,noRemoveButton:T=!1})=>{var st;const{texts:{customSelect:b}}=m.useContext(Kt),S=m.useRef(null),R=m.useRef(null),M=m.useRef(null),k=m.useRef(null),E=m.useRef(null),[C,O]=m.useState(""),[$]=h_(C,500),[,A]=m.useState(!1),{copyToClipboard:P}=s_(),D=(st=v.current)==null?void 0:st.getBoundingClientRect(),F=(D==null?void 0:D.x)??0,q=((D==null?void 0:D.x)??0)+((D==null?void 0:D.width)??0),z=(D==null?void 0:D.y)??0,U=((D==null?void 0:D.y)??0)+((D==null?void 0:D.height)??0),G=(D==null?void 0:D.width)??0,ee=(D==null?void 0:D.height)??0,ie=5,{isMobile:J}=nc(),X=8,K=m.useMemo(()=>F?F>window.innerWidth/2-X:!1,[F]),re=m.useMemo(()=>z?z>window.innerHeight/2-X:!1,[z]);m.useEffect(()=>{var pe;e&&((pe=M.current)==null||pe.focus())},[M,e]),m.useEffect(()=>{e||O("")},[e]),m.useEffect(()=>{s&&s($)},[$,s]);const[N,I]=m.useState(null);m.useEffect(()=>{e&&n.length>0?I(0):I(null)},[n,e]);const L=m.useMemo(()=>N!==null?n.at(N)??null:null,[N,n]),V=m.useCallback((pe,Te)=>{var Ne,nt;const ve=document.getElementById(`item-${pe}`);if(ve){const Et=ve.clientHeight??0;Te==="down"?(Ne=k.current)==null||Ne.scrollBy({left:0,top:Et,behavior:"smooth"}):(nt=k.current)==null||nt.scrollBy({left:0,top:-Et,behavior:"smooth"})}},[]),j=m.useCallback(pe=>{if(N===null||g)return;const Te=N+pe;Te<0||Te>=n.length||I(ve=>(ve!==null&&V(ve,pe>0?"down":"up"),Te))},[N,n,g,V]),Z=m.useCallback(pe=>{if(e)switch(pe.key){case"Escape":pe.stopPropagation(),pe.preventDefault(),t();break;case"Enter":pe.stopPropagation(),pe.preventDefault(),g||o(L);break;case"ArrowUp":pe.stopPropagation(),pe.preventDefault(),j(-1);break;case"ArrowDown":pe.stopPropagation(),pe.preventDefault(),j(1);break}},[t,e,j,L,g,o]),Q=m.useCallback(()=>{A(pe=>!pe)},[]);m.useEffect(()=>(window.addEventListener("scroll",Q),()=>{window.removeEventListener("scroll",Q)}),[Q]),m.useEffect(()=>(window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q)}),[Q]),o_(Z),i_([S,R,E],t);const te=l??(u&&u.length>0?250:0),he=(u==null?void 0:u.reduce((pe,Te)=>pe+(Te.width??100),0))??0,we=m.useMemo(()=>(a&&e&&!g&&!T)??!1,[a,e,g,T]),me=m.useMemo(()=>(a&&e)??!1,[a,e]),Ue=m.useMemo(()=>e&&(me||_!==void 0||x!==void 0),[e,me,_,x]),Ae=32,Ve=J?`calc(100vw - ${Ae}px)`:`calc(max(${G}px, calc(${te}px + ${he}px)))`,Ke=m.useMemo(()=>(C.length<1&&r&&r.length>0?r:n).map(pe=>{var Te,ve;return d?((Te=pe.id)==null?void 0:Te.toString())??"":((ve=pe.name)==null?void 0:ve.toString())??""}).reduce((pe,Te)=>pe.length>Te.length?pe:Te,""),[C,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(C_,{show:e,onClick:t}),y.jsxs("div",{className:oe("luminus-dropdown-picker-actions",on.actionButtonsContainer,{[on.reverse]:K}),style:{top:`calc(${z}px + ${ee/2}px - 12px)`,left:K?we&&me?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${q}px + 8px)`},children:[we&&y.jsx("button",{ref:R,type:"button",className:oe("luminus-dropdown-picker-clear-button",on.actionButton),onClick:()=>!g&&o(null),children:y.jsx(_n,{variant:"caption",className:"text-danger",children:y.jsx(Xx,{size:16})})}),Ue?y.jsx("div",{ref:E,children:y.jsxs(dm,{toggle:y.jsx(um,{as:lm,className:oe("luminus-dropdown-picker-actions-dropdown",on.actionsDropdown),icon:y.jsx(_n,{variant:"caption",className:"text-primary",children:y.jsx(e2,{size:16})})}),children:[me?y.jsx(ja,{icon:y.jsx(Jk,{}),onClick:()=>{var pe,Te;P(d?((pe=a==null?void 0:a.id)==null?void 0:pe.toString())??"":((Te=a==null?void 0:a.name)==null?void 0:Te.toString())??"")},children:b.copySelection}):null,me&&(_||x)?y.jsx(f_,{}):null,_?y.jsx(ja,{icon:y.jsx(Qk,{}),onClick:()=>{window.open(_,"_blank")},children:b.addNewOption}):null,x?y.jsx(ja,{icon:y.jsx(lE,{}),onClick:()=>{x()},children:b.refreshOptions}):null]})}):null]}),y.jsx("div",{className:oe("luminus-dropdown-picker",on.wrapper,{[on.open]:e}),style:{top:re?`calc(${z}px - 50vh - 8px)`:`calc(${U}px + 8px)`,left:J?`${Ae/2}px`:K?`calc(${q}px - ${Ve})`:F,right:J?`${Ae/2}px`:K?`${q}px`:`calc(${F}px + ${Ve})`,width:Ve,justifyContent:re?"flex-end":"flex-start"},children:y.jsx("div",{ref:S,className:oe("shadow rounded",on.dropdown),children:!g&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=ie?null:y.jsx("div",{className:oe("search-input-container border-bottom",on.searchInputContainer),children:y.jsx(Tr.Control,{ref:M,type:"search",size:"sm",className:on.searchInput,placeholder:c.searchPlaceholder,value:C,onChange:pe=>{var Te;return O(((Te=pe.target)==null?void 0:Te.value)??"")}})}),C.length<1&&r&&r.length>0?y.jsx(gm,{variant:"info",size:"sm",children:i??b.suggestedItemsTitle}):null,p?y.jsx("div",{className:on.loadingContainer,children:y.jsx(Kp,{animation:"border",variant:"primary"})}):(C.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:k,className:oe("items",on.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:oe("header-row border-bottom",on.headerRow),children:[y.jsx("div",{className:on.name,children:y.jsx(_n,{variant:"body2",children:Ke})}),u==null?void 0:u.filter(pe=>pe.key!==w).map(pe=>y.jsx("div",{className:on.columnItem,style:{width:`${pe.width??100}px`,minWidth:`${pe.width??100}px`,maxWidth:`${pe.width??100}px`},children:y.jsx(_n,{variant:"caption",children:pe.name})},pe.key))]}),(C.length<1&&r&&r.length>0?r:n).map((pe,Te)=>y.jsxs("button",{id:`item-${Te}`,type:"button",className:oe("item cursor-pointer",on.item,{[on.focused]:N===Te},{focused:N===Te},{archive:pe.additionalColumns?pe.additionalColumns[w]:!1}),onClick:()=>!g&&o(pe),onMouseEnter:()=>I(Te),children:[y.jsx("div",{className:on.name,children:y.jsx(_n,{variant:"body2",children:d?pe.id:pe.name})}),u==null?void 0:u.filter(ve=>ve.key!==w).map(ve=>y.jsx("div",{className:on.columnItem,style:{width:`${ve.width??100}px`,minWidth:`${ve.width??100}px`,maxWidth:`${ve.width??100}px`},children:y.jsx(_n,{variant:"caption",className:oe("text-muted"),children:pe.additionalColumns&&pe.additionalColumns[ve.key]})},ve.key))]},pe.id))]})]})})})]})};var fm={};fm.match=x7;fm.parse=m_;var m7=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,g7=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,v7=/^(?:(min|max)-)?(.+)/,y7=/(em|rem|px|cm|mm|in|pt|pc)?$/,b7=/(dpi|dpcm|dppx)?$/;function x7(e,t){return m_(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,c=o.modifier,l=o.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===l.toLowerCase();case"width":case"height":case"device-width":case"device-height":l=xv(l),u=xv(u);break;case"resolution":l=bv(l),u=bv(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":l=yv(l),u=yv(u);break;case"grid":case"color":case"color-index":case"monochrome":l=parseInt(l,10)||1,u=parseInt(u,10)||0;break}switch(c){case"min":return u>=l;case"max":return u<=l;default:return u===l}});return a&&!r||!a&&r})}function m_(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(m7),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var c=s.match(g7),l=c[1].toLowerCase().match(v7);return{modifier:l[1],feature:l[2],value:c[2]}}),o})}function yv(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function bv(e){var t=parseFloat(e),n=String(e).match(b7)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function xv(e){var t=parseFloat(e),n=String(e).match(y7)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var _7=fm.match,_v=typeof window<"u"?window.matchMedia:null;function w7(e,t,n){var r=this,i;_v&&!n&&(i=_v.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=_7(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=c;function a(l){i&&i.addListener(l)}function o(l){i&&i.removeListener(l)}function s(l){r.matches=l.matches,r.media=l.media}function c(){i&&i.removeListener(s)}}function C7(e,t,n){return new w7(e,t,n)}var T7=C7;const S7=Ht(T7);var k7=/[A-Z]/g,E7=/^ms-/,gf={};function O7(e){return"-"+e.toLowerCase()}function g_(e){if(gf.hasOwnProperty(e))return gf[e];var t=e.replace(k7,O7);return gf[e]=E7.test(t)?"-"+t:t}function M7(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const xn=H.oneOfType([H.string,H.number]),hm={all:H.bool,grid:H.bool,aural:H.bool,braille:H.bool,handheld:H.bool,print:H.bool,projection:H.bool,screen:H.bool,tty:H.bool,tv:H.bool,embossed:H.bool},v_={orientation:H.oneOf(["portrait","landscape"]),scan:H.oneOf(["progressive","interlace"]),aspectRatio:H.string,deviceAspectRatio:H.string,height:xn,deviceHeight:xn,width:xn,deviceWidth:xn,color:H.bool,colorIndex:H.bool,monochrome:H.bool,resolution:xn,type:Object.keys(hm)},{type:Xne,...$7}=v_,y_={minAspectRatio:H.string,maxAspectRatio:H.string,minDeviceAspectRatio:H.string,maxDeviceAspectRatio:H.string,minHeight:xn,maxHeight:xn,minDeviceHeight:xn,maxDeviceHeight:xn,minWidth:xn,maxWidth:xn,minDeviceWidth:xn,maxDeviceWidth:xn,minColor:H.number,maxColor:H.number,minColorIndex:H.number,maxColorIndex:H.number,minMonochrome:H.number,maxMonochrome:H.number,minResolution:xn,maxResolution:xn,...$7},A7={...hm,...y_};var R7={all:A7,types:hm,matchers:v_,features:y_};const j7=e=>`not ${e}`,P7=(e,t)=>{const n=g_(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?j7(n):`(${n}: ${t})`},I7=e=>e.join(" and "),D7=e=>{const t=[];return Object.keys(R7.all).forEach(n=>{const r=e[n];r!=null&&t.push(P7(n,r))}),I7(t)},N7=m.createContext(void 0),L7=e=>e.query||D7(e),wv=e=>e?Object.keys(e).reduce((n,r)=>(n[g_(r)]=e[r],n),{}):void 0,b_=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},F7=e=>{const t=m.useContext(N7),n=()=>wv(e)||wv(t),[r,i]=m.useState(n);return m.useEffect(()=>{const a=n();M7(r,a)||i(a)},[e,t]),r},B7=e=>{const t=()=>L7(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},U7=(e,t)=>{const n=()=>S7(e,t||{},!!t),[r,i]=m.useState(n),a=b_();return m.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},W7=e=>{const[t,n]=m.useState(e.matches);return m.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},vf=(e,t,n)=>{const r=F7(t),i=B7(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=U7(i,r),o=W7(a),s=b_();return m.useEffect(()=>{s&&n&&n(o)},[o]),m.useEffect(()=>()=>{a&&a.dispose()},[]),o},z7=["sm","md","lg","always"],x_="ResponsiveContextDropdownItem",H7=e=>e.type.displayName===x_,pm=e=>({});pm.displayName=x_;function V7(e){return e.type&&e.type===m.Fragment}const __=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(V7(r)){n.push(...__(r.props.children));return}n.push(r)}}),n},q7=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return no.generatePath(e,r)+"?"+n},Y7="_disabled_9mp5v_1",G7={disabled:Y7},Z7=()=>{const{ProjectIconComponent:e}=m.useContext(Kt),{checkUserHasPermissions:t}=a_();return{getProcessedChildren:m.useCallback((r,i)=>{const a=[],o=[];let s=null;const c=u=>{const{hideOn:d,children:f,cKey:h,to:g,toRoute:p,disabled:v,icon:w,pathParams:_,...x}=u.props,T=(p==null?void 0:p.permissions)!=null,b=(p==null?void 0:p.permissions)!=null&&t(p==null?void 0:p.permissions),S=(v??!1)||T&&!b,R=g??(p==null?void 0:q7(p==null?void 0:p.route,_)),M=f??(p==null?void 0:p.name),k=w??(p!=null?y.jsx(e,{icon:"link"}):void 0);if(d==="always"||z7.indexOf(d)>=i){s&&o.length>0&&o.push(s),s=null;const E=oe(x.className,{[G7.disabled]:S});R!=null?o.push(y.jsx(ja,{...x,as:"link",to:R,disabled:S,icon:k,className:E,children:M},h)):o.push(y.jsx(ja,{...x,icon:k,className:E,children:M},h))}else{const E=R!=null?{as:"link",href:R}:{};a.push(y.jsx(Au,{...x,...E,icon:k,className:oe(S?"disabled":void 0,x.className),children:M},h))}};return __(r).forEach(u=>{u&&m.isValidElement(u)&&(H7(u)?c(u):s=u)}),{buttons:a,dropdownItems:o}},[e,t])}},w_=({children:e})=>{const{getProcessedChildren:t}=Z7(),n=vf({maxWidth:768}),r=vf({minWidth:769,maxWidth:1200}),i=vf({minWidth:1201}),a=[n,r,i].indexOf(!0),{buttons:o,dropdownItems:s}=t(e,a);return y.jsxs("div",{className:"d-flex gap-1",children:[y.jsx(y.Fragment,{children:o}),s.length>0?y.jsx(dm,{toggle:y.jsx(um,{as:lm}),children:s}):null]})};w_.Item=pm;const K7="Left",X7="Right",Q7="Up",J7="Down",Oa={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Oh={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Cv="mousemove",Tv="mouseup",eA="touchend",tA="touchmove",nA="touchstart";function rA(e,t,n,r){return e>t?n>0?X7:K7:r>0?J7:Q7}function Sv(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function iA(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(Cv,r),document.addEventListener(Tv,o));const{clientX:g,clientY:p}=d?u.touches[0]:u,v=Sv([g,p],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Oh),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:p}=h?u.touches[0]:u,[v,w]=Sv([g,p],f.rotationAngle),_=v-d.xy[0],x=w-d.xy[1],T=Math.abs(_),b=Math.abs(x),S=(u.timeStamp||0)-d.start,R=Math.sqrt(T*T+b*b)/(S||1),M=[_/(S||1),x/(S||1)],k=rA(T,b,_,x),E=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Oa.delta;if(T<E&&b<E&&!d.swiping)return d;const C={absX:T,absY:b,deltaX:_,deltaY:x,dir:k,event:u,first:d.first,initial:d.initial,velocity:R,vxvy:M};C.first&&f.onSwipeStart&&f.onSwipeStart(C),f.onSwiping&&f.onSwiping(C);let O=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(O=!0),O&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:C,swiping:!0})})},i=u=>{e((d,f)=>{let h;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){h=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(h);const g=f[`onSwiped${h.dir}`];g&&g(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),Oh),{eventData:h})})},a=()=>{document.removeEventListener(Cv,r),document.removeEventListener(Tv,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Oa.touchEventOptions),d.touchEventOptions),g=[[nA,n,h],[tA,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[eA,i,h]];g.forEach(([p,v,w])=>u.addEventListener(p,v,w)),f=()=>g.forEach(([p,v])=>u.removeEventListener(p,v))}return f},l={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const h={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),h.cleanUpTouch=void 0),f.trackTouch&&u&&(h.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),h)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function aA(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function mm(e){const{trackMouse:t}=e,n=ue.useRef(Object.assign({},Oh)),r=ue.useRef(Object.assign({},Oa)),i=ue.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Oa),e);let a;for(a in Oa)r.current[a]===void 0&&(r.current[a]=Oa[a]);const[o,s]=ue.useMemo(()=>iA(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=aA(n.current,r.current,i.current,s),o}const oA="_backdrop_3huvf_1",sA="_show_3huvf_11",kv={backdrop:oA,show:sA},C_=({show:e,onClick:t})=>y.jsx("div",{className:oe("luminus-backdrop",kv.backdrop,{[kv.show]:e}),onClick:()=>t&&t()}),gm=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return y.jsx(p5,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:y.jsx(_n,{variant:a,children:n})})},cA="_floating-label_3xm9u_1",lA="_without-label_3xm9u_21",uA="_floating-label-check_3xm9u_184",yf={"floating-label":"_floating-label_3xm9u_1",floatingLabel:cA,"without-label":"_without-label_3xm9u_21",withoutLabel:lA,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:uA},dA=({hint:e,children:t})=>e?y.jsx(Qp,{text:e,placement:"top",children:t}):t,ju=m.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:i,inputContainerClassName:a,isForCheckInput:o,hint:s,required:c,disabled:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Kt),h=u.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[u.label,c?y.jsx("span",{className:oe("fw-bold",{"text-danger":!l}),style:{fontSize:"16px"},children:"*"}):null,s?y.jsx("div",{className:"d-flex align-items-center",children:y.jsx(f,{icon:"info"})}):null]});return o?y.jsx("div",{className:oe("luminus-floating-label-check",yf.floatingLabelCheck),children:t}):y.jsx(dA,{hint:s,children:y.jsx(Hp,{ref:d,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:e??!1,className:oe(`luminus-floating-label ${n??""}`,yf.floatingLabel,{[a??""]:a},{[yf.withoutLabel]:u.withoutLabel}),children:t})})});ju.displayName="FloatingLabelInput";const fA="_row-label-input_mqkkx_1",hA="_label_mqkkx_4",pA="_input-container_mqkkx_9",mA="_invalid-feedback_mqkkx_104",gA="_keep-check-label_mqkkx_132",vA="_is-invalid_mqkkx_160",Do={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:fA,label:hA,"input-container":"_input-container_mqkkx_9",inputContainer:pA,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:mA,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:gA,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:vA},ic=m.forwardRef(({hidden:e,children:t,required:n,disabled:r,className:i,isInvalid:a,isForRadioInput:o,isForTextAreaInput:s,inputContainerClassName:c,hint:l,...u},d)=>{const{ProjectIconComponent:f}=m.useContext(Kt),h=u.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:oe("label col-6",{"col-12":s},Do.label),children:y.jsxs(_n,{variant:"form-label",className:oe("d-flex gap-1 align-items-center",a?"text-danger":""),children:[u.label,n?y.jsx("span",{className:oe("fw-bold",{"text-danger":!r}),style:{fontSize:"16px"},children:"*"}):null,l?y.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:y.jsx(f,{icon:"info"})}):null]})});return y.jsxs("div",{ref:d,className:oe("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Do.isInvalid]:a},{[i??""]:i},{"d-none":e},Do.rowLabelInput),children:[l?y.jsx(Qp,{text:l,placement:"top",children:h}):h,y.jsx("div",{className:oe("input-container",Do.inputContainer,{"col-6":!u.withoutLabel&&!s},{"col-12":u.withoutLabel||s},{[Do.keepCheckLabel]:o},{[c??""]:c}),children:t})]})});ic.displayName="RowLabelInput";const T_=m.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));T_.displayName="NoInputContainer";const S_=({currentSelection:e,selectedItemNavigateTo:t,children:n})=>{if(!e||!e.id||!t)return y.jsx("div",{className:"luminus-input-container position-relative w-100",children:n});const r=t(e);return y.jsx(no.Link,{to:r,className:"luminus-input-container position-relative w-100 text-decoration-none",children:n})},k_=({InputContainer:e=ju,type:t,value:n,onChange:r,debounceMs:i,label:a,withoutLabel:o,placeholder:s,size:c,hidden:l,disabled:u,showClearIcon:d,clearValue:f,list:h,className:g,step:p,minLength:v,maxLength:w,noSelectOnFocus:_,hint:x,onConfirm:T,autoComplete:b})=>{const S=t==="number",R=m.useCallback(()=>{if(!r)return;const F=f??null;r(S?F?Number(F):null:(F==null?void 0:F.toString())??"")},[f,S,r]),M=m.useRef(null),[k,E]=m.useState((n==null?void 0:n.toString())??""),C=m.useCallback(F=>{const q=F;r&&r(S?q==null||q===""?null:Number(q):q||null)},[S,r]),O=m.useCallback(F=>{var z;const q=(z=F.target)==null?void 0:z.value;if(!i){C(q);return}E(q),M.current!==null&&window.clearTimeout(M.current),M.current=window.setTimeout(()=>{C(q)},i)},[i,C]),$=m.useMemo(()=>{if(T!==void 0)return F=>{F.key==="Enter"&&T&&T()}},[T]);m.useEffect(()=>{E(n===null?"":n.toString())},[n]);const[A,P]=m.useState(!1),D=cm(t,n?n.toString()??null:null,A);return y.jsxs(e,{withoutLabel:o,label:a??"",hidden:l,className:g,hint:x,disabled:u,children:[y.jsx(Tr.Control,{type:D,placeholder:s??a,size:c,value:i?k:(n==null?void 0:n.toString())??"",onChange:O,className:g??"",hidden:l,disabled:u??!1,list:h,onFocus:F=>{P(!0),!_&&F.target.select()},onBlur:()=>P(!1),onKeyDown:$,step:p,minLength:v,maxLength:w,autoComplete:b}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(rc,{color:"secondary",size:"sm",onClick:R,children:y.jsx(Xs,{})})})]})};var vm={},Al={exports:{}};Al.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",v="[object Number]",w="[object Null]",_="[object Object]",x="[object Promise]",T="[object Proxy]",b="[object RegExp]",S="[object Set]",R="[object String]",M="[object Symbol]",k="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",$="[object Float32Array]",A="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",q="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",G="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ie=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,X={};X[$]=X[A]=X[P]=X[D]=X[F]=X[q]=X[z]=X[U]=X[G]=!0,X[s]=X[c]=X[C]=X[u]=X[O]=X[d]=X[f]=X[h]=X[p]=X[v]=X[_]=X[b]=X[S]=X[R]=X[E]=!1;var K=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,re=typeof self=="object"&&self&&self.Object===Object&&self,N=K||re||Function("return this")(),I=t&&!t.nodeType&&t,L=I&&!0&&e&&!e.nodeType&&e,V=L&&L.exports===I,j=V&&K.process,Z=function(){try{return j&&j.binding&&j.binding("util")}catch{}}(),Q=Z&&Z.isTypedArray;function te(B,Y){for(var le=-1,Se=B==null?0:B.length,Nt=0,Qe=[];++le<Se;){var Qt=B[le];Y(Qt,le,B)&&(Qe[Nt++]=Qt)}return Qe}function he(B,Y){for(var le=-1,Se=Y.length,Nt=B.length;++le<Se;)B[Nt+le]=Y[le];return B}function we(B,Y){for(var le=-1,Se=B==null?0:B.length;++le<Se;)if(Y(B[le],le,B))return!0;return!1}function me(B,Y){for(var le=-1,Se=Array(B);++le<B;)Se[le]=Y(le);return Se}function Ue(B){return function(Y){return B(Y)}}function Ae(B,Y){return B.has(Y)}function Ve(B,Y){return B==null?void 0:B[Y]}function Ke(B){var Y=-1,le=Array(B.size);return B.forEach(function(Se,Nt){le[++Y]=[Nt,Se]}),le}function st(B,Y){return function(le){return B(Y(le))}}function pe(B){var Y=-1,le=Array(B.size);return B.forEach(function(Se){le[++Y]=Se}),le}var Te=Array.prototype,ve=Function.prototype,Ne=Object.prototype,nt=N["__core-js_shared__"],Et=ve.toString,rt=Ne.hasOwnProperty,ot=function(){var B=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return B?"Symbol(src)_1."+B:""}(),pt=Ne.toString,It=RegExp("^"+Et.call(rt).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=V?N.Buffer:void 0,dt=N.Symbol,mt=N.Uint8Array,Wt=Ne.propertyIsEnumerable,De=Te.splice,Re=dt?dt.toStringTag:void 0,qe=Object.getOwnPropertySymbols,lt=ct?ct.isBuffer:void 0,gt=st(Object.keys,Object),St=ma(N,"DataView"),Vt=ma(N,"Map"),Rt=ma(N,"Promise"),Dt=ma(N,"Set"),qt=ma(N,"WeakMap"),vt=ma(Object,"create"),Yt=Si(St),rn=Si(Vt),Jt=Si(Rt),ye=Si(Dt),Ee=Si(qt),je=dt?dt.prototype:void 0,Ye=je?je.valueOf:void 0;function We(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function ft(){this.__data__=vt?vt(null):{},this.size=0}function W(B){var Y=this.has(B)&&delete this.__data__[B];return this.size-=Y?1:0,Y}function ce(B){var Y=this.__data__;if(vt){var le=Y[B];return le===r?void 0:le}return rt.call(Y,B)?Y[B]:void 0}function ae(B){var Y=this.__data__;return vt?Y[B]!==void 0:rt.call(Y,B)}function se(B,Y){var le=this.__data__;return this.size+=this.has(B)?0:1,le[B]=vt&&Y===void 0?r:Y,this}We.prototype.clear=ft,We.prototype.delete=W,We.prototype.get=ce,We.prototype.has=ae,We.prototype.set=se;function be(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function Oe(){this.__data__=[],this.size=0}function xe(B){var Y=this.__data__,le=xc(Y,B);if(le<0)return!1;var Se=Y.length-1;return le==Se?Y.pop():De.call(Y,le,1),--this.size,!0}function ke(B){var Y=this.__data__,le=xc(Y,B);return le<0?void 0:Y[le][1]}function Le(B){return xc(this.__data__,B)>-1}function Pe(B,Y){var le=this.__data__,Se=xc(le,B);return Se<0?(++this.size,le.push([B,Y])):le[Se][1]=Y,this}be.prototype.clear=Oe,be.prototype.delete=xe,be.prototype.get=ke,be.prototype.has=Le,be.prototype.set=Pe;function Xe(B){var Y=-1,le=B==null?0:B.length;for(this.clear();++Y<le;){var Se=B[Y];this.set(Se[0],Se[1])}}function zt(){this.size=0,this.__data__={hash:new We,map:new(Vt||be),string:new We}}function Ot(B){var Y=_c(this,B).delete(B);return this.size-=Y?1:0,Y}function Xt(B){return _c(this,B).get(B)}function ge(B){return _c(this,B).has(B)}function ln(B,Y){var le=_c(this,B),Se=le.size;return le.set(B,Y),this.size+=le.size==Se?0:1,this}Xe.prototype.clear=zt,Xe.prototype.delete=Ot,Xe.prototype.get=Xt,Xe.prototype.has=ge,Xe.prototype.set=ln;function Mt(B){var Y=-1,le=B==null?0:B.length;for(this.__data__=new Xe;++Y<le;)this.add(B[Y])}function Jn(B){return this.__data__.set(B,r),this}function yc(B){return this.__data__.has(B)}Mt.prototype.add=Mt.prototype.push=Jn,Mt.prototype.has=yc;function er(B){var Y=this.__data__=new be(B);this.size=Y.size}function Ti(){this.__data__=new be,this.size=0}function bc(B){var Y=this.__data__,le=Y.delete(B);return this.size=Y.size,le}function Or(B){return this.__data__.get(B)}function qd(B){return this.__data__.has(B)}function Mr(B,Y){var le=this.__data__;if(le instanceof be){var Se=le.__data__;if(!Vt||Se.length<n-1)return Se.push([B,Y]),this.size=++le.size,this;le=this.__data__=new Xe(Se)}return le.set(B,Y),this.size=le.size,this}er.prototype.clear=Ti,er.prototype.delete=bc,er.prototype.get=Or,er.prototype.has=qd,er.prototype.set=Mr;function To(B,Y){var le=wc(B),Se=!le&&qC(B),Nt=!le&&!Se&&Yd(B),Qe=!le&&!Se&&!Nt&&n0(B),Qt=le||Se||Nt||Qe,an=Qt?me(B.length,String):[],un=an.length;for(var Gt in B)rt.call(B,Gt)&&!(Qt&&(Gt=="length"||Nt&&(Gt=="offset"||Gt=="parent")||Qe&&(Gt=="buffer"||Gt=="byteLength"||Gt=="byteOffset")||UC(Gt,un)))&&an.push(Gt);return an}function xc(B,Y){for(var le=B.length;le--;)if(Qg(B[le][0],Y))return le;return-1}function RC(B,Y,le){var Se=Y(B);return wc(B)?Se:he(Se,le(B))}function So(B){return B==null?B===void 0?k:w:Re&&Re in Object(B)?FC(B):VC(B)}function Gg(B){return ko(B)&&So(B)==s}function Zg(B,Y,le,Se,Nt){return B===Y?!0:B==null||Y==null||!ko(B)&&!ko(Y)?B!==B&&Y!==Y:jC(B,Y,le,Se,Zg,Nt)}function jC(B,Y,le,Se,Nt,Qe){var Qt=wc(B),an=wc(Y),un=Qt?c:Zr(B),Gt=an?c:Zr(Y);un=un==s?_:un,Gt=Gt==s?_:Gt;var In=un==_,tr=Gt==_,fn=un==Gt;if(fn&&Yd(B)){if(!Yd(Y))return!1;Qt=!0,In=!1}if(fn&&!In)return Qe||(Qe=new er),Qt||n0(B)?Kg(B,Y,le,Se,Nt,Qe):NC(B,Y,un,le,Se,Nt,Qe);if(!(le&i)){var Bn=In&&rt.call(B,"__wrapped__"),Un=tr&&rt.call(Y,"__wrapped__");if(Bn||Un){var Kr=Bn?B.value():B,$r=Un?Y.value():Y;return Qe||(Qe=new er),Nt(Kr,$r,le,Se,Qe)}}return fn?(Qe||(Qe=new er),LC(B,Y,le,Se,Nt,Qe)):!1}function PC(B){if(!t0(B)||zC(B))return!1;var Y=Jg(B)?It:ie;return Y.test(Si(B))}function IC(B){return ko(B)&&e0(B.length)&&!!X[So(B)]}function DC(B){if(!HC(B))return gt(B);var Y=[];for(var le in Object(B))rt.call(B,le)&&le!="constructor"&&Y.push(le);return Y}function Kg(B,Y,le,Se,Nt,Qe){var Qt=le&i,an=B.length,un=Y.length;if(an!=un&&!(Qt&&un>an))return!1;var Gt=Qe.get(B);if(Gt&&Qe.get(Y))return Gt==Y;var In=-1,tr=!0,fn=le&a?new Mt:void 0;for(Qe.set(B,Y),Qe.set(Y,B);++In<an;){var Bn=B[In],Un=Y[In];if(Se)var Kr=Qt?Se(Un,Bn,In,Y,B,Qe):Se(Bn,Un,In,B,Y,Qe);if(Kr!==void 0){if(Kr)continue;tr=!1;break}if(fn){if(!we(Y,function($r,ki){if(!Ae(fn,ki)&&(Bn===$r||Nt(Bn,$r,le,Se,Qe)))return fn.push(ki)})){tr=!1;break}}else if(!(Bn===Un||Nt(Bn,Un,le,Se,Qe))){tr=!1;break}}return Qe.delete(B),Qe.delete(Y),tr}function NC(B,Y,le,Se,Nt,Qe,Qt){switch(le){case O:if(B.byteLength!=Y.byteLength||B.byteOffset!=Y.byteOffset)return!1;B=B.buffer,Y=Y.buffer;case C:return!(B.byteLength!=Y.byteLength||!Qe(new mt(B),new mt(Y)));case u:case d:case v:return Qg(+B,+Y);case f:return B.name==Y.name&&B.message==Y.message;case b:case R:return B==Y+"";case p:var an=Ke;case S:var un=Se&i;if(an||(an=pe),B.size!=Y.size&&!un)return!1;var Gt=Qt.get(B);if(Gt)return Gt==Y;Se|=a,Qt.set(B,Y);var In=Kg(an(B),an(Y),Se,Nt,Qe,Qt);return Qt.delete(B),In;case M:if(Ye)return Ye.call(B)==Ye.call(Y)}return!1}function LC(B,Y,le,Se,Nt,Qe){var Qt=le&i,an=Xg(B),un=an.length,Gt=Xg(Y),In=Gt.length;if(un!=In&&!Qt)return!1;for(var tr=un;tr--;){var fn=an[tr];if(!(Qt?fn in Y:rt.call(Y,fn)))return!1}var Bn=Qe.get(B);if(Bn&&Qe.get(Y))return Bn==Y;var Un=!0;Qe.set(B,Y),Qe.set(Y,B);for(var Kr=Qt;++tr<un;){fn=an[tr];var $r=B[fn],ki=Y[fn];if(Se)var r0=Qt?Se(ki,$r,fn,Y,B,Qe):Se($r,ki,fn,B,Y,Qe);if(!(r0===void 0?$r===ki||Nt($r,ki,le,Se,Qe):r0)){Un=!1;break}Kr||(Kr=fn=="constructor")}if(Un&&!Kr){var Cc=B.constructor,Tc=Y.constructor;Cc!=Tc&&"constructor"in B&&"constructor"in Y&&!(typeof Cc=="function"&&Cc instanceof Cc&&typeof Tc=="function"&&Tc instanceof Tc)&&(Un=!1)}return Qe.delete(B),Qe.delete(Y),Un}function Xg(B){return RC(B,ZC,BC)}function _c(B,Y){var le=B.__data__;return WC(Y)?le[typeof Y=="string"?"string":"hash"]:le.map}function ma(B,Y){var le=Ve(B,Y);return PC(le)?le:void 0}function FC(B){var Y=rt.call(B,Re),le=B[Re];try{B[Re]=void 0;var Se=!0}catch{}var Nt=pt.call(B);return Se&&(Y?B[Re]=le:delete B[Re]),Nt}var BC=qe?function(B){return B==null?[]:(B=Object(B),te(qe(B),function(Y){return Wt.call(B,Y)}))}:KC,Zr=So;(St&&Zr(new St(new ArrayBuffer(1)))!=O||Vt&&Zr(new Vt)!=p||Rt&&Zr(Rt.resolve())!=x||Dt&&Zr(new Dt)!=S||qt&&Zr(new qt)!=E)&&(Zr=function(B){var Y=So(B),le=Y==_?B.constructor:void 0,Se=le?Si(le):"";if(Se)switch(Se){case Yt:return O;case rn:return p;case Jt:return x;case ye:return S;case Ee:return E}return Y});function UC(B,Y){return Y=Y??o,!!Y&&(typeof B=="number"||J.test(B))&&B>-1&&B%1==0&&B<Y}function WC(B){var Y=typeof B;return Y=="string"||Y=="number"||Y=="symbol"||Y=="boolean"?B!=="__proto__":B===null}function zC(B){return!!ot&&ot in B}function HC(B){var Y=B&&B.constructor,le=typeof Y=="function"&&Y.prototype||Ne;return B===le}function VC(B){return pt.call(B)}function Si(B){if(B!=null){try{return Et.call(B)}catch{}try{return B+""}catch{}}return""}function Qg(B,Y){return B===Y||B!==B&&Y!==Y}var qC=Gg(function(){return arguments}())?Gg:function(B){return ko(B)&&rt.call(B,"callee")&&!Wt.call(B,"callee")},wc=Array.isArray;function YC(B){return B!=null&&e0(B.length)&&!Jg(B)}var Yd=lt||XC;function GC(B,Y){return Zg(B,Y)}function Jg(B){if(!t0(B))return!1;var Y=So(B);return Y==h||Y==g||Y==l||Y==T}function e0(B){return typeof B=="number"&&B>-1&&B%1==0&&B<=o}function t0(B){var Y=typeof B;return B!=null&&(Y=="object"||Y=="function")}function ko(B){return B!=null&&typeof B=="object"}var n0=Q?Ue(Q):IC;function ZC(B){return YC(B)?To(B):DC(B)}function KC(){return[]}function XC(){return!1}e.exports=GC})(Al,Al.exports);var yA=Al.exports,E_={exports:{}};(function(e,t){var n=function(){var r=function(b,S){var R=236,M=17,k=b,E=a[S],C=null,O=0,$=null,A=[],P={},D=function(N,I){O=k*4+17,C=function(L){for(var V=new Array(L),j=0;j<L;j+=1){V[j]=new Array(L);for(var Z=0;Z<L;Z+=1)V[j][Z]=null}return V}(O),F(0,0),F(O-7,0),F(0,O-7),U(),z(),ee(N,I),k>=7&&G(N),$==null&&($=X(k,E,A)),ie($,I)},F=function(N,I){for(var L=-1;L<=7;L+=1)if(!(N+L<=-1||O<=N+L))for(var V=-1;V<=7;V+=1)I+V<=-1||O<=I+V||(0<=L&&L<=6&&(V==0||V==6)||0<=V&&V<=6&&(L==0||L==6)||2<=L&&L<=4&&2<=V&&V<=4?C[N+L][I+V]=!0:C[N+L][I+V]=!1)},q=function(){for(var N=0,I=0,L=0;L<8;L+=1){D(!0,L);var V=s.getLostPoint(P);(L==0||N>V)&&(N=V,I=L)}return I},z=function(){for(var N=8;N<O-8;N+=1)C[N][6]==null&&(C[N][6]=N%2==0);for(var I=8;I<O-8;I+=1)C[6][I]==null&&(C[6][I]=I%2==0)},U=function(){for(var N=s.getPatternPosition(k),I=0;I<N.length;I+=1)for(var L=0;L<N.length;L+=1){var V=N[I],j=N[L];if(C[V][j]==null)for(var Z=-2;Z<=2;Z+=1)for(var Q=-2;Q<=2;Q+=1)Z==-2||Z==2||Q==-2||Q==2||Z==0&&Q==0?C[V+Z][j+Q]=!0:C[V+Z][j+Q]=!1}},G=function(N){for(var I=s.getBCHTypeNumber(k),L=0;L<18;L+=1){var V=!N&&(I>>L&1)==1;C[Math.floor(L/3)][L%3+O-8-3]=V}for(var L=0;L<18;L+=1){var V=!N&&(I>>L&1)==1;C[L%3+O-8-3][Math.floor(L/3)]=V}},ee=function(N,I){for(var L=E<<3|I,V=s.getBCHTypeInfo(L),j=0;j<15;j+=1){var Z=!N&&(V>>j&1)==1;j<6?C[j][8]=Z:j<8?C[j+1][8]=Z:C[O-15+j][8]=Z}for(var j=0;j<15;j+=1){var Z=!N&&(V>>j&1)==1;j<8?C[8][O-j-1]=Z:j<9?C[8][15-j-1+1]=Z:C[8][15-j-1]=Z}C[O-8][8]=!N},ie=function(N,I){for(var L=-1,V=O-1,j=7,Z=0,Q=s.getMaskFunction(I),te=O-1;te>0;te-=2)for(te==6&&(te-=1);;){for(var he=0;he<2;he+=1)if(C[V][te-he]==null){var we=!1;Z<N.length&&(we=(N[Z]>>>j&1)==1);var me=Q(V,te-he);me&&(we=!we),C[V][te-he]=we,j-=1,j==-1&&(Z+=1,j=7)}if(V+=L,V<0||O<=V){V-=L,L=-L;break}}},J=function(N,I){for(var L=0,V=0,j=0,Z=new Array(I.length),Q=new Array(I.length),te=0;te<I.length;te+=1){var he=I[te].dataCount,we=I[te].totalCount-he;V=Math.max(V,he),j=Math.max(j,we),Z[te]=new Array(he);for(var me=0;me<Z[te].length;me+=1)Z[te][me]=255&N.getBuffer()[me+L];L+=he;var Ue=s.getErrorCorrectPolynomial(we),Ae=l(Z[te],Ue.getLength()-1),Ve=Ae.mod(Ue);Q[te]=new Array(Ue.getLength()-1);for(var me=0;me<Q[te].length;me+=1){var Ke=me+Ve.getLength()-Q[te].length;Q[te][me]=Ke>=0?Ve.getAt(Ke):0}}for(var st=0,me=0;me<I.length;me+=1)st+=I[me].totalCount;for(var pe=new Array(st),Te=0,me=0;me<V;me+=1)for(var te=0;te<I.length;te+=1)me<Z[te].length&&(pe[Te]=Z[te][me],Te+=1);for(var me=0;me<j;me+=1)for(var te=0;te<I.length;te+=1)me<Q[te].length&&(pe[Te]=Q[te][me],Te+=1);return pe},X=function(N,I,L){for(var V=u.getRSBlocks(N,I),j=d(),Z=0;Z<L.length;Z+=1){var Q=L[Z];j.put(Q.getMode(),4),j.put(Q.getLength(),s.getLengthInBits(Q.getMode(),N)),Q.write(j)}for(var te=0,Z=0;Z<V.length;Z+=1)te+=V[Z].dataCount;if(j.getLengthInBits()>te*8)throw"code length overflow. ("+j.getLengthInBits()+">"+te*8+")";for(j.getLengthInBits()+4<=te*8&&j.put(0,4);j.getLengthInBits()%8!=0;)j.putBit(!1);for(;!(j.getLengthInBits()>=te*8||(j.put(R,8),j.getLengthInBits()>=te*8));)j.put(M,8);return J(j,V)};P.addData=function(N,I){I=I||"Byte";var L=null;switch(I){case"Numeric":L=f(N);break;case"Alphanumeric":L=h(N);break;case"Byte":L=g(N);break;case"Kanji":L=p(N);break;default:throw"mode:"+I}A.push(L),$=null},P.isDark=function(N,I){if(N<0||O<=N||I<0||O<=I)throw N+","+I;return C[N][I]},P.getModuleCount=function(){return O},P.make=function(){if(k<1){for(var N=1;N<40;N++){for(var I=u.getRSBlocks(N,E),L=d(),V=0;V<A.length;V++){var j=A[V];L.put(j.getMode(),4),L.put(j.getLength(),s.getLengthInBits(j.getMode(),N)),j.write(L)}for(var Z=0,V=0;V<I.length;V++)Z+=I[V].dataCount;if(L.getLengthInBits()<=Z*8)break}k=N}D(!1,q())},P.createTableTag=function(N,I){N=N||2,I=typeof I>"u"?N*4:I;var L="";L+='<table style="',L+=" border-width: 0px; border-style: none;",L+=" border-collapse: collapse;",L+=" padding: 0px; margin: "+I+"px;",L+='">',L+="<tbody>";for(var V=0;V<P.getModuleCount();V+=1){L+="<tr>";for(var j=0;j<P.getModuleCount();j+=1)L+='<td style="',L+=" border-width: 0px; border-style: none;",L+=" border-collapse: collapse;",L+=" padding: 0px; margin: 0px;",L+=" width: "+N+"px;",L+=" height: "+N+"px;",L+=" background-color: ",L+=P.isDark(V,j)?"#000000":"#ffffff",L+=";",L+='"/>';L+="</tr>"}return L+="</tbody>",L+="</table>",L},P.createSvgTag=function(N,I,L,V){var j={};typeof arguments[0]=="object"&&(j=arguments[0],N=j.cellSize,I=j.margin,L=j.alt,V=j.title),N=N||2,I=typeof I>"u"?N*4:I,L=typeof L=="string"?{text:L}:L||{},L.text=L.text||null,L.id=L.text?L.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var Z=P.getModuleCount()*N+I*2,Q,te,he,we,me="",Ue;for(Ue="l"+N+",0 0,"+N+" -"+N+",0 0,-"+N+"z ",me+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',me+=j.scalable?"":' width="'+Z+'px" height="'+Z+'px"',me+=' viewBox="0 0 '+Z+" "+Z+'" ',me+=' preserveAspectRatio="xMinYMin meet"',me+=V.text||L.text?' role="img" aria-labelledby="'+K([V.id,L.id].join(" ").trim())+'"':"",me+=">",me+=V.text?'<title id="'+K(V.id)+'">'+K(V.text)+"</title>":"",me+=L.text?'<description id="'+K(L.id)+'">'+K(L.text)+"</description>":"",me+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',me+='<path d="',he=0;he<P.getModuleCount();he+=1)for(we=he*N+I,Q=0;Q<P.getModuleCount();Q+=1)P.isDark(he,Q)&&(te=Q*N+I,me+="M"+te+","+we+Ue);return me+='" stroke="transparent" fill="black"/>',me+="</svg>",me},P.createDataURL=function(N,I){N=N||2,I=typeof I>"u"?N*4:I;var L=P.getModuleCount()*N+I*2,V=I,j=L-I;return T(L,L,function(Z,Q){if(V<=Z&&Z<j&&V<=Q&&Q<j){var te=Math.floor((Z-V)/N),he=Math.floor((Q-V)/N);return P.isDark(he,te)?0:1}else return 1})},P.createImgTag=function(N,I,L){N=N||2,I=typeof I>"u"?N*4:I;var V=P.getModuleCount()*N+I*2,j="";return j+="<img",j+=' src="',j+=P.createDataURL(N,I),j+='"',j+=' width="',j+=V,j+='"',j+=' height="',j+=V,j+='"',L&&(j+=' alt="',j+=K(L),j+='"'),j+="/>",j};var K=function(N){for(var I="",L=0;L<N.length;L+=1){var V=N.charAt(L);switch(V){case"<":I+="&lt;";break;case">":I+="&gt;";break;case"&":I+="&amp;";break;case'"':I+="&quot;";break;default:I+=V;break}}return I},re=function(N){var I=1;N=typeof N>"u"?I*2:N;var L=P.getModuleCount()*I+N*2,V=N,j=L-N,Z,Q,te,he,we,me={"██":"█","█ ":"▀"," █":"▄"," ":" "},Ue={"██":"▀","█ ":"▀"," █":" "," ":" "},Ae="";for(Z=0;Z<L;Z+=2){for(te=Math.floor((Z-V)/I),he=Math.floor((Z+1-V)/I),Q=0;Q<L;Q+=1)we="█",V<=Q&&Q<j&&V<=Z&&Z<j&&P.isDark(te,Math.floor((Q-V)/I))&&(we=" "),V<=Q&&Q<j&&V<=Z+1&&Z+1<j&&P.isDark(he,Math.floor((Q-V)/I))?we+=" ":we+="█",Ae+=N<1&&Z+1>=j?Ue[we]:me[we];Ae+=`
254
254
  `}return L%2&&N>0?Ae.substring(0,Ae.length-L-1)+Array(L+1).join("▀"):Ae.substring(0,Ae.length-1)};return P.createASCII=function(N,I){if(N=N||1,N<2)return re(I);N-=1,I=typeof I>"u"?N*2:I;var L=P.getModuleCount()*N+I*2,V=I,j=L-I,Z,Q,te,he,we=Array(N+1).join("██"),me=Array(N+1).join(" "),Ue="",Ae="";for(Z=0;Z<L;Z+=1){for(te=Math.floor((Z-V)/N),Ae="",Q=0;Q<L;Q+=1)he=1,V<=Q&&Q<j&&V<=Z&&Z<j&&P.isDark(te,Math.floor((Q-V)/N))&&(he=0),Ae+=he?we:me;for(te=0;te<N;te+=1)Ue+=Ae+`
255
- `}return Ue.substring(0,Ue.length-1)},P.renderTo2dContext=function(N,I){I=I||2;for(var L=P.getModuleCount(),V=0;V<L;V++)for(var j=0;j<L;j++)N.fillStyle=P.isDark(V,j)?"black":"white",N.fillRect(V*I,j*I,I,I)},P};r.stringToBytesFuncs={default:function(b){for(var S=[],R=0;R<b.length;R+=1){var M=b.charCodeAt(R);S.push(M&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,S){var R=function(){for(var k=_(b),E=function(){var z=k.read();if(z==-1)throw"eof";return z},C=0,O={};;){var $=k.read();if($==-1)break;var A=E(),P=E(),D=E(),F=String.fromCharCode($<<8|A),q=P<<8|D;O[F]=q,C+=1}if(C!=S)throw C+" != "+S;return O}(),M=63;return function(k){for(var E=[],C=0;C<k.length;C+=1){var O=k.charCodeAt(C);if(O<128)E.push(O);else{var $=R[k.charAt(C)];typeof $=="number"?($&255)==$?E.push($):(E.push($>>>8),E.push($&255)):E.push(M)}}return E}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var b=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],S=1335,R=7973,M=21522,k={},E=function(C){for(var O=0;C!=0;)O+=1,C>>>=1;return O};return k.getBCHTypeInfo=function(C){for(var O=C<<10;E(O)-E(S)>=0;)O^=S<<E(O)-E(S);return(C<<10|O)^M},k.getBCHTypeNumber=function(C){for(var O=C<<12;E(O)-E(R)>=0;)O^=R<<E(O)-E(R);return C<<12|O},k.getPatternPosition=function(C){return b[C-1]},k.getMaskFunction=function(C){switch(C){case o.PATTERN000:return function(O,$){return(O+$)%2==0};case o.PATTERN001:return function(O,$){return O%2==0};case o.PATTERN010:return function(O,$){return $%3==0};case o.PATTERN011:return function(O,$){return(O+$)%3==0};case o.PATTERN100:return function(O,$){return(Math.floor(O/2)+Math.floor($/3))%2==0};case o.PATTERN101:return function(O,$){return O*$%2+O*$%3==0};case o.PATTERN110:return function(O,$){return(O*$%2+O*$%3)%2==0};case o.PATTERN111:return function(O,$){return(O*$%3+(O+$)%2)%2==0};default:throw"bad maskPattern:"+C}},k.getErrorCorrectPolynomial=function(C){for(var O=l([1],0),$=0;$<C;$+=1)O=O.multiply(l([1,c.gexp($)],0));return O},k.getLengthInBits=function(C,O){if(1<=O&&O<10)switch(C){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+C}else if(O<27)switch(C){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+C}else if(O<41)switch(C){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+C}else throw"type:"+O},k.getLostPoint=function(C){for(var O=C.getModuleCount(),$=0,A=0;A<O;A+=1)for(var P=0;P<O;P+=1){for(var D=0,F=C.isDark(A,P),q=-1;q<=1;q+=1)if(!(A+q<0||O<=A+q))for(var z=-1;z<=1;z+=1)P+z<0||O<=P+z||q==0&&z==0||F==C.isDark(A+q,P+z)&&(D+=1);D>5&&($+=3+D-5)}for(var A=0;A<O-1;A+=1)for(var P=0;P<O-1;P+=1){var U=0;C.isDark(A,P)&&(U+=1),C.isDark(A+1,P)&&(U+=1),C.isDark(A,P+1)&&(U+=1),C.isDark(A+1,P+1)&&(U+=1),(U==0||U==4)&&($+=3)}for(var A=0;A<O;A+=1)for(var P=0;P<O-6;P+=1)C.isDark(A,P)&&!C.isDark(A,P+1)&&C.isDark(A,P+2)&&C.isDark(A,P+3)&&C.isDark(A,P+4)&&!C.isDark(A,P+5)&&C.isDark(A,P+6)&&($+=40);for(var P=0;P<O;P+=1)for(var A=0;A<O-6;A+=1)C.isDark(A,P)&&!C.isDark(A+1,P)&&C.isDark(A+2,P)&&C.isDark(A+3,P)&&C.isDark(A+4,P)&&!C.isDark(A+5,P)&&C.isDark(A+6,P)&&($+=40);for(var G=0,P=0;P<O;P+=1)for(var A=0;A<O;A+=1)C.isDark(A,P)&&(G+=1);var ee=Math.abs(100*G/O/O-50)/5;return $+=ee*10,$},k}(),c=function(){for(var b=new Array(256),S=new Array(256),R=0;R<8;R+=1)b[R]=1<<R;for(var R=8;R<256;R+=1)b[R]=b[R-4]^b[R-5]^b[R-6]^b[R-8];for(var R=0;R<255;R+=1)S[b[R]]=R;var M={};return M.glog=function(k){if(k<1)throw"glog("+k+")";return S[k]},M.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return b[k]},M}();function l(b,S){if(typeof b.length>"u")throw b.length+"/"+S;var R=function(){for(var k=0;k<b.length&&b[k]==0;)k+=1;for(var E=new Array(b.length-k+S),C=0;C<b.length-k;C+=1)E[C]=b[C+k];return E}(),M={};return M.getAt=function(k){return R[k]},M.getLength=function(){return R.length},M.multiply=function(k){for(var E=new Array(M.getLength()+k.getLength()-1),C=0;C<M.getLength();C+=1)for(var O=0;O<k.getLength();O+=1)E[C+O]^=c.gexp(c.glog(M.getAt(C))+c.glog(k.getAt(O)));return l(E,0)},M.mod=function(k){if(M.getLength()-k.getLength()<0)return M;for(var E=c.glog(M.getAt(0))-c.glog(k.getAt(0)),C=new Array(M.getLength()),O=0;O<M.getLength();O+=1)C[O]=M.getAt(O);for(var O=0;O<k.getLength();O+=1)C[O]^=c.gexp(c.glog(k.getAt(O))+E);return l(C,0).mod(k)},M}var u=function(){var b=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],S=function(k,E){var C={};return C.totalCount=k,C.dataCount=E,C},R={},M=function(k,E){switch(E){case a.L:return b[(k-1)*4+0];case a.M:return b[(k-1)*4+1];case a.Q:return b[(k-1)*4+2];case a.H:return b[(k-1)*4+3];default:return}};return R.getRSBlocks=function(k,E){var C=M(k,E);if(typeof C>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+E;for(var O=C.length/3,$=[],A=0;A<O;A+=1)for(var P=C[A*3+0],D=C[A*3+1],F=C[A*3+2],q=0;q<P;q+=1)$.push(S(D,F));return $},R}(),d=function(){var b=[],S=0,R={};return R.getBuffer=function(){return b},R.getAt=function(M){var k=Math.floor(M/8);return(b[k]>>>7-M%8&1)==1},R.put=function(M,k){for(var E=0;E<k;E+=1)R.putBit((M>>>k-E-1&1)==1)},R.getLengthInBits=function(){return S},R.putBit=function(M){var k=Math.floor(S/8);b.length<=k&&b.push(0),M&&(b[k]|=128>>>S%8),S+=1},R},f=function(b){var S=i.MODE_NUMBER,R=b,M={};M.getMode=function(){return S},M.getLength=function(C){return R.length},M.write=function(C){for(var O=R,$=0;$+2<O.length;)C.put(k(O.substring($,$+3)),10),$+=3;$<O.length&&(O.length-$==1?C.put(k(O.substring($,$+1)),4):O.length-$==2&&C.put(k(O.substring($,$+2)),7))};var k=function(C){for(var O=0,$=0;$<C.length;$+=1)O=O*10+E(C.charAt($));return O},E=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;throw"illegal char :"+C};return M},h=function(b){var S=i.MODE_ALPHA_NUM,R=b,M={};M.getMode=function(){return S},M.getLength=function(E){return R.length},M.write=function(E){for(var C=R,O=0;O+1<C.length;)E.put(k(C.charAt(O))*45+k(C.charAt(O+1)),11),O+=2;O<C.length&&E.put(k(C.charAt(O)),6)};var k=function(E){if("0"<=E&&E<="9")return E.charCodeAt(0)-48;if("A"<=E&&E<="Z")return E.charCodeAt(0)-65+10;switch(E){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+E}};return M},g=function(b){var S=i.MODE_8BIT_BYTE,R=r.stringToBytes(b),M={};return M.getMode=function(){return S},M.getLength=function(k){return R.length},M.write=function(k){for(var E=0;E<R.length;E+=1)k.put(R[E],8)},M},p=function(b){var S=i.MODE_KANJI,R=r.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(E,C){var O=R(E);if(O.length!=2||(O[0]<<8|O[1])!=C)throw"sjis not supported."})("友",38726);var M=R(b),k={};return k.getMode=function(){return S},k.getLength=function(E){return~~(M.length/2)},k.write=function(E){for(var C=M,O=0;O+1<C.length;){var $=(255&C[O])<<8|255&C[O+1];if(33088<=$&&$<=40956)$-=33088;else if(57408<=$&&$<=60351)$-=49472;else throw"illegal char at "+(O+1)+"/"+$;$=($>>>8&255)*192+($&255),E.put($,13),O+=2}if(O<C.length)throw"illegal char at "+(O+1)},k},v=function(){var b=[],S={};return S.writeByte=function(R){b.push(R&255)},S.writeShort=function(R){S.writeByte(R),S.writeByte(R>>>8)},S.writeBytes=function(R,M,k){M=M||0,k=k||R.length;for(var E=0;E<k;E+=1)S.writeByte(R[E+M])},S.writeString=function(R){for(var M=0;M<R.length;M+=1)S.writeByte(R.charCodeAt(M))},S.toByteArray=function(){return b},S.toString=function(){var R="";R+="[";for(var M=0;M<b.length;M+=1)M>0&&(R+=","),R+=b[M];return R+="]",R},S},w=function(){var b=0,S=0,R=0,M="",k={},E=function(O){M+=String.fromCharCode(C(O&63))},C=function(O){if(!(O<0)){if(O<26)return 65+O;if(O<52)return 97+(O-26);if(O<62)return 48+(O-52);if(O==62)return 43;if(O==63)return 47}throw"n:"+O};return k.writeByte=function(O){for(b=b<<8|O&255,S+=8,R+=1;S>=6;)E(b>>>S-6),S-=6},k.flush=function(){if(S>0&&(E(b<<6-S),b=0,S=0),R%3!=0)for(var O=3-R%3,$=0;$<O;$+=1)M+="="},k.toString=function(){return M},k},_=function(b){var S=b,R=0,M=0,k=0,E={};E.read=function(){for(;k<8;){if(R>=S.length){if(k==0)return-1;throw"unexpected end of file./"+k}var O=S.charAt(R);if(R+=1,O=="=")return k=0,-1;if(O.match(/^\s$/))continue;M=M<<6|C(O.charCodeAt(0)),k+=6}var $=M>>>k-8&255;return k-=8,$};var C=function(O){if(65<=O&&O<=90)return O-65;if(97<=O&&O<=122)return O-97+26;if(48<=O&&O<=57)return O-48+52;if(O==43)return 62;if(O==47)return 63;throw"c:"+O};return E},x=function(b,S){var R=b,M=S,k=new Array(b*S),E={};E.setPixel=function(A,P,D){k[P*R+A]=D},E.write=function(A){A.writeString("GIF87a"),A.writeShort(R),A.writeShort(M),A.writeByte(128),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(255),A.writeByte(255),A.writeByte(255),A.writeString(","),A.writeShort(0),A.writeShort(0),A.writeShort(R),A.writeShort(M),A.writeByte(0);var P=2,D=O(P);A.writeByte(P);for(var F=0;D.length-F>255;)A.writeByte(255),A.writeBytes(D,F,255),F+=255;A.writeByte(D.length-F),A.writeBytes(D,F,D.length-F),A.writeByte(0),A.writeString(";")};var C=function(A){var P=A,D=0,F=0,q={};return q.write=function(z,U){if(z>>>U)throw"length over";for(;D+U>=8;)P.writeByte(255&(z<<D|F)),U-=8-D,z>>>=8-D,F=0,D=0;F=z<<D|F,D=D+U},q.flush=function(){D>0&&P.writeByte(F)},q},O=function(A){for(var P=1<<A,D=(1<<A)+1,F=A+1,q=$(),z=0;z<P;z+=1)q.add(String.fromCharCode(z));q.add(String.fromCharCode(P)),q.add(String.fromCharCode(D));var U=v(),G=C(U);G.write(P,F);var ee=0,ie=String.fromCharCode(k[ee]);for(ee+=1;ee<k.length;){var J=String.fromCharCode(k[ee]);ee+=1,q.contains(ie+J)?ie=ie+J:(G.write(q.indexOf(ie),F),q.size()<4095&&(q.size()==1<<F&&(F+=1),q.add(ie+J)),ie=J)}return G.write(q.indexOf(ie),F),G.write(D,F),G.flush(),U.toByteArray()},$=function(){var A={},P=0,D={};return D.add=function(F){if(D.contains(F))throw"dup key:"+F;A[F]=P,P+=1},D.size=function(){return P},D.indexOf=function(F){return A[F]},D.contains=function(F){return typeof A[F]<"u"},D};return E},T=function(b,S,R){for(var M=x(b,S),k=0;k<S;k+=1)for(var E=0;E<b;E+=1)M.setPixel(E,k,R(E,k));var C=v();M.write(C);for(var O=w(),$=C.toByteArray(),A=0;A<$.length;A+=1)O.writeByte($[A]);return O.flush(),"data:image/gif;base64,"+O};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(a){for(var o=[],s=0;s<a.length;s++){var c=a.charCodeAt(s);c<128?o.push(c):c<2048?o.push(192|c>>6,128|c&63):c<55296||c>=57344?o.push(224|c>>12,128|c>>6&63,128|c&63):(s++,c=65536+((c&1023)<<10|a.charCodeAt(s)&1023),o.push(240|c>>18,128|c>>12&63,128|c>>6&63,128|c&63))}return o}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(k_);var bA=k_.exports,xA=Hn&&Hn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mh=Hn&&Hn.__assign||function(){return Mh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mh.apply(this,arguments)};Object.defineProperty(gm,"__esModule",{value:!0});exports.QRCode_1=gm.QRCode=void 0;var _A=yA,wA=bA,xf=m,CA=function(e){xA(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=xf.createRef(),r}return t.prototype.download=function(n,r){if(this.canvasRef.current){var i=void 0;switch(n){case"jpg":i="image/jpeg";break;case"webp":i="image/webp";break;case"png":default:i="image/png";break}var a=this.canvasRef.current.toDataURL(i,1),o=document.createElement("a");o.download=r??"react-qrcode-logo",o.href=a,o.click()}},t.prototype.utf16to8=function(n){var r="",i,a,o=n.length;for(i=0;i<o;i++)a=n.charCodeAt(i),a>=1&&a<=127?r+=n.charAt(i):a>2047?(r+=String.fromCharCode(224|a>>12&15),r+=String.fromCharCode(128|a>>6&63),r+=String.fromCharCode(128|a>>0&63)):(r+=String.fromCharCode(192|a>>6&31),r+=String.fromCharCode(128|a>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,a,o,s,c,l){l.lineWidth=n,l.fillStyle=o,l.strokeStyle=o,i+=n/2,r+=n/2,a-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(g){return g=Math.min(g,a/2),g<0?0:g});var u=s[0]||0,d=s[1]||0,f=s[2]||0,h=s[3]||0;l.beginPath(),l.moveTo(r+u,i),l.lineTo(r+a-d,i),d&&l.quadraticCurveTo(r+a,i,r+a,i+d),l.lineTo(r+a,i+a-f),f&&l.quadraticCurveTo(r+a,i+a,r+a-f,i+a),l.lineTo(r+h,i+a),h&&l.quadraticCurveTo(r,i+a,r,i+a-h),l.lineTo(r,i+u),u&&l.quadraticCurveTo(r,i,r+u,i),l.closePath(),l.stroke(),c&&l.fill()},t.prototype.drawPositioningPattern=function(n,r,i,a,o,s,c){c===void 0&&(c=[0,0,0,0]);var l=Math.ceil(r),u,d;typeof c!="number"&&!Array.isArray(c)?(u=c.outer||0,d=c.inner||0):(u=c,d=u);var f,h;typeof s!="string"?(f=s.outer,h=s.inner):(f=s,h=s);var g=a*r+i,p=o*r+i,v=r*7;this.drawRoundedSquare(l,p,g,v,f,u,!1,n),v=r*3,g+=r*2,p+=r*2,this.drawRoundedSquare(l,p,g,v,h,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(a){return r>=a.row&&r<=a.row+7&&n>=a.col&&n<=a.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,a,o,s,c,l){if(l){var u=2,d=this.transformPixelLengthIntoNumberOfCells(o,c),f=this.transformPixelLengthIntoNumberOfCells(s,c),h=this.transformPixelLengthIntoNumberOfCells(i,c)-1,g=this.transformPixelLengthIntoNumberOfCells(a,c)-1;return r>=d-u&&r<=d+h+u&&n>=f-u&&n<=f+g+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!_A(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n,r=this.props,i=r.value,a=r.ecLevel,o=r.enableCORS,s=r.bgColor,c=r.fgColor,l=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,h=r.qrStyle,g=r.eyeRadius,p=r.eyeColor,v=r.logoPaddingStyle,w=+this.props.size,_=+this.props.quietZone,x=this.props.logoWidth?+this.props.logoWidth:0,T=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,S=wA(0,a);S.addData(this.utf16to8(i)),S.make();var R=(n=this.canvasRef)===null||n===void 0?void 0:n.current,M=R.getContext("2d"),k=w+2*_,E=S.getModuleCount(),C=w/E,O=window.devicePixelRatio||1;R.height=R.width=k*O,M.scale(O,O),M.fillStyle=s,M.fillRect(0,0,k,k);var $=_,A=[{row:0,col:0},{row:0,col:E-7},{row:E-7,col:0}];if(M.strokeStyle=c,h==="dots"){M.fillStyle=c;for(var P=C/2,D=0;D<E;D++)for(var F=0;F<E;F++)S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)&&(M.beginPath(),M.arc(Math.round(F*C)+P+$,Math.round(D*C)+P+$,P/100*75,0,2*Math.PI,!1),M.closePath(),M.fill())}else if(h==="fluid"){for(var P=Math.ceil(C/2),D=0;D<E;D++)for(var F=0;F<E;F++)if(S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)){var q=[!1,!1,!1,!1];D>0&&!S.isDark(D-1,F)&&F>0&&!S.isDark(D,F-1)&&(q[0]=!0),D>0&&!S.isDark(D-1,F)&&F<E-1&&!S.isDark(D,F+1)&&(q[1]=!0),D<E-1&&!S.isDark(D+1,F)&&F<E-1&&!S.isDark(D,F+1)&&(q[2]=!0),D<E-1&&!S.isDark(D+1,F)&&F>0&&!S.isDark(D,F-1)&&(q[3]=!0);var z=Math.ceil((F+1)*C)-Math.floor(F*C),U=Math.ceil((D+1)*C)-Math.floor(D*C);M.fillStyle=c,M.beginPath(),M.arc(Math.round(F*C)+P+$,Math.round(D*C)+P+$,P,0,2*Math.PI,!1),M.closePath(),M.fill(),q[0]||M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$,z/2,U/2),q[1]||M.fillRect(Math.round(F*C)+$+Math.floor(z/2),Math.round(D*C)+$,z/2,U/2),q[2]||M.fillRect(Math.round(F*C)+$+Math.floor(z/2),Math.round(D*C)+$+Math.floor(U/2),z/2,U/2),q[3]||M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$+Math.floor(U/2),z/2,U/2)}}else for(var D=0;D<E;D++)for(var F=0;F<E;F++)if(S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)){M.fillStyle=c;var z=Math.ceil((F+1)*C)-Math.floor(F*C),U=Math.ceil((D+1)*C)-Math.floor(D*C);M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$,z,U)}for(var G=0;G<3;G++){var ee=A[G],D=ee.row,F=ee.col,ie=g,J=void 0;Array.isArray(ie)&&(ie=ie[G]),typeof ie=="number"&&(ie=[ie,ie,ie,ie]),p?Array.isArray(p)?J=p[G]:J=p:J=c,this.drawPositioningPattern(M,C,$,D,F,J,ie)}if(l){var X=new Image;o&&(X.crossOrigin="Anonymous"),X.onload=function(K){M.save();var re=x||w*.2,N=T||re,I=(w-re)/2,L=(w-N)/2;if(f||b){M.beginPath(),M.strokeStyle=s,M.fillStyle=s;var V=re+2*b,j=N+2*b,Z=I+$-b,Q=L+$-b;if(v==="circle"){var te=Z+V/2,he=Q+j/2;M.ellipse(te,he,V/2,j/2,0,0,2*Math.PI),M.stroke(),M.fill()}else M.fillRect(Z,Q,V,j)}M.globalAlpha=u,M.drawImage(X,I+$,L+$,re,N),M.restore(),d&&d(K)},X.src=l}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return xf.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:Mh({height:r+"px",width:r+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(xf.Component);exports.QRCode_1=gm.QRCode=CA;const E_=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:y.jsx(t,{id:e.toString(),placement:r,children:n}),O_=({InputContainer:e=Pu,value:t,options:n,onChange:r,label:i,withoutLabel:a,isNumber:o,size:s,hidden:c,disabled:l,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:g,dropdownWidth:p,hint:v,addNewOptionPath:w,refreshOptions:_,MiniDetailComponent:x,miniDetailPlacement:T,selectedItemNavigateTo:b,noRemoveButton:S})=>{const{texts:{customSelect:R}}=m.useContext(Kt),[M,k]=m.useState(!1),[E,C]=m.useState(""),O=m.useCallback(z=>{C(z)},[]),$=m.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),A=m.useCallback(z=>{var U;return z===null?"":!z.name||z.name.length===0?((U=z.id)==null?void 0:U.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),P=m.useMemo(()=>{const z=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(z.some(U=>U.id===t)||z.push({id:t,name:g})),z.map(U=>({id:U.id,name:A(U)})).filter(U=>Qp(U.name,E)).sort((U,G)=>u?0:(U.name??"").localeCompare(G.name??""))},[n,u,E,A,g,t]),D=m.useCallback(z=>{var U;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:o?Number(z.id):(U=z.id)==null?void 0:U.toString())},[r,o]),F=m.useCallback(z=>{k(!1),D(z)},[D]),q=m.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:a,label:i??"",hidden:c,inputContainerClassName:oe({"luminus-dropdown-select-open":M}),className:d,hint:v,disabled:l,children:[y.jsx(T_,{currentSelection:$,selectedItemNavigateTo:b,children:y.jsx(E_,{value:t,MiniDetailComponent:x,miniDetailPlacement:T,children:y.jsxs(Tr.Select,{ref:q,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!l&&k(!0)},onChange:()=>{},className:oe("w-100",{"luminus-dropdown-picker-disabled":l}),hidden:c,children:[h&&!(t==null||t==="")?void 0:y.jsx("option",{value:""}),t!=null&&y.jsx("option",{value:t,children:A($)})]})})}),q.current&&y.jsx(h_,{show:M,onCancel:()=>k(!1),items:P,currentSelection:$??null,onSelectionChange:F,onSearchQueryChange:O,texts:R,disabled:l,inputRef:q,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:p,addNewOptionPath:w,refreshOptions:_,noRemoveButton:S})]})})};function TA(e){return tt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function SA(e){return tt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function kA(e){return tt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function EA(e){return tt({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const OA=m.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var vm=oc(),He=e=>ac(e,vm),ym=oc();He.write=e=>ac(e,ym);var Iu=oc();He.onStart=e=>ac(e,Iu);var bm=oc();He.onFrame=e=>ac(e,bm);var xm=oc();He.onFinish=e=>ac(e,xm);var Pa=[];He.setTimeout=(e,t)=>{const n=He.now()+t,r=()=>{const a=Pa.findIndex(o=>o.cancel==r);~a&&Pa.splice(a,1),ci-=~a?1:0},i={time:n,handler:e,cancel:r};return Pa.splice(M_(n),0,i),ci+=1,$_(),i};var M_=e=>~(~Pa.findIndex(t=>t.time>e)||~Pa.length);He.cancel=e=>{Iu.delete(e),bm.delete(e),xm.delete(e),vm.delete(e),ym.delete(e)};He.sync=e=>{$h=!0,He.batchedUpdates(e),$h=!1};He.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,He.onStart(n)}return r.handler=e,r.cancel=()=>{Iu.delete(n),t=null},r};var _m=typeof window<"u"?window.requestAnimationFrame:()=>{};He.use=e=>_m=e;He.now=typeof performance<"u"?()=>performance.now():Date.now;He.batchedUpdates=e=>e();He.catch=console.error;He.frameLoop="always";He.advance=()=>{He.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):R_()};var si=-1,ci=0,$h=!1;function ac(e,t){$h?(t.delete(e),e(0)):(t.add(e),$_())}function $_(){si<0&&(si=0,He.frameLoop!=="demand"&&_m(A_))}function MA(){si=-1}function A_(){~si&&(_m(A_),He.batchedUpdates(R_))}function R_(){const e=si;si=He.now();const t=M_(si);if(t&&(j_(Pa.splice(0,t),n=>n.handler()),ci-=t),!ci){MA();return}Iu.flush(),vm.flush(e?Math.min(64,si-e):16.667),bm.flush(),ym.flush(),xm.flush()}function oc(){let e=new Set,t=e;return{add(n){ci+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ci-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ci-=t.size,j_(t,r=>r(n)&&e.add(r)),ci+=e.size,t=e)}}}function j_(e,t){e.forEach(n=>{try{t(n)}catch(r){He.catch(r)}})}var $A=Object.defineProperty,AA=(e,t)=>{for(var n in t)$A(e,n,{get:t[n],enumerable:!0})},cr={};AA(cr,{assign:()=>jA,colors:()=>ui,createStringInterpolator:()=>Cm,skipAnimation:()=>I_,to:()=>P_,willAdvance:()=>Tm});function Ah(){}var RA=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),de={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Pr(e,t){if(de.arr(e)){if(!de.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var ze=(e,t)=>e.forEach(t);function br(e,t,n){if(de.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var wn=e=>de.und(e)?[]:de.arr(e)?e:[e];function ns(e,t){if(e.size){const n=Array.from(e);e.clear(),ze(n,t)}}var Xo=(e,...t)=>ns(e,n=>n(...t)),wm=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Cm,P_,ui=null,I_=!1,Tm=Ah,jA=e=>{e.to&&(P_=e.to),e.now&&(He.now=e.now),e.colors!==void 0&&(ui=e.colors),e.skipAnimation!=null&&(I_=e.skipAnimation),e.createStringInterpolator&&(Cm=e.createStringInterpolator),e.requestAnimationFrame&&He.use(e.requestAnimationFrame),e.batchedUpdates&&(He.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Tm=e.willAdvance),e.frameLoop&&(He.frameLoop=e.frameLoop)},rs=new Set,zn=[],_f=[],jl=0,Du={get idle(){return!rs.size&&!zn.length},start(e){jl>e.priority?(rs.add(e),He.onStart(PA)):(D_(e),He(Rh))},advance:Rh,sort(e){if(jl)He.onFrame(()=>Du.sort(e));else{const t=zn.indexOf(e);~t&&(zn.splice(t,1),N_(e))}},clear(){zn=[],rs.clear()}};function PA(){rs.forEach(D_),rs.clear(),He(Rh)}function D_(e){zn.includes(e)||N_(e)}function N_(e){zn.splice(IA(zn,t=>t.priority>e.priority),0,e)}function Rh(e){const t=_f;for(let n=0;n<zn.length;n++){const r=zn[n];jl=r.priority,r.idle||(Tm(r),r.advance(e),r.idle||t.push(r))}return jl=0,_f=zn,_f.length=0,zn=t,zn.length>0}function IA(e,t){const n=e.findIndex(t);return n<0?e.length:n}var DA=(e,t,n)=>Math.min(Math.max(n,e),t),NA={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ar="[-+]?\\d*\\.?\\d+",Pl=ar+"%";function Nu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var LA=new RegExp("rgb"+Nu(ar,ar,ar)),FA=new RegExp("rgba"+Nu(ar,ar,ar,ar)),BA=new RegExp("hsl"+Nu(ar,Pl,Pl)),UA=new RegExp("hsla"+Nu(ar,Pl,Pl,ar)),WA=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zA=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HA=/^#([0-9a-fA-F]{6})$/,VA=/^#([0-9a-fA-F]{8})$/;function qA(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=HA.exec(e))?parseInt(t[1]+"ff",16)>>>0:ui&&ui[e]!==void 0?ui[e]:(t=LA.exec(e))?(_a(t[1])<<24|_a(t[2])<<16|_a(t[3])<<8|255)>>>0:(t=FA.exec(e))?(_a(t[1])<<24|_a(t[2])<<16|_a(t[3])<<8|Ov(t[4]))>>>0:(t=WA.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=VA.exec(e))?parseInt(t[1],16)>>>0:(t=zA.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=BA.exec(e))?(kv(Ev(t[1]),Pc(t[2]),Pc(t[3]))|255)>>>0:(t=UA.exec(e))?(kv(Ev(t[1]),Pc(t[2]),Pc(t[3]))|Ov(t[4]))>>>0:null}function wf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kv(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=wf(i,r,e+1/3),o=wf(i,r,e),s=wf(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function _a(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ev(e){return(parseFloat(e)%360+360)%360/360}function Ov(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Pc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Mv(e){let t=qA(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var Os=(e,t,n)=>{if(de.fun(e))return e;if(de.arr(e))return Os({range:e,output:t,extrapolate:n});if(de.str(e.output[0]))return Cm(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=GA(l,a);return YA(l,a[u],a[u+1],i[u],i[u+1],c,o,s,r.map)}};function YA(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>n){if(s==="identity")return l;s==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function GA(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var ZA=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return DA(0,1,i/e)},Il=1.70158,Ic=Il*1.525,$v=Il+1,Av=2*Math.PI/3,Rv=2*Math.PI/4.5,Dc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,KA={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>$v*e*e*e-Il*e*e,easeOutBack:e=>1+$v*Math.pow(e-1,3)+Il*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Ic+1)*2*e-Ic)/2:(Math.pow(2*e-2,2)*((Ic+1)*(e*2-2)+Ic)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Av),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Av)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Rv))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Rv)/2+1,easeInBounce:e=>1-Dc(1-e),easeOutBounce:Dc,easeInOutBounce:e=>e<.5?(1-Dc(1-2*e))/2:(1+Dc(2*e-1))/2,steps:ZA},Ms=Symbol.for("FluidValue.get"),Ka=Symbol.for("FluidValue.observers"),Wn=e=>!!(e&&e[Ms]),En=e=>e&&e[Ms]?e[Ms]():e,jv=e=>e[Ka]||null;function XA(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $s(e,t){const n=e[Ka];n&&n.forEach(r=>{XA(r,t)})}var L_=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");QA(this,e)}},QA=(e,t)=>F_(e,Ms,t);function co(e,t){if(e[Ms]){let n=e[Ka];n||F_(e,Ka,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function As(e,t){const n=e[Ka];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ka]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var F_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),il=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,JA=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pv=new RegExp(`(${il.source})(%|[a-z]+)`,"i"),eR=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Lu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,B_=e=>{const[t,n]=tR(e);if(!t||wm())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Lu.test(n))return B_(n);if(n)return n}return e},tR=e=>{const t=Lu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Cf,nR=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,U_=e=>{Cf||(Cf=ui?new RegExp(`(${Object.keys(ui).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>En(a).replace(Lu,B_).replace(JA,Mv).replace(Cf,Mv)),n=t.map(a=>a.match(il).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>Os({...e,output:a}));return a=>{var c;const o=!Pv.test(t[0])&&((c=t.find(l=>Pv.test(l)))==null?void 0:c.replace(il,""));let s=0;return t[0].replace(il,()=>`${i[s++](a)}${o||""}`).replace(eR,nR)}},Sm="react-spring: ",W_=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Sm}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},rR=W_(console.warn);function iR(){rR(`${Sm}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var aR=W_(console.warn);function oR(){aR(`${Sm}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Fu(e){return de.str(e)&&(e[0]=="#"||/\d/.test(e)||!wm()&&Lu.test(e)||e in(ui||{}))}var Ii=wm()?m.useEffect:m.useLayoutEffect,sR=()=>{const e=m.useRef(!1);return Ii(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function km(){const e=m.useState()[1],t=sR();return()=>{t.current&&e(Math.random())}}function cR(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&lR(t,a.inputs)||(a={inputs:t,result:e()}):a=n,m.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function lR(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Em=e=>m.useEffect(e,uR),uR=[];function jh(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var Rs=Symbol.for("Animated:node"),dR=e=>!!e&&e[Rs]===e,fr=e=>e&&e[Rs],Om=(e,t)=>RA(e,Rs,t),Bu=e=>e&&e[Rs]&&e[Rs].getPayload(),z_=class{constructor(){Om(this,this)}getPayload(){return this.payload||[]}},sc=class extends z_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,de.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new sc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return de.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,de.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},js=class extends sc{constructor(e){super(0),this._string=null,this._toString=Os({output:[e,e]})}static create(e){return new js(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(de.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Os({output:[this.getValue(),e]})),this._value=0,super.reset()}},Dl={dependencies:null},Uu=class extends z_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return br(this.source,(n,r)=>{dR(n)?t[r]=n.getValue(e):Wn(n)?t[r]=En(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ze(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return br(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Dl.dependencies&&Wn(e)&&Dl.dependencies.add(e);const t=Bu(e);t&&ze(t,n=>this.add(n))}},H_=class extends Uu{constructor(e){super(e)}static create(e){return new H_(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fR)),!0)}};function fR(e){return(Fu(e)?js:sc).create(e)}function Ph(e){const t=fr(e);return t?t.constructor:de.arr(e)?H_:Fu(e)?js:sc}var Iv=(e,t)=>{const n=!de.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,i)=>{const a=m.useRef(null),o=n&&m.useCallback(g=>{a.current=mR(i,g)},[i]),[s,c]=pR(r,t),l=km(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},d=new hR(u,c),f=m.useRef();Ii(()=>(f.current=d,ze(c,g=>co(g,d)),()=>{f.current&&(ze(f.current.deps,g=>As(g,f.current)),He.cancel(f.current.update))})),m.useEffect(u,[]),Em(()=>()=>{const g=f.current;ze(g.deps,p=>As(p,g))});const h=t.getComponentProps(s.getValue());return ue.createElement(e,{...h,ref:o})})},hR=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&He.write(this.update)}};function pR(e,t){const n=new Set;return Dl.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Uu(e),Dl.dependencies=null,[e,n]}function mR(e,t){return e&&(de.fun(e)?e(t):e.current=t),t}var Dv=Symbol.for("AnimatedComponent"),gR=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Uu(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=Nv(o)||"Anonymous";return de.str(o)?o=a[o]||(a[o]=Iv(o,i)):o=o[Dv]||(o[Dv]=Iv(o,i)),o.displayName=`Animated(${s})`,o};return br(e,(o,s)=>{de.arr(e)&&(s=Nv(o)),a[s]=a(o)}),{animated:a}},Nv=e=>de.str(e)?e:e&&de.str(e.displayName)?e.displayName:de.fun(e)&&e.name||null;function On(e,...t){return de.fun(e)?e(...t):e}var is=(e,t)=>e===!0||!!(t&&e&&(de.fun(e)?e(t):wn(e).includes(t))),V_=(e,t)=>de.obj(e)?t&&e[t]:e,q_=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vR=e=>e,Wu=(e,t=vR)=>{let n=yR;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);de.und(a)||(r[i]=a)}return r},yR=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bR={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function xR(e){const t={};let n=0;if(br(e,(r,i)=>{bR[i]||(t[i]=r,n++)}),n)return t}function Mm(e){const t=xR(e);if(t){const n={to:t};return br(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ps(e){return e=En(e),de.arr(e)?e.map(Ps):Fu(e)?cr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Y_(e){for(const t in e)return!0;return!1}function Ih(e){return de.fun(e)||de.arr(e)&&de.obj(e[0])}function Dh(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function G_(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var $m={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Nh={...$m.default,mass:1,damping:1,easing:KA.linear,clamp:!1},_R=class{constructor(){this.velocity=0,Object.assign(this,Nh)}};function wR(e,t,n){n&&(n={...n},Lv(n,t),t={...n,...t}),Lv(e,t),Object.assign(e,t);for(const o in Nh)e[o]==null&&(e[o]=Nh[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return de.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function Lv(e,t){if(!de.und(t.decay))e.duration=void 0;else{const n=!de.und(t.tension)||!de.und(t.friction);(n||!de.und(t.frequency)||!de.und(t.damping)||!de.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Fv=[],CR=class{constructor(){this.changed=!1,this.values=Fv,this.toValues=null,this.fromValues=Fv,this.config=new _R,this.immediate=!1}};function Z_(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=is(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{de.und(n.pause)||(i.paused=is(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||is(g,t)),c=On(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-He.now()}function f(){c>0&&!cr.skipAnimation?(i.delayed=!0,l=He.setTimeout(h,c),i.pauseQueue.add(d),i.timeouts.add(l)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){s(g)}}})}var Am=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ia(e.get()):t.every(n=>n.noop)?K_(e.get()):nr(e.get(),t.every(n=>n.finished)),K_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),nr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ia=e=>({value:e,cancelled:!0,finished:!1});function X_(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Wu(t,(v,w)=>w==="onRest"?void 0:v);let u,d;const f=new Promise((v,w)=>(u=v,d=w)),h=v=>{const w=i<=(n.cancelId||0)&&Ia(r)||i!==n.asyncId&&nr(r,!1);if(w)throw v.result=w,d(v),v},g=(v,w)=>{const _=new Bv,x=new Uv;return(async()=>{if(cr.skipAnimation)throw Is(n),x.result=nr(r,!1),d(x),x;h(_);const T=de.obj(v)?{...v}:{...w,to:v};T.parentId=i,br(l,(S,R)=>{de.und(T[R])&&(T[R]=S)});const b=await r.start(T);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()};let p;if(cr.skipAnimation)return Is(n),nr(r,!1);try{let v;de.arr(e)?v=(async w=>{for(const _ of w)await g(_)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),p=nr(r.get(),!0,!1)}catch(v){if(v instanceof Bv)p=v.result;else if(v instanceof Uv)p=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return de.fun(o)&&He.batchedUpdates(()=>{o(p,r,r.item)}),p})()}function Is(e,t){ns(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Bv=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Uv=class extends Error{constructor(){super("SkipAnimationSignal")}},Lh=e=>e instanceof Rm,TR=1,Rm=class extends L_{constructor(){super(...arguments),this.id=TR++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=fr(this);return e&&e.getValue()}to(...e){return cr.to(this,e)}interpolate(...e){return iR(),cr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$s(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Du.sort(this),$s(this,{type:"priority",parent:this,priority:e})}},Ji=Symbol.for("SpringPhase"),Q_=1,Fh=2,Bh=4,Tf=e=>(e[Ji]&Q_)>0,ei=e=>(e[Ji]&Fh)>0,No=e=>(e[Ji]&Bh)>0,Wv=(e,t)=>t?e[Ji]|=Fh|Q_:e[Ji]&=~Fh,zv=(e,t)=>t?e[Ji]|=Bh:e[Ji]&=~Bh,SR=class extends Rm{constructor(e,t){if(super(),this.animation=new CR,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!de.und(e)||!de.und(t)){const n=de.obj(e)?{...e}:{...t,from:e};de.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ei(this)||this._state.asyncTo)||No(this)}get goal(){return En(this.animation.to)}get velocity(){const e=fr(this);return e instanceof sc?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Tf(this)}get isAnimating(){return ei(this)}get isPaused(){return No(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Bu(r.to);!o&&Wn(r.to)&&(i=wn(En(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==js?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=l.lastPosition,a.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const p=r.fromValues[u],v=l.v0!=null?l.v0:l.v0=de.arr(a.velocity)?a.velocity[u]:a.velocity;let w;const _=a.precision||(p==d?.005:Math.min(1,Math.abs(d-p)*.001));if(de.und(a.duration))if(a.decay){const x=a.decay===!0?.998:a.decay,T=Math.exp(-(1-x)*g);h=p+v/(1-x)*(1-T),f=Math.abs(l.lastPosition-h)<=_,w=v*T}else{w=l.lastVelocity==null?v:l.lastVelocity;const x=a.restVelocity||_/10,T=a.clamp?0:a.bounce,b=!de.und(T),S=p==d?l.v0>0:p<d;let R,M=!1;const k=1,E=Math.ceil(e/k);for(let C=0;C<E&&(R=Math.abs(w)>x,!(!R&&(f=Math.abs(d-h)<=_,f)));++C){b&&(M=h==d||h>d==S,M&&(w=-w*T,h=d));const O=-a.tension*1e-6*(h-d),$=-a.friction*.001*w,A=(O+$)/a.mass;w=w+A*k,h=h+w*k}}else{let x=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,g=l.elapsedTime+=e)),x=(a.progress||0)+g/this._memoizedDuration,x=x>1?1:x<0?0:x,l.durationProgress=x),h=p+a.easing(x)*(d-p),w=(h-l.lastPosition)/e,f=x==1}l.lastVelocity=w,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(h,a.round)&&(n=!0)});const s=fr(this),c=s.getValue();if(t){const l=En(r.to);(c!==l||n)&&!a.decay?(s.setValue(l),this._onChange(l)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return He.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ei(this)){const{to:e,config:t}=this.animation;He.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return de.und(e)?(n=this.queue||[],this.queue=[]):n=[de.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Am(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Is(this._state,e&&this._lastCallId),He.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=de.obj(n)?n[t]:n,(n==null||Ih(n))&&(n=void 0),r=de.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Tf(this)||(e.reverse&&([n,r]=[r,n]),r=En(r),de.und(r)?fr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Wu(e,(o,s)=>/^on/.test(s)?V_(o,n):o)),Vv(this,e,"onProps"),Fo(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Z_(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{No(this)||(zv(this,!0),Xo(a.pauseQueue),Fo(this,"onPause",nr(this,Lo(this,this.animation.to)),this))},resume:()=>{No(this)&&(zv(this,!1),ei(this)&&this._resume(),Xo(a.resumeQueue),Fo(this,"onResume",nr(this,Lo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=J_(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ia(this));const r=!de.und(e.to),i=!de.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ia(this));const{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||de.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!Pr(d,l);f&&(s.from=d),d=En(d);const h=!Pr(u,c);h&&this._focus(u);const g=Ih(t.to),{config:p}=s,{decay:v,velocity:w}=p;(r||i)&&(p.velocity=0),t.config&&!g&&wR(p,On(t.config,a),t.config!==o.config?On(o.config,a):void 0);let _=fr(this);if(!_||de.und(u))return n(nr(this,!0));const x=de.und(t.reset)?i&&!t.default:!de.und(d)&&is(t.reset,a),T=x?d:this.get(),b=Ps(u),S=de.num(b)||de.arr(b)||Fu(b),R=!g&&(!S||is(o.immediate||t.immediate,a));if(h){const C=Ph(u);if(C!==_.constructor)if(R)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${C.name}, as the "to" prop suggests`)}const M=_.constructor;let k=Wn(u),E=!1;if(!k){const C=x||!Tf(this)&&f;(h||C)&&(E=Pr(Ps(T),b),k=!E),(!Pr(s.immediate,R)&&!R||!Pr(p.decay,v)||!Pr(p.velocity,w))&&(k=!0)}if(E&&ei(this)&&(s.changed&&!x?k=!0:k||this._stop(c)),!g&&((k||Wn(c))&&(s.values=_.getPayload(),s.toValues=Wn(u)?null:M==js?[1]:wn(b)),s.immediate!=R&&(s.immediate=R,!R&&!x&&this._set(c)),k)){const{onRest:C}=s;ze(ER,$=>Vv(this,t,$));const O=nr(this,Lo(this,c));Xo(this._pendingCalls,O),this._pendingCalls.add(n),s.changed&&He.batchedUpdates(()=>{var $;s.changed=!x,C==null||C(O,this),x?On(o.onRest,O):($=s.onStart)==null||$.call(s,O,this)})}x&&this._set(T),g?n(X_(t.to,t,this._state,this)):k?this._start():ei(this)&&!h?this._pendingCalls.add(n):n(K_(T))}_focus(e){const t=this.animation;e!==t.to&&(jv(this)&&this._detach(),t.to=e,jv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Wn(t)&&(co(t,this),Lh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Wn(e)&&As(e,this)}_set(e,t=!0){const n=En(e);if(!de.und(n)){const r=fr(this);if(!r||!Pr(n,r.getValue())){const i=Ph(n);!r||r.constructor!=i?Om(this,i.create(n)):r.setValue(n),r&&He.batchedUpdates(()=>{this._onChange(n,t)})}}return fr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fo(this,"onStart",nr(this,Lo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),On(this.animation.onChange,e,this)),On(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fr(this).reset(En(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ei(this)||(Wv(this,!0),No(this)||this._resume())}_resume(){cr.skipAnimation?this.finish():Du.start(this)}_stop(e,t){if(ei(this)){Wv(this,!1);const n=this.animation;ze(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$s(this,{type:"idle",parent:this});const r=t?Ia(this.get()):nr(this.get(),Lo(this,e??n.to));Xo(this._pendingCalls,r),n.changed&&(n.changed=!1,Fo(this,"onRest",r,this))}}};function Lo(e,t){const n=Ps(t),r=Ps(e.get());return Pr(r,n)}function J_(e,t=e.loop,n=e.to){const r=On(t);if(r){const i=r!==!0&&Mm(r),a=(i||e).reverse,o=!i||i.reset;return Ds({...e,loop:t,default:!1,pause:void 0,to:!a||Ih(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ds(e){const{to:t,from:n}=e=Mm(e),r=new Set;return de.obj(t)&&Hv(t,r),de.obj(n)&&Hv(n,r),e.keys=r.size?Array.from(r):null,e}function kR(e){const t=Ds(e);return de.und(t.default)&&(t.default=Wu(t)),t}function Hv(e,t){br(e,(n,r)=>n!=null&&t.add(r))}var ER=["onStart","onRest","onChange","onPause","onResume"];function Vv(e,t,n){e.animation[n]=t[n]!==q_(t,n)?V_(t[n],e.key):void 0}function Fo(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var OR=["onStart","onChange","onRest"],MR=1,ew=class{constructor(e,t){this.id=MR++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];de.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ds(e)),this}start(e){let{queue:t}=this;return e?t=wn(e).map(Ds):this.queue=[],this._flush?this._flush(this,t):(aw(this,t),Uh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ze(wn(t),r=>n[r].stop(!!e))}else Is(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(de.und(e))this.start({pause:!0});else{const t=this.springs;ze(wn(e),n=>t[n].pause())}return this}resume(e){if(de.und(e))this.start({pause:!1});else{const t=this.springs;ze(wn(e),n=>t[n].resume())}return this}each(e){br(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,ns(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&ns(t,([s,c])=>{c.value=o,s(c,this,this._item)}),a&&(this._started=!1,ns(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;He.onFrame(this._onFrame)}};function Uh(e,t){return Promise.all(t.map(n=>tw(e,n))).then(n=>Am(e,n))}async function tw(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=de.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=de.arr(i)||de.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):ze(OR,p=>{const v=t[p];if(de.fun(v)){const w=e._events[p];t[p]=({finished:_,cancelled:x})=>{const T=w.get(v);T?(_||(T.finished=!1),x&&(T.cancelled=!0)):w.set(v,{value:null,finished:_||!1,cancelled:x||!1})},l&&(l[p]=t[p])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Xo(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(p=>e.springs[p].start(t)),h=t.cancel===!0||q_(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(Z_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ah,resume:Ah,start(p,v){h?(Is(d,e._lastAsyncId),v(Ia(e))):(p.onRest=s,v(X_(u,p,d,e)))}}})),d.paused&&await new Promise(p=>{d.resumeQueue.add(p)});const g=Am(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const p=J_(t,o,i);if(p)return aw(e,[p]),tw(e,p,!0)}return c&&He.batchedUpdates(()=>c(g,e,e.item)),g}function Wh(e,t){const n={...e.springs};return t&&ze(wn(t),r=>{de.und(r.keys)&&(r=Ds(r)),de.obj(r.to)||(r={...r,to:void 0}),iw(n,r,i=>rw(i))}),nw(e,n),n}function nw(e,t){br(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,co(n,e))})}function rw(e,t){const n=new SR;return n.key=e,t&&co(n,t),n}function iw(e,t,n){t.keys&&ze(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function aw(e,t){ze(t,n=>{iw(e.springs,n,r=>rw(r,e))})}var cc=({children:e,...t})=>{const n=m.useContext(Nl),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=cR(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=Nl;return ue.createElement(a,{value:t},e)},Nl=$R(cc,{});cc.Provider=Nl.Provider;cc.Consumer=Nl.Consumer;function $R(e,t){return Object.assign(e,ue.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ow=()=>{const e=[],t=function(r){oR();const i=[];return ze(e,(a,o)=>{if(de.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ze(e,r=>r.pause(...arguments)),this},t.resume=function(){return ze(e,r=>r.resume(...arguments)),this},t.set=function(r){ze(e,(i,a)=>{const o=de.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return ze(e,(a,o)=>{if(de.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return ze(e,r=>r.stop(...arguments)),this},t.update=function(r){return ze(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return de.fun(r)?r(a,i):r};return t._getProps=n,t};function AR(e,t,n){const r=de.fun(t)&&t;r&&!n&&(n=[]);const i=m.useMemo(()=>r||arguments.length==3?ow():void 0,[]),a=m.useRef(0),o=km(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(w,_){const x=Wh(w,_);return a.current>0&&!s.queue.length&&!Object.keys(x).some(b=>!w.springs[b])?Uh(w,_):new Promise(b=>{nw(w,x),s.queue.push(()=>{b(Uh(w,_))}),o()})}}),[]),c=m.useRef([...s.ctrls]),l=[],u=jh(e)||0;m.useMemo(()=>{ze(c.current.slice(e,u),w=>{Dh(w,i),w.stop(!0)}),c.current.length=e,d(u,e)},[e]),m.useMemo(()=>{d(0,Math.min(u,e))},n);function d(w,_){for(let x=w;x<_;x++){const T=c.current[x]||(c.current[x]=new ew(null,s.flush)),b=r?r(x,T):t[x];b&&(l[x]=kR(b))}}const f=c.current.map((w,_)=>Wh(w,l[_])),h=m.useContext(cc),g=jh(h),p=h!==g&&Y_(h);Ii(()=>{a.current++,s.ctrls=c.current;const{queue:w}=s;w.length&&(s.queue=[],ze(w,_=>_())),ze(c.current,(_,x)=>{i==null||i.add(_),p&&_.start({default:h});const T=l[x];T&&(G_(_,T.ref),_.ref?_.queue.push(T):_.start(T))})}),Em(()=>()=>{ze(s.ctrls,w=>w.stop(!0))});const v=f.map(w=>({...w}));return i?[v,i]:v}function Sr(e,t){const n=de.fun(e),[[r],i]=AR(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function sa(e,t,n){const r=de.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=m.useMemo(()=>r||arguments.length==3?ow():void 0,[]),h=wn(e),g=[],p=m.useRef(null),v=i?null:p.current;Ii(()=>{p.current=g}),Em(()=>(ze(g,A=>{f==null||f.add(A.ctrl),A.ctrl.ref=f}),()=>{ze(p.current,A=>{A.expired&&clearTimeout(A.expirationId),Dh(A.ctrl,f),A.ctrl.stop(!0)})}));const w=jR(h,r?r():t,v),_=i&&p.current||[];Ii(()=>ze(_,({ctrl:A,item:P,key:D})=>{Dh(A,f),On(l,P,D)}));const x=[];if(v&&ze(v,(A,P)=>{A.expired?(clearTimeout(A.expirationId),_.push(A)):(P=x[P]=w.indexOf(A.key),~P&&(g[P]=A))}),ze(h,(A,P)=>{g[P]||(g[P]={key:w[P],item:A,phase:"mount",ctrl:new ew},g[P].ctrl.item=A)}),x.length){let A=-1;const{leave:P}=r?r():t;ze(x,(D,F)=>{const q=v[F];~D?(A=g.indexOf(q),g[A]={...q,item:h[D]}):P&&g.splice(++A,0,q)})}de.fun(a)&&g.sort((A,P)=>a(A.item,P.item));let T=-o;const b=km(),S=Wu(t),R=new Map,M=m.useRef(new Map),k=m.useRef(!1);ze(g,(A,P)=>{const D=A.key,F=A.phase,q=r?r():t;let z,U;const G=On(q.delay||0,D);if(F=="mount")z=q.enter,U="enter";else{const X=w.indexOf(D)<0;if(F!="leave")if(X)z=q.leave,U="leave";else if(z=q.update)U="update";else return;else if(!X)z=q.enter,U="enter";else return}if(z=On(z,A.item,P),z=de.obj(z)?Mm(z):{to:z},!z.config){const X=d||S.config;z.config=On(X,A.item,P,U)}T+=o;const ee={...S,delay:G+T,ref:u,immediate:q.immediate,reset:!1,...z};if(U=="enter"&&de.und(ee.from)){const X=r?r():t,K=de.und(X.initial)||v?X.from:X.initial;ee.from=On(K,A.item,P)}const{onResolve:ie}=ee;ee.onResolve=X=>{On(ie,X);const K=p.current,re=K.find(N=>N.key===D);if(re&&!(X.cancelled&&re.phase!="update")&&re.ctrl.idle){const N=K.every(I=>I.ctrl.idle);if(re.phase=="leave"){const I=On(s,re.item);if(I!==!1){const L=I===!0?0:I;if(re.expired=!0,!N&&L>0){L<=2147483647&&(re.expirationId=setTimeout(b,L));return}}}N&&K.some(I=>I.expired)&&(M.current.delete(re),c&&(k.current=!0),b())}};const J=Wh(A.ctrl,ee);U==="leave"&&c?M.current.set(A,{phase:U,springs:J,payload:ee}):R.set(A,{phase:U,springs:J,payload:ee})});const E=m.useContext(cc),C=jh(E),O=E!==C&&Y_(E);Ii(()=>{O&&ze(g,A=>{A.ctrl.start({default:E})})},[E]),ze(R,(A,P)=>{if(M.current.size){const D=g.findIndex(F=>F.key===P.key);g.splice(D,1)}}),Ii(()=>{ze(M.current.size?M.current:R,({phase:A,payload:P},D)=>{const{ctrl:F}=D;D.phase=A,f==null||f.add(F),O&&A=="enter"&&F.start({default:E}),P&&(G_(F,P.ref),(F.ref||f)&&!k.current?F.update(P):(F.start(P),k.current&&(k.current=!1)))})},i?void 0:n);const $=A=>ue.createElement(ue.Fragment,null,g.map((P,D)=>{const{springs:F}=R.get(P)||P.ctrl,q=A({...F},P.item,P,D);return q&&q.type?ue.createElement(q.type,{...q.props,key:de.str(P.key)||de.num(P.key)?P.key:P.ctrl.id,ref:q.ref}):q}));return f?[$,f]:$}var RR=1;function jR(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):RR++})}return de.und(n)?e:de.fun(n)?e.map(n):wn(n)}var sw=class extends Rm{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Os(...t);const n=this._get(),r=Ph(n);Om(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pr(t,n)||(fr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&qv(this._active)&&Sf(this)}_get(){const e=de.arr(this.source)?this.source.map(En):wn(En(this.source));return this.calc(...e)}_start(){this.idle&&!qv(this._active)&&(this.idle=!1,ze(Bu(this),e=>{e.done=!1}),cr.skipAnimation?(He.batchedUpdates(()=>this.advance()),Sf(this)):Du.start(this))}_attach(){let e=1;ze(wn(this.source),t=>{Wn(t)&&co(t,this),Lh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ze(wn(this.source),e=>{Wn(e)&&As(e,this)}),this._active.clear(),Sf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=wn(this.source).reduce((t,n)=>Math.max(t,(Lh(n)?n.priority:0)+1),0))}};function PR(e){return e.idle!==!1}function qv(e){return!e.size||Array.from(e).every(PR)}function Sf(e){e.idle||(e.idle=!0,ze(Bu(e),t=>{t.done=!0}),$s(e,{type:"idle",parent:e}))}var vi=(e,...t)=>new sw(e,t);cr.assign({createStringInterpolator:U_,to:(e,t)=>new sw(e,t)});var cw=/^--/;function IR(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!cw.test(e)&&!(as.hasOwnProperty(e)&&as[e])?t+"px":(""+t).trim()}var Yv={};function DR(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:Yv[f]||(Yv[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=IR(f,i[f]);cw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var as={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},NR=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),LR=["Webkit","Ms","Moz","O"];as=Object.keys(as).reduce((e,t)=>(LR.forEach(n=>e[NR(n,t)]=e[t]),e),as);var FR=/^(matrix|translate|scale|rotate|skew)/,BR=/^(translate)/,UR=/^(rotate|skew)/,kf=(e,t)=>de.num(e)&&e!==0?e+t:e,al=(e,t)=>de.arr(e)?e.every(n=>al(n,t)):de.num(e)?e===t:parseFloat(e)===t,WR=class extends Uu{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>kf(s,"px")).join(",")})`,al(o,0)])),br(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(c=>[c,c===""]);else if(FR.test(s)){if(delete r[s],de.und(o))return;const c=BR.test(s)?"px":UR.test(s)?"deg":"";i.push(wn(o)),a.push(s==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${kf(f,c)})`,al(f,0)]:l=>[`${s}(${l.map(u=>kf(u,c)).join(",")})`,al(l,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new zR(i,a)),super(r)}},zR=class extends L_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ze(this.inputs,(n,r)=>{const i=En(n[0]),[a,o]=this.transforms[r](de.arr(i)?i:n.map(En));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ze(this.inputs,t=>ze(t,n=>Wn(n)&&co(n,this)))}observerRemoved(e){e==0&&ze(this.inputs,t=>ze(t,n=>Wn(n)&&As(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$s(this,e)}},HR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];cr.assign({batchedUpdates:oi.unstable_batchedUpdates,createStringInterpolator:U_,colors:NA});var VR=gR(HR,{applyAnimatedValues:DR,createAnimatedStyle:e=>new WR(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ct=VR.animated;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}var qR={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Gv=function(e,t){return"translate("+e+"px, "+t+"px)"},lw=m.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Tt(),o=kn(),s=o.animate,c=o.config,l=m3(),u=l[0],d=l[1],f=m.useRef(!1),h=void 0,g=!1,p=d.width>0&&d.height>0,v=Math.round(n[0]),w=Math.round(n[1]);p&&(r==="top"?(v-=d.width/2,w-=d.height+14):r==="right"?(v+=14,w-=d.height/2):r==="bottom"?(v-=d.width/2,w+=14):r==="left"?(v-=d.width+14,w-=d.height/2):r==="center"&&(v-=d.width/2,w-=d.height/2),h={transform:Gv(v,w)},f.current||(g=!0),f.current=[v,w]);var _=Sr({to:h,config:c,immediate:!s||g}),x=ea({},qR,a.tooltip.wrapper,{transform:(t=_.transform)!=null?t:Gv(v,w),opacity:_.transform?1:0});return y.jsx(Ct.div,{ref:u,style:x,children:i})});lw.displayName="TooltipWrapper";var uw=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:ea({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),jm=m.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=Tt(),u=eo(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=y.jsxs("div",{style:l.tooltip.basic,children:[o&&y.jsx(uw,{color:s,style:l.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:l.tooltip.container,children:t})}),YR={width:"100%",borderCollapse:"collapse"},dw=m.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Tt();return i.length?(t=typeof a=="function"?a():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:ea({},YR,o.tooltip.table),children:y.jsx("tbody",{children:i.map(function(s,c){return y.jsx("tr",{children:s.map(function(l,u){return y.jsx("td",{style:o.tooltip.tableCell,children:l},u)})},c)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});dw.displayName="TableTooltip";var zh=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Tt(),o=kn(),s=o.animate,c=o.config,l=m.useMemo(function(){return ea({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=Sr({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return y.jsx(Ct.line,ea({},u,{fill:"none",style:l}))});zh.displayName="CrosshairLine";var Hh=m.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(zh,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(zh,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Hh.displayName="Crosshair";var fw=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Vh={isVisible:!1,position:[null,null],content:null,anchor:null},hw=m.createContext(Vh),GR=function(e){var t=m.useState(Vh),n=t[0],r=t[1],i=m.useCallback(function(s,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:s})},[r]),a=m.useCallback(function(s,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in c?c.touches[0]:c,g=h.clientX,p=h.clientY,v=(g-u.left)*f,w=(p-u.top)*f;l!=="left"&&l!=="right"||(l=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,w],anchor:l,content:s})},[e,r]),o=m.useCallback(function(){r(Vh)},[r]);return{actions:m.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},ca=function(){var e=m.useContext(fw);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},ZR=function(){var e=m.useContext(hw);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},KR=function(e){return e.isVisible},XR=function(){var e=ZR();return KR(e)?y.jsx(lw,{position:e.position,anchor:e.anchor,children:e.content}):null},QR=function(e){var t=e.container,n=e.children,r=GR(t),i=r.actions,a=r.state;return y.jsx(fw.Provider,{value:i,children:y.jsx(hw.Provider,{value:a,children:n})})};function JR(){this.__data__=[],this.size=0}var e9=JR;function t9(e,t){return e===t||e!==e&&t!==t}var lc=t9,n9=lc;function r9(e,t){for(var n=e.length;n--;)if(n9(e[n][0],t))return n;return-1}var zu=r9,i9=zu,a9=Array.prototype,o9=a9.splice;function s9(e){var t=this.__data__,n=i9(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():o9.call(t,n,1),--this.size,!0}var c9=s9,l9=zu;function u9(e){var t=this.__data__,n=l9(t,e);return n<0?void 0:t[n][1]}var d9=u9,f9=zu;function h9(e){return f9(this.__data__,e)>-1}var p9=h9,m9=zu;function g9(e,t){var n=this.__data__,r=m9(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v9=g9,y9=e9,b9=c9,x9=d9,_9=p9,w9=v9;function lo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lo.prototype.clear=y9;lo.prototype.delete=b9;lo.prototype.get=x9;lo.prototype.has=_9;lo.prototype.set=w9;var Hu=lo,C9=Hu;function T9(){this.__data__=new C9,this.size=0}var S9=T9;function k9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var E9=k9;function O9(e){return this.__data__.get(e)}var M9=O9;function $9(e){return this.__data__.has(e)}var A9=$9,R9=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,pw=R9,j9=pw,P9=typeof self=="object"&&self&&self.Object===Object&&self,I9=j9||P9||Function("return this")(),kr=I9,D9=kr,N9=D9.Symbol,uo=N9,Zv=uo,mw=Object.prototype,L9=mw.hasOwnProperty,F9=mw.toString,Bo=Zv?Zv.toStringTag:void 0;function B9(e){var t=L9.call(e,Bo),n=e[Bo];try{e[Bo]=void 0;var r=!0}catch{}var i=F9.call(e);return r&&(t?e[Bo]=n:delete e[Bo]),i}var U9=B9,W9=Object.prototype,z9=W9.toString;function H9(e){return z9.call(e)}var V9=H9,Kv=uo,q9=U9,Y9=V9,G9="[object Null]",Z9="[object Undefined]",Xv=Kv?Kv.toStringTag:void 0;function K9(e){return e==null?e===void 0?Z9:G9:Xv&&Xv in Object(e)?q9(e):Y9(e)}var Gr=K9;function X9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Er=X9,Q9=Gr,J9=Er,ej="[object AsyncFunction]",tj="[object Function]",nj="[object GeneratorFunction]",rj="[object Proxy]";function ij(e){if(!J9(e))return!1;var t=Q9(e);return t==tj||t==nj||t==ej||t==rj}var Vu=ij;const Pm=Ht(Vu);var aj=kr,oj=aj["__core-js_shared__"],sj=oj,Ef=sj,Qv=function(){var e=/[^.]+$/.exec(Ef&&Ef.keys&&Ef.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cj(e){return!!Qv&&Qv in e}var lj=cj,uj=Function.prototype,dj=uj.toString;function fj(e){if(e!=null){try{return dj.call(e)}catch{}try{return e+""}catch{}}return""}var gw=fj,hj=Vu,pj=lj,mj=Er,gj=gw,vj=/[\\^$.*+?()[\]{}|]/g,yj=/^\[object .+?Constructor\]$/,bj=Function.prototype,xj=Object.prototype,_j=bj.toString,wj=xj.hasOwnProperty,Cj=RegExp("^"+_j.call(wj).replace(vj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tj(e){if(!mj(e)||pj(e))return!1;var t=hj(e)?Cj:yj;return t.test(gj(e))}var Sj=Tj;function kj(e,t){return e==null?void 0:e[t]}var Ej=kj,Oj=Sj,Mj=Ej;function $j(e,t){var n=Mj(e,t);return Oj(n)?n:void 0}var la=$j,Aj=la,Rj=kr,jj=Aj(Rj,"Map"),Im=jj,Pj=la,Ij=Pj(Object,"create"),qu=Ij,Jv=qu;function Dj(){this.__data__=Jv?Jv(null):{},this.size=0}var Nj=Dj;function Lj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fj=Lj,Bj=qu,Uj="__lodash_hash_undefined__",Wj=Object.prototype,zj=Wj.hasOwnProperty;function Hj(e){var t=this.__data__;if(Bj){var n=t[e];return n===Uj?void 0:n}return zj.call(t,e)?t[e]:void 0}var Vj=Hj,qj=qu,Yj=Object.prototype,Gj=Yj.hasOwnProperty;function Zj(e){var t=this.__data__;return qj?t[e]!==void 0:Gj.call(t,e)}var Kj=Zj,Xj=qu,Qj="__lodash_hash_undefined__";function Jj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xj&&t===void 0?Qj:t,this}var eP=Jj,tP=Nj,nP=Fj,rP=Vj,iP=Kj,aP=eP;function fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=tP;fo.prototype.delete=nP;fo.prototype.get=rP;fo.prototype.has=iP;fo.prototype.set=aP;var oP=fo,e1=oP,sP=Hu,cP=Im;function lP(){this.size=0,this.__data__={hash:new e1,map:new(cP||sP),string:new e1}}var uP=lP;function dP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fP=dP,hP=fP;function pP(e,t){var n=e.__data__;return hP(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Yu=pP,mP=Yu;function gP(e){var t=mP(this,e).delete(e);return this.size-=t?1:0,t}var vP=gP,yP=Yu;function bP(e){return yP(this,e).get(e)}var xP=bP,_P=Yu;function wP(e){return _P(this,e).has(e)}var CP=wP,TP=Yu;function SP(e,t){var n=TP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var kP=SP,EP=uP,OP=vP,MP=xP,$P=CP,AP=kP;function ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=EP;ho.prototype.delete=OP;ho.prototype.get=MP;ho.prototype.has=$P;ho.prototype.set=AP;var Dm=ho,RP=Hu,jP=Im,PP=Dm,IP=200;function DP(e,t){var n=this.__data__;if(n instanceof RP){var r=n.__data__;if(!jP||r.length<IP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new PP(r)}return n.set(e,t),this.size=n.size,this}var NP=DP,LP=Hu,FP=S9,BP=E9,UP=M9,WP=A9,zP=NP;function po(e){var t=this.__data__=new LP(e);this.size=t.size}po.prototype.clear=FP;po.prototype.delete=BP;po.prototype.get=UP;po.prototype.has=WP;po.prototype.set=zP;var Gu=po,HP=la,VP=function(){try{var e=HP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vw=VP,t1=vw;function qP(e,t,n){t=="__proto__"&&t1?t1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Nm=qP,YP=Nm,GP=lc;function ZP(e,t,n){(n!==void 0&&!GP(e[t],n)||n===void 0&&!(t in e))&&YP(e,t,n)}var yw=ZP;function KP(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var XP=KP,QP=XP,JP=QP(),bw=JP,Ll={exports:{}};Ll.exports;(function(e,t){var n=kr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(Ll,Ll.exports);var xw=Ll.exports,eI=kr,tI=eI.Uint8Array,_w=tI,n1=_w;function nI(e){var t=new e.constructor(e.byteLength);return new n1(t).set(new n1(e)),t}var Lm=nI,rI=Lm;function iI(e,t){var n=t?rI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ww=iI;function aI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Cw=aI,oI=Er,r1=Object.create,sI=function(){function e(){}return function(t){if(!oI(t))return{};if(r1)return r1(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),cI=sI;function lI(e,t){return function(n){return e(t(n))}}var Tw=lI,uI=Tw,dI=uI(Object.getPrototypeOf,Object),Fm=dI,fI=Object.prototype;function hI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fI;return e===n}var Bm=hI,pI=cI,mI=Fm,gI=Bm;function vI(e){return typeof e.constructor=="function"&&!gI(e)?pI(mI(e)):{}}var Sw=vI;function yI(e){return e!=null&&typeof e=="object"}var Qn=yI,bI=Gr,xI=Qn,_I="[object Arguments]";function wI(e){return xI(e)&&bI(e)==_I}var CI=wI,i1=CI,TI=Qn,kw=Object.prototype,SI=kw.hasOwnProperty,kI=kw.propertyIsEnumerable,EI=i1(function(){return arguments}())?i1:function(e){return TI(e)&&SI.call(e,"callee")&&!kI.call(e,"callee")},Zu=EI,OI=Array.isArray,Pn=OI,MI=9007199254740991;function $I(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MI}var Um=$I,AI=Vu,RI=Um;function jI(e){return e!=null&&RI(e.length)&&!AI(e)}var mo=jI,PI=mo,II=Qn;function DI(e){return II(e)&&PI(e)}var Ew=DI,Fl={exports:{}};function NI(){return!1}var LI=NI;Fl.exports;(function(e,t){var n=kr,r=LI,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Fl,Fl.exports);var Ku=Fl.exports,FI=Gr,BI=Fm,UI=Qn,WI="[object Object]",zI=Function.prototype,HI=Object.prototype,Ow=zI.toString,VI=HI.hasOwnProperty,qI=Ow.call(Object);function YI(e){if(!UI(e)||FI(e)!=WI)return!1;var t=BI(e);if(t===null)return!0;var n=VI.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ow.call(n)==qI}var Wm=YI;const zm=Ht(Wm);var GI=Gr,ZI=Um,KI=Qn,XI="[object Arguments]",QI="[object Array]",JI="[object Boolean]",eD="[object Date]",tD="[object Error]",nD="[object Function]",rD="[object Map]",iD="[object Number]",aD="[object Object]",oD="[object RegExp]",sD="[object Set]",cD="[object String]",lD="[object WeakMap]",uD="[object ArrayBuffer]",dD="[object DataView]",fD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",mD="[object Int16Array]",gD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",Ft={};Ft[fD]=Ft[hD]=Ft[pD]=Ft[mD]=Ft[gD]=Ft[vD]=Ft[yD]=Ft[bD]=Ft[xD]=!0;Ft[XI]=Ft[QI]=Ft[uD]=Ft[JI]=Ft[dD]=Ft[eD]=Ft[tD]=Ft[nD]=Ft[rD]=Ft[iD]=Ft[aD]=Ft[oD]=Ft[sD]=Ft[cD]=Ft[lD]=!1;function _D(e){return KI(e)&&ZI(e.length)&&!!Ft[GI(e)]}var wD=_D;function CD(e){return function(t){return e(t)}}var go=CD,Bl={exports:{}};Bl.exports;(function(e,t){var n=pw,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Bl,Bl.exports);var Xu=Bl.exports,TD=wD,SD=go,a1=Xu,o1=a1&&a1.isTypedArray,kD=o1?SD(o1):TD,Hm=kD;function ED(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Mw=ED,OD=Nm,MD=lc,$D=Object.prototype,AD=$D.hasOwnProperty;function RD(e,t,n){var r=e[t];(!(AD.call(e,t)&&MD(r,n))||n===void 0&&!(t in e))&&OD(e,t,n)}var Vm=RD,jD=Vm,PD=Nm;function ID(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?PD(n,s,c):jD(n,s,c)}return n}var vo=ID;function DD(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ND=DD,LD=9007199254740991,FD=/^(?:0|[1-9]\d*)$/;function BD(e,t){var n=typeof e;return t=t??LD,!!t&&(n=="number"||n!="symbol"&&FD.test(e))&&e>-1&&e%1==0&&e<t}var Qu=BD,UD=ND,WD=Zu,zD=Pn,HD=Ku,VD=Qu,qD=Hm,YD=Object.prototype,GD=YD.hasOwnProperty;function ZD(e,t){var n=zD(e),r=!n&&WD(e),i=!n&&!r&&HD(e),a=!n&&!r&&!i&&qD(e),o=n||r||i||a,s=o?UD(e.length,String):[],c=s.length;for(var l in e)(t||GD.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||VD(l,c)))&&s.push(l);return s}var $w=ZD;function KD(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var XD=KD,QD=Er,JD=Bm,eN=XD,tN=Object.prototype,nN=tN.hasOwnProperty;function rN(e){if(!QD(e))return eN(e);var t=JD(e),n=[];for(var r in e)r=="constructor"&&(t||!nN.call(e,r))||n.push(r);return n}var iN=rN,aN=$w,oN=iN,sN=mo;function cN(e){return sN(e)?aN(e,!0):oN(e)}var uc=cN,lN=vo,uN=uc;function dN(e){return lN(e,uN(e))}var fN=dN,s1=yw,hN=xw,pN=ww,mN=Cw,gN=Sw,c1=Zu,l1=Pn,vN=Ew,yN=Ku,bN=Vu,xN=Er,_N=Wm,wN=Hm,u1=Mw,CN=fN;function TN(e,t,n,r,i,a,o){var s=u1(e,n),c=u1(t,n),l=o.get(c);if(l){s1(e,n,l);return}var u=a?a(s,c,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=l1(c),h=!f&&yN(c),g=!f&&!h&&wN(c);u=c,f||h||g?l1(s)?u=s:vN(s)?u=mN(s):h?(d=!1,u=hN(c,!0)):g?(d=!1,u=pN(c,!0)):u=[]:_N(c)||c1(c)?(u=s,c1(s)?u=CN(s):(!xN(s)||bN(s))&&(u=gN(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),s1(e,n,u)}var SN=TN,kN=Gu,EN=yw,ON=bw,MN=SN,$N=Er,AN=uc,RN=Mw;function Aw(e,t,n,r,i){e!==t&&ON(t,function(a,o){if(i||(i=new kN),$N(a))MN(e,t,o,n,Aw,r,i);else{var s=r?r(RN(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),EN(e,o,s)}},AN)}var jN=Aw;function PN(e){return e}var Ju=PN;function IN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var DN=IN,NN=DN,d1=Math.max;function LN(e,t,n){return t=d1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=d1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),NN(e,this,s)}}var Rw=LN;function FN(e){return function(){return e}}var BN=FN,UN=BN,f1=vw,WN=Ju,zN=f1?function(e,t){return f1(e,"toString",{configurable:!0,enumerable:!1,value:UN(t),writable:!0})}:WN,HN=zN,VN=800,qN=16,YN=Date.now;function GN(e){var t=0,n=0;return function(){var r=YN(),i=qN-(r-n);if(n=r,i>0){if(++t>=VN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ZN=GN,KN=HN,XN=ZN,QN=XN(KN),jw=QN,JN=Ju,eL=Rw,tL=jw;function nL(e,t){return tL(eL(e,t,JN),e+"")}var qm=nL,rL=lc,iL=mo,aL=Qu,oL=Er;function sL(e,t,n){if(!oL(n))return!1;var r=typeof t;return(r=="number"?iL(n)&&aL(t,n.length):r=="string"&&t in n)?rL(n[t],e):!1}var Pw=sL,cL=qm,lL=Pw;function uL(e){return cL(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&lL(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var dL=uL,fL=jN,hL=dL,pL=hL(function(e,t,n){fL(e,t,n)}),mL=pL;const gL=Ht(mL);var vL=Gr,yL=Qn,bL="[object Symbol]";function xL(e){return typeof e=="symbol"||yL(e)&&vL(e)==bL}var ed=xL,_L=Pn,wL=ed,CL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,TL=/^\w*$/;function SL(e,t){if(_L(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wL(e)?!0:TL.test(e)||!CL.test(e)||t!=null&&e in Object(t)}var Ym=SL,Iw=Dm,kL="Expected a function";function Gm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kL);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Gm.Cache||Iw),n}Gm.Cache=Iw;var EL=Gm,OL=EL,ML=500;function $L(e){var t=OL(e,function(r){return n.size===ML&&n.clear(),r}),n=t.cache;return t}var AL=$L,RL=AL,jL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PL=/\\(\\)?/g,IL=RL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jL,function(n,r,i,a){t.push(i?a.replace(PL,"$1"):r||n)}),t}),DL=IL;function NL(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var td=NL,h1=uo,LL=td,FL=Pn,BL=ed,UL=1/0,p1=h1?h1.prototype:void 0,m1=p1?p1.toString:void 0;function Dw(e){if(typeof e=="string")return e;if(FL(e))return LL(e,Dw)+"";if(BL(e))return m1?m1.call(e):"";var t=e+"";return t=="0"&&1/e==-UL?"-0":t}var WL=Dw,zL=WL;function HL(e){return e==null?"":zL(e)}var Nw=HL,VL=Pn,qL=Ym,YL=DL,GL=Nw;function ZL(e,t){return VL(e)?e:qL(e,t)?[e]:YL(GL(e))}var yo=ZL,KL=ed,XL=1/0;function QL(e){if(typeof e=="string"||KL(e))return e;var t=e+"";return t=="0"&&1/e==-XL?"-0":t}var bo=QL,JL=yo,eF=bo;function tF(e,t){t=JL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[eF(t[n++])];return n&&n==r?e:void 0}var dc=tF,nF=dc;function rF(e,t,n){var r=e==null?void 0:nF(e,t);return r===void 0?n:r}var Lw=rF;const xr=Ht(Lw);var iF=Vm,aF=yo,oF=Qu,g1=Er,sF=bo;function cF(e,t,n,r){if(!g1(e))return e;t=aF(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=sF(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=g1(u)?u:oF(t[i+1])?[]:{})}iF(s,c,l),s=s[c]}return e}var Fw=cF,lF=Fw;function uF(e,t,n){return e==null?e:lF(e,t,n)}var dF=uF;const Qo=Ht(dF);function nd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Zm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xo(){}var ta=.7,Xa=1/ta,Da="\\s*([+-]?\\d+)\\s*",Ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fF=/^#([0-9a-f]{3,8})$/,hF=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),pF=new RegExp(`^rgb\\(${gr},${gr},${gr}\\)$`),mF=new RegExp(`^rgba\\(${Da},${Da},${Da},${Ns}\\)$`),gF=new RegExp(`^rgba\\(${gr},${gr},${gr},${Ns}\\)$`),vF=new RegExp(`^hsl\\(${Ns},${gr},${gr}\\)$`),yF=new RegExp(`^hsla\\(${Ns},${gr},${gr},${Ns}\\)$`),v1={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};nd(xo,Ls,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:y1,formatHex:y1,formatHex8:bF,formatHsl:xF,formatRgb:b1,toString:b1});function y1(){return this.rgb().formatHex()}function bF(){return this.rgb().formatHex8()}function xF(){return Uw(this).formatHsl()}function b1(){return this.rgb().formatRgb()}function Ls(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?x1(t):n===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nc(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=hF.exec(e))?new vn(t[1],t[2],t[3],1):(t=pF.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mF.exec(e))?Nc(t[1],t[2],t[3],t[4]):(t=gF.exec(e))?Nc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vF.exec(e))?C1(t[1],t[2]/100,t[3]/100,1):(t=yF.exec(e))?C1(t[1],t[2]/100,t[3]/100,t[4]):v1.hasOwnProperty(e)?x1(v1[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function x1(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function Nc(e,t,n,r){return r<=0&&(e=t=n=NaN),new vn(e,t,n,r)}function Bw(e){return e instanceof xo||(e=Ls(e)),e?(e=e.rgb(),new vn(e.r,e.g,e.b,e.opacity)):new vn}function Qa(e,t,n,r){return arguments.length===1?Bw(e):new vn(e,t,n,r??1)}function vn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}nd(vn,Qa,Zm(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(Hi(this.r),Hi(this.g),Hi(this.b),Ul(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:_1,formatHex:_1,formatHex8:_F,formatRgb:w1,toString:w1}));function _1(){return`#${Di(this.r)}${Di(this.g)}${Di(this.b)}`}function _F(){return`#${Di(this.r)}${Di(this.g)}${Di(this.b)}${Di((isNaN(this.opacity)?1:this.opacity)*255)}`}function w1(){const e=Ul(this.opacity);return`${e===1?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${e===1?")":`, ${e})`}`}function Ul(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Di(e){return e=Hi(e),(e<16?"0":"")+e.toString(16)}function C1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rr(e,t,n,r)}function Uw(e){if(e instanceof rr)return new rr(e.h,e.s,e.l,e.opacity);if(e instanceof xo||(e=Ls(e)),!e)return new rr;if(e instanceof rr)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),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new rr(o,s,c,e.opacity)}function wF(e,t,n,r){return arguments.length===1?Uw(e):new rr(e,t,n,r??1)}function rr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nd(rr,wF,Zm(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new rr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new rr(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 vn(Of(e>=240?e-240:e+120,i,r),Of(e,i,r),Of(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rr(T1(this.h),Lc(this.s),Lc(this.l),Ul(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=Ul(this.opacity);return`${e===1?"hsl(":"hsla("}${T1(this.h)}, ${Lc(this.s)*100}%, ${Lc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function T1(e){return e=(e||0)%360,e<0?e+360:e}function Lc(e){return Math.max(0,Math.min(1,e||0))}function Of(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 CF=Math.PI/180,TF=180/Math.PI;var Ww=-.14861,Km=1.78277,Xm=-.29227,rd=-.90649,Fs=1.97294,S1=Fs*rd,k1=Fs*Km,E1=Km*Xm-rd*Ww;function SF(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);e instanceof vn||(e=Bw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(E1*r+S1*t-k1*n)/(E1+S1-k1),a=r-i,o=(Fs*(n-i)-Xm*a)/rd,s=Math.sqrt(o*o+a*a)/(Fs*i*(1-i)),c=s?Math.atan2(o,a)*TF-120:NaN;return new Vi(c<0?c+360:c,s,i,e.opacity)}function _r(e,t,n,r){return arguments.length===1?SF(e):new Vi(e,t,n,r??1)}function Vi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nd(Vi,_r,Zm(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new Vi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*CF,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new vn(255*(t+n*(Ww*r+Km*i)),255*(t+n*(Xm*r+rd*i)),255*(t+n*(Fs*r)),this.opacity)}}));function kF(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function EF(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return kF((n-r/t)*t,o,i,a,s)}}const id=e=>()=>e;function zw(e,t){return function(n){return e+n*t}}function OF(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 MF(e,t){var n=t-e;return n?zw(e,n>180||n<-180?n-360*Math.round(n/360):n):id(isNaN(e)?t:e)}function $F(e){return(e=+e)==1?Na:function(t,n){return n-t?OF(t,n,e):id(isNaN(t)?n:t)}}function Na(e,t){var n=t-e;return n?zw(e,n):id(isNaN(e)?t:e)}const O1=function e(t){var n=$F(t);function r(i,a){var o=n((i=Qa(i)).r,(a=Qa(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=Na(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r}(1);function AF(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=Qa(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(c){return s.r=r(c),s.g=i(c),s.b=a(c),s+""}}}var RF=AF(EF);function jF(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 PF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function IF(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Qm(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function DF(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function NF(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]=Qm(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var qh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mf=new RegExp(qh.source,"g");function LF(e){return function(){return e}}function FF(e){return function(t){return e(t)+""}}function Hw(e,t){var n=qh.lastIndex=Mf.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=qh.exec(e))&&(i=Mf.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Wl(r,i)})),n=Mf.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?FF(c[0].x):LF(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)s[(d=c[u]).i]=d.x(l);return s.join("")})}function Qm(e,t){var n=typeof t,r;return t==null||n==="boolean"?id(t):(n==="number"?Wl:n==="string"?(r=Ls(t))?(t=r,O1):Hw:t instanceof Ls?O1:t instanceof Date?DF:PF(t)?jF:Array.isArray(t)?IF:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NF:Wl)(e,t)}function BF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Vw(e){return function t(n){n=+n;function r(i,a){var o=e((i=_r(i)).h,(a=_r(a)).h),s=Na(i.s,a.s),c=Na(i.l,a.l),l=Na(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r}(1)}Vw(MF);var Jm=Vw(Na),UF=Gr,WF=Pn,zF=Qn,HF="[object String]";function VF(e){return typeof e=="string"||!WF(e)&&zF(e)&&UF(e)==HF}var qF=VF;const YF=Ht(qF);function GF(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var qw=GF;const Me=Ht(qw);function ol(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ZF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function eg(e){let t,n,r;e.length!==2?(t=ol,n=(s,c)=>ol(e(s),c),r=(s,c)=>e(s)-c):(t=e===ol||e===ZF?e:KF,n=e,r=e);function i(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<0?l=d+1:u=d}while(l<u)}return l}function a(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function o(s,c,l=0,u=s.length){const d=i(s,c,l,u-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:o,right:a}}function KF(){return 0}function XF(e){return e===null?NaN:+e}const QF=eg(ol),JF=QF.right;eg(XF).center;class M1 extends Map{constructor(t,n=nB){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($1(this,t))}has(t){return super.has($1(this,t))}set(t,n){return super.set(eB(this,t),n)}delete(t){return super.delete(tB(this,t))}}function $1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tB({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nB(e){return e!==null&&typeof e=="object"?e.valueOf():e}const rB=Math.sqrt(50),iB=Math.sqrt(10),aB=Math.sqrt(2);function zl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=rB?10:a>=iB?5:a>=aB?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?zl(e,t,n*2):[s,c,l]}function Yh(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?zl(t,e,n):zl(e,t,n);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(i+l)/-o;else for(let l=0;l<s;++l)c[l]=(i+l)*o;return c}function Gh(e,t,n){return t=+t,e=+e,n=+n,zl(e,t,n)[2]}function Zh(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Gh(t,e,n):Gh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function oB(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 ua(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const A1=Symbol("implicit");function Ni(){var e=new M1,t=[],n=[],r=A1;function i(a){let o=e.get(a);if(o===void 0){if(r!==A1)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new M1;for(const o of a)e.has(o)||e.set(o,t.push(o)-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 Ni(t,n).unknown(r)},ua.apply(i,arguments),i}function tg(){var e=Ni().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,g=h?i:r,p=h?r:i;a=(p-g)/Math.max(1,f-c+l*2),s&&(a=Math.floor(a)),g+=(p-g-a*(f-c))*u,o=a*(1-c),s&&(g=Math.round(g),o=Math.round(o));var v=oB(f).map(function(w){return g+a*w});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return tg(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},ua.apply(d(),arguments)}function Yw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Yw(t())},e}function sB(){return Yw(tg.apply(null,arguments).paddingInner(1))}function cB(e){return function(){return e}}function lB(e){return+e}var R1=[0,1];function Ma(e){return e}function Kh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cB(isNaN(t)?NaN:.5)}function uB(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function dB(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Kh(i,r),a=n(o,a)):(r=Kh(r,i),a=n(a,o)),function(s){return a(r(s))}}function fB(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Kh(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var c=JF(e,s,1,r)-1;return a[c](i[c](s))}}function ad(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ng(){var e=R1,t=R1,n=Qm,r,i,a,o=Ma,s,c,l;function u(){var f=Math.min(e.length,t.length);return o!==Ma&&(o=uB(e[0],e[f-1])),s=f>2?fB:dB,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?a:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((l||(l=s(t,e.map(r),Wl)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,lB),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=BF,u()},d.clamp=function(f){return arguments.length?(o=f?!0:Ma,u()):o!==Ma},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function Gw(){return ng()(Ma,Ma)}function hB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ja(e){return e=Hl(Math.abs(e)),e?e[1]:NaN}function pB(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function mB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bs(e){if(!(t=gB.exec(e)))throw new Error("invalid format: "+e);var t;return new rg({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]})}Bs.prototype=rg.prototype;function rg(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+""}rg.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 vB(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 Zw;function yB(e,t){var n=Hl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Zw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Hl(e,Math.max(0,t+a-1))[0]}function j1(e,t){var n=Hl(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 P1={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:hB,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return j1(e*100,t)},r:j1,s:yB,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function I1(e){return e}var D1=Array.prototype.map,N1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bB(e){var t=e.grouping===void 0||e.thousands===void 0?I1:pB(D1.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?I1:mB(D1.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=Bs(d);var f=d.fill,h=d.align,g=d.sign,p=d.symbol,v=d.zero,w=d.width,_=d.comma,x=d.precision,T=d.trim,b=d.type;b==="n"?(_=!0,b="g"):P1[b]||(x===void 0&&(x=12),T=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var S=p==="$"?n:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",R=p==="$"?r:/[%p]/.test(b)?o:"",M=P1[b],k=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function E(C){var O=S,$=R,A,P,D;if(b==="c")$=M(C)+$,C="";else{C=+C;var F=C<0||1/C<0;if(C=isNaN(C)?c:M(Math.abs(C),x),T&&(C=vB(C)),F&&+C==0&&g!=="+"&&(F=!1),O=(F?g==="("?g:s:g==="-"||g==="("?"":g)+O,$=(b==="s"?N1[8+Zw/3]:"")+$+(F&&g==="("?")":""),k){for(A=-1,P=C.length;++A<P;)if(D=C.charCodeAt(A),48>D||D>57){$=(D===46?i+C.slice(A+1):C.slice(A))+$,C=C.slice(0,A);break}}}_&&!v&&(C=t(C,1/0));var q=O.length+C.length+$.length,z=q<w?new Array(w-q+1).join(f):"";switch(_&&v&&(C=t(z+C,z.length?w-$.length:1/0),z=""),h){case"<":C=O+C+$+z;break;case"=":C=O+z+C+$;break;case"^":C=z.slice(0,q=z.length>>1)+O+C+$+z.slice(q);break;default:C=z+O+C+$;break}return a(C)}return E.toString=function(){return d+""},E}function u(d,f){var h=l((d=Bs(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ja(f)/3)))*3,p=Math.pow(10,-g),v=N1[8+g/3];return function(w){return h(p*w)+v}}return{format:l,formatPrefix:u}}var Fc,fc,Kw;xB({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function xB(e){return Fc=bB(e),fc=Fc.format,Kw=Fc.formatPrefix,Fc}function _B(e){return Math.max(0,-Ja(Math.abs(e)))}function wB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ja(t)/3)))*3-Ja(Math.abs(e)))}function CB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ja(t)-Ja(e))+1}function TB(e,t,n,r){var i=Zh(e,t,n),a;switch(r=Bs(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=wB(i,o))&&(r.precision=a),Kw(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=CB(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=_B(i))&&(r.precision=a-(r.type==="%")*2);break}}return fc(r)}function Xw(e){var t=e.domain;return e.ticks=function(n){var r=t();return Yh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return TB(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,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=Gh(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Qw(){var e=Gw();return e.copy=function(){return ad(e,Qw())},ua.apply(e,arguments),Xw(e)}function Jw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function L1(e){return Math.log(e)}function F1(e){return Math.exp(e)}function SB(e){return-Math.log(-e)}function kB(e){return-Math.exp(-e)}function EB(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OB(e){return e===10?EB:e===Math.E?Math.exp:t=>Math.pow(e,t)}function MB(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 B1(e){return(t,n)=>-e(-t,n)}function $B(e){const t=e(L1,F1),n=t.domain;let r=10,i,a;function o(){return i=MB(r),a=OB(r),n()[0]<0?(i=B1(i),a=B1(a),e(SB,kB)):e(L1,F1),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),h=i(u),g,p;const v=s==null?10:+s;let w=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),l>0){for(;f<=h;++f)for(g=1;g<r;++g)if(p=f<0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;w.push(p)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(p=f>0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;w.push(p)}w.length*2<v&&(w=Yh(l,u,v))}else w=Yh(f,h,Math.min(h-f,v)).map(a);return d?w.reverse():w},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Bs(c)).precision==null&&(c.trim=!0),c=fc(c)),s===1/0)return c;const l=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(Jw(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function e4(){const e=$B(ng()).domain([1,10]);return e.copy=()=>ad(e,e4()).base(e.base()),ua.apply(e,arguments),e}function U1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function W1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function AB(e){var t=1,n=e(U1(t),W1(t));return n.constant=function(r){return arguments.length?e(U1(t=+r),W1(t)):t},Xw(n)}function t4(){var e=AB(ng());return e.copy=function(){return ad(e,t4()).constant(e.constant())},ua.apply(e,arguments)}const $f=new Date,Af=new Date;function nn(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 o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=a=>nn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>($f.setTime(+a),Af.setTime(+o),e($f),e(Af),Math.floor(n($f,Af))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Vl=nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Vl);Vl.range;const Lr=1e3,Vn=Lr*60,Fr=Vn*60,qr=Fr*24,ig=qr*7,z1=qr*30,Rf=qr*365,Li=nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCSeconds());Li.range;const ag=nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());ag.range;const og=nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());og.range;const sg=nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getHours());sg.range;const cg=nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getUTCHours());cg.range;const lg=nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/qr,e=>e.getDate()-1);lg.range;const n4=nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>e.getUTCDate()-1);n4.range;const r4=nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>Math.floor(e/qr));r4.range;function da(e){return nn(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())*Vn)/ig)}const ug=da(0),RB=da(1),jB=da(2),PB=da(3),IB=da(4),DB=da(5),NB=da(6);ug.range;RB.range;jB.range;PB.range;IB.range;DB.range;NB.range;function fa(e){return nn(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)/ig)}const dg=fa(0),LB=fa(1),FB=fa(2),BB=fa(3),UB=fa(4),WB=fa(5),zB=fa(6);dg.range;LB.range;FB.range;BB.range;UB.range;WB.range;zB.range;const fg=nn(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());fg.range;const hg=nn(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());hg.range;const od=nn(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());od.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nn(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)});od.range;const sd=nn(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());sd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nn(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)});sd.range;function i4(e,t,n,r,i,a){const o=[[Li,1,Lr],[Li,5,5*Lr],[Li,15,15*Lr],[Li,30,30*Lr],[a,1,Vn],[a,5,5*Vn],[a,15,15*Vn],[a,30,30*Vn],[i,1,Fr],[i,3,3*Fr],[i,6,6*Fr],[i,12,12*Fr],[r,1,qr],[r,2,2*qr],[n,1,ig],[t,1,z1],[t,3,3*z1],[e,1,Rf]];function s(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const h=d&&typeof d.range=="function"?d:c(l,u,d),g=h?h.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,h=eg(([,,v])=>v).right(o,f);if(h===o.length)return e.every(Zh(l/Rf,u/Rf,d));if(h===0)return Vl.every(Math.max(Zh(l,u,d),1));const[g,p]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return g.every(p)}return[s,c]}const[HB,VB]=i4(sd,hg,dg,r4,cg,og),[qB,YB]=i4(od,fg,ug,lg,sg,ag);var jf=new Date,Pf=new Date;function en(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var c=[],l;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=function(a){return en(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return jf.setTime(+a),Pf.setTime(+o),e(jf),e(Pf),Math.floor(n(jf,Pf))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Us=en(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Us.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Us};Us.range;var ql=1e3,na=6e4,Yl=36e5,a4=864e5,o4=6048e5,Xh=en(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCSeconds()});Xh.range;var s4=en(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ql)},function(e,t){e.setTime(+e+t*na)},function(e,t){return(t-e)/na},function(e){return e.getMinutes()});s4.range;var c4=en(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ql-e.getMinutes()*na)},function(e,t){e.setTime(+e+t*Yl)},function(e,t){return(t-e)/Yl},function(e){return e.getHours()});c4.range;var pg=en(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/a4},function(e){return e.getDate()-1});pg.range;function ha(e){return en(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*na)/o4})}var Gl=ha(0),Ws=ha(1),l4=ha(2),u4=ha(3),ra=ha(4),d4=ha(5),f4=ha(6);Gl.range;Ws.range;l4.range;u4.range;ra.range;d4.range;f4.range;var h4=en(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});h4.range;var yi=en(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});yi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:en(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};yi.range;var p4=en(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*na)},function(e,t){return(t-e)/na},function(e){return e.getUTCMinutes()});p4.range;var m4=en(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Yl)},function(e,t){return(t-e)/Yl},function(e){return e.getUTCHours()});m4.range;var mg=en(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/a4},function(e){return e.getUTCDate()-1});mg.range;function pa(e){return en(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/o4})}var Zl=pa(0),zs=pa(1),g4=pa(2),v4=pa(3),ia=pa(4),y4=pa(5),b4=pa(6);Zl.range;zs.range;g4.range;v4.range;ia.range;y4.range;b4.range;var x4=en(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});x4.range;var bi=en(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});bi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:en(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};bi.range;function If(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 Df(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 Uo(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function GB(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Wo(i),u=zo(i),d=Wo(a),f=zo(a),h=Wo(o),g=zo(o),p=Wo(s),v=zo(s),w=Wo(c),_=zo(c),x={a:F,A:q,b:z,B:U,c:null,d:Z1,e:Z1,f:vU,g:EU,G:MU,H:pU,I:mU,j:gU,L:_4,m:yU,M:bU,p:G,q:ee,Q:Q1,s:J1,S:xU,u:_U,U:wU,V:CU,w:TU,W:SU,x:null,X:null,y:kU,Y:OU,Z:$U,"%":X1},T={a:ie,A:J,b:X,B:K,c:null,d:K1,e:K1,f:PU,g:HU,G:qU,H:AU,I:RU,j:jU,L:C4,m:IU,M:DU,p:re,q:N,Q:Q1,s:J1,S:NU,u:LU,U:FU,V:BU,w:UU,W:WU,x:null,X:null,y:zU,Y:VU,Z:YU,"%":X1},b={a:E,A:C,b:O,B:$,c:A,d:Y1,e:Y1,f:uU,g:q1,G:V1,H:G1,I:G1,j:oU,L:lU,m:aU,M:sU,p:k,q:iU,Q:fU,s:hU,S:cU,u:JB,U:eU,V:tU,w:QB,W:nU,x:P,X:D,y:q1,Y:V1,Z:rU,"%":dU};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),T.x=S(n,T),T.X=S(r,T),T.c=S(t,T);function S(I,L){return function(V){var j=[],Z=-1,Q=0,te=I.length,he,we,me;for(V instanceof Date||(V=new Date(+V));++Z<te;)I.charCodeAt(Z)===37&&(j.push(I.slice(Q,Z)),(we=H1[he=I.charAt(++Z)])!=null?he=I.charAt(++Z):we=he==="e"?" ":"0",(me=L[he])&&(he=me(V,we)),j.push(he),Q=Z+1);return j.push(I.slice(Q,Z)),j.join("")}}function R(I,L){return function(V){var j=Uo(1900,void 0,1),Z=M(j,I,V+="",0),Q,te;if(Z!=V.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(L&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(Q=Df(Uo(j.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?zs.ceil(Q):zs(Q),Q=mg.offset(Q,(j.V-1)*7),j.y=Q.getUTCFullYear(),j.m=Q.getUTCMonth(),j.d=Q.getUTCDate()+(j.w+6)%7):(Q=If(Uo(j.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Ws.ceil(Q):Ws(Q),Q=pg.offset(Q,(j.V-1)*7),j.y=Q.getFullYear(),j.m=Q.getMonth(),j.d=Q.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),te="Z"in j?Df(Uo(j.y,0,1)).getUTCDay():If(Uo(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(te+5)%7:j.w+j.U*7-(te+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,Df(j)):If(j)}}function M(I,L,V,j){for(var Z=0,Q=L.length,te=V.length,he,we;Z<Q;){if(j>=te)return-1;if(he=L.charCodeAt(Z++),he===37){if(he=L.charAt(Z++),we=b[he in H1?L.charAt(Z++):he],!we||(j=we(I,V,j))<0)return-1}else if(he!=V.charCodeAt(j++))return-1}return j}function k(I,L,V){var j=l.exec(L.slice(V));return j?(I.p=u.get(j[0].toLowerCase()),V+j[0].length):-1}function E(I,L,V){var j=h.exec(L.slice(V));return j?(I.w=g.get(j[0].toLowerCase()),V+j[0].length):-1}function C(I,L,V){var j=d.exec(L.slice(V));return j?(I.w=f.get(j[0].toLowerCase()),V+j[0].length):-1}function O(I,L,V){var j=w.exec(L.slice(V));return j?(I.m=_.get(j[0].toLowerCase()),V+j[0].length):-1}function $(I,L,V){var j=p.exec(L.slice(V));return j?(I.m=v.get(j[0].toLowerCase()),V+j[0].length):-1}function A(I,L,V){return M(I,t,L,V)}function P(I,L,V){return M(I,n,L,V)}function D(I,L,V){return M(I,r,L,V)}function F(I){return o[I.getDay()]}function q(I){return a[I.getDay()]}function z(I){return c[I.getMonth()]}function U(I){return s[I.getMonth()]}function G(I){return i[+(I.getHours()>=12)]}function ee(I){return 1+~~(I.getMonth()/3)}function ie(I){return o[I.getUTCDay()]}function J(I){return a[I.getUTCDay()]}function X(I){return c[I.getUTCMonth()]}function K(I){return s[I.getUTCMonth()]}function re(I){return i[+(I.getUTCHours()>=12)]}function N(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var L=S(I+="",x);return L.toString=function(){return I},L},parse:function(I){var L=R(I+="",!1);return L.toString=function(){return I},L},utcFormat:function(I){var L=S(I+="",T);return L.toString=function(){return I},L},utcParse:function(I){var L=R(I+="",!0);return L.toString=function(){return I},L}}}var H1={"-":"",_:" ",0:"0"},cn=/^\s*\d+/,ZB=/^%/,KB=/[\\^$*+?|[\]().{}]/g;function ht(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 XB(e){return e.replace(KB,"\\$&")}function Wo(e){return new RegExp("^(?:"+e.map(XB).join("|")+")","i")}function zo(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function QB(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function JB(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V1(e,t,n){var r=cn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rU(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 iU(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function aU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Y1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oU(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function G1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lU(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uU(e,t,n){var r=cn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dU(e,t,n){var r=ZB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fU(e,t,n){var r=cn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function hU(e,t,n){var r=cn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Z1(e,t){return ht(e.getDate(),t,2)}function pU(e,t){return ht(e.getHours(),t,2)}function mU(e,t){return ht(e.getHours()%12||12,t,2)}function gU(e,t){return ht(1+pg.count(yi(e),e),t,3)}function _4(e,t){return ht(e.getMilliseconds(),t,3)}function vU(e,t){return _4(e,t)+"000"}function yU(e,t){return ht(e.getMonth()+1,t,2)}function bU(e,t){return ht(e.getMinutes(),t,2)}function xU(e,t){return ht(e.getSeconds(),t,2)}function _U(e){var t=e.getDay();return t===0?7:t}function wU(e,t){return ht(Gl.count(yi(e)-1,e),t,2)}function w4(e){var t=e.getDay();return t>=4||t===0?ra(e):ra.ceil(e)}function CU(e,t){return e=w4(e),ht(ra.count(yi(e),e)+(yi(e).getDay()===4),t,2)}function TU(e){return e.getDay()}function SU(e,t){return ht(Ws.count(yi(e)-1,e),t,2)}function kU(e,t){return ht(e.getFullYear()%100,t,2)}function EU(e,t){return e=w4(e),ht(e.getFullYear()%100,t,2)}function OU(e,t){return ht(e.getFullYear()%1e4,t,4)}function MU(e,t){var n=e.getDay();return e=n>=4||n===0?ra(e):ra.ceil(e),ht(e.getFullYear()%1e4,t,4)}function $U(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function K1(e,t){return ht(e.getUTCDate(),t,2)}function AU(e,t){return ht(e.getUTCHours(),t,2)}function RU(e,t){return ht(e.getUTCHours()%12||12,t,2)}function jU(e,t){return ht(1+mg.count(bi(e),e),t,3)}function C4(e,t){return ht(e.getUTCMilliseconds(),t,3)}function PU(e,t){return C4(e,t)+"000"}function IU(e,t){return ht(e.getUTCMonth()+1,t,2)}function DU(e,t){return ht(e.getUTCMinutes(),t,2)}function NU(e,t){return ht(e.getUTCSeconds(),t,2)}function LU(e){var t=e.getUTCDay();return t===0?7:t}function FU(e,t){return ht(Zl.count(bi(e)-1,e),t,2)}function T4(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function BU(e,t){return e=T4(e),ht(ia.count(bi(e),e)+(bi(e).getUTCDay()===4),t,2)}function UU(e){return e.getUTCDay()}function WU(e,t){return ht(zs.count(bi(e)-1,e),t,2)}function zU(e,t){return ht(e.getUTCFullYear()%100,t,2)}function HU(e,t){return e=T4(e),ht(e.getUTCFullYear()%100,t,2)}function VU(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function qU(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ia(e):ia.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function YU(){return"+0000"}function X1(){return"%"}function Q1(e){return+e}function J1(e){return Math.floor(+e/1e3)}var wa,cd,S4,k4,E4;GU({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 GU(e){return wa=GB(e),cd=wa.format,S4=wa.parse,k4=wa.utcFormat,E4=wa.utcParse,wa}function ZU(e){return new Date(e)}function KU(e){return e instanceof Date?+e:+new Date(+e)}function gg(e,t,n,r,i,a,o,s,c,l){var u=Gw(),d=u.invert,f=u.domain,h=l(".%L"),g=l(":%S"),p=l("%I:%M"),v=l("%I %p"),w=l("%a %d"),_=l("%b %d"),x=l("%B"),T=l("%Y");function b(S){return(c(S)<S?h:s(S)<S?g:o(S)<S?p:a(S)<S?v:r(S)<S?i(S)<S?w:_:n(S)<S?x:T)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,KU)):f().map(ZU)},u.ticks=function(S){var R=f();return e(R[0],R[R.length-1],S??10)},u.tickFormat=function(S,R){return R==null?b:l(R)},u.nice=function(S){var R=f();return(!S||typeof S.range!="function")&&(S=t(R[0],R[R.length-1],S??10)),S?f(Jw(R,S)):u},u.copy=function(){return ad(u,gg(e,t,n,r,i,a,o,s,c,l))},u}function XU(){return ua.apply(gg(qB,YB,od,fg,ug,lg,sg,ag,Li,cd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QU(){return ua.apply(gg(HB,VB,sd,hg,dg,n4,cg,og,Li,k4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Je(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const O4=Je("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),M4=Je("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$4=Je("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),A4=Je("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),R4=Je("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),j4=Je("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),P4=Je("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),I4=Je("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),vg=Je("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),JU=Je("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),At=e=>RF(e[e.length-1]);var ld=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Je);const eW=At(ld);var ud=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Je);const tW=At(ud);var dd=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Je);const nW=At(dd);var fd=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Je);const rW=At(fd);var hd=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Je);const iW=At(hd);var pd=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Je);const aW=At(pd);var md=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Je);const oW=At(md);var gd=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Je);const sW=At(gd);var vd=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Je);const cW=At(vd);var yd=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Je);const lW=At(yd);var bd=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Je);const uW=At(bd);var xd=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Je);const dW=At(xd);var _d=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Je);const fW=At(_d);var wd=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Je);const hW=At(wd);var Cd=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Je);const pW=At(Cd);var Td=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Je);const mW=At(Td);var Sd=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Je);const gW=At(Sd);var kd=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Je);const vW=At(kd);var Ed=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Je);const yW=At(Ed);var Od=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Je);const bW=At(Od);var Md=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Je);const xW=At(Md);var $d=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Je);const _W=At($d);var Ad=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Je);const wW=At(Ad);var Rd=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Je);const CW=At(Rd);var jd=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Je);const TW=At(jd);var Pd=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Je);const SW=At(Pd);var Id=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Je);const kW=At(Id);function EW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const OW=Jm(_r(300,.5,0),_r(-240,.5,1));var MW=Jm(_r(-100,.75,.35),_r(80,1.5,.8)),$W=Jm(_r(260,.75,.35),_r(80,1.5,.8)),Bc=_r();function AW(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Bc.h=360*e-100,Bc.s=1.5-1.5*t,Bc.l=.8-.9*t,Bc+""}var Uc=Qa(),RW=Math.PI/3,jW=Math.PI*2/3;function PW(e){var t;return e=(.5-e)*Math.PI,Uc.r=255*(t=Math.sin(e))*t,Uc.g=255*(t=Math.sin(e+RW))*t,Uc.b=255*(t=Math.sin(e+jW))*t,Uc+""}function IW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Dd(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const DW=Dd(Je("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var NW=Dd(Je("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),LW=Dd(Je("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),FW=Dd(Je("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),BW="__lodash_hash_undefined__";function UW(e){return this.__data__.set(e,BW),this}var WW=UW;function zW(e){return this.__data__.has(e)}var HW=zW,VW=Dm,qW=WW,YW=HW;function Kl(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new VW;++t<n;)this.add(e[t])}Kl.prototype.add=Kl.prototype.push=qW;Kl.prototype.has=YW;var yg=Kl;function GW(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var ZW=GW;function KW(e){return e!==e}var XW=KW;function QW(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var JW=QW,ez=ZW,tz=XW,nz=JW;function rz(e,t,n){return t===t?nz(e,t,n):ez(e,tz,n)}var iz=rz,az=iz;function oz(e,t){var n=e==null?0:e.length;return!!n&&az(e,t,0)>-1}var D4=oz;function sz(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var N4=sz;function cz(e,t){return e.has(t)}var bg=cz,lz=yg,uz=D4,dz=N4,fz=td,hz=go,pz=bg,mz=200;function gz(e,t,n,r){var i=-1,a=uz,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=fz(t,hz(n))),r?(a=dz,o=!1):t.length>=mz&&(a=pz,o=!1,t=new lz(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else a(t,d,r)||c.push(u)}return c}var vz=gz,yz=vz,bz=qm,xz=Ew,_z=bz(function(e,t){return xz(e)?yz(e,t):[]}),wz=_z;const L4=Ht(wz);function at(e){return function(){return e}}const ey=Math.abs,hn=Math.atan2,Ei=Math.cos,Cz=Math.max,Nf=Math.min,ur=Math.sin,$a=Math.sqrt,mn=1e-12,Hs=Math.PI,Xl=Hs/2,sl=2*Hs;function Tz(e){return e>1?0:e<-1?Hs:Math.acos(e)}function ty(e){return e>=1?Xl:e<=-1?-Xl:Math.asin(e)}const Qh=Math.PI,Jh=2*Qh,Ai=1e-6,Sz=Jh-Ai;function F4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return F4;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]}}let Ez=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?F4:kz(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,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}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 o=this._x1,s=this._y1,c=r-t,l=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Ai)if(!(Math.abs(d*c-l*u)>Ai)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=i-s,p=c*c+l*l,v=h*h+g*g,w=Math.sqrt(p),_=Math.sqrt(f),x=a*Math.tan((Qh-Math.acos((p+f-v)/(2*w*_)))/2),T=x/_,b=x/w;Math.abs(T-1)>Ai&&this._append`L${t+T*u},${n+T*d}`,this._append`A${a},${a},0,0,${+(d*h>u*g)},${this._x1=t+b*c},${this._y1=n+b*l}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=t+s,u=n+c,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Ai||Math.abs(this._y1-u)>Ai)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Jh+Jh),f>Sz?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>Ai&&this._append`A${r},${r},0,${+(f>=Qh)},${d},${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 xg(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 Ez(t)}function Oz(e){return e.innerRadius}function Mz(e){return e.outerRadius}function $z(e){return e.startAngle}function Az(e){return e.endAngle}function Rz(e){return e&&e.padAngle}function jz(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<mn))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Wc(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/$a(s*s+c*c),u=l*c,d=-l*s,f=e+u,h=t+d,g=n+u,p=r+d,v=(f+g)/2,w=(h+p)/2,_=g-f,x=p-h,T=_*_+x*x,b=i-a,S=f*p-g*h,R=(x<0?-1:1)*$a(Cz(0,b*b*T-S*S)),M=(S*x-_*R)/T,k=(-S*_-x*R)/T,E=(S*x+_*R)/T,C=(-S*_+x*R)/T,O=M-v,$=k-w,A=E-v,P=C-w;return O*O+$*$>A*A+P*P&&(M=E,k=C),{cx:M,cy:k,x01:-u,y01:-d,x11:M*(i/b-1),y11:k*(i/b-1)}}function Pz(){var e=Oz,t=Mz,n=at(0),r=null,i=$z,a=Az,o=Rz,s=null,c=xg(l);function l(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-Xl,p=a.apply(this,arguments)-Xl,v=ey(p-g),w=p>g;if(s||(s=u=c()),h<f&&(d=h,h=f,f=d),!(h>mn))s.moveTo(0,0);else if(v>sl-mn)s.moveTo(h*Ei(g),h*ur(g)),s.arc(0,0,h,g,p,!w),f>mn&&(s.moveTo(f*Ei(p),f*ur(p)),s.arc(0,0,f,p,g,w));else{var _=g,x=p,T=g,b=p,S=v,R=v,M=o.apply(this,arguments)/2,k=M>mn&&(r?+r.apply(this,arguments):$a(f*f+h*h)),E=Nf(ey(h-f)/2,+n.apply(this,arguments)),C=E,O=E,$,A;if(k>mn){var P=ty(k/f*ur(M)),D=ty(k/h*ur(M));(S-=P*2)>mn?(P*=w?1:-1,T+=P,b-=P):(S=0,T=b=(g+p)/2),(R-=D*2)>mn?(D*=w?1:-1,_+=D,x-=D):(R=0,_=x=(g+p)/2)}var F=h*Ei(_),q=h*ur(_),z=f*Ei(b),U=f*ur(b);if(E>mn){var G=h*Ei(x),ee=h*ur(x),ie=f*Ei(T),J=f*ur(T),X;if(v<Hs)if(X=jz(F,q,ie,J,G,ee,z,U)){var K=F-X[0],re=q-X[1],N=G-X[0],I=ee-X[1],L=1/ur(Tz((K*N+re*I)/($a(K*K+re*re)*$a(N*N+I*I)))/2),V=$a(X[0]*X[0]+X[1]*X[1]);C=Nf(E,(f-V)/(L-1)),O=Nf(E,(h-V)/(L+1))}else C=O=0}R>mn?O>mn?($=Wc(ie,J,F,q,h,O,w),A=Wc(G,ee,z,U,h,O,w),s.moveTo($.cx+$.x01,$.cy+$.y01),O<E?s.arc($.cx,$.cy,O,hn($.y01,$.x01),hn(A.y01,A.x01),!w):(s.arc($.cx,$.cy,O,hn($.y01,$.x01),hn($.y11,$.x11),!w),s.arc(0,0,h,hn($.cy+$.y11,$.cx+$.x11),hn(A.cy+A.y11,A.cx+A.x11),!w),s.arc(A.cx,A.cy,O,hn(A.y11,A.x11),hn(A.y01,A.x01),!w))):(s.moveTo(F,q),s.arc(0,0,h,_,x,!w)):s.moveTo(F,q),!(f>mn)||!(S>mn)?s.lineTo(z,U):C>mn?($=Wc(z,U,G,ee,f,-C,w),A=Wc(F,q,ie,J,f,-C,w),s.lineTo($.cx+$.x01,$.cy+$.y01),C<E?s.arc($.cx,$.cy,C,hn($.y01,$.x01),hn(A.y01,A.x01),!w):(s.arc($.cx,$.cy,C,hn($.y01,$.x01),hn($.y11,$.x11),!w),s.arc(0,0,f,hn($.cy+$.y11,$.cx+$.x11),hn(A.cy+A.y11,A.cx+A.x11),w),s.arc(A.cx,A.cy,C,hn(A.y11,A.x11),hn(A.y01,A.x01),!w))):s.arc(0,0,f,b,T,w)}if(s.closePath(),u)return s=null,u+""||null}return l.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Hs/2;return[Ei(d)*u,ur(d)*u]},l.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:at(+u),l):e},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:at(+u),l):t},l.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:at(+u),l):n},l.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:at(+u),l):r},l.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:at(+u),l):i},l.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:at(+u),l):a},l.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:at(+u),l):o},l.context=function(u){return arguments.length?(s=u??null,l):s},l}function Nd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function B4(e){this._context=e}B4.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 _g(e){return new B4(e)}function U4(e){return e[0]}function W4(e){return e[1]}function wg(e,t){var n=at(!0),r=null,i=_g,a=null,o=xg(s);e=typeof e=="function"?e:e===void 0?U4:at(e),t=typeof t=="function"?t:t===void 0?W4:at(t);function s(c){var l,u=(c=Nd(c)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l<u&&n(d=c[l],l,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,l,c),+t(d,l,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:at(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:at(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:at(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),s):r},s}function Iz(e,t,n){var r=null,i=at(!0),a=null,o=_g,s=null,c=xg(l);e=typeof e=="function"?e:e===void 0?U4:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?W4:at(+n);function l(d){var f,h,g,p=(d=Nd(d)).length,v,w=!1,_,x=new Array(p),T=new Array(p);for(a==null&&(s=o(_=c())),f=0;f<=p;++f){if(!(f<p&&i(v=d[f],f,d))===w)if(w=!w)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=h;--g)s.point(x[g],T[g]);s.lineEnd(),s.areaEnd()}w&&(x[f]=+e(v,f,d),T[f]=+t(v,f,d),s.point(r?+r(v,f,d):x[f],n?+n(v,f,d):T[f]))}if(_)return s=null,_+""||null}function u(){return wg().defined(i).curve(o).context(a)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),l):o},l.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),l):a},l}function Dz(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Nz(e){return e}function Lz(){var e=Nz,t=Dz,n=null,r=at(0),i=at(sl),a=at(0);function o(s){var c,l=(s=Nd(s)).length,u,d,f=0,h=new Array(l),g=new Array(l),p=+r.apply(this,arguments),v=Math.min(sl,Math.max(-sl,i.apply(this,arguments)-p)),w,_=Math.min(Math.abs(v)/l,a.apply(this,arguments)),x=_*(v<0?-1:1),T;for(c=0;c<l;++c)(T=g[h[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?h.sort(function(b,S){return t(g[b],g[S])}):n!=null&&h.sort(function(b,S){return n(s[b],s[S])}),c=0,d=f?(v-l*x)/f:0;c<l;++c,p=w)u=h[c],T=g[u],w=p+(T>0?T*d:0)+x,g[u]={data:s[u],index:c,value:T,startAngle:p,endAngle:w,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:at(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:at(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:at(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:at(+s),o):a},o}function xi(){}function Ql(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 Ld(e){this._context=e}Ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ql(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:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fz(e){return new Ld(e)}function z4(e){this._context=e}z4.prototype={areaStart:xi,areaEnd:xi,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:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bz(e){return new z4(e)}function H4(e){this._context=e}H4.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:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uz(e){return new H4(e)}function V4(e,t){this._basis=new Ld(e),this._beta=t}V4.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Wz=function e(t){function n(r){return t===1?new Ld(r):new V4(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Jl(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Cg(e,t){this._context=e,this._k=(1-t)/6}Cg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Jl(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Jl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zz=function e(t){function n(r){return new Cg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tg(e,t){this._context=e,this._k=(1-t)/6}Tg.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Jl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hz=function e(t){function n(r){return new Tg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Sg(e,t){this._context=e,this._k=(1-t)/6}Sg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vz=function e(t){function n(r){return new Sg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function kg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>mn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>mn){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function q4(e,t){this._context=e,this._alpha=t}q4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:kg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qz=function e(t){function n(r){return t?new q4(r,t):new Cg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Y4(e,t){this._context=e,this._alpha=t}Y4.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:kg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yz=function e(t){function n(r){return t?new Y4(r,t):new Tg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function G4(e,t){this._context=e,this._alpha=t}G4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gz=function e(t){function n(r){return t?new G4(r,t):new Sg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Z4(e){this._context=e}Z4.prototype={areaStart:xi,areaEnd:xi,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 Zz(e){return new Z4(e)}function ny(e){return e<0?-1:1}function ry(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ny(a)+ny(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function iy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lf(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function eu(e){this._context=e}eu.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:Lf(this,this._t0,iy(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,Lf(this,iy(this,n=ry(this,e,t)),n);break;default:Lf(this,this._t0,n=ry(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function K4(e){this._context=new X4(e)}(K4.prototype=Object.create(eu.prototype)).point=function(e,t){eu.prototype.point.call(this,t,e)};function X4(e){this._context=e}X4.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 Kz(e){return new eu(e)}function Xz(e){return new K4(e)}function Q4(e){this._context=e}Q4.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=ay(e),i=ay(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 ay(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[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 Qz(e){return new Q4(e)}function Fd(e,t){this._context=e,this._t=t}Fd.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 Jz(e){return new Fd(e,.5)}function eH(e){return new Fd(e,0)}function tH(e){return new Fd(e,1)}function oy(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function sy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nH(e,t){return e[t]}function rH(e){const t=[];return t.key=e,t}function iH(){var e=at([]),t=sy,n=oy,r=nH;function i(a){var o=Array.from(e.apply(this,arguments),rH),s,c=o.length,l=-1,u;for(const d of a)for(s=0,++l;s<c;++s)(o[s][l]=[0,+r(d,o[s].key,l,a)]).data=d;for(s=0,u=Nd(t(o));s<c;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:at(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:at(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?sy:typeof a=="function"?a:at(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??oy,i):n},i}function aH(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}var oH=dc,sH=Fw,cH=yo;function lH(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=oH(e,o);n(s,o)&&sH(a,cH(o,e),s)}return a}var uH=lH;function dH(e,t){return e!=null&&t in Object(e)}var fH=dH,hH=yo,pH=Zu,mH=Pn,gH=Qu,vH=Um,yH=bo;function bH(e,t,n){t=hH(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=yH(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&vH(i)&&gH(o,i)&&(mH(e)||pH(e)))}var xH=bH,_H=fH,wH=xH;function CH(e,t){return e!=null&&wH(e,t,_H)}var J4=CH,TH=uH,SH=J4;function kH(e,t){return TH(e,t,function(n,r){return SH(e,r)})}var EH=kH;function OH(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Eg=OH,cy=uo,MH=Zu,$H=Pn,ly=cy?cy.isConcatSpreadable:void 0;function AH(e){return $H(e)||MH(e)||!!(ly&&e&&e[ly])}var RH=AH,jH=Eg,PH=RH;function e3(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=PH),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?e3(s,t-1,n,r,i):jH(i,s):r||(i[i.length]=s)}return i}var t3=e3,IH=t3;function DH(e){var t=e==null?0:e.length;return t?IH(e,1):[]}var NH=DH,LH=NH,FH=Rw,BH=jw;function UH(e){return BH(FH(e,void 0,LH),e+"")}var n3=UH,WH=EH,zH=n3,HH=zH(function(e,t){return e==null?{}:WH(e,t)}),VH=HH;const qH=Ht(VH);function YH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var GH=YH,ZH=yg,KH=GH,XH=bg,QH=1,JH=2;function eV(e,t,n,r,i,a){var o=n&QH,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=n&JH?new ZH:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],p=t[d];if(r)var v=o?r(p,g,d,t,e,a):r(g,p,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!KH(t,function(w,_){if(!XH(h,_)&&(g===w||i(g,w,n,r,a)))return h.push(_)})){f=!1;break}}else if(!(g===p||i(g,p,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var r3=eV;function tV(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var nV=tV;function rV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Og=rV,uy=uo,dy=_w,iV=lc,aV=r3,oV=nV,sV=Og,cV=1,lV=2,uV="[object Boolean]",dV="[object Date]",fV="[object Error]",hV="[object Map]",pV="[object Number]",mV="[object RegExp]",gV="[object Set]",vV="[object String]",yV="[object Symbol]",bV="[object ArrayBuffer]",xV="[object DataView]",fy=uy?uy.prototype:void 0,Ff=fy?fy.valueOf:void 0;function _V(e,t,n,r,i,a,o){switch(n){case xV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case bV:return!(e.byteLength!=t.byteLength||!a(new dy(e),new dy(t)));case uV:case dV:case pV:return iV(+e,+t);case fV:return e.name==t.name&&e.message==t.message;case mV:case vV:return e==t+"";case hV:var s=oV;case gV:var c=r&cV;if(s||(s=sV),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=lV,o.set(e,t);var u=aV(s(e),s(t),r,i,a,o);return o.delete(e),u;case yV:if(Ff)return Ff.call(e)==Ff.call(t)}return!1}var wV=_V,CV=Eg,TV=Pn;function SV(e,t,n){var r=t(e);return TV(e)?r:CV(r,n(e))}var i3=SV;function kV(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var a3=kV;function EV(){return[]}var o3=EV,OV=a3,MV=o3,$V=Object.prototype,AV=$V.propertyIsEnumerable,hy=Object.getOwnPropertySymbols,RV=hy?function(e){return e==null?[]:(e=Object(e),OV(hy(e),function(t){return AV.call(e,t)}))}:MV,Mg=RV,jV=Tw,PV=jV(Object.keys,Object),IV=PV,DV=Bm,NV=IV,LV=Object.prototype,FV=LV.hasOwnProperty;function BV(e){if(!DV(e))return NV(e);var t=[];for(var n in Object(e))FV.call(e,n)&&n!="constructor"&&t.push(n);return t}var UV=BV,WV=$w,zV=UV,HV=mo;function VV(e){return HV(e)?WV(e):zV(e)}var hc=VV,qV=i3,YV=Mg,GV=hc;function ZV(e){return qV(e,GV,YV)}var s3=ZV,py=s3,KV=1,XV=Object.prototype,QV=XV.hasOwnProperty;function JV(e,t,n,r,i,a){var o=n&KV,s=py(e),c=s.length,l=py(t),u=l.length;if(c!=u&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:QV.call(t,f)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<c;){f=s[d];var w=e[f],_=t[f];if(r)var x=o?r(_,w,f,t,e,a):r(w,_,f,e,t,a);if(!(x===void 0?w===_||i(w,_,n,r,a):x)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var T=e.constructor,b=t.constructor;T!=b&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof b=="function"&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}var eq=JV,tq=la,nq=kr,rq=tq(nq,"DataView"),iq=rq,aq=la,oq=kr,sq=aq(oq,"Promise"),cq=sq,lq=la,uq=kr,dq=lq(uq,"Set"),c3=dq,fq=la,hq=kr,pq=fq(hq,"WeakMap"),mq=pq,ep=iq,tp=Im,np=cq,rp=c3,ip=mq,l3=Gr,_o=gw,my="[object Map]",gq="[object Object]",gy="[object Promise]",vy="[object Set]",yy="[object WeakMap]",by="[object DataView]",vq=_o(ep),yq=_o(tp),bq=_o(np),xq=_o(rp),_q=_o(ip),Ri=l3;(ep&&Ri(new ep(new ArrayBuffer(1)))!=by||tp&&Ri(new tp)!=my||np&&Ri(np.resolve())!=gy||rp&&Ri(new rp)!=vy||ip&&Ri(new ip)!=yy)&&(Ri=function(e){var t=l3(e),n=t==gq?e.constructor:void 0,r=n?_o(n):"";if(r)switch(r){case vq:return by;case yq:return my;case bq:return gy;case xq:return vy;case _q:return yy}return t});var Bd=Ri,Bf=Gu,wq=r3,Cq=wV,Tq=eq,xy=Bd,_y=Pn,wy=Ku,Sq=Hm,kq=1,Cy="[object Arguments]",Ty="[object Array]",zc="[object Object]",Eq=Object.prototype,Sy=Eq.hasOwnProperty;function Oq(e,t,n,r,i,a){var o=_y(e),s=_y(t),c=o?Ty:xy(e),l=s?Ty:xy(t);c=c==Cy?zc:c,l=l==Cy?zc:l;var u=c==zc,d=l==zc,f=c==l;if(f&&wy(e)){if(!wy(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Bf),o||Sq(e)?wq(e,t,n,r,i,a):Cq(e,t,c,n,r,i,a);if(!(n&kq)){var h=u&&Sy.call(e,"__wrapped__"),g=d&&Sy.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return a||(a=new Bf),i(p,v,n,r,a)}}return f?(a||(a=new Bf),Tq(e,t,n,r,i,a)):!1}var Mq=Oq,$q=Mq,ky=Qn;function u3(e,t,n,r,i){return e===t?!0:e==null||t==null||!ky(e)&&!ky(t)?e!==e&&t!==t:$q(e,t,n,r,u3,i)}var $g=u3,Aq=$g;function Rq(e,t){return Aq(e,t)}var jq=Rq;const Pq=Ht(jq);var Iq={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ap(e,t)}function Ud(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Dq=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],Nq=function(e,t){return qn({},t,e)},Lq=function(e,t){var n=gL({},e,t);return Dq.forEach(function(r){Qo(n,r,Nq(xr(n,r),n.text))}),n},d3=m.createContext(),f3=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=m.useMemo(function(){var s=YF(a)?$m[a]:a;return{animate:r,config:s}},[r,a]);return y.jsx(d3.Provider,{value:o,children:t})},Ey={animate:H.bool,motionConfig:H.oneOfType([H.oneOf(Object.keys($m)),H.shape({mass:H.number,tension:H.number,friction:H.number,clamp:H.bool,precision:H.number,velocity:H.number,duration:H.number,easing:H.func})])};f3.propTypes={children:H.node.isRequired,animate:Ey.animate,config:Ey.motionConfig};var kn=function(){return m.useContext(d3)},Ag=function(e){var t=kn(),n=t.animate,r=t.config,i=function(s){var c=m.useRef();return m.useEffect(function(){c.current=s},[s]),c.current}(e),a=m.useMemo(function(){return Hw(i,e)},[i,e]),o=Sr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return vi(o,a)},Fq={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Me(ld),PRGn:Me(ud),PiYG:Me(dd),PuOr:Me(fd),RdBu:Me(hd),RdGy:Me(pd),RdYlBu:Me(md),RdYlGn:Me(gd),spectral:Me(vd),blues:Me($d),greens:Me(Ad),greys:Me(Rd),oranges:Me(Id),purples:Me(jd),reds:Me(Pd),BuGn:Me(yd),BuPu:Me(bd),GnBu:Me(xd),OrRd:Me(_d),PuBuGn:Me(wd),PuBu:Me(Cd),PuRd:Me(Td),RdPu:Me(Sd),YlGnBu:Me(kd),YlGn:Me(Ed),YlOrBr:Me(Od),YlOrRd:Me(Md)},Bq=Object.keys(Fq);Me(ld),Me(ud),Me(dd),Me(fd),Me(hd),Me(pd),Me(md),Me(gd),Me(vd),Me($d),Me(Ad),Me(Rd),Me(Id),Me(jd),Me(Pd),Me(yd),Me(bd),Me(xd),Me(_d),Me(wd),Me(Cd),Me(Td),Me(Sd),Me(kd),Me(Ed),Me(Od),Me(Md);H.oneOfType([H.oneOf(Bq),H.func,H.arrayOf(H.string)]);var op={basis:Fz,basisClosed:Bz,basisOpen:Uz,bundle:Wz,cardinal:zz,cardinalClosed:Hz,cardinalOpen:Vz,catmullRom:qz,catmullRomClosed:Yz,catmullRomOpen:Gz,linear:_g,linearClosed:Zz,monotoneX:Kz,monotoneY:Xz,natural:Qz,step:Jz,stepAfter:tH,stepBefore:eH},Rg=Object.keys(op);Rg.filter(function(e){return e.endsWith("Closed")});L4(Rg,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");L4(Rg,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var h3=function(e){if(!op[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return op[e]};H.shape({top:H.number,right:H.number,bottom:H.number,left:H.number}).isRequired;var Uq=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];H.oneOf(Uq);Ni(vg);var p3={top:0,right:0,bottom:0,left:0},pc=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=qn({},p3,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},m3=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return m.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Wq=function(e){return m.useMemo(function(){return Lq(Iq,e)},[e])},zq=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?cd(e.slice("5")):fc(e):function(t){return""+t}},eo=function(e){return m.useMemo(function(){return zq(e)},[e])},g3=m.createContext(),Hq={},v3=function(e){var t=e.theme,n=t===void 0?Hq:t,r=e.children,i=Wq(n);return y.jsx(g3.Provider,{value:i,children:r})};v3.propTypes={children:H.node.isRequired,theme:H.object};var Tt=function(){return m.useContext(g3)},Vq=["outlineWidth","outlineColor","outlineOpacity"],jg=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Ud(e,Vq)},y3=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};y3.propTypes={children:H.node.isRequired,condition:H.bool.isRequired,wrapper:H.element.isRequired};var qq={position:"relative"},mc=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=m.useRef(null);return y.jsx(v3,{theme:n,children:y.jsx(f3,{animate:s,config:c,children:y.jsx(QR,{container:l,children:y.jsxs(y3,{condition:i,wrapper:y.jsx("div",{style:qq,ref:l}),children:[t,o&&y.jsx(XR,{})]})})})})};mc.propTypes={children:H.element.isRequired,isInteractive:H.bool,renderWrapper:H.bool,theme:H.object,animate:H.bool,motionConfig:H.string};H.func.isRequired,H.bool,H.bool,H.object.isRequired,H.bool.isRequired,H.string;var wo=function(e){var t=e.children,n=m3(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};wo.propTypes={children:H.func.isRequired};var Yq=["id","colors"],b3=function(e){var t=e.id,n=e.colors,r=Ud(e,Yq);return y.jsx("linearGradient",qn({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return y.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};b3.propTypes={id:H.string.isRequired,colors:H.arrayOf(H.shape({offset:H.number.isRequired,color:H.string.isRequired,opacity:H.number})).isRequired,gradientTransform:H.string};var x3={linearGradient:b3},Ho={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},sp=m.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ho.background:n,i=e.color,a=i===void 0?Ho.color:i,o=e.size,s=o===void 0?Ho.size:o,c=e.padding,l=c===void 0?Ho.padding:c,u=e.stagger,d=u===void 0?Ho.stagger:u,f=s+l,h=s/2,g=l/2;return d===!0&&(f=2*s+2*l),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+h,cy:g+h,r:h,fill:a}),d&&y.jsx("circle",{cx:1.5*l+s+h,cy:1.5*l+s+h,r:h,fill:a})]})});sp.displayName="PatternDots",sp.propTypes={id:H.string.isRequired,color:H.string.isRequired,background:H.string.isRequired,size:H.number.isRequired,padding:H.number.isRequired,stagger:H.bool.isRequired};var Yn=function(e){return e*Math.PI/180},Wd=function(e){return 180*e/Math.PI},Gq=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},qi=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Zq=function(e){var t=e%360;return t<0&&(t+=360),t},Kq={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Vo={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},cp=m.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Vo.spacing:n,i=e.rotation,a=i===void 0?Vo.rotation:i,o=e.background,s=o===void 0?Vo.background:o,c=e.color,l=c===void 0?Vo.color:c,u=e.lineWidth,d=u===void 0?Vo.lineWidth:u,f=Math.round(a)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,p=h,v=h;return f===0?g=`
255
+ `}return Ue.substring(0,Ue.length-1)},P.renderTo2dContext=function(N,I){I=I||2;for(var L=P.getModuleCount(),V=0;V<L;V++)for(var j=0;j<L;j++)N.fillStyle=P.isDark(V,j)?"black":"white",N.fillRect(V*I,j*I,I,I)},P};r.stringToBytesFuncs={default:function(b){for(var S=[],R=0;R<b.length;R+=1){var M=b.charCodeAt(R);S.push(M&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,S){var R=function(){for(var k=_(b),E=function(){var z=k.read();if(z==-1)throw"eof";return z},C=0,O={};;){var $=k.read();if($==-1)break;var A=E(),P=E(),D=E(),F=String.fromCharCode($<<8|A),q=P<<8|D;O[F]=q,C+=1}if(C!=S)throw C+" != "+S;return O}(),M=63;return function(k){for(var E=[],C=0;C<k.length;C+=1){var O=k.charCodeAt(C);if(O<128)E.push(O);else{var $=R[k.charAt(C)];typeof $=="number"?($&255)==$?E.push($):(E.push($>>>8),E.push($&255)):E.push(M)}}return E}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var b=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],S=1335,R=7973,M=21522,k={},E=function(C){for(var O=0;C!=0;)O+=1,C>>>=1;return O};return k.getBCHTypeInfo=function(C){for(var O=C<<10;E(O)-E(S)>=0;)O^=S<<E(O)-E(S);return(C<<10|O)^M},k.getBCHTypeNumber=function(C){for(var O=C<<12;E(O)-E(R)>=0;)O^=R<<E(O)-E(R);return C<<12|O},k.getPatternPosition=function(C){return b[C-1]},k.getMaskFunction=function(C){switch(C){case o.PATTERN000:return function(O,$){return(O+$)%2==0};case o.PATTERN001:return function(O,$){return O%2==0};case o.PATTERN010:return function(O,$){return $%3==0};case o.PATTERN011:return function(O,$){return(O+$)%3==0};case o.PATTERN100:return function(O,$){return(Math.floor(O/2)+Math.floor($/3))%2==0};case o.PATTERN101:return function(O,$){return O*$%2+O*$%3==0};case o.PATTERN110:return function(O,$){return(O*$%2+O*$%3)%2==0};case o.PATTERN111:return function(O,$){return(O*$%3+(O+$)%2)%2==0};default:throw"bad maskPattern:"+C}},k.getErrorCorrectPolynomial=function(C){for(var O=l([1],0),$=0;$<C;$+=1)O=O.multiply(l([1,c.gexp($)],0));return O},k.getLengthInBits=function(C,O){if(1<=O&&O<10)switch(C){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+C}else if(O<27)switch(C){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+C}else if(O<41)switch(C){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+C}else throw"type:"+O},k.getLostPoint=function(C){for(var O=C.getModuleCount(),$=0,A=0;A<O;A+=1)for(var P=0;P<O;P+=1){for(var D=0,F=C.isDark(A,P),q=-1;q<=1;q+=1)if(!(A+q<0||O<=A+q))for(var z=-1;z<=1;z+=1)P+z<0||O<=P+z||q==0&&z==0||F==C.isDark(A+q,P+z)&&(D+=1);D>5&&($+=3+D-5)}for(var A=0;A<O-1;A+=1)for(var P=0;P<O-1;P+=1){var U=0;C.isDark(A,P)&&(U+=1),C.isDark(A+1,P)&&(U+=1),C.isDark(A,P+1)&&(U+=1),C.isDark(A+1,P+1)&&(U+=1),(U==0||U==4)&&($+=3)}for(var A=0;A<O;A+=1)for(var P=0;P<O-6;P+=1)C.isDark(A,P)&&!C.isDark(A,P+1)&&C.isDark(A,P+2)&&C.isDark(A,P+3)&&C.isDark(A,P+4)&&!C.isDark(A,P+5)&&C.isDark(A,P+6)&&($+=40);for(var P=0;P<O;P+=1)for(var A=0;A<O-6;A+=1)C.isDark(A,P)&&!C.isDark(A+1,P)&&C.isDark(A+2,P)&&C.isDark(A+3,P)&&C.isDark(A+4,P)&&!C.isDark(A+5,P)&&C.isDark(A+6,P)&&($+=40);for(var G=0,P=0;P<O;P+=1)for(var A=0;A<O;A+=1)C.isDark(A,P)&&(G+=1);var ee=Math.abs(100*G/O/O-50)/5;return $+=ee*10,$},k}(),c=function(){for(var b=new Array(256),S=new Array(256),R=0;R<8;R+=1)b[R]=1<<R;for(var R=8;R<256;R+=1)b[R]=b[R-4]^b[R-5]^b[R-6]^b[R-8];for(var R=0;R<255;R+=1)S[b[R]]=R;var M={};return M.glog=function(k){if(k<1)throw"glog("+k+")";return S[k]},M.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return b[k]},M}();function l(b,S){if(typeof b.length>"u")throw b.length+"/"+S;var R=function(){for(var k=0;k<b.length&&b[k]==0;)k+=1;for(var E=new Array(b.length-k+S),C=0;C<b.length-k;C+=1)E[C]=b[C+k];return E}(),M={};return M.getAt=function(k){return R[k]},M.getLength=function(){return R.length},M.multiply=function(k){for(var E=new Array(M.getLength()+k.getLength()-1),C=0;C<M.getLength();C+=1)for(var O=0;O<k.getLength();O+=1)E[C+O]^=c.gexp(c.glog(M.getAt(C))+c.glog(k.getAt(O)));return l(E,0)},M.mod=function(k){if(M.getLength()-k.getLength()<0)return M;for(var E=c.glog(M.getAt(0))-c.glog(k.getAt(0)),C=new Array(M.getLength()),O=0;O<M.getLength();O+=1)C[O]=M.getAt(O);for(var O=0;O<k.getLength();O+=1)C[O]^=c.gexp(c.glog(k.getAt(O))+E);return l(C,0).mod(k)},M}var u=function(){var b=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],S=function(k,E){var C={};return C.totalCount=k,C.dataCount=E,C},R={},M=function(k,E){switch(E){case a.L:return b[(k-1)*4+0];case a.M:return b[(k-1)*4+1];case a.Q:return b[(k-1)*4+2];case a.H:return b[(k-1)*4+3];default:return}};return R.getRSBlocks=function(k,E){var C=M(k,E);if(typeof C>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+E;for(var O=C.length/3,$=[],A=0;A<O;A+=1)for(var P=C[A*3+0],D=C[A*3+1],F=C[A*3+2],q=0;q<P;q+=1)$.push(S(D,F));return $},R}(),d=function(){var b=[],S=0,R={};return R.getBuffer=function(){return b},R.getAt=function(M){var k=Math.floor(M/8);return(b[k]>>>7-M%8&1)==1},R.put=function(M,k){for(var E=0;E<k;E+=1)R.putBit((M>>>k-E-1&1)==1)},R.getLengthInBits=function(){return S},R.putBit=function(M){var k=Math.floor(S/8);b.length<=k&&b.push(0),M&&(b[k]|=128>>>S%8),S+=1},R},f=function(b){var S=i.MODE_NUMBER,R=b,M={};M.getMode=function(){return S},M.getLength=function(C){return R.length},M.write=function(C){for(var O=R,$=0;$+2<O.length;)C.put(k(O.substring($,$+3)),10),$+=3;$<O.length&&(O.length-$==1?C.put(k(O.substring($,$+1)),4):O.length-$==2&&C.put(k(O.substring($,$+2)),7))};var k=function(C){for(var O=0,$=0;$<C.length;$+=1)O=O*10+E(C.charAt($));return O},E=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;throw"illegal char :"+C};return M},h=function(b){var S=i.MODE_ALPHA_NUM,R=b,M={};M.getMode=function(){return S},M.getLength=function(E){return R.length},M.write=function(E){for(var C=R,O=0;O+1<C.length;)E.put(k(C.charAt(O))*45+k(C.charAt(O+1)),11),O+=2;O<C.length&&E.put(k(C.charAt(O)),6)};var k=function(E){if("0"<=E&&E<="9")return E.charCodeAt(0)-48;if("A"<=E&&E<="Z")return E.charCodeAt(0)-65+10;switch(E){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+E}};return M},g=function(b){var S=i.MODE_8BIT_BYTE,R=r.stringToBytes(b),M={};return M.getMode=function(){return S},M.getLength=function(k){return R.length},M.write=function(k){for(var E=0;E<R.length;E+=1)k.put(R[E],8)},M},p=function(b){var S=i.MODE_KANJI,R=r.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(E,C){var O=R(E);if(O.length!=2||(O[0]<<8|O[1])!=C)throw"sjis not supported."})("友",38726);var M=R(b),k={};return k.getMode=function(){return S},k.getLength=function(E){return~~(M.length/2)},k.write=function(E){for(var C=M,O=0;O+1<C.length;){var $=(255&C[O])<<8|255&C[O+1];if(33088<=$&&$<=40956)$-=33088;else if(57408<=$&&$<=60351)$-=49472;else throw"illegal char at "+(O+1)+"/"+$;$=($>>>8&255)*192+($&255),E.put($,13),O+=2}if(O<C.length)throw"illegal char at "+(O+1)},k},v=function(){var b=[],S={};return S.writeByte=function(R){b.push(R&255)},S.writeShort=function(R){S.writeByte(R),S.writeByte(R>>>8)},S.writeBytes=function(R,M,k){M=M||0,k=k||R.length;for(var E=0;E<k;E+=1)S.writeByte(R[E+M])},S.writeString=function(R){for(var M=0;M<R.length;M+=1)S.writeByte(R.charCodeAt(M))},S.toByteArray=function(){return b},S.toString=function(){var R="";R+="[";for(var M=0;M<b.length;M+=1)M>0&&(R+=","),R+=b[M];return R+="]",R},S},w=function(){var b=0,S=0,R=0,M="",k={},E=function(O){M+=String.fromCharCode(C(O&63))},C=function(O){if(!(O<0)){if(O<26)return 65+O;if(O<52)return 97+(O-26);if(O<62)return 48+(O-52);if(O==62)return 43;if(O==63)return 47}throw"n:"+O};return k.writeByte=function(O){for(b=b<<8|O&255,S+=8,R+=1;S>=6;)E(b>>>S-6),S-=6},k.flush=function(){if(S>0&&(E(b<<6-S),b=0,S=0),R%3!=0)for(var O=3-R%3,$=0;$<O;$+=1)M+="="},k.toString=function(){return M},k},_=function(b){var S=b,R=0,M=0,k=0,E={};E.read=function(){for(;k<8;){if(R>=S.length){if(k==0)return-1;throw"unexpected end of file./"+k}var O=S.charAt(R);if(R+=1,O=="=")return k=0,-1;if(O.match(/^\s$/))continue;M=M<<6|C(O.charCodeAt(0)),k+=6}var $=M>>>k-8&255;return k-=8,$};var C=function(O){if(65<=O&&O<=90)return O-65;if(97<=O&&O<=122)return O-97+26;if(48<=O&&O<=57)return O-48+52;if(O==43)return 62;if(O==47)return 63;throw"c:"+O};return E},x=function(b,S){var R=b,M=S,k=new Array(b*S),E={};E.setPixel=function(A,P,D){k[P*R+A]=D},E.write=function(A){A.writeString("GIF87a"),A.writeShort(R),A.writeShort(M),A.writeByte(128),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(0),A.writeByte(255),A.writeByte(255),A.writeByte(255),A.writeString(","),A.writeShort(0),A.writeShort(0),A.writeShort(R),A.writeShort(M),A.writeByte(0);var P=2,D=O(P);A.writeByte(P);for(var F=0;D.length-F>255;)A.writeByte(255),A.writeBytes(D,F,255),F+=255;A.writeByte(D.length-F),A.writeBytes(D,F,D.length-F),A.writeByte(0),A.writeString(";")};var C=function(A){var P=A,D=0,F=0,q={};return q.write=function(z,U){if(z>>>U)throw"length over";for(;D+U>=8;)P.writeByte(255&(z<<D|F)),U-=8-D,z>>>=8-D,F=0,D=0;F=z<<D|F,D=D+U},q.flush=function(){D>0&&P.writeByte(F)},q},O=function(A){for(var P=1<<A,D=(1<<A)+1,F=A+1,q=$(),z=0;z<P;z+=1)q.add(String.fromCharCode(z));q.add(String.fromCharCode(P)),q.add(String.fromCharCode(D));var U=v(),G=C(U);G.write(P,F);var ee=0,ie=String.fromCharCode(k[ee]);for(ee+=1;ee<k.length;){var J=String.fromCharCode(k[ee]);ee+=1,q.contains(ie+J)?ie=ie+J:(G.write(q.indexOf(ie),F),q.size()<4095&&(q.size()==1<<F&&(F+=1),q.add(ie+J)),ie=J)}return G.write(q.indexOf(ie),F),G.write(D,F),G.flush(),U.toByteArray()},$=function(){var A={},P=0,D={};return D.add=function(F){if(D.contains(F))throw"dup key:"+F;A[F]=P,P+=1},D.size=function(){return P},D.indexOf=function(F){return A[F]},D.contains=function(F){return typeof A[F]<"u"},D};return E},T=function(b,S,R){for(var M=x(b,S),k=0;k<S;k+=1)for(var E=0;E<b;E+=1)M.setPixel(E,k,R(E,k));var C=v();M.write(C);for(var O=w(),$=C.toByteArray(),A=0;A<$.length;A+=1)O.writeByte($[A]);return O.flush(),"data:image/gif;base64,"+O};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(a){for(var o=[],s=0;s<a.length;s++){var c=a.charCodeAt(s);c<128?o.push(c):c<2048?o.push(192|c>>6,128|c&63):c<55296||c>=57344?o.push(224|c>>12,128|c>>6&63,128|c&63):(s++,c=65536+((c&1023)<<10|a.charCodeAt(s)&1023),o.push(240|c>>18,128|c>>12&63,128|c>>6&63,128|c&63))}return o}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(E_);var bA=E_.exports,xA=Hn&&Hn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mh=Hn&&Hn.__assign||function(){return Mh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mh.apply(this,arguments)};Object.defineProperty(vm,"__esModule",{value:!0});exports.QRCode_1=vm.QRCode=void 0;var _A=yA,wA=bA,bf=m,CA=function(e){xA(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=bf.createRef(),r}return t.prototype.download=function(n,r){if(this.canvasRef.current){var i=void 0;switch(n){case"jpg":i="image/jpeg";break;case"webp":i="image/webp";break;case"png":default:i="image/png";break}var a=this.canvasRef.current.toDataURL(i,1),o=document.createElement("a");o.download=r??"react-qrcode-logo",o.href=a,o.click()}},t.prototype.utf16to8=function(n){var r="",i,a,o=n.length;for(i=0;i<o;i++)a=n.charCodeAt(i),a>=1&&a<=127?r+=n.charAt(i):a>2047?(r+=String.fromCharCode(224|a>>12&15),r+=String.fromCharCode(128|a>>6&63),r+=String.fromCharCode(128|a>>0&63)):(r+=String.fromCharCode(192|a>>6&31),r+=String.fromCharCode(128|a>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,a,o,s,c,l){l.lineWidth=n,l.fillStyle=o,l.strokeStyle=o,i+=n/2,r+=n/2,a-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(g){return g=Math.min(g,a/2),g<0?0:g});var u=s[0]||0,d=s[1]||0,f=s[2]||0,h=s[3]||0;l.beginPath(),l.moveTo(r+u,i),l.lineTo(r+a-d,i),d&&l.quadraticCurveTo(r+a,i,r+a,i+d),l.lineTo(r+a,i+a-f),f&&l.quadraticCurveTo(r+a,i+a,r+a-f,i+a),l.lineTo(r+h,i+a),h&&l.quadraticCurveTo(r,i+a,r,i+a-h),l.lineTo(r,i+u),u&&l.quadraticCurveTo(r,i,r+u,i),l.closePath(),l.stroke(),c&&l.fill()},t.prototype.drawPositioningPattern=function(n,r,i,a,o,s,c){c===void 0&&(c=[0,0,0,0]);var l=Math.ceil(r),u,d;typeof c!="number"&&!Array.isArray(c)?(u=c.outer||0,d=c.inner||0):(u=c,d=u);var f,h;typeof s!="string"?(f=s.outer,h=s.inner):(f=s,h=s);var g=a*r+i,p=o*r+i,v=r*7;this.drawRoundedSquare(l,p,g,v,f,u,!1,n),v=r*3,g+=r*2,p+=r*2,this.drawRoundedSquare(l,p,g,v,h,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(a){return r>=a.row&&r<=a.row+7&&n>=a.col&&n<=a.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,a,o,s,c,l){if(l){var u=2,d=this.transformPixelLengthIntoNumberOfCells(o,c),f=this.transformPixelLengthIntoNumberOfCells(s,c),h=this.transformPixelLengthIntoNumberOfCells(i,c)-1,g=this.transformPixelLengthIntoNumberOfCells(a,c)-1;return r>=d-u&&r<=d+h+u&&n>=f-u&&n<=f+g+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!_A(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n,r=this.props,i=r.value,a=r.ecLevel,o=r.enableCORS,s=r.bgColor,c=r.fgColor,l=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,h=r.qrStyle,g=r.eyeRadius,p=r.eyeColor,v=r.logoPaddingStyle,w=+this.props.size,_=+this.props.quietZone,x=this.props.logoWidth?+this.props.logoWidth:0,T=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,S=wA(0,a);S.addData(this.utf16to8(i)),S.make();var R=(n=this.canvasRef)===null||n===void 0?void 0:n.current,M=R.getContext("2d"),k=w+2*_,E=S.getModuleCount(),C=w/E,O=window.devicePixelRatio||1;R.height=R.width=k*O,M.scale(O,O),M.fillStyle=s,M.fillRect(0,0,k,k);var $=_,A=[{row:0,col:0},{row:0,col:E-7},{row:E-7,col:0}];if(M.strokeStyle=c,h==="dots"){M.fillStyle=c;for(var P=C/2,D=0;D<E;D++)for(var F=0;F<E;F++)S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)&&(M.beginPath(),M.arc(Math.round(F*C)+P+$,Math.round(D*C)+P+$,P/100*75,0,2*Math.PI,!1),M.closePath(),M.fill())}else if(h==="fluid"){for(var P=Math.ceil(C/2),D=0;D<E;D++)for(var F=0;F<E;F++)if(S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)){var q=[!1,!1,!1,!1];D>0&&!S.isDark(D-1,F)&&F>0&&!S.isDark(D,F-1)&&(q[0]=!0),D>0&&!S.isDark(D-1,F)&&F<E-1&&!S.isDark(D,F+1)&&(q[1]=!0),D<E-1&&!S.isDark(D+1,F)&&F<E-1&&!S.isDark(D,F+1)&&(q[2]=!0),D<E-1&&!S.isDark(D+1,F)&&F>0&&!S.isDark(D,F-1)&&(q[3]=!0);var z=Math.ceil((F+1)*C)-Math.floor(F*C),U=Math.ceil((D+1)*C)-Math.floor(D*C);M.fillStyle=c,M.beginPath(),M.arc(Math.round(F*C)+P+$,Math.round(D*C)+P+$,P,0,2*Math.PI,!1),M.closePath(),M.fill(),q[0]||M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$,z/2,U/2),q[1]||M.fillRect(Math.round(F*C)+$+Math.floor(z/2),Math.round(D*C)+$,z/2,U/2),q[2]||M.fillRect(Math.round(F*C)+$+Math.floor(z/2),Math.round(D*C)+$+Math.floor(U/2),z/2,U/2),q[3]||M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$+Math.floor(U/2),z/2,U/2)}}else for(var D=0;D<E;D++)for(var F=0;F<E;F++)if(S.isDark(D,F)&&!this.isInPositioninZone(D,F,A)){M.fillStyle=c;var z=Math.ceil((F+1)*C)-Math.floor(F*C),U=Math.ceil((D+1)*C)-Math.floor(D*C);M.fillRect(Math.round(F*C)+$,Math.round(D*C)+$,z,U)}for(var G=0;G<3;G++){var ee=A[G],D=ee.row,F=ee.col,ie=g,J=void 0;Array.isArray(ie)&&(ie=ie[G]),typeof ie=="number"&&(ie=[ie,ie,ie,ie]),p?Array.isArray(p)?J=p[G]:J=p:J=c,this.drawPositioningPattern(M,C,$,D,F,J,ie)}if(l){var X=new Image;o&&(X.crossOrigin="Anonymous"),X.onload=function(K){M.save();var re=x||w*.2,N=T||re,I=(w-re)/2,L=(w-N)/2;if(f||b){M.beginPath(),M.strokeStyle=s,M.fillStyle=s;var V=re+2*b,j=N+2*b,Z=I+$-b,Q=L+$-b;if(v==="circle"){var te=Z+V/2,he=Q+j/2;M.ellipse(te,he,V/2,j/2,0,0,2*Math.PI),M.stroke(),M.fill()}else M.fillRect(Z,Q,V,j)}M.globalAlpha=u,M.drawImage(X,I+$,L+$,re,N),M.restore(),d&&d(K)},X.src=l}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return bf.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:Mh({height:r+"px",width:r+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(bf.Component);exports.QRCode_1=vm.QRCode=CA;const O_=({value:e,MiniDetailComponent:t,children:n,miniDetailPlacement:r})=>!e||!t?n:y.jsx(t,{id:e.toString(),placement:r,children:n}),M_=({InputContainer:e=ju,value:t,options:n,onChange:r,label:i,withoutLabel:a,isNumber:o,size:s,hidden:c,disabled:l,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:g,dropdownWidth:p,hint:v,addNewOptionPath:w,refreshOptions:_,MiniDetailComponent:x,miniDetailPlacement:T,selectedItemNavigateTo:b,noRemoveButton:S})=>{const{texts:{customSelect:R}}=m.useContext(Kt),[M,k]=m.useState(!1),[E,C]=m.useState(""),O=m.useCallback(z=>{C(z)},[]),$=m.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),A=m.useCallback(z=>{var U;return z===null?"":!z.name||z.name.length===0?((U=z.id)==null?void 0:U.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),P=m.useMemo(()=>{const z=n?[...n]:[];return g!==void 0&&t!==void 0&&t!==null&&(z.some(U=>U.id===t)||z.push({id:t,name:g})),z.map(U=>({id:U.id,name:A(U)})).filter(U=>Jp(U.name,E)).sort((U,G)=>u?0:(U.name??"").localeCompare(G.name??""))},[n,u,E,A,g,t]),D=m.useCallback(z=>{var U;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:o?Number(z.id):(U=z.id)==null?void 0:U.toString())},[r,o]),F=m.useCallback(z=>{k(!1),D(z)},[D]),q=m.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:a,label:i??"",hidden:c,inputContainerClassName:oe({"luminus-dropdown-select-open":M}),className:d,hint:v,disabled:l,children:[y.jsx(S_,{currentSelection:$,selectedItemNavigateTo:b,children:y.jsx(O_,{value:t,MiniDetailComponent:x,miniDetailPlacement:T,children:y.jsxs(Tr.Select,{ref:q,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!l&&k(!0)},onChange:()=>{},className:oe("w-100",{"luminus-dropdown-picker-disabled":l}),hidden:c,children:[h&&!(t==null||t==="")?void 0:y.jsx("option",{value:""}),t!=null&&y.jsx("option",{value:t,children:A($)})]})})}),q.current&&y.jsx(p_,{show:M,onCancel:()=>k(!1),items:P,currentSelection:$??null,onSelectionChange:F,onSearchQueryChange:O,texts:R,disabled:l,inputRef:q,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:p,addNewOptionPath:w,refreshOptions:_,noRemoveButton:S})]})})};function TA(e){return tt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function SA(e){return tt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function kA(e){return tt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function EA(e){return tt({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const OA=m.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var ym=oc(),He=e=>ac(e,ym),bm=oc();He.write=e=>ac(e,bm);var Pu=oc();He.onStart=e=>ac(e,Pu);var xm=oc();He.onFrame=e=>ac(e,xm);var _m=oc();He.onFinish=e=>ac(e,_m);var Pa=[];He.setTimeout=(e,t)=>{const n=He.now()+t,r=()=>{const a=Pa.findIndex(o=>o.cancel==r);~a&&Pa.splice(a,1),ci-=~a?1:0},i={time:n,handler:e,cancel:r};return Pa.splice($_(n),0,i),ci+=1,A_(),i};var $_=e=>~(~Pa.findIndex(t=>t.time>e)||~Pa.length);He.cancel=e=>{Pu.delete(e),xm.delete(e),_m.delete(e),ym.delete(e),bm.delete(e)};He.sync=e=>{$h=!0,He.batchedUpdates(e),$h=!1};He.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,He.onStart(n)}return r.handler=e,r.cancel=()=>{Pu.delete(n),t=null},r};var wm=typeof window<"u"?window.requestAnimationFrame:()=>{};He.use=e=>wm=e;He.now=typeof performance<"u"?()=>performance.now():Date.now;He.batchedUpdates=e=>e();He.catch=console.error;He.frameLoop="always";He.advance=()=>{He.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):j_()};var si=-1,ci=0,$h=!1;function ac(e,t){$h?(t.delete(e),e(0)):(t.add(e),A_())}function A_(){si<0&&(si=0,He.frameLoop!=="demand"&&wm(R_))}function MA(){si=-1}function R_(){~si&&(wm(R_),He.batchedUpdates(j_))}function j_(){const e=si;si=He.now();const t=$_(si);if(t&&(P_(Pa.splice(0,t),n=>n.handler()),ci-=t),!ci){MA();return}Pu.flush(),ym.flush(e?Math.min(64,si-e):16.667),xm.flush(),bm.flush(),_m.flush()}function oc(){let e=new Set,t=e;return{add(n){ci+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ci-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ci-=t.size,P_(t,r=>r(n)&&e.add(r)),ci+=e.size,t=e)}}}function P_(e,t){e.forEach(n=>{try{t(n)}catch(r){He.catch(r)}})}var $A=Object.defineProperty,AA=(e,t)=>{for(var n in t)$A(e,n,{get:t[n],enumerable:!0})},cr={};AA(cr,{assign:()=>jA,colors:()=>ui,createStringInterpolator:()=>Tm,skipAnimation:()=>D_,to:()=>I_,willAdvance:()=>Sm});function Ah(){}var RA=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),de={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Pr(e,t){if(de.arr(e)){if(!de.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var ze=(e,t)=>e.forEach(t);function br(e,t,n){if(de.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var wn=e=>de.und(e)?[]:de.arr(e)?e:[e];function ns(e,t){if(e.size){const n=Array.from(e);e.clear(),ze(n,t)}}var Xo=(e,...t)=>ns(e,n=>n(...t)),Cm=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Tm,I_,ui=null,D_=!1,Sm=Ah,jA=e=>{e.to&&(I_=e.to),e.now&&(He.now=e.now),e.colors!==void 0&&(ui=e.colors),e.skipAnimation!=null&&(D_=e.skipAnimation),e.createStringInterpolator&&(Tm=e.createStringInterpolator),e.requestAnimationFrame&&He.use(e.requestAnimationFrame),e.batchedUpdates&&(He.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Sm=e.willAdvance),e.frameLoop&&(He.frameLoop=e.frameLoop)},rs=new Set,zn=[],xf=[],Rl=0,Iu={get idle(){return!rs.size&&!zn.length},start(e){Rl>e.priority?(rs.add(e),He.onStart(PA)):(N_(e),He(Rh))},advance:Rh,sort(e){if(Rl)He.onFrame(()=>Iu.sort(e));else{const t=zn.indexOf(e);~t&&(zn.splice(t,1),L_(e))}},clear(){zn=[],rs.clear()}};function PA(){rs.forEach(N_),rs.clear(),He(Rh)}function N_(e){zn.includes(e)||L_(e)}function L_(e){zn.splice(IA(zn,t=>t.priority>e.priority),0,e)}function Rh(e){const t=xf;for(let n=0;n<zn.length;n++){const r=zn[n];Rl=r.priority,r.idle||(Sm(r),r.advance(e),r.idle||t.push(r))}return Rl=0,xf=zn,xf.length=0,zn=t,zn.length>0}function IA(e,t){const n=e.findIndex(t);return n<0?e.length:n}var DA=(e,t,n)=>Math.min(Math.max(n,e),t),NA={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ar="[-+]?\\d*\\.?\\d+",jl=ar+"%";function Du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var LA=new RegExp("rgb"+Du(ar,ar,ar)),FA=new RegExp("rgba"+Du(ar,ar,ar,ar)),BA=new RegExp("hsl"+Du(ar,jl,jl)),UA=new RegExp("hsla"+Du(ar,jl,jl,ar)),WA=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zA=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HA=/^#([0-9a-fA-F]{6})$/,VA=/^#([0-9a-fA-F]{8})$/;function qA(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=HA.exec(e))?parseInt(t[1]+"ff",16)>>>0:ui&&ui[e]!==void 0?ui[e]:(t=LA.exec(e))?(_a(t[1])<<24|_a(t[2])<<16|_a(t[3])<<8|255)>>>0:(t=FA.exec(e))?(_a(t[1])<<24|_a(t[2])<<16|_a(t[3])<<8|Mv(t[4]))>>>0:(t=WA.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=VA.exec(e))?parseInt(t[1],16)>>>0:(t=zA.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=BA.exec(e))?(Ev(Ov(t[1]),Pc(t[2]),Pc(t[3]))|255)>>>0:(t=UA.exec(e))?(Ev(Ov(t[1]),Pc(t[2]),Pc(t[3]))|Mv(t[4]))>>>0:null}function _f(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ev(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=_f(i,r,e+1/3),o=_f(i,r,e),s=_f(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function _a(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ov(e){return(parseFloat(e)%360+360)%360/360}function Mv(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Pc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function $v(e){let t=qA(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var Os=(e,t,n)=>{if(de.fun(e))return e;if(de.arr(e))return Os({range:e,output:t,extrapolate:n});if(de.str(e.output[0]))return Tm(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=GA(l,a);return YA(l,a[u],a[u+1],i[u],i[u+1],c,o,s,r.map)}};function YA(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>n){if(s==="identity")return l;s==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function GA(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var ZA=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return DA(0,1,i/e)},Pl=1.70158,Ic=Pl*1.525,Av=Pl+1,Rv=2*Math.PI/3,jv=2*Math.PI/4.5,Dc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,KA={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Av*e*e*e-Pl*e*e,easeOutBack:e=>1+Av*Math.pow(e-1,3)+Pl*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Ic+1)*2*e-Ic)/2:(Math.pow(2*e-2,2)*((Ic+1)*(e*2-2)+Ic)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Rv),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Rv)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*jv))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*jv)/2+1,easeInBounce:e=>1-Dc(1-e),easeOutBounce:Dc,easeInOutBounce:e=>e<.5?(1-Dc(1-2*e))/2:(1+Dc(2*e-1))/2,steps:ZA},Ms=Symbol.for("FluidValue.get"),Ka=Symbol.for("FluidValue.observers"),Wn=e=>!!(e&&e[Ms]),En=e=>e&&e[Ms]?e[Ms]():e,Pv=e=>e[Ka]||null;function XA(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $s(e,t){const n=e[Ka];n&&n.forEach(r=>{XA(r,t)})}var F_=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");QA(this,e)}},QA=(e,t)=>B_(e,Ms,t);function co(e,t){if(e[Ms]){let n=e[Ka];n||B_(e,Ka,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function As(e,t){const n=e[Ka];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ka]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var B_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,JA=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Iv=new RegExp(`(${rl.source})(%|[a-z]+)`,"i"),eR=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Nu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,U_=e=>{const[t,n]=tR(e);if(!t||Cm())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&Nu.test(n))return U_(n);if(n)return n}return e},tR=e=>{const t=Nu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},wf,nR=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,W_=e=>{wf||(wf=ui?new RegExp(`(${Object.keys(ui).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>En(a).replace(Nu,U_).replace(JA,$v).replace(wf,$v)),n=t.map(a=>a.match(rl).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>Os({...e,output:a}));return a=>{var c;const o=!Iv.test(t[0])&&((c=t.find(l=>Iv.test(l)))==null?void 0:c.replace(rl,""));let s=0;return t[0].replace(rl,()=>`${i[s++](a)}${o||""}`).replace(eR,nR)}},km="react-spring: ",z_=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${km}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},rR=z_(console.warn);function iR(){rR(`${km}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var aR=z_(console.warn);function oR(){aR(`${km}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Lu(e){return de.str(e)&&(e[0]=="#"||/\d/.test(e)||!Cm()&&Nu.test(e)||e in(ui||{}))}var Ii=Cm()?m.useEffect:m.useLayoutEffect,sR=()=>{const e=m.useRef(!1);return Ii(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Em(){const e=m.useState()[1],t=sR();return()=>{t.current&&e(Math.random())}}function cR(e,t){const[n]=m.useState(()=>({inputs:t,result:e()})),r=m.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&lR(t,a.inputs)||(a={inputs:t,result:e()}):a=n,m.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function lR(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Om=e=>m.useEffect(e,uR),uR=[];function jh(e){const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current}var Rs=Symbol.for("Animated:node"),dR=e=>!!e&&e[Rs]===e,fr=e=>e&&e[Rs],Mm=(e,t)=>RA(e,Rs,t),Fu=e=>e&&e[Rs]&&e[Rs].getPayload(),H_=class{constructor(){Mm(this,this)}getPayload(){return this.payload||[]}},sc=class extends H_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,de.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new sc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return de.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,de.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},js=class extends sc{constructor(e){super(0),this._string=null,this._toString=Os({output:[e,e]})}static create(e){return new js(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(de.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Os({output:[this.getValue(),e]})),this._value=0,super.reset()}},Il={dependencies:null},Bu=class extends H_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return br(this.source,(n,r)=>{dR(n)?t[r]=n.getValue(e):Wn(n)?t[r]=En(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ze(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return br(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Il.dependencies&&Wn(e)&&Il.dependencies.add(e);const t=Fu(e);t&&ze(t,n=>this.add(n))}},V_=class extends Bu{constructor(e){super(e)}static create(e){return new V_(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fR)),!0)}};function fR(e){return(Lu(e)?js:sc).create(e)}function Ph(e){const t=fr(e);return t?t.constructor:de.arr(e)?V_:Lu(e)?js:sc}var Dv=(e,t)=>{const n=!de.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,i)=>{const a=m.useRef(null),o=n&&m.useCallback(g=>{a.current=mR(i,g)},[i]),[s,c]=pR(r,t),l=Em(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},d=new hR(u,c),f=m.useRef();Ii(()=>(f.current=d,ze(c,g=>co(g,d)),()=>{f.current&&(ze(f.current.deps,g=>As(g,f.current)),He.cancel(f.current.update))})),m.useEffect(u,[]),Om(()=>()=>{const g=f.current;ze(g.deps,p=>As(p,g))});const h=t.getComponentProps(s.getValue());return ue.createElement(e,{...h,ref:o})})},hR=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&He.write(this.update)}};function pR(e,t){const n=new Set;return Il.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Bu(e),Il.dependencies=null,[e,n]}function mR(e,t){return e&&(de.fun(e)?e(t):e.current=t),t}var Nv=Symbol.for("AnimatedComponent"),gR=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Bu(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=Lv(o)||"Anonymous";return de.str(o)?o=a[o]||(a[o]=Dv(o,i)):o=o[Nv]||(o[Nv]=Dv(o,i)),o.displayName=`Animated(${s})`,o};return br(e,(o,s)=>{de.arr(e)&&(s=Lv(o)),a[s]=a(o)}),{animated:a}},Lv=e=>de.str(e)?e:e&&de.str(e.displayName)?e.displayName:de.fun(e)&&e.name||null;function On(e,...t){return de.fun(e)?e(...t):e}var is=(e,t)=>e===!0||!!(t&&e&&(de.fun(e)?e(t):wn(e).includes(t))),q_=(e,t)=>de.obj(e)?t&&e[t]:e,Y_=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vR=e=>e,Uu=(e,t=vR)=>{let n=yR;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);de.und(a)||(r[i]=a)}return r},yR=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bR={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function xR(e){const t={};let n=0;if(br(e,(r,i)=>{bR[i]||(t[i]=r,n++)}),n)return t}function $m(e){const t=xR(e);if(t){const n={to:t};return br(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ps(e){return e=En(e),de.arr(e)?e.map(Ps):Lu(e)?cr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function G_(e){for(const t in e)return!0;return!1}function Ih(e){return de.fun(e)||de.arr(e)&&de.obj(e[0])}function Dh(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Z_(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Am={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Nh={...Am.default,mass:1,damping:1,easing:KA.linear,clamp:!1},_R=class{constructor(){this.velocity=0,Object.assign(this,Nh)}};function wR(e,t,n){n&&(n={...n},Fv(n,t),t={...n,...t}),Fv(e,t),Object.assign(e,t);for(const o in Nh)e[o]==null&&(e[o]=Nh[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return de.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function Fv(e,t){if(!de.und(t.decay))e.duration=void 0;else{const n=!de.und(t.tension)||!de.und(t.friction);(n||!de.und(t.frequency)||!de.und(t.damping)||!de.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Bv=[],CR=class{constructor(){this.changed=!1,this.values=Bv,this.toValues=null,this.fromValues=Bv,this.config=new _R,this.immediate=!1}};function K_(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=is(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{de.und(n.pause)||(i.paused=is(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||is(g,t)),c=On(n.delay||0,t),g?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-He.now()}function f(){c>0&&!cr.skipAnimation?(i.delayed=!0,l=He.setTimeout(h,c),i.pauseQueue.add(d),i.timeouts.add(l)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){s(g)}}})}var Rm=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ia(e.get()):t.every(n=>n.noop)?X_(e.get()):nr(e.get(),t.every(n=>n.finished)),X_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),nr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ia=e=>({value:e,cancelled:!0,finished:!1});function Q_(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=Uu(t,(v,w)=>w==="onRest"?void 0:v);let u,d;const f=new Promise((v,w)=>(u=v,d=w)),h=v=>{const w=i<=(n.cancelId||0)&&Ia(r)||i!==n.asyncId&&nr(r,!1);if(w)throw v.result=w,d(v),v},g=(v,w)=>{const _=new Uv,x=new Wv;return(async()=>{if(cr.skipAnimation)throw Is(n),x.result=nr(r,!1),d(x),x;h(_);const T=de.obj(v)?{...v}:{...w,to:v};T.parentId=i,br(l,(S,R)=>{de.und(T[R])&&(T[R]=S)});const b=await r.start(T);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()};let p;if(cr.skipAnimation)return Is(n),nr(r,!1);try{let v;de.arr(e)?v=(async w=>{for(const _ of w)await g(_)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),f]),p=nr(r.get(),!0,!1)}catch(v){if(v instanceof Uv)p=v.result;else if(v instanceof Wv)p=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return de.fun(o)&&He.batchedUpdates(()=>{o(p,r,r.item)}),p})()}function Is(e,t){ns(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Uv=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Wv=class extends Error{constructor(){super("SkipAnimationSignal")}},Lh=e=>e instanceof jm,TR=1,jm=class extends F_{constructor(){super(...arguments),this.id=TR++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=fr(this);return e&&e.getValue()}to(...e){return cr.to(this,e)}interpolate(...e){return iR(),cr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$s(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Iu.sort(this),$s(this,{type:"priority",parent:this,priority:e})}},Ji=Symbol.for("SpringPhase"),J_=1,Fh=2,Bh=4,Cf=e=>(e[Ji]&J_)>0,ei=e=>(e[Ji]&Fh)>0,No=e=>(e[Ji]&Bh)>0,zv=(e,t)=>t?e[Ji]|=Fh|J_:e[Ji]&=~Fh,Hv=(e,t)=>t?e[Ji]|=Bh:e[Ji]&=~Bh,SR=class extends jm{constructor(e,t){if(super(),this.animation=new CR,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!de.und(e)||!de.und(t)){const n=de.obj(e)?{...e}:{...t,from:e};de.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ei(this)||this._state.asyncTo)||No(this)}get goal(){return En(this.animation.to)}get velocity(){const e=fr(this);return e instanceof sc?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Cf(this)}get isAnimating(){return ei(this)}get isPaused(){return No(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Fu(r.to);!o&&Wn(r.to)&&(i=wn(En(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==js?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=l.lastPosition,a.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const p=r.fromValues[u],v=l.v0!=null?l.v0:l.v0=de.arr(a.velocity)?a.velocity[u]:a.velocity;let w;const _=a.precision||(p==d?.005:Math.min(1,Math.abs(d-p)*.001));if(de.und(a.duration))if(a.decay){const x=a.decay===!0?.998:a.decay,T=Math.exp(-(1-x)*g);h=p+v/(1-x)*(1-T),f=Math.abs(l.lastPosition-h)<=_,w=v*T}else{w=l.lastVelocity==null?v:l.lastVelocity;const x=a.restVelocity||_/10,T=a.clamp?0:a.bounce,b=!de.und(T),S=p==d?l.v0>0:p<d;let R,M=!1;const k=1,E=Math.ceil(e/k);for(let C=0;C<E&&(R=Math.abs(w)>x,!(!R&&(f=Math.abs(d-h)<=_,f)));++C){b&&(M=h==d||h>d==S,M&&(w=-w*T,h=d));const O=-a.tension*1e-6*(h-d),$=-a.friction*.001*w,A=(O+$)/a.mass;w=w+A*k,h=h+w*k}}else{let x=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,g=l.elapsedTime+=e)),x=(a.progress||0)+g/this._memoizedDuration,x=x>1?1:x<0?0:x,l.durationProgress=x),h=p+a.easing(x)*(d-p),w=(h-l.lastPosition)/e,f=x==1}l.lastVelocity=w,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(h,a.round)&&(n=!0)});const s=fr(this),c=s.getValue();if(t){const l=En(r.to);(c!==l||n)&&!a.decay?(s.setValue(l),this._onChange(l)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return He.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ei(this)){const{to:e,config:t}=this.animation;He.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return de.und(e)?(n=this.queue||[],this.queue=[]):n=[de.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Rm(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Is(this._state,e&&this._lastCallId),He.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=de.obj(n)?n[t]:n,(n==null||Ih(n))&&(n=void 0),r=de.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Cf(this)||(e.reverse&&([n,r]=[r,n]),r=En(r),de.und(r)?fr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Uu(e,(o,s)=>/^on/.test(s)?q_(o,n):o)),qv(this,e,"onProps"),Fo(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return K_(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{No(this)||(Hv(this,!0),Xo(a.pauseQueue),Fo(this,"onPause",nr(this,Lo(this,this.animation.to)),this))},resume:()=>{No(this)&&(Hv(this,!1),ei(this)&&this._resume(),Xo(a.resumeQueue),Fo(this,"onResume",nr(this,Lo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ew(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ia(this));const r=!de.und(e.to),i=!de.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ia(this));const{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||de.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!Pr(d,l);f&&(s.from=d),d=En(d);const h=!Pr(u,c);h&&this._focus(u);const g=Ih(t.to),{config:p}=s,{decay:v,velocity:w}=p;(r||i)&&(p.velocity=0),t.config&&!g&&wR(p,On(t.config,a),t.config!==o.config?On(o.config,a):void 0);let _=fr(this);if(!_||de.und(u))return n(nr(this,!0));const x=de.und(t.reset)?i&&!t.default:!de.und(d)&&is(t.reset,a),T=x?d:this.get(),b=Ps(u),S=de.num(b)||de.arr(b)||Lu(b),R=!g&&(!S||is(o.immediate||t.immediate,a));if(h){const C=Ph(u);if(C!==_.constructor)if(R)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${C.name}, as the "to" prop suggests`)}const M=_.constructor;let k=Wn(u),E=!1;if(!k){const C=x||!Cf(this)&&f;(h||C)&&(E=Pr(Ps(T),b),k=!E),(!Pr(s.immediate,R)&&!R||!Pr(p.decay,v)||!Pr(p.velocity,w))&&(k=!0)}if(E&&ei(this)&&(s.changed&&!x?k=!0:k||this._stop(c)),!g&&((k||Wn(c))&&(s.values=_.getPayload(),s.toValues=Wn(u)?null:M==js?[1]:wn(b)),s.immediate!=R&&(s.immediate=R,!R&&!x&&this._set(c)),k)){const{onRest:C}=s;ze(ER,$=>qv(this,t,$));const O=nr(this,Lo(this,c));Xo(this._pendingCalls,O),this._pendingCalls.add(n),s.changed&&He.batchedUpdates(()=>{var $;s.changed=!x,C==null||C(O,this),x?On(o.onRest,O):($=s.onStart)==null||$.call(s,O,this)})}x&&this._set(T),g?n(Q_(t.to,t,this._state,this)):k?this._start():ei(this)&&!h?this._pendingCalls.add(n):n(X_(T))}_focus(e){const t=this.animation;e!==t.to&&(Pv(this)&&this._detach(),t.to=e,Pv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Wn(t)&&(co(t,this),Lh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Wn(e)&&As(e,this)}_set(e,t=!0){const n=En(e);if(!de.und(n)){const r=fr(this);if(!r||!Pr(n,r.getValue())){const i=Ph(n);!r||r.constructor!=i?Mm(this,i.create(n)):r.setValue(n),r&&He.batchedUpdates(()=>{this._onChange(n,t)})}}return fr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fo(this,"onStart",nr(this,Lo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),On(this.animation.onChange,e,this)),On(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fr(this).reset(En(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ei(this)||(zv(this,!0),No(this)||this._resume())}_resume(){cr.skipAnimation?this.finish():Iu.start(this)}_stop(e,t){if(ei(this)){zv(this,!1);const n=this.animation;ze(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$s(this,{type:"idle",parent:this});const r=t?Ia(this.get()):nr(this.get(),Lo(this,e??n.to));Xo(this._pendingCalls,r),n.changed&&(n.changed=!1,Fo(this,"onRest",r,this))}}};function Lo(e,t){const n=Ps(t),r=Ps(e.get());return Pr(r,n)}function ew(e,t=e.loop,n=e.to){const r=On(t);if(r){const i=r!==!0&&$m(r),a=(i||e).reverse,o=!i||i.reset;return Ds({...e,loop:t,default:!1,pause:void 0,to:!a||Ih(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ds(e){const{to:t,from:n}=e=$m(e),r=new Set;return de.obj(t)&&Vv(t,r),de.obj(n)&&Vv(n,r),e.keys=r.size?Array.from(r):null,e}function kR(e){const t=Ds(e);return de.und(t.default)&&(t.default=Uu(t)),t}function Vv(e,t){br(e,(n,r)=>n!=null&&t.add(r))}var ER=["onStart","onRest","onChange","onPause","onResume"];function qv(e,t,n){e.animation[n]=t[n]!==Y_(t,n)?q_(t[n],e.key):void 0}function Fo(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var OR=["onStart","onChange","onRest"],MR=1,tw=class{constructor(e,t){this.id=MR++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];de.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ds(e)),this}start(e){let{queue:t}=this;return e?t=wn(e).map(Ds):this.queue=[],this._flush?this._flush(this,t):(ow(this,t),Uh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ze(wn(t),r=>n[r].stop(!!e))}else Is(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(de.und(e))this.start({pause:!0});else{const t=this.springs;ze(wn(e),n=>t[n].pause())}return this}resume(e){if(de.und(e))this.start({pause:!1});else{const t=this.springs;ze(wn(e),n=>t[n].resume())}return this}each(e){br(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,ns(e,([s,c])=>{c.value=this.get(),s(c,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&ns(t,([s,c])=>{c.value=o,s(c,this,this._item)}),a&&(this._started=!1,ns(n,([s,c])=>{c.value=o,s(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;He.onFrame(this._onFrame)}};function Uh(e,t){return Promise.all(t.map(n=>nw(e,n))).then(n=>Rm(e,n))}async function nw(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=de.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=de.arr(i)||de.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):ze(OR,p=>{const v=t[p];if(de.fun(v)){const w=e._events[p];t[p]=({finished:_,cancelled:x})=>{const T=w.get(v);T?(_||(T.finished=!1),x&&(T.cancelled=!0)):w.set(v,{value:null,finished:_||!1,cancelled:x||!1})},l&&(l[p]=t[p])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Xo(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(p=>e.springs[p].start(t)),h=t.cancel===!0||Y_(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(K_(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ah,resume:Ah,start(p,v){h?(Is(d,e._lastAsyncId),v(Ia(e))):(p.onRest=s,v(Q_(u,p,d,e)))}}})),d.paused&&await new Promise(p=>{d.resumeQueue.add(p)});const g=Rm(e,await Promise.all(f));if(o&&g.finished&&!(n&&g.noop)){const p=ew(t,o,i);if(p)return ow(e,[p]),nw(e,p,!0)}return c&&He.batchedUpdates(()=>c(g,e,e.item)),g}function Wh(e,t){const n={...e.springs};return t&&ze(wn(t),r=>{de.und(r.keys)&&(r=Ds(r)),de.obj(r.to)||(r={...r,to:void 0}),aw(n,r,i=>iw(i))}),rw(e,n),n}function rw(e,t){br(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,co(n,e))})}function iw(e,t){const n=new SR;return n.key=e,t&&co(n,t),n}function aw(e,t,n){t.keys&&ze(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ow(e,t){ze(t,n=>{aw(e.springs,n,r=>iw(r,e))})}var cc=({children:e,...t})=>{const n=m.useContext(Dl),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=cR(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=Dl;return ue.createElement(a,{value:t},e)},Dl=$R(cc,{});cc.Provider=Dl.Provider;cc.Consumer=Dl.Consumer;function $R(e,t){return Object.assign(e,ue.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var sw=()=>{const e=[],t=function(r){oR();const i=[];return ze(e,(a,o)=>{if(de.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ze(e,r=>r.pause(...arguments)),this},t.resume=function(){return ze(e,r=>r.resume(...arguments)),this},t.set=function(r){ze(e,(i,a)=>{const o=de.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return ze(e,(a,o)=>{if(de.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return ze(e,r=>r.stop(...arguments)),this},t.update=function(r){return ze(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return de.fun(r)?r(a,i):r};return t._getProps=n,t};function AR(e,t,n){const r=de.fun(t)&&t;r&&!n&&(n=[]);const i=m.useMemo(()=>r||arguments.length==3?sw():void 0,[]),a=m.useRef(0),o=Em(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(w,_){const x=Wh(w,_);return a.current>0&&!s.queue.length&&!Object.keys(x).some(b=>!w.springs[b])?Uh(w,_):new Promise(b=>{rw(w,x),s.queue.push(()=>{b(Uh(w,_))}),o()})}}),[]),c=m.useRef([...s.ctrls]),l=[],u=jh(e)||0;m.useMemo(()=>{ze(c.current.slice(e,u),w=>{Dh(w,i),w.stop(!0)}),c.current.length=e,d(u,e)},[e]),m.useMemo(()=>{d(0,Math.min(u,e))},n);function d(w,_){for(let x=w;x<_;x++){const T=c.current[x]||(c.current[x]=new tw(null,s.flush)),b=r?r(x,T):t[x];b&&(l[x]=kR(b))}}const f=c.current.map((w,_)=>Wh(w,l[_])),h=m.useContext(cc),g=jh(h),p=h!==g&&G_(h);Ii(()=>{a.current++,s.ctrls=c.current;const{queue:w}=s;w.length&&(s.queue=[],ze(w,_=>_())),ze(c.current,(_,x)=>{i==null||i.add(_),p&&_.start({default:h});const T=l[x];T&&(Z_(_,T.ref),_.ref?_.queue.push(T):_.start(T))})}),Om(()=>()=>{ze(s.ctrls,w=>w.stop(!0))});const v=f.map(w=>({...w}));return i?[v,i]:v}function Sr(e,t){const n=de.fun(e),[[r],i]=AR(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function sa(e,t,n){const r=de.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=m.useMemo(()=>r||arguments.length==3?sw():void 0,[]),h=wn(e),g=[],p=m.useRef(null),v=i?null:p.current;Ii(()=>{p.current=g}),Om(()=>(ze(g,A=>{f==null||f.add(A.ctrl),A.ctrl.ref=f}),()=>{ze(p.current,A=>{A.expired&&clearTimeout(A.expirationId),Dh(A.ctrl,f),A.ctrl.stop(!0)})}));const w=jR(h,r?r():t,v),_=i&&p.current||[];Ii(()=>ze(_,({ctrl:A,item:P,key:D})=>{Dh(A,f),On(l,P,D)}));const x=[];if(v&&ze(v,(A,P)=>{A.expired?(clearTimeout(A.expirationId),_.push(A)):(P=x[P]=w.indexOf(A.key),~P&&(g[P]=A))}),ze(h,(A,P)=>{g[P]||(g[P]={key:w[P],item:A,phase:"mount",ctrl:new tw},g[P].ctrl.item=A)}),x.length){let A=-1;const{leave:P}=r?r():t;ze(x,(D,F)=>{const q=v[F];~D?(A=g.indexOf(q),g[A]={...q,item:h[D]}):P&&g.splice(++A,0,q)})}de.fun(a)&&g.sort((A,P)=>a(A.item,P.item));let T=-o;const b=Em(),S=Uu(t),R=new Map,M=m.useRef(new Map),k=m.useRef(!1);ze(g,(A,P)=>{const D=A.key,F=A.phase,q=r?r():t;let z,U;const G=On(q.delay||0,D);if(F=="mount")z=q.enter,U="enter";else{const X=w.indexOf(D)<0;if(F!="leave")if(X)z=q.leave,U="leave";else if(z=q.update)U="update";else return;else if(!X)z=q.enter,U="enter";else return}if(z=On(z,A.item,P),z=de.obj(z)?$m(z):{to:z},!z.config){const X=d||S.config;z.config=On(X,A.item,P,U)}T+=o;const ee={...S,delay:G+T,ref:u,immediate:q.immediate,reset:!1,...z};if(U=="enter"&&de.und(ee.from)){const X=r?r():t,K=de.und(X.initial)||v?X.from:X.initial;ee.from=On(K,A.item,P)}const{onResolve:ie}=ee;ee.onResolve=X=>{On(ie,X);const K=p.current,re=K.find(N=>N.key===D);if(re&&!(X.cancelled&&re.phase!="update")&&re.ctrl.idle){const N=K.every(I=>I.ctrl.idle);if(re.phase=="leave"){const I=On(s,re.item);if(I!==!1){const L=I===!0?0:I;if(re.expired=!0,!N&&L>0){L<=2147483647&&(re.expirationId=setTimeout(b,L));return}}}N&&K.some(I=>I.expired)&&(M.current.delete(re),c&&(k.current=!0),b())}};const J=Wh(A.ctrl,ee);U==="leave"&&c?M.current.set(A,{phase:U,springs:J,payload:ee}):R.set(A,{phase:U,springs:J,payload:ee})});const E=m.useContext(cc),C=jh(E),O=E!==C&&G_(E);Ii(()=>{O&&ze(g,A=>{A.ctrl.start({default:E})})},[E]),ze(R,(A,P)=>{if(M.current.size){const D=g.findIndex(F=>F.key===P.key);g.splice(D,1)}}),Ii(()=>{ze(M.current.size?M.current:R,({phase:A,payload:P},D)=>{const{ctrl:F}=D;D.phase=A,f==null||f.add(F),O&&A=="enter"&&F.start({default:E}),P&&(Z_(F,P.ref),(F.ref||f)&&!k.current?F.update(P):(F.start(P),k.current&&(k.current=!1)))})},i?void 0:n);const $=A=>ue.createElement(ue.Fragment,null,g.map((P,D)=>{const{springs:F}=R.get(P)||P.ctrl,q=A({...F},P.item,P,D);return q&&q.type?ue.createElement(q.type,{...q.props,key:de.str(P.key)||de.num(P.key)?P.key:P.ctrl.id,ref:q.ref}):q}));return f?[$,f]:$}var RR=1;function jR(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):RR++})}return de.und(n)?e:de.fun(n)?e.map(n):wn(n)}var cw=class extends jm{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Os(...t);const n=this._get(),r=Ph(n);Mm(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pr(t,n)||(fr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Yv(this._active)&&Tf(this)}_get(){const e=de.arr(this.source)?this.source.map(En):wn(En(this.source));return this.calc(...e)}_start(){this.idle&&!Yv(this._active)&&(this.idle=!1,ze(Fu(this),e=>{e.done=!1}),cr.skipAnimation?(He.batchedUpdates(()=>this.advance()),Tf(this)):Iu.start(this))}_attach(){let e=1;ze(wn(this.source),t=>{Wn(t)&&co(t,this),Lh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ze(wn(this.source),e=>{Wn(e)&&As(e,this)}),this._active.clear(),Tf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=wn(this.source).reduce((t,n)=>Math.max(t,(Lh(n)?n.priority:0)+1),0))}};function PR(e){return e.idle!==!1}function Yv(e){return!e.size||Array.from(e).every(PR)}function Tf(e){e.idle||(e.idle=!0,ze(Fu(e),t=>{t.done=!0}),$s(e,{type:"idle",parent:e}))}var vi=(e,...t)=>new cw(e,t);cr.assign({createStringInterpolator:W_,to:(e,t)=>new cw(e,t)});var lw=/^--/;function IR(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!lw.test(e)&&!(as.hasOwnProperty(e)&&as[e])?t+"px":(""+t).trim()}var Gv={};function DR(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:Gv[f]||(Gv[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=IR(f,i[f]);lw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute("viewBox",c)}var as={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},NR=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),LR=["Webkit","Ms","Moz","O"];as=Object.keys(as).reduce((e,t)=>(LR.forEach(n=>e[NR(n,t)]=e[t]),e),as);var FR=/^(matrix|translate|scale|rotate|skew)/,BR=/^(translate)/,UR=/^(rotate|skew)/,Sf=(e,t)=>de.num(e)&&e!==0?e+t:e,il=(e,t)=>de.arr(e)?e.every(n=>il(n,t)):de.num(e)?e===t:parseFloat(e)===t,WR=class extends Bu{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Sf(s,"px")).join(",")})`,il(o,0)])),br(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(c=>[c,c===""]);else if(FR.test(s)){if(delete r[s],de.und(o))return;const c=BR.test(s)?"px":UR.test(s)?"deg":"";i.push(wn(o)),a.push(s==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${Sf(f,c)})`,il(f,0)]:l=>[`${s}(${l.map(u=>Sf(u,c)).join(",")})`,il(l,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new zR(i,a)),super(r)}},zR=class extends F_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ze(this.inputs,(n,r)=>{const i=En(n[0]),[a,o]=this.transforms[r](de.arr(i)?i:n.map(En));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ze(this.inputs,t=>ze(t,n=>Wn(n)&&co(n,this)))}observerRemoved(e){e==0&&ze(this.inputs,t=>ze(t,n=>Wn(n)&&As(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$s(this,e)}},HR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];cr.assign({batchedUpdates:oi.unstable_batchedUpdates,createStringInterpolator:W_,colors:NA});var VR=gR(HR,{applyAnimatedValues:DR,createAnimatedStyle:e=>new WR(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ct=VR.animated;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}var qR={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Zv=function(e,t){return"translate("+e+"px, "+t+"px)"},uw=m.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Tt(),o=kn(),s=o.animate,c=o.config,l=g3(),u=l[0],d=l[1],f=m.useRef(!1),h=void 0,g=!1,p=d.width>0&&d.height>0,v=Math.round(n[0]),w=Math.round(n[1]);p&&(r==="top"?(v-=d.width/2,w-=d.height+14):r==="right"?(v+=14,w-=d.height/2):r==="bottom"?(v-=d.width/2,w+=14):r==="left"?(v-=d.width+14,w-=d.height/2):r==="center"&&(v-=d.width/2,w-=d.height/2),h={transform:Zv(v,w)},f.current||(g=!0),f.current=[v,w]);var _=Sr({to:h,config:c,immediate:!s||g}),x=ea({},qR,a.tooltip.wrapper,{transform:(t=_.transform)!=null?t:Zv(v,w),opacity:_.transform?1:0});return y.jsx(Ct.div,{ref:u,style:x,children:i})});uw.displayName="TooltipWrapper";var dw=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:ea({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Pm=m.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=Tt(),u=eo(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=y.jsxs("div",{style:l.tooltip.basic,children:[o&&y.jsx(dw,{color:s,style:l.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:l.tooltip.container,children:t})}),YR={width:"100%",borderCollapse:"collapse"},fw=m.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Tt();return i.length?(t=typeof a=="function"?a():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:ea({},YR,o.tooltip.table),children:y.jsx("tbody",{children:i.map(function(s,c){return y.jsx("tr",{children:s.map(function(l,u){return y.jsx("td",{style:o.tooltip.tableCell,children:l},u)})},c)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});fw.displayName="TableTooltip";var zh=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Tt(),o=kn(),s=o.animate,c=o.config,l=m.useMemo(function(){return ea({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=Sr({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return y.jsx(Ct.line,ea({},u,{fill:"none",style:l}))});zh.displayName="CrosshairLine";var Hh=m.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(zh,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(zh,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Hh.displayName="Crosshair";var hw=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Vh={isVisible:!1,position:[null,null],content:null,anchor:null},pw=m.createContext(Vh),GR=function(e){var t=m.useState(Vh),n=t[0],r=t[1],i=m.useCallback(function(s,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:s})},[r]),a=m.useCallback(function(s,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in c?c.touches[0]:c,g=h.clientX,p=h.clientY,v=(g-u.left)*f,w=(p-u.top)*f;l!=="left"&&l!=="right"||(l=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,w],anchor:l,content:s})},[e,r]),o=m.useCallback(function(){r(Vh)},[r]);return{actions:m.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},ca=function(){var e=m.useContext(hw);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},ZR=function(){var e=m.useContext(pw);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},KR=function(e){return e.isVisible},XR=function(){var e=ZR();return KR(e)?y.jsx(uw,{position:e.position,anchor:e.anchor,children:e.content}):null},QR=function(e){var t=e.container,n=e.children,r=GR(t),i=r.actions,a=r.state;return y.jsx(hw.Provider,{value:i,children:y.jsx(pw.Provider,{value:a,children:n})})};function JR(){this.__data__=[],this.size=0}var e9=JR;function t9(e,t){return e===t||e!==e&&t!==t}var lc=t9,n9=lc;function r9(e,t){for(var n=e.length;n--;)if(n9(e[n][0],t))return n;return-1}var Wu=r9,i9=Wu,a9=Array.prototype,o9=a9.splice;function s9(e){var t=this.__data__,n=i9(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():o9.call(t,n,1),--this.size,!0}var c9=s9,l9=Wu;function u9(e){var t=this.__data__,n=l9(t,e);return n<0?void 0:t[n][1]}var d9=u9,f9=Wu;function h9(e){return f9(this.__data__,e)>-1}var p9=h9,m9=Wu;function g9(e,t){var n=this.__data__,r=m9(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v9=g9,y9=e9,b9=c9,x9=d9,_9=p9,w9=v9;function lo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lo.prototype.clear=y9;lo.prototype.delete=b9;lo.prototype.get=x9;lo.prototype.has=_9;lo.prototype.set=w9;var zu=lo,C9=zu;function T9(){this.__data__=new C9,this.size=0}var S9=T9;function k9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var E9=k9;function O9(e){return this.__data__.get(e)}var M9=O9;function $9(e){return this.__data__.has(e)}var A9=$9,R9=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,mw=R9,j9=mw,P9=typeof self=="object"&&self&&self.Object===Object&&self,I9=j9||P9||Function("return this")(),kr=I9,D9=kr,N9=D9.Symbol,uo=N9,Kv=uo,gw=Object.prototype,L9=gw.hasOwnProperty,F9=gw.toString,Bo=Kv?Kv.toStringTag:void 0;function B9(e){var t=L9.call(e,Bo),n=e[Bo];try{e[Bo]=void 0;var r=!0}catch{}var i=F9.call(e);return r&&(t?e[Bo]=n:delete e[Bo]),i}var U9=B9,W9=Object.prototype,z9=W9.toString;function H9(e){return z9.call(e)}var V9=H9,Xv=uo,q9=U9,Y9=V9,G9="[object Null]",Z9="[object Undefined]",Qv=Xv?Xv.toStringTag:void 0;function K9(e){return e==null?e===void 0?Z9:G9:Qv&&Qv in Object(e)?q9(e):Y9(e)}var Gr=K9;function X9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Er=X9,Q9=Gr,J9=Er,ej="[object AsyncFunction]",tj="[object Function]",nj="[object GeneratorFunction]",rj="[object Proxy]";function ij(e){if(!J9(e))return!1;var t=Q9(e);return t==tj||t==nj||t==ej||t==rj}var Hu=ij;const Im=Ht(Hu);var aj=kr,oj=aj["__core-js_shared__"],sj=oj,kf=sj,Jv=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cj(e){return!!Jv&&Jv in e}var lj=cj,uj=Function.prototype,dj=uj.toString;function fj(e){if(e!=null){try{return dj.call(e)}catch{}try{return e+""}catch{}}return""}var vw=fj,hj=Hu,pj=lj,mj=Er,gj=vw,vj=/[\\^$.*+?()[\]{}|]/g,yj=/^\[object .+?Constructor\]$/,bj=Function.prototype,xj=Object.prototype,_j=bj.toString,wj=xj.hasOwnProperty,Cj=RegExp("^"+_j.call(wj).replace(vj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tj(e){if(!mj(e)||pj(e))return!1;var t=hj(e)?Cj:yj;return t.test(gj(e))}var Sj=Tj;function kj(e,t){return e==null?void 0:e[t]}var Ej=kj,Oj=Sj,Mj=Ej;function $j(e,t){var n=Mj(e,t);return Oj(n)?n:void 0}var la=$j,Aj=la,Rj=kr,jj=Aj(Rj,"Map"),Dm=jj,Pj=la,Ij=Pj(Object,"create"),Vu=Ij,e1=Vu;function Dj(){this.__data__=e1?e1(null):{},this.size=0}var Nj=Dj;function Lj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fj=Lj,Bj=Vu,Uj="__lodash_hash_undefined__",Wj=Object.prototype,zj=Wj.hasOwnProperty;function Hj(e){var t=this.__data__;if(Bj){var n=t[e];return n===Uj?void 0:n}return zj.call(t,e)?t[e]:void 0}var Vj=Hj,qj=Vu,Yj=Object.prototype,Gj=Yj.hasOwnProperty;function Zj(e){var t=this.__data__;return qj?t[e]!==void 0:Gj.call(t,e)}var Kj=Zj,Xj=Vu,Qj="__lodash_hash_undefined__";function Jj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xj&&t===void 0?Qj:t,this}var eP=Jj,tP=Nj,nP=Fj,rP=Vj,iP=Kj,aP=eP;function fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=tP;fo.prototype.delete=nP;fo.prototype.get=rP;fo.prototype.has=iP;fo.prototype.set=aP;var oP=fo,t1=oP,sP=zu,cP=Dm;function lP(){this.size=0,this.__data__={hash:new t1,map:new(cP||sP),string:new t1}}var uP=lP;function dP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fP=dP,hP=fP;function pP(e,t){var n=e.__data__;return hP(t)?n[typeof t=="string"?"string":"hash"]:n.map}var qu=pP,mP=qu;function gP(e){var t=mP(this,e).delete(e);return this.size-=t?1:0,t}var vP=gP,yP=qu;function bP(e){return yP(this,e).get(e)}var xP=bP,_P=qu;function wP(e){return _P(this,e).has(e)}var CP=wP,TP=qu;function SP(e,t){var n=TP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var kP=SP,EP=uP,OP=vP,MP=xP,$P=CP,AP=kP;function ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=EP;ho.prototype.delete=OP;ho.prototype.get=MP;ho.prototype.has=$P;ho.prototype.set=AP;var Nm=ho,RP=zu,jP=Dm,PP=Nm,IP=200;function DP(e,t){var n=this.__data__;if(n instanceof RP){var r=n.__data__;if(!jP||r.length<IP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new PP(r)}return n.set(e,t),this.size=n.size,this}var NP=DP,LP=zu,FP=S9,BP=E9,UP=M9,WP=A9,zP=NP;function po(e){var t=this.__data__=new LP(e);this.size=t.size}po.prototype.clear=FP;po.prototype.delete=BP;po.prototype.get=UP;po.prototype.has=WP;po.prototype.set=zP;var Yu=po,HP=la,VP=function(){try{var e=HP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yw=VP,n1=yw;function qP(e,t,n){t=="__proto__"&&n1?n1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Lm=qP,YP=Lm,GP=lc;function ZP(e,t,n){(n!==void 0&&!GP(e[t],n)||n===void 0&&!(t in e))&&YP(e,t,n)}var bw=ZP;function KP(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var XP=KP,QP=XP,JP=QP(),xw=JP,Nl={exports:{}};Nl.exports;(function(e,t){var n=kr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=s?s(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(Nl,Nl.exports);var _w=Nl.exports,eI=kr,tI=eI.Uint8Array,ww=tI,r1=ww;function nI(e){var t=new e.constructor(e.byteLength);return new r1(t).set(new r1(e)),t}var Fm=nI,rI=Fm;function iI(e,t){var n=t?rI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Cw=iI;function aI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Tw=aI,oI=Er,i1=Object.create,sI=function(){function e(){}return function(t){if(!oI(t))return{};if(i1)return i1(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),cI=sI;function lI(e,t){return function(n){return e(t(n))}}var Sw=lI,uI=Sw,dI=uI(Object.getPrototypeOf,Object),Bm=dI,fI=Object.prototype;function hI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fI;return e===n}var Um=hI,pI=cI,mI=Bm,gI=Um;function vI(e){return typeof e.constructor=="function"&&!gI(e)?pI(mI(e)):{}}var kw=vI;function yI(e){return e!=null&&typeof e=="object"}var Qn=yI,bI=Gr,xI=Qn,_I="[object Arguments]";function wI(e){return xI(e)&&bI(e)==_I}var CI=wI,a1=CI,TI=Qn,Ew=Object.prototype,SI=Ew.hasOwnProperty,kI=Ew.propertyIsEnumerable,EI=a1(function(){return arguments}())?a1:function(e){return TI(e)&&SI.call(e,"callee")&&!kI.call(e,"callee")},Gu=EI,OI=Array.isArray,Pn=OI,MI=9007199254740991;function $I(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MI}var Wm=$I,AI=Hu,RI=Wm;function jI(e){return e!=null&&RI(e.length)&&!AI(e)}var mo=jI,PI=mo,II=Qn;function DI(e){return II(e)&&PI(e)}var Ow=DI,Ll={exports:{}};function NI(){return!1}var LI=NI;Ll.exports;(function(e,t){var n=kr,r=LI,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Ll,Ll.exports);var Zu=Ll.exports,FI=Gr,BI=Bm,UI=Qn,WI="[object Object]",zI=Function.prototype,HI=Object.prototype,Mw=zI.toString,VI=HI.hasOwnProperty,qI=Mw.call(Object);function YI(e){if(!UI(e)||FI(e)!=WI)return!1;var t=BI(e);if(t===null)return!0;var n=VI.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Mw.call(n)==qI}var zm=YI;const Hm=Ht(zm);var GI=Gr,ZI=Wm,KI=Qn,XI="[object Arguments]",QI="[object Array]",JI="[object Boolean]",eD="[object Date]",tD="[object Error]",nD="[object Function]",rD="[object Map]",iD="[object Number]",aD="[object Object]",oD="[object RegExp]",sD="[object Set]",cD="[object String]",lD="[object WeakMap]",uD="[object ArrayBuffer]",dD="[object DataView]",fD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",mD="[object Int16Array]",gD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",Ft={};Ft[fD]=Ft[hD]=Ft[pD]=Ft[mD]=Ft[gD]=Ft[vD]=Ft[yD]=Ft[bD]=Ft[xD]=!0;Ft[XI]=Ft[QI]=Ft[uD]=Ft[JI]=Ft[dD]=Ft[eD]=Ft[tD]=Ft[nD]=Ft[rD]=Ft[iD]=Ft[aD]=Ft[oD]=Ft[sD]=Ft[cD]=Ft[lD]=!1;function _D(e){return KI(e)&&ZI(e.length)&&!!Ft[GI(e)]}var wD=_D;function CD(e){return function(t){return e(t)}}var go=CD,Fl={exports:{}};Fl.exports;(function(e,t){var n=mw,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Fl,Fl.exports);var Ku=Fl.exports,TD=wD,SD=go,o1=Ku,s1=o1&&o1.isTypedArray,kD=s1?SD(s1):TD,Vm=kD;function ED(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $w=ED,OD=Lm,MD=lc,$D=Object.prototype,AD=$D.hasOwnProperty;function RD(e,t,n){var r=e[t];(!(AD.call(e,t)&&MD(r,n))||n===void 0&&!(t in e))&&OD(e,t,n)}var qm=RD,jD=qm,PD=Lm;function ID(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?PD(n,s,c):jD(n,s,c)}return n}var vo=ID;function DD(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ND=DD,LD=9007199254740991,FD=/^(?:0|[1-9]\d*)$/;function BD(e,t){var n=typeof e;return t=t??LD,!!t&&(n=="number"||n!="symbol"&&FD.test(e))&&e>-1&&e%1==0&&e<t}var Xu=BD,UD=ND,WD=Gu,zD=Pn,HD=Zu,VD=Xu,qD=Vm,YD=Object.prototype,GD=YD.hasOwnProperty;function ZD(e,t){var n=zD(e),r=!n&&WD(e),i=!n&&!r&&HD(e),a=!n&&!r&&!i&&qD(e),o=n||r||i||a,s=o?UD(e.length,String):[],c=s.length;for(var l in e)(t||GD.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||VD(l,c)))&&s.push(l);return s}var Aw=ZD;function KD(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var XD=KD,QD=Er,JD=Um,eN=XD,tN=Object.prototype,nN=tN.hasOwnProperty;function rN(e){if(!QD(e))return eN(e);var t=JD(e),n=[];for(var r in e)r=="constructor"&&(t||!nN.call(e,r))||n.push(r);return n}var iN=rN,aN=Aw,oN=iN,sN=mo;function cN(e){return sN(e)?aN(e,!0):oN(e)}var uc=cN,lN=vo,uN=uc;function dN(e){return lN(e,uN(e))}var fN=dN,c1=bw,hN=_w,pN=Cw,mN=Tw,gN=kw,l1=Gu,u1=Pn,vN=Ow,yN=Zu,bN=Hu,xN=Er,_N=zm,wN=Vm,d1=$w,CN=fN;function TN(e,t,n,r,i,a,o){var s=d1(e,n),c=d1(t,n),l=o.get(c);if(l){c1(e,n,l);return}var u=a?a(s,c,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=u1(c),h=!f&&yN(c),g=!f&&!h&&wN(c);u=c,f||h||g?u1(s)?u=s:vN(s)?u=mN(s):h?(d=!1,u=hN(c,!0)):g?(d=!1,u=pN(c,!0)):u=[]:_N(c)||l1(c)?(u=s,l1(s)?u=CN(s):(!xN(s)||bN(s))&&(u=gN(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),c1(e,n,u)}var SN=TN,kN=Yu,EN=bw,ON=xw,MN=SN,$N=Er,AN=uc,RN=$w;function Rw(e,t,n,r,i){e!==t&&ON(t,function(a,o){if(i||(i=new kN),$N(a))MN(e,t,o,n,Rw,r,i);else{var s=r?r(RN(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),EN(e,o,s)}},AN)}var jN=Rw;function PN(e){return e}var Qu=PN;function IN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var DN=IN,NN=DN,f1=Math.max;function LN(e,t,n){return t=f1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=f1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),NN(e,this,s)}}var jw=LN;function FN(e){return function(){return e}}var BN=FN,UN=BN,h1=yw,WN=Qu,zN=h1?function(e,t){return h1(e,"toString",{configurable:!0,enumerable:!1,value:UN(t),writable:!0})}:WN,HN=zN,VN=800,qN=16,YN=Date.now;function GN(e){var t=0,n=0;return function(){var r=YN(),i=qN-(r-n);if(n=r,i>0){if(++t>=VN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ZN=GN,KN=HN,XN=ZN,QN=XN(KN),Pw=QN,JN=Qu,eL=jw,tL=Pw;function nL(e,t){return tL(eL(e,t,JN),e+"")}var Ym=nL,rL=lc,iL=mo,aL=Xu,oL=Er;function sL(e,t,n){if(!oL(n))return!1;var r=typeof t;return(r=="number"?iL(n)&&aL(t,n.length):r=="string"&&t in n)?rL(n[t],e):!1}var Iw=sL,cL=Ym,lL=Iw;function uL(e){return cL(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&lL(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var dL=uL,fL=jN,hL=dL,pL=hL(function(e,t,n){fL(e,t,n)}),mL=pL;const gL=Ht(mL);var vL=Gr,yL=Qn,bL="[object Symbol]";function xL(e){return typeof e=="symbol"||yL(e)&&vL(e)==bL}var Ju=xL,_L=Pn,wL=Ju,CL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,TL=/^\w*$/;function SL(e,t){if(_L(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wL(e)?!0:TL.test(e)||!CL.test(e)||t!=null&&e in Object(t)}var Gm=SL,Dw=Nm,kL="Expected a function";function Zm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kL);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Zm.Cache||Dw),n}Zm.Cache=Dw;var EL=Zm,OL=EL,ML=500;function $L(e){var t=OL(e,function(r){return n.size===ML&&n.clear(),r}),n=t.cache;return t}var AL=$L,RL=AL,jL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PL=/\\(\\)?/g,IL=RL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jL,function(n,r,i,a){t.push(i?a.replace(PL,"$1"):r||n)}),t}),DL=IL;function NL(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ed=NL,p1=uo,LL=ed,FL=Pn,BL=Ju,UL=1/0,m1=p1?p1.prototype:void 0,g1=m1?m1.toString:void 0;function Nw(e){if(typeof e=="string")return e;if(FL(e))return LL(e,Nw)+"";if(BL(e))return g1?g1.call(e):"";var t=e+"";return t=="0"&&1/e==-UL?"-0":t}var WL=Nw,zL=WL;function HL(e){return e==null?"":zL(e)}var Lw=HL,VL=Pn,qL=Gm,YL=DL,GL=Lw;function ZL(e,t){return VL(e)?e:qL(e,t)?[e]:YL(GL(e))}var yo=ZL,KL=Ju,XL=1/0;function QL(e){if(typeof e=="string"||KL(e))return e;var t=e+"";return t=="0"&&1/e==-XL?"-0":t}var bo=QL,JL=yo,eF=bo;function tF(e,t){t=JL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[eF(t[n++])];return n&&n==r?e:void 0}var dc=tF,nF=dc;function rF(e,t,n){var r=e==null?void 0:nF(e,t);return r===void 0?n:r}var Fw=rF;const xr=Ht(Fw);var iF=qm,aF=yo,oF=Xu,v1=Er,sF=bo;function cF(e,t,n,r){if(!v1(e))return e;t=aF(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=sF(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=v1(u)?u:oF(t[i+1])?[]:{})}iF(s,c,l),s=s[c]}return e}var Bw=cF,lF=Bw;function uF(e,t,n){return e==null?e:lF(e,t,n)}var dF=uF;const Qo=Ht(dF);function td(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Km(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xo(){}var ta=.7,Xa=1/ta,Da="\\s*([+-]?\\d+)\\s*",Ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fF=/^#([0-9a-f]{3,8})$/,hF=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),pF=new RegExp(`^rgb\\(${gr},${gr},${gr}\\)$`),mF=new RegExp(`^rgba\\(${Da},${Da},${Da},${Ns}\\)$`),gF=new RegExp(`^rgba\\(${gr},${gr},${gr},${Ns}\\)$`),vF=new RegExp(`^hsl\\(${Ns},${gr},${gr}\\)$`),yF=new RegExp(`^hsla\\(${Ns},${gr},${gr},${Ns}\\)$`),y1={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};td(xo,Ls,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b1,formatHex:b1,formatHex8:bF,formatHsl:xF,formatRgb:x1,toString:x1});function b1(){return this.rgb().formatHex()}function bF(){return this.rgb().formatHex8()}function xF(){return Ww(this).formatHsl()}function x1(){return this.rgb().formatRgb()}function Ls(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_1(t):n===3?new vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nc(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=hF.exec(e))?new vn(t[1],t[2],t[3],1):(t=pF.exec(e))?new vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mF.exec(e))?Nc(t[1],t[2],t[3],t[4]):(t=gF.exec(e))?Nc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vF.exec(e))?T1(t[1],t[2]/100,t[3]/100,1):(t=yF.exec(e))?T1(t[1],t[2]/100,t[3]/100,t[4]):y1.hasOwnProperty(e)?_1(y1[e]):e==="transparent"?new vn(NaN,NaN,NaN,0):null}function _1(e){return new vn(e>>16&255,e>>8&255,e&255,1)}function Nc(e,t,n,r){return r<=0&&(e=t=n=NaN),new vn(e,t,n,r)}function Uw(e){return e instanceof xo||(e=Ls(e)),e?(e=e.rgb(),new vn(e.r,e.g,e.b,e.opacity)):new vn}function Qa(e,t,n,r){return arguments.length===1?Uw(e):new vn(e,t,n,r??1)}function vn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}td(vn,Qa,Km(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(Hi(this.r),Hi(this.g),Hi(this.b),Bl(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:w1,formatHex:w1,formatHex8:_F,formatRgb:C1,toString:C1}));function w1(){return`#${Di(this.r)}${Di(this.g)}${Di(this.b)}`}function _F(){return`#${Di(this.r)}${Di(this.g)}${Di(this.b)}${Di((isNaN(this.opacity)?1:this.opacity)*255)}`}function C1(){const e=Bl(this.opacity);return`${e===1?"rgb(":"rgba("}${Hi(this.r)}, ${Hi(this.g)}, ${Hi(this.b)}${e===1?")":`, ${e})`}`}function Bl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Di(e){return e=Hi(e),(e<16?"0":"")+e.toString(16)}function T1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rr(e,t,n,r)}function Ww(e){if(e instanceof rr)return new rr(e.h,e.s,e.l,e.opacity);if(e instanceof xo||(e=Ls(e)),!e)return new rr;if(e instanceof rr)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),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new rr(o,s,c,e.opacity)}function wF(e,t,n,r){return arguments.length===1?Ww(e):new rr(e,t,n,r??1)}function rr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}td(rr,wF,Km(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new rr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new rr(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 vn(Ef(e>=240?e-240:e+120,i,r),Ef(e,i,r),Ef(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rr(S1(this.h),Lc(this.s),Lc(this.l),Bl(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=Bl(this.opacity);return`${e===1?"hsl(":"hsla("}${S1(this.h)}, ${Lc(this.s)*100}%, ${Lc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function S1(e){return e=(e||0)%360,e<0?e+360:e}function Lc(e){return Math.max(0,Math.min(1,e||0))}function Ef(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 CF=Math.PI/180,TF=180/Math.PI;var zw=-.14861,Xm=1.78277,Qm=-.29227,nd=-.90649,Fs=1.97294,k1=Fs*nd,E1=Fs*Xm,O1=Xm*Qm-nd*zw;function SF(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);e instanceof vn||(e=Uw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(O1*r+k1*t-E1*n)/(O1+k1-E1),a=r-i,o=(Fs*(n-i)-Qm*a)/nd,s=Math.sqrt(o*o+a*a)/(Fs*i*(1-i)),c=s?Math.atan2(o,a)*TF-120:NaN;return new Vi(c<0?c+360:c,s,i,e.opacity)}function _r(e,t,n,r){return arguments.length===1?SF(e):new Vi(e,t,n,r??1)}function Vi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}td(Vi,_r,Km(xo,{brighter(e){return e=e==null?Xa:Math.pow(Xa,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new Vi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*CF,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new vn(255*(t+n*(zw*r+Xm*i)),255*(t+n*(Qm*r+nd*i)),255*(t+n*(Fs*r)),this.opacity)}}));function kF(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function EF(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return kF((n-r/t)*t,o,i,a,s)}}const rd=e=>()=>e;function Hw(e,t){return function(n){return e+n*t}}function OF(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 MF(e,t){var n=t-e;return n?Hw(e,n>180||n<-180?n-360*Math.round(n/360):n):rd(isNaN(e)?t:e)}function $F(e){return(e=+e)==1?Na:function(t,n){return n-t?OF(t,n,e):rd(isNaN(t)?n:t)}}function Na(e,t){var n=t-e;return n?Hw(e,n):rd(isNaN(e)?t:e)}const M1=function e(t){var n=$F(t);function r(i,a){var o=n((i=Qa(i)).r,(a=Qa(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=Na(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r}(1);function AF(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=Qa(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(c){return s.r=r(c),s.g=i(c),s.b=a(c),s+""}}}var RF=AF(EF);function jF(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 PF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function IF(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Jm(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function DF(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ul(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function NF(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]=Jm(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var qh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Of=new RegExp(qh.source,"g");function LF(e){return function(){return e}}function FF(e){return function(t){return e(t)+""}}function Vw(e,t){var n=qh.lastIndex=Of.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=qh.exec(e))&&(i=Of.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Ul(r,i)})),n=Of.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?FF(c[0].x):LF(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)s[(d=c[u]).i]=d.x(l);return s.join("")})}function Jm(e,t){var n=typeof t,r;return t==null||n==="boolean"?rd(t):(n==="number"?Ul:n==="string"?(r=Ls(t))?(t=r,M1):Vw:t instanceof Ls?M1:t instanceof Date?DF:PF(t)?jF:Array.isArray(t)?IF:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NF:Ul)(e,t)}function BF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qw(e){return function t(n){n=+n;function r(i,a){var o=e((i=_r(i)).h,(a=_r(a)).h),s=Na(i.s,a.s),c=Na(i.l,a.l),l=Na(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r}(1)}qw(MF);var eg=qw(Na),UF=Gr,WF=Pn,zF=Qn,HF="[object String]";function VF(e){return typeof e=="string"||!WF(e)&&zF(e)&&UF(e)==HF}var qF=VF;const YF=Ht(qF);function GF(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Yw=GF;const Me=Ht(Yw);function al(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ZF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tg(e){let t,n,r;e.length!==2?(t=al,n=(s,c)=>al(e(s),c),r=(s,c)=>e(s)-c):(t=e===al||e===ZF?e:KF,n=e,r=e);function i(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<0?l=d+1:u=d}while(l<u)}return l}function a(s,c,l=0,u=s.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(s[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function o(s,c,l=0,u=s.length){const d=i(s,c,l,u-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:o,right:a}}function KF(){return 0}function XF(e){return e===null?NaN:+e}const QF=tg(al),JF=QF.right;tg(XF).center;class $1 extends Map{constructor(t,n=nB){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(A1(this,t))}has(t){return super.has(A1(this,t))}set(t,n){return super.set(eB(this,t),n)}delete(t){return super.delete(tB(this,t))}}function A1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tB({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nB(e){return e!==null&&typeof e=="object"?e.valueOf():e}const rB=Math.sqrt(50),iB=Math.sqrt(10),aB=Math.sqrt(2);function Wl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=rB?10:a>=iB?5:a>=aB?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Wl(e,t,n*2):[s,c,l]}function Yh(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Wl(t,e,n):Wl(e,t,n);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(i+l)/-o;else for(let l=0;l<s;++l)c[l]=(i+l)*o;return c}function Gh(e,t,n){return t=+t,e=+e,n=+n,Wl(e,t,n)[2]}function Zh(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Gh(t,e,n):Gh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function oB(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 ua(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const R1=Symbol("implicit");function Ni(){var e=new $1,t=[],n=[],r=R1;function i(a){let o=e.get(a);if(o===void 0){if(r!==R1)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new $1;for(const o of a)e.has(o)||e.set(o,t.push(o)-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 Ni(t,n).unknown(r)},ua.apply(i,arguments),i}function ng(){var e=Ni().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,g=h?i:r,p=h?r:i;a=(p-g)/Math.max(1,f-c+l*2),s&&(a=Math.floor(a)),g+=(p-g-a*(f-c))*u,o=a*(1-c),s&&(g=Math.round(g),o=Math.round(o));var v=oB(f).map(function(w){return g+a*w});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return ng(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},ua.apply(d(),arguments)}function Gw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Gw(t())},e}function sB(){return Gw(ng.apply(null,arguments).paddingInner(1))}function cB(e){return function(){return e}}function lB(e){return+e}var j1=[0,1];function Ma(e){return e}function Kh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cB(isNaN(t)?NaN:.5)}function uB(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function dB(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Kh(i,r),a=n(o,a)):(r=Kh(r,i),a=n(a,o)),function(s){return a(r(s))}}function fB(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Kh(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var c=JF(e,s,1,r)-1;return a[c](i[c](s))}}function id(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function rg(){var e=j1,t=j1,n=Jm,r,i,a,o=Ma,s,c,l;function u(){var f=Math.min(e.length,t.length);return o!==Ma&&(o=uB(e[0],e[f-1])),s=f>2?fB:dB,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?a:(c||(c=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((l||(l=s(t,e.map(r),Ul)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,lB),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=BF,u()},d.clamp=function(f){return arguments.length?(o=f?!0:Ma,u()):o!==Ma},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function Zw(){return rg()(Ma,Ma)}function hB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function zl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ja(e){return e=zl(Math.abs(e)),e?e[1]:NaN}function pB(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function mB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bs(e){if(!(t=gB.exec(e)))throw new Error("invalid format: "+e);var t;return new ig({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]})}Bs.prototype=ig.prototype;function ig(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+""}ig.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 vB(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 Kw;function yB(e,t){var n=zl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Kw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+zl(e,Math.max(0,t+a-1))[0]}function P1(e,t){var n=zl(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 I1={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:hB,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return P1(e*100,t)},r:P1,s:yB,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function D1(e){return e}var N1=Array.prototype.map,L1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bB(e){var t=e.grouping===void 0||e.thousands===void 0?D1:pB(N1.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?D1:mB(N1.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=Bs(d);var f=d.fill,h=d.align,g=d.sign,p=d.symbol,v=d.zero,w=d.width,_=d.comma,x=d.precision,T=d.trim,b=d.type;b==="n"?(_=!0,b="g"):I1[b]||(x===void 0&&(x=12),T=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var S=p==="$"?n:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",R=p==="$"?r:/[%p]/.test(b)?o:"",M=I1[b],k=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function E(C){var O=S,$=R,A,P,D;if(b==="c")$=M(C)+$,C="";else{C=+C;var F=C<0||1/C<0;if(C=isNaN(C)?c:M(Math.abs(C),x),T&&(C=vB(C)),F&&+C==0&&g!=="+"&&(F=!1),O=(F?g==="("?g:s:g==="-"||g==="("?"":g)+O,$=(b==="s"?L1[8+Kw/3]:"")+$+(F&&g==="("?")":""),k){for(A=-1,P=C.length;++A<P;)if(D=C.charCodeAt(A),48>D||D>57){$=(D===46?i+C.slice(A+1):C.slice(A))+$,C=C.slice(0,A);break}}}_&&!v&&(C=t(C,1/0));var q=O.length+C.length+$.length,z=q<w?new Array(w-q+1).join(f):"";switch(_&&v&&(C=t(z+C,z.length?w-$.length:1/0),z=""),h){case"<":C=O+C+$+z;break;case"=":C=O+z+C+$;break;case"^":C=z.slice(0,q=z.length>>1)+O+C+$+z.slice(q);break;default:C=z+O+C+$;break}return a(C)}return E.toString=function(){return d+""},E}function u(d,f){var h=l((d=Bs(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ja(f)/3)))*3,p=Math.pow(10,-g),v=L1[8+g/3];return function(w){return h(p*w)+v}}return{format:l,formatPrefix:u}}var Fc,fc,Xw;xB({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function xB(e){return Fc=bB(e),fc=Fc.format,Xw=Fc.formatPrefix,Fc}function _B(e){return Math.max(0,-Ja(Math.abs(e)))}function wB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ja(t)/3)))*3-Ja(Math.abs(e)))}function CB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ja(t)-Ja(e))+1}function TB(e,t,n,r){var i=Zh(e,t,n),a;switch(r=Bs(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=wB(i,o))&&(r.precision=a),Xw(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=CB(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=_B(i))&&(r.precision=a-(r.type==="%")*2);break}}return fc(r)}function Qw(e){var t=e.domain;return e.ticks=function(n){var r=t();return Yh(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return TB(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,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=Gh(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Jw(){var e=Zw();return e.copy=function(){return id(e,Jw())},ua.apply(e,arguments),Qw(e)}function e4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function F1(e){return Math.log(e)}function B1(e){return Math.exp(e)}function SB(e){return-Math.log(-e)}function kB(e){return-Math.exp(-e)}function EB(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OB(e){return e===10?EB:e===Math.E?Math.exp:t=>Math.pow(e,t)}function MB(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 U1(e){return(t,n)=>-e(-t,n)}function $B(e){const t=e(F1,B1),n=t.domain;let r=10,i,a;function o(){return i=MB(r),a=OB(r),n()[0]<0?(i=U1(i),a=U1(a),e(SB,kB)):e(F1,B1),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),h=i(u),g,p;const v=s==null?10:+s;let w=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),l>0){for(;f<=h;++f)for(g=1;g<r;++g)if(p=f<0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;w.push(p)}}else for(;f<=h;++f)for(g=r-1;g>=1;--g)if(p=f>0?g/a(-f):g*a(f),!(p<l)){if(p>u)break;w.push(p)}w.length*2<v&&(w=Yh(l,u,v))}else w=Yh(f,h,Math.min(h-f,v)).map(a);return d?w.reverse():w},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Bs(c)).precision==null&&(c.trim=!0),c=fc(c)),s===1/0)return c;const l=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(e4(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function t4(){const e=$B(rg()).domain([1,10]);return e.copy=()=>id(e,t4()).base(e.base()),ua.apply(e,arguments),e}function W1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function z1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function AB(e){var t=1,n=e(W1(t),z1(t));return n.constant=function(r){return arguments.length?e(W1(t=+r),z1(t)):t},Qw(n)}function n4(){var e=AB(rg());return e.copy=function(){return id(e,n4()).constant(e.constant())},ua.apply(e,arguments)}const Mf=new Date,$f=new Date;function nn(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 o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=a=>nn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Mf.setTime(+a),$f.setTime(+o),e(Mf),e($f),Math.floor(n(Mf,$f))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Hl=nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Hl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Hl);Hl.range;const Lr=1e3,Vn=Lr*60,Fr=Vn*60,qr=Fr*24,ag=qr*7,H1=qr*30,Af=qr*365,Li=nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCSeconds());Li.range;const og=nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());og.range;const sg=nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());sg.range;const cg=nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getHours());cg.range;const lg=nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getUTCHours());lg.range;const ug=nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/qr,e=>e.getDate()-1);ug.range;const r4=nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>e.getUTCDate()-1);r4.range;const i4=nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qr,e=>Math.floor(e/qr));i4.range;function da(e){return nn(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())*Vn)/ag)}const dg=da(0),RB=da(1),jB=da(2),PB=da(3),IB=da(4),DB=da(5),NB=da(6);dg.range;RB.range;jB.range;PB.range;IB.range;DB.range;NB.range;function fa(e){return nn(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)/ag)}const fg=fa(0),LB=fa(1),FB=fa(2),BB=fa(3),UB=fa(4),WB=fa(5),zB=fa(6);fg.range;LB.range;FB.range;BB.range;UB.range;WB.range;zB.range;const hg=nn(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());hg.range;const pg=nn(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());pg.range;const ad=nn(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());ad.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nn(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)});ad.range;const od=nn(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());od.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:nn(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)});od.range;function a4(e,t,n,r,i,a){const o=[[Li,1,Lr],[Li,5,5*Lr],[Li,15,15*Lr],[Li,30,30*Lr],[a,1,Vn],[a,5,5*Vn],[a,15,15*Vn],[a,30,30*Vn],[i,1,Fr],[i,3,3*Fr],[i,6,6*Fr],[i,12,12*Fr],[r,1,qr],[r,2,2*qr],[n,1,ag],[t,1,H1],[t,3,3*H1],[e,1,Af]];function s(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const h=d&&typeof d.range=="function"?d:c(l,u,d),g=h?h.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,h=tg(([,,v])=>v).right(o,f);if(h===o.length)return e.every(Zh(l/Af,u/Af,d));if(h===0)return Hl.every(Math.max(Zh(l,u,d),1));const[g,p]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return g.every(p)}return[s,c]}const[HB,VB]=a4(od,pg,fg,i4,lg,sg),[qB,YB]=a4(ad,hg,dg,ug,cg,og);var Rf=new Date,jf=new Date;function en(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var c=[],l;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=function(a){return en(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return Rf.setTime(+a),jf.setTime(+o),e(Rf),e(jf),Math.floor(n(Rf,jf))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Us=en(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Us.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Us};Us.range;var Vl=1e3,na=6e4,ql=36e5,o4=864e5,s4=6048e5,Xh=en(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Vl)},function(e,t){return(t-e)/Vl},function(e){return e.getUTCSeconds()});Xh.range;var c4=en(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vl)},function(e,t){e.setTime(+e+t*na)},function(e,t){return(t-e)/na},function(e){return e.getMinutes()});c4.range;var l4=en(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vl-e.getMinutes()*na)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});l4.range;var mg=en(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/o4},function(e){return e.getDate()-1});mg.range;function ha(e){return en(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*na)/s4})}var Yl=ha(0),Ws=ha(1),u4=ha(2),d4=ha(3),ra=ha(4),f4=ha(5),h4=ha(6);Yl.range;Ws.range;u4.range;d4.range;ra.range;f4.range;h4.range;var p4=en(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});p4.range;var yi=en(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});yi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:en(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};yi.range;var m4=en(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*na)},function(e,t){return(t-e)/na},function(e){return e.getUTCMinutes()});m4.range;var g4=en(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});g4.range;var gg=en(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/o4},function(e){return e.getUTCDate()-1});gg.range;function pa(e){return en(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/s4})}var Gl=pa(0),zs=pa(1),v4=pa(2),y4=pa(3),ia=pa(4),b4=pa(5),x4=pa(6);Gl.range;zs.range;v4.range;y4.range;ia.range;b4.range;x4.range;var _4=en(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});_4.range;var bi=en(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});bi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:en(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};bi.range;function Pf(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 If(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 Uo(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function GB(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Wo(i),u=zo(i),d=Wo(a),f=zo(a),h=Wo(o),g=zo(o),p=Wo(s),v=zo(s),w=Wo(c),_=zo(c),x={a:F,A:q,b:z,B:U,c:null,d:K1,e:K1,f:vU,g:EU,G:MU,H:pU,I:mU,j:gU,L:w4,m:yU,M:bU,p:G,q:ee,Q:J1,s:ey,S:xU,u:_U,U:wU,V:CU,w:TU,W:SU,x:null,X:null,y:kU,Y:OU,Z:$U,"%":Q1},T={a:ie,A:J,b:X,B:K,c:null,d:X1,e:X1,f:PU,g:HU,G:qU,H:AU,I:RU,j:jU,L:T4,m:IU,M:DU,p:re,q:N,Q:J1,s:ey,S:NU,u:LU,U:FU,V:BU,w:UU,W:WU,x:null,X:null,y:zU,Y:VU,Z:YU,"%":Q1},b={a:E,A:C,b:O,B:$,c:A,d:G1,e:G1,f:uU,g:Y1,G:q1,H:Z1,I:Z1,j:oU,L:lU,m:aU,M:sU,p:k,q:iU,Q:fU,s:hU,S:cU,u:JB,U:eU,V:tU,w:QB,W:nU,x:P,X:D,y:Y1,Y:q1,Z:rU,"%":dU};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),T.x=S(n,T),T.X=S(r,T),T.c=S(t,T);function S(I,L){return function(V){var j=[],Z=-1,Q=0,te=I.length,he,we,me;for(V instanceof Date||(V=new Date(+V));++Z<te;)I.charCodeAt(Z)===37&&(j.push(I.slice(Q,Z)),(we=V1[he=I.charAt(++Z)])!=null?he=I.charAt(++Z):we=he==="e"?" ":"0",(me=L[he])&&(he=me(V,we)),j.push(he),Q=Z+1);return j.push(I.slice(Q,Z)),j.join("")}}function R(I,L){return function(V){var j=Uo(1900,void 0,1),Z=M(j,I,V+="",0),Q,te;if(Z!=V.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(L&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(Q=If(Uo(j.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?zs.ceil(Q):zs(Q),Q=gg.offset(Q,(j.V-1)*7),j.y=Q.getUTCFullYear(),j.m=Q.getUTCMonth(),j.d=Q.getUTCDate()+(j.w+6)%7):(Q=Pf(Uo(j.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Ws.ceil(Q):Ws(Q),Q=mg.offset(Q,(j.V-1)*7),j.y=Q.getFullYear(),j.m=Q.getMonth(),j.d=Q.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),te="Z"in j?If(Uo(j.y,0,1)).getUTCDay():Pf(Uo(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(te+5)%7:j.w+j.U*7-(te+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,If(j)):Pf(j)}}function M(I,L,V,j){for(var Z=0,Q=L.length,te=V.length,he,we;Z<Q;){if(j>=te)return-1;if(he=L.charCodeAt(Z++),he===37){if(he=L.charAt(Z++),we=b[he in V1?L.charAt(Z++):he],!we||(j=we(I,V,j))<0)return-1}else if(he!=V.charCodeAt(j++))return-1}return j}function k(I,L,V){var j=l.exec(L.slice(V));return j?(I.p=u.get(j[0].toLowerCase()),V+j[0].length):-1}function E(I,L,V){var j=h.exec(L.slice(V));return j?(I.w=g.get(j[0].toLowerCase()),V+j[0].length):-1}function C(I,L,V){var j=d.exec(L.slice(V));return j?(I.w=f.get(j[0].toLowerCase()),V+j[0].length):-1}function O(I,L,V){var j=w.exec(L.slice(V));return j?(I.m=_.get(j[0].toLowerCase()),V+j[0].length):-1}function $(I,L,V){var j=p.exec(L.slice(V));return j?(I.m=v.get(j[0].toLowerCase()),V+j[0].length):-1}function A(I,L,V){return M(I,t,L,V)}function P(I,L,V){return M(I,n,L,V)}function D(I,L,V){return M(I,r,L,V)}function F(I){return o[I.getDay()]}function q(I){return a[I.getDay()]}function z(I){return c[I.getMonth()]}function U(I){return s[I.getMonth()]}function G(I){return i[+(I.getHours()>=12)]}function ee(I){return 1+~~(I.getMonth()/3)}function ie(I){return o[I.getUTCDay()]}function J(I){return a[I.getUTCDay()]}function X(I){return c[I.getUTCMonth()]}function K(I){return s[I.getUTCMonth()]}function re(I){return i[+(I.getUTCHours()>=12)]}function N(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var L=S(I+="",x);return L.toString=function(){return I},L},parse:function(I){var L=R(I+="",!1);return L.toString=function(){return I},L},utcFormat:function(I){var L=S(I+="",T);return L.toString=function(){return I},L},utcParse:function(I){var L=R(I+="",!0);return L.toString=function(){return I},L}}}var V1={"-":"",_:" ",0:"0"},cn=/^\s*\d+/,ZB=/^%/,KB=/[\\^$*+?|[\]().{}]/g;function ht(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 XB(e){return e.replace(KB,"\\$&")}function Wo(e){return new RegExp("^(?:"+e.map(XB).join("|")+")","i")}function zo(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function QB(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function JB(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=cn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Y1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rU(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 iU(e,t,n){var r=cn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function aU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function G1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oU(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Z1(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cU(e,t,n){var r=cn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lU(e,t,n){var r=cn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uU(e,t,n){var r=cn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dU(e,t,n){var r=ZB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fU(e,t,n){var r=cn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function hU(e,t,n){var r=cn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function K1(e,t){return ht(e.getDate(),t,2)}function pU(e,t){return ht(e.getHours(),t,2)}function mU(e,t){return ht(e.getHours()%12||12,t,2)}function gU(e,t){return ht(1+mg.count(yi(e),e),t,3)}function w4(e,t){return ht(e.getMilliseconds(),t,3)}function vU(e,t){return w4(e,t)+"000"}function yU(e,t){return ht(e.getMonth()+1,t,2)}function bU(e,t){return ht(e.getMinutes(),t,2)}function xU(e,t){return ht(e.getSeconds(),t,2)}function _U(e){var t=e.getDay();return t===0?7:t}function wU(e,t){return ht(Yl.count(yi(e)-1,e),t,2)}function C4(e){var t=e.getDay();return t>=4||t===0?ra(e):ra.ceil(e)}function CU(e,t){return e=C4(e),ht(ra.count(yi(e),e)+(yi(e).getDay()===4),t,2)}function TU(e){return e.getDay()}function SU(e,t){return ht(Ws.count(yi(e)-1,e),t,2)}function kU(e,t){return ht(e.getFullYear()%100,t,2)}function EU(e,t){return e=C4(e),ht(e.getFullYear()%100,t,2)}function OU(e,t){return ht(e.getFullYear()%1e4,t,4)}function MU(e,t){var n=e.getDay();return e=n>=4||n===0?ra(e):ra.ceil(e),ht(e.getFullYear()%1e4,t,4)}function $U(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function X1(e,t){return ht(e.getUTCDate(),t,2)}function AU(e,t){return ht(e.getUTCHours(),t,2)}function RU(e,t){return ht(e.getUTCHours()%12||12,t,2)}function jU(e,t){return ht(1+gg.count(bi(e),e),t,3)}function T4(e,t){return ht(e.getUTCMilliseconds(),t,3)}function PU(e,t){return T4(e,t)+"000"}function IU(e,t){return ht(e.getUTCMonth()+1,t,2)}function DU(e,t){return ht(e.getUTCMinutes(),t,2)}function NU(e,t){return ht(e.getUTCSeconds(),t,2)}function LU(e){var t=e.getUTCDay();return t===0?7:t}function FU(e,t){return ht(Gl.count(bi(e)-1,e),t,2)}function S4(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function BU(e,t){return e=S4(e),ht(ia.count(bi(e),e)+(bi(e).getUTCDay()===4),t,2)}function UU(e){return e.getUTCDay()}function WU(e,t){return ht(zs.count(bi(e)-1,e),t,2)}function zU(e,t){return ht(e.getUTCFullYear()%100,t,2)}function HU(e,t){return e=S4(e),ht(e.getUTCFullYear()%100,t,2)}function VU(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function qU(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ia(e):ia.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function YU(){return"+0000"}function Q1(){return"%"}function J1(e){return+e}function ey(e){return Math.floor(+e/1e3)}var wa,sd,k4,E4,O4;GU({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 GU(e){return wa=GB(e),sd=wa.format,k4=wa.parse,E4=wa.utcFormat,O4=wa.utcParse,wa}function ZU(e){return new Date(e)}function KU(e){return e instanceof Date?+e:+new Date(+e)}function vg(e,t,n,r,i,a,o,s,c,l){var u=Zw(),d=u.invert,f=u.domain,h=l(".%L"),g=l(":%S"),p=l("%I:%M"),v=l("%I %p"),w=l("%a %d"),_=l("%b %d"),x=l("%B"),T=l("%Y");function b(S){return(c(S)<S?h:s(S)<S?g:o(S)<S?p:a(S)<S?v:r(S)<S?i(S)<S?w:_:n(S)<S?x:T)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,KU)):f().map(ZU)},u.ticks=function(S){var R=f();return e(R[0],R[R.length-1],S??10)},u.tickFormat=function(S,R){return R==null?b:l(R)},u.nice=function(S){var R=f();return(!S||typeof S.range!="function")&&(S=t(R[0],R[R.length-1],S??10)),S?f(e4(R,S)):u},u.copy=function(){return id(u,vg(e,t,n,r,i,a,o,s,c,l))},u}function XU(){return ua.apply(vg(qB,YB,ad,hg,dg,ug,cg,og,Li,sd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QU(){return ua.apply(vg(HB,VB,od,pg,fg,r4,lg,sg,Li,E4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Je(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const M4=Je("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),$4=Je("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),A4=Je("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),R4=Je("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),j4=Je("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),P4=Je("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),I4=Je("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),D4=Je("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),yg=Je("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),JU=Je("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),At=e=>RF(e[e.length-1]);var cd=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Je);const eW=At(cd);var ld=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Je);const tW=At(ld);var ud=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Je);const nW=At(ud);var dd=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Je);const rW=At(dd);var fd=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Je);const iW=At(fd);var hd=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Je);const aW=At(hd);var pd=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Je);const oW=At(pd);var md=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Je);const sW=At(md);var gd=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Je);const cW=At(gd);var vd=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Je);const lW=At(vd);var yd=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Je);const uW=At(yd);var bd=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Je);const dW=At(bd);var xd=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Je);const fW=At(xd);var _d=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Je);const hW=At(_d);var wd=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Je);const pW=At(wd);var Cd=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Je);const mW=At(Cd);var Td=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Je);const gW=At(Td);var Sd=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Je);const vW=At(Sd);var kd=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Je);const yW=At(kd);var Ed=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Je);const bW=At(Ed);var Od=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Je);const xW=At(Od);var Md=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Je);const _W=At(Md);var $d=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Je);const wW=At($d);var Ad=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Je);const CW=At(Ad);var Rd=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Je);const TW=At(Rd);var jd=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Je);const SW=At(jd);var Pd=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Je);const kW=At(Pd);function EW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const OW=eg(_r(300,.5,0),_r(-240,.5,1));var MW=eg(_r(-100,.75,.35),_r(80,1.5,.8)),$W=eg(_r(260,.75,.35),_r(80,1.5,.8)),Bc=_r();function AW(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Bc.h=360*e-100,Bc.s=1.5-1.5*t,Bc.l=.8-.9*t,Bc+""}var Uc=Qa(),RW=Math.PI/3,jW=Math.PI*2/3;function PW(e){var t;return e=(.5-e)*Math.PI,Uc.r=255*(t=Math.sin(e))*t,Uc.g=255*(t=Math.sin(e+RW))*t,Uc.b=255*(t=Math.sin(e+jW))*t,Uc+""}function IW(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Id(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const DW=Id(Je("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var NW=Id(Je("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),LW=Id(Je("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),FW=Id(Je("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),BW="__lodash_hash_undefined__";function UW(e){return this.__data__.set(e,BW),this}var WW=UW;function zW(e){return this.__data__.has(e)}var HW=zW,VW=Nm,qW=WW,YW=HW;function Zl(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new VW;++t<n;)this.add(e[t])}Zl.prototype.add=Zl.prototype.push=qW;Zl.prototype.has=YW;var bg=Zl;function GW(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var ZW=GW;function KW(e){return e!==e}var XW=KW;function QW(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var JW=QW,ez=ZW,tz=XW,nz=JW;function rz(e,t,n){return t===t?nz(e,t,n):ez(e,tz,n)}var iz=rz,az=iz;function oz(e,t){var n=e==null?0:e.length;return!!n&&az(e,t,0)>-1}var N4=oz;function sz(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var L4=sz;function cz(e,t){return e.has(t)}var xg=cz,lz=bg,uz=N4,dz=L4,fz=ed,hz=go,pz=xg,mz=200;function gz(e,t,n,r){var i=-1,a=uz,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=fz(t,hz(n))),r?(a=dz,o=!1):t.length>=mz&&(a=pz,o=!1,t=new lz(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else a(t,d,r)||c.push(u)}return c}var vz=gz,yz=vz,bz=Ym,xz=Ow,_z=bz(function(e,t){return xz(e)?yz(e,t):[]}),wz=_z;const F4=Ht(wz);function at(e){return function(){return e}}const ty=Math.abs,hn=Math.atan2,Ei=Math.cos,Cz=Math.max,Df=Math.min,ur=Math.sin,$a=Math.sqrt,mn=1e-12,Hs=Math.PI,Kl=Hs/2,ol=2*Hs;function Tz(e){return e>1?0:e<-1?Hs:Math.acos(e)}function ny(e){return e>=1?Kl:e<=-1?-Kl:Math.asin(e)}const Qh=Math.PI,Jh=2*Qh,Ai=1e-6,Sz=Jh-Ai;function B4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return B4;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]}}let Ez=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?B4:kz(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,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}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 o=this._x1,s=this._y1,c=r-t,l=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Ai)if(!(Math.abs(d*c-l*u)>Ai)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=i-s,p=c*c+l*l,v=h*h+g*g,w=Math.sqrt(p),_=Math.sqrt(f),x=a*Math.tan((Qh-Math.acos((p+f-v)/(2*w*_)))/2),T=x/_,b=x/w;Math.abs(T-1)>Ai&&this._append`L${t+T*u},${n+T*d}`,this._append`A${a},${a},0,0,${+(d*h>u*g)},${this._x1=t+b*c},${this._y1=n+b*l}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=t+s,u=n+c,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Ai||Math.abs(this._y1-u)>Ai)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Jh+Jh),f>Sz?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>Ai&&this._append`A${r},${r},0,${+(f>=Qh)},${d},${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 _g(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 Ez(t)}function Oz(e){return e.innerRadius}function Mz(e){return e.outerRadius}function $z(e){return e.startAngle}function Az(e){return e.endAngle}function Rz(e){return e&&e.padAngle}function jz(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<mn))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Wc(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/$a(s*s+c*c),u=l*c,d=-l*s,f=e+u,h=t+d,g=n+u,p=r+d,v=(f+g)/2,w=(h+p)/2,_=g-f,x=p-h,T=_*_+x*x,b=i-a,S=f*p-g*h,R=(x<0?-1:1)*$a(Cz(0,b*b*T-S*S)),M=(S*x-_*R)/T,k=(-S*_-x*R)/T,E=(S*x+_*R)/T,C=(-S*_+x*R)/T,O=M-v,$=k-w,A=E-v,P=C-w;return O*O+$*$>A*A+P*P&&(M=E,k=C),{cx:M,cy:k,x01:-u,y01:-d,x11:M*(i/b-1),y11:k*(i/b-1)}}function Pz(){var e=Oz,t=Mz,n=at(0),r=null,i=$z,a=Az,o=Rz,s=null,c=_g(l);function l(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-Kl,p=a.apply(this,arguments)-Kl,v=ty(p-g),w=p>g;if(s||(s=u=c()),h<f&&(d=h,h=f,f=d),!(h>mn))s.moveTo(0,0);else if(v>ol-mn)s.moveTo(h*Ei(g),h*ur(g)),s.arc(0,0,h,g,p,!w),f>mn&&(s.moveTo(f*Ei(p),f*ur(p)),s.arc(0,0,f,p,g,w));else{var _=g,x=p,T=g,b=p,S=v,R=v,M=o.apply(this,arguments)/2,k=M>mn&&(r?+r.apply(this,arguments):$a(f*f+h*h)),E=Df(ty(h-f)/2,+n.apply(this,arguments)),C=E,O=E,$,A;if(k>mn){var P=ny(k/f*ur(M)),D=ny(k/h*ur(M));(S-=P*2)>mn?(P*=w?1:-1,T+=P,b-=P):(S=0,T=b=(g+p)/2),(R-=D*2)>mn?(D*=w?1:-1,_+=D,x-=D):(R=0,_=x=(g+p)/2)}var F=h*Ei(_),q=h*ur(_),z=f*Ei(b),U=f*ur(b);if(E>mn){var G=h*Ei(x),ee=h*ur(x),ie=f*Ei(T),J=f*ur(T),X;if(v<Hs)if(X=jz(F,q,ie,J,G,ee,z,U)){var K=F-X[0],re=q-X[1],N=G-X[0],I=ee-X[1],L=1/ur(Tz((K*N+re*I)/($a(K*K+re*re)*$a(N*N+I*I)))/2),V=$a(X[0]*X[0]+X[1]*X[1]);C=Df(E,(f-V)/(L-1)),O=Df(E,(h-V)/(L+1))}else C=O=0}R>mn?O>mn?($=Wc(ie,J,F,q,h,O,w),A=Wc(G,ee,z,U,h,O,w),s.moveTo($.cx+$.x01,$.cy+$.y01),O<E?s.arc($.cx,$.cy,O,hn($.y01,$.x01),hn(A.y01,A.x01),!w):(s.arc($.cx,$.cy,O,hn($.y01,$.x01),hn($.y11,$.x11),!w),s.arc(0,0,h,hn($.cy+$.y11,$.cx+$.x11),hn(A.cy+A.y11,A.cx+A.x11),!w),s.arc(A.cx,A.cy,O,hn(A.y11,A.x11),hn(A.y01,A.x01),!w))):(s.moveTo(F,q),s.arc(0,0,h,_,x,!w)):s.moveTo(F,q),!(f>mn)||!(S>mn)?s.lineTo(z,U):C>mn?($=Wc(z,U,G,ee,f,-C,w),A=Wc(F,q,ie,J,f,-C,w),s.lineTo($.cx+$.x01,$.cy+$.y01),C<E?s.arc($.cx,$.cy,C,hn($.y01,$.x01),hn(A.y01,A.x01),!w):(s.arc($.cx,$.cy,C,hn($.y01,$.x01),hn($.y11,$.x11),!w),s.arc(0,0,f,hn($.cy+$.y11,$.cx+$.x11),hn(A.cy+A.y11,A.cx+A.x11),w),s.arc(A.cx,A.cy,C,hn(A.y11,A.x11),hn(A.y01,A.x01),!w))):s.arc(0,0,f,b,T,w)}if(s.closePath(),u)return s=null,u+""||null}return l.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Hs/2;return[Ei(d)*u,ur(d)*u]},l.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:at(+u),l):e},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:at(+u),l):t},l.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:at(+u),l):n},l.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:at(+u),l):r},l.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:at(+u),l):i},l.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:at(+u),l):a},l.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:at(+u),l):o},l.context=function(u){return arguments.length?(s=u??null,l):s},l}function Dd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U4(e){this._context=e}U4.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 wg(e){return new U4(e)}function W4(e){return e[0]}function z4(e){return e[1]}function Cg(e,t){var n=at(!0),r=null,i=wg,a=null,o=_g(s);e=typeof e=="function"?e:e===void 0?W4:at(e),t=typeof t=="function"?t:t===void 0?z4:at(t);function s(c){var l,u=(c=Dd(c)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l<u&&n(d=c[l],l,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,l,c),+t(d,l,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:at(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:at(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:at(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),s):r},s}function Iz(e,t,n){var r=null,i=at(!0),a=null,o=wg,s=null,c=_g(l);e=typeof e=="function"?e:e===void 0?W4:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?z4:at(+n);function l(d){var f,h,g,p=(d=Dd(d)).length,v,w=!1,_,x=new Array(p),T=new Array(p);for(a==null&&(s=o(_=c())),f=0;f<=p;++f){if(!(f<p&&i(v=d[f],f,d))===w)if(w=!w)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=f-1;g>=h;--g)s.point(x[g],T[g]);s.lineEnd(),s.areaEnd()}w&&(x[f]=+e(v,f,d),T[f]=+t(v,f,d),s.point(r?+r(v,f,d):x[f],n?+n(v,f,d):T[f]))}if(_)return s=null,_+""||null}function u(){return Cg().defined(i).curve(o).context(a)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),l):o},l.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),l):a},l}function Dz(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Nz(e){return e}function Lz(){var e=Nz,t=Dz,n=null,r=at(0),i=at(ol),a=at(0);function o(s){var c,l=(s=Dd(s)).length,u,d,f=0,h=new Array(l),g=new Array(l),p=+r.apply(this,arguments),v=Math.min(ol,Math.max(-ol,i.apply(this,arguments)-p)),w,_=Math.min(Math.abs(v)/l,a.apply(this,arguments)),x=_*(v<0?-1:1),T;for(c=0;c<l;++c)(T=g[h[c]=c]=+e(s[c],c,s))>0&&(f+=T);for(t!=null?h.sort(function(b,S){return t(g[b],g[S])}):n!=null&&h.sort(function(b,S){return n(s[b],s[S])}),c=0,d=f?(v-l*x)/f:0;c<l;++c,p=w)u=h[c],T=g[u],w=p+(T>0?T*d:0)+x,g[u]={data:s[u],index:c,value:T,startAngle:p,endAngle:w,padAngle:_};return g}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:at(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:at(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:at(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:at(+s),o):a},o}function xi(){}function Xl(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 Nd(e){this._context=e}Nd.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:Xl(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:Xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fz(e){return new Nd(e)}function H4(e){this._context=e}H4.prototype={areaStart:xi,areaEnd:xi,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:Xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bz(e){return new H4(e)}function V4(e){this._context=e}V4.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:Xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uz(e){return new V4(e)}function q4(e,t){this._basis=new Nd(e),this._beta=t}q4.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Wz=function e(t){function n(r){return t===1?new Nd(r):new q4(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ql(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tg(e,t){this._context=e,this._k=(1-t)/6}Tg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ql(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ql(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zz=function e(t){function n(r){return new Tg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Sg(e,t){this._context=e,this._k=(1-t)/6}Sg.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ql(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hz=function e(t){function n(r){return new Sg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function kg(e,t){this._context=e,this._k=(1-t)/6}kg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ql(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vz=function e(t){function n(r){return new kg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Eg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>mn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>mn){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Y4(e,t){this._context=e,this._alpha=t}Y4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Eg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qz=function e(t){function n(r){return t?new Y4(r,t):new Tg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function G4(e,t){this._context=e,this._alpha=t}G4.prototype={areaStart:xi,areaEnd:xi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yz=function e(t){function n(r){return t?new G4(r,t):new Sg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Z4(e,t){this._context=e,this._alpha=t}Z4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Eg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gz=function e(t){function n(r){return t?new Z4(r,t):new kg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function K4(e){this._context=e}K4.prototype={areaStart:xi,areaEnd:xi,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 Zz(e){return new K4(e)}function ry(e){return e<0?-1:1}function iy(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ry(a)+ry(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ay(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nf(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Jl(e){this._context=e}Jl.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:Nf(this,this._t0,ay(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,Nf(this,ay(this,n=iy(this,e,t)),n);break;default:Nf(this,this._t0,n=iy(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function X4(e){this._context=new Q4(e)}(X4.prototype=Object.create(Jl.prototype)).point=function(e,t){Jl.prototype.point.call(this,t,e)};function Q4(e){this._context=e}Q4.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 Kz(e){return new Jl(e)}function Xz(e){return new X4(e)}function J4(e){this._context=e}J4.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=oy(e),i=oy(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 oy(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[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 Qz(e){return new J4(e)}function Ld(e,t){this._context=e,this._t=t}Ld.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 Jz(e){return new Ld(e,.5)}function eH(e){return new Ld(e,0)}function tH(e){return new Ld(e,1)}function sy(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function cy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function nH(e,t){return e[t]}function rH(e){const t=[];return t.key=e,t}function iH(){var e=at([]),t=cy,n=sy,r=nH;function i(a){var o=Array.from(e.apply(this,arguments),rH),s,c=o.length,l=-1,u;for(const d of a)for(s=0,++l;s<c;++s)(o[s][l]=[0,+r(d,o[s].key,l,a)]).data=d;for(s=0,u=Dd(t(o));s<c;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:at(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:at(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?cy:typeof a=="function"?a:at(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??sy,i):n},i}function aH(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}var oH=dc,sH=Bw,cH=yo;function lH(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=oH(e,o);n(s,o)&&sH(a,cH(o,e),s)}return a}var uH=lH;function dH(e,t){return e!=null&&t in Object(e)}var fH=dH,hH=yo,pH=Gu,mH=Pn,gH=Xu,vH=Wm,yH=bo;function bH(e,t,n){t=hH(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=yH(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&vH(i)&&gH(o,i)&&(mH(e)||pH(e)))}var xH=bH,_H=fH,wH=xH;function CH(e,t){return e!=null&&wH(e,t,_H)}var e3=CH,TH=uH,SH=e3;function kH(e,t){return TH(e,t,function(n,r){return SH(e,r)})}var EH=kH;function OH(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Og=OH,ly=uo,MH=Gu,$H=Pn,uy=ly?ly.isConcatSpreadable:void 0;function AH(e){return $H(e)||MH(e)||!!(uy&&e&&e[uy])}var RH=AH,jH=Og,PH=RH;function t3(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=PH),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?t3(s,t-1,n,r,i):jH(i,s):r||(i[i.length]=s)}return i}var n3=t3,IH=n3;function DH(e){var t=e==null?0:e.length;return t?IH(e,1):[]}var NH=DH,LH=NH,FH=jw,BH=Pw;function UH(e){return BH(FH(e,void 0,LH),e+"")}var r3=UH,WH=EH,zH=r3,HH=zH(function(e,t){return e==null?{}:WH(e,t)}),VH=HH;const qH=Ht(VH);function YH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var GH=YH,ZH=bg,KH=GH,XH=xg,QH=1,JH=2;function eV(e,t,n,r,i,a){var o=n&QH,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=n&JH?new ZH:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],p=t[d];if(r)var v=o?r(p,g,d,t,e,a):r(g,p,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!KH(t,function(w,_){if(!XH(h,_)&&(g===w||i(g,w,n,r,a)))return h.push(_)})){f=!1;break}}else if(!(g===p||i(g,p,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var i3=eV;function tV(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var nV=tV;function rV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Mg=rV,dy=uo,fy=ww,iV=lc,aV=i3,oV=nV,sV=Mg,cV=1,lV=2,uV="[object Boolean]",dV="[object Date]",fV="[object Error]",hV="[object Map]",pV="[object Number]",mV="[object RegExp]",gV="[object Set]",vV="[object String]",yV="[object Symbol]",bV="[object ArrayBuffer]",xV="[object DataView]",hy=dy?dy.prototype:void 0,Lf=hy?hy.valueOf:void 0;function _V(e,t,n,r,i,a,o){switch(n){case xV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case bV:return!(e.byteLength!=t.byteLength||!a(new fy(e),new fy(t)));case uV:case dV:case pV:return iV(+e,+t);case fV:return e.name==t.name&&e.message==t.message;case mV:case vV:return e==t+"";case hV:var s=oV;case gV:var c=r&cV;if(s||(s=sV),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=lV,o.set(e,t);var u=aV(s(e),s(t),r,i,a,o);return o.delete(e),u;case yV:if(Lf)return Lf.call(e)==Lf.call(t)}return!1}var wV=_V,CV=Og,TV=Pn;function SV(e,t,n){var r=t(e);return TV(e)?r:CV(r,n(e))}var a3=SV;function kV(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var o3=kV;function EV(){return[]}var s3=EV,OV=o3,MV=s3,$V=Object.prototype,AV=$V.propertyIsEnumerable,py=Object.getOwnPropertySymbols,RV=py?function(e){return e==null?[]:(e=Object(e),OV(py(e),function(t){return AV.call(e,t)}))}:MV,$g=RV,jV=Sw,PV=jV(Object.keys,Object),IV=PV,DV=Um,NV=IV,LV=Object.prototype,FV=LV.hasOwnProperty;function BV(e){if(!DV(e))return NV(e);var t=[];for(var n in Object(e))FV.call(e,n)&&n!="constructor"&&t.push(n);return t}var UV=BV,WV=Aw,zV=UV,HV=mo;function VV(e){return HV(e)?WV(e):zV(e)}var hc=VV,qV=a3,YV=$g,GV=hc;function ZV(e){return qV(e,GV,YV)}var c3=ZV,my=c3,KV=1,XV=Object.prototype,QV=XV.hasOwnProperty;function JV(e,t,n,r,i,a){var o=n&KV,s=my(e),c=s.length,l=my(t),u=l.length;if(c!=u&&!o)return!1;for(var d=c;d--;){var f=s[d];if(!(o?f in t:QV.call(t,f)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<c;){f=s[d];var w=e[f],_=t[f];if(r)var x=o?r(_,w,f,t,e,a):r(w,_,f,e,t,a);if(!(x===void 0?w===_||i(w,_,n,r,a):x)){p=!1;break}v||(v=f=="constructor")}if(p&&!v){var T=e.constructor,b=t.constructor;T!=b&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof b=="function"&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}var eq=JV,tq=la,nq=kr,rq=tq(nq,"DataView"),iq=rq,aq=la,oq=kr,sq=aq(oq,"Promise"),cq=sq,lq=la,uq=kr,dq=lq(uq,"Set"),l3=dq,fq=la,hq=kr,pq=fq(hq,"WeakMap"),mq=pq,ep=iq,tp=Dm,np=cq,rp=l3,ip=mq,u3=Gr,_o=vw,gy="[object Map]",gq="[object Object]",vy="[object Promise]",yy="[object Set]",by="[object WeakMap]",xy="[object DataView]",vq=_o(ep),yq=_o(tp),bq=_o(np),xq=_o(rp),_q=_o(ip),Ri=u3;(ep&&Ri(new ep(new ArrayBuffer(1)))!=xy||tp&&Ri(new tp)!=gy||np&&Ri(np.resolve())!=vy||rp&&Ri(new rp)!=yy||ip&&Ri(new ip)!=by)&&(Ri=function(e){var t=u3(e),n=t==gq?e.constructor:void 0,r=n?_o(n):"";if(r)switch(r){case vq:return xy;case yq:return gy;case bq:return vy;case xq:return yy;case _q:return by}return t});var Fd=Ri,Ff=Yu,wq=i3,Cq=wV,Tq=eq,_y=Fd,wy=Pn,Cy=Zu,Sq=Vm,kq=1,Ty="[object Arguments]",Sy="[object Array]",zc="[object Object]",Eq=Object.prototype,ky=Eq.hasOwnProperty;function Oq(e,t,n,r,i,a){var o=wy(e),s=wy(t),c=o?Sy:_y(e),l=s?Sy:_y(t);c=c==Ty?zc:c,l=l==Ty?zc:l;var u=c==zc,d=l==zc,f=c==l;if(f&&Cy(e)){if(!Cy(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Ff),o||Sq(e)?wq(e,t,n,r,i,a):Cq(e,t,c,n,r,i,a);if(!(n&kq)){var h=u&&ky.call(e,"__wrapped__"),g=d&&ky.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return a||(a=new Ff),i(p,v,n,r,a)}}return f?(a||(a=new Ff),Tq(e,t,n,r,i,a)):!1}var Mq=Oq,$q=Mq,Ey=Qn;function d3(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ey(e)&&!Ey(t)?e!==e&&t!==t:$q(e,t,n,r,d3,i)}var Ag=d3,Aq=Ag;function Rq(e,t){return Aq(e,t)}var jq=Rq;const Pq=Ht(jq);var Iq={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ap(e,t)}function Bd(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Dq=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],Nq=function(e,t){return qn({},t,e)},Lq=function(e,t){var n=gL({},e,t);return Dq.forEach(function(r){Qo(n,r,Nq(xr(n,r),n.text))}),n},f3=m.createContext(),h3=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=m.useMemo(function(){var s=YF(a)?Am[a]:a;return{animate:r,config:s}},[r,a]);return y.jsx(f3.Provider,{value:o,children:t})},Oy={animate:H.bool,motionConfig:H.oneOfType([H.oneOf(Object.keys(Am)),H.shape({mass:H.number,tension:H.number,friction:H.number,clamp:H.bool,precision:H.number,velocity:H.number,duration:H.number,easing:H.func})])};h3.propTypes={children:H.node.isRequired,animate:Oy.animate,config:Oy.motionConfig};var kn=function(){return m.useContext(f3)},Rg=function(e){var t=kn(),n=t.animate,r=t.config,i=function(s){var c=m.useRef();return m.useEffect(function(){c.current=s},[s]),c.current}(e),a=m.useMemo(function(){return Vw(i,e)},[i,e]),o=Sr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return vi(o,a)},Fq={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Me(cd),PRGn:Me(ld),PiYG:Me(ud),PuOr:Me(dd),RdBu:Me(fd),RdGy:Me(hd),RdYlBu:Me(pd),RdYlGn:Me(md),spectral:Me(gd),blues:Me(Md),greens:Me($d),greys:Me(Ad),oranges:Me(Pd),purples:Me(Rd),reds:Me(jd),BuGn:Me(vd),BuPu:Me(yd),GnBu:Me(bd),OrRd:Me(xd),PuBuGn:Me(_d),PuBu:Me(wd),PuRd:Me(Cd),RdPu:Me(Td),YlGnBu:Me(Sd),YlGn:Me(kd),YlOrBr:Me(Ed),YlOrRd:Me(Od)},Bq=Object.keys(Fq);Me(cd),Me(ld),Me(ud),Me(dd),Me(fd),Me(hd),Me(pd),Me(md),Me(gd),Me(Md),Me($d),Me(Ad),Me(Pd),Me(Rd),Me(jd),Me(vd),Me(yd),Me(bd),Me(xd),Me(_d),Me(wd),Me(Cd),Me(Td),Me(Sd),Me(kd),Me(Ed),Me(Od);H.oneOfType([H.oneOf(Bq),H.func,H.arrayOf(H.string)]);var op={basis:Fz,basisClosed:Bz,basisOpen:Uz,bundle:Wz,cardinal:zz,cardinalClosed:Hz,cardinalOpen:Vz,catmullRom:qz,catmullRomClosed:Yz,catmullRomOpen:Gz,linear:wg,linearClosed:Zz,monotoneX:Kz,monotoneY:Xz,natural:Qz,step:Jz,stepAfter:tH,stepBefore:eH},jg=Object.keys(op);jg.filter(function(e){return e.endsWith("Closed")});F4(jg,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");F4(jg,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var p3=function(e){if(!op[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return op[e]};H.shape({top:H.number,right:H.number,bottom:H.number,left:H.number}).isRequired;var Uq=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];H.oneOf(Uq);Ni(yg);var m3={top:0,right:0,bottom:0,left:0},pc=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=qn({},m3,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},g3=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return m.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Wq=function(e){return m.useMemo(function(){return Lq(Iq,e)},[e])},zq=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?sd(e.slice("5")):fc(e):function(t){return""+t}},eo=function(e){return m.useMemo(function(){return zq(e)},[e])},v3=m.createContext(),Hq={},y3=function(e){var t=e.theme,n=t===void 0?Hq:t,r=e.children,i=Wq(n);return y.jsx(v3.Provider,{value:i,children:r})};y3.propTypes={children:H.node.isRequired,theme:H.object};var Tt=function(){return m.useContext(v3)},Vq=["outlineWidth","outlineColor","outlineOpacity"],Pg=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Bd(e,Vq)},b3=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t};b3.propTypes={children:H.node.isRequired,condition:H.bool.isRequired,wrapper:H.element.isRequired};var qq={position:"relative"},mc=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=m.useRef(null);return y.jsx(y3,{theme:n,children:y.jsx(h3,{animate:s,config:c,children:y.jsx(QR,{container:l,children:y.jsxs(b3,{condition:i,wrapper:y.jsx("div",{style:qq,ref:l}),children:[t,o&&y.jsx(XR,{})]})})})})};mc.propTypes={children:H.element.isRequired,isInteractive:H.bool,renderWrapper:H.bool,theme:H.object,animate:H.bool,motionConfig:H.string};H.func.isRequired,H.bool,H.bool,H.object.isRequired,H.bool.isRequired,H.string;var wo=function(e){var t=e.children,n=g3(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};wo.propTypes={children:H.func.isRequired};var Yq=["id","colors"],x3=function(e){var t=e.id,n=e.colors,r=Bd(e,Yq);return y.jsx("linearGradient",qn({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return y.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};x3.propTypes={id:H.string.isRequired,colors:H.arrayOf(H.shape({offset:H.number.isRequired,color:H.string.isRequired,opacity:H.number})).isRequired,gradientTransform:H.string};var _3={linearGradient:x3},Ho={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},sp=m.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ho.background:n,i=e.color,a=i===void 0?Ho.color:i,o=e.size,s=o===void 0?Ho.size:o,c=e.padding,l=c===void 0?Ho.padding:c,u=e.stagger,d=u===void 0?Ho.stagger:u,f=s+l,h=s/2,g=l/2;return d===!0&&(f=2*s+2*l),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+h,cy:g+h,r:h,fill:a}),d&&y.jsx("circle",{cx:1.5*l+s+h,cy:1.5*l+s+h,r:h,fill:a})]})});sp.displayName="PatternDots",sp.propTypes={id:H.string.isRequired,color:H.string.isRequired,background:H.string.isRequired,size:H.number.isRequired,padding:H.number.isRequired,stagger:H.bool.isRequired};var Yn=function(e){return e*Math.PI/180},Ud=function(e){return 180*e/Math.PI},Gq=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},qi=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Zq=function(e){var t=e%360;return t<0&&(t+=360),t},Kq={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Vo={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},cp=m.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Vo.spacing:n,i=e.rotation,a=i===void 0?Vo.rotation:i,o=e.background,s=o===void 0?Vo.background:o,c=e.color,l=c===void 0?Vo.color:c,u=e.lineWidth,d=u===void 0?Vo.lineWidth:u,f=Math.round(a)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,p=h,v=h;return f===0?g=`
256
256
  M 0 0 L `+p+` 0
257
257
  M 0 `+v+" L "+p+" "+v+`
258
258
  `:f===90?g=`
@@ -266,8 +266,8 @@ to {
266
266
  M `+-p+" "+v+" L "+p+" "+-v+`
267
267
  M `+-p+" "+2*v+" L "+2*p+" "+-v+`
268
268
  M 0 `+2*v+" L "+2*p+` 0
269
- `),y.jsxs("pattern",{id:t,width:p,height:v,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:p,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})});cp.displayName="PatternLines",cp.propTypes={id:H.string.isRequired,spacing:H.number.isRequired,rotation:H.number.isRequired,background:H.string.isRequired,color:H.string.isRequired,lineWidth:H.number.isRequired};var qo={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},lp=m.memo(function(e){var t=e.id,n=e.color,r=n===void 0?qo.color:n,i=e.background,a=i===void 0?qo.background:i,o=e.size,s=o===void 0?qo.size:o,c=e.padding,l=c===void 0?qo.padding:c,u=e.stagger,d=u===void 0?qo.stagger:u,f=s+l,h=l/2;return d===!0&&(f=2*s+2*l),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:a}),y.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})});lp.displayName="PatternSquares",lp.propTypes={id:H.string.isRequired,color:H.string.isRequired,background:H.string.isRequired,size:H.number.isRequired,padding:H.number.isRequired,stagger:H.bool.isRequired};var _3={patternDots:sp,patternLines:cp,patternSquares:lp},Xq=["type"],up=qn({},x3,_3),w3=function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=Ud(n,Xq);return up[r]?m.createElement(up[r],qn({key:i.id},i)):null})})};w3.propTypes={defs:H.arrayOf(H.shape({type:H.oneOf(Object.keys(up)).isRequired,id:H.string.isRequired}))};var Qq=m.memo(w3),zd=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,a=e.children,o=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.isFocusable,d=Tt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,focusable:u,tabIndex:u?0:void 0,children:[y.jsx(Qq,{defs:i}),y.jsx("rect",{width:t,height:n,fill:d.background}),y.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:a})]})};zd.propTypes={width:H.number.isRequired,height:H.number.isRequired,margin:H.shape({top:H.number.isRequired,left:H.number.isRequired}).isRequired,defs:H.array,children:H.oneOfType([H.arrayOf(H.node),H.node]).isRequired,role:H.string,isFocusable:H.bool,ariaLabel:H.string,ariaLabelledBy:H.string,ariaDescribedBy:H.string};var C3=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};C3.propTypes={size:H.number.isRequired,color:H.string.isRequired,borderWidth:H.number.isRequired,borderColor:H.string.isRequired};var Jq=m.memo(C3),T3=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Jq:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,g=h===void 0?-12:h,p=Tt(),v=kn(),w=v.animate,_=v.config,x=Sr({transform:"translate("+t+", "+n+")",config:_,immediate:!w});return y.jsxs(Ct.g,{transform:x.transform,style:{pointerEvents:"none"},children:[m.createElement(i,{size:a,color:s,datum:o,borderWidth:c,borderColor:l}),u&&y.jsx("text",{textAnchor:f,y:g,style:jg(p.dots.text),children:u})]})};T3.propTypes={x:H.number.isRequired,y:H.number.isRequired,datum:H.object.isRequired,size:H.number.isRequired,color:H.string.isRequired,borderWidth:H.number.isRequired,borderColor:H.string.isRequired,symbol:H.oneOfType([H.func,H.object]),label:H.oneOfType([H.string,H.number]),labelTextAnchor:H.oneOf(["start","middle","end"]),labelYOffset:H.number};var eY=m.memo(T3),S3=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendPosition,u=l===void 0?"top-right":l,d=e.legendOffsetX,f=d===void 0?14:d,h=e.legendOffsetY,g=h===void 0?14:h,p=e.legendOrientation,v=p===void 0?"horizontal":p,w=Tt(),_=0,x=0,T=0,b=0;r==="y"?(T=i(a),x=t):(_=i(a),b=n);var S=null;if(c){var R=function(M){var k=M.axis,E=M.width,C=M.height,O=M.position,$=M.offsetX,A=M.offsetY,P=M.orientation,D=0,F=0,q=P==="vertical"?-90:0,z="start";if(k==="x")switch(O){case"top-left":D=-$,F=A,z="end";break;case"top":F=-A,z=P==="horizontal"?"middle":"start";break;case"top-right":D=$,F=A,z=P==="horizontal"?"start":"end";break;case"right":D=$,F=C/2,z=P==="horizontal"?"start":"middle";break;case"bottom-right":D=$,F=C-A,z="start";break;case"bottom":F=C+A,z=P==="horizontal"?"middle":"end";break;case"bottom-left":F=C-A,D=-$,z=P==="horizontal"?"end":"start";break;case"left":D=-$,F=C/2,z=P==="horizontal"?"end":"middle"}else switch(O){case"top-left":D=$,F=-A,z="start";break;case"top":D=E/2,F=-A,z=P==="horizontal"?"middle":"start";break;case"top-right":D=E-$,F=-A,z=P==="horizontal"?"end":"start";break;case"right":D=E+$,z=P==="horizontal"?"start":"middle";break;case"bottom-right":D=E-$,F=A,z="end";break;case"bottom":D=E/2,F=A,z=P==="horizontal"?"middle":"end";break;case"bottom-left":D=$,F=A,z=P==="horizontal"?"start":"end";break;case"left":D=-$,z=P==="horizontal"?"end":"middle"}return{x:D,y:F,rotation:q,textAnchor:z}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:g,orientation:v});S=y.jsx("text",{transform:"translate("+R.x+", "+R.y+") rotate("+R.rotation+")",textAnchor:R.textAnchor,dominantBaseline:"central",style:s,children:c})}return y.jsxs("g",{transform:"translate("+_+", "+T+")",children:[y.jsx("line",{x1:0,x2:x,y1:0,y2:b,stroke:w.markers.lineColor,strokeWidth:w.markers.lineStrokeWidth,style:o}),S]})};S3.propTypes={width:H.number.isRequired,height:H.number.isRequired,axis:H.oneOf(["x","y"]).isRequired,scale:H.func.isRequired,value:H.oneOfType([H.number,H.string,H.instanceOf(Date)]).isRequired,lineStyle:H.object,textStyle:H.object,legend:H.string,legendPosition:H.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:H.number.isRequired,legendOffsetY:H.number.isRequired,legendOrientation:H.oneOf(["horizontal","vertical"]).isRequired};var tY=m.memo(S3),k3=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return y.jsx(tY,qn({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null};k3.propTypes={width:H.number.isRequired,height:H.number.isRequired,xScale:H.func.isRequired,yScale:H.func.isRequired,markers:H.arrayOf(H.shape({axis:H.oneOf(["x","y"]).isRequired,value:H.oneOfType([H.number,H.string,H.instanceOf(Date)]).isRequired,lineStyle:H.object,textStyle:H.object}))};var E3=m.memo(k3),nY=["theme","renderWrapper","animate","motionConfig"],O3=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,ap(n,r),i.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,c=a.animate,l=a.motionConfig,u=Ud(a,nY);return y.jsx(mc,{theme:o,renderWrapper:s,isInteractive:u.isInteractive,animate:c,motionConfig:l,children:y.jsx(e,qn({},u))})},i}(m.Component)},rY=function(e,t){var n=Pm(e)?e:function(r){return xr(r,e)};return n},M3=function(e){return Pm(e)?e:function(t){return xr(t,e)}},Yi=function(e){return m.useMemo(function(){return M3(e)},[e])},iY=function(e,t,n,r){var i=n-e,a=r-t;return i*=i,a*=a,Math.sqrt(i+a)},$3=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},os=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},aY=Object.keys(x3),oY=Object.keys(_3),sY=function(e,t,n){if(e==="*")return!0;if(Pm(e))return e(t);if(zm(e)){var r=n?xr(t,n):t;return Pq(qH(r,Object.keys(e)),e)}return!1},Pg=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,c=i.targetKey,l=c===void 0?"fill":c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h=function(){var p=n[g],v=p.id,w=p.match;if(sY(w,f,a)){var _=e.find(function(E){return E.id===v});if(_){if(oY.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=xr(f,s),T=_.background,b=_.color,S=v;_.background==="inherit"&&(S=S+".bg."+x,T=x),_.color==="inherit"&&(S=S+".fg."+x,b=x),Qo(f,l,"url(#"+S+")"),d[S]||(u.push(qn({},_,{id:S,background:T,color:b})),d[S]=1)}else Qo(f,l,"url(#"+v+")");else if(aY.includes(_.type))if(_.colors.map(function(E){return E.color}).includes("inherit")){var R=xr(f,s),M=v,k=qn({},_,{colors:_.colors.map(function(E,C){return E.color!=="inherit"?E:(M=M+"."+C+"."+R,qn({},E,{color:E.color==="inherit"?R:E.color}))})});k.id=M,Qo(f,l,"url(#"+M+")"),d[M]||(u.push(k),d[M]=1)}else Qo(f,l,"url(#"+v+")")}return"break"}},g=0;g<n.length&&h()!=="break";g++);})),u};function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function Oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cY(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return Oy(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Oy(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
270
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A3={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:O4,accent:M4,dark2:$4,paired:A4,pastel1:R4,pastel2:j4,set1:P4,set2:I4,set3:vg,tableau10:JU},lY=Object.keys(A3),R3={brown_blueGreen:ld,purpleRed_green:ud,pink_yellowGreen:dd,purple_orange:fd,red_blue:hd,red_grey:pd,red_yellow_blue:md,red_yellow_green:gd,spectral:vd},uY=Object.keys(R3),dY={brown_blueGreen:eW,purpleRed_green:tW,pink_yellowGreen:nW,purple_orange:rW,red_blue:iW,red_grey:aW,red_yellow_blue:oW,red_yellow_green:sW,spectral:cW},j3={blues:$d,greens:Ad,greys:Rd,oranges:Id,purples:jd,reds:Pd,blue_green:yd,blue_purple:bd,green_blue:xd,orange_red:_d,purple_blue_green:wd,purple_blue:Cd,purple_red:Td,red_purple:Sd,yellow_green_blue:kd,yellow_green:Ed,yellow_orange_brown:Od,yellow_orange_red:Md},fY=Object.keys(j3),hY={blues:_W,greens:wW,greys:CW,oranges:kW,purples:TW,reds:SW,turbo:IW,viridis:DW,inferno:LW,magma:NW,plasma:FW,cividis:EW,warm:MW,cool:$W,cubehelixDefault:OW,blue_green:lW,blue_purple:uW,green_blue:dW,orange_red:fW,purple_blue_green:hW,purple_blue:pW,purple_red:mW,red_purple:gW,yellow_green_blue:vW,yellow_green:yW,yellow_orange_brown:bW,yellow_orange_red:xW},Uf=tu({},A3,R3,j3),pY=function(e){return lY.includes(e)},mY=function(e){return uY.includes(e)},gY=function(e){return fY.includes(e)},vY={rainbow:AW,sinebow:PW};tu({},dY,hY,vY);var yY=function(e,t){if(typeof e=="function")return e;if(zm(e)){if(function(c){return c.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=xr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(c){return c.from!==void 0}(e)){var r=function(c){return xr(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")a.push(function(d){return d.brighter(u)});else if(l==="darker")a.push(function(d){return d.darker(u)});else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(d){return d.opacity=u,d})}},s=cY(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(c){return a.reduce(function(l,u){return u(l)},Qa(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},wr=function(e,t){return m.useMemo(function(){return yY(e,t)},[e,t])};H.oneOfType([H.string,H.func,H.shape({theme:H.string.isRequired}),H.shape({from:H.string.isRequired,modifiers:H.arrayOf(H.array)})]);var bY=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return xr(d,t)};if(Array.isArray(e)){var r=Ni(e),i=function(d){return r(n(d))};return i.scale=r,i}if(zm(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return xr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(pY(e.scheme)){var a=Ni(Uf[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(mY(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=Ni(Uf[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(gY(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=Ni(Uf[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Ig=function(e,t){return m.useMemo(function(){return bY(e,t)},[e,t])};function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pt.apply(this,arguments)}var xY={pointerEvents:"none"},_Y=function(e){var t=e.label,n=e.style,r=Tt();return y.jsx(Ct.g,{transform:n.transform,opacity:n.progress,style:xY,children:y.jsx(Ct.text,{textAnchor:"middle",dominantBaseline:"central",style:Pt({},r.labels.text,{fill:n.textColor}),children:t})})},P3=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},wY=function(e,t){return e.filter(function(n){return Math.abs(Wd(n.arc.endAngle-n.arc.startAngle))>=t})},CY={startAngle:{enter:function(e){return Pt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Pt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Pt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Pt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Pt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Pt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Pt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Pt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Pt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Pt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Pt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Pt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},I3=function(e,t){return m.useMemo(function(){var n=CY[e];return{enter:function(r){return Pt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Pt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Pt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},TY=function(e,t){var n=Gq(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return qi(n,r)},SY=function(e){return function(t,n,r,i){return vi([t,n,r,i],function(a,o,s,c){var l=TY({startAngle:a,endAngle:o,innerRadius:s,outerRadius:c},e);return"translate("+l.x+","+l.y+")"})}},kY=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=kn(),a=i.animate,o=i.config,s=I3(n,r);return{transition:sa(e,{keys:function(c){return c.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:SY(t)}},EY=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.textColor,c=e.component,l=c===void 0?_Y:c,u=Yi(i),d=Tt(),f=wr(s,d),h=m.useMemo(function(){return n.filter(function(_){return Math.abs(Wd(_.arc.endAngle-_.arc.startAngle))>=o})},[n,o]),g=kY(h,a,r),p=g.transition,v=g.interpolate,w=l;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:p(function(_,x){return m.createElement(w,{key:x.id,datum:x,label:u(x),style:Pt({},_,{transform:v(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textColor:f(x)})})})})},OY=function(e){var t=e.label,n=e.style,r=Tt();return y.jsxs(Ct.g,{opacity:n.opacity,children:[y.jsx(Ct.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Ct.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Pt({},r.labels.text,{fill:n.textColor}),children:t})]})},MY=function(e){var t=P3(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},D3=function(e,t,n,r){var i,a,o=P3(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=qi(o,e.outerRadius+t),c=qi(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:c.x+r,y:c.y}):(i="before",a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},$Y=wg().x(function(e){return e.x}).y(function(e){return e.y}),AY=function(e,t,n,r,i,a,o){return vi([e,t,n,r,i,a,o],function(s,c,l,u,d,f,h){var g=D3({startAngle:s,endAngle:c,innerRadius:l,outerRadius:u},d,f,h).points;return $Y(g)})},RY=function(e,t,n,r){return vi([e,t,n,r],function(i,a,o,s){return MY({startAngle:i,endAngle:a,innerRadius:o,outerRadius:s})})},jY=function(e,t,n,r,i,a,o,s){return vi([e,t,n,r,i,a,o,s],function(c,l,u,d,f,h,g,p){var v=D3({startAngle:c,endAngle:l,innerRadius:u,outerRadius:d},f,h,g),w=v.points,_=v.side,x=w[2];return _==="before"?x.x-=p:x.x+=p,"translate("+x.x+","+x.y+")"})},PY=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,l=e.linkColor,u=e.textColor,d=kn(),f=d.animate,h=d.config,g=Tt(),p=wr(l,g),v=wr(u,g),w=function(x,T){return m.useMemo(function(){return wY(x,T)},[x,T])}(t,s),_=function(x){var T=x.offset,b=x.diagonalLength,S=x.straightLength,R=x.textOffset,M=x.getLinkColor,k=x.getTextColor;return m.useMemo(function(){return{enter:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:R,linkColor:M(E),textColor:k(E),opacity:0}},update:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:b,straightLength:S,textOffset:R,linkColor:M(E),textColor:k(E),opacity:1}},leave:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:R,linkColor:M(E),textColor:k(E),opacity:0}}}},[b,S,R,M,k,T])}({offset:r,diagonalLength:i,straightLength:a,textOffset:c,getLinkColor:p,getTextColor:v});return{transition:sa(w,{keys:function(x){return x.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:AY,interpolateTextAnchor:RY,interpolateTextPosition:jY}},IY=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?OY:f,g=Yi(r),p=PY({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),v=p.transition,w=p.interpolateLink,_=p.interpolateTextAnchor,x=p.interpolateTextPosition,T=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(b,S){return m.createElement(T,{key:S.id,datum:S,label:g(S),style:Pt({},b,{thickness:c,path:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength),textAnchor:_(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textPosition:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},DY=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=m.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=m.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=m.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=m.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return y.jsx(Ct.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0})},NY=function(e,t,n,r,i){return vi([e,t,n,r],function(a,o,s,c){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},LY=function(e,t,n){t===void 0&&(t="innerRadius");var r=kn(),i=r.animate,a=r.config,o=I3(t,n);return{transition:sa(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:NY}},FY=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?DY:d,h=Tt(),g=wr(a,h),p=LY(n,u,{enter:function(x){return{opacity:0,color:x.color,borderColor:g(x)}},update:function(x){return{opacity:1,color:x.color,borderColor:g(x)}},leave:function(x){return{opacity:0,color:x.color,borderColor:g(x)}}}),v=p.transition,w=p.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(x,T){return m.createElement(_,{key:T.id,datum:T,style:Pt({},x,{borderWidth:i,path:w(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})})})},BY=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=qi(Yn(r),n);o.push([s.x,s.y]);var c=qi(Yn(i),n);o.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=qi(Yn(l),n);o.push([u.x,u.y])}o=o.map(function(v){var w=v[0],_=v[1];return[e+w,t+_]}),a&&o.push([e,t]);var d=o.map(function(v){return v[0]}),f=o.map(function(v){return v[1]}),h=Math.min.apply(Math,d),g=Math.max.apply(Math,d),p=Math.min.apply(Math,f);return{points:o,x:h,y:p,width:g-h,height:Math.max.apply(Math,f)-p}},UY=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return m.useMemo(function(){return Pz().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},WY=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})},zY=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
269
+ `),y.jsxs("pattern",{id:t,width:p,height:v,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:p,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})});cp.displayName="PatternLines",cp.propTypes={id:H.string.isRequired,spacing:H.number.isRequired,rotation:H.number.isRequired,background:H.string.isRequired,color:H.string.isRequired,lineWidth:H.number.isRequired};var qo={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},lp=m.memo(function(e){var t=e.id,n=e.color,r=n===void 0?qo.color:n,i=e.background,a=i===void 0?qo.background:i,o=e.size,s=o===void 0?qo.size:o,c=e.padding,l=c===void 0?qo.padding:c,u=e.stagger,d=u===void 0?qo.stagger:u,f=s+l,h=l/2;return d===!0&&(f=2*s+2*l),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:a}),y.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})});lp.displayName="PatternSquares",lp.propTypes={id:H.string.isRequired,color:H.string.isRequired,background:H.string.isRequired,size:H.number.isRequired,padding:H.number.isRequired,stagger:H.bool.isRequired};var w3={patternDots:sp,patternLines:cp,patternSquares:lp},Xq=["type"],up=qn({},_3,w3),C3=function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=Bd(n,Xq);return up[r]?m.createElement(up[r],qn({key:i.id},i)):null})})};C3.propTypes={defs:H.arrayOf(H.shape({type:H.oneOf(Object.keys(up)).isRequired,id:H.string.isRequired}))};var Qq=m.memo(C3),Wd=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,a=e.children,o=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.isFocusable,d=Tt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":c,"aria-describedby":l,focusable:u,tabIndex:u?0:void 0,children:[y.jsx(Qq,{defs:i}),y.jsx("rect",{width:t,height:n,fill:d.background}),y.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:a})]})};Wd.propTypes={width:H.number.isRequired,height:H.number.isRequired,margin:H.shape({top:H.number.isRequired,left:H.number.isRequired}).isRequired,defs:H.array,children:H.oneOfType([H.arrayOf(H.node),H.node]).isRequired,role:H.string,isFocusable:H.bool,ariaLabel:H.string,ariaLabelledBy:H.string,ariaDescribedBy:H.string};var T3=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};T3.propTypes={size:H.number.isRequired,color:H.string.isRequired,borderWidth:H.number.isRequired,borderColor:H.string.isRequired};var Jq=m.memo(T3),S3=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Jq:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,g=h===void 0?-12:h,p=Tt(),v=kn(),w=v.animate,_=v.config,x=Sr({transform:"translate("+t+", "+n+")",config:_,immediate:!w});return y.jsxs(Ct.g,{transform:x.transform,style:{pointerEvents:"none"},children:[m.createElement(i,{size:a,color:s,datum:o,borderWidth:c,borderColor:l}),u&&y.jsx("text",{textAnchor:f,y:g,style:Pg(p.dots.text),children:u})]})};S3.propTypes={x:H.number.isRequired,y:H.number.isRequired,datum:H.object.isRequired,size:H.number.isRequired,color:H.string.isRequired,borderWidth:H.number.isRequired,borderColor:H.string.isRequired,symbol:H.oneOfType([H.func,H.object]),label:H.oneOfType([H.string,H.number]),labelTextAnchor:H.oneOf(["start","middle","end"]),labelYOffset:H.number};var eY=m.memo(S3),k3=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendPosition,u=l===void 0?"top-right":l,d=e.legendOffsetX,f=d===void 0?14:d,h=e.legendOffsetY,g=h===void 0?14:h,p=e.legendOrientation,v=p===void 0?"horizontal":p,w=Tt(),_=0,x=0,T=0,b=0;r==="y"?(T=i(a),x=t):(_=i(a),b=n);var S=null;if(c){var R=function(M){var k=M.axis,E=M.width,C=M.height,O=M.position,$=M.offsetX,A=M.offsetY,P=M.orientation,D=0,F=0,q=P==="vertical"?-90:0,z="start";if(k==="x")switch(O){case"top-left":D=-$,F=A,z="end";break;case"top":F=-A,z=P==="horizontal"?"middle":"start";break;case"top-right":D=$,F=A,z=P==="horizontal"?"start":"end";break;case"right":D=$,F=C/2,z=P==="horizontal"?"start":"middle";break;case"bottom-right":D=$,F=C-A,z="start";break;case"bottom":F=C+A,z=P==="horizontal"?"middle":"end";break;case"bottom-left":F=C-A,D=-$,z=P==="horizontal"?"end":"start";break;case"left":D=-$,F=C/2,z=P==="horizontal"?"end":"middle"}else switch(O){case"top-left":D=$,F=-A,z="start";break;case"top":D=E/2,F=-A,z=P==="horizontal"?"middle":"start";break;case"top-right":D=E-$,F=-A,z=P==="horizontal"?"end":"start";break;case"right":D=E+$,z=P==="horizontal"?"start":"middle";break;case"bottom-right":D=E-$,F=A,z="end";break;case"bottom":D=E/2,F=A,z=P==="horizontal"?"middle":"end";break;case"bottom-left":D=$,F=A,z=P==="horizontal"?"start":"end";break;case"left":D=-$,z=P==="horizontal"?"end":"middle"}return{x:D,y:F,rotation:q,textAnchor:z}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:g,orientation:v});S=y.jsx("text",{transform:"translate("+R.x+", "+R.y+") rotate("+R.rotation+")",textAnchor:R.textAnchor,dominantBaseline:"central",style:s,children:c})}return y.jsxs("g",{transform:"translate("+_+", "+T+")",children:[y.jsx("line",{x1:0,x2:x,y1:0,y2:b,stroke:w.markers.lineColor,strokeWidth:w.markers.lineStrokeWidth,style:o}),S]})};k3.propTypes={width:H.number.isRequired,height:H.number.isRequired,axis:H.oneOf(["x","y"]).isRequired,scale:H.func.isRequired,value:H.oneOfType([H.number,H.string,H.instanceOf(Date)]).isRequired,lineStyle:H.object,textStyle:H.object,legend:H.string,legendPosition:H.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:H.number.isRequired,legendOffsetY:H.number.isRequired,legendOrientation:H.oneOf(["horizontal","vertical"]).isRequired};var tY=m.memo(k3),E3=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return y.jsx(tY,qn({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null};E3.propTypes={width:H.number.isRequired,height:H.number.isRequired,xScale:H.func.isRequired,yScale:H.func.isRequired,markers:H.arrayOf(H.shape({axis:H.oneOf(["x","y"]).isRequired,value:H.oneOfType([H.number,H.string,H.instanceOf(Date)]).isRequired,lineStyle:H.object,textStyle:H.object}))};var O3=m.memo(E3),nY=["theme","renderWrapper","animate","motionConfig"],M3=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,ap(n,r),i.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,c=a.animate,l=a.motionConfig,u=Bd(a,nY);return y.jsx(mc,{theme:o,renderWrapper:s,isInteractive:u.isInteractive,animate:c,motionConfig:l,children:y.jsx(e,qn({},u))})},i}(m.Component)},rY=function(e,t){var n=Im(e)?e:function(r){return xr(r,e)};return n},$3=function(e){return Im(e)?e:function(t){return xr(t,e)}},Yi=function(e){return m.useMemo(function(){return $3(e)},[e])},iY=function(e,t,n,r){var i=n-e,a=r-t;return i*=i,a*=a,Math.sqrt(i+a)},A3=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},os=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},aY=Object.keys(_3),oY=Object.keys(w3),sY=function(e,t,n){if(e==="*")return!0;if(Im(e))return e(t);if(Hm(e)){var r=n?xr(t,n):t;return Pq(qH(r,Object.keys(e)),e)}return!1},Ig=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,c=i.targetKey,l=c===void 0?"fill":c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h=function(){var p=n[g],v=p.id,w=p.match;if(sY(w,f,a)){var _=e.find(function(E){return E.id===v});if(_){if(oY.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=xr(f,s),T=_.background,b=_.color,S=v;_.background==="inherit"&&(S=S+".bg."+x,T=x),_.color==="inherit"&&(S=S+".fg."+x,b=x),Qo(f,l,"url(#"+S+")"),d[S]||(u.push(qn({},_,{id:S,background:T,color:b})),d[S]=1)}else Qo(f,l,"url(#"+v+")");else if(aY.includes(_.type))if(_.colors.map(function(E){return E.color}).includes("inherit")){var R=xr(f,s),M=v,k=qn({},_,{colors:_.colors.map(function(E,C){return E.color!=="inherit"?E:(M=M+"."+C+"."+R,qn({},E,{color:E.color==="inherit"?R:E.color}))})});k.id=M,Qo(f,l,"url(#"+M+")"),d[M]||(u.push(k),d[M]=1)}else Qo(f,l,"url(#"+v+")")}return"break"}},g=0;g<n.length&&h()!=="break";g++);})),u};function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(this,arguments)}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cY(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return My(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?My(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
270
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R3={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:M4,accent:$4,dark2:A4,paired:R4,pastel1:j4,pastel2:P4,set1:I4,set2:D4,set3:yg,tableau10:JU},lY=Object.keys(R3),j3={brown_blueGreen:cd,purpleRed_green:ld,pink_yellowGreen:ud,purple_orange:dd,red_blue:fd,red_grey:hd,red_yellow_blue:pd,red_yellow_green:md,spectral:gd},uY=Object.keys(j3),dY={brown_blueGreen:eW,purpleRed_green:tW,pink_yellowGreen:nW,purple_orange:rW,red_blue:iW,red_grey:aW,red_yellow_blue:oW,red_yellow_green:sW,spectral:cW},P3={blues:Md,greens:$d,greys:Ad,oranges:Pd,purples:Rd,reds:jd,blue_green:vd,blue_purple:yd,green_blue:bd,orange_red:xd,purple_blue_green:_d,purple_blue:wd,purple_red:Cd,red_purple:Td,yellow_green_blue:Sd,yellow_green:kd,yellow_orange_brown:Ed,yellow_orange_red:Od},fY=Object.keys(P3),hY={blues:_W,greens:wW,greys:CW,oranges:kW,purples:TW,reds:SW,turbo:IW,viridis:DW,inferno:LW,magma:NW,plasma:FW,cividis:EW,warm:MW,cool:$W,cubehelixDefault:OW,blue_green:lW,blue_purple:uW,green_blue:dW,orange_red:fW,purple_blue_green:hW,purple_blue:pW,purple_red:mW,red_purple:gW,yellow_green_blue:vW,yellow_green:yW,yellow_orange_brown:bW,yellow_orange_red:xW},Bf=eu({},R3,j3,P3),pY=function(e){return lY.includes(e)},mY=function(e){return uY.includes(e)},gY=function(e){return fY.includes(e)},vY={rainbow:AW,sinebow:PW};eu({},dY,hY,vY);var yY=function(e,t){if(typeof e=="function")return e;if(Hm(e)){if(function(c){return c.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=xr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(c){return c.from!==void 0}(e)){var r=function(c){return xr(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")a.push(function(d){return d.brighter(u)});else if(l==="darker")a.push(function(d){return d.darker(u)});else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(d){return d.opacity=u,d})}},s=cY(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(c){return a.reduce(function(l,u){return u(l)},Qa(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},wr=function(e,t){return m.useMemo(function(){return yY(e,t)},[e,t])};H.oneOfType([H.string,H.func,H.shape({theme:H.string.isRequired}),H.shape({from:H.string.isRequired,modifiers:H.arrayOf(H.array)})]);var bY=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return xr(d,t)};if(Array.isArray(e)){var r=Ni(e),i=function(d){return r(n(d))};return i.scale=r,i}if(Hm(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return xr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(pY(e.scheme)){var a=Ni(Bf[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(mY(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=Ni(Bf[e.scheme][e.size||11]),c=function(d){return s(n(d))};return c.scale=s,c}if(gY(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=Ni(Bf[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Dg=function(e,t){return m.useMemo(function(){return bY(e,t)},[e,t])};function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pt.apply(this,arguments)}var xY={pointerEvents:"none"},_Y=function(e){var t=e.label,n=e.style,r=Tt();return y.jsx(Ct.g,{transform:n.transform,opacity:n.progress,style:xY,children:y.jsx(Ct.text,{textAnchor:"middle",dominantBaseline:"central",style:Pt({},r.labels.text,{fill:n.textColor}),children:t})})},I3=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},wY=function(e,t){return e.filter(function(n){return Math.abs(Ud(n.arc.endAngle-n.arc.startAngle))>=t})},CY={startAngle:{enter:function(e){return Pt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Pt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Pt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Pt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Pt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Pt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Pt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Pt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Pt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Pt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Pt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Pt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Pt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},D3=function(e,t){return m.useMemo(function(){var n=CY[e];return{enter:function(r){return Pt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Pt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Pt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},TY=function(e,t){var n=Gq(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return qi(n,r)},SY=function(e){return function(t,n,r,i){return vi([t,n,r,i],function(a,o,s,c){var l=TY({startAngle:a,endAngle:o,innerRadius:s,outerRadius:c},e);return"translate("+l.x+","+l.y+")"})}},kY=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=kn(),a=i.animate,o=i.config,s=D3(n,r);return{transition:sa(e,{keys:function(c){return c.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:SY(t)}},EY=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.textColor,c=e.component,l=c===void 0?_Y:c,u=Yi(i),d=Tt(),f=wr(s,d),h=m.useMemo(function(){return n.filter(function(_){return Math.abs(Ud(_.arc.endAngle-_.arc.startAngle))>=o})},[n,o]),g=kY(h,a,r),p=g.transition,v=g.interpolate,w=l;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:p(function(_,x){return m.createElement(w,{key:x.id,datum:x,label:u(x),style:Pt({},_,{transform:v(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textColor:f(x)})})})})},OY=function(e){var t=e.label,n=e.style,r=Tt();return y.jsxs(Ct.g,{opacity:n.opacity,children:[y.jsx(Ct.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Ct.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Pt({},r.labels.text,{fill:n.textColor}),children:t})]})},MY=function(e){var t=I3(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},N3=function(e,t,n,r){var i,a,o=I3(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=qi(o,e.outerRadius+t),c=qi(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:c.x+r,y:c.y}):(i="before",a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},$Y=Cg().x(function(e){return e.x}).y(function(e){return e.y}),AY=function(e,t,n,r,i,a,o){return vi([e,t,n,r,i,a,o],function(s,c,l,u,d,f,h){var g=N3({startAngle:s,endAngle:c,innerRadius:l,outerRadius:u},d,f,h).points;return $Y(g)})},RY=function(e,t,n,r){return vi([e,t,n,r],function(i,a,o,s){return MY({startAngle:i,endAngle:a,innerRadius:o,outerRadius:s})})},jY=function(e,t,n,r,i,a,o,s){return vi([e,t,n,r,i,a,o,s],function(c,l,u,d,f,h,g,p){var v=N3({startAngle:c,endAngle:l,innerRadius:u,outerRadius:d},f,h,g),w=v.points,_=v.side,x=w[2];return _==="before"?x.x-=p:x.x+=p,"translate("+x.x+","+x.y+")"})},PY=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,c=e.textOffset,l=e.linkColor,u=e.textColor,d=kn(),f=d.animate,h=d.config,g=Tt(),p=wr(l,g),v=wr(u,g),w=function(x,T){return m.useMemo(function(){return wY(x,T)},[x,T])}(t,s),_=function(x){var T=x.offset,b=x.diagonalLength,S=x.straightLength,R=x.textOffset,M=x.getLinkColor,k=x.getTextColor;return m.useMemo(function(){return{enter:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:R,linkColor:M(E),textColor:k(E),opacity:0}},update:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:b,straightLength:S,textOffset:R,linkColor:M(E),textColor:k(E),opacity:1}},leave:function(E){return{startAngle:E.arc.startAngle,endAngle:E.arc.endAngle,innerRadius:E.arc.innerRadius,outerRadius:E.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:R,linkColor:M(E),textColor:k(E),opacity:0}}}},[b,S,R,M,k,T])}({offset:r,diagonalLength:i,straightLength:a,textOffset:c,getLinkColor:p,getTextColor:v});return{transition:sa(w,{keys:function(x){return x.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:AY,interpolateTextAnchor:RY,interpolateTextPosition:jY}},IY=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,c=e.strokeWidth,l=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?OY:f,g=Yi(r),p=PY({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:l,linkColor:d,textColor:u}),v=p.transition,w=p.interpolateLink,_=p.interpolateTextAnchor,x=p.interpolateTextPosition,T=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(b,S){return m.createElement(T,{key:S.id,datum:S,label:g(S),style:Pt({},b,{thickness:c,path:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength),textAnchor:_(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textPosition:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},DY=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=m.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=m.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=m.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=m.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return y.jsx(Ct.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0})},NY=function(e,t,n,r,i){return vi([e,t,n,r],function(a,o,s,c){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,c)})})},LY=function(e,t,n){t===void 0&&(t="innerRadius");var r=kn(),i=r.animate,a=r.config,o=D3(t,n);return{transition:sa(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:NY}},FY=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?DY:d,h=Tt(),g=wr(a,h),p=LY(n,u,{enter:function(x){return{opacity:0,color:x.color,borderColor:g(x)}},update:function(x){return{opacity:1,color:x.color,borderColor:g(x)}},leave:function(x){return{opacity:0,color:x.color,borderColor:g(x)}}}),v=p.transition,w=p.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(x,T){return m.createElement(_,{key:T.id,datum:T,style:Pt({},x,{borderWidth:i,path:w(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})})})},BY=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=qi(Yn(r),n);o.push([s.x,s.y]);var c=qi(Yn(i),n);o.push([c.x,c.y]);for(var l=Math.round(Math.min(r,i));l<=Math.round(Math.max(r,i));l++)if(l%90==0){var u=qi(Yn(l),n);o.push([u.x,u.y])}o=o.map(function(v){var w=v[0],_=v[1];return[e+w,t+_]}),a&&o.push([e,t]);var d=o.map(function(v){return v[0]}),f=o.map(function(v){return v[1]}),h=Math.min.apply(Math,d),g=Math.max.apply(Math,d),p=Math.min.apply(Math,f);return{points:o,x:h,y:p,width:g-h,height:Math.max.apply(Math,f)-p}},UY=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return m.useMemo(function(){return Pz().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},WY=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})},zY=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
271
271
  M`+r/2+` 0
272
272
  L`+.8*r+" "+r/2+`
273
273
  L`+r/2+" "+r+`
@@ -278,4 +278,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
278
278
  L`+r+" "+r+`
279
279
  L0 `+r+`
280
280
  L`+r/2+` 0
281
- `,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})};function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi.apply(this,arguments)}var qY={top:0,right:0,bottom:0,left:0},Dg=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Fi({},qY,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+l:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:c}},N3=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,c=n,l=r;switch(t){case"top":c+=(i-o)/2;break;case"top-right":c+=i-o;break;case"right":c+=i-o,l+=(a-s)/2;break;case"bottom-right":c+=i-o,l+=a-s;break;case"bottom":c+=(i-o)/2,l+=a-s;break;case"bottom-left":l+=a-s;break;case"left":l+=(a-s)/2;break;case"center":c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},L3=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-l)/2,i=f/2,o="central",c?(r=d,a="end"):(r=l+u,a="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,o="central",c?(r=0,a="start"):(r=d-l-u,a="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,a="middle",c?(i=f,o="alphabetic"):(i=l+u,o="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,a="middle",c?(i=0,o="text-before-edge"):(i=f-l-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},YY={circle:WY,diamond:zY,square:HY,triangle:VY},GY=function(e){var t,n,r,i,a,o,s,c,l,u,d,f=e.x,h=e.y,g=e.width,p=e.height,v=e.data,w=e.direction,_=w===void 0?"left-to-right":w,x=e.justify,T=x!==void 0&&x,b=e.textColor,S=e.background,R=S===void 0?"transparent":S,M=e.opacity,k=M===void 0?1:M,E=e.symbolShape,C=E===void 0?"square":E,O=e.symbolSize,$=O===void 0?16:O,A=e.symbolSpacing,P=A===void 0?8:A,D=e.symbolBorderWidth,F=D===void 0?0:D,q=e.symbolBorderColor,z=q===void 0?"transparent":q,U=e.onClick,G=e.onMouseEnter,ee=e.onMouseLeave,ie=e.toggleSerie,J=e.effects,X=m.useState({}),K=X[0],re=X[1],N=Tt(),I=m.useCallback(function(Ae){if(J){var Ve=J.filter(function(Ke){return Ke.on==="hover"}).reduce(function(Ke,st){return Fi({},Ke,st.style)},{});re(Ve)}G==null||G(v,Ae)},[G,v,J]),L=m.useCallback(function(Ae){if(J){var Ve=J.filter(function(Ke){return Ke.on!=="hover"}).reduce(function(Ke,st){return Fi({},Ke,st.style)},{});re(Ve)}ee==null||ee(v,Ae)},[ee,v,J]),V=L3({direction:_,justify:T,symbolSize:(t=K.symbolSize)!=null?t:$,symbolSpacing:P,width:g,height:p}),j=V.symbolX,Z=V.symbolY,Q=V.labelX,te=V.labelY,he=V.labelAnchor,we=V.labelAlignment,me=[U,G,ee,ie].some(function(Ae){return Ae!==void 0}),Ue=typeof C=="function"?C:YY[C];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=K.itemOpacity)!=null?n:k},children:[y.jsx("rect",{width:g,height:p,fill:(r=K.itemBackground)!=null?r:R,style:{cursor:me?"pointer":"auto"},onClick:function(Ae){U==null||U(v,Ae),ie==null||ie(v.id)},onMouseEnter:I,onMouseLeave:L}),ue.createElement(Ue,Fi({id:v.id,x:j,y:Z,size:(i=K.symbolSize)!=null?i:$,fill:(a=(o=v.fill)!=null?o:v.color)!=null?a:"black",borderWidth:(s=K.symbolBorderWidth)!=null?s:F,borderColor:(c=K.symbolBorderColor)!=null?c:z},v.hidden?N.legends.hidden.symbol:void 0)),y.jsx("text",{textAnchor:he,style:Fi({},jg(N.legends.text),{fill:(l=(u=(d=K.itemTextColor)!=null?d:b)!=null?u:N.legends.text.fill)!=null?l:"black",dominantBaseline:we,pointerEvents:"none",userSelect:"none"},v.hidden?N.legends.hidden.text:void 0),x:Q,y:te,children:v.label})]})},ZY=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?0:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemTextColor,v=e.itemBackground,w=v===void 0?"transparent":v,_=e.itemOpacity,x=_===void 0?1:_,T=e.symbolShape,b=e.symbolSize,S=e.symbolSpacing,R=e.symbolBorderWidth,M=e.symbolBorderColor,k=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,O=e.toggleSerie,$=Dg({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:g,direction:i,padding:o}).padding,A=i==="row"?l+g:0,P=i==="column"?u+g:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(D,F){return y.jsx(GY,{data:D,x:F*A+$.left,y:F*P+$.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:p,background:w,opacity:x,symbolShape:T,symbolSize:b,symbolSpacing:S,symbolBorderWidth:R,symbolBorderColor:M,onClick:k,onMouseEnter:E,onMouseLeave:C,toggleSerie:O},F)})})},Ng=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?0:i,o=e.translateY,s=o===void 0?0:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemWidth,v=e.itemHeight,w=e.itemDirection,_=e.itemTextColor,x=e.itemBackground,T=e.itemOpacity,b=e.symbolShape,S=e.symbolSize,R=e.symbolSpacing,M=e.symbolBorderWidth,k=e.symbolBorderColor,E=e.onClick,C=e.onMouseEnter,O=e.onMouseLeave,$=e.toggleSerie,A=e.effects,P=Dg({itemCount:t.length,itemsSpacing:g,itemWidth:p,itemHeight:v,direction:l,padding:d}),D=P.width,F=P.height,q=N3({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:D,height:F}),z=q.x,U=q.y;return y.jsx(ZY,{data:t,x:z,y:U,direction:l,padding:d,justify:f,effects:A,itemsSpacing:g,itemWidth:p,itemHeight:v,itemDirection:w,itemTextColor:_,itemBackground:x,itemOpacity:T,symbolShape:b,symbolSize:S,symbolSpacing:R,symbolBorderWidth:M,symbolBorderColor:k,onClick:E,onMouseEnter:C,onMouseLeave:O,toggleSerie:typeof $=="boolean"?void 0:$})},KY={start:"left",middle:"center",end:"right"},F3=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,g=h!==void 0&&h,p=t.itemsSpacing,v=p===void 0?0:p,w=t.itemWidth,_=t.itemHeight,x=t.itemDirection,T=x===void 0?"left-to-right":x,b=t.itemTextColor,S=t.symbolSize,R=S===void 0?16:S,M=t.symbolSpacing,k=M===void 0?8:M,E=t.theme,C=Dg({itemCount:n.length,itemWidth:w,itemHeight:_,itemsSpacing:v,direction:u,padding:f}),O=C.width,$=C.height,A=C.padding,P=N3({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O,height:$}),D=P.x,F=P.y,q=u==="row"?w+v:0,z=u==="column"?_+v:0;e.save(),e.translate(D,F),e.font=E.legends.text.fontSize+"px "+(E.legends.text.fontFamily||"sans-serif"),n.forEach(function(U,G){var ee,ie,J=G*q+A.left,X=G*z+A.top,K=L3({direction:T,justify:g,symbolSize:R,symbolSpacing:k,width:w,height:_}),re=K.symbolX,N=K.symbolY,I=K.labelX,L=K.labelY,V=K.labelAnchor,j=K.labelAlignment;e.fillStyle=(ee=U.color)!=null?ee:"black",e.fillRect(J+re,X+N,R,R),e.textAlign=KY[V],j==="central"&&(e.textBaseline="middle"),e.fillStyle=(ie=b??E.legends.text.fill)!=null?ie:"black",e.fillText(String(U.label),J+I,X+L)}),e.restore()};function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}function B3(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var My,XY=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,s){var c;return y.jsx(Ng,_i({},o,{containerWidth:t,containerHeight:n,data:(c=o.data)!=null?c:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},Ie={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return y.jsx(jm,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(My=window.devicePixelRatio)!=null?My:1},QY=["points"],JY=function(e){var t=e.data,n=e.id,r=n===void 0?Ie.id:n,i=e.value,a=i===void 0?Ie.value:i,o=e.valueFormat,s=e.colors,c=s===void 0?Ie.colors:s,l=Yi(r),u=Yi(a),d=eo(o),f=Ig(c,"id");return m.useMemo(function(){return t.map(function(h){var g,p=l(h),v=u(h),w={id:p,label:(g=h.label)!=null?g:p,hidden:!1,value:v,formattedValue:d(v),data:h};return _i({},w,{color:f(w)})})},[t,l,u,d,f])},eG=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=m.useMemo(function(){var w=Lz().value(function(_){return _.value}).startAngle(Yn(n)).endAngle(Yn(r)).padAngle(Yn(o));return s||w.sortValues(null),w},[n,r,o,s]),g=m.useMemo(function(){var w=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(w).map(function(_){var x=Math.abs(_.endAngle-_.startAngle);return _i({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:c===_.data.id?i-l:i,outerRadius:c===_.data.id?a+u:a,thickness:a-i,padAngle:_.padAngle,angle:x,angleDeg:Wd(x)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,c,i,l,a,u]),p=g.legendData,v=m.useRef(f);return m.useEffect(function(){typeof v.current=="function"&&v.current(p)},[v,p]),g},tG=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=m.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:m.useCallback(function(c){n&&n(c),i||s(c)},[i,n,s])}},nG=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?Ie.innerRadius:i,o=e.startAngle,s=o===void 0?Ie.startAngle:o,c=e.endAngle,l=c===void 0?Ie.endAngle:c,u=e.padAngle,d=u===void 0?Ie.padAngle:u,f=e.sortByValue,h=f===void 0?Ie.sortByValue:f,g=e.cornerRadius,p=g===void 0?Ie.cornerRadius:g,v=e.fit,w=v===void 0?Ie.fit:v,_=e.activeInnerRadiusOffset,x=_===void 0?Ie.activeInnerRadiusOffset:_,T=e.activeOuterRadiusOffset,b=T===void 0?Ie.activeOuterRadiusOffset:T,S=e.activeId,R=e.onActiveIdChange,M=e.defaultActiveId,k=e.forwardLegendData,E=tG({activeId:S,onActiveIdChange:R,defaultActiveId:M}),C=E.activeId,O=E.setActiveId,$=m.useState([]),A=$[0],P=$[1],D=m.useMemo(function(){var z,U=Math.min(n,r)/2,G=U*Math.min(a,1),ee=n/2,ie=r/2;if(w){var J=BY(ee,ie,U,s-90,l-90),X=J.points,K=B3(J,QY),re=Math.min(n/K.width,r/K.height),N={width:K.width*re,height:K.height*re};N.x=(n-N.width)/2,N.y=(r-N.height)/2,ee=(ee-K.x)/K.width*K.width*re+N.x,ie=(ie-K.y)/K.height*K.height*re+N.y,z={box:K,ratio:re,points:X},U*=re,G*=re}return{centerX:ee,centerY:ie,radius:U,innerRadius:G,debug:z}},[n,r,a,s,l,w]),F=eG({data:t,startAngle:s,endAngle:l,innerRadius:D.innerRadius,outerRadius:D.radius,padAngle:d,sortByValue:h,activeId:C,activeInnerRadiusOffset:x,activeOuterRadiusOffset:b,hiddenIds:A,forwardLegendData:k}),q=m.useCallback(function(z){P(function(U){return U.indexOf(z)>-1?U.filter(function(G){return G!==z}):[].concat(U,[z])})},[]);return _i({arcGenerator:UY({cornerRadius:p,padAngle:Yn(d)}),activeId:C,setActiveId:O,toggleSerie:q},F,D)},rG=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},iG=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,g=ca(),p=g.showTooltipFromEvent,v=g.hideTooltip,w=m.useMemo(function(){if(o)return function(b,S){s==null||s(b,S)}},[o,s]),_=m.useMemo(function(){if(o)return function(b,S){p(m.createElement(f,{datum:b}),S),d(b.id),c==null||c(b,S)}},[o,p,d,c,f]),x=m.useMemo(function(){if(o)return function(b,S){p(m.createElement(f,{datum:b}),S),l==null||l(b,S)}},[o,p,l,f]),T=m.useMemo(function(){if(o)return function(b,S){v(),d(null),u==null||u(b,S)}},[o,v,d,u]);return y.jsx(FY,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:w,onMouseEnter:_,onMouseMove:x,onMouseLeave:T})},aG=["isInteractive","animate","motionConfig","theme","renderWrapper"],oG=function(e){var t=e.data,n=e.id,r=n===void 0?Ie.id:n,i=e.value,a=i===void 0?Ie.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?Ie.sortByValue:s,l=e.layers,u=l===void 0?Ie.layers:l,d=e.startAngle,f=d===void 0?Ie.startAngle:d,h=e.endAngle,g=h===void 0?Ie.endAngle:h,p=e.padAngle,v=p===void 0?Ie.padAngle:p,w=e.fit,_=w===void 0?Ie.fit:w,x=e.innerRadius,T=x===void 0?Ie.innerRadius:x,b=e.cornerRadius,S=b===void 0?Ie.cornerRadius:b,R=e.activeInnerRadiusOffset,M=R===void 0?Ie.activeInnerRadiusOffset:R,k=e.activeOuterRadiusOffset,E=k===void 0?Ie.activeOuterRadiusOffset:k,C=e.width,O=e.height,$=e.margin,A=e.colors,P=A===void 0?Ie.colors:A,D=e.borderWidth,F=D===void 0?Ie.borderWidth:D,q=e.borderColor,z=q===void 0?Ie.borderColor:q,U=e.enableArcLabels,G=U===void 0?Ie.enableArcLabels:U,ee=e.arcLabel,ie=ee===void 0?Ie.arcLabel:ee,J=e.arcLabelsSkipAngle,X=J===void 0?Ie.arcLabelsSkipAngle:J,K=e.arcLabelsTextColor,re=K===void 0?Ie.arcLabelsTextColor:K,N=e.arcLabelsRadiusOffset,I=N===void 0?Ie.arcLabelsRadiusOffset:N,L=e.arcLabelsComponent,V=e.enableArcLinkLabels,j=V===void 0?Ie.enableArcLinkLabels:V,Z=e.arcLinkLabel,Q=Z===void 0?Ie.arcLinkLabel:Z,te=e.arcLinkLabelsSkipAngle,he=te===void 0?Ie.arcLinkLabelsSkipAngle:te,we=e.arcLinkLabelsOffset,me=we===void 0?Ie.arcLinkLabelsOffset:we,Ue=e.arcLinkLabelsDiagonalLength,Ae=Ue===void 0?Ie.arcLinkLabelsDiagonalLength:Ue,Ve=e.arcLinkLabelsStraightLength,Ke=Ve===void 0?Ie.arcLinkLabelsStraightLength:Ve,st=e.arcLinkLabelsThickness,pe=st===void 0?Ie.arcLinkLabelsThickness:st,Te=e.arcLinkLabelsTextOffset,ve=Te===void 0?Ie.arcLinkLabelsTextOffset:Te,Ne=e.arcLinkLabelsTextColor,nt=Ne===void 0?Ie.arcLinkLabelsTextColor:Ne,Et=e.arcLinkLabelsColor,rt=Et===void 0?Ie.arcLinkLabelsColor:Et,ot=e.arcLinkLabelComponent,pt=e.defs,It=pt===void 0?Ie.defs:pt,ct=e.fill,dt=ct===void 0?Ie.fill:ct,mt=e.isInteractive,Wt=mt===void 0?Ie.isInteractive:mt,De=e.onClick,Re=e.onMouseEnter,qe=e.onMouseMove,lt=e.onMouseLeave,gt=e.tooltip,St=gt===void 0?Ie.tooltip:gt,Vt=e.activeId,Rt=e.onActiveIdChange,Dt=e.defaultActiveId,qt=e.transitionMode,vt=qt===void 0?Ie.transitionMode:qt,Yt=e.legends,rn=Yt===void 0?Ie.legends:Yt,Jt=e.forwardLegendData,ye=e.role,Ee=ye===void 0?Ie.role:ye,je=pc(C,O,$),Ye=je.outerWidth,We=je.outerHeight,ft=je.margin,W=je.innerWidth,ce=je.innerHeight,ae=JY({data:t,id:r,value:a,valueFormat:o,colors:P}),se=nG({data:ae,width:W,height:ce,fit:_,innerRadius:T,startAngle:f,endAngle:g,padAngle:v,sortByValue:c,cornerRadius:S,activeInnerRadiusOffset:M,activeOuterRadiusOffset:E,activeId:Vt,onActiveIdChange:Rt,defaultActiveId:Dt,forwardLegendData:Jt}),be=se.dataWithArc,Oe=se.legendData,xe=se.arcGenerator,ke=se.centerX,Le=se.centerY,Pe=se.radius,Xe=se.innerRadius,zt=se.setActiveId,Ot=se.toggleSerie,Xt=Pg(It,be,dt),ge={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(ge.arcs=y.jsx(iG,{center:[ke,Le],data:be,arcGenerator:xe,borderWidth:F,borderColor:z,isInteractive:Wt,onClick:De,onMouseEnter:Re,onMouseMove:qe,onMouseLeave:lt,setActiveId:zt,tooltip:St,transitionMode:vt},"arcs")),j&&u.includes("arcLinkLabels")&&(ge.arcLinkLabels=y.jsx(IY,{center:[ke,Le],data:be,label:Q,skipAngle:he,offset:me,diagonalLength:Ae,straightLength:Ke,strokeWidth:pe,textOffset:ve,textColor:nt,linkColor:rt,component:ot},"arcLinkLabels")),G&&u.includes("arcLabels")&&(ge.arcLabels=y.jsx(EY,{center:[ke,Le],data:be,label:ie,radiusOffset:I,skipAngle:X,textColor:re,transitionMode:vt,component:L},"arcLabels")),rn.length>0&&u.includes("legends")&&(ge.legends=y.jsx(XY,{width:W,height:ce,data:Oe,legends:rn,toggleSerie:Ot},"legends"));var ln=rG({dataWithArc:be,arcGenerator:xe,centerX:ke,centerY:Le,radius:Pe,innerRadius:Xe});return y.jsx(zd,{width:Ye,height:We,margin:ft,defs:Xt,role:Ee,children:u.map(function(Mt,Jn){return ge[Mt]!==void 0?ge[Mt]:typeof Mt=="function"?y.jsx(m.Fragment,{children:m.createElement(Mt,ln)},Jn):null})})},sG=function(e){var t=e.isInteractive,n=t===void 0?Ie.isInteractive:t,r=e.animate,i=r===void 0?Ie.animate:r,a=e.motionConfig,o=a===void 0?Ie.motionConfig:a,s=e.theme,c=e.renderWrapper,l=B3(e,aG);return y.jsx(mc,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(oG,_i({isInteractive:n},l))})},cG=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(sG,_i({width:n,height:r},e))}})};function lG(){}var uG=lG,Wf=c3,dG=uG,fG=Og,hG=1/0,pG=Wf&&1/fG(new Wf([,-0]))[1]==hG?function(e){return new Wf(e)}:dG,mG=pG,gG=yg,vG=D4,yG=N4,bG=bg,xG=mG,_G=Og,wG=200;function CG(e,t,n){var r=-1,i=vG,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=yG;else if(a>=wG){var l=t?null:xG(e);if(l)return _G(l);o=!1,i=bG,c=new gG}else c=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var U3=CG,TG=U3;function SG(e){return e&&e.length?TG(e):[]}var kG=SG;const $y=Ht(kG);var EG=Gu,OG=$g,MG=1,$G=2;function AG(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new EG;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?OG(u,l,MG|$G,r,d):f))return!1}}return!0}var RG=AG,jG=Er;function PG(e){return e===e&&!jG(e)}var W3=PG,IG=W3,DG=hc;function NG(e){for(var t=DG(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,IG(i)]}return t}var LG=NG;function FG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var z3=FG,BG=RG,UG=LG,WG=z3;function zG(e){var t=UG(e);return t.length==1&&t[0][2]?WG(t[0][0],t[0][1]):function(n){return n===e||BG(n,e,t)}}var HG=zG,VG=$g,qG=Lw,YG=J4,GG=Ym,ZG=W3,KG=z3,XG=bo,QG=1,JG=2;function eZ(e,t){return GG(e)&&ZG(t)?KG(XG(e),t):function(n){var r=qG(n,e);return r===void 0&&r===t?YG(n,e):VG(t,r,QG|JG)}}var tZ=eZ;function nZ(e){return function(t){return t==null?void 0:t[e]}}var rZ=nZ,iZ=dc;function aZ(e){return function(t){return iZ(t,e)}}var oZ=aZ,sZ=rZ,cZ=oZ,lZ=Ym,uZ=bo;function dZ(e){return lZ(e)?sZ(uZ(e)):cZ(e)}var fZ=dZ,hZ=HG,pZ=tZ,mZ=Ju,gZ=Pn,vZ=fZ;function yZ(e){return typeof e=="function"?e:e==null?mZ:typeof e=="object"?gZ(e)?pZ(e[0],e[1]):hZ(e):vZ(e)}var Lg=yZ,bZ=Lg,xZ=U3;function _Z(e,t){return e&&e.length?xZ(e,bZ(t)):[]}var wZ=_Z;const dp=Ht(wZ);var CZ=bw,TZ=hc;function SZ(e,t){return e&&CZ(e,t,TZ)}var kZ=SZ,EZ=mo;function OZ(e,t){return function(n,r){if(n==null)return n;if(!EZ(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var MZ=OZ,$Z=kZ,AZ=MZ,RZ=AZ($Z),H3=RZ,jZ=H3,PZ=mo;function IZ(e,t){var n=-1,r=PZ(e)?Array(e.length):[];return jZ(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var DZ=IZ;function NZ(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var LZ=NZ,Ay=ed;function FZ(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Ay(e),o=t!==void 0,s=t===null,c=t===t,l=Ay(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}var BZ=FZ,UZ=BZ;function WZ(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=UZ(i[r],a[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var zZ=WZ,zf=td,HZ=dc,VZ=Lg,qZ=DZ,YZ=LZ,GZ=go,ZZ=zZ,KZ=Ju,XZ=Pn;function QZ(e,t,n){t.length?t=zf(t,function(a){return XZ(a)?function(o){return HZ(o,a.length===1?a[0]:a)}:a}):t=[KZ];var r=-1;t=zf(t,GZ(VZ));var i=qZ(e,function(a,o,s){var c=zf(t,function(l){return l(a)});return{criteria:c,index:++r,value:a}});return YZ(i,function(a,o){return ZZ(a,o,n)})}var JZ=QZ,eK=t3,tK=JZ,nK=qm,Ry=Pw,rK=nK(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ry(e,t[0],t[1])?t=[]:n>2&&Ry(t[0],t[1],t[2])&&(t=[t[0]]),tK(e,eK(t,1),[])}),iK=rK;const aK=Ht(iK);var oK=Gr,sK=Qn,cK="[object Date]";function lK(e){return sK(e)&&oK(e)==cK}var uK=lK,dK=uK,fK=go,jy=Xu,Py=jy&&jy.isDate,hK=Py?fK(Py):dK,pK=hK;const mK=Ht(pK);function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ji.apply(this,arguments)}var Ca=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],gK={millisecond:[],second:Ca.slice(0,1),minute:Ca.slice(0,2),hour:Ca.slice(0,3),day:Ca.slice(0,4),month:Ca.slice(0,5),year:Ca.slice(0,6)},vK=function(e){return function(t){return gK[e].forEach(function(n){n(t)}),t}},V3=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=vK(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var l=o?E4(n):S4(n);return s(l(c))}},yK=function(e,t,n,r){var i,a,o,s,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,g=e.reverse,p=g!==void 0&&g,v=e.clamp,w=v!==void 0&&v,_=e.nice,x=_!==void 0&&_;l==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=l,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var T=Qw().rangeRound(r==="x"?[0,n]:[n,0]).domain(p?[o,i]:[i,o]).clamp(w);return x===!0?T.nice():typeof x=="number"&&T.nice(x),bK(T,h)},bK=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},xK=function(e,t,n){var r=sB().range([0,n]).domain(t.all);return r.type="point",r},_K=function(e,t,n,r){var i=e.round,a=i===void 0||i,o=tg().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return wK(o)},wK=function(e){var t=e;return t.type="band",t},CK=function(e,t,n){var r,i,a=e.format,o=a===void 0?"native":a,s=e.precision,c=s===void 0?"millisecond":s,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,g=h===void 0||h,p=e.nice,v=p!==void 0&&p,w=V3({format:o,precision:c,useUTC:g});r=u==="auto"?w(t.min):o!=="native"?w(u):u,i=f==="auto"?w(t.max):o!=="native"?w(f):f;var _=g?QU():XU();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var x=_;return x.type="time",x.useUTC=g,x},TK=function(e,t,n,r){var i,a=e.base,o=a===void 0?10:a,s=e.min,c=s===void 0?"auto":s,l=e.max,u=l===void 0?"auto":l;if(t.all.some(function(p){return p===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(p){return p!=null}).forEach(function(p){h||(i===void 0?i=Math.sign(p):Math.sign(p)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=e4().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return g.type="log",g},SK=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?1:o,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=l==="auto"?t.min:l,a=d==="auto"?t.max:d;var g=t4().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?g.domain([a,i]):g.domain([i,a]);var p=g;return p.type="symlog",p},kK=function(e){return e==="x"?"y":"x"},EK=function(e,t){return e===t},OK=function(e,t){return e.getTime()===t.getTime()};function Vs(e,t,n,r){switch(e.type){case"linear":return yK(e,t,n,r);case"point":return xK(e,t,n);case"band":return _K(e,t,n,r);case"time":return CK(e,t,n);case"log":return TK(e,t,n,r);case"symlog":return SK(e,t,n,r);default:throw new Error("invalid scale spec")}}var Iy=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},MK=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return ji({},d,{data:d.data.map(function(f){return{data:ji({},f)}})})}(u)}),o=$K(a,t,n);"stacked"in t&&t.stacked===!0&&AK(o,a),"stacked"in n&&n.stacked===!0&&RK(o,a);var s=Vs(t,o.x,r,"x"),c=Vs(n,o.y,i,"y"),l=a.map(function(u){return ji({},u,{data:u.data.map(function(d){return ji({},d,{position:{x:Iy(d,"x",s),y:Iy(d,"y",c)}})})})});return ji({},o,{series:l,xScale:s,yScale:c})},$K=function(e,t,n){return{x:Dy(e,"x",t),y:Dy(e,"y",n)}},Dy=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(g){return g.data[t]}:a,s=i.setValue,c=s===void 0?function(g,p){g.data[t]=p}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(p){var v=o(p);v&&c(p,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var l=V3(n);e.forEach(function(g){g.data.forEach(function(p){var v=o(p);v&&c(p,l(v))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(p){u.push(o(p))})}),n.type){case"linear":var d=aK($y(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=dp(u,function(g){return g.getTime()}).slice(0).sort(function(g,p){return p.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:Me(f)};default:var h=$y(u);return{all:h,min:h[0],max:Me(h)}}},q3=function(e,t,n){var r=kK(e),i=[];t[r].all.forEach(function(a){var o=mK(a)?OK:EK,s=[];n.forEach(function(c){var l=c.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(l!==void 0){if((u=l.data[e])!==null){var f=Me(s);f===void 0?d=u:f!==null&&(d=f+u)}l.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},AK=function(e,t){return q3("x",e,t)},RK=function(e,t){return q3("y",e,t)},Y3=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},G3={millisecond:[Us,Us],second:[Xh,Xh],minute:[s4,p4],hour:[c4,m4],day:[en(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),en(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[Gl,Zl],sunday:[Gl,Zl],monday:[Ws,zs],tuesday:[l4,g4],wednesday:[u4,v4],thursday:[ra,ia],friday:[d4,y4],saturday:[f4,b4],month:[h4,x4],year:[yi,bi]},jK=Object.keys(G3),PK=new RegExp("^every\\s*(\\d+)?\\s*("+jK.join("|")+")s?$","i"),Z3=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(PK);if(n){var r=n[1],i=n[2],a=G3[i][e.useUTC?1:0];if(i==="day"){var o,s,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(l,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}var K3=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=Z3(r,a),h=Kq[d],g="bandwidth"in r?Y3(r):r,p={lineX:0,lineY:0},v={textX:0,textY:0},w=typeof document=="object"&&document.dir==="rtl",_=h.align.center,x=h.baseline.center;return n==="x"?(t=function(T){var b;return{x:(b=g(T))!=null?b:0,y:0}},p.lineY=o*(i==="after"?1:-1),v.textY=(o+s)*(i==="after"?1:-1),x=i==="after"?h.baseline.top:h.baseline.bottom,c===0?_=h.align.center:i==="after"&&c<0||i==="before"&&c>0?(_=h.align[w?"left":"right"],x=h.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(_=h.align[w?"right":"left"],x=h.baseline.center)):(t=function(T){var b;return{x:0,y:(b=g(T))!=null?b:0}},p.lineX=o*(i==="after"?1:-1),v.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(T){var b=typeof T=="string"?function(S){var R=String(S).length;return l&&l>0&&R>l?""+String(S).slice(0,l).concat("..."):""+S}(T):T;return Gn({key:T instanceof Date?""+T.valueOf():""+T,value:b},t(T),p,v)}),textAlign:_,textBaseline:x}},X3=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=cd(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return fc(e)},fp=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||Z3(i,o)),c="bandwidth"in i?Y3(i):i,l=a==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}});return l},IK=m.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=Tt(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,g=m.useMemo(function(){var p={opacity:l.opacity};return o?{style:Gn({},p,{cursor:"pointer"}),onClick:function(v){return o(v,h)}}:{style:p}},[l.opacity,o,h]);return y.jsxs(Ct.g,Gn({transform:l.transform},g,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:d}),f.outlineWidth>0&&y.jsx(Ct.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),y.jsx(Ct.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:jg(f),children:""+h})]}))}),DK=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,g=e.tickRotation,p=g===void 0?0:g,v=e.format,w=e.renderTick,_=w===void 0?IK:w,x=e.truncateTickAt,T=e.legend,b=e.legendPosition,S=b===void 0?"end":b,R=e.legendOffset,M=R===void 0?0:R,k=e.onClick,E=e.ariaHidden,C=Tt(),O=C.axis.legend.text,$=m.useMemo(function(){return X3(v,n)},[v,n]),A=K3({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:h,tickRotation:p,truncateTickAt:x}),P=A.ticks,D=A.textAlign,F=A.textBaseline,q=null;if(T!==void 0){var z,U=0,G=0,ee=0;t==="y"?(ee=-90,U=M,S==="start"?(z="start",G=s):S==="middle"?(z="middle",G=s/2):S==="end"&&(z="end")):(G=M,S==="start"?z="start":S==="middle"?(z="middle",U=s/2):S==="end"&&(z="end",U=s)),q=y.jsxs(y.Fragment,{children:[O.outlineWidth>0&&y.jsx("text",{transform:"translate("+U+", "+G+") rotate("+ee+")",textAnchor:z,style:Gn({dominantBaseline:"central"},O),strokeWidth:2*O.outlineWidth,stroke:O.outlineColor,strokeLinejoin:"round",children:T}),y.jsx("text",{transform:"translate("+U+", "+G+") rotate("+ee+")",textAnchor:z,style:Gn({dominantBaseline:"central"},O),children:T})]})}var ie=kn(),J=ie.animate,X=ie.config,K=Sr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:X,immediate:!J}),re=m.useCallback(function(L){return{opacity:1,transform:"translate("+L.x+","+L.y+")",textTransform:"translate("+L.textX+","+L.textY+") rotate("+p+")"}},[p]),N=m.useCallback(function(L){return{opacity:0,transform:"translate("+L.x+","+L.y+")",textTransform:"translate("+L.textX+","+L.textY+") rotate("+p+")"}},[p]),I=sa(P,{keys:function(L){return L.key},initial:re,from:N,enter:re,update:re,leave:{opacity:0},config:X,immediate:!J});return y.jsxs(Ct.g,{transform:K.transform,"aria-hidden":E,children:[I(function(L,V,j,Z){return ue.createElement(_,Gn({tickIndex:Z,format:$,rotate:p,textBaseline:F,textAnchor:D,truncateTickAt:x,animatedProps:L},V,k?{onClick:k}:{}))}),y.jsx(Ct.line,{style:C.axis.domain.line,x1:0,x2:K.lineX2,y1:0,y2:K.lineY2}),q]})},NK=m.memo(DK),Q3=["top","right","bottom","left"],J3=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:Q3.map(function(o){var s=a[o];if(!s)return null;var c=o==="top"||o==="bottom";return y.jsx(NK,Gn({},s,{axis:c?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),LK=m.memo(function(e){var t=e.animatedProps,n=Tt();return y.jsx(Ct.line,Gn({},t,n.grid.line))}),Ny=m.memo(function(e){var t=e.lines,n=kn(),r=n.animate,i=n.config,a=sa(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return y.jsx("g",{children:a(function(o,s){return m.createElement(LK,Gn({},s,{key:s.key,animatedProps:o}))})})}),eC=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=m.useMemo(function(){return!!r&&fp({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),c=m.useMemo(function(){return!!i&&fp({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Ny,{lines:s}),c&&y.jsx(Ny,{lines:c})]})}),FK=function(e,t){var n,r=t.axis,i=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,c=s===void 0?0:s,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,g=t.tickPadding,p=g===void 0?5:g,v=t.tickRotation,w=v===void 0?0:v,_=t.format,x=t.legend,T=t.legendPosition,b=T===void 0?"end":T,S=t.legendOffset,R=S===void 0?0:S,M=t.theme,k=K3({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:p,tickRotation:w,engine:"canvas"}),E=k.ticks,C=k.textAlign,O=k.textBaseline;e.save(),e.translate(o,c),e.textAlign=C,e.textBaseline=O;var $=M.axis.ticks.text;e.font=($.fontWeight?$.fontWeight+" ":"")+$.fontSize+"px "+$.fontFamily,((n=M.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(M.axis.domain.line.strokeWidth),e.lineCap="square",M.axis.domain.line.stroke&&(e.strokeStyle=M.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var A=typeof _=="function"?_:function(z){return""+z};if(E.forEach(function(z){var U;((U=M.axis.ticks.line.strokeWidth)!=null?U:0)>0&&(e.lineWidth=Number(M.axis.ticks.line.strokeWidth),e.lineCap="square",M.axis.ticks.line.stroke&&(e.strokeStyle=M.axis.ticks.line.stroke),e.beginPath(),e.moveTo(z.x,z.y),e.lineTo(z.x+z.lineX,z.y+z.lineY),e.stroke());var G=A(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(Yn(w)),$.outlineWidth>0&&(e.strokeStyle=$.outlineColor,e.lineWidth=2*$.outlineWidth,e.lineJoin="round",e.strokeText(""+G,0,0)),M.axis.ticks.text.fill&&(e.fillStyle=$.fill),e.fillText(""+G,0,0),e.restore()}),x!==void 0){var P=0,D=0,F=0,q="center";r==="y"?(F=-90,P=R,b==="start"?(q="start",D=l):b==="middle"?(q="center",D=l/2):b==="end"&&(q="end")):(D=R,b==="start"?q="start":b==="middle"?(q="center",P=l/2):b==="end"&&(q="end",P=l)),e.translate(P,D),e.rotate(Yn(F)),e.font=(M.axis.legend.text.fontWeight?M.axis.legend.text.fontWeight+" ":"")+M.axis.legend.text.fontSize+"px "+M.axis.legend.text.fontFamily,M.axis.legend.text.fill&&(e.fillStyle=M.axis.legend.text.fill),e.textAlign=q,e.textBaseline="middle",e.fillText(x,0,0)}e.restore()},tC=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};Q3.forEach(function(f){var h=d[f];if(!h)return null;var g=f==="top"||f==="bottom",p=f==="top"||f==="left"?"before":"after",v=g?n:r,w=X3(h.format,v);FK(e,Gn({},h,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:v,format:w,length:g?i:a,ticksPosition:p,theme:u}))})},nu=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;fp({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},BK=Nw,UK=0;function WK(e){var t=++UK;return BK(e)+t}var zK=WK;const HK=Ht(zK),Br=11102230246251565e-32,pn=134217729,VK=(3+8*Br)*Br;function Hf(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function qK(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function gc(e){return new Float64Array(e)}const YK=(3+16*Br)*Br,GK=(2+12*Br)*Br,ZK=(9+64*Br)*Br*Br,Ta=gc(4),Ly=gc(8),Fy=gc(12),By=gc(16),bn=gc(4);function KK(e,t,n,r,i,a,o){let s,c,l,u,d,f,h,g,p,v,w,_,x,T,b,S,R,M;const k=e-i,E=n-i,C=t-a,O=r-a;T=k*O,f=pn*k,h=f-(f-k),g=k-h,f=pn*O,p=f-(f-O),v=O-p,b=g*v-(T-h*p-g*p-h*v),S=C*E,f=pn*C,h=f-(f-C),g=C-h,f=pn*E,p=f-(f-E),v=E-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,Ta[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,Ta[1]=x-(w+d)+(d-S),M=_+w,d=M-_,Ta[2]=_-(M-d)+(w-d),Ta[3]=M;let $=qK(4,Ta),A=GK*o;if($>=A||-$>=A||(d=e-k,s=e-(k+d)+(d-i),d=n-E,l=n-(E+d)+(d-i),d=t-C,c=t-(C+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(A=ZK*o+VK*Math.abs($),$+=k*u+O*s-(C*l+E*c),$>=A||-$>=A))return $;T=s*O,f=pn*s,h=f-(f-s),g=s-h,f=pn*O,p=f-(f-O),v=O-p,b=g*v-(T-h*p-g*p-h*v),S=c*E,f=pn*c,h=f-(f-c),g=c-h,f=pn*E,p=f-(f-E),v=E-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const P=Hf(4,Ta,4,bn,Ly);T=k*u,f=pn*k,h=f-(f-k),g=k-h,f=pn*u,p=f-(f-u),v=u-p,b=g*v-(T-h*p-g*p-h*v),S=C*l,f=pn*C,h=f-(f-C),g=C-h,f=pn*l,p=f-(f-l),v=l-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const D=Hf(P,Ly,4,bn,Fy);T=s*u,f=pn*s,h=f-(f-s),g=s-h,f=pn*u,p=f-(f-u),v=u-p,b=g*v-(T-h*p-g*p-h*v),S=c*l,f=pn*c,h=f-(f-c),g=c-h,f=pn*l,p=f-(f-l),v=l-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const F=Hf(D,Fy,4,bn,By);return By[F-1]}function Hc(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=YK*l?c:-KK(e,t,n,r,i,a,l)}const Uy=Math.pow(2,-52),Vc=new Uint32Array(512);class ru{static from(t,n=tX,r=nX){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new ru(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let k=0;k<o;k++){const E=t[2*k],C=t[2*k+1];E<s&&(s=E),C<c&&(c=C),E>l&&(l=E),C>u&&(u=C),this._ids[k]=k}const d=(s+l)/2,f=(c+u)/2;let h,g,p;for(let k=0,E=1/0;k<o;k++){const C=Vf(d,f,t[2*k],t[2*k+1]);C<E&&(h=k,E=C)}const v=t[2*h],w=t[2*h+1];for(let k=0,E=1/0;k<o;k++){if(k===h)continue;const C=Vf(v,w,t[2*k],t[2*k+1]);C<E&&C>0&&(g=k,E=C)}let _=t[2*g],x=t[2*g+1],T=1/0;for(let k=0;k<o;k++){if(k===h||k===g)continue;const E=JK(v,w,_,x,t[2*k],t[2*k+1]);E<T&&(p=k,T=E)}let b=t[2*p],S=t[2*p+1];if(T===1/0){for(let C=0;C<o;C++)this._dists[C]=t[2*C]-t[0]||t[2*C+1]-t[1];Aa(this._ids,this._dists,0,o-1);const k=new Uint32Array(o);let E=0;for(let C=0,O=-1/0;C<o;C++){const $=this._ids[C],A=this._dists[$];A>O&&(k[E++]=$,O=A)}this.hull=k.subarray(0,E),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Hc(v,w,_,x,b,S)<0){const k=g,E=_,C=x;g=p,_=b,x=S,p=k,b=E,S=C}const R=eX(v,w,_,x,b,S);this._cx=R.x,this._cy=R.y;for(let k=0;k<o;k++)this._dists[k]=Vf(t[2*k],t[2*k+1],R.x,R.y);Aa(this._ids,this._dists,0,o-1),this._hullStart=h;let M=3;r[h]=n[p]=g,r[g]=n[h]=p,r[p]=n[g]=h,i[h]=0,i[g]=1,i[p]=2,a.fill(-1),a[this._hashKey(v,w)]=h,a[this._hashKey(_,x)]=g,a[this._hashKey(b,S)]=p,this.trianglesLen=0,this._addTriangle(h,g,p,-1,-1,-1);for(let k=0,E,C;k<this._ids.length;k++){const O=this._ids[k],$=t[2*O],A=t[2*O+1];if(k>0&&Math.abs($-E)<=Uy&&Math.abs(A-C)<=Uy||(E=$,C=A,O===h||O===g||O===p))continue;let P=0;for(let U=0,G=this._hashKey($,A);U<this._hashSize&&(P=a[(G+U)%this._hashSize],!(P!==-1&&P!==r[P]));U++);P=n[P];let D=P,F;for(;F=r[D],Hc($,A,t[2*D],t[2*D+1],t[2*F],t[2*F+1])>=0;)if(D=F,D===P){D=-1;break}if(D===-1)continue;let q=this._addTriangle(D,O,r[D],-1,-1,i[D]);i[O]=this._legalize(q+2),i[D]=q,M++;let z=r[D];for(;F=r[z],Hc($,A,t[2*z],t[2*z+1],t[2*F],t[2*F+1])<0;)q=this._addTriangle(z,O,F,i[O],-1,i[z]),i[O]=this._legalize(q+2),r[z]=z,M--,z=F;if(D===P)for(;F=n[D],Hc($,A,t[2*F],t[2*F+1],t[2*D],t[2*D+1])<0;)q=this._addTriangle(F,O,D,-1,i[D],i[F]),this._legalize(q+2),i[F]=q,r[D]=D,M--,D=F;this._hullStart=n[O]=D,r[D]=n[z]=O,r[O]=z,a[this._hashKey($,A)]=O,a[this._hashKey(t[2*D],t[2*D+1])]=D}this.hull=new Uint32Array(M);for(let k=0,E=this._hullStart;k<M;k++)this.hull[k]=E,E=r[E];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(XK(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],c=t-t%3;if(o=c+(t+2)%3,s===-1){if(a===0)break;t=Vc[--a];continue}const l=s-s%3,u=c+(t+1)%3,d=l+(s+2)%3,f=n[o],h=n[t],g=n[u],p=n[d];if(QK(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*g],i[2*g+1],i[2*p],i[2*p+1])){n[t]=p,n[s]=f;const w=r[d];if(w===-1){let x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,w),this._link(s,r[o]),this._link(o,d);const _=l+(s+1)%3;a<Vc.length&&(Vc[a++]=_)}else{if(a===0)break;t=Vc[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function XK(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Vf(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function QK(e,t,n,r,i,a,o,s){const c=e-o,l=t-s,u=n-o,d=r-s,f=i-o,h=a-s,g=c*c+l*l,p=u*u+d*d,v=f*f+h*h;return c*(d*v-p*h)-l*(u*v-p*f)+g*(u*h-d*f)<0}function JK(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=(l*u-s*d)*f,g=(o*d-c*u)*f;return h*h+g*g}function eX(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=e+(l*u-s*d)*f,g=t+(o*d-c*u)*f;return{x:h,y:g}}function Aa(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;Yo(e,i,a),t[e[n]]>t[e[r]]&&Yo(e,n,r),t[e[a]]>t[e[r]]&&Yo(e,a,r),t[e[n]]>t[e[a]]&&Yo(e,n,a);const s=e[a],c=t[s];for(;;){do a++;while(t[e[a]]<c);do o--;while(t[e[o]]>c);if(o<a)break;Yo(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Aa(e,t,a,r),Aa(e,t,n,o-1)):(Aa(e,t,n,o-1),Aa(e,t,a,r))}}function Yo(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tX(e){return e[0]}function nX(e){return e[1]}const Wy=1e-6;class Bi{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>Wy||Math.abs(this._y1-a)>Wy)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class hp{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class rX{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,v=0,w=r.length,_,x;p<w;p+=3,v+=2){const T=r[p]*2,b=r[p+1]*2,S=r[p+2]*2,R=t[T],M=t[T+1],k=t[b],E=t[b+1],C=t[S],O=t[S+1],$=k-R,A=E-M,P=C-R,D=O-M,F=($*D-A*P)*2;if(Math.abs(F)<1e-9){if(a===void 0){a=o=0;for(const z of n)a+=t[z*2],o+=t[z*2+1];a/=n.length,o/=n.length}const q=1e9*Math.sign((a-R)*D-(o-M)*P);_=(R+C)/2-q*D,x=(M+O)/2+q*P}else{const q=1/F,z=$*$+A*A,U=P*P+D*D;_=R+(D*z-A*U)*q,x=M+($*U-P*z)*q}s[v]=_,s[v+1]=x}let c=n[n.length-1],l,u=c*4,d,f=t[2*c],h,g=t[2*c+1];i.fill(0);for(let p=0;p<n.length;++p)c=n[p],l=u,d=f,h=g,u=c*4,f=t[2*c],g=t[2*c+1],i[l+2]=i[u]=h-g,i[l+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Bi:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,g=Math.floor(f/3)*2,p=o[h],v=o[h+1],w=o[g],_=o[g+1];this._renderSegment(p,v,w,_,t)}let c,l=a[a.length-1];for(let u=0;u<a.length;++u){c=l,l=a[u];const d=Math.floor(i[l]/3)*2,f=o[d],h=o[d+1],g=c*4,p=this._project(f,h,s[g+2],s[g+3]);p&&this._renderSegment(f,h,p[0],p[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Bi:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Bi:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new hp;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),c=this._regioncode(r,i);s===0&&c===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,c))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,c=i.length;s<c;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+c-2)%c]&&n[(a+3)%o]===i[(s+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let c=o;do{const l=Math.floor(c/3);if(s.push(n[l*2],n[l*2+1]),c=c%3===2?c-2:c+1,a[c]!==t)break;c=i[c]}while(c!==o&&c!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],c=n[r-1],l,u=this._regioncode(s,c),d,f=0;for(let h=0;h<r;h+=2)if(a=s,o=c,s=n[h],c=n[h+1],l=u,u=this._regioncode(s,c),l===0&&u===0)d=f,f=0,i?i.push(s,c):i=[s,c];else{let g,p,v,w,_;if(l===0){if((g=this._clipSegment(a,o,s,c,l,u))===null)continue;[p,v,w,_]=g}else{if((g=this._clipSegment(s,c,a,o,u,l))===null)continue;[w,_,p,v]=g,d=f,f=this._edgecode(p,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(p,v):i=[p,v]}d=f,f=this._edgecode(w,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(w,_):i=[w,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let c,l,u=a||o;u&8?(c=t+(r-t)*(this.ymax-n)/(i-n),l=this.ymax):u&4?(c=t+(r-t)*(this.ymin-n)/(i-n),l=this.ymin):u&2?(l=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(l=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),a?(t=c,n=l,a=this._regioncode(t,n)):(r=c,i=l,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),c;if((c=this._project(s[0],s[1],r,i))&&s.unshift(c[0],c[1]),(c=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(c[0],c[1]),s=this._clipFinite(t,s))for(let l=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);l<u;l+=2)d=f,f=this._edgecode(s[l],s[l+1]),d&&f&&(l=this._edge(t,d,f,s,l),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,c;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(c=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(c=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,c=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,c=n+(a=o)*i)}return[s,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const iX=2*Math.PI,Sa=Math.pow;function aX(e){return e[0]}function oX(e){return e[1]}function sX(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function cX(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Fg{static from(t,n=aX,r=oX,i){return new Fg("length"in t?lX(t,n,r,i):Float64Array.from(uX(t,n,r,i)))}constructor(t){this._delaunator=new ru(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&sX(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const c=this.collinear[0],l=this.collinear[this.collinear.length-1],u=[n[2*c],n[2*c+1],n[2*l],n[2*l+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const g=cX(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new ru(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let c=0,l=r.length;c<l;++c){const u=a[c%3===2?c-2:c+1];(r[c]===-1||o[u]===-1)&&(o[u]=c)}for(let c=0,l=i.length;c<l;++c)s[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new rX(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const c=n[t];if(c===-1)return;let l=c,u=-1;do{if(yield u=o[l],l=l%3===2?l-2:l+1,o[l]!==t)return;if(l=a[l],l===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(l!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:c,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t,d=Sa(n-l[t*2],2)+Sa(r-l[t*2+1],2);const f=i[t];let h=f;do{let g=c[h];const p=Sa(n-l[g*2],2)+Sa(r-l[g*2+1],2);if(p<d&&(d=p,u=g),h=h%3===2?h-2:h+1,c[h]!==t)break;if(h=s[h],h===-1){if(h=a[(o[t]+1)%a.length],h!==g&&Sa(n-l[h*2],2)+Sa(r-l[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Bi:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const c=i[o];if(c<o)continue;const l=a[o]*2,u=a[c]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Bi:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],c=i[a+1];t.moveTo(s+n,c),t.arc(s,c,n,0,iX)}return r&&r.value()}renderHull(t){const n=t==null?t=new Bi:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const c=2*r[s];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new hp;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Bi:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,c=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new hp;return this.renderTriangle(t,n),n.value()}}function lX(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*uX(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var Bg=function(e){return[e.x,e.y]},vc=p3,nC="cursor",rC="top",dX=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Bg:n,i=e.margin,a=i===void 0?vc:i;return t.map(function(o){var s=r(o),c=s[0],l=s[1];return[c+a.left,l+a.top]})},fX=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?vc:i,o=e.debug,s=Fg.from(t),c=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:c}},iC=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Bg:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?vc:o,c=e.debug;return m.useMemo(function(){return fX({points:dX({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:c})},[t,i,a,s,c])},hX=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Bg:r,a=e.delaunay,o=e.setCurrent,s=e.margin,c=s===void 0?vc:s,l=e.detectionRadius,u=l===void 0?1/0:l,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,g=e.onMouseMove,p=e.onMouseLeave,v=e.onClick,w=e.onTouchStart,_=e.onTouchMove,x=e.onTouchEnd,T=e.enableTouchCrosshair,b=T!==void 0&&T,S=e.tooltip,R=e.tooltipPosition,M=R===void 0?nC:R,k=e.tooltipAnchor,E=k===void 0?rC:k,C=m.useState(null),O=C[0],$=C[1],A=m.useRef(null);m.useEffect(function(){A.current=O},[A,O]);var P=m.useCallback(function(N){if(!t.current)return null;var I=os(t.current,N),L=I[0],V=I[1],j=a.find(L,V),Z=j!==void 0?n[j]:null;if(Z&&u!==1/0){var Q=i(Z),te=Q[0],he=Q[1];iY(L,V,te+c.left,he+c.top)>u&&(j=null,Z=null)}return j===null||Z===null?null:[j,Z]},[t,a,n,i,c,u]),D=ca(),F=D.showTooltipAt,q=D.showTooltipFromEvent,z=D.hideTooltip,U=m.useMemo(function(){if(S)return M==="cursor"?function(N,I){q(S(N),I,E)}:function(N){var I=i(N),L=I[0],V=I[1];F(S(N),[L+c.left,V+c.top],E)}},[F,q,S,M,E,i,c]),G=m.useCallback(function(N){var I=P(N);if($(I),o==null||o(I?I[1]:null),I){var L=I[1];U==null||U(L,N),h==null||h(I[1],N)}},[P,$,o,U,h]),ee=m.useCallback(function(N){var I=P(N);if($(I),I){var L=I[0],V=I[1];if(o==null||o(V),U==null||U(V,N),A.current){var j=A.current,Z=j[0],Q=j[1];L!==Z?p==null||p(Q,N):g==null||g(V,N)}else h==null||h(V,N)}else o==null||o(null),z==null||z(),A.current&&(p==null||p(A.current[1],N))},[P,$,A,h,g,p,U,z]),ie=m.useCallback(function(N){$(null),o==null||o(null),z(),p&&A.current&&p(A.current[1],N)},[$,o,A,z,p]),J=m.useCallback(function(N){var I=P(N);$(I),I&&(v==null||v(I[1],N))},[P,$,v]),X=m.useCallback(function(N){var I=P(N);b&&($(I),o==null||o(I?I[1]:null)),I&&(w==null||w(I[1],N))},[P,$,o,b,w]),K=m.useCallback(function(N){var I=P(N);b&&($(I),o==null||o(I?I[1]:null)),I&&(_==null||_(I[1],N))},[P,$,o,b,_]),re=m.useCallback(function(N){b&&($(null),o==null||o(null)),x&&A.current&&x(A.current[1],N)},[b,$,o,x,A]);return{current:O,handleMouseEnter:f?G:void 0,handleMouseMove:f?ee:void 0,handleMouseLeave:f?ie:void 0,handleClick:f?J:void 0,handleTouchStart:f?X:void 0,handleTouchMove:f?K:void 0,handleTouchEnd:f?re:void 0}},pX=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?vc:i,o=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=e.enableTouchCrosshair,v=p!==void 0&&p,w=e.detectionRadius,_=w===void 0?1/0:w,x=e.tooltip,T=e.tooltipPosition,b=T===void 0?nC:T,S=e.tooltipAnchor,R=S===void 0?rC:S,M=e.debug,k=m.useRef(null),E=iC({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:M}),C=E.delaunay,O=E.voronoi,$=hX({elementRef:k,nodes:t,delaunay:C,margin:a,detectionRadius:_,setCurrent:s,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g,enableTouchCrosshair:v,tooltip:x,tooltipPosition:b,tooltipAnchor:R}),A=$.current,P=$.handleMouseEnter,D=$.handleMouseMove,F=$.handleMouseLeave,q=$.handleClick,z=$.handleTouchStart,U=$.handleTouchMove,G=$.handleTouchEnd,ee=m.useMemo(function(){if(M&&O)return O.render()},[M,O]);return y.jsxs("g",{ref:k,transform:"translate("+-a.left+","+-a.top+")",children:[M&&O&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:ee,stroke:"red",strokeWidth:1,opacity:.75}),_<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:C.renderPoints(void 0,_)}),A&&y.jsx("path",{fill:"pink",opacity:.35,d:O.renderCell(A[0])})]}),y.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:P,onMouseMove:D,onMouseLeave:F,onTouchStart:z,onTouchMove:U,onTouchEnd:G,onClick:q})]})},mX=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},gX=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}var Ug=m.memo(function(e){var t=e.point;return y.jsx(jm,{id:y.jsxs("span",{children:["x: ",y.jsx("strong",{children:t.data.xFormatted}),", y:"," ",y.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),aC=m.memo(function(e){var t=e.slice,n=e.axis,r=Tt(),i=n==="x"?"y":"x";return y.jsx(dw,{rows:t.points.map(function(a){return[y.jsx(uw,{color:a.serieColor,style:r.tooltip.chip},"chip"),a.serieId,y.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),oC={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:Ug,enableSlices:!1,debugSlices:!1,sliceTooltip:aC,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},ti=Cn({},oC,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});Cn({},oC,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var vX=function(e){var t=e.curve;return m.useMemo(function(){return wg().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(h3(t))},[t])},yX=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return Iz().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(h3(t)).y0(n(r))},[t,n,r])},bX=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return m.useMemo(function(){if(n===!1)return[];if(n==="x"){var o=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(o.has(c.x)?o.get(c.x).push(c):o.set(c.x,[c]))}),Array.from(o.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],v=u[l+1];return d=p?h-(h-p[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:a,points:g.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(s.has(c.y)?s.get(c.y).push(c):s.set(c.y,[c]))}),Array.from(s.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],v=u[l+1];return d=p?h-(h-p[0])/2:h,f=v?h-d+(v[0]-h)/2:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:g.reverse()}})}},[t,n,a,r,i])},xX="line",sC=function(e){var t=e.data,n=e.xScale,r=n===void 0?ti.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?ti.yScale:a,s=e.yFormat,c=e.width,l=e.height,u=e.colors,d=u===void 0?ti.colors:u,f=e.curve,h=f===void 0?ti.curve:f,g=e.areaBaselineValue,p=g===void 0?ti.areaBaselineValue:g,v=e.pointColor,w=v===void 0?ti.pointColor:v,_=e.pointBorderColor,x=_===void 0?ti.pointBorderColor:_,T=e.enableSlices,b=T===void 0?ti.enableSlicesTooltip:T,S=m.useState(HK(xX))[0],R=eo(i),M=eo(s),k=Ig(d,"id"),E=Tt(),C=wr(w,E),O=wr(x,E),$=m.useState([]),A=$[0],P=$[1],D=m.useMemo(function(){return MK(t.filter(function(K){return A.indexOf(K.id)===-1}),r,o,c,l)},[t,A,r,o,c,l]),F=D.xScale,q=D.yScale,z=D.series,U=m.useMemo(function(){var K=t.map(function(N){return{id:N.id,label:N.id,color:k(N)}}),re=K.map(function(N){return Cn({},z.find(function(I){return I.id===N.id}),{color:N.color})}).filter(function(N){return!!N.id});return{legendData:K.map(function(N){return Cn({},N,{hidden:!re.find(function(I){return I.id===N.id})})}).reverse(),series:re}},[t,z,k]),G=U.legendData,ee=U.series,ie=m.useCallback(function(K){P(function(re){return re.indexOf(K)>-1?re.filter(function(N){return N!==K}):[].concat(re,[K])})},[]),J=function(K){var re=K.series,N=K.getPointColor,I=K.getPointBorderColor,L=K.formatX,V=K.formatY;return m.useMemo(function(){return re.reduce(function(j,Z){return[].concat(j,Z.data.filter(function(Q){return Q.position.x!==null&&Q.position.y!==null}).map(function(Q,te){var he={id:Z.id+"."+te,index:j.length+te,serieId:Z.id,serieColor:Z.color,x:Q.position.x,y:Q.position.y};return he.color=N(Z),he.borderColor=I(he),he.data=Cn({},Q.data,{xFormatted:L(Q.data.x),yFormatted:V(Q.data.y)}),he}))},[])},[re,N,I,L,V])}({series:ee,getPointColor:C,getPointBorderColor:O,formatX:R,formatY:M}),X=bX({componentId:S,enableSlices:b,points:J,width:c,height:l});return{legendData:G,toggleSerie:ie,lineGenerator:vX({curve:h}),areaGenerator:yX({curve:h,yScale:q,areaBaselineValue:p}),getColor:k,series:ee,xScale:F,yScale:q,slices:X,points:J}},_X=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=kn(),s=o.animate,c=o.config,l=Ag(a),u=Sr({color:r,config:c,immediate:!s});return y.jsx(Ct.path,{d:l,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},wX=m.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return y.jsx("g",{children:i.map(function(a){return y.jsx(_X,Cn({path:t(a.data.map(function(o){return o.position}))},Cn({areaOpacity:n,areaBlendMode:r},a)),a.id)})})}),CX=m.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=m.useMemo(function(){return t(n)},[t,n]),o=Ag(a);return y.jsx(Ct.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),TX=m.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return y.jsx(CX,{id:a,points:o.map(function(c){return c.position}),lineGenerator:n,color:s,thickness:r},a)})}),SX=m.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=ca(),v=p.showTooltipFromEvent,w=p.hideTooltip,_=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),s(t),c&&c(t,k)},[v,a,t,r,s,c]),x=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),l&&l(t,k)},[v,a,t,r,l]),T=m.useCallback(function(k){w(),s(null),u&&u(t,k)},[w,s,u,t]),b=m.useCallback(function(k){d&&d(t,k)},[t,d]),S=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),s(t),f&&f(t,k)},[r,f,s,v,t,a]),R=m.useCallback(function(k){var E=k.touches[0],C=document.elementFromPoint(E.clientX,E.clientY),O=C==null?void 0:C.getAttribute("data-ref");if(O){var $=n.find(function(A){return A.id===O});$&&(v(m.createElement(a,{slice:$,axis:r}),k,"right"),s($))}h&&h(t,k)},[r,h,s,v,t,n,a]),M=m.useCallback(function(k){w(),s(null),g&&g(t,k)},[w,s,g,t]);return y.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:_,onMouseMove:x,onMouseLeave:T,onClick:b,onTouchStart:S,onTouchMove:R,onTouchEnd:M,"data-ref":t.id})}),kX=m.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd;return t.map(function(p){return y.jsx(SX,{slice:p,slices:t,axis:n,debug:r,height:i,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===p.id,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g},p.id)})}),EX=m.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,c=Tt(),l=rY(o),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:a?l(d):null}});return y.jsx("g",{children:u.map(function(d){return y.jsx(eY,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:c},d.id)})})}),OX=m.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,l=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,g=e.debug,p=e.enableTouchCrosshair,v=ca(),w=v.showTooltipAt,_=v.hideTooltip,x=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),o&&o(E,C)},[w,h,o,i]),T=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),s&&s(E,C)},[w,h,i.left,i.top,s]),b=m.useCallback(function(E,C){_(),c&&c(E,C)},[_,c]),S=m.useCallback(function(E,C){l&&l(E,C)},[l]),R=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),u&&u(E,C)},[i.left,i.top,u,w,h]),M=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),d&&d(E,C)},[i.left,i.top,d,w,h]),k=m.useCallback(function(E,C){_(),f&&f(E,C)},[f,_]);return y.jsx(pX,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:x,onMouseMove:T,onMouseLeave:b,onClick:S,onTouchStart:R,onTouchMove:M,onTouchEnd:k,enableTouchCrosshair:p,debug:g})}),MX=O3(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,a=e.yScale,o=a===void 0?{type:"linear",min:0,max:"auto"}:a,s=e.yFormat,c=e.layers,l=c===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:c,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,g=e.colors,p=g===void 0?{scheme:"nivo"}:g,v=e.margin,w=e.width,_=e.height,x=e.axisTop,T=e.axisRight,b=e.axisBottom,S=b===void 0?{}:b,R=e.axisLeft,M=R===void 0?{}:R,k=e.enableGridX,E=k===void 0||k,C=e.enableGridY,O=C===void 0||C,$=e.gridXValues,A=e.gridYValues,P=e.lineWidth,D=P===void 0?2:P,F=e.enableArea,q=F!==void 0&&F,z=e.areaOpacity,U=z===void 0?.2:z,G=e.areaBlendMode,ee=G===void 0?"normal":G,ie=e.enablePoints,J=ie===void 0||ie,X=e.pointSymbol,K=e.pointSize,re=K===void 0?6:K,N=e.pointColor,I=N===void 0?{from:"color"}:N,L=e.pointBorderWidth,V=L===void 0?0:L,j=e.pointBorderColor,Z=j===void 0?{theme:"background"}:j,Q=e.enablePointLabel,te=Q!==void 0&&Q,he=e.pointLabel,we=he===void 0?"data.yFormatted":he,me=e.pointLabelYOffset,Ue=e.defs,Ae=Ue===void 0?[]:Ue,Ve=e.fill,Ke=Ve===void 0?[]:Ve,st=e.markers,pe=e.legends,Te=pe===void 0?[]:pe,ve=e.isInteractive,Ne=ve===void 0||ve,nt=e.useMesh,Et=nt!==void 0&&nt,rt=e.debugMesh,ot=rt!==void 0&&rt,pt=e.onMouseEnter,It=e.onMouseMove,ct=e.onMouseLeave,dt=e.onClick,mt=e.onTouchStart,Wt=e.onTouchMove,De=e.onTouchEnd,Re=e.tooltip,qe=Re===void 0?Ug:Re,lt=e.enableSlices,gt=lt!==void 0&&lt,St=e.debugSlices,Vt=St!==void 0&&St,Rt=e.sliceTooltip,Dt=Rt===void 0?aC:Rt,qt=e.enableCrosshair,vt=qt===void 0||qt,Yt=e.crosshairType,rn=Yt===void 0?"bottom-left":Yt,Jt=e.enableTouchCrosshair,ye=Jt!==void 0&&Jt,Ee=e.role,je=Ee===void 0?"img":Ee,Ye=pc(w,_,v),We=Ye.margin,ft=Ye.innerWidth,W=Ye.innerHeight,ce=Ye.outerWidth,ae=Ye.outerHeight,se=sC({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ft,height:W,colors:p,curve:d,areaBaselineValue:h,pointColor:I,pointBorderColor:Z,enableSlices:gt}),be=se.legendData,Oe=se.toggleSerie,xe=se.lineGenerator,ke=se.areaGenerator,Le=se.series,Pe=se.xScale,Xe=se.yScale,zt=se.slices,Ot=se.points,Xt=Tt(),ge=wr(I,Xt),ln=wr(Z,Xt),Mt=m.useState(null),Jn=Mt[0],yc=Mt[1],er=m.useState(null),Ti=er[0],bc=er[1],Or={grid:y.jsx(eC,{theme:Xt,width:ft,height:W,xScale:E?Pe:null,yScale:O?Xe:null,xValues:$,yValues:A},"grid"),markers:y.jsx(E3,{markers:st,width:ft,height:W,xScale:Pe,yScale:Xe,theme:Xt},"markers"),axes:y.jsx(J3,{xScale:Pe,yScale:Xe,width:ft,height:W,theme:Xt,top:x,right:T,bottom:S,left:M},"axes"),areas:null,lines:y.jsx(TX,{lines:Le,lineGenerator:xe,lineWidth:D},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Te.map(function(Mr,To){return y.jsx(Ng,Cn({},Mr,{containerWidth:ft,containerHeight:W,data:Mr.data||be,theme:Xt,toggleSerie:Mr.toggleSerie?Oe:void 0}),"legend."+To)})},Yd=Pg(Ae,Le,Ke);return q&&(Or.areas=y.jsx(wX,{areaGenerator:ke,areaOpacity:U,areaBlendMode:ee,lines:Le},"areas")),Ne&&gt!==!1&&(Or.slices=y.jsx(kX,{slices:zt,axis:gt,debug:Vt,height:W,tooltip:Dt,current:Ti,setCurrent:bc,onMouseEnter:pt,onMouseMove:It,onMouseLeave:ct,onClick:dt,onTouchStart:mt,onTouchMove:Wt,onTouchEnd:De},"slices")),J&&(Or.points=y.jsx(EX,{points:Ot,symbol:X,size:re,color:ge,borderWidth:V,borderColor:ln,enableLabel:te,label:we,labelYOffset:me},"points")),Ne&&vt&&(Jn!==null&&(Or.crosshair=y.jsx(Hh,{width:ft,height:W,x:Jn.x,y:Jn.y,type:rn},"crosshair")),Ti!==null&&(Or.crosshair=y.jsx(Hh,{width:ft,height:W,x:Ti.x,y:Ti.y,type:gt},"crosshair"))),Ne&&Et&&gt===!1&&(Or.mesh=y.jsx(OX,{points:Ot,width:ft,height:W,margin:We,current:Jn,setCurrent:yc,onMouseEnter:pt,onMouseMove:It,onMouseLeave:ct,onClick:dt,onTouchStart:mt,onTouchMove:Wt,onTouchEnd:De,tooltip:qe,enableTouchCrosshair:ye,debug:ot},"mesh")),y.jsx(zd,{defs:Yd,width:ce,height:ae,margin:We,role:je,children:l.map(function(Mr,To){return typeof Mr=="function"?y.jsx(m.Fragment,{children:Mr(Cn({},e,{innerWidth:ft,innerHeight:W,series:Le,slices:zt,points:Ot,xScale:Pe,yScale:Xe,lineGenerator:xe,areaGenerator:ke,currentPoint:Jn,setCurrentPoint:yc,currentSlice:Ti,setCurrentSlice:bc}))},To):Or[Mr]})})}),$X=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(MX,Cn({width:n,height:r},e))}})},AX=O3(function(e){var t=m.useRef(null),n=e.width,r=e.height,i=e.margin,a=e.pixelRatio,o=a===void 0?typeof window<"u"&&window.devicePixelRatio||1:a,s=e.data,c=e.xScale,l=c===void 0?{type:"point"}:c,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,g=e.curve,p=g===void 0?"linear":g,v=e.layers,w=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,_=e.colors,x=_===void 0?{scheme:"nivo"}:_,T=e.lineWidth,b=T===void 0?2:T,S=e.enableArea,R=S!==void 0&&S,M=e.areaBaselineValue,k=M===void 0?0:M,E=e.areaOpacity,C=E===void 0?.2:E,O=e.enablePoints,$=O===void 0||O,A=e.pointSize,P=A===void 0?6:A,D=e.pointColor,F=D===void 0?{from:"color"}:D,q=e.pointBorderWidth,z=q===void 0?0:q,U=e.pointBorderColor,G=U===void 0?{theme:"background"}:U,ee=e.enableGridX,ie=ee===void 0||ee,J=e.gridXValues,X=e.enableGridY,K=X===void 0||X,re=e.gridYValues,N=e.axisTop,I=e.axisRight,L=e.axisBottom,V=L===void 0?{}:L,j=e.axisLeft,Z=j===void 0?{}:j,Q=e.legends,te=Q===void 0?[]:Q,he=e.isInteractive,we=he===void 0||he,me=e.debugMesh,Ue=me!==void 0&&me,Ae=e.onMouseLeave,Ve=e.onClick,Ke=e.tooltip,st=Ke===void 0?Ug:Ke,pe=e.canvasRef,Te=pc(n,r,i),ve=Te.margin,Ne=Te.innerWidth,nt=Te.innerHeight,Et=Te.outerWidth,rt=Te.outerHeight,ot=Tt(),pt=m.useState(null),It=pt[0],ct=pt[1],dt=sC({data:s,xScale:l,xFormat:u,yScale:f,yFormat:h,width:Ne,height:nt,colors:x,curve:p,areaBaselineValue:k,pointColor:F,pointBorderColor:G}),mt=dt.lineGenerator,Wt=dt.areaGenerator,De=dt.series,Re=dt.xScale,qe=dt.yScale,lt=dt.points,gt=iC({points:lt,width:Ne,height:nt,debug:Ue}),St=gt.delaunay,Vt=gt.voronoi;m.useEffect(function(){pe&&(pe.current=t.current),t.current.width=Et*o,t.current.height=rt*o;var ye=t.current.getContext("2d");ye.scale(o,o),ye.fillStyle=ot.background,ye.fillRect(0,0,Et,rt),ye.translate(ve.left,ve.top),w.forEach(function(Ee){if(typeof Ee=="function"&&Ee({ctx:ye,innerWidth:Ne,innerHeight:nt,series:De,points:lt,xScale:Re,yScale:qe,lineWidth:b,lineGenerator:mt,areaGenerator:Wt,currentPoint:It,setCurrentPoint:ct}),Ee==="grid"&&ot.grid.line.strokeWidth>0&&(ye.lineWidth=ot.grid.line.strokeWidth,ye.strokeStyle=ot.grid.line.stroke,ie&&nu(ye,{width:Ne,height:nt,scale:Re,axis:"x",values:J}),K&&nu(ye,{width:Ne,height:nt,scale:qe,axis:"y",values:re})),Ee==="axes"&&tC(ye,{xScale:Re,yScale:qe,width:Ne,height:nt,top:N,right:I,bottom:V,left:Z,theme:ot}),Ee==="areas"&&R===!0){ye.save(),ye.globalAlpha=C,Wt.context(ye);for(var je=De.length-1;je>=0;je--)ye.fillStyle=De[je].color,ye.beginPath(),Wt(De[je].data.map(function(We){return We.position})),ye.fill();ye.restore()}if(Ee==="lines"&&(mt.context(ye),De.forEach(function(We){ye.strokeStyle=We.color,ye.lineWidth=b,ye.beginPath(),mt(We.data.map(function(ft){return ft.position})),ye.stroke()})),Ee==="points"&&$===!0&&P>0&&lt.forEach(function(We){ye.fillStyle=We.color,ye.beginPath(),ye.arc(We.x,We.y,P/2,0,2*Math.PI),ye.fill(),z>0&&(ye.strokeStyle=We.borderColor,ye.lineWidth=z,ye.stroke())}),Ee==="mesh"&&Ue===!0&&(mX(ye,Vt),It&&gX(ye,Vt,It.index)),Ee==="legends"){var Ye=De.map(function(We){return{id:We.id,label:We.id,color:We.color}}).reverse();te.forEach(function(We){F3(ye,Cn({},We,{data:We.data||Ye,containerWidth:Ne,containerHeight:nt,theme:ot}))})}})},[t,Et,rt,w,ot,mt,De,Re,qe,ie,J,K,re,N,I,V,Z,te,lt,$,P,It]);var Rt=m.useCallback(function(ye){var Ee=os(t.current,ye),je=Ee[0],Ye=Ee[1];if(!$3(ve.left,ve.top,Ne,nt,je,Ye))return null;var We=St.find(je-ve.left,Ye-ve.top);return lt[We]},[t,ve,Ne,nt,St]),Dt=ca(),qt=Dt.showTooltipFromEvent,vt=Dt.hideTooltip,Yt=m.useCallback(function(ye){var Ee=Rt(ye);ct(Ee),Ee?qt(m.createElement(st,{point:Ee}),ye):vt()},[Rt,ct,qt,vt,st]),rn=m.useCallback(function(ye){vt(),ct(null),It&&Ae&&Ae(It,ye)},[vt,ct,Ae]),Jt=m.useCallback(function(ye){if(Ve){var Ee=Rt(ye);Ee&&Ve(Ee,ye)}},[Rt,Ve]);return y.jsx("canvas",{ref:t,width:Et*o,height:rt*o,style:{width:Et,height:rt,cursor:we?"auto":"normal"},onMouseEnter:we?Yt:void 0,onMouseMove:we?Yt:void 0,onMouseLeave:we?rn:void 0,onClick:we?Jt:void 0})}),RX=m.forwardRef(function(e,t){return y.jsx(AX,Cn({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return y.jsx(wo,{children:function(n){var r=n.width,i=n.height;return y.jsx(RX,Cn({width:r,height:i},e,{ref:t}))}})});var jX=H3;function PX(e,t){var n=[];return jX(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var IX=PX,DX=a3,NX=IX,LX=Lg,FX=Pn;function BX(e,t){var n=FX(e)?DX:NX;return n(e,LX(t))}var UX=BX;const WX=Ht(UX);var zX=Gr,HX=Qn,VX="[object Number]";function qX(e){return typeof e=="number"||HX(e)&&zX(e)==VX}var YX=qX;const zy=Ht(YX);function GX(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ZX=GX,KX=vo,XX=hc;function QX(e,t){return e&&KX(t,XX(t),e)}var JX=QX,eQ=vo,tQ=uc;function nQ(e,t){return e&&eQ(t,tQ(t),e)}var rQ=nQ,iQ=vo,aQ=Mg;function oQ(e,t){return iQ(e,aQ(e),t)}var sQ=oQ,cQ=Eg,lQ=Fm,uQ=Mg,dQ=o3,fQ=Object.getOwnPropertySymbols,hQ=fQ?function(e){for(var t=[];e;)cQ(t,uQ(e)),e=lQ(e);return t}:dQ,cC=hQ,pQ=vo,mQ=cC;function gQ(e,t){return pQ(e,mQ(e),t)}var vQ=gQ,yQ=i3,bQ=cC,xQ=uc;function _Q(e){return yQ(e,xQ,bQ)}var lC=_Q,wQ=Object.prototype,CQ=wQ.hasOwnProperty;function TQ(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&CQ.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var SQ=TQ,kQ=Lm;function EQ(e,t){var n=t?kQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var OQ=EQ,MQ=/\w*$/;function $Q(e){var t=new e.constructor(e.source,MQ.exec(e));return t.lastIndex=e.lastIndex,t}var AQ=$Q,Hy=uo,Vy=Hy?Hy.prototype:void 0,qy=Vy?Vy.valueOf:void 0;function RQ(e){return qy?Object(qy.call(e)):{}}var jQ=RQ,PQ=Lm,IQ=OQ,DQ=AQ,NQ=jQ,LQ=ww,FQ="[object Boolean]",BQ="[object Date]",UQ="[object Map]",WQ="[object Number]",zQ="[object RegExp]",HQ="[object Set]",VQ="[object String]",qQ="[object Symbol]",YQ="[object ArrayBuffer]",GQ="[object DataView]",ZQ="[object Float32Array]",KQ="[object Float64Array]",XQ="[object Int8Array]",QQ="[object Int16Array]",JQ="[object Int32Array]",eJ="[object Uint8Array]",tJ="[object Uint8ClampedArray]",nJ="[object Uint16Array]",rJ="[object Uint32Array]";function iJ(e,t,n){var r=e.constructor;switch(t){case YQ:return PQ(e);case FQ:case BQ:return new r(+e);case GQ:return IQ(e,n);case ZQ:case KQ:case XQ:case QQ:case JQ:case eJ:case tJ:case nJ:case rJ:return LQ(e,n);case UQ:return new r;case WQ:case VQ:return new r(e);case zQ:return DQ(e);case HQ:return new r;case qQ:return NQ(e)}}var aJ=iJ,oJ=Bd,sJ=Qn,cJ="[object Map]";function lJ(e){return sJ(e)&&oJ(e)==cJ}var uJ=lJ,dJ=uJ,fJ=go,Yy=Xu,Gy=Yy&&Yy.isMap,hJ=Gy?fJ(Gy):dJ,pJ=hJ,mJ=Bd,gJ=Qn,vJ="[object Set]";function yJ(e){return gJ(e)&&mJ(e)==vJ}var bJ=yJ,xJ=bJ,_J=go,Zy=Xu,Ky=Zy&&Zy.isSet,wJ=Ky?_J(Ky):xJ,CJ=wJ,TJ=Gu,SJ=ZX,kJ=Vm,EJ=JX,OJ=rQ,MJ=xw,$J=Cw,AJ=sQ,RJ=vQ,jJ=s3,PJ=lC,IJ=Bd,DJ=SQ,NJ=aJ,LJ=Sw,FJ=Pn,BJ=Ku,UJ=pJ,WJ=Er,zJ=CJ,HJ=hc,VJ=uc,qJ=1,YJ=2,GJ=4,uC="[object Arguments]",ZJ="[object Array]",KJ="[object Boolean]",XJ="[object Date]",QJ="[object Error]",dC="[object Function]",JJ="[object GeneratorFunction]",eee="[object Map]",tee="[object Number]",fC="[object Object]",nee="[object RegExp]",ree="[object Set]",iee="[object String]",aee="[object Symbol]",oee="[object WeakMap]",see="[object ArrayBuffer]",cee="[object DataView]",lee="[object Float32Array]",uee="[object Float64Array]",dee="[object Int8Array]",fee="[object Int16Array]",hee="[object Int32Array]",pee="[object Uint8Array]",mee="[object Uint8ClampedArray]",gee="[object Uint16Array]",vee="[object Uint32Array]",jt={};jt[uC]=jt[ZJ]=jt[see]=jt[cee]=jt[KJ]=jt[XJ]=jt[lee]=jt[uee]=jt[dee]=jt[fee]=jt[hee]=jt[eee]=jt[tee]=jt[fC]=jt[nee]=jt[ree]=jt[iee]=jt[aee]=jt[pee]=jt[mee]=jt[gee]=jt[vee]=!0;jt[QJ]=jt[dC]=jt[oee]=!1;function cl(e,t,n,r,i,a){var o,s=t&qJ,c=t&YJ,l=t&GJ;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!WJ(e))return e;var u=FJ(e);if(u){if(o=DJ(e),!s)return $J(e,o)}else{var d=IJ(e),f=d==dC||d==JJ;if(BJ(e))return MJ(e,s);if(d==fC||d==uC||f&&!i){if(o=c||f?{}:LJ(e),!s)return c?RJ(e,OJ(o,e)):AJ(e,EJ(o,e))}else{if(!jt[d])return i?e:{};o=NJ(e,d,s)}}a||(a=new TJ);var h=a.get(e);if(h)return h;a.set(e,o),zJ(e)?e.forEach(function(v){o.add(cl(v,t,n,v,e,a))}):UJ(e)&&e.forEach(function(v,w){o.set(w,cl(v,t,n,w,e,a))});var g=l?c?PJ:jJ:c?VJ:HJ,p=u?void 0:g(e);return SJ(p||e,function(v,w){p&&(w=v,v=e[w]),kJ(o,w,cl(v,t,n,w,e,a))}),o}var yee=cl;function bee(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var xee=bee,_ee=dc,wee=xee;function Cee(e,t){return t.length<2?e:_ee(e,wee(t,0,-1))}var Tee=Cee,See=yo,kee=qw,Eee=Tee,Oee=bo;function Mee(e,t){return t=See(t,e),e=Eee(e,t),e==null||delete e[Oee(kee(t))]}var $ee=Mee,Aee=Wm;function Ree(e){return Aee(e)?void 0:e}var jee=Ree,Pee=td,Iee=yee,Dee=$ee,Nee=yo,Lee=vo,Fee=jee,Bee=n3,Uee=lC,Wee=1,zee=2,Hee=4,Vee=Bee(function(e,t){var n={};if(e==null)return n;var r=!1;t=Pee(t,function(a){return a=Nee(a,e),r||(r=a.length>1),a}),Lee(e,Uee(e),n),r&&(n=Iee(n,Wee|zee|Hee,Fee));for(var i=t.length;i--;)Dee(n,t[i]);return n}),qee=Vee;const hC=Ht(qee);function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}var pp={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},Yee=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},Gee=function(e){var t=typeof e;return t==="string"||t==="function"},qs=function(e){return e.type==="circle"},mp=function(e){return e.type==="dot"},Ys=function(e){return e.type==="rect"},Zee=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,WX(t,o.match).map(function(c){var l=r(c),u=i(c);return(qs(o)||Ys(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Cr({},hC(o,["match","offset"]),l,u,{size:o.size||u.size,datum:c})}))},[])},Kee=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Zq(Wd(i))},pC=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?pp.noteWidth:s,l=e.noteTextOffset,u=l===void 0?pp.noteTextOffset:l;if(zy(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(zy(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=Kee(r,i,t,n);if(qs(e)){var g=qi(Yn(h),e.size/2);d+=g.x,f+=g.y}if(Ys(e)){var p=Math.round((h+90)/45)%8;p===0&&(f-=e.height/2),p===1&&(d+=e.width/2,f-=e.height/2),p===2&&(d+=e.width/2),p===3&&(d+=e.width/2,f+=e.height/2),p===4&&(f+=e.height/2),p===5&&(d-=e.width/2,f+=e.height/2),p===6&&(d-=e.width/2),p===7&&(d-=e.width/2,f-=e.height/2)}var v=t,w=t;return(h+90)%360>180?(v-=c,w-=c):w+=c,{points:[[d,f],[t,n],[w,n]],text:[v,n-u],angle:h+90}},mC=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return Zee({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},Xee=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return Cr({},n,{computed:pC(Cr({},n))})})},[t])},Qee=function(e){return m.useMemo(function(){return pC(e)},[e])},Jee=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Tt(),o=kn(),s=o.animate,c=o.config,l=Sr({x:n,y:r,config:c,immediate:!s});return typeof i=="function"?m.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[a.annotations.text.outlineWidth>0&&y.jsx(Ct.text,{x:l.x,y:l.y,style:Cr({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),y.jsx(Ct.text,{x:l.x,y:l.y,style:hC(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},Xy=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Tt(),a=m.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(l,u){return l+" L"+u[0]+","+u[1]},"M"+c[0]+","+c[1])},[t]),o=Ag(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Cr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),y.jsx(Ct.path,{fill:"none",d:o,style:s})},ete=function(e){var t=e.x,n=e.y,r=e.size,i=Tt(),a=kn(),o=a.animate,s=a.config,c=Sr({x:t,y:n,radius:r/2,config:s,immediate:!o});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Ct.circle,{cx:c.x,cy:c.y,r:c.radius,style:Cr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Ct.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},tte=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?pp.dotSize:r,a=Tt(),o=kn(),s=o.animate,c=o.config,l=Sr({x:t,y:n,radius:i/2,config:c,immediate:!s});return y.jsxs(y.Fragment,{children:[a.annotations.outline.outlineWidth>0&&y.jsx(Ct.circle,{cx:l.x,cy:l.y,r:l.radius,style:Cr({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),y.jsx(Ct.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},nte=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Tt(),c=kn(),l=c.animate,u=c.config,d=Sr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Ct.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Cr({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),y.jsx(Ct.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},rte=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Qee(e);if(!Yee(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Xy,{points:a.points,isOutline:!0}),qs(e)&&y.jsx(ete,{x:n,y:r,size:e.size}),mp(e)&&y.jsx(tte,{x:n,y:r,size:e.size}),Ys(e)&&y.jsx(nte,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Xy,{points:a.points}),y.jsx(Jee,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},Qy=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},ite=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!Gee(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Qy(e,i.computed.points),e.stroke(),e.lineCap="butt"),qs(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),mp(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Ys(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Qy(e,i.computed.points),e.stroke(),qs(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),mp(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),Ys(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}function Co(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Jy,ate=function(e){var t=e.bars,n=e.annotations,r=mC({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var a=i.height,o=i.width;return{width:o,height:a,size:Math.max(o,a)}}});return y.jsx(y.Fragment,{children:r.map(function(i,a){return y.jsx(rte,kt({},i),a)})})},ote=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,o){var s,c=a[0],l=a[1];return y.jsx(Ng,kt({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:l,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?i:void 0}),o)})})},ste=["data"],cte=function(e){var t,n=e.bar,r=n.data,i=Co(n,ste),a=e.style,o=a.borderColor,s=a.color,c=a.height,l=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,h=a.transform,g=a.width,p=e.borderRadius,v=e.borderWidth,w=e.label,_=e.shouldRenderLabel,x=e.isInteractive,T=e.onClick,b=e.onMouseEnter,S=e.onMouseLeave,R=e.tooltip,M=e.isFocusable,k=e.ariaLabel,E=e.ariaLabelledBy,C=e.ariaDescribedBy,O=Tt(),$=ca(),A=$.showTooltipFromEvent,P=$.showTooltipAt,D=$.hideTooltip,F=m.useMemo(function(){return function(){return m.createElement(R,kt({},i,r))}},[R,i,r]),q=m.useCallback(function(J){T==null||T(kt({color:i.color},r),J)},[i,r,T]),z=m.useCallback(function(J){return A(F(),J)},[A,F]),U=m.useCallback(function(J){b==null||b(r,J),A(F(),J)},[r,b,A,F]),G=m.useCallback(function(J){S==null||S(r,J),D()},[r,D,S]),ee=m.useCallback(function(){P(F(),[i.absX+i.width/2,i.absY])},[P,F,i]),ie=m.useCallback(function(){D()},[D]);return y.jsxs(Ct.g,{transform:h,children:[y.jsx(Ct.rect,{width:vi(g,function(J){return Math.max(J,0)}),height:vi(c,function(J){return Math.max(J,0)}),rx:p,ry:p,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:o,focusable:M,tabIndex:M?0:void 0,"aria-label":k?k(r):void 0,"aria-labelledby":E?E(r):void 0,"aria-describedby":C?C(r):void 0,onMouseEnter:x?U:void 0,onMouseMove:x?z:void 0,onMouseLeave:x?G:void 0,onClick:x?q:void 0,onFocus:x&&M?ee:void 0,onBlur:x&&M?ie:void 0}),_&&y.jsx(Ct.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:kt({},O.labels.text,{pointerEvents:"none",fill:l}),children:w})]})},lte=["color","label"],ute=function(e){var t=e.color,n=e.label,r=Co(e,lte);return y.jsx(jm,{id:n,value:r.formattedValue,enableChip:!0,color:t})},$t={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:ute,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},Lt=kt({},$t,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:cte,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),dn=kt({},$t,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(Jy=window.devicePixelRatio)!=null?Jy:1}),gC=function(e,t,n,r,i,a){return Vs(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},vC=function(e,t){return e.map(function(n){return kt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Hd=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Vd=function(e){return[e,Number(e)]},dte=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Wg=function(e,t){return e>t},yC=function(e,t){return e<t},bC=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},fte=function(e){return Wg(e,0)?0:e},hte=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,h=e.yScale,g=e.margin,p=n?yC:Wg,v=i.map(Hd),w=[];return d.forEach(function(_,x){return bC(0,f.domain().length).forEach(function(T){var b,S,R,M=Vd(i[T][_]),k=M[0],E=M[1],C=s(i[T]),O=((b=f(C))!=null?b:0)+t*x+u*x,$=p(S=E,0)?(R=h(S))!=null?R:0:r,A=function(D,F){var q;return p(D,0)?r-F:((q=h(D))!=null?q:0)-r}(E,$),P={id:_,value:k===null?k:E,formattedValue:a(E),hidden:!1,index:T,indexValue:C,data:v[T]};w.push({key:_+"."+P.indexValue,index:w.length,data:P,x:O,y:$,absX:g.left+O,absY:g.top+$,width:t,height:A,color:o(P),label:c(P)})})}),w},pte=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,g=e.margin,p=n?yC:Wg,v=i.map(Hd),w=[];return l.forEach(function(_,x){return bC(0,h.domain().length).forEach(function(T){var b,S,R,M=Vd(i[T][_]),k=M[0],E=M[1],C=o(i[T]),O=p(S=E,0)?r:(R=f(S))!=null?R:0,$=((b=h(C))!=null?b:0)+t*x+d*x,A=function(D,F){var q;return p(D,0)?((q=f(D))!=null?q:0)-r:r-F}(E,O),P={id:_,value:k===null?k:E,formattedValue:a(E),hidden:!1,index:T,indexValue:C,data:v[T]};w.push({key:_+"."+P.indexValue,index:w.length,data:P,x:O,y:$,absX:g.left+O,absY:g.top+$,width:A,height:t,color:s(P),label:c(P)})})}),w},mte=function(e){var t,n,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,h=e.valueScale,g=e.indexScale,p=e.hiddenIds,v=p===void 0?[]:p,w=Co(e,dte),_=w.keys.filter(function(U){return!v.includes(U)}),x=vC(w.data,_),T=r==="vertical"?["y","x",s]:["x","y",c],b=T[0],S=T[1],R=T[2],M=gC(x,w.getIndex,u,g,R,S),k=kt({max:a,min:i,reverse:o},h),E=k.min==="auto"?fte:function(U){return U},C=x.reduce(function(U,G){return[].concat(U,_.map(function(ee){return G[ee]}))},[]).filter(Boolean),O=E(Math.min.apply(Math,C)),$=(n=Math.max.apply(Math,C),isFinite(n)?n:0),A=Vs(k,{all:C,min:O,max:$},b==="x"?s:c,b),P=r==="vertical"?[M,A]:[A,M],D=P[0],F=P[1],q=(M.bandwidth()-f*(_.length-1))/_.length,z=[kt({},w,{data:x,keys:_,innerPadding:f,xScale:D,yScale:F}),q,k.reverse,(t=A(0))!=null?t:0];return{xScale:D,yScale:F,bars:q>0?r==="vertical"?hte.apply(void 0,z):pte.apply(void 0,z):[]}},gte=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],vte=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},yte=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return l.domain().forEach(function(g,p){var v,w,_=h[p],x=(v=l(a(_.data)))!=null?v:0,T=((w=function(E){return u(E[n?0:1])}(_))!=null?w:0)+.5*s,b=function(E,C){var O;return((O=u(E[n?1:0]))!=null?O:0)-C}(_,T)-s,S=Vd(_.data[h.key]),R=S[0],M=S[1],k={id:h.key,value:R===null?R:M,formattedValue:r(M),hidden:!1,index:p,indexValue:g,data:Hd(_.data)};f.push({key:h.key+"."+g,index:f.length,data:k,x,y:T,absX:d.left+x,absY:d.top+T,width:t,height:b,color:i(k),label:o(k)})})}),f},bte=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return u.domain().forEach(function(g,p){var v,w,_=h[p],x=(v=u(a(_.data)))!=null?v:0,T=((w=function(E){return l(E[n?1:0])}(_))!=null?w:0)+.5*s,b=function(E,C){var O;return((O=l(E[n?0:1]))!=null?O:0)-C}(_,T)-s,S=Vd(_.data[h.key]),R=S[0],M=S[1],k={id:h.key,value:R===null?R:M,formattedValue:r(M),hidden:!1,index:p,indexValue:g,data:Hd(_.data)};f.push({key:h.key+"."+g,index:f.length,data:k,x:T,y:x,absX:d.left+T,absY:d.top+x,width:b,height:t,color:i(k),label:o(k)})})}),f},xte=function(e){var t,n=e.data,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,g=h===void 0?[]:h,p=Co(e,gte),v=p.keys.filter(function(q){return!g.includes(q)}),w=iH().keys(v).offset(aH)(vC(n,v)),_=r==="vertical"?["y","x",s]:["x","y",c],x=_[0],T=_[1],b=_[2],S=gC(n,p.getIndex,u,f,b,T),R=kt({max:a,min:i,reverse:o},d),M=(t=vte(w),d.type==="log"?t.filter(function(q){return q!==0}):t),k=Math.min.apply(Math,M),E=Math.max.apply(Math,M),C=Vs(R,{all:M,min:k,max:E},x==="x"?s:c,x),O=r==="vertical"?[S,C]:[C,S],$=O[0],A=O[1],P=p.innerPadding>0?p.innerPadding:0,D=S.bandwidth(),F=[kt({},p,{innerPadding:P,stackedData:w,xScale:$,yScale:A}),D,R.reverse];return{xScale:$,yScale:A,bars:D>0?r==="vertical"?yte.apply(void 0,F):bte.apply(void 0,F):[]}},_te=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=M3(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(l,u,d){var f=dp(l.map(function(h){var g,p;return{id:(g=h.data.indexValue)!=null?g:"",label:d(h.data),hidden:h.data.hidden,color:(p=h.color)!=null?p:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,a,c):function(l,u,d,f,h,g){var p=dp(l.map(function(v){var w;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(w=v.color)!=null?w:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&p.reverse(),p}(t,a,n,i,s,c)},eb=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},wte=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Cte=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Tte=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},xC=function(e){var t=e.indexBy,n=t===void 0?$t.indexBy:t,r=e.keys,i=r===void 0?$t.keys:r,a=e.label,o=a===void 0?$t.label:a,s=e.tooltipLabel,c=s===void 0?$t.tooltipLabel:s,l=e.valueFormat,u=e.colors,d=u===void 0?$t.colors:u,f=e.colorBy,h=f===void 0?$t.colorBy:f,g=e.borderColor,p=g===void 0?$t.borderColor:g,v=e.labelTextColor,w=v===void 0?$t.labelTextColor:v,_=e.groupMode,x=_===void 0?$t.groupMode:_,T=e.layout,b=T===void 0?$t.layout:T,S=e.reverse,R=S===void 0?$t.reverse:S,M=e.data,k=e.minValue,E=k===void 0?$t.minValue:k,C=e.maxValue,O=C===void 0?$t.maxValue:C,$=e.margin,A=e.width,P=e.height,D=e.padding,F=D===void 0?$t.padding:D,q=e.innerPadding,z=q===void 0?$t.innerPadding:q,U=e.valueScale,G=U===void 0?$t.valueScale:U,ee=e.indexScale,ie=ee===void 0?$t.indexScale:ee,J=e.initialHiddenIds,X=J===void 0?$t.initialHiddenIds:J,K=e.enableLabel,re=K===void 0?$t.enableLabel:K,N=e.labelSkipWidth,I=N===void 0?$t.labelSkipWidth:N,L=e.labelSkipHeight,V=L===void 0?$t.labelSkipHeight:L,j=e.legends,Z=j===void 0?$t.legends:j,Q=e.legendLabel,te=e.totalsOffset,he=te===void 0?$t.totalsOffset:te,we=m.useState(X??[]),me=we[0],Ue=we[1],Ae=m.useCallback(function(De){Ue(function(Re){return Re.indexOf(De)>-1?Re.filter(function(qe){return qe!==De}):[].concat(Re,[De])})},[]),Ve=Yi(n),Ke=Yi(o),st=Yi(c),pe=eo(l),Te=Tt(),ve=Ig(d,h),Ne=wr(p,Te),nt=wr(w,Te),Et=(x==="grouped"?mte:xte)({layout:b,reverse:R,data:M,getIndex:Ve,keys:i,minValue:E,maxValue:O,width:A,height:P,getColor:ve,padding:F,innerPadding:z,valueScale:G,indexScale:ie,hiddenIds:me,formatValue:pe,getTooltipLabel:st,margin:$}),rt=Et.bars,ot=Et.xScale,pt=Et.yScale,It=m.useMemo(function(){return rt.filter(function(De){return De.data.value!==null}).map(function(De,Re){return kt({},De,{index:Re})})},[rt]),ct=m.useCallback(function(De){var Re=De.width,qe=De.height;return!!re&&!(I>0&&Re<I)&&!(V>0&&qe<V)},[re,I,V]),dt=m.useMemo(function(){return i.map(function(De){var Re=rt.find(function(qe){return qe.data.id===De});return kt({},Re,{data:kt({id:De},Re==null?void 0:Re.data,{hidden:me.includes(De)})})})},[me,i,rt]),mt=m.useMemo(function(){return Z.map(function(De){return[De,_te({bars:De.dataFrom==="keys"?dt:rt,direction:De.direction,from:De.dataFrom,groupMode:x,layout:b,legendLabel:Q,reverse:R})]})},[Z,dt,rt,x,b,Q,R]),Wt=m.useMemo(function(){return function(De,Re,qe,lt,gt,St,Vt){lt===void 0&&(lt=$t.layout),gt===void 0&&(gt=$t.groupMode);var Rt=[];if(De.length===0)return Rt;var Dt=new Map,qt=De[0].width,vt=De[0].height;if(gt==="stacked"){var Yt=new Map;De.forEach(function(ye){var Ee=ye.data,je=Ee.indexValue,Ye=Ee.value;eb(Dt,je,Number(Ye)),wte(Yt,je,Number(Ye))}),Yt.forEach(function(ye,Ee){var je,Ye,We,ft=Dt.get(Ee)||0;lt==="vertical"?(je=Re(Ee),Ye=qe(ye),We=qe(ye/2)):(je=Re(ye),Ye=qe(Ee),We=Re(ye/2)),je+=lt==="vertical"?qt/2:St,Ye+=lt==="vertical"?-St:vt/2,Rt.push({key:"total_"+Ee,x:je,y:Ye,value:ft,formattedValue:Vt(ft),animationOffset:We})})}else if(gt==="grouped"){var rn=new Map,Jt=new Map;De.forEach(function(ye){var Ee=ye.data,je=Ee.indexValue,Ye=Ee.value;eb(Dt,je,Number(Ye)),Cte(rn,je,Number(Ye)),Tte(Jt,je)}),rn.forEach(function(ye,Ee){var je,Ye,We,ft=Dt.get(Ee)||0,W=Jt.get(Ee);lt==="vertical"?(je=Re(Ee),Ye=qe(ye),We=qe(ye/2)):(je=Re(ye),Ye=qe(Ee),We=Re(ye/2)),je+=lt==="vertical"?W*qt/2:St,Ye+=lt==="vertical"?-St:W*vt/2,Rt.push({key:"total_"+Ee,x:je,y:Ye,value:ft,formattedValue:Vt(ft),animationOffset:We})})}return Rt}(rt,ot,pt,b,x,he,pe)},[rt,ot,pt,b,x,he,pe]);return{bars:rt,barsWithValue:It,xScale:ot,yScale:pt,getIndex:Ve,getLabel:Ke,getTooltipLabel:st,formatValue:pe,getColor:ve,getBorderColor:Ne,getLabelColor:nt,shouldRenderBarLabel:ct,hiddenIds:me,toggleSerie:Ae,legendsWithData:mt,barTotals:Wt}},Ste=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?Lt.layout:i,o=Tt();return sa(t,{keys:function(s){return s.key},from:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return y.jsx(Ct.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:kt({},o.labels.text,{pointerEvents:"none",fill:o.text.fill}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a==="vertical"?"middle":"start",alignmentBaseline:a==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},kte=["isInteractive","animate","motionConfig","theme","renderWrapper"],Ete=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,v=e.axisTop,w=e.axisRight,_=e.axisBottom,x=_===void 0?Lt.axisBottom:_,T=e.axisLeft,b=T===void 0?Lt.axisLeft:T,S=e.enableGridX,R=S===void 0?Lt.enableGridX:S,M=e.enableGridY,k=M===void 0?Lt.enableGridY:M,E=e.gridXValues,C=e.gridYValues,O=e.layers,$=O===void 0?Lt.layers:O,A=e.barComponent,P=A===void 0?Lt.barComponent:A,D=e.enableLabel,F=D===void 0?Lt.enableLabel:D,q=e.label,z=e.labelSkipWidth,U=z===void 0?Lt.labelSkipWidth:z,G=e.labelSkipHeight,ee=G===void 0?Lt.labelSkipHeight:G,ie=e.labelTextColor,J=e.markers,X=J===void 0?Lt.markers:J,K=e.colorBy,re=e.colors,N=e.defs,I=N===void 0?Lt.defs:N,L=e.fill,V=L===void 0?Lt.fill:L,j=e.borderRadius,Z=j===void 0?Lt.borderRadius:j,Q=e.borderWidth,te=Q===void 0?Lt.borderWidth:Q,he=e.borderColor,we=e.annotations,me=we===void 0?Lt.annotations:we,Ue=e.legendLabel,Ae=e.tooltipLabel,Ve=e.valueFormat,Ke=e.isInteractive,st=Ke===void 0?Lt.isInteractive:Ke,pe=e.tooltip,Te=pe===void 0?Lt.tooltip:pe,ve=e.onClick,Ne=e.onMouseEnter,nt=e.onMouseLeave,Et=e.legends,rt=e.role,ot=rt===void 0?Lt.role:rt,pt=e.ariaLabel,It=e.ariaLabelledBy,ct=e.ariaDescribedBy,dt=e.isFocusable,mt=dt===void 0?Lt.isFocusable:dt,Wt=e.barAriaLabel,De=e.barAriaLabelledBy,Re=e.barAriaDescribedBy,qe=e.initialHiddenIds,lt=e.enableTotals,gt=lt===void 0?Lt.enableTotals:lt,St=e.totalsOffset,Vt=St===void 0?Lt.totalsOffset:St,Rt=kn(),Dt=Rt.animate,qt=Rt.config,vt=pc(a,o,i),Yt=vt.outerWidth,rn=vt.outerHeight,Jt=vt.margin,ye=vt.innerWidth,Ee=vt.innerHeight,je=xC({indexBy:n,label:q,tooltipLabel:Ae,valueFormat:Ve,colors:re,colorBy:K,borderColor:he,labelTextColor:ie,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:Jt,width:ye,height:Ee,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:F,labelSkipWidth:U,labelSkipHeight:ee,legends:Et,legendLabel:Ue,initialHiddenIds:qe,totalsOffset:Vt}),Ye=je.bars,We=je.barsWithValue,ft=je.xScale,W=je.yScale,ce=je.getLabel,ae=je.getTooltipLabel,se=je.getBorderColor,be=je.getLabelColor,Oe=je.shouldRenderBarLabel,xe=je.toggleSerie,ke=je.legendsWithData,Le=je.barTotals,Pe=sa(We,{keys:function(ge){return ge.key},from:function(ge){return kt({borderColor:se(ge),color:ge.color,height:0,labelColor:be(ge),labelOpacity:0,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+(ge.y+ge.height)+")",width:ge.width},c==="vertical"?{}:{height:ge.height,transform:"translate("+ge.x+", "+ge.y+")",width:0})},enter:function(ge){return{borderColor:se(ge),color:ge.color,height:ge.height,labelColor:be(ge),labelOpacity:1,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+ge.y+")",width:ge.width}},update:function(ge){return{borderColor:se(ge),color:ge.color,height:ge.height,labelColor:be(ge),labelOpacity:1,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+ge.y+")",width:ge.width}},leave:function(ge){return kt({borderColor:se(ge),color:ge.color,height:0,labelColor:be(ge),labelOpacity:0,labelX:ge.width/2,labelY:0,transform:"translate("+ge.x+", "+(ge.y+ge.height)+")",width:ge.width},c==="vertical"?{}:{labelX:0,labelY:ge.height/2,height:ge.height,transform:"translate("+ge.x+", "+ge.y+")",width:0})},config:qt,immediate:!Dt,initial:Dt?void 0:null}),Xe=m.useMemo(function(){return{borderRadius:Z,borderWidth:te,enableLabel:F,isInteractive:st,labelSkipWidth:U,labelSkipHeight:ee,onClick:ve,onMouseEnter:Ne,onMouseLeave:nt,getTooltipLabel:ae,tooltip:Te,isFocusable:mt,ariaLabel:Wt,ariaLabelledBy:De,ariaDescribedBy:Re}},[Z,te,F,ae,st,ee,U,ve,Ne,nt,Te,mt,Wt,De,Re]),zt=Pg(I,Ye,V,{dataKey:"data",targetKey:"data.fill"}),Ot={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};$.includes("annotations")&&(Ot.annotations=y.jsx(ate,{bars:Ye,annotations:me},"annotations")),$.includes("axes")&&(Ot.axes=y.jsx(J3,{xScale:ft,yScale:W,width:ye,height:Ee,top:v,right:w,bottom:x,left:b},"axes")),$.includes("bars")&&(Ot.bars=y.jsx(m.Fragment,{children:Pe(function(ge,ln){return m.createElement(P,kt({},Xe,{bar:ln,style:ge,shouldRenderLabel:Oe(ln),label:ce(ln.data)}))})},"bars")),$.includes("grid")&&(Ot.grid=y.jsx(eC,{width:ye,height:Ee,xScale:R?ft:null,yScale:k?W:null,xValues:E,yValues:C},"grid")),$.includes("legends")&&(Ot.legends=y.jsx(ote,{width:ye,height:Ee,legends:ke,toggleSerie:xe},"legends")),$.includes("markers")&&(Ot.markers=y.jsx(E3,{markers:X,width:ye,height:Ee,xScale:ft,yScale:W},"markers")),$.includes("totals")&&gt&&(Ot.totals=y.jsx(Ste,{data:Le,springConfig:qt,animate:Dt,layout:c},"totals"));var Xt=m.useMemo(function(){return kt({},Xe,{margin:Jt,width:a,height:o,innerWidth:ye,innerHeight:Ee,bars:Ye,legendData:ke,enableLabel:F,xScale:ft,yScale:W,tooltip:Te,getTooltipLabel:ae,onClick:ve,onMouseEnter:Ne,onMouseLeave:nt})},[Xe,Jt,a,o,ye,Ee,Ye,ke,F,ft,W,Te,ae,ve,Ne,nt]);return y.jsx(zd,{width:Yt,height:rn,margin:Jt,defs:zt,role:ot,ariaLabel:pt,ariaLabelledBy:It,ariaDescribedBy:ct,isFocusable:mt,children:$.map(function(ge,ln){var Mt;return typeof ge=="function"?y.jsx(m.Fragment,{children:m.createElement(ge,Xt)},ln):(Mt=Ot==null?void 0:Ot[ge])!=null?Mt:null})})},Ote=function(e){var t=e.isInteractive,n=t===void 0?Lt.isInteractive:t,r=e.animate,i=r===void 0?Lt.animate:r,a=e.motionConfig,o=a===void 0?Lt.motionConfig:a,s=e.theme,c=e.renderWrapper,l=Co(e,kte);return y.jsx(mc,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(Ete,kt({isInteractive:n},l))})},Mte=["isInteractive","renderWrapper","theme"],qf=function(e,t,n,r){return e.find(function(i){return $3(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},$te=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,v=e.axisTop,w=e.axisRight,_=e.axisBottom,x=_===void 0?dn.axisBottom:_,T=e.axisLeft,b=T===void 0?dn.axisLeft:T,S=e.enableGridX,R=S===void 0?dn.enableGridX:S,M=e.enableGridY,k=M===void 0?dn.enableGridY:M,E=e.gridXValues,C=e.gridYValues,O=e.layers,$=O===void 0?dn.layers:O,A=e.renderBar,P=A===void 0?function(ae,se){var be=se.bar,Oe=be.color,xe=be.height,ke=be.width,Le=be.x,Pe=be.y,Xe=se.borderColor,zt=se.borderRadius,Ot=se.borderWidth,Xt=se.label,ge=se.labelColor,ln=se.shouldRenderLabel;if(ae.fillStyle=Oe,Ot>0&&(ae.strokeStyle=Xe,ae.lineWidth=Ot),ae.beginPath(),zt>0){var Mt=Math.min(zt,xe);ae.moveTo(Le+Mt,Pe),ae.lineTo(Le+ke-Mt,Pe),ae.quadraticCurveTo(Le+ke,Pe,Le+ke,Pe+Mt),ae.lineTo(Le+ke,Pe+xe-Mt),ae.quadraticCurveTo(Le+ke,Pe+xe,Le+ke-Mt,Pe+xe),ae.lineTo(Le+Mt,Pe+xe),ae.quadraticCurveTo(Le,Pe+xe,Le,Pe+xe-Mt),ae.lineTo(Le,Pe+Mt),ae.quadraticCurveTo(Le,Pe,Le+Mt,Pe),ae.closePath()}else ae.rect(Le,Pe,ke,xe);ae.fill(),Ot>0&&ae.stroke(),ln&&(ae.textBaseline="middle",ae.textAlign="center",ae.fillStyle=ge,ae.fillText(Xt,Le+ke/2,Pe+xe/2))}:A,D=e.enableLabel,F=D===void 0?dn.enableLabel:D,q=e.label,z=e.labelSkipWidth,U=z===void 0?dn.labelSkipWidth:z,G=e.labelSkipHeight,ee=G===void 0?dn.labelSkipHeight:G,ie=e.labelTextColor,J=e.colorBy,X=e.colors,K=e.borderRadius,re=K===void 0?dn.borderRadius:K,N=e.borderWidth,I=N===void 0?dn.borderWidth:N,L=e.borderColor,V=e.annotations,j=V===void 0?dn.annotations:V,Z=e.legendLabel,Q=e.tooltipLabel,te=e.valueFormat,he=e.isInteractive,we=he===void 0?dn.isInteractive:he,me=e.tooltip,Ue=me===void 0?dn.tooltip:me,Ae=e.onClick,Ve=e.onMouseEnter,Ke=e.onMouseLeave,st=e.legends,pe=e.pixelRatio,Te=pe===void 0?dn.pixelRatio:pe,ve=e.canvasRef,Ne=e.enableTotals,nt=Ne===void 0?dn.enableTotals:Ne,Et=e.totalsOffset,rt=Et===void 0?dn.totalsOffset:Et,ot=m.useRef(null),pt=Tt(),It=pc(a,o,i),ct=It.margin,dt=It.innerWidth,mt=It.innerHeight,Wt=It.outerWidth,De=It.outerHeight,Re=xC({indexBy:n,label:q,tooltipLabel:Q,valueFormat:te,colors:X,colorBy:J,borderColor:L,labelTextColor:ie,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:ct,width:dt,height:mt,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:F,labelSkipWidth:U,labelSkipHeight:ee,legends:st,legendLabel:Z,totalsOffset:rt}),qe=Re.bars,lt=Re.barsWithValue,gt=Re.xScale,St=Re.yScale,Vt=Re.getLabel,Rt=Re.getTooltipLabel,Dt=Re.getBorderColor,qt=Re.getLabelColor,vt=Re.shouldRenderBarLabel,Yt=Re.legendsWithData,rn=Re.barTotals,Jt=ca(),ye=Jt.showTooltipFromEvent,Ee=Jt.hideTooltip,je=Xee({annotations:mC({data:qe,annotations:j,getPosition:function(ae){return{x:ae.x,y:ae.y}},getDimensions:function(ae){var se=ae.width,be=ae.height;return{width:se,height:be,size:Math.max(se,be)}}})}),Ye=m.useMemo(function(){return{borderRadius:re,borderWidth:I,isInteractive:we,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:ee,margin:ct,width:a,height:o,innerWidth:dt,innerHeight:mt,bars:qe,legendData:Yt,enableLabel:F,xScale:gt,yScale:St,tooltip:Ue,getTooltipLabel:Rt,onClick:Ae,onMouseEnter:Ve,onMouseLeave:Ke}},[re,I,we,U,ee,ct,a,o,dt,mt,qe,Yt,F,gt,St,Ue,Rt,Ae,Ve,Ke]),We=eo(te);m.useEffect(function(){var ae,se=(ae=ot.current)==null?void 0:ae.getContext("2d");ot.current&&se&&(ot.current.width=Wt*Te,ot.current.height=De*Te,se.scale(Te,Te),se.fillStyle=pt.background,se.fillRect(0,0,Wt,De),se.translate(ct.left,ct.top),$.forEach(function(be){be==="grid"?typeof pt.grid.line.strokeWidth=="number"&&pt.grid.line.strokeWidth>0&&(se.lineWidth=pt.grid.line.strokeWidth,se.strokeStyle=pt.grid.line.stroke,R&&nu(se,{width:dt,height:mt,scale:gt,axis:"x",values:E}),k&&nu(se,{width:dt,height:mt,scale:St,axis:"y",values:C})):be==="axes"?tC(se,{xScale:gt,yScale:St,width:dt,height:mt,top:v,right:w,bottom:x,left:b,theme:pt}):be==="bars"?lt.forEach(function(Oe){P(se,{bar:Oe,borderColor:Dt(Oe),borderRadius:re,borderWidth:I,label:Vt(Oe.data),labelColor:qt(Oe),shouldRenderLabel:vt(Oe)})}):be==="legends"?Yt.forEach(function(Oe){var xe=Oe[0],ke=Oe[1];F3(se,kt({},xe,{data:ke,containerWidth:dt,containerHeight:mt,theme:pt}))}):be==="annotations"?ite(se,{annotations:je,theme:pt}):be==="totals"&&nt?function(Oe,xe,ke,Le){Le===void 0&&(Le=dn.layout),Oe.fillStyle=ke.text.fill,Oe.font="bold "+ke.labels.text.fontSize+"px "+ke.labels.text.fontFamily,Oe.textBaseline=Le==="vertical"?"alphabetic":"middle",Oe.textAlign=Le==="vertical"?"center":"start",xe.forEach(function(Pe){Oe.fillText(Pe.formattedValue,Pe.x,Pe.y)})}(se,rn,pt,c):typeof be=="function"&&be(se,Ye)}),se.save())},[x,b,w,v,lt,re,I,je,R,k,Dt,Vt,qt,E,C,s,o,mt,dt,Ye,$,c,Yt,ct.left,ct.top,De,Wt,Te,P,gt,St,l,vt,pt,a,rn,nt,We]);var ft=m.useCallback(function(ae){if(qe&&ot.current){var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=qf(qe,ct,be,Oe);xe!==void 0?(ye(m.createElement(Ue,kt({},xe.data,{color:xe.color,label:xe.label,value:Number(xe.data.value)})),ae),ae.type==="mouseenter"&&(Ve==null||Ve(xe.data,ae))):Ee()}},[Ee,ct,Ve,qe,ye,Ue]),W=m.useCallback(function(ae){if(qe&&ot.current){Ee();var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=qf(qe,ct,be,Oe);xe&&(Ke==null||Ke(xe.data,ae))}},[Ee,ct,Ke,qe]),ce=m.useCallback(function(ae){if(qe&&ot.current){var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=qf(qe,ct,be,Oe);xe!==void 0&&(Ae==null||Ae(kt({},xe.data,{color:xe.color}),ae))}},[ct,Ae,qe]);return y.jsx("canvas",{ref:function(ae){ot.current=ae,ve&&"current"in ve&&(ve.current=ae)},width:Wt*Te,height:De*Te,style:{width:Wt,height:De,cursor:we?"auto":"normal"},onMouseEnter:we?ft:void 0,onMouseMove:we?ft:void 0,onMouseLeave:we?W:void 0,onClick:we?ce:void 0})},Ate=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Co(e,Mte);return y.jsx(mc,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx($te,kt({},a,{canvasRef:t}))})}),Rte=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(Ote,kt({width:n,height:r},e))}})};m.forwardRef(function(e,t){return y.jsx(wo,{children:function(n){var r=n.width,i=n.height;return y.jsx(Ate,kt({width:r,height:i},e,{ref:t}))}})});const jte="_side-content-bar_16o0s_1",Pte="_mobile_16o0s_12",Ite="_expanded_16o0s_20",Dte="_content-container_16o0s_23",Nte="_resizer_16o0s_31",Lte="_expander_16o0s_46",Fte="_icon_16o0s_65",Rr={"side-content-bar":"_side-content-bar_16o0s_1",sideContentBar:jte,mobile:Pte,expanded:Ite,"content-container":"_content-container_16o0s_23",contentContainer:Dte,resizer:Nte,expander:Lte,icon:Fte},_C=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=m.useContext(Kt),{isMobile:s}=nc(),c=pm({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[l,u]=m.useState(null);return y.jsxs(y.Fragment,{children:[y.jsxs("section",{className:oe("luminus-side-content-bar shadow",Rr.sideContentBar,{[Rr.mobile]:s},{[Rr.expanded]:n}),style:{width:`${e}px`},...c,children:[i&&!s?y.jsx("div",{role:"button",className:oe(Rr.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((l==null?void 0:l.widthStart)??0)+(((l==null?void 0:l.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:y.jsx(o,{className:Rr.icon,icon:"resizer-horizontal"})}):null,y.jsx("div",{className:Rr.contentContainer,children:t})]}),s?y.jsx("div",{role:"button",onClick:()=>r(!n),className:oe(Rr.expander,{[Rr.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:y.jsx(o,{className:Rr.icon,icon:"chevron-left"})}):null]})},Bte=({title:e})=>y.jsx("div",{className:"mb-3",children:typeof e=="string"?y.jsx(_n,{variant:"h3",children:e}):e}),Ute="_full-screen-container_1rm4r_1",wC={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:Ute},Wte=oe("overflow-hidden luminus-full-screen-container",wC.fullScreenContainer),zte="container-fluid",Hte=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:c,unavailableOnMobile:l})=>{const{addHelmet:u,removeHelmet:d}=m.useContext(s_),{texts:{container:f}}=m.useContext(Kt),[h,g]=m.useState(r),[p,v]=m.useState(!1),w=m.useMemo(()=>{switch(s){case"fullScreen":return Wte;case"main":return zte;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);m.useEffect(()=>(c?u(c):typeof e=="string"&&e&&u(e),()=>d()),[c,u,d,e]);const _=pm({onSwipedLeft:b=>{b.velocity>.8&&v(!0)},delta:100}),{isMobile:x}=nc(),T=m.useMemo(()=>x&&l,[x,l]);return m.useEffect(()=>{g(r)},[r]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe(w,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${h}px)`:"100%"}:void 0,..._,children:y.jsx("div",{className:s==="fullScreen"?wC.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${h}px`:void 0}:{height:"100%",width:"100%"},children:T?y.jsx(mm,{variant:"warning",children:f.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[e?y.jsx(Bte,{title:e}):null,t]})})}),n&&!T?y.jsx(_C,{width:h,isExpandedOnMobileState:[p,v],resizeable:i,onResize:b=>i?g(b):{},children:n}):null]})},zg=({InputContainer:e=ic,formField:t,label:n,resetsFields:r,options:i,isNumber:a,size:o,showClearIcon:s,clearValue:c,noSortOptions:l,required:u,hidden:d,disabled:f,withoutLabel:h,hint:g,className:p})=>{const{register:v,formState:w,getValues:_,setValue:x,watch:T}=gn.useFormContext(),b=Au({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",b);const[S,R]=m.useState(void 0),[M,k]=m.useState(!1),E=m.useMemo(()=>i.toSorted((A,P)=>l?0:(A.name??"").localeCompare(P.name??"")),[i,l]),C=m.useCallback(()=>{const A=c??null;a?x(t,A===null?null:Number(A),{shouldDirty:!0,shouldValidate:M}):x(t,(A==null?void 0:A.toString())??"",{shouldDirty:!0,shouldValidate:M})},[c,a,x,t,M]);m.useEffect(()=>{const A=t.split(".");let P=w.errors;A.forEach(D=>{P!==void 0&&(P=P[D])}),R(P)},[w,t]);const O=m.useMemo(()=>f||b,[f,b]);console.log(O),m.useEffect(()=>{x(t,_(t))},[E,t,_,x]),m.useEffect(()=>{w.isSubmitted&&k(!0)},[w]);const $=S!==void 0;return y.jsx(y.Fragment,{children:y.jsxs(e,{label:n??"",required:u,disabled:O,hidden:d,withoutLabel:h,isInvalid:$,hint:g,className:p,children:[y.jsxs(Tr.Select,{size:o,...v(t,{setValueAs:A=>a?A==null||A===""?null:parseInt(A,10):A==null||A===""?null:A,onChange:()=>{r&&r.forEach(A=>x(A,null,{shouldDirty:!0,shouldValidate:M}))}}),isInvalid:$,hidden:d,disabled:O,className:"w-100",children:[y.jsx("option",{value:""}),E.map(A=>y.jsx("option",{value:A.id??"",children:A.name},A.id))]}),s&&T(t)&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(rc,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Xs,{})})}),S&&y.jsx(ju,{message:S.message})]})})},Hg=({InputContainer:e=ic,formField:t,label:n,resetsFields:r,size:i,showClearIcon:a,clearValue:o,required:s,hidden:c,disabled:l,rows:u,withoutLabel:d,customFormControlProps:f,minLength:h,maxLength:g,hint:p,onChange:v,className:w})=>{const{register:_,formState:x,setValue:T,watch:b}=gn.useFormContext(),S=Au({falseIfNotInit:!0}),[R,M]=m.useState(void 0),[k,E]=m.useState(!1),C=m.useCallback(()=>{const P=o??null;T(t,(P==null?void 0:P.toString())??"",{shouldDirty:!0,shouldValidate:k})},[o,T,t,k]),O=m.useCallback(()=>{const P=t.split(".");let D=x.errors;P.forEach(F=>{D!==void 0&&(D=D[F])}),M(D)},[x,t]),$=m.useMemo(()=>l||S,[l,S]);m.useEffect(()=>{O()},[O]),m.useEffect(()=>{x.isSubmitted&&E(!0)},[x]);const A=R!==void 0;return y.jsxs(e,{label:n??"",required:s,disabled:$,hidden:c,withoutLabel:d,isInvalid:A,className:w,hint:p,isForTextAreaInput:!0,children:[y.jsx(Tr.Control,{as:"textarea",size:i,..._(t,{setValueAs:P=>P==null||P===""?null:P,onChange:P=>{var D;r&&r.forEach(F=>T(F,null,{shouldDirty:!0,shouldValidate:k})),v&&v((D=P.target)!=null&&D.value?P.target.value.toString():null)}}),isInvalid:A,hidden:c,disabled:$,rows:u??2,className:"w-100",minLength:h,maxLength:g,...f}),a&&b(t)&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(rc,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Xs,{})})}),R&&y.jsx(ju,{message:R.message})]})},to=m.forwardRef(({InputContainer:e=ic,type:t,formField:n,label:r,placeholder:i,size:a,resetsFields:o,showClearIcon:s,clearValue:c,required:l,hidden:u,disabled:d,withoutLabel:f,list:h,step:g,CustomOnChangeComponent:p,noSelectOnFocus:v,minLength:w,maxLength:_,hint:x,onChange:T,className:b,autoComplete:S},R)=>{const{register:M,formState:k,setValue:E,watch:C}=gn.useFormContext(),O=Au({falseIfNotInit:!0}),[$,A]=m.useState(void 0),[P,D]=m.useState(!1),F=m.useCallback(()=>{const N=c??null;t==="number"?E(n,N!==null?Number(N):null,{shouldDirty:!0,shouldValidate:P}):E(n,(N==null?void 0:N.toString())??"",{shouldDirty:!0,shouldValidate:P})},[c,t,E,n,P]),q=m.useCallback(()=>{const N=n.split(".");let I=k.errors;N.forEach(L=>{I!==void 0&&(I=I[L])}),A(I)},[k,n]),z=m.useMemo(()=>d||O,[d,O]);m.useEffect(()=>{q()},[q]),m.useEffect(()=>{k.isSubmitted&&D(!0)},[k]);const U=$!==void 0,[G,ee]=m.useState(!1),ie=C(n),J=sm(t,ie??null,G),{ref:X,...K}=M(n,{setValueAs:N=>t==="number"?N==null||N===""?null:Number(N):N==null||N===""?null:N,onChange:N=>{var I;o&&o.forEach(L=>E(L,null,{shouldDirty:!0,shouldValidate:P})),T&&T((I=N.target)!=null&&I.value?t==="number"?Number(N.target.value)??null:N.target.value.toString():null)},onBlur:()=>ee(!1)}),re=m.useRef(null);return m.useImperativeHandle(R,()=>re.current,[re]),y.jsxs(e,{label:r??"",required:l,disabled:z,hidden:u,withoutLabel:f,isInvalid:U,hint:x,className:b,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(Tr.Control,{type:J,placeholder:i??r,size:a,onFocus:N=>{ee(!0),!v&&N.target.select()},...K,ref:N=>{X(N),re.current=N},isInvalid:U,hidden:u,disabled:z,list:h,className:"w-100",step:g,minLength:w,maxLength:_,autoComplete:S}),p&&y.jsx("div",{className:"custom-picker-button",children:p})]}),s&&C(n)&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(rc,{color:"secondary",size:"sm",onClick:F,children:y.jsx(Xs,{})})}),$&&y.jsx(ju,{message:$.message})]})}),tb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=gn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},CC=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?tb(r.ref,n,e):r.refs&&r.refs.forEach(i=>tb(i,n,e))}},Vte=(e,t)=>{t.shouldUseNativeValidation&&CC(e,t);const n={};for(const r in e){const i=gn.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(qte(t.names||Object.keys(e),r)){const o=Object.assign({},gn.get(n,r));gn.set(o,"root",a),gn.set(n,r,o)}else gn.set(n,r,a)}return n},qte=(e,t)=>e.some(n=>n.startsWith(t+"."));var Yte=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=gn.appendErrors(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},qd=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return a.shouldUseNativeValidation&&CC({},a),{errors:{},values:n.raw?r:l}})}catch(l){return s(l)}return c&&c.then?c.then(void 0,s):c}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:Vte(Yte(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const Gte="_wrapper_9omw0_1",Zte="_controls_9omw0_16",Kte="_explorerWindow_9omw0_20",Xte="_folderList_9omw0_28",Qte="_fileList_9omw0_35",Jte="_dndText_9omw0_61",Oi={wrapper:Gte,controls:Zte,explorerWindow:Kte,folderList:Xte,fileList:Qte,dndText:Jte},tn=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),ene="_folderIcon_vxg2z_1",tne="_defaultFolder_vxg2z_5",nne="_names_vxg2z_9",rne="_folderType_vxg2z_13",qc={folderIcon:ene,defaultFolder:tne,names:nne,folderType:rne},TC=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=m.useContext(Kt);return y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[y.jsx(i,{icon:`folder${e?"-filled":""}`,className:oe("d-inline-block",t?qc.defaultFolder:"text-primary"),iconProps:{className:qc.folderIcon}}),y.jsxs("div",{className:oe("d-flex flex-column gap-0 align-items-start",qc.names),children:[y.jsx("span",{className:e?"fw-bold":"",children:n}),r?y.jsxs("span",{className:qc.folderType,children:["(",r,")"]}):null]})]})},ine=({customText:e})=>{const{reducer:[t,n]}=m.useContext(tn),r=m.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return y.jsx("li",{children:y.jsx("button",{onClick:r,type:"button",className:oe("border-0 bg-transparent"),children:y.jsx(TC,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function ane(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const SC=()=>{const e=Ou(),{startLoading:t,stopLoading:n}=m.useContext(bu),{reducer:[,r]}=m.useContext(tn),i=m.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=m.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},one=()=>{const{reducer:[e],entityId:t,entityType:n}=m.useContext(tn),{zNumberRequired:r,zStringRequired:i}=$u(),{createFolder:a}=SC(),o=sn.object({name:i(),documentTypeId:r()}),s=gn.useForm({resolver:qd(o)}),c=m.useCallback(async l=>{const u={...l,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await a(u)},[a,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},sne=({handleClose:e})=>{var o;const{texts:{documents:t}}=m.useContext(Kt),{reducer:[n],entityType:r}=m.useContext(tn);if(ane(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:a}=one();return y.jsx(y.Fragment,{children:y.jsx(gn.FormProvider,{...a,children:y.jsxs(Tr,{onSubmit:a.handleSubmit(i),children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsx(Mn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),y.jsxs(Mn.Body,{children:[y.jsx(to,{formField:"name",type:"text",label:t.name,required:!0}),y.jsx(zg,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),y.jsx(Qi,{type:"submit",children:t.createFolder})]})]})})})},kC=100,cne=(e,t)=>{const n=Ou(),{startLoading:r,stopLoading:i}=m.useContext(bu),{loadDocuments:a}=m.useContext(tn),{zStringRequired:o,zString:s,zNumberRequired:c,zDateRequired:l}=$u(),u=sn.object({name:o(),description:s(),validToDate:l(),documentTypeId:c()}),d=gn.useForm({resolver:qd(u),defaultValues:{...e,validToDate:_u(e.validToDate)}}),f=m.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await a(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,a,r,i]);return{formMethods:d,onSubmit:f}},lne=({handleClose:e,file:t})=>{const{texts:{documents:n}}=m.useContext(Kt),{reducer:[r]}=m.useContext(tn),{formMethods:i,onSubmit:a}=cne(t,e);return y.jsxs(y.Fragment,{children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsx(Mn.Title,{children:n.editFileProperties})}),y.jsx(gn.FormProvider,{...i,children:y.jsxs(Tr,{onSubmit:i.handleSubmit(a),children:[y.jsxs(Mn.Body,{children:[y.jsx(to,{formField:"name",type:"text",label:n.name,required:!0}),y.jsx(to,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),y.jsx(zg,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),y.jsx(Hg,{formField:"description",label:n.description,customFormControlProps:{maxLength:kC}})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),y.jsx(Qi,{type:"submit",children:n.save})]})]})})]})},une=({handleClose:e})=>{const{reducer:[t]}=m.useContext(tn),n=m.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),y.jsx(y.Fragment,{})):y.jsx(lne,{file:n,handleClose:e})},dne=()=>{const{reducer:[e,t]}=m.useContext(tn),n=m.useCallback(()=>{t({type:"close-modal"})},[t]),r=m.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(sne,{handleClose:n});case"edit-file-properties":return y.jsx(une,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Mn,{show:e.state==="openned-modal",onHide:n,children:r})},nb="documents_drag_image_element",Yc="drop-container-highlight-class",rb="data-drop-container-id",ib="data-draggable-id",fne=()=>{const e=document.getElementById(nb);if(e!==null)return e;const t=document.createElement("div");return t.id=nb,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},Vg=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=m.useContext(tn),n=m.useCallback(l=>{var u;if(t.markedFiles.length>0){const d=fne();d.innerHTML=t.markedFiles.length.toString(),l.dataTransfer.setDragImage(d,0,0),l.dataTransfer.clearData(),l.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"}else l.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=l.currentTarget.attributes.getNamedItem(ib))==null?void 0:u.nodeValue)??"",10)])),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=m.useCallback(l=>({[ib]:l,draggable:t.markedFiles.length===0||t.markedFiles.includes(l),onDragStart:n}),[n,t.markedFiles]),i=m.useCallback(l=>u=>{var h;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(Yc);const d=u.dataTransfer.files;if(l&&d&&d.length>0){l(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),p=parseInt(((h=u.currentTarget.attributes.getNamedItem(rb))==null?void 0:h.value)??"",10);e(p,g)}},[e]),a=m.useCallback(()=>l=>{l.preventDefault(),l.stopPropagation()},[]),o=m.useCallback(l=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(Yc)):!l&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(Yc)):u.dataTransfer.dropEffect="none"},[]),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.target===l.currentTarget&&(l.dataTransfer.dropEffect="none",l.currentTarget.classList.remove(Yc))},[]),c=m.useCallback((l,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:a(),onDragEnter:o(u==null?void 0:u.ignoreInner),onDragLeave:s,[rb]:l}),[i,a,o,s]);return{getDraggableProps:r,getDropProps:c}};function EC(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const a=n.get(i);if(a&&EC(a,t,n))return!0}return!1}function hne(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function OC(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${OC(n.parentId,t)}/${n.name}`}const pne=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=$u();return{formSchema:m.useMemo(()=>sn.object({validToDate:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},qg=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=m.useContext(Kt),{reducer:[i],apiActions:{uploadFiles:a}}=m.useContext(tn),o=m.useMemo(()=>[...t],[t]),s=m.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),c=m.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:l}=pne(),u=gn.useForm({resolver:qd(l),defaultValues:{validToDate:_u(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(h=>{var g;return h.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=m.useCallback(async h=>{s!=="root"&&(await a(t,{folderId:s,...h}),e())},[t,e,s,a]);return y.jsxs(Mn,{show:!0,onHide:e,children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),y.jsx("ul",{children:o.map((h,g)=>y.jsxs("li",{children:[h.name," - ",Va(h.size)]},`${h.name}-${g}`))})]})}),y.jsx(gn.FormProvider,{...u,children:y.jsxs(Tr,{onSubmit:u.handleSubmit(d),children:[y.jsxs(Mn.Body,{children:[y.jsx(zg,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),y.jsx(to,{formField:"validToDate",label:r.validSince,type:"date",required:!0}),o.length===1?y.jsx(to,{formField:"name",label:r.name,type:"text"}):null,y.jsx(Hg,{formField:"description",label:r.description,customFormControlProps:{maxLength:kC}})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),y.jsx(Qi,{type:"submit",children:r.upload})]})]})})]})},mne="_folder_1cktt_1",gne="_collapseArrowDiv_1cktt_8",vne="_button_1cktt_20",yne="_nestedList_1cktt_24",bne="_numberOfFiles_1cktt_31",xne="_collapseArrow_1cktt_8",Mi={folder:mne,collapseArrowDiv:gne,button:vne,nestedList:yne,numberOfFiles:bne,collapseArrow:xne},MC=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=m.useContext(Kt),{reducer:[r,i]}=m.useContext(tn),{getDropProps:a}=Vg(),[o,s]=m.useState(null),[c,l]=m.useState(!0),u=m.useMemo(()=>{const p=r.foldersMap.get(e);if(p===void 0)throw new Error(`tried to get dir with id ${e}`);return p},[e,r.foldersMap]),d=m.useCallback(()=>{r.activeFolder!=="root"&&EC(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),l(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=m.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),h=m.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=m.useMemo(()=>r.filteredFiles.filter(p=>p.folderId===e&&p.archive===!1).length,[e,r.filteredFiles]);return y.jsxs(y.Fragment,{children:[y.jsxs("li",{className:Mi.folder,children:[y.jsx("div",{className:Mi.collapseArrowDiv,children:f?c?y.jsx("button",{onClick:()=>l(!1),type:"button",children:y.jsx(n,{icon:"chevron-right",iconProps:{className:Mi.collapseArrow}})}):y.jsx("button",{onClick:d,type:"button",children:y.jsx(n,{icon:"chevron-down",iconProps:{className:Mi.collapseArrow}})}):null}),y.jsx("button",{className:oe(Mi.button),onClick:h,type:"button",...t&&!u.onlyRead?a(e,{onFilesDrop:p=>s(p)}):{},children:y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[y.jsx(TC,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?y.jsxs("span",{className:Mi.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?c?null:y.jsx("ul",{className:Mi.nestedList,children:u==null?void 0:u.childrenIds.map(p=>y.jsx(MC,{dirId:p,writePermissions:t},p))}):void 0]}),o!==null?y.jsx(qg,{files:o,handleClose:()=>s(null),targetFolderId:e}):null]})},_ne="_wrapper_1th2u_1",wne="_downloadButton_1th2u_9",$C={wrapper:_ne,downloadButton:wne};function Cne(e){return tt({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function Tne(e){return tt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function Sne(e){return tt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23 1.5q.41 0 .7.3.3.29.3.7v19q0 .41-.3.7-.29.3-.7.3H7q-.41 0-.7-.3-.3-.29-.3-.7V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h5V2.5q0-.41.3-.7.29-.3.7-.3zM6 13.28l1.42 2.66h2.14l-2.38-3.87 2.34-3.8H7.46l-1.3 2.4-.05.08-.04.09-.64-1.28-.66-1.29H2.59l2.27 3.82-2.48 3.85h2.16zM14.25 21v-3H7.5v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3H7.5v3zm8.25 15v-3h-6.75v3zm0-4.5v-3.75h-6.75v3.75zm0-5.25V7.5h-6.75v3.75zm0-5.25V3h-6.75v3Z"},child:[]}]})(e)}function kne(e){return tt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z"},child:[]}]})(e)}const Ene="_excel_18ggp_1",One="_word_18ggp_5",Mne="_pdf_18ggp_9",$ne="_image_18ggp_13",Gc={excel:Ene,word:One,pdf:Mne,image:$ne},AC=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return y.jsx("span",{className:oe(t,Gc.image),children:y.jsx(Tne,{...n})});case"XLS":case"XLSX":case"CSV":return y.jsx(Sne,{className:oe(t,Gc.excel),...n});case"DOC":case"DOCM":case"DOCX":return y.jsx(kne,{className:oe(t,Gc.word),...n});case"PDF":return y.jsx(EA,{className:oe(t,Gc.pdf),...n});default:return y.jsx(Cne,{})}},Ane=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=m.useContext(Kt),{apiActions:{downloadFile:n},reducer:[r]}=m.useContext(tn),i=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),a=m.useCallback((s,c,l)=>s?x2(c??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:d=>{d.stopPropagation(),n(l,!0)},children:s}):s:"",[n]);return{columns:m.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...i?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:s=>{const c=s.row.original.fileExtension,l=s.row.original.id;return a(y.jsx(AC,{fileExtension:c}),c??"",l)},width:36,align:"center",filterType:"none",noSort:!0},{fieldName:"name",caption:t.name,type:"string",valueFormat:s=>{const c=s.row.original.name,l=s.row.original.fileExtension,u=s.row.original.id;return a(c??"",l??"",u)}},{fieldName:"description",caption:t.description,type:"string"},{fieldName:"fileExtension",caption:t.fileExtension,type:"string",filterType:"select",width:50},{fieldName:"--downloadButton",caption:"",type:"number",filterType:"none",width:38,align:"center",noSort:!0,valueFormat:s=>y.jsx(Ru,{className:$C.downloadButton,onClick:()=>n(s.row.original.id,!1),children:y.jsx(e,{icon:"file-download"})})},{fieldName:"documentTypeName",caption:t.documentType,type:"string",filterType:"select"},{fieldName:"validToDate",caption:t.validSince,type:"date"},{fieldName:"size",caption:t.size,type:"number",valueFormat:({cell:{value:s}})=>s!==void 0?Va(s*1024*1024):"",filterType:"none"},{fieldName:"archive",caption:t.archived,type:"boolean",filterType:"select",valueFormat:({cell:{value:s}})=>s?t.yes[0]:t.no[0]}],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,a])}},Rne=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=m.useContext(tn),{columns:a}=Ane(),o=m.useCallback(h=>{i({type:"mark-files-by-action",setStateAction:h})},[i]),s=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),c=m.useMemo(()=>{var h;return r.activeFolder==="root"?!1:((h=r.foldersMap.get(r.activeFolder))==null?void 0:h.onlyRead)??!1},[r.activeFolder,r.foldersMap]),l=m.useMemo(()=>({enabled:n&&!s,idField:"id",selectedRows:r.markedFiles,setSelectedRows:o}),[s,o,r.markedFiles,n]),u=m.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(h=>h.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=Vg(),f=m.useCallback(h=>n===!1||c?{}:d(h.id),[d,c,n]);return y.jsx("div",{className:oe($C.wrapper),children:y.jsx(e,{data:u,columnsDef:a,rowSelection:l,useScrollableContainer:!0,getRowProps:f,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},r.activeFolder)})},jne="_wrapper_1q562_1",Pne="_divButtons_1q562_10",Yf={wrapper:jne,divButtons:Pne},Ine="_wrapper_1bpdd_1",Dne="_fileInput_1bpdd_5",ab={wrapper:Ine,fileInput:Dne},Nne=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=m.useRef(null),[a,o]=m.useState(null),{reducer:[s]}=m.useContext(tn),c=f=>{var h;(((h=f.target.files)==null?void 0:h.length)??0)>0&&o(f.target.files)},l=m.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=m.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=m.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return y.jsxs("div",{className:ab.wrapper,children:[y.jsx("label",{htmlFor:u,className:oe("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),y.jsx("input",{id:u,type:"file",multiple:!0,onChange:c,className:ab.fileInput,ref:i,disabled:d}),a!==null?y.jsx(qg,{handleClose:l,files:a}):void 0]})},dr=({children:e,onClick:t,className:n,disabled:r=!1})=>y.jsx(Ru,{onClick:t,className:n,disabled:r,children:e}),Lne=({className:e,entityId:t,entityType:n})=>{var R,M;const{texts:{documents:r}}=m.useContext(Kt),{prompt:i}=n2(),{confirm:a}=am(),{apiActions:o,reducer:[s,c]}=m.useContext(tn),{deleteFiles:l,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:h}=o,{renameFolder:g}=SC(),p=m.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=m.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),w=m.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),_=m.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),x=m.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),T=m.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),b=m.useMemo(()=>s.markedFiles.every(k=>{var E;return((E=s.constantFiles.find(C=>C.id===k))==null?void 0:E.archive)===!1}),[s.constantFiles,s.markedFiles]),S=m.useMemo(()=>s.markedFiles.every(k=>{var E;return((E=s.constantFiles.find(C=>C.id===k))==null?void 0:E.archive)===!0}),[s.constantFiles,s.markedFiles]);return y.jsx("div",{className:oe(e,Yf.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Yf.divButtons,children:[y.jsx(Nne,{entityId:t,entityType:n,disabled:T,children:r.uploadFiles}),y.jsx(dr,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:T,children:r.createFolder}),y.jsx(dr,{disabled:s.activeFolder==="root"||((R=s.foldersMap.get(s.activeFolder))==null?void 0:R.isDefault),onClick:async()=>{var E;await a(`${r.deleteFolder} ${(E=s.foldersMap.get(s.activeFolder))==null?void 0:E.name}?`)&&h(s.activeFolder)},children:r.deleteFolder}),y.jsx(dr,{disabled:s.activeFolder==="root"||((M=s.foldersMap.get(s.activeFolder))==null?void 0:M.isDefault),onClick:w,children:r.renameFolder})]}),!x&&!T?y.jsxs("div",{className:Yf.divButtons,children:[y.jsx(dr,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),y.jsx(dr,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&l(s.markedFiles)},disabled:p,children:r.delete}),S?y.jsx(dr,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:p,children:r.dearchivate}):y.jsx(dr,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:p||!b,children:r.archivate}),y.jsx(dr,{onClick:_,disabled:p,children:r.rename}),y.jsx(dr,{onClick:d,disabled:p,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(dr,{onClick:()=>c({type:"return-from-folder-choosing"}),className:oe("ignore-dim","body-background-color"),children:r.back})}):void 0})},Fne=({file:e})=>{const{confirm:t}=am(),{reducer:[n],apiActions:{downloadFile:r}}=m.useContext(tn),{texts:{documents:i}}=m.useContext(Kt),a=m.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:Va(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return y.jsxs(vu,{action:!0,onClick:a,children:[y.jsx(_n,{variant:"body",className:"text-muted",children:OC(e.folderId,n.foldersMap)}),y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[y.jsx(_n,{variant:"body",children:e.name}),y.jsx(_n,{variant:"body",children:e.size==null?null:Va(e.size*1024*1024)})]})]})},Bne="_typeSelect_m3myk_1",Une={typeSelect:Bne},Wne=()=>{const{reducer:[e]}=m.useContext(tn),{texts:{documents:t}}=m.useContext(Kt),[n,r]=m.useState(""),[i,a]=m.useState(null),o=m.useMemo(()=>{const c=new Map;return e.filteredFiles.forEach(u=>{c.get(u.documentTypeId)===void 0&&c.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(c).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=m.useMemo(()=>e.filteredFiles.filter(c=>Qp(c.name,n)&&(i===null||c.documentTypeId===i)),[n,i,e.filteredFiles]);return y.jsxs("div",{className:"d-flex h-100 flex-column",children:[y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[y.jsx(O_,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:Une.typeSelect}),y.jsx(S_,{label:t.search,type:"text",value:n,onChange:c=>r(c===null?"":c),className:"flex-grow-1",size:"sm"})]}),y.jsx(Mx,{className:"overflow-y-auto",children:s.map(c=>y.jsx(Fne,{file:c},c.id))})]})};function zne(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function Hne(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,zne(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function ob(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function Vne(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const qne=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(Kt),{startLoading:a,stopLoading:o}=m.useContext(bu),{addNotification:s}=Eu(),c=Ou(),l=m.useCallback(async x=>{a("documentList");try{const b=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:R}=Hne(b.folders),M=Vne(b.documents,S);t({type:"load-data",files:M,foldersMap:S,rootFolderIds:R,setActiveFolder:x})}finally{o("documentList")}},[c,t,r,n,a,o]);m.useEffect(()=>{l(!0)},[l]);const u=m.useCallback(async()=>{a("documents-types");try{const x=await c.get(`/documents/types/${n}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"load-document-types",documentTypes:x.data})}finally{o("documents-types")}},[c,t,n,a,o]);m.useEffect(()=>{u()},[u]);const d=m.useCallback(async(x,T)=>{const b=T??e.markedFiles;a("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${x}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:x}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(x).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,c,t,s,i,o]),f=m.useCallback(async x=>{const T=x??e.markedFiles;a("documentsFilesDelete");try{const b=await c.delete(`/documents/delete?${ph(T,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:T}),s(i.fileDeleteSuccessful(T.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,c,t,s,i,o]),h=m.useCallback(async x=>{var T;if(!(x==="root"||(T=e.foldersMap.get(x))!=null&&T.isDefault)){a("documentsFolderDelete");try{const b=await c.delete(`/documents/folder/${x}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:x}),s(i.folderDeleteSuccessful(e.foldersMap.get(x).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,c,t,s,i,o]),g=m.useCallback(async x=>{a("documentsRename");try{const T=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:x});if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);l()}finally{o("documentsRename")}},[a,c,e.markedFiles,l,o]),p=m.useCallback(async x=>{a("documents-archivate");try{const T=await c.put(`/documents/${x?"dearchive":"archive"}`,e.markedFiles);if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!x}}),s((x?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,c,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),v=m.useCallback(async()=>{var T;if(e.activeFolder==="root")return;const x=e.markedFiles.length;s(i.downloadAsZip(x),"info"),a("documents-ZIP_download");try{const b=await c.get(`/documents/download-zip?${ph(e.markedFiles,"documentIds")}`,{responseType:"blob"});wl(b.data,(((T=e.foldersMap.get(e.activeFolder))==null?void 0:T.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,c,o]),w=m.useCallback(async(x,T)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const b=await c.get(`/documents/${x}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find(M=>M.id===x),R=`${(S==null?void 0:S.name)??x.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;wl(b.data,R,T)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,c,e.constantFiles,o]),_=m.useCallback(async(x,T)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:x,...T}),await l()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,c,l,o]);return{loadDocuments:l,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:g,archivateFiles:p,downloadAsZip:v,downloadFile:w,uploadFiles:_}},Yne=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:ob(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=ob(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},Gne=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=m.useReducer(Yne,e);return[t,n]},Zne=m.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:c}=nc(),{ProjectIconComponent:l,texts:{documents:u}}=m.useContext(Kt),[d,f]=Gne(),[h,g]=m.useState(null),{loadDocuments:p,...v}=qne([d,f],e,t),w=m.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:p,reducer:[d,f]}),[t,e,v,p,d,f]),{getDropProps:_}=Vg();return c?y.jsx(tn.Provider,{value:w,children:y.jsx(Wne,{})}):y.jsx("div",{...s,className:oe(Oi.wrapper,n),onDragOver:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},onDragEnter:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},children:y.jsxs(tn.Provider,{value:w,children:[y.jsx("div",{className:oe(d.state==="folder-choosing"?"dim-others":void 0,Oi.explorerWindow),children:y.jsxs("ul",{className:Oi.folderList,children:[y.jsx(ine,{customText:a??e}),d.rootFolderIds.map(x=>y.jsx(MC,{dirId:x,writePermissions:o},x))]})}),y.jsxs("div",{className:oe(Oi.explorerWindow,Oi.fileList),...o&&hne(d)?_(d.activeFolder,{onFilesDrop:x=>g(x),ignoreInner:!0}):{},children:[y.jsxs("div",{className:Oi.dndText,children:[y.jsx(l,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),y.jsx("span",{children:u.dropToUpload})]}),y.jsx(Rne,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?y.jsx(Lne,{className:Oi.controls,entityType:e,entityId:t}):null,y.jsx(dne,{}),h!==null?y.jsx(qg,{files:h,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),Kne=m.createContext(void 0);exports.AbstractModalHeader=Dx;exports.Alert=mm;exports.ApprovalState=nO;exports.AuthContext=xu;exports.AvatarIcon=u_;exports.Backdrop=w_;exports.BaseModal=Ax;exports.BootstrapModalManager=Rx;exports.Button=$p;exports.Col=Rp;exports.ConfirmContext=e2;exports.ContextButton=Ru;exports.CustomSelectInput=O_;exports.DelegationContext=c2;exports.Documents=Zne;exports.Dropdown=um;exports.Dropdown$1=Ha;exports.DropdownDivider=d_;exports.DropdownItem=ja;exports.DropdownToggle=lm;exports.ENTERED=ri;exports.ENTERING=Ir;exports.EXITED=ni;exports.EXITING=dl;exports.FaMinus=TA;exports.FaPlus=SA;exports.FaSearch=kA;exports.Fade=di;exports.FileExtensionIcon=AC;exports.FileUploadContextButton=P$;exports.FloatingLabelInput=Pu;exports.Form=Tr;exports.FormCheckInput=gu;exports.FormControl=yx;exports.FormDisabledContext=c_;exports.FormSelect=Wp;exports.FromToDatePickerDropdownToggle=OA;exports.HelmetContext=s_;exports.HookFormTextAreaInput=Hg;exports.HookFormTextInput=to;exports.HtmlTooltip=f2;exports.IconButton=rc;exports.Ie=tO;exports.InputAnchorContainer=T_;exports.InvalidFeedback=ju;exports.ListGroup=Mx;exports.ListGroupItem=vu;exports.LoadingContext=bu;exports.LoginState=o2;exports.LuminusComponentsContext=Kt;exports.MdArrowRight=zk;exports.MdCheck=Hk;exports.MdCircle=Wk;exports.MdClear=Xs;exports.MdOutlineAddCircleOutline=Xk;exports.MdOutlineArrowOutward=Vk;exports.MdOutlineCameraAlt=rE;exports.MdOutlineChevronRight=sE;exports.MdOutlineClose=Qx;exports.MdOutlineDelete=Kx;exports.MdOutlineEdit=iE;exports.MdOutlineExpand=Yk;exports.MdOutlineFileUpload=Xx;exports.MdOutlineKeyboardArrowLeft=eE;exports.MdOutlineKeyboardArrowRight=tE;exports.MdOutlineKeyboardDoubleArrowLeft=nE;exports.MdOutlineMenu=cE;exports.MdOutlinePhotoLibrary=aE;exports.MdOutlineStar=dE;exports.MdOutlineSubdirectoryArrowRight=uE;exports.MdSave=Uk;exports.MdSaveAs=Bk;exports.MdSearch=Fk;exports.MiniDetailWrapper=E_;exports.Modal=Mn;exports.ModalContext=qp;exports.NoInputContainer=C_;exports.Oe=H;exports.PageContainer=Hte;exports.PrimaryButton=Qi;exports.PromptContext=t2;exports.Re=Rte;exports.ResponsiveContextDropdown=__;exports.ResponsiveContextDropdownItem=hm;exports.RowLabelInput=ic;exports.ShortcutLinksContext=Kne;exports.SideContentBar=_C;exports.SimpleDropdownToggle=cm;exports.SimplePicker=h_;exports.SimpleTooltip=Xp;exports.Spinner=Zp;exports.TextInput=S_;exports.TransitionWrapper=Eb;exports.Typography=_n;exports.UserAvatarToggle=q$;exports.UserContext=s2;exports._=cG;exports._extends=ul;exports._inheritsLoose=bb;exports._objectWithoutPropertiesLoose=xp;exports.a=f_;exports.addLeadingZeros=wt;exports.atobUtf8=p2;exports.axios=Ut;exports.buildEmployeeNameString=bO;exports.buildOrgUnitString=xO;exports.buildVehicleNameString=yO;exports.cancelToken=S8;exports.capitalizeFirstLetter=vO;exports.classNames=oe;exports.classes=l_;exports.compareDate=CO;exports.compareDateTime=TO;exports.constructFrom=Ur;exports.context=pu;exports.differenceInCalendarDays=hb;exports.divWithClassName=Sp;exports.extractErrorsFromResponse=Kp;exports.extractFilename=y2;exports.extractPermissionsFromResponse=d2;exports.fixNameIdNulls=l2;exports.format=bp;exports.formatDate=mO;exports.formatDateTime=gO;exports.formatFileSize=Va;exports.getDateString=$O;exports.getDaysDifference=SO;exports.getDefaultExportFromCjs=Ht;exports.getFirstDayOfMonth=g2;exports.getFirstDayOfOffsetMonth=kO;exports.getFirstDayOfYear=OO;exports.getLastDayOfMonth=v2;exports.getLastDayOfOffsetMonth=EO;exports.getLastDayOfYear=MO;exports.getSharedManager=jx;exports.getTimezoneOffsetInMilliseconds=Kf;exports.hasOnlyNullValues=u2;exports.hookFormSetServerErrors=iO;exports.invariant=Xf;exports.isExtensionOpenable=x2;exports.isFileOpenable=b2;exports.isISODate=m2;exports.isPast=gb;exports.isPrimitive=_l;exports.isValidDate=wO;exports.joinStrings=fs;exports.jsxRuntimeExports=y;exports.millisecondsInHour=iu;exports.millisecondsInMinute=vp;exports.millisecondsInWeek=gp;exports.msToStartOfNextDay=_O;exports.parseISO=ou;exports.pe=$X;exports.replaceNullValuesOnlyObjectsWithNulls=rO;exports.requireReactIs=wp;exports.saveFile=wl;exports.saveFileFromResponse=jO;exports.secondsInDay=yp;exports.secondsInHour=cb;exports.secondsInMinute=oT;exports.secondsInMonth=ub;exports.secondsInQuarter=cT;exports.secondsInWeek=sT;exports.secondsInYear=lb;exports.shortenText=pO;exports.startOfDay=Zf;exports.startOfWeek=La;exports.stringContains=mh;exports.stringSearchWithin=Qp;exports.stringStartsWith=_2;exports.style=li;exports.t=qd;exports.toDate=Sn;exports.transitionEndListener=Sb;exports.triggerBrowserReflow=kb;exports.trimIsoDate=_u;exports.truncateText=h2;exports.urlfyArray=ph;exports.useAuth=q2;exports.useAxios=Ou;exports.useBootstrapBreakpoints=xb;exports.useBootstrapMinBreakpoint=_b;exports.useBootstrapPrefix=it;exports.useClickOutside=r_;exports.useClipboard=o_;exports.useCol=Db;exports.useConfirm=am;exports.useCookies=im;exports.useEventCallback=Bt;exports.useFormControlType=sm;exports.useFormDisabledContext=Au;exports.useIsomorphicEffect=ss;exports.useKeyPress=a_;exports.useNotifications=Eu;exports.usePermissions=i_;exports.usePrompt=n2;exports.useSwipeable=pm;exports.useWindowSize=nc;exports.useZodSchemaTypes=$u;exports.z=sn;
281
+ `,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?"transparent":l,style:{pointerEvents:"none"}})})};function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi.apply(this,arguments)}var qY={top:0,right:0,bottom:0,left:0},Ng=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Fi({},qY,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+l:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:c}},L3=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,c=n,l=r;switch(t){case"top":c+=(i-o)/2;break;case"top-right":c+=i-o;break;case"right":c+=i-o,l+=(a-s)/2;break;case"bottom-right":c+=i-o,l+=a-s;break;case"bottom":c+=(i-o)/2,l+=a-s;break;case"bottom-left":l+=a-s;break;case"left":l+=(a-s)/2;break;case"center":c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},F3=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-l)/2,i=f/2,o="central",c?(r=d,a="end"):(r=l+u,a="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,o="central",c?(r=0,a="start"):(r=d-l-u,a="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,a="middle",c?(i=f,o="alphabetic"):(i=l+u,o="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,a="middle",c?(i=0,o="text-before-edge"):(i=f-l-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},YY={circle:WY,diamond:zY,square:HY,triangle:VY},GY=function(e){var t,n,r,i,a,o,s,c,l,u,d,f=e.x,h=e.y,g=e.width,p=e.height,v=e.data,w=e.direction,_=w===void 0?"left-to-right":w,x=e.justify,T=x!==void 0&&x,b=e.textColor,S=e.background,R=S===void 0?"transparent":S,M=e.opacity,k=M===void 0?1:M,E=e.symbolShape,C=E===void 0?"square":E,O=e.symbolSize,$=O===void 0?16:O,A=e.symbolSpacing,P=A===void 0?8:A,D=e.symbolBorderWidth,F=D===void 0?0:D,q=e.symbolBorderColor,z=q===void 0?"transparent":q,U=e.onClick,G=e.onMouseEnter,ee=e.onMouseLeave,ie=e.toggleSerie,J=e.effects,X=m.useState({}),K=X[0],re=X[1],N=Tt(),I=m.useCallback(function(Ae){if(J){var Ve=J.filter(function(Ke){return Ke.on==="hover"}).reduce(function(Ke,st){return Fi({},Ke,st.style)},{});re(Ve)}G==null||G(v,Ae)},[G,v,J]),L=m.useCallback(function(Ae){if(J){var Ve=J.filter(function(Ke){return Ke.on!=="hover"}).reduce(function(Ke,st){return Fi({},Ke,st.style)},{});re(Ve)}ee==null||ee(v,Ae)},[ee,v,J]),V=F3({direction:_,justify:T,symbolSize:(t=K.symbolSize)!=null?t:$,symbolSpacing:P,width:g,height:p}),j=V.symbolX,Z=V.symbolY,Q=V.labelX,te=V.labelY,he=V.labelAnchor,we=V.labelAlignment,me=[U,G,ee,ie].some(function(Ae){return Ae!==void 0}),Ue=typeof C=="function"?C:YY[C];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=K.itemOpacity)!=null?n:k},children:[y.jsx("rect",{width:g,height:p,fill:(r=K.itemBackground)!=null?r:R,style:{cursor:me?"pointer":"auto"},onClick:function(Ae){U==null||U(v,Ae),ie==null||ie(v.id)},onMouseEnter:I,onMouseLeave:L}),ue.createElement(Ue,Fi({id:v.id,x:j,y:Z,size:(i=K.symbolSize)!=null?i:$,fill:(a=(o=v.fill)!=null?o:v.color)!=null?a:"black",borderWidth:(s=K.symbolBorderWidth)!=null?s:F,borderColor:(c=K.symbolBorderColor)!=null?c:z},v.hidden?N.legends.hidden.symbol:void 0)),y.jsx("text",{textAnchor:he,style:Fi({},Pg(N.legends.text),{fill:(l=(u=(d=K.itemTextColor)!=null?d:b)!=null?u:N.legends.text.fill)!=null?l:"black",dominantBaseline:we,pointerEvents:"none",userSelect:"none"},v.hidden?N.legends.hidden.text:void 0),x:Q,y:te,children:v.label})]})},ZY=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?0:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemTextColor,v=e.itemBackground,w=v===void 0?"transparent":v,_=e.itemOpacity,x=_===void 0?1:_,T=e.symbolShape,b=e.symbolSize,S=e.symbolSpacing,R=e.symbolBorderWidth,M=e.symbolBorderColor,k=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,O=e.toggleSerie,$=Ng({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:g,direction:i,padding:o}).padding,A=i==="row"?l+g:0,P=i==="column"?u+g:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(D,F){return y.jsx(GY,{data:D,x:F*A+$.left,y:F*P+$.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:p,background:w,opacity:x,symbolShape:T,symbolSize:b,symbolSpacing:S,symbolBorderWidth:R,symbolBorderColor:M,onClick:k,onMouseEnter:E,onMouseLeave:C,toggleSerie:O},F)})})},Lg=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?0:i,o=e.translateY,s=o===void 0?0:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,g=h===void 0?0:h,p=e.itemWidth,v=e.itemHeight,w=e.itemDirection,_=e.itemTextColor,x=e.itemBackground,T=e.itemOpacity,b=e.symbolShape,S=e.symbolSize,R=e.symbolSpacing,M=e.symbolBorderWidth,k=e.symbolBorderColor,E=e.onClick,C=e.onMouseEnter,O=e.onMouseLeave,$=e.toggleSerie,A=e.effects,P=Ng({itemCount:t.length,itemsSpacing:g,itemWidth:p,itemHeight:v,direction:l,padding:d}),D=P.width,F=P.height,q=L3({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:D,height:F}),z=q.x,U=q.y;return y.jsx(ZY,{data:t,x:z,y:U,direction:l,padding:d,justify:f,effects:A,itemsSpacing:g,itemWidth:p,itemHeight:v,itemDirection:w,itemTextColor:_,itemBackground:x,itemOpacity:T,symbolShape:b,symbolSize:S,symbolSpacing:R,symbolBorderWidth:M,symbolBorderColor:k,onClick:E,onMouseEnter:C,onMouseLeave:O,toggleSerie:typeof $=="boolean"?void 0:$})},KY={start:"left",middle:"center",end:"right"},B3=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,g=h!==void 0&&h,p=t.itemsSpacing,v=p===void 0?0:p,w=t.itemWidth,_=t.itemHeight,x=t.itemDirection,T=x===void 0?"left-to-right":x,b=t.itemTextColor,S=t.symbolSize,R=S===void 0?16:S,M=t.symbolSpacing,k=M===void 0?8:M,E=t.theme,C=Ng({itemCount:n.length,itemWidth:w,itemHeight:_,itemsSpacing:v,direction:u,padding:f}),O=C.width,$=C.height,A=C.padding,P=L3({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O,height:$}),D=P.x,F=P.y,q=u==="row"?w+v:0,z=u==="column"?_+v:0;e.save(),e.translate(D,F),e.font=E.legends.text.fontSize+"px "+(E.legends.text.fontFamily||"sans-serif"),n.forEach(function(U,G){var ee,ie,J=G*q+A.left,X=G*z+A.top,K=F3({direction:T,justify:g,symbolSize:R,symbolSpacing:k,width:w,height:_}),re=K.symbolX,N=K.symbolY,I=K.labelX,L=K.labelY,V=K.labelAnchor,j=K.labelAlignment;e.fillStyle=(ee=U.color)!=null?ee:"black",e.fillRect(J+re,X+N,R,R),e.textAlign=KY[V],j==="central"&&(e.textBaseline="middle"),e.fillStyle=(ie=b??E.legends.text.fill)!=null?ie:"black",e.fillText(String(U.label),J+I,X+L)}),e.restore()};function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}function U3(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var $y,XY=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,s){var c;return y.jsx(Lg,_i({},o,{containerWidth:t,containerHeight:n,data:(c=o.data)!=null?c:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},Ie={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return y.jsx(Pm,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&($y=window.devicePixelRatio)!=null?$y:1},QY=["points"],JY=function(e){var t=e.data,n=e.id,r=n===void 0?Ie.id:n,i=e.value,a=i===void 0?Ie.value:i,o=e.valueFormat,s=e.colors,c=s===void 0?Ie.colors:s,l=Yi(r),u=Yi(a),d=eo(o),f=Dg(c,"id");return m.useMemo(function(){return t.map(function(h){var g,p=l(h),v=u(h),w={id:p,label:(g=h.label)!=null?g:p,hidden:!1,value:v,formattedValue:d(v),data:h};return _i({},w,{color:f(w)})})},[t,l,u,d,f])},eG=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,c=e.activeId,l=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=m.useMemo(function(){var w=Lz().value(function(_){return _.value}).startAngle(Yn(n)).endAngle(Yn(r)).padAngle(Yn(o));return s||w.sortValues(null),w},[n,r,o,s]),g=m.useMemo(function(){var w=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(w).map(function(_){var x=Math.abs(_.endAngle-_.startAngle);return _i({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:c===_.data.id?i-l:i,outerRadius:c===_.data.id?a+u:a,thickness:a-i,padAngle:_.padAngle,angle:x,angleDeg:Ud(x)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,c,i,l,a,u]),p=g.legendData,v=m.useRef(f);return m.useEffect(function(){typeof v.current=="function"&&v.current(p)},[v,p]),g},tG=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=m.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:m.useCallback(function(c){n&&n(c),i||s(c)},[i,n,s])}},nG=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?Ie.innerRadius:i,o=e.startAngle,s=o===void 0?Ie.startAngle:o,c=e.endAngle,l=c===void 0?Ie.endAngle:c,u=e.padAngle,d=u===void 0?Ie.padAngle:u,f=e.sortByValue,h=f===void 0?Ie.sortByValue:f,g=e.cornerRadius,p=g===void 0?Ie.cornerRadius:g,v=e.fit,w=v===void 0?Ie.fit:v,_=e.activeInnerRadiusOffset,x=_===void 0?Ie.activeInnerRadiusOffset:_,T=e.activeOuterRadiusOffset,b=T===void 0?Ie.activeOuterRadiusOffset:T,S=e.activeId,R=e.onActiveIdChange,M=e.defaultActiveId,k=e.forwardLegendData,E=tG({activeId:S,onActiveIdChange:R,defaultActiveId:M}),C=E.activeId,O=E.setActiveId,$=m.useState([]),A=$[0],P=$[1],D=m.useMemo(function(){var z,U=Math.min(n,r)/2,G=U*Math.min(a,1),ee=n/2,ie=r/2;if(w){var J=BY(ee,ie,U,s-90,l-90),X=J.points,K=U3(J,QY),re=Math.min(n/K.width,r/K.height),N={width:K.width*re,height:K.height*re};N.x=(n-N.width)/2,N.y=(r-N.height)/2,ee=(ee-K.x)/K.width*K.width*re+N.x,ie=(ie-K.y)/K.height*K.height*re+N.y,z={box:K,ratio:re,points:X},U*=re,G*=re}return{centerX:ee,centerY:ie,radius:U,innerRadius:G,debug:z}},[n,r,a,s,l,w]),F=eG({data:t,startAngle:s,endAngle:l,innerRadius:D.innerRadius,outerRadius:D.radius,padAngle:d,sortByValue:h,activeId:C,activeInnerRadiusOffset:x,activeOuterRadiusOffset:b,hiddenIds:A,forwardLegendData:k}),q=m.useCallback(function(z){P(function(U){return U.indexOf(z)>-1?U.filter(function(G){return G!==z}):[].concat(U,[z])})},[]);return _i({arcGenerator:UY({cornerRadius:p,padAngle:Yn(d)}),activeId:C,setActiveId:O,toggleSerie:q},F,D)},rG=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},iG=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,g=ca(),p=g.showTooltipFromEvent,v=g.hideTooltip,w=m.useMemo(function(){if(o)return function(b,S){s==null||s(b,S)}},[o,s]),_=m.useMemo(function(){if(o)return function(b,S){p(m.createElement(f,{datum:b}),S),d(b.id),c==null||c(b,S)}},[o,p,d,c,f]),x=m.useMemo(function(){if(o)return function(b,S){p(m.createElement(f,{datum:b}),S),l==null||l(b,S)}},[o,p,l,f]),T=m.useMemo(function(){if(o)return function(b,S){v(),d(null),u==null||u(b,S)}},[o,v,d,u]);return y.jsx(FY,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:w,onMouseEnter:_,onMouseMove:x,onMouseLeave:T})},aG=["isInteractive","animate","motionConfig","theme","renderWrapper"],oG=function(e){var t=e.data,n=e.id,r=n===void 0?Ie.id:n,i=e.value,a=i===void 0?Ie.value:i,o=e.valueFormat,s=e.sortByValue,c=s===void 0?Ie.sortByValue:s,l=e.layers,u=l===void 0?Ie.layers:l,d=e.startAngle,f=d===void 0?Ie.startAngle:d,h=e.endAngle,g=h===void 0?Ie.endAngle:h,p=e.padAngle,v=p===void 0?Ie.padAngle:p,w=e.fit,_=w===void 0?Ie.fit:w,x=e.innerRadius,T=x===void 0?Ie.innerRadius:x,b=e.cornerRadius,S=b===void 0?Ie.cornerRadius:b,R=e.activeInnerRadiusOffset,M=R===void 0?Ie.activeInnerRadiusOffset:R,k=e.activeOuterRadiusOffset,E=k===void 0?Ie.activeOuterRadiusOffset:k,C=e.width,O=e.height,$=e.margin,A=e.colors,P=A===void 0?Ie.colors:A,D=e.borderWidth,F=D===void 0?Ie.borderWidth:D,q=e.borderColor,z=q===void 0?Ie.borderColor:q,U=e.enableArcLabels,G=U===void 0?Ie.enableArcLabels:U,ee=e.arcLabel,ie=ee===void 0?Ie.arcLabel:ee,J=e.arcLabelsSkipAngle,X=J===void 0?Ie.arcLabelsSkipAngle:J,K=e.arcLabelsTextColor,re=K===void 0?Ie.arcLabelsTextColor:K,N=e.arcLabelsRadiusOffset,I=N===void 0?Ie.arcLabelsRadiusOffset:N,L=e.arcLabelsComponent,V=e.enableArcLinkLabels,j=V===void 0?Ie.enableArcLinkLabels:V,Z=e.arcLinkLabel,Q=Z===void 0?Ie.arcLinkLabel:Z,te=e.arcLinkLabelsSkipAngle,he=te===void 0?Ie.arcLinkLabelsSkipAngle:te,we=e.arcLinkLabelsOffset,me=we===void 0?Ie.arcLinkLabelsOffset:we,Ue=e.arcLinkLabelsDiagonalLength,Ae=Ue===void 0?Ie.arcLinkLabelsDiagonalLength:Ue,Ve=e.arcLinkLabelsStraightLength,Ke=Ve===void 0?Ie.arcLinkLabelsStraightLength:Ve,st=e.arcLinkLabelsThickness,pe=st===void 0?Ie.arcLinkLabelsThickness:st,Te=e.arcLinkLabelsTextOffset,ve=Te===void 0?Ie.arcLinkLabelsTextOffset:Te,Ne=e.arcLinkLabelsTextColor,nt=Ne===void 0?Ie.arcLinkLabelsTextColor:Ne,Et=e.arcLinkLabelsColor,rt=Et===void 0?Ie.arcLinkLabelsColor:Et,ot=e.arcLinkLabelComponent,pt=e.defs,It=pt===void 0?Ie.defs:pt,ct=e.fill,dt=ct===void 0?Ie.fill:ct,mt=e.isInteractive,Wt=mt===void 0?Ie.isInteractive:mt,De=e.onClick,Re=e.onMouseEnter,qe=e.onMouseMove,lt=e.onMouseLeave,gt=e.tooltip,St=gt===void 0?Ie.tooltip:gt,Vt=e.activeId,Rt=e.onActiveIdChange,Dt=e.defaultActiveId,qt=e.transitionMode,vt=qt===void 0?Ie.transitionMode:qt,Yt=e.legends,rn=Yt===void 0?Ie.legends:Yt,Jt=e.forwardLegendData,ye=e.role,Ee=ye===void 0?Ie.role:ye,je=pc(C,O,$),Ye=je.outerWidth,We=je.outerHeight,ft=je.margin,W=je.innerWidth,ce=je.innerHeight,ae=JY({data:t,id:r,value:a,valueFormat:o,colors:P}),se=nG({data:ae,width:W,height:ce,fit:_,innerRadius:T,startAngle:f,endAngle:g,padAngle:v,sortByValue:c,cornerRadius:S,activeInnerRadiusOffset:M,activeOuterRadiusOffset:E,activeId:Vt,onActiveIdChange:Rt,defaultActiveId:Dt,forwardLegendData:Jt}),be=se.dataWithArc,Oe=se.legendData,xe=se.arcGenerator,ke=se.centerX,Le=se.centerY,Pe=se.radius,Xe=se.innerRadius,zt=se.setActiveId,Ot=se.toggleSerie,Xt=Ig(It,be,dt),ge={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(ge.arcs=y.jsx(iG,{center:[ke,Le],data:be,arcGenerator:xe,borderWidth:F,borderColor:z,isInteractive:Wt,onClick:De,onMouseEnter:Re,onMouseMove:qe,onMouseLeave:lt,setActiveId:zt,tooltip:St,transitionMode:vt},"arcs")),j&&u.includes("arcLinkLabels")&&(ge.arcLinkLabels=y.jsx(IY,{center:[ke,Le],data:be,label:Q,skipAngle:he,offset:me,diagonalLength:Ae,straightLength:Ke,strokeWidth:pe,textOffset:ve,textColor:nt,linkColor:rt,component:ot},"arcLinkLabels")),G&&u.includes("arcLabels")&&(ge.arcLabels=y.jsx(EY,{center:[ke,Le],data:be,label:ie,radiusOffset:I,skipAngle:X,textColor:re,transitionMode:vt,component:L},"arcLabels")),rn.length>0&&u.includes("legends")&&(ge.legends=y.jsx(XY,{width:W,height:ce,data:Oe,legends:rn,toggleSerie:Ot},"legends"));var ln=rG({dataWithArc:be,arcGenerator:xe,centerX:ke,centerY:Le,radius:Pe,innerRadius:Xe});return y.jsx(Wd,{width:Ye,height:We,margin:ft,defs:Xt,role:Ee,children:u.map(function(Mt,Jn){return ge[Mt]!==void 0?ge[Mt]:typeof Mt=="function"?y.jsx(m.Fragment,{children:m.createElement(Mt,ln)},Jn):null})})},sG=function(e){var t=e.isInteractive,n=t===void 0?Ie.isInteractive:t,r=e.animate,i=r===void 0?Ie.animate:r,a=e.motionConfig,o=a===void 0?Ie.motionConfig:a,s=e.theme,c=e.renderWrapper,l=U3(e,aG);return y.jsx(mc,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(oG,_i({isInteractive:n},l))})},cG=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(sG,_i({width:n,height:r},e))}})};function lG(){}var uG=lG,Uf=l3,dG=uG,fG=Mg,hG=1/0,pG=Uf&&1/fG(new Uf([,-0]))[1]==hG?function(e){return new Uf(e)}:dG,mG=pG,gG=bg,vG=N4,yG=L4,bG=xg,xG=mG,_G=Mg,wG=200;function CG(e,t,n){var r=-1,i=vG,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=yG;else if(a>=wG){var l=t?null:xG(e);if(l)return _G(l);o=!1,i=bG,c=new gG}else c=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}var W3=CG,TG=W3;function SG(e){return e&&e.length?TG(e):[]}var kG=SG;const Ay=Ht(kG);var EG=Yu,OG=Ag,MG=1,$G=2;function AG(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new EG;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?OG(u,l,MG|$G,r,d):f))return!1}}return!0}var RG=AG,jG=Er;function PG(e){return e===e&&!jG(e)}var z3=PG,IG=z3,DG=hc;function NG(e){for(var t=DG(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,IG(i)]}return t}var LG=NG;function FG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var H3=FG,BG=RG,UG=LG,WG=H3;function zG(e){var t=UG(e);return t.length==1&&t[0][2]?WG(t[0][0],t[0][1]):function(n){return n===e||BG(n,e,t)}}var HG=zG,VG=Ag,qG=Fw,YG=e3,GG=Gm,ZG=z3,KG=H3,XG=bo,QG=1,JG=2;function eZ(e,t){return GG(e)&&ZG(t)?KG(XG(e),t):function(n){var r=qG(n,e);return r===void 0&&r===t?YG(n,e):VG(t,r,QG|JG)}}var tZ=eZ;function nZ(e){return function(t){return t==null?void 0:t[e]}}var rZ=nZ,iZ=dc;function aZ(e){return function(t){return iZ(t,e)}}var oZ=aZ,sZ=rZ,cZ=oZ,lZ=Gm,uZ=bo;function dZ(e){return lZ(e)?sZ(uZ(e)):cZ(e)}var fZ=dZ,hZ=HG,pZ=tZ,mZ=Qu,gZ=Pn,vZ=fZ;function yZ(e){return typeof e=="function"?e:e==null?mZ:typeof e=="object"?gZ(e)?pZ(e[0],e[1]):hZ(e):vZ(e)}var Fg=yZ,bZ=Fg,xZ=W3;function _Z(e,t){return e&&e.length?xZ(e,bZ(t)):[]}var wZ=_Z;const dp=Ht(wZ);var CZ=xw,TZ=hc;function SZ(e,t){return e&&CZ(e,t,TZ)}var kZ=SZ,EZ=mo;function OZ(e,t){return function(n,r){if(n==null)return n;if(!EZ(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var MZ=OZ,$Z=kZ,AZ=MZ,RZ=AZ($Z),V3=RZ,jZ=V3,PZ=mo;function IZ(e,t){var n=-1,r=PZ(e)?Array(e.length):[];return jZ(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var DZ=IZ;function NZ(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var LZ=NZ,Ry=Ju;function FZ(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Ry(e),o=t!==void 0,s=t===null,c=t===t,l=Ry(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}var BZ=FZ,UZ=BZ;function WZ(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=UZ(i[r],a[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var zZ=WZ,Wf=ed,HZ=dc,VZ=Fg,qZ=DZ,YZ=LZ,GZ=go,ZZ=zZ,KZ=Qu,XZ=Pn;function QZ(e,t,n){t.length?t=Wf(t,function(a){return XZ(a)?function(o){return HZ(o,a.length===1?a[0]:a)}:a}):t=[KZ];var r=-1;t=Wf(t,GZ(VZ));var i=qZ(e,function(a,o,s){var c=Wf(t,function(l){return l(a)});return{criteria:c,index:++r,value:a}});return YZ(i,function(a,o){return ZZ(a,o,n)})}var JZ=QZ,eK=n3,tK=JZ,nK=Ym,jy=Iw,rK=nK(function(e,t){if(e==null)return[];var n=t.length;return n>1&&jy(e,t[0],t[1])?t=[]:n>2&&jy(t[0],t[1],t[2])&&(t=[t[0]]),tK(e,eK(t,1),[])}),iK=rK;const aK=Ht(iK);var oK=Gr,sK=Qn,cK="[object Date]";function lK(e){return sK(e)&&oK(e)==cK}var uK=lK,dK=uK,fK=go,Py=Ku,Iy=Py&&Py.isDate,hK=Iy?fK(Iy):dK,pK=hK;const mK=Ht(pK);function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ji.apply(this,arguments)}var Ca=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],gK={millisecond:[],second:Ca.slice(0,1),minute:Ca.slice(0,2),hour:Ca.slice(0,3),day:Ca.slice(0,4),month:Ca.slice(0,5),year:Ca.slice(0,6)},vK=function(e){return function(t){return gK[e].forEach(function(n){n(t)}),t}},q3=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=vK(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return s(c);var l=o?O4(n):k4(n);return s(l(c))}},yK=function(e,t,n,r){var i,a,o,s,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,g=e.reverse,p=g!==void 0&&g,v=e.clamp,w=v!==void 0&&v,_=e.nice,x=_!==void 0&&_;l==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=l,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var T=Jw().rangeRound(r==="x"?[0,n]:[n,0]).domain(p?[o,i]:[i,o]).clamp(w);return x===!0?T.nice():typeof x=="number"&&T.nice(x),bK(T,h)},bK=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},xK=function(e,t,n){var r=sB().range([0,n]).domain(t.all);return r.type="point",r},_K=function(e,t,n,r){var i=e.round,a=i===void 0||i,o=ng().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return wK(o)},wK=function(e){var t=e;return t.type="band",t},CK=function(e,t,n){var r,i,a=e.format,o=a===void 0?"native":a,s=e.precision,c=s===void 0?"millisecond":s,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,g=h===void 0||h,p=e.nice,v=p!==void 0&&p,w=q3({format:o,precision:c,useUTC:g});r=u==="auto"?w(t.min):o!=="native"?w(u):u,i=f==="auto"?w(t.max):o!=="native"?w(f):f;var _=g?QU():XU();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var x=_;return x.type="time",x.useUTC=g,x},TK=function(e,t,n,r){var i,a=e.base,o=a===void 0?10:a,s=e.min,c=s===void 0?"auto":s,l=e.max,u=l===void 0?"auto":l;if(t.all.some(function(p){return p===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(p){return p!=null}).forEach(function(p){h||(i===void 0?i=Math.sign(p):Math.sign(p)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=t4().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return g.type="log",g},SK=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?1:o,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=l==="auto"?t.min:l,a=d==="auto"?t.max:d;var g=n4().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?g.domain([a,i]):g.domain([i,a]);var p=g;return p.type="symlog",p},kK=function(e){return e==="x"?"y":"x"},EK=function(e,t){return e===t},OK=function(e,t){return e.getTime()===t.getTime()};function Vs(e,t,n,r){switch(e.type){case"linear":return yK(e,t,n,r);case"point":return xK(e,t,n);case"band":return _K(e,t,n,r);case"time":return CK(e,t,n);case"log":return TK(e,t,n,r);case"symlog":return SK(e,t,n,r);default:throw new Error("invalid scale spec")}}var Dy=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},MK=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return ji({},d,{data:d.data.map(function(f){return{data:ji({},f)}})})}(u)}),o=$K(a,t,n);"stacked"in t&&t.stacked===!0&&AK(o,a),"stacked"in n&&n.stacked===!0&&RK(o,a);var s=Vs(t,o.x,r,"x"),c=Vs(n,o.y,i,"y"),l=a.map(function(u){return ji({},u,{data:u.data.map(function(d){return ji({},d,{position:{x:Dy(d,"x",s),y:Dy(d,"y",c)}})})})});return ji({},o,{series:l,xScale:s,yScale:c})},$K=function(e,t,n){return{x:Ny(e,"x",t),y:Ny(e,"y",n)}},Ny=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(g){return g.data[t]}:a,s=i.setValue,c=s===void 0?function(g,p){g.data[t]=p}:s;if(n.type==="linear")e.forEach(function(g){g.data.forEach(function(p){var v=o(p);v&&c(p,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var l=q3(n);e.forEach(function(g){g.data.forEach(function(p){var v=o(p);v&&c(p,l(v))})})}var u=[];switch(e.forEach(function(g){g.data.forEach(function(p){u.push(o(p))})}),n.type){case"linear":var d=aK(Ay(u).filter(function(g){return g!==null}),function(g){return g});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=dp(u,function(g){return g.getTime()}).slice(0).sort(function(g,p){return p.getTime()-g.getTime()}).reverse();return{all:f,min:f[0],max:Me(f)};default:var h=Ay(u);return{all:h,min:h[0],max:Me(h)}}},Y3=function(e,t,n){var r=kK(e),i=[];t[r].all.forEach(function(a){var o=mK(a)?OK:EK,s=[];n.forEach(function(c){var l=c.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(l!==void 0){if((u=l.data[e])!==null){var f=Me(s);f===void 0?d=u:f!==null&&(d=f+u)}l.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},AK=function(e,t){return Y3("x",e,t)},RK=function(e,t){return Y3("y",e,t)},G3=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},Z3={millisecond:[Us,Us],second:[Xh,Xh],minute:[c4,m4],hour:[l4,g4],day:[en(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),en(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[Yl,Gl],sunday:[Yl,Gl],monday:[Ws,zs],tuesday:[u4,v4],wednesday:[d4,y4],thursday:[ra,ia],friday:[f4,b4],saturday:[h4,x4],month:[p4,_4],year:[yi,bi]},jK=Object.keys(Z3),PK=new RegExp("^every\\s*(\\d+)?\\s*("+jK.join("|")+")s?$","i"),K3=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(PK);if(n){var r=n[1],i=n[2],a=Z3[i][e.useUTC?1:0];if(i==="day"){var o,s,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(l,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}var X3=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=K3(r,a),h=Kq[d],g="bandwidth"in r?G3(r):r,p={lineX:0,lineY:0},v={textX:0,textY:0},w=typeof document=="object"&&document.dir==="rtl",_=h.align.center,x=h.baseline.center;return n==="x"?(t=function(T){var b;return{x:(b=g(T))!=null?b:0,y:0}},p.lineY=o*(i==="after"?1:-1),v.textY=(o+s)*(i==="after"?1:-1),x=i==="after"?h.baseline.top:h.baseline.bottom,c===0?_=h.align.center:i==="after"&&c<0||i==="before"&&c>0?(_=h.align[w?"left":"right"],x=h.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(_=h.align[w?"right":"left"],x=h.baseline.center)):(t=function(T){var b;return{x:0,y:(b=g(T))!=null?b:0}},p.lineX=o*(i==="after"?1:-1),v.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(T){var b=typeof T=="string"?function(S){var R=String(S).length;return l&&l>0&&R>l?""+String(S).slice(0,l).concat("..."):""+S}(T):T;return Gn({key:T instanceof Date?""+T.valueOf():""+T,value:b},t(T),p,v)}),textAlign:_,textBaseline:x}},Q3=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=sd(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return fc(e)},fp=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||K3(i,o)),c="bandwidth"in i?G3(i):i,l=a==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}});return l},IK=m.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=Tt(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,g=m.useMemo(function(){var p={opacity:l.opacity};return o?{style:Gn({},p,{cursor:"pointer"}),onClick:function(v){return o(v,h)}}:{style:p}},[l.opacity,o,h]);return y.jsxs(Ct.g,Gn({transform:l.transform},g,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:d}),f.outlineWidth>0&&y.jsx(Ct.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),y.jsx(Ct.text,{dominantBaseline:s,textAnchor:c,transform:l.textTransform,style:Pg(f),children:""+h})]}))}),DK=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,g=e.tickRotation,p=g===void 0?0:g,v=e.format,w=e.renderTick,_=w===void 0?IK:w,x=e.truncateTickAt,T=e.legend,b=e.legendPosition,S=b===void 0?"end":b,R=e.legendOffset,M=R===void 0?0:R,k=e.onClick,E=e.ariaHidden,C=Tt(),O=C.axis.legend.text,$=m.useMemo(function(){return Q3(v,n)},[v,n]),A=X3({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:h,tickRotation:p,truncateTickAt:x}),P=A.ticks,D=A.textAlign,F=A.textBaseline,q=null;if(T!==void 0){var z,U=0,G=0,ee=0;t==="y"?(ee=-90,U=M,S==="start"?(z="start",G=s):S==="middle"?(z="middle",G=s/2):S==="end"&&(z="end")):(G=M,S==="start"?z="start":S==="middle"?(z="middle",U=s/2):S==="end"&&(z="end",U=s)),q=y.jsxs(y.Fragment,{children:[O.outlineWidth>0&&y.jsx("text",{transform:"translate("+U+", "+G+") rotate("+ee+")",textAnchor:z,style:Gn({dominantBaseline:"central"},O),strokeWidth:2*O.outlineWidth,stroke:O.outlineColor,strokeLinejoin:"round",children:T}),y.jsx("text",{transform:"translate("+U+", "+G+") rotate("+ee+")",textAnchor:z,style:Gn({dominantBaseline:"central"},O),children:T})]})}var ie=kn(),J=ie.animate,X=ie.config,K=Sr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:X,immediate:!J}),re=m.useCallback(function(L){return{opacity:1,transform:"translate("+L.x+","+L.y+")",textTransform:"translate("+L.textX+","+L.textY+") rotate("+p+")"}},[p]),N=m.useCallback(function(L){return{opacity:0,transform:"translate("+L.x+","+L.y+")",textTransform:"translate("+L.textX+","+L.textY+") rotate("+p+")"}},[p]),I=sa(P,{keys:function(L){return L.key},initial:re,from:N,enter:re,update:re,leave:{opacity:0},config:X,immediate:!J});return y.jsxs(Ct.g,{transform:K.transform,"aria-hidden":E,children:[I(function(L,V,j,Z){return ue.createElement(_,Gn({tickIndex:Z,format:$,rotate:p,textBaseline:F,textAnchor:D,truncateTickAt:x,animatedProps:L},V,k?{onClick:k}:{}))}),y.jsx(Ct.line,{style:C.axis.domain.line,x1:0,x2:K.lineX2,y1:0,y2:K.lineY2}),q]})},NK=m.memo(DK),J3=["top","right","bottom","left"],eC=m.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:J3.map(function(o){var s=a[o];if(!s)return null;var c=o==="top"||o==="bottom";return y.jsx(NK,Gn({},s,{axis:c?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),LK=m.memo(function(e){var t=e.animatedProps,n=Tt();return y.jsx(Ct.line,Gn({},t,n.grid.line))}),Ly=m.memo(function(e){var t=e.lines,n=kn(),r=n.animate,i=n.config,a=sa(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return y.jsx("g",{children:a(function(o,s){return m.createElement(LK,Gn({},s,{key:s.key,animatedProps:o}))})})}),tC=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=m.useMemo(function(){return!!r&&fp({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),c=m.useMemo(function(){return!!i&&fp({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Ly,{lines:s}),c&&y.jsx(Ly,{lines:c})]})}),FK=function(e,t){var n,r=t.axis,i=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,c=s===void 0?0:s,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,g=t.tickPadding,p=g===void 0?5:g,v=t.tickRotation,w=v===void 0?0:v,_=t.format,x=t.legend,T=t.legendPosition,b=T===void 0?"end":T,S=t.legendOffset,R=S===void 0?0:S,M=t.theme,k=X3({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:p,tickRotation:w,engine:"canvas"}),E=k.ticks,C=k.textAlign,O=k.textBaseline;e.save(),e.translate(o,c),e.textAlign=C,e.textBaseline=O;var $=M.axis.ticks.text;e.font=($.fontWeight?$.fontWeight+" ":"")+$.fontSize+"px "+$.fontFamily,((n=M.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(M.axis.domain.line.strokeWidth),e.lineCap="square",M.axis.domain.line.stroke&&(e.strokeStyle=M.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var A=typeof _=="function"?_:function(z){return""+z};if(E.forEach(function(z){var U;((U=M.axis.ticks.line.strokeWidth)!=null?U:0)>0&&(e.lineWidth=Number(M.axis.ticks.line.strokeWidth),e.lineCap="square",M.axis.ticks.line.stroke&&(e.strokeStyle=M.axis.ticks.line.stroke),e.beginPath(),e.moveTo(z.x,z.y),e.lineTo(z.x+z.lineX,z.y+z.lineY),e.stroke());var G=A(z.value);e.save(),e.translate(z.x+z.textX,z.y+z.textY),e.rotate(Yn(w)),$.outlineWidth>0&&(e.strokeStyle=$.outlineColor,e.lineWidth=2*$.outlineWidth,e.lineJoin="round",e.strokeText(""+G,0,0)),M.axis.ticks.text.fill&&(e.fillStyle=$.fill),e.fillText(""+G,0,0),e.restore()}),x!==void 0){var P=0,D=0,F=0,q="center";r==="y"?(F=-90,P=R,b==="start"?(q="start",D=l):b==="middle"?(q="center",D=l/2):b==="end"&&(q="end")):(D=R,b==="start"?q="start":b==="middle"?(q="center",P=l/2):b==="end"&&(q="end",P=l)),e.translate(P,D),e.rotate(Yn(F)),e.font=(M.axis.legend.text.fontWeight?M.axis.legend.text.fontWeight+" ":"")+M.axis.legend.text.fontSize+"px "+M.axis.legend.text.fontFamily,M.axis.legend.text.fill&&(e.fillStyle=M.axis.legend.text.fill),e.textAlign=q,e.textBaseline="middle",e.fillText(x,0,0)}e.restore()},nC=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};J3.forEach(function(f){var h=d[f];if(!h)return null;var g=f==="top"||f==="bottom",p=f==="top"||f==="left"?"before":"after",v=g?n:r,w=Q3(h.format,v);FK(e,Gn({},h,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:v,format:w,length:g?i:a,ticksPosition:p,theme:u}))})},tu=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;fp({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},BK=Lw,UK=0;function WK(e){var t=++UK;return BK(e)+t}var zK=WK;const HK=Ht(zK),Br=11102230246251565e-32,pn=134217729,VK=(3+8*Br)*Br;function zf(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function qK(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function gc(e){return new Float64Array(e)}const YK=(3+16*Br)*Br,GK=(2+12*Br)*Br,ZK=(9+64*Br)*Br*Br,Ta=gc(4),Fy=gc(8),By=gc(12),Uy=gc(16),bn=gc(4);function KK(e,t,n,r,i,a,o){let s,c,l,u,d,f,h,g,p,v,w,_,x,T,b,S,R,M;const k=e-i,E=n-i,C=t-a,O=r-a;T=k*O,f=pn*k,h=f-(f-k),g=k-h,f=pn*O,p=f-(f-O),v=O-p,b=g*v-(T-h*p-g*p-h*v),S=C*E,f=pn*C,h=f-(f-C),g=C-h,f=pn*E,p=f-(f-E),v=E-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,Ta[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,Ta[1]=x-(w+d)+(d-S),M=_+w,d=M-_,Ta[2]=_-(M-d)+(w-d),Ta[3]=M;let $=qK(4,Ta),A=GK*o;if($>=A||-$>=A||(d=e-k,s=e-(k+d)+(d-i),d=n-E,l=n-(E+d)+(d-i),d=t-C,c=t-(C+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(A=ZK*o+VK*Math.abs($),$+=k*u+O*s-(C*l+E*c),$>=A||-$>=A))return $;T=s*O,f=pn*s,h=f-(f-s),g=s-h,f=pn*O,p=f-(f-O),v=O-p,b=g*v-(T-h*p-g*p-h*v),S=c*E,f=pn*c,h=f-(f-c),g=c-h,f=pn*E,p=f-(f-E),v=E-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const P=zf(4,Ta,4,bn,Fy);T=k*u,f=pn*k,h=f-(f-k),g=k-h,f=pn*u,p=f-(f-u),v=u-p,b=g*v-(T-h*p-g*p-h*v),S=C*l,f=pn*C,h=f-(f-C),g=C-h,f=pn*l,p=f-(f-l),v=l-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const D=zf(P,Fy,4,bn,By);T=s*u,f=pn*s,h=f-(f-s),g=s-h,f=pn*u,p=f-(f-u),v=u-p,b=g*v-(T-h*p-g*p-h*v),S=c*l,f=pn*c,h=f-(f-c),g=c-h,f=pn*l,p=f-(f-l),v=l-p,R=g*v-(S-h*p-g*p-h*v),w=b-R,d=b-w,bn[0]=b-(w+d)+(d-R),_=T+w,d=_-T,x=T-(_-d)+(w-d),w=x-S,d=x-w,bn[1]=x-(w+d)+(d-S),M=_+w,d=M-_,bn[2]=_-(M-d)+(w-d),bn[3]=M;const F=zf(D,By,4,bn,Uy);return Uy[F-1]}function Hc(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=YK*l?c:-KK(e,t,n,r,i,a,l)}const Wy=Math.pow(2,-52),Vc=new Uint32Array(512);class nu{static from(t,n=tX,r=nX){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new nu(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let k=0;k<o;k++){const E=t[2*k],C=t[2*k+1];E<s&&(s=E),C<c&&(c=C),E>l&&(l=E),C>u&&(u=C),this._ids[k]=k}const d=(s+l)/2,f=(c+u)/2;let h,g,p;for(let k=0,E=1/0;k<o;k++){const C=Hf(d,f,t[2*k],t[2*k+1]);C<E&&(h=k,E=C)}const v=t[2*h],w=t[2*h+1];for(let k=0,E=1/0;k<o;k++){if(k===h)continue;const C=Hf(v,w,t[2*k],t[2*k+1]);C<E&&C>0&&(g=k,E=C)}let _=t[2*g],x=t[2*g+1],T=1/0;for(let k=0;k<o;k++){if(k===h||k===g)continue;const E=JK(v,w,_,x,t[2*k],t[2*k+1]);E<T&&(p=k,T=E)}let b=t[2*p],S=t[2*p+1];if(T===1/0){for(let C=0;C<o;C++)this._dists[C]=t[2*C]-t[0]||t[2*C+1]-t[1];Aa(this._ids,this._dists,0,o-1);const k=new Uint32Array(o);let E=0;for(let C=0,O=-1/0;C<o;C++){const $=this._ids[C],A=this._dists[$];A>O&&(k[E++]=$,O=A)}this.hull=k.subarray(0,E),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Hc(v,w,_,x,b,S)<0){const k=g,E=_,C=x;g=p,_=b,x=S,p=k,b=E,S=C}const R=eX(v,w,_,x,b,S);this._cx=R.x,this._cy=R.y;for(let k=0;k<o;k++)this._dists[k]=Hf(t[2*k],t[2*k+1],R.x,R.y);Aa(this._ids,this._dists,0,o-1),this._hullStart=h;let M=3;r[h]=n[p]=g,r[g]=n[h]=p,r[p]=n[g]=h,i[h]=0,i[g]=1,i[p]=2,a.fill(-1),a[this._hashKey(v,w)]=h,a[this._hashKey(_,x)]=g,a[this._hashKey(b,S)]=p,this.trianglesLen=0,this._addTriangle(h,g,p,-1,-1,-1);for(let k=0,E,C;k<this._ids.length;k++){const O=this._ids[k],$=t[2*O],A=t[2*O+1];if(k>0&&Math.abs($-E)<=Wy&&Math.abs(A-C)<=Wy||(E=$,C=A,O===h||O===g||O===p))continue;let P=0;for(let U=0,G=this._hashKey($,A);U<this._hashSize&&(P=a[(G+U)%this._hashSize],!(P!==-1&&P!==r[P]));U++);P=n[P];let D=P,F;for(;F=r[D],Hc($,A,t[2*D],t[2*D+1],t[2*F],t[2*F+1])>=0;)if(D=F,D===P){D=-1;break}if(D===-1)continue;let q=this._addTriangle(D,O,r[D],-1,-1,i[D]);i[O]=this._legalize(q+2),i[D]=q,M++;let z=r[D];for(;F=r[z],Hc($,A,t[2*z],t[2*z+1],t[2*F],t[2*F+1])<0;)q=this._addTriangle(z,O,F,i[O],-1,i[z]),i[O]=this._legalize(q+2),r[z]=z,M--,z=F;if(D===P)for(;F=n[D],Hc($,A,t[2*F],t[2*F+1],t[2*D],t[2*D+1])<0;)q=this._addTriangle(F,O,D,-1,i[D],i[F]),this._legalize(q+2),i[F]=q,r[D]=D,M--,D=F;this._hullStart=n[O]=D,r[D]=n[z]=O,r[O]=z,a[this._hashKey($,A)]=O,a[this._hashKey(t[2*D],t[2*D+1])]=D}this.hull=new Uint32Array(M);for(let k=0,E=this._hullStart;k<M;k++)this.hull[k]=E,E=r[E];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(XK(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],c=t-t%3;if(o=c+(t+2)%3,s===-1){if(a===0)break;t=Vc[--a];continue}const l=s-s%3,u=c+(t+1)%3,d=l+(s+2)%3,f=n[o],h=n[t],g=n[u],p=n[d];if(QK(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*g],i[2*g+1],i[2*p],i[2*p+1])){n[t]=p,n[s]=f;const w=r[d];if(w===-1){let x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,w),this._link(s,r[o]),this._link(o,d);const _=l+(s+1)%3;a<Vc.length&&(Vc[a++]=_)}else{if(a===0)break;t=Vc[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function XK(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Hf(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function QK(e,t,n,r,i,a,o,s){const c=e-o,l=t-s,u=n-o,d=r-s,f=i-o,h=a-s,g=c*c+l*l,p=u*u+d*d,v=f*f+h*h;return c*(d*v-p*h)-l*(u*v-p*f)+g*(u*h-d*f)<0}function JK(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=(l*u-s*d)*f,g=(o*d-c*u)*f;return h*h+g*g}function eX(e,t,n,r,i,a){const o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),h=e+(l*u-s*d)*f,g=t+(o*d-c*u)*f;return{x:h,y:g}}function Aa(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;Yo(e,i,a),t[e[n]]>t[e[r]]&&Yo(e,n,r),t[e[a]]>t[e[r]]&&Yo(e,a,r),t[e[n]]>t[e[a]]&&Yo(e,n,a);const s=e[a],c=t[s];for(;;){do a++;while(t[e[a]]<c);do o--;while(t[e[o]]>c);if(o<a)break;Yo(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Aa(e,t,a,r),Aa(e,t,n,o-1)):(Aa(e,t,n,o-1),Aa(e,t,a,r))}}function Yo(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tX(e){return e[0]}function nX(e){return e[1]}const zy=1e-6;class Bi{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>zy||Math.abs(this._y1-a)>zy)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class hp{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class rX{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,v=0,w=r.length,_,x;p<w;p+=3,v+=2){const T=r[p]*2,b=r[p+1]*2,S=r[p+2]*2,R=t[T],M=t[T+1],k=t[b],E=t[b+1],C=t[S],O=t[S+1],$=k-R,A=E-M,P=C-R,D=O-M,F=($*D-A*P)*2;if(Math.abs(F)<1e-9){if(a===void 0){a=o=0;for(const z of n)a+=t[z*2],o+=t[z*2+1];a/=n.length,o/=n.length}const q=1e9*Math.sign((a-R)*D-(o-M)*P);_=(R+C)/2-q*D,x=(M+O)/2+q*P}else{const q=1/F,z=$*$+A*A,U=P*P+D*D;_=R+(D*z-A*U)*q,x=M+($*U-P*z)*q}s[v]=_,s[v+1]=x}let c=n[n.length-1],l,u=c*4,d,f=t[2*c],h,g=t[2*c+1];i.fill(0);for(let p=0;p<n.length;++p)c=n[p],l=u,d=f,h=g,u=c*4,f=t[2*c],g=t[2*c+1],i[l+2]=i[u]=h-g,i[l+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Bi:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,g=Math.floor(f/3)*2,p=o[h],v=o[h+1],w=o[g],_=o[g+1];this._renderSegment(p,v,w,_,t)}let c,l=a[a.length-1];for(let u=0;u<a.length;++u){c=l,l=a[u];const d=Math.floor(i[l]/3)*2,f=o[d],h=o[d+1],g=c*4,p=this._project(f,h,s[g+2],s[g+3]);p&&this._renderSegment(f,h,p[0],p[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Bi:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Bi:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new hp;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),c=this._regioncode(r,i);s===0&&c===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,c))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,c=i.length;s<c;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+c-2)%c]&&n[(a+3)%o]===i[(s+c-1)%c]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let c=o;do{const l=Math.floor(c/3);if(s.push(n[l*2],n[l*2+1]),c=c%3===2?c-2:c+1,a[c]!==t)break;c=i[c]}while(c!==o&&c!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],c=n[r-1],l,u=this._regioncode(s,c),d,f=0;for(let h=0;h<r;h+=2)if(a=s,o=c,s=n[h],c=n[h+1],l=u,u=this._regioncode(s,c),l===0&&u===0)d=f,f=0,i?i.push(s,c):i=[s,c];else{let g,p,v,w,_;if(l===0){if((g=this._clipSegment(a,o,s,c,l,u))===null)continue;[p,v,w,_]=g}else{if((g=this._clipSegment(s,c,a,o,u,l))===null)continue;[w,_,p,v]=g,d=f,f=this._edgecode(p,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(p,v):i=[p,v]}d=f,f=this._edgecode(w,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(w,_):i=[w,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let c,l,u=a||o;u&8?(c=t+(r-t)*(this.ymax-n)/(i-n),l=this.ymax):u&4?(c=t+(r-t)*(this.ymin-n)/(i-n),l=this.ymin):u&2?(l=n+(i-n)*(this.xmax-t)/(r-t),c=this.xmax):(l=n+(i-n)*(this.xmin-t)/(r-t),c=this.xmin),a?(t=c,n=l,a=this._regioncode(t,n)):(r=c,i=l,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),c;if((c=this._project(s[0],s[1],r,i))&&s.unshift(c[0],c[1]),(c=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(c[0],c[1]),s=this._clipFinite(t,s))for(let l=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);l<u;l+=2)d=f,f=this._edgecode(s[l],s[l+1]),d&&f&&(l=this._edge(t,d,f,s,l),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,c;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(c=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(c=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,c=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,c=n+(a=o)*i)}return[s,c]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const iX=2*Math.PI,Sa=Math.pow;function aX(e){return e[0]}function oX(e){return e[1]}function sX(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function cX(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Bg{static from(t,n=aX,r=oX,i){return new Bg("length"in t?lX(t,n,r,i):Float64Array.from(uX(t,n,r,i)))}constructor(t){this._delaunator=new nu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&sX(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const c=this.collinear[0],l=this.collinear[this.collinear.length-1],u=[n[2*c],n[2*c+1],n[2*l],n[2*l+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const g=cX(n[2*f],n[2*f+1],d);n[2*f]=g[0],n[2*f+1]=g[1]}this._delaunator=new nu(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let c=0,l=r.length;c<l;++c){const u=a[c%3===2?c-2:c+1];(r[c]===-1||o[u]===-1)&&(o[u]=c)}for(let c=0,l=i.length;c<l;++c)s[i[c]]=c;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new rX(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const c=n[t];if(c===-1)return;let l=c,u=-1;do{if(yield u=o[l],l=l%3===2?l-2:l+1,o[l]!==t)return;if(l=a[l],l===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(l!==c)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:c,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t,d=Sa(n-l[t*2],2)+Sa(r-l[t*2+1],2);const f=i[t];let h=f;do{let g=c[h];const p=Sa(n-l[g*2],2)+Sa(r-l[g*2+1],2);if(p<d&&(d=p,u=g),h=h%3===2?h-2:h+1,c[h]!==t)break;if(h=s[h],h===-1){if(h=a[(o[t]+1)%a.length],h!==g&&Sa(n-l[h*2],2)+Sa(r-l[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Bi:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const c=i[o];if(c<o)continue;const l=a[o]*2,u=a[c]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Bi:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],c=i[a+1];t.moveTo(s+n,c),t.arc(s,c,n,0,iX)}return r&&r.value()}renderHull(t){const n=t==null?t=new Bi:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const c=2*r[s];t.lineTo(i[c],i[c+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new hp;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Bi:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,c=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[c],i[c+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new hp;return this.renderTriangle(t,n),n.value()}}function lX(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*uX(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var Ug=function(e){return[e.x,e.y]},vc=m3,rC="cursor",iC="top",dX=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Ug:n,i=e.margin,a=i===void 0?vc:i;return t.map(function(o){var s=r(o),c=s[0],l=s[1];return[c+a.left,l+a.top]})},fX=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?vc:i,o=e.debug,s=Bg.from(t),c=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:c}},aC=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Ug:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?vc:o,c=e.debug;return m.useMemo(function(){return fX({points:dX({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:c})},[t,i,a,s,c])},hX=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Ug:r,a=e.delaunay,o=e.setCurrent,s=e.margin,c=s===void 0?vc:s,l=e.detectionRadius,u=l===void 0?1/0:l,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,g=e.onMouseMove,p=e.onMouseLeave,v=e.onClick,w=e.onTouchStart,_=e.onTouchMove,x=e.onTouchEnd,T=e.enableTouchCrosshair,b=T!==void 0&&T,S=e.tooltip,R=e.tooltipPosition,M=R===void 0?rC:R,k=e.tooltipAnchor,E=k===void 0?iC:k,C=m.useState(null),O=C[0],$=C[1],A=m.useRef(null);m.useEffect(function(){A.current=O},[A,O]);var P=m.useCallback(function(N){if(!t.current)return null;var I=os(t.current,N),L=I[0],V=I[1],j=a.find(L,V),Z=j!==void 0?n[j]:null;if(Z&&u!==1/0){var Q=i(Z),te=Q[0],he=Q[1];iY(L,V,te+c.left,he+c.top)>u&&(j=null,Z=null)}return j===null||Z===null?null:[j,Z]},[t,a,n,i,c,u]),D=ca(),F=D.showTooltipAt,q=D.showTooltipFromEvent,z=D.hideTooltip,U=m.useMemo(function(){if(S)return M==="cursor"?function(N,I){q(S(N),I,E)}:function(N){var I=i(N),L=I[0],V=I[1];F(S(N),[L+c.left,V+c.top],E)}},[F,q,S,M,E,i,c]),G=m.useCallback(function(N){var I=P(N);if($(I),o==null||o(I?I[1]:null),I){var L=I[1];U==null||U(L,N),h==null||h(I[1],N)}},[P,$,o,U,h]),ee=m.useCallback(function(N){var I=P(N);if($(I),I){var L=I[0],V=I[1];if(o==null||o(V),U==null||U(V,N),A.current){var j=A.current,Z=j[0],Q=j[1];L!==Z?p==null||p(Q,N):g==null||g(V,N)}else h==null||h(V,N)}else o==null||o(null),z==null||z(),A.current&&(p==null||p(A.current[1],N))},[P,$,A,h,g,p,U,z]),ie=m.useCallback(function(N){$(null),o==null||o(null),z(),p&&A.current&&p(A.current[1],N)},[$,o,A,z,p]),J=m.useCallback(function(N){var I=P(N);$(I),I&&(v==null||v(I[1],N))},[P,$,v]),X=m.useCallback(function(N){var I=P(N);b&&($(I),o==null||o(I?I[1]:null)),I&&(w==null||w(I[1],N))},[P,$,o,b,w]),K=m.useCallback(function(N){var I=P(N);b&&($(I),o==null||o(I?I[1]:null)),I&&(_==null||_(I[1],N))},[P,$,o,b,_]),re=m.useCallback(function(N){b&&($(null),o==null||o(null)),x&&A.current&&x(A.current[1],N)},[b,$,o,x,A]);return{current:O,handleMouseEnter:f?G:void 0,handleMouseMove:f?ee:void 0,handleMouseLeave:f?ie:void 0,handleClick:f?J:void 0,handleTouchStart:f?X:void 0,handleTouchMove:f?K:void 0,handleTouchEnd:f?re:void 0}},pX=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?vc:i,o=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=e.enableTouchCrosshair,v=p!==void 0&&p,w=e.detectionRadius,_=w===void 0?1/0:w,x=e.tooltip,T=e.tooltipPosition,b=T===void 0?rC:T,S=e.tooltipAnchor,R=S===void 0?iC:S,M=e.debug,k=m.useRef(null),E=aC({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:M}),C=E.delaunay,O=E.voronoi,$=hX({elementRef:k,nodes:t,delaunay:C,margin:a,detectionRadius:_,setCurrent:s,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g,enableTouchCrosshair:v,tooltip:x,tooltipPosition:b,tooltipAnchor:R}),A=$.current,P=$.handleMouseEnter,D=$.handleMouseMove,F=$.handleMouseLeave,q=$.handleClick,z=$.handleTouchStart,U=$.handleTouchMove,G=$.handleTouchEnd,ee=m.useMemo(function(){if(M&&O)return O.render()},[M,O]);return y.jsxs("g",{ref:k,transform:"translate("+-a.left+","+-a.top+")",children:[M&&O&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:ee,stroke:"red",strokeWidth:1,opacity:.75}),_<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:C.renderPoints(void 0,_)}),A&&y.jsx("path",{fill:"pink",opacity:.35,d:O.renderCell(A[0])})]}),y.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:P,onMouseMove:D,onMouseLeave:F,onTouchStart:z,onTouchMove:U,onTouchEnd:G,onClick:q})]})},mX=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},gX=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}var Wg=m.memo(function(e){var t=e.point;return y.jsx(Pm,{id:y.jsxs("span",{children:["x: ",y.jsx("strong",{children:t.data.xFormatted}),", y:"," ",y.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),oC=m.memo(function(e){var t=e.slice,n=e.axis,r=Tt(),i=n==="x"?"y":"x";return y.jsx(fw,{rows:t.points.map(function(a){return[y.jsx(dw,{color:a.serieColor,style:r.tooltip.chip},"chip"),a.serieId,y.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),sC={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:Wg,enableSlices:!1,debugSlices:!1,sliceTooltip:oC,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},ti=Cn({},sC,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});Cn({},sC,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var vX=function(e){var t=e.curve;return m.useMemo(function(){return Cg().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(p3(t))},[t])},yX=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return Iz().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(p3(t)).y0(n(r))},[t,n,r])},bX=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return m.useMemo(function(){if(n===!1)return[];if(n==="x"){var o=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(o.has(c.x)?o.get(c.x).push(c):o.set(c.x,[c]))}),Array.from(o.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],v=u[l+1];return d=p?h-(h-p[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:a,points:g.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(c){c.data.x!==null&&c.data.y!==null&&(s.has(c.y)?s.get(c.y).push(c):s.set(c.y,[c]))}),Array.from(s.entries()).sort(function(c,l){return c[0]-l[0]}).map(function(c,l,u){var d,f,h=c[0],g=c[1],p=u[l-1],v=u[l+1];return d=p?h-(h-p[0])/2:h,f=v?h-d+(v[0]-h)/2:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:g.reverse()}})}},[t,n,a,r,i])},xX="line",cC=function(e){var t=e.data,n=e.xScale,r=n===void 0?ti.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?ti.yScale:a,s=e.yFormat,c=e.width,l=e.height,u=e.colors,d=u===void 0?ti.colors:u,f=e.curve,h=f===void 0?ti.curve:f,g=e.areaBaselineValue,p=g===void 0?ti.areaBaselineValue:g,v=e.pointColor,w=v===void 0?ti.pointColor:v,_=e.pointBorderColor,x=_===void 0?ti.pointBorderColor:_,T=e.enableSlices,b=T===void 0?ti.enableSlicesTooltip:T,S=m.useState(HK(xX))[0],R=eo(i),M=eo(s),k=Dg(d,"id"),E=Tt(),C=wr(w,E),O=wr(x,E),$=m.useState([]),A=$[0],P=$[1],D=m.useMemo(function(){return MK(t.filter(function(K){return A.indexOf(K.id)===-1}),r,o,c,l)},[t,A,r,o,c,l]),F=D.xScale,q=D.yScale,z=D.series,U=m.useMemo(function(){var K=t.map(function(N){return{id:N.id,label:N.id,color:k(N)}}),re=K.map(function(N){return Cn({},z.find(function(I){return I.id===N.id}),{color:N.color})}).filter(function(N){return!!N.id});return{legendData:K.map(function(N){return Cn({},N,{hidden:!re.find(function(I){return I.id===N.id})})}).reverse(),series:re}},[t,z,k]),G=U.legendData,ee=U.series,ie=m.useCallback(function(K){P(function(re){return re.indexOf(K)>-1?re.filter(function(N){return N!==K}):[].concat(re,[K])})},[]),J=function(K){var re=K.series,N=K.getPointColor,I=K.getPointBorderColor,L=K.formatX,V=K.formatY;return m.useMemo(function(){return re.reduce(function(j,Z){return[].concat(j,Z.data.filter(function(Q){return Q.position.x!==null&&Q.position.y!==null}).map(function(Q,te){var he={id:Z.id+"."+te,index:j.length+te,serieId:Z.id,serieColor:Z.color,x:Q.position.x,y:Q.position.y};return he.color=N(Z),he.borderColor=I(he),he.data=Cn({},Q.data,{xFormatted:L(Q.data.x),yFormatted:V(Q.data.y)}),he}))},[])},[re,N,I,L,V])}({series:ee,getPointColor:C,getPointBorderColor:O,formatX:R,formatY:M}),X=bX({componentId:S,enableSlices:b,points:J,width:c,height:l});return{legendData:G,toggleSerie:ie,lineGenerator:vX({curve:h}),areaGenerator:yX({curve:h,yScale:q,areaBaselineValue:p}),getColor:k,series:ee,xScale:F,yScale:q,slices:X,points:J}},_X=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=kn(),s=o.animate,c=o.config,l=Rg(a),u=Sr({color:r,config:c,immediate:!s});return y.jsx(Ct.path,{d:l,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},wX=m.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return y.jsx("g",{children:i.map(function(a){return y.jsx(_X,Cn({path:t(a.data.map(function(o){return o.position}))},Cn({areaOpacity:n,areaBlendMode:r},a)),a.id)})})}),CX=m.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=m.useMemo(function(){return t(n)},[t,n]),o=Rg(a);return y.jsx(Ct.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),TX=m.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return y.jsx(CX,{id:a,points:o.map(function(c){return c.position}),lineGenerator:n,color:s,thickness:r},a)})}),SX=m.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd,p=ca(),v=p.showTooltipFromEvent,w=p.hideTooltip,_=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),s(t),c&&c(t,k)},[v,a,t,r,s,c]),x=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),l&&l(t,k)},[v,a,t,r,l]),T=m.useCallback(function(k){w(),s(null),u&&u(t,k)},[w,s,u,t]),b=m.useCallback(function(k){d&&d(t,k)},[t,d]),S=m.useCallback(function(k){v(m.createElement(a,{slice:t,axis:r}),k,"right"),s(t),f&&f(t,k)},[r,f,s,v,t,a]),R=m.useCallback(function(k){var E=k.touches[0],C=document.elementFromPoint(E.clientX,E.clientY),O=C==null?void 0:C.getAttribute("data-ref");if(O){var $=n.find(function(A){return A.id===O});$&&(v(m.createElement(a,{slice:$,axis:r}),k,"right"),s($))}h&&h(t,k)},[r,h,s,v,t,n,a]),M=m.useCallback(function(k){w(),s(null),g&&g(t,k)},[w,s,g,t]);return y.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:_,onMouseMove:x,onMouseLeave:T,onClick:b,onTouchStart:S,onTouchMove:R,onTouchEnd:M,"data-ref":t.id})}),kX=m.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,c=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,g=e.onTouchEnd;return t.map(function(p){return y.jsx(SX,{slice:p,slices:t,axis:n,debug:r,height:i,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===p.id,onMouseEnter:c,onMouseMove:l,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:g},p.id)})}),EX=m.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,c=Tt(),l=rY(o),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:a?l(d):null}});return y.jsx("g",{children:u.map(function(d){return y.jsx(eY,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:c},d.id)})})}),OX=m.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,l=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,g=e.debug,p=e.enableTouchCrosshair,v=ca(),w=v.showTooltipAt,_=v.hideTooltip,x=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),o&&o(E,C)},[w,h,o,i]),T=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),s&&s(E,C)},[w,h,i.left,i.top,s]),b=m.useCallback(function(E,C){_(),c&&c(E,C)},[_,c]),S=m.useCallback(function(E,C){l&&l(E,C)},[l]),R=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),u&&u(E,C)},[i.left,i.top,u,w,h]),M=m.useCallback(function(E,C){w(m.createElement(h,{point:E}),[E.x+i.left,E.y+i.top],"top"),d&&d(E,C)},[i.left,i.top,d,w,h]),k=m.useCallback(function(E,C){_(),f&&f(E,C)},[f,_]);return y.jsx(pX,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:x,onMouseMove:T,onMouseLeave:b,onClick:S,onTouchStart:R,onTouchMove:M,onTouchEnd:k,enableTouchCrosshair:p,debug:g})}),MX=M3(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,a=e.yScale,o=a===void 0?{type:"linear",min:0,max:"auto"}:a,s=e.yFormat,c=e.layers,l=c===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:c,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,g=e.colors,p=g===void 0?{scheme:"nivo"}:g,v=e.margin,w=e.width,_=e.height,x=e.axisTop,T=e.axisRight,b=e.axisBottom,S=b===void 0?{}:b,R=e.axisLeft,M=R===void 0?{}:R,k=e.enableGridX,E=k===void 0||k,C=e.enableGridY,O=C===void 0||C,$=e.gridXValues,A=e.gridYValues,P=e.lineWidth,D=P===void 0?2:P,F=e.enableArea,q=F!==void 0&&F,z=e.areaOpacity,U=z===void 0?.2:z,G=e.areaBlendMode,ee=G===void 0?"normal":G,ie=e.enablePoints,J=ie===void 0||ie,X=e.pointSymbol,K=e.pointSize,re=K===void 0?6:K,N=e.pointColor,I=N===void 0?{from:"color"}:N,L=e.pointBorderWidth,V=L===void 0?0:L,j=e.pointBorderColor,Z=j===void 0?{theme:"background"}:j,Q=e.enablePointLabel,te=Q!==void 0&&Q,he=e.pointLabel,we=he===void 0?"data.yFormatted":he,me=e.pointLabelYOffset,Ue=e.defs,Ae=Ue===void 0?[]:Ue,Ve=e.fill,Ke=Ve===void 0?[]:Ve,st=e.markers,pe=e.legends,Te=pe===void 0?[]:pe,ve=e.isInteractive,Ne=ve===void 0||ve,nt=e.useMesh,Et=nt!==void 0&&nt,rt=e.debugMesh,ot=rt!==void 0&&rt,pt=e.onMouseEnter,It=e.onMouseMove,ct=e.onMouseLeave,dt=e.onClick,mt=e.onTouchStart,Wt=e.onTouchMove,De=e.onTouchEnd,Re=e.tooltip,qe=Re===void 0?Wg:Re,lt=e.enableSlices,gt=lt!==void 0&&lt,St=e.debugSlices,Vt=St!==void 0&&St,Rt=e.sliceTooltip,Dt=Rt===void 0?oC:Rt,qt=e.enableCrosshair,vt=qt===void 0||qt,Yt=e.crosshairType,rn=Yt===void 0?"bottom-left":Yt,Jt=e.enableTouchCrosshair,ye=Jt!==void 0&&Jt,Ee=e.role,je=Ee===void 0?"img":Ee,Ye=pc(w,_,v),We=Ye.margin,ft=Ye.innerWidth,W=Ye.innerHeight,ce=Ye.outerWidth,ae=Ye.outerHeight,se=cC({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ft,height:W,colors:p,curve:d,areaBaselineValue:h,pointColor:I,pointBorderColor:Z,enableSlices:gt}),be=se.legendData,Oe=se.toggleSerie,xe=se.lineGenerator,ke=se.areaGenerator,Le=se.series,Pe=se.xScale,Xe=se.yScale,zt=se.slices,Ot=se.points,Xt=Tt(),ge=wr(I,Xt),ln=wr(Z,Xt),Mt=m.useState(null),Jn=Mt[0],yc=Mt[1],er=m.useState(null),Ti=er[0],bc=er[1],Or={grid:y.jsx(tC,{theme:Xt,width:ft,height:W,xScale:E?Pe:null,yScale:O?Xe:null,xValues:$,yValues:A},"grid"),markers:y.jsx(O3,{markers:st,width:ft,height:W,xScale:Pe,yScale:Xe,theme:Xt},"markers"),axes:y.jsx(eC,{xScale:Pe,yScale:Xe,width:ft,height:W,theme:Xt,top:x,right:T,bottom:S,left:M},"axes"),areas:null,lines:y.jsx(TX,{lines:Le,lineGenerator:xe,lineWidth:D},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:Te.map(function(Mr,To){return y.jsx(Lg,Cn({},Mr,{containerWidth:ft,containerHeight:W,data:Mr.data||be,theme:Xt,toggleSerie:Mr.toggleSerie?Oe:void 0}),"legend."+To)})},qd=Ig(Ae,Le,Ke);return q&&(Or.areas=y.jsx(wX,{areaGenerator:ke,areaOpacity:U,areaBlendMode:ee,lines:Le},"areas")),Ne&&gt!==!1&&(Or.slices=y.jsx(kX,{slices:zt,axis:gt,debug:Vt,height:W,tooltip:Dt,current:Ti,setCurrent:bc,onMouseEnter:pt,onMouseMove:It,onMouseLeave:ct,onClick:dt,onTouchStart:mt,onTouchMove:Wt,onTouchEnd:De},"slices")),J&&(Or.points=y.jsx(EX,{points:Ot,symbol:X,size:re,color:ge,borderWidth:V,borderColor:ln,enableLabel:te,label:we,labelYOffset:me},"points")),Ne&&vt&&(Jn!==null&&(Or.crosshair=y.jsx(Hh,{width:ft,height:W,x:Jn.x,y:Jn.y,type:rn},"crosshair")),Ti!==null&&(Or.crosshair=y.jsx(Hh,{width:ft,height:W,x:Ti.x,y:Ti.y,type:gt},"crosshair"))),Ne&&Et&&gt===!1&&(Or.mesh=y.jsx(OX,{points:Ot,width:ft,height:W,margin:We,current:Jn,setCurrent:yc,onMouseEnter:pt,onMouseMove:It,onMouseLeave:ct,onClick:dt,onTouchStart:mt,onTouchMove:Wt,onTouchEnd:De,tooltip:qe,enableTouchCrosshair:ye,debug:ot},"mesh")),y.jsx(Wd,{defs:qd,width:ce,height:ae,margin:We,role:je,children:l.map(function(Mr,To){return typeof Mr=="function"?y.jsx(m.Fragment,{children:Mr(Cn({},e,{innerWidth:ft,innerHeight:W,series:Le,slices:zt,points:Ot,xScale:Pe,yScale:Xe,lineGenerator:xe,areaGenerator:ke,currentPoint:Jn,setCurrentPoint:yc,currentSlice:Ti,setCurrentSlice:bc}))},To):Or[Mr]})})}),$X=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(MX,Cn({width:n,height:r},e))}})},AX=M3(function(e){var t=m.useRef(null),n=e.width,r=e.height,i=e.margin,a=e.pixelRatio,o=a===void 0?typeof window<"u"&&window.devicePixelRatio||1:a,s=e.data,c=e.xScale,l=c===void 0?{type:"point"}:c,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,g=e.curve,p=g===void 0?"linear":g,v=e.layers,w=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,_=e.colors,x=_===void 0?{scheme:"nivo"}:_,T=e.lineWidth,b=T===void 0?2:T,S=e.enableArea,R=S!==void 0&&S,M=e.areaBaselineValue,k=M===void 0?0:M,E=e.areaOpacity,C=E===void 0?.2:E,O=e.enablePoints,$=O===void 0||O,A=e.pointSize,P=A===void 0?6:A,D=e.pointColor,F=D===void 0?{from:"color"}:D,q=e.pointBorderWidth,z=q===void 0?0:q,U=e.pointBorderColor,G=U===void 0?{theme:"background"}:U,ee=e.enableGridX,ie=ee===void 0||ee,J=e.gridXValues,X=e.enableGridY,K=X===void 0||X,re=e.gridYValues,N=e.axisTop,I=e.axisRight,L=e.axisBottom,V=L===void 0?{}:L,j=e.axisLeft,Z=j===void 0?{}:j,Q=e.legends,te=Q===void 0?[]:Q,he=e.isInteractive,we=he===void 0||he,me=e.debugMesh,Ue=me!==void 0&&me,Ae=e.onMouseLeave,Ve=e.onClick,Ke=e.tooltip,st=Ke===void 0?Wg:Ke,pe=e.canvasRef,Te=pc(n,r,i),ve=Te.margin,Ne=Te.innerWidth,nt=Te.innerHeight,Et=Te.outerWidth,rt=Te.outerHeight,ot=Tt(),pt=m.useState(null),It=pt[0],ct=pt[1],dt=cC({data:s,xScale:l,xFormat:u,yScale:f,yFormat:h,width:Ne,height:nt,colors:x,curve:p,areaBaselineValue:k,pointColor:F,pointBorderColor:G}),mt=dt.lineGenerator,Wt=dt.areaGenerator,De=dt.series,Re=dt.xScale,qe=dt.yScale,lt=dt.points,gt=aC({points:lt,width:Ne,height:nt,debug:Ue}),St=gt.delaunay,Vt=gt.voronoi;m.useEffect(function(){pe&&(pe.current=t.current),t.current.width=Et*o,t.current.height=rt*o;var ye=t.current.getContext("2d");ye.scale(o,o),ye.fillStyle=ot.background,ye.fillRect(0,0,Et,rt),ye.translate(ve.left,ve.top),w.forEach(function(Ee){if(typeof Ee=="function"&&Ee({ctx:ye,innerWidth:Ne,innerHeight:nt,series:De,points:lt,xScale:Re,yScale:qe,lineWidth:b,lineGenerator:mt,areaGenerator:Wt,currentPoint:It,setCurrentPoint:ct}),Ee==="grid"&&ot.grid.line.strokeWidth>0&&(ye.lineWidth=ot.grid.line.strokeWidth,ye.strokeStyle=ot.grid.line.stroke,ie&&tu(ye,{width:Ne,height:nt,scale:Re,axis:"x",values:J}),K&&tu(ye,{width:Ne,height:nt,scale:qe,axis:"y",values:re})),Ee==="axes"&&nC(ye,{xScale:Re,yScale:qe,width:Ne,height:nt,top:N,right:I,bottom:V,left:Z,theme:ot}),Ee==="areas"&&R===!0){ye.save(),ye.globalAlpha=C,Wt.context(ye);for(var je=De.length-1;je>=0;je--)ye.fillStyle=De[je].color,ye.beginPath(),Wt(De[je].data.map(function(We){return We.position})),ye.fill();ye.restore()}if(Ee==="lines"&&(mt.context(ye),De.forEach(function(We){ye.strokeStyle=We.color,ye.lineWidth=b,ye.beginPath(),mt(We.data.map(function(ft){return ft.position})),ye.stroke()})),Ee==="points"&&$===!0&&P>0&&lt.forEach(function(We){ye.fillStyle=We.color,ye.beginPath(),ye.arc(We.x,We.y,P/2,0,2*Math.PI),ye.fill(),z>0&&(ye.strokeStyle=We.borderColor,ye.lineWidth=z,ye.stroke())}),Ee==="mesh"&&Ue===!0&&(mX(ye,Vt),It&&gX(ye,Vt,It.index)),Ee==="legends"){var Ye=De.map(function(We){return{id:We.id,label:We.id,color:We.color}}).reverse();te.forEach(function(We){B3(ye,Cn({},We,{data:We.data||Ye,containerWidth:Ne,containerHeight:nt,theme:ot}))})}})},[t,Et,rt,w,ot,mt,De,Re,qe,ie,J,K,re,N,I,V,Z,te,lt,$,P,It]);var Rt=m.useCallback(function(ye){var Ee=os(t.current,ye),je=Ee[0],Ye=Ee[1];if(!A3(ve.left,ve.top,Ne,nt,je,Ye))return null;var We=St.find(je-ve.left,Ye-ve.top);return lt[We]},[t,ve,Ne,nt,St]),Dt=ca(),qt=Dt.showTooltipFromEvent,vt=Dt.hideTooltip,Yt=m.useCallback(function(ye){var Ee=Rt(ye);ct(Ee),Ee?qt(m.createElement(st,{point:Ee}),ye):vt()},[Rt,ct,qt,vt,st]),rn=m.useCallback(function(ye){vt(),ct(null),It&&Ae&&Ae(It,ye)},[vt,ct,Ae]),Jt=m.useCallback(function(ye){if(Ve){var Ee=Rt(ye);Ee&&Ve(Ee,ye)}},[Rt,Ve]);return y.jsx("canvas",{ref:t,width:Et*o,height:rt*o,style:{width:Et,height:rt,cursor:we?"auto":"normal"},onMouseEnter:we?Yt:void 0,onMouseMove:we?Yt:void 0,onMouseLeave:we?rn:void 0,onClick:we?Jt:void 0})}),RX=m.forwardRef(function(e,t){return y.jsx(AX,Cn({},e,{canvasRef:t}))});m.forwardRef(function(e,t){return y.jsx(wo,{children:function(n){var r=n.width,i=n.height;return y.jsx(RX,Cn({width:r,height:i},e,{ref:t}))}})});var jX=V3;function PX(e,t){var n=[];return jX(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var IX=PX,DX=o3,NX=IX,LX=Fg,FX=Pn;function BX(e,t){var n=FX(e)?DX:NX;return n(e,LX(t))}var UX=BX;const WX=Ht(UX);var zX=Gr,HX=Qn,VX="[object Number]";function qX(e){return typeof e=="number"||HX(e)&&zX(e)==VX}var YX=qX;const Hy=Ht(YX);function GX(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ZX=GX,KX=vo,XX=hc;function QX(e,t){return e&&KX(t,XX(t),e)}var JX=QX,eQ=vo,tQ=uc;function nQ(e,t){return e&&eQ(t,tQ(t),e)}var rQ=nQ,iQ=vo,aQ=$g;function oQ(e,t){return iQ(e,aQ(e),t)}var sQ=oQ,cQ=Og,lQ=Bm,uQ=$g,dQ=s3,fQ=Object.getOwnPropertySymbols,hQ=fQ?function(e){for(var t=[];e;)cQ(t,uQ(e)),e=lQ(e);return t}:dQ,lC=hQ,pQ=vo,mQ=lC;function gQ(e,t){return pQ(e,mQ(e),t)}var vQ=gQ,yQ=a3,bQ=lC,xQ=uc;function _Q(e){return yQ(e,xQ,bQ)}var uC=_Q,wQ=Object.prototype,CQ=wQ.hasOwnProperty;function TQ(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&CQ.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var SQ=TQ,kQ=Fm;function EQ(e,t){var n=t?kQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var OQ=EQ,MQ=/\w*$/;function $Q(e){var t=new e.constructor(e.source,MQ.exec(e));return t.lastIndex=e.lastIndex,t}var AQ=$Q,Vy=uo,qy=Vy?Vy.prototype:void 0,Yy=qy?qy.valueOf:void 0;function RQ(e){return Yy?Object(Yy.call(e)):{}}var jQ=RQ,PQ=Fm,IQ=OQ,DQ=AQ,NQ=jQ,LQ=Cw,FQ="[object Boolean]",BQ="[object Date]",UQ="[object Map]",WQ="[object Number]",zQ="[object RegExp]",HQ="[object Set]",VQ="[object String]",qQ="[object Symbol]",YQ="[object ArrayBuffer]",GQ="[object DataView]",ZQ="[object Float32Array]",KQ="[object Float64Array]",XQ="[object Int8Array]",QQ="[object Int16Array]",JQ="[object Int32Array]",eJ="[object Uint8Array]",tJ="[object Uint8ClampedArray]",nJ="[object Uint16Array]",rJ="[object Uint32Array]";function iJ(e,t,n){var r=e.constructor;switch(t){case YQ:return PQ(e);case FQ:case BQ:return new r(+e);case GQ:return IQ(e,n);case ZQ:case KQ:case XQ:case QQ:case JQ:case eJ:case tJ:case nJ:case rJ:return LQ(e,n);case UQ:return new r;case WQ:case VQ:return new r(e);case zQ:return DQ(e);case HQ:return new r;case qQ:return NQ(e)}}var aJ=iJ,oJ=Fd,sJ=Qn,cJ="[object Map]";function lJ(e){return sJ(e)&&oJ(e)==cJ}var uJ=lJ,dJ=uJ,fJ=go,Gy=Ku,Zy=Gy&&Gy.isMap,hJ=Zy?fJ(Zy):dJ,pJ=hJ,mJ=Fd,gJ=Qn,vJ="[object Set]";function yJ(e){return gJ(e)&&mJ(e)==vJ}var bJ=yJ,xJ=bJ,_J=go,Ky=Ku,Xy=Ky&&Ky.isSet,wJ=Xy?_J(Xy):xJ,CJ=wJ,TJ=Yu,SJ=ZX,kJ=qm,EJ=JX,OJ=rQ,MJ=_w,$J=Tw,AJ=sQ,RJ=vQ,jJ=c3,PJ=uC,IJ=Fd,DJ=SQ,NJ=aJ,LJ=kw,FJ=Pn,BJ=Zu,UJ=pJ,WJ=Er,zJ=CJ,HJ=hc,VJ=uc,qJ=1,YJ=2,GJ=4,dC="[object Arguments]",ZJ="[object Array]",KJ="[object Boolean]",XJ="[object Date]",QJ="[object Error]",fC="[object Function]",JJ="[object GeneratorFunction]",eee="[object Map]",tee="[object Number]",hC="[object Object]",nee="[object RegExp]",ree="[object Set]",iee="[object String]",aee="[object Symbol]",oee="[object WeakMap]",see="[object ArrayBuffer]",cee="[object DataView]",lee="[object Float32Array]",uee="[object Float64Array]",dee="[object Int8Array]",fee="[object Int16Array]",hee="[object Int32Array]",pee="[object Uint8Array]",mee="[object Uint8ClampedArray]",gee="[object Uint16Array]",vee="[object Uint32Array]",jt={};jt[dC]=jt[ZJ]=jt[see]=jt[cee]=jt[KJ]=jt[XJ]=jt[lee]=jt[uee]=jt[dee]=jt[fee]=jt[hee]=jt[eee]=jt[tee]=jt[hC]=jt[nee]=jt[ree]=jt[iee]=jt[aee]=jt[pee]=jt[mee]=jt[gee]=jt[vee]=!0;jt[QJ]=jt[fC]=jt[oee]=!1;function sl(e,t,n,r,i,a){var o,s=t&qJ,c=t&YJ,l=t&GJ;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!WJ(e))return e;var u=FJ(e);if(u){if(o=DJ(e),!s)return $J(e,o)}else{var d=IJ(e),f=d==fC||d==JJ;if(BJ(e))return MJ(e,s);if(d==hC||d==dC||f&&!i){if(o=c||f?{}:LJ(e),!s)return c?RJ(e,OJ(o,e)):AJ(e,EJ(o,e))}else{if(!jt[d])return i?e:{};o=NJ(e,d,s)}}a||(a=new TJ);var h=a.get(e);if(h)return h;a.set(e,o),zJ(e)?e.forEach(function(v){o.add(sl(v,t,n,v,e,a))}):UJ(e)&&e.forEach(function(v,w){o.set(w,sl(v,t,n,w,e,a))});var g=l?c?PJ:jJ:c?VJ:HJ,p=u?void 0:g(e);return SJ(p||e,function(v,w){p&&(w=v,v=e[w]),kJ(o,w,sl(v,t,n,w,e,a))}),o}var yee=sl;function bee(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var xee=bee,_ee=dc,wee=xee;function Cee(e,t){return t.length<2?e:_ee(e,wee(t,0,-1))}var Tee=Cee,See=yo,kee=Yw,Eee=Tee,Oee=bo;function Mee(e,t){return t=See(t,e),e=Eee(e,t),e==null||delete e[Oee(kee(t))]}var $ee=Mee,Aee=zm;function Ree(e){return Aee(e)?void 0:e}var jee=Ree,Pee=ed,Iee=yee,Dee=$ee,Nee=yo,Lee=vo,Fee=jee,Bee=r3,Uee=uC,Wee=1,zee=2,Hee=4,Vee=Bee(function(e,t){var n={};if(e==null)return n;var r=!1;t=Pee(t,function(a){return a=Nee(a,e),r||(r=a.length>1),a}),Lee(e,Uee(e),n),r&&(n=Iee(n,Wee|zee|Hee,Fee));for(var i=t.length;i--;)Dee(n,t[i]);return n}),qee=Vee;const pC=Ht(qee);function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}var pp={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},Yee=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},Gee=function(e){var t=typeof e;return t==="string"||t==="function"},qs=function(e){return e.type==="circle"},mp=function(e){return e.type==="dot"},Ys=function(e){return e.type==="rect"},Zee=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,WX(t,o.match).map(function(c){var l=r(c),u=i(c);return(qs(o)||Ys(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Cr({},pC(o,["match","offset"]),l,u,{size:o.size||u.size,datum:c})}))},[])},Kee=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Zq(Ud(i))},mC=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?pp.noteWidth:s,l=e.noteTextOffset,u=l===void 0?pp.noteTextOffset:l;if(Hy(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(Hy(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=Kee(r,i,t,n);if(qs(e)){var g=qi(Yn(h),e.size/2);d+=g.x,f+=g.y}if(Ys(e)){var p=Math.round((h+90)/45)%8;p===0&&(f-=e.height/2),p===1&&(d+=e.width/2,f-=e.height/2),p===2&&(d+=e.width/2),p===3&&(d+=e.width/2,f+=e.height/2),p===4&&(f+=e.height/2),p===5&&(d-=e.width/2,f+=e.height/2),p===6&&(d-=e.width/2),p===7&&(d-=e.width/2,f-=e.height/2)}var v=t,w=t;return(h+90)%360>180?(v-=c,w-=c):w+=c,{points:[[d,f],[t,n],[w,n]],text:[v,n-u],angle:h+90}},gC=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return Zee({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},Xee=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return Cr({},n,{computed:mC(Cr({},n))})})},[t])},Qee=function(e){return m.useMemo(function(){return mC(e)},[e])},Jee=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Tt(),o=kn(),s=o.animate,c=o.config,l=Sr({x:n,y:r,config:c,immediate:!s});return typeof i=="function"?m.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[a.annotations.text.outlineWidth>0&&y.jsx(Ct.text,{x:l.x,y:l.y,style:Cr({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),y.jsx(Ct.text,{x:l.x,y:l.y,style:pC(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},Qy=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Tt(),a=m.useMemo(function(){var c=t[0];return t.slice(1).reduce(function(l,u){return l+" L"+u[0]+","+u[1]},"M"+c[0]+","+c[1])},[t]),o=Rg(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Cr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),y.jsx(Ct.path,{fill:"none",d:o,style:s})},ete=function(e){var t=e.x,n=e.y,r=e.size,i=Tt(),a=kn(),o=a.animate,s=a.config,c=Sr({x:t,y:n,radius:r/2,config:s,immediate:!o});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Ct.circle,{cx:c.x,cy:c.y,r:c.radius,style:Cr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Ct.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},tte=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?pp.dotSize:r,a=Tt(),o=kn(),s=o.animate,c=o.config,l=Sr({x:t,y:n,radius:i/2,config:c,immediate:!s});return y.jsxs(y.Fragment,{children:[a.annotations.outline.outlineWidth>0&&y.jsx(Ct.circle,{cx:l.x,cy:l.y,r:l.radius,style:Cr({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),y.jsx(Ct.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},nte=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Tt(),c=kn(),l=c.animate,u=c.config,d=Sr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Ct.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Cr({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),y.jsx(Ct.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},rte=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Qee(e);if(!Yee(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Qy,{points:a.points,isOutline:!0}),qs(e)&&y.jsx(ete,{x:n,y:r,size:e.size}),mp(e)&&y.jsx(tte,{x:n,y:r,size:e.size}),Ys(e)&&y.jsx(nte,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Qy,{points:a.points}),y.jsx(Jee,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},Jy=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},ite=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!Gee(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Jy(e,i.computed.points),e.stroke(),e.lineCap="butt"),qs(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),mp(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Ys(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Jy(e,i.computed.points),e.stroke(),qs(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),mp(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),Ys(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}function Co(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var eb,ate=function(e){var t=e.bars,n=e.annotations,r=gC({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var a=i.height,o=i.width;return{width:o,height:a,size:Math.max(o,a)}}});return y.jsx(y.Fragment,{children:r.map(function(i,a){return y.jsx(rte,kt({},i),a)})})},ote=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,o){var s,c=a[0],l=a[1];return y.jsx(Lg,kt({},c,{containerWidth:t,containerHeight:n,data:(s=c.data)!=null?s:l,toggleSerie:c.toggleSerie&&c.dataFrom==="keys"?i:void 0}),o)})})},ste=["data"],cte=function(e){var t,n=e.bar,r=n.data,i=Co(n,ste),a=e.style,o=a.borderColor,s=a.color,c=a.height,l=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,h=a.transform,g=a.width,p=e.borderRadius,v=e.borderWidth,w=e.label,_=e.shouldRenderLabel,x=e.isInteractive,T=e.onClick,b=e.onMouseEnter,S=e.onMouseLeave,R=e.tooltip,M=e.isFocusable,k=e.ariaLabel,E=e.ariaLabelledBy,C=e.ariaDescribedBy,O=Tt(),$=ca(),A=$.showTooltipFromEvent,P=$.showTooltipAt,D=$.hideTooltip,F=m.useMemo(function(){return function(){return m.createElement(R,kt({},i,r))}},[R,i,r]),q=m.useCallback(function(J){T==null||T(kt({color:i.color},r),J)},[i,r,T]),z=m.useCallback(function(J){return A(F(),J)},[A,F]),U=m.useCallback(function(J){b==null||b(r,J),A(F(),J)},[r,b,A,F]),G=m.useCallback(function(J){S==null||S(r,J),D()},[r,D,S]),ee=m.useCallback(function(){P(F(),[i.absX+i.width/2,i.absY])},[P,F,i]),ie=m.useCallback(function(){D()},[D]);return y.jsxs(Ct.g,{transform:h,children:[y.jsx(Ct.rect,{width:vi(g,function(J){return Math.max(J,0)}),height:vi(c,function(J){return Math.max(J,0)}),rx:p,ry:p,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:o,focusable:M,tabIndex:M?0:void 0,"aria-label":k?k(r):void 0,"aria-labelledby":E?E(r):void 0,"aria-describedby":C?C(r):void 0,onMouseEnter:x?U:void 0,onMouseMove:x?z:void 0,onMouseLeave:x?G:void 0,onClick:x?q:void 0,onFocus:x&&M?ee:void 0,onBlur:x&&M?ie:void 0}),_&&y.jsx(Ct.text,{x:d,y:f,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:kt({},O.labels.text,{pointerEvents:"none",fill:l}),children:w})]})},lte=["color","label"],ute=function(e){var t=e.color,n=e.label,r=Co(e,lte);return y.jsx(Pm,{id:n,value:r.formattedValue,enableChip:!0,color:t})},$t={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:ute,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},Lt=kt({},$t,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:cte,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),dn=kt({},$t,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(eb=window.devicePixelRatio)!=null?eb:1}),vC=function(e,t,n,r,i,a){return Vs(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},yC=function(e,t){return e.map(function(n){return kt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},zd=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Hd=function(e){return[e,Number(e)]},dte=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],zg=function(e,t){return e>t},bC=function(e,t){return e<t},xC=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},fte=function(e){return zg(e,0)?0:e},hte=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,h=e.yScale,g=e.margin,p=n?bC:zg,v=i.map(zd),w=[];return d.forEach(function(_,x){return xC(0,f.domain().length).forEach(function(T){var b,S,R,M=Hd(i[T][_]),k=M[0],E=M[1],C=s(i[T]),O=((b=f(C))!=null?b:0)+t*x+u*x,$=p(S=E,0)?(R=h(S))!=null?R:0:r,A=function(D,F){var q;return p(D,0)?r-F:((q=h(D))!=null?q:0)-r}(E,$),P={id:_,value:k===null?k:E,formattedValue:a(E),hidden:!1,index:T,indexValue:C,data:v[T]};w.push({key:_+"."+P.indexValue,index:w.length,data:P,x:O,y:$,absX:g.left+O,absY:g.top+$,width:t,height:A,color:o(P),label:c(P)})})}),w},pte=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,g=e.margin,p=n?bC:zg,v=i.map(zd),w=[];return l.forEach(function(_,x){return xC(0,h.domain().length).forEach(function(T){var b,S,R,M=Hd(i[T][_]),k=M[0],E=M[1],C=o(i[T]),O=p(S=E,0)?r:(R=f(S))!=null?R:0,$=((b=h(C))!=null?b:0)+t*x+d*x,A=function(D,F){var q;return p(D,0)?((q=f(D))!=null?q:0)-r:r-F}(E,O),P={id:_,value:k===null?k:E,formattedValue:a(E),hidden:!1,index:T,indexValue:C,data:v[T]};w.push({key:_+"."+P.indexValue,index:w.length,data:P,x:O,y:$,absX:g.left+O,absY:g.top+$,width:A,height:t,color:s(P),label:c(P)})})}),w},mte=function(e){var t,n,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,h=e.valueScale,g=e.indexScale,p=e.hiddenIds,v=p===void 0?[]:p,w=Co(e,dte),_=w.keys.filter(function(U){return!v.includes(U)}),x=yC(w.data,_),T=r==="vertical"?["y","x",s]:["x","y",c],b=T[0],S=T[1],R=T[2],M=vC(x,w.getIndex,u,g,R,S),k=kt({max:a,min:i,reverse:o},h),E=k.min==="auto"?fte:function(U){return U},C=x.reduce(function(U,G){return[].concat(U,_.map(function(ee){return G[ee]}))},[]).filter(Boolean),O=E(Math.min.apply(Math,C)),$=(n=Math.max.apply(Math,C),isFinite(n)?n:0),A=Vs(k,{all:C,min:O,max:$},b==="x"?s:c,b),P=r==="vertical"?[M,A]:[A,M],D=P[0],F=P[1],q=(M.bandwidth()-f*(_.length-1))/_.length,z=[kt({},w,{data:x,keys:_,innerPadding:f,xScale:D,yScale:F}),q,k.reverse,(t=A(0))!=null?t:0];return{xScale:D,yScale:F,bars:q>0?r==="vertical"?hte.apply(void 0,z):pte.apply(void 0,z):[]}},gte=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],vte=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},yte=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return l.domain().forEach(function(g,p){var v,w,_=h[p],x=(v=l(a(_.data)))!=null?v:0,T=((w=function(E){return u(E[n?0:1])}(_))!=null?w:0)+.5*s,b=function(E,C){var O;return((O=u(E[n?1:0]))!=null?O:0)-C}(_,T)-s,S=Hd(_.data[h.key]),R=S[0],M=S[1],k={id:h.key,value:R===null?R:M,formattedValue:r(M),hidden:!1,index:p,indexValue:g,data:zd(_.data)};f.push({key:h.key+"."+g,index:f.length,data:k,x,y:T,absX:d.left+x,absY:d.top+T,width:t,height:b,color:i(k),label:o(k)})})}),f},bte=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach(function(h){return u.domain().forEach(function(g,p){var v,w,_=h[p],x=(v=u(a(_.data)))!=null?v:0,T=((w=function(E){return l(E[n?1:0])}(_))!=null?w:0)+.5*s,b=function(E,C){var O;return((O=l(E[n?0:1]))!=null?O:0)-C}(_,T)-s,S=Hd(_.data[h.key]),R=S[0],M=S[1],k={id:h.key,value:R===null?R:M,formattedValue:r(M),hidden:!1,index:p,indexValue:g,data:zd(_.data)};f.push({key:h.key+"."+g,index:f.length,data:k,x:T,y:x,absX:d.left+T,absY:d.top+x,width:b,height:t,color:i(k),label:o(k)})})}),f},xte=function(e){var t,n=e.data,r=e.layout,i=e.minValue,a=e.maxValue,o=e.reverse,s=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,g=h===void 0?[]:h,p=Co(e,gte),v=p.keys.filter(function(q){return!g.includes(q)}),w=iH().keys(v).offset(aH)(yC(n,v)),_=r==="vertical"?["y","x",s]:["x","y",c],x=_[0],T=_[1],b=_[2],S=vC(n,p.getIndex,u,f,b,T),R=kt({max:a,min:i,reverse:o},d),M=(t=vte(w),d.type==="log"?t.filter(function(q){return q!==0}):t),k=Math.min.apply(Math,M),E=Math.max.apply(Math,M),C=Vs(R,{all:M,min:k,max:E},x==="x"?s:c,x),O=r==="vertical"?[S,C]:[C,S],$=O[0],A=O[1],P=p.innerPadding>0?p.innerPadding:0,D=S.bandwidth(),F=[kt({},p,{innerPadding:P,stackedData:w,xScale:$,yScale:A}),D,R.reverse];return{xScale:$,yScale:A,bars:D>0?r==="vertical"?yte.apply(void 0,F):bte.apply(void 0,F):[]}},_te=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=$3(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(l,u,d){var f=dp(l.map(function(h){var g,p;return{id:(g=h.data.indexValue)!=null?g:"",label:d(h.data),hidden:h.data.hidden,color:(p=h.color)!=null?p:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,a,c):function(l,u,d,f,h,g){var p=dp(l.map(function(v){var w;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(w=v.color)!=null?w:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&p.reverse(),p}(t,a,n,i,s,c)},tb=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},wte=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Cte=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Tte=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},_C=function(e){var t=e.indexBy,n=t===void 0?$t.indexBy:t,r=e.keys,i=r===void 0?$t.keys:r,a=e.label,o=a===void 0?$t.label:a,s=e.tooltipLabel,c=s===void 0?$t.tooltipLabel:s,l=e.valueFormat,u=e.colors,d=u===void 0?$t.colors:u,f=e.colorBy,h=f===void 0?$t.colorBy:f,g=e.borderColor,p=g===void 0?$t.borderColor:g,v=e.labelTextColor,w=v===void 0?$t.labelTextColor:v,_=e.groupMode,x=_===void 0?$t.groupMode:_,T=e.layout,b=T===void 0?$t.layout:T,S=e.reverse,R=S===void 0?$t.reverse:S,M=e.data,k=e.minValue,E=k===void 0?$t.minValue:k,C=e.maxValue,O=C===void 0?$t.maxValue:C,$=e.margin,A=e.width,P=e.height,D=e.padding,F=D===void 0?$t.padding:D,q=e.innerPadding,z=q===void 0?$t.innerPadding:q,U=e.valueScale,G=U===void 0?$t.valueScale:U,ee=e.indexScale,ie=ee===void 0?$t.indexScale:ee,J=e.initialHiddenIds,X=J===void 0?$t.initialHiddenIds:J,K=e.enableLabel,re=K===void 0?$t.enableLabel:K,N=e.labelSkipWidth,I=N===void 0?$t.labelSkipWidth:N,L=e.labelSkipHeight,V=L===void 0?$t.labelSkipHeight:L,j=e.legends,Z=j===void 0?$t.legends:j,Q=e.legendLabel,te=e.totalsOffset,he=te===void 0?$t.totalsOffset:te,we=m.useState(X??[]),me=we[0],Ue=we[1],Ae=m.useCallback(function(De){Ue(function(Re){return Re.indexOf(De)>-1?Re.filter(function(qe){return qe!==De}):[].concat(Re,[De])})},[]),Ve=Yi(n),Ke=Yi(o),st=Yi(c),pe=eo(l),Te=Tt(),ve=Dg(d,h),Ne=wr(p,Te),nt=wr(w,Te),Et=(x==="grouped"?mte:xte)({layout:b,reverse:R,data:M,getIndex:Ve,keys:i,minValue:E,maxValue:O,width:A,height:P,getColor:ve,padding:F,innerPadding:z,valueScale:G,indexScale:ie,hiddenIds:me,formatValue:pe,getTooltipLabel:st,margin:$}),rt=Et.bars,ot=Et.xScale,pt=Et.yScale,It=m.useMemo(function(){return rt.filter(function(De){return De.data.value!==null}).map(function(De,Re){return kt({},De,{index:Re})})},[rt]),ct=m.useCallback(function(De){var Re=De.width,qe=De.height;return!!re&&!(I>0&&Re<I)&&!(V>0&&qe<V)},[re,I,V]),dt=m.useMemo(function(){return i.map(function(De){var Re=rt.find(function(qe){return qe.data.id===De});return kt({},Re,{data:kt({id:De},Re==null?void 0:Re.data,{hidden:me.includes(De)})})})},[me,i,rt]),mt=m.useMemo(function(){return Z.map(function(De){return[De,_te({bars:De.dataFrom==="keys"?dt:rt,direction:De.direction,from:De.dataFrom,groupMode:x,layout:b,legendLabel:Q,reverse:R})]})},[Z,dt,rt,x,b,Q,R]),Wt=m.useMemo(function(){return function(De,Re,qe,lt,gt,St,Vt){lt===void 0&&(lt=$t.layout),gt===void 0&&(gt=$t.groupMode);var Rt=[];if(De.length===0)return Rt;var Dt=new Map,qt=De[0].width,vt=De[0].height;if(gt==="stacked"){var Yt=new Map;De.forEach(function(ye){var Ee=ye.data,je=Ee.indexValue,Ye=Ee.value;tb(Dt,je,Number(Ye)),wte(Yt,je,Number(Ye))}),Yt.forEach(function(ye,Ee){var je,Ye,We,ft=Dt.get(Ee)||0;lt==="vertical"?(je=Re(Ee),Ye=qe(ye),We=qe(ye/2)):(je=Re(ye),Ye=qe(Ee),We=Re(ye/2)),je+=lt==="vertical"?qt/2:St,Ye+=lt==="vertical"?-St:vt/2,Rt.push({key:"total_"+Ee,x:je,y:Ye,value:ft,formattedValue:Vt(ft),animationOffset:We})})}else if(gt==="grouped"){var rn=new Map,Jt=new Map;De.forEach(function(ye){var Ee=ye.data,je=Ee.indexValue,Ye=Ee.value;tb(Dt,je,Number(Ye)),Cte(rn,je,Number(Ye)),Tte(Jt,je)}),rn.forEach(function(ye,Ee){var je,Ye,We,ft=Dt.get(Ee)||0,W=Jt.get(Ee);lt==="vertical"?(je=Re(Ee),Ye=qe(ye),We=qe(ye/2)):(je=Re(ye),Ye=qe(Ee),We=Re(ye/2)),je+=lt==="vertical"?W*qt/2:St,Ye+=lt==="vertical"?-St:W*vt/2,Rt.push({key:"total_"+Ee,x:je,y:Ye,value:ft,formattedValue:Vt(ft),animationOffset:We})})}return Rt}(rt,ot,pt,b,x,he,pe)},[rt,ot,pt,b,x,he,pe]);return{bars:rt,barsWithValue:It,xScale:ot,yScale:pt,getIndex:Ve,getLabel:Ke,getTooltipLabel:st,formatValue:pe,getColor:ve,getBorderColor:Ne,getLabelColor:nt,shouldRenderBarLabel:ct,hiddenIds:me,toggleSerie:Ae,legendsWithData:mt,barTotals:Wt}},Ste=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?Lt.layout:i,o=Tt();return sa(t,{keys:function(s){return s.key},from:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,c){return y.jsx(Ct.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:kt({},o.labels.text,{pointerEvents:"none",fill:o.text.fill}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a==="vertical"?"middle":"start",alignmentBaseline:a==="vertical"?"alphabetic":"middle",children:c.formattedValue},c.key)})},kte=["isInteractive","animate","motionConfig","theme","renderWrapper"],Ete=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,v=e.axisTop,w=e.axisRight,_=e.axisBottom,x=_===void 0?Lt.axisBottom:_,T=e.axisLeft,b=T===void 0?Lt.axisLeft:T,S=e.enableGridX,R=S===void 0?Lt.enableGridX:S,M=e.enableGridY,k=M===void 0?Lt.enableGridY:M,E=e.gridXValues,C=e.gridYValues,O=e.layers,$=O===void 0?Lt.layers:O,A=e.barComponent,P=A===void 0?Lt.barComponent:A,D=e.enableLabel,F=D===void 0?Lt.enableLabel:D,q=e.label,z=e.labelSkipWidth,U=z===void 0?Lt.labelSkipWidth:z,G=e.labelSkipHeight,ee=G===void 0?Lt.labelSkipHeight:G,ie=e.labelTextColor,J=e.markers,X=J===void 0?Lt.markers:J,K=e.colorBy,re=e.colors,N=e.defs,I=N===void 0?Lt.defs:N,L=e.fill,V=L===void 0?Lt.fill:L,j=e.borderRadius,Z=j===void 0?Lt.borderRadius:j,Q=e.borderWidth,te=Q===void 0?Lt.borderWidth:Q,he=e.borderColor,we=e.annotations,me=we===void 0?Lt.annotations:we,Ue=e.legendLabel,Ae=e.tooltipLabel,Ve=e.valueFormat,Ke=e.isInteractive,st=Ke===void 0?Lt.isInteractive:Ke,pe=e.tooltip,Te=pe===void 0?Lt.tooltip:pe,ve=e.onClick,Ne=e.onMouseEnter,nt=e.onMouseLeave,Et=e.legends,rt=e.role,ot=rt===void 0?Lt.role:rt,pt=e.ariaLabel,It=e.ariaLabelledBy,ct=e.ariaDescribedBy,dt=e.isFocusable,mt=dt===void 0?Lt.isFocusable:dt,Wt=e.barAriaLabel,De=e.barAriaLabelledBy,Re=e.barAriaDescribedBy,qe=e.initialHiddenIds,lt=e.enableTotals,gt=lt===void 0?Lt.enableTotals:lt,St=e.totalsOffset,Vt=St===void 0?Lt.totalsOffset:St,Rt=kn(),Dt=Rt.animate,qt=Rt.config,vt=pc(a,o,i),Yt=vt.outerWidth,rn=vt.outerHeight,Jt=vt.margin,ye=vt.innerWidth,Ee=vt.innerHeight,je=_C({indexBy:n,label:q,tooltipLabel:Ae,valueFormat:Ve,colors:re,colorBy:K,borderColor:he,labelTextColor:ie,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:Jt,width:ye,height:Ee,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:F,labelSkipWidth:U,labelSkipHeight:ee,legends:Et,legendLabel:Ue,initialHiddenIds:qe,totalsOffset:Vt}),Ye=je.bars,We=je.barsWithValue,ft=je.xScale,W=je.yScale,ce=je.getLabel,ae=je.getTooltipLabel,se=je.getBorderColor,be=je.getLabelColor,Oe=je.shouldRenderBarLabel,xe=je.toggleSerie,ke=je.legendsWithData,Le=je.barTotals,Pe=sa(We,{keys:function(ge){return ge.key},from:function(ge){return kt({borderColor:se(ge),color:ge.color,height:0,labelColor:be(ge),labelOpacity:0,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+(ge.y+ge.height)+")",width:ge.width},c==="vertical"?{}:{height:ge.height,transform:"translate("+ge.x+", "+ge.y+")",width:0})},enter:function(ge){return{borderColor:se(ge),color:ge.color,height:ge.height,labelColor:be(ge),labelOpacity:1,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+ge.y+")",width:ge.width}},update:function(ge){return{borderColor:se(ge),color:ge.color,height:ge.height,labelColor:be(ge),labelOpacity:1,labelX:ge.width/2,labelY:ge.height/2,transform:"translate("+ge.x+", "+ge.y+")",width:ge.width}},leave:function(ge){return kt({borderColor:se(ge),color:ge.color,height:0,labelColor:be(ge),labelOpacity:0,labelX:ge.width/2,labelY:0,transform:"translate("+ge.x+", "+(ge.y+ge.height)+")",width:ge.width},c==="vertical"?{}:{labelX:0,labelY:ge.height/2,height:ge.height,transform:"translate("+ge.x+", "+ge.y+")",width:0})},config:qt,immediate:!Dt,initial:Dt?void 0:null}),Xe=m.useMemo(function(){return{borderRadius:Z,borderWidth:te,enableLabel:F,isInteractive:st,labelSkipWidth:U,labelSkipHeight:ee,onClick:ve,onMouseEnter:Ne,onMouseLeave:nt,getTooltipLabel:ae,tooltip:Te,isFocusable:mt,ariaLabel:Wt,ariaLabelledBy:De,ariaDescribedBy:Re}},[Z,te,F,ae,st,ee,U,ve,Ne,nt,Te,mt,Wt,De,Re]),zt=Ig(I,Ye,V,{dataKey:"data",targetKey:"data.fill"}),Ot={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};$.includes("annotations")&&(Ot.annotations=y.jsx(ate,{bars:Ye,annotations:me},"annotations")),$.includes("axes")&&(Ot.axes=y.jsx(eC,{xScale:ft,yScale:W,width:ye,height:Ee,top:v,right:w,bottom:x,left:b},"axes")),$.includes("bars")&&(Ot.bars=y.jsx(m.Fragment,{children:Pe(function(ge,ln){return m.createElement(P,kt({},Xe,{bar:ln,style:ge,shouldRenderLabel:Oe(ln),label:ce(ln.data)}))})},"bars")),$.includes("grid")&&(Ot.grid=y.jsx(tC,{width:ye,height:Ee,xScale:R?ft:null,yScale:k?W:null,xValues:E,yValues:C},"grid")),$.includes("legends")&&(Ot.legends=y.jsx(ote,{width:ye,height:Ee,legends:ke,toggleSerie:xe},"legends")),$.includes("markers")&&(Ot.markers=y.jsx(O3,{markers:X,width:ye,height:Ee,xScale:ft,yScale:W},"markers")),$.includes("totals")&&gt&&(Ot.totals=y.jsx(Ste,{data:Le,springConfig:qt,animate:Dt,layout:c},"totals"));var Xt=m.useMemo(function(){return kt({},Xe,{margin:Jt,width:a,height:o,innerWidth:ye,innerHeight:Ee,bars:Ye,legendData:ke,enableLabel:F,xScale:ft,yScale:W,tooltip:Te,getTooltipLabel:ae,onClick:ve,onMouseEnter:Ne,onMouseLeave:nt})},[Xe,Jt,a,o,ye,Ee,Ye,ke,F,ft,W,Te,ae,ve,Ne,nt]);return y.jsx(Wd,{width:Yt,height:rn,margin:Jt,defs:zt,role:ot,ariaLabel:pt,ariaLabelledBy:It,ariaDescribedBy:ct,isFocusable:mt,children:$.map(function(ge,ln){var Mt;return typeof ge=="function"?y.jsx(m.Fragment,{children:m.createElement(ge,Xt)},ln):(Mt=Ot==null?void 0:Ot[ge])!=null?Mt:null})})},Ote=function(e){var t=e.isInteractive,n=t===void 0?Lt.isInteractive:t,r=e.animate,i=r===void 0?Lt.animate:r,a=e.motionConfig,o=a===void 0?Lt.motionConfig:a,s=e.theme,c=e.renderWrapper,l=Co(e,kte);return y.jsx(mc,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:c,theme:s,children:y.jsx(Ete,kt({isInteractive:n},l))})},Mte=["isInteractive","renderWrapper","theme"],Vf=function(e,t,n,r){return e.find(function(i){return A3(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},$te=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,a=e.width,o=e.height,s=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,g=e.padding,p=e.innerPadding,v=e.axisTop,w=e.axisRight,_=e.axisBottom,x=_===void 0?dn.axisBottom:_,T=e.axisLeft,b=T===void 0?dn.axisLeft:T,S=e.enableGridX,R=S===void 0?dn.enableGridX:S,M=e.enableGridY,k=M===void 0?dn.enableGridY:M,E=e.gridXValues,C=e.gridYValues,O=e.layers,$=O===void 0?dn.layers:O,A=e.renderBar,P=A===void 0?function(ae,se){var be=se.bar,Oe=be.color,xe=be.height,ke=be.width,Le=be.x,Pe=be.y,Xe=se.borderColor,zt=se.borderRadius,Ot=se.borderWidth,Xt=se.label,ge=se.labelColor,ln=se.shouldRenderLabel;if(ae.fillStyle=Oe,Ot>0&&(ae.strokeStyle=Xe,ae.lineWidth=Ot),ae.beginPath(),zt>0){var Mt=Math.min(zt,xe);ae.moveTo(Le+Mt,Pe),ae.lineTo(Le+ke-Mt,Pe),ae.quadraticCurveTo(Le+ke,Pe,Le+ke,Pe+Mt),ae.lineTo(Le+ke,Pe+xe-Mt),ae.quadraticCurveTo(Le+ke,Pe+xe,Le+ke-Mt,Pe+xe),ae.lineTo(Le+Mt,Pe+xe),ae.quadraticCurveTo(Le,Pe+xe,Le,Pe+xe-Mt),ae.lineTo(Le,Pe+Mt),ae.quadraticCurveTo(Le,Pe,Le+Mt,Pe),ae.closePath()}else ae.rect(Le,Pe,ke,xe);ae.fill(),Ot>0&&ae.stroke(),ln&&(ae.textBaseline="middle",ae.textAlign="center",ae.fillStyle=ge,ae.fillText(Xt,Le+ke/2,Pe+xe/2))}:A,D=e.enableLabel,F=D===void 0?dn.enableLabel:D,q=e.label,z=e.labelSkipWidth,U=z===void 0?dn.labelSkipWidth:z,G=e.labelSkipHeight,ee=G===void 0?dn.labelSkipHeight:G,ie=e.labelTextColor,J=e.colorBy,X=e.colors,K=e.borderRadius,re=K===void 0?dn.borderRadius:K,N=e.borderWidth,I=N===void 0?dn.borderWidth:N,L=e.borderColor,V=e.annotations,j=V===void 0?dn.annotations:V,Z=e.legendLabel,Q=e.tooltipLabel,te=e.valueFormat,he=e.isInteractive,we=he===void 0?dn.isInteractive:he,me=e.tooltip,Ue=me===void 0?dn.tooltip:me,Ae=e.onClick,Ve=e.onMouseEnter,Ke=e.onMouseLeave,st=e.legends,pe=e.pixelRatio,Te=pe===void 0?dn.pixelRatio:pe,ve=e.canvasRef,Ne=e.enableTotals,nt=Ne===void 0?dn.enableTotals:Ne,Et=e.totalsOffset,rt=Et===void 0?dn.totalsOffset:Et,ot=m.useRef(null),pt=Tt(),It=pc(a,o,i),ct=It.margin,dt=It.innerWidth,mt=It.innerHeight,Wt=It.outerWidth,De=It.outerHeight,Re=_C({indexBy:n,label:q,tooltipLabel:Q,valueFormat:te,colors:X,colorBy:J,borderColor:L,labelTextColor:ie,groupMode:s,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:ct,width:dt,height:mt,padding:g,innerPadding:p,valueScale:f,indexScale:h,enableLabel:F,labelSkipWidth:U,labelSkipHeight:ee,legends:st,legendLabel:Z,totalsOffset:rt}),qe=Re.bars,lt=Re.barsWithValue,gt=Re.xScale,St=Re.yScale,Vt=Re.getLabel,Rt=Re.getTooltipLabel,Dt=Re.getBorderColor,qt=Re.getLabelColor,vt=Re.shouldRenderBarLabel,Yt=Re.legendsWithData,rn=Re.barTotals,Jt=ca(),ye=Jt.showTooltipFromEvent,Ee=Jt.hideTooltip,je=Xee({annotations:gC({data:qe,annotations:j,getPosition:function(ae){return{x:ae.x,y:ae.y}},getDimensions:function(ae){var se=ae.width,be=ae.height;return{width:se,height:be,size:Math.max(se,be)}}})}),Ye=m.useMemo(function(){return{borderRadius:re,borderWidth:I,isInteractive:we,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:ee,margin:ct,width:a,height:o,innerWidth:dt,innerHeight:mt,bars:qe,legendData:Yt,enableLabel:F,xScale:gt,yScale:St,tooltip:Ue,getTooltipLabel:Rt,onClick:Ae,onMouseEnter:Ve,onMouseLeave:Ke}},[re,I,we,U,ee,ct,a,o,dt,mt,qe,Yt,F,gt,St,Ue,Rt,Ae,Ve,Ke]),We=eo(te);m.useEffect(function(){var ae,se=(ae=ot.current)==null?void 0:ae.getContext("2d");ot.current&&se&&(ot.current.width=Wt*Te,ot.current.height=De*Te,se.scale(Te,Te),se.fillStyle=pt.background,se.fillRect(0,0,Wt,De),se.translate(ct.left,ct.top),$.forEach(function(be){be==="grid"?typeof pt.grid.line.strokeWidth=="number"&&pt.grid.line.strokeWidth>0&&(se.lineWidth=pt.grid.line.strokeWidth,se.strokeStyle=pt.grid.line.stroke,R&&tu(se,{width:dt,height:mt,scale:gt,axis:"x",values:E}),k&&tu(se,{width:dt,height:mt,scale:St,axis:"y",values:C})):be==="axes"?nC(se,{xScale:gt,yScale:St,width:dt,height:mt,top:v,right:w,bottom:x,left:b,theme:pt}):be==="bars"?lt.forEach(function(Oe){P(se,{bar:Oe,borderColor:Dt(Oe),borderRadius:re,borderWidth:I,label:Vt(Oe.data),labelColor:qt(Oe),shouldRenderLabel:vt(Oe)})}):be==="legends"?Yt.forEach(function(Oe){var xe=Oe[0],ke=Oe[1];B3(se,kt({},xe,{data:ke,containerWidth:dt,containerHeight:mt,theme:pt}))}):be==="annotations"?ite(se,{annotations:je,theme:pt}):be==="totals"&&nt?function(Oe,xe,ke,Le){Le===void 0&&(Le=dn.layout),Oe.fillStyle=ke.text.fill,Oe.font="bold "+ke.labels.text.fontSize+"px "+ke.labels.text.fontFamily,Oe.textBaseline=Le==="vertical"?"alphabetic":"middle",Oe.textAlign=Le==="vertical"?"center":"start",xe.forEach(function(Pe){Oe.fillText(Pe.formattedValue,Pe.x,Pe.y)})}(se,rn,pt,c):typeof be=="function"&&be(se,Ye)}),se.save())},[x,b,w,v,lt,re,I,je,R,k,Dt,Vt,qt,E,C,s,o,mt,dt,Ye,$,c,Yt,ct.left,ct.top,De,Wt,Te,P,gt,St,l,vt,pt,a,rn,nt,We]);var ft=m.useCallback(function(ae){if(qe&&ot.current){var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=Vf(qe,ct,be,Oe);xe!==void 0?(ye(m.createElement(Ue,kt({},xe.data,{color:xe.color,label:xe.label,value:Number(xe.data.value)})),ae),ae.type==="mouseenter"&&(Ve==null||Ve(xe.data,ae))):Ee()}},[Ee,ct,Ve,qe,ye,Ue]),W=m.useCallback(function(ae){if(qe&&ot.current){Ee();var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=Vf(qe,ct,be,Oe);xe&&(Ke==null||Ke(xe.data,ae))}},[Ee,ct,Ke,qe]),ce=m.useCallback(function(ae){if(qe&&ot.current){var se=os(ot.current,ae),be=se[0],Oe=se[1],xe=Vf(qe,ct,be,Oe);xe!==void 0&&(Ae==null||Ae(kt({},xe.data,{color:xe.color}),ae))}},[ct,Ae,qe]);return y.jsx("canvas",{ref:function(ae){ot.current=ae,ve&&"current"in ve&&(ve.current=ae)},width:Wt*Te,height:De*Te,style:{width:Wt,height:De,cursor:we?"auto":"normal"},onMouseEnter:we?ft:void 0,onMouseMove:we?ft:void 0,onMouseLeave:we?W:void 0,onClick:we?ce:void 0})},Ate=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Co(e,Mte);return y.jsx(mc,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx($te,kt({},a,{canvasRef:t}))})}),Rte=function(e){return y.jsx(wo,{children:function(t){var n=t.width,r=t.height;return y.jsx(Ote,kt({width:n,height:r},e))}})};m.forwardRef(function(e,t){return y.jsx(wo,{children:function(n){var r=n.width,i=n.height;return y.jsx(Ate,kt({width:r,height:i},e,{ref:t}))}})});const jte="_side-content-bar_16o0s_1",Pte="_mobile_16o0s_12",Ite="_expanded_16o0s_20",Dte="_content-container_16o0s_23",Nte="_resizer_16o0s_31",Lte="_expander_16o0s_46",Fte="_icon_16o0s_65",Rr={"side-content-bar":"_side-content-bar_16o0s_1",sideContentBar:jte,mobile:Pte,expanded:Ite,"content-container":"_content-container_16o0s_23",contentContainer:Dte,resizer:Nte,expander:Lte,icon:Fte},wC=({width:e,children:t,isExpandedOnMobileState:[n,r],resizeable:i=!0,onResize:a})=>{const{ProjectIconComponent:o}=m.useContext(Kt),{isMobile:s}=nc(),c=mm({onSwipedRight:d=>{d.velocity>.8&&r(!1)},delta:100}),[l,u]=m.useState(null);return y.jsxs(y.Fragment,{children:[y.jsxs("section",{className:oe("luminus-side-content-bar shadow",Rr.sideContentBar,{[Rr.mobile]:s},{[Rr.expanded]:n}),style:{width:`${e}px`},...c,children:[i&&!s?y.jsx("div",{role:"button",className:oe(Rr.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:d=>u({startX:d.clientX,widthStart:e}),onDrag:d=>a(((l==null?void 0:l.widthStart)??0)+(((l==null?void 0:l.startX)??0)-d.clientX)),onDragEnd:()=>u(null),children:y.jsx(o,{className:Rr.icon,icon:"resizer-horizontal"})}):null,y.jsx("div",{className:Rr.contentContainer,children:t})]}),s?y.jsx("div",{role:"button",onClick:()=>r(!n),className:oe(Rr.expander,{[Rr.expanded]:n},"luminus-side-content-bar-expander","shadow"),children:y.jsx(o,{className:Rr.icon,icon:"chevron-left"})}):null]})},Bte=({title:e})=>y.jsx("div",{className:"mb-3",children:typeof e=="string"?y.jsx(_n,{variant:"h3",children:e}):e}),Ute="_full-screen-container_1rm4r_1",CC={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:Ute},Wte=oe("overflow-hidden luminus-full-screen-container",CC.fullScreenContainer),zte="container-fluid",Hte=({title:e,children:t,sideContent:n,sideContentWidth:r=250,sideContentResizeable:i=!0,noPadding:a,className:o,variant:s="main",helmet:c,unavailableOnMobile:l})=>{const{addHelmet:u,removeHelmet:d}=m.useContext(c_),{texts:{container:f}}=m.useContext(Kt),[h,g]=m.useState(r),[p,v]=m.useState(!1),w=m.useMemo(()=>{switch(s){case"fullScreen":return Wte;case"main":return zte;default:throw new Error(`PageContainer got incorrect variant type: ${s}`)}},[s]);m.useEffect(()=>(c?u(c):typeof e=="string"&&e&&u(e),()=>d()),[c,u,d,e]);const _=mm({onSwipedLeft:b=>{b.velocity>.8&&v(!0)},delta:100}),{isMobile:x}=nc(),T=m.useMemo(()=>x&&l,[x,l]);return m.useEffect(()=>{g(r)},[r]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:oe(w,a?"p-0":"p-3",o),style:s==="fullScreen"?{width:n?`calc(100% - ${h}px)`:"100%"}:void 0,..._,children:y.jsx("div",{className:s==="fullScreen"?CC.fullScreenContainer:void 0,style:s==="main"?{paddingRight:n?`${h}px`:void 0}:{height:"100%",width:"100%"},children:T?y.jsx(gm,{variant:"warning",children:f.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[e?y.jsx(Bte,{title:e}):null,t]})})}),n&&!T?y.jsx(wC,{width:h,isExpandedOnMobileState:[p,v],resizeable:i,onResize:b=>i?g(b):{},children:n}):null]})},Hg=({InputContainer:e=ic,formField:t,label:n,resetsFields:r,options:i,isNumber:a,size:o,showClearIcon:s,clearValue:c,noSortOptions:l,required:u,hidden:d,disabled:f,withoutLabel:h,hint:g,className:p})=>{const{register:v,formState:w,getValues:_,setValue:x,watch:T}=gn.useFormContext(),b=$u({falseIfNotInit:!0});console.log("disabled ",f),console.log("formDisabled ",b);const[S,R]=m.useState(void 0),[M,k]=m.useState(!1),E=m.useMemo(()=>i.toSorted((A,P)=>l?0:(A.name??"").localeCompare(P.name??"")),[i,l]),C=m.useCallback(()=>{const A=c??null;a?x(t,A===null?null:Number(A),{shouldDirty:!0,shouldValidate:M}):x(t,(A==null?void 0:A.toString())??"",{shouldDirty:!0,shouldValidate:M})},[c,a,x,t,M]);m.useEffect(()=>{const A=t.split(".");let P=w.errors;A.forEach(D=>{P!==void 0&&(P=P[D])}),R(P)},[w,t]);const O=m.useMemo(()=>f||b,[f,b]);console.log(O),m.useEffect(()=>{x(t,_(t))},[E,t,_,x]),m.useEffect(()=>{w.isSubmitted&&k(!0)},[w]);const $=S!==void 0;return y.jsx(y.Fragment,{children:y.jsxs(e,{label:n??"",required:u,disabled:O,hidden:d,withoutLabel:h,isInvalid:$,hint:g,className:p,children:[y.jsxs(Tr.Select,{size:o,...v(t,{setValueAs:A=>a?A==null||A===""?null:parseInt(A,10):A==null||A===""?null:A,onChange:()=>{r&&r.forEach(A=>x(A,null,{shouldDirty:!0,shouldValidate:M}))}}),isInvalid:$,hidden:d,disabled:O,className:"w-100",children:[y.jsx("option",{value:""}),E.map(A=>y.jsx("option",{value:A.id??"",children:A.name},A.id))]}),s&&T(t)&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(rc,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Xs,{})})}),S&&y.jsx(Ru,{message:S.message})]})})},Vg=({InputContainer:e=ic,formField:t,label:n,resetsFields:r,size:i,showClearIcon:a,clearValue:o,required:s,hidden:c,disabled:l,rows:u,withoutLabel:d,customFormControlProps:f,minLength:h,maxLength:g,hint:p,onChange:v,className:w})=>{const{register:_,formState:x,setValue:T,watch:b}=gn.useFormContext(),S=$u({falseIfNotInit:!0}),[R,M]=m.useState(void 0),[k,E]=m.useState(!1),C=m.useCallback(()=>{const P=o??null;T(t,(P==null?void 0:P.toString())??"",{shouldDirty:!0,shouldValidate:k})},[o,T,t,k]),O=m.useCallback(()=>{const P=t.split(".");let D=x.errors;P.forEach(F=>{D!==void 0&&(D=D[F])}),M(D)},[x,t]),$=m.useMemo(()=>l||S,[l,S]);m.useEffect(()=>{O()},[O]),m.useEffect(()=>{x.isSubmitted&&E(!0)},[x]);const A=R!==void 0;return y.jsxs(e,{label:n??"",required:s,disabled:$,hidden:c,withoutLabel:d,isInvalid:A,className:w,hint:p,isForTextAreaInput:!0,children:[y.jsx(Tr.Control,{as:"textarea",size:i,..._(t,{setValueAs:P=>P==null||P===""?null:P,onChange:P=>{var D;r&&r.forEach(F=>T(F,null,{shouldDirty:!0,shouldValidate:k})),v&&v((D=P.target)!=null&&D.value?P.target.value.toString():null)}}),isInvalid:A,hidden:c,disabled:$,rows:u??2,className:"w-100",minLength:h,maxLength:g,...f}),a&&b(t)&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(rc,{color:"secondary",size:"sm",onClick:C,children:y.jsx(Xs,{})})}),R&&y.jsx(Ru,{message:R.message})]})},to=m.forwardRef(({InputContainer:e=ic,type:t,formField:n,label:r,placeholder:i,size:a,resetsFields:o,showClearIcon:s,clearValue:c,required:l,hidden:u,disabled:d,withoutLabel:f,list:h,step:g,CustomOnChangeComponent:p,noSelectOnFocus:v,minLength:w,maxLength:_,hint:x,onChange:T,className:b,autoComplete:S},R)=>{const{register:M,formState:k,setValue:E,watch:C}=gn.useFormContext(),O=$u({falseIfNotInit:!0}),[$,A]=m.useState(void 0),[P,D]=m.useState(!1),F=m.useCallback(()=>{const N=c??null;t==="number"?E(n,N!==null?Number(N):null,{shouldDirty:!0,shouldValidate:P}):E(n,(N==null?void 0:N.toString())??"",{shouldDirty:!0,shouldValidate:P})},[c,t,E,n,P]),q=m.useCallback(()=>{const N=n.split(".");let I=k.errors;N.forEach(L=>{I!==void 0&&(I=I[L])}),A(I)},[k,n]),z=m.useMemo(()=>d||O,[d,O]);m.useEffect(()=>{q()},[q]),m.useEffect(()=>{k.isSubmitted&&D(!0)},[k]);const U=$!==void 0,[G,ee]=m.useState(!1),ie=C(n),J=cm(t,ie??null,G),{ref:X,...K}=M(n,{setValueAs:N=>t==="number"?N==null||N===""?null:Number(N):N==null||N===""?null:N,onChange:N=>{var I;o&&o.forEach(L=>E(L,null,{shouldDirty:!0,shouldValidate:P})),T&&T((I=N.target)!=null&&I.value?t==="number"?Number(N.target.value)??null:N.target.value.toString():null)},onBlur:()=>ee(!1)}),re=m.useRef(null);return m.useImperativeHandle(R,()=>re.current,[re]),y.jsxs(e,{label:r??"",required:l,disabled:z,hidden:u,withoutLabel:f,isInvalid:U,hint:x,className:b,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(Tr.Control,{type:J,placeholder:i??r,size:a,onFocus:N=>{ee(!0),!v&&N.target.select()},...K,ref:N=>{X(N),re.current=N},isInvalid:U,hidden:u,disabled:z,list:h,className:"w-100",step:g,minLength:w,maxLength:_,autoComplete:S}),p&&y.jsx("div",{className:"custom-picker-button",children:p})]}),s&&C(n)&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(rc,{color:"secondary",size:"sm",onClick:F,children:y.jsx(Xs,{})})}),$&&y.jsx(Ru,{message:$.message})]})}),nb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=gn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},TC=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?nb(r.ref,n,e):r.refs&&r.refs.forEach(i=>nb(i,n,e))}},Vte=(e,t)=>{t.shouldUseNativeValidation&&TC(e,t);const n={};for(const r in e){const i=gn.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(qte(t.names||Object.keys(e),r)){const o=Object.assign({},gn.get(n,r));gn.set(o,"root",a),gn.set(n,r,o)}else gn.set(n,r,a)}return n},qte=(e,t)=>e.some(n=>n.startsWith(t+"."));var Yte=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=gn.appendErrors(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n},Vd=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return a.shouldUseNativeValidation&&TC({},a),{errors:{},values:n.raw?r:l}})}catch(l){return s(l)}return c&&c.then?c.then(void 0,s):c}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:Vte(Yte(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const Gte="_wrapper_1tb6d_1",Zte="_controls_1tb6d_16",Kte="_explorerWindow_1tb6d_20",Xte="_folderList_1tb6d_28",Qte="_fileList_1tb6d_35",Jte="_dndText_1tb6d_61",ene="_extensionIcon_1tb6d_72",Oi={wrapper:Gte,controls:Zte,explorerWindow:Kte,folderList:Xte,fileList:Qte,dndText:Jte,extensionIcon:ene},tn=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),tne="_defaultFolder_8tlxv_1",nne="_names_8tlxv_5",rne="_folderType_8tlxv_9",qf={defaultFolder:tne,names:nne,folderType:rne},SC=({isActive:e,isDefault:t,folderName:n,typeName:r})=>{const{ProjectIconComponent:i}=m.useContext(Kt);return y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[y.jsx(i,{icon:`folder${e?"-filled":""}`,className:oe("d-inline-block",t?qf.defaultFolder:"text-primary"),iconProps:{className:"d-block"},size:18}),y.jsxs("div",{className:oe("d-flex flex-column gap-0 align-items-start",qf.names),children:[y.jsx("span",{className:e?"fw-bold":"",children:n}),r?y.jsxs("span",{className:qf.folderType,children:["(",r,")"]}):null]})]})},ine=({customText:e})=>{const{reducer:[t,n]}=m.useContext(tn),r=m.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return y.jsx("li",{children:y.jsx("button",{onClick:r,type:"button",className:oe("border-0 bg-transparent"),children:y.jsx(SC,{folderName:e??"root",isActive:t.activeFolder==="root",typeName:"",isDefault:!0})})})};function ane(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const kC=()=>{const e=Eu(),{startLoading:t,stopLoading:n}=m.useContext(yu),{reducer:[,r]}=m.useContext(tn),i=m.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=m.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},one=()=>{const{reducer:[e],entityId:t,entityType:n}=m.useContext(tn),{zNumberRequired:r,zStringRequired:i}=Mu(),{createFolder:a}=kC(),o=sn.object({name:i(),documentTypeId:r()}),s=gn.useForm({resolver:Vd(o)}),c=m.useCallback(async l=>{const u={...l,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await a(u)},[a,t,n,e.activeFolder]);return{formMethods:s,onSubmit:c}},sne=({handleClose:e})=>{var o;const{texts:{documents:t}}=m.useContext(Kt),{reducer:[n],entityType:r}=m.useContext(tn);if(ane(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:i,formMethods:a}=one();return y.jsx(y.Fragment,{children:y.jsx(gn.FormProvider,{...a,children:y.jsxs(Tr,{onSubmit:a.handleSubmit(i),children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsx(Mn.Title,{children:t.createFolderInFolder(((o=n.foldersMap.get(n.chosenFolderId))==null?void 0:o.name)??r)})}),y.jsxs(Mn.Body,{children:[y.jsx(to,{formField:"name",type:"text",label:t.name,required:!0}),y.jsx(Hg,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),y.jsx(Qi,{type:"submit",children:t.createFolder})]})]})})})},EC=100,cne=(e,t)=>{const n=Eu(),{startLoading:r,stopLoading:i}=m.useContext(yu),{loadDocuments:a}=m.useContext(tn),{zStringRequired:o,zString:s,zNumberRequired:c,zDateRequired:l}=Mu(),u=sn.object({name:o(),description:s(),validToDate:l(),documentTypeId:c()}),d=gn.useForm({resolver:Vd(u),defaultValues:{...e,validToDate:xu(e.validToDate)}}),f=m.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await a(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,a,r,i]);return{formMethods:d,onSubmit:f}},lne=({handleClose:e,file:t})=>{const{texts:{documents:n}}=m.useContext(Kt),{reducer:[r]}=m.useContext(tn),{formMethods:i,onSubmit:a}=cne(t,e);return y.jsxs(y.Fragment,{children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsx(Mn.Title,{children:n.editFileProperties})}),y.jsx(gn.FormProvider,{...i,children:y.jsxs(Tr,{onSubmit:i.handleSubmit(a),children:[y.jsxs(Mn.Body,{children:[y.jsx(to,{formField:"name",type:"text",label:n.name,required:!0}),y.jsx(to,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),y.jsx(Hg,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),y.jsx(Vg,{formField:"description",label:n.description,customFormControlProps:{maxLength:EC}})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),y.jsx(Qi,{type:"submit",children:n.save})]})]})})]})},une=({handleClose:e})=>{const{reducer:[t]}=m.useContext(tn),n=m.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),y.jsx(y.Fragment,{})):y.jsx(lne,{file:n,handleClose:e})},dne=()=>{const{reducer:[e,t]}=m.useContext(tn),n=m.useCallback(()=>{t({type:"close-modal"})},[t]),r=m.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(sne,{handleClose:n});case"edit-file-properties":return y.jsx(une,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Mn,{show:e.state==="openned-modal",onHide:n,children:r})},rb="documents_drag_image_element",qc="drop-container-highlight-class",ib="data-drop-container-id",ab="data-draggable-id",fne=()=>{const e=document.getElementById(rb);if(e!==null)return e;const t=document.createElement("div");return t.id=rb,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},qg=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=m.useContext(tn),n=m.useCallback(l=>{var u;if(t.markedFiles.length>0){const d=fne();d.innerHTML=t.markedFiles.length.toString(),l.dataTransfer.setDragImage(d,0,0),l.dataTransfer.clearData(),l.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"}else l.dataTransfer.setData("application/json",JSON.stringify([parseInt(((u=l.currentTarget.attributes.getNamedItem(ab))==null?void 0:u.nodeValue)??"",10)])),l.dataTransfer.dropEffect="none",l.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=m.useCallback(l=>({[ab]:l,draggable:t.markedFiles.length===0||t.markedFiles.includes(l),onDragStart:n}),[n,t.markedFiles]),i=m.useCallback(l=>u=>{var h;u.preventDefault(),u.stopPropagation(),u.currentTarget.classList.remove(qc);const d=u.dataTransfer.files;if(l&&d&&d.length>0){l(d);return}const f=u.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),p=parseInt(((h=u.currentTarget.attributes.getNamedItem(ib))==null?void 0:h.value)??"",10);e(p,g)}},[e]),a=m.useCallback(()=>l=>{l.preventDefault(),l.stopPropagation()},[]),o=m.useCallback(l=>u=>{u.preventDefault(),u.stopPropagation(),u.dataTransfer.types.includes("Files")?(u.dataTransfer.dropEffect="copy",u.currentTarget.classList.add(qc)):!l&&u.dataTransfer.types.includes("application/json")?(u.dataTransfer.dropEffect="move",u.currentTarget.classList.add(qc)):u.dataTransfer.dropEffect="none"},[]),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.target===l.currentTarget&&(l.dataTransfer.dropEffect="none",l.currentTarget.classList.remove(qc))},[]),c=m.useCallback((l,u)=>({onDrop:i(u==null?void 0:u.onFilesDrop),onDragOver:a(),onDragEnter:o(u==null?void 0:u.ignoreInner),onDragLeave:s,[ib]:l}),[i,a,o,s]);return{getDraggableProps:r,getDropProps:c}};function OC(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const a=n.get(i);if(a&&OC(a,t,n))return!0}return!1}function hne(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function MC(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${MC(n.parentId,t)}/${n.name}`}const pne=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=Mu();return{formSchema:m.useMemo(()=>sn.object({validToDate:t(),description:e(),name:e(),documentTypeId:n()}),[n,e,t])}},Yg=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=m.useContext(Kt),{reducer:[i],apiActions:{uploadFiles:a}}=m.useContext(tn),o=m.useMemo(()=>[...t],[t]),s=m.useMemo(()=>n??i.activeFolder,[i.activeFolder,n]),c=m.useMemo(()=>s==="root"?void 0:i.foldersMap.get(s),[s,i.foldersMap]),{formSchema:l}=pne(),u=gn.useForm({resolver:Vd(l),defaultValues:{validToDate:xu(new Date().toISOString()),documentTypeId:(f=i.documentTypes.find(h=>{var g;return h.name===((g=i.foldersMap.get(s))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=m.useCallback(async h=>{s!=="root"&&(await a(t,{folderId:s,...h}),e())},[t,e,s,a]);return y.jsxs(Mn,{show:!0,onHide:e,children:[y.jsx(Mn.Header,{closeButton:!0,children:y.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),y.jsx("ul",{children:o.map((h,g)=>y.jsxs("li",{children:[h.name," - ",Va(h.size)]},`${h.name}-${g}`))})]})}),y.jsx(gn.FormProvider,{...u,children:y.jsxs(Tr,{onSubmit:u.handleSubmit(d),children:[y.jsxs(Mn.Body,{children:[y.jsx(Hg,{formField:"documentTypeId",label:r.documentType,options:i.documentTypes,isNumber:!0,required:!0}),y.jsx(to,{formField:"validToDate",label:r.validSince,type:"date",required:!0}),o.length===1?y.jsx(to,{formField:"name",label:r.name,type:"text"}):null,y.jsx(Vg,{formField:"description",label:r.description,customFormControlProps:{maxLength:EC}})]}),y.jsxs(Mn.Footer,{children:[y.jsx(Qi,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),y.jsx(Qi,{type:"submit",children:r.upload})]})]})})]})},mne="_folder_1cktt_1",gne="_collapseArrowDiv_1cktt_8",vne="_button_1cktt_20",yne="_nestedList_1cktt_24",bne="_numberOfFiles_1cktt_31",xne="_collapseArrow_1cktt_8",Mi={folder:mne,collapseArrowDiv:gne,button:vne,nestedList:yne,numberOfFiles:bne,collapseArrow:xne},$C=({dirId:e,writePermissions:t})=>{const{ProjectIconComponent:n}=m.useContext(Kt),{reducer:[r,i]}=m.useContext(tn),{getDropProps:a}=qg(),[o,s]=m.useState(null),[c,l]=m.useState(!0),u=m.useMemo(()=>{const p=r.foldersMap.get(e);if(p===void 0)throw new Error(`tried to get dir with id ${e}`);return p},[e,r.foldersMap]),d=m.useCallback(()=>{r.activeFolder!=="root"&&OC(u,r.activeFolder,r.foldersMap)&&i({type:"select-folder",folderId:e}),l(!0)},[e,u,i,r.activeFolder,r.foldersMap]),f=m.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),h=m.useCallback(()=>{i({type:"select-folder",folderId:e})},[e,i]),g=m.useMemo(()=>r.filteredFiles.filter(p=>p.folderId===e&&p.archive===!1).length,[e,r.filteredFiles]);return y.jsxs(y.Fragment,{children:[y.jsxs("li",{className:Mi.folder,children:[y.jsx("div",{className:Mi.collapseArrowDiv,children:f?c?y.jsx("button",{onClick:()=>l(!1),type:"button",children:y.jsx(n,{icon:"chevron-right",iconProps:{className:Mi.collapseArrow}})}):y.jsx("button",{onClick:d,type:"button",children:y.jsx(n,{icon:"chevron-down",iconProps:{className:Mi.collapseArrow}})}):null}),y.jsx("button",{className:oe(Mi.button),onClick:h,type:"button",...t&&!u.onlyRead?a(e,{onFilesDrop:p=>s(p)}):{},children:y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[y.jsx(SC,{isDefault:u.isDefault,folderName:u.name,typeName:u.defaultDocType??"",isActive:e===r.activeFolder}),g>0?y.jsxs("span",{className:Mi.numberOfFiles,children:["[",g,"]"]}):void 0]})}),f?c?null:y.jsx("ul",{className:Mi.nestedList,children:u==null?void 0:u.childrenIds.map(p=>y.jsx($C,{dirId:p,writePermissions:t},p))}):void 0]}),o!==null?y.jsx(Yg,{files:o,handleClose:()=>s(null),targetFolderId:e}):null]})},_ne="_wrapper_1th2u_1",wne="_downloadButton_1th2u_9",gp={wrapper:_ne,downloadButton:wne};function Cne(e){return tt({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function Tne(e){return tt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function Sne(e){return tt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23 1.5q.41 0 .7.3.3.29.3.7v19q0 .41-.3.7-.29.3-.7.3H7q-.41 0-.7-.3-.3-.29-.3-.7V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h5V2.5q0-.41.3-.7.29-.3.7-.3zM6 13.28l1.42 2.66h2.14l-2.38-3.87 2.34-3.8H7.46l-1.3 2.4-.05.08-.04.09-.64-1.28-.66-1.29H2.59l2.27 3.82-2.48 3.85h2.16zM14.25 21v-3H7.5v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3H7.5v3zm8.25 15v-3h-6.75v3zm0-4.5v-3.75h-6.75v3.75zm0-5.25V7.5h-6.75v3.75zm0-5.25V3h-6.75v3Z"},child:[]}]})(e)}function kne(e){return tt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z"},child:[]}]})(e)}const Ene="_excel_18ggp_1",One="_word_18ggp_5",Mne="_pdf_18ggp_9",$ne="_image_18ggp_13",Yc={excel:Ene,word:One,pdf:Mne,image:$ne},AC=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return y.jsx("span",{className:oe(t,Yc.image),children:y.jsx(Tne,{...n})});case"XLS":case"XLSX":case"CSV":return y.jsx(Sne,{className:oe(t,Yc.excel),...n});case"DOC":case"DOCM":case"DOCX":return y.jsx(kne,{className:oe(t,Yc.word),...n});case"PDF":return y.jsx(EA,{className:oe(t,Yc.pdf),...n});default:return y.jsx(Cne,{})}},Ane=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=m.useContext(Kt),{apiActions:{downloadFile:n},reducer:[r]}=m.useContext(tn),i=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),a=m.useCallback((s,c,l)=>s?_2(c??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:d=>{d.stopPropagation(),n(l,!0)},children:s}):s:"",[n]);return{columns:m.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...i?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:s=>{const c=s.row.original.fileExtension,l=s.row.original.id;return a(y.jsx(AC,{fileExtension:c,className:gp.extensionIcon,size:18}),c??"",l)},width:36,align:"center",filterType:"none",noSort:!0},{fieldName:"name",caption:t.name,type:"string",valueFormat:s=>{const c=s.row.original.name,l=s.row.original.fileExtension,u=s.row.original.id;return a(c??"",l??"",u)}},{fieldName:"description",caption:t.description,type:"string"},{fieldName:"fileExtension",caption:t.fileExtension,type:"string",filterType:"select",width:50},{fieldName:"--downloadButton",caption:"",type:"number",filterType:"none",width:38,align:"center",noSort:!0,valueFormat:s=>y.jsx(Au,{className:gp.downloadButton,onClick:()=>n(s.row.original.id,!1),children:y.jsx(e,{icon:"file-download",size:18})})},{fieldName:"documentTypeName",caption:t.documentType,type:"string",filterType:"select"},{fieldName:"validToDate",caption:t.validSince,type:"date"},{fieldName:"size",caption:t.size,type:"number",valueFormat:({cell:{value:s}})=>s!==void 0?Va(s*1024*1024):"",filterType:"none"},{fieldName:"archive",caption:t.archived,type:"boolean",filterType:"select",valueFormat:({cell:{value:s}})=>s?t.yes[0]:t.no[0]}],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,i,a])}},Rne=({BnfTableComponent:e,tableIdentifier:t,writePermissions:n})=>{const{reducer:[r,i]}=m.useContext(tn),{columns:a}=Ane(),o=m.useCallback(h=>{i({type:"mark-files-by-action",setStateAction:h})},[i]),s=m.useMemo(()=>r.activeFolder==="root",[r.activeFolder]),c=m.useMemo(()=>{var h;return r.activeFolder==="root"?!1:((h=r.foldersMap.get(r.activeFolder))==null?void 0:h.onlyRead)??!1},[r.activeFolder,r.foldersMap]),l=m.useMemo(()=>({enabled:n&&!s,idField:"id",selectedRows:r.markedFiles,setSelectedRows:o}),[s,o,r.markedFiles,n]),u=m.useMemo(()=>r.activeFolder==="root"?r.filteredFiles:r.filteredFiles.filter(h=>h.folderId===r.activeFolder),[r.activeFolder,r.filteredFiles]),{getDraggableProps:d}=qg(),f=m.useCallback(h=>n===!1||c?{}:d(h.id),[d,c,n]);return y.jsx("div",{className:oe(gp.wrapper),children:y.jsx(e,{data:u,columnsDef:a,rowSelection:l,useScrollableContainer:!0,getRowProps:f,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},r.activeFolder)})},jne="_wrapper_1q562_1",Pne="_divButtons_1q562_10",Yf={wrapper:jne,divButtons:Pne},Ine="_wrapper_1bpdd_1",Dne="_fileInput_1bpdd_5",ob={wrapper:Ine,fileInput:Dne},Nne=({entityId:e,entityType:t,children:n,disabled:r})=>{const i=m.useRef(null),[a,o]=m.useState(null),{reducer:[s]}=m.useContext(tn),c=f=>{var h;(((h=f.target.files)==null?void 0:h.length)??0)>0&&o(f.target.files)},l=m.useCallback(()=>{o(null),i.current&&(i.current.value="")},[]),u=m.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=m.useMemo(()=>r||s.activeFolder==="root",[r,s.activeFolder]);return y.jsxs("div",{className:ob.wrapper,children:[y.jsx("label",{htmlFor:u,className:oe("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),y.jsx("input",{id:u,type:"file",multiple:!0,onChange:c,className:ob.fileInput,ref:i,disabled:d}),a!==null?y.jsx(Yg,{handleClose:l,files:a}):void 0]})},dr=({children:e,onClick:t,className:n,disabled:r=!1})=>y.jsx(Au,{onClick:t,className:n,disabled:r,children:e}),Lne=({className:e,entityId:t,entityType:n})=>{var R,M;const{texts:{documents:r}}=m.useContext(Kt),{prompt:i}=r2(),{confirm:a}=om(),{apiActions:o,reducer:[s,c]}=m.useContext(tn),{deleteFiles:l,renameFiles:u,downloadAsZip:d,archivateFiles:f,deleteDirectory:h}=o,{renameFolder:g}=kC(),p=m.useMemo(()=>s.markedFiles.length===0,[s.markedFiles.length]),v=m.useMemo(()=>s.markedFiles.length===1,[s.markedFiles.length]),w=m.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFolderName,{input:"input"});k!==null&&g(s.activeFolder,k)},[r.enterNewFolderName,i,g,s.activeFolder]),_=m.useCallback(async()=>{if(s.activeFolder==="root")return;const k=await i(r.enterNewFileName,{input:"input"});k!==null&&u(k)},[r.enterNewFileName,i,u,s.activeFolder]),x=m.useMemo(()=>s.activeFolder==="root",[s.activeFolder]),T=m.useMemo(()=>{var k;return s.activeFolder==="root"?!1:((k=s.foldersMap.get(s.activeFolder))==null?void 0:k.onlyRead)??!1},[s.activeFolder,s.foldersMap]),b=m.useMemo(()=>s.markedFiles.every(k=>{var E;return((E=s.constantFiles.find(C=>C.id===k))==null?void 0:E.archive)===!1}),[s.constantFiles,s.markedFiles]),S=m.useMemo(()=>s.markedFiles.every(k=>{var E;return((E=s.constantFiles.find(C=>C.id===k))==null?void 0:E.archive)===!0}),[s.constantFiles,s.markedFiles]);return y.jsx("div",{className:oe(e,Yf.wrapper,s.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:s.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Yf.divButtons,children:[y.jsx(Nne,{entityId:t,entityType:n,disabled:T,children:r.uploadFiles}),y.jsx(dr,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:s.activeFolder??"root"})},disabled:T,children:r.createFolder}),y.jsx(dr,{disabled:s.activeFolder==="root"||((R=s.foldersMap.get(s.activeFolder))==null?void 0:R.isDefault),onClick:async()=>{var E;await a(`${r.deleteFolder} ${(E=s.foldersMap.get(s.activeFolder))==null?void 0:E.name}?`)&&h(s.activeFolder)},children:r.deleteFolder}),y.jsx(dr,{disabled:s.activeFolder==="root"||((M=s.foldersMap.get(s.activeFolder))==null?void 0:M.isDefault),onClick:w,children:r.renameFolder})]}),!x&&!T?y.jsxs("div",{className:Yf.divButtons,children:[y.jsx(dr,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!v,children:r.editFileProperties}),y.jsx(dr,{onClick:async()=>{await a(r.confirmDeleteFile(s.markedFiles.length))&&l(s.markedFiles)},disabled:p,children:r.delete}),S?y.jsx(dr,{onClick:async()=>{await a(r.confirmDearchiveFile(s.markedFiles.length))&&await f(!0)},disabled:p,children:r.dearchivate}):y.jsx(dr,{onClick:async()=>{await a(r.confirmArchiveFile(s.markedFiles.length))&&await f()},disabled:p||!b,children:r.archivate}),y.jsx(dr,{onClick:_,disabled:p,children:r.rename}),y.jsx(dr,{onClick:d,disabled:p,children:r.downloadZip})]}):null]}):s.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(dr,{onClick:()=>c({type:"return-from-folder-choosing"}),className:oe("ignore-dim","body-background-color"),children:r.back})}):void 0})},Fne=({file:e})=>{const{confirm:t}=om(),{reducer:[n],apiActions:{downloadFile:r}}=m.useContext(tn),{texts:{documents:i}}=m.useContext(Kt),a=m.useCallback(async()=>{await t(i.confirmFileDownload(e.name,e.size==null?void 0:Va(e.size*1024*1024)))&&r(e.id)},[t,i,r,e.id,e.name,e.size]);return y.jsxs(gu,{action:!0,onClick:a,children:[y.jsx(_n,{variant:"body",className:"text-muted",children:MC(e.folderId,n.foldersMap)}),y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[y.jsx(_n,{variant:"body",children:e.name}),y.jsx(_n,{variant:"body",children:e.size==null?null:Va(e.size*1024*1024)})]})]})},Bne="_typeSelect_m3myk_1",Une={typeSelect:Bne},Wne=()=>{const{reducer:[e]}=m.useContext(tn),{texts:{documents:t}}=m.useContext(Kt),[n,r]=m.useState(""),[i,a]=m.useState(null),o=m.useMemo(()=>{const c=new Map;return e.filteredFiles.forEach(u=>{c.get(u.documentTypeId)===void 0&&c.set(u.documentTypeId,u.documentTypeName)}),[{id:null,name:t.all},...Array.from(c).map(u=>({id:u[0],name:u[1]}))]},[t.all,e.filteredFiles]),s=m.useMemo(()=>e.filteredFiles.filter(c=>Jp(c.name,n)&&(i===null||c.documentTypeId===i)),[n,i,e.filteredFiles]);return y.jsxs("div",{className:"d-flex h-100 flex-column",children:[y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[y.jsx(M_,{options:o,label:t.documentType,value:i,onChange:a,isNumber:!0,size:"sm",className:Une.typeSelect}),y.jsx(k_,{label:t.search,type:"text",value:n,onChange:c=>r(c===null?"":c),className:"flex-grow-1",size:"sm"})]}),y.jsx($x,{className:"overflow-y-auto",children:s.map(c=>y.jsx(Fne,{file:c},c.id))})]})};function zne(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function Hne(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,zne(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function sb(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function Vne(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const qne=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(Kt),{startLoading:a,stopLoading:o}=m.useContext(yu),{addNotification:s}=ku(),c=Eu(),l=m.useCallback(async x=>{a("documentList");try{const b=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:R}=Hne(b.folders),M=Vne(b.documents,S);t({type:"load-data",files:M,foldersMap:S,rootFolderIds:R,setActiveFolder:x})}finally{o("documentList")}},[c,t,r,n,a,o]);m.useEffect(()=>{l(!0)},[l]);const u=m.useCallback(async()=>{a("documents-types");try{const x=await c.get(`/documents/types/${n}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"load-document-types",documentTypes:x.data})}finally{o("documents-types")}},[c,t,n,a,o]);m.useEffect(()=>{u()},[u]);const d=m.useCallback(async(x,T)=>{const b=T??e.markedFiles;a("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${x}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:x}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(x).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,c,t,s,i,o]),f=m.useCallback(async x=>{const T=x??e.markedFiles;a("documentsFilesDelete");try{const b=await c.delete(`/documents/delete?${ph(T,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:T}),s(i.fileDeleteSuccessful(T.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,c,t,s,i,o]),h=m.useCallback(async x=>{var T;if(!(x==="root"||(T=e.foldersMap.get(x))!=null&&T.isDefault)){a("documentsFolderDelete");try{const b=await c.delete(`/documents/folder/${x}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:x}),s(i.folderDeleteSuccessful(e.foldersMap.get(x).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,c,t,s,i,o]),g=m.useCallback(async x=>{a("documentsRename");try{const T=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:x});if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);l()}finally{o("documentsRename")}},[a,c,e.markedFiles,l,o]),p=m.useCallback(async x=>{a("documents-archivate");try{const T=await c.put(`/documents/${x?"dearchive":"archive"}`,e.markedFiles);if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!x}}),s((x?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{o("documents-archivate")}},[a,c,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),v=m.useCallback(async()=>{var T;if(e.activeFolder==="root")return;const x=e.markedFiles.length;s(i.downloadAsZip(x),"info"),a("documents-ZIP_download");try{const b=await c.get(`/documents/download-zip?${ph(e.markedFiles,"documentIds")}`,{responseType:"blob"});_l(b.data,(((T=e.foldersMap.get(e.activeFolder))==null?void 0:T.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,c,o]),w=m.useCallback(async(x,T)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const b=await c.get(`/documents/${x}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find(M=>M.id===x),R=`${(S==null?void 0:S.name)??x.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;_l(b.data,R,T)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,c,e.constantFiles,o]),_=m.useCallback(async(x,T)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:x,...T}),await l()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,c,l,o]);return{loadDocuments:l,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:g,archivateFiles:p,downloadAsZip:v,downloadFile:w,uploadFiles:_}},Yne=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:sb(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(a=>a!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(a=>{i.set(a,{...e.foldersMap.get(a),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(c=>c!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=sb(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},Gne=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=m.useReducer(Yne,e);return[t,n]},Zne=m.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:i,customRootFolderName:a,writePermissions:o=!0,...s})=>{const{isMobile:c}=nc(),{ProjectIconComponent:l,texts:{documents:u}}=m.useContext(Kt),[d,f]=Gne(),[h,g]=m.useState(null),{loadDocuments:p,...v}=qne([d,f],e,t),w=m.useMemo(()=>({entityId:t,entityType:e,apiActions:v,loadDocuments:p,reducer:[d,f]}),[t,e,v,p,d,f]),{getDropProps:_}=qg();return c?y.jsx(tn.Provider,{value:w,children:y.jsx(Wne,{})}):y.jsx("div",{...s,className:oe(Oi.wrapper,n),onDragOver:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},onDragEnter:x=>{x.dataTransfer.dropEffect="none",x.stopPropagation(),x.preventDefault()},children:y.jsxs(tn.Provider,{value:w,children:[y.jsx("div",{className:oe(d.state==="folder-choosing"?"dim-others":void 0,Oi.explorerWindow),children:y.jsxs("ul",{className:Oi.folderList,children:[y.jsx(ine,{customText:a??e}),d.rootFolderIds.map(x=>y.jsx($C,{dirId:x,writePermissions:o},x))]})}),y.jsxs("div",{className:oe(Oi.explorerWindow,Oi.fileList),...o&&hne(d)?_(d.activeFolder,{onFilesDrop:x=>g(x),ignoreInner:!0}):{},children:[y.jsxs("div",{className:Oi.dndText,children:[y.jsx(l,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),y.jsx("span",{children:u.dropToUpload})]}),y.jsx(Rne,{tableIdentifier:i,BnfTableComponent:r,writePermissions:o},(d.activeFolder==="root").toString())]}),o?y.jsx(Lne,{className:Oi.controls,entityType:e,entityId:t}):null,y.jsx(dne,{}),h!==null?y.jsx(Yg,{files:h,handleClose:()=>g(null),targetFolderId:d.activeFolder==="root"?void 0:d.activeFolder}):null]})})}),Kne=m.createContext(void 0);exports.AbstractModalHeader=Nx;exports.Alert=gm;exports.ApprovalState=nO;exports.AuthContext=bu;exports.AvatarIcon=d_;exports.Backdrop=C_;exports.BaseModal=Rx;exports.BootstrapModalManager=jx;exports.Button=Ap;exports.Col=jp;exports.ConfirmContext=t2;exports.ContextButton=Au;exports.CustomSelectInput=M_;exports.DelegationContext=l2;exports.Documents=Zne;exports.Dropdown=dm;exports.Dropdown$1=Ha;exports.DropdownDivider=f_;exports.DropdownItem=ja;exports.DropdownToggle=um;exports.ENTERED=ri;exports.ENTERING=Ir;exports.EXITED=ni;exports.EXITING=ul;exports.FaMinus=TA;exports.FaPlus=SA;exports.FaSearch=kA;exports.Fade=di;exports.FileExtensionIcon=AC;exports.FileUploadContextButton=P$;exports.FloatingLabelInput=ju;exports.Form=Tr;exports.FormCheckInput=mu;exports.FormControl=bx;exports.FormDisabledContext=l_;exports.FormSelect=zp;exports.FromToDatePickerDropdownToggle=OA;exports.HelmetContext=c_;exports.HookFormTextAreaInput=Vg;exports.HookFormTextInput=to;exports.HtmlTooltip=h2;exports.IconButton=rc;exports.Ie=tO;exports.InputAnchorContainer=S_;exports.InvalidFeedback=Ru;exports.ListGroup=$x;exports.ListGroupItem=gu;exports.LoadingContext=yu;exports.LoginState=s2;exports.LuminusComponentsContext=Kt;exports.MdArrowRight=zk;exports.MdCheck=Hk;exports.MdCircle=Wk;exports.MdClear=Xs;exports.MdOutlineAddCircleOutline=Xk;exports.MdOutlineArrowOutward=Vk;exports.MdOutlineCameraAlt=rE;exports.MdOutlineChevronRight=sE;exports.MdOutlineClose=Jx;exports.MdOutlineDelete=Xx;exports.MdOutlineEdit=iE;exports.MdOutlineExpand=Yk;exports.MdOutlineFileUpload=Qx;exports.MdOutlineKeyboardArrowLeft=eE;exports.MdOutlineKeyboardArrowRight=tE;exports.MdOutlineKeyboardDoubleArrowLeft=nE;exports.MdOutlineMenu=cE;exports.MdOutlinePhotoLibrary=aE;exports.MdOutlineStar=dE;exports.MdOutlineSubdirectoryArrowRight=uE;exports.MdSave=Uk;exports.MdSaveAs=Bk;exports.MdSearch=Fk;exports.MiniDetailWrapper=O_;exports.Modal=Mn;exports.ModalContext=Yp;exports.NoInputContainer=T_;exports.Oe=H;exports.PageContainer=Hte;exports.PrimaryButton=Qi;exports.PromptContext=n2;exports.Re=Rte;exports.ResponsiveContextDropdown=w_;exports.ResponsiveContextDropdownItem=pm;exports.RowLabelInput=ic;exports.ShortcutLinksContext=Kne;exports.SideContentBar=wC;exports.SimpleDropdownToggle=lm;exports.SimplePicker=p_;exports.SimpleTooltip=Qp;exports.Spinner=Kp;exports.TextInput=k_;exports.TransitionWrapper=Ob;exports.Typography=_n;exports.UserAvatarToggle=q$;exports.UserContext=c2;exports._=cG;exports._extends=ll;exports._inheritsLoose=xb;exports._objectWithoutPropertiesLoose=_p;exports.a=h_;exports.addLeadingZeros=wt;exports.atobUtf8=m2;exports.axios=Ut;exports.buildEmployeeNameString=bO;exports.buildOrgUnitString=xO;exports.buildVehicleNameString=yO;exports.cancelToken=S8;exports.capitalizeFirstLetter=vO;exports.classNames=oe;exports.classes=u_;exports.compareDate=CO;exports.compareDateTime=TO;exports.constructFrom=Ur;exports.context=hu;exports.differenceInCalendarDays=pb;exports.divWithClassName=kp;exports.extractErrorsFromResponse=Xp;exports.extractFilename=b2;exports.extractPermissionsFromResponse=f2;exports.fixNameIdNulls=u2;exports.format=xp;exports.formatDate=mO;exports.formatDateTime=gO;exports.formatFileSize=Va;exports.getDateString=$O;exports.getDaysDifference=SO;exports.getDefaultExportFromCjs=Ht;exports.getFirstDayOfMonth=v2;exports.getFirstDayOfOffsetMonth=kO;exports.getFirstDayOfYear=OO;exports.getLastDayOfMonth=y2;exports.getLastDayOfOffsetMonth=EO;exports.getLastDayOfYear=MO;exports.getSharedManager=Px;exports.getTimezoneOffsetInMilliseconds=Kf;exports.hasOnlyNullValues=d2;exports.hookFormSetServerErrors=iO;exports.invariant=Xf;exports.isExtensionOpenable=_2;exports.isFileOpenable=x2;exports.isISODate=g2;exports.isPast=vb;exports.isPrimitive=xl;exports.isValidDate=wO;exports.joinStrings=fs;exports.jsxRuntimeExports=y;exports.millisecondsInHour=ru;exports.millisecondsInMinute=yp;exports.millisecondsInWeek=vp;exports.msToStartOfNextDay=_O;exports.parseISO=au;exports.pe=$X;exports.replaceNullValuesOnlyObjectsWithNulls=rO;exports.requireReactIs=Cp;exports.saveFile=_l;exports.saveFileFromResponse=jO;exports.secondsInDay=bp;exports.secondsInHour=lb;exports.secondsInMinute=oT;exports.secondsInMonth=db;exports.secondsInQuarter=cT;exports.secondsInWeek=sT;exports.secondsInYear=ub;exports.shortenText=pO;exports.startOfDay=Zf;exports.startOfWeek=La;exports.stringContains=mh;exports.stringSearchWithin=Jp;exports.stringStartsWith=w2;exports.style=li;exports.t=Vd;exports.toDate=Sn;exports.transitionEndListener=kb;exports.triggerBrowserReflow=Eb;exports.trimIsoDate=xu;exports.truncateText=p2;exports.urlfyArray=ph;exports.useAuth=Y2;exports.useAxios=Eu;exports.useBootstrapBreakpoints=_b;exports.useBootstrapMinBreakpoint=wb;exports.useBootstrapPrefix=it;exports.useClickOutside=i_;exports.useClipboard=s_;exports.useCol=Nb;exports.useConfirm=om;exports.useCookies=am;exports.useEventCallback=Bt;exports.useFormControlType=cm;exports.useFormDisabledContext=$u;exports.useIsomorphicEffect=ss;exports.useKeyPress=o_;exports.useNotifications=ku;exports.usePermissions=a_;exports.usePrompt=r2;exports.useSwipeable=mm;exports.useWindowSize=nc;exports.useZodSchemaTypes=Mu;exports.z=sn;