react-luminus-components 2.0.30 → 2.0.31

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.
Files changed (52) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +44 -44
  3. package/dist/FormDisabledProvider-DFCB4DVo.cjs +1 -0
  4. package/dist/{FormDisabledProvider-BdVAJaqG.js → FormDisabledProvider-DYgNxt_V.js} +1 -1
  5. package/dist/ShortcutLinksContext-BGLfiUxG.cjs +285 -0
  6. package/dist/{nivo-bar-BsmDtzXw.js → ShortcutLinksContext-Bu12oYeg.js} +20928 -20928
  7. package/dist/components/common/NotificationCenter/Actions/NotificationActions.d.ts +23 -0
  8. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/ActionTemplates.d.ts +1 -1
  9. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/Recipients/NotificationRecipients.d.ts +1 -1
  10. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/modals/NotificationTargetModal.d.ts +1 -1
  11. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +3 -3
  12. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationActionAddModal.d.ts +1 -1
  13. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateAddModal.d.ts +2 -2
  14. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateEditModal.d.ts +2 -2
  15. package/dist/components/common/NotificationCenter/NotifStyles/NotifStyles.d.ts +8 -0
  16. package/dist/components/common/NotificationCenter/Users/NotificationUsers.d.ts +12 -0
  17. package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/EmployeeNotifTable/EmployeeNotifHistoryTable.d.ts +2 -2
  18. package/dist/components/{NotifCenter → common/NotificationCenter}/index.d.ts +1 -1
  19. package/dist/components/common/index.d.ts +3 -0
  20. package/dist/contexts.cjs.js +1 -1
  21. package/dist/contexts.es.js +150 -150
  22. package/dist/hooks.cjs.js +1 -1
  23. package/dist/hooks.es.js +44 -44
  24. package/dist/layout.cjs.js +1 -1
  25. package/dist/layout.es.js +214 -208
  26. package/dist/{localStorageUtils-D2opn367.js → localStorageUtils-CZ4HDRzi.js} +2 -2
  27. package/dist/main.cjs.js +15 -15
  28. package/dist/main.d.ts +1 -3
  29. package/dist/main.es.js +13096 -13062
  30. package/dist/style.css +1 -1
  31. package/dist/{useIsFormDirty-Pdd8CdTQ.js → useIsFormDirty-D61PZNiu.js} +5 -5
  32. package/dist/useIsFormDirty-DQrsSiIC.cjs +1 -0
  33. package/dist/{useLocalStorageState-Byzo2ssr.js → useLocalStorageState-C9vgpAvX.js} +30 -30
  34. package/dist/useLocalStorageState-DnWPyDKJ.cjs +1 -0
  35. package/dist/utils.cjs.js +1 -1
  36. package/dist/utils.es.js +17 -17
  37. package/dist/variables.scss +165 -165
  38. package/package.json +128 -128
  39. package/dist/FormDisabledProvider-DyO7R2kE.cjs +0 -1
  40. package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +0 -22
  41. package/dist/components/NotifCenter/NotifStyles/NotifStyles.d.ts +0 -10
  42. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleFormSchema.d.ts +0 -20
  43. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleTableColumns.d.ts +0 -7
  44. package/dist/components/NotifCenter/Users/NotificationUsers.d.ts +0 -10
  45. package/dist/nivo-bar-CdrSgzV1.cjs +0 -285
  46. package/dist/useIsFormDirty-CzwHpad1.cjs +0 -1
  47. package/dist/useLocalStorageState-CbsbIUSp.cjs +0 -1
  48. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/index.d.ts +0 -0
  49. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/index.d.ts +0 -0
  50. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/hooks/useNotifTemplateUtils.d.ts +0 -0
  51. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/types/NotificationKindFullModel.d.ts +0 -0
  52. /package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/index.d.ts +0 -0
@@ -0,0 +1,285 @@
1
+ "use strict";const y=require("react/jsx-runtime"),v=require("react"),us=require("react-router"),wT=require("@azure/msal-browser"),d1=require("@azure/msal-react"),Un=require("react-dom"),sn=require("react-hook-form");require("react-flexmonster");function _T(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 fe=_T(v);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vp={exports:{}},Dh={};/**
2
+ * @license React
3
+ * react-compiler-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var f1;function CT(){if(f1)return Dh;f1=1;var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Dh.c=function(t){return e.H.useMemoCache(t)},Dh}var Ih={};/**
10
+ * @license React
11
+ * react-compiler-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var h1;function ST(){return h1||(h1=1,process.env.NODE_ENV!=="production"&&function(){var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Ih.c=function(t){var n=e.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
+ 2. You might be breaking the Rules of Hooks
20
+ 3. You might have more than one copy of React in the same app
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(t)}}()),Ih}process.env.NODE_ENV==="production"?Vp.exports=CT():Vp.exports=ST();var je=Vp.exports,Jx={exports:{}};/*!
22
+ Copyright (c) 2018 Jed Watson.
23
+ Licensed under the MIT License (MIT), see
24
+ http://jedwatson.github.io/classnames
25
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Jx);var TT=Jx.exports;const se=nn(TT);function Ln(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 bi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Qx(e,t){const n=+Ln(e);return bi(e,n+t)}const kT=365.2425,bg=6048e5,$T=864e5,yg=6e4,Rd=36e5,ew=3600,MT=60,xg=ew*24,ET=xg*7,tw=xg*kT,nw=tw/12,OT=nw*3;function rw(e,t){return Qx(e,t*Rd)}let AT={};function Dd(){return AT}function Ua(e,t){var s,l,c,u;const n=Dd(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Ln(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Iu(e){return Ua(e,{weekStartsOn:1})}function iw(e){const t=Ln(e),n=t.getFullYear(),r=bi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Iu(r),o=bi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Iu(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function qp(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function Yp(e){const t=Ln(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 ow(e,t){const n=qp(e),r=qp(t),i=+n-Yp(n),o=+r-Yp(r);return Math.round((i-o)/$T)}function RT(e){const t=iw(e),n=bi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Iu(n)}function DT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function IT(e){if(!DT(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function jT(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function PT(e){const t=Ln(e),n=bi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const NT={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"}},LT=(e,t,n)=>{let r;const i=NT[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 jh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const FT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},BT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},WT={date:jh({formats:FT,defaultWidth:"full"}),time:jh({formats:BT,defaultWidth:"full"}),dateTime:jh({formats:zT,defaultWidth:"full"})},UT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},HT=(e,t,n,r)=>UT[e];function Ns(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const VT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YT={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"]},GT={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"]},ZT={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"}},XT={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"}},KT=(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"},JT={ordinalNumber:KT,era:Ns({values:VT,defaultWidth:"wide"}),quarter:Ns({values:qT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ns({values:YT,defaultWidth:"wide"}),day:Ns({values:GT,defaultWidth:"wide"}),dayPeriod:Ns({values:ZT,defaultWidth:"wide",formattingValues:XT,defaultFormattingWidth:"wide"})};function Ls(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?ek(s,d=>d.test(a)):QT(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function QT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ek(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function tk(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const nk=/^(\d+)(th|st|nd|rd)?/i,rk=/\d+/i,ik={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},ok={any:[/^b/i,/^(a|c)/i]},ak={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sk={any:[/1/i,/2/i,/3/i,/4/i]},lk={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},ck={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]},uk={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},dk={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]},fk={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},hk={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}},pk={ordinalNumber:tk({matchPattern:nk,parsePattern:rk,valueCallback:e=>parseInt(e,10)}),era:Ls({matchPatterns:ik,defaultMatchWidth:"wide",parsePatterns:ok,defaultParseWidth:"any"}),quarter:Ls({matchPatterns:ak,defaultMatchWidth:"wide",parsePatterns:sk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ls({matchPatterns:lk,defaultMatchWidth:"wide",parsePatterns:ck,defaultParseWidth:"any"}),day:Ls({matchPatterns:uk,defaultMatchWidth:"wide",parsePatterns:dk,defaultParseWidth:"any"}),dayPeriod:Ls({matchPatterns:fk,defaultMatchWidth:"any",parsePatterns:hk,defaultParseWidth:"any"})},mk={code:"en-US",formatDistance:LT,formatLong:WT,formatRelative:HT,localize:JT,match:pk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gk(e){const t=Ln(e);return ow(t,PT(t))+1}function vk(e){const t=Ln(e),n=+Iu(t)-+RT(t);return Math.round(n/bg)+1}function aw(e,t){var u,d,f,h;const n=Ln(e),r=n.getFullYear(),i=Dd(),o=(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,a=bi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ua(a,t),l=bi(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Ua(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function bk(e,t){var s,l,c,u;const n=Dd(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=aw(e,t),o=bi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ua(o,t)}function yk(e,t){const n=Ln(e),r=+Ua(n,t)-+bk(n,t);return Math.round(r/bg)+1}function Nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Nt(n+1,2)},d(e,t){return Nt(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 Nt(e.getHours()%12||12,t.length)},H(e,t){return Nt(e.getHours(),t.length)},m(e,t){return Nt(e.getMinutes(),t.length)},s(e,t){return Nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Nt(i,t.length)}},ha={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p1={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 Ai.y(e,t)},Y:function(e,t,n,r){const i=aw(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Nt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Nt(o,t.length)},R:function(e,t){const n=iw(e);return Nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Nt(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 Nt(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 Nt(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 Ai.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 Nt(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=yk(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Nt(i,t.length)},I:function(e,t,n){const r=vk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ai.d(e,t)},D:function(e,t,n){const r=gk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Nt(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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Nt(o,2);case"eo":return n.ordinalNumber(o,{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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Nt(o,t.length);case"co":return n.ordinalNumber(o,{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 Nt(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=ha.noon:r===0?i=ha.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=ha.evening:r>=12?i=ha.afternoon:r>=4?i=ha.morning:i=ha.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 Ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ai.s(e,t)},S:function(e,t){return Ai.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return g1(r);case"XXXX":case"XX":return yo(r);case"XXXXX":case"XXX":default:return yo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return g1(r);case"xxxx":case"xx":return yo(r);case"xxxxx":case"xxx":default:return yo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m1(r,":");case"OOOO":default:return"GMT"+yo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m1(r,":");case"zzzz":default:return"GMT"+yo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Nt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Nt(r,t.length)}};function m1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Nt(o,2)}function g1(e,t){return e%60===0?(e>0?"-":"+")+Nt(Math.abs(e)/60,2):yo(e,t)}function yo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Nt(Math.trunc(r/60),2),o=Nt(r%60,2);return n+i+t+o}const v1=(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"})}},sw=(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"})}},xk=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return v1(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",v1(r,t)).replace("{{time}}",sw(i,t))},wk={p:sw,P:xk},_k=/^D+$/,Ck=/^Y+$/,Sk=["D","DD","YY","YYYY"];function Tk(e){return _k.test(e)}function kk(e){return Ck.test(e)}function $k(e,t,n){const r=Mk(e,t,n);if(console.warn(r),Sk.includes(e))throw new RangeError(r)}function Mk(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 Ek=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ok=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ak=/^'([^]*?)'?$/,Rk=/''/g,Dk=/[a-zA-Z]/;function wg(e,t,n){var u,d,f,h,p,m,g,x;const r=Dd(),i=(n==null?void 0:n.locale)??r.locale??mk,o=(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,a=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,s=Ln(e);if(!IT(s))throw new RangeError("Invalid time value");let l=t.match(Ok).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=wk[w];return C(_,i.formatLong)}return _}).join("").match(Ek).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:Ik(_)};if(p1[w])return{isToken:!0,value:_};if(w.match(Dk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&kk(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Tk(w))&&$k(w,t,String(e));const C=p1[w[0]];return C(s,w,i.localize,c)}).join("")}function Ik(e){const t=e.match(Ak);return t?t[1].replace(Rk,"'"):e}function lw(e){return+Ln(e)<Date.now()}function uc(e,t){const r=Lk(e);let i;if(r.date){const l=Fk(r.date,2);i=Bk(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=zk(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=Wk(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(o+a+s)}const Yc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},jk=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pk=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Lk(e){const t={},n=e.split(Yc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Yc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Yc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Yc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Fk(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,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Bk(e,t){if(t===null)return new Date(NaN);const n=e.match(jk);if(!n)return new Date(NaN);const r=!!n[4],i=Fs(n[1]),o=Fs(n[2])-1,a=Fs(n[3]),s=Fs(n[4]),l=Fs(n[5])-1;if(r)return Yk(t,s,l)?Uk(t,s,l):new Date(NaN);{const c=new Date(0);return!Vk(t,o,a)||!qk(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function Fs(e){return e?parseInt(e):1}function zk(e){const t=e.match(Pk);if(!t)return NaN;const n=Ph(t[1]),r=Ph(t[2]),i=Ph(t[3]);return Gk(n,r,i)?n*Rd+r*yg+i*1e3:NaN}function Ph(e){return e&&parseFloat(e.replace(",","."))||0}function Wk(e){if(e==="Z")return 0;const t=e.match(Nk);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Zk(r,i)?n*(r*Rd+i*yg):NaN}function Uk(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Hk=[31,null,31,30,31,30,31,31,30,31,30,31];function cw(e){return e%400===0||e%4===0&&e%100!==0}function Vk(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Hk[t]||(cw(e)?29:28))}function qk(e,t){return t>=1&&t<=(cw(e)?366:365)}function Yk(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Gk(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Zk(e,t){return t>=0&&t<=59}function Gp(){return Gp=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},Gp.apply(null,arguments)}function uw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Xk=function(e,t,n,r,i,o,a,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Kk=Xk;const b1=nn(Kk);function y1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Jk(e){var t=Qk(e,"string");return typeof t=="symbol"?t:String(t)}function Qk(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 dw(e,t,n){var r=v.useRef(e!==void 0),i=v.useState(t),o=i[0],a=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&o!==t&&a(t),[s?e:o,v.useCallback(function(c){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,[c].concat(d)),a(c)},[n])]}function _g(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[y1(r)],s=o[r],l=uw(o,[y1(r),r].map(Jk)),c=t[r],u=dw(s,a,e[c]),d=u[0],f=u[1];return Gp({},l,(i={},i[r]=d,i[c]=f,i))},e)}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zp(e,t)}function e$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zp(e,t)}const t$=["xxl","xl","lg","md","sm","xs"],n$="xs",dc=fe.createContext({prefixes:{},breakpoints:t$,minBreakpoint:n$}),{Consumer:Whe,Provider:Uhe}=dc;function gt(e,t){const{prefixes:n}=v.useContext(dc);return e||n[t]||t}function fw(){const{breakpoints:e}=v.useContext(dc);return e}function hw(){const{minBreakpoint:e}=v.useContext(dc);return e}function Id(){const{dir:e}=v.useContext(dc);return e==="rtl"}function ds(e){return e&&e.ownerDocument||document}function r$(e){var t=ds(e);return t&&t.defaultView||window}function i$(e,t){return r$(e).getComputedStyle(e,t)}var o$=/([A-Z])/g;function a$(e){return e.replace(o$,"-$1").toLowerCase()}var s$=/^ms-/;function Gc(e){return a$(e).replace(s$,"-ms-")}var l$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c$(e){return!!(e&&l$.test(e))}function Hi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Gc(t))||i$(e).getPropertyValue(Gc(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Gc(i)):c$(i)?r+=i+"("+o+") ":n+=Gc(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Xp={exports:{}},Zc={exports:{}},Dt={};/** @license React v16.13.1
26
+ * react-is.production.min.js
27
+ *
28
+ * Copyright (c) Facebook, Inc. and its affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */var x1;function u$(){if(x1)return Dt;x1=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=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,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return Dt.AsyncMode=l,Dt.ConcurrentMode=c,Dt.ContextConsumer=s,Dt.ContextProvider=a,Dt.Element=t,Dt.ForwardRef=u,Dt.Fragment=r,Dt.Lazy=p,Dt.Memo=h,Dt.Portal=n,Dt.Profiler=o,Dt.StrictMode=i,Dt.Suspense=d,Dt.isAsyncMode=function(b){return C(b)||w(b)===l},Dt.isConcurrentMode=C,Dt.isContextConsumer=function(b){return w(b)===s},Dt.isContextProvider=function(b){return w(b)===a},Dt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Dt.isForwardRef=function(b){return w(b)===u},Dt.isFragment=function(b){return w(b)===r},Dt.isLazy=function(b){return w(b)===p},Dt.isMemo=function(b){return w(b)===h},Dt.isPortal=function(b){return w(b)===n},Dt.isProfiler=function(b){return w(b)===o},Dt.isStrictMode=function(b){return w(b)===i},Dt.isSuspense=function(b){return w(b)===d},Dt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},Dt.typeOf=w,Dt}var It={};/** @license React v16.13.1
33
+ * react-is.development.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */var w1;function d$(){return w1||(w1=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=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,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===r||P===c||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===p||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===g||P.$$typeof===x||P.$$typeof===_||P.$$typeof===m)}function C(P){if(typeof P=="object"&&P!==null){var te=P.$$typeof;switch(te){case t:var K=P.type;switch(K){case l:case c:case r:case o:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,k=a,$=t,R=u,T=r,E=p,A=h,I=n,j=o,D=i,O=d,L=!1;function z(P){return L||(L=!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.")),N(P)||C(P)===l}function N(P){return C(P)===c}function H(P){return C(P)===s}function Y(P){return C(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Z(P){return C(P)===u}function X(P){return C(P)===r}function J(P){return C(P)===p}function ee(P){return C(P)===h}function W(P){return C(P)===n}function F(P){return C(P)===o}function B(P){return C(P)===i}function V(P){return C(P)===d}It.AsyncMode=b,It.ConcurrentMode=S,It.ContextConsumer=M,It.ContextProvider=k,It.Element=$,It.ForwardRef=R,It.Fragment=T,It.Lazy=E,It.Memo=A,It.Portal=I,It.Profiler=j,It.StrictMode=D,It.Suspense=O,It.isAsyncMode=z,It.isConcurrentMode=N,It.isContextConsumer=H,It.isContextProvider=Y,It.isElement=q,It.isForwardRef=Z,It.isFragment=X,It.isLazy=J,It.isMemo=ee,It.isPortal=W,It.isProfiler=F,It.isStrictMode=B,It.isSuspense=V,It.isValidElementType=w,It.typeOf=C}()),It}var _1;function pw(){return _1||(_1=1,process.env.NODE_ENV==="production"?Zc.exports=u$():Zc.exports=d$()),Zc.exports}/*
40
+ object-assign
41
+ (c) Sindre Sorhus
42
+ @license MIT
43
+ */var Nh,C1;function f$(){if(C1)return Nh;C1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nh=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},Nh}var Lh,S1;function Cg(){if(S1)return Lh;S1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lh=e,Lh}var Fh,T1;function mw(){return T1||(T1=1,Fh=Function.call.bind(Object.prototype.hasOwnProperty)),Fh}var Bh,k1;function h$(){if(k1)return Bh;k1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cg(),n={},r=mw();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"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=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Bh=i,Bh}var zh,$1;function p$(){if($1)return zh;$1=1;var e=pw(),t=f$(),n=Cg(),r=mw(),i=h$(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return zh=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var H=N&&(c&&N[c]||N[u]);if(typeof H=="function")return H}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:_(),arrayOf:w,element:C(),elementType:b(),instanceOf:S,node:R(),objectOf:k,oneOf:M,oneOfType:$,shape:E,exact:A};function p(N,H){return N===H?N!==0||1/N===1/H:N!==N&&H!==H}function m(N,H){this.message=N,this.data=H&&typeof H=="object"?H:{},this.stack=""}m.prototype=Error.prototype;function g(N){if(process.env.NODE_ENV!=="production")var H={},Y=0;function q(X,J,ee,W,F,B,V){if(W=W||f,B=B||ee,V!==n){if(l){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=W+":"+ee;!H[te]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+W+"`. 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."),H[te]=!0,Y++)}}return J[ee]==null?X?J[ee]===null?new m("The "+F+" `"+B+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new m("The "+F+" `"+B+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:N(J,ee,W,F,B)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function x(N){function H(Y,q,Z,X,J,ee){var W=Y[q],F=D(W);if(F!==N){var B=O(W);return new m("Invalid "+X+" `"+J+"` of type "+("`"+B+"` supplied to `"+Z+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return g(H)}function _(){return g(a)}function w(N){function H(Y,q,Z,X,J){if(typeof N!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ee=Y[q];if(!Array.isArray(ee)){var W=D(ee);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an array."))}for(var F=0;F<ee.length;F++){var B=N(ee,F,Z,X,J+"["+F+"]",n);if(B instanceof Error)return B}return null}return g(H)}function C(){function N(H,Y,q,Z,X){var J=H[Y];if(!s(J)){var ee=D(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(N)}function b(){function N(H,Y,q,Z,X){var J=H[Y];if(!e.isValidElementType(J)){var ee=D(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(N)}function S(N){function H(Y,q,Z,X,J){if(!(Y[q]instanceof N)){var ee=N.name||f,W=z(Y[q]);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected ")+("instance of `"+ee+"`."))}return null}return g(H)}function M(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function H(Y,q,Z,X,J){for(var ee=Y[q],W=0;W<N.length;W++)if(p(ee,N[W]))return null;var F=JSON.stringify(N,function(V,P){var te=O(P);return te==="symbol"?String(P):P});return new m("Invalid "+X+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Z+"`, expected one of "+F+"."))}return g(H)}function k(N){function H(Y,q,Z,X,J){if(typeof N!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an object."));for(var F in ee)if(r(ee,F)){var B=N(ee,F,Z,X,J+"."+F,n);if(B instanceof Error)return B}return null}return g(H)}function $(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<N.length;H++){var Y=N[H];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(Y)+" at index "+H+"."),a}function q(Z,X,J,ee,W){for(var F=[],B=0;B<N.length;B++){var V=N[B],P=V(Z,X,J,ee,W,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&F.push(P.data.expectedType)}var te=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+ee+" `"+W+"` supplied to "+("`"+J+"`"+te+"."))}return g(q)}function R(){function N(H,Y,q,Z,X){return I(H[Y])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(N)}function T(N,H,Y,q,Z){return new m((N||"React class")+": "+H+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function E(N){function H(Y,q,Z,X,J){var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));for(var F in N){var B=N[F];if(typeof B!="function")return T(Z,X,J,F,O(B));var V=B(ee,F,Z,X,J+"."+F,n);if(V)return V}return null}return g(H)}function A(N){function H(Y,q,Z,X,J){var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));var F=t({},Y[q],N);for(var B in F){var V=N[B];if(r(N,B)&&typeof V!="function")return T(Z,X,J,B,O(V));if(!V)return new m("Invalid "+X+" `"+J+"` key `"+B+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
44
+ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var P=V(ee,B,Z,X,J+"."+B,n);if(P)return P}return null}return g(H)}function I(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(I);if(N===null||s(N))return!0;var H=d(N);if(H){var Y=H.call(N),q;if(H!==N.entries){for(;!(q=Y.next()).done;)if(!I(q.value))return!1}else for(;!(q=Y.next()).done;){var Z=q.value;if(Z&&!I(Z[1]))return!1}}else return!1;return!0;default:return!1}}function j(N,H){return N==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function D(N){var H=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":j(H,N)?"symbol":H}function O(N){if(typeof N>"u"||N===null)return""+N;var H=D(N);if(H==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return H}function L(N){var H=O(N);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function z(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},zh}var Wh,M1;function m$(){if(M1)return Wh;M1=1;var e=Cg();function t(){}function n(){}return n.resetWarningCache=t,Wh=function(){function r(a,s,l,c,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 o={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 o.PropTypes=o,o},Wh}if(process.env.NODE_ENV!=="production"){var g$=pw(),v$=!0;Xp.exports=p$()(g$.isElement,v$)}else Xp.exports=m$()();var b$=Xp.exports;const xe=nn(b$),E1={disabled:!1};var y$=process.env.NODE_ENV!=="production"?xe.oneOfType([xe.number,xe.shape({enter:xe.number,exit:xe.number,appear:xe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&xe.oneOfType([xe.string,xe.shape({enter:xe.string,exit:xe.string,active:xe.string}),xe.shape({enter:xe.string,enterDone:xe.string,enterActive:xe.string,exit:xe.string,exitDone:xe.string,exitActive:xe.string})]);const gw=v.createContext(null);var x$=function(t){return t.scrollTop},il="unmounted",Pi="exited",ci="entering",Li="entered",ju="exiting",Ti=function(e){e$(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Pi,o.appearStatus=ci):l=Li:r.unmountOnExit||r.mountOnEnter?l=il:l=Pi,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===il?{status:Pi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ci&&a!==Li&&(o=ci):(a===ci||a===Li)&&(o=ju)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this);a&&x$(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:il})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Un.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||E1.disabled){this.safeSetState({status:Li},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ci},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Li},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Un.findDOMNode(this);if(!o||E1.disabled){this.safeSetState({status:Pi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ju},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Pi},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===il)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=uw(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(gw.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Ti.contextType=gw;Ti.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:xe.shape({current:typeof Element>"u"?xe.any:function(e,t,n,r,i,o){var a=e[t];return xe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:xe.oneOfType([xe.func.isRequired,xe.element.isRequired]).isRequired,in:xe.bool,mountOnEnter:xe.bool,unmountOnExit:xe.bool,appear:xe.bool,enter:xe.bool,exit:xe.bool,timeout:function(t){var n=y$;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:xe.func,onEnter:xe.func,onEntering:xe.func,onEntered:xe.func,onExit:xe.func,onExiting:xe.func,onExited:xe.func}:{};function pa(){}Ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pa,onEntering:pa,onEntered:pa,onExit:pa,onExiting:pa,onExited:pa};Ti.UNMOUNTED=il;Ti.EXITED=Pi;Ti.ENTERING=ci;Ti.ENTERED=Li;Ti.EXITING=ju;function vw(e){return e.code==="Escape"||e.keyCode===27}function w$(){const e=fe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function fs(e){if(!e||typeof e=="function")return null;const{major:t}=w$();return t>=19?e.props.ref:e.ref}const hs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Kp=!1,Jp=!1;try{var Uh={get passive(){return Kp=!0},get once(){return Jp=Kp=!0}};hs&&(window.addEventListener("test",Uh,Uh),window.removeEventListener("test",Uh,!0))}catch{}function Sg(e,t,n,r){if(r&&typeof r!="boolean"&&!Jp){var i=r.once,o=r.capture,a=n;!Jp&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,Kp?r:o)}e.addEventListener(t,n,r)}function Qp(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 fi(e,t,n,r){return Sg(e,t,n,r),function(){Qp(e,t,n,r)}}function _$(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 C$(e){var t=Hi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function S$(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||_$(e,"transitionend",!0)},t+n),o=fi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function bw(e,t,n,r){n==null&&(n=C$(e)||0);var i=S$(e,n,r),o=fi(e,"transitionend",t);return function(){i(),o()}}function O1(e,t){const n=Hi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function yw(e,t){const n=O1(e,"transitionDuration"),r=O1(e,"transitionDelay"),i=bw(e,o=>{o.target===e&&(i(),t(o))},n+r)}function xw(e){e.offsetHeight}const A1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function T$(e,t){const n=A1(e),r=A1(t);return i=>{n&&n(i),r&&r(i)}}function Jo(e,t){return v.useMemo(()=>T$(e,t),[e,t])}function Pu(e){return e&&"setState"in e?Un.findDOMNode(e):e??null}const Tg=v.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=v.useRef(null),f=Jo(d,l),h=S=>{f(Pu(S))},p=S=>M=>{S&&d.current&&S(d.current,M)},m=v.useCallback(p(e),[e]),g=v.useCallback(p(t),[t]),x=v.useCallback(p(n),[n]),_=v.useCallback(p(r),[r]),w=v.useCallback(p(i),[i]),C=v.useCallback(p(o),[o]),b=v.useCallback(p(a),[a]);return y.jsx(Ti,{ref:u,...c,onEnter:m,onEntered:x,onEntering:g,onExit:_,onExited:C,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?(S,M)=>s(S,{...M,ref:h}):v.cloneElement(s,{ref:h})})});Tg.displayName="TransitionWrapper";function k$(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function qi(e){const t=k$(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const kg=e=>fe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:se(t.className,e)})),ww=kg("h4");ww.displayName="DivStyledAsH4";const _w=fe.forwardRef(({className:e,bsPrefix:t,as:n=ww,...r},i)=>(t=gt(t,"alert-heading"),y.jsx(n,{ref:i,className:se(e,t),...r})));_w.displayName="AlertHeading";function em(){return v.useState(null)}function $$(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function _n(e){const t=$$(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function M$(e,t,n,r=!1){const i=_n(n);v.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function Cw(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Sw(e){const t=v.useRef(null);return v.useEffect(()=>{t.current=e}),t.current}const E$=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",O$=typeof document<"u",R1=O$||E$?v.useLayoutEffect:v.useEffect,A$=["as","disabled"];function R$(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 D$(e){return!e||e.trim()==="#"}function $g({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},c];const u=f=>{if((t||e==="a"&&D$(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"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},c]}const Mg=fe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=R$(e,A$);const[o,{tagName:a}]=$g(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});Mg.displayName="Button";const I$=["onKeyDown"];function j$(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 P$(e){return!e||e.trim()==="#"}const Eg=fe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=j$(e,I$);const[i]=$g(Object.assign({tagName:"a"},r)),o=_n(a=>{i.onKeyDown(a),n==null||n(a)});return P$(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Eg.displayName="Anchor";const Tw=fe.forwardRef(({className:e,bsPrefix:t,as:n=Eg,...r},i)=>(t=gt(t,"alert-link"),y.jsx(n,{ref:i,className:se(e,t),...r})));Tw.displayName="AlertLink";const N$={[ci]:"show",[Li]:"show"},Yi=fe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=v.useCallback((l,c)=>{xw(l),r==null||r(l,c)},[r]);return y.jsx(Tg,{ref:o,addEndListener:yw,...a,onEnter:s,childRef:fs(t),children:(l,c)=>fe.cloneElement(t,{...c,className:se("fade",e,t.props.className,N$[l],n[l])})})});Yi.displayName="Fade";const L$={"aria-label":xe.string,onClick:xe.func,variant:xe.oneOf(["white"])},jd=fe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:se("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));jd.displayName="CloseButton";jd.propTypes=L$;const kw=fe.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:o,className:a,children:s,variant:l="primary",onClose:c,dismissible:u,transition:d=Yi,...f}=_g(e,{show:"onClose"}),h=gt(n,"alert"),p=qi(x=>{c&&c(!1,x)}),m=d===!0?Yi:d,g=y.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:se(a,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&y.jsx(jd,{onClick:p,"aria-label":i,variant:o}),s]});return m?y.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:g}):r?g:null});kw.displayName="Alert";const F$=Object.assign(kw,{Link:Tw,Heading:_w}),Og=fe.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=gt(t,"btn"),[u,{tagName:d}]=$g({tagName:e,disabled:o,...s}),f=d;return y.jsx(f,{...u,...s,ref:l,disabled:o,className:se(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});Og.displayName="Button";function B$(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function z$(e){const t=v.useRef(e);return t.current=e,t}function $w(e){const t=z$(e);v.useEffect(()=>()=>t.current(),[])}const tm=2**31-1;function Mw(e,t,n){const r=n-Date.now();e.current=r<=tm?setTimeout(t,r):setTimeout(()=>Mw(e,t,n),tm)}function W$(){const e=B$(),t=v.useRef();return $w(()=>clearTimeout(t.current)),v.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=tm?t.current=setTimeout(i,o):Mw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function U$(e,t){return fe.Children.toArray(e).some(n=>fe.isValidElement(n)&&n.type===t)}function Ew({as:e,bsPrefix:t,className:n,...r}){t=gt(t,"col");const i=fw(),o=hw(),a=[],s=[];return i.forEach(l=>{const c=r[l];delete r[l];let u,d,f;typeof c=="object"&&c!=null?{span:u,offset:d,order:f}=c:u=c;const h=l!==o?`-${l}`:"";u&&a.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:se(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Ag=fe.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=Ew(e);return y.jsx(i,{...r,ref:t,className:se(n,!a.length&&o)})});Ag.displayName="Col";var H$=Function.prototype.bind.call(Function.prototype.call,[].slice);function ui(e,t){return H$(e.querySelectorAll(t))}function V$(e,t,n){const r=v.useRef(e!==void 0),[i,o]=v.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,v.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function Ow(){const[,e]=v.useReducer(t=>t+1,0);return e}const Pd=fe.createContext(null);var D1=Object.prototype.hasOwnProperty;function I1(e,t,n){for(n of e.keys())if(ul(n,t))return n}function ul(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--&&ul(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=I1(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=I1(t,i),!i)||!ul(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(D1.call(e,n)&&++r&&!D1.call(t,n)||!(n in t)||!ul(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function q$(e){const t=Cw();return[e[0],v.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var qn="top",hr="bottom",pr="right",Yn="left",Rg="auto",fc=[qn,hr,pr,Yn],Ha="start",wl="end",Y$="clippingParents",Aw="viewport",Bs="popper",G$="reference",j1=fc.reduce(function(e,t){return e.concat([t+"-"+Ha,t+"-"+wl])},[]),Rw=[].concat(fc,[Rg]).reduce(function(e,t){return e.concat([t,t+"-"+Ha,t+"-"+wl])},[]),Z$="beforeRead",X$="read",K$="afterRead",J$="beforeMain",Q$="main",eM="afterMain",tM="beforeWrite",nM="write",rM="afterWrite",iM=[Z$,X$,K$,J$,Q$,eM,tM,nM,rM];function Lr(e){return e.split("-")[0]}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lo(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function Fr(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dg(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ro=Math.max,Nu=Math.min,Va=Math.round;function nm(){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 Dw(){return!/^((?!chrome|android).)*safari/i.test(nm())}function qa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Fr(e)&&(i=e.offsetWidth>0&&Va(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Va(r.height)/e.offsetHeight||1);var a=Lo(e)?tr(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Ig(e){var t=qa(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 Iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gi(e){return e?(e.nodeName||"").toLowerCase():null}function yi(e){return tr(e).getComputedStyle(e)}function oM(e){return["table","td","th"].indexOf(Gi(e))>=0}function ro(e){return((Lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nd(e){return Gi(e)==="html"?e:e.assignedSlot||e.parentNode||(Dg(e)?e.host:null)||ro(e)}function P1(e){return!Fr(e)||yi(e).position==="fixed"?null:e.offsetParent}function aM(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Fr(e)){var r=yi(e);if(r.position==="fixed")return null}var i=Nd(e);for(Dg(i)&&(i=i.host);Fr(i)&&["html","body"].indexOf(Gi(i))<0;){var o=yi(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function hc(e){for(var t=tr(e),n=P1(e);n&&oM(n)&&yi(n).position==="static";)n=P1(n);return n&&(Gi(n)==="html"||Gi(n)==="body"&&yi(n).position==="static")?t:n||aM(e)||t}function jg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dl(e,t,n){return Ro(e,Nu(t,n))}function sM(e,t,n){var r=dl(e,t,n);return r>n?n:r}function jw(){return{top:0,right:0,bottom:0,left:0}}function Pw(e){return Object.assign({},jw(),e)}function Nw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Pw(typeof t!="number"?t:Nw(t,fc))};function cM(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Lr(n.placement),l=jg(s),c=[Yn,pr].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=lM(i.padding,n),f=Ig(o),h=l==="y"?qn:Yn,p=l==="y"?hr:pr,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],x=hc(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-g/2,C=d[h],b=_-f[u]-d[p],S=_/2-f[u]/2+w,M=dl(C,S,b),k=l;n.modifiersData[r]=(t={},t[k]=M,t.centerOffset=M-S,t)}}function uM(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)||Iw(t.elements.popper,i)&&(t.elements.arrow=i))}const dM={name:"arrow",enabled:!0,phase:"main",fn:cM,effect:uM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ya(e){return e.split("-")[1]}var fM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hM(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Va(n*i)/i||0,y:Va(r*i)/i||0}}function N1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Yn,C=qn,b=window;if(c){var S=hc(n),M="clientHeight",k="clientWidth";if(S===tr(n)&&(S=ro(n),yi(S).position!=="static"&&s==="absolute"&&(M="scrollHeight",k="scrollWidth")),S=S,i===qn||(i===Yn||i===pr)&&o===wl){C=hr;var $=d&&S===b&&b.visualViewport?b.visualViewport.height:S[M];m-=$-r.height,m*=l?1:-1}if(i===Yn||(i===qn||i===hr)&&o===wl){w=pr;var R=d&&S===b&&b.visualViewport?b.visualViewport.width:S[k];h-=R-r.width,h*=l?1:-1}}var T=Object.assign({position:s},c&&fM),E=u===!0?hM({x:h,y:m},tr(n)):{x:h,y:m};if(h=E.x,m=E.y,l){var A;return Object.assign({},T,(A={},A[C]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A))}return Object.assign({},T,(t={},t[C]=_?m+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function pM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Lr(t.placement),variation:Ya(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,N1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,N1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pM,data:{}};var Xc={passive:!0};function gM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=tr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Xc)}),s&&l.addEventListener("resize",n.update,Xc),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Xc)}),s&&l.removeEventListener("resize",n.update,Xc)}}const vM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gM,data:{}};var bM={left:"right",right:"left",bottom:"top",top:"bottom"};function yu(e){return e.replace(/left|right|bottom|top/g,function(t){return bM[t]})}var yM={start:"end",end:"start"};function L1(e){return e.replace(/start|end/g,function(t){return yM[t]})}function Pg(e){var t=tr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ng(e){return qa(ro(e)).left+Pg(e).scrollLeft}function xM(e,t){var n=tr(e),r=ro(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Dw();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Ng(e),y:l}}function wM(e){var t,n=ro(e),r=Pg(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ro(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ro(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ng(e),l=-r.scrollTop;return yi(i||n).direction==="rtl"&&(s+=Ro(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Lg(e){var t=yi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lw(e){return["html","body","#document"].indexOf(Gi(e))>=0?e.ownerDocument.body:Fr(e)&&Lg(e)?e:Lw(Nd(e))}function fl(e,t){var n;t===void 0&&(t=[]);var r=Lw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=tr(r),a=i?[o].concat(o.visualViewport||[],Lg(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fl(Nd(a)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _M(e,t){var n=qa(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 F1(e,t,n){return t===Aw?rm(xM(e,n)):Lo(t)?_M(t,n):rm(wM(ro(e)))}function CM(e){var t=fl(Nd(e)),n=["absolute","fixed"].indexOf(yi(e).position)>=0,r=n&&Fr(e)?hc(e):e;return Lo(r)?t.filter(function(i){return Lo(i)&&Iw(i,r)&&Gi(i)!=="body"}):[]}function SM(e,t,n,r){var i=t==="clippingParents"?CM(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=F1(e,c,r);return l.top=Ro(u.top,l.top),l.right=Nu(u.right,l.right),l.bottom=Nu(u.bottom,l.bottom),l.left=Ro(u.left,l.left),l},F1(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fw(e){var t=e.reference,n=e.element,r=e.placement,i=r?Lr(r):null,o=r?Ya(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qn:l={x:a,y:t.y-n.height};break;case hr:l={x:a,y:t.y+t.height};break;case pr:l={x:t.x+t.width,y:s};break;case Yn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?jg(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Ha:l[c]=l[c]-(t[u]/2-n[u]/2);break;case wl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _l(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Y$:s,c=n.rootBoundary,u=c===void 0?Aw:c,d=n.elementContext,f=d===void 0?Bs:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,x=Pw(typeof g!="number"?g:Nw(g,fc)),_=f===Bs?G$:Bs,w=e.rects.popper,C=e.elements[p?_:f],b=SM(Lo(C)?C:C.contextElement||ro(e.elements.popper),l,u,a),S=qa(e.elements.reference),M=Fw({reference:S,element:w,placement:i}),k=rm(Object.assign({},w,M)),$=f===Bs?k:S,R={top:b.top-$.top+x.top,bottom:$.bottom-b.bottom+x.bottom,left:b.left-$.left+x.left,right:$.right-b.right+x.right},T=e.modifiersData.offset;if(f===Bs&&T){var E=T[i];Object.keys(R).forEach(function(A){var I=[pr,hr].indexOf(A)>=0?1:-1,j=[qn,hr].indexOf(A)>=0?"y":"x";R[A]+=E[j]*I})}return R}function TM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Rw:l,u=Ya(r),d=u?s?j1:j1.filter(function(p){return Ya(p)===u}):fc,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=_l(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Lr(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function kM(e){if(Lr(e)===Rg)return[];var t=yu(e);return[L1(e),t,L1(t)]}function $M(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,g=t.options.placement,x=Lr(g),_=x===g,w=l||(_||!p?[yu(g)]:kM(g)),C=[g].concat(w).reduce(function(Z,X){return Z.concat(Lr(X)===Rg?TM(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):X)},[]),b=t.rects.reference,S=t.rects.popper,M=new Map,k=!0,$=C[0],R=0;R<C.length;R++){var T=C[R],E=Lr(T),A=Ya(T)===Ha,I=[qn,hr].indexOf(E)>=0,j=I?"width":"height",D=_l(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),O=I?A?pr:Yn:A?hr:qn;b[j]>S[j]&&(O=yu(O));var L=yu(O),z=[];if(o&&z.push(D[E]<=0),s&&z.push(D[O]<=0,D[L]<=0),z.every(function(Z){return Z})){$=T,k=!1;break}M.set(T,z)}if(k)for(var N=p?3:1,H=function(X){var J=C.find(function(ee){var W=M.get(ee);if(W)return W.slice(0,X).every(function(F){return F})});if(J)return $=J,"break"},Y=N;Y>0;Y--){var q=H(Y);if(q==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const MM={name:"flip",enabled:!0,phase:"main",fn:$M,requiresIfExists:["offset"],data:{_skip:!1}};function B1(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 z1(e){return[qn,pr,hr,Yn].some(function(t){return e[t]>=0})}function EM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_l(t,{elementContext:"reference"}),s=_l(t,{altBoundary:!0}),l=B1(a,r),c=B1(s,i,o),u=z1(l),d=z1(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const OM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:EM};function AM(e,t,n){var r=Lr(e),i=[Yn,qn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Yn,pr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function RM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Rw.reduce(function(u,d){return u[d]=AM(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const DM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RM};function IM(e){var t=e.state,n=e.name;t.modifiersData[n]=Fw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jM={name:"popperOffsets",enabled:!0,phase:"read",fn:IM,data:{}};function PM(e){return e==="x"?"y":"x"}function NM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,g=_l(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Lr(t.placement),_=Ya(t.placement),w=!_,C=jg(x),b=PM(C),S=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,$=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(o){var A,I=C==="y"?qn:Yn,j=C==="y"?hr:pr,D=C==="y"?"height":"width",O=S[C],L=O+g[I],z=O-g[j],N=h?-k[D]/2:0,H=_===Ha?M[D]:k[D],Y=_===Ha?-k[D]:-M[D],q=t.elements.arrow,Z=h&&q?Ig(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jw(),J=X[I],ee=X[j],W=dl(0,M[D],Z[D]),F=w?M[D]/2-N-W-J-R.mainAxis:H-W-J-R.mainAxis,B=w?-M[D]/2+N+W+ee+R.mainAxis:Y+W+ee+R.mainAxis,V=t.elements.arrow&&hc(t.elements.arrow),P=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,te=(A=T==null?void 0:T[C])!=null?A:0,K=O+F-te-P,G=O+B-te,ae=dl(h?Nu(L,K):L,O,h?Ro(z,G):z);S[C]=ae,E[C]=ae-O}if(s){var ne,re=C==="x"?qn:Yn,oe=C==="x"?hr:pr,le=S[b],ye=b==="y"?"height":"width",ge=le+g[re],be=le-g[oe],Me=[qn,Yn].indexOf(x)!==-1,ce=(ne=T==null?void 0:T[b])!=null?ne:0,de=Me?ge:le-M[ye]-k[ye]-ce+R.altAxis,Ce=Me?le+M[ye]+k[ye]-ce-R.altAxis:be,Ge=h&&Me?sM(de,le,Ce):dl(h?de:ge,le,h?Ce:be);S[b]=Ge,E[b]=Ge-le}t.modifiersData[r]=E}}const LM={name:"preventOverflow",enabled:!0,phase:"main",fn:NM,requiresIfExists:["offset"]};function FM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BM(e){return e===tr(e)||!Fr(e)?Pg(e):FM(e)}function zM(e){var t=e.getBoundingClientRect(),n=Va(t.width)/e.offsetWidth||1,r=Va(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WM(e,t,n){n===void 0&&(n=!1);var r=Fr(t),i=Fr(t)&&zM(t),o=ro(t),a=qa(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Gi(t)!=="body"||Lg(o))&&(s=BM(t)),Fr(t)?(l=qa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ng(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function UM(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function HM(e){var t=UM(e);return iM.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function VM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qM(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 W1={placement:"bottom",modifiers:[],strategy:"absolute"};function U1(){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 YM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?W1:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(x){var _=typeof x=="function"?x(u.options):x;m(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:Lo(s)?fl(s):s.contextElement?fl(s.contextElement):[],popper:fl(l)};var w=HM(qM([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,w=x.popper;if(U1(_,w)){u.rects={reference:WM(_,hc(w),u.options.strategy==="fixed"),popper:Ig(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var b=u.orderedModifiers[C],S=b.fn,M=b.options,k=M===void 0?{}:M,$=b.name;typeof S=="function"&&(u=S({state:u,options:k,name:$,instance:h})||u)}}}},update:VM(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!U1(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var x=g.name,_=g.options,w=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var b=C({state:u,name:x,instance:h,options:w}),S=function(){};d.push(b||S)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}const GM=YM({defaultModifiers:[OM,jM,mM,vM,DM,MM,LM,dM]}),ZM=["enabled","placement","strategy","modifiers"];function XM(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 KM={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},JM={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 o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},QM=[];function Bw(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=QM}=n,s=XM(n,ZM);const l=v.useRef(a),c=v.useRef(),u=v.useCallback(()=>{var g;(g=c.current)==null||g.update()},[]),d=v.useCallback(()=>{var g;(g=c.current)==null||g.forceUpdate()},[]),[f,h]=q$(v.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=v.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:g})=>{const x={},_={};Object.keys(g.elements).forEach(w=>{x[w]=g.styles[w],_[w]=g.attributes[w]}),h({state:g,styles:x,attributes:_,update:u,forceUpdate:d,placement:g.placement})}}),[u,d,h]),m=v.useMemo(()=>(ul(l.current,a)||(l.current=a),l.current),[a]);return v.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...m,p,KM]})},[o,i,p,r,m]),v.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=GM(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,JM,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Cl(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var eE=process.env.NODE_ENV!=="production",zw=function(){};if(eE){var tE=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 o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};zw=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||tE.apply(null,[t].concat(n))}}var nE=zw;const Qo=nn(nE),H1=()=>{};function rE(e){return e.button===0}function iE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const xu=e=>e&&("current"in e?e.current:e),V1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ww(e,t=H1,{disabled:n,clickTrigger:r="click"}={}){const i=v.useRef(!1),o=v.useRef(!1),a=v.useCallback(c=>{const u=xu(e);Qo(!!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||iE(c)||!rE(c)||!!Cl(u,c.target)||o.current,o.current=!1},[e]),s=_n(c=>{const u=xu(e);u&&Cl(u,c.target)?o.current=!0:o.current=!1}),l=_n(c=>{i.current||t(c)});v.useEffect(()=>{var c,u;if(n||e==null)return;const d=ds(xu(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;V1[r]&&(p=fi(d,V1[r],s,!0));const m=fi(d,r,a,!0),g=fi(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>fi(_,"mousemove",H1))),()=>{p==null||p(),m(),g(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function oE(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function aE(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Uw({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=oE(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:aE(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:a?Object.assign({padding:a},(u=p.preventOverflow)==null?void 0:u.options):(d=p.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=p.offset)==null?void 0:f.options)},arrow:Object.assign({},p.arrow,{enabled:!!s,options:Object.assign({},(h=p.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const sE=["children","usePopper"];function lE(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 cE=()=>{};function Hw(e={}){const t=v.useContext(Pd),[n,r]=em(),i=v.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:l=!1,placement:c,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 p=S=>{t==null||t.toggle(!1,S)},{placement:m,setMenu:g,menuElement:x,toggleElement:_}=t||{},w=Bw(_,x,Uw({placement:c||m||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:g||cE,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?w:null,arrowProps:f?Object.assign({ref:r},w.attributes.arrow,{style:w.styles.arrow}):{}};return Ww(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function Vw(e){let{children:t,usePopper:n=!0}=e,r=lE(e,sE);const[i,o]=Hw(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}Vw.displayName="DropdownMenu";const Lu={prefix:String(Math.round(Math.random()*1e10)),current:0},qw=v.createContext(Lu),uE=v.createContext(!1);let dE=!!(typeof window<"u"&&window.document&&window.document.createElement),Hh=new WeakMap;function fE(e=!1){let t=v.useContext(qw),n=v.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=v.__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(o){let a=Hh.get(o);a==null?Hh.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hh.delete(o))}n.current=++t.current}return n.current}function hE(e){let t=v.useContext(qw);t===Lu&&!dE&&process.env.NODE_ENV!=="production"&&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=fE(!!e),r=t===Lu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function pE(e){let t=v.useId(),[n]=v.useState(yE()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Lu.prefix}`;return e||`${r}-${t}`}const mE=typeof v.useId=="function"?pE:hE;function gE(){return!1}function vE(){return!0}function bE(e){return()=>{}}function yE(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(bE,gE,vE):v.useContext(uE)}const Yw=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},q1=()=>{};function Gw(){const e=mE(),{show:t=!1,toggle:n=q1,setToggle:r,menuElement:i}=v.useContext(Pd)||{},o=v.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||q1,onClick:o,"aria-expanded":!!t};return i&&Yw(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function Zw({children:e}){const[t,n]=Gw();return y.jsx(y.Fragment,{children:e(t,n)})}Zw.displayName="DropdownToggle";const Ga=fe.createContext(null),Sl=(e,t=null)=>e!=null?String(e):t||null,Ld=fe.createContext(null);Ld.displayName="NavContext";const xE="data-rr-ui-",wE="rrUi";function ps(e){return`${xE}${e}`}function _E(e){return`${wE}${e}`}const CE=["eventKey","disabled","onClick","active","as"];function SE(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 Xw({key:e,href:t,active:n,disabled:r,onClick:i}){const o=v.useContext(Ga),a=v.useContext(Ld),{activeKey:s}=a||{},l=Sl(e,t),c=n==null&&e!=null?Sl(s)===l:n;return[{onClick:_n(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[ps("dropdown-item")]:""},{isActive:c}]}const Kw=fe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=Mg}=e,s=SE(e,CE);const[l]=Xw({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});Kw.displayName="DropdownItem";const Jw=v.createContext(hs?window:void 0);Jw.Provider;function Fd(){return v.useContext(Jw)}function Y1(){const e=Ow(),t=v.useRef(null),n=v.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function pc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ps("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=Fd(),[c,u]=V$(t,e,r),[d,f]=Y1(),h=d.current,[p,m]=Y1(),g=p.current,x=Sw(c),_=v.useRef(null),w=v.useRef(!1),C=v.useContext(Ga),b=v.useCallback((T,E,A=E==null?void 0:E.type)=>{u(T,{originalEvent:E,source:A})},[u]),S=_n((T,E)=>{n==null||n(T,E),b(!1,E,"select"),E.isPropagationStopped()||C==null||C(T,E)}),M=v.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:g,setMenu:f,setToggle:m}),[b,a,c,h,g,f,m]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=_n(()=>{g&&g.focus&&g.focus()}),$=_n(()=>{const T=_.current;let E=o;if(E==null&&(E=d.current&&Yw(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(T))return;const A=ui(d.current,i)[0];A&&A.focus&&A.focus()});v.useEffect(()=>{c?$():w.current&&(w.current=!1,k())},[c,w,k,$]),v.useEffect(()=>{_.current=null});const R=(T,E)=>{if(!d.current)return null;const A=ui(d.current,i);let I=A.indexOf(T)+E;return I=Math.max(0,Math.min(I,A.length)),A[I]};return M$(v.useCallback(()=>l.document,[l]),"keydown",T=>{var E,A;const{key:I}=T,j=T.target,D=(E=d.current)==null?void 0:E.contains(j),O=(A=p.current)==null?void 0:A.contains(j);if(/input|textarea/i.test(j.tagName)&&(I===" "||I!=="Escape"&&D||I==="Escape"&&j.type==="search")||!D&&!O||I==="Tab"&&(!d.current||!c))return;_.current=T.type;const z={originalEvent:T,source:T.type};switch(I){case"ArrowUp":{const N=R(j,-1);N&&N.focus&&N.focus(),T.preventDefault();return}case"ArrowDown":if(T.preventDefault(),!c)u(!0,z);else{const N=R(j,1);N&&N.focus&&N.focus()}return;case"Tab":Sg(j.ownerDocument,"keyup",N=>{var H;(N.key==="Tab"&&!N.target||!((H=d.current)!=null&&H.contains(N.target)))&&u(!1,z)},{once:!0});break;case"Escape":I==="Escape"&&(T.preventDefault(),T.stopPropagation()),u(!1,z);break}}),y.jsx(Ga.Provider,{value:S,children:y.jsx(Pd.Provider,{value:M,children:s})})}pc.displayName="Dropdown";pc.Menu=Vw;pc.Toggle=Zw;pc.Item=Kw;const Fg=fe.createContext({});Fg.displayName="DropdownContext";const Qw=fe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=gt(t,"dropdown-divider"),y.jsx(n,{ref:o,className:se(e,t),role:r,...i})));Qw.displayName="DropdownDivider";const e_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=gt(t,"dropdown-header"),y.jsx(n,{ref:o,className:se(e,t),role:r,...i})));e_.displayName="DropdownHeader";const t_=fe.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=Eg,...s},l)=>{const c=gt(e,"dropdown-item"),[u,d]=Xw({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:se(t,c,d.isActive&&"active",r&&"disabled")})});t_.displayName="DropdownItem";const n_=fe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=gt(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:se(e,t),...r})));n_.displayName="DropdownItemText";const TE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",kE=typeof document<"u",Bg=kE||TE?v.useLayoutEffect:v.useEffect,Bd=fe.createContext(null);Bd.displayName="InputGroupContext";const r_=fe.createContext(null);r_.displayName="NavbarContext";function i_(e,t){if(process.env.NODE_ENV==="production")return e;const n=v.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?b1(!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`):b1(!1))},[t]);return Jo(n,e)}function o_(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:c:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const a_=fe.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=v.useContext(r_),p=gt(e,"dropdown-menu"),{align:m,drop:g,isRTL:x}=v.useContext(Fg);n=n||m;const _=v.useContext(Bd),w=[];if(n)if(typeof n=="object"){const T=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Qo(T.length===1,"There should only be 1 breakpoint when passing an object to `align`"),T.length){const E=T[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const C=o_(f,g,x),[b,{hasShown:S,popper:M,show:k,toggle:$}]=Hw({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=Jo(i_(d,"DropdownMenu"),b.ref),Bg(()=>{k&&(M==null||M.update())},[k]),!S&&!a&&!_)return null;typeof s!="string"&&(b.show=k,b.close=()=>$==null?void 0:$(!1),b.align=n);let R=u.style;return M!=null&&M.placement&&(R={...u.style,...b.style},u["x-placement"]=M.placement),y.jsx(s,{...u,...b,style:R,...(w.length||h)&&{"data-bs-popper":"static"},className:se(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});a_.displayName="DropdownMenu";const s_=fe.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Og,...o},a)=>{const s=gt(e,"dropdown-toggle"),l=v.useContext(Pd);r!==void 0&&(o.bsPrefix=r);const[c]=Gw();return c.ref=Jo(c.ref,i_(a,"DropdownToggle")),y.jsx(i,{className:se(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});s_.displayName="DropdownToggle";const l_=fe.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=_g(e,{show:"onToggle"}),p=v.useContext(Bd),m=gt(n,"dropdown"),g=Id(),x=M=>f===!1?M==="click":f==="inside"?M!=="rootClose":f==="outside"?M!=="select":!0,_=qi((M,k)=>{var $;!(($=k.originalEvent)==null||($=$.target)==null)&&$.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),x(k.source)&&(l==null||l(M,k)))}),C=o_(a==="end",r,g),b=v.useMemo(()=>({align:a,drop:r,isRTL:g}),[a,r,g]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(Fg.Provider,{value:b,children:y.jsx(pc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:se(o,i&&"show",S[r])})})})});l_.displayName="Dropdown";const Za=Object.assign(l_,{Toggle:s_,Menu:a_,Item:t_,ItemText:n_,Divider:Qw,Header:e_}),$E={type:xe.string,tooltip:xe.bool,as:xe.elementType},zd=fe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:se(t,`${n}-${r?"tooltip":"feedback"}`)}));zd.displayName="Feedback";zd.propTypes=$E;const xi=fe.createContext({}),Wd=fe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=v.useContext(xi);return t=gt(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:se(n,t,i&&"is-valid",o&&"is-invalid")})});Wd.displayName="FormCheckInput";const Fu=fe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=v.useContext(xi);return e=gt(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:se(t,e)})});Fu.displayName="FormCheckLabel";const c_=fe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:l=!1,feedback:c,feedbackType:u,className:d,style:f,title:h="",type:p="checkbox",label:m,children:g,as:x="input",..._},w)=>{t=gt(t,"form-check"),n=gt(n,"form-switch");const{controlId:C}=v.useContext(xi),b=v.useMemo(()=>({controlId:e||C}),[C,e]),S=!g&&m!=null&&m!==!1||U$(g,Fu),M=y.jsx(Wd,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(xi.Provider,{value:b,children:y.jsx("div",{style:f,className:se(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:g||y.jsxs(y.Fragment,{children:[M,S&&y.jsx(Fu,{title:h,children:m}),c&&y.jsx(zd,{type:u,tooltip:l,children:c})]})})})});c_.displayName="FormCheck";const Bu=Object.assign(c_,{Input:Wd,Label:Fu}),u_=fe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:l,readOnly:c,as:u="input",...d},f)=>{const{controlId:h}=v.useContext(xi);return e=gt(e,"form-control"),process.env.NODE_ENV!=="production"&&Qo(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:se(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});u_.displayName="FormControl";const d_=Object.assign(u_,{Feedback:zd}),f_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"form-floating"),y.jsx(n,{ref:i,className:se(e,t),...r})));f_.displayName="FormFloating";const zg=fe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=v.useMemo(()=>({controlId:e}),[e]);return y.jsx(xi.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});zg.displayName="FormGroup";const h_=fe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=v.useContext(xi);t=gt(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=se(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&Qo(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(Ag,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});h_.displayName="FormLabel";const p_=fe.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=v.useContext(xi);return e=gt(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:se(t,e),id:n||o})});p_.displayName="FormRange";const Wg=fe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=v.useContext(xi);return e=gt(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:se(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});Wg.displayName="FormSelect";const m_=fe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=gt(e,"form-text"),y.jsx(n,{...i,ref:o,className:se(t,e,r&&"text-muted")})));m_.displayName="FormText";const g_=fe.forwardRef((e,t)=>y.jsx(Bu,{...e,ref:t,type:"switch"}));g_.displayName="Switch";const ME=Object.assign(g_,{Input:Bu.Input,Label:Bu.Label}),Ug=fe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=gt(e,"form-floating"),y.jsxs(zg,{ref:a,className:se(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));Ug.displayName="FloatingLabel";const EE={_ref:xe.any,validated:xe.bool,as:xe.elementType},Hg=fe.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:se(e,t&&"was-validated")}));Hg.displayName="Form";Hg.propTypes=EE;const Xr=Object.assign(Hg,{Group:zg,Control:d_,Floating:f_,Check:Bu,Switch:ME,Label:h_,Text:m_,Range:p_,Select:Wg,FloatingLabel:Ug}),G1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function OE(e,t){const n=G1(e),r=G1(t);return i=>{n&&n(i),r&&r(i)}}function mc(e,t){return v.useMemo(()=>OE(e,t),[e,t])}const v_=fe.createContext(null),AE=["as","active","eventKey"];function RE(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 b_({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=v.useContext(Ga),s=v.useContext(Ld),l=v.useContext(v_);let c=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[ps("event-key")]=e,u.id=d||r,c=n==null&&e!=null?s.activeKey===e:n,(c||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=c,c||(u.tabIndex=-1),o&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=_n(d=>{o||(t==null||t(d),e!=null&&a&&!d.isPropagationStopped()&&a(e,d))}),[u,{isActive:c}]}const y_=fe.forwardRef((e,t)=>{let{as:n=Mg,active:r,eventKey:i}=e,o=RE(e,AE);const[a,s]=b_(Object.assign({key:Sl(i,o.href),active:r},o));return a[ps("active")]=s.isActive,y.jsx(n,Object.assign({},o,a,{ref:t}))});y_.displayName="NavItem";const DE=["as","onSelect","activeKey","role","onKeyDown"];function IE(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 Z1=()=>{},X1=ps("event-key"),x_=fe.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=IE(e,DE);const l=Ow(),c=v.useRef(!1),u=v.useContext(Ga),d=v.useContext(v_);let f,h;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const p=v.useRef(null),m=w=>{const C=p.current;if(!C)return null;const b=ui(C,`[${X1}]:not([aria-disabled=true])`),S=C.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const M=b.indexOf(S);if(M===-1)return null;let k=M+w;return k>=b.length&&(k=0),k<0&&(k=b.length-1),b[k]},g=(w,C)=>{w!=null&&(r==null||r(w,C),u==null||u(w,C))},x=w=>{if(a==null||a(w),!d)return;let C;switch(w.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(w.preventDefault(),g(C.dataset[_E("EventKey")]||null,w),c.current=!0,l())};v.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${X1}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=mc(t,p);return y.jsx(Ga.Provider,{value:g,children:y.jsx(Ld.Provider,{value:{role:o,activeKey:Sl(i),getControlledId:f||Z1,getControllerId:h||Z1},children:y.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:o}))})})});x_.displayName="Nav";const jE=Object.assign(x_,{Item:y_}),Ud=fe.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...l},c)=>{e=gt(e,"list-group-item");const[u,d]=b_({key:Sl(r,l.href),active:t,...l}),f=qi(p=>{if(n){p.preventDefault(),p.stopPropagation();return}u.onClick(p)});n&&l.tabIndex===void 0&&(l.tabIndex=-1,l["aria-disabled"]=!0);const h=s||(a?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Qo(s||!(!a&&l.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:c,...l,...u,onClick:f,className:se(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Ud.displayName="ListGroupItem";const w_=fe.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...l}=_g(e,{activeKey:"onSelect"}),c=gt(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&Qo(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(jE,{ref:t,...l,as:s,className:se(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,a&&`${c}-numbered`)})});w_.displayName="ListGroup";const __=Object.assign(w_,{Item:Ud});var Kc;function K1(e){if((!Kc&&Kc!==0||e)&&hs){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),Kc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Kc}function PE(){return v.useState(null)}function Vh(e){e===void 0&&(e=ds());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function NE(e){const t=v.useRef(e);return t.current=e,t}function LE(e){const t=NE(e);v.useEffect(()=>()=>t.current(),[])}function FE(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const J1=ps("modal-open");class Vg{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return FE(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(Hi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(J1,""),Hi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(J1),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 qh=(e,t)=>hs?e==null?(t||ds()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function im(e,t){const n=Fd(),[r,i]=v.useState(()=>qh(e,n==null?void 0:n.document));if(!r){const o=qh(e);o&&i(o)}return v.useEffect(()=>{},[t,r]),v.useEffect(()=>{const o=qh(e);o!==r&&i(o)},[e,r]),r}function BE({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=v.useRef(null),a=v.useRef(t),s=_n(n);v.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=mc(o,fs(e)),c=v.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const zE=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function WE(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 UE(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=WE(e,zE);const u=v.useRef(null),d=mc(u,fs(l)),f=C=>b=>{C&&u.current&&C(u.current,b)},h=v.useCallback(f(t),[t]),p=v.useCallback(f(n),[n]),m=v.useCallback(f(r),[r]),g=v.useCallback(f(i),[i]),x=v.useCallback(f(o),[o]),_=v.useCallback(f(a),[a]),w=v.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:m},i&&{onExit:g},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):v.cloneElement(l,{ref:d})})}const HE=["component"];function VE(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 qE=fe.forwardRef((e,t)=>{let{component:n}=e,r=VE(e,HE);const i=UE(r);return y.jsx(n,Object.assign({ref:t},i))});function YE({in:e,onTransition:t}){const n=v.useRef(null),r=v.useRef(!0),i=_n(t);return R1(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),R1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function GE({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=v.useState(!t);t&&o&&a(!1);const s=YE({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||a(!0),d})}}),l=mc(s,fs(e));return o&&!t?null:v.cloneElement(e,{ref:l})}function om(e,t,n){return e?y.jsx(qE,Object.assign({},n,{component:e})):t?y.jsx(GE,Object.assign({},n,{transition:t})):y.jsx(BE,Object.assign({},n))}const ZE=["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 XE(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 Yh;function KE(e){return Yh||(Yh=new Vg({ownerDocument:e==null?void 0:e.document})),Yh}function JE(e){const t=Fd(),n=e||KE(t),r=v.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:v.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:v.useCallback(i=>{r.current.backdrop=i},[])})}const C_=v.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:p,autoFocus:m=!0,enforceFocus:g=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>y.jsx("div",Object.assign({},G)),manager:b,container:S,onShow:M,onHide:k=()=>{},onExit:$,onExited:R,onExiting:T,onEnter:E,onEntering:A,onEntered:I}=e,j=XE(e,ZE);const D=Fd(),O=im(S),L=JE(b),z=Cw(),N=Sw(n),[H,Y]=v.useState(!n),q=v.useRef(null);v.useImperativeHandle(t,()=>L,[L]),hs&&!N&&n&&(q.current=Vh(D==null?void 0:D.document)),n&&H&&Y(!1);const Z=_n(()=>{if(L.add(),B.current=fi(document,"keydown",W),F.current=fi(document,"focus",()=>setTimeout(J),!0),M&&M(),m){var G,ae;const ne=Vh((G=(ae=L.dialog)==null?void 0:ae.ownerDocument)!=null?G:D==null?void 0:D.document);L.dialog&&ne&&!Cl(L.dialog,ne)&&(q.current=ne,L.dialog.focus())}}),X=_n(()=>{if(L.remove(),B.current==null||B.current(),F.current==null||F.current(),x){var G;(G=q.current)==null||G.focus==null||G.focus(_),q.current=null}});v.useEffect(()=>{!n||!O||Z()},[n,O,Z]),v.useEffect(()=>{H&&X()},[H,X]),LE(()=>{X()});const J=_n(()=>{if(!g||!z()||!L.isTopModal())return;const G=Vh(D==null?void 0:D.document);L.dialog&&G&&!Cl(L.dialog,G)&&L.dialog.focus()}),ee=_n(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&k())}),W=_n(G=>{l&&vw(G)&&L.isTopModal()&&(u==null||u(G),G.defaultPrevented||k())}),F=v.useRef(),B=v.useRef(),V=(...G)=>{Y(!0),R==null||R(...G)};if(!O)return null;const P=Object.assign({role:r,ref:L.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},j,{style:o,className:i,tabIndex:-1});let te=w?w(P):y.jsx("div",Object.assign({},P,{children:fe.cloneElement(a,{role:"document"})}));te=om(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:$,onExiting:T,onExited:V,onEnter:E,onEntering:A,onEntered:I,children:te});let K=null;return s&&(K=C({ref:L.setBackdropRef,onClick:ee}),K=om(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K})),y.jsx(y.Fragment,{children:Un.createPortal(y.jsxs(y.Fragment,{children:[K,te]}),O)})});C_.displayName="Modal";const S_=Object.assign(C_,{Manager:Vg});function am(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function QE(e,t){e.classList?e.classList.add(t):am(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Q1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function e8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Q1(e.className,t):e.setAttribute("class",Q1(e.className&&e.className.baseVal||"",t))}const ma={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class T_ extends Vg{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Hi(n,{[t]:`${parseFloat(Hi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Hi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(QE(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,ma.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),ui(n,ma.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),ui(n,ma.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();e8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,ma.FIXED_CONTENT).forEach(o=>this.restore(r,o)),ui(n,ma.STICKY_CONTENT).forEach(o=>this.restore(i,o)),ui(n,ma.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Gh;function k_(e){return Gh||(Gh=new T_(e)),Gh}const $_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));$_.displayName="ModalBody";const qg=fe.createContext({onHide(){}}),Yg=fe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=gt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:se(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:se(`${e}-content`,n),children:a})})});Yg.displayName="ModalDialog";const M_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-footer"),y.jsx(n,{ref:i,className:se(e,t),...r})));M_.displayName="ModalFooter";const Gg=fe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=v.useContext(qg),l=qi(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(jd,{"aria-label":e,variant:t,onClick:l})]})});Gg.displayName="AbstractModalHeader";const E_=fe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=gt(e,"modal-header"),y.jsx(Gg,{ref:o,...i,className:se(t,e),closeLabel:n,closeButton:r})));E_.displayName="ModalHeader";const t8=kg("h4"),O_=fe.forwardRef(({className:e,bsPrefix:t,as:n=t8,...r},i)=>(t=gt(t,"modal-title"),y.jsx(n,{ref:i,className:se(e,t),...r})));O_.displayName="ModalTitle";function n8(e){return y.jsx(Yi,{...e,timeout:null})}function r8(e){return y.jsx(Yi,{...e,timeout:null})}const A_=fe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Yg,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:p=!0,onEscapeKeyDown:m,onShow:g,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:S,onEntered:M,onExit:k,onExiting:$,onEnter:R,onEntering:T,onExited:E,backdropClassName:A,manager:I,...j},D)=>{const[O,L]=v.useState({}),[z,N]=v.useState(!1),H=v.useRef(!1),Y=v.useRef(!1),q=v.useRef(null),[Z,X]=PE(),J=Jo(D,X),ee=qi(x),W=Id();e=gt(e,"modal");const F=v.useMemo(()=>({onHide:ee}),[ee]);function B(){return I||k_({isRTL:W})}function V(de){if(!hs)return;const Ce=B().getScrollbarWidth()>0,Ge=de.scrollHeight>ds(de).documentElement.clientHeight;L({paddingRight:Ce&&!Ge?K1():void 0,paddingLeft:!Ce&&Ge?K1():void 0})}const P=qi(()=>{Z&&V(Z.dialog)});$w(()=>{Qp(window,"resize",P),q.current==null||q.current()});const te=()=>{H.current=!0},K=de=>{H.current&&Z&&de.target===Z.dialog&&(Y.current=!0),H.current=!1},G=()=>{N(!0),q.current=bw(Z.dialog,()=>{N(!1)})},ae=de=>{de.target===de.currentTarget&&G()},ne=de=>{if(h==="static"){ae(de);return}if(Y.current||de.target!==de.currentTarget){Y.current=!1;return}x==null||x()},re=de=>{p?m==null||m(de):(de.preventDefault(),h==="static"&&G())},oe=(de,Ce)=>{de&&V(de),R==null||R(de,Ce)},le=de=>{q.current==null||q.current(),k==null||k(de)},ye=(de,Ce)=>{T==null||T(de,Ce),Sg(window,"resize",P)},ge=de=>{de&&(de.style.display=""),E==null||E(de),Qp(window,"resize",P)},be=v.useCallback(de=>y.jsx("div",{...de,className:se(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Me={...n,...O};Me.display="block";const ce=de=>y.jsx("div",{role:"dialog",...de,style:Me,className:se(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?ne:void 0,onMouseUp:K,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...j,onMouseDown:te,className:r,contentClassName:i,children:o})});return y.jsx(qg.Provider,{value:F,children:y.jsx(S_,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:b,restoreFocusOptions:S,onEscapeKeyDown:re,onShow:g,onHide:x,onEnter:oe,onEntering:ye,onEntered:M,onExit:le,onExiting:$,onExited:ge,manager:B(),transition:f?n8:void 0,backdropTransition:f?r8:void 0,renderBackdrop:be,renderDialog:ce})})});A_.displayName="Modal";const Vn=Object.assign(A_,{Body:$_,Header:E_,Title:O_,Footer:M_,Dialog:Yg,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),i8=()=>{};function o8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||i8;Ww(e,i,{disabled:n,clickTrigger:r});const o=_n(a=>{vw(a)&&i(a)});v.useEffect(()=>{if(n||e==null)return;const a=ds(xu(e));let s=(a.defaultView||window).event;const l=fi(a,"keyup",c=>{if(c===s){s=void 0;return}o(c)});return()=>{l()}},[e,n,o])}const R_=fe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:l}=e,[c,u]=em(),[d,f]=em(),h=mc(u,t),p=im(e.container),m=im(e.target),[g,x]=v.useState(!e.show),_=Bw(m,c,Uw({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&g&&x(!1);const w=(...T)=>{x(!0),e.onExited&&e.onExited(...T)},C=e.show||!g;if(o8(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:b,onExiting:S,onEnter:M,onEntering:k,onEntered:$}=e;let R=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 R=om(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:b,onExiting:S,onExited:w,onEnter:M,onEntering:k,onEntered:$}),p?Un.createPortal(R,p):null});R_.displayName="Overlay";const D_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-header"),y.jsx(n,{ref:i,className:se(e,t),...r})));D_.displayName="PopoverHeader";const Zg=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));Zg.displayName="PopoverBody";function I_(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function j_(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const P_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:a,hasDoneInitialMeasure:s,popper:l,show:c,...u},d)=>{const f=gt(e,"popover"),h=Id(),[p]=(t==null?void 0:t.split("-"))||[],m=I_(p,h);let g=r;return c&&!s&&(g={...r,...j_(l==null?void 0:l.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:g,"x-placement":p,className:se(n,f,p&&`bs-popover-${m}`),...u,children:[y.jsx("div",{className:"popover-arrow",...a}),o?y.jsx(Zg,{children:i}):i]})});P_.displayName="Popover";const wu=Object.assign(P_,{Header:D_,Body:Zg,POPPER_OFFSET:[0,8]}),N_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{e=gt(e,"tooltip");const d=Id(),[f]=(t==null?void 0:t.split("-"))||[],h=I_(f,d);let p=r;return l&&!a&&(p={...r,...j_(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:se(n,e,`bs-tooltip-${h}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...o}),y.jsx("div",{className:`${e}-inner`,children:i})]})});N_.displayName="Tooltip";const L_=Object.assign(N_,{TOOLTIP_OFFSET:[0,6]});function a8(e){const t=v.useRef(null),n=gt(void 0,"popover"),r=gt(void 0,"tooltip"),i=v.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(am(t.current,n))return wu.POPPER_OFFSET;if(am(t.current,r))return L_.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function s8(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Pu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Pu(i)))}const F_=fe.forwardRef(({children:e,transition:t=Yi,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const l=v.useRef({}),[c,u]=v.useState(null),[d,f]=a8(a.offset),h=Jo(s,d),p=t===!0?Yi:t||void 0,m=qi(g=>{u(g),n==null||n.onFirstUpdate==null||n.onFirstUpdate(g)});return Bg(()=>{c&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,a.target]),v.useEffect(()=>{o||u(null)},[o]),y.jsx(R_,{...a,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:p,rootClose:r,placement:i,show:o,children:(g,{arrowProps:x,popper:_,show:w})=>{var C;s8(g,x);const b=_==null?void 0:_.placement,S=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),M=!!c;return typeof e=="function"?e({...g,placement:b,show:w,...!t&&w&&{className:"show"},popper:S,arrowProps:x,hasDoneInitialMeasure:M}):fe.cloneElement(e,{...g,placement:b,arrowProps:x,popper:S,hasDoneInitialMeasure:M,className:se(e.props.className,!t&&w&&"show"),style:{...e.props.style,...g.style}})}})});F_.displayName="Overlay";function l8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function eb(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!Cl(i,o)&&e(...t)}xe.oneOf(["click","hover","focus"]);const B_=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:a,delay:s,placement:l,flip:c=l&&l.indexOf("auto")!==-1,...u})=>{const d=v.useRef(null),f=Jo(d,fs(n)),h=W$(),p=v.useRef(""),[m,g]=dw(i,o,a),x=l8(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?fe.Children.only(n).props:{},b=j=>{f(Pu(j))},S=v.useCallback(()=>{if(h.clear(),p.current="show",!x.show){g(!0);return}h.set(()=>{p.current==="show"&&g(!0)},x.show)},[x.show,g,h]),M=v.useCallback(()=>{if(h.clear(),p.current="hide",!x.hide){g(!1);return}h.set(()=>{p.current==="hide"&&g(!1)},x.hide)},[x.hide,g,h]),k=v.useCallback((...j)=>{S(),_==null||_(...j)},[S,_]),$=v.useCallback((...j)=>{M(),w==null||w(...j)},[M,w]),R=v.useCallback((...j)=>{g(!m),C==null||C(...j)},[C,g,m]),T=v.useCallback((...j)=>{eb(S,j,"fromElement")},[S]),E=v.useCallback((...j)=>{eb(M,j,"toElement")},[M]),A=e==null?[]:[].concat(e),I={ref:b};return A.indexOf("click")!==-1&&(I.onClick=R),A.indexOf("focus")!==-1&&(I.onFocus=k,I.onBlur=$),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Qo(A.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.'),I.onMouseOver=T,I.onMouseOut=E),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(I):v.cloneElement(n,I),y.jsx(F_,{...u,show:m,onHide:M,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},Xg=fe.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=gt(e,"spinner");const l=`${e}-${n}`;return y.jsx(i,{ref:s,...a,className:se(o,l,r&&`${l}-${r}`,t&&`text-${t}`)})});Xg.displayName="Spinner";var z_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tb=v.createContext&&v.createContext(z_),c8=["attr","size","title"];function u8(e,t){if(e==null)return{};var n=d8(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d8(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 zu(){return zu=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},zu.apply(this,arguments)}function nb(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 Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(r){f8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f8(e,t,n){return t=h8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h8(e){var t=p8(e,"string");return typeof t=="symbol"?t:t+""}function p8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W_(e){return e&&e.map((t,n)=>v.createElement(t.tag,Wu({key:n},t.attr),W_(t.child)))}function it(e){return t=>v.createElement(m8,zu({attr:Wu({},e.attr)},t),W_(e.child))}function m8(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=u8(e,c8),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",zu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Wu(Wu({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&v.createElement("title",null,o),e.children)};return tb!==void 0?v.createElement(tb.Consumer,null,n=>t(n)):t(z_)}function g8(e){return it({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 gc(e){return it({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 v8(e){return it({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 b8(e){return it({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 y8(e){return it({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 x8(e){return it({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 w8(e){return it({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 _8(e){return it({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 U_(e){return it({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 C8(e){return it({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 S8(e){return it({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 T8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-2-6H6v-2h12v2zm-4 4H6v-2h8v2z"},child:[]}]})(e)}function k8(e){return it({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 $8(e){return it({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 M8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"},child:[]}]})(e)}function E8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h12v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"},child:[]}]})(e)}function O8(e){return it({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 A8(e){return it({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 R8(e){return it({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 D8(e){return it({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 I8(e){return it({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 j8(e){return it({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 P8(e){return it({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 N8(e){return it({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 L8(e){return it({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 F8(e){return it({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 B8(e){return it({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 H_(e){return it({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 z8(e){return it({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 V_(e){return it({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 W8(e){return it({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 U8(e){return it({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 H8(e){return it({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 rn=v.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),q_=v.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),Y_=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),G_=()=>{const e=je.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:o,setOptions:a}=v.useContext(Y_);let s;e[0]!==i||e[1]!==o?(s=f=>{i(),o.current(f)},e[0]=i,e[1]=o,e[2]=s):s=e[2];const l=s;let c;e[3]!==o||e[4]!==a||e[5]!==r?(c=async(f,h)=>(a(p=>({...p,...h})),r(f),new Promise(p=>{o.current=p})),e[3]=o,e[4]=a,e[5]=r,e[6]=c):c=e[6];const u=c;let d;return e[7]!==t||e[8]!==l||e[9]!==u||e[10]!==n?(d={isShown:t,text:n,prompt:u,onFinish:l},e[7]=t,e[8]=l,e[9]=u,e[10]=n,e[11]=d):d=e[11],d};let V8={data:""},q8=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||V8},Y8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,G8=/\/\*[^]*?\*\/| +/g,rb=/\n+/g,Fi=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Fi(a,o):o+"{"+Fi(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Fi(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Fi.p?Fi.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ri={},Z_=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Z_(e[n]);return t}return e},Z8=(e,t,n,r,i)=>{let o=Z_(e),a=ri[o]||(ri[o]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(o));if(!ri[a]){let l=o!==e?e:(c=>{let u,d,f=[{}];for(;u=Y8.exec(c.replace(G8,""));)u[4]?f.shift():u[3]?(d=u[3].replace(rb," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(rb," ").trim();return f[0]})(e);ri[a]=Fi(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&ri.g?ri.g:null;return n&&(ri.g=ri[a]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(ri[a],t,r,s),a},X8=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Fi(s,""):s===!1?"":s}return r+i+(a??"")},"");function Hd(e){let t=this||{},n=e.call?e(t.p):e;return Z8(n.unshift?n.raw?X8(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,q8(t.target),t.g,t.o,t.k)}let X_,sm,lm;Hd.bind({g:1});let wi=Hd.bind({k:1});function K8(e,t,n,r){Fi.p=t,X_=e,sm=n,lm=r}function io(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:sm&&sm()},s),n.o=/ *go\d+/.test(l),s.className=Hd.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),lm&&c[0]&&lm(s),X_(c,s)}return i}}var J8=e=>typeof e=="function",Uu=(e,t)=>J8(e)?e(t):e,Q8=(()=>{let e=0;return()=>(++e).toString()})(),K_=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),eO=20,Kg="default",J_=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return J_(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,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 o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+o}))}}},_u=[],Q_={toasts:[],pausedAt:void 0,settings:{toastLimit:eO}},Nr={},e4=(e,t=Kg)=>{Nr[t]=J_(Nr[t]||Q_,e),_u.forEach(([n,r])=>{n===t&&r(Nr[t])})},t4=e=>Object.keys(Nr).forEach(t=>e4(e,t)),tO=e=>Object.keys(Nr).find(t=>Nr[t].toasts.some(n=>n.id===e)),Vd=(e=Kg)=>t=>{e4(t,e)},nO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},rO=(e={},t=Kg)=>{let[n,r]=v.useState(Nr[t]||Q_),i=v.useRef(Nr[t]);v.useEffect(()=>(i.current!==Nr[t]&&r(Nr[t]),_u.push([t,r]),()=>{let a=_u.findIndex(([s])=>s===t);a>-1&&_u.splice(a,1)}),[t]);let o=n.toasts.map(a=>{var s,l,c;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((s=e[a.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((l=e[a.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||nO[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},iO=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Q8()}),vc=e=>(t,n)=>{let r=iO(t,e,n);return Vd(r.toasterId||tO(r.id))({type:2,toast:r}),r.id},pn=(e,t)=>vc("blank")(e,t);pn.error=vc("error");pn.success=vc("success");pn.loading=vc("loading");pn.custom=vc("custom");pn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Vd(t)(n):t4(n)};pn.dismissAll=e=>pn.dismiss(void 0,e);pn.remove=(e,t)=>{let n={type:4,toastId:e};t?Vd(t)(n):t4(n)};pn.removeAll=e=>pn.remove(void 0,e);pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Uu(t.success,i):void 0;return o?pn.success(o,{id:r,...n,...n==null?void 0:n.success}):pn.dismiss(r),i}).catch(i=>{let o=t.error?Uu(t.error,i):void 0;o?pn.error(o,{id:r,...n,...n==null?void 0:n.error}):pn.dismiss(r)}),e};var oO=1e3,aO=(e,t="default")=>{let{toasts:n,pausedAt:r}=rO(e,t),i=v.useRef(new Map).current,o=v.useCallback((d,f=oO)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),a({type:4,toastId:d})},f);i.set(d,h)},[]);v.useEffect(()=>{if(r)return;let d=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let p=(h.duration||0)+h.pauseDuration-(d-h.createdAt);if(p<0){h.visible&&pn.dismiss(h.id);return}return setTimeout(()=>pn.dismiss(h.id,t),p)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r,t]);let a=v.useCallback(Vd(t),[t]),s=v.useCallback(()=>{a({type:5,time:Date.now()})},[a]),l=v.useCallback((d,f)=>{a({type:1,toast:{id:d,height:f}})},[a]),c=v.useCallback(()=>{r&&a({type:6,time:Date.now()})},[r,a]),u=v.useCallback((d,f)=>{let{reverseOrder:h=!1,gutter:p=8,defaultPosition:m}=f||{},g=n.filter(w=>(w.position||m)===(d.position||m)&&w.height),x=g.findIndex(w=>w.id===d.id),_=g.filter((w,C)=>C<x&&w.visible).length;return g.filter(w=>w.visible).slice(...h?[_+1]:[0,_]).reduce((w,C)=>w+(C.height||0)+p,0)},[n]);return v.useEffect(()=>{n.forEach(d=>{if(d.dismissed)o(d.id,d.removeDelay);else{let f=i.get(d.id);f&&(clearTimeout(f),i.delete(d.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},sO=wi`
45
+ from {
46
+ transform: scale(0) rotate(45deg);
47
+ opacity: 0;
48
+ }
49
+ to {
50
+ transform: scale(1) rotate(45deg);
51
+ opacity: 1;
52
+ }`,lO=wi`
53
+ from {
54
+ transform: scale(0);
55
+ opacity: 0;
56
+ }
57
+ to {
58
+ transform: scale(1);
59
+ opacity: 1;
60
+ }`,cO=wi`
61
+ from {
62
+ transform: scale(0) rotate(90deg);
63
+ opacity: 0;
64
+ }
65
+ to {
66
+ transform: scale(1) rotate(90deg);
67
+ opacity: 1;
68
+ }`,uO=io("div")`
69
+ width: 20px;
70
+ opacity: 0;
71
+ height: 20px;
72
+ border-radius: 10px;
73
+ background: ${e=>e.primary||"#ff4b4b"};
74
+ position: relative;
75
+ transform: rotate(45deg);
76
+
77
+ animation: ${sO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
78
+ forwards;
79
+ animation-delay: 100ms;
80
+
81
+ &:after,
82
+ &:before {
83
+ content: '';
84
+ animation: ${lO} 0.15s ease-out forwards;
85
+ animation-delay: 150ms;
86
+ position: absolute;
87
+ border-radius: 3px;
88
+ opacity: 0;
89
+ background: ${e=>e.secondary||"#fff"};
90
+ bottom: 9px;
91
+ left: 4px;
92
+ height: 2px;
93
+ width: 12px;
94
+ }
95
+
96
+ &:before {
97
+ animation: ${cO} 0.15s ease-out forwards;
98
+ animation-delay: 180ms;
99
+ transform: rotate(90deg);
100
+ }
101
+ `,dO=wi`
102
+ from {
103
+ transform: rotate(0deg);
104
+ }
105
+ to {
106
+ transform: rotate(360deg);
107
+ }
108
+ `,fO=io("div")`
109
+ width: 12px;
110
+ height: 12px;
111
+ box-sizing: border-box;
112
+ border: 2px solid;
113
+ border-radius: 100%;
114
+ border-color: ${e=>e.secondary||"#e0e0e0"};
115
+ border-right-color: ${e=>e.primary||"#616161"};
116
+ animation: ${dO} 1s linear infinite;
117
+ `,hO=wi`
118
+ from {
119
+ transform: scale(0) rotate(45deg);
120
+ opacity: 0;
121
+ }
122
+ to {
123
+ transform: scale(1) rotate(45deg);
124
+ opacity: 1;
125
+ }`,pO=wi`
126
+ 0% {
127
+ height: 0;
128
+ width: 0;
129
+ opacity: 0;
130
+ }
131
+ 40% {
132
+ height: 0;
133
+ width: 6px;
134
+ opacity: 1;
135
+ }
136
+ 100% {
137
+ opacity: 1;
138
+ height: 10px;
139
+ }`,mO=io("div")`
140
+ width: 20px;
141
+ opacity: 0;
142
+ height: 20px;
143
+ border-radius: 10px;
144
+ background: ${e=>e.primary||"#61d345"};
145
+ position: relative;
146
+ transform: rotate(45deg);
147
+
148
+ animation: ${hO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
149
+ forwards;
150
+ animation-delay: 100ms;
151
+ &:after {
152
+ content: '';
153
+ box-sizing: border-box;
154
+ animation: ${pO} 0.2s ease-out forwards;
155
+ opacity: 0;
156
+ animation-delay: 200ms;
157
+ position: absolute;
158
+ border-right: 2px solid;
159
+ border-bottom: 2px solid;
160
+ border-color: ${e=>e.secondary||"#fff"};
161
+ bottom: 6px;
162
+ left: 6px;
163
+ height: 10px;
164
+ width: 6px;
165
+ }
166
+ `,gO=io("div")`
167
+ position: absolute;
168
+ `,vO=io("div")`
169
+ position: relative;
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ min-width: 20px;
174
+ min-height: 20px;
175
+ `,bO=wi`
176
+ from {
177
+ transform: scale(0.6);
178
+ opacity: 0.4;
179
+ }
180
+ to {
181
+ transform: scale(1);
182
+ opacity: 1;
183
+ }`,yO=io("div")`
184
+ position: relative;
185
+ transform: scale(0.6);
186
+ opacity: 0.4;
187
+ min-width: 20px;
188
+ animation: ${bO} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
189
+ forwards;
190
+ `,xO=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?fe.createElement(yO,null,t):t:n==="blank"?null:fe.createElement(vO,null,fe.createElement(fO,{...r}),n!=="loading"&&fe.createElement(gO,null,n==="error"?fe.createElement(uO,{...r}):fe.createElement(mO,{...r})))},wO=e=>`
191
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
192
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
193
+ `,_O=e=>`
194
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
195
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
196
+ `,CO="0%{opacity:0;} 100%{opacity:1;}",SO="0%{opacity:1;} 100%{opacity:0;}",TO=io("div")`
197
+ display: flex;
198
+ align-items: center;
199
+ background: #fff;
200
+ color: #363636;
201
+ line-height: 1.3;
202
+ will-change: transform;
203
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
204
+ max-width: 350px;
205
+ pointer-events: auto;
206
+ padding: 8px 10px;
207
+ border-radius: 8px;
208
+ `,kO=io("div")`
209
+ display: flex;
210
+ justify-content: center;
211
+ margin: 4px 10px;
212
+ color: inherit;
213
+ flex: 1 1 auto;
214
+ white-space: pre-line;
215
+ `,$O=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=K_()?[CO,SO]:[wO(n),_O(n)];return{animation:t?`${wi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${wi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},MO=fe.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?$O(e.position||t||"top-center",e.visible):{opacity:0},o=fe.createElement(xO,{toast:e}),a=fe.createElement(kO,{...e.ariaProps},Uu(e.message,e));return fe.createElement(TO,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):fe.createElement(fe.Fragment,null,o,a))});K8(fe.createElement);var EO=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=fe.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return fe.createElement("div",{ref:o,className:t,style:n},i)},OO=(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:K_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},AO=Hd`
216
+ z-index: 9999;
217
+ > * {
218
+ pointer-events: auto;
219
+ }
220
+ `,Jc=16,RO=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=aO(n,o);return fe.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:Jc,left:Jc,right:Jc,bottom:Jc,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(u=>{let d=u.position||t,f=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=OO(d,f);return fe.createElement(EO,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?AO:"",style:h},u.type==="custom"?Uu(u.message,u):i?i(u):fe.createElement(MO,{toast:u,position:d}))}))},ga=pn;const qd=v.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var cm;(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"})(cm||(cm={}));const n4=cm;var um;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(um||(um={}));const DO=um,r4=v.createContext({user:null,userLoginState:{state:n4.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Yd=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null,authState:"NO_AUTH"}),i4=v.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Hu=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),o4=e=>{Hu(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Hu(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:o4(n)})},a4=e=>Object.values(e).every(t=>t===null),IO=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&a4(r)?t[n]=null:t[n]=r}),t},Gd=e=>e&&e.errorFields&&e.errorFields.length>0?e.errorFields.map(t=>({name:t.name.split(".").map(r=>`${r.charAt(0).toLowerCase()}${r.slice(1)}`).join("."),errors:t.errors})):[],s4=async e=>{if(e.type==null||!e.type.includes("json"))return[];try{const t=await e.text(),n=JSON.parse(t);return Gd(n)}catch(t){return console.error("Error parsing blob response:",t),[]}},jO=(e,t)=>{Gd(t.response.data).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Hu(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},l4=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},c4=e=>{const t=je.c(35);let n,r,i,o,a,s,l,c,u;t[0]!==e?({heading:o,content:r,placement:a,children:n,trigger:u,popoverClassName:s,small:c,delay:i,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9]);let d;t[10]!==u?(d=u===void 0?["hover"]:u,t[10]=u,t[11]=d):d=t[11];const f=d;let h;t[12]!==f?(h=f.includes("hover")&&!f.includes("focus")?[...f,"focus"]:f,t[12]=f,t[13]=h):h=t[13];const p=h;let m;t[14]!==s||t[15]!==c?(m=se("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=m):m=t[16];let g;t[17]!==o?(g=o&&y.jsx(wu.Header,{children:typeof o=="string"?y.jsx(jn,{variant:"h6",className:"text-primary",children:o}):o}),t[17]=o,t[18]=g):g=t[18];let x;t[19]!==r?(x=y.jsx(wu.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==m||t[22]!==g||t[23]!==x?(_=y.jsxs(wu,{className:m,onClick:PO,children:[g,x]}),t[21]=m,t[22]=g,t[23]=x,t[24]=_):_=t[24];const w=l.controlled?l.isOpen:void 0;let C;t[25]!==l?(C=l.controlled?S=>l.setIsOpen(S):void 0,t[25]=l,t[26]=C):C=t[26];let b;return t[27]!==n||t[28]!==i||t[29]!==a||t[30]!==_||t[31]!==w||t[32]!==C||t[33]!==p?(b=y.jsx(B_,{placement:a,overlay:_,trigger:p,rootClose:!0,show:w,onToggle:C,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=a,t[30]=_,t[31]=w,t[32]=C,t[33]=p,t[34]=b):b=t[34],b};function PO(e){return e.stopPropagation()}const NO="_h1_14r4v_1",LO="_h3_14r4v_8",FO="_h6_14r4v_15",BO="_subtitle_14r4v_22",zO="_body_14r4v_29",WO="_body2_14r4v_36",UO="_caption_14r4v_43",HO="_form-label_14r4v_50",Ri={h1:NO,h3:LO,h6:FO,subtitle:BO,body:zO,body2:WO,caption:UO,formLabel:HO},VO=e=>{const t=je.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let o;t[0]!==r?(o=se("luminus-text-primary luminus-h1",Ri.h1,r),t[0]=r,t[1]=o):o=t[1];let a;return t[2]!==i||t[3]!==o?(a=y.jsx("h1",{className:o,children:i}),t[2]=i,t[3]=o,t[4]=a):a=t[4],a}case"h3":{let o;t[5]!==r?(o=se("luminus-text luminus-h3",Ri.h3,r),t[5]=r,t[6]=o):o=t[6];let a;return t[7]!==i||t[8]!==o?(a=y.jsx("h3",{className:o,children:i}),t[7]=i,t[8]=o,t[9]=a):a=t[9],a}case"h6":{let o;t[10]!==r?(o=se("luminus-text luminus-h6",Ri.h6,r),t[10]=r,t[11]=o):o=t[11];let a;return t[12]!==i||t[13]!==o?(a=y.jsx("h6",{className:o,children:i}),t[12]=i,t[13]=o,t[14]=a):a=t[14],a}case"subtitle":{let o;t[15]!==r?(o=se("luminus-text luminus-subtitle",Ri.subtitle,r),t[15]=r,t[16]=o):o=t[16];let a;return t[17]!==i||t[18]!==o?(a=y.jsx("div",{className:o,children:i}),t[17]=i,t[18]=o,t[19]=a):a=t[19],a}case"body":{let o;t[20]!==r?(o=se("luminus-text luminus-body",Ri.body,r),t[20]=r,t[21]=o):o=t[21];let a;return t[22]!==i||t[23]!==o?(a=y.jsx("div",{className:o,children:i}),t[22]=i,t[23]=o,t[24]=a):a=t[24],a}case"body2":{let o;t[25]!==r?(o=se("luminus-text luminus-body2",Ri.body2,r),t[25]=r,t[26]=o):o=t[26];let a;return t[27]!==i||t[28]!==o?(a=y.jsx("div",{className:o,children:i}),t[27]=i,t[28]=o,t[29]=a):a=t[29],a}case"caption":{let o;t[30]!==r?(o=se("luminus-text-muted luminus-caption",Ri.caption,r),t[30]=r,t[31]=o):o=t[31];let a;return t[32]!==i||t[33]!==o?(a=y.jsx("div",{className:o,children:i}),t[32]=i,t[33]=o,t[34]=a):a=t[34],a}case"form-label":{let o;t[35]!==r?(o=se("luminus-text luminus-form-label",Ri.formLabel,r),t[35]=r,t[36]=o):o=t[36];let a;return t[37]!==i||t[38]!==o?(a=y.jsx("div",{className:o,children:i}),t[37]=i,t[38]=o,t[39]=a):a=t[39],a}default:{let o;return t[40]!==i?(o=y.jsx(y.Fragment,{children:i}),t[40]=i,t[41]=o):o=t[41],o}}},jn=e=>{const t=je.c(4),{variant:n,className:r,children:i}=e;let o;return t[0]!==i||t[1]!==r||t[2]!==n?(o=y.jsx(VO,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=o):o=t[3],o},Jg=e=>{const t=je.c(7),{text:n,placement:r,children:i,delay:o}=e;let a;t[0]!==n?(a=y.jsx(jn,{variant:"body2",className:"text-center",children:n}),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==i||t[3]!==o||t[4]!==r||t[5]!==a?(s=y.jsx(c4,{content:a,placement:r,delay:o,small:!0,children:i}),t[2]=i,t[3]=o,t[4]=r,t[5]=a,t[6]=s):s=t[6],s},u4=e=>e.length<300?e:e.substring(0,300)+"...",Xa=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Qg(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const dm=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),qO=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function YO(e){return e==null?"":wg(uc(e),"dd.MM.yyyy")}function Zd(e){return(e==null?void 0:e.toString().split("T")[0])??""}function GO(e){return e==null?"":wg(uc(e),"dd.MM.yyyy HH:mm")}function ZO(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const XO=(e,t)=>Qg(" ",e?`${e},`:void 0,t),KO=(e,t)=>`${t}${e!=null?` (${e})`:""}`,JO=(e,t)=>`[${e??""}] ${t??""}`,d4=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),f4=e=>{const t=uc(e);return!Number.isNaN(t.getTime())},h4=e=>{if(!f4(e))return!1;const n=uc(e).getUTCFullYear();return n>=1900&&n<=2100};function QO(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function e7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function t7(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 n7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function r7(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 p4(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function m4(e=new Date){return jT(e)}function i7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),p4(t)}function o7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),m4(t)}function a7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function s7(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function l7(e){return Zd(e.toISOString())}function g4(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,o=r.match(i);if(o){const a=o[2].toUpperCase(),s=o[3];try{return a==="B"?r=d4(s):a==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(l,c)=>String.fromCharCode(parseInt(c,16)))),decodeURIComponent(r)}catch(l){return console.error("Error decoding MIME encoded filename:",l),r}}try{return decodeURIComponent(r)}catch(a){return console.error("Error decoding filename:",a),r}}return null}function Vu(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 c7=["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"],u7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],v4=e=>c7.includes(e.type),b4=e=>u7.includes(e.toLowerCase());function d7(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 o=e.headers.get("Content-disposition");typeof o=="string"&&o.length>0&&(n=g4(e.headers.get("Content-disposition"))??n)}const r=v4(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;Vu(e.data,n,r?i:!1)}function Ka(e,t=Ka.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Ka.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 fm=(e,t)=>t?e?Ka(e).toLowerCase().includes(Ka(t.toLowerCase())):!1:!0,y4=(e,t)=>t?e?Ka(e).toLowerCase().startsWith(Ka(t.toLowerCase())):!1:!0,e0=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,o=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?fm(o,i.substring(1)):y4(o,i):fm(o,i):!0};function x4(e,t){return function(){return e.apply(t,arguments)}}const{toString:f7}=Object.prototype,{getPrototypeOf:t0}=Object,{iterator:Xd,toStringTag:w4}=Symbol,Kd=(e=>t=>{const n=f7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Or=e=>(e=e.toLowerCase(),t=>Kd(t)===e),Jd=e=>t=>typeof t===e,{isArray:ms}=Array,Ja=Jd("undefined");function bc(e){return e!==null&&!Ja(e)&&e.constructor!==null&&!Ja(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _4=Or("ArrayBuffer");function h7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_4(e.buffer),t}const p7=Jd("string"),Gn=Jd("function"),C4=Jd("number"),yc=e=>e!==null&&typeof e=="object",m7=e=>e===!0||e===!1,Cu=e=>{if(Kd(e)!=="object")return!1;const t=t0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(w4 in e)&&!(Xd in e)},g7=e=>{if(!yc(e)||bc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},v7=Or("Date"),b7=Or("File"),y7=Or("Blob"),x7=Or("FileList"),w7=e=>yc(e)&&Gn(e.pipe),_7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Kd(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},C7=Or("URLSearchParams"),[S7,T7,k7,$7]=["ReadableStream","Request","Response","Headers"].map(Or),M7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ms(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(bc(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function S4(e,t){if(bc(e))return null;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 To=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,T4=e=>!Ja(e)&&e!==To;function hm(){const{caseless:e,skipUndefined:t}=T4(this)&&this||{},n={},r=(i,o)=>{const a=e&&S4(n,o)||o;Cu(n[a])&&Cu(i)?n[a]=hm(n[a],i):Cu(i)?n[a]=hm({},i):ms(i)?n[a]=i.slice():(!t||!Ja(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&xc(arguments[i],r);return n}const E7=(e,t,n,{allOwnKeys:r}={})=>(xc(t,(i,o)=>{n&&Gn(i)?e[o]=x4(i,n):e[o]=i},{allOwnKeys:r}),e),O7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A7=(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)},R7=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&t0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},D7=(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},I7=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!C4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},j7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&t0(Uint8Array)),P7=(e,t)=>{const r=(e&&e[Xd]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},N7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L7=Or("HTMLFormElement"),F7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ib=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B7=Or("RegExp"),k4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};xc(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},z7=e=>{k4(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(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+"'")})}})},W7=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ms(e)?r(e):r(String(e).split(t)),n},U7=()=>{},H7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function V7(e){return!!(e&&Gn(e.append)&&e[w4]==="FormData"&&e[Xd])}const q7=e=>{const t=new Array(10),n=(r,i)=>{if(yc(r)){if(t.indexOf(r)>=0)return;if(bc(r))return r;if(!("toJSON"in r)){t[i]=r;const o=ms(r)?[]:{};return xc(r,(a,s)=>{const l=n(a,i+1);!Ja(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Y7=Or("AsyncFunction"),G7=e=>e&&(yc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),$4=((e,t)=>e?setImmediate:t?((n,r)=>(To.addEventListener("message",({source:i,data:o})=>{i===To&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),To.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(To.postMessage)),Z7=typeof queueMicrotask<"u"?queueMicrotask.bind(To):typeof process<"u"&&process.nextTick||$4,X7=e=>e!=null&&Gn(e[Xd]),ie={isArray:ms,isArrayBuffer:_4,isBuffer:bc,isFormData:_7,isArrayBufferView:h7,isString:p7,isNumber:C4,isBoolean:m7,isObject:yc,isPlainObject:Cu,isEmptyObject:g7,isReadableStream:S7,isRequest:T7,isResponse:k7,isHeaders:$7,isUndefined:Ja,isDate:v7,isFile:b7,isBlob:y7,isRegExp:B7,isFunction:Gn,isStream:w7,isURLSearchParams:C7,isTypedArray:j7,isFileList:x7,forEach:xc,merge:hm,extend:E7,trim:M7,stripBOM:O7,inherits:A7,toFlatObject:R7,kindOf:Kd,kindOfTest:Or,endsWith:D7,toArray:I7,forEachEntry:P7,matchAll:N7,isHTMLForm:L7,hasOwnProperty:ib,hasOwnProp:ib,reduceDescriptors:k4,freezeMethods:z7,toObjectSet:W7,toCamelCase:F7,noop:U7,toFiniteNumber:H7,findKey:S4,global:To,isContextDefined:T4,isSpecCompliantForm:V7,toJSONObject:q7,isAsyncFn:Y7,isThenable:G7,setImmediate:$4,asap:Z7,isIterable:X7};function lt(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)}ie.inherits(lt,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:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const M4=lt.prototype,E4={};["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=>{E4[e]={value:e}});Object.defineProperties(lt,E4);Object.defineProperty(M4,"isAxiosError",{value:!0});lt.from=(e,t,n,r,i,o)=>{const a=Object.create(M4);ie.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return lt.call(a,s,l,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const K7=null;function pm(e){return ie.isPlainObject(e)||ie.isArray(e)}function O4(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function ob(e,t,n){return e?e.concat(t).map(function(i,o){return i=O4(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function J7(e){return ie.isArray(e)&&!e.some(pm)}const Q7=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Qd(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!ie.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ie.isDate(p))return p.toISOString();if(ie.isBoolean(p))return p.toString();if(!l&&ie.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(p)||ie.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let x=p;if(p&&!g&&typeof p=="object"){if(ie.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(ie.isArray(p)&&J7(p)||(ie.isFileList(p)||ie.endsWith(m,"[]"))&&(x=ie.toArray(p)))return m=O4(m),x.forEach(function(w,C){!(ie.isUndefined(w)||w===null)&&t.append(a===!0?ob([m],C,o):a===null?m:m+"[]",c(w))}),!1}return pm(p)?!0:(t.append(ob(g,m,o),c(p)),!1)}const d=[],f=Object.assign(Q7,{defaultVisitor:u,convertValue:c,isVisitable:pm});function h(p,m){if(!ie.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),ie.forEach(p,function(x,_){(!(ie.isUndefined(x)||x===null)&&i.call(t,x,ie.isString(_)?_.trim():_,m,f))===!0&&h(x,m?m.concat(_):[_])}),d.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ab(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function n0(e,t){this._pairs=[],e&&Qd(e,this,t)}const A4=n0.prototype;A4.append=function(t,n){this._pairs.push([t,n])};A4.toString=function(t){const n=t?function(r){return t.call(this,r,ab)}:ab;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function eA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function R4(e,t,n){if(!t)return e;const r=n&&n.encode||eA;ie.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=ie.isURLSearchParams(t)?t.toString():new n0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sb{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){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const D4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tA=typeof URLSearchParams<"u"?URLSearchParams:n0,nA=typeof FormData<"u"?FormData:null,rA=typeof Blob<"u"?Blob:null,iA={isBrowser:!0,classes:{URLSearchParams:tA,FormData:nA,Blob:rA},protocols:["http","https","file","blob","url","data"]},r0=typeof window<"u"&&typeof document<"u",mm=typeof navigator=="object"&&navigator||void 0,oA=r0&&(!mm||["ReactNative","NativeScript","NS"].indexOf(mm.product)<0),aA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sA=r0&&window.location.href||"http://localhost",lA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:r0,hasStandardBrowserEnv:oA,hasStandardBrowserWebWorkerEnv:aA,navigator:mm,origin:sA},Symbol.toStringTag,{value:"Module"})),$n={...lA,...iA};function cA(e,t){return Qd(e,new $n.classes.URLSearchParams,{visitor:function(n,r,i,o){return $n.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function uA(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dA(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function I4(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&ie.isArray(i)?i.length:a,l?(ie.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ie.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ie.isArray(i[a])&&(i[a]=dA(i[a])),!s)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,i)=>{t(uA(r),i,n,0)}),n}return null}function fA(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wc={transitional:D4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ie.isObject(t);if(o&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return i?JSON.stringify(I4(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return cA(t,this.formSerializer).toString();if((s=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qd(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),fA(t)):t}],transformResponse:[function(t){const n=this.transitional||wc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?lt.from(s,lt.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:$n.classes.FormData,Blob:$n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{wc.headers[e]={}});const hA=ie.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"]),pA=e=>{const t={};let n,r,i;return e&&e.split(`
221
+ `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&hA[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lb=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function Su(e){return e===!1||e==null?e:ie.isArray(e)?e.map(Su):String(e)}function mA(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 gA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zh(e,t,n,r,i){if(ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function vA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bA(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=zs(l);if(!u)throw new Error("header name must be a non-empty string");const d=ie.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Su(s))}const a=(s,l)=>ie.forEach(s,(c,u)=>o(c,u,l));if(ie.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ie.isString(t)&&(t=t.trim())&&!gA(t))a(pA(t),n);else if(ie.isObject(t)&&ie.isIterable(t)){let s={},l,c;for(const u of t){if(!ie.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ie.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=zs(t),t){const r=ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return mA(i);if(ie.isFunction(n))return n.call(this,i,r);if(ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=zs(a),a){const s=ie.findKey(r,a);s&&(!n||Zh(r,r[s],s,n))&&(delete r[s],i=!0)}}return ie.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Zh(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ie.forEach(this,(i,o)=>{const a=ie.findKey(r,o);if(a){n[a]=Su(i),delete n[o];return}const s=t?vA(o):String(o).trim();s!==o&&delete n[o],n[s]=Su(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ie.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(`
222
+ `)}getSetCookie(){return this.get("set-cookie")||[]}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[lb]=this[lb]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=zs(a);r[s]||(bA(i,a),r[s]=!0)}return ie.isArray(t)?t.forEach(o):o(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(Zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(Zn);function Xh(e,t){const n=this||wc,r=t||n,i=Zn.from(r.headers);let o=r.data;return ie.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function j4(e){return!!(e&&e.__CANCEL__)}function gs(e,t,n){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(gs,lt,{__CANCEL__:!0});function P4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xA(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function wA(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const qu=(e,t,n=3)=>{let r=0;const i=xA(50,250);return wA(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},cb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ub=e=>(...t)=>ie.asap(()=>e(...t)),_A=$n.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$n.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($n.origin),$n.navigator&&/(msie|trident)/i.test($n.navigator.userAgent)):()=>!0,CA=$n.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ie.isString(r)&&s.push(`path=${r}`),ie.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),ie.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function SA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function N4(e,t,n){let r=!SA(t);return e&&(r||n==!1)?TA(e,t):t}const db=e=>e instanceof Zn?{...e}:e;function Fo(e,t){t=t||{};const n={};function r(c,u,d,f){return ie.isPlainObject(c)&&ie.isPlainObject(u)?ie.merge.call({caseless:f},c,u):ie.isPlainObject(u)?ie.merge({},u):ie.isArray(u)?u.slice():u}function i(c,u,d,f){if(ie.isUndefined(u)){if(!ie.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!ie.isUndefined(u))return r(void 0,u)}function a(c,u){if(ie.isUndefined(u)){if(!ie.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(db(c),db(u),d,!0)};return ie.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ie.isUndefined(f)&&d!==s||(n[u]=f)}),n}const L4=e=>{const t=Fo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=Zn.from(a),t.url=R4(N4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ie.isFormData(n)){if($n.hasStandardBrowserEnv||$n.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ie.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if($n.hasStandardBrowserEnv&&(r&&ie.isFunction(r)&&(r=r(t)),r||r!==!1&&_A(t.url))){const l=i&&o&&CA.read(o);l&&a.set(i,l)}return t},kA=typeof XMLHttpRequest<"u",$A=kA&&function(e){return new Promise(function(n,r){const i=L4(e);let o=i.data;const a=Zn.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function x(){if(!g)return;const w=Zn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};P4(function(M){n(M),m()},function(M){r(M),m()},b),g=null}"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(r(new lt("Request aborted",lt.ECONNABORTED,e,g)),g=null)},g.onerror=function(C){const b=C&&C.message?C.message:"Network Error",S=new lt(b,lt.ERR_NETWORK,e,g);S.event=C||null,r(S),g=null},g.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||D4;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new lt(C,b.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&ie.forEach(a.toJSON(),function(C,b){g.setRequestHeader(b,C)}),ie.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([f,p]=qu(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=qu(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{g&&(r(!w||w.type?new gs(null,e,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=yA(i.url);if(_&&$n.protocols.indexOf(_)===-1){r(new lt("Unsupported protocol "+_+":",lt.ERR_BAD_REQUEST,e));return}g.send(o||null)})},MA=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof lt?u:new gs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new lt(`timeout ${t} of ms exceeded`,lt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>ie.asap(s),l}},EA=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},OA=async function*(e,t){for await(const n of AA(e))yield*EA(n,t)},AA=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()}},fb=(e,t,n,r)=>{const i=OA(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},hb=64*1024,{isFunction:Qc}=ie,RA=(({Request:e,Response:t})=>({Request:e,Response:t}))(ie.global),{ReadableStream:pb,TextEncoder:mb}=ie.global,gb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},DA=e=>{e=ie.merge.call({skipUndefined:!0},RA,e);const{fetch:t,Request:n,Response:r}=e,i=t?Qc(t):typeof fetch=="function",o=Qc(n),a=Qc(r);if(!i)return!1;const s=i&&Qc(pb),l=i&&(typeof mb=="function"?(p=>m=>p.encode(m))(new mb):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=o&&s&&gb(()=>{let p=!1;const m=new n($n.origin,{body:new pb,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=a&&s&&gb(()=>ie.isReadableStream(new r("").body)),d={stream:u&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,g)=>{let x=m&&m[p];if(x)return x.call(m);throw new lt(`Response type '${p}' is not supported`,lt.ERR_NOT_SUPPORT,g)})});const f=async p=>{if(p==null)return 0;if(ie.isBlob(p))return p.size;if(ie.isSpecCompliantForm(p))return(await new n($n.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(p)||ie.isArrayBuffer(p))return p.byteLength;if(ie.isURLSearchParams(p)&&(p=p+""),ie.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const g=ie.toFiniteNumber(p.getContentLength());return g??f(m)};return async p=>{let{url:m,method:g,data:x,signal:_,cancelToken:w,timeout:C,onDownloadProgress:b,onUploadProgress:S,responseType:M,headers:k,withCredentials:$="same-origin",fetchOptions:R}=L4(p),T=t||fetch;M=M?(M+"").toLowerCase():"text";let E=MA([_,w&&w.toAbortSignal()],C),A=null;const I=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let j;try{if(S&&c&&g!=="get"&&g!=="head"&&(j=await h(k,x))!==0){let H=new n(m,{method:"POST",body:x,duplex:"half"}),Y;if(ie.isFormData(x)&&(Y=H.headers.get("content-type"))&&k.setContentType(Y),H.body){const[q,Z]=cb(j,qu(ub(S)));x=fb(H.body,hb,q,Z)}}ie.isString($)||($=$?"include":"omit");const D=o&&"credentials"in n.prototype,O={...R,signal:E,method:g.toUpperCase(),headers:k.normalize().toJSON(),body:x,duplex:"half",credentials:D?$:void 0};A=o&&new n(m,O);let L=await(o?T(A,R):T(m,O));const z=u&&(M==="stream"||M==="response");if(u&&(b||z&&I)){const H={};["status","statusText","headers"].forEach(X=>{H[X]=L[X]});const Y=ie.toFiniteNumber(L.headers.get("content-length")),[q,Z]=b&&cb(Y,qu(ub(b),!0))||[];L=new r(fb(L.body,hb,q,()=>{Z&&Z(),I&&I()}),H)}M=M||"text";let N=await d[ie.findKey(d,M)||"text"](L,p);return!z&&I&&I(),await new Promise((H,Y)=>{P4(H,Y,{data:N,headers:Zn.from(L.headers),status:L.status,statusText:L.statusText,config:p,request:A})})}catch(D){throw I&&I(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,p,A),{cause:D.cause||D}):lt.from(D,D&&D.code,p,A)}}},IA=new Map,F4=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,c,u=IA;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:DA(t)),u=c;return c};F4();const i0={http:K7,xhr:$A,fetch:{get:F4}};ie.forEach(i0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vb=e=>`- ${e}`,jA=e=>ie.isFunction(e)||e===null||e===!1;function PA(e,t){e=ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!jA(r)&&(i=i0[(s=String(r)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${s}'`);if(i&&(ie.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
223
+ `+a.map(vb).join(`
224
+ `):" "+vb(a[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const B4={getAdapter:PA,adapters:i0};function Kh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function bb(e){return Kh(e),e.headers=Zn.from(e.headers),e.data=Xh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),B4.getAdapter(e.adapter||wc.adapter,e)(e).then(function(r){return Kh(e),r.data=Xh.call(e,e.transformResponse,r),r.headers=Zn.from(r.headers),r},function(r){return j4(r)||(Kh(e),r&&r.response&&(r.response.data=Xh.call(e,e.transformResponse,r.response),r.response.headers=Zn.from(r.response.headers))),Promise.reject(r)})}const z4="1.13.2",ef={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ef[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yb={};ef.transitional=function(t,n,r){function i(o,a){return"[Axios v"+z4+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new lt(i(a," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!yb[a]&&(yb[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};ef.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function NA(e,t,n){if(typeof e!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new lt("option "+o+" must be "+l,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+o,lt.ERR_BAD_OPTION)}}const Tu={assertOptions:NA,validators:ef},Dr=Tu.validators;let Do=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sb,response:new sb}}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 o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
225
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tu.assertOptions(r,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean)},!1),i!=null&&(ie.isFunction(i)?n.paramsSerializer={serialize:i}:Tu.assertOptions(i,{encode:Dr.function,serialize:Dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tu.assertOptions(n,{baseUrl:Dr.spelling("baseURL"),withXsrfToken:Dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ie.merge(o.common,o[n.method]);o&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[bb.bind(this),void 0];for(p.unshift(...s),p.push(...c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=n;for(;d<f;){const p=s[d++],m=s[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=bb.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Fo(this.defaults,t);const n=N4(t.baseURL,t.url,t.allowAbsoluteUrls);return R4(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Do.prototype[t]=function(n,r){return this.request(Fo(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Do.prototype[t]=n(),Do.prototype[t+"Form"]=n(!0)});let LA=class W4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new gs(o,a,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 W4(function(i){t=i}),cancel:t}}};function FA(e){return function(n){return e.apply(null,n)}}function BA(e){return ie.isObject(e)&&e.isAxiosError===!0}const gm={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gm).forEach(([e,t])=>{gm[t]=e});function U4(e){const t=new Do(e),n=x4(Do.prototype.request,t);return ie.extend(n,Do.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return U4(Fo(e,i))},n}const Zt=U4(wc);Zt.Axios=Do;Zt.CanceledError=gs;Zt.CancelToken=LA;Zt.isCancel=j4;Zt.VERSION=z4;Zt.toFormData=Qd;Zt.AxiosError=lt;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=FA;Zt.isAxiosError=BA;Zt.mergeConfig=Fo;Zt.AxiosHeaders=Zn;Zt.formToJSON=e=>I4(ie.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=B4.getAdapter;Zt.HttpStatusCode=gm;Zt.default=Zt;const{Axios:qhe,AxiosError:Yhe,CanceledError:Ghe,isCancel:Zhe,CancelToken:Xhe,VERSION:Khe,all:Jhe,Cancel:Qhe,isAxiosError:epe,spread:tpe,toFormData:npe,AxiosHeaders:rpe,HttpStatusCode:ipe,formToJSON:ope,getAdapter:ape,mergeConfig:spe}=Zt;var eu={};/*!
226
+ * cookie
227
+ * Copyright(c) 2012-2014 Roman Shtylman
228
+ * Copyright(c) 2015 Douglas Christopher Wilson
229
+ * MIT Licensed
230
+ */var xb;function zA(){if(xb)return eu;xb=1,eu.parse=a,eu.serialize=c;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,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(h,p){if(typeof h!="string")throw new TypeError("argument str must be a string");var m={},g=h.length;if(g<2)return m;var x=p&&p.decode||u,_=0,w=0,C=0;do{if(w=h.indexOf("=",_),w===-1)break;if(C=h.indexOf(";",_),C===-1)C=g;else if(w>C){_=h.lastIndexOf(";",w-1)+1;continue}var b=s(h,_,w),S=l(h,w,b),M=h.slice(b,S);if(!t.call(m,M)){var k=s(h,w+1,C),$=l(h,C,k);h.charCodeAt(k)===34&&h.charCodeAt($-1)===34&&(k++,$--);var R=h.slice(k,$);m[M]=f(R,x)}_=C+1}while(_<g);return m}function s(h,p,m){do{var g=h.charCodeAt(p);if(g!==32&&g!==9)return p}while(++p<m);return m}function l(h,p,m){for(;p>m;){var g=h.charCodeAt(--p);if(g!==32&&g!==9)return p+1}return m}function c(h,p,m){var g=m&&m.encode||encodeURIComponent;if(typeof g!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=g(p);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!m)return _;if(m.maxAge!=null){var w=Math.floor(m.maxAge);if(!isFinite(w))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+w}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");_+="; Domain="+m.domain}if(m.path){if(!o.test(m.path))throw new TypeError("option path is invalid");_+="; Path="+m.path}if(m.expires){var C=m.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+C.toUTCString()}if(m.httpOnly&&(_+="; HttpOnly"),m.secure&&(_+="; Secure"),m.partitioned&&(_+="; Partitioned"),m.priority){var b=typeof m.priority=="string"?m.priority.toLowerCase():m.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(m.sameSite){var S=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.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,p){try{return p(h)}catch{return h}}return eu}var ku=zA();function WA(){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 UA(e){return typeof e=="string"?ku.parse(e):typeof e=="object"&&e!==null?e:{}}function Jh(e,t={}){const n=HA(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function HA(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class VA{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=ku.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=UA(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=WA()}_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:Jh(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Jh(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Jh(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=ku.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=ku.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 H4=fe.createContext(new VA),{Provider:lpe,Consumer:cpe}=H4;var tu={exports:{}},jt={};/** @license React v16.13.1
231
+ * react-is.production.min.js
232
+ *
233
+ * Copyright (c) Facebook, Inc. and its affiliates.
234
+ *
235
+ * This source code is licensed under the MIT license found in the
236
+ * LICENSE file in the root directory of this source tree.
237
+ */var wb;function qA(){if(wb)return jt;wb=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=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,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return jt.AsyncMode=l,jt.ConcurrentMode=c,jt.ContextConsumer=s,jt.ContextProvider=a,jt.Element=t,jt.ForwardRef=u,jt.Fragment=r,jt.Lazy=p,jt.Memo=h,jt.Portal=n,jt.Profiler=o,jt.StrictMode=i,jt.Suspense=d,jt.isAsyncMode=function(b){return C(b)||w(b)===l},jt.isConcurrentMode=C,jt.isContextConsumer=function(b){return w(b)===s},jt.isContextProvider=function(b){return w(b)===a},jt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},jt.isForwardRef=function(b){return w(b)===u},jt.isFragment=function(b){return w(b)===r},jt.isLazy=function(b){return w(b)===p},jt.isMemo=function(b){return w(b)===h},jt.isPortal=function(b){return w(b)===n},jt.isProfiler=function(b){return w(b)===o},jt.isStrictMode=function(b){return w(b)===i},jt.isSuspense=function(b){return w(b)===d},jt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},jt.typeOf=w,jt}var Pt={};/** @license React v16.13.1
238
+ * react-is.development.js
239
+ *
240
+ * Copyright (c) Facebook, Inc. and its affiliates.
241
+ *
242
+ * This source code is licensed under the MIT license found in the
243
+ * LICENSE file in the root directory of this source tree.
244
+ */var _b;function YA(){return _b||(_b=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=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,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===r||P===c||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===p||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===g||P.$$typeof===x||P.$$typeof===_||P.$$typeof===m)}function C(P){if(typeof P=="object"&&P!==null){var te=P.$$typeof;switch(te){case t:var K=P.type;switch(K){case l:case c:case r:case o:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,k=a,$=t,R=u,T=r,E=p,A=h,I=n,j=o,D=i,O=d,L=!1;function z(P){return L||(L=!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.")),N(P)||C(P)===l}function N(P){return C(P)===c}function H(P){return C(P)===s}function Y(P){return C(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Z(P){return C(P)===u}function X(P){return C(P)===r}function J(P){return C(P)===p}function ee(P){return C(P)===h}function W(P){return C(P)===n}function F(P){return C(P)===o}function B(P){return C(P)===i}function V(P){return C(P)===d}Pt.AsyncMode=b,Pt.ConcurrentMode=S,Pt.ContextConsumer=M,Pt.ContextProvider=k,Pt.Element=$,Pt.ForwardRef=R,Pt.Fragment=T,Pt.Lazy=E,Pt.Memo=A,Pt.Portal=I,Pt.Profiler=j,Pt.StrictMode=D,Pt.Suspense=O,Pt.isAsyncMode=z,Pt.isConcurrentMode=N,Pt.isContextConsumer=H,Pt.isContextProvider=Y,Pt.isElement=q,Pt.isForwardRef=Z,Pt.isFragment=X,Pt.isLazy=J,Pt.isMemo=ee,Pt.isPortal=W,Pt.isProfiler=F,Pt.isStrictMode=B,Pt.isSuspense=V,Pt.isValidElementType=w,Pt.typeOf=C}()),Pt}var Cb;function GA(){return Cb||(Cb=1,process.env.NODE_ENV==="production"?tu.exports=qA():tu.exports=YA()),tu.exports}var Qh,Sb;function ZA(){if(Sb)return Qh;Sb=1;var e=GA(),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},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(p){return e.isMemo(p)?i:o[p.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,m,g){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&h(p,x,g)}var _=l(m);c&&(_=_.concat(c(m)));for(var w=a(p),C=a(m),b=0;b<_.length;++b){var S=_[b];if(!n[S]&&!(g&&g[S])&&!(C&&C[S])&&!(w&&w[S])){var M=u(m,S);try{s(p,S,M)}catch{}}}}return p}return Qh=h,Qh}ZA();function XA(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function o0(e,t){const n=v.useContext(H4);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=v.useState(()=>n.getAll(i));XA()&&v.useLayoutEffect(()=>{function u(){const d=n.getAll(i);KA(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=v.useMemo(()=>n.set.bind(n),[n]),l=v.useMemo(()=>n.remove.bind(n),[n]),c=v.useMemo(()=>n.update.bind(n),[n]);return[o,s,l,c]}function KA(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const JA=()=>{const e=je.c(12),{axiosOptions:t,cookieDomain:n}=v.useContext(rn);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,o]=o0(r);let a;e[1]!==t?(a=Zt.create(t),e[1]=t,e[2]=a):a=e[2];const s=a,l=QA;let c;e[3]!==s||e[4]!==n||e[5]!==i?(c=async(p,m)=>s.post("/user/login",{kid:p,password:m}).then(g=>(localStorage.setItem("token",g.data),window.dispatchEvent(new Event("dev-auth-change")),i("Authorization",g.data,{path:"/",secure:!0,sameSite:"none",domain:n,expires:rw(new Date(Date.now()),24)}),g.data)).catch(eR),e[3]=s,e[4]=n,e[5]=i,e[6]=c):c=e[6];const u=c;let d;e[7]!==o?(d=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),window.dispatchEvent(new Event("dev-auth-change")),o("Authorization")},e[7]=o,e[8]=d):d=e[8];const f=d;let h;return e[9]!==u||e[10]!==f?(h={isAuthenticated:l,login:u,logout:f},e[9]=u,e[10]=f,e[11]=h):h=e[11],h};function QA(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function eR(e){return console.log(e),null}const tR=()=>{const e=je.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=o0(t),{msalScopes:r,msalExtraScopes:i}=v.useContext(Yd),{instance:o,inProgress:a}=d1.useMsal(),s=d1.useIsAuthenticated();let l;e[1]!==s?(l=()=>s,e[1]=s,e[2]=l):l=e[2];const c=l;let u;e[3]!==c||e[4]!==a?(u=()=>!c()&&a!==wT.InteractionStatus.None,e[3]=c,e[4]=a,e[5]=u):u=e[5];const d=u;let f;e[6]!==o||e[7]!==i||e[8]!==r?(f=async()=>o.loginRedirect({scopes:r,extraScopesToConsent:i}).then(nR).catch(rR),e[6]=o,e[7]=i,e[8]=r,e[9]=f):f=e[9];const h=f;let p;e[10]!==o||e[11]!==n?(p=()=>{o.logout(),localStorage.removeItem("user"),n("Authorization")},e[10]=o,e[11]=n,e[12]=p):p=e[12];const m=p;let g;return e[13]!==c||e[14]!==d||e[15]!==h||e[16]!==m?(g={isAuthenticated:c,isAuthenticating:d,login:h,logout:m},e[13]=c,e[14]=d,e[15]=h,e[16]=m,e[17]=g):g=e[17],g};function nR(){return""}function rR(){return null}const V4=()=>{const e=je.c(12),{useMsal:t}=v.useContext(Yd),n=JA(),r=tR();let i;e[0]!==n||e[1]!==r||e[2]!==t?(i=(u,d)=>t?r.login():n.login(u,d),e[0]=n,e[1]=r,e[2]=t,e[3]=i):i=e[3];const o=i,a=t?r.isAuthenticated:n.isAuthenticated;let s;e[4]!==r||e[5]!==t?(s=t?r.isAuthenticating:iR,e[4]=r,e[5]=t,e[6]=s):s=e[6];const l=t?r.logout:n.logout;let c;return e[7]!==a||e[8]!==s||e[9]!==l||e[10]!==o?(c={isAuthenticated:a,isAuthenticating:s,login:o,logout:l},e[7]=a,e[8]=s,e[9]=l,e[10]=o,e[11]=c):c=e[11],c};function iR(){return!1}const oR="_toast_1s57i_1",Ws={toast:oR},aR=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}},tf=()=>{const e=je.c(1),t=sR;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function sR(e,t){const n=u4(e),r=aR(t),i=y.jsxs(y.Fragment,{children:[n,y.jsx(H_,{onClick:()=>ga.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(F8,{size:12}),className:se("luminus-toast-success rounded shadow bg-success",Ws.toast)});break e}case"danger":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx($8,{size:12}),className:se("luminus-toast-danger rounded shadow bg-danger",Ws.toast)});break e}case"warning":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(_8,{size:12}),className:se("luminus-toast-warning rounded shadow bg-warning",Ws.toast)});break e}case"info":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(S8,{size:12}),className:se("luminus-toast-info rounded shadow bg-info",Ws.toast)});break e}case"prompt":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(k8,{size:12}),className:se("luminus-toast-prompt rounded shadow bg-light",Ws.toast)});break e}}}const lR=Zt.CancelToken,nf=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=v.useContext(rn),{delegation:u}=v.useContext(i4),{getToken:d}=v.useContext(Yd),f=v.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=tf(),{isAuthenticating:p,isAuthenticated:m}=V4(),g=v.useMemo(()=>Zt.create(l),[l]),x=v.useCallback(async b=>{var M,k,$;if(t&&!b.headers.Authorization){if(p())return Promise.reject(new Error("Authentication in progress"));if(!m())return Promise.reject(new Error("Not authenticated"));const R=i?{token:i,expiresOn:rw(new Date(Date.now()),1)}:await d();if(!R)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(lw(R.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));b.headers.Authorization=`Bearer ${R.token}`}f!==null&&!o&&(b.headers.DelegationId=f.toString());const S=localStorage.getItem("search-use-asterisk")!=="false";return b.headers["Search-Use-Asterisk"]=S?"true":"false",(M=b.url)!=null&&M.includes("culture=")?b.url=(k=b.url)==null?void 0:k.replace(/culture=[a-z]{2}/,`culture=${s}`):b.url=`${b.url}${($=b.url)!=null&&$.includes("?")?"&":"?"}culture=${s}`,b},[t,d,s,i,f,o,p,m]),_=v.useCallback(async b=>{var k,$;if(Zt.isCancel(b)||b.message==="Authentication in progress"||b.message==="No bearer token"||b.message==="Token expired")return Promise.reject(b);let S;if(b.response.data instanceof Blob?S=await s4(b.response.data):S=Gd(b.response.data),S.length>0){const R=S.find(T=>T.name.toLowerCase()==="others");return R?(!r&&h(R.errors,"danger"),Promise.reject(b)):(!r&&h(c.validationError,"warning"),Promise.reject(b))}const M=l4(b);return M!==null?(!r&&h(`${c.permissionError}: ${Qg(", ",...M)}`,"danger"),Promise.reject(b)):(a??[]).includes((k=b.response)==null?void 0:k.status)?Promise.reject(b):(($=b.response)==null?void 0:$.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(b)):b.message&&b.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(b)):(Zt.isCancel(b)||(!r&&h(c.unexpectedError,"danger"),(b.response||b.request)&&!r&&h(c.unexpectedError,"danger")),Promise.reject(b))},[h,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,a]),[w,C]=v.useState(!1);return v.useEffect(()=>{n&&(g.defaults.baseURL=n)},[n,g.defaults]),v.useEffect(()=>{g.interceptors.request.clear();const b=g.interceptors.request.use(x,S=>Promise.reject(S));return C(!0),console.log("useAxios: setting interceptors"),()=>{C(!1),console.log("useAxios: ejecting interceptors"),g.interceptors.request.eject(b)}},[g.interceptors.request,x]),v.useEffect(()=>{g.interceptors.response.clear();const b=g.interceptors.response.use(S=>S,_);return()=>{g.interceptors.response.eject(b)}},[g.interceptors.response,_]),g.interceptorsUsed=w,g};let ol;const a0=()=>{const e=je.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:o}=v.useContext(q_);let a;e[0]!==i?(a=()=>{i()},e[0]=i,e[1]=a):a=e[1];const s=a;let l;e[2]!==s?(l=()=>{s(),ol&&ol(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),ol&&ol(!1)},e[4]=s,e[5]=u):u=e[5];const d=u;let f;e[6]!==r?(f=async(m,g)=>(r(m,g),new Promise(cR)),e[6]=r,e[7]=f):f=e[7];const h=f;let p;return e[8]!==h||e[9]!==d||e[10]!==c||e[11]!==t||e[12]!==n||e[13]!==o?(p={confirm:h,onConfirm:c,onCancel:d,show:t,text:n,textSm:o},e[8]=h,e[9]=d,e[10]=c,e[11]=t,e[12]=n,e[13]=o,e[14]=p):p=e[14],p};function cR(e){ol=e}var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(wt||(wt={}));var vm;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(vm||(vm={}));const Se=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),di=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},he=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),uR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class er extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(a))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof er))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}er.create=e=>new er(e);const Qa=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case he.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 he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let q4=Qa;function dR(e){q4=e}function Yu(){return q4}const Gu=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},fR=[];function _e(e,t){const n=Yu(),r=Gu({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Qa?void 0:Qa].filter(i=>!!i)});e.common.issues.push(r)}class On{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 He;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 o=await i.key,a=await i.value;r.push({key:o,value:a})}return On.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return He;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const He=Object.freeze({status:"aborted"}),Ea=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),bm=e=>e.status==="aborted",ym=e=>e.status==="dirty",Bo=e=>e.status==="valid",Tl=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class Ur{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Tb=(e,t)=>{if(Bo(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 er(e.common.issues);return this._error=n,this._error}}};function ct(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:(a,s)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}class pt{get description(){return this._def.description}_getType(t){return di(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new On,ctx:{common:t.parent.common,data:t.data,parsedType:di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Tl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Tb(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Bo(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>Bo(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(Tl(i)?i:Promise.resolve(i));return Tb(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:he.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!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 kr({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Br.create(this,this._def)}nullable(){return Ji.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sr.create(this)}promise(){return ts.create(this,this._def)}or(t){return El.create([this,t],this._def)}and(t){return Ol.create(this,t,this._def)}transform(t){return new kr({...ct(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new jl({...ct(this._def),innerType:this,defaultValue:n,typeName:qe.ZodDefault})}brand(){return new s0({typeName:qe.ZodBranded,type:this,...ct(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Pl({...ct(this._def),innerType:this,catchValue:n,typeName:qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return _c.create(this,t)}readonly(){return Nl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const hR=/^c[^\s-]{8,}$/i,pR=/^[0-9a-z]+$/,mR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,gR=/^[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,vR=/^[a-z0-9_-]{21}$/i,bR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yR=/^[-+]?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)?)??$/,xR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ep;const _R=/^(?:(?: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])$/,CR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,SR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,TR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Y4="((\\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])))",MR=new RegExp(`^${Y4}$`);function G4(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function ER(e){return new RegExp(`^${G4(e)}$`)}function Z4(e){let t=`${Y4}T${G4(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 OR(e,t){return!!((t==="v4"||!t)&&_R.test(e)||(t==="v6"||!t)&&SR.test(e))}function AR(e,t){if(!bR.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function RR(e,t){return!!((t==="v4"||!t)&&CR.test(e)||(t==="v6"||!t)&&TR.test(e))}class _r extends pt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.string,received:o.parsedType}),He}const r=new On;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?_e(i,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&_e(i,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")xR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")ep||(ep=new RegExp(wR,"u")),ep.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")gR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")vR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")hR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")pR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")mR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:he.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"regex",code:he.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Z4(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?MR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?ER(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?yR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?OR(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?AR(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?RR(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?kR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?$R.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):wt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:he.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new _r({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.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,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new _r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_r.create=e=>new _r({checks:[],typeName:qe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});function DR(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}class Zi extends pt{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)!==Se.number){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.number,received:o.parsedType}),He}let r;const i=new On;for(const o of this._def.checks)o.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?DR(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_finite,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Zi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Zi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zi.create=e=>new Zi({checks:[],typeName:qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class Xi extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);let r;const i=new On;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.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}}Xi.create=e=>new Xi({checks:[],typeName:qe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});class kl extends pt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.boolean,received:r.parsedType}),He}return Nn(t.data)}}kl.create=e=>new kl({typeName:qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class zo extends pt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.date,received:o.parsedType}),He}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_date}),He}const r=new On;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):wt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new zo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.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}}zo.create=e=>new zo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:qe.ZodDate,...ct(e)});class Zu extends pt{_parse(t){if(this._getType(t)!==Se.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.symbol,received:r.parsedType}),He}return Nn(t.data)}}Zu.create=e=>new Zu({typeName:qe.ZodSymbol,...ct(e)});class $l extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.undefined,received:r.parsedType}),He}return Nn(t.data)}}$l.create=e=>new $l({typeName:qe.ZodUndefined,...ct(e)});class Ml extends pt{_parse(t){if(this._getType(t)!==Se.null){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.null,received:r.parsedType}),He}return Nn(t.data)}}Ml.create=e=>new Ml({typeName:qe.ZodNull,...ct(e)});class es extends pt{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}}es.create=e=>new es({typeName:qe.ZodAny,...ct(e)});class Io extends pt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}}Io.create=e=>new Io({typeName:qe.ZodUnknown,...ct(e)});class _i extends pt{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.never,received:n.parsedType}),He}}_i.create=e=>new _i({typeName:qe.ZodNever,...ct(e)});class Xu extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.void,received:r.parsedType}),He}return Nn(t.data)}}Xu.create=e=>new Xu({typeName:qe.ZodVoid,...ct(e)});class Sr extends pt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Se.array)return _e(n,{code:he.invalid_type,expected:Se.array,received:n.parsedType}),He;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(_e(n,{code:a?he.too_big:he.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?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:he.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:he.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((a,s)=>i.type._parseAsync(new Ur(n,a,n.path,s)))).then(a=>On.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new Ur(n,a,n.path,s)));return On.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Sr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Sr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Sr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Sr.create=(e,t)=>new Sr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...ct(t)});function Ma(e){if(e instanceof tn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Br.create(Ma(r))}return new tn({...e._def,shape:()=>t})}else return e instanceof Sr?new Sr({...e._def,type:Ma(e.element)}):e instanceof Br?Br.create(Ma(e.unwrap())):e instanceof Ji?Ji.create(Ma(e.unwrap())):e instanceof Hr?Hr.create(e.items.map(t=>Ma(t))):e}class tn extends pt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Se.object){const c=this._getOrReturnCtx(t);return _e(c,{code:he.invalid_type,expected:Se.object,received:c.parsedType}),He}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof _i&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||s.push(c);const l=[];for(const c of a){const u=o[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ur(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof _i){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(_e(i,{code:he.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ur(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>On.mergeObjectSync(r,c)):On.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new tn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,a;const i=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(t){return new tn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new tn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new tn({...this._def,catchall:t})}pick(t){const n={};for(const r of wt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of wt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}deepPartial(){return Ma(this)}partial(t){const n={};for(const r of wt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new tn({...this._def,shape:()=>n})}required(t){const n={};for(const r of wt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Br;)o=o._def.innerType;n[r]=o}return new tn({...this._def,shape:()=>n})}keyof(){return X4(wt.objectKeys(this.shape))}}tn.create=(e,t)=>new tn({shape:()=>e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});tn.strictCreate=(e,t)=>new tn({shape:()=>e,unknownKeys:"strict",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});tn.lazycreate=(e,t)=>new tn({shape:e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});class El extends pt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new er(s.ctx.common.issues));return _e(n,{code:he.invalid_union,unionErrors:a}),He}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new er(l));return _e(n,{code:he.invalid_union,unionErrors:s}),He}}get options(){return this._def.options}}El.create=(e,t)=>new El({options:e,typeName:qe.ZodUnion,...ct(t)});const ai=e=>e instanceof Rl?ai(e.schema):e instanceof kr?ai(e.innerType()):e instanceof Dl?[e.value]:e instanceof Ki?e.options:e instanceof Il?wt.objectValues(e.enum):e instanceof jl?ai(e._def.innerType):e instanceof $l?[void 0]:e instanceof Ml?[null]:e instanceof Br?[void 0,...ai(e.unwrap())]:e instanceof Ji?[null,...ai(e.unwrap())]:e instanceof s0||e instanceof Nl?ai(e.unwrap()):e instanceof Pl?ai(e._def.innerType):[];class rf extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.object)return _e(n,{code:he.invalid_type,expected:Se.object,received:n.parsedType}),He;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),He)}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 o of n){const a=ai(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new rf({typeName:qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ct(r)})}}function xm(e,t){const n=di(e),r=di(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){const i=wt.objectKeys(t),o=wt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=xm(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=xm(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ol extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(bm(o)||bm(a))return He;const s=xm(o.value,a.value);return s.valid?((ym(o)||ym(a))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.invalid_intersection_types}),He)};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(([o,a])=>i(o,a)):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}))}}Ol.create=(e,t,n)=>new Ol({left:e,right:t,typeName:qe.ZodIntersection,...ct(n)});class Hr extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.array)return _e(r,{code:he.invalid_type,expected:Se.array,received:r.parsedType}),He;if(r.data.length<this._def.items.length)return _e(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Ur(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>On.mergeArray(n,a)):On.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Hr({...this._def,rest:t})}}Hr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Hr({items:e,typeName:qe.ZodTuple,rest:null,...ct(t)})};class Al extends pt{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!==Se.object)return _e(r,{code:he.invalid_type,expected:Se.object,received:r.parsedType}),He;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new Ur(r,s,r.path,s)),value:a._parse(new Ur(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?On.mergeObjectAsync(n,i):On.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof pt?new Al({keyType:t,valueType:n,typeName:qe.ZodRecord,...ct(r)}):new Al({keyType:_r.create(),valueType:t,typeName:qe.ZodRecord,...ct(n)})}}class Ku extends pt{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!==Se.map)return _e(r,{code:he.invalid_type,expected:Se.map,received:r.parsedType}),He;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new Ur(r,s,r.path,[c,"key"])),value:o._parse(new Ur(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}Ku.create=(e,t,n)=>new Ku({valueType:t,keyType:e,typeName:qe.ZodMap,...ct(n)});class Wo extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.set)return _e(r,{code:he.invalid_type,expected:Se.set,received:r.parsedType}),He;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:he.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:he.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const c=new Set;for(const u of l){if(u.status==="aborted")return He;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>o._parse(new Ur(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new Wo({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Wo({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Wo.create=(e,t)=>new Wo({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...ct(t)});class ja extends pt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.function)return _e(n,{code:he.invalid_type,expected:Se.function,received:n.parsedType}),He;function r(s,l){return Gu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yu(),Qa].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Gu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yu(),Qa].filter(c=>!!c),issueData:{code:he.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof ts){const s=this;return Nn(async function(...l){const c=new er([]),u=await s._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,o).catch(h=>{throw c.addIssue(i(d,h)),c})})}else{const s=this;return Nn(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new er([r(l,c.error)]);const u=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new er([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ja({...this._def,args:Hr.create(t).rest(Io.create())})}returns(t){return new ja({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ja({args:t||Hr.create([]).rest(Io.create()),returns:n||Io.create(),typeName:qe.ZodFunction,...ct(r)})}}class Rl extends pt{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})}}Rl.create=(e,t)=>new Rl({getter:e,typeName:qe.ZodLazy,...ct(t)});class Dl extends pt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Dl.create=(e,t)=>new Dl({value:e,typeName:qe.ZodLiteral,...ct(t)});function X4(e,t){return new Ki({values:e,typeName:qe.ZodEnum,...ct(t)})}class Ki extends pt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:wt.joinValues(r),received:n.parsedType,code:he.invalid_type}),He}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:he.invalid_enum_value,options:r}),He}return Nn(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 Ki.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ki.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ki.create=X4;class Il extends pt{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){const i=wt.objectValues(n);return _e(r,{expected:wt.joinValues(i),received:r.parsedType,code:he.invalid_type}),He}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return _e(r,{received:r.data,code:he.invalid_enum_value,options:i}),He}return Nn(t.data)}get enum(){return this._def.values}}Il.create=(e,t)=>new Il({values:e,typeName:qe.ZodNativeEnum,...ct(t)});class ts extends pt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:Se.promise,received:n.parsedType}),He;const r=n.parsedType===Se.promise?n.data:Promise.resolve(n.data);return Nn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ts.create=(e,t)=>new ts({type:e,typeName:qe.ZodPromise,...ct(t)});class kr extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{_e(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return He;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?He:l.status==="dirty"||n.value==="dirty"?Ea(l.value):l});{if(n.value==="aborted")return He;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?He:s.status==="dirty"||n.value==="dirty"?Ea(s.value):s}}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?He:(s.status==="dirty"&&n.dirty(),a(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"?He:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Bo(a))return He;const s=i.transform(a.value,o);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(a=>Bo(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):He);wt.assertNever(i)}}kr.create=(e,t,n)=>new kr({schema:e,typeName:qe.ZodEffects,effect:t,...ct(n)});kr.createWithPreprocess=(e,t,n)=>new kr({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...ct(n)});class Br extends pt{_parse(t){return this._getType(t)===Se.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Br.create=(e,t)=>new Br({innerType:e,typeName:qe.ZodOptional,...ct(t)});class Ji extends pt{_parse(t){return this._getType(t)===Se.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ji.create=(e,t)=>new Ji({innerType:e,typeName:qe.ZodNullable,...ct(t)});class jl extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}jl.create=(e,t)=>new jl({innerType:e,typeName:qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ct(t)});class Pl extends pt{_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 Tl(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Pl.create=(e,t)=>new Pl({innerType:e,typeName:qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ct(t)});class Ju extends pt{_parse(t){if(this._getType(t)!==Se.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.nan,received:r.parsedType}),He}return{status:"valid",value:t.data}}}Ju.create=e=>new Ju({typeName:qe.ZodNaN,...ct(e)});const IR=Symbol("zod_brand");class s0 extends pt{_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 _c extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?He:o.status==="dirty"?(n.dirty(),Ea(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?He: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 _c({in:t,out:n,typeName:qe.ZodPipeline})}}class Nl extends pt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Bo(i)&&(i.value=Object.freeze(i.value)),i);return Tl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Nl.create=(e,t)=>new Nl({innerType:e,typeName:qe.ZodReadonly,...ct(t)});function kb(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function K4(e,t={},n){return e?es.create().superRefine((r,i)=>{const o=e(r);if(o instanceof Promise)return o.then(a=>{if(!a){const s=kb(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!o){const a=kb(t,r),s=a.fatal??n??!0;i.addIssue({code:"custom",...a,fatal:s})}}):es.create()}const jR={object:tn.lazycreate};var qe;(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"})(qe||(qe={}));const PR=(e,t={message:`Input not instance of ${e.name}`})=>K4(n=>n instanceof e,t),l0=_r.create,J4=Zi.create,NR=Ju.create,LR=Xi.create,Q4=kl.create,FR=zo.create,BR=Zu.create,zR=$l.create,WR=Ml.create,eC=es.create,UR=Io.create,HR=_i.create,VR=Xu.create,tC=Sr.create,hi=tn.create,qR=tn.strictCreate,YR=El.create,GR=rf.create,ZR=Ol.create,XR=Hr.create,KR=Al.create,JR=Ku.create,QR=Wo.create,e9=ja.create,t9=Rl.create,n9=Dl.create,nC=Ki.create,r9=Il.create,i9=ts.create,$b=kr.create,o9=Br.create,a9=Ji.create,rC=kr.createWithPreprocess,s9=_c.create,l9=()=>l0().optional(),c9=()=>J4().optional(),u9=()=>Q4().optional(),al={string:e=>_r.create({...e,coerce:!0}),number:e=>Zi.create({...e,coerce:!0}),boolean:e=>kl.create({...e,coerce:!0}),bigint:e=>Xi.create({...e,coerce:!0}),date:e=>zo.create({...e,coerce:!0})},d9=He,sl=Object.freeze(Object.defineProperty({__proto__:null,BRAND:IR,DIRTY:Ea,EMPTY_PATH:fR,INVALID:He,NEVER:d9,OK:Nn,ParseStatus:On,Schema:pt,ZodAny:es,ZodArray:Sr,ZodBigInt:Xi,ZodBoolean:kl,ZodBranded:s0,ZodCatch:Pl,ZodDate:zo,ZodDefault:jl,ZodDiscriminatedUnion:rf,ZodEffects:kr,ZodEnum:Ki,ZodError:er,get ZodFirstPartyTypeKind(){return qe},ZodFunction:ja,ZodIntersection:Ol,ZodIssueCode:he,ZodLazy:Rl,ZodLiteral:Dl,ZodMap:Ku,ZodNaN:Ju,ZodNativeEnum:Il,ZodNever:_i,ZodNull:Ml,ZodNullable:Ji,ZodNumber:Zi,ZodObject:tn,ZodOptional:Br,ZodParsedType:Se,ZodPipeline:_c,ZodPromise:ts,ZodReadonly:Nl,ZodRecord:Al,ZodSchema:pt,ZodSet:Wo,ZodString:_r,ZodSymbol:Zu,ZodTransformer:kr,ZodTuple:Hr,ZodType:pt,ZodUndefined:$l,ZodUnion:El,ZodUnknown:Io,ZodVoid:Xu,addIssueToContext:_e,any:eC,array:tC,bigint:LR,boolean:Q4,coerce:al,custom:K4,date:FR,datetimeRegex:Z4,defaultErrorMap:Qa,discriminatedUnion:GR,effect:$b,enum:nC,function:e9,getErrorMap:Yu,getParsedType:di,instanceof:PR,intersection:ZR,isAborted:bm,isAsync:Tl,isDirty:ym,isValid:Bo,late:jR,lazy:t9,literal:n9,makeIssue:Gu,map:JR,nan:NR,nativeEnum:r9,never:HR,null:WR,nullable:a9,number:J4,object:hi,get objectUtil(){return vm},oboolean:u9,onumber:c9,optional:o9,ostring:l9,pipeline:s9,preprocess:rC,promise:i9,quotelessJson:uR,record:KR,set:QR,setErrorMap:dR,strictObject:qR,string:l0,symbol:BR,transformer:$b,tuple:XR,undefined:zR,union:YR,unknown:UR,get util(){return wt},void:VR},Symbol.toStringTag,{value:"Module"})),of=()=>{const e=je.c(43),{texts:t}=v.useContext(rn),{formValidation:n}=t;let r;e[0]!==n?(r=(O,L)=>{const z=L===void 0?!1:L;let N=(O!=null&&O.useCoerce?al:sl).string({invalid_type_error:n.required,required_error:n.required});return z||(N=N.min(1,n.required)),O!=null&&O.email&&(N=N.email(n.invalidEmail)),O!=null&&O.length&&(N=N.min(O.length,n.length(O.length))),O!=null&&O.minLength&&(N=N.min(O.minLength,n.minLength(O.minLength))),O!=null&&O.maxLength&&(N=N.max(O.maxLength,n.maxLength(O.maxLength))),O!=null&&O.numeric&&(N=N.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),O!=null&&O.regex&&(N=N.regex(O.regex,n.invalidFormat)),N.transform(f9)},e[0]=n,e[1]=r):r=e[1];const i=r;let o;e[2]!==i?(o=O=>i(O,!1),e[2]=i,e[3]=o):o=e[3];const a=o;let s;e[4]!==i?(s=O=>i(O,!0).nullable().optional().transform(h9),e[4]=i,e[5]=s):s=e[5];const l=s;let c;e[6]!==n?(c=O=>{const L=(O==null?void 0:O.min)??Number.MIN_SAFE_INTEGER,z=(O==null?void 0:O.max)??Number.MAX_SAFE_INTEGER,N=(O!=null&&O.useCoerce?al:sl).number({invalid_type_error:n.required,required_error:n.required}).min(L,n.lessThanMin(L)).max(z,n.moreThanMax(z));return N.transform(p9),N},e[6]=n,e[7]=c):c=e[7];const u=c;let d;e[8]!==u?(d=O=>u(O).nullable().optional().transform(m9),e[8]=u,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.required?(h=O=>((O==null?void 0:O.useCoerce)===!1?sl:al).boolean({invalid_type_error:n.required,required_error:n.required}).transform(g9),e[10]=n.required,e[11]=h):h=e[11];const p=h;let m;e[12]!==n.invalidDate||e[13]!==n.required?(m=O=>(O!=null&&O.useCoerce?al:sl).string({invalid_type_error:n.required,required_error:n.required}).refine(h4,{message:n.invalidDate}).transform(v9),e[12]=n.invalidDate,e[13]=n.required,e[14]=m):m=e[14];const g=m;let x;e[15]!==g?(x=O=>rC(b9,g(O).nullable().optional()).transform(y9),e[15]=g,e[16]=x):x=e[16];const _=x;let w;e[17]!==n.required?(w=(O,L)=>nC(O,{invalid_type_error:n.required,required_error:n.required}).transform(x9),e[17]=n.required,e[18]=w):w=e[18];const C=w;let b;e[19]!==C?(b=(O,L)=>C(O,L).nullable().transform(w9),e[19]=C,e[20]=b):b=e[20];const S=b;let M;e[21]!==f?(M=O=>hi({id:f({useCoerce:!0})}).nullable().transform(_9),e[21]=f,e[22]=M):M=e[22];const k=M;let $;e[23]!==u?($=O=>hi({id:u()}).transform(C9),e[23]=u,e[24]=$):$=e[24];const R=$;let T;e[25]!==l?(T=O=>hi({id:l({useCoerce:!0})}).nullable().transform(S9),e[25]=l,e[26]=T):T=e[26];const E=T;let A;e[27]!==a?(A=O=>hi({id:a()}).transform(T9),e[27]=a,e[28]=A):A=e[28];const I=A,j=$9;let D;return e[29]!==p||e[30]!==_||e[31]!==g||e[32]!==S||e[33]!==C||e[34]!==f||e[35]!==u||e[36]!==k||e[37]!==R||e[38]!==E||e[39]!==I||e[40]!==l||e[41]!==a?(D={zString:l,zStringRequired:a,zNumber:f,zNumberRequired:u,zBool:p,zDate:_,zDateRequired:g,zEnum:S,zEnumRequired:C,zObjectIdInt:k,zObjectIdIntRequired:R,zObjectIdStr:E,zObjectIdStrRequired:I,zFile:j},e[29]=p,e[30]=_,e[31]=g,e[32]=S,e[33]=C,e[34]=f,e[35]=u,e[36]=k,e[37]=R,e[38]=E,e[39]=I,e[40]=l,e[41]=a,e[42]=D):D=e[42],D};function f9(e){return e??null}function h9(e){return e??null}function p9(e){return e??null}function m9(e){return e??null}function g9(e){return e??null}function v9(e){return e??null}function b9(e){return e===""?null:e}function y9(e){return e??null}function x9(e){return e??null}function w9(e){return e??null}function _9(e){return e??null}function C9(e){return e??null}function S9(e){return e??null}function T9(e){return e??null}function k9(e){return Array.from(e??[])}function $9(e){const{required:t,multiple:n,maxFileSize:r}=e;return eC().transform(k9).refine(o=>!t||(o==null?void 0:o.length)>0,"File is required.").refine(o=>n||(o==null?void 0:o.length)<=1,"Multiple files not allowed.").refine(o=>o.every(a=>a.size<=r),`Maximum file size is ${Xa(r)}.`).transform(o=>(n?o:o==null?void 0:o[0])??null)}const iC=(e,t)=>{const n=je.c(4);let r,i;n[0]!==t||n[1]!==e?(r=()=>{const o=a=>{e.some(s=>s.current&&s.current.contains(a.target))||t()};return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},i=[e,t],n[0]=t,n[1]=e,n[2]=r,n[3]=i):(r=n[2],i=n[3]),v.useEffect(r,i)},oC=()=>{const e=je.c(4),{user:t}=v.useContext(r4);let n;e[0]!==(t==null?void 0:t.permissions)?(n=(o,a)=>{const s=a===void 0?"any":a;return o.length===0?!0:s==="any"?o.some(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)}):o.every(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)})},e[0]=t==null?void 0:t.permissions,e[1]=n):n=e[1];const r=n;let i;return e[2]!==r?(i={checkUserHasPermissions:r},e[2]=r,e[3]=i):i=e[3],i},aC=(e,t)=>{const n=je.c(6);let r,i;n[0]!==e?(r=()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),i=[e],n[0]=e,n[1]=r,n[2]=i):(r=n[1],i=n[2]),v.useEffect(r,i);let o,a;n[3]!==t?(o=()=>t===void 0?M9:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),a=[t],n[3]=t,n[4]=o,n[5]=a):(o=n[4],a=n[5]),v.useEffect(o,a)};function M9(){}const c0=(e,t,n)=>{let r;e:{if(n){r=e;break e}if(e!=="date"&&e!=="datetime-local"&&e!=="time"){r=e;break e}if(!t){r="text";break e}r=e}return r},sC=()=>{const{addNotification:e}=tf(),{texts:{clipboard:t}}=v.useContext(rn);return{copyToClipboard:v.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},Cc=()=>{const e=je.c(7),[t,n]=v.useState(window.innerWidth),[r,i]=v.useState(window.innerHeight);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{n(window.innerWidth),i(window.innerHeight)},e[0]=o):o=e[0];const a=o;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),l=[],e[1]=s,e[2]=l):(s=e[1],l=e[2]),v.useEffect(s,l);const c=t<992;let u;return e[3]!==r||e[4]!==c||e[5]!==t?(u={width:t,height:r,isMobile:c},e[3]=r,e[4]=c,e[5]=t,e[6]=u):u=e[6],u},lC=v.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),cC=v.createContext(void 0),Mb={falseIfNotInit:!1},af=e=>{const{falseIfNotInit:t}=e===void 0?Mb:e,n=t===void 0?Mb.falseIfNotInit:t,r=v.useContext(cC);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1};class E9 extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class O9 extends Error{constructor(t="A timeout occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class wm extends Error{constructor(t="An abort occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class A9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class R9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class D9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class I9 extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class j9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.innerErrors=n,this.__proto__=r}}exports.LogLevel=void 0;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(exports.LogLevel||(exports.LogLevel={}));class Qu{constructor(){}log(t,n){}}Qu.instance=new Qu;const P9="10.0.0";class $u{static isRequired(t,n){if(t==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(t,n){if(!t||t.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(t,n,r){if(!(t in n))throw new Error(`Unknown ${r} value: ${t}.`)}}class Tr{static get isBrowser(){return!Tr.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Tr.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Tr.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function uC(e,t){let n="";return ns(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${N9(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function N9(e){const t=new Uint8Array(e);let n="";return t.forEach(r=>{const i=r<16?"0":"";n+=`0x${i}${r.toString(16)} `}),n.substring(0,n.length-1)}function ns(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function L9(e,t,n,r,i,o){const a={},[s,l]=dC();a[s]=l,e.log(exports.LogLevel.Trace,`(${t} transport) sending data. ${uC(i,o.logMessageContent)}.`);const c=ns(i)?"arraybuffer":"text",u=await n.post(r,{content:i,headers:{...a,...o.headers},responseType:c,timeout:o.timeout,withCredentials:o.withCredentials});e.log(exports.LogLevel.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function F9(e){return e===void 0?new _m(exports.LogLevel.Information):e===null?Qu.instance:e.log!==void 0?e:new _m(e)}class B9{constructor(t,n){this._subject=t,this._observer=n}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class _m{constructor(t){this._minLevel=t,this.out=console}log(t,n){if(t>=this._minLevel){const r=`[${new Date().toISOString()}] ${exports.LogLevel[t]}: ${n}`;switch(t){case exports.LogLevel.Critical:case exports.LogLevel.Error:this.out.error(r);break;case exports.LogLevel.Warning:this.out.warn(r);break;case exports.LogLevel.Information:this.out.info(r);break;default:this.out.log(r);break}}}}function dC(){let e="X-SignalR-User-Agent";return Tr.isNode&&(e="User-Agent"),[e,z9(P9,W9(),H9(),U9())]}function z9(e,t,n,r){let i="Microsoft SignalR/";const o=e.split(".");return i+=`${o[0]}.${o[1]}`,i+=` (${e}; `,t&&t!==""?i+=`${t}; `:i+="Unknown OS; ",i+=`${n}`,r?i+=`; ${r}`:i+="; Unknown Runtime Version",i+=")",i}function W9(){if(Tr.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function U9(){if(Tr.isNode)return process.versions.node}function H9(){return Tr.isNode?"NodeJS":"Browser"}function tp(e){return e.stack?e.stack:e.message?e.message:`${e}`}function V9(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class cr{static write(t){return`${t}${cr.RecordSeparator}`}static parse(t){if(t[t.length-1]!==cr.RecordSeparator)throw new Error("Message is incomplete.");const n=t.split(cr.RecordSeparator);return n.pop(),n}}cr.RecordSeparatorCode=30;cr.RecordSeparator=String.fromCharCode(cr.RecordSeparatorCode);class q9{writeHandshakeRequest(t){return cr.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(ns(t)){const s=new Uint8Array(t),l=s.indexOf(cr.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),r=s.byteLength>c?s.slice(c).buffer:null}else{const s=t,l=s.indexOf(cr.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=s.substring(0,c),r=s.length>c?s.substring(c):null}const i=cr.parse(n),o=JSON.parse(i[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[r,o]}}exports.MessageType=void 0;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(exports.MessageType||(exports.MessageType={}));class Y9{constructor(){this.observers=[]}next(t){for(const n of this.observers)n.next(t)}error(t){for(const n of this.observers)n.error&&n.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new B9(this,t)}}class G9{constructor(t,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=n,this._bufferSize=r}async _send(t){const n=this._protocol.writeMessage(t);let r=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let i=()=>{},o=()=>{};ns(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(r=new Promise((a,s)=>{i=a,o=s})),this._messages.push(new Z9(n,this._totalMessageCount,i,o))}try{this._reconnectInProgress||await this._connection.send(n)}catch{this._disconnected()}await r}_ack(t){let n=-1;for(let r=0;r<this._messages.length;r++){const i=this._messages[r];if(i._id<=t.sequenceId)n=r,ns(i._message)?this._bufferedByteCount-=i._message.byteLength:this._bufferedByteCount-=i._message.length,i._resolver();else if(this._bufferedByteCount<this._bufferSize)i._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==exports.MessageType.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:exports.MessageType.Sequence,sequenceId:t}));const n=this._messages;for(const r of n)await this._connection.send(r._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(t)}_isInvocationMessage(t){switch(t.type){case exports.MessageType.Invocation:case exports.MessageType.StreamItem:case exports.MessageType.Completion:case exports.MessageType.StreamInvocation:case exports.MessageType.CancelInvocation:return!0;case exports.MessageType.Close:case exports.MessageType.Sequence:case exports.MessageType.Ping:case exports.MessageType.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:exports.MessageType.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Z9{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const X9=30*1e3,K9=15*1e3,J9=1e5;exports.HubConnectionState=void 0;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(exports.HubConnectionState||(exports.HubConnectionState={}));class u0{static create(t,n,r,i,o,a,s){return new u0(t,n,r,i,o,a,s)}constructor(t,n,r,i,o,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(exports.LogLevel.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},$u.isRequired(t,"connection"),$u.isRequired(n,"logger"),$u.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=o??X9,this.keepAliveIntervalInMilliseconds=a??K9,this._statefulReconnectBufferSize=s??J9,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new q9,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=exports.HubConnectionState.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:exports.MessageType.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==exports.HubConnectionState.Disconnected&&this._connectionState!==exports.HubConnectionState.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==exports.HubConnectionState.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=exports.HubConnectionState.Connecting,this._logger.log(exports.LogLevel.Debug,"Starting HubConnection.");try{await this._startInternal(),Tr.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=exports.HubConnectionState.Connected,this._connectionStarted=!0,this._logger.log(exports.LogLevel.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=exports.HubConnectionState.Disconnected,this._logger.log(exports.LogLevel.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((n,r)=>{this._handshakeResolver=n,this._handshakeRejecter=r});await this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const r={protocol:this._protocol.name,version:n};if(this._logger.log(exports.LogLevel.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(r)),this._logger.log(exports.LogLevel.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new G9(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(n){throw this._logger.log(exports.LogLevel.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(n),n}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===exports.HubConnectionState.Disconnected)return this._logger.log(exports.LogLevel.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===exports.HubConnectionState.Disconnecting)return this._logger.log(exports.LogLevel.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=exports.HubConnectionState.Disconnecting,this._logger.log(exports.LogLevel.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(exports.LogLevel.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===exports.HubConnectionState.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new wm("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createStreamInvocation(t,n,i);let a;const s=new Y9;return s.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===exports.MessageType.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(o).catch(l=>{s.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(r,a),s}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(t,n,!0,i));return this._launchStreams(r,o),o}invoke(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createInvocation(t,n,!1,i);return new Promise((s,l)=>{this._callbacks[o.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===exports.MessageType.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(o).catch(u=>{l(u),delete this._callbacks[o.invocationId]});this._launchStreams(r,c)})}on(t,n){!t||!n||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(n)===-1&&this._methods[t].push(n))}off(t,n){if(!t)return;t=t.toLowerCase();const r=this._methods[t];if(r)if(n){const i=r.indexOf(n);i!==-1&&(r.splice(i,1),r.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const n=this._protocol.parseMessages(t,this._logger);for(const r of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(r)))switch(r.type){case exports.MessageType.Invocation:this._invokeClientMethod(r).catch(i=>{this._logger.log(exports.LogLevel.Error,`Invoke client method threw error: ${tp(i)}`)});break;case exports.MessageType.StreamItem:case exports.MessageType.Completion:{const i=this._callbacks[r.invocationId];if(i){r.type===exports.MessageType.Completion&&delete this._callbacks[r.invocationId];try{i(r)}catch(o){this._logger.log(exports.LogLevel.Error,`Stream callback threw error: ${tp(o)}`)}}break}case exports.MessageType.Ping:break;case exports.MessageType.Close:{this._logger.log(exports.LogLevel.Information,"Close message received from server.");const i=r.error?new Error("Server returned an error on close: "+r.error):void 0;r.allowReconnect===!0?this.connection.stop(i):this._stopPromise=this._stopInternal(i);break}case exports.MessageType.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case exports.MessageType.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(exports.LogLevel.Warning,`Invalid message type: ${r.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(i){const o="Error parsing handshake response: "+i;this._logger.log(exports.LogLevel.Error,o);const a=new Error(o);throw this._handshakeRejecter(a),a}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(exports.LogLevel.Error,i);const o=new Error(i);throw this._handshakeRejecter(o),o}else this._logger.log(exports.LogLevel.Debug,"Server handshake complete.");return this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!this.connection.features||!this.connection.features.inherentKeepAlive){this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds);let t=this._nextKeepAlive-new Date().getTime();if(t<0){this._connectionState===exports.HubConnectionState.Connected&&this._trySendPingMessage();return}this._pingServerHandle===void 0&&(t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{this._connectionState===exports.HubConnectionState.Connected&&await this._trySendPingMessage()},t))}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const n=t.target.toLowerCase(),r=this._methods[n];if(!r){this._logger.log(exports.LogLevel.Warning,`No client method with the name '${n}' found.`),t.invocationId&&(this._logger.log(exports.LogLevel.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const i=r.slice(),o=!!t.invocationId;let a,s,l;for(const c of i)try{const u=a;a=await c.apply(this,t.arguments),o&&a&&u&&(this._logger.log(exports.LogLevel.Error,`Multiple results provided for '${n}'. Sending error to server.`),l=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(exports.LogLevel.Error,`A callback for the method '${n}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):o?(s?l=this._createCompletionMessage(t.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(t.invocationId,null,a):(this._logger.log(exports.LogLevel.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),l=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log(exports.LogLevel.Error,`Result given for '${n}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(exports.LogLevel.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new wm("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===exports.HubConnectionState.Disconnecting?this._completeClose(t):this._connectionState===exports.HubConnectionState.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===exports.HubConnectionState.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=exports.HubConnectionState.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),Tr.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[t]))}catch(n){this._logger.log(exports.LogLevel.Error,`An onclose callback called with error '${t}' threw error '${n}'.`)}}}async _reconnect(t){const n=Date.now();let r=0,i=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(r,0,i);if(o===null){this._logger.log(exports.LogLevel.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=exports.HubConnectionState.Reconnecting,t?this._logger.log(exports.LogLevel.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(exports.LogLevel.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[t]))}catch(a){this._logger.log(exports.LogLevel.Error,`An onreconnecting callback called with error '${t}' threw error '${a}'.`)}if(this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt number ${r+1} will start in ${o} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=exports.HubConnectionState.Connected,this._logger.log(exports.LogLevel.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(exports.LogLevel.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===exports.HubConnectionState.Disconnecting&&this._completeClose();return}r++,i=a instanceof Error?a:new Error(a.toString()),o=this._getNextRetryDelay(r,Date.now()-n,i)}}this._logger.log(exports.LogLevel.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${r} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:t,retryReason:r})}catch(i){return this._logger.log(exports.LogLevel.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${n}) threw error '${i}'.`),null}}_cancelCallbacksWithError(t){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const i=n[r];try{i(null,t)}catch(o){this._logger.log(exports.LogLevel.Error,`Stream 'error' callback called with '${t}' threw error: ${tp(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,n,r,i){if(r)return i.length!==0?{target:t,arguments:n,streamIds:i,type:exports.MessageType.Invocation}:{target:t,arguments:n,type:exports.MessageType.Invocation};{const o=this._invocationId;return this._invocationId++,i.length!==0?{target:t,arguments:n,invocationId:o.toString(),streamIds:i,type:exports.MessageType.Invocation}:{target:t,arguments:n,invocationId:o.toString(),type:exports.MessageType.Invocation}}}_launchStreams(t,n){if(t.length!==0){n||(n=Promise.resolve());for(const r in t)t[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:i=>{let o;i instanceof Error?o=i.message:i&&i.toString?o=i.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,o)))},next:i=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,i)))}})}}_replaceStreamingParams(t){const n=[],r=[];for(let i=0;i<t.length;i++){const o=t[i];if(this._isObservable(o)){const a=this._invocationId;this._invocationId++,n[a]=o,r.push(a.toString()),t.splice(i,1)}}return[n,r]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,n,r){const i=this._invocationId;return this._invocationId++,r.length!==0?{target:t,arguments:n,invocationId:i.toString(),streamIds:r,type:exports.MessageType.StreamInvocation}:{target:t,arguments:n,invocationId:i.toString(),type:exports.MessageType.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:exports.MessageType.CancelInvocation}}_createStreamItemMessage(t,n){return{invocationId:t,item:n,type:exports.MessageType.StreamItem}}_createCompletionMessage(t,n,r){return n?{error:n,invocationId:t,type:exports.MessageType.Completion}:{invocationId:t,result:r,type:exports.MessageType.Completion}}_createCloseMessage(){return{type:exports.MessageType.Close}}async _trySendPingMessage(){try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}}const Q9=v.createContext({isAlive:!1,shouldBeAlive:!1,connectionState:exports.HubConnectionState.Disconnected,hasLastConnectionEnded:!1}),eD="_button_1wjon_1",tD="_filled_1wjon_7",nD="_sm_1wjon_13",rD="_md_1wjon_18",iD="_lg_1wjon_23",va={button:eD,filled:tD,sm:nD,md:rD,lg:iD},Uo=e=>{const t=je.c(24);let n,r,i,o,a,s;t[0]!==e?({variant:o,color:a,size:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"filled":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,h=va[l],p=va[u];let m;t[7]!==f||t[8]!==h||t[9]!==p?(m=se(f,va.button,h,p),t[7]=f,t[8]=h,t[9]=p,t[10]=m):m=t[10];let g;return t[11]!==n||t[12]!==i||t[13]!==d||t[14]!==m?(g=y.jsx(us.Link,{to:d,className:m,...i,children:n}),t[11]=n,t[12]=i,t[13]=d,t[14]=m,t[15]=g):g=t[15],g}if(i.as==="button"||i.as===void 0){const d=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,f=va[l],h=va[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=se(d,va.button,f,h),t[16]=d,t[17]=f,t[18]=h,t[19]=p):p=t[19];let m;return t[20]!==n||t[21]!==i||t[22]!==p?(m=y.jsx("button",{type:"button",className:p,...i,children:n}),t[20]=n,t[21]=i,t[22]=p,t[23]=m):m=t[23],m}return null},oD="_button_1r3i0_1",Cm={button:oD},sf=e=>{const t=je.c(21);let n,r,i,o,a;t[0]!==e?({color:a,icon:i,className:r,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5]);const s=a===void 0?"primary":a;if(o.as==="link"){const l=o.href??"/",c=`luminus-context-button btn text-${s} ${r??""}`;let u;t[6]!==c?(u=se(c,Cm.button),t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==l||t[12]!==u?(d=y.jsxs(us.Link,{to:l,className:u,...o,children:[i,n]}),t[8]=n,t[9]=i,t[10]=o,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}if(o.as==="button"||o.as===void 0){const l=`luminus-context-button btn text-${s} ${r??""}`;let c;t[14]!==l?(c=se(l,Cm.button),t[14]=l,t[15]=c):c=t[15];let u;return t[16]!==n||t[17]!==i||t[18]!==o||t[19]!==c?(u=y.jsxs("button",{type:"button",className:c,...o,children:[i,n]}),t[16]=n,t[17]=i,t[18]=o,t[19]=c,t[20]=u):u=t[20],u}return null},aD="_icon-button_15e26_1",sD="_sm_15e26_14",lD="_md_15e26_23",cD="_lg_15e26_32",nu={"icon-button":"_icon-button_15e26_1",iconButton:aD,sm:sD,md:lD,lg:cD},Sc=e=>{const t=je.c(23);let n,r,i,o,a,s;t[0]!==e?({type:o,color:a,size:s,children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"button":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-icon-button btn text-${c} ${r??""}`,h=nu[u];let p;t[7]!==f||t[8]!==h?(p=se(f,nu.iconButton,h),t[7]=f,t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==n||t[11]!==i||t[12]!==d||t[13]!==p?(m=y.jsx(us.Link,{to:d,className:p,...i,children:n}),t[10]=n,t[11]=i,t[12]=d,t[13]=p,t[14]=m):m=t[14],m}if(i.as==="button"||i.as===void 0){const d=`luminus-icon-button btn text-${c} ${r??""}`,f=nu[u];let h;t[15]!==d||t[16]!==f?(h=se(d,nu.iconButton,f),t[15]=d,t[16]=f,t[17]=h):h=t[17];let p;return t[18]!==n||t[19]!==i||t[20]!==h||t[21]!==l?(p=y.jsx("button",{type:l,className:h,...i,children:n}),t[18]=n,t[19]=i,t[20]=h,t[21]=l,t[22]=p):p=t[22],p}return null},uD="_feedback_esh1j_1",dD="_feedback-spacer_esh1j_8",Eb={feedback:uD,feedbackSpacer:dD},lf=e=>{const t=je.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=se("invalid-feedback luminus-invalid-feedback",Eb.feedback),t[0]=r):r=t[0];let i;t[1]!==n?(i=y.jsx("div",{className:r,children:n}),t[1]=n,t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=se("invalid-feedback-spacer",Eb.feedbackSpacer),t[3]=o):o=t[3];let a;t[4]!==n?(a=y.jsx("div",{className:o,children:n}),t[4]=n,t[5]=a):a=t[5];let s;return t[6]!==i||t[7]!==a?(s=y.jsxs(y.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=s):s=t[8],s},fD="_item_1dy8x_1",fC={item:fD},ko=e=>{const t=je.c(17);let n,r,i,o,a,s,l;t[0]!==e?({color:s,icon:i,className:r,children:n,to:l,as:o,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7]);const u=`btn luminus-dropdown-item text-nowrap rounded text-${s===void 0?"primary":s} ${r??""}`;let d;t[8]!==u?(d=se(u,fC.item),t[8]=u,t[9]=d):d=t[9];const f=o==="link"?us.Link:void 0,h=l??"";let p;return t[10]!==n||t[11]!==i||t[12]!==a||t[13]!==d||t[14]!==f||t[15]!==h?(p=y.jsxs(Za.Item,{className:d,as:f,to:h,...a,children:[i,n]}),t[10]=n,t[11]=i,t[12]=a,t[13]=d,t[14]=f,t[15]=h,t[16]=p):p=t[16],p},hD="_button_qhwih_1",pD={button:hD},d0=({ref:e,color:t="primary",icon:n=y.jsx(V_,{size:21}),text:r,onClick:i,className:o,children:a,...s})=>y.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:se(`btn luminus-context-button text-${t} ${o??""}`,pD.button),...s,children:[n,r]}),f0=e=>{const t=je.c(2);let n;return t[0]!==e?(n=y.jsx(Za.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},mD="_divider_1e6rk_1",gD={divider:mD},Sm=e=>{const t=je.c(4),{className:n}=e;let r;t[0]!==n?(r=se("luminus-dropdown-divider",n,gD.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx(Za.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},vD="_dropdown_1lk66_1",bD={dropdown:vD},h0=e=>{const t=je.c(23);let n,r,i,o,a,s,l,c,u,d;if(t[0]!==e){const{toggle:m,children:g,align:x,..._}=e;o=g,i=x;const{menuAlign:w,menuClassName:C,...b}=_.menuProps||{};a=w,s=b,r=Za,c=_,u=i,d=m,n=Za.Menu,l=se("luminus-dropdown rounded shadow",bD.dropdown,C),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u,t[10]=d}else n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10];const f=i||a;let h;t[11]!==n||t[12]!==o||t[13]!==s||t[14]!==l||t[15]!==f?(h=y.jsx(n,{className:l,align:f,...s,children:o}),t[11]=n,t[12]=o,t[13]=s,t[14]=l,t[15]=f,t[16]=h):h=t[16];let p;return t[17]!==r||t[18]!==c||t[19]!==u||t[20]!==d||t[21]!==h?(p=y.jsxs(r,{...c,align:u,children:[d,h]}),t[17]=r,t[18]=c,t[19]=u,t[20]=d,t[21]=h,t[22]=p):p=t[22],p};function yD(e,t,n,r){var i=this,o=v.useRef(null),a=v.useRef(0),s=v.useRef(0),l=v.useRef(null),c=v.useRef([]),u=v.useRef(),d=v.useRef(),f=v.useRef(e),h=v.useRef(!0);f.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;v.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=v.useMemo(function(){var S=function(A){var I=c.current,j=u.current;return c.current=u.current=null,a.current=A,s.current=s.current||A,d.current=f.current.apply(j,I)},M=function(A,I){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,I)},k=function(A){if(!h.current)return!1;var I=A-o.current;return!o.current||I>=t||I<0||_&&A-a.current>=C},$=function(A){return l.current=null,x&&c.current?S(A):(c.current=u.current=null,d.current)},R=function A(){var I=Date.now();if(g&&s.current===a.current&&T(),k(I))return $(I);if(h.current){var j=t-(I-o.current),D=_?Math.min(j,C-(I-a.current)):j;M(A,D)}},T=function(){r&&r({})},E=function(){if(p||w){var A=Date.now(),I=k(A);if(c.current=[].slice.call(arguments),u.current=i,o.current=A,I){if(!l.current&&h.current)return a.current=o.current,M(R,t),g?S(o.current):d.current;if(_)return M(R,t),S(o.current)}return l.current||M(R,t),d.current}};return E.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,c.current=o.current=u.current=l.current=null,A&&r&&r({})},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?$(Date.now()):d.current},E},[g,_,t,C,x,m,p,w,r]);return b}function xD(e,t){return e===t}function p0(e,t,n){var r=n&&n.equalityFn||xD,i=v.useRef(e),o=v.useState({})[1],a=yD(v.useCallback(function(l){i.current=l,o({})},[o]),t,n,o),s=v.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const wD="_wrapper_1mvyk_1",_D="_open_1mvyk_9",CD="_dropdown_1mvyk_13",SD="_search-input-container_1mvyk_19",TD="_search-input_1mvyk_19",kD="_loading-container_1mvyk_25",$D="_items-container_1mvyk_32",MD="_header-row_1mvyk_38",ED="_name_1mvyk_49",OD="_item_1mvyk_32",AD="_column-item_1mvyk_65",RD="_action-buttons-container_1mvyk_89",DD="_reverse_1mvyk_97",ID="_action-button_1mvyk_89",jD="_actions-dropdown_1mvyk_110",bn={wrapper:wD,open:_D,dropdown:CD,searchInputContainer:SD,searchInput:TD,loadingContainer:kD,itemsContainer:$D,headerRow:MD,name:ED,item:OD,columnItem:AD,actionButtonsContainer:RD,reverse:DD,actionButton:ID,actionsDropdown:jD},hC=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:o,onSelectionChange:a,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:p,isLoading:m=!1,inputRef:g,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1,customEllipsisOptions:b})=>{var Me;const{texts:{customSelect:S}}=v.useContext(rn),M=v.useRef(null),k=v.useRef(null),$=v.useRef(null),R=v.useRef(null),T=v.useRef(null),[E,A]=v.useState(""),[I]=p0(E,500),[,j]=v.useState(!1),{copyToClipboard:D}=sC(),O=(Me=g.current)==null?void 0:Me.getBoundingClientRect(),L=(O==null?void 0:O.x)??0,z=((O==null?void 0:O.x)??0)+((O==null?void 0:O.width)??0),N=(O==null?void 0:O.y)??0,H=((O==null?void 0:O.y)??0)+((O==null?void 0:O.height)??0),Y=(O==null?void 0:O.width)??0,q=(O==null?void 0:O.height)??0,Z=5,{isMobile:X}=Cc(),J=8,ee=v.useMemo(()=>L?L>window.innerWidth/2-J:!1,[L]),W=v.useMemo(()=>N?N>window.innerHeight/2-J:!1,[N]);v.useEffect(()=>{var ce;e&&((ce=$.current)==null||ce.focus())},[$,e]),v.useEffect(()=>{e||A("")},[e]),v.useEffect(()=>{s&&s(I)},[I,s]);const[F,B]=v.useState(null);v.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const V=v.useMemo(()=>F!==null?n.at(F)??null:null,[F,n]),P=v.useCallback((ce,de)=>{var Ge,we;const Ce=document.getElementById(`item-${ce}`);if(Ce){const ve=Ce.clientHeight??0;de==="down"?(Ge=R.current)==null||Ge.scrollBy({left:0,top:ve,behavior:"smooth"}):(we=R.current)==null||we.scrollBy({left:0,top:-ve,behavior:"smooth"})}},[]),te=v.useCallback(ce=>{if(F===null||p)return;const de=F+ce;de<0||de>=n.length||B(Ce=>(Ce!==null&&P(Ce,ce>0?"down":"up"),de))},[F,n,p,P]),K=v.useCallback(ce=>{if(e)switch(ce.key){case"Escape":ce.stopPropagation(),ce.preventDefault(),t();break;case"Enter":ce.stopPropagation(),ce.preventDefault(),p||a(V);break;case"ArrowUp":ce.stopPropagation(),ce.preventDefault(),te(-1);break;case"ArrowDown":ce.stopPropagation(),ce.preventDefault(),te(1);break}},[t,e,te,V,p,a]),G=v.useCallback(()=>{j(ce=>!ce)},[]);v.useEffect(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[G]),v.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]),aC(K),iC([M,k,T],t);const ae=c??(u&&u.length>0?250:0),ne=(u==null?void 0:u.reduce((ce,de)=>ce+(de.width??100),0))??0,re=v.useMemo(()=>(o&&e&&!p&&!C)??!1,[o,e,p,C]),oe=v.useMemo(()=>(o&&e)??!1,[o,e]),le=v.useMemo(()=>e&&(oe||_!==void 0||w!==void 0||b!=null&&b.length>0),[e,oe,_,w,b]),ye=32,ge=X?`calc(100vw - ${ye}px)`:`calc(max(${Y}px, calc(${ae}px + ${ne}px)))`,be=v.useMemo(()=>(E.length<1&&r&&r.length>0?r:n).map(ce=>{var de,Ce;return d?((de=ce.id)==null?void 0:de.toString())??"":((Ce=ce.name)==null?void 0:Ce.toString())??""}).reduce((ce,de)=>ce.length>de.length?ce:de,""),[E,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(wC,{show:e,onClick:t}),y.jsxs("div",{className:se("luminus-dropdown-picker-actions",bn.actionButtonsContainer,{[bn.reverse]:ee}),style:{top:`calc(${N}px + ${q/2}px - 12px)`,left:ee?re&&oe?`calc(${L}px - 24px - 8px - 24px - 4px)`:`calc(${L}px - 24px - 8px)`:`calc(${z}px + 8px)`},children:[re&&y.jsx("button",{ref:k,type:"button",className:se("luminus-dropdown-picker-clear-button",bn.actionButton),onClick:()=>!p&&a(null),children:y.jsx(jn,{variant:"caption",className:"text-danger",children:y.jsx(U_,{size:16})})}),le?y.jsx("div",{ref:T,children:y.jsxs(h0,{toggle:y.jsx(f0,{as:d0,className:se("luminus-dropdown-picker-actions-dropdown",bn.actionsDropdown),icon:y.jsx(jn,{variant:"caption",className:"text-primary",children:y.jsx(V_,{size:16})})}),children:[oe?y.jsx(ko,{icon:y.jsx(R8,{}),onClick:()=>{var ce,de;D(d?((ce=o==null?void 0:o.id)==null?void 0:ce.toString())??"":((de=o==null?void 0:o.name)==null?void 0:de.toString())??"")},children:S.copySelection}):null,oe&&(_||w)?y.jsx(Sm,{}):null,_?y.jsx(ko,{icon:y.jsx(A8,{}),onClick:()=>{window.open(_,"_blank")},children:S.addNewOption}):null,w?y.jsx(ko,{icon:y.jsx(W8,{}),onClick:()=>{w()},children:S.refreshOptions}):null,b&&b.length>0?y.jsx(Sm,{}):null,b==null?void 0:b.map(ce=>y.jsxs(ko,{onClick:()=>{ce.onClick(),t()},children:[ce.icon??null,ce.label]},ce.label))]})}):null]}),y.jsx("div",{className:se("luminus-dropdown-picker",bn.wrapper,{[bn.open]:e}),style:{top:W?`calc(${N}px - 50vh - 8px)`:`calc(${H}px + 8px)`,left:X?`${ye/2}px`:ee?`calc(${z}px - ${ge})`:L,right:X?`${ye/2}px`:ee?`${z}px`:`calc(${L}px + ${ge})`,width:ge,justifyContent:W?"flex-end":"flex-start"},children:y.jsx("div",{ref:M,className:se("shadow rounded",bn.dropdown),children:!p&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=Z?null:y.jsx("div",{className:se("search-input-container border-bottom",bn.searchInputContainer),children:y.jsx(Xr.Control,{ref:$,type:"search",size:"sm",className:bn.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:ce=>{var de;return A(((de=ce.target)==null?void 0:de.value)??"")}})}),E.length<1&&r&&r.length>0?y.jsx(x0,{variant:"info",size:"sm",children:i??S.suggestedItemsTitle}):null,m?y.jsx("div",{className:bn.loadingContainer,children:y.jsx(Xg,{animation:"border",variant:"primary"})}):(E.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:R,className:se("items",bn.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:se("header-row border-bottom",bn.headerRow),children:[y.jsx("div",{className:bn.name,children:y.jsx(jn,{variant:"body2",children:be})}),u==null?void 0:u.filter(ce=>ce.key!==x).map(ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${ce.width??100}px`,minWidth:`${ce.width??100}px`,maxWidth:`${ce.width??100}px`},children:y.jsx(jn,{variant:"caption",children:ce.name})},ce.key))]}),(E.length<1&&r&&r.length>0?r:n).map((ce,de)=>y.jsxs("button",{id:`item-${de}`,type:"button",className:se("item cursor-pointer",bn.item,{[bn.focused]:F===de},{focused:F===de},{archive:ce.additionalColumns?ce.additionalColumns[x]:!1}),onClick:()=>!p&&a(ce),onMouseEnter:()=>B(de),children:[y.jsx("div",{className:bn.name,children:y.jsx(jn,{variant:"body2",children:d?ce.id:ce.name})}),u==null?void 0:u.filter(Ce=>Ce.key!==x).map(Ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${Ce.width??100}px`,minWidth:`${Ce.width??100}px`,maxWidth:`${Ce.width??100}px`},children:y.jsx(jn,{variant:"caption",className:se("text-muted"),children:ce.additionalColumns&&ce.additionalColumns[Ce.key]})},Ce.key))]},ce.id))]})]})})})]})};var m0={};m0.match=zD;m0.parse=pC;var PD=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,ND=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,LD=/^(?:(min|max)-)?(.+)/,FD=/(em|rem|px|cm|mm|in|pt|pc)?$/,BD=/(dpi|dpcm|dppx)?$/;function zD(e,t){return pC(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var o=n.expressions.every(function(a){var s=a.feature,l=a.modifier,c=a.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Rb(c),u=Rb(u);break;case"resolution":c=Ab(c),u=Ab(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Ob(c),u=Ob(u);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,u=parseInt(u,10)||0;break}switch(l){case"min":return u>=c;case"max":return u<=c;default:return u===c}});return o&&!r||!o&&r})}function pC(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(PD),r=n[1],i=n[2],o=n[3]||"",a={};return a.inverse=!!r&&r.toLowerCase()==="not",a.type=i?i.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],a.expressions=o.map(function(s){var l=s.match(ND),c=l[1].toLowerCase().match(LD);return{modifier:c[1],feature:c[2],value:l[2]}}),a})}function Ob(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function Ab(e){var t=parseFloat(e),n=String(e).match(BD)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Rb(e){var t=parseFloat(e),n=String(e).match(FD)[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 WD=m0.match,Db=typeof window<"u"?window.matchMedia:null;function UD(e,t,n){var r=this,i;Db&&!n&&(i=Db.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=WD(e,t),this.media=e),this.addListener=o,this.removeListener=a,this.dispose=l;function o(c){i&&i.addListener(c)}function a(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function HD(e,t,n){return new UD(e,t,n)}var VD=HD;const qD=nn(VD);var YD=/[A-Z]/g,GD=/^ms-/,np={};function ZD(e){return"-"+e.toLowerCase()}function mC(e){if(np.hasOwnProperty(e))return np[e];var t=e.replace(YD,ZD);return np[e]=GD.test(t)?"-"+t:t}function XD(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 o=0;o<i;o++){const a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}const In=xe.oneOfType([xe.string,xe.number]),gC={all:xe.bool,grid:xe.bool,aural:xe.bool,braille:xe.bool,handheld:xe.bool,print:xe.bool,projection:xe.bool,screen:xe.bool,tty:xe.bool,tv:xe.bool,embossed:xe.bool},KD={orientation:xe.oneOf(["portrait","landscape"]),scan:xe.oneOf(["progressive","interlace"]),aspectRatio:xe.string,deviceAspectRatio:xe.string,height:In,deviceHeight:In,width:In,deviceWidth:In,color:xe.bool,colorIndex:xe.bool,monochrome:xe.bool,resolution:In,type:Object.keys(gC)},{type:upe,...JD}=KD,QD={minAspectRatio:xe.string,maxAspectRatio:xe.string,minDeviceAspectRatio:xe.string,maxDeviceAspectRatio:xe.string,minHeight:In,maxHeight:In,minDeviceHeight:In,maxDeviceHeight:In,minWidth:In,maxWidth:In,minDeviceWidth:In,maxDeviceWidth:In,minColor:xe.number,maxColor:xe.number,minColorIndex:xe.number,maxColorIndex:xe.number,minMonochrome:xe.number,maxMonochrome:xe.number,minResolution:In,maxResolution:In,...JD},eI={...gC,...QD};var tI={all:eI};const nI=e=>`not ${e}`,rI=(e,t)=>{const n=mC(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?nI(n):`(${n}: ${t})`},iI=e=>e.join(" and "),oI=e=>{const t=[];return Object.keys(tI.all).forEach(n=>{const r=e[n];r!=null&&t.push(rI(n,r))}),iI(t)},aI=v.createContext(void 0),sI=e=>e.query||oI(e),Ib=e=>e?Object.keys(e).reduce((n,r)=>(n[mC(r)]=e[r],n),{}):void 0,vC=()=>{const e=v.useRef(!1);return v.useEffect(()=>{e.current=!0},[]),e.current},lI=e=>{const t=v.useContext(aI),n=()=>Ib(e)||Ib(t),[r,i]=v.useState(n);return v.useEffect(()=>{const o=n();XD(r,o)||i(o)},[e,t]),r},cI=e=>{const t=()=>sI(e),[n,r]=v.useState(t);return v.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},uI=(e,t)=>{const n=()=>qD(e,t||{},!!t),[r,i]=v.useState(n),o=vC();return v.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},dI=e=>{const[t,n]=v.useState(e.matches);return v.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},rp=(e,t,n)=>{const r=lI(t),i=cI(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=uI(i,r),a=dI(o);return vC(),v.useEffect(()=>{},[a]),v.useEffect(()=>()=>{o&&o.dispose()},[]),a},fI=["sm","md","lg","always"],bC="ResponsiveContextDropdownItem",hI=e=>e.type.displayName===bC,g0=e=>({});g0.displayName=bC;function pI(e){return e.type&&e.type===v.Fragment}const yC=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(pI(r)){n.push(...yC(r.props.children));return}n.push(r)}}),n},mI=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return us.generatePath(e,r)+"?"+n},gI="_disabled_9mp5v_1",vI={disabled:gI},bI=()=>{const e=je.c(5),{ProjectIconComponent:t}=v.useContext(rn),{checkUserHasPermissions:n}=oC();let r;e[0]!==t||e[1]!==n?(r=(a,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:m,cKey:g,to:x,toRoute:_,disabled:w,icon:C,pathParams:b,...S}=h.props,M=(_==null?void 0:_.permissions)!=null,k=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),$=(w??!1)||M&&!k,R=x??(_==null?void 0:mI(_==null?void 0:_.route,b)),T=m??(_==null?void 0:_.name),E=C??(_!=null?y.jsx(t,{icon:"link"}):void 0);if(p==="always"||fI.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const A=se(S.className,{[vI.disabled]:$});R!=null?c.push(y.jsx(ko,{...S,as:"link",to:R,disabled:$,icon:E,className:A,children:T},g)):c.push(y.jsx(ko,{...S,icon:E,className:A,children:T},g))}else{const A=R!=null?{as:"link",href:R}:{};l.push(y.jsx(sf,{...S,...A,icon:E,className:se($?"disabled":void 0,S.className),children:T},g))}};return yC(a).forEach(h=>{h&&v.isValidElement(h)&&(hI(h)?d(h):u=h)}),{buttons:l,dropdownItems:c}},e[0]=t,e[1]=n,e[2]=r):r=e[2];const i=r;let o;return e[3]!==i?(o={getProcessedChildren:i},e[3]=i,e[4]=o):o=e[4],o},xC=e=>{const t=je.c(18),{children:n}=e,{getProcessedChildren:r}=bI();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const o=rp(i);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:769,maxWidth:1200},t[1]=a):a=t[1];const s=rp(a);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=rp(l);let u;t[3]!==c||t[4]!==s||t[5]!==o?(u=[o,s,c],t[3]=c,t[4]=s,t[5]=o,t[6]=u):u=t[6];const d=u.indexOf(!0);let f;t[7]!==n||t[8]!==r||t[9]!==d?(f=r(n,d),t[7]=n,t[8]=r,t[9]=d,t[10]=f):f=t[10];const{buttons:h,dropdownItems:p}=f;let m;t[11]!==h?(m=y.jsx(y.Fragment,{children:h}),t[11]=h,t[12]=m):m=t[12];let g;t[13]!==p?(g=p.length>0?y.jsx(h0,{toggle:y.jsx(f0,{as:d0}),children:p}):null,t[13]=p,t[14]=g):g=t[14];let x;return t[15]!==m||t[16]!==g?(x=y.jsxs("div",{className:"d-flex gap-1",children:[m,g]}),t[15]=m,t[16]=g,t[17]=x):x=t[17],x};xC.Item=g0;const yI="Left",xI="Right",wI="Up",_I="Down",Oa={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Tm={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},jb="mousemove",Pb="mouseup",CI="touchend",SI="touchmove",TI="touchstart";function kI(e,t,n,r){return e>t?n>0?xI:yI:r>0?_I:wI}function Nb(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 $I(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(jb,r),document.addEventListener(Pb,a));const{clientX:p,clientY:m}=d?u.touches[0]:u,g=Nb([p,m],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Tm),{initial:g.slice(),xy:g,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:p,clientY:m}=h?u.touches[0]:u,[g,x]=Nb([p,m],f.rotationAngle),_=g-d.xy[0],w=x-d.xy[1],C=Math.abs(_),b=Math.abs(w),S=(u.timeStamp||0)-d.start,M=Math.sqrt(C*C+b*b)/(S||1),k=[_/(S||1),w/(S||1)],$=kI(C,b,_,w),R=typeof f.delta=="number"?f.delta:f.delta[$.toLowerCase()]||Oa.delta;if(C<R&&b<R&&!d.swiping)return d;const T={absX:C,absY:b,deltaX:_,deltaY:w,dir:$,event:u,first:d.first,initial:d.initial,velocity:M,vxvy:k};T.first&&f.onSwipeStart&&f.onSwipeStart(T),f.onSwiping&&f.onSwiping(T);let E=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${$}`])&&(E=!0),E&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:T,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 p=f[`onSwiped${h.dir}`];p&&p(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),Tm),{eventData:h})})},o=()=>{document.removeEventListener(jb,r),document.removeEventListener(Pb,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Oa.touchEventOptions),d.touchEventOptions),p=[[TI,n,h],[SI,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[CI,i,h]];p.forEach(([m,g,x])=>u.addEventListener(m,g,x)),f=()=>p.forEach(([m,g])=>u.removeEventListener(m,g))}return f},c={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&&(c.onMouseDown=n),[c,s]}function MI(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 v0(e){const{trackMouse:t}=e,n=fe.useRef(Object.assign({},Tm)),r=fe.useRef(Object.assign({},Oa)),i=fe.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Oa),e);let o;for(o in Oa)r.current[o]===void 0&&(r.current[o]=Oa[o]);const[a,s]=fe.useMemo(()=>$I(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=MI(n.current,r.current,i.current,s),a}const EI="_backdrop_3huvf_1",OI="_show_3huvf_11",Lb={backdrop:EI,show:OI},wC=e=>{const t=je.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=se("luminus-backdrop",Lb.backdrop,{[Lb.show]:n}),t[0]=n,t[1]=i):i=t[1];let o;t[2]!==r?(o=()=>r&&r(),t[2]=r,t[3]=o):o=t[3];let a;return t[4]!==i||t[5]!==o?(a=y.jsx("div",{className:i,onClick:o}),t[4]=i,t[5]=o,t[6]=a):a=t[6],a};var b0={},Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.bind=void 0;function AI(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}Tc.bind=AI;var cf={},Aa=Hn&&Hn.__assign||function(){return Aa=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},Aa.apply(this,arguments)};Object.defineProperty(cf,"__esModule",{value:!0});cf.bindAll=void 0;var RI=Tc;function Fb(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function DI(e,t){if(t==null)return e;var n=Aa(Aa({},e),{options:Aa(Aa({},Fb(t)),Fb(e.options))});return n}function II(e,t,n){var r=t.map(function(i){var o=DI(i,n);return(0,RI.bind)(e,o)});return function(){r.forEach(function(o){return o()})}}cf.bindAll=II;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=Tc;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=cf;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(b0);function _C(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=e.apply(this,i);t={result:a}}return t.result}}var y0=_C(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),km={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function jI(e){var t=e.dragLeave;return y0()?t.hasOwnProperty(km.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!y0())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}b0.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(o){!n.isOverWindow&&n.enterCount===0&&(o[km.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(o){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(o[km.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var PI=function(t){var n=[],r=null,i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i},ip=PI(function(e){return e()}),ru=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function NI(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function o(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var a={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};o({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),ru.schedule(function(){o({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;ru.flush(),ip.cancel(),o({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;ip(function(){ru.flush();var u={initial:n,previous:i,current:c};o({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;ru.flush(),ip.cancel(),o({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return a}const x0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return y.jsx(F$,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...a,children:y.jsx(jn,{variant:o,children:n})})},LI="_floating-label_3xm9u_1",FI="_without-label_3xm9u_21",BI="_floating-label-check_3xm9u_184",op={floatingLabel:LI,withoutLabel:FI,floatingLabelCheck:BI},zI=e=>{const t=je.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?y.jsx(Jg,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},uf=({ref:e,hidden:t,children:n,className:r,isInvalid:i,isForRadioInput:o,inputContainerClassName:a,isForCheckInput:s,hint:l,required:c,disabled:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?y.jsx("span",{className:se("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?y.jsx("div",{className:"d-flex align-items-center",children:y.jsx(f,{icon:"info"})}):null]});return s?y.jsx("div",{className:se("luminus-floating-label-check",op.floatingLabelCheck),children:n}):y.jsx(zI,{hint:l,children:y.jsx(Ug,{ref:e,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:se(`luminus-floating-label ${r??""}`,op.floatingLabel,{[a??""]:a},{[op.withoutLabel]:d.withoutLabel}),children:n})})};uf.displayName="FloatingLabelInput";const WI="_row-label-input_i295l_1",UI="_label_i295l_4",HI="_input-container_i295l_9",VI="_keep-check-label_i295l_132",qI="_is-invalid_i295l_160",Us={rowLabelInput:WI,label:UI,inputContainer:HI,keepCheckLabel:VI,isInvalid:qI},kc=({ref:e,hidden:t,children:n,required:r,disabled:i,className:o,isInvalid:a,isForRadioInput:s,isForTextAreaInput:l,inputContainerClassName:c,hint:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:se("label col-6",{"col-12":l},Us.label),children:y.jsxs(jn,{variant:"form-label",className:se("d-flex gap-1 align-items-center",a?"text-danger":""),children:[d.label,r?y.jsx("span",{className:se("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?y.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:y.jsx(f,{icon:"info"})}):null]})});return y.jsxs("div",{ref:e,className:se("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Us.isInvalid]:a},{[o??""]:o},{"d-none":t},Us.rowLabelInput),children:[u?y.jsx(Jg,{text:u,placement:"top",children:h}):h,y.jsx("div",{className:se("input-container",Us.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[Us.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};kc.displayName="RowLabelInput";const CC=e=>{const t=je.c(4),{ref:n,children:r,className:i,hidden:o}=e,a=`${o?"d-none":""} ${i}`;let s;return t[0]!==r||t[1]!==n||t[2]!==a?(s=y.jsx("div",{ref:n,className:a,children:r}),t[0]=r,t[1]=n,t[2]=a,t[3]=s):s=t[3],s};CC.displayName="NoInputContainer";const SC=e=>{const t=je.c(8),{currentSelection:n,selectedItemNavigateTo:r,children:i}=e;if(!n||!n.id||!r){let l;return t[0]!==i?(l=y.jsx("div",{className:"luminus-input-container position-relative w-100",children:i}),t[0]=i,t[1]=l):l=t[1],l}let o;t[2]!==n||t[3]!==r?(o=r(n),t[2]=n,t[3]=r,t[4]=o):o=t[4];const a=o;let s;return t[5]!==i||t[6]!==a?(s=y.jsx(us.Link,{to:a,className:"luminus-input-container position-relative w-100 text-decoration-none",children:i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s},TC=({InputContainer:e=uf,type:t,value:n,onChange:r,debounceMs:i,label:o,withoutLabel:a,placeholder:s,size:l,hidden:c,disabled:u,showClearIcon:d,clearValue:f,list:h,className:p,step:m,minLength:g,maxLength:x,noSelectOnFocus:_,hint:w,onConfirm:C,autoComplete:b})=>{var N,H,Y;const S=t==="number",M=v.useCallback(()=>{if(!r)return;const q=f??null;r(S?q?Number(q):null:(q==null?void 0:q.toString())??"")},[f,S,r]),k=v.useRef(null),[$,R]=v.useState((n==null?void 0:n.toString())??""),T=v.useCallback(q=>{const Z=q;r&&r(S?Z==null||Z===""?null:Number(Z):Z||null)},[S,r]),E=v.useCallback(q=>{var X;const Z=(X=q.target)==null?void 0:X.value;if(!i){T(Z);return}R(Z),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{T(Z)},i)},[i,T]),A=v.useMemo(()=>{if(C!==void 0)return q=>{q.key==="Enter"&&C&&C()}},[C]);v.useEffect(()=>{R(n===null?"":n.toString())},[n]);const[I,j]=v.useState(!1),D=c0(t,n?n.toString()??null:null,I),O=v.useRef(null),L=(((N=O.current)==null?void 0:N.scrollWidth)??0)>(((H=O.current)==null?void 0:H.clientWidth)??0),z=(Y=O.current)==null?void 0:Y.getBoundingClientRect();return y.jsxs(e,{withoutLabel:a,label:o??"",hidden:c,className:p,hint:w,disabled:u,children:[y.jsx(Xr.Control,{type:D,placeholder:s??o,size:l,value:i?$:(n==null?void 0:n.toString())??"",onChange:E,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:q=>{j(!0),!_&&q.target.select()},onBlur:()=>j(!1),onKeyDown:A,step:m,minLength:g,maxLength:x,autoComplete:b,ref:O}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:M,children:y.jsx(gc,{})})}),L?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((z==null?void 0:z.top)??0)+((z==null?void 0:z.height)??0),left:(z==null?void 0:z.left)??0},children:i?$:(n==null?void 0:n.toString())??""}):null]})};var w0={},ed={exports:{}};ed.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",x="[object Null]",_="[object Object]",w="[object Promise]",C="[object Proxy]",b="[object RegExp]",S="[object Set]",M="[object String]",k="[object Symbol]",$="[object Undefined]",R="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",D="[object Int16Array]",O="[object Int32Array]",L="[object Uint8Array]",z="[object Uint8ClampedArray]",N="[object Uint16Array]",H="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[A]=X[I]=X[j]=X[D]=X[O]=X[L]=X[z]=X[N]=X[H]=!0,X[s]=X[l]=X[T]=X[u]=X[E]=X[d]=X[f]=X[h]=X[m]=X[g]=X[_]=X[b]=X[S]=X[M]=X[R]=!1;var J=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,ee=typeof self=="object"&&self&&self.Object===Object&&self,W=J||ee||Function("return this")(),F=t&&!t.nodeType&&t,B=F&&!0&&e&&!e.nodeType&&e,V=B&&B.exports===F,P=V&&J.process,te=function(){try{return P&&P.binding&&P.binding("util")}catch{}}(),K=te&&te.isTypedArray;function G(U,Q){for(var ue=-1,$e=U==null?0:U.length,Xt=0,dt=[];++ue<$e;){var an=U[ue];Q(an,ue,U)&&(dt[Xt++]=an)}return dt}function ae(U,Q){for(var ue=-1,$e=Q.length,Xt=U.length;++ue<$e;)U[Xt+ue]=Q[ue];return U}function ne(U,Q){for(var ue=-1,$e=U==null?0:U.length;++ue<$e;)if(Q(U[ue],ue,U))return!0;return!1}function re(U,Q){for(var ue=-1,$e=Array(U);++ue<U;)$e[ue]=Q(ue);return $e}function oe(U){return function(Q){return U(Q)}}function le(U,Q){return U.has(Q)}function ye(U,Q){return U==null?void 0:U[Q]}function ge(U){var Q=-1,ue=Array(U.size);return U.forEach(function($e,Xt){ue[++Q]=[Xt,$e]}),ue}function be(U,Q){return function(ue){return U(Q(ue))}}function Me(U){var Q=-1,ue=Array(U.size);return U.forEach(function($e){ue[++Q]=$e}),ue}var ce=Array.prototype,de=Function.prototype,Ce=Object.prototype,Ge=W["__core-js_shared__"],we=de.toString,ve=Ce.hasOwnProperty,Ne=function(){var U=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),Ze=Ce.toString,_t=RegExp("^"+we.call(ve).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=V?W.Buffer:void 0,Re=W.Symbol,ot=W.Uint8Array,Ue=Ce.propertyIsEnumerable,mt=ce.splice,ut=Re?Re.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Te?Te.isBuffer:void 0,Le=be(Object.keys,Object),Ve=fa(W,"DataView"),et=fa(W,"Map"),Fe=fa(W,"Promise"),tt=fa(W,"Set"),vt=fa(W,"WeakMap"),at=fa(Object,"create"),Pe=fo(Ve),Ee=fo(et),Ye=fo(Fe),xt=fo(tt),nt=fo(vt),bt=Re?Re.prototype:void 0,Jt=bt?bt.valueOf:void 0;function Ft(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var $e=U[Q];this.set($e[0],$e[1])}}function zt(){this.__data__=at?at(null):{},this.size=0}function fn(U){var Q=this.has(U)&&delete this.__data__[U];return this.size-=Q?1:0,Q}function qt(U){var Q=this.__data__;if(at){var ue=Q[U];return ue===r?void 0:ue}return ve.call(Q,U)?Q[U]:void 0}function ke(U){var Q=this.__data__;return at?Q[U]!==void 0:ve.call(Q,U)}function Je(U,Q){var ue=this.__data__;return this.size+=this.has(U)?0:1,ue[U]=at&&Q===void 0?r:Q,this}Ft.prototype.clear=zt,Ft.prototype.delete=fn,Ft.prototype.get=qt,Ft.prototype.has=ke,Ft.prototype.set=Je;function St(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var $e=U[Q];this.set($e[0],$e[1])}}function on(){this.__data__=[],this.size=0}function Yt(U){var Q=this.__data__,ue=ei(Q,U);if(ue<0)return!1;var $e=Q.length-1;return ue==$e?Q.pop():mt.call(Q,ue,1),--this.size,!0}function Be(U){var Q=this.__data__,ue=ei(Q,U);return ue<0?void 0:Q[ue][1]}function ze(U){return ei(this.__data__,U)>-1}function ht(U,Q){var ue=this.__data__,$e=ei(ue,U);return $e<0?(++this.size,ue.push([U,Q])):ue[$e][1]=Q,this}St.prototype.clear=on,St.prototype.delete=Yt,St.prototype.get=Be,St.prototype.has=ze,St.prototype.set=ht;function Rt(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var $e=U[Q];this.set($e[0],$e[1])}}function Tt(){this.size=0,this.__data__={hash:new Ft,map:new(et||St),string:new Ft}}function Qe(U){var Q=Mi(this,U).delete(U);return this.size-=Q?1:0,Q}function kt(U){return Mi(this,U).get(U)}function br(U){return Mi(this,U).has(U)}function ln(U,Q){var ue=Mi(this,U),$e=ue.size;return ue.set(U,Q),this.size+=ue.size==$e?0:1,this}Rt.prototype.clear=Tt,Rt.prototype.delete=Qe,Rt.prototype.get=kt,Rt.prototype.has=br,Rt.prototype.set=ln;function cn(U){var Q=-1,ue=U==null?0:U.length;for(this.__data__=new Rt;++Q<ue;)this.add(U[Q])}function An(U){return this.__data__.set(U,r),this}function ao(U){return this.__data__.has(U)}cn.prototype.add=cn.prototype.push=An,cn.prototype.has=ao;function Ct(U){var Q=this.__data__=new St(U);this.size=Q.size}function so(){this.__data__=new St,this.size=0}function Ae(U){var Q=this.__data__,ue=Q.delete(U);return this.size=Q.size,ue}function Ar(U){return this.__data__.get(U)}function lo(U){return this.__data__.has(U)}function ua(U,Q){var ue=this.__data__;if(ue instanceof St){var $e=ue.__data__;if(!et||$e.length<n-1)return $e.push([U,Q]),this.size=++ue.size,this;ue=this.__data__=new Rt($e)}return ue.set(U,Q),this.size=ue.size,this}Ct.prototype.clear=so,Ct.prototype.delete=Ae,Ct.prototype.get=Ar,Ct.prototype.has=lo,Ct.prototype.set=ua;function da(U,Q){var ue=Hc(U),$e=!ue&&mT(U),Xt=!ue&&!$e&&Rh(U),dt=!ue&&!$e&&!Xt&&c1(U),an=ue||$e||Xt||dt,vn=an?re(U.length,String):[],wn=vn.length;for(var Qt in U)ve.call(U,Qt)&&!(an&&(Qt=="length"||Xt&&(Qt=="offset"||Qt=="parent")||dt&&(Qt=="buffer"||Qt=="byteLength"||Qt=="byteOffset")||uT(Qt,wn)))&&vn.push(Qt);return vn}function ei(U,Q){for(var ue=U.length;ue--;)if(o1(U[ue][0],Q))return ue;return-1}function zc(U,Q,ue){var $e=Q(U);return Hc(U)?$e:ae($e,ue(U))}function ti(U){return U==null?U===void 0?$:x:ut&&ut in Object(U)?lT(U):pT(U)}function Is(U){return Ps(U)&&ti(U)==s}function co(U,Q,ue,$e,Xt){return U===Q?!0:U==null||Q==null||!Ps(U)&&!Ps(Q)?U!==U&&Q!==Q:js(U,Q,ue,$e,co,Xt)}function js(U,Q,ue,$e,Xt,dt){var an=Hc(U),vn=Hc(Q),wn=an?l:Ei(U),Qt=vn?l:Ei(Q);wn=wn==s?_:wn,Qt=Qt==s?_:Qt;var Jn=wn==_,yr=Qt==_,Cn=wn==Qt;if(Cn&&Rh(U)){if(!Rh(Q))return!1;an=!0,Jn=!1}if(Cn&&!Jn)return dt||(dt=new Ct),an||c1(U)?Rn(U,Q,ue,$e,Xt,dt):Oh(U,Q,wn,ue,$e,Xt,dt);if(!(ue&i)){var rr=Jn&&ve.call(U,"__wrapped__"),ir=yr&&ve.call(Q,"__wrapped__");if(rr||ir){var Oi=rr?U.value():U,ni=ir?Q.value():Q;return dt||(dt=new Ct),Xt(Oi,ni,ue,$e,dt)}}return Cn?(dt||(dt=new Ct),Ah(U,Q,ue,$e,Xt,dt)):!1}function Wc(U){if(!l1(U)||fT(U))return!1;var Q=a1(U)?_t:q;return Q.test(fo(U))}function uo(U){return Ps(U)&&s1(U.length)&&!!X[ti(U)]}function Uc(U){if(!hT(U))return Le(U);var Q=[];for(var ue in Object(U))ve.call(U,ue)&&ue!="constructor"&&Q.push(ue);return Q}function Rn(U,Q,ue,$e,Xt,dt){var an=ue&i,vn=U.length,wn=Q.length;if(vn!=wn&&!(an&&wn>vn))return!1;var Qt=dt.get(U);if(Qt&&dt.get(Q))return Qt==Q;var Jn=-1,yr=!0,Cn=ue&o?new cn:void 0;for(dt.set(U,Q),dt.set(Q,U);++Jn<vn;){var rr=U[Jn],ir=Q[Jn];if($e)var Oi=an?$e(ir,rr,Jn,Q,U,dt):$e(rr,ir,Jn,U,Q,dt);if(Oi!==void 0){if(Oi)continue;yr=!1;break}if(Cn){if(!ne(Q,function(ni,ho){if(!le(Cn,ho)&&(rr===ni||Xt(rr,ni,ue,$e,dt)))return Cn.push(ho)})){yr=!1;break}}else if(!(rr===ir||Xt(rr,ir,ue,$e,dt))){yr=!1;break}}return dt.delete(U),dt.delete(Q),yr}function Oh(U,Q,ue,$e,Xt,dt,an){switch(ue){case E:if(U.byteLength!=Q.byteLength||U.byteOffset!=Q.byteOffset)return!1;U=U.buffer,Q=Q.buffer;case T:return!(U.byteLength!=Q.byteLength||!dt(new ot(U),new ot(Q)));case u:case d:case g:return o1(+U,+Q);case f:return U.name==Q.name&&U.message==Q.message;case b:case M:return U==Q+"";case m:var vn=ge;case S:var wn=$e&i;if(vn||(vn=Me),U.size!=Q.size&&!wn)return!1;var Qt=an.get(U);if(Qt)return Qt==Q;$e|=o,an.set(U,Q);var Jn=Rn(vn(U),vn(Q),$e,Xt,dt,an);return an.delete(U),Jn;case k:if(Jt)return Jt.call(U)==Jt.call(Q)}return!1}function Ah(U,Q,ue,$e,Xt,dt){var an=ue&i,vn=Rr(U),wn=vn.length,Qt=Rr(Q),Jn=Qt.length;if(wn!=Jn&&!an)return!1;for(var yr=wn;yr--;){var Cn=vn[yr];if(!(an?Cn in Q:ve.call(Q,Cn)))return!1}var rr=dt.get(U);if(rr&&dt.get(Q))return rr==Q;var ir=!0;dt.set(U,Q),dt.set(Q,U);for(var Oi=an;++yr<wn;){Cn=vn[yr];var ni=U[Cn],ho=Q[Cn];if($e)var u1=an?$e(ho,ni,Cn,Q,U,dt):$e(ni,ho,Cn,U,Q,dt);if(!(u1===void 0?ni===ho||Xt(ni,ho,ue,$e,dt):u1)){ir=!1;break}Oi||(Oi=Cn=="constructor")}if(ir&&!Oi){var Vc=U.constructor,qc=Q.constructor;Vc!=qc&&"constructor"in U&&"constructor"in Q&&!(typeof Vc=="function"&&Vc instanceof Vc&&typeof qc=="function"&&qc instanceof qc)&&(ir=!1)}return dt.delete(U),dt.delete(Q),ir}function Rr(U){return zc(U,bT,cT)}function Mi(U,Q){var ue=U.__data__;return dT(Q)?ue[typeof Q=="string"?"string":"hash"]:ue.map}function fa(U,Q){var ue=ye(U,Q);return Wc(ue)?ue:void 0}function lT(U){var Q=ve.call(U,ut),ue=U[ut];try{U[ut]=void 0;var $e=!0}catch{}var Xt=Ze.call(U);return $e&&(Q?U[ut]=ue:delete U[ut]),Xt}var cT=At?function(U){return U==null?[]:(U=Object(U),G(At(U),function(Q){return Ue.call(U,Q)}))}:yT,Ei=ti;(Ve&&Ei(new Ve(new ArrayBuffer(1)))!=E||et&&Ei(new et)!=m||Fe&&Ei(Fe.resolve())!=w||tt&&Ei(new tt)!=S||vt&&Ei(new vt)!=R)&&(Ei=function(U){var Q=ti(U),ue=Q==_?U.constructor:void 0,$e=ue?fo(ue):"";if($e)switch($e){case Pe:return E;case Ee:return m;case Ye:return w;case xt:return S;case nt:return R}return Q});function uT(U,Q){return Q=Q??a,!!Q&&(typeof U=="number"||Z.test(U))&&U>-1&&U%1==0&&U<Q}function dT(U){var Q=typeof U;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?U!=="__proto__":U===null}function fT(U){return!!Ne&&Ne in U}function hT(U){var Q=U&&U.constructor,ue=typeof Q=="function"&&Q.prototype||Ce;return U===ue}function pT(U){return Ze.call(U)}function fo(U){if(U!=null){try{return we.call(U)}catch{}try{return U+""}catch{}}return""}function o1(U,Q){return U===Q||U!==U&&Q!==Q}var mT=Is(function(){return arguments}())?Is:function(U){return Ps(U)&&ve.call(U,"callee")&&!Ue.call(U,"callee")},Hc=Array.isArray;function gT(U){return U!=null&&s1(U.length)&&!a1(U)}var Rh=Ke||xT;function vT(U,Q){return co(U,Q)}function a1(U){if(!l1(U))return!1;var Q=ti(U);return Q==h||Q==p||Q==c||Q==C}function s1(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=a}function l1(U){var Q=typeof U;return U!=null&&(Q=="object"||Q=="function")}function Ps(U){return U!=null&&typeof U=="object"}var c1=K?oe(K):uo;function bT(U){return gT(U)?da(U):Uc(U)}function yT(){return[]}function xT(){return!1}e.exports=vT})(ed,ed.exports);var YI=ed.exports,kC={exports:{}};(function(e,t){var n=function(){var r=function(b,S){var M=236,k=17,$=b,R=o[S],T=null,E=0,A=null,I=[],j={},D=function(W,F){E=$*4+17,T=function(B){for(var V=new Array(B),P=0;P<B;P+=1){V[P]=new Array(B);for(var te=0;te<B;te+=1)V[P][te]=null}return V}(E),O(0,0),O(E-7,0),O(0,E-7),N(),z(),Y(W,F),$>=7&&H(W),A==null&&(A=X($,R,I)),q(A,F)},O=function(W,F){for(var B=-1;B<=7;B+=1)if(!(W+B<=-1||E<=W+B))for(var V=-1;V<=7;V+=1)F+V<=-1||E<=F+V||(0<=B&&B<=6&&(V==0||V==6)||0<=V&&V<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=V&&V<=4?T[W+B][F+V]=!0:T[W+B][F+V]=!1)},L=function(){for(var W=0,F=0,B=0;B<8;B+=1){D(!0,B);var V=s.getLostPoint(j);(B==0||W>V)&&(W=V,F=B)}return F},z=function(){for(var W=8;W<E-8;W+=1)T[W][6]==null&&(T[W][6]=W%2==0);for(var F=8;F<E-8;F+=1)T[6][F]==null&&(T[6][F]=F%2==0)},N=function(){for(var W=s.getPatternPosition($),F=0;F<W.length;F+=1)for(var B=0;B<W.length;B+=1){var V=W[F],P=W[B];if(T[V][P]==null)for(var te=-2;te<=2;te+=1)for(var K=-2;K<=2;K+=1)te==-2||te==2||K==-2||K==2||te==0&&K==0?T[V+te][P+K]=!0:T[V+te][P+K]=!1}},H=function(W){for(var F=s.getBCHTypeNumber($),B=0;B<18;B+=1){var V=!W&&(F>>B&1)==1;T[Math.floor(B/3)][B%3+E-8-3]=V}for(var B=0;B<18;B+=1){var V=!W&&(F>>B&1)==1;T[B%3+E-8-3][Math.floor(B/3)]=V}},Y=function(W,F){for(var B=R<<3|F,V=s.getBCHTypeInfo(B),P=0;P<15;P+=1){var te=!W&&(V>>P&1)==1;P<6?T[P][8]=te:P<8?T[P+1][8]=te:T[E-15+P][8]=te}for(var P=0;P<15;P+=1){var te=!W&&(V>>P&1)==1;P<8?T[8][E-P-1]=te:P<9?T[8][15-P-1+1]=te:T[8][15-P-1]=te}T[E-8][8]=!W},q=function(W,F){for(var B=-1,V=E-1,P=7,te=0,K=s.getMaskFunction(F),G=E-1;G>0;G-=2)for(G==6&&(G-=1);;){for(var ae=0;ae<2;ae+=1)if(T[V][G-ae]==null){var ne=!1;te<W.length&&(ne=(W[te]>>>P&1)==1);var re=K(V,G-ae);re&&(ne=!ne),T[V][G-ae]=ne,P-=1,P==-1&&(te+=1,P=7)}if(V+=B,V<0||E<=V){V-=B,B=-B;break}}},Z=function(W,F){for(var B=0,V=0,P=0,te=new Array(F.length),K=new Array(F.length),G=0;G<F.length;G+=1){var ae=F[G].dataCount,ne=F[G].totalCount-ae;V=Math.max(V,ae),P=Math.max(P,ne),te[G]=new Array(ae);for(var re=0;re<te[G].length;re+=1)te[G][re]=255&W.getBuffer()[re+B];B+=ae;var oe=s.getErrorCorrectPolynomial(ne),le=c(te[G],oe.getLength()-1),ye=le.mod(oe);K[G]=new Array(oe.getLength()-1);for(var re=0;re<K[G].length;re+=1){var ge=re+ye.getLength()-K[G].length;K[G][re]=ge>=0?ye.getAt(ge):0}}for(var be=0,re=0;re<F.length;re+=1)be+=F[re].totalCount;for(var Me=new Array(be),ce=0,re=0;re<V;re+=1)for(var G=0;G<F.length;G+=1)re<te[G].length&&(Me[ce]=te[G][re],ce+=1);for(var re=0;re<P;re+=1)for(var G=0;G<F.length;G+=1)re<K[G].length&&(Me[ce]=K[G][re],ce+=1);return Me},X=function(W,F,B){for(var V=u.getRSBlocks(W,F),P=d(),te=0;te<B.length;te+=1){var K=B[te];P.put(K.getMode(),4),P.put(K.getLength(),s.getLengthInBits(K.getMode(),W)),K.write(P)}for(var G=0,te=0;te<V.length;te+=1)G+=V[te].dataCount;if(P.getLengthInBits()>G*8)throw"code length overflow. ("+P.getLengthInBits()+">"+G*8+")";for(P.getLengthInBits()+4<=G*8&&P.put(0,4);P.getLengthInBits()%8!=0;)P.putBit(!1);for(;!(P.getLengthInBits()>=G*8||(P.put(M,8),P.getLengthInBits()>=G*8));)P.put(k,8);return Z(P,V)};j.addData=function(W,F){F=F||"Byte";var B=null;switch(F){case"Numeric":B=f(W);break;case"Alphanumeric":B=h(W);break;case"Byte":B=p(W);break;case"Kanji":B=m(W);break;default:throw"mode:"+F}I.push(B),A=null},j.isDark=function(W,F){if(W<0||E<=W||F<0||E<=F)throw W+","+F;return T[W][F]},j.getModuleCount=function(){return E},j.make=function(){if($<1){for(var W=1;W<40;W++){for(var F=u.getRSBlocks(W,R),B=d(),V=0;V<I.length;V++){var P=I[V];B.put(P.getMode(),4),B.put(P.getLength(),s.getLengthInBits(P.getMode(),W)),P.write(B)}for(var te=0,V=0;V<F.length;V++)te+=F[V].dataCount;if(B.getLengthInBits()<=te*8)break}$=W}D(!1,L())},j.createTableTag=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+F+"px;",B+='">',B+="<tbody>";for(var V=0;V<j.getModuleCount();V+=1){B+="<tr>";for(var P=0;P<j.getModuleCount();P+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+W+"px;",B+=" height: "+W+"px;",B+=" background-color: ",B+=j.isDark(V,P)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},j.createSvgTag=function(W,F,B,V){var P={};typeof arguments[0]=="object"&&(P=arguments[0],W=P.cellSize,F=P.margin,B=P.alt,V=P.title),W=W||2,F=typeof F>"u"?W*4:F,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.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 te=j.getModuleCount()*W+F*2,K,G,ae,ne,re="",oe;for(oe="l"+W+",0 0,"+W+" -"+W+",0 0,-"+W+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=P.scalable?"":' width="'+te+'px" height="'+te+'px"',re+=' viewBox="0 0 '+te+" "+te+'" ',re+=' preserveAspectRatio="xMinYMin meet"',re+=V.text||B.text?' role="img" aria-labelledby="'+J([V.id,B.id].join(" ").trim())+'"':"",re+=">",re+=V.text?'<title id="'+J(V.id)+'">'+J(V.text)+"</title>":"",re+=B.text?'<description id="'+J(B.id)+'">'+J(B.text)+"</description>":"",re+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',re+='<path d="',ae=0;ae<j.getModuleCount();ae+=1)for(ne=ae*W+F,K=0;K<j.getModuleCount();K+=1)j.isDark(ae,K)&&(G=K*W+F,re+="M"+G+","+ne+oe);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},j.createDataURL=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var B=j.getModuleCount()*W+F*2,V=F,P=B-F;return C(B,B,function(te,K){if(V<=te&&te<P&&V<=K&&K<P){var G=Math.floor((te-V)/W),ae=Math.floor((K-V)/W);return j.isDark(ae,G)?0:1}else return 1})},j.createImgTag=function(W,F,B){W=W||2,F=typeof F>"u"?W*4:F;var V=j.getModuleCount()*W+F*2,P="";return P+="<img",P+=' src="',P+=j.createDataURL(W,F),P+='"',P+=' width="',P+=V,P+='"',P+=' height="',P+=V,P+='"',B&&(P+=' alt="',P+=J(B),P+='"'),P+="/>",P};var J=function(W){for(var F="",B=0;B<W.length;B+=1){var V=W.charAt(B);switch(V){case"<":F+="&lt;";break;case">":F+="&gt;";break;case"&":F+="&amp;";break;case'"':F+="&quot;";break;default:F+=V;break}}return F},ee=function(W){var F=1;W=typeof W>"u"?F*2:W;var B=j.getModuleCount()*F+W*2,V=W,P=B-W,te,K,G,ae,ne,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},oe={"██":"▀","█ ":"▀"," █":" "," ":" "},le="";for(te=0;te<B;te+=2){for(G=Math.floor((te-V)/F),ae=Math.floor((te+1-V)/F),K=0;K<B;K+=1)ne="█",V<=K&&K<P&&V<=te&&te<P&&j.isDark(G,Math.floor((K-V)/F))&&(ne=" "),V<=K&&K<P&&V<=te+1&&te+1<P&&j.isDark(ae,Math.floor((K-V)/F))?ne+=" ":ne+="█",le+=W<1&&te+1>=P?oe[ne]:re[ne];le+=`
245
+ `}return B%2&&W>0?le.substring(0,le.length-B-1)+Array(B+1).join("▀"):le.substring(0,le.length-1)};return j.createASCII=function(W,F){if(W=W||1,W<2)return ee(F);W-=1,F=typeof F>"u"?W*2:F;var B=j.getModuleCount()*W+F*2,V=F,P=B-F,te,K,G,ae,ne=Array(W+1).join("██"),re=Array(W+1).join(" "),oe="",le="";for(te=0;te<B;te+=1){for(G=Math.floor((te-V)/W),le="",K=0;K<B;K+=1)ae=1,V<=K&&K<P&&V<=te&&te<P&&j.isDark(G,Math.floor((K-V)/W))&&(ae=0),le+=ae?ne:re;for(G=0;G<W;G+=1)oe+=le+`
246
+ `}return oe.substring(0,oe.length-1)},j.renderTo2dContext=function(W,F){F=F||2;for(var B=j.getModuleCount(),V=0;V<B;V++)for(var P=0;P<B;P++)W.fillStyle=j.isDark(V,P)?"black":"white",W.fillRect(V*F,P*F,F,F)},j};r.stringToBytesFuncs={default:function(b){for(var S=[],M=0;M<b.length;M+=1){var k=b.charCodeAt(M);S.push(k&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,S){var M=function(){for(var $=_(b),R=function(){var z=$.read();if(z==-1)throw"eof";return z},T=0,E={};;){var A=$.read();if(A==-1)break;var I=R(),j=R(),D=R(),O=String.fromCharCode(A<<8|I),L=j<<8|D;E[O]=L,T+=1}if(T!=S)throw T+" != "+S;return E}(),k=63;return function($){for(var R=[],T=0;T<$.length;T+=1){var E=$.charCodeAt(T);if(E<128)R.push(E);else{var A=M[$.charAt(T)];typeof A=="number"?(A&255)==A?R.push(A):(R.push(A>>>8),R.push(A&255)):R.push(k)}}return R}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},a={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,M=7973,k=21522,$={},R=function(T){for(var E=0;T!=0;)E+=1,T>>>=1;return E};return $.getBCHTypeInfo=function(T){for(var E=T<<10;R(E)-R(S)>=0;)E^=S<<R(E)-R(S);return(T<<10|E)^k},$.getBCHTypeNumber=function(T){for(var E=T<<12;R(E)-R(M)>=0;)E^=M<<R(E)-R(M);return T<<12|E},$.getPatternPosition=function(T){return b[T-1]},$.getMaskFunction=function(T){switch(T){case a.PATTERN000:return function(E,A){return(E+A)%2==0};case a.PATTERN001:return function(E,A){return E%2==0};case a.PATTERN010:return function(E,A){return A%3==0};case a.PATTERN011:return function(E,A){return(E+A)%3==0};case a.PATTERN100:return function(E,A){return(Math.floor(E/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(E,A){return E*A%2+E*A%3==0};case a.PATTERN110:return function(E,A){return(E*A%2+E*A%3)%2==0};case a.PATTERN111:return function(E,A){return(E*A%3+(E+A)%2)%2==0};default:throw"bad maskPattern:"+T}},$.getErrorCorrectPolynomial=function(T){for(var E=c([1],0),A=0;A<T;A+=1)E=E.multiply(c([1,l.gexp(A)],0));return E},$.getLengthInBits=function(T,E){if(1<=E&&E<10)switch(T){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:"+T}else if(E<27)switch(T){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:"+T}else if(E<41)switch(T){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:"+T}else throw"type:"+E},$.getLostPoint=function(T){for(var E=T.getModuleCount(),A=0,I=0;I<E;I+=1)for(var j=0;j<E;j+=1){for(var D=0,O=T.isDark(I,j),L=-1;L<=1;L+=1)if(!(I+L<0||E<=I+L))for(var z=-1;z<=1;z+=1)j+z<0||E<=j+z||L==0&&z==0||O==T.isDark(I+L,j+z)&&(D+=1);D>5&&(A+=3+D-5)}for(var I=0;I<E-1;I+=1)for(var j=0;j<E-1;j+=1){var N=0;T.isDark(I,j)&&(N+=1),T.isDark(I+1,j)&&(N+=1),T.isDark(I,j+1)&&(N+=1),T.isDark(I+1,j+1)&&(N+=1),(N==0||N==4)&&(A+=3)}for(var I=0;I<E;I+=1)for(var j=0;j<E-6;j+=1)T.isDark(I,j)&&!T.isDark(I,j+1)&&T.isDark(I,j+2)&&T.isDark(I,j+3)&&T.isDark(I,j+4)&&!T.isDark(I,j+5)&&T.isDark(I,j+6)&&(A+=40);for(var j=0;j<E;j+=1)for(var I=0;I<E-6;I+=1)T.isDark(I,j)&&!T.isDark(I+1,j)&&T.isDark(I+2,j)&&T.isDark(I+3,j)&&T.isDark(I+4,j)&&!T.isDark(I+5,j)&&T.isDark(I+6,j)&&(A+=40);for(var H=0,j=0;j<E;j+=1)for(var I=0;I<E;I+=1)T.isDark(I,j)&&(H+=1);var Y=Math.abs(100*H/E/E-50)/5;return A+=Y*10,A},$}(),l=function(){for(var b=new Array(256),S=new Array(256),M=0;M<8;M+=1)b[M]=1<<M;for(var M=8;M<256;M+=1)b[M]=b[M-4]^b[M-5]^b[M-6]^b[M-8];for(var M=0;M<255;M+=1)S[b[M]]=M;var k={};return k.glog=function($){if($<1)throw"glog("+$+")";return S[$]},k.gexp=function($){for(;$<0;)$+=255;for(;$>=256;)$-=255;return b[$]},k}();function c(b,S){if(typeof b.length>"u")throw b.length+"/"+S;var M=function(){for(var $=0;$<b.length&&b[$]==0;)$+=1;for(var R=new Array(b.length-$+S),T=0;T<b.length-$;T+=1)R[T]=b[T+$];return R}(),k={};return k.getAt=function($){return M[$]},k.getLength=function(){return M.length},k.multiply=function($){for(var R=new Array(k.getLength()+$.getLength()-1),T=0;T<k.getLength();T+=1)for(var E=0;E<$.getLength();E+=1)R[T+E]^=l.gexp(l.glog(k.getAt(T))+l.glog($.getAt(E)));return c(R,0)},k.mod=function($){if(k.getLength()-$.getLength()<0)return k;for(var R=l.glog(k.getAt(0))-l.glog($.getAt(0)),T=new Array(k.getLength()),E=0;E<k.getLength();E+=1)T[E]=k.getAt(E);for(var E=0;E<$.getLength();E+=1)T[E]^=l.gexp(l.glog($.getAt(E))+R);return c(T,0).mod($)},k}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($,R){var T={};return T.totalCount=$,T.dataCount=R,T},M={},k=function($,R){switch(R){case o.L:return b[($-1)*4+0];case o.M:return b[($-1)*4+1];case o.Q:return b[($-1)*4+2];case o.H:return b[($-1)*4+3];default:return}};return M.getRSBlocks=function($,R){var T=k($,R);if(typeof T>"u")throw"bad rs block @ typeNumber:"+$+"/errorCorrectionLevel:"+R;for(var E=T.length/3,A=[],I=0;I<E;I+=1)for(var j=T[I*3+0],D=T[I*3+1],O=T[I*3+2],L=0;L<j;L+=1)A.push(S(D,O));return A},M}(),d=function(){var b=[],S=0,M={};return M.getBuffer=function(){return b},M.getAt=function(k){var $=Math.floor(k/8);return(b[$]>>>7-k%8&1)==1},M.put=function(k,$){for(var R=0;R<$;R+=1)M.putBit((k>>>$-R-1&1)==1)},M.getLengthInBits=function(){return S},M.putBit=function(k){var $=Math.floor(S/8);b.length<=$&&b.push(0),k&&(b[$]|=128>>>S%8),S+=1},M},f=function(b){var S=i.MODE_NUMBER,M=b,k={};k.getMode=function(){return S},k.getLength=function(T){return M.length},k.write=function(T){for(var E=M,A=0;A+2<E.length;)T.put($(E.substring(A,A+3)),10),A+=3;A<E.length&&(E.length-A==1?T.put($(E.substring(A,A+1)),4):E.length-A==2&&T.put($(E.substring(A,A+2)),7))};var $=function(T){for(var E=0,A=0;A<T.length;A+=1)E=E*10+R(T.charAt(A));return E},R=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-48;throw"illegal char :"+T};return k},h=function(b){var S=i.MODE_ALPHA_NUM,M=b,k={};k.getMode=function(){return S},k.getLength=function(R){return M.length},k.write=function(R){for(var T=M,E=0;E+1<T.length;)R.put($(T.charAt(E))*45+$(T.charAt(E+1)),11),E+=2;E<T.length&&R.put($(T.charAt(E)),6)};var $=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;if("A"<=R&&R<="Z")return R.charCodeAt(0)-65+10;switch(R){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 :"+R}};return k},p=function(b){var S=i.MODE_8BIT_BYTE,M=r.stringToBytes(b),k={};return k.getMode=function(){return S},k.getLength=function($){return M.length},k.write=function($){for(var R=0;R<M.length;R+=1)$.put(M[R],8)},k},m=function(b){var S=i.MODE_KANJI,M=r.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(R,T){var E=M(R);if(E.length!=2||(E[0]<<8|E[1])!=T)throw"sjis not supported."})("友",38726);var k=M(b),$={};return $.getMode=function(){return S},$.getLength=function(R){return~~(k.length/2)},$.write=function(R){for(var T=k,E=0;E+1<T.length;){var A=(255&T[E])<<8|255&T[E+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(E+1)+"/"+A;A=(A>>>8&255)*192+(A&255),R.put(A,13),E+=2}if(E<T.length)throw"illegal char at "+(E+1)},$},g=function(){var b=[],S={};return S.writeByte=function(M){b.push(M&255)},S.writeShort=function(M){S.writeByte(M),S.writeByte(M>>>8)},S.writeBytes=function(M,k,$){k=k||0,$=$||M.length;for(var R=0;R<$;R+=1)S.writeByte(M[R+k])},S.writeString=function(M){for(var k=0;k<M.length;k+=1)S.writeByte(M.charCodeAt(k))},S.toByteArray=function(){return b},S.toString=function(){var M="";M+="[";for(var k=0;k<b.length;k+=1)k>0&&(M+=","),M+=b[k];return M+="]",M},S},x=function(){var b=0,S=0,M=0,k="",$={},R=function(E){k+=String.fromCharCode(T(E&63))},T=function(E){if(!(E<0)){if(E<26)return 65+E;if(E<52)return 97+(E-26);if(E<62)return 48+(E-52);if(E==62)return 43;if(E==63)return 47}throw"n:"+E};return $.writeByte=function(E){for(b=b<<8|E&255,S+=8,M+=1;S>=6;)R(b>>>S-6),S-=6},$.flush=function(){if(S>0&&(R(b<<6-S),b=0,S=0),M%3!=0)for(var E=3-M%3,A=0;A<E;A+=1)k+="="},$.toString=function(){return k},$},_=function(b){var S=b,M=0,k=0,$=0,R={};R.read=function(){for(;$<8;){if(M>=S.length){if($==0)return-1;throw"unexpected end of file./"+$}var E=S.charAt(M);if(M+=1,E=="=")return $=0,-1;if(E.match(/^\s$/))continue;k=k<<6|T(E.charCodeAt(0)),$+=6}var A=k>>>$-8&255;return $-=8,A};var T=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return R},w=function(b,S){var M=b,k=S,$=new Array(b*S),R={};R.setPixel=function(I,j,D){$[j*M+I]=D},R.write=function(I){I.writeString("GIF87a"),I.writeShort(M),I.writeShort(k),I.writeByte(128),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(255),I.writeByte(255),I.writeByte(255),I.writeString(","),I.writeShort(0),I.writeShort(0),I.writeShort(M),I.writeShort(k),I.writeByte(0);var j=2,D=E(j);I.writeByte(j);for(var O=0;D.length-O>255;)I.writeByte(255),I.writeBytes(D,O,255),O+=255;I.writeByte(D.length-O),I.writeBytes(D,O,D.length-O),I.writeByte(0),I.writeString(";")};var T=function(I){var j=I,D=0,O=0,L={};return L.write=function(z,N){if(z>>>N)throw"length over";for(;D+N>=8;)j.writeByte(255&(z<<D|O)),N-=8-D,z>>>=8-D,O=0,D=0;O=z<<D|O,D=D+N},L.flush=function(){D>0&&j.writeByte(O)},L},E=function(I){for(var j=1<<I,D=(1<<I)+1,O=I+1,L=A(),z=0;z<j;z+=1)L.add(String.fromCharCode(z));L.add(String.fromCharCode(j)),L.add(String.fromCharCode(D));var N=g(),H=T(N);H.write(j,O);var Y=0,q=String.fromCharCode($[Y]);for(Y+=1;Y<$.length;){var Z=String.fromCharCode($[Y]);Y+=1,L.contains(q+Z)?q=q+Z:(H.write(L.indexOf(q),O),L.size()<4095&&(L.size()==1<<O&&(O+=1),L.add(q+Z)),q=Z)}return H.write(L.indexOf(q),O),H.write(D,O),H.flush(),N.toByteArray()},A=function(){var I={},j=0,D={};return D.add=function(O){if(D.contains(O))throw"dup key:"+O;I[O]=j,j+=1},D.size=function(){return j},D.indexOf=function(O){return I[O]},D.contains=function(O){return typeof I[O]<"u"},D};return R},C=function(b,S,M){for(var k=w(b,S),$=0;$<S;$+=1)for(var R=0;R<b;R+=1)k.setPixel(R,$,M(R,$));var T=g();k.write(T);for(var E=x(),A=T.toByteArray(),I=0;I<A.length;I+=1)E.writeByte(A[I]);return E.flush(),"data:image/gif;base64,"+E};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(o){for(var a=[],s=0;s<o.length;s++){var l=o.charCodeAt(s);l<128?a.push(l):l<2048?a.push(192|l>>6,128|l&63):l<55296||l>=57344?a.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return a}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(kC);var GI=kC.exports,ZI=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 o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$m=Hn&&Hn.__assign||function(){return $m=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},$m.apply(this,arguments)};Object.defineProperty(w0,"__esModule",{value:!0});exports.QRCode_1=w0.QRCode=void 0;var XI=YI,KI=GI,ap=v,JI=function(e){ZI(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=ap.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 o=this.canvasRef.current.toDataURL(i,1),a=document.createElement("a");a.download=r??"react-qrcode-logo",a.href=o,a.click()}},t.prototype.utf16to8=function(n){var r="",i,o,a=n.length;for(i=0;i<a;i++)o=n.charCodeAt(i),o>=1&&o<=127?r+=n.charAt(i):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,o,a,s,l,c){c.lineWidth=n,c.fillStyle=a,c.strokeStyle=a,i+=n/2,r+=n/2,o-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(p){return p=Math.min(p,o/2),p<0?0:p});var u=s[0]||0,d=s[1]||0,f=s[2]||0,h=s[3]||0;c.beginPath(),c.moveTo(r+u,i),c.lineTo(r+o-d,i),d&&c.quadraticCurveTo(r+o,i,r+o,i+d),c.lineTo(r+o,i+o-f),f&&c.quadraticCurveTo(r+o,i+o,r+o-f,i+o),c.lineTo(r+h,i+o),h&&c.quadraticCurveTo(r,i+o,r,i+o-h),c.lineTo(r,i+u),u&&c.quadraticCurveTo(r,i,r+u,i),c.closePath(),c.stroke(),l&&c.fill()},t.prototype.drawPositioningPattern=function(n,r,i,o,a,s,l){l===void 0&&(l=[0,0,0,0]);var c=Math.ceil(r),u,d;typeof l!="number"&&!Array.isArray(l)?(u=l.outer||0,d=l.inner||0):(u=l,d=u);var f,h;typeof s!="string"?(f=s.outer,h=s.inner):(f=s,h=s);var p=o*r+i,m=a*r+i,g=r*7;this.drawRoundedSquare(c,m,p,g,f,u,!1,n),g=r*3,p+=r*2,m+=r*2,this.drawRoundedSquare(c,m,p,g,h,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(o){return r>=o.row&&r<=o.row+7&&n>=o.col&&n<=o.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,o,a,s,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(a,l),f=this.transformPixelLengthIntoNumberOfCells(s,l),h=this.transformPixelLengthIntoNumberOfCells(i,l)-1,p=this.transformPixelLengthIntoNumberOfCells(o,l)-1;return r>=d-u&&r<=d+h+u&&n>=f-u&&n<=f+p+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!XI(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,o=r.ecLevel,a=r.enableCORS,s=r.bgColor,l=r.fgColor,c=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,h=r.qrStyle,p=r.eyeRadius,m=r.eyeColor,g=r.logoPaddingStyle,x=+this.props.size,_=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,S=KI(0,o);S.addData(this.utf16to8(i)),S.make();var M=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=M.getContext("2d"),$=x+2*_,R=S.getModuleCount(),T=x/R,E=window.devicePixelRatio||1;M.height=M.width=$*E,k.scale(E,E),k.fillStyle=s,k.fillRect(0,0,$,$);var A=_,I=[{row:0,col:0},{row:0,col:R-7},{row:R-7,col:0}];if(k.strokeStyle=l,h==="dots"){k.fillStyle=l;for(var j=T/2,D=0;D<R;D++)for(var O=0;O<R;O++)S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)&&(k.beginPath(),k.arc(Math.round(O*T)+j+A,Math.round(D*T)+j+A,j/100*75,0,2*Math.PI,!1),k.closePath(),k.fill())}else if(h==="fluid"){for(var j=Math.ceil(T/2),D=0;D<R;D++)for(var O=0;O<R;O++)if(S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)){var L=[!1,!1,!1,!1];D>0&&!S.isDark(D-1,O)&&O>0&&!S.isDark(D,O-1)&&(L[0]=!0),D>0&&!S.isDark(D-1,O)&&O<R-1&&!S.isDark(D,O+1)&&(L[1]=!0),D<R-1&&!S.isDark(D+1,O)&&O<R-1&&!S.isDark(D,O+1)&&(L[2]=!0),D<R-1&&!S.isDark(D+1,O)&&O>0&&!S.isDark(D,O-1)&&(L[3]=!0);var z=Math.ceil((O+1)*T)-Math.floor(O*T),N=Math.ceil((D+1)*T)-Math.floor(D*T);k.fillStyle=l,k.beginPath(),k.arc(Math.round(O*T)+j+A,Math.round(D*T)+j+A,j,0,2*Math.PI,!1),k.closePath(),k.fill(),L[0]||k.fillRect(Math.round(O*T)+A,Math.round(D*T)+A,z/2,N/2),L[1]||k.fillRect(Math.round(O*T)+A+Math.floor(z/2),Math.round(D*T)+A,z/2,N/2),L[2]||k.fillRect(Math.round(O*T)+A+Math.floor(z/2),Math.round(D*T)+A+Math.floor(N/2),z/2,N/2),L[3]||k.fillRect(Math.round(O*T)+A,Math.round(D*T)+A+Math.floor(N/2),z/2,N/2)}}else for(var D=0;D<R;D++)for(var O=0;O<R;O++)if(S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)){k.fillStyle=l;var z=Math.ceil((O+1)*T)-Math.floor(O*T),N=Math.ceil((D+1)*T)-Math.floor(D*T);k.fillRect(Math.round(O*T)+A,Math.round(D*T)+A,z,N)}for(var H=0;H<3;H++){var Y=I[H],D=Y.row,O=Y.col,q=p,Z=void 0;Array.isArray(q)&&(q=q[H]),typeof q=="number"&&(q=[q,q,q,q]),m?Array.isArray(m)?Z=m[H]:Z=m:Z=l,this.drawPositioningPattern(k,T,A,D,O,Z,q)}if(c){var X=new Image;a&&(X.crossOrigin="Anonymous"),X.onload=function(J){k.save();var ee=w||x*.2,W=C||ee,F=(x-ee)/2,B=(x-W)/2;if(f||b){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var V=ee+2*b,P=W+2*b,te=F+A-b,K=B+A-b;if(g==="circle"){var G=te+V/2,ae=K+P/2;k.ellipse(G,ae,V/2,P/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(te,K,V,P)}k.globalAlpha=u,k.drawImage(X,F+A,B+A,ee,W),k.restore(),d&&d(J)},X.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return ap.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:$m({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}(ap.Component);exports.QRCode_1=w0.QRCode=JI;const $C=e=>{const t=je.c(7),{value:n,MiniDetailComponent:r,children:i,miniDetailPlacement:o}=e;if(!n||!r)return i;let a;t[0]!==n?(a=n.toString(),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==a?(s=y.jsx(r,{id:a,placement:o,children:i}),t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):s=t[6],s},MC=({InputContainer:e=uf,value:t,options:n,onChange:r,label:i,withoutLabel:o,isNumber:a,size:s,hidden:l,disabled:c,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:p,dropdownWidth:m,hint:g,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:b,noRemoveButton:S})=>{const{texts:{customSelect:M}}=v.useContext(rn),[k,$]=v.useState(!1),[R,T]=v.useState(""),E=v.useCallback(z=>{T(z)},[]),A=v.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),I=v.useCallback(z=>{var N;return z===null?"":!z.name||z.name.length===0?((N=z.id)==null?void 0:N.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),j=v.useMemo(()=>{const z=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(z.some(N=>N.id===t)||z.push({id:t,name:p})),z.map(N=>({id:N.id,name:I(N)})).filter(N=>e0(N.name,R)).sort((N,H)=>u?0:(N.name??"").localeCompare(H.name??""))},[n,u,R,I,p,t]),D=v.useCallback(z=>{var N;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:a?Number(z.id):(N=z.id)==null?void 0:N.toString())},[r,a]),O=v.useCallback(z=>{$(!1),D(z)},[D]),L=v.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:o,label:i??"",hidden:l,inputContainerClassName:se({"luminus-dropdown-select-open":k}),className:d,hint:g,disabled:c,children:[y.jsx(SC,{currentSelection:A,selectedItemNavigateTo:b,children:y.jsx($C,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:y.jsxs(Xr.Select,{ref:L,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!c&&$(!0)},onChange:()=>{},className:se("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[h&&!(t==null||t==="")?void 0:y.jsx("option",{value:""}),t!=null&&y.jsx("option",{value:t,children:I(A)})]})})}),L.current&&y.jsx(hC,{show:k,onCancel:()=>$(!1),items:j,currentSelection:A??null,onSelectionChange:O,onSearchQueryChange:E,texts:M,disabled:c,inputRef:L,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:_,noRemoveButton:S})]})})};function QI(e){return it({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 ej(e){return it({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 tj(e){return it({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 nj(e){return it({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)}var _0=Mc(),rt=e=>$c(e,_0),C0=Mc();rt.write=e=>$c(e,C0);var df=Mc();rt.onStart=e=>$c(e,df);var S0=Mc();rt.onFrame=e=>$c(e,S0);var T0=Mc();rt.onFinish=e=>$c(e,T0);var Pa=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const o=Pa.findIndex(a=>a.cancel==r);~o&&Pa.splice(o,1),Wi-=~o?1:0},i={time:n,handler:e,cancel:r};return Pa.splice(EC(n),0,i),Wi+=1,OC(),i};var EC=e=>~(~Pa.findIndex(t=>t.time>e)||~Pa.length);rt.cancel=e=>{df.delete(e),S0.delete(e),T0.delete(e),_0.delete(e),C0.delete(e)};rt.sync=e=>{Mm=!0,rt.batchedUpdates(e),Mm=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,rt.onStart(n)}return r.handler=e,r.cancel=()=>{df.delete(n),t=null},r};var k0=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>k0=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RC()};var zi=-1,Wi=0,Mm=!1;function $c(e,t){Mm?(t.delete(e),e(0)):(t.add(e),OC())}function OC(){zi<0&&(zi=0,rt.frameLoop!=="demand"&&k0(AC))}function rj(){zi=-1}function AC(){~zi&&(k0(AC),rt.batchedUpdates(RC))}function RC(){const e=zi;zi=rt.now();const t=EC(zi);if(t&&(DC(Pa.splice(0,t),n=>n.handler()),Wi-=t),!Wi){rj();return}df.flush(),_0.flush(e?Math.min(64,zi-e):16.667),S0.flush(),C0.flush(),T0.flush()}function Mc(){let e=new Set,t=e;return{add(n){Wi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Wi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Wi-=t.size,DC(t,r=>r(n)&&e.add(r)),Wi+=e.size,t=e)}}}function DC(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var ij=Object.defineProperty,oj=(e,t)=>{for(var n in t)ij(e,n,{get:t[n],enumerable:!0})},$r={};oj($r,{assign:()=>sj,colors:()=>Vi,createStringInterpolator:()=>M0,skipAnimation:()=>jC,to:()=>IC,willAdvance:()=>E0});function Em(){}var aj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pe={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 si(e,t){if(pe.arr(e)){if(!pe.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 Xe=(e,t)=>e.forEach(t);function Vr(e,t,n){if(pe.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 Pn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function hl(e,t){if(e.size){const n=Array.from(e);e.clear(),Xe(n,t)}}var ll=(e,...t)=>hl(e,n=>n(...t)),$0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),M0,IC,Vi=null,jC=!1,E0=Em,sj=e=>{e.to&&(IC=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Vi=e.colors),e.skipAnimation!=null&&(jC=e.skipAnimation),e.createStringInterpolator&&(M0=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(E0=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},pl=new Set,sr=[],sp=[],td=0,ff={get idle(){return!pl.size&&!sr.length},start(e){td>e.priority?(pl.add(e),rt.onStart(lj)):(PC(e),rt(Om))},advance:Om,sort(e){if(td)rt.onFrame(()=>ff.sort(e));else{const t=sr.indexOf(e);~t&&(sr.splice(t,1),NC(e))}},clear(){sr=[],pl.clear()}};function lj(){pl.forEach(PC),pl.clear(),rt(Om)}function PC(e){sr.includes(e)||NC(e)}function NC(e){sr.splice(cj(sr,t=>t.priority>e.priority),0,e)}function Om(e){const t=sp;for(let n=0;n<sr.length;n++){const r=sr[n];td=r.priority,r.idle||(E0(r),r.advance(e),r.idle||t.push(r))}return td=0,sp=sr,sp.length=0,sr=t,sr.length>0}function cj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var uj={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},Cr="[-+]?\\d*\\.?\\d+",nd=Cr+"%";function hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var dj=new RegExp("rgb"+hf(Cr,Cr,Cr)),fj=new RegExp("rgba"+hf(Cr,Cr,Cr,Cr)),hj=new RegExp("hsl"+hf(Cr,nd,nd)),pj=new RegExp("hsla"+hf(Cr,nd,nd,Cr)),mj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vj=/^#([0-9a-fA-F]{6})$/,bj=/^#([0-9a-fA-F]{8})$/;function yj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=vj.exec(e))?parseInt(t[1]+"ff",16)>>>0:Vi&&Vi[e]!==void 0?Vi[e]:(t=dj.exec(e))?(ba(t[1])<<24|ba(t[2])<<16|ba(t[3])<<8|255)>>>0:(t=fj.exec(e))?(ba(t[1])<<24|ba(t[2])<<16|ba(t[3])<<8|Wb(t[4]))>>>0:(t=mj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bj.exec(e))?parseInt(t[1],16)>>>0:(t=gj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hj.exec(e))?(Bb(zb(t[1]),iu(t[2]),iu(t[3]))|255)>>>0:(t=pj.exec(e))?(Bb(zb(t[1]),iu(t[2]),iu(t[3]))|Wb(t[4]))>>>0:null}function lp(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 Bb(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=lp(i,r,e+1/3),a=lp(i,r,e),s=lp(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ba(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function zb(e){return(parseFloat(e)%360+360)%360/360}function Wb(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function iu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ub(e){let t=yj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Ll=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ll({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return M0(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=wj(c,o);return xj(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function xj(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function wj(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var _j={linear:e=>e},Fl=Symbol.for("FluidValue.get"),rs=Symbol.for("FluidValue.observers"),ar=e=>!!(e&&e[Fl]),Bn=e=>e&&e[Fl]?e[Fl]():e,Hb=e=>e[rs]||null;function Cj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Bl(e,t){const n=e[rs];n&&n.forEach(r=>{Cj(r,t)})}var LC=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Sj(this,e)}},Sj=(e,t)=>FC(e,Fl,t);function vs(e,t){if(e[Fl]){let n=e[rs];n||FC(e,rs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function zl(e,t){const n=e[rs];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[rs]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var FC=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Mu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Tj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Vb=new RegExp(`(${Mu.source})(%|[a-z]+)`,"i"),kj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,pf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,BC=e=>{const[t,n]=$j(e);if(!t||$0())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&&pf.test(n))return BC(n);if(n)return n}return e},$j=e=>{const t=pf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cp,Mj=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,zC=e=>{cp||(cp=Vi?new RegExp(`(${Object.keys(Vi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Bn(o).replace(pf,BC).replace(Tj,Ub).replace(cp,Ub)),n=t.map(o=>o.match(Mu).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Ll({...e,output:o}));return o=>{var l;const a=!Vb.test(t[0])&&((l=t.find(c=>Vb.test(c)))==null?void 0:l.replace(Mu,""));let s=0;return t[0].replace(Mu,()=>`${i[s++](o)}${a||""}`).replace(kj,Mj)}},O0="react-spring: ",WC=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${O0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Ej=WC(console.warn);function Oj(){Ej(`${O0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Aj=WC(console.warn);function Rj(){Aj(`${O0}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 mf(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!$0()&&pf.test(e)||e in(Vi||{}))}var $o=$0()?v.useEffect:v.useLayoutEffect,Dj=()=>{const e=v.useRef(!1);return $o(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function A0(){const e=v.useState()[1],t=Dj();return()=>{t.current&&e(Math.random())}}var R0=e=>v.useEffect(e,Ij),Ij=[];function Am(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current}var Wl=Symbol.for("Animated:node"),jj=e=>!!e&&e[Wl]===e,Pr=e=>e&&e[Wl],D0=(e,t)=>aj(e,Wl,t),gf=e=>e&&e[Wl]&&e[Wl].getPayload(),UC=class{constructor(){D0(this,this)}getPayload(){return this.payload||[]}},vf=class HC extends UC{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,pe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new HC(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return pe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,pe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},rd=class VC extends vf{constructor(t){super(0),this._string=null,this._toString=Ll({output:[t,t]})}static create(t){return new VC(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ll({output:[this.getValue(),t]})),this._value=0,super.reset()}},id={dependencies:null},bf=class extends UC{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vr(this.source,(n,r)=>{jj(n)?t[r]=n.getValue(e):ar(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Vr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){id.dependencies&&ar(e)&&id.dependencies.add(e);const t=gf(e);t&&Xe(t,n=>this.add(n))}},Pj=class qC extends bf{constructor(t){super(t)}static create(t){return new qC(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(Nj)),!0)}};function Nj(e){return(mf(e)?rd:vf).create(e)}function Rm(e){const t=Pr(e);return t?t.constructor:pe.arr(e)?Pj:mf(e)?rd:vf}var qb=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((r,i)=>{const o=v.useRef(null),a=n&&v.useCallback(p=>{o.current=Bj(i,p)},[i]),[s,l]=Fj(r,t),c=A0(),u=()=>{const p=o.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new Lj(u,l),f=v.useRef(void 0);$o(()=>(f.current=d,Xe(l,p=>vs(p,d)),()=>{f.current&&(Xe(f.current.deps,p=>zl(p,f.current)),rt.cancel(f.current.update))})),v.useEffect(u,[]),R0(()=>()=>{const p=f.current;Xe(p.deps,m=>zl(m,p))});const h=t.getComponentProps(s.getValue());return fe.createElement(e,{...h,ref:a})})},Lj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function Fj(e,t){const n=new Set;return id.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new bf(e),id.dependencies=null,[e,n]}function Bj(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var Yb=Symbol.for("AnimatedComponent"),zj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new bf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=Gb(a)||"Anonymous";return pe.str(a)?a=o[a]||(o[a]=qb(a,i)):a=a[Yb]||(a[Yb]=qb(a,i)),a.displayName=`Animated(${s})`,a};return Vr(e,(a,s)=>{pe.arr(e)&&(s=Gb(a)),o[s]=o(a)}),{animated:o}},Gb=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function zn(e,...t){return pe.fun(e)?e(...t):e}var ml=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Pn(e).includes(t))),YC=(e,t)=>pe.obj(e)?t&&e[t]:e,GC=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Wj=e=>e,yf=(e,t=Wj)=>{let n=Uj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);pe.und(o)||(r[i]=o)}return r},Uj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Hj={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 Vj(e){const t={};let n=0;if(Vr(e,(r,i)=>{Hj[i]||(t[i]=r,n++)}),n)return t}function I0(e){const t=Vj(e);if(t){const n={to:t};return Vr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ul(e){return e=Bn(e),pe.arr(e)?e.map(Ul):mf(e)?$r.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ZC(e){for(const t in e)return!0;return!1}function Dm(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function Im(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function XC(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var KC={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}},jm={...KC.default,mass:1,damping:1,easing:_j.linear,clamp:!1},qj=class{constructor(){this.velocity=0,Object.assign(this,jm)}};function Yj(e,t,n){n&&(n={...n},Zb(n,t),t={...n,...t}),Zb(e,t),Object.assign(e,t);for(const a in jm)e[a]==null&&(e[a]=jm[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return pe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function Zb(e,t){if(!pe.und(t.decay))e.duration=void 0;else{const n=!pe.und(t.tension)||!pe.und(t.friction);(n||!pe.und(t.frequency)||!pe.und(t.damping)||!pe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Xb=[],Gj=class{constructor(){this.changed=!1,this.values=Xb,this.toValues=null,this.fromValues=Xb,this.config=new qj,this.immediate=!1}};function JC(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=ml(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{pe.und(n.pause)||(i.paused=ml(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||ml(p,t)),l=zn(n.delay||0,t),p?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-rt.now()}function f(){l>0&&!$r.skipAnimation?(i.delayed=!0,c=rt.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(p){s(p)}}})}var j0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Na(e.get()):t.every(n=>n.noop)?QC(e.get()):xr(e.get(),t.every(n=>n.finished)),QC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Na=e=>({value:e,cancelled:!0,finished:!1});function e3(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=yf(t,(g,x)=>x==="onRest"?void 0:g);let u,d;const f=new Promise((g,x)=>(u=g,d=x)),h=g=>{const x=i<=(n.cancelId||0)&&Na(r)||i!==n.asyncId&&xr(r,!1);if(x)throw g.result=x,d(g),g},p=(g,x)=>{const _=new Kb,w=new Jb;return(async()=>{if($r.skipAnimation)throw Hl(n),w.result=xr(r,!1),d(w),w;h(_);const C=pe.obj(g)?{...g}:{...x,to:g};C.parentId=i,Vr(c,(S,M)=>{pe.und(C[M])&&(C[M]=S)});const b=await r.start(C);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()};let m;if($r.skipAnimation)return Hl(n),xr(r,!1);try{let g;pe.arr(e)?g=(async x=>{for(const _ of x)await p(_)})(e):g=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([g.then(u),f]),m=xr(r.get(),!0,!1)}catch(g){if(g instanceof Kb)m=g.result;else if(g instanceof Jb)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return pe.fun(a)&&rt.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Hl(e,t){hl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kb=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.")}},Jb=class extends Error{constructor(){super("SkipAnimationSignal")}},Pm=e=>e instanceof P0,Zj=1,P0=class extends LC{constructor(){super(...arguments),this.id=Zj++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Pr(this);return e&&e.getValue()}to(...e){return $r.to(this,e)}interpolate(...e){return Oj(),$r.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){Bl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ff.sort(this),Bl(this,{type:"priority",parent:this,priority:e})}},Ho=Symbol.for("SpringPhase"),t3=1,Nm=2,Lm=4,up=e=>(e[Ho]&t3)>0,Di=e=>(e[Ho]&Nm)>0,Hs=e=>(e[Ho]&Lm)>0,Qb=(e,t)=>t?e[Ho]|=Nm|t3:e[Ho]&=~Nm,ey=(e,t)=>t?e[Ho]|=Lm:e[Ho]&=~Lm,Xj=class extends P0{constructor(e,t){if(super(),this.animation=new Gj,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,!pe.und(e)||!pe.und(t)){const n=pe.obj(e)?{...e}:{...t,from:e};pe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Di(this)||this._state.asyncTo)||Hs(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=Pr(this);return e instanceof vf?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return up(this)}get isAnimating(){return Di(this)}get isPaused(){return Hs(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=gf(r.to);!a&&ar(r.to)&&(i=Pn(Bn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==rd?1:a?a[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const m=r.fromValues[u],g=c.v0!=null?c.v0:c.v0=pe.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const _=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(o.duration))if(o.decay){const w=o.decay===!0?.998:o.decay,C=Math.exp(-(1-w)*p);h=m+g/(1-w)*(1-C),f=Math.abs(c.lastPosition-h)<=_,x=g*C}else{x=c.lastVelocity==null?g:c.lastVelocity;const w=o.restVelocity||_/10,C=o.clamp?0:o.bounce,b=!pe.und(C),S=m==d?c.v0>0:m<d;let M,k=!1;const $=1,R=Math.ceil(e/$);for(let T=0;T<R&&(M=Math.abs(x)>w,!(!M&&(f=Math.abs(d-h)<=_,f)));++T){b&&(k=h==d||h>d==S,k&&(x=-x*C,h=d));const E=-o.tension*1e-6*(h-d),A=-o.friction*.001*x,I=(E+A)/o.mass;x=x+I*$,h=h+x*$}}else{let w=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,p=c.elapsedTime+=e)),w=(o.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),h=m+o.easing(w)*(d-m),x=(h-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,o.round)&&(n=!0)});const s=Pr(this),l=s.getValue();if(t){const c=Bn(r.to);(l!==c||n)&&!o.decay?(s.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Di(this)){const{to:e,config:t}=this.animation;rt.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 pe.und(e)?(n=this.queue||[],this.queue=[]):n=[pe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>j0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Hl(this._state,e&&this._lastCallId),rt.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=pe.obj(n)?n[t]:n,(n==null||Dm(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return up(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),pe.und(r)?Pr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yf(e,(a,s)=>/^on/.test(s)?YC(a,n):a)),ny(this,e,"onProps"),qs(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 o=this._state;return JC(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Hs(this)||(ey(this,!0),ll(o.pauseQueue),qs(this,"onPause",xr(this,Vs(this,this.animation.to)),this))},resume:()=>{Hs(this)&&(ey(this,!1),Di(this)&&this._resume(),ll(o.resumeQueue),qs(this,"onResume",xr(this,Vs(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=n3(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Na(this));const r=!pe.und(e.to),i=!pe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Na(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||pe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!si(d,c);f&&(s.from=d),d=Bn(d);const h=!si(u,l);h&&this._focus(u);const p=Dm(t.to),{config:m}=s,{decay:g,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&Yj(m,zn(t.config,o),t.config!==a.config?zn(a.config,o):void 0);let _=Pr(this);if(!_||pe.und(u))return n(xr(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&ml(t.reset,o),C=w?d:this.get(),b=Ul(u),S=pe.num(b)||pe.arr(b)||mf(b),M=!p&&(!S||ml(a.immediate||t.immediate,o));if(h){const T=Rm(u);if(T!==_.constructor)if(M)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${T.name}, as the "to" prop suggests`)}const k=_.constructor;let $=ar(u),R=!1;if(!$){const T=w||!up(this)&&f;(h||T)&&(R=si(Ul(C),b),$=!R),(!si(s.immediate,M)&&!M||!si(m.decay,g)||!si(m.velocity,x))&&($=!0)}if(R&&Di(this)&&(s.changed&&!w?$=!0:$||this._stop(l)),!p&&(($||ar(l))&&(s.values=_.getPayload(),s.toValues=ar(u)?null:k==rd?[1]:Pn(b)),s.immediate!=M&&(s.immediate=M,!M&&!w&&this._set(l)),$)){const{onRest:T}=s;Xe(Jj,A=>ny(this,t,A));const E=xr(this,Vs(this,l));ll(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var A;s.changed=!w,T==null||T(E,this),w?zn(a.onRest,E):(A=s.onStart)==null||A.call(s,E,this)})}w&&this._set(C),p?n(e3(t.to,t,this._state,this)):$?this._start():Di(this)&&!h?this._pendingCalls.add(n):n(QC(C))}_focus(e){const t=this.animation;e!==t.to&&(Hb(this)&&this._detach(),t.to=e,Hb(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ar(t)&&(vs(t,this),Pm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ar(e)&&zl(e,this)}_set(e,t=!0){const n=Bn(e);if(!pe.und(n)){const r=Pr(this);if(!r||!si(n,r.getValue())){const i=Rm(n);!r||r.constructor!=i?D0(this,i.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return Pr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,qs(this,"onStart",xr(this,Vs(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zn(this.animation.onChange,e,this)),zn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Pr(this).reset(Bn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Di(this)||(Qb(this,!0),Hs(this)||this._resume())}_resume(){$r.skipAnimation?this.finish():ff.start(this)}_stop(e,t){if(Di(this)){Qb(this,!1);const n=this.animation;Xe(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Bl(this,{type:"idle",parent:this});const r=t?Na(this.get()):xr(this.get(),Vs(this,e??n.to));ll(this._pendingCalls,r),n.changed&&(n.changed=!1,qs(this,"onRest",r,this))}}};function Vs(e,t){const n=Ul(t),r=Ul(e.get());return si(r,n)}function n3(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&I0(r),o=(i||e).reverse,a=!i||i.reset;return Vl({...e,loop:t,default:!1,pause:void 0,to:!o||Dm(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Vl(e){const{to:t,from:n}=e=I0(e),r=new Set;return pe.obj(t)&&ty(t,r),pe.obj(n)&&ty(n,r),e.keys=r.size?Array.from(r):null,e}function Kj(e){const t=Vl(e);return pe.und(t.default)&&(t.default=yf(t)),t}function ty(e,t){Vr(e,(n,r)=>n!=null&&t.add(r))}var Jj=["onStart","onRest","onChange","onPause","onResume"];function ny(e,t,n){e.animation[n]=t[n]!==GC(t,n)?YC(t[n],e.key):void 0}function qs(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var Qj=["onStart","onChange","onRest"],eP=1,r3=class{constructor(e,t){this.id=eP++,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];pe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Vl(e)),this}start(e){let{queue:t}=this;return e?t=Pn(e).map(Vl):this.queue=[],this._flush?this._flush(this,t):(l3(this,t),Fm(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Xe(Pn(t),r=>n[r].stop(!!e))}else Hl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(pe.und(e))this.start({pause:!0});else{const t=this.springs;Xe(Pn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Xe(Pn(e),n=>t[n].resume())}return this}each(e){Vr(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,hl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&hl(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,hl(n,([s,l])=>{l.value=a,s(l,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;rt.onFrame(this._onFrame)}};function Fm(e,t){return Promise.all(t.map(n=>i3(e,n))).then(n=>j0(e,n))}async function i3(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=pe.arr(i)||pe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Xe(Qj,m=>{const g=t[m];if(pe.fun(g)){const x=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=x.get(g);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(g,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ll(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||GC(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(JC(++e._lastAsyncId,{props:t,state:d,actions:{pause:Em,resume:Em,start(m,g){h?(Hl(d,e._lastAsyncId),g(Na(e))):(m.onRest=s,g(e3(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=j0(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){const m=n3(t,a,i);if(m)return l3(e,[m]),i3(e,m,!0)}return l&&rt.batchedUpdates(()=>l(p,e,e.item)),p}function Bm(e,t){const n={...e.springs};return t&&Xe(Pn(t),r=>{pe.und(r.keys)&&(r=Vl(r)),pe.obj(r.to)||(r={...r,to:void 0}),s3(n,r,i=>a3(i))}),o3(e,n),n}function o3(e,t){Vr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,vs(n,e))})}function a3(e,t){const n=new Xj;return n.key=e,t&&vs(n,t),n}function s3(e,t,n){t.keys&&Xe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function l3(e,t){Xe(t,n=>{s3(e.springs,n,r=>a3(r,e))})}var c3=fe.createContext({pause:!1,immediate:!1}),u3=()=>{const e=[],t=function(r){Rj();const i=[];return Xe(e,(o,a)=>{if(pe.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.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 Xe(e,r=>r.pause(...arguments)),this},t.resume=function(){return Xe(e,r=>r.resume(...arguments)),this},t.set=function(r){Xe(e,(i,o)=>{const a=pe.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Xe(e,(o,a)=>{if(pe.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return Xe(e,r=>r.stop(...arguments)),this},t.update=function(r){return Xe(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return pe.fun(r)?r(o,i):r};return t._getProps=n,t};function tP(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?u3():void 0,[]),o=v.useRef(0),a=A0(),s=v.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=Bm(x,_);return o.current>0&&!s.queue.length&&!Object.keys(w).some(b=>!x.springs[b])?Fm(x,_):new Promise(b=>{o3(x,w),s.queue.push(()=>{b(Fm(x,_))}),a()})}}),[]),l=v.useRef([...s.ctrls]),c=v.useRef([]),u=Am(e)||0;v.useMemo(()=>{Xe(l.current.slice(e,u),x=>{Im(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),v.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const C=l.current[w]||(l.current[w]=new r3(null,s.flush)),b=r?r(w,C):t[w];b&&(c.current[w]=Kj(b))}}const f=l.current.map((x,_)=>Bm(x,c.current[_])),h=v.useContext(c3),p=Am(h),m=h!==p&&ZC(h);$o(()=>{o.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Xe(x,_=>_())),Xe(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:h});const C=c.current[w];C&&(XC(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),R0(()=>()=>{Xe(s.ctrls,x=>x.stop(!0))});const g=f.map(x=>({...x}));return i?[g,i]:g}function Kr(e,t){const n=pe.fun(e),[[r],i]=tP(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function ea(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=v.useMemo(()=>r||arguments.length==3?u3():void 0,[]),h=Pn(e),p=[],m=v.useRef(null),g=i?null:m.current;$o(()=>{m.current=p}),R0(()=>(Xe(p,I=>{f==null||f.add(I.ctrl),I.ctrl.ref=f}),()=>{Xe(m.current,I=>{I.expired&&clearTimeout(I.expirationId),Im(I.ctrl,f),I.ctrl.stop(!0)})}));const x=rP(h,r?r():t,g),_=i&&m.current||[];$o(()=>Xe(_,({ctrl:I,item:j,key:D})=>{Im(I,f),zn(c,j,D)}));const w=[];if(g&&Xe(g,(I,j)=>{I.expired?(clearTimeout(I.expirationId),_.push(I)):(j=w[j]=x.indexOf(I.key),~j&&(p[j]=I))}),Xe(h,(I,j)=>{p[j]||(p[j]={key:x[j],item:I,phase:"mount",ctrl:new r3},p[j].ctrl.item=I)}),w.length){let I=-1;const{leave:j}=r?r():t;Xe(w,(D,O)=>{const L=g[O];~D?(I=p.indexOf(L),p[I]={...L,item:h[D]}):j&&p.splice(++I,0,L)})}pe.fun(o)&&p.sort((I,j)=>o(I.item,j.item));let C=-a;const b=A0(),S=yf(t),M=new Map,k=v.useRef(new Map),$=v.useRef(!1);Xe(p,(I,j)=>{const D=I.key,O=I.phase,L=r?r():t;let z,N;const H=zn(L.delay||0,D);if(O=="mount")z=L.enter,N="enter";else{const X=x.indexOf(D)<0;if(O!="leave")if(X)z=L.leave,N="leave";else if(z=L.update)N="update";else return;else if(!X)z=L.enter,N="enter";else return}if(z=zn(z,I.item,j),z=pe.obj(z)?I0(z):{to:z},!z.config){const X=d||S.config;z.config=zn(X,I.item,j,N)}C+=a;const Y={...S,delay:H+C,ref:u,immediate:L.immediate,reset:!1,...z};if(N=="enter"&&pe.und(Y.from)){const X=r?r():t,J=pe.und(X.initial)||g?X.from:X.initial;Y.from=zn(J,I.item,j)}const{onResolve:q}=Y;Y.onResolve=X=>{zn(q,X);const J=m.current,ee=J.find(W=>W.key===D);if(ee&&!(X.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const W=J.every(F=>F.ctrl.idle);if(ee.phase=="leave"){const F=zn(s,ee.item);if(F!==!1){const B=F===!0?0:F;if(ee.expired=!0,!W&&B>0){B<=2147483647&&(ee.expirationId=setTimeout(b,B));return}}}W&&J.some(F=>F.expired)&&(k.current.delete(ee),l&&($.current=!0),b())}};const Z=Bm(I.ctrl,Y);N==="leave"&&l?k.current.set(I,{phase:N,springs:Z,payload:Y}):M.set(I,{phase:N,springs:Z,payload:Y})});const R=v.useContext(c3),T=Am(R),E=R!==T&&ZC(R);$o(()=>{E&&Xe(p,I=>{I.ctrl.start({default:R})})},[R]),Xe(M,(I,j)=>{if(k.current.size){const D=p.findIndex(O=>O.key===j.key);p.splice(D,1)}}),$o(()=>{Xe(k.current.size?k.current:M,({phase:I,payload:j},D)=>{const{ctrl:O}=D;D.phase=I,f==null||f.add(O),E&&I=="enter"&&O.start({default:R}),j&&(XC(O,j.ref),(O.ref||f)&&!$.current?O.update(j):(O.start(j),$.current&&($.current=!1)))})},i?void 0:n);const A=I=>fe.createElement(fe.Fragment,null,p.map((j,D)=>{const{springs:O}=M.get(j)||j.ctrl,L=I({...O},j.item,j,D),z=pe.str(j.key)||pe.num(j.key)?j.key:j.ctrl.id,N=fe.version<"19.0.0",H=(L==null?void 0:L.props)??{},Y=N?L==null?void 0:L.ref:H==null?void 0:H.ref;return L&&L.type?fe.createElement(L.type,{...H,key:z,ref:Y}):L}));return f?[A,f]:A}var nP=1;function rP(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):nP++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Pn(n)}var d3=class extends P0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ll(...t);const n=this._get(),r=Rm(n);D0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();si(t,n)||(Pr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ry(this._active)&&dp(this)}_get(){const e=pe.arr(this.source)?this.source.map(Bn):Pn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!ry(this._active)&&(this.idle=!1,Xe(gf(this),e=>{e.done=!1}),$r.skipAnimation?(rt.batchedUpdates(()=>this.advance()),dp(this)):ff.start(this))}_attach(){let e=1;Xe(Pn(this.source),t=>{ar(t)&&vs(t,this),Pm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Xe(Pn(this.source),e=>{ar(e)&&zl(e,this)}),this._active.clear(),dp(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=Pn(this.source).reduce((t,n)=>Math.max(t,(Pm(n)?n.priority:0)+1),0))}};function iP(e){return e.idle!==!1}function ry(e){return!e.size||Array.from(e).every(iP)}function dp(e){e.idle||(e.idle=!0,Xe(gf(e),t=>{t.done=!0}),Bl(e,{type:"idle",parent:e}))}var Qi=(e,...t)=>new d3(e,t);$r.assign({createStringInterpolator:zC,to:(e,t)=>new d3(e,t)});var f3=/^--/;function oP(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!f3.test(e)&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(""+t).trim()}var iy={};function aP(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:o,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:iy[f]||(iy[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=oP(f,i[f]);f3.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),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var gl={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},sP=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),lP=["Webkit","Ms","Moz","O"];gl=Object.keys(gl).reduce((e,t)=>(lP.forEach(n=>e[sP(n,t)]=e[t]),e),gl);var cP=/^(matrix|translate|scale|rotate|skew)/,uP=/^(translate)/,dP=/^(rotate|skew)/,fp=(e,t)=>pe.num(e)&&e!==0?e+t:e,Eu=(e,t)=>pe.arr(e)?e.every(n=>Eu(n,t)):pe.num(e)?e===t:parseFloat(e)===t,fP=class extends bf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>fp(s,"px")).join(",")})`,Eu(a,0)])),Vr(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(cP.test(s)){if(delete r[s],pe.und(a))return;const l=uP.test(s)?"px":dP.test(s)?"deg":"";i.push(Pn(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${fp(f,l)})`,Eu(f,0)]:c=>[`${s}(${c.map(u=>fp(u,l)).join(",")})`,Eu(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new hP(i,o)),super(r)}},hP=class extends LC{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 Xe(this.inputs,(n,r)=>{const i=Bn(n[0]),[o,a]=this.transforms[r](pe.arr(i)?i:n.map(Bn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Xe(this.inputs,t=>Xe(t,n=>ar(n)&&vs(n,this)))}observerRemoved(e){e==0&&Xe(this.inputs,t=>Xe(t,n=>ar(n)&&zl(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Bl(this,e)}},pP=["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"];$r.assign({batchedUpdates:Un.unstable_batchedUpdates,createStringInterpolator:zC,colors:uj});var mP=zj(pP,{applyAnimatedValues:aP,createAnimatedStyle:e=>new fP(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ht=mP.animated;function gP(){this.__data__=[],this.size=0}var vP=gP;function bP(e,t){return e===t||e!==e&&t!==t}var Ec=bP,yP=Ec;function xP(e,t){for(var n=e.length;n--;)if(yP(e[n][0],t))return n;return-1}var xf=xP,wP=xf,_P=Array.prototype,CP=_P.splice;function SP(e){var t=this.__data__,n=wP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():CP.call(t,n,1),--this.size,!0}var TP=SP,kP=xf;function $P(e){var t=this.__data__,n=kP(t,e);return n<0?void 0:t[n][1]}var MP=$P,EP=xf;function OP(e){return EP(this.__data__,e)>-1}var AP=OP,RP=xf;function DP(e,t){var n=this.__data__,r=RP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IP=DP,jP=vP,PP=TP,NP=MP,LP=AP,FP=IP;function bs(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])}}bs.prototype.clear=jP;bs.prototype.delete=PP;bs.prototype.get=NP;bs.prototype.has=LP;bs.prototype.set=FP;var wf=bs,BP=wf;function zP(){this.__data__=new BP,this.size=0}var WP=zP;function UP(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var HP=UP;function VP(e){return this.__data__.get(e)}var qP=VP;function YP(e){return this.__data__.has(e)}var GP=YP,ZP=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,h3=ZP,XP=h3,KP=typeof self=="object"&&self&&self.Object===Object&&self,JP=XP||KP||Function("return this")(),Jr=JP,QP=Jr,eN=QP.Symbol,ys=eN,oy=ys,p3=Object.prototype,tN=p3.hasOwnProperty,nN=p3.toString,Ys=oy?oy.toStringTag:void 0;function rN(e){var t=tN.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var r=!0}catch{}var i=nN.call(e);return r&&(t?e[Ys]=n:delete e[Ys]),i}var iN=rN,oN=Object.prototype,aN=oN.toString;function sN(e){return aN.call(e)}var lN=sN,ay=ys,cN=iN,uN=lN,dN="[object Null]",fN="[object Undefined]",sy=ay?ay.toStringTag:void 0;function hN(e){return e==null?e===void 0?fN:dN:sy&&sy in Object(e)?cN(e):uN(e)}var ki=hN;function pN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=pN,mN=ki,gN=Qr,vN="[object AsyncFunction]",bN="[object Function]",yN="[object GeneratorFunction]",xN="[object Proxy]";function wN(e){if(!gN(e))return!1;var t=mN(e);return t==bN||t==yN||t==vN||t==xN}var _f=wN;const N0=nn(_f);var _N=Jr,CN=_N["__core-js_shared__"],SN=CN,hp=SN,ly=function(){var e=/[^.]+$/.exec(hp&&hp.keys&&hp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function TN(e){return!!ly&&ly in e}var kN=TN,$N=Function.prototype,MN=$N.toString;function EN(e){if(e!=null){try{return MN.call(e)}catch{}try{return e+""}catch{}}return""}var m3=EN,ON=_f,AN=kN,RN=Qr,DN=m3,IN=/[\\^$.*+?()[\]{}|]/g,jN=/^\[object .+?Constructor\]$/,PN=Function.prototype,NN=Object.prototype,LN=PN.toString,FN=NN.hasOwnProperty,BN=RegExp("^"+LN.call(FN).replace(IN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zN(e){if(!RN(e)||AN(e))return!1;var t=ON(e)?BN:jN;return t.test(DN(e))}var WN=zN;function UN(e,t){return e==null?void 0:e[t]}var HN=UN,VN=WN,qN=HN;function YN(e,t){var n=qN(e,t);return VN(n)?n:void 0}var ta=YN,GN=ta,ZN=Jr,XN=GN(ZN,"Map"),L0=XN,KN=ta,JN=KN(Object,"create"),Cf=JN,cy=Cf;function QN(){this.__data__=cy?cy(null):{},this.size=0}var eL=QN;function tL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nL=tL,rL=Cf,iL="__lodash_hash_undefined__",oL=Object.prototype,aL=oL.hasOwnProperty;function sL(e){var t=this.__data__;if(rL){var n=t[e];return n===iL?void 0:n}return aL.call(t,e)?t[e]:void 0}var lL=sL,cL=Cf,uL=Object.prototype,dL=uL.hasOwnProperty;function fL(e){var t=this.__data__;return cL?t[e]!==void 0:dL.call(t,e)}var hL=fL,pL=Cf,mL="__lodash_hash_undefined__";function gL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pL&&t===void 0?mL:t,this}var vL=gL,bL=eL,yL=nL,xL=lL,wL=hL,_L=vL;function xs(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])}}xs.prototype.clear=bL;xs.prototype.delete=yL;xs.prototype.get=xL;xs.prototype.has=wL;xs.prototype.set=_L;var CL=xs,uy=CL,SL=wf,TL=L0;function kL(){this.size=0,this.__data__={hash:new uy,map:new(TL||SL),string:new uy}}var $L=kL;function ML(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var EL=ML,OL=EL;function AL(e,t){var n=e.__data__;return OL(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sf=AL,RL=Sf;function DL(e){var t=RL(this,e).delete(e);return this.size-=t?1:0,t}var IL=DL,jL=Sf;function PL(e){return jL(this,e).get(e)}var NL=PL,LL=Sf;function FL(e){return LL(this,e).has(e)}var BL=FL,zL=Sf;function WL(e,t){var n=zL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var UL=WL,HL=$L,VL=IL,qL=NL,YL=BL,GL=UL;function ws(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])}}ws.prototype.clear=HL;ws.prototype.delete=VL;ws.prototype.get=qL;ws.prototype.has=YL;ws.prototype.set=GL;var F0=ws,ZL=wf,XL=L0,KL=F0,JL=200;function QL(e,t){var n=this.__data__;if(n instanceof ZL){var r=n.__data__;if(!XL||r.length<JL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new KL(r)}return n.set(e,t),this.size=n.size,this}var eF=QL,tF=wf,nF=WP,rF=HP,iF=qP,oF=GP,aF=eF;function _s(e){var t=this.__data__=new tF(e);this.size=t.size}_s.prototype.clear=nF;_s.prototype.delete=rF;_s.prototype.get=iF;_s.prototype.has=oF;_s.prototype.set=aF;var Tf=_s,sF=ta,lF=function(){try{var e=sF(Object,"defineProperty");return e({},"",{}),e}catch{}}(),g3=lF,dy=g3;function cF(e,t,n){t=="__proto__"&&dy?dy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var B0=cF,uF=B0,dF=Ec;function fF(e,t,n){(n!==void 0&&!dF(e[t],n)||n===void 0&&!(t in e))&&uF(e,t,n)}var v3=fF;function hF(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var pF=hF,mF=pF,gF=mF(),b3=gF,od={exports:{}};od.exports;(function(e,t){var n=Jr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(od,od.exports);var y3=od.exports,vF=Jr,bF=vF.Uint8Array,x3=bF,fy=x3;function yF(e){var t=new e.constructor(e.byteLength);return new fy(t).set(new fy(e)),t}var z0=yF,xF=z0;function wF(e,t){var n=t?xF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var w3=wF;function _F(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var _3=_F,CF=Qr,hy=Object.create,SF=function(){function e(){}return function(t){if(!CF(t))return{};if(hy)return hy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),TF=SF;function kF(e,t){return function(n){return e(t(n))}}var C3=kF,$F=C3,MF=$F(Object.getPrototypeOf,Object),W0=MF,EF=Object.prototype;function OF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||EF;return e===n}var U0=OF,AF=TF,RF=W0,DF=U0;function IF(e){return typeof e.constructor=="function"&&!DF(e)?AF(RF(e)):{}}var S3=IF;function jF(e){return e!=null&&typeof e=="object"}var vr=jF,PF=ki,NF=vr,LF="[object Arguments]";function FF(e){return NF(e)&&PF(e)==LF}var BF=FF,py=BF,zF=vr,T3=Object.prototype,WF=T3.hasOwnProperty,UF=T3.propertyIsEnumerable,HF=py(function(){return arguments}())?py:function(e){return zF(e)&&WF.call(e,"callee")&&!UF.call(e,"callee")},kf=HF,VF=Array.isArray,Xn=VF,qF=9007199254740991;function YF(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qF}var H0=YF,GF=_f,ZF=H0;function XF(e){return e!=null&&ZF(e.length)&&!GF(e)}var Cs=XF,KF=Cs,JF=vr;function QF(e){return JF(e)&&KF(e)}var k3=QF,ad={exports:{}};function eB(){return!1}var tB=eB;ad.exports;(function(e,t){var n=Jr,r=tB,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(ad,ad.exports);var $f=ad.exports,nB=ki,rB=W0,iB=vr,oB="[object Object]",aB=Function.prototype,sB=Object.prototype,$3=aB.toString,lB=sB.hasOwnProperty,cB=$3.call(Object);function uB(e){if(!iB(e)||nB(e)!=oB)return!1;var t=rB(e);if(t===null)return!0;var n=lB.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$3.call(n)==cB}var V0=uB;const q0=nn(V0);var dB=ki,fB=H0,hB=vr,pB="[object Arguments]",mB="[object Array]",gB="[object Boolean]",vB="[object Date]",bB="[object Error]",yB="[object Function]",xB="[object Map]",wB="[object Number]",_B="[object Object]",CB="[object RegExp]",SB="[object Set]",TB="[object String]",kB="[object WeakMap]",$B="[object ArrayBuffer]",MB="[object DataView]",EB="[object Float32Array]",OB="[object Float64Array]",AB="[object Int8Array]",RB="[object Int16Array]",DB="[object Int32Array]",IB="[object Uint8Array]",jB="[object Uint8ClampedArray]",PB="[object Uint16Array]",NB="[object Uint32Array]",Kt={};Kt[EB]=Kt[OB]=Kt[AB]=Kt[RB]=Kt[DB]=Kt[IB]=Kt[jB]=Kt[PB]=Kt[NB]=!0;Kt[pB]=Kt[mB]=Kt[$B]=Kt[gB]=Kt[MB]=Kt[vB]=Kt[bB]=Kt[yB]=Kt[xB]=Kt[wB]=Kt[_B]=Kt[CB]=Kt[SB]=Kt[TB]=Kt[kB]=!1;function LB(e){return hB(e)&&fB(e.length)&&!!Kt[dB(e)]}var FB=LB;function BB(e){return function(t){return e(t)}}var Ss=BB,sd={exports:{}};sd.exports;(function(e,t){var n=h3,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(sd,sd.exports);var Mf=sd.exports,zB=FB,WB=Ss,my=Mf,gy=my&&my.isTypedArray,UB=gy?WB(gy):zB,Y0=UB;function HB(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var M3=HB,VB=B0,qB=Ec,YB=Object.prototype,GB=YB.hasOwnProperty;function ZB(e,t,n){var r=e[t];(!(GB.call(e,t)&&qB(r,n))||n===void 0&&!(t in e))&&VB(e,t,n)}var G0=ZB,XB=G0,KB=B0;function JB(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?KB(n,s,l):XB(n,s,l)}return n}var Ts=JB;function QB(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ez=QB,tz=9007199254740991,nz=/^(?:0|[1-9]\d*)$/;function rz(e,t){var n=typeof e;return t=t??tz,!!t&&(n=="number"||n!="symbol"&&nz.test(e))&&e>-1&&e%1==0&&e<t}var Ef=rz,iz=ez,oz=kf,az=Xn,sz=$f,lz=Ef,cz=Y0,uz=Object.prototype,dz=uz.hasOwnProperty;function fz(e,t){var n=az(e),r=!n&&oz(e),i=!n&&!r&&sz(e),o=!n&&!r&&!i&&cz(e),a=n||r||i||o,s=a?iz(e.length,String):[],l=s.length;for(var c in e)(t||dz.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lz(c,l)))&&s.push(c);return s}var E3=fz;function hz(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pz=hz,mz=Qr,gz=U0,vz=pz,bz=Object.prototype,yz=bz.hasOwnProperty;function xz(e){if(!mz(e))return vz(e);var t=gz(e),n=[];for(var r in e)r=="constructor"&&(t||!yz.call(e,r))||n.push(r);return n}var wz=xz,_z=E3,Cz=wz,Sz=Cs;function Tz(e){return Sz(e)?_z(e,!0):Cz(e)}var Oc=Tz,kz=Ts,$z=Oc;function Mz(e){return kz(e,$z(e))}var Ez=Mz,vy=v3,Oz=y3,Az=w3,Rz=_3,Dz=S3,by=kf,yy=Xn,Iz=k3,jz=$f,Pz=_f,Nz=Qr,Lz=V0,Fz=Y0,xy=M3,Bz=Ez;function zz(e,t,n,r,i,o,a){var s=xy(e,n),l=xy(t,n),c=a.get(l);if(c){vy(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=yy(l),h=!f&&jz(l),p=!f&&!h&&Fz(l);u=l,f||h||p?yy(s)?u=s:Iz(s)?u=Rz(s):h?(d=!1,u=Oz(l,!0)):p?(d=!1,u=Az(l,!0)):u=[]:Lz(l)||by(l)?(u=s,by(s)?u=Bz(s):(!Nz(s)||Pz(s))&&(u=Dz(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),vy(e,n,u)}var Wz=zz,Uz=Tf,Hz=v3,Vz=b3,qz=Wz,Yz=Qr,Gz=Oc,Zz=M3;function O3(e,t,n,r,i){e!==t&&Vz(t,function(o,a){if(i||(i=new Uz),Yz(o))qz(e,t,a,n,O3,r,i);else{var s=r?r(Zz(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Hz(e,a,s)}},Gz)}var Xz=O3;function Kz(e){return e}var Of=Kz;function Jz(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 Qz=Jz,eW=Qz,wy=Math.max;function tW(e,t,n){return t=wy(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=wy(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),eW(e,this,s)}}var A3=tW;function nW(e){return function(){return e}}var rW=nW,iW=rW,_y=g3,oW=Of,aW=_y?function(e,t){return _y(e,"toString",{configurable:!0,enumerable:!1,value:iW(t),writable:!0})}:oW,sW=aW,lW=800,cW=16,uW=Date.now;function dW(e){var t=0,n=0;return function(){var r=uW(),i=cW-(r-n);if(n=r,i>0){if(++t>=lW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fW=dW,hW=sW,pW=fW,mW=pW(hW),R3=mW,gW=Of,vW=A3,bW=R3;function yW(e,t){return bW(vW(e,t,gW),e+"")}var Z0=yW,xW=Ec,wW=Cs,_W=Ef,CW=Qr;function SW(e,t,n){if(!CW(n))return!1;var r=typeof t;return(r=="number"?wW(n)&&_W(t,n.length):r=="string"&&t in n)?xW(n[t],e):!1}var D3=SW,TW=Z0,kW=D3;function $W(e){return TW(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&kW(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var MW=$W,EW=Xz,OW=MW,AW=OW(function(e,t,n){EW(e,t,n)}),RW=AW;const I3=nn(RW);var DW=ki,IW=vr,jW="[object Symbol]";function PW(e){return typeof e=="symbol"||IW(e)&&DW(e)==jW}var Af=PW,NW=Xn,LW=Af,FW=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BW=/^\w*$/;function zW(e,t){if(NW(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||LW(e)?!0:BW.test(e)||!FW.test(e)||t!=null&&e in Object(t)}var X0=zW,j3=F0,WW="Expected a function";function K0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(WW);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(K0.Cache||j3),n}K0.Cache=j3;var UW=K0,HW=UW,VW=500;function qW(e){var t=HW(e,function(r){return n.size===VW&&n.clear(),r}),n=t.cache;return t}var YW=qW,GW=YW,ZW=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XW=/\\(\\)?/g,KW=GW(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ZW,function(n,r,i,o){t.push(i?o.replace(XW,"$1"):r||n)}),t}),JW=KW;function QW(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 Rf=QW,Cy=ys,eU=Rf,tU=Xn,nU=Af,Sy=Cy?Cy.prototype:void 0,Ty=Sy?Sy.toString:void 0;function P3(e){if(typeof e=="string")return e;if(tU(e))return eU(e,P3)+"";if(nU(e))return Ty?Ty.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rU=P3,iU=rU;function oU(e){return e==null?"":iU(e)}var N3=oU,aU=Xn,sU=X0,lU=JW,cU=N3;function uU(e,t){return aU(e)?e:sU(e,t)?[e]:lU(cU(e))}var ks=uU,dU=Af;function fU(e){if(typeof e=="string"||dU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var $s=fU,hU=ks,pU=$s;function mU(e,t){t=hU(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pU(t[n++])];return n&&n==r?e:void 0}var Ac=mU,gU=Ac;function vU(e,t,n){var r=e==null?void 0:gU(e,t);return r===void 0?n:r}var L3=vU;const qr=nn(L3);var bU=G0,yU=ks,xU=Ef,ky=Qr,wU=$s;function _U(e,t,n,r){if(!ky(e))return e;t=yU(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=wU(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=ky(u)?u:xU(t[i+1])?[]:{})}bU(s,l,c),s=s[l]}return e}var F3=_U,CU=F3;function SU(e,t,n){return e==null?e:CU(e,t,n)}var TU=SU;const cl=nn(TU);function zm(){return zm=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},zm.apply(null,arguments)}function kU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $U=["outlineWidth","outlineColor","outlineOpacity"],MU=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,kU(e,$U)},EU=["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"],OU=function(e,t){return zm({},t,e)},AU=function(e,t){var n=I3({},e,t);return EU.forEach(function(r){cl(n,r,OU(qr(n,r),n.text))}),n},B3=function(e,t){return t?I3({},e,t):e},RU={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",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}}},DU=function(e){return v.useMemo(function(){return AU(RU,e)},[e])},IU=function(e,t){return v.useMemo(function(){return B3(e,t)},[e,t])},z3=v.createContext(null),jU={},PU=function(e){var t=e.theme,n=t===void 0?jU:t,r=e.children,i=DU(n);return y.jsx(z3.Provider,{value:i,children:r})},Lt=function(){var e=v.useContext(z3);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function Vo(){return Vo=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},Vo.apply(null,arguments)}var NU=["basic","chip","container","table","tableCell","tableCellValue"],LU={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},$y=function(e,t){return"translate("+e+"px, "+t+"px)"},W3=v.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=zK(),u=c[0],d=c[1],f=v.useRef(!1),h=void 0,p=!1,m=d.width>0&&d.height>0,g=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(g-=d.width/2,x-=d.height+14):r==="right"?(g+=14,x-=d.height/2):r==="bottom"?(g-=d.width/2,x+=14):r==="left"?(g-=d.width+14,x-=d.height/2):r==="center"&&(g-=d.width/2,x-=d.height/2),h={transform:$y(g,x)},f.current||(p=!0),f.current=[g,x]);var _=Kr({to:h,config:l,immediate:!s||p}),w=o.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function(S,M){if(S==null)return{};var k={};for(var $ in S)if({}.hasOwnProperty.call(S,$)){if(M.indexOf($)!==-1)continue;k[$]=S[$]}return k}(w,NU),b=Vo({},LU,C,{transform:(t=_.transform)!=null?t:$y(g,x),opacity:_.transform?1:0});return y.jsx(Ht.div,{ref:u,style:b,children:i})});W3.displayName="TooltipWrapper";var U3=v.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:Vo({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),J0=v.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Lt(),u=ss(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[a&&y.jsx(U3,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),FU={width:"100%",borderCollapse:"collapse"},H3=v.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Lt();return i.length?(t=typeof o=="function"?o():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:Vo({},FU,a.tooltip.table),children:y.jsx("tbody",{children:i.map(function(s,l){return y.jsx("tr",{children:s.map(function(c,u){return y.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),y.jsx("div",{style:a.tooltip.container,children:t})):null});H3.displayName="TableTooltip";var Wm=v.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=v.useMemo(function(){return Vo({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Kr({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return y.jsx(Ht.line,Vo({},u,{fill:"none",style:c}))});Wm.displayName="CrosshairLine";var Um=v.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(Wm,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(Wm,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Um.displayName="Crosshair";var V3=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Hm={isVisible:!1,position:[null,null],content:null,anchor:null},q3=v.createContext(Hm),BU=function(e){var t=v.useState(Hm),n=t[0],r=t[1],i=v.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=v.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,p=h.clientX,m=h.clientY,g=(p-u.left)*f,x=(m-u.top)*f;c!=="left"&&c!=="right"||(c=g<u.width/2?"right":"left"),r({isVisible:!0,position:[g,x],anchor:c,content:s})},[e,r]),a=v.useCallback(function(){r(Hm)},[r]);return{actions:v.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},$i=function(){var e=v.useContext(V3);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},zU=function(){var e=v.useContext(q3);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},WU=function(e){return e.isVisible},UU=function(){var e=zU();return WU(e)?y.jsx(W3,{position:e.position,anchor:e.anchor,children:e.content}):null},HU=function(e){var t=e.container,n=e.children,r=BU(t),i=r.actions,o=r.state;return y.jsx(V3.Provider,{value:i,children:y.jsx(q3.Provider,{value:o,children:n})})},VU=ki,qU=Xn,YU=vr,GU="[object String]";function ZU(e){return typeof e=="string"||!qU(e)&&YU(e)&&VU(e)==GU}var XU=ZU;const KU=nn(XU);let dr;typeof window<"u"?dr=window:typeof self<"u"?dr=self:dr=global;let Vm=null,qm=null;const My=20,pp=dr.clearTimeout,Ey=dr.setTimeout,mp=dr.cancelAnimationFrame||dr.mozCancelAnimationFrame||dr.webkitCancelAnimationFrame,Oy=dr.requestAnimationFrame||dr.mozRequestAnimationFrame||dr.webkitRequestAnimationFrame;mp==null||Oy==null?(Vm=pp,qm=function(t){return Ey(t,My)}):(Vm=function([t,n]){mp(t),pp(n)},qm=function(t){const n=Oy(function(){pp(r),t()}),r=Ey(function(){mp(n),t()},My);return[n,r]});function JU(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,b=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,b.style.width=w.offsetWidth+1+"px",b.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},o=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const _=this;a(this),this.__resizeRAF__&&Vm(this.__resizeRAF__),this.__resizeRAF__=qm(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(b){b.call(_,x)}))})};let f=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<p.length;_++)if(x.style[p[_]+"AnimationName"]!==void 0){g=p[_],h="-"+g.toLowerCase()+"-",r=m[_],f=!0;break}}}n="resizeanim",t="@"+h+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=h+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const h=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',p=f.head||f.getElementsByTagName("head")[0],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=h:m.appendChild(f.createTextNode(h)),p.appendChild(m)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,m=dr.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const g=p.createElement("div");g.className="expand-trigger",g.appendChild(p.createElement("div"));const x=p.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(g),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),a(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&a(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(h)}},removeResizeListener:function(f,h){if(l)f.detachEvent("onresize",h);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(h),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",s,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class QU extends v.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},a=parseFloat(o.paddingLeft||"0"),s=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),c=parseFloat(o.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-a-s;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const h=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return h(),d},get scaledWidth(){return h(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=JU(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:h}=this.state,p={overflow:"visible"},m={};let g=!1;return i||(f===0&&(g=!0),p.height=0,m.height=f,m.scaledHeight=f),o||(h===0&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),a&&(g=!1),v.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!g&&t(m))}}function Df(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q0(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ms(){}var qo=.7,is=1/qo,La="\\s*([+-]?\\d+)\\s*",ql="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eH=/^#([0-9a-f]{3,8})$/,tH=new RegExp(`^rgb\\(${La},${La},${La}\\)$`),nH=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),rH=new RegExp(`^rgba\\(${La},${La},${La},${ql}\\)$`),iH=new RegExp(`^rgba\\(${zr},${zr},${zr},${ql}\\)$`),oH=new RegExp(`^hsl\\(${ql},${zr},${zr}\\)$`),aH=new RegExp(`^hsla\\(${ql},${zr},${zr},${ql}\\)$`),Ay={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};Df(Ms,Yl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ry,formatHex:Ry,formatHex8:sH,formatHsl:lH,formatRgb:Dy,toString:Dy});function Ry(){return this.rgb().formatHex()}function sH(){return this.rgb().formatHex8()}function lH(){return G3(this).formatHsl()}function Dy(){return this.rgb().formatRgb()}function Yl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eH.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Iy(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ou(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ou(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=tH.exec(e))?new Mn(t[1],t[2],t[3],1):(t=nH.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rH.exec(e))?ou(t[1],t[2],t[3],t[4]):(t=iH.exec(e))?ou(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oH.exec(e))?Ny(t[1],t[2]/100,t[3]/100,1):(t=aH.exec(e))?Ny(t[1],t[2]/100,t[3]/100,t[4]):Ay.hasOwnProperty(e)?Iy(Ay[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function Iy(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function ou(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function Y3(e){return e instanceof Ms||(e=Yl(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function os(e,t,n,r){return arguments.length===1?Y3(e):new Mn(e,t,n,r??1)}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Df(Mn,os,Q0(Ms,{brighter(e){return e=e==null?is:Math.pow(is,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(jo(this.r),jo(this.g),jo(this.b),ld(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:jy,formatHex:jy,formatHex8:cH,formatRgb:Py,toString:Py}));function jy(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}`}function cH(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}${Mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Py(){const e=ld(this.opacity);return`${e===1?"rgb(":"rgba("}${jo(this.r)}, ${jo(this.g)}, ${jo(this.b)}${e===1?")":`, ${e})`}`}function ld(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mo(e){return e=jo(e),(e<16?"0":"")+e.toString(16)}function Ny(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,n,r)}function G3(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof Ms||(e=Yl(e)),!e)return new wr;if(e instanceof wr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new wr(a,s,l,e.opacity)}function uH(e,t,n,r){return arguments.length===1?G3(e):new wr(e,t,n,r??1)}function wr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Df(wr,uH,Q0(Ms,{brighter(e){return e=e==null?is:Math.pow(is,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new wr(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 Mn(gp(e>=240?e-240:e+120,i,r),gp(e,i,r),gp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wr(Ly(this.h),au(this.s),au(this.l),ld(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=ld(this.opacity);return`${e===1?"hsl(":"hsla("}${Ly(this.h)}, ${au(this.s)*100}%, ${au(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ly(e){return e=(e||0)%360,e<0?e+360:e}function au(e){return Math.max(0,Math.min(1,e||0))}function gp(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 dH=Math.PI/180,fH=180/Math.PI;var Z3=-.14861,ev=1.78277,tv=-.29227,If=-.90649,Gl=1.97294,Fy=Gl*If,By=Gl*ev,zy=ev*tv-If*Z3;function hH(e){if(e instanceof Po)return new Po(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=Y3(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(zy*r+Fy*t-By*n)/(zy+Fy-By),o=r-i,a=(Gl*(n-i)-tv*o)/If,s=Math.sqrt(a*a+o*o)/(Gl*i*(1-i)),l=s?Math.atan2(a,o)*fH-120:NaN;return new Po(l<0?l+360:l,s,i,e.opacity)}function Yr(e,t,n,r){return arguments.length===1?hH(e):new Po(e,t,n,r??1)}function Po(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Df(Po,Yr,Q0(Ms,{brighter(e){return e=e==null?is:Math.pow(is,e),new Po(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new Po(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*dH,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Mn(255*(t+n*(Z3*r+ev*i)),255*(t+n*(tv*r+If*i)),255*(t+n*(Gl*r)),this.opacity)}}));function pH(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function mH(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],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return pH((n-r/t)*t,a,i,o,s)}}const jf=e=>()=>e;function X3(e,t){return function(n){return e+n*t}}function gH(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 vH(e,t){var n=t-e;return n?X3(e,n>180||n<-180?n-360*Math.round(n/360):n):jf(isNaN(e)?t:e)}function bH(e){return(e=+e)==1?Fa:function(t,n){return n-t?gH(t,n,e):jf(isNaN(t)?n:t)}}function Fa(e,t){var n=t-e;return n?X3(e,n):jf(isNaN(e)?t:e)}const Wy=function e(t){var n=bH(t);function r(i,o){var a=n((i=os(i)).r,(o=os(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=Fa(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function yH(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=os(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var xH=yH(mH);function wH(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function _H(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function CH(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=nv(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function SH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Zl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function TH(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]=nv(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ym=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vp=new RegExp(Ym.source,"g");function kH(e){return function(){return e}}function $H(e){return function(t){return e(t)+""}}function K3(e,t){var n=Ym.lastIndex=vp.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Ym.exec(e))&&(i=vp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Zl(r,i)})),n=vp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?$H(l[0].x):kH(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function nv(e,t){var n=typeof t,r;return t==null||n==="boolean"?jf(t):(n==="number"?Zl:n==="string"?(r=Yl(t))?(t=r,Wy):K3:t instanceof Yl?Wy:t instanceof Date?SH:_H(t)?wH:Array.isArray(t)?CH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?TH:Zl)(e,t)}function J3(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Q3(e){return function t(n){n=+n;function r(i,o){var a=e((i=Yr(i)).h,(o=Yr(o)).h),s=Fa(i.s,o.s),l=Fa(i.l,o.l),c=Fa(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}Q3(vH);var rv=Q3(Fa),MH="__lodash_hash_undefined__";function EH(e){return this.__data__.set(e,MH),this}var OH=EH;function AH(e){return this.__data__.has(e)}var RH=AH,DH=F0,IH=OH,jH=RH;function cd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new DH;++t<n;)this.add(e[t])}cd.prototype.add=cd.prototype.push=IH;cd.prototype.has=jH;var iv=cd;function PH(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var NH=PH;function LH(e){return e!==e}var FH=LH;function BH(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var zH=BH,WH=NH,UH=FH,HH=zH;function VH(e,t,n){return t===t?HH(e,t,n):WH(e,UH,n)}var qH=VH,YH=qH;function GH(e,t){var n=e==null?0:e.length;return!!n&&YH(e,t,0)>-1}var eS=GH;function ZH(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 tS=ZH;function XH(e,t){return e.has(t)}var ov=XH,KH=iv,JH=eS,QH=tS,eV=Rf,tV=Ss,nV=ov,rV=200;function iV(e,t,n,r){var i=-1,o=JH,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=eV(t,tV(n))),r?(o=QH,a=!1):t.length>=rV&&(o=nV,a=!1,t=new KH(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var oV=iV,aV=oV,sV=Z0,lV=k3,cV=sV(function(e,t){return lV(e)?aV(e,t):[]}),uV=cV;const nS=nn(uV);function yt(e){return function(){return e}}const Uy=Math.abs,Sn=Math.atan2,po=Math.cos,dV=Math.max,bp=Math.min,Ir=Math.sin,Ra=Math.sqrt,kn=1e-12,Xl=Math.PI,ud=Xl/2,Ou=2*Xl;function fV(e){return e>1?0:e<-1?Xl:Math.acos(e)}function Hy(e){return e>=1?ud:e<=-1?-ud:Math.asin(e)}const Gm=Math.PI,Zm=2*Gm,xo=1e-6,hV=Zm-xo;function rS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function pV(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rS;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let mV=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rS:pV(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,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-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>xo)if(!(Math.abs(d*l-c*u)>xo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=i-s,m=l*l+c*c,g=h*h+p*p,x=Math.sqrt(m),_=Math.sqrt(f),w=o*Math.tan((Gm-Math.acos((m+f-g)/(2*x*_)))/2),C=w/_,b=w/x;Math.abs(C-1)>xo&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*h>u*p)},${this._x1=t+b*l},${this._y1=n+b*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>xo||Math.abs(this._y1-u)>xo)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Zm+Zm),f>hV?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>xo&&this._append`A${r},${r},0,${+(f>=Gm)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}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 av(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 mV(t)}function gV(e){return e.innerRadius}function vV(e){return e.outerRadius}function bV(e){return e.startAngle}function yV(e){return e.endAngle}function xV(e){return e&&e.padAngle}function wV(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<kn))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function su(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/Ra(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,m=r+d,g=(f+p)/2,x=(h+m)/2,_=p-f,w=m-h,C=_*_+w*w,b=i-o,S=f*m-p*h,M=(w<0?-1:1)*Ra(dV(0,b*b*C-S*S)),k=(S*w-_*M)/C,$=(-S*_-w*M)/C,R=(S*w+_*M)/C,T=(-S*_+w*M)/C,E=k-g,A=$-x,I=R-g,j=T-x;return E*E+A*A>I*I+j*j&&(k=R,$=T),{cx:k,cy:$,x01:-u,y01:-d,x11:k*(i/b-1),y11:$*(i/b-1)}}function _V(){var e=gV,t=vV,n=yt(0),r=null,i=bV,o=yV,a=xV,s=null,l=av(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-ud,m=o.apply(this,arguments)-ud,g=Uy(m-p),x=m>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>kn))s.moveTo(0,0);else if(g>Ou-kn)s.moveTo(h*po(p),h*Ir(p)),s.arc(0,0,h,p,m,!x),f>kn&&(s.moveTo(f*po(m),f*Ir(m)),s.arc(0,0,f,m,p,x));else{var _=p,w=m,C=p,b=m,S=g,M=g,k=a.apply(this,arguments)/2,$=k>kn&&(r?+r.apply(this,arguments):Ra(f*f+h*h)),R=bp(Uy(h-f)/2,+n.apply(this,arguments)),T=R,E=R,A,I;if($>kn){var j=Hy($/f*Ir(k)),D=Hy($/h*Ir(k));(S-=j*2)>kn?(j*=x?1:-1,C+=j,b-=j):(S=0,C=b=(p+m)/2),(M-=D*2)>kn?(D*=x?1:-1,_+=D,w-=D):(M=0,_=w=(p+m)/2)}var O=h*po(_),L=h*Ir(_),z=f*po(b),N=f*Ir(b);if(R>kn){var H=h*po(w),Y=h*Ir(w),q=f*po(C),Z=f*Ir(C),X;if(g<Xl)if(X=wV(O,L,q,Z,H,Y,z,N)){var J=O-X[0],ee=L-X[1],W=H-X[0],F=Y-X[1],B=1/Ir(fV((J*W+ee*F)/(Ra(J*J+ee*ee)*Ra(W*W+F*F)))/2),V=Ra(X[0]*X[0]+X[1]*X[1]);T=bp(R,(f-V)/(B-1)),E=bp(R,(h-V)/(B+1))}else T=E=0}M>kn?E>kn?(A=su(q,Z,O,L,h,E,x),I=su(H,Y,z,N,h,E,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),E<R?s.arc(A.cx,A.cy,E,Sn(A.y01,A.x01),Sn(I.y01,I.x01),!x):(s.arc(A.cx,A.cy,E,Sn(A.y01,A.x01),Sn(A.y11,A.x11),!x),s.arc(0,0,h,Sn(A.cy+A.y11,A.cx+A.x11),Sn(I.cy+I.y11,I.cx+I.x11),!x),s.arc(I.cx,I.cy,E,Sn(I.y11,I.x11),Sn(I.y01,I.x01),!x))):(s.moveTo(O,L),s.arc(0,0,h,_,w,!x)):s.moveTo(O,L),!(f>kn)||!(S>kn)?s.lineTo(z,N):T>kn?(A=su(z,N,H,Y,f,-T,x),I=su(O,L,q,Z,f,-T,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),T<R?s.arc(A.cx,A.cy,T,Sn(A.y01,A.x01),Sn(I.y01,I.x01),!x):(s.arc(A.cx,A.cy,T,Sn(A.y01,A.x01),Sn(A.y11,A.x11),!x),s.arc(0,0,f,Sn(A.cy+A.y11,A.cx+A.x11),Sn(I.cy+I.y11,I.cx+I.x11),x),s.arc(I.cx,I.cy,T,Sn(I.y11,I.x11),Sn(I.y01,I.x01),!x))):s.arc(0,0,f,b,C,x)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Xl/2;return[po(d)*u,Ir(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:yt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:yt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:yt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:yt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:yt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:yt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:yt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Pf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function iS(e){this._context=e}iS.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 sv(e){return new iS(e)}function oS(e){return e[0]}function aS(e){return e[1]}function lv(e,t){var n=yt(!0),r=null,i=sv,o=null,a=av(s);e=typeof e=="function"?e:e===void 0?oS:yt(e),t=typeof t=="function"?t:t===void 0?aS:yt(t);function s(l){var c,u=(l=Pf(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:yt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:yt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:yt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function CV(e,t,n){var r=null,i=yt(!0),o=null,a=sv,s=null,l=av(c);e=typeof e=="function"?e:e===void 0?oS:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?aS:yt(+n);function c(d){var f,h,p,m=(d=Pf(d)).length,g,x=!1,_,w=new Array(m),C=new Array(m);for(o==null&&(s=a(_=l())),f=0;f<=m;++f){if(!(f<m&&i(g=d[f],f,d))===x)if(x=!x)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=f-1;p>=h;--p)s.point(w[p],C[p]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(g,f,d),C[f]=+t(g,f,d),s.point(r?+r(g,f,d):w[f],n?+n(g,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return lv().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:yt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:yt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:yt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function SV(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function TV(e){return e}function kV(){var e=TV,t=SV,n=null,r=yt(0),i=yt(Ou),o=yt(0);function a(s){var l,c=(s=Pf(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(Ou,Math.max(-Ou,i.apply(this,arguments)-m)),x,_=Math.min(Math.abs(g)/c,o.apply(this,arguments)),w=_*(g<0?-1:1),C;for(l=0;l<c;++l)(C=p[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(b,S){return t(p[b],p[S])}):n!=null&&h.sort(function(b,S){return n(s[b],s[S])}),l=0,d=f?(g-c*w)/f:0;l<c;++l,m=x)u=h[l],C=p[u],x=m+(C>0?C*d:0)+w,p[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:x,padAngle:_};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:yt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:yt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:yt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:yt(+s),a):o},a}function eo(){}function dd(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 Nf(e){this._context=e}Nf.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:dd(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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $V(e){return new Nf(e)}function sS(e){this._context=e}sS.prototype={areaStart:eo,areaEnd:eo,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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MV(e){return new sS(e)}function lS(e){this._context=e}lS.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:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function EV(e){return new lS(e)}function cS(e,t){this._basis=new Nf(e),this._beta=t}cS.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],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const OV=function e(t){function n(r){return t===1?new Nf(r):new cS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function fd(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 cv(e,t){this._context=e,this._k=(1-t)/6}cv.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:fd(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:fd(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 AV=function e(t){function n(r){return new cv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function uv(e,t){this._context=e,this._k=(1-t)/6}uv.prototype={areaStart:eo,areaEnd:eo,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:fd(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 RV=function e(t){function n(r){return new uv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function dv(e,t){this._context=e,this._k=(1-t)/6}dv.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:fd(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 DV=function e(t){function n(r){return new dv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function fv(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>kn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>kn){var c=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);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function uS(e,t){this._context=e,this._alpha=t}uS.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:fv(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 IV=function e(t){function n(r){return t?new uS(r,t):new cv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function dS(e,t){this._context=e,this._alpha=t}dS.prototype={areaStart:eo,areaEnd:eo,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:fv(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 jV=function e(t){function n(r){return t?new dS(r,t):new uv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fS(e,t){this._context=e,this._alpha=t}fS.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:fv(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 PV=function e(t){function n(r){return t?new fS(r,t):new dv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function hS(e){this._context=e}hS.prototype={areaStart:eo,areaEnd:eo,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 NV(e){return new hS(e)}function Vy(e){return e<0?-1:1}function qy(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Vy(o)+Vy(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Yy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function yp(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function hd(e){this._context=e}hd.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:yp(this,this._t0,Yy(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,yp(this,Yy(this,n=qy(this,e,t)),n);break;default:yp(this,this._t0,n=qy(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function pS(e){this._context=new mS(e)}(pS.prototype=Object.create(hd.prototype)).point=function(e,t){hd.prototype.point.call(this,t,e)};function mS(e){this._context=e}mS.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function LV(e){return new hd(e)}function FV(e){return new pS(e)}function gS(e){this._context=e}gS.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=Gy(e),i=Gy(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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 Gy(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function BV(e){return new gS(e)}function Lf(e,t){this._context=e,this._t=t}Lf.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 zV(e){return new Lf(e,.5)}function WV(e){return new Lf(e,0)}function UV(e){return new Lf(e,1)}function Zy(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Xy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function HV(e,t){return e[t]}function VV(e){const t=[];return t.key=e,t}function qV(){var e=yt([]),t=Xy,n=Zy,r=HV;function i(o){var a=Array.from(e.apply(this,arguments),VV),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Pf(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:yt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:yt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Xy:typeof o=="function"?o:yt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Zy,i):n},i}function YV(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Au(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hv(e){let t,n,r;e.length!==2?(t=Au,n=(s,l)=>Au(e(s),l),r=(s,l)=>e(s)-l):(t=e===Au||e===GV?e:ZV,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function ZV(){return 0}function XV(e){return e===null?NaN:+e}const KV=hv(Au),JV=KV.right;hv(XV).center;class Ky extends Map{constructor(t,n=tq){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(Jy(this,t))}has(t){return super.has(Jy(this,t))}set(t,n){return super.set(QV(this,t),n)}delete(t){return super.delete(eq(this,t))}}function Jy({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function QV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function eq({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function tq(e){return e!==null&&typeof e=="object"?e.valueOf():e}const nq=Math.sqrt(50),rq=Math.sqrt(10),iq=Math.sqrt(2);function pd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=nq?10:o>=rq?5:o>=iq?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pd(e,t,n*2):[s,l,c]}function Xm(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?pd(t,e,n):pd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function Km(e,t,n){return t=+t,e=+e,n=+n,pd(e,t,n)[2]}function Jm(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Km(t,e,n):Km(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function oq(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,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function na(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Qy=Symbol("implicit");function Eo(){var e=new Ky,t=[],n=[],r=Qy;function i(o){let a=e.get(o);if(a===void 0){if(r!==Qy)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Ky;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Eo(t,n).unknown(r)},na.apply(i,arguments),i}function pv(){var e=Eo().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,m=h?r:i;o=(m-p)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),p+=(m-p-o*(f-l))*u,a=o*(1-l),s&&(p=Math.round(p),a=Math.round(a));var g=oq(f).map(function(x){return p+o*x});return n(h?g.reverse():g)}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 a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return pv(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},na.apply(d(),arguments)}function vS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vS(t())},e}function aq(){return vS(pv.apply(null,arguments).paddingInner(1))}function sq(e){return function(){return e}}function lq(e){return+e}var e2=[0,1];function Da(e){return e}function Qm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:sq(isNaN(t)?NaN:.5)}function cq(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function uq(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Qm(i,r),o=n(a,o)):(r=Qm(r,i),o=n(o,a)),function(s){return o(r(s))}}function dq(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Qm(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=JV(e,s,1,r)-1;return o[l](i[l](s))}}function Ff(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function mv(){var e=e2,t=e2,n=nv,r,i,o,a=Da,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Da&&(a=cq(e[0],e[f-1])),s=f>2?dq:uq,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),Zl)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,lq),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=J3,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Da,u()):a!==Da},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function bS(){return mv()(Da,Da)}function fq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function md(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 as(e){return e=md(Math.abs(e)),e?e[1]:NaN}function hq(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function pq(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var mq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kl(e){if(!(t=mq.exec(e)))throw new Error("invalid format: "+e);var t;return new gv({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]})}Kl.prototype=gv.prototype;function gv(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+""}gv.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 gq(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 yS;function vq(e,t){var n=md(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(yS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+md(e,Math.max(0,t+o-1))[0]}function t2(e,t){var n=md(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 n2={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:fq,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 t2(e*100,t)},r:t2,s:vq,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function r2(e){return e}var i2=Array.prototype.map,o2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bq(e){var t=e.grouping===void 0||e.thousands===void 0?r2:hq(i2.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+"",o=e.numerals===void 0?r2:pq(i2.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Kl(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,g=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,b=d.type;b==="n"?(_=!0,b="g"):n2[b]||(w===void 0&&(w=12),C=!0,b="g"),(g||f==="0"&&h==="=")&&(g=!0,f="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",M=m==="$"?r:/[%p]/.test(b)?a:"",k=n2[b],$=/[defgprs%]/.test(b);w=w===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(T){var E=S,A=M,I,j,D;if(b==="c")A=k(T)+A,T="";else{T=+T;var O=T<0||1/T<0;if(T=isNaN(T)?l:k(Math.abs(T),w),C&&(T=gq(T)),O&&+T==0&&p!=="+"&&(O=!1),E=(O?p==="("?p:s:p==="-"||p==="("?"":p)+E,A=(b==="s"?o2[8+yS/3]:"")+A+(O&&p==="("?")":""),$){for(I=-1,j=T.length;++I<j;)if(D=T.charCodeAt(I),48>D||D>57){A=(D===46?i+T.slice(I+1):T.slice(I))+A,T=T.slice(0,I);break}}}_&&!g&&(T=t(T,1/0));var L=E.length+T.length+A.length,z=L<x?new Array(x-L+1).join(f):"";switch(_&&g&&(T=t(z+T,z.length?x-A.length:1/0),z=""),h){case"<":T=E+T+A+z;break;case"=":T=E+z+T+A;break;case"^":T=z.slice(0,L=z.length>>1)+E+T+A+z.slice(L);break;default:T=z+E+T+A;break}return o(T)}return R.toString=function(){return d+""},R}function u(d,f){var h=c((d=Kl(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(as(f)/3)))*3,m=Math.pow(10,-p),g=o2[8+p/3];return function(x){return h(m*x)+g}}return{format:c,formatPrefix:u}}var lu,Rc,xS;yq({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function yq(e){return lu=bq(e),Rc=lu.format,xS=lu.formatPrefix,lu}function xq(e){return Math.max(0,-as(Math.abs(e)))}function wq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(as(t)/3)))*3-as(Math.abs(e)))}function _q(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,as(t)-as(e))+1}function Cq(e,t,n,r){var i=Jm(e,t,n),o;switch(r=Kl(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=wq(i,a))&&(r.precision=o),xS(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=_q(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=xq(i))&&(r.precision=o-(r.type==="%")*2);break}}return Rc(r)}function wS(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Cq(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=Km(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function gd(){var e=bS();return e.copy=function(){return Ff(e,gd())},na.apply(e,arguments),wS(e)}function _S(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function a2(e){return Math.log(e)}function s2(e){return Math.exp(e)}function Sq(e){return-Math.log(-e)}function Tq(e){return-Math.exp(-e)}function kq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $q(e){return e===10?kq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Mq(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 l2(e){return(t,n)=>-e(-t,n)}function Eq(e){const t=e(a2,s2),n=t.domain;let r=10,i,o;function a(){return i=Mq(r),o=$q(r),n()[0]<0?(i=l2(i),o=l2(o),e(Sq,Tq)):e(a2,s2),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),p,m;const g=s==null?10:+s;let x=[];if(!(r%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(m=f<0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;x.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;x.push(m)}x.length*2<g&&(x=Xm(c,u,g))}else x=Xm(f,h,Math.min(h-f,g)).map(o);return d?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Kl(l)).precision==null&&(l.trim=!0),l=Rc(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(_S(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function CS(){const e=Eq(mv()).domain([1,10]);return e.copy=()=>Ff(e,CS()).base(e.base()),na.apply(e,arguments),e}function c2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Oq(e){var t=1,n=e(c2(t),u2(t));return n.constant=function(r){return arguments.length?e(c2(t=+r),u2(t)):t},wS(n)}function SS(){var e=Oq(mv());return e.copy=function(){return Ff(e,SS()).constant(e.constant())},na.apply(e,arguments)}const xp=new Date,wp=new Date;function gn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>gn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(xp.setTime(+o),wp.setTime(+a),e(xp),e(wp),Math.floor(n(xp,wp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const vd=gn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):vd);vd.range;const pi=1e3,ur=pi*60,mi=ur*60,Ci=mi*24,vv=Ci*7,d2=Ci*30,_p=Ci*365,Oo=gn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCSeconds());Oo.range;const bv=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getMinutes());bv.range;const yv=gn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCMinutes());yv.range;const xv=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi-e.getMinutes()*ur)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());xv.range;const wv=gn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());wv.range;const _v=gn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ur)/Ci,e=>e.getDate()-1);_v.range;const TS=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ci,e=>e.getUTCDate()-1);TS.range;const kS=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ci,e=>Math.floor(e/Ci));kS.range;function ra(e){return gn(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())*ur)/vv)}const Cv=ra(0),Aq=ra(1),Rq=ra(2),Dq=ra(3),Iq=ra(4),jq=ra(5),Pq=ra(6);Cv.range;Aq.range;Rq.range;Dq.range;Iq.range;jq.range;Pq.range;function ia(e){return gn(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)/vv)}const Sv=ia(0),Nq=ia(1),Lq=ia(2),Fq=ia(3),Bq=ia(4),zq=ia(5),Wq=ia(6);Sv.range;Nq.range;Lq.range;Fq.range;Bq.range;zq.range;Wq.range;const Tv=gn(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());Tv.range;const kv=gn(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());kv.range;const Bf=gn(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());Bf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Bf.range;const zf=gn(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());zf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});zf.range;function $S(e,t,n,r,i,o){const a=[[Oo,1,pi],[Oo,5,5*pi],[Oo,15,15*pi],[Oo,30,30*pi],[o,1,ur],[o,5,5*ur],[o,15,15*ur],[o,30,30*ur],[i,1,mi],[i,3,3*mi],[i,6,6*mi],[i,12,12*mi],[r,1,Ci],[r,2,2*Ci],[n,1,vv],[t,1,d2],[t,3,3*d2],[e,1,_p]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),p=h?h.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,d){const f=Math.abs(u-c)/d,h=hv(([,,g])=>g).right(a,f);if(h===a.length)return e.every(Jm(c/_p,u/_p,d));if(h===0)return vd.every(Math.max(Jm(c,u,d),1));const[p,m]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return p.every(m)}return[s,l]}const[Uq,Hq]=$S(zf,kv,Sv,kS,wv,yv),[Vq,qq]=$S(Bf,Tv,Cv,_v,xv,bv);var Cp=new Date,Sp=new Date;function dn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return dn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Cp.setTime(+o),Sp.setTime(+a),e(Cp),e(Sp),Math.floor(n(Cp,Sp))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var Jl=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Jl.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Jl};Jl.range;var bd=1e3,Yo=6e4,yd=36e5,MS=864e5,ES=6048e5,eg=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*bd)},function(e,t){return(t-e)/bd},function(e){return e.getUTCSeconds()});eg.range;var OS=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getMinutes()});OS.range;var AS=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd-e.getMinutes()*Yo)},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getHours()});AS.range;var $v=dn(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())*Yo)/MS},function(e){return e.getDate()-1});$v.range;function oa(e){return dn(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())*Yo)/ES})}var xd=oa(0),Ql=oa(1),RS=oa(2),DS=oa(3),Go=oa(4),IS=oa(5),jS=oa(6);xd.range;Ql.range;RS.range;DS.range;Go.range;IS.range;jS.range;var PS=dn(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()});PS.range;var to=dn(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()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)})};to.range;var NS=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getUTCMinutes()});NS.range;var LS=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getUTCHours()});LS.range;var Mv=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/MS},function(e){return e.getUTCDate()-1});Mv.range;function aa(e){return dn(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)/ES})}var wd=aa(0),ec=aa(1),FS=aa(2),BS=aa(3),Zo=aa(4),zS=aa(5),WS=aa(6);wd.range;ec.range;FS.range;BS.range;Zo.range;zS.range;WS.range;var US=dn(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()});US.range;var no=dn(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()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)})};no.range;function Tp(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 kp(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 Gs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Yq(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Zs(i),u=Xs(i),d=Zs(o),f=Xs(o),h=Zs(a),p=Xs(a),m=Zs(s),g=Xs(s),x=Zs(l),_=Xs(l),w={a:O,A:L,b:z,B:N,c:null,d:v2,e:v2,f:gY,g:kY,G:MY,H:hY,I:pY,j:mY,L:HS,m:vY,M:bY,p:H,q:Y,Q:x2,s:w2,S:yY,u:xY,U:wY,V:_Y,w:CY,W:SY,x:null,X:null,y:TY,Y:$Y,Z:EY,"%":y2},C={a:q,A:Z,b:X,B:J,c:null,d:b2,e:b2,f:DY,g:UY,G:VY,H:OY,I:AY,j:RY,L:qS,m:IY,M:jY,p:ee,q:W,Q:x2,s:w2,S:PY,u:NY,U:LY,V:FY,w:BY,W:zY,x:null,X:null,y:WY,Y:HY,Z:qY,"%":y2},b={a:R,A:T,b:E,B:A,c:I,d:m2,e:m2,f:cY,g:p2,G:h2,H:g2,I:g2,j:oY,L:lY,m:iY,M:aY,p:$,q:rY,Q:dY,s:fY,S:sY,u:Jq,U:Qq,V:eY,w:Kq,W:tY,x:j,X:D,y:p2,Y:h2,Z:nY,"%":uY};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),C.x=S(n,C),C.X=S(r,C),C.c=S(t,C);function S(F,B){return function(V){var P=[],te=-1,K=0,G=F.length,ae,ne,re;for(V instanceof Date||(V=new Date(+V));++te<G;)F.charCodeAt(te)===37&&(P.push(F.slice(K,te)),(ne=f2[ae=F.charAt(++te)])!=null?ae=F.charAt(++te):ne=ae==="e"?" ":"0",(re=B[ae])&&(ae=re(V,ne)),P.push(ae),K=te+1);return P.push(F.slice(K,te)),P.join("")}}function M(F,B){return function(V){var P=Gs(1900,void 0,1),te=k(P,F,V+="",0),K,G;if(te!=V.length)return null;if("Q"in P)return new Date(P.Q);if("s"in P)return new Date(P.s*1e3+("L"in P?P.L:0));if(B&&!("Z"in P)&&(P.Z=0),"p"in P&&(P.H=P.H%12+P.p*12),P.m===void 0&&(P.m="q"in P?P.q:0),"V"in P){if(P.V<1||P.V>53)return null;"w"in P||(P.w=1),"Z"in P?(K=kp(Gs(P.y,0,1)),G=K.getUTCDay(),K=G>4||G===0?ec.ceil(K):ec(K),K=Mv.offset(K,(P.V-1)*7),P.y=K.getUTCFullYear(),P.m=K.getUTCMonth(),P.d=K.getUTCDate()+(P.w+6)%7):(K=Tp(Gs(P.y,0,1)),G=K.getDay(),K=G>4||G===0?Ql.ceil(K):Ql(K),K=$v.offset(K,(P.V-1)*7),P.y=K.getFullYear(),P.m=K.getMonth(),P.d=K.getDate()+(P.w+6)%7)}else("W"in P||"U"in P)&&("w"in P||(P.w="u"in P?P.u%7:"W"in P?1:0),G="Z"in P?kp(Gs(P.y,0,1)).getUTCDay():Tp(Gs(P.y,0,1)).getDay(),P.m=0,P.d="W"in P?(P.w+6)%7+P.W*7-(G+5)%7:P.w+P.U*7-(G+6)%7);return"Z"in P?(P.H+=P.Z/100|0,P.M+=P.Z%100,kp(P)):Tp(P)}}function k(F,B,V,P){for(var te=0,K=B.length,G=V.length,ae,ne;te<K;){if(P>=G)return-1;if(ae=B.charCodeAt(te++),ae===37){if(ae=B.charAt(te++),ne=b[ae in f2?B.charAt(te++):ae],!ne||(P=ne(F,V,P))<0)return-1}else if(ae!=V.charCodeAt(P++))return-1}return P}function $(F,B,V){var P=c.exec(B.slice(V));return P?(F.p=u.get(P[0].toLowerCase()),V+P[0].length):-1}function R(F,B,V){var P=h.exec(B.slice(V));return P?(F.w=p.get(P[0].toLowerCase()),V+P[0].length):-1}function T(F,B,V){var P=d.exec(B.slice(V));return P?(F.w=f.get(P[0].toLowerCase()),V+P[0].length):-1}function E(F,B,V){var P=x.exec(B.slice(V));return P?(F.m=_.get(P[0].toLowerCase()),V+P[0].length):-1}function A(F,B,V){var P=m.exec(B.slice(V));return P?(F.m=g.get(P[0].toLowerCase()),V+P[0].length):-1}function I(F,B,V){return k(F,t,B,V)}function j(F,B,V){return k(F,n,B,V)}function D(F,B,V){return k(F,r,B,V)}function O(F){return a[F.getDay()]}function L(F){return o[F.getDay()]}function z(F){return l[F.getMonth()]}function N(F){return s[F.getMonth()]}function H(F){return i[+(F.getHours()>=12)]}function Y(F){return 1+~~(F.getMonth()/3)}function q(F){return a[F.getUTCDay()]}function Z(F){return o[F.getUTCDay()]}function X(F){return l[F.getUTCMonth()]}function J(F){return s[F.getUTCMonth()]}function ee(F){return i[+(F.getUTCHours()>=12)]}function W(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var B=S(F+="",w);return B.toString=function(){return F},B},parse:function(F){var B=M(F+="",!1);return B.toString=function(){return F},B},utcFormat:function(F){var B=S(F+="",C);return B.toString=function(){return F},B},utcParse:function(F){var B=M(F+="",!0);return B.toString=function(){return F},B}}}var f2={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,Gq=/^%/,Zq=/[\\^$*+?|[\]().{}]/g;function Mt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Xq(e){return e.replace(Zq,"\\$&")}function Zs(e){return new RegExp("^(?:"+e.map(Xq).join("|")+")","i")}function Xs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Kq(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Jq(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qq(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function eY(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tY(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function h2(e,t,n){var r=xn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function p2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nY(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 rY(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function iY(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function m2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oY(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function g2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function aY(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sY(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lY(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cY(e,t,n){var r=xn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uY(e,t,n){var r=Gq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dY(e,t,n){var r=xn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fY(e,t,n){var r=xn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v2(e,t){return Mt(e.getDate(),t,2)}function hY(e,t){return Mt(e.getHours(),t,2)}function pY(e,t){return Mt(e.getHours()%12||12,t,2)}function mY(e,t){return Mt(1+$v.count(to(e),e),t,3)}function HS(e,t){return Mt(e.getMilliseconds(),t,3)}function gY(e,t){return HS(e,t)+"000"}function vY(e,t){return Mt(e.getMonth()+1,t,2)}function bY(e,t){return Mt(e.getMinutes(),t,2)}function yY(e,t){return Mt(e.getSeconds(),t,2)}function xY(e){var t=e.getDay();return t===0?7:t}function wY(e,t){return Mt(xd.count(to(e)-1,e),t,2)}function VS(e){var t=e.getDay();return t>=4||t===0?Go(e):Go.ceil(e)}function _Y(e,t){return e=VS(e),Mt(Go.count(to(e),e)+(to(e).getDay()===4),t,2)}function CY(e){return e.getDay()}function SY(e,t){return Mt(Ql.count(to(e)-1,e),t,2)}function TY(e,t){return Mt(e.getFullYear()%100,t,2)}function kY(e,t){return e=VS(e),Mt(e.getFullYear()%100,t,2)}function $Y(e,t){return Mt(e.getFullYear()%1e4,t,4)}function MY(e,t){var n=e.getDay();return e=n>=4||n===0?Go(e):Go.ceil(e),Mt(e.getFullYear()%1e4,t,4)}function EY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mt(t/60|0,"0",2)+Mt(t%60,"0",2)}function b2(e,t){return Mt(e.getUTCDate(),t,2)}function OY(e,t){return Mt(e.getUTCHours(),t,2)}function AY(e,t){return Mt(e.getUTCHours()%12||12,t,2)}function RY(e,t){return Mt(1+Mv.count(no(e),e),t,3)}function qS(e,t){return Mt(e.getUTCMilliseconds(),t,3)}function DY(e,t){return qS(e,t)+"000"}function IY(e,t){return Mt(e.getUTCMonth()+1,t,2)}function jY(e,t){return Mt(e.getUTCMinutes(),t,2)}function PY(e,t){return Mt(e.getUTCSeconds(),t,2)}function NY(e){var t=e.getUTCDay();return t===0?7:t}function LY(e,t){return Mt(wd.count(no(e)-1,e),t,2)}function YS(e){var t=e.getUTCDay();return t>=4||t===0?Zo(e):Zo.ceil(e)}function FY(e,t){return e=YS(e),Mt(Zo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function BY(e){return e.getUTCDay()}function zY(e,t){return Mt(ec.count(no(e)-1,e),t,2)}function WY(e,t){return Mt(e.getUTCFullYear()%100,t,2)}function UY(e,t){return e=YS(e),Mt(e.getUTCFullYear()%100,t,2)}function HY(e,t){return Mt(e.getUTCFullYear()%1e4,t,4)}function VY(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zo(e):Zo.ceil(e),Mt(e.getUTCFullYear()%1e4,t,4)}function qY(){return"+0000"}function y2(){return"%"}function x2(e){return+e}function w2(e){return Math.floor(+e/1e3)}var ya,Wf,GS,ZS,XS;YY({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 YY(e){return ya=Yq(e),Wf=ya.format,GS=ya.parse,ZS=ya.utcFormat,XS=ya.utcParse,ya}function GY(e){return new Date(e)}function ZY(e){return e instanceof Date?+e:+new Date(+e)}function Ev(e,t,n,r,i,o,a,s,l,c){var u=bS(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function b(S){return(l(S)<S?h:s(S)<S?p:a(S)<S?m:o(S)<S?g:r(S)<S?i(S)<S?x:_:n(S)<S?w:C)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,ZY)):f().map(GY)},u.ticks=function(S){var M=f();return e(M[0],M[M.length-1],S??10)},u.tickFormat=function(S,M){return M==null?b:c(M)},u.nice=function(S){var M=f();return(!S||typeof S.range!="function")&&(S=t(M[0],M[M.length-1],S??10)),S?f(_S(M,S)):u},u.copy=function(){return Ff(u,Ev(e,t,n,r,i,o,a,s,l,c))},u}function XY(){return na.apply(Ev(Vq,qq,Bf,Tv,Cv,_v,xv,bv,Oo,Wf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KY(){return na.apply(Ev(Uq,Hq,zf,kv,Sv,TS,wv,yv,Oo,ZS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ft(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 JY=ft("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),QY=ft("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),eG=ft("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),tG=ft("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),nG=ft("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),rG=ft("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),iG=ft("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),oG=ft("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),KS=ft("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),aG=ft("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Vt=e=>xH(e[e.length-1]);var Uf=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ft);const sG=Vt(Uf);var Hf=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ft);const lG=Vt(Hf);var Vf=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ft);const cG=Vt(Vf);var qf=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ft);const uG=Vt(qf);var Yf=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ft);const dG=Vt(Yf);var Gf=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ft);const fG=Vt(Gf);var Zf=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ft);const hG=Vt(Zf);var Xf=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ft);const pG=Vt(Xf);var Kf=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ft);const mG=Vt(Kf);var Jf=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ft);const gG=Vt(Jf);var Qf=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ft);const vG=Vt(Qf);var eh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ft);const bG=Vt(eh);var th=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ft);const yG=Vt(th);var nh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ft);const xG=Vt(nh);var rh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ft);const wG=Vt(rh);var ih=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ft);const _G=Vt(ih);var oh=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ft);const CG=Vt(oh);var ah=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ft);const SG=Vt(ah);var sh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ft);const TG=Vt(sh);var lh=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ft);const kG=Vt(lh);var ch=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ft);const $G=Vt(ch);var uh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ft);const MG=Vt(uh);var dh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ft);const EG=Vt(dh);var fh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ft);const OG=Vt(fh);var hh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ft);const AG=Vt(hh);var ph=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ft);const RG=Vt(ph);var mh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ft);const DG=Vt(mh);function IG(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 jG=rv(Yr(300,.5,0),Yr(-240,.5,1));var PG=rv(Yr(-100,.75,.35),Yr(80,1.5,.8)),NG=rv(Yr(260,.75,.35),Yr(80,1.5,.8)),cu=Yr();function LG(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return cu.h=360*e-100,cu.s=1.5-1.5*t,cu.l=.8-.9*t,cu+""}var uu=os(),FG=Math.PI/3,BG=Math.PI*2/3;function zG(e){var t;return e=(.5-e)*Math.PI,uu.r=255*(t=Math.sin(e))*t,uu.g=255*(t=Math.sin(e+FG))*t,uu.b=255*(t=Math.sin(e+BG))*t,uu+""}function WG(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 gh(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const UG=gh(ft("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var HG=gh(ft("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),VG=gh(ft("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),qG=gh(ft("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function YG(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var JS=YG;const De=nn(JS);var GG=Ac,ZG=F3,XG=ks;function KG(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=GG(e,a);n(s,a)&&ZG(o,XG(a,e),s)}return o}var JG=KG;function QG(e,t){return e!=null&&t in Object(e)}var eZ=QG,tZ=ks,nZ=kf,rZ=Xn,iZ=Ef,oZ=H0,aZ=$s;function sZ(e,t,n){t=tZ(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=aZ(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&oZ(i)&&iZ(a,i)&&(rZ(e)||nZ(e)))}var lZ=sZ,cZ=eZ,uZ=lZ;function dZ(e,t){return e!=null&&uZ(e,t,cZ)}var QS=dZ,fZ=JG,hZ=QS;function pZ(e,t){return fZ(e,t,function(n,r){return hZ(e,r)})}var mZ=pZ;function gZ(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ov=gZ,_2=ys,vZ=kf,bZ=Xn,C2=_2?_2.isConcatSpreadable:void 0;function yZ(e){return bZ(e)||vZ(e)||!!(C2&&e&&e[C2])}var xZ=yZ,wZ=Ov,_Z=xZ;function e6(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=_Z),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?e6(s,t-1,n,r,i):wZ(i,s):r||(i[i.length]=s)}return i}var t6=e6,CZ=t6;function SZ(e){var t=e==null?0:e.length;return t?CZ(e,1):[]}var TZ=SZ,kZ=TZ,$Z=A3,MZ=R3;function EZ(e){return MZ($Z(e,void 0,kZ),e+"")}var n6=EZ,OZ=mZ,AZ=n6,RZ=AZ(function(e,t){return e==null?{}:OZ(e,t)}),DZ=RZ;const IZ=nn(DZ);function jZ(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 PZ=jZ,NZ=iv,LZ=PZ,FZ=ov,BZ=1,zZ=2;function WZ(e,t,n,r,i,o){var a=n&BZ,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&zZ?new NZ:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(g!==void 0){if(g)continue;f=!1;break}if(h){if(!LZ(t,function(x,_){if(!FZ(h,_)&&(p===x||i(p,x,n,r,o)))return h.push(_)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var r6=WZ;function UZ(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var HZ=UZ;function VZ(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Av=VZ,S2=ys,T2=x3,qZ=Ec,YZ=r6,GZ=HZ,ZZ=Av,XZ=1,KZ=2,JZ="[object Boolean]",QZ="[object Date]",eX="[object Error]",tX="[object Map]",nX="[object Number]",rX="[object RegExp]",iX="[object Set]",oX="[object String]",aX="[object Symbol]",sX="[object ArrayBuffer]",lX="[object DataView]",k2=S2?S2.prototype:void 0,$p=k2?k2.valueOf:void 0;function cX(e,t,n,r,i,o,a){switch(n){case lX:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sX:return!(e.byteLength!=t.byteLength||!o(new T2(e),new T2(t)));case JZ:case QZ:case nX:return qZ(+e,+t);case eX:return e.name==t.name&&e.message==t.message;case rX:case oX:return e==t+"";case tX:var s=GZ;case iX:var l=r&XZ;if(s||(s=ZZ),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=KZ,a.set(e,t);var u=YZ(s(e),s(t),r,i,o,a);return a.delete(e),u;case aX:if($p)return $p.call(e)==$p.call(t)}return!1}var uX=cX,dX=Ov,fX=Xn;function hX(e,t,n){var r=t(e);return fX(e)?r:dX(r,n(e))}var i6=hX;function pX(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var o6=pX;function mX(){return[]}var a6=mX,gX=o6,vX=a6,bX=Object.prototype,yX=bX.propertyIsEnumerable,$2=Object.getOwnPropertySymbols,xX=$2?function(e){return e==null?[]:(e=Object(e),gX($2(e),function(t){return yX.call(e,t)}))}:vX,Rv=xX,wX=C3,_X=wX(Object.keys,Object),CX=_X,SX=U0,TX=CX,kX=Object.prototype,$X=kX.hasOwnProperty;function MX(e){if(!SX(e))return TX(e);var t=[];for(var n in Object(e))$X.call(e,n)&&n!="constructor"&&t.push(n);return t}var EX=MX,OX=E3,AX=EX,RX=Cs;function DX(e){return RX(e)?OX(e):AX(e)}var Dc=DX,IX=i6,jX=Rv,PX=Dc;function NX(e){return IX(e,PX,jX)}var s6=NX,M2=s6,LX=1,FX=Object.prototype,BX=FX.hasOwnProperty;function zX(e,t,n,r,i,o){var a=n&LX,s=M2(e),l=s.length,c=M2(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:BX.call(t,f)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=a;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=a?r(_,x,f,t,e,o):r(x,_,f,e,t,o);if(!(w===void 0?x===_||i(x,_,n,r,o):w)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var C=e.constructor,b=t.constructor;C!=b&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof b=="function"&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}var WX=zX,UX=ta,HX=Jr,VX=UX(HX,"DataView"),qX=VX,YX=ta,GX=Jr,ZX=YX(GX,"Promise"),XX=ZX,KX=ta,JX=Jr,QX=KX(JX,"Set"),l6=QX,eK=ta,tK=Jr,nK=eK(tK,"WeakMap"),rK=nK,tg=qX,ng=L0,rg=XX,ig=l6,og=rK,c6=ki,Es=m3,E2="[object Map]",iK="[object Object]",O2="[object Promise]",A2="[object Set]",R2="[object WeakMap]",D2="[object DataView]",oK=Es(tg),aK=Es(ng),sK=Es(rg),lK=Es(ig),cK=Es(og),wo=c6;(tg&&wo(new tg(new ArrayBuffer(1)))!=D2||ng&&wo(new ng)!=E2||rg&&wo(rg.resolve())!=O2||ig&&wo(new ig)!=A2||og&&wo(new og)!=R2)&&(wo=function(e){var t=c6(e),n=t==iK?e.constructor:void 0,r=n?Es(n):"";if(r)switch(r){case oK:return D2;case aK:return E2;case sK:return O2;case lK:return A2;case cK:return R2}return t});var vh=wo,Mp=Tf,uK=r6,dK=uX,fK=WX,I2=vh,j2=Xn,P2=$f,hK=Y0,pK=1,N2="[object Arguments]",L2="[object Array]",du="[object Object]",mK=Object.prototype,F2=mK.hasOwnProperty;function gK(e,t,n,r,i,o){var a=j2(e),s=j2(t),l=a?L2:I2(e),c=s?L2:I2(t);l=l==N2?du:l,c=c==N2?du:c;var u=l==du,d=c==du,f=l==c;if(f&&P2(e)){if(!P2(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Mp),a||hK(e)?uK(e,t,n,r,i,o):dK(e,t,l,n,r,i,o);if(!(n&pK)){var h=u&&F2.call(e,"__wrapped__"),p=d&&F2.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return o||(o=new Mp),i(m,g,n,r,o)}}return f?(o||(o=new Mp),fK(e,t,n,r,i,o)):!1}var vK=gK,bK=vK,B2=vr;function u6(e,t,n,r,i){return e===t?!0:e==null||t==null||!B2(e)&&!B2(t)?e!==e&&t!==t:bK(e,t,n,r,u6,i)}var Dv=u6,yK=Dv;function xK(e,t){return yK(e,t)}var wK=xK;const _K=nn(wK);var d6=v.createContext(),CK=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=v.useMemo(function(){var s=KU(o)?KC[o]:o;return{animate:r,config:s}},[r,o]);return y.jsx(d6.Provider,{value:a,children:t})},Fn=function(){return v.useContext(d6)},SK=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t},TK={position:"relative"},sa=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=v.useRef(null);return y.jsx(PU,{theme:n,children:y.jsx(CK,{animate:s,config:l,children:y.jsx(HU,{container:c,children:y.jsxs(SK,{condition:i,wrapper:y.jsx("div",{style:TK,ref:c}),children:[t,a&&y.jsx(UU,{})]})})})})},kK=function(e,t){return e.width===t.width&&e.height===t.height},$K=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,o=e.debounceResize,a=p0({width:n,height:r},o,{equalityFn:kK})[0];return v.useEffect(function(){i==null||i(a)},[a,i]),y.jsx(y.Fragment,{children:t(a)})},la=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=o===void 0?0:o;return y.jsx(QU,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return y.jsx($K,{width:l,height:c,onResize:i,debounceResize:a,children:t})}})};function z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function MK(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,o){if(i){if(typeof i=="string")return z2(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?z2(i,o):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.
247
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wr(){return Wr=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},Wr.apply(null,arguments)}function f6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var EK=["id","colors"],OK=function(e){var t=e.id,n=e.colors,r=f6(e,EK);return y.jsx("linearGradient",Wr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return y.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))},h6={linearGradient:OK},Ks={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},AK=v.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ks.background:n,i=e.color,o=i===void 0?Ks.color:i,a=e.size,s=a===void 0?Ks.size:a,l=e.padding,c=l===void 0?Ks.padding:l,u=e.stagger,d=u===void 0?Ks.stagger:u,f=s+c,h=s/2,p=c/2;return d===!0&&(f=2*s+2*c),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:p+h,cy:p+h,r:h,fill:o}),d&&y.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})}),fr=function(e){return e*Math.PI/180},Ic=function(e){return 180*e/Math.PI},RK=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},No=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},DK=function(e){var t=e%360;return t<0&&(t+=360),t},p6={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"}}},Js={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},IK=v.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Js.spacing:n,i=e.rotation,o=i===void 0?Js.rotation:i,a=e.background,s=a===void 0?Js.background:a,l=e.color,c=l===void 0?Js.color:l,u=e.lineWidth,d=u===void 0?Js.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,m=h,g=h;return f===0?p=`
248
+ M 0 0 L `+m+` 0
249
+ M 0 `+g+" L "+m+" "+g+`
250
+ `:f===90?p=`
251
+ M 0 0 L 0 `+g+`
252
+ M `+m+" 0 L "+m+" "+g+`
253
+ `:(m=Math.abs(h/Math.sin(fr(f))),g=h/Math.sin(fr(90-f)),p=f>0?`
254
+ M 0 `+-g+" L "+2*m+" "+g+`
255
+ M `+-m+" "+-g+" L "+m+" "+g+`
256
+ M `+-m+" 0 L "+m+" "+2*g+`
257
+ `:`
258
+ M `+-m+" "+g+" L "+m+" "+-g+`
259
+ M `+-m+" "+2*g+" L "+2*m+" "+-g+`
260
+ M 0 `+2*g+" L "+2*m+` 0
261
+ `),y.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),Qs={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},jK=v.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Qs.color:n,i=e.background,o=i===void 0?Qs.background:i,a=e.size,s=a===void 0?Qs.size:a,l=e.padding,c=l===void 0?Qs.padding:l,u=e.stagger,d=u===void 0?Qs.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:o}),y.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),m6={patternDots:AK,patternLines:IK,patternSquares:jK},PK=["type"],W2=Wr({},h6,m6),NK=v.memo(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=f6(n,PK);return W2[r]?v.createElement(W2[r],Wr({key:i.id},i)):null})})}),bh=v.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,a=e.children,s=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Lt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[y.jsx(NK,{defs:o}),y.jsx("rect",{width:n,height:r,fill:f.background}),y.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})}),LK=v.memo(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"}})}),FK=v.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?LK:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,p=h===void 0?-12:h,m=e.ariaLabel,g=e.ariaLabelledBy,x=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,C=e.isFocusable,b=C!==void 0&&C,S=e.tabIndex,M=S===void 0?0:S,k=e.onFocus,$=e.onBlur,R=e.testId,T=Lt(),E=Fn(),A=E.animate,I=E.config,j=Kr({transform:"translate("+t+", "+n+")",config:I,immediate:!A}),D=v.useCallback(function(L){k==null||k(a,L)},[k,a]),O=v.useCallback(function(L){$==null||$(a,L)},[$,a]);return y.jsxs(Ht.g,{transform:j.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?M:void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":x,"aria-disabled":w,"aria-hidden":_,onFocus:b&&k?D:void 0,onBlur:b&&$?O:void 0,"data-testid":R,children:[v.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&y.jsx("text",{textAnchor:f,y:p,style:MU(T.dots.text),children:u})]})}),BK=v.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendNode,u=e.legendPosition,d=u===void 0?"top-right":u,f=e.legendOffsetX,h=f===void 0?14:f,p=e.legendOffsetY,m=p===void 0?14:p,g=e.legendOrientation,x=g===void 0?"horizontal":g,_=Lt(),w=0,C=0,b=0,S=0;if(r==="y"?(b=i(o),C=t):(w=i(o),S=n),l&&!c){var M=function(k){var $=k.axis,R=k.width,T=k.height,E=k.position,A=k.offsetX,I=k.offsetY,j=k.orientation,D=0,O=0,L=j==="vertical"?-90:0,z="start";if($==="x")switch(E){case"top-left":D=-A,O=I,z="end";break;case"top":O=-I,z=j==="horizontal"?"middle":"start";break;case"top-right":D=A,O=I,z=j==="horizontal"?"start":"end";break;case"right":D=A,O=T/2,z=j==="horizontal"?"start":"middle";break;case"bottom-right":D=A,O=T-I,z="start";break;case"bottom":O=T+I,z=j==="horizontal"?"middle":"end";break;case"bottom-left":O=T-I,D=-A,z=j==="horizontal"?"end":"start";break;case"left":D=-A,O=T/2,z=j==="horizontal"?"end":"middle"}else switch(E){case"top-left":D=A,O=-I,z="start";break;case"top":D=R/2,O=-I,z=j==="horizontal"?"middle":"start";break;case"top-right":D=R-A,O=-I,z=j==="horizontal"?"end":"start";break;case"right":D=R+A,z=j==="horizontal"?"start":"middle";break;case"bottom-right":D=R-A,O=I,z="end";break;case"bottom":D=R/2,O=I,z=j==="horizontal"?"middle":"end";break;case"bottom-left":D=A,O=I,z=j==="horizontal"?"start":"end";break;case"left":D=-A,z=j==="horizontal"?"end":"middle"}return{x:D,y:O,rotation:L,textAnchor:z}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:m,orientation:x});c=y.jsx("text",{transform:"translate("+M.x+", "+M.y+") rotate("+M.rotation+")",textAnchor:M.textAnchor,dominantBaseline:"central",style:s,children:l})}return y.jsxs("g",{transform:"translate("+w+", "+b+")",children:[y.jsx("line",{x1:0,x2:C,y1:0,y2:S,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:a}),c]})}),g6=v.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return y.jsx(BK,Wr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null}),Iv=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var l=v.useRef();return v.useEffect(function(){l.current=s},[s]),l.current}(e),o=v.useMemo(function(){return K3(i,e)},[i,e]),a=Kr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Qi(a,o)};v.createContext(void 0);var ag={basis:$V,basisClosed:MV,basisOpen:EV,bundle:OV,cardinal:AV,cardinalClosed:RV,cardinalOpen:DV,catmullRom:IV,catmullRomClosed:jV,catmullRomOpen:PV,linear:sv,linearClosed:NV,monotoneX:LV,monotoneY:FV,natural:BV,step:zV,stepAfter:UV,stepBefore:WV},jv=Object.keys(ag);jv.filter(function(e){return e.endsWith("Closed")});nS(jv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");nS(jv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var v6=function(e){if(!ag[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return ag[e]};De(Uf),De(Hf),De(Vf),De(qf),De(Yf),De(Gf),De(Zf),De(Xf),De(Kf),De(uh),De(dh),De(fh),De(mh),De(hh),De(ph),De(Jf),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(oh),De(ah),De(sh),De(lh),De(ch);De(Uf),De(Hf),De(Vf),De(qf),De(Yf),De(Gf),De(Zf),De(Xf),De(Kf),De(uh),De(dh),De(fh),De(mh),De(hh),De(ph),De(Jf),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(oh),De(ah),De(sh),De(lh),De(ch);Eo(KS);var b6={top:0,right:0,bottom:0,left:0},ca=function(e,t,n){return n===void 0&&(n={}),v.useMemo(function(){var r=Wr({},b6,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},zK=function(){var e=v.useRef(null),t=v.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=v.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return v.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},WK=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Wf(e.slice("5")):Rc(e):function(t){return""+t}},ss=function(e){return v.useMemo(function(){return WK(e)},[e])},UK=function(e,t){var n=N0(e)?e:function(r){return qr(r,e)};return n},y6=function(e){return N0(e)?e:function(t){return qr(t,e)}},gi=function(e){return v.useMemo(function(){return y6(e)},[e])},x6=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},HK=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},w6=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},Ba=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},VK=Object.keys(h6),qK=Object.keys(m6),YK=function(e,t,n){if(e==="*")return!0;if(N0(e))return e(t);if(q0(e)){var r=n?qr(t,n):t;return _K(IZ(r,Object.keys(e)),e)}return!1},Pv=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,l=i.targetKey,c=l===void 0?"fill":l,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h,p=function(){var g=h.value,x=g.id,_=g.match;if(YK(_,f,o)){var w=e.find(function(T){return T.id===x});if(w){if(qK.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var C=qr(f,s),b=w.background,S=w.color,M=x;w.background==="inherit"&&(M=M+".bg."+C,b=C),w.color==="inherit"&&(M=M+".fg."+C,S=C),cl(f,c,"url(#"+M+")"),d[M]||(u.push(Wr({},w,{id:M,background:b,color:S})),d[M]=1)}else cl(f,c,"url(#"+x+")");else if(VK.includes(w.type))if(w.colors.map(function(T){return T.color}).includes("inherit")){var k=qr(f,s),$=x,R=Wr({},w,{colors:w.colors.map(function(T,E){return T.color!=="inherit"?T:($=$+"."+E+"."+k,Wr({},T,{color:T.color==="inherit"?k:T.color}))})});R.id=$,cl(f,c,"url(#"+$+")"),d[$]||(u.push(R),d[$]=1)}else cl(f,c,"url(#"+x+")")}return 1}},m=MK(n);!(h=m()).done&&!p(););})),u};function Nv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=0,o=t;i<o.length;i++){var a=o[i];typeof a=="function"?a(r):a!=null&&(a.current=r)}}}var Xo=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},Ko=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vl.apply(null,arguments)}function U2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var GK=["style","children"],ZK=["outlineWidth","outlineColor","outlineOpacity"],Os=function(e){var t=e.style,n=e.children,r=U2(e,GK),i=t.outlineWidth,o=t.outlineColor,a=t.outlineOpacity,s=U2(t,ZK);return y.jsxs(y.Fragment,{children:[i>0&&y.jsx(Ht.text,vl({},r,{style:vl({},s,{strokeWidth:2*i,stroke:o,strokeOpacity:a,strokeLinejoin:"round"}),children:n})),y.jsx(Ht.text,vl({},r,{style:s,children:n}))]})};function H2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function XK(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,o){if(i){if(typeof i=="string")return H2(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?H2(i,o):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.
262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _d(){return _d=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},_d.apply(null,arguments)}var _6={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:JY,accent:QY,dark2:eG,paired:tG,pastel1:nG,pastel2:rG,set1:iG,set2:oG,set3:KS,tableau10:aG},KK=Object.keys(_6),C6={brown_blueGreen:Uf,purpleRed_green:Hf,pink_yellowGreen:Vf,purple_orange:qf,red_blue:Yf,red_grey:Gf,red_yellow_blue:Zf,red_yellow_green:Xf,spectral:Kf},JK=Object.keys(C6),QK={brown_blueGreen:sG,purpleRed_green:lG,pink_yellowGreen:cG,purple_orange:uG,red_blue:dG,red_grey:fG,red_yellow_blue:hG,red_yellow_green:pG,spectral:mG},S6={blues:uh,greens:dh,greys:fh,oranges:mh,purples:hh,reds:ph,blue_green:Jf,blue_purple:Qf,green_blue:eh,orange_red:th,purple_blue_green:nh,purple_blue:rh,purple_red:ih,red_purple:oh,yellow_green_blue:ah,yellow_green:sh,yellow_orange_brown:lh,yellow_orange_red:ch},eJ=Object.keys(S6),tJ={blues:MG,greens:EG,greys:OG,oranges:DG,purples:AG,reds:RG,turbo:WG,viridis:UG,inferno:VG,magma:HG,plasma:qG,cividis:IG,warm:PG,cool:NG,cubehelixDefault:jG,blue_green:gG,blue_purple:vG,green_blue:bG,orange_red:yG,purple_blue_green:xG,purple_blue:wG,purple_red:_G,red_purple:CG,yellow_green_blue:SG,yellow_green:TG,yellow_orange_brown:kG,yellow_orange_red:$G},Ep=_d({},_6,C6,S6),nJ=function(e){return KK.includes(e)},rJ=function(e){return JK.includes(e)},iJ=function(e){return eJ.includes(e)},oJ={rainbow:LG,sinebow:zG};_d({},QK,tJ,oJ);var aJ=function(e){return e.theme!==void 0},sJ=function(e){return e.from!==void 0},lJ=function(e,t){if(typeof e=="function")return e;if(q0(e)){if(aJ(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=qr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(sJ(e)){var r=function(l){return qr(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push(function(d){return d.brighter(u)});else if(c==="darker")o.push(function(d){return d.darker(u)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=XK(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(c,u){return u(c)},os(r(l))).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}},mr=function(e,t){return v.useMemo(function(){return lJ(e,t)},[e,t])},cJ=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return qr(d,t)};if(Array.isArray(e)){var r=Eo(e),i=function(d){return r(n(d))};return i.scale=r,i}if(q0(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return qr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(nJ(e.scheme)){var o=Eo(Ep[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(rJ(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=Eo(Ep[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(iJ(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 c=Eo(Ep[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Lv=function(e,t){return v.useMemo(function(){return cJ(e,t)},[e,t])};function Et(){return Et=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},Et.apply(null,arguments)}var uJ={pointerEvents:"none"},dJ=function(e){var t=e.label,n=e.style,r=Lt();return y.jsx(Ht.g,{transform:n.transform,opacity:n.progress,style:uJ,children:y.jsx(Os,{textAnchor:"middle",dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})})},T6=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},k6=function(e,t){return e.filter(function(n){return Math.abs(Ic(n.arc.endAngle-n.arc.startAngle))>=t})},fJ={startAngle:{enter:function(e){return Et({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Et({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Et({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Et({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Et({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},$6=function(e,t){return v.useMemo(function(){var n=fJ[e];return{enter:function(r){return Et({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Et({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Et({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},M6=function(e,t){var n=RK(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return No(n,r)},hJ=function(e){return function(t,n,r,i){return Qi([t,n,r,i],function(o,a,s,l){var c=M6({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},pJ=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=$6(n,r);return{transition:ea(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:hJ(t)}},mJ=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,o=i===void 0?0:i,a=e.computeExtraProps,s=a===void 0?function(){return{}}:a;return v.useMemo(function(){return k6(t,o).map(function(l){var c=M6(l.arc,r);return Et({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,o,s])},gJ=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.skipRadius,l=e.textColor,c=e.component,u=c===void 0?dJ:c,d=gi(i),f=Lt(),h=mr(l,f),p=v.useMemo(function(){return n.filter(function(w){var C=Math.abs(Ic(w.arc.endAngle-w.arc.startAngle)),b=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return C>=a&&b>=s})},[n,a,s]),m=pJ(p,o,r),g=m.transition,x=m.interpolate,_=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,label:d(C),style:{progress:w.progress,transform:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:h(C)}})})})},vJ=function(e,t,n){Xo(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){Ko(e,Et({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},bJ=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=gi(i),s=Lt(),l=mr(o,s),c=v.useCallback(function(u){return{label:a(u),textColor:l(u)}},[a,l]);return mJ({data:t,offset:n,skipAngle:r,computeExtraProps:c})},yJ=function(e){var t=e.label,n=e.style,r=Lt();return y.jsxs(Ht.g,{opacity:n.opacity,children:[y.jsx(Ht.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Os,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})]})},xJ=function(e){var t=T6(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Fv=function(e,t,n,r){var i,o,a=T6(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=No(a,e.outerRadius+t),l=No(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:l.x+r,y:l.y}):(i="before",o={x:l.x-r,y:l.y}),{side:i,points:[s,l,o]}},wJ=lv().x(function(e){return e.x}).y(function(e){return e.y}),_J=function(e,t,n,r,i,o,a){return Qi([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var p=Fv({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return wJ(p)})},CJ=function(e,t,n,r){return Qi([e,t,n,r],function(i,o,a,s){return xJ({startAngle:i,endAngle:o})})},SJ=function(e,t,n,r,i,o,a,s){return Qi([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,p,m){var g=Fv({startAngle:l,endAngle:c,outerRadius:d},f,h,p),x=g.points,_=g.side,w=x[2];return _==="before"?w.x-=m:w.x+=m,"translate("+w.x+","+w.y+")"})},TJ=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,p=Lt(),m=mr(c,p),g=mr(u,p),x=function(w,C){return v.useMemo(function(){return k6(w,C)},[w,C])}(t,s),_=function(w){var C=w.offset,b=w.diagonalLength,S=w.straightLength,M=w.textOffset,k=w.getLinkColor,$=w.getTextColor;return v.useMemo(function(){return{enter:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:k(R),textColor:$(R),opacity:0}},update:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:b,straightLength:S,textOffset:M,linkColor:k(R),textColor:$(R),opacity:1}},leave:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:k(R),textColor:$(R),opacity:0}}}},[b,S,M,k,$,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:m,getTextColor:g});return{transition:ea(x,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:_J,interpolateTextAnchor:CJ,interpolateTextPosition:SJ}},kJ=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?yJ:f,p=gi(r),m=TJ({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),g=m.transition,x=m.interpolateLink,_=m.interpolateTextAnchor,w=m.interpolateTextPosition,C=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(b,S){return v.createElement(C,{key:S.id,datum:S,label:p(S),style:Et({},b,{thickness:l,path:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength),textAnchor:_(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textPosition:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},$J=function(e,t,n,r){e.textBaseline="middle",Xo(e,n.labels.text),t.forEach(function(i){e.textAlign=p6.canvas.align[i.textAnchor],Ko(e,Et({},n.labels.text,{fill:i.textColor}),String(i.label),i.x,i.y),e.beginPath(),e.strokeStyle=i.linkColor,e.lineWidth=r,i.points.forEach(function(o,a){a===0?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y)}),e.stroke()})},MJ=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,o=i===void 0?.5:i,a=e.diagonalLength,s=e.straightLength,l=e.computeExtraProps,c=l===void 0?function(){return{}}:l,u=v.useMemo(function(){return t.filter(function(d){return Math.abs(Ic(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Et({},Fv(d.arc,o,a,s),{data:d})})},[t,r,o,a,s]);return v.useMemo(function(){return u.map(function(d){return Et({},c(d),d)})},[u,c])},EJ=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,o=e.straightLength,a=e.textOffset,s=a===void 0?0:a,l=e.label,c=e.linkColor,u=e.textColor,d=gi(l),f=Lt(),h=mr(c,f),p=mr(u,f),m=v.useCallback(function(g){var x,_={x:g.points[2].x,y:g.points[2].y};return g.side==="before"?(_.x-=s,x="end"):(_.x+=s,x="start"),Et({},_,{label:d(g.data),linkColor:h(g.data),textAnchor:x,textColor:p(g.data)})},[d,h,p,s]);return MJ({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:m})},OJ=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=v.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=v.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=v.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=v.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return y.jsx(Ht.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?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0,"data-testid":"arc."+t.id})},AJ=function(e,t,n,r,i){return Qi([e,t,n,r],function(o,a,s,l){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},RJ=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=$6(t,n);return{transition:ea(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:AJ}},DJ=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?OJ:d,h=Lt(),p=mr(o,h),m=RJ(n,u,{enter:function(w){return{opacity:0,color:w.color,borderColor:p(w)}},update:function(w){return{opacity:1,color:w.color,borderColor:p(w)}},leave:function(w){return{opacity:0,color:w.color,borderColor:p(w)}}}),g=m.transition,x=m.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,style:Et({},w,{borderWidth:i,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},IJ=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=No(fr(r),n);a.push([s.x,s.y]);var l=No(fr(i),n);a.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=No(fr(c),n);a.push([u.x,u.y])}a=a.map(function(g){var x=g[0],_=g[1];return[e+x,t+_]}),o&&a.push([e,t]);var d=a.map(function(g){return g[0]}),f=a.map(function(g){return g[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:a,x:h,y:m,width:p-h,height:Math.max.apply(Math,f)-m}},jJ=function(e,t,n,r,i,o){var a=x6(i,o,e,t);return a<n&&a>r},PJ=function(e,t,n,r,i,o,a){if(jJ(e,t,n,r,o,a)){var s=HK(o,a,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},NJ=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return v.useMemo(function(){return _V().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},LJ=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},FJ=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
263
+ M`+r/2+` 0
264
+ L`+.8*r+" "+r/2+`
265
+ L`+r/2+" "+r+`
266
+ L`+.2*r+" "+r/2+`
267
+ L`+r/2+` 0
268
+ `,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},BJ=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},zJ=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
269
+ M`+r/2+` 0
270
+ L`+r+" "+r+`
271
+ L0 `+r+`
272
+ L`+r/2+` 0
273
+ `,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function Ui(){return Ui=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},Ui.apply(null,arguments)}var lr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},WJ={top:0,right:0,bottom:0,left:0},Bv=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=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 l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Ui({},WJ,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},E6=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},O6=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},UJ={circle:LJ,diamond:FJ,square:BJ,triangle:zJ},HJ=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,p=e.width,m=e.height,g=e.data,x=e.direction,_=x===void 0?lr.itemDirection:x,w=e.justify,C=w===void 0?lr.justify:w,b=e.textColor,S=e.background,M=S===void 0?"transparent":S,k=e.opacity,$=k===void 0?1:k,R=e.symbolShape,T=R===void 0?lr.symbolShape:R,E=e.symbolSize,A=E===void 0?lr.symbolSize:E,I=e.symbolSpacing,j=I===void 0?lr.symbolSpacing:I,D=e.symbolBorderWidth,O=D===void 0?0:D,L=e.symbolBorderColor,z=L===void 0?"transparent":L,N=e.onClick,H=e.onMouseEnter,Y=e.onMouseLeave,q=e.toggleSerie,Z=e.effects,X=v.useState({}),J=X[0],ee=X[1],W=Lt(),F=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on==="hover"}).reduce(function(ge,be){return Ui({},ge,be.style)},{});ee(ye)}H==null||H(g,le)},[H,g,Z]),B=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on!=="hover"}).reduce(function(ge,be){return Ui({},ge,be.style)},{});ee(ye)}Y==null||Y(g,le)},[Y,g,Z]),V=O6({direction:_,justify:C,symbolSize:(t=J.symbolSize)!=null?t:A,symbolSpacing:j,width:p,height:m}),P=V.symbolX,te=V.symbolY,K=V.labelX,G=V.labelY,ae=V.labelAnchor,ne=V.labelAlignment,re=[N,H,Y,q].some(function(le){return le!==void 0}),oe=typeof T=="function"?T:UJ[T];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:$},children:[y.jsx("rect",{width:p,height:m,fill:(r=J.itemBackground)!=null?r:M,style:{cursor:re?"pointer":"auto"},onClick:function(le){N==null||N(g,le),q==null||q(g.id)},onMouseEnter:F,onMouseLeave:B}),fe.createElement(oe,Ui({id:g.id,x:P,y:te,size:(i=J.symbolSize)!=null?i:A,fill:(o=(a=g.fill)!=null?a:g.color)!=null?o:"black",borderWidth:(s=J.symbolBorderWidth)!=null?s:O,borderColor:(l=J.symbolBorderColor)!=null?l:z},g.hidden?W.legends.hidden.symbol:void 0)),y.jsx(Os,{textAnchor:ae,style:Ui({},W.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:W.legends.text.fill)!=null?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},g.hidden?W.legends.hidden.text:void 0),x:K,y:G,children:g.label})]})},VJ=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?lr.padding:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?lr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemTextColor,g=e.itemBackground,x=g===void 0?"transparent":g,_=e.itemOpacity,w=_===void 0?1:_,C=e.symbolShape,b=e.symbolSize,S=e.symbolSpacing,M=e.symbolBorderWidth,k=e.symbolBorderColor,$=e.onClick,R=e.onMouseEnter,T=e.onMouseLeave,E=e.toggleSerie,A=Bv({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,I=i==="row"?c+p:0,j=i==="column"?u+p:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(D,O){return y.jsx(HJ,{data:D,x:O*I+A.left,y:O*j+A.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:x,opacity:w,symbolShape:C,symbolSize:b,symbolSpacing:S,symbolBorderWidth:M,symbolBorderColor:k,onClick:$,onMouseEnter:R,onMouseLeave:T,toggleSerie:E},O)})})},zv=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?lr.translateX:i,a=e.translateY,s=a===void 0?lr.translateY:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?lr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemWidth,g=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,C=e.itemOpacity,b=e.symbolShape,S=e.symbolSize,M=e.symbolSpacing,k=e.symbolBorderWidth,$=e.symbolBorderColor,R=e.onClick,T=e.onMouseEnter,E=e.onMouseLeave,A=e.toggleSerie,I=e.effects,j=Bv({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:g,direction:c,padding:d}),D=j.width,O=j.height,L=E6({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:D,height:O}),z=L.x,N=L.y;return y.jsx(VJ,{data:t,x:z,y:N,direction:c,padding:d,justify:f,effects:I,itemsSpacing:p,itemWidth:m,itemHeight:g,itemDirection:x,itemTextColor:_,itemBackground:w,itemOpacity:C,symbolShape:b,symbolSize:S,symbolSpacing:M,symbolBorderWidth:k,symbolBorderColor:$,onClick:R,onMouseEnter:T,onMouseLeave:E,toggleSerie:typeof A=="boolean"?void 0:A})},qJ={start:"left",middle:"center",end:"right"},Wv=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,p=h!==void 0&&h,m=t.itemsSpacing,g=m===void 0?0:m,x=t.itemWidth,_=t.itemHeight,w=t.itemDirection,C=w===void 0?"left-to-right":w,b=t.itemTextColor,S=t.symbolSize,M=S===void 0?16:S,k=t.symbolSpacing,$=k===void 0?8:k,R=t.theme,T=Bv({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:g,direction:u,padding:f}),E=T.width,A=T.height,I=T.padding,j=E6({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:E,height:A}),D=j.x,O=j.y,L=u==="row"?x+g:0,z=u==="column"?_+g:0;e.save(),e.translate(D,O),Xo(e,R.legends.text),n.forEach(function(N,H){var Y,q=H*L+I.left,Z=H*z+I.top,X=O6({direction:C,justify:p,symbolSize:M,symbolSpacing:$,width:x,height:_}),J=X.symbolX,ee=X.symbolY,W=X.labelX,F=X.labelY,B=X.labelAnchor,V=X.labelAlignment;e.fillStyle=(Y=N.color)!=null?Y:"black",e.fillRect(q+J,Z+ee,M,M),e.textAlign=qJ[B],V==="central"&&(e.textBaseline="middle"),Ko(e,Ui({},R.legends.text,{fill:b??R.legends.text.fill}),String(N.label),q+W,Z+F)}),e.restore()};function gr(){return gr=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},gr.apply(null,arguments)}function jc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var V2,YJ=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,s){var l;return y.jsx(zv,gr({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},me={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,arcLabelsSkipRadius: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(J0,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(V2=window.devicePixelRatio)!=null?V2:1},GJ=["points"],A6=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?me.colors:s,c=gi(r),u=gi(o),d=ss(a),f=Lv(l,"id");return v.useMemo(function(){return t.map(function(h){var p,m=c(h),g=u(h),x={id:m,label:(p=h.label)!=null?p:m,hidden:!1,value:g,formattedValue:d(g),data:h};return gr({},x,{color:f(x)})})},[t,c,u,d,f])},ZJ=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=v.useMemo(function(){var x=kV().value(function(_){return _.value}).startAngle(fr(n)).endAngle(fr(r)).padAngle(fr(a));return s||x.sortValues(null),x},[n,r,a,s]),p=v.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return gr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:l===_.data.id?i-c:i,outerRadius:l===_.data.id?o+u:o,thickness:o-i,padAngle:_.padAngle,angle:w,angleDeg:Ic(w)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,l,i,c,o,u]),m=p.legendData,g=v.useRef(f);return v.useEffect(function(){typeof g.current=="function"&&g.current(m)},[g,m]),p},XJ=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=v.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:v.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},R6=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?me.innerRadius:i,a=e.startAngle,s=a===void 0?me.startAngle:a,l=e.endAngle,c=l===void 0?me.endAngle:l,u=e.padAngle,d=u===void 0?me.padAngle:u,f=e.sortByValue,h=f===void 0?me.sortByValue:f,p=e.cornerRadius,m=p===void 0?me.cornerRadius:p,g=e.fit,x=g===void 0?me.fit:g,_=e.activeInnerRadiusOffset,w=_===void 0?me.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,b=C===void 0?me.activeOuterRadiusOffset:C,S=e.activeId,M=e.onActiveIdChange,k=e.defaultActiveId,$=e.forwardLegendData,R=XJ({activeId:S,onActiveIdChange:M,defaultActiveId:k}),T=R.activeId,E=R.setActiveId,A=v.useState([]),I=A[0],j=A[1],D=v.useMemo(function(){var z,N=Math.min(n,r)/2,H=N*Math.min(o,1),Y=n/2,q=r/2;if(x){var Z=IJ(Y,q,N,s-90,c-90),X=Z.points,J=jc(Z,GJ),ee=Math.min(n/J.width,r/J.height),W={width:J.width*ee,height:J.height*ee};W.x=(n-W.width)/2,W.y=(r-W.height)/2,Y=(Y-J.x)/J.width*J.width*ee+W.x,q=(q-J.y)/J.height*J.height*ee+W.y,z={box:J,ratio:ee,points:X},N*=ee,H*=ee}return{centerX:Y,centerY:q,radius:N,innerRadius:H,debug:z}},[n,r,o,s,c,x]),O=ZJ({data:t,startAngle:s,endAngle:c,innerRadius:D.innerRadius,outerRadius:D.radius,padAngle:d,sortByValue:h,activeId:T,activeInnerRadiusOffset:w,activeOuterRadiusOffset:b,hiddenIds:I,forwardLegendData:$}),L=v.useCallback(function(z){j(function(N){return N.indexOf(z)>-1?N.filter(function(H){return H!==z}):[].concat(N,[z])})},[]);return gr({arcGenerator:NJ({cornerRadius:m,padAngle:fr(d)}),activeId:T,setActiveId:E,toggleSerie:L},O,D)},KJ=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return v.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},JJ=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=$i(),m=p.showTooltipFromEvent,g=p.hideTooltip,x=v.useMemo(function(){if(a)return function(b,S){s==null||s(b,S)}},[a,s]),_=v.useMemo(function(){if(a)return function(b,S){m(v.createElement(f,{datum:b}),S),d(b.id),l==null||l(b,S)}},[a,m,d,l,f]),w=v.useMemo(function(){if(a)return function(b,S){m(v.createElement(f,{datum:b}),S),c==null||c(b,S)}},[a,m,c,f]),C=v.useMemo(function(){if(a)return function(b,S){g(),d(null),u==null||u(b,S)}},[a,g,d,u]);return y.jsx(DJ,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},QJ=["isInteractive","animate","motionConfig","theme","renderWrapper"],eQ=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.layers,u=c===void 0?me.layers:c,d=e.startAngle,f=d===void 0?me.startAngle:d,h=e.endAngle,p=h===void 0?me.endAngle:h,m=e.padAngle,g=m===void 0?me.padAngle:m,x=e.fit,_=x===void 0?me.fit:x,w=e.innerRadius,C=w===void 0?me.innerRadius:w,b=e.cornerRadius,S=b===void 0?me.cornerRadius:b,M=e.activeInnerRadiusOffset,k=M===void 0?me.activeInnerRadiusOffset:M,$=e.activeOuterRadiusOffset,R=$===void 0?me.activeOuterRadiusOffset:$,T=e.width,E=e.height,A=e.margin,I=e.colors,j=I===void 0?me.colors:I,D=e.borderWidth,O=D===void 0?me.borderWidth:D,L=e.borderColor,z=L===void 0?me.borderColor:L,N=e.enableArcLabels,H=N===void 0?me.enableArcLabels:N,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsSkipRadius,ee=J===void 0?me.arcLabelsSkipRadius:J,W=e.arcLabelsTextColor,F=W===void 0?me.arcLabelsTextColor:W,B=e.arcLabelsRadiusOffset,V=B===void 0?me.arcLabelsRadiusOffset:B,P=e.arcLabelsComponent,te=e.enableArcLinkLabels,K=te===void 0?me.enableArcLinkLabels:te,G=e.arcLinkLabel,ae=G===void 0?me.arcLinkLabel:G,ne=e.arcLinkLabelsSkipAngle,re=ne===void 0?me.arcLinkLabelsSkipAngle:ne,oe=e.arcLinkLabelsOffset,le=oe===void 0?me.arcLinkLabelsOffset:oe,ye=e.arcLinkLabelsDiagonalLength,ge=ye===void 0?me.arcLinkLabelsDiagonalLength:ye,be=e.arcLinkLabelsStraightLength,Me=be===void 0?me.arcLinkLabelsStraightLength:be,ce=e.arcLinkLabelsThickness,de=ce===void 0?me.arcLinkLabelsThickness:ce,Ce=e.arcLinkLabelsTextOffset,Ge=Ce===void 0?me.arcLinkLabelsTextOffset:Ce,we=e.arcLinkLabelsTextColor,ve=we===void 0?me.arcLinkLabelsTextColor:we,Ne=e.arcLinkLabelsColor,Ze=Ne===void 0?me.arcLinkLabelsColor:Ne,_t=e.arcLinkLabelComponent,Te=e.defs,Re=Te===void 0?me.defs:Te,ot=e.fill,Ue=ot===void 0?me.fill:ot,mt=e.isInteractive,ut=mt===void 0?me.isInteractive:mt,At=e.onClick,Ke=e.onMouseEnter,Le=e.onMouseMove,Ve=e.onMouseLeave,et=e.tooltip,Fe=et===void 0?me.tooltip:et,tt=e.activeId,vt=e.onActiveIdChange,at=e.defaultActiveId,Pe=e.transitionMode,Ee=Pe===void 0?me.transitionMode:Pe,Ye=e.legends,xt=Ye===void 0?me.legends:Ye,nt=e.forwardLegendData,bt=e.role,Jt=bt===void 0?me.role:bt,Ft=e.forwardedRef,zt=ca(T,E,A),fn=zt.outerWidth,qt=zt.outerHeight,ke=zt.margin,Je=zt.innerWidth,St=zt.innerHeight,on=A6({data:t,id:r,value:o,valueFormat:a,colors:j}),Yt=R6({data:on,width:Je,height:St,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:S,activeInnerRadiusOffset:k,activeOuterRadiusOffset:R,activeId:tt,onActiveIdChange:vt,defaultActiveId:at,forwardLegendData:nt}),Be=Yt.dataWithArc,ze=Yt.legendData,ht=Yt.arcGenerator,Rt=Yt.centerX,Tt=Yt.centerY,Qe=Yt.radius,kt=Yt.innerRadius,br=Yt.setActiveId,ln=Yt.toggleSerie,cn=Pv(Re,Be,Ue),An={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(An.arcs=y.jsx(JJ,{center:[Rt,Tt],data:Be,arcGenerator:ht,borderWidth:O,borderColor:z,isInteractive:ut,onClick:At,onMouseEnter:Ke,onMouseMove:Le,onMouseLeave:Ve,setActiveId:br,tooltip:Fe,transitionMode:Ee},"arcs")),K&&u.includes("arcLinkLabels")&&(An.arcLinkLabels=y.jsx(kJ,{center:[Rt,Tt],data:Be,label:ae,skipAngle:re,offset:le,diagonalLength:ge,straightLength:Me,strokeWidth:de,textOffset:Ge,textColor:ve,linkColor:Ze,component:_t},"arcLinkLabels")),H&&u.includes("arcLabels")&&(An.arcLabels=y.jsx(gJ,{center:[Rt,Tt],data:Be,label:q,radiusOffset:V,skipAngle:X,skipRadius:ee,textColor:F,transitionMode:Ee,component:P},"arcLabels")),xt.length>0&&u.includes("legends")&&(An.legends=y.jsx(YJ,{width:Je,height:St,data:ze,legends:xt,toggleSerie:ln},"legends"));var ao=KJ({dataWithArc:Be,arcGenerator:ht,centerX:Rt,centerY:Tt,radius:Qe,innerRadius:kt});return y.jsx(bh,{width:fn,height:qt,margin:ke,defs:cn,role:Jt,ref:Ft,children:u.map(function(Ct,so){return An[Ct]!==void 0?An[Ct]:typeof Ct=="function"?y.jsx(v.Fragment,{children:v.createElement(Ct,ao)},so):null})})},tQ=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.animate,o=i===void 0?me.animate:i,a=e.motionConfig,s=a===void 0?me.motionConfig:a,l=e.theme,c=e.renderWrapper,u=jc(e,QJ);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(eQ,gr({isInteractive:r},u,{forwardedRef:t}))})}),nQ=["defaultWidth","defaultHeight","onResize","debounceResize"],rQ=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=jc(e,nQ);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(tQ,gr({width:l,height:c},a,{ref:t}))}})}),iQ=["isInteractive","theme","renderWrapper"],oQ=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.startAngle,u=c===void 0?me.startAngle:c,d=e.endAngle,f=d===void 0?me.endAngle:d,h=e.padAngle,p=h===void 0?me.padAngle:h,m=e.fit,g=m===void 0?me.fit:m,x=e.innerRadius,_=x===void 0?me.innerRadius:x,w=e.cornerRadius,C=w===void 0?me.cornerRadius:w,b=e.activeInnerRadiusOffset,S=b===void 0?me.activeInnerRadiusOffset:b,M=e.activeOuterRadiusOffset,k=M===void 0?me.activeOuterRadiusOffset:M,$=e.width,R=e.height,T=e.margin,E=e.pixelRatio,A=E===void 0?me.pixelRatio:E,I=e.colors,j=I===void 0?me.colors:I,D=e.borderWidth,O=D===void 0?me.borderWidth:D,L=e.borderColor,z=L===void 0?me.borderColor:L,N=e.enableArcLabels,H=N===void 0?me.enableArcLabels:N,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsTextColor,ee=J===void 0?me.arcLabelsTextColor:J,W=e.arcLabelsRadiusOffset,F=W===void 0?me.arcLabelsRadiusOffset:W,B=e.enableArcLinkLabels,V=B===void 0?me.enableArcLinkLabels:B,P=e.arcLinkLabel,te=P===void 0?me.arcLinkLabel:P,K=e.arcLinkLabelsSkipAngle,G=K===void 0?me.arcLinkLabelsSkipAngle:K,ae=e.arcLinkLabelsOffset,ne=ae===void 0?me.arcLinkLabelsOffset:ae,re=e.arcLinkLabelsDiagonalLength,oe=re===void 0?me.arcLinkLabelsDiagonalLength:re,le=e.arcLinkLabelsStraightLength,ye=le===void 0?me.arcLinkLabelsStraightLength:le,ge=e.arcLinkLabelsThickness,be=ge===void 0?me.arcLinkLabelsThickness:ge,Me=e.arcLinkLabelsTextOffset,ce=Me===void 0?me.arcLinkLabelsTextOffset:Me,de=e.arcLinkLabelsTextColor,Ce=de===void 0?me.arcLinkLabelsTextColor:de,Ge=e.arcLinkLabelsColor,we=Ge===void 0?me.arcLinkLabelsColor:Ge,ve=e.isInteractive,Ne=ve===void 0?me.isInteractive:ve,Ze=e.onClick,_t=e.onMouseMove,Te=e.tooltip,Re=Te===void 0?me.tooltip:Te,ot=e.activeId,Ue=e.onActiveIdChange,mt=e.defaultActiveId,ut=e.legends,At=ut===void 0?me.legends:ut,Ke=e.forwardLegendData,Le=e.role,Ve=e.forwardedRef,et=v.useRef(null),Fe=Lt(),tt=ca($,R,T),vt=tt.margin,at=tt.innerWidth,Pe=tt.innerHeight,Ee=tt.outerWidth,Ye=tt.outerHeight,xt=A6({data:t,id:r,value:o,valueFormat:a,colors:j}),nt=R6({data:xt,width:at,height:Pe,fit:g,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:S,activeOuterRadiusOffset:k,activeId:ot,onActiveIdChange:Ue,defaultActiveId:mt,forwardLegendData:Ke}),bt=nt.dataWithArc,Jt=nt.arcGenerator,Ft=nt.centerX,zt=nt.centerY,fn=nt.radius,qt=nt.innerRadius,ke=nt.setActiveId,Je=mr(z,Fe),St=bJ({data:bt,label:q,skipAngle:X,offset:F,textColor:ee}),on=EJ({data:bt,skipAngle:G,offset:ne,diagonalLength:oe,straightLength:ye,label:te,linkColor:we,textOffset:ce,textColor:Ce});v.useEffect(function(){if(et.current){et.current.width=Ee*A,et.current.height=Ye*A;var Qe=et.current.getContext("2d");Qe.scale(A,A),Qe.fillStyle=Fe.background,Qe.fillRect(0,0,Ee,Ye),Qe.save(),Qe.translate(vt.left,vt.top),Jt.context(Qe),Qe.save(),Qe.translate(Ft,zt),bt.forEach(function(kt){Qe.beginPath(),Qe.fillStyle=kt.color,Qe.strokeStyle=Je(kt),Qe.lineWidth=O,Jt(kt.arc),Qe.fill(),O>0&&Qe.stroke()}),V===!0&&$J(Qe,on,Fe,be),H===!0&&vJ(Qe,St,Fe),Qe.restore(),At.forEach(function(kt){Wv(Qe,gr({},kt,{data:bt,containerWidth:at,containerHeight:Pe,theme:Fe}))})}},[et,at,Pe,Ee,Ye,vt.top,vt.left,A,Ft,zt,Jt,bt,O,Je,H,St,V,on,be,At,Fe]);var Yt=v.useMemo(function(){return bt.map(function(Qe){return gr({id:Qe.id},Qe.arc)})},[bt]),Be=function(Qe){if(!et.current)return null;var kt=Ba(et.current,Qe),br=kt[0],ln=kt[1],cn=PJ(vt.left+Ft,vt.top+zt,fn,qt,Yt,br,ln);return cn?bt.find(function(An){return An.id===cn.id}):null},ze=$i(),ht=ze.showTooltipFromEvent,Rt=ze.hideTooltip,Tt=function(Qe){var kt=Be(Qe);kt?(_t==null||_t(kt,Qe),ke(kt.id),ht(v.createElement(Re,{datum:kt}),Qe)):(ke(null),Rt())};return y.jsx("canvas",{ref:Nv(et,Ve),width:Ee*A,height:Ye*A,style:{width:Ee,height:Ye,cursor:Ne?"auto":"normal"},onMouseEnter:Ne?Tt:void 0,onMouseMove:Ne?Tt:void 0,onMouseLeave:Ne?function(){Rt()}:void 0,onClick:Ne?function(Qe){if(Ze){var kt=Be(Qe);kt&&Ze(kt,Qe)}}:void 0,role:Le})},aQ=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.theme,o=e.renderWrapper,a=jc(e,iQ);return y.jsx(sa,{isInteractive:r,renderWrapper:o,theme:i,children:y.jsx(oQ,gr({isInteractive:r},a,{forwardedRef:t}))})}),sQ=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=jc(e,sQ);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(aQ,gr({width:l,height:c},a,{ref:t}))}})});function lQ(){}var cQ=lQ,Op=l6,uQ=cQ,dQ=Av,fQ=1/0,hQ=Op&&1/dQ(new Op([,-0]))[1]==fQ?function(e){return new Op(e)}:uQ,pQ=hQ,mQ=iv,gQ=eS,vQ=tS,bQ=ov,yQ=pQ,xQ=Av,wQ=200;function _Q(e,t,n){var r=-1,i=gQ,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=vQ;else if(o>=wQ){var c=t?null:yQ(e);if(c)return xQ(c);a=!1,i=bQ,l=new mQ}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var D6=_Q,CQ=D6;function SQ(e){return e&&e.length?CQ(e):[]}var TQ=SQ;const q2=nn(TQ);var kQ=Tf,$Q=Dv,MQ=1,EQ=2;function OQ(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new kQ;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?$Q(u,c,MQ|EQ,r,d):f))return!1}}return!0}var AQ=OQ,RQ=Qr;function DQ(e){return e===e&&!RQ(e)}var I6=DQ,IQ=I6,jQ=Dc;function PQ(e){for(var t=jQ(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,IQ(i)]}return t}var NQ=PQ;function LQ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var j6=LQ,FQ=AQ,BQ=NQ,zQ=j6;function WQ(e){var t=BQ(e);return t.length==1&&t[0][2]?zQ(t[0][0],t[0][1]):function(n){return n===e||FQ(n,e,t)}}var UQ=WQ,HQ=Dv,VQ=L3,qQ=QS,YQ=X0,GQ=I6,ZQ=j6,XQ=$s,KQ=1,JQ=2;function QQ(e,t){return YQ(e)&&GQ(t)?ZQ(XQ(e),t):function(n){var r=VQ(n,e);return r===void 0&&r===t?qQ(n,e):HQ(t,r,KQ|JQ)}}var eee=QQ;function tee(e){return function(t){return t==null?void 0:t[e]}}var nee=tee,ree=Ac;function iee(e){return function(t){return ree(t,e)}}var oee=iee,aee=nee,see=oee,lee=X0,cee=$s;function uee(e){return lee(e)?aee(cee(e)):see(e)}var dee=uee,fee=UQ,hee=eee,pee=Of,mee=Xn,gee=dee;function vee(e){return typeof e=="function"?e:e==null?pee:typeof e=="object"?mee(e)?hee(e[0],e[1]):fee(e):gee(e)}var Uv=vee,bee=Uv,yee=D6;function xee(e,t){return e&&e.length?yee(e,bee(t)):[]}var wee=xee;const sg=nn(wee);var _ee=b3,Cee=Dc;function See(e,t){return e&&_ee(e,t,Cee)}var Tee=See,kee=Cs;function $ee(e,t){return function(n,r){if(n==null)return n;if(!kee(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Mee=$ee,Eee=Tee,Oee=Mee,Aee=Oee(Eee),P6=Aee,Ree=P6,Dee=Cs;function Iee(e,t){var n=-1,r=Dee(e)?Array(e.length):[];return Ree(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var jee=Iee;function Pee(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Nee=Pee,Y2=Af;function Lee(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Y2(e),a=t!==void 0,s=t===null,l=t===t,c=Y2(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Fee=Lee,Bee=Fee;function zee(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Bee(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Wee=zee,Ap=Rf,Uee=Ac,Hee=Uv,Vee=jee,qee=Nee,Yee=Ss,Gee=Wee,Zee=Of,Xee=Xn;function Kee(e,t,n){t.length?t=Ap(t,function(o){return Xee(o)?function(a){return Uee(a,o.length===1?o[0]:o)}:o}):t=[Zee];var r=-1;t=Ap(t,Yee(Hee));var i=Vee(e,function(o,a,s){var l=Ap(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return qee(i,function(o,a){return Gee(o,a,n)})}var Jee=Kee,Qee=t6,ete=Jee,tte=Z0,G2=D3,nte=tte(function(e,t){if(e==null)return[];var n=t.length;return n>1&&G2(e,t[0],t[1])?t=[]:n>2&&G2(t[0],t[1],t[2])&&(t=[t[0]]),ete(e,Qee(t,1),[])}),rte=nte;const ite=nn(rte);var ote=ki,ate=vr,ste="[object Date]";function lte(e){return ate(e)&&ote(e)==ste}var cte=lte,ute=cte,dte=Ss,Z2=Mf,X2=Z2&&Z2.isDate,fte=X2?dte(X2):ute,hte=fte;const pte=nn(hte);function Co(){return Co=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},Co.apply(null,arguments)}var xa=[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)}],mte={millisecond:[],second:xa.slice(0,1),minute:xa.slice(0,2),hour:xa.slice(0,3),day:xa.slice(0,4),month:xa.slice(0,5),year:xa.slice(0,6)},gte=function(e){return function(t){return mte[e].forEach(function(n){n(t)}),t}},N6=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=gte(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?XS(n):GS(n);return s(c(l))}},mo={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},vte=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?mo.min:l,u=e.max,d=u===void 0?mo.max:u,f=e.stacked,h=f===void 0?mo.stacked:f,p=e.reverse,m=p===void 0?mo.reverse:p,g=e.clamp,x=g===void 0?mo.clamp:g,_=e.nice,w=_===void 0?mo.nice:_,C=e.round,b=C===void 0?mo.round:C;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var S=gd().range(r==="x"?[0,n]:[n,0]).interpolate(b?J3:Zl).domain(m?[a,i]:[i,a]).clamp(x);return w===!0?S.nice():typeof w=="number"&&S.nice(w),bte(S,h)},bte=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},yte=function(e,t,n){var r=aq().range([0,n]).domain(t.all);return r.type="point",r},xte={round:!1},wte=function(e,t,n,r){var i=e.round,o=i===void 0?xte.round:i,a=pv().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return _te(a)},_te=function(e){var t=e;return t.type="band",t},wa={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Cte=function(e,t,n){var r,i,o=e.format,a=o===void 0?wa.format:o,s=e.precision,l=s===void 0?wa.precision:s,c=e.min,u=c===void 0?wa.min:c,d=e.max,f=d===void 0?wa.max:d,h=e.useUTC,p=h===void 0?wa.useUTC:h,m=e.nice,g=m===void 0?wa.nice:m,x=N6({format:a,precision:l,useUTC:p});r=u==="auto"?x(t.min):a!=="native"?x(u):u,i=f==="auto"?x(t.max):a!=="native"?x(f):f;var _=p?KY():XY();_.range([0,n]),r&&i&&_.domain([r,i]),g===!0?_.nice():typeof g!="object"&&typeof g!="number"||_.nice(g);var w=_;return w.type="time",w.useUTC=p,w},_a={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Ste=function(e,t,n,r){var i,o=e.base,a=o===void 0?_a.base:o,s=e.min,l=s===void 0?_a.min:s,c=e.max,u=c===void 0?_a.max:c,d=e.round,f=d===void 0?_a.round:d,h=e.reverse,p=h===void 0?_a.reverse:h,m=e.nice,g=m===void 0?_a.nice:m;if(t.all.some(function(M){return M===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,w=!1;if(t.all.filter(function(M){return M!=null}).forEach(function(M){w||(i===void 0?i=Math.sign(M):Math.sign(M)!==i&&(w=!0))}),w)throw new Error("a log scale domain must be strictly-positive or strictly-negative");x=l==="auto"?t.min:l,_=u==="auto"?t.max:u;var C=CS().base(a),b=r==="x"?[0,n]:[n,0];f===!0?C.rangeRound(b):C.range(b),p===!0?C.domain([_,x]):C.domain([x,_]),g===!0?C.nice():typeof g=="number"&&C.nice(g);var S=C;return S.type="log",S},Ca={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Tte=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?Ca.constant:a,l=e.min,c=l===void 0?Ca.min:l,u=e.max,d=u===void 0?Ca.max:u,f=e.round,h=f===void 0?Ca.round:f,p=e.reverse,m=p===void 0?Ca.reverse:p,g=e.nice,x=g===void 0?Ca.nice:g;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var _=SS().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),m===!0?_.domain([o,i]):_.domain([i,o]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var C=_;return C.type="symlog",C},kte=function(e){return e==="x"?"y":"x"},$te=function(e,t){return e===t},Mte=function(e,t){return e.getTime()===t.getTime()};function tc(e,t,n,r){switch(e.type){case"linear":return vte(e,t,n,r);case"point":return yte(0,t,n);case"band":return wte(e,t,n,r);case"time":return Cte(e,t,n);case"log":return Ste(e,t,n,r);case"symlog":return Tte(e,t,n,r);default:throw new Error("invalid scale spec")}}var K2=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},Ete=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return Co({},d,{data:d.data.map(function(f){return{data:Co({},f)}})})}(u)}),a=Ote(o,t,n);"stacked"in t&&t.stacked===!0&&Ate(a,o),"stacked"in n&&n.stacked===!0&&Rte(a,o);var s=tc(t,a.x,r,"x"),l=tc(n,a.y,i,"y"),c=o.map(function(u){return Co({},u,{data:u.data.map(function(d){return Co({},d,{position:{x:K2(d,"x",s),y:K2(d,"y",l)}})})})});return Co({},a,{series:c,xScale:s,yScale:l})},Ote=function(e,t,n){return{x:J2(e,"x",t),y:J2(e,"y",n)}},J2=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(p){return p.data[t]}:o,s=i.setValue,l=s===void 0?function(p,m){p.data[t]=m}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(m){var g=a(m);g&&l(m,parseFloat(String(g)))})});else if(n.type==="time"&&n.format!=="native"){var c=N6(n);e.forEach(function(p){p.data.forEach(function(m){var g=a(m);g&&l(m,c(g))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(m){u.push(a(m))})}),n.type){case"linear":var d=ite(q2(u).filter(function(p){return p!==null}),function(p){return p});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=sg(u,function(p){return p.getTime()}).slice(0).sort(function(p,m){return m.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:De(f)};default:var h=q2(u);return{all:h,min:h[0],max:De(h)}}},L6=function(e,t,n){var r=kte(e),i=[];t[r].all.forEach(function(o){var a=pte(o)?Mte:$te,s=[];n.forEach(function(l){var c=l.data.find(function(h){return a(h.data[r],o)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=De(s);f===void 0?d=u:f!==null&&(d=f+u)}c.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)},Ate=function(e,t){return L6("x",e,t)},Rte=function(e,t){return L6("y",e,t)},F6=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}},B6={millisecond:[Jl,Jl],second:[eg,eg],minute:[OS,NS],hour:[AS,LS],day:[dn(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)}),dn(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:[xd,wd],sunday:[xd,wd],monday:[Ql,ec],tuesday:[RS,FS],wednesday:[DS,BS],thursday:[Go,Zo],friday:[IS,zS],saturday:[jS,WS],month:[PS,US],year:[to,no]},Dte=Object.keys(B6),Ite=new RegExp("^every\\s*(\\d+)?\\s*("+Dte.join("|")+")s?$","i"),z6=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Ite);if(n){var r=n[1],i=n[2],o=B6[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.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 Mr(){return Mr=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},Mr.apply(null,arguments)}var W6=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=z6(r,o),h=p6[d],p="bandwidth"in r?F6(r):r,m={lineX:0,lineY:0},g={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,w=h.baseline.center;return n==="x"?(t=function(C){var b;return{x:(b=p(C))!=null?b:0,y:0}},m.lineY=a*(i==="after"?1:-1),g.textY=(a+s)*(i==="after"?1:-1),w=i==="after"?h.baseline.top:h.baseline.bottom,l===0?_=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(_=h.align[x?"left":"right"],w=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=h.align[x?"right":"left"],w=h.baseline.center)):(t=function(C){var b;return{x:0,y:(b=p(C))!=null?b:0}},m.lineX=a*(i==="after"?1:-1),g.textX=(a+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var b=typeof C=="string"?function(S){var M=String(S).length;return c&&c>0&&M>c?""+String(S).slice(0,c).concat("..."):""+S}(C):C;return Mr({key:C instanceof Date?""+C.valueOf():""+C,value:b},t(C),m,g)}),textAlign:_,textBaseline:w}},U6=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Wf(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Rc(e)},lg=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||z6(i,a)),l="bandwidth"in i?F6(i):i,c=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(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=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},jte=v.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.theme,u=e.animatedProps,d=(t=r==null?void 0:r(n))!=null?t:n,f=v.useMemo(function(){var h={opacity:u.opacity};return a?{style:Mr({},h,{cursor:"pointer"}),onClick:function(p){return a(p,d)}}:{style:h}},[u.opacity,a,d]);return y.jsxs(Ht.g,Mr({transform:u.transform},f,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),y.jsx(Os,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Wn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},Pte=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?Wn.tickSize:u,f=e.tickPadding,h=f===void 0?Wn.tickPadding:f,p=e.tickRotation,m=p===void 0?Wn.tickRotation:p,g=e.format,x=e.renderTick,_=x===void 0?jte:x,w=e.truncateTickAt,C=e.legend,b=e.legendPosition,S=b===void 0?Wn.legendPosition:b,M=e.legendOffset,k=M===void 0?Wn.legendOffset:M,$=e.style,R=e.onClick,T=e.ariaHidden,E=Lt(),A=IU(E.axis,$),I=v.useMemo(function(){return U6(g,n)},[g,n]),j=W6({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:w}),D=j.ticks,O=j.textAlign,L=j.textBaseline,z=null;if(C!==void 0){var N,H=0,Y=0,q=0;t==="y"?(q=-90,H=k,S==="start"?(N="start",Y=s):S==="middle"?(N="middle",Y=s/2):S==="end"&&(N="end")):(Y=k,S==="start"?N="start":S==="middle"?(N="middle",H=s/2):S==="end"&&(N="end",H=s)),z=y.jsx(y.Fragment,{children:y.jsx(Os,{transform:"translate("+H+", "+Y+") rotate("+q+")",textAnchor:N,style:Mr({},A.legend.text,{dominantBaseline:"central"}),children:C})})}var Z=Fn(),X=Z.animate,J=Z.config,ee=Kr({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!X}),W=v.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),F=v.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),B=ea(D,{keys:function(V){return V.key},initial:W,from:F,enter:W,update:W,leave:{opacity:0},config:J,immediate:!X});return y.jsxs(Ht.g,{transform:ee.transform,"aria-hidden":T,children:[B(function(V,P,te,K){return fe.createElement(_,Mr({tickIndex:K,format:I,rotate:m,textBaseline:L,textAnchor:O,truncateTickAt:w,animatedProps:V,theme:A.ticks},P,R?{onClick:R}:{}))}),y.jsx(Ht.line,{style:A.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),z]})},Nte=v.memo(Pte),H6=["top","right","bottom","left"],V6=v.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:H6.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return y.jsx(Nte,Mr({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Lte=v.memo(function(e){var t=e.animatedProps,n=Lt();return y.jsx(Ht.line,Mr({},t,n.grid.line))}),Q2=v.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=ea(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return y.jsx("g",{children:o(function(a,s){return v.createElement(Lte,Mr({},s,{key:s.key,animatedProps:a}))})})}),q6=v.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=v.useMemo(function(){return!!r&&lg({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=v.useMemo(function(){return!!i&&lg({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Q2,{lines:s}),l&&y.jsx(Q2,{lines:l})]})}),Fte=function(e,t){var n,r,i=t.axis,o=t.scale,a=t.x,s=a===void 0?0:a,l=t.y,c=l===void 0?0:l,u=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,p=h===void 0?Wn.tickSize:h,m=t.tickPadding,g=m===void 0?Wn.tickPadding:m,x=t.tickRotation,_=x===void 0?Wn.tickRotation:x,w=t.format,C=t.legend,b=t.legendPosition,S=b===void 0?Wn.legendPosition:b,M=t.legendOffset,k=M===void 0?Wn.legendOffset:M,$=t.theme,R=t.style,T=W6({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:g,tickRotation:_,engine:"canvas"}),E=T.ticks,A=T.textAlign,I=T.textBaseline;e.save(),e.translate(s,c);var j=B3($.axis,R);e.textAlign=A,e.textBaseline=I,Xo(e,j.ticks.text);var D=(n=j.domain.line.strokeWidth)!=null?n:0;typeof D!="string"&&D>0&&(e.lineWidth=D,e.lineCap="square",j.domain.line.stroke&&(e.strokeStyle=j.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?u:0,i==="x"?0:u),e.stroke());var O=typeof w=="function"?w:function(Z){return""+Z},L=(r=j.ticks.line.strokeWidth)!=null?r:0,z=typeof L!="string"&&L>0;if(E.forEach(function(Z){z&&(e.lineWidth=L,e.lineCap="square",j.ticks.line.stroke&&(e.strokeStyle=j.ticks.line.stroke),e.beginPath(),e.moveTo(Z.x,Z.y),e.lineTo(Z.x+Z.lineX,Z.y+Z.lineY),e.stroke());var X=O(Z.value);e.save(),e.translate(Z.x+Z.textX,Z.y+Z.textY),e.rotate(fr(_)),Ko(e,j.ticks.text,""+X),e.fillText(""+X,0,0),e.restore()}),C!==void 0){var N=0,H=0,Y=0,q="center";i==="y"?(Y=-90,N=k,S==="start"?(q="start",H=u):S==="middle"?(q="center",H=u/2):S==="end"&&(q="end")):(H=k,S==="start"?q="start":S==="middle"?(q="center",N=u/2):S==="end"&&(q="end",N=u)),e.translate(N,H),e.rotate(fr(Y)),Xo(e,j.legend.text),j.legend.text.fill&&(e.fillStyle=j.legend.text.fill),e.textAlign=q,e.textBaseline="middle",Ko(e,j.legend.text,C)}e.restore()},Y6=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};H6.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",g=p?n:r,x=U6(h.format,g);Fte(e,Mr({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:g,format:x,length:p?i:o,ticksPosition:m,theme:u}))})},Cd=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;lg({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Bte=N3,zte=0;function Wte(e){var t=++zte;return Bte(e)+t}var Ute=Wte;const Hte=nn(Ute),vi=11102230246251565e-32,Tn=134217729,Vte=(3+8*vi)*vi;function Rp(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,s!==0&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,s!==0&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,s!==0&&(i[h++]=s);return(o!==0||h===0)&&(i[h++]=o),h}function qte(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Pc(e){return new Float64Array(e)}const Yte=(3+16*vi)*vi,Gte=(2+12*vi)*vi,Zte=(9+64*vi)*vi*vi,Sa=Pc(4),ex=Pc(8),tx=Pc(12),nx=Pc(16),Dn=Pc(4);function Xte(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,m,g,x,_,w,C,b,S,M,k;const $=e-i,R=n-i,T=t-o,E=r-o;C=$*E,f=Tn*$,h=f-(f-$),p=$-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=T*R,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*R,m=f-(f-R),g=R-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Sa[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Sa[1]=w-(x+d)+(d-S),k=_+x,d=k-_,Sa[2]=_-(k-d)+(x-d),Sa[3]=k;let A=qte(4,Sa),I=Gte*a;if(A>=I||-A>=I||(d=e-$,s=e-($+d)+(d-i),d=n-R,c=n-(R+d)+(d-i),d=t-T,l=t-(T+d)+(d-o),d=r-E,u=r-(E+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(I=Zte*a+Vte*Math.abs(A),A+=$*u+E*s-(T*c+R*l),A>=I||-A>=I))return A;C=s*E,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=l*R,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*R,m=f-(f-R),g=R-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),k=_+x,d=k-_,Dn[2]=_-(k-d)+(x-d),Dn[3]=k;const j=Rp(4,Sa,4,Dn,ex);C=$*u,f=Tn*$,h=f-(f-$),p=$-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=T*c,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),k=_+x,d=k-_,Dn[2]=_-(k-d)+(x-d),Dn[3]=k;const D=Rp(j,ex,4,Dn,tx);C=s*u,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=l*c,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),k=_+x,d=k-_,Dn[2]=_-(k-d)+(x-d),Dn[3]=k;const O=Rp(D,tx,4,Dn,nx);return nx[O-1]}function fu(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=Yte*c?l:-Xte(e,t,n,r,i,o,c)}const rx=Math.pow(2,-52),hu=new Uint32Array(512);class Sd{static from(t,n=tne,r=nne){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new Sd(o)}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:o}=this,a=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let $=0;$<a;$++){const R=t[2*$],T=t[2*$+1];R<s&&(s=R),T<l&&(l=T),R>c&&(c=R),T>u&&(u=T),this._ids[$]=$}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let $=0,R=1/0;$<a;$++){const T=Dp(d,f,t[2*$],t[2*$+1]);T<R&&(h=$,R=T)}const g=t[2*h],x=t[2*h+1];for(let $=0,R=1/0;$<a;$++){if($===h)continue;const T=Dp(g,x,t[2*$],t[2*$+1]);T<R&&T>0&&(p=$,R=T)}let _=t[2*p],w=t[2*p+1],C=1/0;for(let $=0;$<a;$++){if($===h||$===p)continue;const R=Qte(g,x,_,w,t[2*$],t[2*$+1]);R<C&&(m=$,C=R)}let b=t[2*m],S=t[2*m+1];if(C===1/0){for(let T=0;T<a;T++)this._dists[T]=t[2*T]-t[0]||t[2*T+1]-t[1];Ia(this._ids,this._dists,0,a-1);const $=new Uint32Array(a);let R=0;for(let T=0,E=-1/0;T<a;T++){const A=this._ids[T],I=this._dists[A];I>E&&($[R++]=A,E=I)}this.hull=$.subarray(0,R),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(fu(g,x,_,w,b,S)<0){const $=p,R=_,T=w;p=m,_=b,w=S,m=$,b=R,S=T}const M=ene(g,x,_,w,b,S);this._cx=M.x,this._cy=M.y;for(let $=0;$<a;$++)this._dists[$]=Dp(t[2*$],t[2*$+1],M.x,M.y);Ia(this._ids,this._dists,0,a-1),this._hullStart=h;let k=3;r[h]=n[m]=p,r[p]=n[h]=m,r[m]=n[p]=h,i[h]=0,i[p]=1,i[m]=2,o.fill(-1),o[this._hashKey(g,x)]=h,o[this._hashKey(_,w)]=p,o[this._hashKey(b,S)]=m,this.trianglesLen=0,this._addTriangle(h,p,m,-1,-1,-1);for(let $=0,R,T;$<this._ids.length;$++){const E=this._ids[$],A=t[2*E],I=t[2*E+1];if($>0&&Math.abs(A-R)<=rx&&Math.abs(I-T)<=rx||(R=A,T=I,E===h||E===p||E===m))continue;let j=0;for(let N=0,H=this._hashKey(A,I);N<this._hashSize&&(j=o[(H+N)%this._hashSize],!(j!==-1&&j!==r[j]));N++);j=n[j];let D=j,O;for(;O=r[D],fu(A,I,t[2*D],t[2*D+1],t[2*O],t[2*O+1])>=0;)if(D=O,D===j){D=-1;break}if(D===-1)continue;let L=this._addTriangle(D,E,r[D],-1,-1,i[D]);i[E]=this._legalize(L+2),i[D]=L,k++;let z=r[D];for(;O=r[z],fu(A,I,t[2*z],t[2*z+1],t[2*O],t[2*O+1])<0;)L=this._addTriangle(z,E,O,i[E],-1,i[z]),i[E]=this._legalize(L+2),r[z]=z,k--,z=O;if(D===j)for(;O=n[D],fu(A,I,t[2*O],t[2*O+1],t[2*D],t[2*D+1])<0;)L=this._addTriangle(O,E,D,-1,i[D],i[O]),this._legalize(L+2),i[O]=L,r[D]=D,k--,D=O;this._hullStart=n[E]=D,r[D]=n[z]=E,r[E]=z,o[this._hashKey(A,I)]=E,o[this._hashKey(t[2*D],t[2*D+1])]=D}this.hull=new Uint32Array(k);for(let $=0,R=this._hullStart;$<k;$++)this.hull[$]=R,R=r[R];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Kte(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],l=t-t%3;if(a=l+(t+2)%3,s===-1){if(o===0)break;t=hu[--o];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[a],h=n[t],p=n[u],m=n[d];if(Jte(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const x=r[d];if(x===-1){let w=this._hullStart;do{if(this._hullTri[w]===d){this._hullTri[w]=t;break}w=this._hullPrev[w]}while(w!==this._hullStart)}this._link(t,x),this._link(s,r[a]),this._link(a,d);const _=c+(s+1)%3;o<hu.length&&(hu[o++]=_)}else{if(o===0)break;t=hu[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){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,o),this._link(s+2,a),this.trianglesLen+=3,s}}function Kte(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Dp(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function Jte(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,p=l*l+c*c,m=u*u+d*d,g=f*f+h*h;return l*(d*g-m*h)-c*(u*g-m*f)+p*(u*h-d*f)<0}function Qte(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,p=(a*d-l*u)*f;return h*h+p*p}function ene(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=e+(c*u-s*d)*f,p=t+(a*d-l*u)*f;return{x:h,y:p}}function Ia(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;el(e,i,o),t[e[n]]>t[e[r]]&&el(e,n,r),t[e[o]]>t[e[r]]&&el(e,o,r),t[e[n]]>t[e[o]]&&el(e,n,o);const s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]<l);do a--;while(t[e[a]]>l);if(a<o)break;el(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(Ia(e,t,o,r),Ia(e,t,n,a-1)):(Ia(e,t,n,a-1),Ia(e,t,o,r))}}function el(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tne(e){return e[0]}function nne(e){return e[1]}const ix=1e-6;class Ao{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,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>ix||Math.abs(this._y1-o)>ix)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}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 cg{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 rne{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(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=o,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 o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,g=0,x=r.length,_,w;m<x;m+=3,g+=2){const C=r[m]*2,b=r[m+1]*2,S=r[m+2]*2,M=t[C],k=t[C+1],$=t[b],R=t[b+1],T=t[S],E=t[S+1],A=$-M,I=R-k,j=T-M,D=E-k,O=(A*D-I*j)*2;if(Math.abs(O)<1e-9){if(o===void 0){o=a=0;for(const z of n)o+=t[z*2],a+=t[z*2+1];o/=n.length,a/=n.length}const L=1e9*Math.sign((o-M)*D-(a-k)*j);_=(M+T)/2-L*D,w=(k+E)/2+L*j}else{const L=1/O,z=A*A+I*I,N=j*j+D*D;_=M+(D*z-I*N)*L,w=k+(A*N-j*z)*L}s[g]=_,s[g+1]=w}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,p=t[2*l+1];i.fill(0);for(let m=0;m<n.length;++m)l=n[m],c=u,d=f,h=p,u=l*4,f=t[2*l],p=t[2*l+1],i[c+2]=i[u]=h-p,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Ao:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.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,p=Math.floor(f/3)*2,m=a[h],g=a[h+1],x=a[p],_=a[p+1];this._renderSegment(m,g,x,_,t)}let l,c=o[o.length-1];for(let u=0;u<o.length;++u){l=c,c=o[u];const d=Math.floor(i[c]/3)*2,f=a[d],h=a[d+1],p=l*4,m=this._project(f,h,s[p+2],s[p+3]);m&&this._renderSegment(f,h,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Ao: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 Ao:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+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 cg;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,l))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[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 o=0,a=n.length;o<a;o+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+l-2)%l]&&n[(o+3)%a]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let l=a;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,o[l]!==t)break;l=i[l]}while(l!==a&&l!==-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,o,a,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let p,m,g,x,_;if(c===0){if((p=this._clipSegment(o,a,s,l,c,u))===null)continue;[m,g,x,_]=p}else{if((p=this._clipSegment(s,l,o,a,u,c))===null)continue;[x,_,m,g]=p,d=f,f=this._edgecode(m,g),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,g):i=[m,g]}d=f,f=this._edgecode(x,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,_):i=[x,_]}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,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let l,c,u=o||a;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),o?(t=l,n=c,o=this._regioncode(t,n)):(r=l,i=c,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),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,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,l=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}_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 ine=2*Math.PI,Ta=Math.pow;function one(e){return e[0]}function ane(e){return e[1]}function sne(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function lne(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class yh{static from(t,n=one,r=ane,i){return new yh("length"in t?cne(t,n,r,i):Float64Array.from(une(t,n,r,i)))}constructor(t){this._delaunator=new Sd(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&&sne(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 l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+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 p=lne(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Sd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=o[l%3===2?l-2:l+1];(r[l]===-1||a[u]===-1)&&(a[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;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],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new rne(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,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 l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=a[c],c=c%3===2?c-2:c+1,a[c]!==t)return;if(c=o[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=Ta(n-c[t*2],2)+Ta(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const m=Ta(n-c[p*2],2)+Ta(r-c[p*2+1],2);if(m<d&&(d=m,u=p),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=o[(a[t]+1)%o.length],h!==p&&Ta(n-c[h*2],2)+Ta(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Ao:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const l=i[a];if(l<a)continue;const c=o[a]*2,u=o[l]*2;t.moveTo(r[c],r[c+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 Ao:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],l=i[o+1];t.moveTo(s+n,l),t.arc(s,l,n,0,ine)}return r&&r.value()}renderHull(t){const n=t==null?t=new Ao:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new cg;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Ao:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,l=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+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 cg;return this.renderTriangle(t,n),n.value()}}function cne(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*une(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}function Td(){return Td=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},Td.apply(null,arguments)}function G6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qn={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},Hv=function(e){return[e.x,e.y]},Nc=b6,Z6="cursor",X6="top",dne=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Hv:n,i=e.margin,o=i===void 0?Nc:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},fne=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Nc:i,a=e.debug,s=yh.from(t),l=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},K6=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Hv:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Nc:a,l=e.debug;return v.useMemo(function(){return fne({points:dne({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[r,t,i,o,s,l])},hne=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=v.useMemo(function(){return gd().domain(i).range([0,n])},[i,n]),s=v.useMemo(function(){return gd().domain(o).range([0,r])},[o,r]),l=v.useMemo(function(){return t.map(function(c){return{x:a(c.x),y:s(c.y),data:c}})},[t,a,s]);return v.useMemo(function(){var c=yh.from(l.map(function(d){return[d.x,d.y]})),u=c.voronoi([0,0,n,r]);return{points:l,delaunay:c,voronoi:u}},[l,n,r])},pne=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return v.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},mne=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Hv:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Nc:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,p=e.onMouseMove,m=e.onMouseLeave,g=e.onMouseDown,x=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,b=e.onTouchMove,S=e.onTouchEnd,M=e.enableTouchCrosshair,k=M!==void 0&&M,$=e.tooltip,R=e.tooltipPosition,T=R===void 0?Z6:R,E=e.tooltipAnchor,A=E===void 0?X6:E,I=v.useState(null),j=I[0],D=I[1],O=v.useRef(null);v.useEffect(function(){O.current=j},[O,j]);var L=v.useCallback(function(K){if(!t.current||n.length===0)return null;var G=Ba(t.current,K),ae=G[0],ne=G[1],re=o.find(ae,ne),oe=re!==void 0?n[re]:null;if(oe&&u!==1/0){var le=i(oe),ye=le[0],ge=le[1];x6(ae,ne,ye+l.left,ge+l.top)>u&&(re=null,oe=null)}return re===null||oe===null?null:[re,oe]},[t,o,n,i,l,u]),z=$i(),N=z.showTooltipAt,H=z.showTooltipFromEvent,Y=z.hideTooltip,q=v.useMemo(function(){if($)return T==="cursor"?function(K,G){H($(K),G,A)}:function(K){var G=i(K),ae=G[0],ne=G[1];N($(K),[ae+l.left,ne+l.top],A)}},[N,H,$,T,A,i,l]),Z=v.useCallback(function(K){var G=L(K);if(D(G),a==null||a(G?G[1]:null),G){var ae=G[1];q==null||q(ae,K),h==null||h(G[1],K)}},[L,D,a,q,h]),X=v.useCallback(function(K){var G=L(K);if(D(G),G){var ae=G[0],ne=G[1];if(a==null||a(ne),q==null||q(ne,K),O.current){var re=O.current,oe=re[0],le=re[1];ae!==oe?m==null||m(le,K):p==null||p(ne,K)}else h==null||h(ne,K)}else a==null||a(null),Y==null||Y(),O.current&&(m==null||m(O.current[1],K))},[L,D,a,O,h,p,m,q,Y]),J=v.useCallback(function(K){D(null),a==null||a(null),Y(),m&&O.current&&m(O.current[1],K)},[D,a,O,Y,m]),ee=v.useCallback(function(K){var G=L(K);D(G),G&&(g==null||g(G[1],K))},[L,D,g]),W=v.useCallback(function(K){var G=L(K);D(G),G&&(x==null||x(G[1],K))},[L,D,x]),F=v.useCallback(function(K){var G=L(K);D(G),G&&(_==null||_(G[1],K))},[L,D,_]),B=v.useCallback(function(K){var G=L(K);D(G),G&&(w==null||w(G[1],K))},[L,D,w]),V=v.useCallback(function(K){var G=L(K);k&&(D(G),a==null||a(G?G[1]:null)),G&&(C==null||C(G[1],K))},[L,D,a,k,C]),P=v.useCallback(function(K){var G=L(K);k&&(D(G),a==null||a(G?G[1]:null)),G&&(b==null||b(G[1],K))},[L,D,a,k,b]),te=v.useCallback(function(K){k&&(D(null),a==null||a(null)),S&&O.current&&S(O.current[1],K)},[k,D,a,S,O]);return{current:j,handleMouseEnter:f?Z:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?W:void 0,handleClick:f?F:void 0,handleDoubleClick:f?B:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?P:void 0,handleTouchEnd:f?te:void 0}},gne=["theme"],vne=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=o===void 0?Qn.layers:o,s=e.xDomain,l=s===void 0?Qn.xDomain:s,c=e.yDomain,u=c===void 0?Qn.yDomain:c,d=e.enableLinks,f=d===void 0?Qn.enableLinks:d,h=e.linkLineWidth,p=h===void 0?Qn.linkLineWidth:h,m=e.linkLineColor,g=m===void 0?Qn.linkLineColor:m,x=e.enableCells,_=x===void 0?Qn.enableCells:x,w=e.cellLineWidth,C=w===void 0?Qn.cellLineWidth:w,b=e.cellLineColor,S=b===void 0?Qn.cellLineColor:b,M=e.enablePoints,k=M===void 0?Qn.enableCells:M,$=e.pointSize,R=$===void 0?Qn.pointSize:$,T=e.pointColor,E=T===void 0?Qn.pointColor:T,A=e.role,I=A===void 0?Qn.role:A,j=e.forwardedRef,D=ca(n,r,i),O=D.outerWidth,L=D.outerHeight,z=D.margin,N=D.innerWidth,H=D.innerHeight,Y=hne({data:t,width:N,height:H,xDomain:l,yDomain:u}),q=Y.points,Z=Y.delaunay,X=Y.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(J.links=y.jsx("path",{stroke:g,strokeWidth:p,fill:"none",d:Z.render()},"links")),_&&a.includes("cells")&&(J.cells=y.jsx("path",{d:X.render(),fill:"none",stroke:S,strokeWidth:C},"cells")),k&&a.includes("points")&&(J.points=y.jsx("path",{stroke:"none",fill:E,d:Z.renderPoints(void 0,R/2)},"points")),a.includes("bounds")&&(J.bounds=y.jsx("path",{fill:"none",stroke:S,strokeWidth:C,d:X.renderBounds()},"bounds"));var ee=pne({points:q,delaunay:Z,voronoi:X});return y.jsx(bh,{width:O,height:L,margin:z,role:I,ref:j,children:a.map(function(W,F){return J[W]!==void 0?J[W]:typeof W=="function"?y.jsx(v.Fragment,{children:v.createElement(W,ee)},F):null})})},bne=v.forwardRef(function(e,t){var n=e.theme,r=G6(e,gne);return y.jsx(sa,{isInteractive:!1,animate:!1,theme:n,children:y.jsx(vne,Td({},r,{forwardedRef:t}))})}),yne=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=G6(e,yne);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(bne,Td({},a,{width:l,height:c,ref:t}))}})});var xne=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Nc:i,a=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,C=e.detectionRadius,b=C===void 0?1/0:C,S=e.tooltip,M=e.tooltipPosition,k=M===void 0?Z6:M,$=e.tooltipAnchor,R=$===void 0?X6:$,T=e.debug,E=v.useRef(null),A=K6({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:T}),I=A.delaunay,j=A.voronoi,D=mne({elementRef:E,nodes:t,delaunay:I,margin:o,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:m,onTouchMove:g,onTouchEnd:x,enableTouchCrosshair:w,tooltip:S,tooltipPosition:k,tooltipAnchor:R}),O=D.current,L=D.handleMouseEnter,z=D.handleMouseMove,N=D.handleMouseLeave,H=D.handleMouseDown,Y=D.handleMouseUp,q=D.handleClick,Z=D.handleDoubleClick,X=D.handleTouchStart,J=D.handleTouchMove,ee=D.handleTouchEnd,W=v.useMemo(function(){if(T&&j)return j.render()},[T,j]);return y.jsxs("g",{ref:E,transform:"translate("+-o.left+","+-o.top+")",children:[T&&j&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:W,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:I.renderPoints(void 0,b)}),O&&y.jsx("path",{fill:"pink",opacity:.35,d:j.renderCell(O[0])})]}),y.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:L,onMouseMove:z,onMouseLeave:N,onMouseDown:H,onMouseUp:Y,onTouchStart:X,onTouchMove:J,onTouchEnd:ee,onClick:q,onDoubleClick:Z})]})},wne=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},_ne=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function En(){return En=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},En.apply(null,arguments)}function xh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ox,li={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:v.memo(function(e){var t=e.point;return y.jsx(J0,{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.seriesColor})}),sliceTooltip:v.memo(function(e){var t=e.slice,n=e.axis,r=Lt(),i=n==="x"?"y":"x";return y.jsx(H3,{rows:t.points.map(function(o){return[y.jsx(U3,{color:o.seriesColor,style:r.tooltip.chip},"chip"),o.seriesId,y.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},st=En({},li,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),en=En({},li,{pixelRatio:typeof window<"u"&&(ox=window.devicePixelRatio)!=null?ox:1,axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn});function Cne(e){return v.useMemo(function(){return lv().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(v6(e))},[e])}function Sne(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return v.useMemo(function(){return CV().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(v6(t)).y0(n(r))},[t,n,r])}var Tne=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return v.useMemo(function(){if(n==="x"){var a=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(a.has(l.x)?a.get(l.x).push(l):a.set(l.x,[l]))}),Array.from(a.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:o,points:p.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:o-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}return[]},[t,n,o,r,i])},kne="line",J6=function(e){var t=e.data,n=e.xScale,r=n===void 0?li.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?li.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?li.colors:u,f=e.curve,h=f===void 0?li.curve:f,p=e.areaBaselineValue,m=p===void 0?li.areaBaselineValue:p,g=e.pointColor,x=g===void 0?li.pointColor:g,_=e.pointBorderColor,w=_===void 0?li.pointBorderColor:_,C=e.enableSlices,b=C===void 0?st.enableSlices:C,S=e.initialHiddenIds,M=S===void 0?st.initialHiddenIds:S,k=v.useState(Hte(kne))[0],$=ss(i),R=ss(s),T=Lv(d,"id"),E=Lt(),A=mr(x,E),I=mr(w,E),j=v.useState(M??[]),D=j[0],O=j[1],L=v.useMemo(function(){return Ete(t.filter(function(W){return D.indexOf(W.id)===-1}),r,a,l,c)},[t,D,r,a,l,c]),z=L.xScale,N=L.yScale,H=L.series,Y=v.useMemo(function(){var W=t.map(function(B){return{id:B.id,label:""+B.id,color:T(B)}}),F=W.map(function(B){return En({},H.find(function(V){return V.id===B.id}),{color:B.color})}).filter(function(B){return!!B.id});return{legendData:W.map(function(B){return En({},B,{hidden:!F.find(function(V){return V.id===B.id})})}).reverse(),series:F}},[t,H,T]),q=Y.legendData,Z=Y.series,X=v.useCallback(function(W){O(function(F){return F.indexOf(W)>-1?F.filter(function(B){return B!==W}):[].concat(F,[W])})},[]),J=function(W){var F=W.series,B=W.getPointColor,V=W.getPointBorderColor,P=W.formatX,te=W.formatY;return v.useMemo(function(){return F.reduce(function(K,G,ae){return[].concat(K,G.data.filter(function(ne){return ne.position.x!==null&&ne.position.y!==null}).map(function(ne,re){var oe={id:G.id+"."+re,indexInSeries:re,absIndex:K.length+re,seriesIndex:ae,seriesId:G.id,seriesColor:G.color,x:ne.position.x,y:ne.position.y,data:En({},ne.data,{xFormatted:P(ne.data.x),yFormatted:te(ne.data.y)})};return oe.color=B({series:G,point:oe}),oe.borderColor=V(oe),oe}))},[])},[F,B,V,P,te])}({series:Z,getPointColor:A,getPointBorderColor:I,formatX:$,formatY:R}),ee=Tne({componentId:k,enableSlices:b,points:J,width:l,height:c});return{legendData:q,toggleSeries:X,lineGenerator:Cne(h),areaGenerator:Sne({curve:h,yScale:N,areaBaselineValue:m}),getColor:T,series:Z,xScale:z,yScale:N,slices:ee,points:J}},$ne=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,l=a.config,c=Iv(o),u=Kr({color:r,config:l,immediate:!s});return y.jsx(Ht.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Mne=v.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return y.jsx("g",{children:i.map(function(o){return y.jsx($ne,En({path:t(o.data.map(function(a){return a.position}))},En({areaOpacity:n,areaBlendMode:r},o)),""+o.id)})})}),Ene=v.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=v.useMemo(function(){return t(n)},[t,n]),a=Iv(o);return y.jsx(Ht.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),One=v.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return y.jsx(y.Fragment,{children:t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return y.jsx(Ene,{points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})})}),Ane=v.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=$i(),w=_.showTooltipFromEvent,C=_.hideTooltip,b=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),s(t),l==null||l(t,j)},[w,o,t,r,s,l]),S=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),c==null||c(t,j)},[w,o,t,r,c]),M=v.useCallback(function(j){C(),s(null),u==null||u(t,j)},[C,s,u,t]),k=v.useCallback(function(j){d==null||d(t,j)},[t,d]),$=v.useCallback(function(j){f==null||f(t,j)},[t,f]),R=v.useCallback(function(j){h==null||h(t,j)},[t,h]),T=v.useCallback(function(j){p==null||p(t,j)},[t,p]),E=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),s(t),m==null||m(t,j)},[r,m,s,w,t,o]),A=v.useCallback(function(j){var D=j.touches[0],O=document.elementFromPoint(D.clientX,D.clientY),L=O==null?void 0:O.getAttribute("data-ref");if(L){var z=n.find(function(N){return N.id===L});z&&(w(v.createElement(o,{slice:z,axis:r}),j,"right"),s(z))}g==null||g(t,j)},[r,g,s,w,t,n,o]),I=v.useCallback(function(j){C(),s(null),x==null||x(t,j)},[C,s,x,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:a&&i?.35:0,onMouseEnter:b,onMouseMove:S,onMouseLeave:M,onMouseDown:k,onMouseUp:$,onClick:R,onDoubleClick:T,onTouchStart:E,onTouchMove:A,onTouchEnd:I,"data-ref":t.id})}),Rne=v.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,o=e.current,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onMouseDown,d=e.onMouseUp,f=e.onClick,h=e.onDoubleClick,p=e.onTouchStart,m=e.onTouchMove,g=e.onTouchEnd;return y.jsx(y.Fragment,{children:t.map(function(x){return y.jsx(Ane,{slice:x,slices:t,axis:n,debug:r,tooltip:i,setCurrent:a,isCurrent:o!==null&&o.id===x.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:h,onTouchStart:p,onTouchMove:m,onTouchEnd:g},x.id)})})}),Dne=v.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,l=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,m=e.ariaHidden,g=e.ariaDisabled,x=UK(a),_=$i(),w=_.showTooltipAt,C=_.hideTooltip,b=t.slice(0).sort(function(S,M){return S.indexInSeries-M.indexInSeries}).sort(function(S,M){return M.seriesIndex-S.seriesIndex}).map(function(S){return{id:S.id,x:S.x,y:S.y,datum:S.data,fill:S.color,stroke:S.borderColor,label:o?x(S):null,ariaLabel:f?f(S):void 0,ariaLabelledBy:h?h(S):void 0,ariaDescribedBy:p?p(S):void 0,ariaHidden:m?m(S):void 0,ariaDisabled:g?g(S):void 0,onFocus:l?function(){c(S),w(v.createElement(u,{point:S}),[d.left+S.x,d.top+S.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return y.jsx("g",{children:b.map(function(S){return y.jsx(FK,{x:S.x,y:S.y,datum:S.datum,symbol:n,size:r,color:S.fill,borderWidth:i,borderColor:S.stroke,label:S.label,labelYOffset:s,ariaLabel:S.ariaLabel,ariaLabelledBy:S.ariaLabelledBy,ariaDescribedBy:S.ariaDescribedBy,ariaHidden:S.ariaHidden,ariaDisabled:S.ariaDisabled,isFocusable:l,onFocus:S.onFocus,onBlur:S.onBlur,testId:"line.point."+S.id},S.id)})})}),Ine=v.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,m=e.onTouchEnd,g=e.tooltip,x=e.debug,_=e.enableTouchCrosshair,w=$i(),C=w.showTooltipAt,b=w.hideTooltip,S=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),a==null||a(D,O)},[C,g,a,i]),M=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),s==null||s(D,O)},[C,g,i.left,i.top,s]),k=v.useCallback(function(D,O){b(),l==null||l(D,O)},[b,l]),$=v.useCallback(function(D,O){c==null||c(D,O)},[c]),R=v.useCallback(function(D,O){u==null||u(D,O)},[u]),T=v.useCallback(function(D,O){d==null||d(D,O)},[d]),E=v.useCallback(function(D,O){f==null||f(D,O)},[f]),A=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),h==null||h(D,O)},[i.left,i.top,h,C,g]),I=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),p==null||p(D,O)},[i.left,i.top,p,C,g]),j=v.useCallback(function(D,O){b(),m==null||m(D,O)},[m,b]);return y.jsx(xne,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:S,onMouseMove:M,onMouseLeave:k,onMouseDown:$,onMouseUp:R,onClick:T,onDoubleClick:E,onTouchStart:A,onTouchMove:I,onTouchEnd:j,enableTouchCrosshair:_,debug:x})}),jne=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Pne(e){var t=e.data,n=e.xScale,r=n===void 0?st.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?st.yScale:o,s=e.yFormat,l=e.curve,c=l===void 0?st.curve:l,u=e.margin,d=e.width,f=e.height,h=e.colors,p=h===void 0?st.colors:h,m=e.lineWidth,g=m===void 0?st.lineWidth:m,x=e.layers,_=x===void 0?st.layers:x,w=e.enableArea,C=w===void 0?st.enableArea:w,b=e.areaBaselineValue,S=b===void 0?st.areaBaselineValue:b,M=e.areaOpacity,k=M===void 0?st.areaOpacity:M,$=e.areaBlendMode,R=$===void 0?st.areaBlendMode:$,T=e.enablePoints,E=T===void 0?st.enablePoints:T,A=e.pointSymbol,I=e.pointSize,j=I===void 0?st.pointSize:I,D=e.pointColor,O=D===void 0?st.pointColor:D,L=e.pointBorderWidth,z=L===void 0?st.pointBorderWidth:L,N=e.pointBorderColor,H=N===void 0?st.pointBorderColor:N,Y=e.enablePointLabel,q=Y===void 0?st.enablePointLabel:Y,Z=e.pointLabel,X=Z===void 0?st.pointLabel:Z,J=e.pointLabelYOffset,ee=e.enableGridX,W=ee===void 0?st.enableGridX:ee,F=e.gridXValues,B=e.enableGridY,V=B===void 0?st.enableGridY:B,P=e.gridYValues,te=e.axisTop,K=e.axisRight,G=e.axisBottom,ae=G===void 0?st.axisBottom:G,ne=e.axisLeft,re=ne===void 0?st.axisLeft:ne,oe=e.defs,le=oe===void 0?st.defs:oe,ye=e.fill,ge=ye===void 0?st.fill:ye,be=e.markers,Me=e.legends,ce=Me===void 0?st.legends:Me,de=e.isInteractive,Ce=de===void 0?st.isInteractive:de,Ge=e.useMesh,we=Ge===void 0?st.useMesh:Ge,ve=e.debugMesh,Ne=ve===void 0?st.debugMesh:ve,Ze=e.onMouseEnter,_t=e.onMouseMove,Te=e.onMouseLeave,Re=e.onMouseDown,ot=e.onMouseUp,Ue=e.onClick,mt=e.onDoubleClick,ut=e.onTouchStart,At=e.onTouchMove,Ke=e.onTouchEnd,Le=e.tooltip,Ve=Le===void 0?st.tooltip:Le,et=e.enableSlices,Fe=et===void 0?st.enableSlices:et,tt=e.debugSlices,vt=tt===void 0?st.debugSlices:tt,at=e.sliceTooltip,Pe=at===void 0?st.sliceTooltip:at,Ee=e.enableCrosshair,Ye=Ee===void 0?st.enableCrosshair:Ee,xt=e.crosshairType,nt=xt===void 0?st.crosshairType:xt,bt=e.enableTouchCrosshair,Jt=bt===void 0?st.enableTouchCrosshair:bt,Ft=e.role,zt=Ft===void 0?st.role:Ft,fn=e.ariaLabel,qt=e.ariaLabelledBy,ke=e.ariaDescribedBy,Je=e.isFocusable,St=Je===void 0?st.isFocusable:Je,on=e.pointAriaLabel,Yt=e.pointAriaLabelledBy,Be=e.pointAriaDescribedBy,ze=e.pointAriaHidden,ht=e.pointAriaDisabled,Rt=e.initialHiddenIds,Tt=Rt===void 0?st.initialHiddenIds:Rt,Qe=e.forwardedRef,kt=ca(d,f,u),br=kt.margin,ln=kt.innerWidth,cn=kt.innerHeight,An=kt.outerWidth,ao=kt.outerHeight,Ct=J6({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:ln,height:cn,colors:p,curve:c,areaBaselineValue:S,pointColor:O,pointBorderColor:H,enableSlices:Fe,initialHiddenIds:Tt}),so=Ct.legendData,Ae=Ct.toggleSeries,Ar=Ct.lineGenerator,lo=Ct.areaGenerator,ua=Ct.series,da=Ct.xScale,ei=Ct.yScale,zc=Ct.slices,ti=Ct.points,Is=v.useState(null),co=Is[0],js=Is[1],Wc=v.useState(null),uo=Wc[0],Uc=Wc[1],Rn={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(W||V)&&(Rn.grid=y.jsx(q6,{width:ln,height:cn,xScale:W?da:null,yScale:V?ei:null,xValues:F,yValues:P},"grid")),_.includes("markers")&&Array.isArray(be)&&be.length>0&&(Rn.markers=y.jsx(g6,{markers:be,width:ln,height:cn,xScale:da,yScale:ei},"markers")),_.includes("axes")&&(Rn.axes=y.jsx(V6,{xScale:da,yScale:ei,width:ln,height:cn,top:te,right:K,bottom:ae,left:re},"axes")),_.includes("lines")&&(Rn.lines=y.jsx(One,{series:ua,lineGenerator:Ar,lineWidth:g},"lines")),_.includes("legends")&&ce.length>0&&(Rn.legends=y.jsx(v.Fragment,{children:ce.map(function(Rr,Mi){return y.jsx(zv,En({},Rr,{containerWidth:ln,containerHeight:cn,data:Rr.data||so,toggleSerie:Rr.toggleSerie?Ae:void 0}),Mi)})},"legends"));var Oh=Pv(le,ua,ge);C&&(Rn.areas=y.jsx(Mne,{areaGenerator:lo,areaOpacity:k,areaBlendMode:R,series:ua},"areas")),Ce&&Fe!==!1&&(Rn.slices=y.jsx(Rne,{slices:zc,axis:Fe,debug:vt,tooltip:Pe,current:uo,setCurrent:Uc,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:ot,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:At,onTouchEnd:Ke},"slices")),E&&(Rn.points=y.jsx(Dne,{points:ti,symbol:A,size:j,borderWidth:z,enableLabel:q,label:X,labelYOffset:J,isFocusable:St,setCurrentPoint:js,tooltip:Ve,margin:br,ariaLabel:on,ariaLabelledBy:Yt,ariaDescribedBy:Be,ariaHidden:ze,ariaDisabled:ht},"points")),Ce&&Ye&&(co!==null&&(Rn.crosshair=y.jsx(Um,{width:ln,height:cn,x:co.x,y:co.y,type:nt},"crosshair")),uo!==null&&Fe&&(Rn.crosshair=y.jsx(Um,{width:ln,height:cn,x:uo.x,y:uo.y,type:Fe},"crosshair"))),Ce&&we&&Fe===!1&&(Rn.mesh=y.jsx(Ine,{points:ti,width:ln,height:cn,margin:br,setCurrent:js,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:ot,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:At,onTouchEnd:Ke,tooltip:Ve,enableTouchCrosshair:Jt,debug:Ne},"mesh"));var Ah=En({},e,{innerWidth:ln,innerHeight:cn,series:ua,slices:zc,points:ti,xScale:da,yScale:ei,lineGenerator:Ar,areaGenerator:lo,currentPoint:co,setCurrentPoint:js,currentSlice:uo,setCurrentSlice:Uc});return y.jsx(bh,{defs:Oh,width:An,height:ao,margin:br,role:zt,ariaLabel:fn,ariaLabelledBy:qt,ariaDescribedBy:ke,isFocusable:St,ref:Qe,children:_.map(function(Rr,Mi){return typeof Rr=="function"?y.jsx(v.Fragment,{children:Rr(Ah)},Mi):Rn[Rr]})})}var Nne=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?st.isInteractive:n,i=e.animate,o=i===void 0?st.animate:i,a=e.motionConfig,s=a===void 0?st.motionConfig:a,l=e.theme,c=e.renderWrapper,u=xh(e,jne);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Pne,En({isInteractive:r},u,{forwardedRef:t}))})}),Lne=["defaultWidth","defaultHeight","onResize","debounceResize"],Fne=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=xh(e,Lne);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Nne,En({width:l,height:c},a,{ref:t}))}})}),Bne=["isInteractive","renderWrapper","theme"],zne=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=i===void 0?en.pixelRatio:i,a=e.data,s=e.xScale,l=s===void 0?en.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?en.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?en.curve:h,m=e.layers,g=m===void 0?en.layers:m,x=e.colors,_=x===void 0?en.colors:x,w=e.lineWidth,C=w===void 0?en.lineWidth:w,b=e.enableArea,S=b===void 0?en.enableArea:b,M=e.areaBaselineValue,k=M===void 0?en.areaBaselineValue:M,$=e.areaOpacity,R=$===void 0?en.areaOpacity:$,T=e.enablePoints,E=T===void 0?en.enablePoints:T,A=e.pointSize,I=A===void 0?en.pointSize:A,j=e.pointColor,D=j===void 0?en.pointColor:j,O=e.pointBorderWidth,L=O===void 0?en.pointBorderWidth:O,z=e.pointBorderColor,N=z===void 0?en.pointBorderColor:z,H=e.enableGridX,Y=H===void 0?en.enableGridX:H,q=e.gridXValues,Z=e.enableGridY,X=Z===void 0?en.enableGridY:Z,J=e.gridYValues,ee=e.axisTop,W=e.axisRight,F=e.axisBottom,B=F===void 0?en.axisBottom:F,V=e.axisLeft,P=V===void 0?en.axisLeft:V,te=e.legends,K=te===void 0?en.legends:te,G=e.isInteractive,ae=G===void 0?en.isInteractive:G,ne=e.debugMesh,re=ne===void 0?en.debugMesh:ne,oe=e.onMouseLeave,le=e.onMouseDown,ye=e.onMouseUp,ge=e.onClick,be=e.onDoubleClick,Me=e.tooltip,ce=Me===void 0?en.tooltip:Me,de=e.role,Ce=e.forwardedRef,Ge=v.useRef(null),we=ca(t,n,r),ve=we.margin,Ne=we.innerWidth,Ze=we.innerHeight,_t=we.outerWidth,Te=we.outerHeight,Re=Lt(),ot=v.useState(null),Ue=ot[0],mt=ot[1],ut=J6({data:a,xScale:l,xFormat:c,yScale:d,yFormat:f,width:Ne,height:Ze,colors:_,curve:p,areaBaselineValue:k,pointColor:D,pointBorderColor:N}),At=ut.lineGenerator,Ke=ut.areaGenerator,Le=ut.series,Ve=ut.xScale,et=ut.yScale,Fe=ut.points,tt=v.useMemo(function(){return{innerWidth:Ne,innerHeight:Ze,series:Le,points:Fe,xScale:Ve,yScale:et,lineWidth:C,lineGenerator:At,areaGenerator:Ke,currentPoint:Ue,setCurrentPoint:mt}},[Ne,Ze,Le,Fe,Ve,et,C,At,Ke,Ue,mt]),vt=K6({points:Fe,width:Ne,height:Ze,debug:re}),at=vt.delaunay,Pe=vt.voronoi;v.useEffect(function(){if(Ge.current!==null){Ge.current.width=_t*o,Ge.current.height=Te*o;var ke=Ge.current.getContext("2d");ke.scale(o,o),ke.fillStyle=Re.background,ke.fillRect(0,0,_t,Te),ke.translate(ve.left,ve.top),g.forEach(function(Je){var St;typeof Je=="function"&&Je(ke,tt);var on=(St=Re.grid.line.strokeWidth)!=null?St:0;if(Je==="grid"&&typeof on!="string"&&on>0&&(ke.lineWidth=on,ke.strokeStyle=Re.grid.line.stroke,Y&&Cd(ke,{width:Ne,height:Ze,scale:Ve,axis:"x",values:q}),X&&Cd(ke,{width:Ne,height:Ze,scale:et,axis:"y",values:J})),Je==="axes"&&Y6(ke,{xScale:Ve,yScale:et,width:Ne,height:Ze,top:ee,right:W,bottom:B,left:P,theme:Re}),Je==="areas"&&S===!0){ke.save(),ke.globalAlpha=R,Ke.context(ke);for(var Yt=Le.length-1;Yt>=0;Yt--)ke.fillStyle=Le[Yt].color,ke.beginPath(),Ke(Le[Yt].data.map(function(ze){return ze.position})),ke.fill();ke.restore()}if(Je==="lines"&&(At.context(ke),Le.forEach(function(ze){ke.strokeStyle=ze.color,ke.lineWidth=C,ke.beginPath(),At(ze.data.map(function(ht){return ht.position})),ke.stroke()})),Je==="points"&&E===!0&&I>0&&Fe.forEach(function(ze){ke.fillStyle=ze.color,ke.beginPath(),ke.arc(ze.x,ze.y,I/2,0,2*Math.PI),ke.fill(),L>0&&(ke.strokeStyle=ze.borderColor,ke.lineWidth=L,ke.stroke())}),Je==="mesh"&&re===!0&&Pe!==void 0&&(wne(ke,Pe),Ue&&_ne(ke,Pe,Ue.absIndex)),Je==="legends"){var Be=Le.map(function(ze){return{id:ze.id,label:ze.id,color:ze.color}}).reverse();K.forEach(function(ze){Wv(ke,En({},ze,{data:ze.data||Be,containerWidth:Ne,containerHeight:Ze,theme:Re}))})}})}},[Ge,Ne,_t,Ze,Te,ve.left,ve.top,o,g,Re,At,Le,Ve,et,Y,q,X,J,ee,W,B,P,K,Fe,E,I,L,Ue,tt,re,S,Ke,R,C,Pe]);var Ee=v.useCallback(function(ke){if(!Ge.current)return null;var Je=Ba(Ge.current,ke),St=Je[0],on=Je[1];if(!w6(ve.left,ve.top,Ne,Ze,St,on))return null;var Yt=at.find(St-ve.left,on-ve.top);return Fe[Yt]},[Ge,ve,Ne,Ze,at,Fe]),Ye=$i(),xt=Ye.showTooltipFromEvent,nt=Ye.hideTooltip,bt=v.useCallback(function(ke){var Je=Ee(ke);mt(Je),Je?xt(v.createElement(ce,{point:Je}),ke):nt()},[Ee,mt,xt,nt,ce]),Jt=v.useCallback(function(ke){nt(),mt(null),Ue&&(oe==null||oe(Ue,ke))},[nt,mt,oe,Ue]),Ft=v.useCallback(function(ke){if(le){var Je=Ee(ke);Je&&le(Je,ke)}},[Ee,le]),zt=v.useCallback(function(ke){if(ye){var Je=Ee(ke);Je&&ye(Je,ke)}},[Ee,ye]),fn=v.useCallback(function(ke){if(ge){var Je=Ee(ke);Je&&ge(Je,ke)}},[Ee,ge]),qt=v.useCallback(function(ke){if(be){var Je=Ee(ke);Je&&be(Je,ke)}},[Ee,be]);return y.jsx("canvas",{ref:Nv(Ge,Ce),width:_t*o,height:Te*o,style:{width:_t,height:Te,cursor:ae?"auto":"normal"},onMouseEnter:ae?bt:void 0,onMouseMove:ae?bt:void 0,onMouseLeave:ae?Jt:void 0,onMouseDown:ae?Ft:void 0,onMouseUp:ae?zt:void 0,onClick:ae?fn:void 0,onDoubleClick:ae?qt:void 0,role:de})},Wne=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=xh(e,Bne);return y.jsx(sa,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(zne,En({},o,{forwardedRef:t}))})}),Une=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=xh(e,Une);return y.jsx(la,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(a){var s=a.width,l=a.height;return y.jsx(Wne,En({width:s,height:l},o,{ref:t}))}})});var Hne=P6;function Vne(e,t){var n=[];return Hne(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var qne=Vne,Yne=o6,Gne=qne,Zne=Uv,Xne=Xn;function Kne(e,t){var n=Xne(e)?Yne:Gne;return n(e,Zne(t))}var Jne=Kne;const Qne=nn(Jne);var ere=ki,tre=vr,nre="[object Number]";function rre(e){return typeof e=="number"||tre(e)&&ere(e)==nre}var ire=rre;const ax=nn(ire);function ore(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var are=ore,sre=Ts,lre=Dc;function cre(e,t){return e&&sre(t,lre(t),e)}var ure=cre,dre=Ts,fre=Oc;function hre(e,t){return e&&dre(t,fre(t),e)}var pre=hre,mre=Ts,gre=Rv;function vre(e,t){return mre(e,gre(e),t)}var bre=vre,yre=Ov,xre=W0,wre=Rv,_re=a6,Cre=Object.getOwnPropertySymbols,Sre=Cre?function(e){for(var t=[];e;)yre(t,wre(e)),e=xre(e);return t}:_re,Q6=Sre,Tre=Ts,kre=Q6;function $re(e,t){return Tre(e,kre(e),t)}var Mre=$re,Ere=i6,Ore=Q6,Are=Oc;function Rre(e){return Ere(e,Are,Ore)}var e5=Rre,Dre=Object.prototype,Ire=Dre.hasOwnProperty;function jre(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ire.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Pre=jre,Nre=z0;function Lre(e,t){var n=t?Nre(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fre=Lre,Bre=/\w*$/;function zre(e){var t=new e.constructor(e.source,Bre.exec(e));return t.lastIndex=e.lastIndex,t}var Wre=zre,sx=ys,lx=sx?sx.prototype:void 0,cx=lx?lx.valueOf:void 0;function Ure(e){return cx?Object(cx.call(e)):{}}var Hre=Ure,Vre=z0,qre=Fre,Yre=Wre,Gre=Hre,Zre=w3,Xre="[object Boolean]",Kre="[object Date]",Jre="[object Map]",Qre="[object Number]",eie="[object RegExp]",tie="[object Set]",nie="[object String]",rie="[object Symbol]",iie="[object ArrayBuffer]",oie="[object DataView]",aie="[object Float32Array]",sie="[object Float64Array]",lie="[object Int8Array]",cie="[object Int16Array]",uie="[object Int32Array]",die="[object Uint8Array]",fie="[object Uint8ClampedArray]",hie="[object Uint16Array]",pie="[object Uint32Array]";function mie(e,t,n){var r=e.constructor;switch(t){case iie:return Vre(e);case Xre:case Kre:return new r(+e);case oie:return qre(e,n);case aie:case sie:case lie:case cie:case uie:case die:case fie:case hie:case pie:return Zre(e,n);case Jre:return new r;case Qre:case nie:return new r(e);case eie:return Yre(e);case tie:return new r;case rie:return Gre(e)}}var gie=mie,vie=vh,bie=vr,yie="[object Map]";function xie(e){return bie(e)&&vie(e)==yie}var wie=xie,_ie=wie,Cie=Ss,ux=Mf,dx=ux&&ux.isMap,Sie=dx?Cie(dx):_ie,Tie=Sie,kie=vh,$ie=vr,Mie="[object Set]";function Eie(e){return $ie(e)&&kie(e)==Mie}var Oie=Eie,Aie=Oie,Rie=Ss,fx=Mf,hx=fx&&fx.isSet,Die=hx?Rie(hx):Aie,Iie=Die,jie=Tf,Pie=are,Nie=G0,Lie=ure,Fie=pre,Bie=y3,zie=_3,Wie=bre,Uie=Mre,Hie=s6,Vie=e5,qie=vh,Yie=Pre,Gie=gie,Zie=S3,Xie=Xn,Kie=$f,Jie=Tie,Qie=Qr,eoe=Iie,toe=Dc,noe=Oc,roe=1,ioe=2,ooe=4,t5="[object Arguments]",aoe="[object Array]",soe="[object Boolean]",loe="[object Date]",coe="[object Error]",n5="[object Function]",uoe="[object GeneratorFunction]",doe="[object Map]",foe="[object Number]",r5="[object Object]",hoe="[object RegExp]",poe="[object Set]",moe="[object String]",goe="[object Symbol]",voe="[object WeakMap]",boe="[object ArrayBuffer]",yoe="[object DataView]",xoe="[object Float32Array]",woe="[object Float64Array]",_oe="[object Int8Array]",Coe="[object Int16Array]",Soe="[object Int32Array]",Toe="[object Uint8Array]",koe="[object Uint8ClampedArray]",$oe="[object Uint16Array]",Moe="[object Uint32Array]",Gt={};Gt[t5]=Gt[aoe]=Gt[boe]=Gt[yoe]=Gt[soe]=Gt[loe]=Gt[xoe]=Gt[woe]=Gt[_oe]=Gt[Coe]=Gt[Soe]=Gt[doe]=Gt[foe]=Gt[r5]=Gt[hoe]=Gt[poe]=Gt[moe]=Gt[goe]=Gt[Toe]=Gt[koe]=Gt[$oe]=Gt[Moe]=!0;Gt[coe]=Gt[n5]=Gt[voe]=!1;function Ru(e,t,n,r,i,o){var a,s=t&roe,l=t&ioe,c=t&ooe;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Qie(e))return e;var u=Xie(e);if(u){if(a=Yie(e),!s)return zie(e,a)}else{var d=qie(e),f=d==n5||d==uoe;if(Kie(e))return Bie(e,s);if(d==r5||d==t5||f&&!i){if(a=l||f?{}:Zie(e),!s)return l?Uie(e,Fie(a,e)):Wie(e,Lie(a,e))}else{if(!Gt[d])return i?e:{};a=Gie(e,d,s)}}o||(o=new jie);var h=o.get(e);if(h)return h;o.set(e,a),eoe(e)?e.forEach(function(g){a.add(Ru(g,t,n,g,e,o))}):Jie(e)&&e.forEach(function(g,x){a.set(x,Ru(g,t,n,x,e,o))});var p=c?l?Vie:Hie:l?noe:toe,m=u?void 0:p(e);return Pie(m||e,function(g,x){m&&(x=g,g=e[x]),Nie(a,x,Ru(g,t,n,x,e,o))}),a}var Eoe=Ru;function Ooe(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 o=Array(i);++r<i;)o[r]=e[r+t];return o}var Aoe=Ooe,Roe=Ac,Doe=Aoe;function Ioe(e,t){return t.length<2?e:Roe(e,Doe(t,0,-1))}var joe=Ioe,Poe=ks,Noe=JS,Loe=joe,Foe=$s;function Boe(e,t){return t=Poe(t,e),e=Loe(e,t),e==null||delete e[Foe(Noe(t))]}var zoe=Boe,Woe=V0;function Uoe(e){return Woe(e)?void 0:e}var Hoe=Uoe,Voe=Rf,qoe=Eoe,Yoe=zoe,Goe=ks,Zoe=Ts,Xoe=Hoe,Koe=n6,Joe=e5,Qoe=1,eae=2,tae=4,nae=Koe(function(e,t){var n={};if(e==null)return n;var r=!1;t=Voe(t,function(o){return o=Goe(o,e),r||(r=o.length>1),o}),Zoe(e,Joe(e),n),r&&(n=qoe(n,Qoe|eae|tae,Xoe));for(var i=t.length;i--;)Yoe(n,t[i]);return n}),rae=nae;const i5=nn(rae);function Gr(){return Gr=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},Gr.apply(null,arguments)}var ug={dotSize:4,noteWidth:120,noteTextOffset:8},iae=function(e){var t=typeof e;return v.isValidElement(e)||t==="string"||t==="function"||t==="object"},oae=function(e){var t=typeof e;return t==="string"||t==="function"},nc=function(e){return e.type==="circle"},dg=function(e){return e.type==="dot"},rc=function(e){return e.type==="rect"},aae=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Qne(t,a.match).map(function(l){var c=r(l),u=i(l);return(nc(a)||rc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Gr({},i5(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},sae=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return DK(Ic(i))},o5=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?ug.noteWidth:s,c=e.noteTextOffset,u=c===void 0?ug.noteTextOffset:c;if(ax(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(ax(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=sae(r,i,t,n);if(nc(e)){var p=No(fr(h),e.size/2);d+=p.x,f+=p.y}if(rc(e)){var m=Math.round((h+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var g=t,x=t;return(h+90)%360>180?(g-=l,x-=l):x+=l,{points:[[d,f],[t,n],[x,n]],text:[g,n-u],angle:h+90}},a5=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo(function(){return aae({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},lae=function(e){var t=e.annotations;return v.useMemo(function(){return t.map(function(n){return Gr({},n,{computed:o5(Gr({},n))})})},[t])},cae=function(e){return v.useMemo(function(){return o5(e)},[e])},uae=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=Kr({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?v.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[o.annotations.text.outlineWidth>0&&y.jsx(Ht.text,{x:c.x,y:c.y,style:Gr({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),y.jsx(Ht.text,{x:c.x,y:c.y,style:i5(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},px=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Lt(),o=v.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),a=Iv(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Gr({},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(Ht.path,{fill:"none",d:a,style:s})},dae=function(e){var t=e.x,n=e.y,r=e.size,i=Lt(),o=Fn(),a=o.animate,s=o.config,l=Kr({x:t,y:n,radius:r/2,config:s,immediate:!a});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:Gr({},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(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},fae=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?ug.dotSize:r,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=Kr({x:t,y:n,radius:i/2,config:l,immediate:!s});return y.jsxs(y.Fragment,{children:[o.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:Gr({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},hae=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Lt(),l=Fn(),c=l.animate,u=l.config,d=Kr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Ht.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Gr({},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(Ht.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},pae=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=cae(e);if(!iae(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(px,{points:o.points,isOutline:!0}),nc(e)&&y.jsx(dae,{x:n,y:r,size:e.size}),dg(e)&&y.jsx(fae,{x:n,y:r,size:e.size}),rc(e)&&y.jsx(hae,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(px,{points:o.points}),y.jsx(uae,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},mx=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},mae=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!oae(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(),mx(e,i.computed.points),e.stroke(),e.lineCap="butt"),nc(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()),dg(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()),rc(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(),mx(e,i.computed.points),e.stroke(),nc(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()),dg(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),rc(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())},gae=function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)};function $t(){return $t=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},$t.apply(null,arguments)}function oo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gx,vae=function(e){var t=e.bars,n=e.annotations,r=a5({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return y.jsx(y.Fragment,{children:r.map(function(i,o){return y.jsx(pae,$t({},i),o)})})},bae=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return y.jsx(zv,$t({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},yae=["data"],xae=function(e){var t,n=e.bar,r=n.data,i=oo(n,yae),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,p=o.width,m=o.textAnchor,g=e.borderRadius,x=e.borderWidth,_=e.label,w=e.shouldRenderLabel,C=e.isInteractive,b=e.onClick,S=e.onMouseEnter,M=e.onMouseLeave,k=e.tooltip,$=e.isFocusable,R=e.ariaLabel,T=e.ariaLabelledBy,E=e.ariaDescribedBy,A=e.ariaDisabled,I=e.ariaHidden,j=Lt(),D=$i(),O=D.showTooltipFromEvent,L=D.showTooltipAt,z=D.hideTooltip,N=v.useMemo(function(){return function(){return v.createElement(k,$t({},i,r))}},[k,i,r]),H=v.useCallback(function(ee){b==null||b($t({color:i.color},r),ee)},[i,r,b]),Y=v.useCallback(function(ee){return O(N(),ee)},[O,N]),q=v.useCallback(function(ee){S==null||S(r,ee),O(N(),ee)},[r,S,O,N]),Z=v.useCallback(function(ee){M==null||M(r,ee),z()},[r,z,M]),X=v.useCallback(function(){L(N(),[i.absX+i.width/2,i.absY])},[L,N,i]),J=v.useCallback(function(){z()},[z]);return y.jsxs(Ht.g,{transform:h,children:[y.jsx(Ht.rect,{width:Qi(p,function(ee){return Math.max(ee,0)}),height:Qi(l,function(ee){return Math.max(ee,0)}),rx:g,ry:g,fill:(t=r.fill)!=null?t:s,strokeWidth:x,stroke:a,focusable:$,tabIndex:$?0:void 0,"aria-label":R?R(r):void 0,"aria-labelledby":T?T(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":A?A(r):void 0,"aria-hidden":I?I(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?Y:void 0,onMouseLeave:C?Z:void 0,onClick:C?H:void 0,onFocus:C&&$?X:void 0,onBlur:C&&$?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&y.jsx(Os,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:$t({},j.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},wae=["color","label"],_ae=function(e){var t=e.color,n=e.label,r=oo(e,wae);return y.jsx(J0,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Ut={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:_ae,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Wt=$t({},Ut,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:xae,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),un=$t({},Ut,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,a=n.x,s=n.y,l=t.borderColor,c=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,h=t.labelStyle,p=t.labelX,m=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),gae(e,a,s,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=g==="middle"?"center":g,Ko(e,h,d,a+p,s+m))},pixelRatio:typeof window<"u"&&(gx=window.devicePixelRatio)!=null?gx:1}),s5=function(e,t,n,r,i,o){return tc(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},l5=function(e,t){return e.map(function(n){return $t({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},wh=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},_h=function(e){return[e,Number(e)]};function c5(e,t,n,r){return e===void 0&&(e=Ut.layout),n===void 0&&(n=Ut.labelPosition),r===void 0&&(r=Ut.labelOffset),function(i,o){var a=r*(t?-1:1);if(e==="horizontal"){var s=i/2;return n==="start"?s=t?i:0:n==="end"&&(s=t?0:i),{labelX:s+a,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=o/2;return n==="start"?l=t?0:o:n==="end"&&(l=t?o:0),{labelX:i/2,labelY:l-a,textAnchor:"middle"}}}var Cae=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Vv=function(e,t){return e>t},u5=function(e,t){return e<t},d5=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Sae=function(e){return Vv(e,0)?0:e},Tae=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,f=e.xScale,h=e.yScale,p=e.margin,m=n?u5:Vv,g=i.map(wh),x=[];return d.forEach(function(_,w){return d5(0,f.domain().length).forEach(function(C){var b,S,M,k=_h(i[C][_]),$=k[0],R=k[1],T=s(i[C]),E=((b=f(T))!=null?b:0)+t*w+u*w,A=m(S=R,0)?(M=h(S))!=null?M:0:r,I=function(D,O){var L;return m(D,0)?r-O:((L=h(D))!=null?L:0)-r}(R,A),j={id:_,value:$===null?$:R,formattedValue:o(R),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:E,y:A,absX:p.left+E,absY:p.top+A,width:t,height:I,color:a(j),label:l(j)})})}),x},kae=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,p=e.margin,m=n?u5:Vv,g=i.map(wh),x=[];return c.forEach(function(_,w){return d5(0,h.domain().length).forEach(function(C){var b,S,M,k=_h(i[C][_]),$=k[0],R=k[1],T=a(i[C]),E=m(S=R,0)?r:(M=f(S))!=null?M:0,A=((b=h(T))!=null?b:0)+t*w+d*w,I=function(D,O){var L;return m(D,0)?((L=f(D))!=null?L:0)-r:r-O}(R,E),j={id:_,value:$===null?$:R,formattedValue:o(R),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:E,y:A,absX:p.left+E,absY:p.top+A,width:I,height:t,color:s(j),label:l(j)})})}),x},$ae=function(e){var t,n,r,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.innerPadding,u=c===void 0?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,p=h===void 0?[]:h,m=oo(e,Cae),g=m.keys.filter(function(O){return!p.includes(O)}),x=l5(m.data,g),_=i==="vertical"?["y","x",o]:["x","y",a],w=_[0],C=_[1],b=_[2],S=s5(x,m.getIndex,l,f,b,C),M=d.min==="auto"?Sae:function(O){return O},k=x.reduce(function(O,L){return[].concat(O,g.map(function(z){return L[z]}))},[]).filter(Boolean),$=M(Math.min.apply(Math,k)),R=(r=Math.max.apply(Math,k),isFinite(r)?r:0),T=tc(d,{all:k,min:$,max:R},w==="x"?o:a,w),E=i==="vertical"?[S,T]:[T,S],A=E[0],I=E[1],j=(S.bandwidth()-u*(g.length-1))/g.length,D=[$t({},m,{data:x,keys:g,innerPadding:u,xScale:A,yScale:I}),j,(t=d.reverse)!=null&&t,(n=T(0))!=null?n:0];return{xScale:A,yScale:I,bars:j>0?i==="vertical"?Tae.apply(void 0,D):kae.apply(void 0,D):[]}},Mae=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],f5=function(e){var t;return e.some(Array.isArray)?f5((t=[]).concat.apply(t,e)):e},Eae=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return c.domain().forEach(function(p,m){var g,x,_=h[m],w=(g=c(o(_.data)))!=null?g:0,C=((x=function(R){return u(R[n?0:1])}(_))!=null?x:0)+.5*s,b=function(R,T){var E;return((E=u(R[n?1:0]))!=null?E:0)-T}(_,C)-s,S=_h(_.data[h.key]),M=S[0],k=S[1],$={id:h.key,value:M===null?M:k,formattedValue:r(k),hidden:!1,index:m,indexValue:p,data:wh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:$,x:w,y:C,absX:d.left+w,absY:d.top+C,width:t,height:b,color:i($),label:a($)})})}),f},Oae=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return u.domain().forEach(function(p,m){var g,x,_=h[m],w=(g=u(o(_.data)))!=null?g:0,C=((x=function(R){return c(R[n?1:0])}(_))!=null?x:0)+.5*s,b=function(R,T){var E;return((E=c(R[n?0:1]))!=null?E:0)-T}(_,C)-s,S=_h(_.data[h.key]),M=S[0],k=S[1],$={id:h.key,value:M===null?M:k,formattedValue:r(k),hidden:!1,index:m,indexValue:p,data:wh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:$,x:C,y:w,absX:d.left+C,absY:d.top+w,width:b,height:t,color:i($),label:a($)})})}),f},Aae=function(e){var t,n,r=e.data,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,h=oo(e,Mae),p=h.keys.filter(function(j){return!f.includes(j)}),m=qV().keys(p).offset(YV)(l5(r,p)),g=i==="vertical"?["y","x",o]:["x","y",a],x=g[0],_=g[1],w=g[2],C=s5(r,h.getIndex,l,u,w,_),b=(n=f5(m),c.type==="log"?n.filter(function(j){return j!==0}):n),S=Math.min.apply(Math,b),M=Math.max.apply(Math,b),k=tc(c,{all:b,min:S,max:M},x==="x"?o:a,x),$=i==="vertical"?[C,k]:[k,C],R=$[0],T=$[1],E=h.innerPadding>0?h.innerPadding:0,A=C.bandwidth(),I=[$t({},h,{innerPadding:E,stackedData:m,xScale:R,yScale:T}),A,(t=c.reverse)!=null&&t];return{xScale:R,yScale:T,bars:A>0?i==="vertical"?Eae.apply(void 0,I):Oae.apply(void 0,I):[]}},Rae=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=y6(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=sg(c.map(function(h){var p,m;return{id:(p=h.data.indexValue)!=null?p:"",label:d(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,p){var m=sg(c.map(function(g){var x;return{id:g.data.id,label:p(g.data),hidden:g.data.hidden,color:(x=g.color)!=null?x:"#000"}}),function(g){return g.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&m.reverse(),m}(t,o,n,i,s,l)},vx=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},Dae=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Iae=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},jae=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},h5=function(e){var t,n=e.indexBy,r=n===void 0?Ut.indexBy:n,i=e.keys,o=i===void 0?Ut.keys:i,a=e.label,s=a===void 0?Ut.label:a,l=e.tooltipLabel,c=l===void 0?Ut.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?Ut.colors:d,h=e.colorBy,p=h===void 0?Ut.colorBy:h,m=e.borderColor,g=m===void 0?Ut.borderColor:m,x=e.labelTextColor,_=x===void 0?Ut.labelTextColor:x,w=e.groupMode,C=w===void 0?Ut.groupMode:w,b=e.layout,S=b===void 0?Ut.layout:b,M=e.data,k=e.margin,$=e.width,R=e.height,T=e.padding,E=T===void 0?Ut.padding:T,A=e.innerPadding,I=A===void 0?Ut.innerPadding:A,j=e.valueScale,D=j===void 0?Ut.valueScale:j,O=e.indexScale,L=O===void 0?Ut.indexScale:O,z=e.initialHiddenIds,N=z===void 0?Ut.initialHiddenIds:z,H=e.enableLabel,Y=H===void 0?Ut.enableLabel:H,q=e.labelSkipWidth,Z=q===void 0?Ut.labelSkipWidth:q,X=e.labelSkipHeight,J=X===void 0?Ut.labelSkipHeight:X,ee=e.legends,W=ee===void 0?Ut.legends:ee,F=e.legendLabel,B=e.totalsOffset,V=B===void 0?Ut.totalsOffset:B,P=v.useState(N??[]),te=P[0],K=P[1],G=v.useCallback(function(Te){K(function(Re){return Re.indexOf(Te)>-1?Re.filter(function(ot){return ot!==Te}):[].concat(Re,[Te])})},[]),ae=gi(r),ne=gi(s),re=gi(c),oe=ss(u),le=Lt(),ye=Lv(f,p),ge=mr(g,le),be=mr(_,le),Me=(C==="grouped"?$ae:Aae)({layout:S,data:M,getIndex:ae,keys:o,width:$,height:R,getColor:ye,padding:E,innerPadding:I,valueScale:D,indexScale:L,hiddenIds:te,formatValue:oe,getTooltipLabel:re,margin:k}),ce=Me.bars,de=Me.xScale,Ce=Me.yScale,Ge=v.useMemo(function(){return ce.filter(function(Te){return Te.data.value!==null}).map(function(Te,Re){return $t({},Te,{index:Re})})},[ce]),we=v.useCallback(function(Te){var Re=Te.width,ot=Te.height;return!!Y&&!(Z>0&&Re<Z)&&!(J>0&&ot<J)},[Y,Z,J]),ve=v.useMemo(function(){return o.map(function(Te){var Re=ce.find(function(ot){return ot.data.id===Te});return $t({},Re,{data:$t({id:Te},Re==null?void 0:Re.data,{hidden:te.includes(Te)})})})},[te,o,ce]),Ne=(t=D.reverse)!=null&&t,Ze=v.useMemo(function(){return W.map(function(Te){return[Te,Rae({bars:Te.dataFrom==="keys"?ve:ce,direction:Te.direction,from:Te.dataFrom,groupMode:C,layout:S,legendLabel:F,reverse:Ne})]})},[W,ve,ce,C,S,F,Ne]),_t=v.useMemo(function(){return function(Te,Re,ot,Ue,mt,ut,At){Ue===void 0&&(Ue=Ut.layout),mt===void 0&&(mt=Ut.groupMode);var Ke=[];if(Te.length===0)return Ke;var Le=new Map,Ve=Te[0].width,et=Te[0].height;if(mt==="stacked"){var Fe=new Map;Te.forEach(function(at){var Pe=at.data,Ee=Pe.indexValue,Ye=Pe.value;vx(Le,Ee,Number(Ye)),Dae(Fe,Ee,Number(Ye))}),Fe.forEach(function(at,Pe){var Ee,Ye,xt,nt=Le.get(Pe)||0;Ue==="vertical"?(Ee=Re(Pe),Ye=ot(at),xt=ot(at/2)):(Ee=Re(at),Ye=ot(Pe),xt=Re(at/2)),Ee+=Ue==="vertical"?Ve/2:ut,Ye+=Ue==="vertical"?-ut:et/2,Ke.push({key:"total_"+Pe,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}else if(mt==="grouped"){var tt=new Map,vt=new Map;Te.forEach(function(at){var Pe=at.data,Ee=Pe.indexValue,Ye=Pe.value;vx(Le,Ee,Number(Ye)),Iae(tt,Ee,Number(Ye)),jae(vt,Ee)}),tt.forEach(function(at,Pe){var Ee,Ye,xt,nt=Le.get(Pe)||0,bt=vt.get(Pe);Ue==="vertical"?(Ee=Re(Pe),Ye=ot(at),xt=ot(at/2)):(Ee=Re(at),Ye=ot(Pe),xt=Re(at/2)),Ee+=Ue==="vertical"?bt*Ve/2:ut,Ye+=Ue==="vertical"?-ut:bt*et/2,Ke.push({key:"total_"+Pe,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}return Ke}(ce,de,Ce,S,C,V,oe)},[ce,de,Ce,S,C,V,oe]);return{bars:ce,barsWithValue:Ge,xScale:de,yScale:Ce,getIndex:ae,getLabel:ne,getTooltipLabel:re,formatValue:oe,getColor:ye,getBorderColor:ge,getLabelColor:be,shouldRenderBarLabel:we,hiddenIds:te,toggleSerie:G,legendsWithData:Ze,barTotals:_t}},Pae=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Wt.layout:i,a=Lt();return ea(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="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:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return y.jsx(Ht.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:$t({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},Nae=["isInteractive","animate","motionConfig","theme","renderWrapper"],Lae=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,m=e.axisRight,g=e.axisBottom,x=g===void 0?Wt.axisBottom:g,_=e.axisLeft,w=_===void 0?Wt.axisLeft:_,C=e.enableGridX,b=C===void 0?Wt.enableGridX:C,S=e.enableGridY,M=S===void 0?Wt.enableGridY:S,k=e.gridXValues,$=e.gridYValues,R=e.layers,T=R===void 0?Wt.layers:R,E=e.barComponent,A=E===void 0?Wt.barComponent:E,I=e.enableLabel,j=I===void 0?Wt.enableLabel:I,D=e.label,O=e.labelSkipWidth,L=O===void 0?Wt.labelSkipWidth:O,z=e.labelSkipHeight,N=z===void 0?Wt.labelSkipHeight:z,H=e.labelTextColor,Y=e.labelPosition,q=Y===void 0?Wt.labelPosition:Y,Z=e.labelOffset,X=Z===void 0?Wt.labelOffset:Z,J=e.markers,ee=J===void 0?Wt.markers:J,W=e.colorBy,F=e.colors,B=e.defs,V=B===void 0?Wt.defs:B,P=e.fill,te=P===void 0?Wt.fill:P,K=e.borderRadius,G=K===void 0?Wt.borderRadius:K,ae=e.borderWidth,ne=ae===void 0?Wt.borderWidth:ae,re=e.borderColor,oe=e.annotations,le=oe===void 0?Wt.annotations:oe,ye=e.legendLabel,ge=e.tooltipLabel,be=e.valueFormat,Me=e.isInteractive,ce=Me===void 0?Wt.isInteractive:Me,de=e.tooltip,Ce=de===void 0?Wt.tooltip:de,Ge=e.onClick,we=e.onMouseEnter,ve=e.onMouseLeave,Ne=e.legends,Ze=e.role,_t=Ze===void 0?Wt.role:Ze,Te=e.ariaLabel,Re=e.ariaLabelledBy,ot=e.ariaDescribedBy,Ue=e.isFocusable,mt=Ue===void 0?Wt.isFocusable:Ue,ut=e.barAriaLabel,At=e.barAriaLabelledBy,Ke=e.barAriaDescribedBy,Le=e.barAriaHidden,Ve=e.barAriaDisabled,et=e.initialHiddenIds,Fe=e.enableTotals,tt=Fe===void 0?Wt.enableTotals:Fe,vt=e.totalsOffset,at=vt===void 0?Wt.totalsOffset:vt,Pe=e.forwardedRef,Ee=Fn(),Ye=Ee.animate,xt=Ee.config,nt=ca(a,s,o),bt=nt.outerWidth,Jt=nt.outerHeight,Ft=nt.margin,zt=nt.innerWidth,fn=nt.innerHeight,qt=h5({indexBy:r,label:D,tooltipLabel:ge,valueFormat:be,colors:F,colorBy:W,borderColor:re,labelTextColor:H,groupMode:l,layout:c,data:n,keys:i,margin:Ft,width:zt,height:fn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:j,labelSkipWidth:L,labelSkipHeight:N,legends:Ne,legendLabel:ye,initialHiddenIds:et,totalsOffset:at}),ke=qt.bars,Je=qt.barsWithValue,St=qt.xScale,on=qt.yScale,Yt=qt.getLabel,Be=qt.getTooltipLabel,ze=qt.getBorderColor,ht=qt.getLabelColor,Rt=qt.shouldRenderBarLabel,Tt=qt.toggleSerie,Qe=qt.legendsWithData,kt=qt.barTotals,br=qt.getColor,ln=c5(c,(t=u==null?void 0:u.reverse)!=null&&t,q,X),cn=ea(Je,{keys:function(Ae){return Ae.key},from:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:{height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0})},enter:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},update:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},leave:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{labelY:0,transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:$t({},ln(Ae.width,Ae.height),{labelX:0,height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0}))},config:xt,immediate:!Ye,initial:Ye?void 0:null}),An=v.useMemo(function(){return{borderRadius:G,borderWidth:ne,enableLabel:j,isInteractive:ce,labelSkipWidth:L,labelSkipHeight:N,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getTooltipLabel:Be,tooltip:Ce,isFocusable:mt,ariaLabel:ut,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:Le,ariaDisabled:Ve}},[G,ne,j,Be,ce,N,L,Ge,we,ve,Ce,mt,ut,At,Ke,Le,Ve]),ao=Pv(V,ke,te,{dataKey:"data",targetKey:"data.fill"}),Ct={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};T.includes("annotations")&&(Ct.annotations=y.jsx(vae,{bars:ke,annotations:le},"annotations")),T.includes("axes")&&(Ct.axes=y.jsx(V6,{xScale:St,yScale:on,width:zt,height:fn,top:p,right:m,bottom:x,left:w},"axes")),T.includes("bars")&&(Ct.bars=y.jsx(v.Fragment,{children:cn(function(Ae,Ar){return v.createElement(A,$t({},An,{bar:Ar,style:Ae,shouldRenderLabel:Rt(Ar),label:Yt(Ar.data)}))})},"bars")),T.includes("grid")&&(Ct.grid=y.jsx(q6,{width:zt,height:fn,xScale:b?St:null,yScale:M?on:null,xValues:k,yValues:$},"grid")),T.includes("legends")&&(Ct.legends=y.jsx(bae,{width:zt,height:fn,legends:Qe,toggleSerie:Tt},"legends")),T.includes("markers")&&(Ct.markers=y.jsx(g6,{markers:ee,width:zt,height:fn,xScale:St,yScale:on},"markers")),T.includes("totals")&&tt&&(Ct.totals=y.jsx(Pae,{data:kt,springConfig:xt,animate:Ye,layout:c},"totals"));var so=$t({},An,{margin:Ft,width:a,height:s,innerWidth:zt,innerHeight:fn,bars:ke,legendData:Qe,enableLabel:j,xScale:St,yScale:on,tooltip:Ce,getTooltipLabel:Be,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getColor:br});return y.jsx(bh,{width:bt,height:Jt,margin:Ft,defs:ao,role:_t,ariaLabel:Te,ariaLabelledBy:Re,ariaDescribedBy:ot,isFocusable:mt,ref:Pe,children:T.map(function(Ae,Ar){var lo;return typeof Ae=="function"?y.jsx(v.Fragment,{children:v.createElement(Ae,so)},Ar):(lo=Ct==null?void 0:Ct[Ae])!=null?lo:null})})},Fae=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Wt.isInteractive:n,i=e.animate,o=i===void 0?Wt.animate:i,a=e.motionConfig,s=a===void 0?Wt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=oo(e,Nae);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Lae,$t({},u,{isInteractive:r,forwardedRef:t}))})}),Bae=["isInteractive","renderWrapper","theme"],Ip=function(e,t,n,r){return e.find(function(i){return w6(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},zae=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,m=e.axisRight,g=e.axisBottom,x=g===void 0?un.axisBottom:g,_=e.axisLeft,w=_===void 0?un.axisLeft:_,C=e.enableGridX,b=C===void 0?un.enableGridX:C,S=e.enableGridY,M=S===void 0?un.enableGridY:S,k=e.gridXValues,$=e.gridYValues,R=e.labelPosition,T=R===void 0?un.labelPosition:R,E=e.labelOffset,A=E===void 0?un.labelOffset:E,I=e.layers,j=I===void 0?un.layers:I,D=e.renderBar,O=D===void 0?un.renderBar:D,L=e.enableLabel,z=L===void 0?un.enableLabel:L,N=e.label,H=e.labelSkipWidth,Y=H===void 0?un.labelSkipWidth:H,q=e.labelSkipHeight,Z=q===void 0?un.labelSkipHeight:q,X=e.labelTextColor,J=e.colorBy,ee=e.colors,W=e.borderRadius,F=W===void 0?un.borderRadius:W,B=e.borderWidth,V=B===void 0?un.borderWidth:B,P=e.borderColor,te=e.annotations,K=te===void 0?un.annotations:te,G=e.legendLabel,ae=e.tooltipLabel,ne=e.valueFormat,re=e.isInteractive,oe=re===void 0?un.isInteractive:re,le=e.tooltip,ye=le===void 0?un.tooltip:le,ge=e.onClick,be=e.onMouseEnter,Me=e.onMouseLeave,ce=e.legends,de=e.pixelRatio,Ce=de===void 0?un.pixelRatio:de,Ge=e.role,we=e.forwardedRef,ve=e.enableTotals,Ne=ve===void 0?un.enableTotals:ve,Ze=e.totalsOffset,_t=Ze===void 0?un.totalsOffset:Ze,Te=v.useRef(null),Re=Lt(),ot=ca(a,s,o),Ue=ot.margin,mt=ot.innerWidth,ut=ot.innerHeight,At=ot.outerWidth,Ke=ot.outerHeight,Le=h5({indexBy:r,label:N,tooltipLabel:ae,valueFormat:ne,colors:ee,colorBy:J,borderColor:P,labelTextColor:X,groupMode:l,layout:c,data:n,keys:i,margin:Ue,width:mt,height:ut,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:z,labelSkipWidth:Y,labelSkipHeight:Z,legends:ce,legendLabel:G,totalsOffset:_t}),Ve=Le.bars,et=Le.barsWithValue,Fe=Le.xScale,tt=Le.yScale,vt=Le.getLabel,at=Le.getTooltipLabel,Pe=Le.getBorderColor,Ee=Le.getLabelColor,Ye=Le.shouldRenderBarLabel,xt=Le.legendsWithData,nt=Le.barTotals,bt=Le.getColor,Jt=$i(),Ft=Jt.showTooltipFromEvent,zt=Jt.hideTooltip,fn=lae({annotations:a5({data:Ve,annotations:K,getPosition:function(Be){return{x:Be.x,y:Be.y}},getDimensions:function(Be){var ze=Be.width,ht=Be.height;return{width:ze,height:ht,size:Math.max(ze,ht)}}})}),qt=v.useMemo(function(){return{borderRadius:F,borderWidth:V,isInteractive:oe,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:Z,margin:Ue,width:a,height:s,innerWidth:mt,innerHeight:ut,bars:Ve,legendData:xt,enableLabel:z,xScale:Fe,yScale:tt,tooltip:ye,getTooltipLabel:at,onClick:ge,onMouseEnter:be,onMouseLeave:Me,getColor:bt}},[F,V,oe,Y,Z,Ue,a,s,mt,ut,Ve,xt,z,Fe,tt,ye,at,ge,be,Me,bt]),ke=ss(ne),Je=c5(c,(t=u==null?void 0:u.reverse)!=null&&t,T,A);v.useEffect(function(){if(Te.current){Te.current.width=At*Ce,Te.current.height=Ke*Ce;var Be=Te.current.getContext("2d");Be.scale(Ce,Ce),Be.fillStyle=Re.background,Be.fillRect(0,0,At,Ke),Be.translate(Ue.left,Ue.top),j.forEach(function(ze){ze==="grid"?typeof Re.grid.line.strokeWidth=="number"&&Re.grid.line.strokeWidth>0&&(Be.lineWidth=Re.grid.line.strokeWidth,Be.strokeStyle=Re.grid.line.stroke,b&&Cd(Be,{width:mt,height:ut,scale:Fe,axis:"x",values:k}),M&&Cd(Be,{width:mt,height:ut,scale:tt,axis:"y",values:$})):ze==="axes"?Y6(Be,{xScale:Fe,yScale:tt,width:mt,height:ut,top:p,right:m,bottom:x,left:w,theme:Re}):ze==="bars"?(Xo(Be,Re.text),et.forEach(function(ht){O(Be,$t({bar:ht,borderColor:Pe(ht),borderRadius:F,borderWidth:V,label:vt(ht.data),shouldRenderLabel:Ye(ht),labelStyle:$t({},Re.labels.text,{fill:Ee(ht)})},Je(ht.width,ht.height)))})):ze==="legends"?xt.forEach(function(ht){var Rt=ht[0],Tt=ht[1];Wv(Be,$t({},Rt,{data:Tt,containerWidth:mt,containerHeight:ut,theme:Re}))}):ze==="annotations"?mae(Be,{annotations:fn,theme:Re}):ze==="totals"&&Ne?function(ht,Rt,Tt,Qe){Qe===void 0&&(Qe=un.layout),Xo(ht,Tt.labels.text),ht.textBaseline=Qe==="vertical"?"alphabetic":"middle",ht.textAlign=Qe==="vertical"?"center":"start",Rt.forEach(function(kt){Ko(ht,Tt.labels.text,kt.formattedValue,kt.x,kt.y)})}(Be,nt,Re,c):typeof ze=="function"&&ze(Be,qt)}),Be.save()}},[x,w,m,p,et,F,V,fn,b,M,Pe,vt,Ee,k,$,l,s,ut,mt,qt,j,c,xt,Ue.left,Ue.top,Ke,At,Ce,O,Fe,tt,Ye,Re,a,nt,Ne,ke,Je]);var St=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Ba(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Ip(Ve,Ue,ht,Rt);Tt!==void 0?(Ft(v.createElement(ye,$t({},Tt.data,{color:Tt.color,label:Tt.label,value:Number(Tt.data.value)})),Be),Be.type==="mouseenter"&&(be==null||be(Tt.data,Be))):zt()}},[zt,Ue,be,Ve,Ft,ye]),on=v.useCallback(function(Be){if(Ve&&Te.current){zt();var ze=Ba(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Ip(Ve,Ue,ht,Rt);Tt&&(Me==null||Me(Tt.data,Be))}},[zt,Ue,Me,Ve]),Yt=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Ba(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Ip(Ve,Ue,ht,Rt);Tt!==void 0&&(ge==null||ge($t({},Tt.data,{color:Tt.color}),Be))}},[Ue,ge,Ve]);return y.jsx("canvas",{ref:Nv(Te,we),width:At*Ce,height:Ke*Ce,style:{width:At,height:Ke,cursor:oe?"auto":"normal"},onMouseEnter:oe?St:void 0,onMouseMove:oe?St:void 0,onMouseLeave:oe?on:void 0,onClick:oe?Yt:void 0,role:Ge})},Wae=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=oo(e,Bae);return y.jsx(sa,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(zae,$t({},o,{isInteractive:n,forwardedRef:t}))})}),Uae=["defaultWidth","defaultHeight","onResize","debounceResize"],Hae=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=oo(e,Uae);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Fae,$t({},a,{width:l,height:c,ref:t}))}})}),Vae=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=oo(e,Vae);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Wae,$t({},a,{width:l,height:c,ref:t}))}})});function qae(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M238.15,78.54,177.46,17.86a20,20,0,0,0-28.3,0L97.2,70c-12.43-3.33-36.68-5.72-61.74,14.5a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.91,228c.46,0,.93,0,1.4-.05A20,20,0,0,0,171.87,220c4.69-6.23,11-16.13,14.44-28s3.45-22.88.16-33.4l51.7-51.87A20,20,0,0,0,238.15,78.54Zm-74.26,68.79a12,12,0,0,0-2.23,13.84c3.43,6.86,6.9,21-6.28,40.65L54.08,100.53c21.09-14.59,39.53-6.64,41-6a11.67,11.67,0,0,0,13.81-2.29l54.43-54.61,55,55Z"},child:[]}]})(e)}function Yae(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07L60,71A76,76,0,0,0,35.46,84.51a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.9,228c.47,0,.94,0,1.41-.05A20,20,0,0,0,171.87,220a97.47,97.47,0,0,0,9.54-15.46l17.72,19.49a12,12,0,1,0,17.76-16.14Zm98.49,169.88L54.08,100.52C62,95,70.31,92.12,78.91,91.83l84.51,93A62,62,0,0,1,155.37,201.81Zm82.78-95-39,39.11a12,12,0,1,1-17-16.95l36.19-36.3-55-55L130.59,70.5a12,12,0,0,1-17-16.94l35.57-35.69a20,20,0,0,1,28.3,0l60.69,60.68A20,20,0,0,1,238.15,106.83Z"},child:[]}]})(e)}function Gae(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"},child:[]}]})(e)}function Zae(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z"},child:[]}]})(e)}const Xae="_side-content-bar_16o0s_1",Kae="_mobile_16o0s_12",Jae="_expanded_16o0s_20",Qae="_content-container_16o0s_23",ese="_resizer_16o0s_31",tse="_expander_16o0s_46",nse="_icon_16o0s_65",ii={sideContentBar:Xae,mobile:Kae,expanded:Jae,contentContainer:Qae,resizer:ese,expander:tse,icon:nse},p5=e=>{const t=je.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:o,onResize:a}=e,[s,l]=i,c=o===void 0?!0:o,{ProjectIconComponent:u}=v.useContext(rn),{isMobile:d}=Cc();let f;t[0]!==l?(f=R=>{R.velocity>.8&&l(!1)},t[0]=l,t[1]=f):f=t[1];let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h={delta:100},t[2]=h):h=t[2];let p;t[3]!==f?(p={onSwipedRight:f,...h},t[3]=f,t[4]=p):p=t[4];const m=v0(p),[g,x]=v.useState(null);let _;t[5]!==s||t[6]!==d?(_=se("luminus-side-content-bar shadow",ii.sideContentBar,{[ii.mobile]:d},{[ii.expanded]:s}),t[5]=s,t[6]=d,t[7]=_):_=t[7];const w=`${n}px`;let C;t[8]!==w?(C={width:w},t[8]=w,t[9]=C):C=t[9];let b;t[10]!==u||t[11]!==(g==null?void 0:g.startX)||t[12]!==(g==null?void 0:g.widthStart)||t[13]!==d||t[14]!==a||t[15]!==c||t[16]!==n?(b=c&&!d?y.jsx("div",{role:"button",className:se(ii.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:R=>x({startX:R.clientX,widthStart:n}),onDrag:R=>a(((g==null?void 0:g.widthStart)??0)+(((g==null?void 0:g.startX)??0)-R.clientX)),onDragEnd:()=>x(null),children:y.jsx(u,{className:ii.icon,icon:"resizer-horizontal"})}):null,t[10]=u,t[11]=g==null?void 0:g.startX,t[12]=g==null?void 0:g.widthStart,t[13]=d,t[14]=a,t[15]=c,t[16]=n,t[17]=b):b=t[17];let S;t[18]!==r?(S=y.jsx("div",{className:ii.contentContainer,children:r}),t[18]=r,t[19]=S):S=t[19];let M;t[20]!==m||t[21]!==S||t[22]!==_||t[23]!==C||t[24]!==b?(M=y.jsxs("section",{className:_,style:C,...m,children:[b,S]}),t[20]=m,t[21]=S,t[22]=_,t[23]=C,t[24]=b,t[25]=M):M=t[25];let k;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?(k=d?y.jsx("div",{role:"button",onClick:()=>l(!s),className:se(ii.expander,{[ii.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:y.jsx(u,{className:ii.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=k):k=t[30];let $;return t[31]!==M||t[32]!==k?($=y.jsxs(y.Fragment,{children:[M,k]}),t[31]=M,t[32]=k,t[33]=$):$=t[33],$},rse=e=>{const t=je.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?y.jsx(jn,{variant:"h3",children:n}):n,t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx("div",{className:"mb-3",children:r}),t[2]=r,t[3]=i):i=t[3],i},ise="_full-screen-container_1rm4r_1",m5={fullScreenContainer:ise},ose=se("overflow-hidden luminus-full-screen-container",m5.fullScreenContainer),ase="container-fluid",sse=e=>{const t=je.c(45),{title:n,children:r,sideContent:i,sideContentWidth:o,sideContentResizeable:a,noPadding:s,className:l,variant:c,helmet:u,unavailableOnMobile:d}=e,f=o===void 0?250:o,h=a===void 0?!0:a,p=c===void 0?"main":c,{addHelmet:m,removeHelmet:g}=v.useContext(lC),{texts:x}=v.useContext(rn),{container:_}=x,[w,C]=v.useState(f),[b,S]=v.useState(!1);let M;e:switch(p){case"fullScreen":{M=ose;break e}case"main":{M=ase;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=M;let $,R;t[0]!==m||t[1]!==u||t[2]!==g||t[3]!==n?($=()=>(u?m(u):typeof n=="string"&&n&&m(n),()=>g()),R=[u,m,g,n],t[0]=m,t[1]=u,t[2]=g,t[3]=n,t[4]=$,t[5]=R):($=t[4],R=t[5]),v.useEffect($,R);let T;t[6]===Symbol.for("react.memo_cache_sentinel")?(T={onSwipedLeft:ee=>{ee.velocity>.8&&S(!0)},delta:100},t[6]=T):T=t[6];const E=v0(T),{isMobile:A}=Cc(),I=A&&d;let j,D;t[7]!==f?(D=()=>{C(f)},j=[f],t[7]=f,t[8]=j,t[9]=D):(j=t[8],D=t[9]),v.useEffect(D,j);const O=s?"p-0":"p-3";let L;t[10]!==l||t[11]!==O||t[12]!==k?(L=se(k,O,l),t[10]=l,t[11]=O,t[12]=k,t[13]=L):L=t[13];let z;t[14]!==i||t[15]!==w||t[16]!==p?(z=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=z):z=t[17];const N=p==="fullScreen"?m5.fullScreenContainer:void 0;let H;t[18]!==i||t[19]!==w||t[20]!==p?(H=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=H):H=t[21];let Y;t[22]!==I||t[23]!==r||t[24]!==_||t[25]!==n?(Y=I?y.jsx(x0,{variant:"warning",children:_.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[n?y.jsx(rse,{title:n}):null,r]}),t[22]=I,t[23]=r,t[24]=_,t[25]=n,t[26]=Y):Y=t[26];let q;t[27]!==N||t[28]!==H||t[29]!==Y?(q=y.jsx("div",{className:N,style:H,children:Y}),t[27]=N,t[28]=H,t[29]=Y,t[30]=q):q=t[30];let Z;t[31]!==E||t[32]!==L||t[33]!==z||t[34]!==q?(Z=y.jsx("div",{className:L,style:z,...E,children:q}),t[31]=E,t[32]=L,t[33]=z,t[34]=q,t[35]=Z):Z=t[35];let X;t[36]!==I||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==w?(X=i&&!I?y.jsx(p5,{width:w,isExpandedOnMobileState:[b,S],resizeable:h,onResize:ee=>h?C(ee):{},children:i}):null,t[36]=I,t[37]=b,t[38]=i,t[39]=h,t[40]=w,t[41]=X):X=t[41];let J;return t[42]!==Z||t[43]!==X?(J=y.jsxs(y.Fragment,{children:[Z,X]}),t[42]=Z,t[43]=X,t[44]=J):J=t[44],J},g5=6048e5,lse=864e5,bx=Symbol.for("constructDateFrom");function Si(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bx in e?e[bx](t):e instanceof Date?new e.constructor(t):new Date(t)}function nr(e,t){return Si(t||e,e)}function v5(e,t){const n=()=>Si(t==null?void 0:t.in,NaN),r=fse(e);let i;if(r.date){const l=hse(r.date,2);i=pse(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=mse(r.time),isNaN(a)))return n();if(r.timezone){if(s=gse(r.timezone),isNaN(s))return n()}else{const l=new Date(o+a),c=nr(0,t==null?void 0:t.in);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return nr(o+a+s,t==null?void 0:t.in)}const pu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,use=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fse(e){const t={},n=e.split(pu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],pu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(pu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=pu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function hse(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,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function pse(e,t){if(t===null)return new Date(NaN);const n=e.match(cse);if(!n)return new Date(NaN);const r=!!n[4],i=tl(n[1]),o=tl(n[2])-1,a=tl(n[3]),s=tl(n[4]),l=tl(n[5])-1;if(r)return wse(t,s,l)?vse(t,s,l):new Date(NaN);{const c=new Date(0);return!yse(t,o,a)||!xse(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function tl(e){return e?parseInt(e):1}function mse(e){const t=e.match(use);if(!t)return NaN;const n=jp(t[1]),r=jp(t[2]),i=jp(t[3]);return _se(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function jp(e){return e&&parseFloat(e.replace(",","."))||0}function gse(e){if(e==="Z")return 0;const t=e.match(dse);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Cse(r,i)?n*(r*36e5+i*6e4):NaN}function vse(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const bse=[31,null,31,30,31,30,31,31,30,31,30,31];function b5(e){return e%400===0||e%4===0&&e%100!==0}function yse(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bse[t]||(b5(e)?29:28))}function xse(e,t){return t>=1&&t<=(b5(e)?366:365)}function wse(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function _se(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cse(e,t){return t>=0&&t<=59}let Sse={};function Ch(){return Sse}function ic(e,t){var s,l,c,u;const n=Ch(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=nr(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function kd(e,t){return ic(e,{...t,weekStartsOn:1})}function y5(e,t){const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Si(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=kd(i),a=Si(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=kd(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function yx(e){const t=nr(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 Tse(e,...t){const n=Si.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function xx(e,t){const n=nr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function kse(e,t,n){const[r,i]=Tse(n==null?void 0:n.in,e,t),o=xx(r),a=xx(i),s=+o-yx(o),l=+a-yx(a);return Math.round((s-l)/lse)}function $se(e,t){const n=y5(e,t),r=Si(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kd(r)}function Mse(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ese(e){return!(!Mse(e)&&typeof e!="number"||isNaN(+nr(e)))}function Ose(e,t){const n=nr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Ase={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"}},Rse=(e,t,n)=>{let r;const i=Ase[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 Pp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Dse={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ise={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jse={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pse={date:Pp({formats:Dse,defaultWidth:"full"}),time:Pp({formats:Ise,defaultWidth:"full"}),dateTime:Pp({formats:jse,defaultWidth:"full"})},Nse={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Lse=(e,t,n,r)=>Nse[e];function nl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Fse={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bse={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zse={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"]},Wse={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"]},Use={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"}},Hse={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"}},Vse=(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"},qse={ordinalNumber:Vse,era:nl({values:Fse,defaultWidth:"wide"}),quarter:nl({values:Bse,defaultWidth:"wide",argumentCallback:e=>e-1}),month:nl({values:zse,defaultWidth:"wide"}),day:nl({values:Wse,defaultWidth:"wide"}),dayPeriod:nl({values:Use,defaultWidth:"wide",formattingValues:Hse,defaultFormattingWidth:"wide"})};function rl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Gse(s,d=>d.test(a)):Yse(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function Yse(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Gse(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Zse(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Xse=/^(\d+)(th|st|nd|rd)?/i,Kse=/\d+/i,Jse={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},Qse={any:[/^b/i,/^(a|c)/i]},ele={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tle={any:[/1/i,/2/i,/3/i,/4/i]},nle={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},rle={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]},ile={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},ole={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]},ale={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},sle={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}},lle={ordinalNumber:Zse({matchPattern:Xse,parsePattern:Kse,valueCallback:e=>parseInt(e,10)}),era:rl({matchPatterns:Jse,defaultMatchWidth:"wide",parsePatterns:Qse,defaultParseWidth:"any"}),quarter:rl({matchPatterns:ele,defaultMatchWidth:"wide",parsePatterns:tle,defaultParseWidth:"any",valueCallback:e=>e+1}),month:rl({matchPatterns:nle,defaultMatchWidth:"wide",parsePatterns:rle,defaultParseWidth:"any"}),day:rl({matchPatterns:ile,defaultMatchWidth:"wide",parsePatterns:ole,defaultParseWidth:"any"}),dayPeriod:rl({matchPatterns:ale,defaultMatchWidth:"any",parsePatterns:sle,defaultParseWidth:"any"})},cle={code:"en-US",formatDistance:Rse,formatLong:Pse,formatRelative:Lse,localize:qse,match:lle,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ule(e,t){const n=nr(e,t==null?void 0:t.in);return kse(n,Ose(n))+1}function dle(e,t){const n=nr(e,t==null?void 0:t.in),r=+kd(n)-+$se(n);return Math.round(r/g5)+1}function x5(e,t){var u,d,f,h;const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ch(),o=(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,a=Si((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=ic(a,t),l=Si((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=ic(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function fle(e,t){var a,s,l,c;const n=Ch(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(l=n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??1,i=x5(e,t),o=Si((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),ic(o,t)}function hle(e,t){const n=nr(e,t==null?void 0:t.in),r=+ic(n,t)-+fle(n,t);return Math.round(r/g5)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ii={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(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 Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Bt(i,t.length)}},ka={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wx={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 Ii.y(e,t)},Y:function(e,t,n,r){const i=x5(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Bt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Bt(o,t.length)},R:function(e,t){const n=y5(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(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 Bt(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 Bt(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 Ii.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 Bt(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=hle(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Bt(i,t.length)},I:function(e,t,n){const r=dle(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ii.d(e,t)},D:function(e,t,n){const r=ule(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Bt(o,2);case"eo":return n.ordinalNumber(o,{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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Bt(o,t.length);case"co":return n.ordinalNumber(o,{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 Bt(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 r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ka.noon:r===0?i=ka.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=ka.evening:r>=12?i=ka.afternoon:r>=4?i=ka.morning:i=ka.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 Ii.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ii.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ii.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ii.s(e,t)},S:function(e,t){return Ii.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Cx(r);case"XXXX":case"XX":return _o(r);case"XXXXX":case"XXX":default:return _o(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Cx(r);case"xxxx":case"xx":return _o(r);case"xxxxx":case"xxx":default:return _o(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_x(r,":");case"OOOO":default:return"GMT"+_o(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_x(r,":");case"zzzz":default:return"GMT"+_o(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Bt(r,t.length)},T:function(e,t,n){return Bt(+e,t.length)}};function _x(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Bt(o,2)}function Cx(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):_o(e,t)}function _o(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Bt(Math.trunc(r/60),2),o=Bt(r%60,2);return n+i+t+o}const Sx=(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"})}},w5=(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"})}},ple=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Sx(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Sx(r,t)).replace("{{time}}",w5(i,t))},mle={p:w5,P:ple},gle=/^D+$/,vle=/^Y+$/,ble=["D","DD","YY","YYYY"];function yle(e){return gle.test(e)}function xle(e){return vle.test(e)}function wle(e,t,n){const r=_le(e,t,n);if(console.warn(r),ble.includes(e))throw new RangeError(r)}function _le(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 Cle=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tle=/^'([^]*?)'?$/,kle=/''/g,$le=/[a-zA-Z]/;function _5(e,t,n){var u,d,f,h;const r=Ch(),i=r.locale??cle,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=nr(e,n==null?void 0:n.in);if(!Ese(s))throw new RangeError("Invalid time value");let l=t.match(Sle).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=mle[m];return g(p,i.formatLong)}return p}).join("").match(Cle).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:Mle(p)};if(wx[m])return{isToken:!0,value:p};if(m.match($le))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const m=p.value;(xle(m)||yle(m))&&wle(m,t,String(e));const g=wx[m[0]];return g(s,m,i.localize,c)}).join("")}function Mle(e){const t=e.match(Tle);return t?t[1].replace(kle,"'"):e}function C5(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var oc;(function(e){e.event="event",e.props="prop"})(oc||(oc={}));function Bi(){}function Ele(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function ac(e){return!!(e||"").match(/\d/)}function za(e){return e==null}function Ole(e){return typeof e=="number"&&isNaN(e)}function S5(e){return za(e)||Ole(e)||typeof e=="number"&&!isFinite(e)}function T5(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ale(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Rle(e,t,n){var r=Ale(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function Dle(e){var t=v.useRef(e);t.current=e;var n=v.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function qv(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function Ile(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function k5(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function Tx(e,t){return Array(t+1).join(e)}function $5(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+Tx("0",Math.abs(a))+i:a>=s?i=i+Tx("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function kx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=qv(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),c=a.length<=t?"0."+a:l.toFixed(t),u=c.split("."),d=o;o&&Number(u[0])&&(d=o.split("").reverse().reduce(function(m,g,x){return m.length>x?(Number(m[0])+Number(g)).toString()+m.substring(1,m.length):g+m},u[0]));var f=k5(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function So(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var M5=Ele(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),jle=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Ple(e,t,n){return Math.min(Math.max(e,t),n)}function Np(e){return Math.max(e.selectionStart,e.selectionEnd)}function Nle(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Lle(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Fle(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function Ble(e,t,n,r,i,o,a){a===void 0&&(a=Fle);var s=i.findIndex(function(C){return C}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var c=n.length,u=e.length,d={},f=new Array(c),h=0;h<c;h++){f[h]=-1;for(var p=0,m=u;p<m;p++){var g=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(g&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var x=r;x<c&&(f[x]===-1||!o(n[x]));)x++;var _=x===c||f[x]===-1?u:f[x];for(x=r-1;x>0&&f[x]===-1;)x--;var w=x===-1||f[x]===-1?0:f[x]+1;return w>_?_:r-w<_-r?w:_}function $x(e,t,n,r){var i=e.length;if(t=Ple(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function zle(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(ac(e[n])||ac(e[n-1]));return t}function E5(e,t,n,r,i,o){o===void 0&&(o=Bi);var a=Dle(function(p,m){var g,x;return S5(p)?(x="",g=""):typeof p=="number"||m?(x=typeof p=="number"?$5(p):p,g=r(x)):(x=i(p,void 0),g=r(x)),{formattedValue:g,numAsString:x}}),s=v.useState(function(){return a(za(e)?t:e,n)}),l=s[0],c=s[1],u=function(p,m){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),o(p,m)},d=e,f=n;za(e)&&(d=l.numAsString,f=!0);var h=a(d,f);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function Wle(e){return e.replace(/[^0-9]/g,"")}function Ule(e){return e}function Hle(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=Ule);var s=e.removeFormatting;s===void 0&&(s=Wle);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Bi);var h=e.onKeyDown;h===void 0&&(h=Bi);var p=e.onMouseUp;p===void 0&&(p=Bi);var m=e.onFocus;m===void 0&&(m=Bi);var g=e.onBlur;g===void 0&&(g=Bi);var x=e.value,_=e.getCaretBoundary;_===void 0&&(_=zle);var w=e.isValidInputCharacter;w===void 0&&(w=ac);var C=e.isCharacterSame,b=C5(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=E5(x,l,!!c,a,s,u),M=S[0],k=M.formattedValue,$=M.numAsString,R=S[1],T=v.useRef(),E=v.useRef({formattedValue:k,numAsString:$}),A=function(ne,re){E.current={formattedValue:ne.formattedValue,numAsString:ne.value},R(ne,re)},I=v.useState(!1),j=I[0],D=I[1],O=v.useRef(null),L=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return D(!0),function(){clearTimeout(L.current.setCaretTimeout),clearTimeout(L.current.focusTimeout)}},[]);var z=a,N=function(ne,re){var oe=parseFloat(re);return{formattedValue:ne,value:re,floatValue:isNaN(oe)?void 0:oe}},H=function(ne,re,oe){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(So(ne,re),L.current.setCaretTimeout=setTimeout(function(){ne.value===oe&&ne.selectionStart!==re&&So(ne,re)},0))},Y=function(ne,re,oe){return $x(ne,re,_(ne),oe)},q=function(ne,re,oe){var le=_(re),ye=Ble(re,k,ne,oe,le,w,C);return ye=$x(re,ye,le),ye},Z=function(ne){var re=ne.formattedValue;re===void 0&&(re="");var oe=ne.input,le=ne.source,ye=ne.event,ge=ne.numAsString,be;if(oe){var Me=ne.inputValue||oe.value,ce=Np(oe);oe.value=re,be=q(Me,re,ce),be!==void 0&&H(oe,be,re)}re!==k&&A(N(re,ge),{event:ye,source:le})};v.useEffect(function(){var ne=E.current,re=ne.formattedValue,oe=ne.numAsString;(k!==re||$!==oe)&&A(N(k,$),{event:void 0,source:oc.props})},[k,$]);var X=O.current?Np(O.current):void 0,J=typeof window<"u"?v.useLayoutEffect:v.useEffect;J(function(){var ne=O.current;if(k!==E.current.formattedValue&&ne){var re=q(E.current.formattedValue,k,X);ne.value=k,H(ne,re,k)}},[k]);var ee=function(ne,re,oe){var le=re.target,ye=T.current?jle(T.current,le.selectionEnd):M5(k,ne),ge=Object.assign(Object.assign({},ye),{lastValue:k}),be=s(ne,ge),Me=z(be);if(be=s(Me,void 0),d&&!d(N(Me,be))){var ce=re.target,de=Np(ce),Ce=q(ne,k,de);return ce.value=k,H(ce,Ce,k),!1}return Z({formattedValue:Me,numAsString:be,inputValue:ne,event:re,source:oe,input:re.target}),!0},W=function(ne,re){re===void 0&&(re=0);var oe=ne.selectionStart,le=ne.selectionEnd;T.current={selectionStart:oe,selectionEnd:le+re}},F=function(ne){var re=ne.target,oe=re.value,le=ee(oe,ne,oc.event);le&&f(ne),T.current=void 0},B=function(ne){var re=ne.target,oe=ne.key,le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be;oe==="ArrowLeft"||oe==="Backspace"?be=Math.max(le-1,0):oe==="ArrowRight"?be=Math.min(le+1,ge.length):oe==="Delete"&&(be=le);var Me=0;oe==="Delete"&&le===ye&&(Me=1);var ce=oe==="ArrowLeft"||oe==="ArrowRight";if(be===void 0||le!==ye&&!ce){h(ne),W(re,Me);return}var de=be;if(ce){var Ce=oe==="ArrowLeft"?"left":"right";de=Y(ge,be,Ce),de!==be&&ne.preventDefault()}else oe==="Delete"&&!w(ge[be])?de=Y(ge,be,"right"):oe==="Backspace"&&!w(ge[be])&&(de=Y(ge,be,"left"));de!==be&&H(re,de,ge),h(ne),W(re,Me)},V=function(ne){var re=ne.target,oe=function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;if(ge===void 0&&(ge=""),le===ye){var be=Y(ge,le);be!==le&&H(re,be,ge)}};oe(),requestAnimationFrame(function(){oe()}),p(ne),W(re)},P=function(ne){ne.persist&&ne.persist();var re=ne.target,oe=ne.currentTarget;O.current=re,L.current.focusTimeout=setTimeout(function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be=Y(ge,le);be!==le&&!(le===0&&ye===ge.length)&&H(re,be,ge),m(Object.assign(Object.assign({},ne),{currentTarget:oe}))},0)},te=function(ne){O.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(ne)},K=j&&Nle()?"numeric":void 0,G=Object.assign({inputMode:K},b,{type:t,value:k,onChange:F,onKeyDown:B,onMouseUp:V,onFocus:P,onBlur:te});if(n==="text")return i?v.createElement(v.Fragment,null,i(k,b)||null):v.createElement("span",Object.assign({},b,{ref:o}),k);if(r){var ae=r;return v.createElement(ae,Object.assign({},G,{ref:o}))}return v.createElement("input",Object.assign({},G,{ref:o}))}function Mx(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=Sh(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=qv(e,a),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=k5(p,n,!!r)),c&&(h=Rle(h,c,s)),i&&(h=i+h),o&&(p=p+o),m&&(h="-"+h),e=h+(d&&u||"")+p,e}function Sh(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Vle(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function qle(e,t){return new RegExp("(^-)|[0-9]|"+T5(e),"g")}function Yle(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function Gle(e,t,n){var r;t===void 0&&(t=Lle(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=Sh(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[d]===p;if(ac(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var g=s===0?"":p;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var x=function(O,L,z){var N=!1,H=!1;o.startsWith("-")?N=!1:O.startsWith("--")?(N=!1,H=!0):a.startsWith("-")&&O.length===a.length?N=!1:O[0]==="-"&&(N=!0);var Y=N?1:0;return H&&(Y=2),Y&&(O=O.substring(Y),L-=Y,z-=Y),{value:O,start:L,end:z,hasNegation:N}},_=x(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=x(t.lastValue,l.start,l.end),b=C.start,S=C.end,M=C.value,k=e.substring(u,d);e.length&&M.length&&(b>M.length-a.length||S<o.length)&&!(k&&a.startsWith(k))&&(e=M);var $=0;e.startsWith(o)?$+=o.length:u<o.length&&($=u),e=e.substring($),d-=$;var R=e.length,T=e.length-a.length;e.endsWith(a)?R=T:(d>T||d>e.length-a.length)&&(R=d),e=e.substring(0,R),e=Vle(w?"-"+e:e,i),e=(e.match(qle(p))||[]).join("");var E=e.indexOf(p);e=e.replace(new RegExp(T5(p),"g"),function(O,L){return L===E?".":""});var A=qv(e,i),I=A.beforeDecimal,j=A.afterDecimal,D=A.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=D?"-":""),e}function Zle(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function Xle(e){var t=Sh(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
274
+ Decimal separator can't be same as thousand separator.
275
+ thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
276
+ decimalSeparator: `+r+` (default value for decimalSeparator is .)
277
+ `);return i.startsWith("-")&&o&&(console.error(`
278
+ Prefix can't start with '-' when allowNegative is true.
279
+ prefix: `+i+`
280
+ allowNegative: `+o+`
281
+ `),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function Kle(e){e=Xle(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Bi);var o=e.onBlur;o===void 0&&(o=Bi);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,p=C5(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Sh(e),g=m.decimalSeparator,x=m.allowedDecimalSeparators,_=function(D){return Mx(D,e)},w=function(D,O){return Gle(D,O,e)},C=za(d)?u:d,b=f??Yle(C,c,t);za(d)?za(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var S=function(D){return S5(D)?D:(typeof D=="number"&&(D=$5(D)),b&&typeof s=="number"?kx(D,s,!!l):D)},M=E5(S(d),S(u),!!b,_,w,h),k=M[0],$=k.numAsString,R=k.formattedValue,T=M[1],E=function(D){var O=D.target,L=D.key,z=O.selectionStart,N=O.selectionEnd,H=O.value;if(H===void 0&&(H=""),(L==="Backspace"||L==="Delete")&&N<c.length){D.preventDefault();return}if(z!==N){i(D);return}L==="Backspace"&&H[0]==="-"&&z===c.length+1&&n&&So(O,1),s&&l&&(L==="Backspace"&&H[z-1]===g?(So(O,z-1),D.preventDefault()):L==="Delete"&&H[z]===g&&D.preventDefault()),x!=null&&x.includes(L)&&H[z]===g&&So(O,z+1);var Y=a===!0?",":a;L==="Backspace"&&H[z-1]===Y&&So(O,z-1),L==="Delete"&&H[z]===Y&&So(O,z+1),i(D)},A=function(D){var O=$;if(O.match(/\d/g)||(O=""),r||(O=Ile(O)),l&&s&&(O=kx(O,s,l)),O!==$){var L=Mx(O,e);T({formattedValue:L,value:O,floatValue:parseFloat(O)},{event:D,source:oc.event})}o(D)},I=function(D){return D===g?!0:ac(D)},j=function(D){var O=D.currentValue,L=D.lastValue,z=D.formattedValue,N=D.currentValueIndex,H=D.formattedValueIndex,Y=O[N],q=z[H],Z=M5(L,O),X=Z.to,J=function(ee){return w(ee).indexOf(".")+c.length};return d===0&&l&&s&&O[X.start]===g&&J(O)<N&&J(z)>H?!1:N>=X.start&&N<X.end&&x&&x.includes(Y)&&q===g?!0:Y===q};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:T,format:_,removeFormatting:w,getCaretBoundary:function(D){return Zle(D,e)},onKeyDown:E,onBlur:A})}function Jle(e){var t=Kle(e);return v.createElement(Hle,Object.assign({},t))}const Qle=(e,t)=>{var i,o;const n=e.getValue(),r=((o=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:o.alignment)??"center";return n===!0||n===!1?y.jsx(t,{align:r,color:n?"success":"secondary",icon:n?"boolean-yes":"boolean-no"}):null},ece=e=>{const t=e.getValue();return t?_5(v5(t.toString()),"dd.MM.yyyy"):null},tce=e=>{const t=e.getValue();return t?_5(v5(t.toString()),"dd.MM.yyyy HH:mm"):null},nce=e=>{const t=e.getValue(),n=e.column.columnDef,r=n.type==="number"?n.numericMeta:void 0;return t==null||t===void 0||t===""?null:r!=null&&r.noFormatting?(t==null?void 0:t.toString())??null:y.jsx(Jle,{decimalScale:(r==null?void 0:r.decimalScale)??2,decimalSeparator:",",defaultValue:"",displayType:"text",fixedDecimalScale:r==null?void 0:r.fixedDecimalScale,prefix:r==null?void 0:r.prefix,suffix:r==null?void 0:r.suffix,thousandSeparator:" ",value:t.toString()})},rce=e=>{const t=e,n=e.meta;return n!=null&&n.filterVariant?(n==null?void 0:n.filterVariant)==="select"?(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":"multiselect":(t==null?void 0:t.type)==="string"?"text":t==null?void 0:t.type:(t==null?void 0:t.type)==="string"?"text":(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":t==null?void 0:t.type};function ice(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ex={exports:{}},Ox;function oce(){return Ox||(Ox=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Ex)),Ex.exports}var ace=oce();const Ie=ice(ace),sce="_container_1jre8_1",lce="_no-value_1jre8_6",cce="_input_1jre8_21",uce="_no-value-button-container_1jre8_24",mu={container:sce,noValue:lce,input:cce,noValueButtonContainer:uce},dce=({column:e,filterValue:t,IconComponent:n,InputComponent:r,texts:i})=>{const[o,a]=v.useState(t??""),[s,l]=v.useState(!1),[c,u]=v.useState(!1);v.useEffect(()=>{a(t??"")},[t]),v.useEffect(()=>{if((o||null)===(t||null))return;const f=setTimeout(()=>{e.setFilterValue(o??null)},500);return()=>clearTimeout(f)},[o,e,t]);const d=v.useMemo(()=>o==="no_value_filter_value",[o]);return y.jsx("div",{className:mu.container,children:d?y.jsx("div",{className:mu.noValue,role:"button",onClick:()=>{a(""),u(!1),l(!1)},children:i.noValue}):y.jsxs(y.Fragment,{children:[y.jsx(r,{className:Ie("filter",mu.input,{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:o,onChange:f=>{a(f.target.value??"")},onKeyDown:f=>{f.key==="Escape"&&a("")},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),d?null:y.jsx("div",{className:Ie(mu.noValueButtonContainer),style:{opacity:s||c?1:0},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:y.jsx("div",{role:"button",onClick:()=>{a(d?"":"no_value_filter_value"),l(!1)},children:y.jsx(n,{className:"no-value-icon",icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function ls(e,t=ls.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ls.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 fce="_multiselect_1gflo_1",hce="_multiselect-menu_1gflo_35",pce="_dropdown-menu-item_1gflo_42",mce="_search-item_1gflo_45",gce="_search-input_1gflo_49",vce="_special-option_1gflo_52",go={multiselect:fce,multiselectMenu:hce,dropdownMenuItem:pce,searchItem:mce,searchInput:gce,specialOption:vce},Ax=10,bce=({column:e,filterValue:t,texts:n,InputComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,CheckComponent:s,DropdownTriggerComponent:l})=>{var b,S,M;const[c,u]=v.useState(""),d=e.getFacetedUniqueValues().keys(),f=v.useMemo(()=>Array.from(d).map(k=>k===!0||k===!1?k:(k==null?void 0:k.toString())??"").sort(),[d]),h=v.useMemo(()=>f.some(k=>k===""||k===null||k===void 0),[f]),p=v.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),m=k=>{const $=k===""?[]:p.includes(k)?p.filter(R=>R!==k):[...p,k];e.setFilterValue(!$||$.length<1?"":$.join(";"))},g=v.useMemo(()=>{const k=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return h&&k.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),f.forEach($=>{k.push({value:($==null?void 0:$.toString())||"",label:$===!0?n.booleanYes||"ano":$===!1?n.booleanNo||"ne":$,specialOption:!1})}),p.forEach($=>{$&&$!=="no_value_filter_value"&&!f.some(R=>R.toString()===$.toString())&&k.push({value:$,label:$,specialOption:!1})}),Array.from(new Set(k.map($=>$.value))).map($=>k.find(R=>R.value===$))},[f,p,h,n]),x=v.useRef(null),_=v.useRef(null),[w,C]=v.useState(!1);return v.useEffect(()=>{w&&_.current&&_.current.focus()},[w]),v.useEffect(()=>{g.length<Ax&&u("")},[g]),y.jsxs(i,{onToggleOpen:k=>C(k),children:[y.jsx(l,{className:Ie("filter multiselect",go.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:x,role:"filter-input",onKeyDown:k=>{k.key==="Escape"&&e.setFilterValue("")},children:p.length>1?n.multiselect.xValues?n.multiselect.xValues(p.length):`${p.length} hodnoty`:p.length===1?(b=g.find(k=>k.value===t))==null?void 0:b.label:n.multiselect.all||"vše"}),y.jsxs(o,{className:Ie("multiselect-menu",go.multiselectMenu),style:{position:"relative",left:(S=x.current)==null?void 0:S.getBoundingClientRect().left,top:(M=x.current)==null?void 0:M.getBoundingClientRect().bottom},children:[g.length>=Ax?y.jsx(a,{className:Ie("search-item",go.dropdownMenuItem,go.searchItem),children:y.jsx(r,{className:go.searchInput,ref:_,size:"sm",type:"search",value:c,onChange:k=>u(k.target.value??"")})}):null,g.filter(k=>k.specialOption?!0:c?ls(k.value).toLowerCase().includes(ls(c.toLowerCase())):!0).map(k=>y.jsx(a,{className:Ie(go.dropdownMenuItem,{"special-option":k.specialOption},{[go.specialOption]:k.specialOption}),onClick:$=>{$.preventDefault(),$.stopPropagation(),m(k.value)},children:y.jsx(s,{checked:k.value===""?p.length<1:p.includes(k.value),label:k.label,onChange:()=>{}})},k.value))]})]})},yce=({column:e,IconComponent:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,DropdownTriggerComponent:a,CheckComponent:s,texts:l})=>{const c=e.getFilterValue(),u=rce(e.columnDef);return["text","number","date","datetime"].includes(u)?y.jsx(dce,{column:e,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l}):y.jsx(bce,{CheckComponent:s,column:e,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,DropdownTriggerComponent:a,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l})};function xce(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function O5(e,t){return e?wce(e)?fe.createElement(e,t):e:null}function wce(e){return _ce(e)||typeof e=="function"||Cce(e)}function _ce(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Cce(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const Sce="_table-scroll-container_wu79d_1",Tce="_full-screen_wu79d_8",kce="_table_wu79d_1",$ce="_thead_wu79d_24",Mce="_tbody_wu79d_25",Ece="_th_wu79d_24",Oce="_pinned_wu79d_38",Ace="_sorted_wu79d_41",Rce="_heading_wu79d_44",Dce="_can-sort_wu79d_50",Ice="_content_wu79d_53",jce="_resizer_wu79d_59",Pce="_resizer-bar_wu79d_73",Nce="_reorder-handle_wu79d_79",Lce="_dragging_wu79d_84",Fce="_row-selection-info_wu79d_88",Bce="_tr_wu79d_92",zce="_td_wu79d_100",Wce="_left_wu79d_117",Uce="_center_wu79d_121",Hce="_right_wu79d_125",Vce="_first-right_wu79d_134",qce="_grouped_wu79d_142",Yce="_expanded_wu79d_147",Gce="_selected-cell_wu79d_151",Zce="_sm_wu79d_155",Xce="_lg_wu79d_160",Kce="_clickable_wu79d_168",Jce="_cell-selected-row_wu79d_172",Qce="_cell-selection-disabled_wu79d_180",eue="_own-click_wu79d_203",tue="_expander-button_wu79d_211",nue="_empty-table-alert_wu79d_217",rue="_remove-filters-button-wrapper_wu79d_225",iue="_remove-filters-button_wu79d_225",oue="_bottom-bar_wu79d_255",aue="_left-items_wu79d_271",sue="_pagination_wu79d_277",lue="_page-info-text_wu79d_283",cue="_right-items_wu79d_289",uue="_sizing-menu_wu79d_310",due="_sizing-menu-item_wu79d_315",We={tableScrollContainer:Sce,fullScreen:Tce,table:kce,thead:$ce,tbody:Mce,th:Ece,pinned:Oce,sorted:Ace,heading:Rce,canSort:Dce,content:Ice,resizer:jce,resizerBar:Pce,reorderHandle:Nce,dragging:Lce,rowSelectionInfo:Fce,tr:Bce,td:zce,left:Wce,center:Uce,right:Hce,firstRight:Vce,grouped:qce,expanded:Yce,selectedCell:Gce,sm:Zce,lg:Xce,clickable:Kce,cellSelectedRow:Jce,cellSelectionDisabled:Qce,ownClick:eue,expanderButton:tue,emptyTableAlert:nue,removeFiltersButtonWrapper:rue,removeFiltersButton:iue,bottomBar:oue,leftItems:aue,pagination:sue,pageInfoText:lue,rightItems:cue,sizingMenu:uue,sizingMenuItem:due};function fue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Th=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function As(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Yv(e){return"nodeType"in e}function Kn(e){var t,n;return e?As(e)?e:Yv(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Gv(e){const{Document:t}=Kn(e);return e instanceof t}function Lc(e){return As(e)?!1:e instanceof Kn(e).HTMLElement}function A5(e){return e instanceof Kn(e).SVGElement}function Rs(e){return e?As(e)?e.document:Yv(e)?Gv(e)?e:Lc(e)||A5(e)?e.ownerDocument:document:document:document}const Zr=Th?v.useLayoutEffect:v.useEffect;function Zv(e){const t=v.useRef(e);return Zr(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function hue(){const e=v.useRef(null),t=v.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function sc(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return Zr(()=>{n.current!==e&&(n.current=e)},t),n}function Fc(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function $d(e){const t=Zv(e),n=v.useRef(null),r=v.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function fg(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let Lp={};function Bc(e,t){return v.useMemo(()=>{if(t)return t;const n=Lp[e]==null?0:Lp[e]+1;return Lp[e]=n,e+"-"+n},[e,t])}function R5(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[l,c]of s){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const Wa=R5(1),Md=R5(-1);function pue(e){return"clientX"in e&&"clientY"in e}function Xv(e){if(!e)return!1;const{KeyboardEvent:t}=Kn(e.target);return t&&e instanceof t}function mue(e){if(!e)return!1;const{TouchEvent:t}=Kn(e.target);return t&&e instanceof t}function hg(e){if(mue(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return pue(e)?{x:e.clientX,y:e.clientY}:null}const lc=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[lc.Translate.toString(e),lc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Rx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function gue(e){return e.matches(Rx)?e:e.querySelector(Rx)}const vue={display:"none"};function bue(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:vue},n)}function yue(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return v.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function xue(){const[e,t]=v.useState("");return{announce:v.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const D5=v.createContext(null);function wue(e){const t=v.useContext(D5);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function _ue(){const[e]=v.useState(()=>new Set),t=v.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[v.useCallback(n=>{let{type:r,event:i}=n;e.forEach(o=>{var a;return(a=o[r])==null?void 0:a.call(o,i)})},[e]),t]}const Cue={draggable:`
282
+ To pick up a draggable item, press the space bar.
283
+ While dragging, use the arrow keys to move the item.
284
+ Press space again to drop the item in its new position, or press escape to cancel.
285
+ `},Sue={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Tue(e){let{announcements:t=Sue,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Cue}=e;const{announce:o,announcement:a}=xue(),s=Bc("DndLiveRegion"),[l,c]=v.useState(!1);if(v.useEffect(()=>{c(!0)},[]),wue(v.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const u=v.createElement(v.Fragment,null,v.createElement(bue,{id:r,value:i.draggable}),v.createElement(yue,{id:s,announcement:a}));return n?Un.createPortal(u,n):u}var hn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(hn||(hn={}));function Ed(){}function Fp(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function kue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Er=Object.freeze({x:0,y:0});function $ue(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Mue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Eue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Oue(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Dx(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Aue=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Dx(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=$ue(Dx(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(Mue)};function Rue(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=a*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Due=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=Rue(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(Eue)};function Iue(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function I5(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Er}function jue(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...t})}}const Pue=jue(1);function Nue(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Lue(e,t,n){const r=Nue(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const Fue={ignoreTransform:!1};function Ds(e,t){t===void 0&&(t=Fue);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Kn(e).getComputedStyle(e);c&&(n=Lue(n,c,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function Ix(e){return Ds(e,{ignoreTransform:!0})}function Bue(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function zue(e,t){return t===void 0&&(t=Kn(e).getComputedStyle(e)),t.position==="fixed"}function Wue(e,t){t===void 0&&(t=Kn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function Kv(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Gv(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Lc(i)||A5(i)||n.includes(i))return n;const o=Kn(e).getComputedStyle(i);return i!==e&&Wue(i,o)&&n.push(i),zue(i,o)?n:r(i.parentNode)}return e?r(e):n}function j5(e){const[t]=Kv(e,1);return t??null}function Bp(e){return!Th||!e?null:As(e)?e:Yv(e)?Gv(e)||e===Rs(e).scrollingElement?window:Lc(e)?e:null:null}function P5(e){return As(e)?e.scrollX:e.scrollLeft}function N5(e){return As(e)?e.scrollY:e.scrollTop}function pg(e){return{x:P5(e),y:N5(e)}}var yn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(yn||(yn={}));function L5(e){return!Th||!e?!1:e===document.scrollingElement}function F5(e){const t={x:0,y:0},n=L5(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const Uue={x:.2,y:.2};function Hue(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Uue);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=F5(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+m.height?(h.y=yn.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&l>=t.bottom-m.height&&(h.y=yn.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=yn.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=yn.Backward,p.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}function Vue(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function B5(e){return e.reduce((t,n)=>Wa(t,pg(n)),Er)}function que(e){return e.reduce((t,n)=>t+P5(n),0)}function Yue(e){return e.reduce((t,n)=>t+N5(n),0)}function Gue(e,t){if(t===void 0&&(t=Ds),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);j5(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Zue=[["x",["left","right"],que],["y",["top","bottom"],Yue]];class Jv{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Kv(n),i=B5(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of Zue)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class bl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Xue(e){const{EventTarget:t}=Kn(e);return e instanceof t?e:Rs(e)}function zp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var or;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(or||(or={}));function jx(e){e.preventDefault()}function Kue(e){e.stopPropagation()}var Ot;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ot||(Ot={}));const z5={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},Jue=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};class Qv{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new bl(Rs(n)),this.windowListeners=new bl(Kn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(or.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Gue(r),n(Er)}handleKeyDown(t){if(Xv(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=z5,coordinateGetter:a=Jue,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Er;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=Md(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:b,minScroll:S}=F5(m),M=Vue(m),k={x:Math.min(g===Ot.Right?M.right-M.width/2:M.right,Math.max(g===Ot.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(g===Ot.Down?M.bottom-M.height/2:M.bottom,Math.max(g===Ot.Down?M.top:M.top+M.height/2,d.y))},$=g===Ot.Right&&!_||g===Ot.Left&&!w,R=g===Ot.Down&&!C||g===Ot.Up&&!x;if($&&k.x!==d.x){const T=m.scrollLeft+f.x,E=g===Ot.Right&&T<=b.x||g===Ot.Left&&T>=S.x;if(E&&!f.y){m.scrollTo({left:T,behavior:s});return}E?h.x=m.scrollLeft-T:h.x=g===Ot.Right?m.scrollLeft-b.x:m.scrollLeft-S.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(R&&k.y!==d.y){const T=m.scrollTop+f.y,E=g===Ot.Down&&T<=b.y||g===Ot.Up&&T>=S.y;if(E&&!f.x){m.scrollTo({top:T,behavior:s});return}E?h.y=m.scrollTop-T:h.y=g===Ot.Down?m.scrollTop-b.y:m.scrollTop-S.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Wa(Md(d,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Qv.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=z5,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Px(e){return!!(e&&"distance"in e)}function Nx(e){return!!(e&&"delay"in e)}class e1{constructor(t,n,r){var i;r===void 0&&(r=Xue(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:a}=o;this.props=t,this.events=n,this.document=Rs(a),this.documentListeners=new bl(this.document),this.listeners=new bl(r),this.windowListeners=new bl(Kn(a)),this.initialCoordinates=(i=hg(o))!=null?i:Er,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.DragStart,jx),this.windowListeners.add(or.VisibilityChange,this.handleCancel),this.windowListeners.add(or.ContextMenu,jx),this.documentListeners.add(or.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Nx(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Px(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(or.Click,Kue,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(or.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const l=(n=hg(t))!=null?n:Er,c=Md(i,l);if(!r&&s){if(Px(s)){if(s.tolerance!=null&&zp(c,s.tolerance))return this.handleCancel();if(zp(c,s.distance))return this.handleStart()}if(Nx(s)&&zp(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Que={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class W5 extends e1{constructor(t){const{event:n}=t,r=Rs(n.target);super(t,Que,r)}}W5.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const ede={move:{name:"mousemove"},end:{name:"mouseup"}};var mg;(function(e){e[e.RightClick=2]="RightClick"})(mg||(mg={}));class U5 extends e1{constructor(t){super(t,ede,Rs(t.event.target))}}U5.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===mg.RightClick?!1:(r==null||r({event:n}),!0)}}];const Wp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class H5 extends e1{constructor(t){super(t,Wp)}static setup(){return window.addEventListener(Wp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Wp.move.name,t)};function t(){}}}H5.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var yl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(yl||(yl={}));var Od;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Od||(Od={}));function tde(e){let{acceleration:t,activator:n=yl.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=Od.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=rde({delta:d,disabled:!o}),[p,m]=hue(),g=v.useRef({x:0,y:0}),x=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case yl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case yl.DraggableRect:return i}},[n,i,l]),w=v.useRef(null),C=v.useCallback(()=>{const S=w.current;if(!S)return;const M=g.current.x*x.current.x,k=g.current.y*x.current.y;S.scrollBy(M,k)},[]),b=v.useMemo(()=>s===Od.TreeOrder?[...c].reverse():c,[s,c]);v.useEffect(()=>{if(!o||!c.length||!_){m();return}for(const S of b){if((r==null?void 0:r(S))===!1)continue;const M=c.indexOf(S),k=u[M];if(!k)continue;const{direction:$,speed:R}=Hue(S,k,_,t,f);for(const T of["x","y"])h[T][$[T]]||(R[T]=0,$[T]=0);if(R.x>0||R.y>0){m(),w.current=S,p(C,a),g.current=R,x.current=$;return}}g.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,o,a,JSON.stringify(_),JSON.stringify(h),p,c,b,u,JSON.stringify(f)])}const nde={x:{[yn.Backward]:!1,[yn.Forward]:!1},y:{[yn.Backward]:!1,[yn.Forward]:!1}};function rde(e){let{delta:t,disabled:n}=e;const r=fg(t);return Fc(i=>{if(n||!r||!i)return nde;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[yn.Backward]:i.x[yn.Backward]||o.x===-1,[yn.Forward]:i.x[yn.Forward]||o.x===1},y:{[yn.Backward]:i.y[yn.Backward]||o.y===-1,[yn.Forward]:i.y[yn.Forward]||o.y===1}}},[n,t,r])}function ide(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fc(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function ode(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var cc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(cc||(cc={}));var gg;(function(e){e.Optimized="optimized"})(gg||(gg={}));const Lx=new Map;function ade(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=v.useState(null),{frequency:s,measure:l,strategy:c}=i,u=v.useRef(e),d=g(),f=sc(d),h=v.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),p=v.useRef(null),m=Fc(x=>{if(d&&!n)return Lx;if(!x||x===Lx||u.current!==e||o!=null){const _=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,b=C?new Jv(l(C),C):null;w.rect.current=b,b&&_.set(w.id,b)}return _}return x},[e,o,n,d,l]);return v.useEffect(()=>{u.current=e},[e]),v.useEffect(()=>{d||h()},[n,d]),v.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),v.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:o!=null};function g(){switch(c){case cc.Always:return!1;case cc.BeforeDragging:return n;default:return!n}}}function V5(e,t){return Fc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function sde(e,t){return V5(e,t)}function lde(e){let{callback:t,disabled:n}=e;const r=Zv(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function kh(e){let{callback:t,disabled:n}=e;const r=Zv(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function cde(e){return new Jv(Ds(e),e)}function Fx(e,t,n){t===void 0&&(t=cde);const[r,i]=v.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=lde({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=kh({callback:o});return Zr(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function ude(e){const t=V5(e);return I5(e,t)}const Bx=[];function dde(e){const t=v.useRef(e),n=Fc(r=>e?r&&r!==Bx&&e&&t.current&&e.parentNode===t.current.parentNode?r:Kv(e):Bx,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function fde(e){const[t,n]=v.useState(null),r=v.useRef(e),i=v.useCallback(o=>{const a=Bp(o.target);a&&n(s=>s?(s.set(a,pg(a)),new Map(s)):null)},[]);return v.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=Bp(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,pg(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(l=>{const c=Bp(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Wa(o,a),Er):B5(e):Er,[e,t])}function zx(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==Er;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Md(e,n.current):Er}function hde(e){v.useEffect(()=>{if(!Th)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function pde(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function q5(e){return v.useMemo(()=>e?Bue(e):null,[e])}const Wx=[];function mde(e,t){t===void 0&&(t=Ds);const[n]=e,r=q5(n?Kn(n):null),[i,o]=v.useState(Wx);function a(){o(()=>e.length?e.map(l=>L5(l)?r:new Jv(t(l),l)):Wx)}const s=kh({callback:a});return Zr(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function gde(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Lc(t)?t:e}function vde(e){let{measure:t}=e;const[n,r]=v.useState(null),i=v.useCallback(c=>{for(const{target:u}of c)if(Lc(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=kh({callback:i}),a=v.useCallback(c=>{const u=gde(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,l]=$d(a);return v.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const bde=[{sensor:W5,options:{}},{sensor:Qv,options:{}}],yde={current:{}},Du={draggable:{measure:Ix},droppable:{measure:Ix,strategy:cc.WhileDragging,frequency:gg.Optimized},dragOverlay:{measure:Ds}};class xl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const xde={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ed},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Du,measureDroppableContainers:Ed,windowRect:null,measuringScheduled:!1},wde={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ed,draggableNodes:new Map,over:null,measureDroppableContainers:Ed},$h=v.createContext(wde),Y5=v.createContext(xde);function _de(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xl}}}function Cde(e,t){switch(t.type){case hn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case hn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case hn.DragEnd:case hn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case hn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new xl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case hn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new xl(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case hn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new xl(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Sde(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=v.useContext($h),o=fg(r),a=fg(n==null?void 0:n.id);return v.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!Xv(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=gue(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function Tde(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function kde(e){return v.useMemo(()=>({draggable:{...Du.draggable,...e==null?void 0:e.draggable},droppable:{...Du.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Du.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function $de(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=v.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Zr(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=I5(c,r);if(a||(u.x=0),s||(u.y=0),o.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=j5(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const G5=v.createContext({...Er,scaleX:1,scaleY:1});var Ni;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ni||(Ni={}));const Mde=v.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:c=bde,collisionDetection:u=Due,measuring:d,modifiers:f,...h}=e;const p=v.useReducer(Cde,void 0,_de),[m,g]=p,[x,_]=_ue(),[w,C]=v.useState(Ni.Uninitialized),b=w===Ni.Initialized,{draggable:{active:S,nodes:M,translate:k},droppable:{containers:$}}=m,R=S!=null?M.get(S):null,T=v.useRef({initial:null,translated:null}),E=v.useMemo(()=>{var Ke;return S!=null?{id:S,data:(Ke=R==null?void 0:R.data)!=null?Ke:yde,rect:T}:null},[S,R]),A=v.useRef(null),[I,j]=v.useState(null),[D,O]=v.useState(null),L=sc(h,Object.values(h)),z=Bc("DndDescribedBy",o),N=v.useMemo(()=>$.getEnabled(),[$]),H=kde(d),{droppableRects:Y,measureDroppableContainers:q,measuringScheduled:Z}=ade(N,{dragging:b,dependencies:[k.x,k.y],config:H.droppable}),X=ide(M,S),J=v.useMemo(()=>D?hg(D):null,[D]),ee=At(),W=sde(X,H.draggable.measure);$de({activeNode:S!=null?M.get(S):null,config:ee.layoutShiftCompensation,initialRect:W,measure:H.draggable.measure});const F=Fx(X,H.draggable.measure,W),B=Fx(X?X.parentElement:null),V=v.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),P=$.getNodeFor((t=V.current.over)==null?void 0:t.id),te=vde({measure:H.dragOverlay.measure}),K=(n=te.nodeRef.current)!=null?n:X,G=b?(r=te.rect)!=null?r:F:null,ae=!!(te.nodeRef.current&&te.rect),ne=ude(ae?null:F),re=q5(K?Kn(K):null),oe=dde(b?P??X:null),le=mde(oe),ye=Tde(f,{transform:{x:k.x-ne.x,y:k.y-ne.y,scaleX:1,scaleY:1},activatorEvent:D,active:E,activeNodeRect:F,containerNodeRect:B,draggingNodeRect:G,over:V.current.over,overlayNodeRect:te.rect,scrollableAncestors:oe,scrollableAncestorRects:le,windowRect:re}),ge=J?Wa(J,k):null,be=fde(oe),Me=zx(be),ce=zx(be,[F]),de=Wa(ye,Me),Ce=G?Pue(G,ye):null,Ge=E&&Ce?u({active:E,collisionRect:Ce,droppableRects:Y,droppableContainers:N,pointerCoordinates:ge}):null,we=Oue(Ge,"id"),[ve,Ne]=v.useState(null),Ze=ae?ye:Wa(ye,ce),_t=Iue(Ze,(i=ve==null?void 0:ve.rect)!=null?i:null,F),Te=v.useRef(null),Re=v.useCallback((Ke,Le)=>{let{sensor:Ve,options:et}=Le;if(A.current==null)return;const Fe=M.get(A.current);if(!Fe)return;const tt=Ke.nativeEvent,vt=new Ve({active:A.current,activeNode:Fe,event:tt,options:et,context:V,onAbort(Pe){if(!M.get(Pe))return;const{onDragAbort:Ee}=L.current,Ye={id:Pe};Ee==null||Ee(Ye),x({type:"onDragAbort",event:Ye})},onPending(Pe,Ee,Ye,xt){if(!M.get(Pe))return;const{onDragPending:nt}=L.current,bt={id:Pe,constraint:Ee,initialCoordinates:Ye,offset:xt};nt==null||nt(bt),x({type:"onDragPending",event:bt})},onStart(Pe){const Ee=A.current;if(Ee==null)return;const Ye=M.get(Ee);if(!Ye)return;const{onDragStart:xt}=L.current,nt={activatorEvent:tt,active:{id:Ee,data:Ye.data,rect:T}};Un.unstable_batchedUpdates(()=>{xt==null||xt(nt),C(Ni.Initializing),g({type:hn.DragStart,initialCoordinates:Pe,active:Ee}),x({type:"onDragStart",event:nt}),j(Te.current),O(tt)})},onMove(Pe){g({type:hn.DragMove,coordinates:Pe})},onEnd:at(hn.DragEnd),onCancel:at(hn.DragCancel)});Te.current=vt;function at(Pe){return async function(){const{active:Ee,collisions:Ye,over:xt,scrollAdjustedTranslate:nt}=V.current;let bt=null;if(Ee&&nt){const{cancelDrop:Jt}=L.current;bt={activatorEvent:tt,active:Ee,collisions:Ye,delta:nt,over:xt},Pe===hn.DragEnd&&typeof Jt=="function"&&await Promise.resolve(Jt(bt))&&(Pe=hn.DragCancel)}A.current=null,Un.unstable_batchedUpdates(()=>{g({type:Pe}),C(Ni.Uninitialized),Ne(null),j(null),O(null),Te.current=null;const Jt=Pe===hn.DragEnd?"onDragEnd":"onDragCancel";if(bt){const Ft=L.current[Jt];Ft==null||Ft(bt),x({type:Jt,event:bt})}})}}},[M]),ot=v.useCallback((Ke,Le)=>(Ve,et)=>{const Fe=Ve.nativeEvent,tt=M.get(et);if(A.current!==null||!tt||Fe.dndKit||Fe.defaultPrevented)return;const vt={active:tt};Ke(Ve,Le.options,vt)===!0&&(Fe.dndKit={capturedBy:Le.sensor},A.current=et,Re(Ve,Le))},[M,Re]),Ue=ode(c,ot);hde(c),Zr(()=>{F&&w===Ni.Initializing&&C(Ni.Initialized)},[F,w]),v.useEffect(()=>{const{onDragMove:Ke}=L.current,{active:Le,activatorEvent:Ve,collisions:et,over:Fe}=V.current;if(!Le||!Ve)return;const tt={active:Le,activatorEvent:Ve,collisions:et,delta:{x:de.x,y:de.y},over:Fe};Un.unstable_batchedUpdates(()=>{Ke==null||Ke(tt),x({type:"onDragMove",event:tt})})},[de.x,de.y]),v.useEffect(()=>{const{active:Ke,activatorEvent:Le,collisions:Ve,droppableContainers:et,scrollAdjustedTranslate:Fe}=V.current;if(!Ke||A.current==null||!Le||!Fe)return;const{onDragOver:tt}=L.current,vt=et.get(we),at=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,Pe={active:Ke,activatorEvent:Le,collisions:Ve,delta:{x:Fe.x,y:Fe.y},over:at};Un.unstable_batchedUpdates(()=>{Ne(at),tt==null||tt(Pe),x({type:"onDragOver",event:Pe})})},[we]),Zr(()=>{V.current={activatorEvent:D,active:E,activeNode:X,collisionRect:Ce,collisions:Ge,droppableRects:Y,draggableNodes:M,draggingNode:K,draggingNodeRect:G,droppableContainers:$,over:ve,scrollableAncestors:oe,scrollAdjustedTranslate:de},T.current={initial:G,translated:Ce}},[E,X,Ge,Ce,M,K,G,Y,$,ve,oe,de]),tde({...ee,delta:k,draggingRect:Ce,pointerCoordinates:ge,scrollableAncestors:oe,scrollableAncestorRects:le});const mt=v.useMemo(()=>({active:E,activeNode:X,activeNodeRect:F,activatorEvent:D,collisions:Ge,containerNodeRect:B,dragOverlay:te,draggableNodes:M,droppableContainers:$,droppableRects:Y,over:ve,measureDroppableContainers:q,scrollableAncestors:oe,scrollableAncestorRects:le,measuringConfiguration:H,measuringScheduled:Z,windowRect:re}),[E,X,F,D,Ge,B,te,M,$,Y,ve,q,oe,le,H,Z,re]),ut=v.useMemo(()=>({activatorEvent:D,activators:Ue,active:E,activeNodeRect:F,ariaDescribedById:{draggable:z},dispatch:g,draggableNodes:M,over:ve,measureDroppableContainers:q}),[D,Ue,E,F,g,z,M,ve,q]);return v.createElement(D5.Provider,{value:_},v.createElement($h.Provider,{value:ut},v.createElement(Y5.Provider,{value:mt},v.createElement(G5.Provider,{value:_t},l)),v.createElement(Sde,{disabled:(a==null?void 0:a.restoreFocus)===!1})),v.createElement(Tue,{...a,hiddenTextDescribedById:z}));function At(){const Ke=(I==null?void 0:I.autoScrollEnabled)===!1,Le=typeof s=="object"?s.enabled===!1:s===!1,Ve=b&&!Ke&&!Le;return typeof s=="object"?{...s,enabled:Ve}:{enabled:Ve}}}),Ede=v.createContext(null),Ux="button",Ode="Draggable";function Ade(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Bc(Ode),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=v.useContext($h),{role:h=Ux,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,x=v.useContext(g?G5:Ede),[_,w]=$d(),[C,b]=$d(),S=pde(a,t),M=sc(n);Zr(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:C,data:M}),()=>{const $=d.get(t);$&&$.key===o&&d.delete(t)}),[d,t]);const k=v.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&h===Ux?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,m,g,p,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:k,isDragging:g,listeners:r?void 0:S,node:_,over:f,setNodeRef:w,setActivatorNodeRef:b,transform:x}}function Rde(){return v.useContext(Y5)}const Dde="Droppable",Ide={timeout:25};function jde(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Bc(Dde),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=v.useContext($h),u=v.useRef({disabled:n}),d=v.useRef(!1),f=v.useRef(null),h=v.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...Ide,...i},x=sc(m??r),_=v.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),h.current=null},g)},[g]),w=kh({callback:_,disabled:p||!a}),C=v.useCallback((k,$)=>{w&&($&&(w.unobserve($),d.current=!1),k&&w.observe(k))},[w]),[b,S]=$d(C),M=sc(t);return v.useEffect(()=>{!w||!b.current||(w.disconnect(),d.current=!1,w.observe(b.current))},[b,w]),v.useEffect(()=>(s({type:hn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:M}}),()=>s({type:hn.UnregisterDroppable,key:o,id:r})),[r]),v.useEffect(()=>{n!==u.current.disabled&&(s({type:hn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(l==null?void 0:l.id)===r,node:b,over:l,setNodeRef:S}}function t1(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Pde(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function gu(e){return e!==null&&e>=0}function Nde(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Lde(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const vu={scaleX:1,scaleY:1},Fde=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=Bde(n,a,i);if(a===i){const c=n[o];return c?{x:i<o?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...vu}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...vu}:a<i&&a>=o?{x:s.width+l,y:0,...vu}:{x:0,y:0,...vu}};function Bde(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return!r||!i&&!o?0:n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width)}const Z5=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=t1(t,r,n),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},X5="Sortable",K5=v.createContext({activeIndex:-1,containerId:X5,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Z5,disabled:{draggable:!1,droppable:!1}});function zde(e){let{children:t,id:n,items:r,strategy:i=Z5,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=Rde(),d=Bc(X5,n),f=s.rect!==null,h=v.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),p=a!=null,m=a?h.indexOf(a.id):-1,g=c?h.indexOf(c.id):-1,x=v.useRef(h),_=!Nde(h,x.current),w=g!==-1&&m===-1||_,C=Lde(o);Zr(()=>{_&&p&&u(h)},[_,h,p,u]),v.useEffect(()=>{x.current=h},[h]);const b=v.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:h,overIndex:g,useDragOverlay:f,sortedRects:Pde(h,l),strategy:i}),[m,d,C.draggable,C.droppable,w,h,g,l,f,i]);return v.createElement(K5.Provider,{value:b},t)}const Wde=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return t1(n,r,i).indexOf(t)},Ude=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===l},Hde={duration:200,easing:"ease"},J5="transform",Vde=lc.Transition.toString({property:J5,duration:0,easing:"linear"}),qde={roleDescription:"sortable"};function Yde(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=v.useState(null),s=v.useRef(n);return Zr(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=Ds(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),v.useEffect(()=>{o&&a(null)},[o]),o}function Gde(e){let{animateLayoutChanges:t=Ude,attributes:n,disabled:r,data:i,getNewIndex:o=Wde,id:a,strategy:s,resizeObserverConfig:l,transition:c=Hde}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:x,strategy:_}=v.useContext(K5),w=Zde(r,h),C=u.indexOf(a),b=v.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),S=v.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:M,node:k,isOver:$,setNodeRef:R}=jde({id:a,data:b,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:T,activatorEvent:E,activeNodeRect:A,attributes:I,setNodeRef:j,listeners:D,isDragging:O,over:L,setActivatorNodeRef:z,transform:N}=Ade({id:a,data:b,attributes:{...qde,...n},disabled:w.draggable}),H=fue(R,j),Y=!!T,q=Y&&!p&&gu(f)&&gu(g),Z=!x&&O,X=Z&&q?N:null,J=q?X??(s??_)({rects:m,activeNodeRect:A,activeIndex:f,overIndex:g,index:C}):null,ee=gu(f)&&gu(g)?o({id:a,items:u,activeIndex:f,overIndex:g}):C,W=T==null?void 0:T.id,F=v.useRef({activeId:W,items:u,newIndex:ee,containerId:d}),B=u!==F.current.items,V=t({active:T,containerId:d,isDragging:O,isSorting:Y,id:a,index:C,items:u,newIndex:F.current.newIndex,previousItems:F.current.items,previousContainerId:F.current.containerId,transition:c,wasDragging:F.current.activeId!=null}),P=Yde({disabled:!V,index:C,node:k,rect:M});return v.useEffect(()=>{Y&&F.current.newIndex!==ee&&(F.current.newIndex=ee),d!==F.current.containerId&&(F.current.containerId=d),u!==F.current.items&&(F.current.items=u)},[Y,ee,d,u]),v.useEffect(()=>{if(W===F.current.activeId)return;if(W!=null&&F.current.activeId==null){F.current.activeId=W;return}const K=setTimeout(()=>{F.current.activeId=W},50);return()=>clearTimeout(K)},[W]),{active:T,activeIndex:f,attributes:I,data:b,rect:M,index:C,newIndex:ee,items:u,isOver:$,isSorting:Y,isDragging:O,listeners:D,node:k,overIndex:g,over:L,setNodeRef:H,setActivatorNodeRef:z,setDroppableNodeRef:R,setDraggableNodeRef:j,transform:P??J,transition:te()};function te(){if(P||B&&F.current.newIndex===C)return Vde;if(!(Z&&!Xv(E)||!c)&&(Y||V))return lc.Transition.toString({...c,property:J5})}}function Zde(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const Xde="_column-menu_wt2wp_1",Kde="_column-menu-item_wt2wp_4",Jde="_danger_wt2wp_8",ji={columnMenu:Xde,columnMenuItem:Kde,danger:Jde},Qde=({header:e,table:t,className:n,IconComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,DropdownTriggerComponent:s,InputComponent:l,CheckComponent:c,texts:u,columnMenuPos:d,onColumnMenu:f,dragEnabled:h,style:p})=>{var I,j,D;const{attributes:m,listeners:g,setNodeRef:x,transform:_,isDragging:w}=Gde({id:e.id,disabled:!h}),C={...p??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...h?{transform:lc.Translate.toString(_)}:{}},b=O=>O.column.getCanSort()?"button":void 0,S=O=>{var N,H;const L=O.column.getIsSorted(),z=O.column.getIsGrouped();return Ie("th",We.th,{sorted:L,[We.sorted]:L},{grouped:z,[We.grouped]:z},(N=O.column.columnDef.meta)==null?void 0:N.className,(H=O.column.columnDef.meta)==null?void 0:H.headerClassName)},M=O=>{const L=O.column.getCanSort();return Ie(We.heading,"heading",{[We.canSort]:L})},k=O=>{O.preventDefault(),f({id:e.id,x:O.clientX,y:O.clientY})},$=()=>f(null),R=(d==null?void 0:d.id)===e.id,T=e.column.getIsPinned(),E=e.column.getIsGrouped(),A=(j=(I=e.column.columnDef)==null?void 0:I.meta)==null?void 0:j.alwaysPinned;return y.jsxs("div",{className:Ie(n,S(e.getContext())),ref:x,style:C,onContextMenu:k,children:[Un.createPortal(y.jsxs(i,{isOpen:R,onToggleOpen:O=>!O&&$(),children:[y.jsx(s,{style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,display:R?"block":"none",transform:"none",opacity:0}}),y.jsxs(o,{className:Ie("column-menu",ji.columnMenu),style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,zIndex:9999,display:R?"block":"none",transform:"none"},onClick:$,children:[T!=="right"&&e.column.getCanPin()&&!A?y.jsx(a,{className:Ie(ji.columnMenuItem,{[ji.danger]:T}),onClick:()=>e.column.pin(T==="left"?!1:"left"),children:T==="left"?u.columnUnpin:u.columnPinLeft}):null,T!=="left"&&e.column.getCanPin()&&!A?y.jsx(a,{className:Ie(ji.columnMenuItem,{[ji.danger]:T}),onClick:()=>e.column.pin(T==="right"?!1:"right"),children:T==="right"?u.columnUnpin:u.columnPinRight}):null,e.column.getCanGroup()?y.jsx(a,{className:Ie(ji.columnMenuItem,{[ji.danger]:E}),onClick:e.column.getToggleGroupingHandler(),children:E?u.columnUngroup:u.columnGroup}):null,e.column.getCanHide()&&((D=e.column.columnDef.meta)==null?void 0:D.hidden)!==!0?y.jsx(a,{className:Ie(ji.columnMenuItem),onClick:()=>e.column.toggleVisibility(),children:u.columnHide}):null]})]}),document.body),e.isPlaceholder?null:y.jsxs("div",{children:[y.jsxs("div",{className:M(e.getContext()),role:b(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[y.jsxs("div",{className:Ie("content",We.content),children:[h?y.jsx("div",{...g,...m,className:Ie("reorder-handle",We.reorderHandle,{dragging:w,[We.dragging]:w}),children:y.jsx(r,{icon:"drag-handle"})}):null,O5(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?y.jsx(r,{className:"sort-icon",icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?y.jsx(yce,{CheckComponent:c,column:e.column,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,DropdownTriggerComponent:s,IconComponent:r,InputComponent:l,texts:u}):e.column.id==="select-col"?y.jsx("div",{className:Ie("row-selection-info",We.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?y.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:Ie("resizer",We.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?We.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:y.jsx("div",{className:Ie("resizer-bar",We.resizerBar)})}):null]})},Hx=e=>{var n,r,i,o,a;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:v.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return v.isValidElement(t)&&typeof((o=t==null?void 0:t.props)==null?void 0:o.children)=="string"?(a=t==null?void 0:t.props)==null?void 0:a.children:e==null?void 0:e.id},efe="_columns-dropdown_ot346_1",tfe="_columns-dropdown-menu_ot346_35",nfe="_dropdown-menu-item_ot346_42",rfe="_search-item_ot346_45",ife="_search-input_ot346_49",$a={columnsDropdown:efe,columnsDropdownMenu:tfe,dropdownMenuItem:nfe,searchItem:rfe,searchInput:ife},ofe=({triggerText:e,columns:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,CheckComponent:a,DropdownTriggerComponent:s})=>{var p,m,g;const[l,c]=v.useState(""),u=v.useRef(null),d=v.useRef(null),[f,h]=v.useState(!1);return v.useEffect(()=>{f||c("")},[f]),v.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),y.jsxs(r,{onToggleOpen:x=>h(x),children:[y.jsx(s,{className:Ie("columns-dropdown",$a.columnsDropdown),id:"column-visibility-dropdown",ref:u,children:e}),y.jsxs(i,{className:Ie("columns-dropdown-menu",$a.columnsDropdownMenu),style:{position:"relative",left:(p=u.current)==null?void 0:p.getBoundingClientRect().left,top:(m=u.current)==null?void 0:m.getBoundingClientRect().bottom,minWidth:(g=u.current)==null?void 0:g.getBoundingClientRect().width},children:[y.jsx(o,{className:Ie("search-item",$a.dropdownMenuItem,$a.searchItem),onClick:x=>{x.preventDefault(),x.stopPropagation()},children:y.jsx(n,{className:$a.searchInput,ref:d,size:"sm",type:"search",value:l,onChange:x=>c(x.target.value??"")})}),t.filter(x=>l?ls(Hx(x).toLowerCase()).includes(ls(l.toLowerCase())):!0).map(x=>y.jsx(o,{className:Ie($a.dropdownMenuItem),onClick:_=>{_.preventDefault(),_.stopPropagation(),x.toggleVisibility()},children:y.jsx(a,{checked:x.getIsVisible(),label:Hx(x),onChange:()=>{}})},x.id))]})]})},afe="_modal_13qph_1",sfe="_modal-body_13qph_1",lfe="_settings-item_13qph_6",cfe="_label_13qph_13",ufe="_content_13qph_17",dfe="_modal-footer_13qph_46",oi={modal:afe,modalBody:sfe,settingsItem:lfe,label:cfe,content:ufe,modalFooter:dfe},ffe=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,ButtonComponent:o,resetToDefault:a,ModalComponent:s,ModalHeaderComponent:l,ModalTitleComponent:c,ModalBodyComponent:u,ModalFooterComponent:d,InputComponent:f,DropdownMenuComponent:h,DropdownTriggerComponent:p,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,CheckComponent:x})=>{const[_,w]=v.useState(r.value?r.value.toString():"");return v.useEffect(()=>{e&&w(r.value?r.value.toString():"")},[e,r.value]),y.jsxs(s,{className:Ie("tanstack-bnf-table-settings-modal",oi.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[y.jsx(l,{closeButton:!0,children:y.jsx(c,{children:n==null?void 0:n.settingsModal.title})}),y.jsxs(u,{className:oi.modalBody,children:[r.enabled?y.jsxs("div",{className:oi.settingsItem,children:[y.jsx("div",{className:Ie(oi.label),children:n==null?void 0:n.settingsModal.pageSize}),y.jsxs("div",{className:Ie(oi.content),children:[y.jsx(f,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:_,onChange:C=>{w(C.target.value),C.target.value&&r.onChange(Number(C.target.value))}}),y.jsxs("datalist",{id:"pageSizes",children:[y.jsx("option",{value:"10"}),y.jsx("option",{value:"20"}),y.jsx("option",{value:"30"}),y.jsx("option",{value:"50"}),y.jsx("option",{value:"100"})]})]})]}):null,y.jsx("div",{children:y.jsxs("div",{className:Ie(oi.settingsItem),children:[y.jsx("div",{className:Ie("text-nowrap",oi.label),children:"Sloupce tabulky"}),y.jsx("div",{className:Ie("text-nowrap",oi.content),children:y.jsx(ofe,{CheckComponent:x,columns:i.allColumns.filter(C=>{var b;return C.getCanHide()&&((b=C.columnDef.meta)==null?void 0:b.hidden)!==!0}),DropdownMenuComponent:h,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,DropdownTriggerComponent:p,InputComponent:f,triggerText:n==null?void 0:n.settingsModal.columnVisibility})})]})})]}),y.jsxs(d,{className:oi.modalFooter,children:[y.jsx(o,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),y.jsx(o,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},hfe=e=>e.type==="number"?"sum":"uniqueCount",pfe=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):O5(e,t)},mfe=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(hfe(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},gfe=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:o,onCellInteraction:a,...s})=>t&&n?y.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(a==null||a())},onClick:()=>{o==null||o(),a==null||a()},onContextMenu:()=>{a==null||a()},...s,children:r}):y.jsx("div",{ref:e,onAuxClick:o||a?l=>{l.button===1&&(a==null||a())}:void 0,onClick:o||a?()=>{o==null||o(),a==null||a()}:void 0,onContextMenu:o||a?()=>{a==null||a()}:void 0,...s,children:r}),vfe=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,IconButtonComponent:a,texts:s,formatters:l,LinkComponent:c,onRowClick:u,rowNavigation:d,onCellInteraction:f},h)=>{var g,x,_;const p=t.column.columnDef,m=v.useMemo(()=>{var w,C,b,S,M;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((C=p.meta)!=null&&C.onCellClick)return["onClickOwn",()=>{var k,$;return($=(k=p.meta)==null?void 0:k.onCellClick)==null?void 0:$.call(k,e.original)}];if((b=p.meta)!=null&&b.cellNavigation){const k=(M=(S=p.meta)==null?void 0:S.cellNavigation)==null?void 0:M.call(S,e.original);if(k)return["navigateOwn",k]}if(u)return["onClick",()=>u==null?void 0:u(e.original)];if(d){const k=d==null?void 0:d(e.original);if(k)return["navigate",k]}}},[p,e,u,d,t]);return y.jsxs(gfe,{className:Ie((w=>{var k,$,R,T,E,A,I;const C=((k=p==null?void 0:p.meta)==null?void 0:k.alignment)??"left",b=w.column.getIsSorted(),S=w.cell.getIsGrouped(),M=w.row.getIsExpanded();return Ie("td",We.td,{[We.left]:C==="left",[We.center]:C==="center",[We.right]:C==="right"||p.type==="number"&&(($=p.numericMeta)==null?void 0:$.noFormatting)!==!0},{sorted:b,[We.sorted]:b},{grouped:S,[We.grouped]:S},{expanded:M,[We.expanded]:M},{clickable:!!m,[We.clickable]:!!m},{"own-click":(R=m==null?void 0:m[0])==null?void 0:R.endsWith("Own"),[We.ownClick]:(T=m==null?void 0:m[0])==null?void 0:T.endsWith("Own")},r,(E=p.meta)==null?void 0:E.className,(I=(A=p.meta)==null?void 0:A.rowClassName)==null?void 0:I.call(A,e.original))})(t.getContext()),n),isLink:!!((g=m==null?void 0:m[0])!=null&&g.startsWith("navigate")),LinkComponent:c,ref:h,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(x=m==null?void 0:m[0])!=null&&x.startsWith("navigate")?m[1]:void 0,onCellInteraction:f?()=>f==null?void 0:f(e.original):void 0,onClick:(_=m==null?void 0:m[0])!=null&&_.startsWith("onClick")?m[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?y.jsx(a,{className:Ie("expander-button",We.expanderButton),size:"sm",onClick:w=>{w.stopPropagation(),e.getToggleExpandedHandler()()},children:y.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?mfe(t.column.columnDef,t.getContext(),s):t.getIsPlaceholder()?null:pfe(t.column.columnDef.cell,t.getContext(),l)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},bfe=v.forwardRef(vfe),yfe=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],Vx=new Map(yfe),xfe=(e,t,n,r,i,o)=>{const a=v.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??a,[c,u]=v.useState(),[d,f]=v.useState(),h=v.useCallback(g=>{e!=null&&e.disabled||l(g)},[e==null?void 0:e.disabled,l]),p=({fieldName:g,dataIndex:x})=>{u(g),f(x)},m=v.useCallback(g=>{if(e!=null&&e.disabled)return;const x=g.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(g.code){case"Space":case"Enter":{g.preventDefault();const _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{g.preventDefault(),h(_=>{const w=[Math.min(Math.max(_[0]+Vx.get(g.code)[0],0),t.size-1),Math.min(Math.max(_[1]+Vx.get(g.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(w[1]/r);i(C)}return w});break}case"Tab":if(g.preventDefault(),g.shiftKey)h(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{h(_=>_[0]>=t.size-1?_[1]>=n.length-1?_:[0,_[1]+1]:[_[0]+1,_[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,h,r,i]);return v.useEffect(()=>{if(c===void 0)return;u(void 0);const g=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[g,x[1]])},[c,l,t]),v.useEffect(()=>{if(d===void 0)return;f(void 0);const g=n.findIndex(x=>x.index===d);if(l(x=>[x[0],g]),r!==void 0){const x=Math.floor(g/r);i(x)}},[i,r,d,n,l]),v.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const g=new AbortController;return window.addEventListener("keydown",m,{signal:g.signal}),()=>g.abort()},[m,e==null?void 0:e.onCellSelect]),v.useEffect(()=>{var g;(g=o.current)==null||g.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),v.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&h(_=>[_[0],0]);return}const g=t.get(s[0]);if(g===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,g)},[e,h,n,s,t]),{selectedCoords:s,changeSelectedCoords:h,setSelectedCellByFNDI:p}},wfe=e=>{const t=v.useRef([]),n=(r,i)=>{var o;t.current[i]=r,r&&(r.style.transform=`translateY(${((o=e.current)==null?void 0:o.scrollTop)??0}px)`)};return v.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const o=r.scrollTop;for(const a of t.current)a&&(a.style.transform=`translateY(${o}px)`)};return r.addEventListener("scroll",i),()=>r.removeEventListener("scroll",i)},[e]),{registerSticky:n}},_fe=e=>{let{transform:t}=e;return{...t,y:0}},Cfe=({table:e,additionalOptions:t,IconComponent:n,ButtonComponent:r,IconButtonComponent:i,DropdownMenuComponent:o,DropdownTriggerComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,InputComponent:c,ModalComponent:u,ModalHeaderComponent:d,ModalTitleComponent:f,ModalBodyComponent:h,ModalFooterComponent:p,texts:m,formatters:g,bottomBar:x,testId:_,LinkComponent:w,className:C,rowsClassName:b,onRowClick:S,rowNavigation:M,onCellInteraction:k,cellSelection:$,getRowProps:R,UI:{CheckComponent:T}},E)=>{var le,ye,ge,be,Me,ce,de,Ce,Ge;const A={boolean:we=>Qle(we,n),date:ece,datetime:tce,number:nce,...g},[I,j]=v.useState(!1),D=t.isPaginated,O=kue(Fp(U5,{}),Fp(H5,{}),Fp(Qv,{})),L=e.getState().columnOrder,z=we=>{const{active:ve,over:Ne}=we;ve&&Ne&&ve.id!==Ne.id&&e.setColumnOrder(Ze=>{const _t=Ze.indexOf(ve.id),Te=Ze.indexOf(Ne.id);return _t===-1||Te===-1?Ze:t1(Ze,_t,Te)})},[N,H]=v.useState(null),Y=we=>{H(we)},q=we=>{if(!we.getCanPin())return"";const ve=we.getIsPinned(),Ne=ve==="right"&&we.getIsFirstColumn("right"),Ze=ve==="left"&&we.getIsLastColumn("left");return Ie({pinned:ve,[We.pinned]:ve,"first-right":Ne,[We.firstRight]:Ne,"last-left":Ze,[We.lastLeft]:Ze})},Z=we=>{if(!we.getCanPin())return{};const ve=we.getIsPinned();return{left:ve==="left"?`${we.getStart("left")}px`:void 0,right:ve==="right"?`${we.getAfter("right")}px`:void 0}},X=e.getState().sorting;v.useEffect(()=>{var we,ve;if(X.length>0){const Ne=X[0];if((we=document.activeElement)!=null&&we.classList.contains("filter"))return;(ve=document.getElementById(`filter-${Ne.id}`))==null||ve.focus()}},[X]);const J=e.getPrePaginationRowModel().rows,ee=new Map(e.getVisibleLeafColumns().map((we,ve)=>[ve,we.id])),W=v.useRef(null),{selectedCoords:F,changeSelectedCoords:B,setSelectedCellByFNDI:V}=xfe($,ee,J,D?((le=e.getState().pagination)==null?void 0:le.pageSize)??0:void 0,e.setPageIndex,W);v.useImperativeHandle(E,()=>({setSelectedCell:V}));const P=we=>{var ve;return $!=null&&$.onlyRowSelection&&((ve=J[F[1]])==null?void 0:ve.index)===we.index?Ie(We.cellSelectedRow,"cell-selected-row",{[We.cellSelectionDisabled]:$.disabled}):""},te=(we,ve)=>{var Ne;return($==null?void 0:$.onCellSelect)===void 0||F[0]!==we||((Ne=J[F[1]])==null?void 0:Ne.index)!==ve||$.onlyRowSelection?"":$.disabled?"bg-primary-subtle":Ie("selected-cell",We.selectedCell)},K=t.fullScreen.canFullScreen?((ye=t.fullScreen)==null?void 0:ye.isFullScreen)??!1:!1,G=(ge=t.sizing)!=null&&ge.canSize?((be=t.sizing)==null?void 0:be.size)??"md":"md",ae=e.getState().columnFilters,ne=v.useRef(null),{registerSticky:re}=wfe(ne),oe=(we,ve,Ne)=>{var Ze;return y.jsx("div",{className:Ie("tr",We.tr,P(we),{pinned:we.getIsPinned()!==!1,[We.pinned]:we.getIsPinned()!==!1},R?(Ze=R(we.original))==null?void 0:Ze.className:null),role:"data-row",...R?R(we.original):{},ref:Ne!==void 0?_t=>re(_t,Ne):void 0,children:we.getVisibleCells().map((_t,Te)=>{var Re;return y.jsx(bfe,{cell:_t,className:Ie(q(_t.column),te(Te,we.index)),formatters:A,IconButtonComponent:i,IconComponent:n,LinkComponent:w,ref:($==null?void 0:$.onCellSelect)!==void 0&&F[0]===Te&&((Re=J[F[1]])==null?void 0:Re.index)===we.index?W:null,row:we,rowClassName:Ie(...(b==null?void 0:b.filter(ot=>ot.selector(we.original)).map(ot=>ot.className))??[]),rowNavigation:M,style:Z(_t.column),texts:m,onCellInteraction:($==null?void 0:$.onCellSelect)===void 0?k:ot=>{var Ue,mt;B([Te,((Ue=e.getState().pagination)==null?void 0:Ue.pageIndex)*((mt=e.getState().pagination)==null?void 0:mt.pageSize)+ve]),k==null||k(ot)},onRowClick:S},_t.id)})},we.id)};return y.jsx(Mde,{collisionDetection:Aue,modifiers:[_fe],sensors:O,onDragEnd:z,children:y.jsxs("div",{className:Ie("tanstack-bnf-table-container",We.tableScrollContainer,{"full-screen":K,[We.fullScreen]:K}),ref:ne,children:[ae&&ae.length>0?y.jsx("div",{className:Ie("remove-filters-button-wrapper",We.removeFiltersButtonWrapper),children:y.jsxs("button",{className:Ie(We.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[y.jsx(n,{icon:"remove-filters"}),(m==null?void 0:m.removeFilters)??"Zrušit filtry"]})}):null,y.jsxs("div",{className:Ie("tanstack-bnf-table",We.table,{sm:G==="sm",lg:G==="lg",[We.sm]:G==="sm",[We.lg]:G==="lg"},C),"data-testid":_,children:[y.jsx("div",{className:Ie("thead",We.thead),children:e.getHeaderGroups().map(we=>y.jsx("div",{className:Ie("tr",We.tr),children:y.jsx(zde,{items:L,strategy:Fde,children:we.headers.map(ve=>{var Ne,Ze;return y.jsx(Qde,{CheckComponent:T,className:q(ve.column),columnMenuPos:N,dragEnabled:t.enableReordering&&((Ze=(Ne=ve.column.columnDef)==null?void 0:Ne.meta)==null?void 0:Ze.enableReordering)!==!1,DropdownMenuComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:a,header:ve,IconComponent:n,InputComponent:c,style:Z(ve.column),table:e,texts:m,onColumnMenu:Y},ve.id)})})},we.id))}),y.jsxs("div",{className:Ie("tbody",We.tbody),children:[(((ce=(Me=e.options)==null?void 0:Me.data)==null?void 0:ce.length)??0)===0?y.jsx("div",{className:Ie("empty-table-alert",We.emptyTableAlert),children:m.emptyTable}):null,e.getTopRows().map((we,ve)=>oe(we,ve,ve)),e.getCenterRows().map((we,ve)=>oe(we,ve))]}),y.jsx(ffe,{ButtonComponent:r,CheckComponent:T,columns:{allColumns:e.getAllColumns()},DropdownMenuComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:a,handleClose:()=>j(!1),IconComponent:n,InputComponent:c,ModalBodyComponent:h,ModalComponent:u,ModalFooterComponent:p,ModalHeaderComponent:d,ModalTitleComponent:f,pageSize:{enabled:D,value:((de=e.getState().pagination)==null?void 0:de.pageSize)??0,onChange:we=>e.setPageSize(we)},resetToDefault:t.resetToInitialValues,show:I,texts:m})]}),x!=null&&x.hidden?null:y.jsxs("div",{className:Ie("bottom-bar",We.bottomBar),children:[y.jsxs("div",{className:Ie("left-items",We.leftItems),children:[D?y.jsxs("div",{className:Ie("pagination",We.pagination),children:[y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:y.jsx(n,{icon:"page-first"})}),y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:y.jsx(n,{icon:"page-previous"})}),y.jsx("div",{className:Ie("page-info-text",We.pageInfoText),children:m.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:y.jsx(n,{icon:"page-next"})}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:y.jsx(n,{icon:"page-last"})})]}):null,y.jsx("div",{className:Ie("row-count-text",We.rowCountText),children:m.rowCountText(e.getRowCount())})]}),y.jsxs("div",{className:Ie("right-items",We.rightItems),children:[(Ce=t.fullScreen)!=null&&Ce.canFullScreen?y.jsx(i,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:y.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(Ge=t.sizing)!=null&&Ge.canSize?y.jsxs(o,{drop:"up",children:[y.jsx(a,{id:"table-sizing-button",children:y.jsx(n,{icon:"density"})}),y.jsxs(s,{className:Ie("shadow-lg sizing-menu",We.sizingMenu),children:[y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[G==="sm"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.sm]}),y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[G==="md"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.md]}),y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[G==="lg"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.lg]})]})]}):null,t.excelExport.canExport?y.jsx(i,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(m),children:y.jsx(n,{icon:"excel-export"})}):null,y.jsx(i,{"data-testId":"table-settings-button",onClick:()=>j(!0),children:y.jsx(n,{icon:"settings"})})]})]})]})})};v.forwardRef(Cfe);const Sfe=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),Q5=()=>{const e=xce();return{accessor:(t,n)=>{const r=i=>Sfe(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}},Mh=e=>{const t=je.c(66),{InputContainer:n,formField:r,label:i,resetsFields:o,options:a,isNumber:s,size:l,showClearIcon:c,clearValue:u,noSortOptions:d,required:f,hidden:h,disabled:p,withoutLabel:m,hint:g,className:x}=e,_=n===void 0?kc:n,{control:w,getValues:C,setValue:b}=sn.useFormContext(),{isSubmitted:S}=sn.useFormState();let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M={falseIfNotInit:!0},t[0]=M):M=t[0];const k=af(M);let $;t[1]!==w||t[2]!==r?($={name:r,control:w},t[1]=w,t[2]=r,t[3]=$):$=t[3];const{field:R,fieldState:T}=sn.useController($),{value:E,onChange:A,onBlur:I,ref:j,name:D}=R,{error:O}=T,[L,z]=v.useState(!1);let N;if(t[4]!==d||t[5]!==a){let le;t[7]!==d?(le=(ye,ge)=>d?0:(ye.name??"").localeCompare(ge.name??""),t[7]=d,t[8]=le):le=t[8],N=a.toSorted(le),t[4]=d,t[5]=a,t[6]=N}else N=t[6];const H=N;let Y;t[9]!==u||t[10]!==r||t[11]!==s||t[12]!==b||t[13]!==L?(Y=()=>{const le=u??null;s?b(r,le===null?null:Number(le),{shouldDirty:!0,shouldValidate:L}):b(r,(le==null?void 0:le.toString())??"",{shouldDirty:!0,shouldValidate:L})},t[9]=u,t[10]=r,t[11]=s,t[12]=b,t[13]=L,t[14]=Y):Y=t[14];const q=Y,Z=p||k;let X;t[15]!==r||t[16]!==C||t[17]!==b?(X=()=>{b(r,C(r))},t[15]=r,t[16]=C,t[17]=b,t[18]=X):X=t[18];let J;t[19]!==r||t[20]!==C||t[21]!==H||t[22]!==b?(J=[H,r,C,b],t[19]=r,t[20]=C,t[21]=H,t[22]=b,t[23]=J):J=t[23],v.useEffect(X,J);let ee,W;t[24]!==S?(ee=()=>{S&&z(!0)},W=[S],t[24]=S,t[25]=ee,t[26]=W):(ee=t[25],W=t[26]),v.useEffect(ee,W);const F=O!==void 0;let B;t[27]!==A||t[28]!==s||t[29]!==o||t[30]!==b||t[31]!==L?(B=le=>{const ye=le.target.value;let ge;s?ge=ye===""?null:parseInt(ye,10):ge=ye===""?null:ye,A(ge),o&&o.forEach(be=>b(be,null,{shouldDirty:!0,shouldValidate:L}))},t[27]=A,t[28]=s,t[29]=o,t[30]=b,t[31]=L,t[32]=B):B=t[32];const V=B,P=i??"",te=E??"";let K;t[33]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx("option",{value:""}),t[33]=K):K=t[33];let G;t[34]!==H?(G=H.map(Tfe),t[34]=H,t[35]=G):G=t[35];let ae;t[36]!==Z||t[37]!==D||t[38]!==I||t[39]!==j||t[40]!==V||t[41]!==h||t[42]!==F||t[43]!==l||t[44]!==te||t[45]!==G?(ae=y.jsxs(Xr.Select,{size:l,name:D,value:te,onChange:V,onBlur:I,ref:j,isInvalid:F,hidden:h,disabled:Z,className:"w-100",children:[K,G]}),t[36]=Z,t[37]=D,t[38]=I,t[39]=j,t[40]=V,t[41]=h,t[42]=F,t[43]=l,t[44]=te,t[45]=G,t[46]=ae):ae=t[46];let ne;t[47]!==q||t[48]!==E||t[49]!==c?(ne=c&&E!=null&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:q,children:y.jsx(gc,{})})}),t[47]=q,t[48]=E,t[49]=c,t[50]=ne):ne=t[50];let re;t[51]!==O?(re=O&&y.jsx(lf,{message:O.message}),t[51]=O,t[52]=re):re=t[52];let oe;return t[53]!==_||t[54]!==Z||t[55]!==x||t[56]!==h||t[57]!==g||t[58]!==F||t[59]!==f||t[60]!==P||t[61]!==ae||t[62]!==ne||t[63]!==re||t[64]!==m?(oe=y.jsx(y.Fragment,{children:y.jsxs(_,{label:P,required:f,disabled:Z,hidden:h,withoutLabel:m,isInvalid:F,hint:g,className:x,children:[ae,ne,re]})}),t[53]=_,t[54]=Z,t[55]=x,t[56]=h,t[57]=g,t[58]=F,t[59]=f,t[60]=P,t[61]=ae,t[62]=ne,t[63]=re,t[64]=m,t[65]=oe):oe=t[65],oe};function Tfe(e){return y.jsx("option",{value:e.id??"",children:e.name},e.id)}const n1=e=>{const t=je.c(61),{InputContainer:n,formField:r,label:i,resetsFields:o,size:a,showClearIcon:s,clearValue:l,required:c,hidden:u,disabled:d,rows:f,withoutLabel:h,customFormControlProps:p,minLength:m,maxLength:g,hint:x,onChange:_,className:w}=e,C=n===void 0?kc:n,{control:b,setValue:S}=sn.useFormContext(),{isSubmitted:M}=sn.useFormState();let k;t[0]===Symbol.for("react.memo_cache_sentinel")?(k={falseIfNotInit:!0},t[0]=k):k=t[0];const $=af(k),[R,T]=v.useState(!1);let E;t[1]!==b||t[2]!==r?(E={name:r,control:b},t[1]=b,t[2]=r,t[3]=E):E=t[3];const{field:A,fieldState:I}=sn.useController(E),{onChange:j,onBlur:D,ref:O,value:L,name:z}=A,{error:N}=I;let H;t[4]!==p?(H=p??{},t[4]=p,t[5]=H):H=t[5];let Y,q,Z;t[6]!==H?({onChange:q,onBlur:Y,...Z}=H,t[6]=H,t[7]=Y,t[8]=q,t[9]=Z):(Y=t[7],q=t[8],Z=t[9]);let X;t[10]!==l||t[11]!==r||t[12]!==S||t[13]!==R?(X=()=>{const be=l??null,Me=be==null||be===""?null:be.toString();S(r,Me,{shouldDirty:!0,shouldValidate:R})},t[10]=l,t[11]=r,t[12]=S,t[13]=R,t[14]=X):X=t[14];const J=X,ee=d||$;let W,F;t[15]!==M?(W=()=>{M&&T(!0)},F=[M],t[15]=M,t[16]=W,t[17]=F):(W=t[16],F=t[17]),v.useEffect(W,F);const B=N!==void 0;let V;t[18]!==q||t[19]!==j||t[20]!==_||t[21]!==o||t[22]!==S||t[23]!==R?(V=be=>{const Me=be.target.value,ce=Me==null||Me===""?null:Me;j(ce),o&&o.forEach(de=>S(de,null,{shouldDirty:!0,shouldValidate:R})),_&&_(ce),q&&q(be)},t[18]=q,t[19]=j,t[20]=_,t[21]=o,t[22]=S,t[23]=R,t[24]=V):V=t[24];const P=V;let te;t[25]!==Y||t[26]!==D?(te=be=>{D(),Y&&Y(be)},t[25]=Y,t[26]=D,t[27]=te):te=t[27];const K=te,G=L!=null&&L!=="",ae=i??"",ne=L??"",re=f??2;let oe;t[28]!==ee||t[29]!==z||t[30]!==O||t[31]!==K||t[32]!==P||t[33]!==u||t[34]!==B||t[35]!==g||t[36]!==m||t[37]!==Z||t[38]!==a||t[39]!==ne||t[40]!==re?(oe=y.jsx(Xr.Control,{as:"textarea",name:z,size:a,value:ne,onChange:P,onBlur:K,ref:O,isInvalid:B,hidden:u,disabled:ee,rows:re,className:"w-100",minLength:m,maxLength:g,...Z}),t[28]=ee,t[29]=z,t[30]=O,t[31]=K,t[32]=P,t[33]=u,t[34]=B,t[35]=g,t[36]=m,t[37]=Z,t[38]=a,t[39]=ne,t[40]=re,t[41]=oe):oe=t[41];let le;t[42]!==J||t[43]!==G||t[44]!==s?(le=s&&G&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:J,children:y.jsx(gc,{})})}),t[42]=J,t[43]=G,t[44]=s,t[45]=le):le=t[45];let ye;t[46]!==N?(ye=N&&y.jsx(lf,{message:N.message}),t[46]=N,t[47]=ye):ye=t[47];let ge;return t[48]!==C||t[49]!==ee||t[50]!==w||t[51]!==u||t[52]!==x||t[53]!==B||t[54]!==c||t[55]!==ae||t[56]!==oe||t[57]!==le||t[58]!==ye||t[59]!==h?(ge=y.jsxs(C,{label:ae,required:c,disabled:ee,hidden:u,withoutLabel:h,isInvalid:B,className:w,hint:x,isForTextAreaInput:!0,children:[oe,le,ye]}),t[48]=C,t[49]=ee,t[50]=w,t[51]=u,t[52]=x,t[53]=B,t[54]=c,t[55]=ae,t[56]=oe,t[57]=le,t[58]=ye,t[59]=h,t[60]=ge):ge=t[60],ge},cs=({ref:e,InputContainer:t=kc,type:n,formField:r,label:i,placeholder:o,size:a,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:h,list:p,step:m,CustomOnChangeComponent:g,noSelectOnFocus:x,minLength:_,maxLength:w,hint:C,onChange:b,className:S,autoComplete:M})=>{var V,P,te,K;const{control:k,setValue:$}=sn.useFormContext(),{isSubmitted:R}=sn.useFormState(),T=af({falseIfNotInit:!0}),{field:{value:E,onChange:A,onBlur:I,ref:j,name:D},fieldState:{error:O}}=sn.useController({name:r,control:k}),[L,z]=v.useState(!1),N=v.useCallback(()=>{const G=c??null;n==="number"?$(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:L}):$(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:L})},[c,n,$,r,L]),H=v.useMemo(()=>f||T,[f,T]),Y=O!==void 0,[q,Z]=v.useState(!1),X=c0(n,E??null,q),J=v.useCallback(G=>{const ae=G.target.value;let ne=ae;n==="number"?ne=ae===""?null:Number(ae):ne=ae===""?null:ae,A(ne),s&&s.forEach(re=>$(re,null,{shouldDirty:!0,shouldValidate:L})),b&&b(ne===null?null:n==="number"?ne??null:ne.toString())},[A,b,s,$,L,n]),ee=v.useCallback(()=>{Z(!1),I()},[I]),W=v.useRef(null),F=(((V=W.current)==null?void 0:V.scrollWidth)??0)>(((P=W.current)==null?void 0:P.clientWidth)??0),B=(te=W.current)==null?void 0:te.getBoundingClientRect();return v.useImperativeHandle(e,()=>W.current,[W]),v.useEffect(()=>{R&&z(!0)},[R]),y.jsxs(t,{label:i,required:u,disabled:H,hidden:d,withoutLabel:h??!1,isInvalid:Y,hint:C,className:S,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(Xr.Control,{type:X,placeholder:o??i,size:a,name:D,value:E??"",onChange:J,onBlur:ee,onFocus:G=>{Z(!0),!x&&G.target.select()},ref:G=>{j(G),W.current=G},isInvalid:Y,hidden:d,disabled:H,list:p,className:"w-100",step:m,minLength:_,maxLength:w,autoComplete:M}),g&&y.jsx("div",{className:"custom-picker-button",children:g})]}),l&&E!=null&&y.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:N,children:y.jsx(gc,{})})}),F?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((B==null?void 0:B.top)??0)+((B==null?void 0:B.height)??0),left:(B==null?void 0:B.left)??0,pointerEvents:"none"},children:((K=W.current)==null?void 0:K.value)??""}):null,O&&y.jsx(lf,{message:O.message})]})},qx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=sn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},eT=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?qx(r.ref,n,e):r.refs&&r.refs.forEach(i=>qx(i,n,e))}},kfe=(e,t)=>{t.shouldUseNativeValidation&&eT(e,t);const n={};for(const r in e){const i=sn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if($fe(t.names||Object.keys(e),r)){const a=Object.assign({},sn.get(n,r));sn.set(a,"root",o),sn.set(n,r,a)}else sn.set(n,r,o)}return n},$fe=(e,t)=>e.some(n=>n.startsWith(t+"."));var Mfe=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,o=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:o,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[a].types,c=l&&l[r.code];n[a]=sn.appendErrors(a,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},Eh=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return o.shouldUseNativeValidation&&eT({},o),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:kfe(Mfe(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const Efe="_wrapper_1tb6d_1",Ofe="_controls_1tb6d_16",Afe="_explorerWindow_1tb6d_20",Rfe="_folderList_1tb6d_28",Dfe="_fileList_1tb6d_35",Ife="_dndText_1tb6d_61",vo={wrapper:Efe,controls:Ofe,explorerWindow:Afe,folderList:Rfe,fileList:Dfe,dndText:Ife},mn=v.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),jfe="_defaultFolder_8tlxv_1",Pfe="_names_8tlxv_5",Nfe="_folderType_8tlxv_9",Up={defaultFolder:jfe,names:Pfe,folderType:Nfe},tT=e=>{const t=je.c(19),{isActive:n,isDefault:r,folderName:i,typeName:o}=e,{ProjectIconComponent:a}=v.useContext(rn),s=`folder${n?"-filled":""}`,l=r?Up.defaultFolder:"text-primary";let c;t[0]!==l?(c=se("d-inline-block",l),t[0]=l,t[1]=c):c=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={className:"d-block"},t[2]=u):u=t[2];let d;t[3]!==a||t[4]!==s||t[5]!==c?(d=y.jsx(a,{icon:s,className:c,iconProps:u,size:18}),t[3]=a,t[4]=s,t[5]=c,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=se("d-flex flex-column gap-0 align-items-start",Up.names),t[7]=f):f=t[7];const h=n?"fw-bold":"";let p;t[8]!==i||t[9]!==h?(p=y.jsx("span",{className:h,children:i}),t[8]=i,t[9]=h,t[10]=p):p=t[10];let m;t[11]!==o?(m=o?y.jsxs("span",{className:Up.folderType,children:["(",o,")"]}):null,t[11]=o,t[12]=m):m=t[12];let g;t[13]!==p||t[14]!==m?(g=y.jsxs("div",{className:f,children:[p,m]}),t[13]=p,t[14]=m,t[15]=g):g=t[15];let x;return t[16]!==g||t[17]!==d?(x=y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,g]}),t[16]=g,t[17]=d,t[18]=x):x=t[18],x},Lfe=e=>{const t=je.c(9),{customText:n}=e,{reducer:r}=v.useContext(mn),[i,o]=r;let a;t[0]!==o?(a=()=>{o({type:"select-folder",folderId:"root"})},t[0]=o,t[1]=a):a=t[1];const s=a;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=se("border-0 bg-transparent"),t[2]=l):l=t[2];const c=n??"root",u=i.activeFolder==="root";let d;t[3]!==c||t[4]!==u?(d=y.jsx(tT,{folderName:c,isActive:u,typeName:"",isDefault:!0}),t[3]=c,t[4]=u,t[5]=d):d=t[5];let f;return t[6]!==s||t[7]!==d?(f=y.jsx("li",{children:y.jsx("button",{onClick:s,type:"button",className:l,children:d})}),t[6]=s,t[7]=d,t[8]=f):f=t[8],f};function Ffe(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const nT=()=>{const e=nf(),{startLoading:t,stopLoading:n}=v.useContext(qd),{reducer:[,r]}=v.useContext(mn),i=v.useCallback(async(a,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:a,name:s}),r({type:"update-folders",folderIds:[a],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),o=v.useCallback(async a=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",a);r({type:"create-folder",folderData:a,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:o}},Bfe=()=>{const e=je.c(14),{reducer:t,entityId:n,entityType:r}=v.useContext(mn),[i]=t,{zNumberRequired:o,zStringRequired:a}=of(),{createFolder:s}=nT();let l,c;if(e[0]!==o||e[1]!==a){const m=hi({name:a(),documentTypeId:o()});c=sn.useForm,l=Eh(m),e[0]=o,e[1]=a,e[2]=l,e[3]=c}else l=e[2],c=e[3];let u;e[4]!==l?(u={resolver:l},e[4]=l,e[5]=u):u=e[5];const d=c(u);let f;e[6]!==s||e[7]!==n||e[8]!==r||e[9]!==i.activeFolder?(f=async m=>{const g={...m,dbObjectId:n.toString(),entity:r,parentFolderId:i.activeFolder==="root"?null:i.activeFolder};await s(g)},e[6]=s,e[7]=n,e[8]=r,e[9]=i.activeFolder,e[10]=f):f=e[10];const h=f;let p;return e[11]!==d||e[12]!==h?(p={formMethods:d,onSubmit:h},e[11]=d,e[12]=h,e[13]=p):p=e[13],p},zfe=e=>{var b;const t=je.c(38),{handleClose:n}=e,{texts:r}=v.useContext(rn),{documents:i}=r,{reducer:o,entityType:a}=v.useContext(mn),[s]=o;if(Ffe(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=Bfe();let u;t[0]!==c||t[1]!==l?(u=c.handleSubmit(l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;if(t[3]!==i||t[4]!==a||t[5]!==s.chosenFolderId||t[6]!==s.foldersMap){let S;t[8]!==a||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?(S=((b=s.foldersMap.get(s.chosenFolderId))==null?void 0:b.name)??a,t[8]=a,t[9]=s.chosenFolderId,t[10]=s.foldersMap,t[11]=S):S=t[11],d=i.createFolderInFolder(S),t[3]=i,t[4]=a,t[5]=s.chosenFolderId,t[6]=s.foldersMap,t[7]=d}else d=t[7];let f;t[12]!==d?(f=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=y.jsx(cs,{formField:"name",type:"text",label:i.name,required:!0}),t[14]=i.name,t[15]=h):h=t[15];let p;t[16]!==i.folderType||t[17]!==s.documentTypes?(p=y.jsx(Mh,{options:s.documentTypes,formField:"documentTypeId",label:i.folderType,isNumber:!0,required:!0}),t[16]=i.folderType,t[17]=s.documentTypes,t[18]=p):p=t[18];let m;t[19]!==h||t[20]!==p?(m=y.jsxs(Vn.Body,{children:[h,p]}),t[19]=h,t[20]=p,t[21]=m):m=t[21];let g;t[22]!==i.cancel||t[23]!==n?(g=y.jsx(Uo,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=g):g=t[24];let x;t[25]!==i.createFolder?(x=y.jsx(Uo,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==g?(_=y.jsxs(Vn.Footer,{children:[g,x]}),t[27]=x,t[28]=g,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==m?(w=y.jsxs(Xr,{onSubmit:u,children:[f,m,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=m,t[34]=w):w=t[34];let C;return t[35]!==c||t[36]!==w?(C=y.jsx(y.Fragment,{children:y.jsx(sn.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=C):C=t[37],C},rT=100,Wfe=(e,t)=>{const n=nf(),{startLoading:r,stopLoading:i}=v.useContext(qd),{loadDocuments:o}=v.useContext(mn),{zStringRequired:a,zString:s,zNumberRequired:l,zDateRequired:c}=of(),u=hi({name:a(),description:s(),validToDate:c(),documentTypeId:l()}),d=sn.useForm({resolver:Eh(u),defaultValues:{...e,validToDate:Zd(e.validToDate)}}),f=v.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await o(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,o,r,i]);return{formMethods:d,onSubmit:f}},Ufe=e=>{const t=je.c(38),{handleClose:n,file:r}=e,{texts:i}=v.useContext(rn),{documents:o}=i,{reducer:a}=v.useContext(mn),[s]=a,{formMethods:l,onSubmit:c}=Wfe(r,n);let u;t[0]!==o.editFileProperties?(u=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.Title,{children:o.editFileProperties})}),t[0]=o.editFileProperties,t[1]=u):u=t[1];let d;t[2]!==l||t[3]!==c?(d=l.handleSubmit(c),t[2]=l,t[3]=c,t[4]=d):d=t[4];let f;t[5]!==o.name?(f=y.jsx(cs,{formField:"name",type:"text",label:o.name,required:!0}),t[5]=o.name,t[6]=f):f=t[6];let h;t[7]!==o.validSince?(h=y.jsx(cs,{formField:"validToDate",type:"date",label:o.validSince,required:!0}),t[7]=o.validSince,t[8]=h):h=t[8];let p;t[9]!==o.category||t[10]!==s.documentTypes?(p=y.jsx(Mh,{formField:"documentTypeId",label:o.category,options:s.documentTypes,isNumber:!0,required:!0}),t[9]=o.category,t[10]=s.documentTypes,t[11]=p):p=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={maxLength:rT},t[12]=m):m=t[12];let g;t[13]!==o.description?(g=y.jsx(n1,{formField:"description",label:o.description,customFormControlProps:m}),t[13]=o.description,t[14]=g):g=t[14];let x;t[15]!==f||t[16]!==h||t[17]!==p||t[18]!==g?(x=y.jsxs(Vn.Body,{children:[f,h,p,g]}),t[15]=f,t[16]=h,t[17]=p,t[18]=g,t[19]=x):x=t[19];let _;t[20]!==o.cancel||t[21]!==n?(_=y.jsx(Uo,{onClick:n,color:"secondary",variant:"outlined",children:o.cancel}),t[20]=o.cancel,t[21]=n,t[22]=_):_=t[22];let w;t[23]!==o.save?(w=y.jsx(Uo,{type:"submit",children:o.save}),t[23]=o.save,t[24]=w):w=t[24];let C;t[25]!==_||t[26]!==w?(C=y.jsxs(Vn.Footer,{children:[_,w]}),t[25]=_,t[26]=w,t[27]=C):C=t[27];let b;t[28]!==x||t[29]!==C||t[30]!==d?(b=y.jsxs(Xr,{onSubmit:d,children:[x,C]}),t[28]=x,t[29]=C,t[30]=d,t[31]=b):b=t[31];let S;t[32]!==l||t[33]!==b?(S=y.jsx(sn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=S):S=t[34];let M;return t[35]!==S||t[36]!==u?(M=y.jsxs(y.Fragment,{children:[u,S]}),t[35]=S,t[36]=u,t[37]=M):M=t[37],M},Hfe=e=>{const t=je.c(9),{handleClose:n}=e,{reducer:r}=v.useContext(mn),[i]=r;let o;e:{if(i.markedFiles.length!==1){o=void 0;break e}let l;if(t[0]!==i.constantFiles||t[1]!==i.markedFiles[0]){let c;t[3]!==i.markedFiles[0]?(c=u=>u.id===i.markedFiles[0],t[3]=i.markedFiles[0],t[4]=c):c=t[4],l=i.constantFiles.find(c),t[0]=i.constantFiles,t[1]=i.markedFiles[0],t[2]=l}else l=t[2];o=l}const a=o;if(a===void 0){n();let l;return t[5]===Symbol.for("react.memo_cache_sentinel")?(l=y.jsx(y.Fragment,{}),t[5]=l):l=t[5],l}let s;return t[6]!==a||t[7]!==n?(s=y.jsx(Ufe,{file:a,handleClose:n}),t[6]=a,t[7]=n,t[8]=s):s=t[8],s},Vfe=()=>{const{reducer:[e,t]}=v.useContext(mn),n=v.useCallback(()=>{t({type:"close-modal"})},[t]),r=v.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(zfe,{handleClose:n});case"edit-file-properties":return y.jsx(Hfe,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Vn,{show:e.state==="openned-modal",onHide:n,children:r})},Yx="documents_drag_image_element",Ad="drop-container-highlight-class",Gx="data-drop-container-id",Zx="data-draggable-id",qfe=()=>{const e=document.getElementById(Yx);if(e!==null)return e;const t=document.createElement("div");return t.id=Yx,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},r1=()=>{const e=je.c(12),{apiActions:t,reducer:n}=v.useContext(mn),{moveDocuments:r}=t,[i]=n;let o;e[0]!==i.markedFiles?(o=x=>{var _;if(i.markedFiles.length>0){const w=qfe();w.innerHTML=i.markedFiles.length.toString(),x.dataTransfer.setDragImage(w,0,0),x.dataTransfer.clearData(),x.dataTransfer.setData("application/json",JSON.stringify(i.markedFiles)),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"}else x.dataTransfer.setData("application/json",JSON.stringify([parseInt(((_=x.currentTarget.attributes.getNamedItem(Zx))==null?void 0:_.nodeValue)??"",10)])),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"},e[0]=i.markedFiles,e[1]=o):o=e[1];const a=o;let s;e[2]!==a||e[3]!==i.markedFiles?(s=x=>({[Zx]:x,draggable:i.markedFiles.length===0||i.markedFiles.includes(x),onDragStart:a}),e[2]=a,e[3]=i.markedFiles,e[4]=s):s=e[4];const l=s;let c;e[5]!==r?(c=x=>_=>{var b;_.preventDefault(),_.stopPropagation(),_.currentTarget.classList.remove(Ad);const w=_.dataTransfer.files;if(x&&w&&w.length>0){x(w);return}const C=_.dataTransfer.getData("application/json");if(C){const S=JSON.parse(C),M=parseInt(((b=_.currentTarget.attributes.getNamedItem(Gx))==null?void 0:b.value)??"",10);r(M,S)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=Gfe,f=Zfe,h=Xfe;let p;e[7]!==u?(p=(x,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[Gx]:x}),e[7]=u,e[8]=p):p=e[8];const m=p;let g;return e[9]!==l||e[10]!==m?(g={getDraggableProps:l,getDropProps:m},e[9]=l,e[10]=m,e[11]=g):g=e[11],g};function Yfe(e){e.preventDefault(),e.stopPropagation()}function Gfe(){return Yfe}function Zfe(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(Ad)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(Ad)):t.dataTransfer.dropEffect="none"}}function Xfe(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(Ad))}function iT(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const o=n.get(i);if(o&&iT(o,t,n))return!0}return!1}function Kfe(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function oT(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${oT(n.parentId,t)}/${n.name}`}const Jfe=()=>{const e=je.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=of();let i;e[0]!==r||e[1]!==t||e[2]!==n?(i=hi({validToDate:n(),description:t(),name:t(),documentTypeId:r()}),e[0]=r,e[1]=t,e[2]=n,e[3]=i):i=e[3];const o=i;let a;return e[4]!==o?(a={formSchema:o},e[4]=o,e[5]=a):a=e[5],a},i1=e=>{var X;const t=je.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:o}=v.useContext(rn),{documents:a}=o,{reducer:s,apiActions:l}=v.useContext(mn),[c]=s,{uploadFiles:u}=l;let d;t[0]!==r?(d=[...r],t[0]=r,t[1]=d):d=t[1];const f=d,h=i??c.activeFolder;let p;t[2]!==h||t[3]!==c.foldersMap?(p=h==="root"?void 0:c.foldersMap.get(h),t[2]=h,t[3]=c.foldersMap,t[4]=p):p=t[4];const m=p,{formSchema:g}=Jfe();let x;t[5]!==g?(x=Eh(g),t[5]=g,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=Zd(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(X=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:X.id,t[8]=h,t[9]=c.documentTypes,t[10]=c.foldersMap,t[11]=w):w=t[11];let C;t[12]!==w?(C={validToDate:_,documentTypeId:w},t[12]=w,t[13]=C):C=t[13];let b;t[14]!==x||t[15]!==C?(b={resolver:x,defaultValues:C},t[14]=x,t[15]=C,t[16]=b):b=t[16];const S=sn.useForm(b);let M;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(M=async J=>{h!=="root"&&(await u(r,{folderId:h,...J}),n())},t[17]=r,t[18]=h,t[19]=n,t[20]=u,t[21]=M):M=t[21];const k=M;let $;t[22]!==a||t[23]!==r.length||t[24]!==m.name?($=a.uploadFilesPrompt(r.length,m.name),t[22]=a,t[23]=r.length,t[24]=m.name,t[25]=$):$=t[25];let R;t[26]!==f?(R=y.jsx("ul",{children:f.map(Qfe)}),t[26]=f,t[27]=R):R=t[27];let T;t[28]!==$||t[29]!==R?(T=y.jsx(Vn.Header,{closeButton:!0,children:y.jsxs("div",{children:[$,R]})}),t[28]=$,t[29]=R,t[30]=T):T=t[30];let E;t[31]!==S||t[32]!==k?(E=S.handleSubmit(k),t[31]=S,t[32]=k,t[33]=E):E=t[33];let A;t[34]!==a.documentType||t[35]!==c.documentTypes?(A=y.jsx(Mh,{formField:"documentTypeId",label:a.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=a.documentType,t[35]=c.documentTypes,t[36]=A):A=t[36];let I;t[37]!==a.validSince?(I=y.jsx(cs,{formField:"validToDate",label:a.validSince,type:"date",required:!0}),t[37]=a.validSince,t[38]=I):I=t[38];let j;t[39]!==a.name||t[40]!==f.length?(j=f.length===1?y.jsx(cs,{formField:"name",label:a.name,type:"text"}):null,t[39]=a.name,t[40]=f.length,t[41]=j):j=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D={maxLength:rT},t[42]=D):D=t[42];let O;t[43]!==a.description?(O=y.jsx(n1,{formField:"description",label:a.description,customFormControlProps:D}),t[43]=a.description,t[44]=O):O=t[44];let L;t[45]!==A||t[46]!==I||t[47]!==j||t[48]!==O?(L=y.jsxs(Vn.Body,{children:[A,I,j,O]}),t[45]=A,t[46]=I,t[47]=j,t[48]=O,t[49]=L):L=t[49];let z;t[50]!==a.cancel||t[51]!==n?(z=y.jsx(Uo,{variant:"outlined",color:"secondary",onClick:n,children:a.cancel}),t[50]=a.cancel,t[51]=n,t[52]=z):z=t[52];let N;t[53]!==a.upload?(N=y.jsx(Uo,{type:"submit",children:a.upload}),t[53]=a.upload,t[54]=N):N=t[54];let H;t[55]!==z||t[56]!==N?(H=y.jsxs(Vn.Footer,{children:[z,N]}),t[55]=z,t[56]=N,t[57]=H):H=t[57];let Y;t[58]!==E||t[59]!==L||t[60]!==H?(Y=y.jsxs(Xr,{onSubmit:E,children:[L,H]}),t[58]=E,t[59]=L,t[60]=H,t[61]=Y):Y=t[61];let q;t[62]!==S||t[63]!==Y?(q=y.jsx(sn.FormProvider,{...S,children:Y}),t[62]=S,t[63]=Y,t[64]=q):q=t[64];let Z;return t[65]!==n||t[66]!==T||t[67]!==q?(Z=y.jsxs(Vn,{show:!0,onHide:n,children:[T,q]}),t[65]=n,t[66]=T,t[67]=q,t[68]=Z):Z=t[68],Z};function Qfe(e,t){return y.jsxs("li",{children:[e.name," - ",Xa(e.size)]},`${e.name}-${t}`)}const ehe="_folder_1cktt_1",the="_collapseArrowDiv_1cktt_8",nhe="_button_1cktt_20",rhe="_nestedList_1cktt_24",ihe="_numberOfFiles_1cktt_31",ohe="_collapseArrow_1cktt_8",bo={folder:ehe,collapseArrowDiv:the,button:nhe,nestedList:rhe,numberOfFiles:ihe,collapseArrow:ohe},aT=e=>{const t=je.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=v.useContext(rn),{reducer:o}=v.useContext(mn),[a,s]=o,{getDropProps:l}=r1(),[c,u]=v.useState(null),[d,f]=v.useState(!0);let h,p;t[0]!==n||t[1]!==a.foldersMap?(p=a.foldersMap.get(n),t[0]=n,t[1]=a.foldersMap,t[2]=p):p=t[2];const m=p;if(m===void 0)throw new Error(`tried to get dir with id ${n}`);h=m;const g=h;let x;t[3]!==n||t[4]!==g||t[5]!==s||t[6]!==a.activeFolder||t[7]!==a.foldersMap?(x=()=>{a.activeFolder!=="root"&&iT(g,a.activeFolder,a.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=g,t[5]=s,t[6]=a.activeFolder,t[7]=a.foldersMap,t[8]=x):x=t[8];const _=x,w=g.childrenIds.length>0;let C;t[9]!==n||t[10]!==s?(C=()=>{s({type:"select-folder",folderId:n})},t[9]=n,t[10]=s,t[11]=C):C=t[11];const b=C;let S;if(t[12]!==n||t[13]!==a.filteredFiles){let Y;t[15]!==n?(Y=q=>q.folderId===n&&q.archive===!1,t[15]=n,t[16]=Y):Y=t[16],S=a.filteredFiles.filter(Y),t[12]=n,t[13]=a.filteredFiles,t[14]=S}else S=t[14];const M=S.length;let k;t[17]!==i||t[18]!==_||t[19]!==w||t[20]!==d?(k=w?d?y.jsx("button",{onClick:()=>f(!1),type:"button",children:y.jsx(i,{icon:"chevron-right",iconProps:{className:bo.collapseArrow}})}):y.jsx("button",{onClick:_,type:"button",children:y.jsx(i,{icon:"chevron-down",iconProps:{className:bo.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=k):k=t[21];let $;t[22]!==k?($=y.jsx("div",{className:bo.collapseArrowDiv,children:k}),t[22]=k,t[23]=$):$=t[23];let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R=se(bo.button),t[24]=R):R=t[24];let T;t[25]!==n||t[26]!==g.onlyRead||t[27]!==l||t[28]!==r?(T=r&&!g.onlyRead?l(n,{onFilesDrop:Y=>u(Y)}):{},t[25]=n,t[26]=g.onlyRead,t[27]=l,t[28]=r,t[29]=T):T=t[29];const E=g.defaultDocType??"",A=n===a.activeFolder;let I;t[30]!==g.isDefault||t[31]!==g.name||t[32]!==E||t[33]!==A?(I=y.jsx(tT,{isDefault:g.isDefault,folderName:g.name,typeName:E,isActive:A}),t[30]=g.isDefault,t[31]=g.name,t[32]=E,t[33]=A,t[34]=I):I=t[34];let j;t[35]!==M?(j=M>0?y.jsxs("span",{className:bo.numberOfFiles,children:["[",M,"]"]}):void 0,t[35]=M,t[36]=j):j=t[36];let D;t[37]!==I||t[38]!==j?(D=y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[I,j]}),t[37]=I,t[38]=j,t[39]=D):D=t[39];let O;t[40]!==b||t[41]!==T||t[42]!==D?(O=y.jsx("button",{className:R,onClick:b,type:"button",...T,children:D}),t[40]=b,t[41]=T,t[42]=D,t[43]=O):O=t[43];let L;t[44]!==g.childrenIds||t[45]!==w||t[46]!==d||t[47]!==r?(L=w?d?null:y.jsx("ul",{className:bo.nestedList,children:g==null?void 0:g.childrenIds.map(Y=>y.jsx(aT,{dirId:Y,writePermissions:r},Y))}):void 0,t[44]=g.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=L):L=t[48];let z;t[49]!==O||t[50]!==L||t[51]!==$?(z=y.jsxs("li",{className:bo.folder,children:[$,O,L]}),t[49]=O,t[50]=L,t[51]=$,t[52]=z):z=t[52];let N;t[53]!==n||t[54]!==c?(N=c!==null?y.jsx(i1,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=N):N=t[55];let H;return t[56]!==z||t[57]!==N?(H=y.jsxs(y.Fragment,{children:[z,N]}),t[56]=z,t[57]=N,t[58]=H):H=t[58],H},ahe="_wrapper_1th2u_1",she="_downloadButton_1th2u_9",vg={wrapper:ahe,downloadButton:she};function lhe(e){return it({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"},child:[]}]})(e)}function che(e){return it({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16l0 319.8-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-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}const uhe="_excel_18ggp_1",dhe="_word_18ggp_5",fhe="_pdf_18ggp_9",hhe="_image_18ggp_13",bu={excel:uhe,word:dhe,pdf:fhe,image:hhe},sT=e=>{const t=je.c(27);let n,r,i;switch(t[0]!==e?({fileExtension:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),r==null?void 0:r.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":{let o;t[4]!==n?(o=se(n,bu.image),t[4]=n,t[5]=o):o=t[5];let a;t[6]!==i?(a=y.jsx(che,{...i}),t[6]=i,t[7]=a):a=t[7];let s;return t[8]!==o||t[9]!==a?(s=y.jsx("span",{className:o,children:a}),t[8]=o,t[9]=a,t[10]=s):s=t[10],s}case"XLS":case"XLSX":case"CSV":{let o;t[11]!==n?(o=se(n,bu.excel),t[11]=n,t[12]=o):o=t[12];let a;return t[13]!==i||t[14]!==o?(a=y.jsx(Gae,{className:o,...i}),t[13]=i,t[14]=o,t[15]=a):a=t[15],a}case"DOC":case"DOCM":case"DOCX":{let o;t[16]!==n?(o=se(n,bu.word),t[16]=n,t[17]=o):o=t[17];let a;return t[18]!==i||t[19]!==o?(a=y.jsx(Zae,{className:o,...i}),t[18]=i,t[19]=o,t[20]=a):a=t[20],a}case"PDF":{let o;t[21]!==n?(o=se(n,bu.pdf),t[21]=n,t[22]=o):o=t[22];let a;return t[23]!==i||t[24]!==o?(a=y.jsx(nj,{className:o,...i}),t[23]=i,t[24]=o,t[25]=a):a=t[25],a}default:{let o;return t[26]===Symbol.for("react.memo_cache_sentinel")?(o=y.jsx(lhe,{}),t[26]=o):o=t[26],o}}},phe=()=>{const e=je.c(47),{ProjectIconComponent:t,texts:n}=v.useContext(rn),{documents:r}=n,{apiActions:i,reducer:o}=v.useContext(mn),{downloadFile:a}=i,[s]=o,l=s.activeFolder==="root";let c;e[0]!==a?(c=(T,E,A)=>T?b4(E??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:j=>{j.stopPropagation(),a(A,!0)},children:T}):T:"",e[0]=a,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Q5(),e[2]=d):d=e[2];const f=d;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=f.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),e[3]=h):h=e[3];let p;e[4]!==r.folder||e[5]!==l?(p=l?[f.accessor("folderName",{header:r.folder,type:"string"})]:[],e[4]=r.folder,e[5]=l,e[6]=p):p=e[6];let m;e[7]!==u?(m=f.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("fileExtension"),A=T.row.getValue("id");return u(y.jsx(sT,{fileExtension:(E==null?void 0:E.toString())??"",className:vg.extensionIcon,size:18}),(E==null?void 0:E.toString())??"",Number((A==null?void 0:A.toString())??""))}}}),e[7]=u,e[8]=m):m=e[8];let g;if(e[9]!==r.name||e[10]!==u){let T;e[12]!==u?(T=E=>{const A=E.row.getValue("name"),I=E.row.getValue("fileExtension"),j=E.row.getValue("id");return u((A==null?void 0:A.toString())??"",(I==null?void 0:I.toString())??"",Number((j==null?void 0:j.toString())??""))},e[12]=u,e[13]=T):T=e[13],g=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:T}}),e[9]=r.name,e[10]=u,e[11]=g}else g=e[11];let x;e[14]!==r.description?(x=f.accessor("description",{header:r.description,type:"string"}),e[14]=r.description,e[15]=x):x=e[15];let _;e[16]!==r.fileExtension?(_=f.accessor("fileExtension",{header:r.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),e[16]=r.fileExtension,e[17]=_):_=e[17];let w;e[18]!==t||e[19]!==a?(w=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("id");return y.jsx(sf,{className:vg.downloadButton,onClick:()=>a(Number((E==null?void 0:E.toString())??""),!1),children:y.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=a,e[20]=w):w=e[20];let C;e[21]!==r.documentType?(C=f.accessor("documentTypeName",{header:r.documentType,type:"string",meta:{filterVariant:"select"}}),e[21]=r.documentType,e[22]=C):C=e[22];let b;e[23]!==r.validSince?(b=f.accessor("validToDate",{header:r.validSince,type:"date"}),e[23]=r.validSince,e[24]=b):b=e[24];let S;e[25]!==r.size?(S=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:mhe}}),e[25]=r.size,e[26]=S):S=e[26];let M;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let T;e[31]!==r.no||e[32]!==r.yes?(T=E=>E.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=T):T=e[33],M=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:T}}),e[27]=r.archived,e[28]=r.no,e[29]=r.yes,e[30]=M}else M=e[30];let k;e[34]!==_||e[35]!==w||e[36]!==C||e[37]!==b||e[38]!==S||e[39]!==M||e[40]!==p||e[41]!==m||e[42]!==g||e[43]!==x?(k=[h,...p,m,g,x,_,w,C,b,S,M],e[34]=_,e[35]=w,e[36]=C,e[37]=b,e[38]=S,e[39]=M,e[40]=p,e[41]=m,e[42]=g,e[43]=x,e[44]=k):k=e[44];const $=k;let R;return e[45]!==$?(R={columns:$},e[45]=$,e[46]=R):R=e[46],R};function mhe(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?Xa(t*1024*1024):""}const ghe=e=>{var E;const t=je.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:o}=v.useContext(mn),[a,s]=o,{columns:l}=phe();let c;t[0]!==s?(c=A=>{s({type:"mark-files-by-action",setStateAction:A})},t[0]=s,t[1]=c):c=t[1];const u=c,d=a.activeFolder==="root";let f;e:{if(a.activeFolder==="root"){f=!1;break e}let A;t[2]!==a.activeFolder||t[3]!==a.foldersMap?(A=((E=a.foldersMap.get(a.activeFolder))==null?void 0:E.onlyRead)??!1,t[2]=a.activeFolder,t[3]=a.foldersMap,t[4]=A):A=t[4],f=A}const h=f,p=i&&!d;let m;t[5]!==a.markedFiles?(m=Object.fromEntries(a.markedFiles.map(vhe)),t[5]=a.markedFiles,t[6]=m):m=t[6];let g;t[7]!==u?(g=A=>{const I=Object.keys(A).filter(j=>A[j]).map(bhe);u(I)},t[7]=u,t[8]=g):g=t[8];let x;t[9]!==p||t[10]!==m||t[11]!==g?(x={enabled:p,selectedRows:m,setSelectedRows:g},t[9]=p,t[10]=m,t[11]=g,t[12]=x):x=t[12];const _=x;let w;e:{if(a.activeFolder==="root"){w=a.filteredFiles;break e}let A;if(t[13]!==a.activeFolder||t[14]!==a.filteredFiles){let I;t[16]!==a.activeFolder?(I=j=>j.folderId===a.activeFolder,t[16]=a.activeFolder,t[17]=I):I=t[17],A=a.filteredFiles.filter(I),t[13]=a.activeFolder,t[14]=a.filteredFiles,t[15]=A}else A=t[15];w=A}const C=w,{getDraggableProps:b}=r1();let S;t[18]!==b||t[19]!==h||t[20]!==i?(S=A=>i===!1||h?{}:b(A.id),t[18]=b,t[19]=h,t[20]=i,t[21]=S):S=t[21];const M=S;console.log("rowSelection.selectedRows",_.selectedRows);let k;t[22]===Symbol.for("react.memo_cache_sentinel")?(k=se(vg.wrapper),t[22]=k):k=t[22];let $;t[23]===Symbol.for("react.memo_cache_sentinel")?($={columnFilters:[{id:"archive",value:"false"}]},t[23]=$):$=t[23];let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R={hidden:!0},t[24]=R):R=t[24];let T;return t[25]!==n||t[26]!==l||t[27]!==C||t[28]!==M||t[29]!==_||t[30]!==a.activeFolder||t[31]!==r?(T=y.jsx("div",{className:k,children:y.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:M,initState:$,tableId:r,bottomBar:R,getRowId:yhe},a.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=M,t[29]=_,t[30]=a.activeFolder,t[31]=r,t[32]=T):T=t[32],T};function vhe(e){return[e.toString(),!0]}function bhe(e){return Number(e)}function yhe(e){var t;return((t=e.id)==null?void 0:t.toString())??""}const xhe="_wrapper_1q562_1",whe="_divButtons_1q562_10",Hp={wrapper:xhe,divButtons:whe},_he="_wrapper_1bpdd_1",Che="_fileInput_1bpdd_5",Xx={wrapper:_he,fileInput:Che},She=e=>{const t=je.c(17),{entityId:n,entityType:r,children:i,disabled:o}=e,a=v.useRef(null),[s,l]=v.useState(null),{reducer:c}=v.useContext(mn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=M=>{var k;(((k=M.target.files)==null?void 0:k.length)??0)>0&&l(M.target.files)},t[0]=d):d=t[0];const f=d;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(null),a.current&&(a.current.value="")},t[1]=h):h=t[1];const p=h,m=`documents-upload-${r}-${n}`,g=o||u.activeFolder==="root",x=g?"disabled":void 0;let _;t[2]!==x?(_=se("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==m||t[6]!==_?(w=y.jsx("label",{htmlFor:m,className:_,children:i}),t[4]=i,t[5]=m,t[6]=_,t[7]=w):w=t[7];let C;t[8]!==m||t[9]!==g?(C=y.jsx("input",{id:m,type:"file",multiple:!0,onChange:f,className:Xx.fileInput,ref:a,disabled:g}),t[8]=m,t[9]=g,t[10]=C):C=t[10];let b;t[11]!==s?(b=s!==null?y.jsx(i1,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let S;return t[13]!==w||t[14]!==C||t[15]!==b?(S=y.jsxs("div",{className:Xx.wrapper,children:[w,C,b]}),t[13]=w,t[14]=C,t[15]=b,t[16]=S):S=t[16],S},jr=e=>{const t=je.c(5),{children:n,onClick:r,className:i,disabled:o}=e,a=o===void 0?!1:o;let s;return t[0]!==n||t[1]!==i||t[2]!==a||t[3]!==r?(s=y.jsx(sf,{onClick:r,className:i,disabled:a,children:n}),t[0]=n,t[1]=i,t[2]=a,t[3]=r,t[4]=s):s=t[4],s},The=e=>{var N,H,Y;const t=je.c(51),{className:n,entityId:r,entityType:i}=e,{texts:o}=v.useContext(rn),{documents:a}=o,{prompt:s}=G_(),{confirm:l}=a0(),{apiActions:c,reducer:u}=v.useContext(mn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:m,archivateFiles:g,deleteDirectory:x}=c,{renameFolder:_}=nT(),w=d.markedFiles.length===0,C=d.markedFiles.length===1;let b;t[0]!==a.enterNewFolderName||t[1]!==s||t[2]!==_||t[3]!==d.activeFolder?(b=async()=>{if(d.activeFolder==="root")return;const q=await s(a.enterNewFolderName,{input:"input"});q!==null&&_(d.activeFolder,q)},t[0]=a.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=b):b=t[4];const S=b;let M;t[5]!==a.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(M=async()=>{if(d.activeFolder==="root")return;const q=await s(a.enterNewFileName,{input:"input"});q!==null&&p(q)},t[5]=a.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=M):M=t[9];const k=M,$=d.activeFolder==="root";let R;e:{if(d.activeFolder==="root"){R=!1;break e}let q;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(q=((N=d.foldersMap.get(d.activeFolder))==null?void 0:N.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=q):q=t[12],R=q}const T=R;let E;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let q;t[16]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!1},t[16]=d.constantFiles,t[17]=q):q=t[17],E=d.markedFiles.every(q),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=E}else E=t[15];const A=E;let I;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let q;t[21]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!0},t[21]=d.constantFiles,t[22]=q):q=t[22],I=d.markedFiles.every(q),t[18]=d.constantFiles,t[19]=d.markedFiles,t[20]=I}else I=t[20];const j=I,D=d.state==="folder-choosing"?"ignore-dim":void 0;let O;t[23]!==n||t[24]!==D?(O=se(n,Hp.wrapper,D,"d-flex justify-content-between"),t[23]=n,t[24]=D,t[25]=O):O=t[25];let L;t[26]!==A||t[27]!==g||t[28]!==l||t[29]!==j||t[30]!==x||t[31]!==h||t[32]!==f||t[33]!==a||t[34]!==m||t[35]!==r||t[36]!==i||t[37]!==k||t[38]!==S||t[39]!==w||t[40]!==C||t[41]!==T||t[42]!==$||t[43]!==d.activeFolder||t[44]!==d.foldersMap||t[45]!==d.markedFiles||t[46]!==d.state?(L=d.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Hp.divButtons,children:[y.jsx(She,{entityId:r,entityType:i,disabled:T,children:a.uploadFiles}),y.jsx(jr,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:T,children:a.createFolder}),y.jsx(jr,{disabled:d.activeFolder==="root"||((H=d.foldersMap.get(d.activeFolder))==null?void 0:H.isDefault),onClick:async()=>{var Z;await l(`${a.deleteFolder} ${(Z=d.foldersMap.get(d.activeFolder))==null?void 0:Z.name}?`)&&x(d.activeFolder)},children:a.deleteFolder}),y.jsx(jr,{disabled:d.activeFolder==="root"||((Y=d.foldersMap.get(d.activeFolder))==null?void 0:Y.isDefault),onClick:S,children:a.renameFolder})]}),!$&&!T?y.jsxs("div",{className:Hp.divButtons,children:[y.jsx(jr,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:a.editFileProperties}),y.jsx(jr,{onClick:async()=>{await l(a.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:a.delete}),j?y.jsx(jr,{onClick:async()=>{await l(a.confirmDearchiveFile(d.markedFiles.length))&&await g(!0)},disabled:w,children:a.dearchivate}):y.jsx(jr,{onClick:async()=>{await l(a.confirmArchiveFile(d.markedFiles.length))&&await g()},disabled:w||!A,children:a.archivate}),y.jsx(jr,{onClick:k,disabled:w,children:a.rename}),y.jsx(jr,{onClick:m,disabled:w,children:a.downloadZip})]}):null]}):d.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(jr,{onClick:()=>f({type:"return-from-folder-choosing"}),className:se("ignore-dim","body-background-color"),children:a.back})}):void 0,t[26]=A,t[27]=g,t[28]=l,t[29]=j,t[30]=x,t[31]=h,t[32]=f,t[33]=a,t[34]=m,t[35]=r,t[36]=i,t[37]=k,t[38]=S,t[39]=w,t[40]=C,t[41]=T,t[42]=$,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=L):L=t[47];let z;return t[48]!==L||t[49]!==O?(z=y.jsx("div",{className:O,children:L}),t[48]=L,t[49]=O,t[50]=z):z=t[50],z},khe=e=>{const t=je.c(25),{file:n}=e,{confirm:r}=a0(),{reducer:i,apiActions:o}=v.useContext(mn),[a]=i,{downloadFile:s}=o,{texts:l}=v.useContext(rn),{documents:c}=l;let u;t[0]!==r||t[1]!==c||t[2]!==s||t[3]!==n.id||t[4]!==n.name||t[5]!==n.size?(u=async()=>{await r(c.confirmFileDownload(n.name,n.size==null?void 0:Xa(n.size*1024*1024)))&&s(n.id)},t[0]=r,t[1]=c,t[2]=s,t[3]=n.id,t[4]=n.name,t[5]=n.size,t[6]=u):u=t[6];const d=u;let f;t[7]!==n.folderId||t[8]!==a.foldersMap?(f=oT(n.folderId,a.foldersMap),t[7]=n.folderId,t[8]=a.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=y.jsx(jn,{variant:"body",className:"text-muted",children:f}),t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n.name?(p=y.jsx(jn,{variant:"body",children:n.name}),t[12]=n.name,t[13]=p):p=t[13];let m;t[14]!==n.size?(m=n.size==null?null:Xa(n.size*1024*1024),t[14]=n.size,t[15]=m):m=t[15];let g;t[16]!==m?(g=y.jsx(jn,{variant:"body",children:m}),t[16]=m,t[17]=g):g=t[17];let x;t[18]!==p||t[19]!==g?(x=y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,g]}),t[18]=p,t[19]=g,t[20]=x):x=t[20];let _;return t[21]!==d||t[22]!==x||t[23]!==h?(_=y.jsxs(Ud,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},$he="_typeSelect_m3myk_1",Mhe={typeSelect:$he},Ehe=()=>{const e=je.c(34),{reducer:t}=v.useContext(mn),[n]=t,{texts:r}=v.useContext(rn),{documents:i}=r,[o,a]=v.useState(""),[s,l]=v.useState(null);let c;e[0]!==n.filteredFiles?(c=new Map,n.filteredFiles.forEach(k=>{c.get(k.documentTypeId)===void 0&&c.set(k.documentTypeId,k.documentTypeName)}),e[0]=n.filteredFiles,e[1]=c):c=e[1];let u;e[2]!==i.all?(u={id:null,name:i.all},e[2]=i.all,e[3]=u):u=e[3];let d;e[4]!==c?(d=Array.from(c).map(Ohe),e[4]=c,e[5]=d):d=e[5];let f;e[6]!==u||e[7]!==d?(f=[u,...d],e[6]=u,e[7]=d,e[8]=f):f=e[8];const p=f;let m;if(e[9]!==o||e[10]!==s||e[11]!==n.filteredFiles){let k;e[13]!==o||e[14]!==s?(k=$=>e0($.name,o)&&(s===null||$.documentTypeId===s),e[13]=o,e[14]=s,e[15]=k):k=e[15],m=n.filteredFiles.filter(k),e[9]=o,e[10]=s,e[11]=n.filteredFiles,e[12]=m}else m=e[12];const g=m;let x;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(x=y.jsx(MC,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:Mhe.typeSelect}),e[16]=i.documentType,e[17]=p,e[18]=s,e[19]=x):x=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=k=>a(k===null?"":k),e[20]=_):_=e[20];let w;e[21]!==i.search||e[22]!==o?(w=y.jsx(TC,{label:i.search,type:"text",value:o,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=o,e[23]=w):w=e[23];let C;e[24]!==x||e[25]!==w?(C=y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[x,w]}),e[24]=x,e[25]=w,e[26]=C):C=e[26];let b;e[27]!==g?(b=g.map(Ahe),e[27]=g,e[28]=b):b=e[28];let S;e[29]!==b?(S=y.jsx(__,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=S):S=e[30];let M;return e[31]!==S||e[32]!==C?(M=y.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,S]}),e[31]=S,e[32]=C,e[33]=M):M=e[33],M};function Ohe(e){return{id:e[0],name:e[1]}}function Ahe(e){return y.jsx(khe,{file:e},e.id)}function Rhe(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function Dhe(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,Rhe(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,o)=>{const a=n.get(i);if(a===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${o}`);a.childrenIds.push(o)}),{dirsMap:n,rootIds:t}}function Kx(e,t){const n=t.toUpperCase();return e.filter(r=>{var o;const i=(o=r.name)==null?void 0:o.toUpperCase();return i==null?void 0:i.includes(n)})}function Ihe(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const jhe=([e,t],n,r)=>{const{texts:{documents:i}}=v.useContext(rn),{startLoading:o,stopLoading:a}=v.useContext(qd),{addNotification:s}=tf(),l=nf(),c=v.useCallback(async w=>{o("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:M}=Dhe(b.folders),k=Ihe(b.documents,S);t({type:"load-data",files:k,foldersMap:S,rootFolderIds:M,setActiveFolder:w})}finally{a("documentList")}},[l,t,r,n,o,a]);v.useEffect(()=>{c(!0)},[c]);const u=v.useCallback(async()=>{o("documents-types");try{const w=await l.get(`/documents/types/${n}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"load-document-types",documentTypes:w.data})}finally{a("documents-types")}},[l,t,n,o,a]);v.useEffect(()=>{u()},[u]);const d=v.useCallback(async(w,C)=>{const b=C??e.markedFiles;o("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(w).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,l,t,s,i,a]),f=v.useCallback(async w=>{const C=w??e.markedFiles;o("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${dm(C,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{a("documentsFilesDelete")}},[e.markedFiles,o,l,t,s,i,a]),h=v.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){o("documentsFolderDelete");try{const b=await l.delete(`/documents/folder/${w}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,l,t,s,i,a]),p=v.useCallback(async w=>{o("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{a("documentsRename")}},[o,l,e.markedFiles,c,a]),m=v.useCallback(async w=>{o("documents-archivate");try{const C=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{a("documents-archivate")}},[o,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,a]),g=v.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),o("documents-ZIP_download");try{const b=await l.get(`/documents/download-zip?${dm(e.markedFiles,"documentIds")}`,{responseType:"blob"});Vu(b.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{a("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,o,l,a]),x=v.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const b=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find(k=>k.id===w),M=`${(S==null?void 0:S.name)??w.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;Vu(b.data,M,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,l,e.constantFiles,a]),_=v.useCallback(async(w,C)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{a("documents-upload")}},[o,s,i.uploadingDocuments,l,c,a]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:p,archivateFiles:m,downloadAsZip:g,downloadFile:x,uploadFiles:_}},Phe=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Kx(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const o=t.rootFolderIds.find(a=>t.files.some(s=>s.archive===!1&&s.folderId===a))??"root";i.activeFolder=o}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(o=>o!==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(o=>{i.set(o,{...e.foldersMap.get(o),...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),o=(n=i.get(t.folderId))==null?void 0:n.parentId;let a=[...e.rootFolderIds];if(o){const s=JSON.parse(JSON.stringify(i.get(o)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(o,s)}else a=a.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:a,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(a=>a.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const o=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)o.push(t.folderId);else{const a=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(a));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:o,foldersMap:i}}case"search-files":{const i=Kx(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(o=>i.map(a=>a.id).includes(o))}}default:throw new Error("Wrong action.type specified.")}},Nhe=()=>{const e=je.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},e[0]=t):t=e[0];const n=t,[r,i]=v.useReducer(Phe,n);let o;return e[1]!==r?(o=[r,i],e[1]=r,e[2]=o):o=e[2],o},Lhe=v.memo(e=>{const t=je.c(86);let n,r,i,o,a,s,l,c;t[0]!==e?({entityType:a,entityId:o,className:r,BnfTableComponent:n,tableIdentifier:c,customRootFolderName:i,writePermissions:l,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8]);const u=l===void 0?!0:l,{isMobile:d}=Cc(),{ProjectIconComponent:f,texts:h}=v.useContext(rn),{documents:p}=h,[m,g]=Nhe(),[x,_]=v.useState(null);let w;t[9]!==g||t[10]!==m?(w=[m,g],t[9]=g,t[10]=m,t[11]=w):w=t[11];const C=jhe(w,a,o);let b,S;t[12]!==C?({loadDocuments:S,...b}=C,t[12]=C,t[13]=b,t[14]=S):(b=t[13],S=t[14]);let M;t[15]!==g||t[16]!==m?(M=[m,g],t[15]=g,t[16]=m,t[17]=M):M=t[17];let k;t[18]!==b||t[19]!==o||t[20]!==a||t[21]!==S||t[22]!==M?(k={entityId:o,entityType:a,apiActions:b,loadDocuments:S,reducer:M},t[18]=b,t[19]=o,t[20]=a,t[21]=S,t[22]=M,t[23]=k):k=t[23];const $=k,{getDropProps:R}=r1();if(d){let K;t[24]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx(Ehe,{}),t[24]=K):K=t[24];let G;return t[25]!==$?(G=y.jsx(mn.Provider,{value:$,children:K}),t[25]=$,t[26]=G):G=t[26],G}let T;t[27]!==r?(T=se(vo.wrapper,r),t[27]=r,t[28]=T):T=t[28];const E=m.state==="folder-choosing"?"dim-others":void 0;let A;t[29]!==E?(A=se(E,vo.explorerWindow),t[29]=E,t[30]=A):A=t[30];const I=i??a;let j;t[31]!==I?(j=y.jsx(Lfe,{customText:I}),t[31]=I,t[32]=j):j=t[32];let D;if(t[33]!==m.rootFolderIds||t[34]!==u){let K;t[36]!==u?(K=G=>y.jsx(aT,{dirId:G,writePermissions:u},G),t[36]=u,t[37]=K):K=t[37],D=m.rootFolderIds.map(K),t[33]=m.rootFolderIds,t[34]=u,t[35]=D}else D=t[35];let O;t[38]!==j||t[39]!==D?(O=y.jsxs("ul",{className:vo.folderList,children:[j,D]}),t[38]=j,t[39]=D,t[40]=O):O=t[40];let L;t[41]!==O||t[42]!==A?(L=y.jsx("div",{className:A,children:O}),t[41]=O,t[42]=A,t[43]=L):L=t[43];let z;t[44]===Symbol.for("react.memo_cache_sentinel")?(z=se(vo.explorerWindow,vo.fileList),t[44]=z):z=t[44];let N;t[45]!==R||t[46]!==m||t[47]!==u?(N=u&&Kfe(m)?R(m.activeFolder,{onFilesDrop:K=>_(K),ignoreInner:!0}):{},t[45]=R,t[46]=m,t[47]=u,t[48]=N):N=t[48];let H;t[49]===Symbol.for("react.memo_cache_sentinel")?(H={style:{marginRight:0}},t[49]=H):H=t[49];let Y;t[50]!==f?(Y=y.jsx(f,{icon:"file-upload",iconProps:H}),t[50]=f,t[51]=Y):Y=t[51];let q;t[52]!==p.dropToUpload?(q=y.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=q):q=t[53];let Z;t[54]!==Y||t[55]!==q?(Z=y.jsxs("div",{className:vo.dndText,children:[Y,q]}),t[54]=Y,t[55]=q,t[56]=Z):Z=t[56];const X=m.activeFolder==="root";let J;t[57]!==X?(J=X.toString(),t[57]=X,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=y.jsx(ghe,{tableIdentifier:c,BnfTableComponent:n,writePermissions:u},J),t[59]=n,t[60]=J,t[61]=c,t[62]=u,t[63]=ee):ee=t[63];let W;t[64]!==N||t[65]!==Z||t[66]!==ee?(W=y.jsxs("div",{className:z,...N,children:[Z,ee]}),t[64]=N,t[65]=Z,t[66]=ee,t[67]=W):W=t[67];let F;t[68]!==o||t[69]!==a||t[70]!==u?(F=u?y.jsx(The,{className:vo.controls,entityType:a,entityId:o}):null,t[68]=o,t[69]=a,t[70]=u,t[71]=F):F=t[71];let B;t[72]===Symbol.for("react.memo_cache_sentinel")?(B=y.jsx(Vfe,{}),t[72]=B):B=t[72];let V;t[73]!==m.activeFolder||t[74]!==x?(V=x!==null?y.jsx(i1,{files:x,handleClose:()=>_(null),targetFolderId:m.activeFolder==="root"?void 0:m.activeFolder}):null,t[73]=m.activeFolder,t[74]=x,t[75]=V):V=t[75];let P;t[76]!==$||t[77]!==L||t[78]!==W||t[79]!==F||t[80]!==V?(P=y.jsxs(mn.Provider,{value:$,children:[L,W,F,B,V]}),t[76]=$,t[77]=L,t[78]=W,t[79]=F,t[80]=V,t[81]=P):P=t[81];let te;return t[82]!==s||t[83]!==P||t[84]!==T?(te=y.jsx("div",{...s,className:T,onDragOver:Fhe,onDragEnter:Bhe,children:P}),t[82]=s,t[83]=P,t[84]=T,t[85]=te):te=t[85],te});function Fhe(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function Bhe(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const zhe=v.createContext(void 0);exports.AbortError=wm;exports.AbstractModalHeader=Gg;exports.AggregateErrors=j9;exports.Alert=x0;exports.ApiWebSocketContext=Q9;exports.ApprovalState=DO;exports.Arg=$u;exports.AuthContext=Yd;exports.Backdrop=wC;exports.BaseModal=S_;exports.BootstrapModalManager=T_;exports.Button=Og;exports.Col=Ag;exports.ConfirmContext=q_;exports.ConsoleLogger=_m;exports.ContextButton=sf;exports.CustomSelectInput=MC;exports.DelegationContext=i4;exports.DisabledTransportError=R9;exports.Documents=Lhe;exports.Dropdown=h0;exports.Dropdown$1=Za;exports.DropdownDivider=Sm;exports.DropdownItem=ko;exports.DropdownToggle=f0;exports.ENTERED=Li;exports.ENTERING=ci;exports.EXITED=Pi;exports.EXITING=ju;exports.FaMinus=QI;exports.FaPlus=ej;exports.FaSearch=tj;exports.Fade=Yi;exports.FailedToNegotiateWithServerError=I9;exports.FailedToStartTransportError=D9;exports.Fe=RO;exports.FileExtensionIcon=sT;exports.FloatingLabelInput=uf;exports.Form=Xr;exports.FormCheckInput=Wd;exports.FormControl=d_;exports.FormDisabledContext=cC;exports.FormSelect=Wg;exports.HelmetContext=lC;exports.HookFormSelectInput=Mh;exports.HookFormTextAreaInput=n1;exports.HookFormTextInput=cs;exports.HtmlTooltip=c4;exports.HttpError=E9;exports.HubConnection=u0;exports.IconButton=Sc;exports.InputAnchorContainer=SC;exports.InvalidFeedback=lf;exports.ListGroup=__;exports.ListGroupItem=Ud;exports.LoadingContext=qd;exports.LoginState=n4;exports.LuminusComponentsContext=rn;exports.MdCheck=x8;exports.MdCircle=y8;exports.MdClear=gc;exports.MdOutlineAddCircleOutline=O8;exports.MdOutlineArrowOutward=w8;exports.MdOutlineCallMade=M8;exports.MdOutlineCameraAlt=P8;exports.MdOutlineChevronRight=B8;exports.MdOutlineClose=H_;exports.MdOutlineDelete=U_;exports.MdOutlineEdit=N8;exports.MdOutlineExpand=C8;exports.MdOutlineFileUpload=D8;exports.MdOutlineKeyboardArrowLeft=I8;exports.MdOutlineKeyboardArrowRight=j8;exports.MdOutlineMenu=z8;exports.MdOutlineMessage=E8;exports.MdOutlinePhotoLibrary=L8;exports.MdOutlineSource=T8;exports.MdOutlineStar=H8;exports.MdOutlineSubdirectoryArrowRight=U8;exports.MdSave=b8;exports.MdSaveAs=v8;exports.MdSearch=g8;exports.Me=Fne;exports.MiniDetailWrapper=$C;exports.Modal=Vn;exports.ModalContext=qg;exports.NoInputContainer=CC;exports.NullLogger=Qu;exports.OverlayTrigger=B_;exports.PageContainer=sse;exports.PiPushPinBold=qae;exports.PiPushPinSlashBold=Yae;exports.Platform=Tr;exports.PrimaryButton=Uo;exports.PromptContext=Y_;exports.PropTypes=xe;exports.ResponsiveContextDropdown=xC;exports.ResponsiveContextDropdownItem=g0;exports.RowLabelInput=kc;exports.ShortcutLinksContext=zhe;exports.SideContentBar=p5;exports.SimpleDropdownToggle=d0;exports.SimplePicker=hC;exports.SimpleTooltip=Jg;exports.Spinner=Xg;exports.TextInput=TC;exports.TextMessageFormat=cr;exports.TimeoutError=O9;exports.Tooltip=L_;exports.TransitionWrapper=Tg;exports.Typography=jn;exports.UnsupportedTransportError=A9;exports.UserContext=r4;exports.Xe=Hae;exports.ZodIssueCode=he;exports.a=p0;exports.addLeadingZeros=Nt;exports.addMilliseconds=Qx;exports.arrayType=tC;exports.atobUtf8=d4;exports.axios=Zt;exports.buildEmployeeNameString=KO;exports.buildOrgUnitString=JO;exports.buildVehicleNameString=XO;exports.cancelToken=lR;exports.capitalizeFirstLetter=ZO;exports.classNames=se;exports.classes=Cm;exports.classes$1=fC;exports.compareDate=t7;exports.compareDateTime=n7;exports.compilerRuntimeExports=je;exports.constructFrom=bi;exports.context=Bd;exports.createLogger=F9;exports.differenceInCalendarDays=ow;exports.dist=b0;exports.divWithClassName=kg;exports.extractErrorsFromBlobResponse=s4;exports.extractErrorsFromResponse=Gd;exports.extractFilename=g4;exports.extractPermissionsFromResponse=l4;exports.fixNameIdNulls=o4;exports.format=wg;exports.formatDate=YO;exports.formatDateTime=GO;exports.formatFileSize=Xa;exports.getChildRef=fs;exports.getDataDetail=uC;exports.getDateString=l7;exports.getDaysDifference=r7;exports.getFirstDayOfMonth=p4;exports.getFirstDayOfOffsetMonth=i7;exports.getFirstDayOfYear=a7;exports.getGlobalThis=V9;exports.getLastDayOfMonth=m4;exports.getLastDayOfOffsetMonth=o7;exports.getLastDayOfYear=s7;exports.getSharedManager=k_;exports.getTimezoneOffsetInMilliseconds=Yp;exports.getUserAgentHeader=dC;exports.hasOnlyNullValues=a4;exports.hookFormSetServerErrors=jO;exports.isArrayBuffer=ns;exports.isExtensionOpenable=b4;exports.isFileOpenable=v4;exports.isISODate=f4;exports.isISODateInValidRange=h4;exports.isLeavingWindowInSafari=jI;exports.isPast=lw;exports.isPrimitive=Hu;exports.isSafari=y0;exports.isValidDate=e7;exports.joinStrings=Qg;exports.makeDispatch=NI;exports.millisecondsInHour=Rd;exports.millisecondsInMinute=yg;exports.millisecondsInWeek=bg;exports.msToStartOfNextDay=QO;exports.objectType=hi;exports.once=_C;exports.parseISO=uc;exports.replaceNullValuesOnlyObjectsWithNulls=IO;exports.saveFile=Vu;exports.saveFileFromResponse=d7;exports.secondsInDay=xg;exports.secondsInHour=ew;exports.secondsInMinute=MT;exports.secondsInMonth=nw;exports.secondsInQuarter=OT;exports.secondsInWeek=ET;exports.secondsInYear=tw;exports.sendMessage=L9;exports.shortenText=qO;exports.startOfDay=qp;exports.startOfWeek=Ua;exports.stringContains=fm;exports.stringSearchWithin=e0;exports.stringStartsWith=y4;exports.stringType=l0;exports.style=Hi;exports.t=Eh;exports.te=rQ;exports.toDate=Ln;exports.transitionEndListener=yw;exports.triggerBrowserReflow=xw;exports.trimIsoDate=Zd;exports.truncateText=u4;exports.u=Q5;exports.urlfyArray=dm;exports.useAuth=V4;exports.useAxios=nf;exports.useBootstrapBreakpoints=fw;exports.useBootstrapMinBreakpoint=hw;exports.useBootstrapPrefix=gt;exports.useClickOutside=iC;exports.useClipboard=sC;exports.useCol=Ew;exports.useConfirm=a0;exports.useCookies=o0;exports.useEventCallback=qi;exports.useFormControlType=c0;exports.useFormDisabledContext=af;exports.useIsomorphicEffect=Bg;exports.useKeyPress=aC;exports.useNotifications=tf;exports.usePermissions=oC;exports.usePrompt=G_;exports.useSwipeable=v0;exports.useWindowSize=Cc;exports.useZodSchemaTypes=of;exports.z=sl;