react-luminus-components 2.0.5-beta.r19-21 → 2.0.5-beta.r19-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +34 -34
- package/dist/{FormDisabledProvider-DvfrLH-L.js → FormDisabledProvider-BlRae2l2.js} +1 -1
- package/dist/{FormDisabledProvider-Boy3uKK2.cjs → FormDisabledProvider-CiGUtSf7.cjs} +1 -1
- package/dist/components/Flexmonster/components/ReportSharingModal/hooks/useReportSharingApi.d.ts +2 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +119 -119
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +8 -8
- package/dist/main.es.js +696 -687
- package/dist/models/api/employee/IEmployee.d.ts +9 -0
- package/dist/models/api/reports/ReportRestrictResultModel.d.ts +10 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/nivo-bar-BHzU38wt.js +37458 -0
- package/dist/nivo-bar-C1VYGnTR.cjs +285 -0
- package/dist/{useIsFormDirty-B723dG-I.cjs → useIsFormDirty-BhBtGgzZ.cjs} +1 -1
- package/dist/{useIsFormDirty-Dn2nhhtz.js → useIsFormDirty-GgEve4W-.js} +1 -1
- package/dist/{useLocalStorageState-GaJtAO3b.cjs → useLocalStorageState-AB4BFfn5.cjs} +1 -1
- package/dist/{useLocalStorageState-CCIGnkoN.js → useLocalStorageState-B2v6hClT.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +20 -16
- package/package.json +2 -2
- package/dist/nivo-bar-I92eMmVs.cjs +0 -326
- package/dist/nivo-bar-eqo8TGxR.js +0 -41894
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("react/jsx-runtime"),m=require("react"),gO=require("@azure/msal-browser"),Ps=require("react-router"),hy=require("@azure/msal-react"),mn=require("react-dom"),dn=require("react-hook-form");require("react-flexmonster");function vO(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 ie=vO(m);var Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gg={exports:{}},Hp={};/**
|
|
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 py;function bO(){if(py)return Hp;py=1;var e=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Hp.c=function(t){return e.H.useMemoCache(t)},Hp}var Vp={};/**
|
|
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 my;function yO(){return my||(my=1,process.env.NODE_ENV!=="production"&&function(){var e=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Vp.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)}}()),Vp}process.env.NODE_ENV==="production"?gg.exports=bO():gg.exports=yO();var Re=gg.exports,B4={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})()})(B4);var xO=B4.exports;const ue=sn(xO);function Vn(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 Ai(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function wO(e,t){const n=+Vn(e);return Ai(e,n+t)}const _O=365.2425,Kv=6048e5,CO=864e5,Zv=6e4,Pf=36e5,z4=3600,$O=60,Xv=z4*24,SO=Xv*7,W4=Xv*_O,U4=W4/12,TO=U4*3;function H4(e,t){return wO(e,t*Pf)}let EO={};function Lf(){return EO}function ps(e,t){var s,l,c,u;const n=Lf(),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=Vn(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 Md(e){return ps(e,{weekStartsOn:1})}function V4(e){const t=Vn(e),n=t.getFullYear(),r=Ai(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Md(r),o=Ai(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Md(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function vg(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function bg(e){const t=Vn(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 q4(e,t){const n=vg(e),r=vg(t),i=+n-bg(n),o=+r-bg(r);return Math.round((i-o)/CO)}function kO(e){const t=V4(e),n=Ai(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Md(n)}function OO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function MO(e){if(!OO(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function AO(e){const t=Vn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function RO(e){const t=Vn(e),n=Ai(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const jO={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"}},NO=(e,t,n)=>{let r;const i=jO[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 qp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const DO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},IO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:qp({formats:DO,defaultWidth:"full"}),time:qp({formats:IO,defaultWidth:"full"}),dateTime:qp({formats:PO,defaultWidth:"full"})},FO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BO=(e,t,n,r)=>FO[e];function dl(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 zO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UO={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"]},HO={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"]},VO={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"}},qO={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"}},YO=(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"},GO={ordinalNumber:YO,era:dl({values:zO,defaultWidth:"wide"}),quarter:dl({values:WO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dl({values:UO,defaultWidth:"wide"}),day:dl({values:HO,defaultWidth:"wide"}),dayPeriod:dl({values:VO,defaultWidth:"wide",formattingValues:qO,defaultFormattingWidth:"wide"})};function fl(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)?ZO(s,d=>d.test(a)):KO(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 KO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ZO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function XO(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 QO=/^(\d+)(th|st|nd|rd)?/i,JO=/\d+/i,eM={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},tM={any:[/^b/i,/^(a|c)/i]},nM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rM={any:[/1/i,/2/i,/3/i,/4/i]},iM={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},oM={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]},aM={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},sM={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]},lM={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},cM={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}},uM={ordinalNumber:XO({matchPattern:QO,parsePattern:JO,valueCallback:e=>parseInt(e,10)}),era:fl({matchPatterns:eM,defaultMatchWidth:"wide",parsePatterns:tM,defaultParseWidth:"any"}),quarter:fl({matchPatterns:nM,defaultMatchWidth:"wide",parsePatterns:rM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fl({matchPatterns:iM,defaultMatchWidth:"wide",parsePatterns:oM,defaultParseWidth:"any"}),day:fl({matchPatterns:aM,defaultMatchWidth:"wide",parsePatterns:sM,defaultParseWidth:"any"}),dayPeriod:fl({matchPatterns:lM,defaultMatchWidth:"any",parsePatterns:cM,defaultParseWidth:"any"})},dM={code:"en-US",formatDistance:NO,formatLong:LO,formatRelative:BO,localize:GO,match:uM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fM(e){const t=Vn(e);return q4(t,RO(t))+1}function hM(e){const t=Vn(e),n=+Md(t)-+kO(t);return Math.round(n/Kv)+1}function Y4(e,t){var u,d,f,h;const n=Vn(e),r=n.getFullYear(),i=Lf(),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=Ai(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=ps(a,t),l=Ai(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=ps(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function pM(e,t){var s,l,c,u;const n=Lf(),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=Y4(e,t),o=Ai(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),ps(o,t)}function mM(e,t){const n=Vn(e),r=+ps(n,t)-+pM(n,t);return Math.round(r/Kv)+1}function Lt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Lt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Lt(n+1,2)},d(e,t){return Lt(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 Lt(e.getHours()%12||12,t.length)},H(e,t){return Lt(e.getHours(),t.length)},m(e,t){return Lt(e.getMinutes(),t.length)},s(e,t){return Lt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Lt(i,t.length)}},Ia={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gy={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 Yi.y(e,t)},Y:function(e,t,n,r){const i=Y4(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Lt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Lt(o,t.length)},R:function(e,t){const n=V4(e);return Lt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Lt(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 Lt(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 Lt(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 Yi.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 Lt(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=mM(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Lt(i,t.length)},I:function(e,t,n){const r=hM(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Lt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yi.d(e,t)},D:function(e,t,n){const r=fM(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Lt(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 Lt(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 Lt(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 Lt(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=Ia.noon:r===0?i=Ia.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=Ia.evening:r>=12?i=Ia.afternoon:r>=4?i=Ia.morning:i=Ia.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 Yi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yi.s(e,t)},S:function(e,t){return Yi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return by(r);case"XXXX":case"XX":return Bo(r);case"XXXXX":case"XXX":default:return Bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return by(r);case"xxxx":case"xx":return Bo(r);case"xxxxx":case"xxx":default:return Bo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vy(r,":");case"OOOO":default:return"GMT"+Bo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vy(r,":");case"zzzz":default:return"GMT"+Bo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Lt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Lt(r,t.length)}};function vy(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+Lt(o,2)}function by(e,t){return e%60===0?(e>0?"-":"+")+Lt(Math.abs(e)/60,2):Bo(e,t)}function Bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Lt(Math.trunc(r/60),2),o=Lt(r%60,2);return n+i+t+o}const yy=(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"})}},G4=(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"})}},gM=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yy(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}}",yy(r,t)).replace("{{time}}",G4(i,t))},vM={p:G4,P:gM},bM=/^D+$/,yM=/^Y+$/,xM=["D","DD","YY","YYYY"];function wM(e){return bM.test(e)}function _M(e){return yM.test(e)}function CM(e,t,n){const r=$M(e,t,n);if(console.warn(r),xM.includes(e))throw new RangeError(r)}function $M(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 SM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EM=/^'([^]*?)'?$/,kM=/''/g,OM=/[a-zA-Z]/;function Qv(e,t,n){var u,d,f,h,p,g,v,x;const r=Lf(),i=(n==null?void 0:n.locale)??r.locale??dM,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)??((g=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,s=Vn(e);if(!MO(s))throw new RangeError("Invalid time value");let l=t.match(TM).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=vM[w];return C(_,i.formatLong)}return _}).join("").match(SM).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:MM(_)};if(gy[w])return{isToken:!0,value:_};if(w.match(OM))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)&&_M(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wM(w))&&CM(w,t,String(e));const C=gy[w[0]];return C(s,w,i.localize,c)}).join("")}function MM(e){const t=e.match(EM);return t?t[1].replace(kM,"'"):e}function K4(e){return+Vn(e)<Date.now()}function Ff(e,t){const r=NM(e);let i;if(r.date){const l=DM(r.date,2);i=IM(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=PM(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=LM(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 Pu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,RM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NM(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 DM(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 IM(e,t){if(t===null)return new Date(NaN);const n=e.match(AM);if(!n)return new Date(NaN);const r=!!n[4],i=hl(n[1]),o=hl(n[2])-1,a=hl(n[3]),s=hl(n[4]),l=hl(n[5])-1;if(r)return UM(t,s,l)?FM(t,s,l):new Date(NaN);{const c=new Date(0);return!zM(t,o,a)||!WM(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function hl(e){return e?parseInt(e):1}function PM(e){const t=e.match(RM);if(!t)return NaN;const n=Yp(t[1]),r=Yp(t[2]),i=Yp(t[3]);return HM(n,r,i)?n*Pf+r*Zv+i*1e3:NaN}function Yp(e){return e&&parseFloat(e.replace(",","."))||0}function LM(e){if(e==="Z")return 0;const t=e.match(jM);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return VM(r,i)?n*(r*Pf+i*Zv):NaN}function FM(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 BM=[31,null,31,30,31,30,31,31,30,31,30,31];function Z4(e){return e%400===0||e%4===0&&e%100!==0}function zM(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(BM[t]||(Z4(e)?29:28))}function WM(e,t){return t>=1&&t<=(Z4(e)?366:365)}function UM(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function HM(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function VM(e,t){return t>=0&&t<=59}function yg(){return yg=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},yg.apply(null,arguments)}function X4(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 qM=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}},YM=qM;const xy=sn(YM);function wy(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function GM(e){var t=KM(e,"string");return typeof t=="symbol"?t:String(t)}function KM(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 Q4(e,t,n){var r=m.useRef(e!==void 0),i=m.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,m.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 Jv(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[wy(r)],s=o[r],l=X4(o,[wy(r),r].map(GM)),c=t[r],u=Q4(s,a,e[c]),d=u[0],f=u[1];return yg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xg(e,t)}function ZM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xg(e,t)}const XM=["xxl","xl","lg","md","sm","xs"],QM="xs",Yc=ie.createContext({prefixes:{},breakpoints:XM,minBreakpoint:QM}),{Consumer:vbe,Provider:bbe}=Yc;function ft(e,t){const{prefixes:n}=m.useContext(Yc);return e||n[t]||t}function J4(){const{breakpoints:e}=m.useContext(Yc);return e}function e3(){const{minBreakpoint:e}=m.useContext(Yc);return e}function Bf(){const{dir:e}=m.useContext(Yc);return e==="rtl"}function Ls(e){return e&&e.ownerDocument||document}function JM(e){var t=Ls(e);return t&&t.defaultView||window}function e8(e,t){return JM(e).getComputedStyle(e,t)}var t8=/([A-Z])/g;function n8(e){return e.replace(t8,"-$1").toLowerCase()}var r8=/^ms-/;function Lu(e){return n8(e).replace(r8,"-ms-")}var i8=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function o8(e){return!!(e&&i8.test(e))}function co(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Lu(t))||e8(e).getPropertyValue(Lu(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Lu(i)):o8(i)?r+=i+"("+o+") ":n+=Lu(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var wg={exports:{}},Fu={exports:{}},jt={};/** @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 _y;function a8(){if(_y)return jt;_y=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,g=e?Symbol.for("react.block"):60121,v=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 $=b.$$typeof;switch($){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 $}}case n:return $}}}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===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},jt.typeOf=w,jt}var Nt={};/** @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 Cy;function s8(){return Cy||(Cy=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function C(N){if(typeof N=="object"&&N!==null){var Q=N.$$typeof;switch(Q){case t:var X=N.type;switch(X){case l:case c:case r:case o:case i:case d:return X;default:var G=X&&X.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return Q}}case n:return Q}}}var b=l,$=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!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.")),P(N)||C(N)===l}function P(N){return C(N)===c}function z(N){return C(N)===s}function V(N){return C(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return C(N)===u}function Z(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function W(N){return C(N)===n}function L(N){return C(N)===o}function B(N){return C(N)===i}function q(N){return C(N)===d}Nt.AsyncMode=b,Nt.ConcurrentMode=$,Nt.ContextConsumer=T,Nt.ContextProvider=k,Nt.Element=O,Nt.ForwardRef=j,Nt.Fragment=S,Nt.Lazy=E,Nt.Memo=A,Nt.Portal=D,Nt.Profiler=R,Nt.StrictMode=M,Nt.Suspense=I,Nt.isAsyncMode=U,Nt.isConcurrentMode=P,Nt.isContextConsumer=z,Nt.isContextProvider=V,Nt.isElement=H,Nt.isForwardRef=Y,Nt.isFragment=Z,Nt.isLazy=J,Nt.isMemo=ee,Nt.isPortal=W,Nt.isProfiler=L,Nt.isStrictMode=B,Nt.isSuspense=q,Nt.isValidElementType=w,Nt.typeOf=C}()),Nt}var $y;function t3(){return $y||($y=1,process.env.NODE_ENV==="production"?Fu.exports=a8():Fu.exports=s8()),Fu.exports}/*
|
|
40
|
-
object-assign
|
|
41
|
-
(c) Sindre Sorhus
|
|
42
|
-
@license MIT
|
|
43
|
-
*/var Gp,Sy;function l8(){if(Sy)return Gp;Sy=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 Gp=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},Gp}var Kp,Ty;function e0(){if(Ty)return Kp;Ty=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kp=e,Kp}var Zp,Ey;function n3(){return Ey||(Ey=1,Zp=Function.call.bind(Object.prototype.hasOwnProperty)),Zp}var Xp,ky;function c8(){if(ky)return Xp;ky=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=e0(),n={},r=n3();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={})},Xp=i,Xp}var Qp,Oy;function u8(){if(Oy)return Qp;Oy=1;var e=t3(),t=l8(),n=e0(),r=n3(),i=c8(),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 Qp=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var z=P&&(c&&P[c]||P[u]);if(typeof z=="function")return z}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:$,node:j(),objectOf:k,oneOf:T,oneOfType:O,shape:E,exact:A};function p(P,z){return P===z?P!==0||1/P===1/z:P!==P&&z!==z}function g(P,z){this.message=P,this.data=z&&typeof z=="object"?z:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var z={},V=0;function H(Z,J,ee,W,L,B,q){if(W=W||f,B=B||ee,q!==n){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=W+":"+ee;!z[Q]&&V<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."),z[Q]=!0,V++)}}return J[ee]==null?Z?J[ee]===null?new g("The "+L+" `"+B+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new g("The "+L+" `"+B+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(J,ee,W,L,B)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function z(V,H,Y,Z,J,ee){var W=V[H],L=M(W);if(L!==P){var B=I(W);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+B+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(z)}function _(){return v(a)}function w(P){function z(V,H,Y,Z,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=V[H];if(!Array.isArray(ee)){var W=M(ee);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var B=P(ee,L,Y,Z,J+"["+L+"]",n);if(B instanceof Error)return B}return null}return v(z)}function C(){function P(z,V,H,Y,Z){var J=z[V];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(z,V,H,Y,Z){var J=z[V];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function z(V,H,Y,Z,J){if(!(V[H]instanceof P)){var ee=P.name||f,W=U(V[H]);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(z)}function T(P){if(!Array.isArray(P))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 z(V,H,Y,Z,J){for(var ee=V[H],W=0;W<P.length;W++)if(p(ee,P[W]))return null;var L=JSON.stringify(P,function(q,N){var Q=I(N);return Q==="symbol"?String(N):N});return new g("Invalid "+Z+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(z)}function k(P){function z(V,H,Y,Z,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var B=P(ee,L,Y,Z,J+"."+L,n);if(B instanceof Error)return B}return null}return v(z)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<P.length;z++){var V=P[z];if(typeof V!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(V)+" at index "+z+"."),a}function H(Y,Z,J,ee,W){for(var L=[],B=0;B<P.length;B++){var q=P[B],N=q(Y,Z,J,ee,W,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&L.push(N.data.expectedType)}var Q=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new g("Invalid "+ee+" `"+W+"` supplied to "+("`"+J+"`"+Q+"."))}return v(H)}function j(){function P(z,V,H,Y,Z){return D(z[V])?null:new g("Invalid "+Y+" `"+Z+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,z,V,H,Y){return new g((P||"React class")+": "+z+" type `"+V+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(P){function z(V,H,Y,Z,J){var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type `"+W+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var B=P[L];if(typeof B!="function")return S(Y,Z,J,L,I(B));var q=B(ee,L,Y,Z,J+"."+L,n);if(q)return q}return null}return v(z)}function A(P){function z(V,H,Y,Z,J){var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type `"+W+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},V[H],P);for(var B in L){var q=P[B];if(r(P,B)&&typeof q!="function")return S(Y,Z,J,B,I(q));if(!q)return new g("Invalid "+Z+" `"+J+"` key `"+B+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(V[H],null," ")+`
|
|
44
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=q(ee,B,Y,Z,J+"."+B,n);if(N)return N}return null}return v(z)}function D(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(D);if(P===null||s(P))return!0;var z=d(P);if(z){var V=z.call(P),H;if(z!==P.entries){for(;!(H=V.next()).done;)if(!D(H.value))return!1}else for(;!(H=V.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,z){return P==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function M(P){var z=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(z,P)?"symbol":z}function I(P){if(typeof P>"u"||P===null)return""+P;var z=M(P);if(z==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return z}function F(P){var z=I(P);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Qp}var Jp,My;function d8(){if(My)return Jp;My=1;var e=e0();function t(){}function n(){}return n.resetWarningCache=t,Jp=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},Jp}if(process.env.NODE_ENV!=="production"){var f8=t3(),h8=!0;wg.exports=u8()(f8.isElement,h8)}else wg.exports=d8()();var p8=wg.exports;const xe=sn(p8),Ay={disabled:!1};var m8=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 r3=m.createContext(null);var g8=function(t){return t.scrollTop},Dl="unmounted",Xi="exited",xi="entering",to="entered",Ad="exiting",Bi=function(e){ZM(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=Xi,o.appearStatus=xi):l=to:r.unmountOnExit||r.mountOnEnter?l=Dl:l=Xi,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Dl?{status:Xi}: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!==xi&&a!==to&&(o=xi):(a===xi||a===to)&&(o=Ad)}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===xi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);a&&g8(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xi&&this.setState({status:Dl})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||Ay.disabled){this.safeSetState({status:to},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:xi},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:to},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:mn.findDOMNode(this);if(!o||Ay.disabled){this.safeSetState({status:Xi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ad},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Xi},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:mn.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===Dl)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=X4(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(r3.Provider,{value:null},typeof a=="function"?a(i,s):m.cloneElement(m.Children.only(a),s))},t}(m.Component);Bi.contextType=r3;Bi.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=m8;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(){}Bi.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};Bi.UNMOUNTED=Dl;Bi.EXITED=Xi;Bi.ENTERING=xi;Bi.ENTERED=to;Bi.EXITING=Ad;function i3(e){return e.code==="Escape"||e.keyCode===27}function v8(){const e=ie.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}=v8();return t>=19?e.props.ref:e.ref}const Bs=!!(typeof window<"u"&&window.document&&window.document.createElement);var _g=!1,Cg=!1;try{var em={get passive(){return _g=!0},get once(){return Cg=_g=!0}};Bs&&(window.addEventListener("test",em,em),window.removeEventListener("test",em,!0))}catch{}function t0(e,t,n,r){if(r&&typeof r!="boolean"&&!Cg){var i=r.once,o=r.capture,a=n;!Cg&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,_g?r:o)}e.addEventListener(t,n,r)}function $g(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 $i(e,t,n,r){return t0(e,t,n,r),function(){$g(e,t,n,r)}}function b8(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 y8(e){var t=co(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function x8(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||b8(e,"transitionend",!0)},t+n),o=$i(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function o3(e,t,n,r){n==null&&(n=y8(e)||0);var i=x8(e,n,r),o=$i(e,"transitionend",t);return function(){i(),o()}}function Ry(e,t){const n=co(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function a3(e,t){const n=Ry(e,"transitionDuration"),r=Ry(e,"transitionDelay"),i=o3(e,o=>{o.target===e&&(i(),t(o))},n+r)}function s3(e){e.offsetHeight}const jy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function w8(e,t){const n=jy(e),r=jy(t);return i=>{n&&n(i),r&&r(i)}}function wa(e,t){return m.useMemo(()=>w8(e,t),[e,t])}function Rd(e){return e&&"setState"in e?mn.findDOMNode(e):e??null}const n0=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=m.useRef(null),f=wa(d,l),h=$=>{f(Rd($))},p=$=>T=>{$&&d.current&&$(d.current,T)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),w=m.useCallback(p(i),[i]),C=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return y.jsx(Bi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?($,T)=>s($,{...T,ref:h}):m.cloneElement(s,{ref:h})})});n0.displayName="TransitionWrapper";function _8(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function fo(e){const t=_8(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const r0=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:ue(t.className,e)})),l3=r0("h4");l3.displayName="DivStyledAsH4";const c3=ie.forwardRef(({className:e,bsPrefix:t,as:n=l3,...r},i)=>(t=ft(t,"alert-heading"),y.jsx(n,{ref:i,className:ue(e,t),...r})));c3.displayName="AlertHeading";function Sg(){return m.useState(null)}function C8(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function En(e){const t=C8(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function $8(e,t,n,r=!1){const i=En(n);m.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function u3(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function d3(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const S8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",T8=typeof document<"u",Ny=T8||S8?m.useLayoutEffect:m.useEffect,E8=["as","disabled"];function k8(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 O8(e){return!e||e.trim()==="#"}function i0({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"&&O8(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 o0=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=k8(e,E8);const[o,{tagName:a}]=i0(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});o0.displayName="Button";const M8=["onKeyDown"];function A8(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 R8(e){return!e||e.trim()==="#"}const a0=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=A8(e,M8);const[i]=i0(Object.assign({tagName:"a"},r)),o=En(a=>{i.onKeyDown(a),n==null||n(a)});return R8(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}))});a0.displayName="Anchor";const f3=ie.forwardRef(({className:e,bsPrefix:t,as:n=a0,...r},i)=>(t=ft(t,"alert-link"),y.jsx(n,{ref:i,className:ue(e,t),...r})));f3.displayName="AlertLink";const j8={[xi]:"show",[to]:"show"},ho=ie.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=m.useCallback((l,c)=>{s3(l),r==null||r(l,c)},[r]);return y.jsx(n0,{ref:o,addEndListener:a3,...a,onEnter:s,childRef:Fs(t),children:(l,c)=>ie.cloneElement(t,{...c,className:ue("fade",e,t.props.className,j8[l],n[l])})})});ho.displayName="Fade";const N8={"aria-label":xe.string,onClick:xe.func,variant:xe.oneOf(["white"])},zf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:ue("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));zf.displayName="CloseButton";zf.propTypes=N8;const h3=ie.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=ho,...f}=Jv(e,{show:"onClose"}),h=ft(n,"alert"),p=fo(x=>{c&&c(!1,x)}),g=d===!0?ho:d,v=y.jsxs("div",{role:"alert",...g?void 0:f,ref:t,className:ue(a,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&y.jsx(zf,{onClick:p,"aria-label":i,variant:o}),s]});return g?y.jsx(g,{unmountOnExit:!0,...f,ref:void 0,in:r,children:v}):r?v:null});h3.displayName="Alert";const D8=Object.assign(h3,{Link:f3,Heading:c3}),s0=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=ft(t,"btn"),[u,{tagName:d}]=i0({tagName:e,disabled:o,...s}),f=d;return y.jsx(f,{...u,...s,ref:l,disabled:o,className:ue(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});s0.displayName="Button";function I8(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function P8(e){const t=m.useRef(e);return t.current=e,t}function p3(e){const t=P8(e);m.useEffect(()=>()=>t.current(),[])}const Tg=2**31-1;function m3(e,t,n){const r=n-Date.now();e.current=r<=Tg?setTimeout(t,r):setTimeout(()=>m3(e,t,n),Tg)}function L8(){const e=I8(),t=m.useRef();return p3(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Tg?t.current=setTimeout(i,o):m3(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function F8(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function g3({as:e,bsPrefix:t,className:n,...r}){t=ft(t,"col");const i=J4(),o=e3(),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:ue(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const l0=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=g3(e);return y.jsx(i,{...r,ref:t,className:ue(n,!a.length&&o)})});l0.displayName="Col";var B8=Function.prototype.bind.call(Function.prototype.call,[].slice);function wi(e,t){return B8(e.querySelectorAll(t))}function z8(e,t,n){const r=m.useRef(e!==void 0),[i,o]=m.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,m.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function v3(){const[,e]=m.useReducer(t=>t+1,0);return e}const Wf=ie.createContext(null);var Dy=Object.prototype.hasOwnProperty;function Iy(e,t,n){for(n of e.keys())if(Wl(n,t))return n}function Wl(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--&&Wl(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=Iy(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=Iy(t,i),!i)||!Wl(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(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Wl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function W8(e){const t=u3();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Qn="top",wr="bottom",_r="right",Jn="left",c0="auto",Gc=[Qn,wr,_r,Jn],ms="start",nc="end",U8="clippingParents",b3="viewport",pl="popper",H8="reference",Py=Gc.reduce(function(e,t){return e.concat([t+"-"+ms,t+"-"+nc])},[]),y3=[].concat(Gc,[c0]).reduce(function(e,t){return e.concat([t,t+"-"+ms,t+"-"+nc])},[]),V8="beforeRead",q8="read",Y8="afterRead",G8="beforeMain",K8="main",Z8="afterMain",X8="beforeWrite",Q8="write",J8="afterWrite",eA=[V8,q8,Y8,G8,K8,Z8,X8,Q8,J8];function Yr(e){return e.split("-")[0]}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function aa(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function Gr(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function u0(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Jo=Math.max,jd=Math.min,gs=Math.round;function Eg(){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 x3(){return!/^((?!chrome|android).)*safari/i.test(Eg())}function vs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Gr(e)&&(i=e.offsetWidth>0&&gs(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&gs(r.height)/e.offsetHeight||1);var a=aa(e)?cr(e):window,s=a.visualViewport,l=!x3()&&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 d0(e){var t=vs(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 w3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return cr(e).getComputedStyle(e)}function tA(e){return["table","td","th"].indexOf(po(e))>=0}function $o(e){return((aa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uf(e){return po(e)==="html"?e:e.assignedSlot||e.parentNode||(u0(e)?e.host:null)||$o(e)}function Ly(e){return!Gr(e)||Ri(e).position==="fixed"?null:e.offsetParent}function nA(e){var t=/firefox/i.test(Eg()),n=/Trident/i.test(Eg());if(n&&Gr(e)){var r=Ri(e);if(r.position==="fixed")return null}var i=Uf(e);for(u0(i)&&(i=i.host);Gr(i)&&["html","body"].indexOf(po(i))<0;){var o=Ri(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 Kc(e){for(var t=cr(e),n=Ly(e);n&&tA(n)&&Ri(n).position==="static";)n=Ly(n);return n&&(po(n)==="html"||po(n)==="body"&&Ri(n).position==="static")?t:n||nA(e)||t}function f0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ul(e,t,n){return Jo(e,jd(t,n))}function rA(e,t,n){var r=Ul(e,t,n);return r>n?n:r}function _3(){return{top:0,right:0,bottom:0,left:0}}function C3(e){return Object.assign({},_3(),e)}function $3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,C3(typeof t!="number"?t:$3(t,Gc))};function oA(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Yr(n.placement),l=f0(s),c=[Jn,_r].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=iA(i.padding,n),f=d0(o),h=l==="y"?Qn:Jn,p=l==="y"?wr:_r,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],x=Kc(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,C=d[h],b=_-f[u]-d[p],$=_/2-f[u]/2+w,T=Ul(C,$,b),k=l;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-$,t)}}function aA(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)||w3(t.elements.popper,i)&&(t.elements.arrow=i))}const sA={name:"arrow",enabled:!0,phase:"main",fn:oA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bs(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cA(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:gs(n*i)/i||0,y:gs(r*i)/i||0}}function Fy(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,g=p===void 0?0:p,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Jn,C=Qn,b=window;if(c){var $=Kc(n),T="clientHeight",k="clientWidth";if($===cr(n)&&($=$o(n),Ri($).position!=="static"&&s==="absolute"&&(T="scrollHeight",k="scrollWidth")),$=$,i===Qn||(i===Jn||i===_r)&&o===nc){C=wr;var O=d&&$===b&&b.visualViewport?b.visualViewport.height:$[T];g-=O-r.height,g*=l?1:-1}if(i===Jn||(i===Qn||i===wr)&&o===nc){w=_r;var j=d&&$===b&&b.visualViewport?b.visualViewport.width:$[k];h-=j-r.width,h*=l?1:-1}}var S=Object.assign({position:s},c&&lA),E=u===!0?cA({x:h,y:g},cr(n)):{x:h,y:g};if(h=E.x,g=E.y,l){var A;return Object.assign({},S,(A={},A[C]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=_?g+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function uA(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:Yr(t.placement),variation:bs(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,Fy(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,Fy(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 dA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uA,data:{}};var Bu={passive:!0};function fA(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=cr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Bu)}),s&&l.addEventListener("resize",n.update,Bu),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Bu)}),s&&l.removeEventListener("resize",n.update,Bu)}}const hA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fA,data:{}};var pA={left:"right",right:"left",bottom:"top",top:"bottom"};function md(e){return e.replace(/left|right|bottom|top/g,function(t){return pA[t]})}var mA={start:"end",end:"start"};function By(e){return e.replace(/start|end/g,function(t){return mA[t]})}function h0(e){var t=cr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function p0(e){return vs($o(e)).left+h0(e).scrollLeft}function gA(e,t){var n=cr(e),r=$o(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=x3();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+p0(e),y:l}}function vA(e){var t,n=$o(e),r=h0(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Jo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Jo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+p0(e),l=-r.scrollTop;return Ri(i||n).direction==="rtl"&&(s+=Jo(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function m0(e){var t=Ri(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function S3(e){return["html","body","#document"].indexOf(po(e))>=0?e.ownerDocument.body:Gr(e)&&m0(e)?e:S3(Uf(e))}function Hl(e,t){var n;t===void 0&&(t=[]);var r=S3(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=cr(r),a=i?[o].concat(o.visualViewport||[],m0(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Hl(Uf(a)))}function kg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bA(e,t){var n=vs(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 zy(e,t,n){return t===b3?kg(gA(e,n)):aa(t)?bA(t,n):kg(vA($o(e)))}function yA(e){var t=Hl(Uf(e)),n=["absolute","fixed"].indexOf(Ri(e).position)>=0,r=n&&Gr(e)?Kc(e):e;return aa(r)?t.filter(function(i){return aa(i)&&w3(i,r)&&po(i)!=="body"}):[]}function xA(e,t,n,r){var i=t==="clippingParents"?yA(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=zy(e,c,r);return l.top=Jo(u.top,l.top),l.right=jd(u.right,l.right),l.bottom=jd(u.bottom,l.bottom),l.left=Jo(u.left,l.left),l},zy(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 T3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Yr(r):null,o=r?bs(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 wr:l={x:a,y:t.y+t.height};break;case _r:l={x:t.x+t.width,y:s};break;case Jn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?f0(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ms:l[c]=l[c]-(t[u]/2-n[u]/2);break;case nc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function rc(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?U8:s,c=n.rootBoundary,u=c===void 0?b3:c,d=n.elementContext,f=d===void 0?pl:d,h=n.altBoundary,p=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,x=C3(typeof v!="number"?v:$3(v,Gc)),_=f===pl?H8:pl,w=e.rects.popper,C=e.elements[p?_:f],b=xA(aa(C)?C:C.contextElement||$o(e.elements.popper),l,u,a),$=vs(e.elements.reference),T=T3({reference:$,element:w,placement:i}),k=kg(Object.assign({},w,T)),O=f===pl?k:$,j={top:b.top-O.top+x.top,bottom:O.bottom-b.bottom+x.bottom,left:b.left-O.left+x.left,right:O.right-b.right+x.right},S=e.modifiersData.offset;if(f===pl&&S){var E=S[i];Object.keys(j).forEach(function(A){var D=[_r,wr].indexOf(A)>=0?1:-1,R=[Qn,wr].indexOf(A)>=0?"y":"x";j[A]+=E[R]*D})}return j}function wA(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?y3:l,u=bs(r),d=u?s?Py:Py.filter(function(p){return bs(p)===u}):Gc,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=rc(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Yr(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function _A(e){if(Yr(e)===c0)return[];var t=md(e);return[By(e),t,By(t)]}function CA(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,g=n.allowedAutoPlacements,v=t.options.placement,x=Yr(v),_=x===v,w=l||(_||!p?[md(v)]:_A(v)),C=[v].concat(w).reduce(function(Y,Z){return Y.concat(Yr(Z)===c0?wA(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):Z)},[]),b=t.rects.reference,$=t.rects.popper,T=new Map,k=!0,O=C[0],j=0;j<C.length;j++){var S=C[j],E=Yr(S),A=bs(S)===ms,D=[Qn,wr].indexOf(E)>=0,R=D?"width":"height",M=rc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=D?A?_r:Jn:A?wr:Qn;b[R]>$[R]&&(I=md(I));var F=md(I),U=[];if(o&&U.push(M[E]<=0),s&&U.push(M[I]<=0,M[F]<=0),U.every(function(Y){return Y})){O=S,k=!1;break}T.set(S,U)}if(k)for(var P=p?3:1,z=function(Z){var J=C.find(function(ee){var W=T.get(ee);if(W)return W.slice(0,Z).every(function(L){return L})});if(J)return O=J,"break"},V=P;V>0;V--){var H=z(V);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const $A={name:"flip",enabled:!0,phase:"main",fn:CA,requiresIfExists:["offset"],data:{_skip:!1}};function Wy(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 Uy(e){return[Qn,_r,wr,Jn].some(function(t){return e[t]>=0})}function SA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=rc(t,{elementContext:"reference"}),s=rc(t,{altBoundary:!0}),l=Wy(a,r),c=Wy(s,i,o),u=Uy(l),d=Uy(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 TA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SA};function EA(e,t,n){var r=Yr(e),i=[Jn,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,[Jn,_r].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function kA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=y3.reduce(function(u,d){return u[d]=EA(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 OA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kA};function MA(e){var t=e.state,n=e.name;t.modifiersData[n]=T3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const AA={name:"popperOffsets",enabled:!0,phase:"read",fn:MA,data:{}};function RA(e){return e==="x"?"y":"x"}function jA(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,g=p===void 0?0:p,v=rc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Yr(t.placement),_=bs(t.placement),w=!_,C=f0(x),b=RA(C),$=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if($){if(o){var A,D=C==="y"?Qn:Jn,R=C==="y"?wr:_r,M=C==="y"?"height":"width",I=$[C],F=I+v[D],U=I-v[R],P=h?-k[M]/2:0,z=_===ms?T[M]:k[M],V=_===ms?-k[M]:-T[M],H=t.elements.arrow,Y=h&&H?d0(H):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_3(),J=Z[D],ee=Z[R],W=Ul(0,T[M],Y[M]),L=w?T[M]/2-P-W-J-j.mainAxis:z-W-J-j.mainAxis,B=w?-T[M]/2+P+W+ee+j.mainAxis:V+W+ee+j.mainAxis,q=t.elements.arrow&&Kc(t.elements.arrow),N=q?C==="y"?q.clientTop||0:q.clientLeft||0:0,Q=(A=S==null?void 0:S[C])!=null?A:0,X=I+L-Q-N,G=I+B-Q,se=Ul(h?jd(F,X):F,I,h?Jo(U,G):U);$[C]=se,E[C]=se-I}if(s){var te,re=C==="x"?Qn:Jn,ae=C==="x"?wr:_r,ce=$[b],ve=b==="y"?"height":"width",ge=ce+v[re],be=ce-v[ae],Te=[Qn,Jn].indexOf(x)!==-1,de=(te=S==null?void 0:S[b])!=null?te:0,le=Te?ge:ce-T[ve]-k[ve]-de+j.altAxis,we=Te?ce+T[ve]+k[ve]-de-j.altAxis:be,Be=h&&Te?rA(le,ce,we):Ul(h?le:ge,ce,h?we:be);$[b]=Be,E[b]=Be-ce}t.modifiersData[r]=E}}const NA={name:"preventOverflow",enabled:!0,phase:"main",fn:jA,requiresIfExists:["offset"]};function DA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IA(e){return e===cr(e)||!Gr(e)?h0(e):DA(e)}function PA(e){var t=e.getBoundingClientRect(),n=gs(t.width)/e.offsetWidth||1,r=gs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LA(e,t,n){n===void 0&&(n=!1);var r=Gr(t),i=Gr(t)&&PA(t),o=$o(t),a=vs(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((po(t)!=="body"||m0(o))&&(s=IA(t)),Gr(t)?(l=vs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=p0(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function FA(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 BA(e){var t=FA(e);return eA.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function zA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WA(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 Hy={placement:"bottom",modifiers:[],strategy:"absolute"};function Vy(){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 UA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Hy:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hy,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;g(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:aa(s)?Hl(s):s.contextElement?Hl(s.contextElement):[],popper:Hl(l)};var w=BA(WA([].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(Vy(_,w)){u.rects={reference:LA(_,Kc(w),u.options.strategy==="fixed"),popper:d0(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(j){return u.modifiersData[j.name]=Object.assign({},j.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],$=b.fn,T=b.options,k=T===void 0?{}:T,O=b.name;typeof $=="function"&&(u=$({state:u,options:k,name:O,instance:h})||u)}}}},update:zA(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!Vy(s,l))return h;h.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var x=v.name,_=v.options,w=_===void 0?{}:_,C=v.effect;if(typeof C=="function"){var b=C({state:u,name:x,instance:h,options:w}),$=function(){};d.push(b||$)}})}function g(){d.forEach(function(v){return v()}),d=[]}return h}}const HA=UA({defaultModifiers:[TA,AA,dA,hA,OA,$A,NA,sA]}),VA=["enabled","placement","strategy","modifiers"];function qA(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 YA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},GA={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)}}},KA=[];function E3(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=KA}=n,s=qA(n,VA);const l=m.useRef(a),c=m.useRef(),u=m.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,h]=W8(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},_={};Object.keys(v.elements).forEach(w=>{x[w]=v.styles[w],_[w]=v.attributes[w]}),h({state:v,styles:x,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),g=m.useMemo(()=>(Wl(l.current,a)||(l.current=a),l.current),[a]);return m.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...g,p,YA]})},[o,i,p,r,g]),m.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=HA(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,GA,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function ic(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var ZA=process.env.NODE_ENV!=="production",k3=function(){};if(ZA){var XA=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{}};k3=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||XA.apply(null,[t].concat(n))}}var QA=k3;const _a=sn(QA),qy=()=>{};function JA(e){return e.button===0}function e7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const gd=e=>e&&("current"in e?e.current:e),Yy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function O3(e,t=qy,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),o=m.useRef(!1),a=m.useCallback(c=>{const u=gd(e);_a(!!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||e7(c)||!JA(c)||!!ic(u,c.target)||o.current,o.current=!1},[e]),s=En(c=>{const u=gd(e);u&&ic(u,c.target)?o.current=!0:o.current=!1}),l=En(c=>{i.current||t(c)});m.useEffect(()=>{var c,u;if(n||e==null)return;const d=Ls(gd(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;Yy[r]&&(p=$i(d,Yy[r],s,!0));const g=$i(d,r,a,!0),v=$i(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>$i(_,"mousemove",qy))),()=>{p==null||p(),g(),v(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function t7(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function n7(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function M3({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=t7(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:n7(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 r7=["children","usePopper"];function i7(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 o7=()=>{};function A3(e={}){const t=m.useContext(Wf),[n,r]=Sg(),i=m.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=$=>{t==null||t.toggle(!1,$)},{placement:g,setMenu:v,menuElement:x,toggleElement:_}=t||{},w=E3(_,x,M3({placement:c||g||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||o7,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:g,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 O3(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function R3(e){let{children:t,usePopper:n=!0}=e,r=i7(e,r7);const[i,o]=A3(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}R3.displayName="DropdownMenu";const Nd={prefix:String(Math.round(Math.random()*1e10)),current:0},j3=m.createContext(Nd),a7=m.createContext(!1);let s7=!!(typeof window<"u"&&window.document&&window.document.createElement),tm=new WeakMap;function l7(e=!1){let t=m.useContext(j3),n=m.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=tm.get(o);a==null?tm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,tm.delete(o))}n.current=++t.current}return n.current}function c7(e){let t=m.useContext(j3);t===Nd&&!s7&&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=l7(!!e),r=t===Nd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function u7(e){let t=m.useId(),[n]=m.useState(m7()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nd.prefix}`;return e||`${r}-${t}`}const d7=typeof m.useId=="function"?u7:c7;function f7(){return!1}function h7(){return!0}function p7(e){return()=>{}}function m7(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(p7,f7,h7):m.useContext(a7)}const N3=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Gy=()=>{};function D3(){const e=d7(),{show:t=!1,toggle:n=Gy,setToggle:r,menuElement:i}=m.useContext(Wf)||{},o=m.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||Gy,onClick:o,"aria-expanded":!!t};return i&&N3(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function I3({children:e}){const[t,n]=D3();return y.jsx(y.Fragment,{children:e(t,n)})}I3.displayName="DropdownToggle";const ys=ie.createContext(null),oc=(e,t=null)=>e!=null?String(e):t||null,Hf=ie.createContext(null);Hf.displayName="NavContext";const g7="data-rr-ui-",v7="rrUi";function zs(e){return`${g7}${e}`}function b7(e){return`${v7}${e}`}const y7=["eventKey","disabled","onClick","active","as"];function x7(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 P3({key:e,href:t,active:n,disabled:r,onClick:i}){const o=m.useContext(ys),a=m.useContext(Hf),{activeKey:s}=a||{},l=oc(e,t),c=n==null&&e!=null?oc(s)===l:n;return[{onClick:En(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[zs("dropdown-item")]:""},{isActive:c}]}const L3=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=o0}=e,s=x7(e,y7);const[l]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});L3.displayName="DropdownItem";const F3=m.createContext(Bs?window:void 0);F3.Provider;function Vf(){return m.useContext(F3)}function Ky(){const e=v3(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Zc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${zs("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=Vf(),[c,u]=z8(t,e,r),[d,f]=Ky(),h=d.current,[p,g]=Ky(),v=p.current,x=d3(c),_=m.useRef(null),w=m.useRef(!1),C=m.useContext(ys),b=m.useCallback((S,E,A=E==null?void 0:E.type)=>{u(S,{originalEvent:E,source:A})},[u]),$=En((S,E)=>{n==null||n(S,E),b(!1,E,"select"),E.isPropagationStopped()||C==null||C(S,E)}),T=m.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:v,setMenu:f,setToggle:g}),[b,a,c,h,v,f,g]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=En(()=>{v&&v.focus&&v.focus()}),O=En(()=>{const S=_.current;let E=o;if(E==null&&(E=d.current&&N3(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(S))return;const A=wi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():w.current&&(w.current=!1,k())},[c,w,k,O]),m.useEffect(()=>{_.current=null});const j=(S,E)=>{if(!d.current)return null;const A=wi(d.current,i);let D=A.indexOf(S)+E;return D=Math.max(0,Math.min(D,A.length)),A[D]};return $8(m.useCallback(()=>l.document,[l]),"keydown",S=>{var E,A;const{key:D}=S,R=S.target,M=(E=d.current)==null?void 0:E.contains(R),I=(A=p.current)==null?void 0:A.contains(R);if(/input|textarea/i.test(R.tagName)&&(D===" "||D!=="Escape"&&M||D==="Escape"&&R.type==="search")||!M&&!I||D==="Tab"&&(!d.current||!c))return;_.current=S.type;const U={originalEvent:S,source:S.type};switch(D){case"ArrowUp":{const P=j(R,-1);P&&P.focus&&P.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,U);else{const P=j(R,1);P&&P.focus&&P.focus()}return;case"Tab":t0(R.ownerDocument,"keyup",P=>{var z;(P.key==="Tab"&&!P.target||!((z=d.current)!=null&&z.contains(P.target)))&&u(!1,U)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,U);break}}),y.jsx(ys.Provider,{value:$,children:y.jsx(Wf.Provider,{value:T,children:s})})}Zc.displayName="Dropdown";Zc.Menu=R3;Zc.Toggle=I3;Zc.Item=L3;const g0=ie.createContext({});g0.displayName="DropdownContext";const B3=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=ft(t,"dropdown-divider"),y.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));B3.displayName="DropdownDivider";const z3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=ft(t,"dropdown-header"),y.jsx(n,{ref:o,className:ue(e,t),role:r,...i})));z3.displayName="DropdownHeader";const W3=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=a0,...s},l)=>{const c=ft(e,"dropdown-item"),[u,d]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:ue(t,c,d.isActive&&"active",r&&"disabled")})});W3.displayName="DropdownItem";const U3=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=ft(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:ue(e,t),...r})));U3.displayName="DropdownItemText";const w7=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_7=typeof document<"u",v0=_7||w7?m.useLayoutEffect:m.useEffect,qf=ie.createContext(null);qf.displayName="InputGroupContext";const H3=ie.createContext(null);H3.displayName="NavbarContext";function V3(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?xy(!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`):xy(!1))},[t]);return wa(n,e)}function q3(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 Y3=ie.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=m.useContext(H3),p=ft(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=m.useContext(g0);n=n||g;const _=m.useContext(qf),w=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&_a(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const E=S[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const C=q3(f,v,x),[b,{hasShown:$,popper:T,show:k,toggle:O}]=A3({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=wa(V3(d,"DropdownMenu"),b.ref),v0(()=>{k&&(T==null||T.update())},[k]),!$&&!a&&!_)return null;typeof s!="string"&&(b.show=k,b.close=()=>O==null?void 0:O(!1),b.align=n);let j=u.style;return T!=null&&T.placement&&(j={...u.style,...b.style},u["x-placement"]=T.placement),y.jsx(s,{...u,...b,style:j,...(w.length||h)&&{"data-bs-popper":"static"},className:ue(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});Y3.displayName="DropdownMenu";const G3=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=s0,...o},a)=>{const s=ft(e,"dropdown-toggle"),l=m.useContext(Wf);r!==void 0&&(o.bsPrefix=r);const[c]=D3();return c.ref=wa(c.ref,V3(a,"DropdownToggle")),y.jsx(i,{className:ue(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});G3.displayName="DropdownToggle";const K3=ie.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}=Jv(e,{show:"onToggle"}),p=m.useContext(qf),g=ft(n,"dropdown"),v=Bf(),x=T=>f===!1?T==="click":f==="inside"?T!=="rootClose":f==="outside"?T!=="select":!0,_=fo((T,k)=>{var O;!((O=k.originalEvent)==null||(O=O.target)==null)&&O.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(T,k)))}),C=q3(a==="end",r,v),b=m.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),$={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(g0.Provider,{value:b,children:y.jsx(Zc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:ue(o,i&&"show",$[r])})})})});K3.displayName="Dropdown";const xs=Object.assign(K3,{Toggle:G3,Menu:Y3,Item:W3,ItemText:U3,Divider:B3,Header:z3}),C7={type:xe.string,tooltip:xe.bool,as:xe.elementType},Yf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:ue(t,`${n}-${r?"tooltip":"feedback"}`)}));Yf.displayName="Feedback";Yf.propTypes=C7;const ji=ie.createContext({}),Gf=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=m.useContext(ji);return t=ft(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:ue(n,t,i&&"is-valid",o&&"is-invalid")})});Gf.displayName="FormCheckInput";const Dd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=m.useContext(ji);return e=ft(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:ue(t,e)})});Dd.displayName="FormCheckLabel";const Z3=ie.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:g,children:v,as:x="input",..._},w)=>{t=ft(t,"form-check"),n=ft(n,"form-switch");const{controlId:C}=m.useContext(ji),b=m.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&g!=null&&g!==!1||F8(v,Dd),T=y.jsx(Gf,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(ji.Provider,{value:b,children:y.jsx("div",{style:f,className:ue(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[T,$&&y.jsx(Dd,{title:h,children:g}),c&&y.jsx(Yf,{type:u,tooltip:l,children:c})]})})})});Z3.displayName="FormCheck";const Id=Object.assign(Z3,{Input:Gf,Label:Dd}),X3=ie.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}=m.useContext(ji);return e=ft(e,"form-control"),process.env.NODE_ENV!=="production"&&_a(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:ue(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});X3.displayName="FormControl";const Q3=Object.assign(X3,{Feedback:Yf}),J3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"form-floating"),y.jsx(n,{ref:i,className:ue(e,t),...r})));J3.displayName="FormFloating";const b0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(ji.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});b0.displayName="FormGroup";const eC=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=m.useContext(ji);t=ft(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ue(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&_a(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(l0,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});eC.displayName="FormLabel";const tC=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=m.useContext(ji);return e=ft(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:ue(t,e),id:n||o})});tC.displayName="FormRange";const y0=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=m.useContext(ji);return e=ft(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:ue(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});y0.displayName="FormSelect";const nC=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=ft(e,"form-text"),y.jsx(n,{...i,ref:o,className:ue(t,e,r&&"text-muted")})));nC.displayName="FormText";const rC=ie.forwardRef((e,t)=>y.jsx(Id,{...e,ref:t,type:"switch"}));rC.displayName="Switch";const $7=Object.assign(rC,{Input:Id.Input,Label:Id.Label}),x0=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=ft(e,"form-floating"),y.jsxs(b0,{ref:a,className:ue(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));x0.displayName="FloatingLabel";const S7={_ref:xe.any,validated:xe.bool,as:xe.elementType},w0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:ue(e,t&&"was-validated")}));w0.displayName="Form";w0.propTypes=S7;const si=Object.assign(w0,{Group:b0,Control:Q3,Floating:J3,Check:Id,Switch:$7,Label:eC,Text:nC,Range:tC,Select:y0,FloatingLabel:x0}),Zy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function T7(e,t){const n=Zy(e),r=Zy(t);return i=>{n&&n(i),r&&r(i)}}function Xc(e,t){return m.useMemo(()=>T7(e,t),[e,t])}const iC=ie.createContext(null),E7=["as","active","eventKey"];function k7(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 oC({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=m.useContext(ys),s=m.useContext(Hf),l=m.useContext(iC);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[zs("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=En(d=>{o||(t==null||t(d),e!=null&&a&&!d.isPropagationStopped()&&a(e,d))}),[u,{isActive:c}]}const aC=ie.forwardRef((e,t)=>{let{as:n=o0,active:r,eventKey:i}=e,o=k7(e,E7);const[a,s]=oC(Object.assign({key:oc(i,o.href),active:r},o));return a[zs("active")]=s.isActive,y.jsx(n,Object.assign({},o,a,{ref:t}))});aC.displayName="NavItem";const O7=["as","onSelect","activeKey","role","onKeyDown"];function M7(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 Xy=()=>{},Qy=zs("event-key"),sC=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=M7(e,O7);const l=v3(),c=m.useRef(!1),u=m.useContext(ys),d=m.useContext(iC);let f,h;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const p=m.useRef(null),g=w=>{const C=p.current;if(!C)return null;const b=wi(C,`[${Qy}]:not([aria-disabled=true])`),$=C.querySelector("[aria-selected=true]");if(!$||$!==document.activeElement)return null;const T=b.indexOf($);if(T===-1)return null;let k=T+w;return k>=b.length&&(k=0),k<0&&(k=b.length-1),b[k]},v=(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=g(-1);break;case"ArrowRight":case"ArrowDown":C=g(1);break;default:return}C&&(w.preventDefault(),v(C.dataset[b7("EventKey")]||null,w),c.current=!0,l())};m.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${Qy}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=Xc(t,p);return y.jsx(ys.Provider,{value:v,children:y.jsx(Hf.Provider,{value:{role:o,activeKey:oc(i),getControlledId:f||Xy,getControllerId:h||Xy},children:y.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:o}))})})});sC.displayName="Nav";const A7=Object.assign(sC,{Item:aC}),Kf=ie.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...l},c)=>{e=ft(e,"list-group-item");const[u,d]=oC({key:oc(r,l.href),active:t,...l}),f=fo(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"&&_a(s||!(!a&&l.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:c,...l,...u,onClick:f,className:ue(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Kf.displayName="ListGroupItem";const lC=ie.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...l}=Jv(e,{activeKey:"onSelect"}),c=ft(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&_a(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(A7,{ref:t,...l,as:s,className:ue(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,a&&`${c}-numbered`)})});lC.displayName="ListGroup";const cC=Object.assign(lC,{Item:Kf});var zu;function Jy(e){if((!zu&&zu!==0||e)&&Bs){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),zu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return zu}function R7(){return m.useState(null)}function nm(e){e===void 0&&(e=Ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function j7(e){const t=m.useRef(e);return t.current=e,t}function N7(e){const t=j7(e);m.useEffect(()=>()=>t.current(),[])}function D7(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ex=zs("modal-open");class _0{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return D7(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(co(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(ex,""),co(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ex),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 rm=(e,t)=>Bs?e==null?(t||Ls()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Og(e,t){const n=Vf(),[r,i]=m.useState(()=>rm(e,n==null?void 0:n.document));if(!r){const o=rm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=rm(e);o!==r&&i(o)},[e,r]),r}function I7({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=m.useRef(null),a=m.useRef(t),s=En(n);m.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=Xc(o,Fs(e)),c=m.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const P7=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function L7(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 F7(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=L7(e,P7);const u=m.useRef(null),d=Xc(u,Fs(l)),f=C=>b=>{C&&u.current&&C(u.current,b)},h=m.useCallback(f(t),[t]),p=m.useCallback(f(n),[n]),g=m.useCallback(f(r),[r]),v=m.useCallback(f(i),[i]),x=m.useCallback(f(o),[o]),_=m.useCallback(f(a),[a]),w=m.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:g},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const B7=["component"];function z7(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 W7=ie.forwardRef((e,t)=>{let{component:n}=e,r=z7(e,B7);const i=F7(r);return y.jsx(n,Object.assign({ref:t},i))});function U7({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=En(t);return Ny(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Ny(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function H7({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=U7({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=Xc(s,Fs(e));return o&&!t?null:m.cloneElement(e,{ref:l})}function Mg(e,t,n){return e?y.jsx(W7,Object.assign({},n,{component:e})):t?y.jsx(H7,Object.assign({},n,{transition:t})):y.jsx(I7,Object.assign({},n))}const V7=["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 q7(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 im;function Y7(e){return im||(im=new _0({ownerDocument:e==null?void 0:e.document})),im}function G7(e){const t=Vf(),n=e||Y7(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const uC=m.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:g=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>y.jsx("div",Object.assign({},G)),manager:b,container:$,onShow:T,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:E,onEntering:A,onEntered:D}=e,R=q7(e,V7);const M=Vf(),I=Og($),F=G7(b),U=u3(),P=d3(n),[z,V]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>F,[F]),Bs&&!P&&n&&(H.current=nm(M==null?void 0:M.document)),n&&z&&V(!1);const Y=En(()=>{if(F.add(),B.current=$i(document,"keydown",W),L.current=$i(document,"focus",()=>setTimeout(J),!0),T&&T(),g){var G,se;const te=nm((G=(se=F.dialog)==null?void 0:se.ownerDocument)!=null?G:M==null?void 0:M.document);F.dialog&&te&&!ic(F.dialog,te)&&(H.current=te,F.dialog.focus())}}),Z=En(()=>{if(F.remove(),B.current==null||B.current(),L.current==null||L.current(),x){var G;(G=H.current)==null||G.focus==null||G.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{z&&Z()},[z,Z]),N7(()=>{Z()});const J=En(()=>{if(!v||!U()||!F.isTopModal())return;const G=nm(M==null?void 0:M.document);F.dialog&&G&&!ic(F.dialog,G)&&F.dialog.focus()}),ee=En(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&k())}),W=En(G=>{l&&i3(G)&&F.isTopModal()&&(u==null||u(G),G.defaultPrevented||k())}),L=m.useRef(),B=m.useRef(),q=(...G)=>{V(!0),j==null||j(...G)};if(!I)return null;const N=Object.assign({role:r,ref:F.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let Q=w?w(N):y.jsx("div",Object.assign({},N,{children:ie.cloneElement(a,{role:"document"})}));Q=Mg(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:O,onExiting:S,onExited:q,onEnter:E,onEntering:A,onEntered:D,children:Q});let X=null;return s&&(X=C({ref:F.setBackdropRef,onClick:ee}),X=Mg(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),y.jsx(y.Fragment,{children:mn.createPortal(y.jsxs(y.Fragment,{children:[X,Q]}),I)})});uC.displayName="Modal";const dC=Object.assign(uC,{Manager:_0});function Ag(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function K7(e,t){e.classList?e.classList.add(t):Ag(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function tx(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Z7(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=tx(e.className,t):e.setAttribute("class",tx(e.className&&e.className.baseVal||"",t))}const La={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class fC extends _0{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,co(n,{[t]:`${parseFloat(co(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],co(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(K7(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wi(n,La.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),wi(n,La.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),wi(n,La.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Z7(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";wi(n,La.FIXED_CONTENT).forEach(o=>this.restore(r,o)),wi(n,La.STICKY_CONTENT).forEach(o=>this.restore(i,o)),wi(n,La.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let om;function hC(e){return om||(om=new fC(e)),om}const pC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"modal-body"),y.jsx(n,{ref:i,className:ue(e,t),...r})));pC.displayName="ModalBody";const C0=ie.createContext({onHide(){}}),$0=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=ft(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:ue(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:ue(`${e}-content`,n),children:a})})});$0.displayName="ModalDialog";const mC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"modal-footer"),y.jsx(n,{ref:i,className:ue(e,t),...r})));mC.displayName="ModalFooter";const S0=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(C0),l=fo(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(zf,{"aria-label":e,variant:t,onClick:l})]})});S0.displayName="AbstractModalHeader";const gC=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=ft(e,"modal-header"),y.jsx(S0,{ref:o,...i,className:ue(t,e),closeLabel:n,closeButton:r})));gC.displayName="ModalHeader";const X7=r0("h4"),vC=ie.forwardRef(({className:e,bsPrefix:t,as:n=X7,...r},i)=>(t=ft(t,"modal-title"),y.jsx(n,{ref:i,className:ue(e,t),...r})));vC.displayName="ModalTitle";function Q7(e){return y.jsx(ho,{...e,timeout:null})}function J7(e){return y.jsx(ho,{...e,timeout:null})}const bC=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=$0,"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:g,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:$,onEntered:T,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:E,backdropClassName:A,manager:D,...R},M)=>{const[I,F]=m.useState({}),[U,P]=m.useState(!1),z=m.useRef(!1),V=m.useRef(!1),H=m.useRef(null),[Y,Z]=R7(),J=wa(M,Z),ee=fo(x),W=Bf();e=ft(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function B(){return D||hC({isRTL:W})}function q(le){if(!Bs)return;const we=B().getScrollbarWidth()>0,Be=le.scrollHeight>Ls(le).documentElement.clientHeight;F({paddingRight:we&&!Be?Jy():void 0,paddingLeft:!we&&Be?Jy():void 0})}const N=fo(()=>{Y&&q(Y.dialog)});p3(()=>{$g(window,"resize",N),H.current==null||H.current()});const Q=()=>{z.current=!0},X=le=>{z.current&&Y&&le.target===Y.dialog&&(V.current=!0),z.current=!1},G=()=>{P(!0),H.current=o3(Y.dialog,()=>{P(!1)})},se=le=>{le.target===le.currentTarget&&G()},te=le=>{if(h==="static"){se(le);return}if(V.current||le.target!==le.currentTarget){V.current=!1;return}x==null||x()},re=le=>{p?g==null||g(le):(le.preventDefault(),h==="static"&&G())},ae=(le,we)=>{le&&q(le),j==null||j(le,we)},ce=le=>{H.current==null||H.current(),k==null||k(le)},ve=(le,we)=>{S==null||S(le,we),t0(window,"resize",N)},ge=le=>{le&&(le.style.display=""),E==null||E(le),$g(window,"resize",N)},be=m.useCallback(le=>y.jsx("div",{...le,className:ue(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Te={...n,...I};Te.display="block";const de=le=>y.jsx("div",{role:"dialog",...le,style:Te,className:ue(t,e,U&&`${e}-static`,!f&&"show"),onClick:h?te:void 0,onMouseUp:X,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...R,onMouseDown:Q,className:r,contentClassName:i,children:o})});return y.jsx(C0.Provider,{value:L,children:y.jsx(dC,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:b,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:ae,onEntering:ve,onEntered:T,onExit:ce,onExiting:O,onExited:ge,manager:B(),transition:f?Q7:void 0,backdropTransition:f?J7:void 0,renderBackdrop:be,renderDialog:de})})});bC.displayName="Modal";const Xn=Object.assign(bC,{Body:pC,Header:gC,Title:vC,Footer:mC,Dialog:$0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),eR=()=>{};function tR(e,t,{disabled:n,clickTrigger:r}={}){const i=t||eR;O3(e,i,{disabled:n,clickTrigger:r});const o=En(a=>{i3(a)&&i(a)});m.useEffect(()=>{if(n||e==null)return;const a=Ls(gd(e));let s=(a.defaultView||window).event;const l=$i(a,"keyup",c=>{if(c===s){s=void 0;return}o(c)});return()=>{l()}},[e,n,o])}const yC=ie.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:l}=e,[c,u]=Sg(),[d,f]=Sg(),h=Xc(u,t),p=Og(e.container),g=Og(e.target),[v,x]=m.useState(!e.show),_=E3(g,c,M3({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&v&&x(!1);const w=(...S)=>{x(!0),e.onExited&&e.onExited(...S)},C=e.show||!v;if(tR(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:b,onExiting:$,onEnter:T,onEntering:k,onEntered:O}=e;let j=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 j=Mg(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:b,onExiting:$,onExited:w,onEnter:T,onEntering:k,onEntered:O}),p?mn.createPortal(j,p):null});yC.displayName="Overlay";const xC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"popover-header"),y.jsx(n,{ref:i,className:ue(e,t),...r})));xC.displayName="PopoverHeader";const T0=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"popover-body"),y.jsx(n,{ref:i,className:ue(e,t),...r})));T0.displayName="PopoverBody";function wC(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function _C(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const CC=ie.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=ft(e,"popover"),h=Bf(),[p]=(t==null?void 0:t.split("-"))||[],g=wC(p,h);let v=r;return c&&!s&&(v={...r,..._C(l==null?void 0:l.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":p,className:ue(n,f,p&&`bs-popover-${g}`),...u,children:[y.jsx("div",{className:"popover-arrow",...a}),o?y.jsx(T0,{children:i}):i]})});CC.displayName="Popover";const vd=Object.assign(CC,{Header:xC,Body:T0,POPPER_OFFSET:[0,8]}),$C=ie.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{e=ft(e,"tooltip");const d=Bf(),[f]=(t==null?void 0:t.split("-"))||[],h=wC(f,d);let p=r;return l&&!a&&(p={...r,..._C(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:ue(n,e,`bs-tooltip-${h}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...o}),y.jsx("div",{className:`${e}-inner`,children:i})]})});$C.displayName="Tooltip";const SC=Object.assign($C,{TOOLTIP_OFFSET:[0,6]});function nR(e){const t=m.useRef(null),n=ft(void 0,"popover"),r=ft(void 0,"tooltip"),i=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Ag(t.current,n))return vd.POPPER_OFFSET;if(Ag(t.current,r))return SC.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function rR(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Rd(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Rd(i)))}const TC=ie.forwardRef(({children:e,transition:t=ho,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const l=m.useRef({}),[c,u]=m.useState(null),[d,f]=nR(a.offset),h=wa(s,d),p=t===!0?ho:t||void 0,g=fo(v=>{u(v),n==null||n.onFirstUpdate==null||n.onFirstUpdate(v)});return v0(()=>{c&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,a.target]),m.useEffect(()=>{o||u(null)},[o]),y.jsx(yC,{...a,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:g},transition:p,rootClose:r,placement:i,show:o,children:(v,{arrowProps:x,popper:_,show:w})=>{var C;rR(v,x);const b=_==null?void 0:_.placement,$=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}),T=!!c;return typeof e=="function"?e({...v,placement:b,show:w,...!t&&w&&{className:"show"},popper:$,arrowProps:x,hasDoneInitialMeasure:T}):ie.cloneElement(e,{...v,placement:b,arrowProps:x,popper:$,hasDoneInitialMeasure:T,className:ue(e.props.className,!t&&w&&"show"),style:{...e.props.style,...v.style}})}})});TC.displayName="Overlay";function iR(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function nx(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!ic(i,o)&&e(...t)}xe.oneOf(["click","hover","focus"]);const EC=({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=m.useRef(null),f=wa(d,Fs(n)),h=L8(),p=m.useRef(""),[g,v]=Q4(i,o,a),x=iR(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?ie.Children.only(n).props:{},b=R=>{f(Rd(R))},$=m.useCallback(()=>{if(h.clear(),p.current="show",!x.show){v(!0);return}h.set(()=>{p.current==="show"&&v(!0)},x.show)},[x.show,v,h]),T=m.useCallback(()=>{if(h.clear(),p.current="hide",!x.hide){v(!1);return}h.set(()=>{p.current==="hide"&&v(!1)},x.hide)},[x.hide,v,h]),k=m.useCallback((...R)=>{$(),_==null||_(...R)},[$,_]),O=m.useCallback((...R)=>{T(),w==null||w(...R)},[T,w]),j=m.useCallback((...R)=>{v(!g),C==null||C(...R)},[C,v,g]),S=m.useCallback((...R)=>{nx($,R,"fromElement")},[$]),E=m.useCallback((...R)=>{nx(T,R,"toElement")},[T]),A=e==null?[]:[].concat(e),D={ref:b};return A.indexOf("click")!==-1&&(D.onClick=j),A.indexOf("focus")!==-1&&(D.onFocus=k,D.onBlur=O),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_a(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.'),D.onMouseOver=S,D.onMouseOut=E),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(D):m.cloneElement(n,D),y.jsx(TC,{...u,show:g,onHide:T,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},E0=ie.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=ft(e,"spinner");const l=`${e}-${n}`;return y.jsx(i,{ref:s,...a,className:ue(o,l,r&&`${l}-${r}`,t&&`text-${t}`)})});E0.displayName="Spinner";var kC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},rx=m.createContext&&m.createContext(kC),oR=["attr","size","title"];function aR(e,t){if(e==null)return{};var n=sR(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 sR(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 Pd(){return Pd=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},Pd.apply(this,arguments)}function ix(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ix(Object(n),!0).forEach(function(r){lR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lR(e,t,n){return t=cR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cR(e){var t=uR(e,"string");return typeof t=="symbol"?t:t+""}function uR(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 OC(e){return e&&e.map((t,n)=>m.createElement(t.tag,Ld({key:n},t.attr),OC(t.child)))}function dt(e){return t=>m.createElement(dR,Pd({attr:Ld({},e.attr)},t),OC(e.child))}function dR(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=aR(e,oR),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),m.createElement("svg",Pd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Ld(Ld({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&m.createElement("title",null,o),e.children)};return rx!==void 0?m.createElement(rx.Consumer,null,n=>t(n)):t(kC)}function fR(e){return dt({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 Qc(e){return dt({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 hR(e){return dt({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 pR(e){return dt({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 mR(e){return dt({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 gR(e){return dt({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 vR(e){return dt({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 bR(e){return dt({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 MC(e){return dt({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 yR(e){return dt({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 xR(e){return dt({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 wR(e){return dt({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 _R(e){return dt({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 CR(e){return dt({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 $R(e){return dt({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 SR(e){return dt({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 TR(e){return dt({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 ER(e){return dt({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 kR(e){return dt({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 OR(e){return dt({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 MR(e){return dt({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 AR(e){return dt({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 RR(e){return dt({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 jR(e){return dt({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 AC(e){return dt({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 NR(e){return dt({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 RC(e){return dt({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 DR(e){return dt({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 IR(e){return dt({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 PR(e){return dt({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 ln=m.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),jC=m.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),NC=m.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),DC=()=>{const e=Re.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:o,setOptions:a}=m.useContext(NC);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 LR={data:""},FR=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||LR},BR=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,zR=/\/\*[^]*?\*\/| +/g,ox=/\n+/g,no=(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"?no(a,o):o+"{"+no(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=no(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+=no.p?no.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},pi={},IC=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+IC(e[n]);return t}return e},WR=(e,t,n,r,i)=>{let o=IC(e),a=pi[o]||(pi[o]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(o));if(!pi[a]){let l=o!==e?e:(c=>{let u,d,f=[{}];for(;u=BR.exec(c.replace(zR,""));)u[4]?f.shift():u[3]?(d=u[3].replace(ox," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(ox," ").trim();return f[0]})(e);pi[a]=no(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&pi.g?pi.g:null;return n&&(pi.g=pi[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)})(pi[a],t,r,s),a},UR=(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?"":no(s,""):s===!1?"":s}return r+i+(a??"")},"");function Zf(e){let t=this||{},n=e.call?e(t.p):e;return WR(n.unshift?n.raw?UR(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,FR(t.target),t.g,t.o,t.k)}let PC,Rg,jg;Zf.bind({g:1});let Ni=Zf.bind({k:1});function HR(e,t,n,r){no.p=t,PC=e,Rg=n,jg=r}function So(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:Rg&&Rg()},s),n.o=/ *go\d+/.test(l),s.className=Zf.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),jg&&c[0]&&jg(s),PC(c,s)}return i}}var VR=e=>typeof e=="function",Fd=(e,t)=>VR(e)?e(t):e,qR=(()=>{let e=0;return()=>(++e).toString()})(),LC=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),YR=20,k0="default",FC=(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 FC(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}))}}},bd=[],BC={toasts:[],pausedAt:void 0,settings:{toastLimit:YR}},qr={},zC=(e,t=k0)=>{qr[t]=FC(qr[t]||BC,e),bd.forEach(([n,r])=>{n===t&&r(qr[t])})},WC=e=>Object.keys(qr).forEach(t=>zC(e,t)),GR=e=>Object.keys(qr).find(t=>qr[t].toasts.some(n=>n.id===e)),Xf=(e=k0)=>t=>{zC(t,e)},KR={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ZR=(e={},t=k0)=>{let[n,r]=m.useState(qr[t]||BC),i=m.useRef(qr[t]);m.useEffect(()=>(i.current!==qr[t]&&r(qr[t]),bd.push([t,r]),()=>{let a=bd.findIndex(([s])=>s===t);a>-1&&bd.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)||KR[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},XR=(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)||qR()}),Jc=e=>(t,n)=>{let r=XR(t,e,n);return Xf(r.toasterId||GR(r.id))({type:2,toast:r}),r.id},yn=(e,t)=>Jc("blank")(e,t);yn.error=Jc("error");yn.success=Jc("success");yn.loading=Jc("loading");yn.custom=Jc("custom");yn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Xf(t)(n):WC(n)};yn.dismissAll=e=>yn.dismiss(void 0,e);yn.remove=(e,t)=>{let n={type:4,toastId:e};t?Xf(t)(n):WC(n)};yn.removeAll=e=>yn.remove(void 0,e);yn.promise=(e,t,n)=>{let r=yn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Fd(t.success,i):void 0;return o?yn.success(o,{id:r,...n,...n==null?void 0:n.success}):yn.dismiss(r),i}).catch(i=>{let o=t.error?Fd(t.error,i):void 0;o?yn.error(o,{id:r,...n,...n==null?void 0:n.error}):yn.dismiss(r)}),e};var QR=1e3,JR=(e,t="default")=>{let{toasts:n,pausedAt:r}=ZR(e,t),i=m.useRef(new Map).current,o=m.useCallback((d,f=QR)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),a({type:4,toastId:d})},f);i.set(d,h)},[]);m.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&&yn.dismiss(h.id);return}return setTimeout(()=>yn.dismiss(h.id,t),p)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r,t]);let a=m.useCallback(Xf(t),[t]),s=m.useCallback(()=>{a({type:5,time:Date.now()})},[a]),l=m.useCallback((d,f)=>{a({type:1,toast:{id:d,height:f}})},[a]),c=m.useCallback(()=>{r&&a({type:6,time:Date.now()})},[r,a]),u=m.useCallback((d,f)=>{let{reverseOrder:h=!1,gutter:p=8,defaultPosition:g}=f||{},v=n.filter(w=>(w.position||g)===(d.position||g)&&w.height),x=v.findIndex(w=>w.id===d.id),_=v.filter((w,C)=>C<x&&w.visible).length;return v.filter(w=>w.visible).slice(...h?[_+1]:[0,_]).reduce((w,C)=>w+(C.height||0)+p,0)},[n]);return m.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}}},e9=Ni`
|
|
45
|
-
from {
|
|
46
|
-
transform: scale(0) rotate(45deg);
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
to {
|
|
50
|
-
transform: scale(1) rotate(45deg);
|
|
51
|
-
opacity: 1;
|
|
52
|
-
}`,t9=Ni`
|
|
53
|
-
from {
|
|
54
|
-
transform: scale(0);
|
|
55
|
-
opacity: 0;
|
|
56
|
-
}
|
|
57
|
-
to {
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
opacity: 1;
|
|
60
|
-
}`,n9=Ni`
|
|
61
|
-
from {
|
|
62
|
-
transform: scale(0) rotate(90deg);
|
|
63
|
-
opacity: 0;
|
|
64
|
-
}
|
|
65
|
-
to {
|
|
66
|
-
transform: scale(1) rotate(90deg);
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}`,r9=So("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: ${e9} 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: ${t9} 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: ${n9} 0.15s ease-out forwards;
|
|
98
|
-
animation-delay: 180ms;
|
|
99
|
-
transform: rotate(90deg);
|
|
100
|
-
}
|
|
101
|
-
`,i9=Ni`
|
|
102
|
-
from {
|
|
103
|
-
transform: rotate(0deg);
|
|
104
|
-
}
|
|
105
|
-
to {
|
|
106
|
-
transform: rotate(360deg);
|
|
107
|
-
}
|
|
108
|
-
`,o9=So("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: ${i9} 1s linear infinite;
|
|
117
|
-
`,a9=Ni`
|
|
118
|
-
from {
|
|
119
|
-
transform: scale(0) rotate(45deg);
|
|
120
|
-
opacity: 0;
|
|
121
|
-
}
|
|
122
|
-
to {
|
|
123
|
-
transform: scale(1) rotate(45deg);
|
|
124
|
-
opacity: 1;
|
|
125
|
-
}`,s9=Ni`
|
|
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
|
-
}`,l9=So("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: ${a9} 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: ${s9} 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
|
-
`,c9=So("div")`
|
|
167
|
-
position: absolute;
|
|
168
|
-
`,u9=So("div")`
|
|
169
|
-
position: relative;
|
|
170
|
-
display: flex;
|
|
171
|
-
justify-content: center;
|
|
172
|
-
align-items: center;
|
|
173
|
-
min-width: 20px;
|
|
174
|
-
min-height: 20px;
|
|
175
|
-
`,d9=Ni`
|
|
176
|
-
from {
|
|
177
|
-
transform: scale(0.6);
|
|
178
|
-
opacity: 0.4;
|
|
179
|
-
}
|
|
180
|
-
to {
|
|
181
|
-
transform: scale(1);
|
|
182
|
-
opacity: 1;
|
|
183
|
-
}`,f9=So("div")`
|
|
184
|
-
position: relative;
|
|
185
|
-
transform: scale(0.6);
|
|
186
|
-
opacity: 0.4;
|
|
187
|
-
min-width: 20px;
|
|
188
|
-
animation: ${d9} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
189
|
-
forwards;
|
|
190
|
-
`,h9=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(f9,null,t):t:n==="blank"?null:ie.createElement(u9,null,ie.createElement(o9,{...r}),n!=="loading"&&ie.createElement(c9,null,n==="error"?ie.createElement(r9,{...r}):ie.createElement(l9,{...r})))},p9=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
|
-
`,m9=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
|
-
`,g9="0%{opacity:0;} 100%{opacity:1;}",v9="0%{opacity:1;} 100%{opacity:0;}",b9=So("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
|
-
`,y9=So("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
|
-
`,x9=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=LC()?[g9,v9]:[p9(n),m9(n)];return{animation:t?`${Ni(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ni(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},w9=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?x9(e.position||t||"top-center",e.visible):{opacity:0},o=ie.createElement(h9,{toast:e}),a=ie.createElement(y9,{...e.ariaProps},Fd(e.message,e));return ie.createElement(b9,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):ie.createElement(ie.Fragment,null,o,a))});HR(ie.createElement);var _9=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=ie.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 ie.createElement("div",{ref:o,className:t,style:n},i)},C9=(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:LC()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},$9=Zf`
|
|
216
|
-
z-index: 9999;
|
|
217
|
-
> * {
|
|
218
|
-
pointer-events: auto;
|
|
219
|
-
}
|
|
220
|
-
`,Wu=16,S9=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=JR(n,o);return ie.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:Wu,left:Wu,right:Wu,bottom:Wu,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=C9(d,f);return ie.createElement(_9,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?$9:"",style:h},u.type==="custom"?Fd(u.message,u):i?i(u):ie.createElement(w9,{toast:u,position:d}))}))},Fa=yn;const Qf=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var Ng;(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"})(Ng||(Ng={}));const UC=Ng;var Dg;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(Dg||(Dg={}));const T9=Dg,HC=m.createContext({user:null,userLoginState:{state:UC.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Jf=m.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null}),VC=m.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Bd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),qC=e=>{Bd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Bd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:qC(n)})},YC=e=>Object.values(e).every(t=>t===null),E9=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&YC(r)?t[n]=null:t[n]=r}),t},eh=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})):[],GC=async e=>{if(e.type==null||!e.type.includes("json"))return[];try{const t=await e.text(),n=JSON.parse(t);return eh(n)}catch(t){return console.error("Error parsing blob response:",t),[]}},k9=(e,t)=>{eh(t.response.data).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Bd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},KC=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},ZC=e=>{const t=Re.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 g;t[14]!==s||t[15]!==c?(g=ue("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=g):g=t[16];let v;t[17]!==o?(v=o&&y.jsx(vd.Header,{children:typeof o=="string"?y.jsx(zn,{variant:"h6",className:"text-primary",children:o}):o}),t[17]=o,t[18]=v):v=t[18];let x;t[19]!==r?(x=y.jsx(vd.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==g||t[22]!==v||t[23]!==x?(_=y.jsxs(vd,{className:g,onClick:O9,children:[v,x]}),t[21]=g,t[22]=v,t[23]=x,t[24]=_):_=t[24];const w=l.controlled?l.isOpen:void 0;let C;t[25]!==l?(C=l.controlled?$=>l.setIsOpen($):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(EC,{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 O9(e){return e.stopPropagation()}const M9="_h1_14r4v_1",A9="_h3_14r4v_8",R9="_h6_14r4v_15",j9="_subtitle_14r4v_22",N9="_body_14r4v_29",D9="_body2_14r4v_36",I9="_caption_14r4v_43",P9="_form-label_14r4v_50",Gi={h1:M9,h3:A9,h6:R9,subtitle:j9,body:N9,body2:D9,caption:I9,formLabel:P9},L9=e=>{const t=Re.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let o;t[0]!==r?(o=ue("luminus-text-primary luminus-h1",Gi.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=ue("luminus-text luminus-h3",Gi.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=ue("luminus-text luminus-h6",Gi.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=ue("luminus-text luminus-subtitle",Gi.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=ue("luminus-text luminus-body",Gi.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=ue("luminus-text luminus-body2",Gi.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=ue("luminus-text-muted luminus-caption",Gi.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=ue("luminus-text luminus-form-label",Gi.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}}},zn=e=>{const t=Re.c(4),{variant:n,className:r,children:i}=e;let o;return t[0]!==i||t[1]!==r||t[2]!==n?(o=y.jsx(L9,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=o):o=t[3],o},O0=e=>{const t=Re.c(7),{text:n,placement:r,children:i,delay:o}=e;let a;t[0]!==n?(a=y.jsx(zn,{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(ZC,{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},XC=e=>e.length<300?e:e.substring(0,300)+"...",ws=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function M0(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Ig=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),F9=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function B9(e){return e==null?"":Qv(Ff(e),"dd.MM.yyyy")}function th(e){return(e==null?void 0:e.toString().split("T")[0])??""}function z9(e){return e==null?"":Qv(Ff(e),"dd.MM.yyyy HH:mm")}function W9(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const U9=(e,t)=>M0(" ",e?`${e},`:void 0,t),H9=(e,t)=>`${t}${e!=null?` (${e})`:""}`,V9=(e,t)=>`[${e??""}] ${t??""}`,QC=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),JC=e=>{const t=Ff(e);return!Number.isNaN(t.getTime())};function q9(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function Y9(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function G9(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 K9(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function Z9(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 e$(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function t$(e=new Date){return AO(e)}function X9(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),e$(t)}function Q9(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),t$(t)}function J9(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function ej(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function tj(e){return th(e.toISOString())}function n$(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=QC(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 zd(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 nj=["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"],rj=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],r$=e=>nj.includes(e.type),i$=e=>rj.includes(e.toLowerCase());function ij(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=n$(e.headers.get("Content-disposition"))??n)}const r=r$(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;zd(e.data,n,r?i:!1)}function _s(e,t=_s.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}_s.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 Pg=(e,t)=>t?e?_s(e).toLowerCase().includes(_s(t.toLowerCase())):!1:!0,o$=(e,t)=>t?e?_s(e).toLowerCase().startsWith(_s(t.toLowerCase())):!1:!0,A0=(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("*")?Pg(o,i.substring(1)):o$(o,i):Pg(o,i):!0};function a$(e,t){return function(){return e.apply(t,arguments)}}const{toString:oj}=Object.prototype,{getPrototypeOf:R0}=Object,{iterator:nh,toStringTag:s$}=Symbol,rh=(e=>t=>{const n=oj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>rh(t)===e),ih=e=>t=>typeof t===e,{isArray:Ws}=Array,Cs=ih("undefined");function eu(e){return e!==null&&!Cs(e)&&e.constructor!==null&&!Cs(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l$=Fr("ArrayBuffer");function aj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&l$(e.buffer),t}const sj=ih("string"),er=ih("function"),c$=ih("number"),tu=e=>e!==null&&typeof e=="object",lj=e=>e===!0||e===!1,yd=e=>{if(rh(e)!=="object")return!1;const t=R0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(s$ in e)&&!(nh in e)},cj=e=>{if(!tu(e)||eu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},uj=Fr("Date"),dj=Fr("File"),fj=Fr("Blob"),hj=Fr("FileList"),pj=e=>tu(e)&&er(e.pipe),mj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((t=rh(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},gj=Fr("URLSearchParams"),[vj,bj,yj,xj]=["ReadableStream","Request","Response","Headers"].map(Fr),wj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ws(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(eu(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 u$(e,t){if(eu(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 qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,d$=e=>!Cs(e)&&e!==qo;function Lg(){const{caseless:e,skipUndefined:t}=d$(this)&&this||{},n={},r=(i,o)=>{const a=e&&u$(n,o)||o;yd(n[a])&&yd(i)?n[a]=Lg(n[a],i):yd(i)?n[a]=Lg({},i):Ws(i)?n[a]=i.slice():(!t||!Cs(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&nu(arguments[i],r);return n}const _j=(e,t,n,{allOwnKeys:r}={})=>(nu(t,(i,o)=>{n&&er(i)?e[o]=a$(i,n):e[o]=i},{allOwnKeys:r}),e),Cj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$j=(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)},Sj=(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&&R0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Tj=(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},Ej=e=>{if(!e)return null;if(Ws(e))return e;let t=e.length;if(!c$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&R0(Uint8Array)),Oj=(e,t)=>{const r=(e&&e[nh]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Mj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Aj=Fr("HTMLFormElement"),Rj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ax=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jj=Fr("RegExp"),f$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nu(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Nj=e=>{f$(e,(t,n)=>{if(er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(er(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+"'")})}})},Dj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ws(e)?r(e):r(String(e).split(t)),n},Ij=()=>{},Pj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lj(e){return!!(e&&er(e.append)&&e[s$]==="FormData"&&e[nh])}const Fj=e=>{const t=new Array(10),n=(r,i)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(eu(r))return r;if(!("toJSON"in r)){t[i]=r;const o=Ws(r)?[]:{};return nu(r,(a,s)=>{const l=n(a,i+1);!Cs(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Bj=Fr("AsyncFunction"),zj=e=>e&&(tu(e)||er(e))&&er(e.then)&&er(e.catch),h$=((e,t)=>e?setImmediate:t?((n,r)=>(qo.addEventListener("message",({source:i,data:o})=>{i===qo&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),qo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er(qo.postMessage)),Wj=typeof queueMicrotask<"u"?queueMicrotask.bind(qo):typeof process<"u"&&process.nextTick||h$,Uj=e=>e!=null&&er(e[nh]),oe={isArray:Ws,isArrayBuffer:l$,isBuffer:eu,isFormData:mj,isArrayBufferView:aj,isString:sj,isNumber:c$,isBoolean:lj,isObject:tu,isPlainObject:yd,isEmptyObject:cj,isReadableStream:vj,isRequest:bj,isResponse:yj,isHeaders:xj,isUndefined:Cs,isDate:uj,isFile:dj,isBlob:fj,isRegExp:jj,isFunction:er,isStream:pj,isURLSearchParams:gj,isTypedArray:kj,isFileList:hj,forEach:nu,merge:Lg,extend:_j,trim:wj,stripBOM:Cj,inherits:$j,toFlatObject:Sj,kindOf:rh,kindOfTest:Fr,endsWith:Tj,toArray:Ej,forEachEntry:Oj,matchAll:Mj,isHTMLForm:Aj,hasOwnProperty:ax,hasOwnProp:ax,reduceDescriptors:f$,freezeMethods:Nj,toObjectSet:Dj,toCamelCase:Rj,noop:Ij,toFiniteNumber:Pj,findKey:u$,global:qo,isContextDefined:d$,isSpecCompliantForm:Lj,toJSONObject:Fj,isAsyncFn:Bj,isThenable:zj,setImmediate:h$,asap:Wj,isIterable:Uj};function it(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)}oe.inherits(it,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:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const p$=it.prototype,m$={};["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=>{m$[e]={value:e}});Object.defineProperties(it,m$);Object.defineProperty(p$,"isAxiosError",{value:!0});it.from=(e,t,n,r,i,o)=>{const a=Object.create(p$);oe.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 it.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 Hj=null;function Fg(e){return oe.isPlainObject(e)||oe.isArray(e)}function g$(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function sx(e,t,n){return e?e.concat(t).map(function(i,o){return i=g$(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Vj(e){return oe.isArray(e)&&!e.some(Fg)}const qj=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function oh(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!oe.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(oe.isDate(p))return p.toISOString();if(oe.isBoolean(p))return p.toString();if(!l&&oe.isBlob(p))throw new it("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(p)||oe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let x=p;if(p&&!v&&typeof p=="object"){if(oe.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(oe.isArray(p)&&Vj(p)||(oe.isFileList(p)||oe.endsWith(g,"[]"))&&(x=oe.toArray(p)))return g=g$(g),x.forEach(function(w,C){!(oe.isUndefined(w)||w===null)&&t.append(a===!0?sx([g],C,o):a===null?g:g+"[]",c(w))}),!1}return Fg(p)?!0:(t.append(sx(v,g,o),c(p)),!1)}const d=[],f=Object.assign(qj,{defaultVisitor:u,convertValue:c,isVisitable:Fg});function h(p,g){if(!oe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),oe.forEach(p,function(x,_){(!(oe.isUndefined(x)||x===null)&&i.call(t,x,oe.isString(_)?_.trim():_,g,f))===!0&&h(x,g?g.concat(_):[_])}),d.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function lx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function j0(e,t){this._pairs=[],e&&oh(e,this,t)}const v$=j0.prototype;v$.append=function(t,n){this._pairs.push([t,n])};v$.toString=function(t){const n=t?function(r){return t.call(this,r,lx)}:lx;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Yj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function b$(e,t,n){if(!t)return e;const r=n&&n.encode||Yj;oe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=oe.isURLSearchParams(t)?t.toString():new j0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cx{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){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const y$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gj=typeof URLSearchParams<"u"?URLSearchParams:j0,Kj=typeof FormData<"u"?FormData:null,Zj=typeof Blob<"u"?Blob:null,Xj={isBrowser:!0,classes:{URLSearchParams:Gj,FormData:Kj,Blob:Zj},protocols:["http","https","file","blob","url","data"]},N0=typeof window<"u"&&typeof document<"u",Bg=typeof navigator=="object"&&navigator||void 0,Qj=N0&&(!Bg||["ReactNative","NativeScript","NS"].indexOf(Bg.product)<0),Jj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eN=N0&&window.location.href||"http://localhost",tN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:N0,hasStandardBrowserEnv:Qj,hasStandardBrowserWebWorkerEnv:Jj,navigator:Bg,origin:eN},Symbol.toStringTag,{value:"Module"})),jn={...tN,...Xj};function nN(e,t){return oh(e,new jn.classes.URLSearchParams,{visitor:function(n,r,i,o){return jn.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function rN(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iN(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 x$(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&&oe.isArray(i)?i.length:a,l?(oe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&oe.isArray(i[a])&&(i[a]=iN(i[a])),!s)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(rN(r),i,n,0)}),n}return null}function oN(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ru={transitional:y$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=oe.isObject(t);if(o&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i?JSON.stringify(x$(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.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 nN(t,this.formSerializer).toString();if((s=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),oN(t)):t}],transformResponse:[function(t){const n=this.transitional||ru.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.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"?it.from(s,it.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:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const aN=oe.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"]),sN=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]&&aN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ux=Symbol("internals");function ml(e){return e&&String(e).trim().toLowerCase()}function xd(e){return e===!1||e==null?e:oe.isArray(e)?e.map(xd):String(e)}function lN(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 cN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function am(e,t,n,r,i){if(oe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!oe.isString(t)){if(oe.isString(r))return t.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(t)}}function uN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function dN(e,t){const n=oe.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 tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=ml(l);if(!u)throw new Error("header name must be a non-empty string");const d=oe.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=xd(s))}const a=(s,l)=>oe.forEach(s,(c,u)=>o(c,u,l));if(oe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(oe.isString(t)&&(t=t.trim())&&!cN(t))a(sN(t),n);else if(oe.isObject(t)&&oe.isIterable(t)){let s={},l,c;for(const u of t){if(!oe.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?oe.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=ml(t),t){const r=oe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return lN(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ml(t),t){const r=oe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||am(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=ml(a),a){const s=oe.findKey(r,a);s&&(!n||am(r,r[s],s,n))&&(delete r[s],i=!0)}}return oe.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||am(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return oe.forEach(this,(i,o)=>{const a=oe.findKey(r,o);if(a){n[a]=xd(i),delete n[o];return}const s=t?uN(o):String(o).trim();s!==o&&delete n[o],n[s]=xd(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&oe.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[ux]=this[ux]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=ml(a);r[s]||(dN(i,a),r[s]=!0)}return oe.isArray(t)?t.forEach(o):o(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});oe.freezeMethods(tr);function sm(e,t){const n=this||ru,r=t||n,i=tr.from(r.headers);let o=r.data;return oe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function w$(e){return!!(e&&e.__CANCEL__)}function Us(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(Us,it,{__CANCEL__:!0});function _$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hN(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 pN(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 Wd=(e,t,n=3)=>{let r=0;const i=hN(50,250);return pN(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)},dx=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fx=e=>(...t)=>oe.asap(()=>e(...t)),mN=jn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,gN=jn.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];oe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&s.push(`path=${r}`),oe.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),oe.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 vN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function C$(e,t,n){let r=!vN(t);return e&&(r||n==!1)?bN(e,t):t}const hx=e=>e instanceof tr?{...e}:e;function sa(e,t){t=t||{};const n={};function r(c,u,d,f){return oe.isPlainObject(c)&&oe.isPlainObject(u)?oe.merge.call({caseless:f},c,u):oe.isPlainObject(u)?oe.merge({},u):oe.isArray(u)?u.slice():u}function i(c,u,d,f){if(oe.isUndefined(u)){if(!oe.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!oe.isUndefined(u))return r(void 0,u)}function a(c,u){if(oe.isUndefined(u)){if(!oe.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(hx(c),hx(u),d,!0)};return oe.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);oe.isUndefined(f)&&d!==s||(n[u]=f)}),n}const $$=e=>{const t=sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=tr.from(a),t.url=b$(C$(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),oe.isFormData(n)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(oe.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(jn.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(t)),r||r!==!1&&mN(t.url))){const l=i&&o&&gN.read(o);l&&a.set(i,l)}return t},yN=typeof XMLHttpRequest<"u",xN=yN&&function(e){return new Promise(function(n,r){const i=$$(e);let o=i.data;const a=tr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,p;function g(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function x(){if(!v)return;const w=tr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};_$(function(T){n(T),g()},function(T){r(T),g()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new it("Request aborted",it.ECONNABORTED,e,v)),v=null)},v.onerror=function(C){const b=C&&C.message?C.message:"Network Error",$=new it(b,it.ERR_NETWORK,e,v);$.event=C||null,r($),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||y$;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new it(C,b.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&oe.forEach(a.toJSON(),function(C,b){v.setRequestHeader(b,C)}),oe.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,p]=Wd(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,h]=Wd(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{v&&(r(!w||w.type?new Us(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=fN(i.url);if(_&&jn.protocols.indexOf(_)===-1){r(new it("Unsupported protocol "+_+":",it.ERR_BAD_REQUEST,e));return}v.send(o||null)})},wN=(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 it?u:new Us(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new it(`timeout ${t} of ms exceeded`,it.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=()=>oe.asap(s),l}},_N=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},CN=async function*(e,t){for await(const n of $N(e))yield*_N(n,t)},$N=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()}},px=(e,t,n,r)=>{const i=CN(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})},mx=64*1024,{isFunction:Uu}=oe,SN=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:gx,TextEncoder:vx}=oe.global,bx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TN=e=>{e=oe.merge.call({skipUndefined:!0},SN,e);const{fetch:t,Request:n,Response:r}=e,i=t?Uu(t):typeof fetch=="function",o=Uu(n),a=Uu(r);if(!i)return!1;const s=i&&Uu(gx),l=i&&(typeof vx=="function"?(p=>g=>p.encode(g))(new vx):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=o&&s&&bx(()=>{let p=!1;const g=new n(jn.origin,{body:new gx,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),u=a&&s&&bx(()=>oe.isReadableStream(new r("").body)),d={stream:u&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(g,v)=>{let x=g&&g[p];if(x)return x.call(g);throw new it(`Response type '${p}' is not supported`,it.ERR_NOT_SUPPORT,v)})});const f=async p=>{if(p==null)return 0;if(oe.isBlob(p))return p.size;if(oe.isSpecCompliantForm(p))return(await new n(jn.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(p)||oe.isArrayBuffer(p))return p.byteLength;if(oe.isURLSearchParams(p)&&(p=p+""),oe.isString(p))return(await l(p)).byteLength},h=async(p,g)=>{const v=oe.toFiniteNumber(p.getContentLength());return v??f(g)};return async p=>{let{url:g,method:v,data:x,signal:_,cancelToken:w,timeout:C,onDownloadProgress:b,onUploadProgress:$,responseType:T,headers:k,withCredentials:O="same-origin",fetchOptions:j}=$$(p),S=t||fetch;T=T?(T+"").toLowerCase():"text";let E=wN([_,w&&w.toAbortSignal()],C),A=null;const D=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let R;try{if($&&c&&v!=="get"&&v!=="head"&&(R=await h(k,x))!==0){let z=new n(g,{method:"POST",body:x,duplex:"half"}),V;if(oe.isFormData(x)&&(V=z.headers.get("content-type"))&&k.setContentType(V),z.body){const[H,Y]=dx(R,Wd(fx($)));x=px(z.body,mx,H,Y)}}oe.isString(O)||(O=O?"include":"omit");const M=o&&"credentials"in n.prototype,I={...j,signal:E,method:v.toUpperCase(),headers:k.normalize().toJSON(),body:x,duplex:"half",credentials:M?O:void 0};A=o&&new n(g,I);let F=await(o?S(A,j):S(g,I));const U=u&&(T==="stream"||T==="response");if(u&&(b||U&&D)){const z={};["status","statusText","headers"].forEach(Z=>{z[Z]=F[Z]});const V=oe.toFiniteNumber(F.headers.get("content-length")),[H,Y]=b&&dx(V,Wd(fx(b),!0))||[];F=new r(px(F.body,mx,H,()=>{Y&&Y(),D&&D()}),z)}T=T||"text";let P=await d[oe.findKey(d,T)||"text"](F,p);return!U&&D&&D(),await new Promise((z,V)=>{_$(z,V,{data:P,headers:tr.from(F.headers),status:F.status,statusText:F.statusText,config:p,request:A})})}catch(M){throw D&&D(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,p,A),{cause:M.cause||M}):it.from(M,M&&M.code,p,A)}}},EN=new Map,S$=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=EN;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:TN(t)),u=c;return c};S$();const D0={http:Hj,xhr:xN,fetch:{get:S$}};oe.forEach(D0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yx=e=>`- ${e}`,kN=e=>oe.isFunction(e)||e===null||e===!1;function ON(e,t){e=oe.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,!kN(r)&&(i=D0[(s=String(r)).toLowerCase()],i===void 0))throw new it(`Unknown adapter '${s}'`);if(i&&(oe.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(yx).join(`
|
|
224
|
-
`):" "+yx(a[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const T$={getAdapter:ON,adapters:D0};function lm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Us(null,e)}function xx(e){return lm(e),e.headers=tr.from(e.headers),e.data=sm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),T$.getAdapter(e.adapter||ru.adapter,e)(e).then(function(r){return lm(e),r.data=sm.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return w$(r)||(lm(e),r&&r.response&&(r.response.data=sm.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const E$="1.13.2",ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wx={};ah.transitional=function(t,n,r){function i(o,a){return"[Axios v"+E$+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new it(i(a," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!wx[a]&&(wx[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}};ah.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function MN(e,t,n){if(typeof e!="object")throw new it("options must be an object",it.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 it("option "+o+" must be "+l,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}}const wd={assertOptions:MN,validators:ah},Wr=wd.validators;let ea=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cx,response:new cx}}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=sa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&wd.assertOptions(r,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:wd.assertOptions(i,{encode:Wr.function,serialize:Wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wd.assertOptions(n,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&oe.merge(o.common,o[n.method]);o&&oe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=tr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const p=[xx.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++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=xx.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=sa(this.defaults,t);const n=C$(t.baseURL,t.url,t.allowAbsoluteUrls);return b$(n,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){ea.prototype[t]=function(n,r){return this.request(sa(r||{},{method:t,url:n,data:(r||{}).data}))}});oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(sa(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ea.prototype[t]=n(),ea.prototype[t+"Form"]=n(!0)});let AN=class k${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 Us(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 k$(function(i){t=i}),cancel:t}}};function RN(e){return function(n){return e.apply(null,n)}}function jN(e){return oe.isObject(e)&&e.isAxiosError===!0}const zg={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(zg).forEach(([e,t])=>{zg[t]=e});function O$(e){const t=new ea(e),n=a$(ea.prototype.request,t);return oe.extend(n,ea.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return O$(sa(e,i))},n}const Qt=O$(ru);Qt.Axios=ea;Qt.CanceledError=Us;Qt.CancelToken=AN;Qt.isCancel=w$;Qt.VERSION=E$;Qt.toFormData=oh;Qt.AxiosError=it;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=RN;Qt.isAxiosError=jN;Qt.mergeConfig=sa;Qt.AxiosHeaders=tr;Qt.formToJSON=e=>x$(oe.isHTMLForm(e)?new FormData(e):e);Qt.getAdapter=T$.getAdapter;Qt.HttpStatusCode=zg;Qt.default=Qt;const{Axios:wbe,AxiosError:_be,CanceledError:Cbe,isCancel:$be,CancelToken:Sbe,VERSION:Tbe,all:Ebe,Cancel:kbe,isAxiosError:Obe,spread:Mbe,toFormData:Abe,AxiosHeaders:Rbe,HttpStatusCode:jbe,formToJSON:Nbe,getAdapter:Dbe,mergeConfig:Ibe}=Qt;var Hu={};/*!
|
|
226
|
-
* cookie
|
|
227
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
228
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
229
|
-
* MIT Licensed
|
|
230
|
-
*/var _x;function NN(){if(_x)return Hu;_x=1,Hu.parse=a,Hu.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 g={},v=h.length;if(v<2)return g;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=v;else if(w>C){_=h.lastIndexOf(";",w-1)+1;continue}var b=s(h,_,w),$=l(h,w,b),T=h.slice(b,$);if(!t.call(g,T)){var k=s(h,w+1,C),O=l(h,C,k);h.charCodeAt(k)===34&&h.charCodeAt(O-1)===34&&(k++,O--);var j=h.slice(k,O);g[T]=f(j,x)}_=C+1}while(_<v);return g}function s(h,p,g){do{var v=h.charCodeAt(p);if(v!==32&&v!==9)return p}while(++p<g);return g}function l(h,p,g){for(;p>g;){var v=h.charCodeAt(--p);if(v!==32&&v!==9)return p+1}return g}function c(h,p,g){var v=g&&g.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=v(p);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!g)return _;if(g.maxAge!=null){var w=Math.floor(g.maxAge);if(!isFinite(w))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+w}if(g.domain){if(!i.test(g.domain))throw new TypeError("option domain is invalid");_+="; Domain="+g.domain}if(g.path){if(!o.test(g.path))throw new TypeError("option path is invalid");_+="; Path="+g.path}if(g.expires){var C=g.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+C.toUTCString()}if(g.httpOnly&&(_+="; HttpOnly"),g.secure&&(_+="; Secure"),g.partitioned&&(_+="; Partitioned"),g.priority){var b=typeof g.priority=="string"?g.priority.toLowerCase():g.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(g.sameSite){var $=typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite;switch($){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 Hu}var _d=NN();function DN(){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 IN(e){return typeof e=="string"?_d.parse(e):typeof e=="object"&&e!==null?e:{}}function cm(e,t={}){const n=PN(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function PN(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class LN{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=_d.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=IN(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=DN()}_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:cm(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),cm(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=cm(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=_d.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=_d.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 M$=ie.createContext(new LN),{Provider:Pbe,Consumer:Lbe}=M$;var Vu={exports:{}},Dt={};/** @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 Cx;function FN(){if(Cx)return Dt;Cx=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,g=e?Symbol.for("react.block"):60121,v=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 $=b.$$typeof;switch($){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 $}}case n:return $}}}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===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},Dt.typeOf=w,Dt}var It={};/** @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 $x;function BN(){return $x||($x=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function C(N){if(typeof N=="object"&&N!==null){var Q=N.$$typeof;switch(Q){case t:var X=N.type;switch(X){case l:case c:case r:case o:case i:case d:return X;default:var G=X&&X.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return Q}}case n:return Q}}}var b=l,$=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!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.")),P(N)||C(N)===l}function P(N){return C(N)===c}function z(N){return C(N)===s}function V(N){return C(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return C(N)===u}function Z(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function W(N){return C(N)===n}function L(N){return C(N)===o}function B(N){return C(N)===i}function q(N){return C(N)===d}It.AsyncMode=b,It.ConcurrentMode=$,It.ContextConsumer=T,It.ContextProvider=k,It.Element=O,It.ForwardRef=j,It.Fragment=S,It.Lazy=E,It.Memo=A,It.Portal=D,It.Profiler=R,It.StrictMode=M,It.Suspense=I,It.isAsyncMode=U,It.isConcurrentMode=P,It.isContextConsumer=z,It.isContextProvider=V,It.isElement=H,It.isForwardRef=Y,It.isFragment=Z,It.isLazy=J,It.isMemo=ee,It.isPortal=W,It.isProfiler=L,It.isStrictMode=B,It.isSuspense=q,It.isValidElementType=w,It.typeOf=C}()),It}var Sx;function zN(){return Sx||(Sx=1,process.env.NODE_ENV==="production"?Vu.exports=FN():Vu.exports=BN()),Vu.exports}var um,Tx;function WN(){if(Tx)return um;Tx=1;var e=zN(),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,g,v){if(typeof g!="string"){if(f){var x=d(g);x&&x!==f&&h(p,x,v)}var _=l(g);c&&(_=_.concat(c(g)));for(var w=a(p),C=a(g),b=0;b<_.length;++b){var $=_[b];if(!n[$]&&!(v&&v[$])&&!(C&&C[$])&&!(w&&w[$])){var T=u(g,$);try{s(p,$,T)}catch{}}}}return p}return um=h,um}WN();function UN(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function I0(e,t){const n=m.useContext(M$);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=m.useState(()=>n.getAll(i));UN()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);HN(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=m.useMemo(()=>n.set.bind(n),[n]),l=m.useMemo(()=>n.remove.bind(n),[n]),c=m.useMemo(()=>n.update.bind(n),[n]);return[o,s,l,c]}function HN(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const VN=()=>{const e=Re.c(12),{axiosOptions:t,cookieDomain:n}=m.useContext(ln);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,o]=I0(r);let a;e[1]!==t?(a=Qt.create(t),e[1]=t,e[2]=a):a=e[2];const s=a,l=qN;let c;e[3]!==s||e[4]!==n||e[5]!==i?(c=async(p,g)=>s.post("/user/login",{kid:p,password:g}).then(v=>(localStorage.setItem("token",v.data),i("Authorization",v.data,{path:"/",secure:!0,sameSite:"none",domain:n,expires:H4(new Date(Date.now()),24)}),v.data)).catch(YN),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"),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 qN(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function YN(e){return console.log(e),null}const GN=()=>{const e=Re.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=I0(t),{msalScopes:r,msalExtraScopes:i}=m.useContext(Jf),{instance:o,inProgress:a}=hy.useMsal(),s=hy.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!==gO.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(KN).catch(ZN),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 g=p;let v;return e[13]!==c||e[14]!==d||e[15]!==h||e[16]!==g?(v={isAuthenticated:c,isAuthenticating:d,login:h,logout:g},e[13]=c,e[14]=d,e[15]=h,e[16]=g,e[17]=v):v=e[17],v};function KN(){return""}function ZN(){return null}const A$=()=>{const e=Re.c(12),{useMsal:t}=m.useContext(Jf),n=VN(),r=GN();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:XN,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 XN(){return!1}const QN="_toast_1s57i_1",gl={toast:QN},JN=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}},sh=()=>{const e=Re.c(1),t=eD;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function eD(e,t){const n=XC(e),r=JN(t),i=y.jsxs(y.Fragment,{children:[n,y.jsx(AC,{onClick:()=>Fa.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(RR,{size:12}),className:ue("luminus-toast-success rounded shadow bg-success",gl.toast)});break e}case"danger":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(_R,{size:12}),className:ue("luminus-toast-danger rounded shadow bg-danger",gl.toast)});break e}case"warning":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(bR,{size:12}),className:ue("luminus-toast-warning rounded shadow bg-warning",gl.toast)});break e}case"info":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(xR,{size:12}),className:ue("luminus-toast-info rounded shadow bg-info",gl.toast)});break e}case"prompt":{Fa(i,{id:n,duration:r,position:"top-center",icon:y.jsx(wR,{size:12}),className:ue("luminus-toast-prompt rounded shadow bg-light",gl.toast)});break e}}}const tD=Qt.CancelToken,lh=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=m.useContext(ln),{delegation:u}=m.useContext(VC),{getToken:d}=m.useContext(Jf),f=m.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=sh(),{isAuthenticating:p,isAuthenticated:g}=A$(),v=m.useMemo(()=>Qt.create(l),[l]),x=m.useCallback(async b=>{var T,k,O;if(t&&!b.headers.Authorization){if(p())return Promise.reject(new Error("Authentication in progress"));if(!g())return Promise.reject(new Error("Not authenticated"));const j=i?{token:i,expiresOn:H4(new Date(Date.now()),1)}:await d();if(!j)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(K4(j.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));b.headers.Authorization=`Bearer ${j.token}`}f!==null&&!o&&(b.headers.DelegationId=f.toString());const $=localStorage.getItem("search-use-asterisk")!=="false";return b.headers["Search-Use-Asterisk"]=$?"true":"false",(T=b.url)!=null&&T.includes("culture=")?b.url=(k=b.url)==null?void 0:k.replace(/culture=[a-z]{2}/,`culture=${s}`):b.url=`${b.url}${(O=b.url)!=null&&O.includes("?")?"&":"?"}culture=${s}`,b},[t,d,s,i,f,o,p,g]),_=m.useCallback(async b=>{var k,O;if(Qt.isCancel(b)||b.message==="Authentication in progress"||b.message==="No bearer token"||b.message==="Token expired")return Promise.reject(b);let $;if(b.response.data instanceof Blob?$=await GC(b.response.data):$=eh(b.response.data),$.length>0){const j=$.find(S=>S.name.toLowerCase()==="others");return j?(!r&&h(j.errors,"danger"),Promise.reject(b)):(!r&&h(c.validationError,"warning"),Promise.reject(b))}const T=KC(b);return T!==null?(!r&&h(`${c.permissionError}: ${M0(", ",...T)}`,"danger"),Promise.reject(b)):(a??[]).includes((k=b.response)==null?void 0:k.status)?Promise.reject(b):((O=b.response)==null?void 0:O.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(b)):b.message&&b.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(b)):(Qt.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]=m.useState(!1);return m.useEffect(()=>{n&&(v.defaults.baseURL=n)},[n,v.defaults]),m.useEffect(()=>{v.interceptors.request.clear();const b=v.interceptors.request.use(x,$=>Promise.reject($));return C(!0),console.log("useAxios: setting interceptors"),()=>{C(!1),console.log("useAxios: ejecting interceptors"),v.interceptors.request.eject(b)}},[v.interceptors.request,x]),m.useEffect(()=>{v.interceptors.response.clear();const b=v.interceptors.response.use($=>$,_);return()=>{v.interceptors.response.eject(b)}},[v.interceptors.response,_]),v.interceptorsUsed=w,v};let Il;const P0=()=>{const e=Re.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:o}=m.useContext(jC);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(),Il&&Il(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),Il&&Il(!1)},e[4]=s,e[5]=u):u=e[5];const d=u;let f;e[6]!==r?(f=async(g,v)=>(r(g,v),new Promise(nD)),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 nD(e){Il=e}var xt;(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})(xt||(xt={}));var Wg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wg||(Wg={}));const Ce=xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_i=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},he=xt.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"]),rD=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class lr 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 lr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xt.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()}}lr.create=e=>new lr(e);const $s=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${xt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${xt.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}"`:xt.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,xt.assertNever(e)}return{message:n}};let R$=$s;function iD(e){R$=e}function Ud(){return R$}const Hd=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}},oD=[];function _e(e,t){const n=Ud(),r=Hd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===$s?void 0:$s].filter(i=>!!i)});e.common.issues.push(r)}class In{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 ze;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 In.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 ze;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 ze=Object.freeze({status:"aborted"}),es=e=>({status:"dirty",value:e}),Hn=e=>({status:"valid",value:e}),Ug=e=>e.status==="aborted",Hg=e=>e.status==="dirty",la=e=>e.status==="valid",ac=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 ei{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 Ex=(e,t)=>{if(la(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 lr(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(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 ut{get description(){return this._def.description}_getType(t){return _i(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:_i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new In,ctx:{common:t.parent.common,data:t.data,parsedType:_i(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ac(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:_i(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ex(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:_i(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return la(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=>la(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:_i(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(ac(i)?i:Promise.resolve(i));return Ex(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 Dr({schema:this,typeName:Ue.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 Kr.create(this,this._def)}nullable(){return bo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nr.create(this)}promise(){return Ts.create(this,this._def)}or(t){return uc.create([this,t],this._def)}and(t){return dc.create(this,t,this._def)}transform(t){return new Dr({...ot(this._def),schema:this,typeName:Ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new gc({...ot(this._def),innerType:this,defaultValue:n,typeName:Ue.ZodDefault})}brand(){return new L0({typeName:Ue.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vc({...ot(this._def),innerType:this,catchValue:n,typeName:Ue.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return iu.create(this,t)}readonly(){return bc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const aD=/^c[^\s-]{8,}$/i,sD=/^[0-9a-z]+$/,lD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cD=/^[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,uD=/^[a-z0-9_-]{21}$/i,dD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,fD=/^[-+]?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)?)??$/,hD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dm;const mD=/^(?:(?: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])$/,gD=/^(?:(?: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])$/,vD=/^(([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]))$/,bD=/^(([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])$/,yD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,j$="((\\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])))",wD=new RegExp(`^${j$}$`);function N$(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 _D(e){return new RegExp(`^${N$(e)}$`)}function D$(e){let t=`${j$}T${N$(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 CD(e,t){return!!((t==="v4"||!t)&&mD.test(e)||(t==="v6"||!t)&&vD.test(e))}function $D(e,t){if(!dD.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 SD(e,t){return!!((t==="v4"||!t)&&gD.test(e)||(t==="v6"||!t)&&bD.test(e))}class Rr extends ut{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.string,received:o.parsedType}),ze}const r=new In;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")hD.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")dm||(dm=new RegExp(pD,"u")),dm.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")cD.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")uD.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")aD.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")sD.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")lD.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"?D$(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"?wD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?_D(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"?fD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?CD(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"?$D(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"?SD(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"?yD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?xD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):xt.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 Rr({...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 Rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rr({...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}}Rr.create=e=>new Rr({checks:[],typeName:Ue.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});function TD(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 mo extends ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.number,received:o.parsedType}),ze}let r;const i=new In;for(const o of this._def.checks)o.kind==="int"?xt.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"?TD(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()):xt.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 mo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new mo({...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"&&xt.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)}}mo.create=e=>new mo({checks:[],typeName:Ue.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class go extends ut{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)!==Ce.bigint)return this._getInvalidInput(t);let r;const i=new In;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()):xt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Ce.bigint,received:n.parsedType}),ze}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 go({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new go({...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}}go.create=e=>new go({checks:[],typeName:Ue.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});class sc extends ut{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.boolean,received:r.parsedType}),ze}return Hn(t.data)}}sc.create=e=>new sc({typeName:Ue.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class ca extends ut{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Ce.date,received:o.parsedType}),ze}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_date}),ze}const r=new In;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()):xt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ca({...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}}ca.create=e=>new ca({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ue.ZodDate,...ot(e)});class Vd extends ut{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.symbol,received:r.parsedType}),ze}return Hn(t.data)}}Vd.create=e=>new Vd({typeName:Ue.ZodSymbol,...ot(e)});class lc extends ut{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.undefined,received:r.parsedType}),ze}return Hn(t.data)}}lc.create=e=>new lc({typeName:Ue.ZodUndefined,...ot(e)});class cc extends ut{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.null,received:r.parsedType}),ze}return Hn(t.data)}}cc.create=e=>new cc({typeName:Ue.ZodNull,...ot(e)});class Ss extends ut{constructor(){super(...arguments),this._any=!0}_parse(t){return Hn(t.data)}}Ss.create=e=>new Ss({typeName:Ue.ZodAny,...ot(e)});class ta extends ut{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Hn(t.data)}}ta.create=e=>new ta({typeName:Ue.ZodUnknown,...ot(e)});class Di extends ut{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Ce.never,received:n.parsedType}),ze}}Di.create=e=>new Di({typeName:Ue.ZodNever,...ot(e)});class qd extends ut{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.void,received:r.parsedType}),ze}return Hn(t.data)}}qd.create=e=>new qd({typeName:Ue.ZodVoid,...ot(e)});class Nr extends ut{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return _e(n,{code:he.invalid_type,expected:Ce.array,received:n.parsedType}),ze;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 ei(n,a,n.path,s)))).then(a=>In.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new ei(n,a,n.path,s)));return In.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Nr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Nr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Nr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Nr.create=(e,t)=>new Nr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ue.ZodArray,...ot(t)});function Ja(e){if(e instanceof an){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Kr.create(Ja(r))}return new an({...e._def,shape:()=>t})}else return e instanceof Nr?new Nr({...e._def,type:Ja(e.element)}):e instanceof Kr?Kr.create(Ja(e.unwrap())):e instanceof bo?bo.create(Ja(e.unwrap())):e instanceof ti?ti.create(e.items.map(t=>Ja(t))):e}class an extends ut{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=xt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const c=this._getOrReturnCtx(t);return _e(c,{code:he.invalid_type,expected:Ce.object,received:c.parsedType}),ze}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Di&&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 ei(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Di){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 ei(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=>In.mergeObjectSync(r,c)):In.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new an({...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 an({...this._def,unknownKeys:"strip"})}passthrough(){return new an({...this._def,unknownKeys:"passthrough"})}extend(t){return new an({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new an({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ue.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new an({...this._def,catchall:t})}pick(t){const n={};for(const r of xt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}omit(t){const n={};for(const r of xt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new an({...this._def,shape:()=>n})}deepPartial(){return Ja(this)}partial(t){const n={};for(const r of xt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new an({...this._def,shape:()=>n})}required(t){const n={};for(const r of xt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Kr;)o=o._def.innerType;n[r]=o}return new an({...this._def,shape:()=>n})}keyof(){return I$(xt.objectKeys(this.shape))}}an.create=(e,t)=>new an({shape:()=>e,unknownKeys:"strip",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});an.strictCreate=(e,t)=>new an({shape:()=>e,unknownKeys:"strict",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});an.lazycreate=(e,t)=>new an({shape:e,unknownKeys:"strip",catchall:Di.create(),typeName:Ue.ZodObject,...ot(t)});class uc extends ut{_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 lr(s.ctx.common.issues));return _e(n,{code:he.invalid_union,unionErrors:a}),ze}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 lr(l));return _e(n,{code:he.invalid_union,unionErrors:s}),ze}}get options(){return this._def.options}}uc.create=(e,t)=>new uc({options:e,typeName:Ue.ZodUnion,...ot(t)});const gi=e=>e instanceof hc?gi(e.schema):e instanceof Dr?gi(e.innerType()):e instanceof pc?[e.value]:e instanceof vo?e.options:e instanceof mc?xt.objectValues(e.enum):e instanceof gc?gi(e._def.innerType):e instanceof lc?[void 0]:e instanceof cc?[null]:e instanceof Kr?[void 0,...gi(e.unwrap())]:e instanceof bo?[null,...gi(e.unwrap())]:e instanceof L0||e instanceof bc?gi(e.unwrap()):e instanceof vc?gi(e._def.innerType):[];class ch extends ut{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.object)return _e(n,{code:he.invalid_type,expected:Ce.object,received:n.parsedType}),ze;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]}),ze)}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=gi(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 ch({typeName:Ue.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ot(r)})}}function Vg(e,t){const n=_i(e),r=_i(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const i=xt.objectKeys(t),o=xt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=Vg(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Ce.array&&r===Ce.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=Vg(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class dc extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(Ug(o)||Ug(a))return ze;const s=Vg(o.value,a.value);return s.valid?((Hg(o)||Hg(a))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.invalid_intersection_types}),ze)};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}))}}dc.create=(e,t,n)=>new dc({left:e,right:t,typeName:Ue.ZodIntersection,...ot(n)});class ti extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return _e(r,{code:he.invalid_type,expected:Ce.array,received:r.parsedType}),ze;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"}),ze;!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 ei(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>In.mergeArray(n,a)):In.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ti({...this._def,rest:t})}}ti.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ti({items:e,typeName:Ue.ZodTuple,rest:null,...ot(t)})};class fc extends ut{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.object)return _e(r,{code:he.invalid_type,expected:Ce.object,received:r.parsedType}),ze;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new ei(r,s,r.path,s)),value:a._parse(new ei(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?In.mergeObjectAsync(n,i):In.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ut?new fc({keyType:t,valueType:n,typeName:Ue.ZodRecord,...ot(r)}):new fc({keyType:Rr.create(),valueType:t,typeName:Ue.ZodRecord,...ot(n)})}}class Yd extends ut{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.map)return _e(r,{code:he.invalid_type,expected:Ce.map,received:r.parsedType}),ze;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new ei(r,s,r.path,[c,"key"])),value:o._parse(new ei(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 ze;(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 ze;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}Yd.create=(e,t,n)=>new Yd({valueType:t,keyType:e,typeName:Ue.ZodMap,...ot(n)});class ua extends ut{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return _e(r,{code:he.invalid_type,expected:Ce.set,received:r.parsedType}),ze;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 ze;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 ei(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new ua({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new ua({...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)}}ua.create=(e,t)=>new ua({valueType:e,minSize:null,maxSize:null,typeName:Ue.ZodSet,...ot(t)});class as extends ut{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.function)return _e(n,{code:he.invalid_type,expected:Ce.function,received:n.parsedType}),ze;function r(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),$s].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Hd({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ud(),$s].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 Hn(async function(...l){const c=new lr([]),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 Hn(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new lr([r(l,c.error)]);const u=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new lr([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new as({...this._def,args:ti.create(t).rest(ta.create())})}returns(t){return new as({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new as({args:t||ti.create([]).rest(ta.create()),returns:n||ta.create(),typeName:Ue.ZodFunction,...ot(r)})}}class hc extends ut{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})}}hc.create=(e,t)=>new hc({getter:e,typeName:Ue.ZodLazy,...ot(t)});class pc extends ut{_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}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}pc.create=(e,t)=>new pc({value:e,typeName:Ue.ZodLiteral,...ot(t)});function I$(e,t){return new vo({values:e,typeName:Ue.ZodEnum,...ot(t)})}class vo extends ut{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:xt.joinValues(r),received:n.parsedType,code:he.invalid_type}),ze}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}),ze}return Hn(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 vo.create(t,{...this._def,...n})}exclude(t,n=this._def){return vo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}vo.create=I$;class mc extends ut{_parse(t){const n=xt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const i=xt.objectValues(n);return _e(r,{expected:xt.joinValues(i),received:r.parsedType,code:he.invalid_type}),ze}if(this._cache||(this._cache=new Set(xt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=xt.objectValues(n);return _e(r,{received:r.data,code:he.invalid_enum_value,options:i}),ze}return Hn(t.data)}get enum(){return this._def.values}}mc.create=(e,t)=>new mc({values:e,typeName:Ue.ZodNativeEnum,...ot(t)});class Ts extends ut{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:Ce.promise,received:n.parsedType}),ze;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Hn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ts.create=(e,t)=>new Ts({type:e,typeName:Ue.ZodPromise,...ot(t)});class Dr extends ut{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ue.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 ze;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?ze:l.status==="dirty"||n.value==="dirty"?es(l.value):l});{if(n.value==="aborted")return ze;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?ze:s.status==="dirty"||n.value==="dirty"?es(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"?ze:(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"?ze:(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(!la(a))return ze;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=>la(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):ze);xt.assertNever(i)}}Dr.create=(e,t,n)=>new Dr({schema:e,typeName:Ue.ZodEffects,effect:t,...ot(n)});Dr.createWithPreprocess=(e,t,n)=>new Dr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ue.ZodEffects,...ot(n)});class Kr extends ut{_parse(t){return this._getType(t)===Ce.undefined?Hn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(e,t)=>new Kr({innerType:e,typeName:Ue.ZodOptional,...ot(t)});class bo extends ut{_parse(t){return this._getType(t)===Ce.null?Hn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bo.create=(e,t)=>new bo({innerType:e,typeName:Ue.ZodNullable,...ot(t)});class gc extends ut{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}gc.create=(e,t)=>new gc({innerType:e,typeName:Ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class vc extends ut{_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 ac(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new lr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new lr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}vc.create=(e,t)=>new vc({innerType:e,typeName:Ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class Gd extends ut{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Ce.nan,received:r.parsedType}),ze}return{status:"valid",value:t.data}}}Gd.create=e=>new Gd({typeName:Ue.ZodNaN,...ot(e)});const ED=Symbol("zod_brand");class L0 extends ut{_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 iu extends ut{_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"?ze:o.status==="dirty"?(n.dirty(),es(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"?ze: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 iu({in:t,out:n,typeName:Ue.ZodPipeline})}}class bc extends ut{_parse(t){const n=this._def.innerType._parse(t),r=i=>(la(i)&&(i.value=Object.freeze(i.value)),i);return ac(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}bc.create=(e,t)=>new bc({innerType:e,typeName:Ue.ZodReadonly,...ot(t)});function kx(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function P$(e,t={},n){return e?Ss.create().superRefine((r,i)=>{const o=e(r);if(o instanceof Promise)return o.then(a=>{if(!a){const s=kx(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!o){const a=kx(t,r),s=a.fatal??n??!0;i.addIssue({code:"custom",...a,fatal:s})}}):Ss.create()}const kD={object:an.lazycreate};var Ue;(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"})(Ue||(Ue={}));const OD=(e,t={message:`Input not instance of ${e.name}`})=>P$(n=>n instanceof e,t),F0=Rr.create,L$=mo.create,MD=Gd.create,AD=go.create,F$=sc.create,RD=ca.create,jD=Vd.create,ND=lc.create,DD=cc.create,B$=Ss.create,ID=ta.create,PD=Di.create,LD=qd.create,z$=Nr.create,Si=an.create,FD=an.strictCreate,BD=uc.create,zD=ch.create,WD=dc.create,UD=ti.create,HD=fc.create,VD=Yd.create,qD=ua.create,YD=as.create,GD=hc.create,KD=pc.create,W$=vo.create,ZD=mc.create,XD=Ts.create,Ox=Dr.create,QD=Kr.create,JD=bo.create,eI=Dr.createWithPreprocess,tI=iu.create,nI=()=>F0().optional(),rI=()=>L$().optional(),iI=()=>F$().optional(),Pl={string:e=>Rr.create({...e,coerce:!0}),number:e=>mo.create({...e,coerce:!0}),boolean:e=>sc.create({...e,coerce:!0}),bigint:e=>go.create({...e,coerce:!0}),date:e=>ca.create({...e,coerce:!0})},oI=ze,Ll=Object.freeze(Object.defineProperty({__proto__:null,BRAND:ED,DIRTY:es,EMPTY_PATH:oD,INVALID:ze,NEVER:oI,OK:Hn,ParseStatus:In,Schema:ut,ZodAny:Ss,ZodArray:Nr,ZodBigInt:go,ZodBoolean:sc,ZodBranded:L0,ZodCatch:vc,ZodDate:ca,ZodDefault:gc,ZodDiscriminatedUnion:ch,ZodEffects:Dr,ZodEnum:vo,ZodError:lr,get ZodFirstPartyTypeKind(){return Ue},ZodFunction:as,ZodIntersection:dc,ZodIssueCode:he,ZodLazy:hc,ZodLiteral:pc,ZodMap:Yd,ZodNaN:Gd,ZodNativeEnum:mc,ZodNever:Di,ZodNull:cc,ZodNullable:bo,ZodNumber:mo,ZodObject:an,ZodOptional:Kr,ZodParsedType:Ce,ZodPipeline:iu,ZodPromise:Ts,ZodReadonly:bc,ZodRecord:fc,ZodSchema:ut,ZodSet:ua,ZodString:Rr,ZodSymbol:Vd,ZodTransformer:Dr,ZodTuple:ti,ZodType:ut,ZodUndefined:lc,ZodUnion:uc,ZodUnknown:ta,ZodVoid:qd,addIssueToContext:_e,any:B$,array:z$,bigint:AD,boolean:F$,coerce:Pl,custom:P$,date:RD,datetimeRegex:D$,defaultErrorMap:$s,discriminatedUnion:zD,effect:Ox,enum:W$,function:YD,getErrorMap:Ud,getParsedType:_i,instanceof:OD,intersection:WD,isAborted:Ug,isAsync:ac,isDirty:Hg,isValid:la,late:kD,lazy:GD,literal:KD,makeIssue:Hd,map:VD,nan:MD,nativeEnum:ZD,never:PD,null:DD,nullable:JD,number:L$,object:Si,get objectUtil(){return Wg},oboolean:iI,onumber:rI,optional:QD,ostring:nI,pipeline:tI,preprocess:eI,promise:XD,quotelessJson:rD,record:HD,set:qD,setErrorMap:iD,strictObject:FD,string:F0,symbol:jD,transformer:Ox,tuple:UD,undefined:ND,union:BD,unknown:ID,get util(){return xt},void:LD},Symbol.toStringTag,{value:"Module"})),uh=()=>{const e=Re.c(41),{texts:t}=m.useContext(ln),{formValidation:n}=t;let r;e[0]!==n?(r=R=>{let M=(R!=null&&R.useCoerce?Pl:Ll).string({invalid_type_error:n.required,required_error:n.required});return R!=null&&R.email&&(M=M.email(n.invalidEmail)),R!=null&&R.length&&(M=M.min(R.length,n.length(R.length))),R!=null&&R.minLength&&(M=M.min(R.minLength,n.minLength(R.minLength))),R!=null&&R.maxLength&&(M=M.max(R.maxLength,n.maxLength(R.maxLength))),R!=null&&R.numeric&&(M=M.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),R!=null&&R.regex&&(M=M.regex(R.regex,n.invalidFormat)),M.transform(aI)},e[0]=n,e[1]=r):r=e[1];const i=r;let o;e[2]!==i?(o=R=>i(R).nullable().optional().transform(sI),e[2]=i,e[3]=o):o=e[3];const a=o;let s;e[4]!==n?(s=R=>{const M=(R==null?void 0:R.min)??Number.MIN_SAFE_INTEGER,I=(R==null?void 0:R.max)??Number.MAX_SAFE_INTEGER,F=(R!=null&&R.useCoerce?Pl:Ll).number({invalid_type_error:n.required,required_error:n.required}).min(M,n.lessThanMin(M)).max(I,n.moreThanMax(I));return F.transform(lI),F},e[4]=n,e[5]=s):s=e[5];const l=s;let c;e[6]!==l?(c=R=>l(R).nullable().optional().transform(cI),e[6]=l,e[7]=c):c=e[7];const u=c;let d;e[8]!==n.required?(d=R=>(R!=null&&R.useCoerce?Pl:Ll).boolean({invalid_type_error:n.required,required_error:n.required}).transform(uI),e[8]=n.required,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.invalidDate||e[11]!==n.required?(h=R=>(R!=null&&R.useCoerce?Pl:Ll).string({invalid_type_error:n.required,required_error:n.required}).refine(JC,{message:n.invalidDate}).transform(dI),e[10]=n.invalidDate,e[11]=n.required,e[12]=h):h=e[12];const p=h;let g;e[13]!==p?(g=R=>p(R).nullable().optional().transform(fI),e[13]=p,e[14]=g):g=e[14];const v=g;let x;e[15]!==n.required?(x=(R,M)=>W$(R,{invalid_type_error:n.required,required_error:n.required}).transform(hI),e[15]=n.required,e[16]=x):x=e[16];const _=x;let w;e[17]!==_?(w=(R,M)=>_(R,M).nullable().transform(pI),e[17]=_,e[18]=w):w=e[18];const C=w;let b;e[19]!==u?(b=R=>Si({id:u({useCoerce:!0})}).nullable().transform(mI),e[19]=u,e[20]=b):b=e[20];const $=b;let T;e[21]!==l?(T=R=>Si({id:l()}).transform(gI),e[21]=l,e[22]=T):T=e[22];const k=T;let O;e[23]!==a?(O=R=>Si({id:a({useCoerce:!0})}).nullable().transform(vI),e[23]=a,e[24]=O):O=e[24];const j=O;let S;e[25]!==i?(S=R=>Si({id:i()}).transform(bI),e[25]=i,e[26]=S):S=e[26];const E=S,A=xI;let D;return e[27]!==f||e[28]!==v||e[29]!==p||e[30]!==C||e[31]!==_||e[32]!==u||e[33]!==l||e[34]!==$||e[35]!==k||e[36]!==j||e[37]!==E||e[38]!==a||e[39]!==i?(D={zString:a,zStringRequired:i,zNumber:u,zNumberRequired:l,zBool:f,zDate:v,zDateRequired:p,zEnum:C,zEnumRequired:_,zObjectIdInt:$,zObjectIdIntRequired:k,zObjectIdStr:j,zObjectIdStrRequired:E,zFile:A},e[27]=f,e[28]=v,e[29]=p,e[30]=C,e[31]=_,e[32]=u,e[33]=l,e[34]=$,e[35]=k,e[36]=j,e[37]=E,e[38]=a,e[39]=i,e[40]=D):D=e[40],D};function aI(e){return e??null}function sI(e){return e??null}function lI(e){return e??null}function cI(e){return e??null}function uI(e){return e??null}function dI(e){return e??null}function fI(e){return e??null}function hI(e){return e??null}function pI(e){return e??null}function mI(e){return e??null}function gI(e){return e??null}function vI(e){return e??null}function bI(e){return e??null}function yI(e){return Array.from(e??[])}function xI(e){const{required:t,multiple:n,maxFileSize:r}=e;return B$().transform(yI).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 ${ws(r)}.`).transform(o=>(n?o:o==null?void 0:o[0])??null)}const U$=(e,t)=>{const n=Re.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]),m.useEffect(r,i)},H$=()=>{const e=Re.c(4),{user:t}=m.useContext(HC);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},V$=(e,t)=>{const n=Re.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]),m.useEffect(r,i);let o,a;n[3]!==t?(o=()=>t===void 0?wI:(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]),m.useEffect(o,a)};function wI(){}const B0=(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},q$=()=>{const{addNotification:e}=sh(),{texts:{clipboard:t}}=m.useContext(ln);return{copyToClipboard:m.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},ou=()=>{const e=Re.c(7),[t,n]=m.useState(window.innerWidth),[r,i]=m.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]),m.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},Y$=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),G$=m.createContext(void 0),Mx={falseIfNotInit:!1},dh=e=>{const{falseIfNotInit:t}=e===void 0?Mx:e,n=t===void 0?Mx.falseIfNotInit:t,r=m.useContext(G$);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1},_I="_button_1wjon_1",CI="_filled_1wjon_7",$I="_sm_1wjon_13",SI="_md_1wjon_18",TI="_lg_1wjon_23",Ba={button:_I,filled:CI,sm:$I,md:SI,lg:TI},da=e=>{const t=Re.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=Ba[l],p=Ba[u];let g;t[7]!==f||t[8]!==h||t[9]!==p?(g=ue(f,Ba.button,h,p),t[7]=f,t[8]=h,t[9]=p,t[10]=g):g=t[10];let v;return t[11]!==n||t[12]!==i||t[13]!==d||t[14]!==g?(v=y.jsx(Ps.Link,{to:d,className:g,...i,children:n}),t[11]=n,t[12]=i,t[13]=d,t[14]=g,t[15]=v):v=t[15],v}if(i.as==="button"||i.as===void 0){const d=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,f=Ba[l],h=Ba[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=ue(d,Ba.button,f,h),t[16]=d,t[17]=f,t[18]=h,t[19]=p):p=t[19];let g;return t[20]!==n||t[21]!==i||t[22]!==p?(g=y.jsx("button",{type:"button",className:p,...i,children:n}),t[20]=n,t[21]=i,t[22]=p,t[23]=g):g=t[23],g}return null},EI="_button_1r3i0_1",qg={button:EI},fh=e=>{const t=Re.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=ue(c,qg.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(Ps.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=ue(l,qg.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},kI="_icon-button_15e26_1",OI="_sm_15e26_14",MI="_md_15e26_23",AI="_lg_15e26_32",qu={"icon-button":"_icon-button_15e26_1",iconButton:kI,sm:OI,md:MI,lg:AI},au=e=>{const t=Re.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=qu[u];let p;t[7]!==f||t[8]!==h?(p=ue(f,qu.iconButton,h),t[7]=f,t[8]=h,t[9]=p):p=t[9];let g;return t[10]!==n||t[11]!==i||t[12]!==d||t[13]!==p?(g=y.jsx(Ps.Link,{to:d,className:p,...i,children:n}),t[10]=n,t[11]=i,t[12]=d,t[13]=p,t[14]=g):g=t[14],g}if(i.as==="button"||i.as===void 0){const d=`luminus-icon-button btn text-${c} ${r??""}`,f=qu[u];let h;t[15]!==d||t[16]!==f?(h=ue(d,qu.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};var z0={},Kd={exports:{}};Kd.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]",g="[object Map]",v="[object Number]",x="[object Null]",_="[object Object]",w="[object Promise]",C="[object Proxy]",b="[object RegExp]",$="[object Set]",T="[object String]",k="[object Symbol]",O="[object Undefined]",j="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",I="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",P="[object Uint16Array]",z="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,Z={};Z[A]=Z[D]=Z[R]=Z[M]=Z[I]=Z[F]=Z[U]=Z[P]=Z[z]=!0,Z[s]=Z[l]=Z[S]=Z[u]=Z[E]=Z[d]=Z[f]=Z[h]=Z[g]=Z[v]=Z[_]=Z[b]=Z[$]=Z[T]=Z[j]=!1;var J=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,ee=typeof self=="object"&&self&&self.Object===Object&&self,W=J||ee||Function("return this")(),L=t&&!t.nodeType&&t,B=L&&!0&&e&&!e.nodeType&&e,q=B&&B.exports===L,N=q&&J.process,Q=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),X=Q&&Q.isTypedArray;function G(K,ne){for(var fe=-1,Se=K==null?0:K.length,Jt=0,st=[];++fe<Se;){var un=K[fe];ne(un,fe,K)&&(st[Jt++]=un)}return st}function se(K,ne){for(var fe=-1,Se=ne.length,Jt=K.length;++fe<Se;)K[Jt+fe]=ne[fe];return K}function te(K,ne){for(var fe=-1,Se=K==null?0:K.length;++fe<Se;)if(ne(K[fe],fe,K))return!0;return!1}function re(K,ne){for(var fe=-1,Se=Array(K);++fe<K;)Se[fe]=ne(fe);return Se}function ae(K){return function(ne){return K(ne)}}function ce(K,ne){return K.has(ne)}function ve(K,ne){return K==null?void 0:K[ne]}function ge(K){var ne=-1,fe=Array(K.size);return K.forEach(function(Se,Jt){fe[++ne]=[Jt,Se]}),fe}function be(K,ne){return function(fe){return K(ne(fe))}}function Te(K){var ne=-1,fe=Array(K.size);return K.forEach(function(Se){fe[++ne]=Se}),fe}var de=Array.prototype,le=Function.prototype,we=Object.prototype,Be=W["__core-js_shared__"],Bt=le.toString,Le=we.hasOwnProperty,gt=function(){var K=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),_t=we.toString,nn=RegExp("^"+Bt.call(Le).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=q?W.Buffer:void 0,je=W.Symbol,vt=W.Uint8Array,qe=we.propertyIsEnumerable,bt=de.splice,at=je?je.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Ee?Ee.isBuffer:void 0,De=be(Object.keys,Object),We=Da(W,"DataView"),Qe=Da(W,"Map"),Ie=Da(W,"Promise"),Je=Da(W,"Set"),ht=Da(W,"WeakMap"),nt=Da(Object,"create"),Ne=jo(We),ke=jo(Qe),He=jo(Ie),yt=jo(Je),et=jo(ht),pt=je?je.prototype:void 0,tn=pt?pt.valueOf:void 0;function zt(K){var ne=-1,fe=K==null?0:K.length;for(this.clear();++ne<fe;){var Se=K[ne];this.set(Se[0],Se[1])}}function Ht(){this.__data__=nt?nt(null):{},this.size=0}function vn(K){var ne=this.has(K)&&delete this.__data__[K];return this.size-=ne?1:0,ne}function Kt(K){var ne=this.__data__;if(nt){var fe=ne[K];return fe===r?void 0:fe}return Le.call(ne,K)?ne[K]:void 0}function $e(K){var ne=this.__data__;return nt?ne[K]!==void 0:Le.call(ne,K)}function Ze(K,ne){var fe=this.__data__;return this.size+=this.has(K)?0:1,fe[K]=nt&&ne===void 0?r:ne,this}zt.prototype.clear=Ht,zt.prototype.delete=vn,zt.prototype.get=Kt,zt.prototype.has=$e,zt.prototype.set=Ze;function Ct(K){var ne=-1,fe=K==null?0:K.length;for(this.clear();++ne<fe;){var Se=K[ne];this.set(Se[0],Se[1])}}function cn(){this.__data__=[],this.size=0}function Zt(K){var ne=this.__data__,fe=di(ne,K);if(fe<0)return!1;var Se=ne.length-1;return fe==Se?ne.pop():bt.call(ne,fe,1),--this.size,!0}function Pe(K){var ne=this.__data__,fe=di(ne,K);return fe<0?void 0:ne[fe][1]}function Fe(K){return di(this.__data__,K)>-1}function ct(K,ne){var fe=this.__data__,Se=di(fe,K);return Se<0?(++this.size,fe.push([K,ne])):fe[Se][1]=ne,this}Ct.prototype.clear=cn,Ct.prototype.delete=Zt,Ct.prototype.get=Pe,Ct.prototype.has=Fe,Ct.prototype.set=ct;function Rt(K){var ne=-1,fe=K==null?0:K.length;for(this.clear();++ne<fe;){var Se=K[ne];this.set(Se[0],Se[1])}}function $t(){this.size=0,this.__data__={hash:new zt,map:new(Qe||Ct),string:new zt}}function Xe(K){var ne=Hi(this,K).delete(K);return this.size-=ne?1:0,ne}function St(K){return Hi(this,K).get(K)}function kr(K){return Hi(this,K).has(K)}function fn(K,ne){var fe=Hi(this,K),Se=fe.size;return fe.set(K,ne),this.size+=fe.size==Se?0:1,this}Rt.prototype.clear=$t,Rt.prototype.delete=Xe,Rt.prototype.get=St,Rt.prototype.has=kr,Rt.prototype.set=fn;function hn(K){var ne=-1,fe=K==null?0:K.length;for(this.__data__=new Rt;++ne<fe;)this.add(K[ne])}function Pn(K){return this.__data__.set(K,r),this}function ko(K){return this.__data__.has(K)}hn.prototype.add=hn.prototype.push=Pn,hn.prototype.has=ko;function wt(K){var ne=this.__data__=new Ct(K);this.size=ne.size}function Oo(){this.__data__=new Ct,this.size=0}function Me(K){var ne=this.__data__,fe=ne.delete(K);return this.size=ne.size,fe}function Br(K){return this.__data__.get(K)}function Mo(K){return this.__data__.has(K)}function ja(K,ne){var fe=this.__data__;if(fe instanceof Ct){var Se=fe.__data__;if(!Qe||Se.length<n-1)return Se.push([K,ne]),this.size=++fe.size,this;fe=this.__data__=new Rt(Se)}return fe.set(K,ne),this.size=fe.size,this}wt.prototype.clear=Oo,wt.prototype.delete=Me,wt.prototype.get=Br,wt.prototype.has=Mo,wt.prototype.set=ja;function Na(K,ne){var fe=Nu(K),Se=!fe&&uO(K),Jt=!fe&&!Se&&Up(K),st=!fe&&!Se&&!Jt&&dy(K),un=fe||Se||Jt||st,_n=un?re(K.length,String):[],Tn=_n.length;for(var rn in K)Le.call(K,rn)&&!(un&&(rn=="length"||Jt&&(rn=="offset"||rn=="parent")||st&&(rn=="buffer"||rn=="byteLength"||rn=="byteOffset")||oO(rn,Tn)))&&_n.push(rn);return _n}function di(K,ne){for(var fe=K.length;fe--;)if(sy(K[fe][0],ne))return fe;return-1}function Au(K,ne,fe){var Se=ne(K);return Nu(K)?Se:se(Se,fe(K))}function fi(K){return K==null?K===void 0?O:x:at&&at in Object(K)?rO(K):cO(K)}function ll(K){return ul(K)&&fi(K)==s}function Ao(K,ne,fe,Se,Jt){return K===ne?!0:K==null||ne==null||!ul(K)&&!ul(ne)?K!==K&&ne!==ne:cl(K,ne,fe,Se,Ao,Jt)}function cl(K,ne,fe,Se,Jt,st){var un=Nu(K),_n=Nu(ne),Tn=un?l:Vi(K),rn=_n?l:Vi(ne);Tn=Tn==s?_:Tn,rn=rn==s?_:rn;var ar=Tn==_,Or=rn==_,kn=Tn==rn;if(kn&&Up(K)){if(!Up(ne))return!1;un=!0,ar=!1}if(kn&&!ar)return st||(st=new wt),un||dy(K)?Ln(K,ne,fe,Se,Jt,st):zp(K,ne,Tn,fe,Se,Jt,st);if(!(fe&i)){var fr=ar&&Le.call(K,"__wrapped__"),hr=Or&&Le.call(ne,"__wrapped__");if(fr||hr){var qi=fr?K.value():K,hi=hr?ne.value():ne;return st||(st=new wt),Jt(qi,hi,fe,Se,st)}}return kn?(st||(st=new wt),Wp(K,ne,fe,Se,Jt,st)):!1}function Ru(K){if(!uy(K)||sO(K))return!1;var ne=ly(K)?nn:H;return ne.test(jo(K))}function Ro(K){return ul(K)&&cy(K.length)&&!!Z[fi(K)]}function ju(K){if(!lO(K))return De(K);var ne=[];for(var fe in Object(K))Le.call(K,fe)&&fe!="constructor"&&ne.push(fe);return ne}function Ln(K,ne,fe,Se,Jt,st){var un=fe&i,_n=K.length,Tn=ne.length;if(_n!=Tn&&!(un&&Tn>_n))return!1;var rn=st.get(K);if(rn&&st.get(ne))return rn==ne;var ar=-1,Or=!0,kn=fe&o?new hn:void 0;for(st.set(K,ne),st.set(ne,K);++ar<_n;){var fr=K[ar],hr=ne[ar];if(Se)var qi=un?Se(hr,fr,ar,ne,K,st):Se(fr,hr,ar,K,ne,st);if(qi!==void 0){if(qi)continue;Or=!1;break}if(kn){if(!te(ne,function(hi,No){if(!ce(kn,No)&&(fr===hi||Jt(fr,hi,fe,Se,st)))return kn.push(No)})){Or=!1;break}}else if(!(fr===hr||Jt(fr,hr,fe,Se,st))){Or=!1;break}}return st.delete(K),st.delete(ne),Or}function zp(K,ne,fe,Se,Jt,st,un){switch(fe){case E:if(K.byteLength!=ne.byteLength||K.byteOffset!=ne.byteOffset)return!1;K=K.buffer,ne=ne.buffer;case S:return!(K.byteLength!=ne.byteLength||!st(new vt(K),new vt(ne)));case u:case d:case v:return sy(+K,+ne);case f:return K.name==ne.name&&K.message==ne.message;case b:case T:return K==ne+"";case g:var _n=ge;case $:var Tn=Se&i;if(_n||(_n=Te),K.size!=ne.size&&!Tn)return!1;var rn=un.get(K);if(rn)return rn==ne;Se|=o,un.set(K,ne);var ar=Ln(_n(K),_n(ne),Se,Jt,st,un);return un.delete(K),ar;case k:if(tn)return tn.call(K)==tn.call(ne)}return!1}function Wp(K,ne,fe,Se,Jt,st){var un=fe&i,_n=zr(K),Tn=_n.length,rn=zr(ne),ar=rn.length;if(Tn!=ar&&!un)return!1;for(var Or=Tn;Or--;){var kn=_n[Or];if(!(un?kn in ne:Le.call(ne,kn)))return!1}var fr=st.get(K);if(fr&&st.get(ne))return fr==ne;var hr=!0;st.set(K,ne),st.set(ne,K);for(var qi=un;++Or<Tn;){kn=_n[Or];var hi=K[kn],No=ne[kn];if(Se)var fy=un?Se(No,hi,kn,ne,K,st):Se(hi,No,kn,K,ne,st);if(!(fy===void 0?hi===No||Jt(hi,No,fe,Se,st):fy)){hr=!1;break}qi||(qi=kn=="constructor")}if(hr&&!qi){var Du=K.constructor,Iu=ne.constructor;Du!=Iu&&"constructor"in K&&"constructor"in ne&&!(typeof Du=="function"&&Du instanceof Du&&typeof Iu=="function"&&Iu instanceof Iu)&&(hr=!1)}return st.delete(K),st.delete(ne),hr}function zr(K){return Au(K,hO,iO)}function Hi(K,ne){var fe=K.__data__;return aO(ne)?fe[typeof ne=="string"?"string":"hash"]:fe.map}function Da(K,ne){var fe=ve(K,ne);return Ru(fe)?fe:void 0}function rO(K){var ne=Le.call(K,at),fe=K[at];try{K[at]=void 0;var Se=!0}catch{}var Jt=_t.call(K);return Se&&(ne?K[at]=fe:delete K[at]),Jt}var iO=At?function(K){return K==null?[]:(K=Object(K),G(At(K),function(ne){return qe.call(K,ne)}))}:pO,Vi=fi;(We&&Vi(new We(new ArrayBuffer(1)))!=E||Qe&&Vi(new Qe)!=g||Ie&&Vi(Ie.resolve())!=w||Je&&Vi(new Je)!=$||ht&&Vi(new ht)!=j)&&(Vi=function(K){var ne=fi(K),fe=ne==_?K.constructor:void 0,Se=fe?jo(fe):"";if(Se)switch(Se){case Ne:return E;case ke:return g;case He:return w;case yt:return $;case et:return j}return ne});function oO(K,ne){return ne=ne??a,!!ne&&(typeof K=="number"||Y.test(K))&&K>-1&&K%1==0&&K<ne}function aO(K){var ne=typeof K;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?K!=="__proto__":K===null}function sO(K){return!!gt&> in K}function lO(K){var ne=K&&K.constructor,fe=typeof ne=="function"&&ne.prototype||we;return K===fe}function cO(K){return _t.call(K)}function jo(K){if(K!=null){try{return Bt.call(K)}catch{}try{return K+""}catch{}}return""}function sy(K,ne){return K===ne||K!==K&&ne!==ne}var uO=ll(function(){return arguments}())?ll:function(K){return ul(K)&&Le.call(K,"callee")&&!qe.call(K,"callee")},Nu=Array.isArray;function dO(K){return K!=null&&cy(K.length)&&!ly(K)}var Up=Ke||mO;function fO(K,ne){return Ao(K,ne)}function ly(K){if(!uy(K))return!1;var ne=fi(K);return ne==h||ne==p||ne==c||ne==C}function cy(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=a}function uy(K){var ne=typeof K;return K!=null&&(ne=="object"||ne=="function")}function ul(K){return K!=null&&typeof K=="object"}var dy=X?ae(X):Ro;function hO(K){return dO(K)?Na(K):ju(K)}function pO(){return[]}function mO(){return!1}e.exports=fO})(Kd,Kd.exports);var RI=Kd.exports,K$={exports:{}};(function(e,t){var n=function(){var r=function(b,$){var T=236,k=17,O=b,j=o[$],S=null,E=0,A=null,D=[],R={},M=function(W,L){E=O*4+17,S=function(B){for(var q=new Array(B),N=0;N<B;N+=1){q[N]=new Array(B);for(var Q=0;Q<B;Q+=1)q[N][Q]=null}return q}(E),I(0,0),I(E-7,0),I(0,E-7),P(),U(),V(W,L),O>=7&&z(W),A==null&&(A=Z(O,j,D)),H(A,L)},I=function(W,L){for(var B=-1;B<=7;B+=1)if(!(W+B<=-1||E<=W+B))for(var q=-1;q<=7;q+=1)L+q<=-1||E<=L+q||(0<=B&&B<=6&&(q==0||q==6)||0<=q&&q<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=q&&q<=4?S[W+B][L+q]=!0:S[W+B][L+q]=!1)},F=function(){for(var W=0,L=0,B=0;B<8;B+=1){M(!0,B);var q=s.getLostPoint(R);(B==0||W>q)&&(W=q,L=B)}return L},U=function(){for(var W=8;W<E-8;W+=1)S[W][6]==null&&(S[W][6]=W%2==0);for(var L=8;L<E-8;L+=1)S[6][L]==null&&(S[6][L]=L%2==0)},P=function(){for(var W=s.getPatternPosition(O),L=0;L<W.length;L+=1)for(var B=0;B<W.length;B+=1){var q=W[L],N=W[B];if(S[q][N]==null)for(var Q=-2;Q<=2;Q+=1)for(var X=-2;X<=2;X+=1)Q==-2||Q==2||X==-2||X==2||Q==0&&X==0?S[q+Q][N+X]=!0:S[q+Q][N+X]=!1}},z=function(W){for(var L=s.getBCHTypeNumber(O),B=0;B<18;B+=1){var q=!W&&(L>>B&1)==1;S[Math.floor(B/3)][B%3+E-8-3]=q}for(var B=0;B<18;B+=1){var q=!W&&(L>>B&1)==1;S[B%3+E-8-3][Math.floor(B/3)]=q}},V=function(W,L){for(var B=j<<3|L,q=s.getBCHTypeInfo(B),N=0;N<15;N+=1){var Q=!W&&(q>>N&1)==1;N<6?S[N][8]=Q:N<8?S[N+1][8]=Q:S[E-15+N][8]=Q}for(var N=0;N<15;N+=1){var Q=!W&&(q>>N&1)==1;N<8?S[8][E-N-1]=Q:N<9?S[8][15-N-1+1]=Q:S[8][15-N-1]=Q}S[E-8][8]=!W},H=function(W,L){for(var B=-1,q=E-1,N=7,Q=0,X=s.getMaskFunction(L),G=E-1;G>0;G-=2)for(G==6&&(G-=1);;){for(var se=0;se<2;se+=1)if(S[q][G-se]==null){var te=!1;Q<W.length&&(te=(W[Q]>>>N&1)==1);var re=X(q,G-se);re&&(te=!te),S[q][G-se]=te,N-=1,N==-1&&(Q+=1,N=7)}if(q+=B,q<0||E<=q){q-=B,B=-B;break}}},Y=function(W,L){for(var B=0,q=0,N=0,Q=new Array(L.length),X=new Array(L.length),G=0;G<L.length;G+=1){var se=L[G].dataCount,te=L[G].totalCount-se;q=Math.max(q,se),N=Math.max(N,te),Q[G]=new Array(se);for(var re=0;re<Q[G].length;re+=1)Q[G][re]=255&W.getBuffer()[re+B];B+=se;var ae=s.getErrorCorrectPolynomial(te),ce=c(Q[G],ae.getLength()-1),ve=ce.mod(ae);X[G]=new Array(ae.getLength()-1);for(var re=0;re<X[G].length;re+=1){var ge=re+ve.getLength()-X[G].length;X[G][re]=ge>=0?ve.getAt(ge):0}}for(var be=0,re=0;re<L.length;re+=1)be+=L[re].totalCount;for(var Te=new Array(be),de=0,re=0;re<q;re+=1)for(var G=0;G<L.length;G+=1)re<Q[G].length&&(Te[de]=Q[G][re],de+=1);for(var re=0;re<N;re+=1)for(var G=0;G<L.length;G+=1)re<X[G].length&&(Te[de]=X[G][re],de+=1);return Te},Z=function(W,L,B){for(var q=u.getRSBlocks(W,L),N=d(),Q=0;Q<B.length;Q+=1){var X=B[Q];N.put(X.getMode(),4),N.put(X.getLength(),s.getLengthInBits(X.getMode(),W)),X.write(N)}for(var G=0,Q=0;Q<q.length;Q+=1)G+=q[Q].dataCount;if(N.getLengthInBits()>G*8)throw"code length overflow. ("+N.getLengthInBits()+">"+G*8+")";for(N.getLengthInBits()+4<=G*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=G*8||(N.put(T,8),N.getLengthInBits()>=G*8));)N.put(k,8);return Y(N,q)};R.addData=function(W,L){L=L||"Byte";var B=null;switch(L){case"Numeric":B=f(W);break;case"Alphanumeric":B=h(W);break;case"Byte":B=p(W);break;case"Kanji":B=g(W);break;default:throw"mode:"+L}D.push(B),A=null},R.isDark=function(W,L){if(W<0||E<=W||L<0||E<=L)throw W+","+L;return S[W][L]},R.getModuleCount=function(){return E},R.make=function(){if(O<1){for(var W=1;W<40;W++){for(var L=u.getRSBlocks(W,j),B=d(),q=0;q<D.length;q++){var N=D[q];B.put(N.getMode(),4),B.put(N.getLength(),s.getLengthInBits(N.getMode(),W)),N.write(B)}for(var Q=0,q=0;q<L.length;q++)Q+=L[q].dataCount;if(B.getLengthInBits()<=Q*8)break}O=W}M(!1,F())},R.createTableTag=function(W,L){W=W||2,L=typeof L>"u"?W*4:L;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+L+"px;",B+='">',B+="<tbody>";for(var q=0;q<R.getModuleCount();q+=1){B+="<tr>";for(var N=0;N<R.getModuleCount();N+=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+=R.isDark(q,N)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},R.createSvgTag=function(W,L,B,q){var N={};typeof arguments[0]=="object"&&(N=arguments[0],W=N.cellSize,L=N.margin,B=N.alt,q=N.title),W=W||2,L=typeof L>"u"?W*4:L,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,q=typeof q=="string"?{text:q}:q||{},q.text=q.text||null,q.id=q.text?q.id||"qrcode-title":null;var Q=R.getModuleCount()*W+L*2,X,G,se,te,re="",ae;for(ae="l"+W+",0 0,"+W+" -"+W+",0 0,-"+W+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=N.scalable?"":' width="'+Q+'px" height="'+Q+'px"',re+=' viewBox="0 0 '+Q+" "+Q+'" ',re+=' preserveAspectRatio="xMinYMin meet"',re+=q.text||B.text?' role="img" aria-labelledby="'+J([q.id,B.id].join(" ").trim())+'"':"",re+=">",re+=q.text?'<title id="'+J(q.id)+'">'+J(q.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="',se=0;se<R.getModuleCount();se+=1)for(te=se*W+L,X=0;X<R.getModuleCount();X+=1)R.isDark(se,X)&&(G=X*W+L,re+="M"+G+","+te+ae);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},R.createDataURL=function(W,L){W=W||2,L=typeof L>"u"?W*4:L;var B=R.getModuleCount()*W+L*2,q=L,N=B-L;return C(B,B,function(Q,X){if(q<=Q&&Q<N&&q<=X&&X<N){var G=Math.floor((Q-q)/W),se=Math.floor((X-q)/W);return R.isDark(se,G)?0:1}else return 1})},R.createImgTag=function(W,L,B){W=W||2,L=typeof L>"u"?W*4:L;var q=R.getModuleCount()*W+L*2,N="";return N+="<img",N+=' src="',N+=R.createDataURL(W,L),N+='"',N+=' width="',N+=q,N+='"',N+=' height="',N+=q,N+='"',B&&(N+=' alt="',N+=J(B),N+='"'),N+="/>",N};var J=function(W){for(var L="",B=0;B<W.length;B+=1){var q=W.charAt(B);switch(q){case"<":L+="<";break;case">":L+=">";break;case"&":L+="&";break;case'"':L+=""";break;default:L+=q;break}}return L},ee=function(W){var L=1;W=typeof W>"u"?L*2:W;var B=R.getModuleCount()*L+W*2,q=W,N=B-W,Q,X,G,se,te,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},ae={"██":"▀","█ ":"▀"," █":" "," ":" "},ce="";for(Q=0;Q<B;Q+=2){for(G=Math.floor((Q-q)/L),se=Math.floor((Q+1-q)/L),X=0;X<B;X+=1)te="█",q<=X&&X<N&&q<=Q&&Q<N&&R.isDark(G,Math.floor((X-q)/L))&&(te=" "),q<=X&&X<N&&q<=Q+1&&Q+1<N&&R.isDark(se,Math.floor((X-q)/L))?te+=" ":te+="█",ce+=W<1&&Q+1>=N?ae[te]:re[te];ce+=`
|
|
245
|
-
`}return B%2&&W>0?ce.substring(0,ce.length-B-1)+Array(B+1).join("▀"):ce.substring(0,ce.length-1)};return R.createASCII=function(W,L){if(W=W||1,W<2)return ee(L);W-=1,L=typeof L>"u"?W*2:L;var B=R.getModuleCount()*W+L*2,q=L,N=B-L,Q,X,G,se,te=Array(W+1).join("██"),re=Array(W+1).join(" "),ae="",ce="";for(Q=0;Q<B;Q+=1){for(G=Math.floor((Q-q)/W),ce="",X=0;X<B;X+=1)se=1,q<=X&&X<N&&q<=Q&&Q<N&&R.isDark(G,Math.floor((X-q)/W))&&(se=0),ce+=se?te:re;for(G=0;G<W;G+=1)ae+=ce+`
|
|
246
|
-
`}return ae.substring(0,ae.length-1)},R.renderTo2dContext=function(W,L){L=L||2;for(var B=R.getModuleCount(),q=0;q<B;q++)for(var N=0;N<B;N++)W.fillStyle=R.isDark(q,N)?"black":"white",W.fillRect(q*L,N*L,L,L)},R};r.stringToBytesFuncs={default:function(b){for(var $=[],T=0;T<b.length;T+=1){var k=b.charCodeAt(T);$.push(k&255)}return $}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,$){var T=function(){for(var O=_(b),j=function(){var U=O.read();if(U==-1)throw"eof";return U},S=0,E={};;){var A=O.read();if(A==-1)break;var D=j(),R=j(),M=j(),I=String.fromCharCode(A<<8|D),F=R<<8|M;E[I]=F,S+=1}if(S!=$)throw S+" != "+$;return E}(),k=63;return function(O){for(var j=[],S=0;S<O.length;S+=1){var E=O.charCodeAt(S);if(E<128)j.push(E);else{var A=T[O.charAt(S)];typeof A=="number"?(A&255)==A?j.push(A):(j.push(A>>>8),j.push(A&255)):j.push(k)}}return j}};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]],$=1335,T=7973,k=21522,O={},j=function(S){for(var E=0;S!=0;)E+=1,S>>>=1;return E};return O.getBCHTypeInfo=function(S){for(var E=S<<10;j(E)-j($)>=0;)E^=$<<j(E)-j($);return(S<<10|E)^k},O.getBCHTypeNumber=function(S){for(var E=S<<12;j(E)-j(T)>=0;)E^=T<<j(E)-j(T);return S<<12|E},O.getPatternPosition=function(S){return b[S-1]},O.getMaskFunction=function(S){switch(S){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:"+S}},O.getErrorCorrectPolynomial=function(S){for(var E=c([1],0),A=0;A<S;A+=1)E=E.multiply(c([1,l.gexp(A)],0));return E},O.getLengthInBits=function(S,E){if(1<=E&&E<10)switch(S){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:"+S}else if(E<27)switch(S){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:"+S}else if(E<41)switch(S){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:"+S}else throw"type:"+E},O.getLostPoint=function(S){for(var E=S.getModuleCount(),A=0,D=0;D<E;D+=1)for(var R=0;R<E;R+=1){for(var M=0,I=S.isDark(D,R),F=-1;F<=1;F+=1)if(!(D+F<0||E<=D+F))for(var U=-1;U<=1;U+=1)R+U<0||E<=R+U||F==0&&U==0||I==S.isDark(D+F,R+U)&&(M+=1);M>5&&(A+=3+M-5)}for(var D=0;D<E-1;D+=1)for(var R=0;R<E-1;R+=1){var P=0;S.isDark(D,R)&&(P+=1),S.isDark(D+1,R)&&(P+=1),S.isDark(D,R+1)&&(P+=1),S.isDark(D+1,R+1)&&(P+=1),(P==0||P==4)&&(A+=3)}for(var D=0;D<E;D+=1)for(var R=0;R<E-6;R+=1)S.isDark(D,R)&&!S.isDark(D,R+1)&&S.isDark(D,R+2)&&S.isDark(D,R+3)&&S.isDark(D,R+4)&&!S.isDark(D,R+5)&&S.isDark(D,R+6)&&(A+=40);for(var R=0;R<E;R+=1)for(var D=0;D<E-6;D+=1)S.isDark(D,R)&&!S.isDark(D+1,R)&&S.isDark(D+2,R)&&S.isDark(D+3,R)&&S.isDark(D+4,R)&&!S.isDark(D+5,R)&&S.isDark(D+6,R)&&(A+=40);for(var z=0,R=0;R<E;R+=1)for(var D=0;D<E;D+=1)S.isDark(D,R)&&(z+=1);var V=Math.abs(100*z/E/E-50)/5;return A+=V*10,A},O}(),l=function(){for(var b=new Array(256),$=new Array(256),T=0;T<8;T+=1)b[T]=1<<T;for(var T=8;T<256;T+=1)b[T]=b[T-4]^b[T-5]^b[T-6]^b[T-8];for(var T=0;T<255;T+=1)$[b[T]]=T;var k={};return k.glog=function(O){if(O<1)throw"glog("+O+")";return $[O]},k.gexp=function(O){for(;O<0;)O+=255;for(;O>=256;)O-=255;return b[O]},k}();function c(b,$){if(typeof b.length>"u")throw b.length+"/"+$;var T=function(){for(var O=0;O<b.length&&b[O]==0;)O+=1;for(var j=new Array(b.length-O+$),S=0;S<b.length-O;S+=1)j[S]=b[S+O];return j}(),k={};return k.getAt=function(O){return T[O]},k.getLength=function(){return T.length},k.multiply=function(O){for(var j=new Array(k.getLength()+O.getLength()-1),S=0;S<k.getLength();S+=1)for(var E=0;E<O.getLength();E+=1)j[S+E]^=l.gexp(l.glog(k.getAt(S))+l.glog(O.getAt(E)));return c(j,0)},k.mod=function(O){if(k.getLength()-O.getLength()<0)return k;for(var j=l.glog(k.getAt(0))-l.glog(O.getAt(0)),S=new Array(k.getLength()),E=0;E<k.getLength();E+=1)S[E]=k.getAt(E);for(var E=0;E<O.getLength();E+=1)S[E]^=l.gexp(l.glog(O.getAt(E))+j);return c(S,0).mod(O)},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]],$=function(O,j){var S={};return S.totalCount=O,S.dataCount=j,S},T={},k=function(O,j){switch(j){case o.L:return b[(O-1)*4+0];case o.M:return b[(O-1)*4+1];case o.Q:return b[(O-1)*4+2];case o.H:return b[(O-1)*4+3];default:return}};return T.getRSBlocks=function(O,j){var S=k(O,j);if(typeof S>"u")throw"bad rs block @ typeNumber:"+O+"/errorCorrectionLevel:"+j;for(var E=S.length/3,A=[],D=0;D<E;D+=1)for(var R=S[D*3+0],M=S[D*3+1],I=S[D*3+2],F=0;F<R;F+=1)A.push($(M,I));return A},T}(),d=function(){var b=[],$=0,T={};return T.getBuffer=function(){return b},T.getAt=function(k){var O=Math.floor(k/8);return(b[O]>>>7-k%8&1)==1},T.put=function(k,O){for(var j=0;j<O;j+=1)T.putBit((k>>>O-j-1&1)==1)},T.getLengthInBits=function(){return $},T.putBit=function(k){var O=Math.floor($/8);b.length<=O&&b.push(0),k&&(b[O]|=128>>>$%8),$+=1},T},f=function(b){var $=i.MODE_NUMBER,T=b,k={};k.getMode=function(){return $},k.getLength=function(S){return T.length},k.write=function(S){for(var E=T,A=0;A+2<E.length;)S.put(O(E.substring(A,A+3)),10),A+=3;A<E.length&&(E.length-A==1?S.put(O(E.substring(A,A+1)),4):E.length-A==2&&S.put(O(E.substring(A,A+2)),7))};var O=function(S){for(var E=0,A=0;A<S.length;A+=1)E=E*10+j(S.charAt(A));return E},j=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return k},h=function(b){var $=i.MODE_ALPHA_NUM,T=b,k={};k.getMode=function(){return $},k.getLength=function(j){return T.length},k.write=function(j){for(var S=T,E=0;E+1<S.length;)j.put(O(S.charAt(E))*45+O(S.charAt(E+1)),11),E+=2;E<S.length&&j.put(O(S.charAt(E)),6)};var O=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-48;if("A"<=j&&j<="Z")return j.charCodeAt(0)-65+10;switch(j){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 :"+j}};return k},p=function(b){var $=i.MODE_8BIT_BYTE,T=r.stringToBytes(b),k={};return k.getMode=function(){return $},k.getLength=function(O){return T.length},k.write=function(O){for(var j=0;j<T.length;j+=1)O.put(T[j],8)},k},g=function(b){var $=i.MODE_KANJI,T=r.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(j,S){var E=T(j);if(E.length!=2||(E[0]<<8|E[1])!=S)throw"sjis not supported."})("友",38726);var k=T(b),O={};return O.getMode=function(){return $},O.getLength=function(j){return~~(k.length/2)},O.write=function(j){for(var S=k,E=0;E+1<S.length;){var A=(255&S[E])<<8|255&S[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),j.put(A,13),E+=2}if(E<S.length)throw"illegal char at "+(E+1)},O},v=function(){var b=[],$={};return $.writeByte=function(T){b.push(T&255)},$.writeShort=function(T){$.writeByte(T),$.writeByte(T>>>8)},$.writeBytes=function(T,k,O){k=k||0,O=O||T.length;for(var j=0;j<O;j+=1)$.writeByte(T[j+k])},$.writeString=function(T){for(var k=0;k<T.length;k+=1)$.writeByte(T.charCodeAt(k))},$.toByteArray=function(){return b},$.toString=function(){var T="";T+="[";for(var k=0;k<b.length;k+=1)k>0&&(T+=","),T+=b[k];return T+="]",T},$},x=function(){var b=0,$=0,T=0,k="",O={},j=function(E){k+=String.fromCharCode(S(E&63))},S=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 O.writeByte=function(E){for(b=b<<8|E&255,$+=8,T+=1;$>=6;)j(b>>>$-6),$-=6},O.flush=function(){if($>0&&(j(b<<6-$),b=0,$=0),T%3!=0)for(var E=3-T%3,A=0;A<E;A+=1)k+="="},O.toString=function(){return k},O},_=function(b){var $=b,T=0,k=0,O=0,j={};j.read=function(){for(;O<8;){if(T>=$.length){if(O==0)return-1;throw"unexpected end of file./"+O}var E=$.charAt(T);if(T+=1,E=="=")return O=0,-1;if(E.match(/^\s$/))continue;k=k<<6|S(E.charCodeAt(0)),O+=6}var A=k>>>O-8&255;return O-=8,A};var S=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 j},w=function(b,$){var T=b,k=$,O=new Array(b*$),j={};j.setPixel=function(D,R,M){O[R*T+D]=M},j.write=function(D){D.writeString("GIF87a"),D.writeShort(T),D.writeShort(k),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(T),D.writeShort(k),D.writeByte(0);var R=2,M=E(R);D.writeByte(R);for(var I=0;M.length-I>255;)D.writeByte(255),D.writeBytes(M,I,255),I+=255;D.writeByte(M.length-I),D.writeBytes(M,I,M.length-I),D.writeByte(0),D.writeString(";")};var S=function(D){var R=D,M=0,I=0,F={};return F.write=function(U,P){if(U>>>P)throw"length over";for(;M+P>=8;)R.writeByte(255&(U<<M|I)),P-=8-M,U>>>=8-M,I=0,M=0;I=U<<M|I,M=M+P},F.flush=function(){M>0&&R.writeByte(I)},F},E=function(D){for(var R=1<<D,M=(1<<D)+1,I=D+1,F=A(),U=0;U<R;U+=1)F.add(String.fromCharCode(U));F.add(String.fromCharCode(R)),F.add(String.fromCharCode(M));var P=v(),z=S(P);z.write(R,I);var V=0,H=String.fromCharCode(O[V]);for(V+=1;V<O.length;){var Y=String.fromCharCode(O[V]);V+=1,F.contains(H+Y)?H=H+Y:(z.write(F.indexOf(H),I),F.size()<4095&&(F.size()==1<<I&&(I+=1),F.add(H+Y)),H=Y)}return z.write(F.indexOf(H),I),z.write(M,I),z.flush(),P.toByteArray()},A=function(){var D={},R=0,M={};return M.add=function(I){if(M.contains(I))throw"dup key:"+I;D[I]=R,R+=1},M.size=function(){return R},M.indexOf=function(I){return D[I]},M.contains=function(I){return typeof D[I]<"u"},M};return j},C=function(b,$,T){for(var k=w(b,$),O=0;O<$;O+=1)for(var j=0;j<b;j+=1)k.setPixel(j,O,T(j,O));var S=v();k.write(S);for(var E=x(),A=S.toByteArray(),D=0;D<A.length;D+=1)E.writeByte(A[D]);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})})(K$);var jI=K$.exports,NI=Zn&&Zn.__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)}}(),Yg=Zn&&Zn.__assign||function(){return Yg=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},Yg.apply(this,arguments)};Object.defineProperty(z0,"__esModule",{value:!0});exports.QRCode_1=z0.QRCode=void 0;var DI=RI,II=jI,fm=m,PI=function(e){NI(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=fm.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,g=a*r+i,v=r*7;this.drawRoundedSquare(c,g,p,v,f,u,!1,n),v=r*3,p+=r*2,g+=r*2,this.drawRoundedSquare(c,g,p,v,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!DI(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,g=r.eyeColor,v=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,$=II(0,o);$.addData(this.utf16to8(i)),$.make();var T=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=T.getContext("2d"),O=x+2*_,j=$.getModuleCount(),S=x/j,E=window.devicePixelRatio||1;T.height=T.width=O*E,k.scale(E,E),k.fillStyle=s,k.fillRect(0,0,O,O);var A=_,D=[{row:0,col:0},{row:0,col:j-7},{row:j-7,col:0}];if(k.strokeStyle=l,h==="dots"){k.fillStyle=l;for(var R=S/2,M=0;M<j;M++)for(var I=0;I<j;I++)$.isDark(M,I)&&!this.isInPositioninZone(M,I,D)&&(k.beginPath(),k.arc(Math.round(I*S)+R+A,Math.round(M*S)+R+A,R/100*75,0,2*Math.PI,!1),k.closePath(),k.fill())}else if(h==="fluid"){for(var R=Math.ceil(S/2),M=0;M<j;M++)for(var I=0;I<j;I++)if($.isDark(M,I)&&!this.isInPositioninZone(M,I,D)){var F=[!1,!1,!1,!1];M>0&&!$.isDark(M-1,I)&&I>0&&!$.isDark(M,I-1)&&(F[0]=!0),M>0&&!$.isDark(M-1,I)&&I<j-1&&!$.isDark(M,I+1)&&(F[1]=!0),M<j-1&&!$.isDark(M+1,I)&&I<j-1&&!$.isDark(M,I+1)&&(F[2]=!0),M<j-1&&!$.isDark(M+1,I)&&I>0&&!$.isDark(M,I-1)&&(F[3]=!0);var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);k.fillStyle=l,k.beginPath(),k.arc(Math.round(I*S)+R+A,Math.round(M*S)+R+A,R,0,2*Math.PI,!1),k.closePath(),k.fill(),F[0]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A,U/2,P/2),F[1]||k.fillRect(Math.round(I*S)+A+Math.floor(U/2),Math.round(M*S)+A,U/2,P/2),F[2]||k.fillRect(Math.round(I*S)+A+Math.floor(U/2),Math.round(M*S)+A+Math.floor(P/2),U/2,P/2),F[3]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A+Math.floor(P/2),U/2,P/2)}}else for(var M=0;M<j;M++)for(var I=0;I<j;I++)if($.isDark(M,I)&&!this.isInPositioninZone(M,I,D)){k.fillStyle=l;var U=Math.ceil((I+1)*S)-Math.floor(I*S),P=Math.ceil((M+1)*S)-Math.floor(M*S);k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A,U,P)}for(var z=0;z<3;z++){var V=D[z],M=V.row,I=V.col,H=p,Y=void 0;Array.isArray(H)&&(H=H[z]),typeof H=="number"&&(H=[H,H,H,H]),g?Array.isArray(g)?Y=g[z]:Y=g:Y=l,this.drawPositioningPattern(k,S,A,M,I,Y,H)}if(c){var Z=new Image;a&&(Z.crossOrigin="Anonymous"),Z.onload=function(J){k.save();var ee=w||x*.2,W=C||ee,L=(x-ee)/2,B=(x-W)/2;if(f||b){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var q=ee+2*b,N=W+2*b,Q=L+A-b,X=B+A-b;if(v==="circle"){var G=Q+q/2,se=X+N/2;k.ellipse(G,se,q/2,N/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(Q,X,q,N)}k.globalAlpha=u,k.drawImage(Z,L+A,B+A,ee,W),k.restore(),d&&d(J)},Z.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return fm.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:Yg({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}(fm.Component);exports.QRCode_1=z0.QRCode=PI;const LI="_floating-label_3xm9u_1",FI="_without-label_3xm9u_21",BI="_floating-label-check_3xm9u_184",hm={floatingLabel:LI,withoutLabel:FI,floatingLabelCheck:BI},zI=e=>{const t=Re.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?y.jsx(O0,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},hh=({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}=m.useContext(ln),h=d.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?y.jsx("span",{className:ue("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:ue("luminus-floating-label-check",hm.floatingLabelCheck),children:n}):y.jsx(zI,{hint:l,children:y.jsx(x0,{ref:e,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:ue(`luminus-floating-label ${r??""}`,hm.floatingLabel,{[a??""]:a},{[hm.withoutLabel]:d.withoutLabel}),children:n})})};hh.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",vl={rowLabelInput:WI,label:UI,inputContainer:HI,keepCheckLabel:VI,isInvalid:qI},su=({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}=m.useContext(ln),h=d.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:ue("label col-6",{"col-12":l},vl.label),children:y.jsxs(zn,{variant:"form-label",className:ue("d-flex gap-1 align-items-center",a?"text-danger":""),children:[d.label,r?y.jsx("span",{className:ue("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:ue("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[vl.isInvalid]:a},{[o??""]:o},{"d-none":t},vl.rowLabelInput),children:[u?y.jsx(O0,{text:u,placement:"top",children:h}):h,y.jsx("div",{className:ue("input-container",vl.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[vl.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};su.displayName="RowLabelInput";const Z$=e=>{const t=Re.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};Z$.displayName="NoInputContainer";const X$=e=>{const t=Re.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(Ps.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},Q$=({InputContainer:e=hh,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:g,minLength:v,maxLength:x,noSelectOnFocus:_,hint:w,onConfirm:C,autoComplete:b})=>{var P,z,V;const $=t==="number",T=m.useCallback(()=>{if(!r)return;const H=f??null;r($?H?Number(H):null:(H==null?void 0:H.toString())??"")},[f,$,r]),k=m.useRef(null),[O,j]=m.useState((n==null?void 0:n.toString())??""),S=m.useCallback(H=>{const Y=H;r&&r($?Y==null||Y===""?null:Number(Y):Y||null)},[$,r]),E=m.useCallback(H=>{var Z;const Y=(Z=H.target)==null?void 0:Z.value;if(!i){S(Y);return}j(Y),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{S(Y)},i)},[i,S]),A=m.useMemo(()=>{if(C!==void 0)return H=>{H.key==="Enter"&&C&&C()}},[C]);m.useEffect(()=>{j(n===null?"":n.toString())},[n]);const[D,R]=m.useState(!1),M=B0(t,n?n.toString()??null:null,D),I=m.useRef(null),F=(((P=I.current)==null?void 0:P.scrollWidth)??0)>(((z=I.current)==null?void 0:z.clientWidth)??0),U=(V=I.current)==null?void 0:V.getBoundingClientRect();return y.jsxs(e,{withoutLabel:a,label:o??"",hidden:c,className:p,hint:w,disabled:u,children:[y.jsx(si.Control,{type:M,placeholder:s??o,size:l,value:i?O:(n==null?void 0:n.toString())??"",onChange:E,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:H=>{R(!0),!_&&H.target.select()},onBlur:()=>R(!1),onKeyDown:A,step:g,minLength:v,maxLength:x,autoComplete:b,ref:I}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(au,{color:"secondary",size:"sm",onClick:T,children:y.jsx(Qc,{})})}),F?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((U==null?void 0:U.top)??0)+((U==null?void 0:U.height)??0),left:(U==null?void 0:U.left)??0},children:i?O:(n==null?void 0:n.toString())??""}):null]})},J$=e=>{const t=Re.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},eS=({InputContainer:e=hh,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:g,hint:v,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:b,noRemoveButton:$})=>{const{texts:{customSelect:T}}=m.useContext(ln),[k,O]=m.useState(!1),[j,S]=m.useState(""),E=m.useCallback(U=>{S(U)},[]),A=m.useMemo(()=>n.find(U=>U.id===t)??null,[n,t]),D=m.useCallback(U=>{var P;return U===null?"":!U.name||U.name.length===0?((P=U.id)==null?void 0:P.toString())??"":f?`${U.name} (${U.id})`:U.name},[f]),R=m.useMemo(()=>{const U=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(U.some(P=>P.id===t)||U.push({id:t,name:p})),U.map(P=>({id:P.id,name:D(P)})).filter(P=>A0(P.name,j)).sort((P,z)=>u?0:(P.name??"").localeCompare(z.name??""))},[n,u,j,D,p,t]),M=m.useCallback(U=>{var P;r&&r((U==null?void 0:U.id)===void 0||(U==null?void 0:U.id)===null?null:a?Number(U.id):(P=U.id)==null?void 0:P.toString())},[r,a]),I=m.useCallback(U=>{O(!1),M(U)},[M]),F=m.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:o,label:i??"",hidden:l,inputContainerClassName:ue({"luminus-dropdown-select-open":k}),className:d,hint:v,disabled:c,children:[y.jsx(X$,{currentSelection:A,selectedItemNavigateTo:b,children:y.jsx(J$,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:y.jsxs(si.Select,{ref:F,size:s,value:t??"",onMouseDown:U=>{U.currentTarget.focus(),U.preventDefault()},onClick:()=>{!c&&O(!0)},onChange:()=>{},className:ue("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:D(A)})]})})}),F.current&&y.jsx(m5,{show:k,onCancel:()=>O(!1),items:R,currentSelection:A??null,onSelectionChange:I,onSearchQueryChange:E,texts:T,disabled:c,inputRef:F,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:g,addNewOptionPath:x,refreshOptions:_,noRemoveButton:$})]})})};function YI(e){return dt({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 GI(e){return dt({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 KI(e){return dt({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 ZI(e){return dt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const W0=e=>{const t=Re.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:g,hint:v,className:x}=e,_=n===void 0?su:n,{control:w,getValues:C,setValue:b}=dn.useFormContext(),{isSubmitted:$}=dn.useFormState();let T;t[0]===Symbol.for("react.memo_cache_sentinel")?(T={falseIfNotInit:!0},t[0]=T):T=t[0];const k=dh(T);let O;t[1]!==w||t[2]!==r?(O={name:r,control:w},t[1]=w,t[2]=r,t[3]=O):O=t[3];const{field:j,fieldState:S}=dn.useController(O),{value:E,onChange:A,onBlur:D,ref:R,name:M}=j,{error:I}=S,[F,U]=m.useState(!1);let P;if(t[4]!==d||t[5]!==a){let ce;t[7]!==d?(ce=(ve,ge)=>d?0:(ve.name??"").localeCompare(ge.name??""),t[7]=d,t[8]=ce):ce=t[8],P=a.toSorted(ce),t[4]=d,t[5]=a,t[6]=P}else P=t[6];const z=P;let V;t[9]!==u||t[10]!==r||t[11]!==s||t[12]!==b||t[13]!==F?(V=()=>{const ce=u??null;s?b(r,ce===null?null:Number(ce),{shouldDirty:!0,shouldValidate:F}):b(r,(ce==null?void 0:ce.toString())??"",{shouldDirty:!0,shouldValidate:F})},t[9]=u,t[10]=r,t[11]=s,t[12]=b,t[13]=F,t[14]=V):V=t[14];const H=V,Y=p||k;let Z;t[15]!==r||t[16]!==C||t[17]!==b?(Z=()=>{b(r,C(r))},t[15]=r,t[16]=C,t[17]=b,t[18]=Z):Z=t[18];let J;t[19]!==r||t[20]!==C||t[21]!==z||t[22]!==b?(J=[z,r,C,b],t[19]=r,t[20]=C,t[21]=z,t[22]=b,t[23]=J):J=t[23],m.useEffect(Z,J);let ee,W;t[24]!==$?(ee=()=>{$&&U(!0)},W=[$],t[24]=$,t[25]=ee,t[26]=W):(ee=t[25],W=t[26]),m.useEffect(ee,W);const L=I!==void 0;let B;t[27]!==A||t[28]!==s||t[29]!==o||t[30]!==b||t[31]!==F?(B=ce=>{const ve=ce.target.value;let ge;s?ge=ve===""?null:parseInt(ve,10):ge=ve===""?null:ve,A(ge),o&&o.forEach(be=>b(be,null,{shouldDirty:!0,shouldValidate:F}))},t[27]=A,t[28]=s,t[29]=o,t[30]=b,t[31]=F,t[32]=B):B=t[32];const q=B,N=i??"",Q=E??"";let X;t[33]===Symbol.for("react.memo_cache_sentinel")?(X=y.jsx("option",{value:""}),t[33]=X):X=t[33];let G;t[34]!==z?(G=z.map(XI),t[34]=z,t[35]=G):G=t[35];let se;t[36]!==Y||t[37]!==M||t[38]!==D||t[39]!==R||t[40]!==q||t[41]!==h||t[42]!==L||t[43]!==l||t[44]!==Q||t[45]!==G?(se=y.jsxs(si.Select,{size:l,name:M,value:Q,onChange:q,onBlur:D,ref:R,isInvalid:L,hidden:h,disabled:Y,className:"w-100",children:[X,G]}),t[36]=Y,t[37]=M,t[38]=D,t[39]=R,t[40]=q,t[41]=h,t[42]=L,t[43]=l,t[44]=Q,t[45]=G,t[46]=se):se=t[46];let te;t[47]!==H||t[48]!==E||t[49]!==c?(te=c&&E!=null&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(au,{color:"secondary",size:"sm",onClick:H,children:y.jsx(Qc,{})})}),t[47]=H,t[48]=E,t[49]=c,t[50]=te):te=t[50];let re;t[51]!==I?(re=I&&y.jsx(Eh,{message:I.message}),t[51]=I,t[52]=re):re=t[52];let ae;return t[53]!==_||t[54]!==Y||t[55]!==x||t[56]!==h||t[57]!==v||t[58]!==L||t[59]!==f||t[60]!==N||t[61]!==se||t[62]!==te||t[63]!==re||t[64]!==g?(ae=y.jsx(y.Fragment,{children:y.jsxs(_,{label:N,required:f,disabled:Y,hidden:h,withoutLabel:g,isInvalid:L,hint:v,className:x,children:[se,te,re]})}),t[53]=_,t[54]=Y,t[55]=x,t[56]=h,t[57]=v,t[58]=L,t[59]=f,t[60]=N,t[61]=se,t[62]=te,t[63]=re,t[64]=g,t[65]=ae):ae=t[65],ae};function XI(e){return y.jsx("option",{value:e.id??"",children:e.name},e.id)}const U0=e=>{const t=Re.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:g,maxLength:v,hint:x,onChange:_,className:w}=e,C=n===void 0?su:n,{control:b,setValue:$}=dn.useFormContext(),{isSubmitted:T}=dn.useFormState();let k;t[0]===Symbol.for("react.memo_cache_sentinel")?(k={falseIfNotInit:!0},t[0]=k):k=t[0];const O=dh(k),[j,S]=m.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:D}=dn.useController(E),{onChange:R,onBlur:M,ref:I,value:F,name:U}=A,{error:P}=D;let z;t[4]!==p?(z=p??{},t[4]=p,t[5]=z):z=t[5];let V,H,Y;t[6]!==z?({onChange:H,onBlur:V,...Y}=z,t[6]=z,t[7]=V,t[8]=H,t[9]=Y):(V=t[7],H=t[8],Y=t[9]);let Z;t[10]!==l||t[11]!==r||t[12]!==$||t[13]!==j?(Z=()=>{const be=l??null,Te=be==null||be===""?null:be.toString();$(r,Te,{shouldDirty:!0,shouldValidate:j})},t[10]=l,t[11]=r,t[12]=$,t[13]=j,t[14]=Z):Z=t[14];const J=Z,ee=d||O;let W,L;t[15]!==T?(W=()=>{T&&S(!0)},L=[T],t[15]=T,t[16]=W,t[17]=L):(W=t[16],L=t[17]),m.useEffect(W,L);const B=P!==void 0;let q;t[18]!==H||t[19]!==R||t[20]!==_||t[21]!==o||t[22]!==$||t[23]!==j?(q=be=>{const Te=be.target.value,de=Te==null||Te===""?null:Te;R(de),o&&o.forEach(le=>$(le,null,{shouldDirty:!0,shouldValidate:j})),_&&_(de),H&&H(be)},t[18]=H,t[19]=R,t[20]=_,t[21]=o,t[22]=$,t[23]=j,t[24]=q):q=t[24];const N=q;let Q;t[25]!==V||t[26]!==M?(Q=be=>{M(),V&&V(be)},t[25]=V,t[26]=M,t[27]=Q):Q=t[27];const X=Q,G=F!=null&&F!=="",se=i??"",te=F??"",re=f??2;let ae;t[28]!==ee||t[29]!==U||t[30]!==I||t[31]!==X||t[32]!==N||t[33]!==u||t[34]!==B||t[35]!==v||t[36]!==g||t[37]!==Y||t[38]!==a||t[39]!==te||t[40]!==re?(ae=y.jsx(si.Control,{as:"textarea",name:U,size:a,value:te,onChange:N,onBlur:X,ref:I,isInvalid:B,hidden:u,disabled:ee,rows:re,className:"w-100",minLength:g,maxLength:v,...Y}),t[28]=ee,t[29]=U,t[30]=I,t[31]=X,t[32]=N,t[33]=u,t[34]=B,t[35]=v,t[36]=g,t[37]=Y,t[38]=a,t[39]=te,t[40]=re,t[41]=ae):ae=t[41];let ce;t[42]!==J||t[43]!==G||t[44]!==s?(ce=s&&G&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(au,{color:"secondary",size:"sm",onClick:J,children:y.jsx(Qc,{})})}),t[42]=J,t[43]=G,t[44]=s,t[45]=ce):ce=t[45];let ve;t[46]!==P?(ve=P&&y.jsx(Eh,{message:P.message}),t[46]=P,t[47]=ve):ve=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]!==se||t[56]!==ae||t[57]!==ce||t[58]!==ve||t[59]!==h?(ge=y.jsxs(C,{label:se,required:c,disabled:ee,hidden:u,withoutLabel:h,isInvalid:B,className:w,hint:x,isForTextAreaInput:!0,children:[ae,ce,ve]}),t[48]=C,t[49]=ee,t[50]=w,t[51]=u,t[52]=x,t[53]=B,t[54]=c,t[55]=se,t[56]=ae,t[57]=ce,t[58]=ve,t[59]=h,t[60]=ge):ge=t[60],ge},Es=({ref:e,InputContainer:t=su,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:g,CustomOnChangeComponent:v,noSelectOnFocus:x,minLength:_,maxLength:w,hint:C,onChange:b,className:$,autoComplete:T})=>{var q,N,Q,X;const{control:k,setValue:O}=dn.useFormContext(),{isSubmitted:j}=dn.useFormState(),S=dh({falseIfNotInit:!0}),{field:{value:E,onChange:A,onBlur:D,ref:R,name:M},fieldState:{error:I}}=dn.useController({name:r,control:k}),[F,U]=m.useState(!1),P=m.useCallback(()=>{const G=c??null;n==="number"?O(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:F}):O(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:F})},[c,n,O,r,F]),z=m.useMemo(()=>f||S,[f,S]),V=I!==void 0,[H,Y]=m.useState(!1),Z=B0(n,E??null,H),J=m.useCallback(G=>{const se=G.target.value;let te=se;n==="number"?te=se===""?null:Number(se):te=se===""?null:se,A(te),s&&s.forEach(re=>O(re,null,{shouldDirty:!0,shouldValidate:F})),b&&b(te===null?null:n==="number"?te??null:te.toString())},[A,b,s,O,F,n]),ee=m.useCallback(()=>{Y(!1),D()},[D]),W=m.useRef(null),L=(((q=W.current)==null?void 0:q.scrollWidth)??0)>(((N=W.current)==null?void 0:N.clientWidth)??0),B=(Q=W.current)==null?void 0:Q.getBoundingClientRect();return m.useImperativeHandle(e,()=>W.current,[W]),m.useEffect(()=>{j&&U(!0)},[j]),y.jsxs(t,{label:i,required:u,disabled:z,hidden:d,withoutLabel:h??!1,isInvalid:V,hint:C,className:$,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(si.Control,{type:Z,placeholder:o??i,size:a,name:M,value:E??"",onChange:J,onBlur:ee,onFocus:G=>{Y(!0),!x&&G.target.select()},ref:G=>{R(G),W.current=G},isInvalid:V,hidden:d,disabled:z,list:p,className:"w-100",step:g,minLength:_,maxLength:w,autoComplete:T}),v&&y.jsx("div",{className:"custom-picker-button",children:v})]}),l&&E!=null&&y.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:y.jsx(au,{color:"secondary",size:"sm",onClick:P,children:y.jsx(Qc,{})})}),L?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:((X=W.current)==null?void 0:X.value)??""}):null,I&&y.jsx(Eh,{message:I.message})]})},QI="_item_1dy8x_1",tS={item:QI},Yo=e=>{const t=Re.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=ue(u,tS.item),t[8]=u,t[9]=d):d=t[9];const f=o==="link"?Ps.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(xs.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},JI="_button_qhwih_1",eP={button:JI},H0=({ref:e,color:t="primary",icon:n=y.jsx(RC,{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:ue(`btn luminus-context-button text-${t} ${o??""}`,eP.button),...s,children:[n,r]}),V0=e=>{const t=Re.c(2);let n;return t[0]!==e?(n=y.jsx(xs.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},tP="_divider_1e6rk_1",nP={divider:tP},Gg=e=>{const t=Re.c(4),{className:n}=e;let r;t[0]!==n?(r=ue("luminus-dropdown-divider",n,nP.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx(xs.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},rP="_dropdown_1lk66_1",iP={dropdown:rP},q0=e=>{const t=Re.c(14);let n,r,i,o;t[0]!==e?({toggle:o,children:r,align:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o):(n=t[1],r=t[2],i=t[3],o=t[4]);let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=ue("luminus-dropdown rounded shadow",iP.dropdown),t[5]=a):a=t[5];let s;t[6]!==n||t[7]!==r?(s=y.jsx(xs.Menu,{className:a,align:n,children:r}),t[6]=n,t[7]=r,t[8]=s):s=t[8];let l;return t[9]!==n||t[10]!==i||t[11]!==s||t[12]!==o?(l=y.jsxs(xs,{...i,align:n,children:[o,s]}),t[9]=n,t[10]=i,t[11]=s,t[12]=o,t[13]=l):l=t[13],l},oP="_wrapper_1tb6d_1",aP="_controls_1tb6d_16",sP="_explorerWindow_1tb6d_20",lP="_folderList_1tb6d_28",cP="_fileList_1tb6d_35",uP="_dndText_1tb6d_61",Do={wrapper:oP,controls:aP,explorerWindow:sP,folderList:lP,fileList:cP,dndText:uP},xn=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),dP="_defaultFolder_8tlxv_1",fP="_names_8tlxv_5",hP="_folderType_8tlxv_9",pm={defaultFolder:dP,names:fP,folderType:hP},nS=e=>{const t=Re.c(19),{isActive:n,isDefault:r,folderName:i,typeName:o}=e,{ProjectIconComponent:a}=m.useContext(ln),s=`folder${n?"-filled":""}`,l=r?pm.defaultFolder:"text-primary";let c;t[0]!==l?(c=ue("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=ue("d-flex flex-column gap-0 align-items-start",pm.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 g;t[11]!==o?(g=o?y.jsxs("span",{className:pm.folderType,children:["(",o,")"]}):null,t[11]=o,t[12]=g):g=t[12];let v;t[13]!==p||t[14]!==g?(v=y.jsxs("div",{className:f,children:[p,g]}),t[13]=p,t[14]=g,t[15]=v):v=t[15];let x;return t[16]!==v||t[17]!==d?(x=y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,v]}),t[16]=v,t[17]=d,t[18]=x):x=t[18],x},pP=e=>{const t=Re.c(9),{customText:n}=e,{reducer:r}=m.useContext(xn),[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=ue("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(nS,{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 mP(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const rS=()=>{const e=lh(),{startLoading:t,stopLoading:n}=m.useContext(Qf),{reducer:[,r]}=m.useContext(xn),i=m.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=m.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}},Ax=(e,t,n)=>{if(e&&"reportValidity"in e){const r=dn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},iS=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ax(r.ref,n,e):r.refs&&r.refs.forEach(i=>Ax(i,n,e))}},gP=(e,t)=>{t.shouldUseNativeValidation&&iS(e,t);const n={};for(const r in e){const i=dn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(vP(t.names||Object.keys(e),r)){const a=Object.assign({},dn.get(n,r));dn.set(a,"root",o),dn.set(n,r,a)}else dn.set(n,r,o)}return n},vP=(e,t)=>e.some(n=>n.startsWith(t+"."));var bP=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]=dn.appendErrors(a,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},ph=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&&iS({},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:gP(bP(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const yP=()=>{const e=Re.c(14),{reducer:t,entityId:n,entityType:r}=m.useContext(xn),[i]=t,{zNumberRequired:o,zStringRequired:a}=uh(),{createFolder:s}=rS();let l,c;if(e[0]!==o||e[1]!==a){const g=Si({name:a(),documentTypeId:o()});c=dn.useForm,l=ph(g),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 g=>{const v={...g,dbObjectId:n.toString(),entity:r,parentFolderId:i.activeFolder==="root"?null:i.activeFolder};await s(v)},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},xP=e=>{var b;const t=Re.c(38),{handleClose:n}=e,{texts:r}=m.useContext(ln),{documents:i}=r,{reducer:o,entityType:a}=m.useContext(xn),[s]=o;if(mP(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=yP();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 $;t[8]!==a||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?($=((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]=$):$=t[11],d=i.createFolderInFolder($),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(Xn.Header,{closeButton:!0,children:y.jsx(Xn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=y.jsx(Es,{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(W0,{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 g;t[19]!==h||t[20]!==p?(g=y.jsxs(Xn.Body,{children:[h,p]}),t[19]=h,t[20]=p,t[21]=g):g=t[21];let v;t[22]!==i.cancel||t[23]!==n?(v=y.jsx(da,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=v):v=t[24];let x;t[25]!==i.createFolder?(x=y.jsx(da,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==v?(_=y.jsxs(Xn.Footer,{children:[v,x]}),t[27]=x,t[28]=v,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==g?(w=y.jsxs(si,{onSubmit:u,children:[f,g,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=g,t[34]=w):w=t[34];let C;return t[35]!==c||t[36]!==w?(C=y.jsx(y.Fragment,{children:y.jsx(dn.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=C):C=t[37],C},oS=100,wP=(e,t)=>{const n=lh(),{startLoading:r,stopLoading:i}=m.useContext(Qf),{loadDocuments:o}=m.useContext(xn),{zStringRequired:a,zString:s,zNumberRequired:l,zDateRequired:c}=uh(),u=Si({name:a(),description:s(),validToDate:c(),documentTypeId:l()}),d=dn.useForm({resolver:ph(u),defaultValues:{...e,validToDate:th(e.validToDate)}}),f=m.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}},_P=e=>{const t=Re.c(38),{handleClose:n,file:r}=e,{texts:i}=m.useContext(ln),{documents:o}=i,{reducer:a}=m.useContext(xn),[s]=a,{formMethods:l,onSubmit:c}=wP(r,n);let u;t[0]!==o.editFileProperties?(u=y.jsx(Xn.Header,{closeButton:!0,children:y.jsx(Xn.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(Es,{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(Es,{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(W0,{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 g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g={maxLength:oS},t[12]=g):g=t[12];let v;t[13]!==o.description?(v=y.jsx(U0,{formField:"description",label:o.description,customFormControlProps:g}),t[13]=o.description,t[14]=v):v=t[14];let x;t[15]!==f||t[16]!==h||t[17]!==p||t[18]!==v?(x=y.jsxs(Xn.Body,{children:[f,h,p,v]}),t[15]=f,t[16]=h,t[17]=p,t[18]=v,t[19]=x):x=t[19];let _;t[20]!==o.cancel||t[21]!==n?(_=y.jsx(da,{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(da,{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(Xn.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(si,{onSubmit:d,children:[x,C]}),t[28]=x,t[29]=C,t[30]=d,t[31]=b):b=t[31];let $;t[32]!==l||t[33]!==b?($=y.jsx(dn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=$):$=t[34];let T;return t[35]!==$||t[36]!==u?(T=y.jsxs(y.Fragment,{children:[u,$]}),t[35]=$,t[36]=u,t[37]=T):T=t[37],T},CP=e=>{const t=Re.c(9),{handleClose:n}=e,{reducer:r}=m.useContext(xn),[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(_P,{file:a,handleClose:n}),t[6]=a,t[7]=n,t[8]=s):s=t[8],s},$P=()=>{const{reducer:[e,t]}=m.useContext(xn),n=m.useCallback(()=>{t({type:"close-modal"})},[t]),r=m.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(xP,{handleClose:n});case"edit-file-properties":return y.jsx(CP,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Xn,{show:e.state==="openned-modal",onHide:n,children:r})},Rx="documents_drag_image_element",Zd="drop-container-highlight-class",jx="data-drop-container-id",Nx="data-draggable-id",SP=()=>{const e=document.getElementById(Rx);if(e!==null)return e;const t=document.createElement("div");return t.id=Rx,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},Y0=()=>{const e=Re.c(12),{apiActions:t,reducer:n}=m.useContext(xn),{moveDocuments:r}=t,[i]=n;let o;e[0]!==i.markedFiles?(o=x=>{var _;if(i.markedFiles.length>0){const w=SP();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(Nx))==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=>({[Nx]: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(Zd);const w=_.dataTransfer.files;if(x&&w&&w.length>0){x(w);return}const C=_.dataTransfer.getData("application/json");if(C){const $=JSON.parse(C),T=parseInt(((b=_.currentTarget.attributes.getNamedItem(jx))==null?void 0:b.value)??"",10);r(T,$)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=EP,f=kP,h=OP;let p;e[7]!==u?(p=(x,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[jx]:x}),e[7]=u,e[8]=p):p=e[8];const g=p;let v;return e[9]!==l||e[10]!==g?(v={getDraggableProps:l,getDropProps:g},e[9]=l,e[10]=g,e[11]=v):v=e[11],v};function TP(e){e.preventDefault(),e.stopPropagation()}function EP(){return TP}function kP(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(Zd)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(Zd)):t.dataTransfer.dropEffect="none"}}function OP(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(Zd))}function aS(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&&aS(o,t,n))return!0}return!1}function MP(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function sS(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${sS(n.parentId,t)}/${n.name}`}const AP=()=>{const e=Re.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=uh();let i;e[0]!==r||e[1]!==t||e[2]!==n?(i=Si({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},G0=e=>{var Z;const t=Re.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:o}=m.useContext(ln),{documents:a}=o,{reducer:s,apiActions:l}=m.useContext(xn),[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 g=p,{formSchema:v}=AP();let x;t[5]!==v?(x=ph(v),t[5]=v,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=th(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(Z=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:Z.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 $=dn.useForm(b);let T;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(T=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]=T):T=t[21];const k=T;let O;t[22]!==a||t[23]!==r.length||t[24]!==g.name?(O=a.uploadFilesPrompt(r.length,g.name),t[22]=a,t[23]=r.length,t[24]=g.name,t[25]=O):O=t[25];let j;t[26]!==f?(j=y.jsx("ul",{children:f.map(RP)}),t[26]=f,t[27]=j):j=t[27];let S;t[28]!==O||t[29]!==j?(S=y.jsx(Xn.Header,{closeButton:!0,children:y.jsxs("div",{children:[O,j]})}),t[28]=O,t[29]=j,t[30]=S):S=t[30];let E;t[31]!==$||t[32]!==k?(E=$.handleSubmit(k),t[31]=$,t[32]=k,t[33]=E):E=t[33];let A;t[34]!==a.documentType||t[35]!==c.documentTypes?(A=y.jsx(W0,{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 D;t[37]!==a.validSince?(D=y.jsx(Es,{formField:"validToDate",label:a.validSince,type:"date",required:!0}),t[37]=a.validSince,t[38]=D):D=t[38];let R;t[39]!==a.name||t[40]!==f.length?(R=f.length===1?y.jsx(Es,{formField:"name",label:a.name,type:"text"}):null,t[39]=a.name,t[40]=f.length,t[41]=R):R=t[41];let M;t[42]===Symbol.for("react.memo_cache_sentinel")?(M={maxLength:oS},t[42]=M):M=t[42];let I;t[43]!==a.description?(I=y.jsx(U0,{formField:"description",label:a.description,customFormControlProps:M}),t[43]=a.description,t[44]=I):I=t[44];let F;t[45]!==A||t[46]!==D||t[47]!==R||t[48]!==I?(F=y.jsxs(Xn.Body,{children:[A,D,R,I]}),t[45]=A,t[46]=D,t[47]=R,t[48]=I,t[49]=F):F=t[49];let U;t[50]!==a.cancel||t[51]!==n?(U=y.jsx(da,{variant:"outlined",color:"secondary",onClick:n,children:a.cancel}),t[50]=a.cancel,t[51]=n,t[52]=U):U=t[52];let P;t[53]!==a.upload?(P=y.jsx(da,{type:"submit",children:a.upload}),t[53]=a.upload,t[54]=P):P=t[54];let z;t[55]!==U||t[56]!==P?(z=y.jsxs(Xn.Footer,{children:[U,P]}),t[55]=U,t[56]=P,t[57]=z):z=t[57];let V;t[58]!==E||t[59]!==F||t[60]!==z?(V=y.jsxs(si,{onSubmit:E,children:[F,z]}),t[58]=E,t[59]=F,t[60]=z,t[61]=V):V=t[61];let H;t[62]!==$||t[63]!==V?(H=y.jsx(dn.FormProvider,{...$,children:V}),t[62]=$,t[63]=V,t[64]=H):H=t[64];let Y;return t[65]!==n||t[66]!==S||t[67]!==H?(Y=y.jsxs(Xn,{show:!0,onHide:n,children:[S,H]}),t[65]=n,t[66]=S,t[67]=H,t[68]=Y):Y=t[68],Y};function RP(e,t){return y.jsxs("li",{children:[e.name," - ",ws(e.size)]},`${e.name}-${t}`)}const jP="_folder_1cktt_1",NP="_collapseArrowDiv_1cktt_8",DP="_button_1cktt_20",IP="_nestedList_1cktt_24",PP="_numberOfFiles_1cktt_31",LP="_collapseArrow_1cktt_8",Io={folder:jP,collapseArrowDiv:NP,button:DP,nestedList:IP,numberOfFiles:PP,collapseArrow:LP},lS=e=>{const t=Re.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=m.useContext(ln),{reducer:o}=m.useContext(xn),[a,s]=o,{getDropProps:l}=Y0(),[c,u]=m.useState(null),[d,f]=m.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 g=p;if(g===void 0)throw new Error(`tried to get dir with id ${n}`);h=g;const v=h;let x;t[3]!==n||t[4]!==v||t[5]!==s||t[6]!==a.activeFolder||t[7]!==a.foldersMap?(x=()=>{a.activeFolder!=="root"&&aS(v,a.activeFolder,a.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=v,t[5]=s,t[6]=a.activeFolder,t[7]=a.foldersMap,t[8]=x):x=t[8];const _=x,w=v.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 $;if(t[12]!==n||t[13]!==a.filteredFiles){let V;t[15]!==n?(V=H=>H.folderId===n&&H.archive===!1,t[15]=n,t[16]=V):V=t[16],$=a.filteredFiles.filter(V),t[12]=n,t[13]=a.filteredFiles,t[14]=$}else $=t[14];const T=$.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:Io.collapseArrow}})}):y.jsx("button",{onClick:_,type:"button",children:y.jsx(i,{icon:"chevron-down",iconProps:{className:Io.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=k):k=t[21];let O;t[22]!==k?(O=y.jsx("div",{className:Io.collapseArrowDiv,children:k}),t[22]=k,t[23]=O):O=t[23];let j;t[24]===Symbol.for("react.memo_cache_sentinel")?(j=ue(Io.button),t[24]=j):j=t[24];let S;t[25]!==n||t[26]!==v.onlyRead||t[27]!==l||t[28]!==r?(S=r&&!v.onlyRead?l(n,{onFilesDrop:V=>u(V)}):{},t[25]=n,t[26]=v.onlyRead,t[27]=l,t[28]=r,t[29]=S):S=t[29];const E=v.defaultDocType??"",A=n===a.activeFolder;let D;t[30]!==v.isDefault||t[31]!==v.name||t[32]!==E||t[33]!==A?(D=y.jsx(nS,{isDefault:v.isDefault,folderName:v.name,typeName:E,isActive:A}),t[30]=v.isDefault,t[31]=v.name,t[32]=E,t[33]=A,t[34]=D):D=t[34];let R;t[35]!==T?(R=T>0?y.jsxs("span",{className:Io.numberOfFiles,children:["[",T,"]"]}):void 0,t[35]=T,t[36]=R):R=t[36];let M;t[37]!==D||t[38]!==R?(M=y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[D,R]}),t[37]=D,t[38]=R,t[39]=M):M=t[39];let I;t[40]!==b||t[41]!==S||t[42]!==M?(I=y.jsx("button",{className:j,onClick:b,type:"button",...S,children:M}),t[40]=b,t[41]=S,t[42]=M,t[43]=I):I=t[43];let F;t[44]!==v.childrenIds||t[45]!==w||t[46]!==d||t[47]!==r?(F=w?d?null:y.jsx("ul",{className:Io.nestedList,children:v==null?void 0:v.childrenIds.map(V=>y.jsx(lS,{dirId:V,writePermissions:r},V))}):void 0,t[44]=v.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=F):F=t[48];let U;t[49]!==I||t[50]!==F||t[51]!==O?(U=y.jsxs("li",{className:Io.folder,children:[O,I,F]}),t[49]=I,t[50]=F,t[51]=O,t[52]=U):U=t[52];let P;t[53]!==n||t[54]!==c?(P=c!==null?y.jsx(G0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=P):P=t[55];let z;return t[56]!==U||t[57]!==P?(z=y.jsxs(y.Fragment,{children:[U,P]}),t[56]=U,t[57]=P,t[58]=z):z=t[58],z},FP="_wrapper_1th2u_1",BP="_downloadButton_1th2u_9",Kg={wrapper:FP,downloadButton:BP};function mh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dx={exports:{}};/*!
|
|
247
|
-
Copyright (c) 2018 Jed Watson.
|
|
248
|
-
Licensed under the MIT License (MIT), see
|
|
249
|
-
http://jedwatson.github.io/classnames
|
|
250
|
-
*/var Ix;function zP(){return Ix||(Ix=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})()}(Dx)),Dx.exports}var WP=zP();const me=mh(WP),cS=6048e5,UP=864e5,Px=Symbol.for("constructDateFrom");function Ii(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Px in e?e[Px](t):e instanceof Date?new e.constructor(t):new Date(t)}function ur(e,t){return Ii(t||e,e)}function uS(e,t){const n=()=>Ii(t==null?void 0:t.in,NaN),r=YP(e);let i;if(r.date){const l=GP(r.date,2);i=KP(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=ZP(r.time),isNaN(a)))return n();if(r.timezone){if(s=XP(r.timezone),isNaN(s))return n()}else{const l=new Date(o+a),c=ur(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 ur(o+a+s,t==null?void 0:t.in)}const Yu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},HP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,VP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,qP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function YP(e){const t={},n=e.split(Yu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Yu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Yu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Yu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function GP(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 KP(e,t){if(t===null)return new Date(NaN);const n=e.match(HP);if(!n)return new Date(NaN);const r=!!n[4],i=bl(n[1]),o=bl(n[2])-1,a=bl(n[3]),s=bl(n[4]),l=bl(n[5])-1;if(r)return nL(t,s,l)?QP(t,s,l):new Date(NaN);{const c=new Date(0);return!eL(t,o,a)||!tL(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function bl(e){return e?parseInt(e):1}function ZP(e){const t=e.match(VP);if(!t)return NaN;const n=mm(t[1]),r=mm(t[2]),i=mm(t[3]);return rL(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function mm(e){return e&&parseFloat(e.replace(",","."))||0}function XP(e){if(e==="Z")return 0;const t=e.match(qP);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return iL(r,i)?n*(r*36e5+i*6e4):NaN}function QP(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 JP=[31,null,31,30,31,30,31,31,30,31,30,31];function dS(e){return e%400===0||e%4===0&&e%100!==0}function eL(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(JP[t]||(dS(e)?29:28))}function tL(e,t){return t>=1&&t<=(dS(e)?366:365)}function nL(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function rL(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function iL(e,t){return t>=0&&t<=59}let oL={};function gh(){return oL}function yc(e,t){var s,l,c,u;const n=gh(),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=ur(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 Xd(e,t){return yc(e,{...t,weekStartsOn:1})}function fS(e,t){const n=ur(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ii(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Xd(i),a=Ii(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Xd(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Lx(e){const t=ur(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 aL(e,...t){const n=Ii.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Fx(e,t){const n=ur(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function sL(e,t,n){const[r,i]=aL(n==null?void 0:n.in,e,t),o=Fx(r),a=Fx(i),s=+o-Lx(o),l=+a-Lx(a);return Math.round((s-l)/UP)}function lL(e,t){const n=fS(e,t),r=Ii(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xd(r)}function cL(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uL(e){return!(!cL(e)&&typeof e!="number"||isNaN(+ur(e)))}function dL(e,t){const n=ur(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const fL={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"}},hL=(e,t,n)=>{let r;const i=fL[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 gm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const pL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vL={date:gm({formats:pL,defaultWidth:"full"}),time:gm({formats:mL,defaultWidth:"full"}),dateTime:gm({formats:gL,defaultWidth:"full"})},bL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yL=(e,t,n,r)=>bL[e];function yl(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 xL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_L={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"]},CL={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"]},$L={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"}},SL={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"}},TL=(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"},EL={ordinalNumber:TL,era:yl({values:xL,defaultWidth:"wide"}),quarter:yl({values:wL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yl({values:_L,defaultWidth:"wide"}),day:yl({values:CL,defaultWidth:"wide"}),dayPeriod:yl({values:$L,defaultWidth:"wide",formattingValues:SL,defaultFormattingWidth:"wide"})};function xl(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)?OL(s,d=>d.test(a)):kL(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 kL(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function OL(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ML(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 AL=/^(\d+)(th|st|nd|rd)?/i,RL=/\d+/i,jL={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},NL={any:[/^b/i,/^(a|c)/i]},DL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},IL={any:[/1/i,/2/i,/3/i,/4/i]},PL={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},LL={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]},FL={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},BL={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]},zL={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},WL={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}},UL={ordinalNumber:ML({matchPattern:AL,parsePattern:RL,valueCallback:e=>parseInt(e,10)}),era:xl({matchPatterns:jL,defaultMatchWidth:"wide",parsePatterns:NL,defaultParseWidth:"any"}),quarter:xl({matchPatterns:DL,defaultMatchWidth:"wide",parsePatterns:IL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xl({matchPatterns:PL,defaultMatchWidth:"wide",parsePatterns:LL,defaultParseWidth:"any"}),day:xl({matchPatterns:FL,defaultMatchWidth:"wide",parsePatterns:BL,defaultParseWidth:"any"}),dayPeriod:xl({matchPatterns:zL,defaultMatchWidth:"any",parsePatterns:WL,defaultParseWidth:"any"})},HL={code:"en-US",formatDistance:hL,formatLong:vL,formatRelative:yL,localize:EL,match:UL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function VL(e,t){const n=ur(e,t==null?void 0:t.in);return sL(n,dL(n))+1}function qL(e,t){const n=ur(e,t==null?void 0:t.in),r=+Xd(n)-+lL(n);return Math.round(r/cS)+1}function hS(e,t){var u,d,f,h;const n=ur(e,t==null?void 0:t.in),r=n.getFullYear(),i=gh(),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=Ii((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=yc(a,t),l=Ii((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=yc(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function YL(e,t){var a,s,l,c;const n=gh(),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=hS(e,t),o=Ii((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),yc(o,t)}function GL(e,t){const n=ur(e,t==null?void 0:t.in),r=+yc(n,t)-+YL(n,t);return Math.round(r/cS)+1}function Ut(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ki={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ut(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ut(n+1,2)},d(e,t){return Ut(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 Ut(e.getHours()%12||12,t.length)},H(e,t){return Ut(e.getHours(),t.length)},m(e,t){return Ut(e.getMinutes(),t.length)},s(e,t){return Ut(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ut(i,t.length)}},za={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bx={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 Ki.y(e,t)},Y:function(e,t,n,r){const i=hS(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ut(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ut(o,t.length)},R:function(e,t){const n=fS(e);return Ut(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ut(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 Ut(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 Ut(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 Ki.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 Ut(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=GL(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ut(i,t.length)},I:function(e,t,n){const r=qL(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ut(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ki.d(e,t)},D:function(e,t,n){const r=VL(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ut(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 Ut(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 Ut(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 Ut(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=za.noon:r===0?i=za.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=za.evening:r>=12?i=za.afternoon:r>=4?i=za.morning:i=za.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 Ki.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ki.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ut(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ut(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ki.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ki.s(e,t)},S:function(e,t){return Ki.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Wx(r);case"XXXX":case"XX":return zo(r);case"XXXXX":case"XXX":default:return zo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Wx(r);case"xxxx":case"xx":return zo(r);case"xxxxx":case"xxx":default:return zo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zx(r,":");case"OOOO":default:return"GMT"+zo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zx(r,":");case"zzzz":default:return"GMT"+zo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ut(r,t.length)},T:function(e,t,n){return Ut(+e,t.length)}};function zx(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+Ut(o,2)}function Wx(e,t){return e%60===0?(e>0?"-":"+")+Ut(Math.abs(e)/60,2):zo(e,t)}function zo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ut(Math.trunc(r/60),2),o=Ut(r%60,2);return n+i+t+o}const Ux=(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"})}},pS=(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"})}},KL=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Ux(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}}",Ux(r,t)).replace("{{time}}",pS(i,t))},ZL={p:pS,P:KL},XL=/^D+$/,QL=/^Y+$/,JL=["D","DD","YY","YYYY"];function eF(e){return XL.test(e)}function tF(e){return QL.test(e)}function nF(e,t,n){const r=rF(e,t,n);if(console.warn(r),JL.includes(e))throw new RangeError(r)}function rF(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 iF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aF=/^'([^]*?)'?$/,sF=/''/g,lF=/[a-zA-Z]/;function mS(e,t,n){var u,d,f,h;const r=gh(),i=r.locale??HL,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=ur(e,n==null?void 0:n.in);if(!uL(s))throw new RangeError("Invalid time value");let l=t.match(oF).map(p=>{const g=p[0];if(g==="p"||g==="P"){const v=ZL[g];return v(p,i.formatLong)}return p}).join("").match(iF).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:cF(p)};if(Bx[g])return{isToken:!0,value:p};if(g.match(lF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");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 g=p.value;(tF(g)||eF(g))&&nF(g,t,String(e));const v=Bx[g[0]];return v(s,g,i.localize,c)}).join("")}function cF(e){const t=e.match(aF);return t?t[1].replace(sF,"'"):e}function gS(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 xc;(function(e){e.event="event",e.props="prop"})(xc||(xc={}));function ro(){}function uF(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 wc(e){return!!(e||"").match(/\d/)}function ss(e){return e==null}function dF(e){return typeof e=="number"&&isNaN(e)}function vS(e){return ss(e)||dF(e)||typeof e=="number"&&!isFinite(e)}function bS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fF(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 hF(e,t,n){var r=fF(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 pF(e){var t=m.useRef(e);t.current=e;var n=m.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function K0(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 mF(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 yS(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function Hx(e,t){return Array(t+1).join(e)}function xS(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."+Hx("0",Math.abs(a))+i:a>=s?i=i+Hx("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function Vx(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=K0(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(g,v,x){return g.length>x?(Number(g[0])+Number(v)).toString()+g.substring(1,g.length):v+g},u[0]));var f=yS(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function Ho(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 wS=uF(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}}}),gF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function vF(e,t,n){return Math.min(Math.max(e,t),n)}function vm(e){return Math.max(e.selectionStart,e.selectionEnd)}function bF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function yF(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function wF(e,t,n,r,i,o,a){a===void 0&&(a=xF);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,g=u;p<g;p++){var v=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(v&&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 qx(e,t,n,r){var i=e.length;if(t=vF(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 _F(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(wc(e[n])||wc(e[n-1]));return t}function _S(e,t,n,r,i,o){o===void 0&&(o=ro);var a=pF(function(p,g){var v,x;return vS(p)?(x="",v=""):typeof p=="number"||g?(x=typeof p=="number"?xS(p):p,v=r(x)):(x=i(p,void 0),v=r(x)),{formattedValue:v,numAsString:x}}),s=m.useState(function(){return a(ss(e)?t:e,n)}),l=s[0],c=s[1],u=function(p,g){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),o(p,g)},d=e,f=n;ss(e)&&(d=l.numAsString,f=!0);var h=a(d,f);return m.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function CF(e){return e.replace(/[^0-9]/g,"")}function $F(e){return e}function SF(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=$F);var s=e.removeFormatting;s===void 0&&(s=CF);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=ro);var h=e.onKeyDown;h===void 0&&(h=ro);var p=e.onMouseUp;p===void 0&&(p=ro);var g=e.onFocus;g===void 0&&(g=ro);var v=e.onBlur;v===void 0&&(v=ro);var x=e.value,_=e.getCaretBoundary;_===void 0&&(_=_F);var w=e.isValidInputCharacter;w===void 0&&(w=wc);var C=e.isCharacterSame,b=gS(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=_S(x,l,!!c,a,s,u),T=$[0],k=T.formattedValue,O=T.numAsString,j=$[1],S=m.useRef(),E=m.useRef({formattedValue:k,numAsString:O}),A=function(te,re){E.current={formattedValue:te.formattedValue,numAsString:te.value},j(te,re)},D=m.useState(!1),R=D[0],M=D[1],I=m.useRef(null),F=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return M(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}},[]);var U=a,P=function(te,re){var ae=parseFloat(re);return{formattedValue:te,value:re,floatValue:isNaN(ae)?void 0:ae}},z=function(te,re,ae){te.selectionStart===0&&te.selectionEnd===te.value.length||(Ho(te,re),F.current.setCaretTimeout=setTimeout(function(){te.value===ae&&te.selectionStart!==re&&Ho(te,re)},0))},V=function(te,re,ae){return qx(te,re,_(te),ae)},H=function(te,re,ae){var ce=_(re),ve=wF(re,k,te,ae,ce,w,C);return ve=qx(re,ve,ce),ve},Y=function(te){var re=te.formattedValue;re===void 0&&(re="");var ae=te.input,ce=te.source,ve=te.event,ge=te.numAsString,be;if(ae){var Te=te.inputValue||ae.value,de=vm(ae);ae.value=re,be=H(Te,re,de),be!==void 0&&z(ae,be,re)}re!==k&&A(P(re,ge),{event:ve,source:ce})};m.useEffect(function(){var te=E.current,re=te.formattedValue,ae=te.numAsString;(k!==re||O!==ae)&&A(P(k,O),{event:void 0,source:xc.props})},[k,O]);var Z=I.current?vm(I.current):void 0,J=typeof window<"u"?m.useLayoutEffect:m.useEffect;J(function(){var te=I.current;if(k!==E.current.formattedValue&&te){var re=H(E.current.formattedValue,k,Z);te.value=k,z(te,re,k)}},[k]);var ee=function(te,re,ae){var ce=re.target,ve=S.current?gF(S.current,ce.selectionEnd):wS(k,te),ge=Object.assign(Object.assign({},ve),{lastValue:k}),be=s(te,ge),Te=U(be);if(be=s(Te,void 0),d&&!d(P(Te,be))){var de=re.target,le=vm(de),we=H(te,k,le);return de.value=k,z(de,we,k),!1}return Y({formattedValue:Te,numAsString:be,inputValue:te,event:re,source:ae,input:re.target}),!0},W=function(te,re){re===void 0&&(re=0);var ae=te.selectionStart,ce=te.selectionEnd;S.current={selectionStart:ae,selectionEnd:ce+re}},L=function(te){var re=te.target,ae=re.value,ce=ee(ae,te,xc.event);ce&&f(te),S.current=void 0},B=function(te){var re=te.target,ae=te.key,ce=re.selectionStart,ve=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be;ae==="ArrowLeft"||ae==="Backspace"?be=Math.max(ce-1,0):ae==="ArrowRight"?be=Math.min(ce+1,ge.length):ae==="Delete"&&(be=ce);var Te=0;ae==="Delete"&&ce===ve&&(Te=1);var de=ae==="ArrowLeft"||ae==="ArrowRight";if(be===void 0||ce!==ve&&!de){h(te),W(re,Te);return}var le=be;if(de){var we=ae==="ArrowLeft"?"left":"right";le=V(ge,be,we),le!==be&&te.preventDefault()}else ae==="Delete"&&!w(ge[be])?le=V(ge,be,"right"):ae==="Backspace"&&!w(ge[be])&&(le=V(ge,be,"left"));le!==be&&z(re,le,ge),h(te),W(re,Te)},q=function(te){var re=te.target,ae=function(){var ce=re.selectionStart,ve=re.selectionEnd,ge=re.value;if(ge===void 0&&(ge=""),ce===ve){var be=V(ge,ce);be!==ce&&z(re,be,ge)}};ae(),requestAnimationFrame(function(){ae()}),p(te),W(re)},N=function(te){te.persist&&te.persist();var re=te.target,ae=te.currentTarget;I.current=re,F.current.focusTimeout=setTimeout(function(){var ce=re.selectionStart,ve=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be=V(ge,ce);be!==ce&&!(ce===0&&ve===ge.length)&&z(re,be,ge),g(Object.assign(Object.assign({},te),{currentTarget:ae}))},0)},Q=function(te){I.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),v(te)},X=R&&bF()?"numeric":void 0,G=Object.assign({inputMode:X},b,{type:t,value:k,onChange:L,onKeyDown:B,onMouseUp:q,onFocus:N,onBlur:Q});if(n==="text")return i?m.createElement(m.Fragment,null,i(k,b)||null):m.createElement("span",Object.assign({},b,{ref:o}),k);if(r){var se=r;return m.createElement(se,Object.assign({},G,{ref:o}))}return m.createElement("input",Object.assign({},G,{ref:o}))}function Yx(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=vh(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=K0(e,a),h=f.beforeDecimal,p=f.afterDecimal,g=f.addNegation;return n!==void 0&&(p=yS(p,n,!!r)),c&&(h=hF(h,c,s)),i&&(h=i+h),o&&(p=p+o),g&&(h="-"+h),e=h+(d&&u||"")+p,e}function vh(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 TF(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 EF(e,t){return new RegExp("(^-)|[0-9]|"+bS(e),"g")}function kF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function OF(e,t,n){var r;t===void 0&&(t=yF(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=vh(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,g=e[d]===p;if(wc(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var v=s===0?"":p;e=e.substring(0,u)+v+e.substring(u+1,e.length)}var x=function(I,F,U){var P=!1,z=!1;o.startsWith("-")?P=!1:I.startsWith("--")?(P=!1,z=!0):a.startsWith("-")&&I.length===a.length?P=!1:I[0]==="-"&&(P=!0);var V=P?1:0;return z&&(V=2),V&&(I=I.substring(V),F-=V,U-=V),{value:I,start:F,end:U,hasNegation:P}},_=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,$=C.end,T=C.value,k=e.substring(u,d);e.length&&T.length&&(b>T.length-a.length||$<o.length)&&!(k&&a.startsWith(k))&&(e=T);var O=0;e.startsWith(o)?O+=o.length:u<o.length&&(O=u),e=e.substring(O),d-=O;var j=e.length,S=e.length-a.length;e.endsWith(a)?j=S:(d>S||d>e.length-a.length)&&(j=d),e=e.substring(0,j),e=TF(w?"-"+e:e,i),e=(e.match(EF(p))||[]).join("");var E=e.indexOf(p);e=e.replace(new RegExp(bS(p),"g"),function(I,F){return F===E?".":""});var A=K0(e,i),D=A.beforeDecimal,R=A.afterDecimal,M=A.addNegation;return c.end-c.start<l.end-l.start&&D===""&&g&&!parseFloat(R)&&(e=M?"-":""),e}function MF(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 AF(e){var t=vh(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(`
|
|
251
|
-
Decimal separator can't be same as thousand separator.
|
|
252
|
-
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
253
|
-
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
254
|
-
`);return i.startsWith("-")&&o&&(console.error(`
|
|
255
|
-
Prefix can't start with '-' when allowNegative is true.
|
|
256
|
-
prefix: `+i+`
|
|
257
|
-
allowNegative: `+o+`
|
|
258
|
-
`),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function RF(e){e=AF(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ro);var o=e.onBlur;o===void 0&&(o=ro);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=gS(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=vh(e),v=g.decimalSeparator,x=g.allowedDecimalSeparators,_=function(M){return Yx(M,e)},w=function(M,I){return OF(M,I,e)},C=ss(d)?u:d,b=f??kF(C,c,t);ss(d)?ss(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var $=function(M){return vS(M)?M:(typeof M=="number"&&(M=xS(M)),b&&typeof s=="number"?Vx(M,s,!!l):M)},T=_S($(d),$(u),!!b,_,w,h),k=T[0],O=k.numAsString,j=k.formattedValue,S=T[1],E=function(M){var I=M.target,F=M.key,U=I.selectionStart,P=I.selectionEnd,z=I.value;if(z===void 0&&(z=""),(F==="Backspace"||F==="Delete")&&P<c.length){M.preventDefault();return}if(U!==P){i(M);return}F==="Backspace"&&z[0]==="-"&&U===c.length+1&&n&&Ho(I,1),s&&l&&(F==="Backspace"&&z[U-1]===v?(Ho(I,U-1),M.preventDefault()):F==="Delete"&&z[U]===v&&M.preventDefault()),x!=null&&x.includes(F)&&z[U]===v&&Ho(I,U+1);var V=a===!0?",":a;F==="Backspace"&&z[U-1]===V&&Ho(I,U-1),F==="Delete"&&z[U]===V&&Ho(I,U+1),i(M)},A=function(M){var I=O;if(I.match(/\d/g)||(I=""),r||(I=mF(I)),l&&s&&(I=Vx(I,s,l)),I!==O){var F=Yx(I,e);S({formattedValue:F,value:I,floatValue:parseFloat(I)},{event:M,source:xc.event})}o(M)},D=function(M){return M===v?!0:wc(M)},R=function(M){var I=M.currentValue,F=M.lastValue,U=M.formattedValue,P=M.currentValueIndex,z=M.formattedValueIndex,V=I[P],H=U[z],Y=wS(F,I),Z=Y.to,J=function(ee){return w(ee).indexOf(".")+c.length};return d===0&&l&&s&&I[Z.start]===v&&J(I)<P&&J(U)>z?!1:P>=Z.start&&P<Z.end&&x&&x.includes(V)&&H===v?!0:V===H};return Object.assign(Object.assign({},p),{value:j,valueIsNumericString:!1,isValidInputCharacter:D,isCharacterSame:R,onValueChange:S,format:_,removeFormatting:w,getCaretBoundary:function(M){return MF(M,e)},onKeyDown:E,onBlur:A})}function jF(e){var t=RF(e);return m.createElement(SF,Object.assign({},t))}const NF=(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,{className:me({"text-success":n===!0,"text-muted":n===!1,"justify-content-center":r==="center","justify-content-start":r==="left","justify-content-end":r==="right"}),icon:n?"boolean-yes":"boolean-no"}):null},DF=e=>{const t=e.getValue();return t?mS(uS(t.toString()),"dd.MM.yyyy"):null},IF=e=>{const t=e.getValue();return t?mS(uS(t.toString()),"dd.MM.yyyy HH:mm"):null},PF=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(jF,{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()})},LF=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},FF=["xxl","xl","lg","md","sm","xs"],BF="xs",lu=ie.createContext({prefixes:{},breakpoints:FF,minBreakpoint:BF}),{Consumer:Fbe,Provider:Bbe}=lu;function Et(e,t){const{prefixes:n}=m.useContext(lu);return e||n[t]||t}function zF(){const{breakpoints:e}=m.useContext(lu);return e}function WF(){const{minBreakpoint:e}=m.useContext(lu);return e}function CS(){const{dir:e}=m.useContext(lu);return e==="rtl"}var Gu={exports:{}},bm={exports:{}},Pt={};/** @license React v16.13.1
|
|
259
|
-
* react-is.production.min.js
|
|
260
|
-
*
|
|
261
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the MIT license found in the
|
|
264
|
-
* LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/var Gx;function UF(){if(Gx)return Pt;Gx=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,g=e?Symbol.for("react.block"):60121,v=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 $=b.$$typeof;switch($){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 $}}case n:return $}}}function C(b){return w(b)===c}return Pt.AsyncMode=l,Pt.ConcurrentMode=c,Pt.ContextConsumer=s,Pt.ContextProvider=a,Pt.Element=t,Pt.ForwardRef=u,Pt.Fragment=r,Pt.Lazy=p,Pt.Memo=h,Pt.Portal=n,Pt.Profiler=o,Pt.StrictMode=i,Pt.Suspense=d,Pt.isAsyncMode=function(b){return C(b)||w(b)===l},Pt.isConcurrentMode=C,Pt.isContextConsumer=function(b){return w(b)===s},Pt.isContextProvider=function(b){return w(b)===a},Pt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Pt.isForwardRef=function(b){return w(b)===u},Pt.isFragment=function(b){return w(b)===r},Pt.isLazy=function(b){return w(b)===p},Pt.isMemo=function(b){return w(b)===h},Pt.isPortal=function(b){return w(b)===n},Pt.isProfiler=function(b){return w(b)===o},Pt.isStrictMode=function(b){return w(b)===i},Pt.isSuspense=function(b){return w(b)===d},Pt.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===v||b.$$typeof===x||b.$$typeof===_||b.$$typeof===g)},Pt.typeOf=w,Pt}var Wt={};/** @license React v16.13.1
|
|
266
|
-
* react-is.development.js
|
|
267
|
-
*
|
|
268
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
269
|
-
*
|
|
270
|
-
* This source code is licensed under the MIT license found in the
|
|
271
|
-
* LICENSE file in the root directory of this source tree.
|
|
272
|
-
*/var Kx;function HF(){return Kx||(Kx=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===o||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===v||N.$$typeof===x||N.$$typeof===_||N.$$typeof===g)}function C(N){if(typeof N=="object"&&N!==null){var Q=N.$$typeof;switch(Q){case t:var X=N.type;switch(X){case l:case c:case r:case o:case i:case d:return X;default:var G=X&&X.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return Q}}case n:return Q}}}var b=l,$=c,T=s,k=a,O=t,j=u,S=r,E=p,A=h,D=n,R=o,M=i,I=d,F=!1;function U(N){return F||(F=!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.")),P(N)||C(N)===l}function P(N){return C(N)===c}function z(N){return C(N)===s}function V(N){return C(N)===a}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return C(N)===u}function Z(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function W(N){return C(N)===n}function L(N){return C(N)===o}function B(N){return C(N)===i}function q(N){return C(N)===d}Wt.AsyncMode=b,Wt.ConcurrentMode=$,Wt.ContextConsumer=T,Wt.ContextProvider=k,Wt.Element=O,Wt.ForwardRef=j,Wt.Fragment=S,Wt.Lazy=E,Wt.Memo=A,Wt.Portal=D,Wt.Profiler=R,Wt.StrictMode=M,Wt.Suspense=I,Wt.isAsyncMode=U,Wt.isConcurrentMode=P,Wt.isContextConsumer=z,Wt.isContextProvider=V,Wt.isElement=H,Wt.isForwardRef=Y,Wt.isFragment=Z,Wt.isLazy=J,Wt.isMemo=ee,Wt.isPortal=W,Wt.isProfiler=L,Wt.isStrictMode=B,Wt.isSuspense=q,Wt.isValidElementType=w,Wt.typeOf=C}()),Wt}var Zx;function $S(){return Zx||(Zx=1,process.env.NODE_ENV==="production"?bm.exports=UF():bm.exports=HF()),bm.exports}/*
|
|
273
|
-
object-assign
|
|
274
|
-
(c) Sindre Sorhus
|
|
275
|
-
@license MIT
|
|
276
|
-
*/var ym,Xx;function VF(){if(Xx)return ym;Xx=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 ym=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},ym}var xm,Qx;function Z0(){if(Qx)return xm;Qx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xm=e,xm}var Jx,e2;function SS(){return e2||(e2=1,Jx=Function.call.bind(Object.prototype.hasOwnProperty)),Jx}var wm,t2;function qF(){if(t2)return wm;t2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Z0(),n={},r=SS();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={})},wm=i,wm}var _m,n2;function YF(){if(n2)return _m;n2=1;var e=$S(),t=VF(),n=Z0(),r=SS(),i=qF(),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 _m=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var z=P&&(c&&P[c]||P[u]);if(typeof z=="function")return z}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:$,node:j(),objectOf:k,oneOf:T,oneOfType:O,shape:E,exact:A};function p(P,z){return P===z?P!==0||1/P===1/z:P!==P&&z!==z}function g(P,z){this.message=P,this.data=z&&typeof z=="object"?z:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var z={},V=0;function H(Z,J,ee,W,L,B,q){if(W=W||f,B=B||ee,q!==n){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=W+":"+ee;!z[Q]&&V<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."),z[Q]=!0,V++)}}return J[ee]==null?Z?J[ee]===null?new g("The "+L+" `"+B+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new g("The "+L+" `"+B+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(J,ee,W,L,B)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function z(V,H,Y,Z,J,ee){var W=V[H],L=M(W);if(L!==P){var B=I(W);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+B+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(z)}function _(){return v(a)}function w(P){function z(V,H,Y,Z,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=V[H];if(!Array.isArray(ee)){var W=M(ee);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var B=P(ee,L,Y,Z,J+"["+L+"]",n);if(B instanceof Error)return B}return null}return v(z)}function C(){function P(z,V,H,Y,Z){var J=z[V];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(z,V,H,Y,Z){var J=z[V];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function z(V,H,Y,Z,J){if(!(V[H]instanceof P)){var ee=P.name||f,W=U(V[H]);return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(z)}function T(P){if(!Array.isArray(P))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 z(V,H,Y,Z,J){for(var ee=V[H],W=0;W<P.length;W++)if(p(ee,P[W]))return null;var L=JSON.stringify(P,function(B,q){var N=I(q);return N==="symbol"?String(q):q});return new g("Invalid "+Z+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(z)}function k(P){function z(V,H,Y,Z,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type "+("`"+W+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var B=P(ee,L,Y,Z,J+"."+L,n);if(B instanceof Error)return B}return null}return v(z)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<P.length;z++){var V=P[z];if(typeof V!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(V)+" at index "+z+"."),a}function H(Y,Z,J,ee,W){for(var L=[],B=0;B<P.length;B++){var q=P[B],N=q(Y,Z,J,ee,W,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&L.push(N.data.expectedType)}var Q=L.length>0?", expected one of type ["+L.join(", ")+"]":"";return new g("Invalid "+ee+" `"+W+"` supplied to "+("`"+J+"`"+Q+"."))}return v(H)}function j(){function P(z,V,H,Y,Z){return D(z[V])?null:new g("Invalid "+Y+" `"+Z+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,z,V,H,Y){return new g((P||"React class")+": "+z+" type `"+V+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(P){function z(V,H,Y,Z,J){var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type `"+W+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var B=P[L];if(typeof B!="function")return S(Y,Z,J,L,I(B));var q=B(ee,L,Y,Z,J+"."+L,n);if(q)return q}return null}return v(z)}function A(P){function z(V,H,Y,Z,J){var ee=V[H],W=M(ee);if(W!=="object")return new g("Invalid "+Z+" `"+J+"` of type `"+W+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},V[H],P);for(var B in L){var q=P[B];if(r(P,B)&&typeof q!="function")return S(Y,Z,J,B,I(q));if(!q)return new g("Invalid "+Z+" `"+J+"` key `"+B+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(V[H],null," ")+`
|
|
277
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=q(ee,B,Y,Z,J+"."+B,n);if(N)return N}return null}return v(z)}function D(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(D);if(P===null||s(P))return!0;var z=d(P);if(z){var V=z.call(P),H;if(z!==P.entries){for(;!(H=V.next()).done;)if(!D(H.value))return!1}else for(;!(H=V.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,z){return P==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function M(P){var z=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(z,P)?"symbol":z}function I(P){if(typeof P>"u"||P===null)return""+P;var z=M(P);if(z==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return z}function F(P){var z=I(P);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function U(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},_m}var Cm,r2;function GF(){if(r2)return Cm;r2=1;var e=Z0();function t(){}function n(){}return n.resetWarningCache=t,Cm=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},Cm}var i2;function KF(){if(i2)return Gu.exports;if(i2=1,process.env.NODE_ENV!=="production"){var e=$S(),t=!0;Gu.exports=YF()(e.isElement,t)}else Gu.exports=GF()();return Gu.exports}var ZF=KF();const Ye=mh(ZF);function XF(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function QF({as:e,bsPrefix:t,className:n,...r}){t=Et(t,"col");const i=zF(),o=WF(),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:me(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const TS=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=QF(e);return y.jsx(i,{...r,ref:t,className:me(n,!a.length&&o)})});TS.displayName="Col";var $m,o2;function JF(){if(o2)return $m;o2=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(r,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var a=1;a<o;a++)i[a-1]=arguments[a];var s=0,l="Warning: "+r.replace(/%s/g,function(){return i[s++]});typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}};t=function(r,i,o){var a=arguments.length;o=new Array(a>2?a-2:0);for(var s=2;s<a;s++)o[s-2]=arguments[s];if(i===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[i].concat(o))}}return $m=t,$m}var eB=JF();const bh=mh(eB),tB={type:Ye.string,tooltip:Ye.bool,as:Ye.elementType},yh=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:me(t,`${n}-${r?"tooltip":"feedback"}`)}));yh.displayName="Feedback";yh.propTypes=tB;const Pi=ie.createContext({}),X0=ie.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=m.useContext(Pi);return t=Et(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:me(n,t,i&&"is-valid",o&&"is-invalid")})});X0.displayName="FormCheckInput";const Qd=ie.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=m.useContext(Pi);return e=Et(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:me(t,e)})});Qd.displayName="FormCheckLabel";const ES=ie.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:g,children:v,as:x="input",..._},w)=>{t=Et(t,"form-check"),n=Et(n,"form-switch");const{controlId:C}=m.useContext(Pi),b=m.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&g!=null&&g!==!1||XF(v,Qd),T=y.jsx(X0,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(Pi.Provider,{value:b,children:y.jsx("div",{style:f,className:me(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||y.jsxs(y.Fragment,{children:[T,$&&y.jsx(Qd,{title:h,children:g}),c&&y.jsx(yh,{type:u,tooltip:l,children:c})]})})})});ES.displayName="FormCheck";const Jd=Object.assign(ES,{Input:X0,Label:Qd}),kS=ie.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}=m.useContext(Pi);return e=Et(e,"form-control"),process.env.NODE_ENV!=="production"&&bh(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:me(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});kS.displayName="FormControl";const nB=Object.assign(kS,{Feedback:yh}),OS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"form-floating"),y.jsx(n,{ref:i,className:me(e,t),...r})));OS.displayName="FormFloating";const Q0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return y.jsx(Pi.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});Q0.displayName="FormGroup";const MS=ie.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=m.useContext(Pi);t=Et(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=me(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&bh(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(TS,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});MS.displayName="FormLabel";const AS=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=m.useContext(Pi);return e=Et(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:me(t,e),id:n||o})});AS.displayName="FormRange";const RS=ie.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=m.useContext(Pi);return e=Et(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:me(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});RS.displayName="FormSelect";const jS=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=Et(e,"form-text"),y.jsx(n,{...i,ref:o,className:me(t,e,r&&"text-muted")})));jS.displayName="FormText";const NS=ie.forwardRef((e,t)=>y.jsx(Jd,{...e,ref:t,type:"switch"}));NS.displayName="Switch";const rB=Object.assign(NS,{Input:Jd.Input,Label:Jd.Label}),DS=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=Et(e,"form-floating"),y.jsxs(Q0,{ref:a,className:me(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));DS.displayName="FloatingLabel";const iB={_ref:Ye.any,validated:Ye.bool,as:Ye.elementType},J0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:me(e,t&&"was-validated")}));J0.displayName="Form";J0.propTypes=iB;const ef=Object.assign(J0,{Group:Q0,Control:nB,Floating:OS,Check:Jd,Switch:rB,Label:MS,Text:jS,Range:AS,Select:RS,FloatingLabel:DS}),oB=({column:e,filterValue:t,IconComponent:n,texts:r})=>{const[i,o]=m.useState(t??""),[a,s]=m.useState(!1),[l,c]=m.useState(!1);m.useEffect(()=>{o(t??"")},[t]),m.useEffect(()=>{if((i||null)===(t||null))return;const d=setTimeout(()=>{e.setFilterValue(i??null)},500);return()=>clearTimeout(d)},[i,e,t]);const u=m.useMemo(()=>i==="no_value_filter_value",[i]);return y.jsx("div",{className:"w-100 h-100 position-relative",children:u?y.jsx("div",{className:"d-flex align-items-center text-muted w-100 h-100 border rounded px-2",role:"button",style:{fontSize:"12px",minHeight:"31px",height:"31px",maxHeight:"31px"},onClick:()=>{o(""),c(!1),s(!1)},children:r.noValue}):y.jsxs(y.Fragment,{children:[y.jsx(ef.Control,{className:me("filter w-100",{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:i,onChange:d=>{o(d.target.value??"")},onKeyDown:d=>{d.key==="Escape"&&o("")},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),u?null:y.jsx("div",{className:"position-absolute",style:{top:"calc(50% - 8px)",right:"6px",opacity:a||l?1:0,transition:"opacity 0.3s ease-in-out"},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:y.jsx("div",{role:"button",onClick:()=>{o(u?"":"no_value_filter_value"),s(!1)},children:y.jsx(n,{icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function tf(e,t=tf.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}tf.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"};function Zg(){return Zg=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},Zg.apply(null,arguments)}function IS(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 Sm,a2;function aB(){if(a2)return Sm;a2=1;var e=function(t,n,r,i,o,a,s,l){if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return Sm=e,Sm}var sB=aB();const s2=mh(sB);function l2(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function lB(e){var t=cB(e,"string");return typeof t=="symbol"?t:String(t)}function cB(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 uB(e,t,n){var r=m.useRef(e!==void 0),i=m.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,m.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 PS(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[l2(r)],s=o[r],l=IS(o,[l2(r),r].map(lB)),c=t[r],u=uB(s,a,e[c]),d=u[0],f=u[1];return Zg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function cu(e){return e&&e.ownerDocument||document}const Hs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Xg=!1,Qg=!1;try{var Tm={get passive(){return Xg=!0},get once(){return Qg=Xg=!0}};Hs&&(window.addEventListener("test",Tm,Tm),window.removeEventListener("test",Tm,!0))}catch{}function e1(e,t,n,r){if(r&&typeof r!="boolean"&&!Qg){var i=r.once,o=r.capture,a=n;!Qg&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,Xg?r:o)}e.addEventListener(t,n,r)}function Jg(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 oo(e,t,n,r){return e1(e,t,n,r),function(){Jg(e,t,n,r)}}const c2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function dB(e,t){const n=c2(e),r=c2(t);return i=>{n&&n(i),r&&r(i)}}function uu(e,t){return m.useMemo(()=>dB(e,t),[e,t])}function fB(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function nf(e){const t=fB(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function hB(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Wn(e){const t=hB(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function LS(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function FS(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}var pB=Function.prototype.bind.call(Function.prototype.call,[].slice);function Qi(e,t){return pB(e.querySelectorAll(t))}function rf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const mB="data-rr-ui-";function t1(e){return`${mB}${e}`}const BS=m.createContext(Hs?window:void 0);BS.Provider;function xh(){return m.useContext(BS)}const gB=["as","disabled"];function vB(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 bB(e){return!e||e.trim()==="#"}function n1({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"&&bB(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 zS=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=vB(e,gB);const[o,{tagName:a}]=n1(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});zS.displayName="Button";const r1=ie.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=Et(t,"btn"),[u,{tagName:d}]=n1({tagName:e,disabled:o,...s});return y.jsx(d,{...u,...s,ref:l,disabled:o,className:me(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});r1.displayName="Button";function yB(){return m.useState(null)}function xB(e,t,n,r=!1){const i=Wn(n);m.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}const wB=["onKeyDown"];function _B(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 CB(e){return!e||e.trim()==="#"}const WS=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=_B(e,wB);const[i]=n1(Object.assign({tagName:"a"},r)),o=Wn(a=>{i.onKeyDown(a),n==null||n(a)});return CB(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}))});WS.displayName="Anchor";function $B(e,t,n){const r=m.useRef(e!==void 0),[i,o]=m.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,m.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function SB(){const[,e]=m.useReducer(t=>t+1,0);return e}const wh=ie.createContext(null);var u2=Object.prototype.hasOwnProperty;function d2(e,t,n){for(n of e.keys())if(Vl(n,t))return n}function Vl(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--&&Vl(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=d2(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=d2(t,i),!i)||!Vl(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(u2.call(e,n)&&++r&&!u2.call(t,n)||!(n in t)||!Vl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function TB(e){const t=LS();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var nr="top",Cr="bottom",$r="right",rr="left",i1="auto",du=[nr,Cr,$r,rr],ks="start",_c="end",EB="clippingParents",US="viewport",wl="popper",kB="reference",f2=du.reduce(function(e,t){return e.concat([t+"-"+ks,t+"-"+_c])},[]),HS=[].concat(du,[i1]).reduce(function(e,t){return e.concat([t,t+"-"+ks,t+"-"+_c])},[]),OB="beforeRead",MB="read",AB="afterRead",RB="beforeMain",jB="main",NB="afterMain",DB="beforeWrite",IB="write",PB="afterWrite",LB=[OB,MB,AB,RB,jB,NB,DB,IB,PB];function Zr(e){return e.split("-")[0]}function dr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fa(e){var t=dr(e).Element;return e instanceof t||e instanceof Element}function Xr(e){var t=dr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o1(e){if(typeof ShadowRoot>"u")return!1;var t=dr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var na=Math.max,of=Math.min,Os=Math.round;function ev(){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 VS(){return!/^((?!chrome|android).)*safari/i.test(ev())}function Ms(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Xr(e)&&(i=e.offsetWidth>0&&Os(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Os(r.height)/e.offsetHeight||1);var a=fa(e)?dr(e):window,s=a.visualViewport,l=!VS()&&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 a1(e){var t=Ms(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 qS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){return dr(e).getComputedStyle(e)}function FB(e){return["table","td","th"].indexOf(yo(e))>=0}function To(e){return((fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function _h(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(o1(e)?e.host:null)||To(e)}function h2(e){return!Xr(e)||Li(e).position==="fixed"?null:e.offsetParent}function BB(e){var t=/firefox/i.test(ev()),n=/Trident/i.test(ev());if(n&&Xr(e)){var r=Li(e);if(r.position==="fixed")return null}var i=_h(e);for(o1(i)&&(i=i.host);Xr(i)&&["html","body"].indexOf(yo(i))<0;){var o=Li(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 fu(e){for(var t=dr(e),n=h2(e);n&&FB(n)&&Li(n).position==="static";)n=h2(n);return n&&(yo(n)==="html"||yo(n)==="body"&&Li(n).position==="static")?t:n||BB(e)||t}function s1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ql(e,t,n){return na(e,of(t,n))}function zB(e,t,n){var r=ql(e,t,n);return r>n?n:r}function YS(){return{top:0,right:0,bottom:0,left:0}}function GS(e){return Object.assign({},YS(),e)}function KS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var WB=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,GS(typeof e!="number"?e:KS(e,du))};function UB(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Zr(n.placement),l=s1(s),c=[rr,$r].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=WB(i.padding,n),f=a1(o),h=l==="y"?nr:rr,p=l==="y"?Cr:$r,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],x=fu(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,C=d[h],b=_-f[u]-d[p],$=_/2-f[u]/2+w,T=ql(C,$,b),k=l;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-$,t)}}function HB(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)||qS(t.elements.popper,i)&&(t.elements.arrow=i))}const VB={name:"arrow",enabled:!0,phase:"main",fn:UB,effect:HB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var qB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YB(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Os(n*i)/i||0,y:Os(r*i)/i||0}}function p2(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,g=p===void 0?0:p,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=rr,C=nr,b=window;if(c){var $=fu(n),T="clientHeight",k="clientWidth";if($===dr(n)&&($=To(n),Li($).position!=="static"&&s==="absolute"&&(T="scrollHeight",k="scrollWidth")),$=$,i===nr||(i===rr||i===$r)&&o===_c){C=Cr;var O=d&&$===b&&b.visualViewport?b.visualViewport.height:$[T];g-=O-r.height,g*=l?1:-1}if(i===rr||(i===nr||i===Cr)&&o===_c){w=$r;var j=d&&$===b&&b.visualViewport?b.visualViewport.width:$[k];h-=j-r.width,h*=l?1:-1}}var S=Object.assign({position:s},c&&qB),E=u===!0?YB({x:h,y:g},dr(n)):{x:h,y:g};if(h=E.x,g=E.y,l){var A;return Object.assign({},S,(A={},A[C]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},S,(t={},t[C]=_?g+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function GB(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:Zr(t.placement),variation:As(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,p2(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,p2(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 KB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GB,data:{}};var Ku={passive:!0};function ZB(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=dr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ku)}),s&&l.addEventListener("resize",n.update,Ku),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ku)}),s&&l.removeEventListener("resize",n.update,Ku)}}const XB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZB,data:{}};var QB={left:"right",right:"left",bottom:"top",top:"bottom"};function Cd(e){return e.replace(/left|right|bottom|top/g,function(t){return QB[t]})}var JB={start:"end",end:"start"};function m2(e){return e.replace(/start|end/g,function(t){return JB[t]})}function l1(e){var t=dr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c1(e){return Ms(To(e)).left+l1(e).scrollLeft}function ez(e,t){var n=dr(e),r=To(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=VS();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+c1(e),y:l}}function tz(e){var t,n=To(e),r=l1(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=na(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=na(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+c1(e),l=-r.scrollTop;return Li(i||n).direction==="rtl"&&(s+=na(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function u1(e){var t=Li(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ZS(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:Xr(e)&&u1(e)?e:ZS(_h(e))}function Yl(e,t){var n;t===void 0&&(t=[]);var r=ZS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=dr(r),a=i?[o].concat(o.visualViewport||[],u1(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Yl(_h(a)))}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nz(e,t){var n=Ms(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 g2(e,t,n){return t===US?tv(ez(e,n)):fa(t)?nz(t,n):tv(tz(To(e)))}function rz(e){var t=Yl(_h(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0,r=n&&Xr(e)?fu(e):e;return fa(r)?t.filter(function(i){return fa(i)&&qS(i,r)&&yo(i)!=="body"}):[]}function iz(e,t,n,r){var i=t==="clippingParents"?rz(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=g2(e,c,r);return l.top=na(u.top,l.top),l.right=of(u.right,l.right),l.bottom=of(u.bottom,l.bottom),l.left=na(u.left,l.left),l},g2(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 XS(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zr(r):null,o=r?As(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case nr:l={x:a,y:t.y-n.height};break;case Cr:l={x:a,y:t.y+t.height};break;case $r:l={x:t.x+t.width,y:s};break;case rr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?s1(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ks:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _c:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Cc(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?EB:s,c=n.rootBoundary,u=c===void 0?US:c,d=n.elementContext,f=d===void 0?wl:d,h=n.altBoundary,p=h===void 0?!1:h,g=n.padding,v=g===void 0?0:g,x=GS(typeof v!="number"?v:KS(v,du)),_=f===wl?kB:wl,w=e.rects.popper,C=e.elements[p?_:f],b=iz(fa(C)?C:C.contextElement||To(e.elements.popper),l,u,a),$=Ms(e.elements.reference),T=XS({reference:$,element:w,placement:i}),k=tv(Object.assign({},w,T)),O=f===wl?k:$,j={top:b.top-O.top+x.top,bottom:O.bottom-b.bottom+x.bottom,left:b.left-O.left+x.left,right:O.right-b.right+x.right},S=e.modifiersData.offset;if(f===wl&&S){var E=S[i];Object.keys(j).forEach(function(A){var D=[$r,Cr].indexOf(A)>=0?1:-1,R=[nr,Cr].indexOf(A)>=0?"y":"x";j[A]+=E[R]*D})}return j}function oz(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?HS:l,u=As(r),d=u?s?f2:f2.filter(function(p){return As(p)===u}):du,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=Cc(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Zr(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function az(e){if(Zr(e)===i1)return[];var t=Cd(e);return[m2(e),t,m2(t)]}function sz(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,g=n.allowedAutoPlacements,v=t.options.placement,x=Zr(v),_=x===v,w=l||(_||!p?[Cd(v)]:az(v)),C=[v].concat(w).reduce(function(Y,Z){return Y.concat(Zr(Z)===i1?oz(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):Z)},[]),b=t.rects.reference,$=t.rects.popper,T=new Map,k=!0,O=C[0],j=0;j<C.length;j++){var S=C[j],E=Zr(S),A=As(S)===ks,D=[nr,Cr].indexOf(E)>=0,R=D?"width":"height",M=Cc(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=D?A?$r:rr:A?Cr:nr;b[R]>$[R]&&(I=Cd(I));var F=Cd(I),U=[];if(o&&U.push(M[E]<=0),s&&U.push(M[I]<=0,M[F]<=0),U.every(function(Y){return Y})){O=S,k=!1;break}T.set(S,U)}if(k)for(var P=p?3:1,z=function(Y){var Z=C.find(function(J){var ee=T.get(J);if(ee)return ee.slice(0,Y).every(function(W){return W})});if(Z)return O=Z,"break"},V=P;V>0;V--){var H=z(V);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const lz={name:"flip",enabled:!0,phase:"main",fn:sz,requiresIfExists:["offset"],data:{_skip:!1}};function v2(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 b2(e){return[nr,$r,Cr,rr].some(function(t){return e[t]>=0})}function cz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Cc(t,{elementContext:"reference"}),s=Cc(t,{altBoundary:!0}),l=v2(a,r),c=v2(s,i,o),u=b2(l),d=b2(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 uz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cz};function dz(e,t,n){var r=Zr(e),i=[rr,nr].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,[rr,$r].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function fz(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=HS.reduce(function(u,d){return u[d]=dz(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 hz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fz};function pz(e){var t=e.state,n=e.name;t.modifiersData[n]=XS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mz={name:"popperOffsets",enabled:!0,phase:"read",fn:pz,data:{}};function gz(e){return e==="x"?"y":"x"}function vz(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,g=p===void 0?0:p,v=Cc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Zr(t.placement),_=As(t.placement),w=!_,C=s1(x),b=gz(C),$=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if($){if(o){var A,D=C==="y"?nr:rr,R=C==="y"?Cr:$r,M=C==="y"?"height":"width",I=$[C],F=I+v[D],U=I-v[R],P=h?-k[M]/2:0,z=_===ks?T[M]:k[M],V=_===ks?-k[M]:-T[M],H=t.elements.arrow,Y=h&&H?a1(H):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:YS(),J=Z[D],ee=Z[R],W=ql(0,T[M],Y[M]),L=w?T[M]/2-P-W-J-j.mainAxis:z-W-J-j.mainAxis,B=w?-T[M]/2+P+W+ee+j.mainAxis:V+W+ee+j.mainAxis,q=t.elements.arrow&&fu(t.elements.arrow),N=q?C==="y"?q.clientTop||0:q.clientLeft||0:0,Q=(A=S==null?void 0:S[C])!=null?A:0,X=I+L-Q-N,G=I+B-Q,se=ql(h?of(F,X):F,I,h?na(U,G):U);$[C]=se,E[C]=se-I}if(s){var te,re=C==="x"?nr:rr,ae=C==="x"?Cr:$r,ce=$[b],ve=b==="y"?"height":"width",ge=ce+v[re],be=ce-v[ae],Te=[nr,rr].indexOf(x)!==-1,de=(te=S==null?void 0:S[b])!=null?te:0,le=Te?ge:ce-T[ve]-k[ve]-de+j.altAxis,we=Te?ce+T[ve]+k[ve]-de-j.altAxis:be,Be=h&&Te?zB(le,ce,we):ql(h?le:ge,ce,h?we:be);$[b]=Be,E[b]=Be-ce}t.modifiersData[r]=E}}const bz={name:"preventOverflow",enabled:!0,phase:"main",fn:vz,requiresIfExists:["offset"]};function yz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xz(e){return e===dr(e)||!Xr(e)?l1(e):yz(e)}function wz(e){var t=e.getBoundingClientRect(),n=Os(t.width)/e.offsetWidth||1,r=Os(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _z(e,t,n){n===void 0&&(n=!1);var r=Xr(t),i=Xr(t)&&wz(t),o=To(t),a=Ms(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||u1(o))&&(s=xz(t)),Xr(t)?(l=Ms(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=c1(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cz(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 $z(e){var t=Cz(e);return LB.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Sz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Tz(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 y2={placement:"bottom",modifiers:[],strategy:"absolute"};function x2(){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 Ez(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?y2:i;return function(a,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},y2,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(g){var v=typeof g=="function"?g(c.options):g;p(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:fa(a)?Yl(a):a.contextElement?Yl(a.contextElement):[],popper:Yl(s)};var x=$z(Tz([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(_){return _.enabled}),h(),f.update()},forceUpdate:function(){if(!d){var g=c.elements,v=g.reference,x=g.popper;if(x2(v,x)){c.rects={reference:_z(v,fu(x),c.options.strategy==="fixed"),popper:a1(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var w=c.orderedModifiers[_],C=w.fn,b=w.options,$=b===void 0?{}:b,T=w.name;typeof C=="function"&&(c=C({state:c,options:$,name:T,instance:f})||c)}}}},update:Sz(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){p(),d=!0}};if(!x2(a,s))return f;f.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function h(){c.orderedModifiers.forEach(function(g){var v=g.name,x=g.options,_=x===void 0?{}:x,w=g.effect;if(typeof w=="function"){var C=w({state:c,name:v,instance:f,options:_}),b=function(){};u.push(C||b)}})}function p(){u.forEach(function(g){return g()}),u=[]}return f}}const kz=Ez({defaultModifiers:[uz,mz,KB,XB,hz,lz,bz,VB]}),Oz=["enabled","placement","strategy","modifiers"];function Mz(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 Az={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Rz={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)}}},jz=[];function Nz(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=jz}=n,s=Mz(n,Oz);const l=m.useRef(a),c=m.useRef(),u=m.useCallback(()=>{var v;(v=c.current)==null||v.update()},[]),d=m.useCallback(()=>{var v;(v=c.current)==null||v.forceUpdate()},[]),[f,h]=TB(m.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:v})=>{const x={},_={};Object.keys(v.elements).forEach(w=>{x[w]=v.styles[w],_[w]=v.attributes[w]}),h({state:v,styles:x,attributes:_,update:u,forceUpdate:d,placement:v.placement})}}),[u,d,h]),g=m.useMemo(()=>(Vl(l.current,a)||(l.current=a),l.current),[a]);return m.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...g,p,Az]})},[o,i,p,r,g]),m.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=kz(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,Rz,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(v=>Object.assign({},v,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}const w2=()=>{};function Dz(e){return e.button===0}function Iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Em=e=>e&&("current"in e?e.current:e),_2={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Pz(e,t=w2,{disabled:n,clickTrigger:r="click"}={}){const i=m.useRef(!1),o=m.useRef(!1),a=m.useCallback(c=>{const u=Em(e);bh(!!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||Iz(c)||!Dz(c)||!!rf(u,c.target)||o.current,o.current=!1},[e]),s=Wn(c=>{const u=Em(e);u&&rf(u,c.target)?o.current=!0:o.current=!1}),l=Wn(c=>{i.current||t(c)});m.useEffect(()=>{var c,u;if(n||e==null)return;const d=cu(Em(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;_2[r]&&(p=oo(d,_2[r],s,!0));const g=oo(d,r,a,!0),v=oo(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>oo(_,"mousemove",w2))),()=>{p==null||p(),g(),v(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function Lz(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Fz(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Bz({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=Lz(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Fz(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 zz=["children","usePopper"];function Wz(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 Uz=()=>{};function QS(e={}){const t=m.useContext(wh),[n,r]=yB(),i=m.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=$=>{t==null||t.toggle(!1,$)},{placement:g,setMenu:v,menuElement:x,toggleElement:_}=t||{},w=Nz(_,x,Bz({placement:c||g||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:v||Uz,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:g,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 Pz(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function JS(e){let{children:t,usePopper:n=!0}=e,r=Wz(e,zz);const[i,o]=QS(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}JS.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},e6=m.createContext(af),Hz=m.createContext(!1);let Vz=!!(typeof window<"u"&&window.document&&window.document.createElement),km=new WeakMap;function qz(e=!1){let t=m.useContext(e6),n=m.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=km.get(o);a==null?km.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,km.delete(o))}n.current=++t.current}return n.current}function Yz(e){let t=m.useContext(e6);t===af&&!Vz&&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=qz(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Gz(e){let t=m.useId(),[n]=m.useState(Jz()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const Kz=typeof m.useId=="function"?Gz:Yz;function Zz(){return!1}function Xz(){return!0}function Qz(e){return()=>{}}function Jz(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(Qz,Zz,Xz):m.useContext(Hz)}const t6=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},C2=()=>{};function n6(){const e=Kz(),{show:t=!1,toggle:n=C2,setToggle:r,menuElement:i}=m.useContext(wh)||{},o=m.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||C2,onClick:o,"aria-expanded":!!t};return i&&t6(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function r6({children:e}){const[t,n]=n6();return y.jsx(y.Fragment,{children:e(t,n)})}r6.displayName="DropdownToggle";const nv=ie.createContext(null),$2=(e,t=null)=>e!=null?String(e):t||null,i6=ie.createContext(null);i6.displayName="NavContext";const eW=["eventKey","disabled","onClick","active","as"];function tW(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 o6({key:e,href:t,active:n,disabled:r,onClick:i}){const o=m.useContext(nv),a=m.useContext(i6),{activeKey:s}=a||{},l=$2(e,t),c=n==null&&e!=null?$2(s)===l:n;return[{onClick:Wn(u=>{r||(i==null||i(u),o&&!u.isPropagationStopped()&&o(l,u))}),"aria-disabled":r||void 0,"aria-selected":c,[t1("dropdown-item")]:""},{isActive:c}]}const a6=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=zS}=e,s=tW(e,eW);const[l]=o6({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});a6.displayName="DropdownItem";function S2(){const e=SB(),t=m.useRef(null),n=m.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function hu({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${t1("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=xh(),[c,u]=$B(t,e,r),[d,f]=S2(),h=d.current,[p,g]=S2(),v=p.current,x=FS(c),_=m.useRef(null),w=m.useRef(!1),C=m.useContext(nv),b=m.useCallback((S,E,A=E==null?void 0:E.type)=>{u(S,{originalEvent:E,source:A})},[u]),$=Wn((S,E)=>{n==null||n(S,E),b(!1,E,"select"),E.isPropagationStopped()||(C==null||C(S,E))}),T=m.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:v,setMenu:f,setToggle:g}),[b,a,c,h,v,f,g]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=Wn(()=>{v&&v.focus&&v.focus()}),O=Wn(()=>{const S=_.current;let E=o;if(E==null&&(E=d.current&&t6(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(S))return;const A=Qi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():w.current&&(w.current=!1,k())},[c,w,k,O]),m.useEffect(()=>{_.current=null});const j=(S,E)=>{if(!d.current)return null;const A=Qi(d.current,i);let D=A.indexOf(S)+E;return D=Math.max(0,Math.min(D,A.length)),A[D]};return xB(m.useCallback(()=>l.document,[l]),"keydown",S=>{var E,A;const{key:D}=S,R=S.target,M=(E=d.current)==null?void 0:E.contains(R),I=(A=p.current)==null?void 0:A.contains(R);if(/input|textarea/i.test(R.tagName)&&(D===" "||D!=="Escape"&&M||D==="Escape"&&R.type==="search")||!M&&!I||D==="Tab"&&(!d.current||!c))return;_.current=S.type;const F={originalEvent:S,source:S.type};switch(D){case"ArrowUp":{const U=j(R,-1);U&&U.focus&&U.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,F);else{const U=j(R,1);U&&U.focus&&U.focus()}return;case"Tab":e1(R.ownerDocument,"keyup",U=>{var P;(U.key==="Tab"&&!U.target||!((P=d.current)!=null&&P.contains(U.target)))&&u(!1,F)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,F);break}}),y.jsx(nv.Provider,{value:$,children:y.jsx(wh.Provider,{value:T,children:s})})}hu.displayName="Dropdown";hu.Menu=JS;hu.Toggle=r6;hu.Item=a6;const d1=ie.createContext({});d1.displayName="DropdownContext";const s6=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=Et(t,"dropdown-divider"),y.jsx(n,{ref:o,className:me(e,t),role:r,...i})));s6.displayName="DropdownDivider";const l6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=Et(t,"dropdown-header"),y.jsx(n,{ref:o,className:me(e,t),role:r,...i})));l6.displayName="DropdownHeader";const c6=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=WS,...s},l)=>{const c=Et(e,"dropdown-item"),[u,d]=o6({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:me(t,c,d.isActive&&"active",r&&"disabled")})});c6.displayName="DropdownItem";const u6=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Et(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:me(e,t),...r})));u6.displayName="DropdownItemText";const nW=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",rW=typeof document<"u",iW=rW||nW?m.useLayoutEffect:m.useEffect,f1=ie.createContext(null);f1.displayName="InputGroupContext";const d6=ie.createContext(null);d6.displayName="NavbarContext";function f6(e,t){if(process.env.NODE_ENV==="production")return e;const n=m.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?s2(!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`):s2(!1))},[t]);return uu(n,e)}function h6(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 p6=ie.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=m.useContext(d6),p=Et(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=m.useContext(d1);n=n||g;const _=m.useContext(f1),w=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&bh(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const E=S[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const C=h6(f,v,x),[b,{hasShown:$,popper:T,show:k,toggle:O}]=QS({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=uu(f6(d,"DropdownMenu"),b.ref),iW(()=>{k&&(T==null||T.update())},[k]),!$&&!a&&!_)return null;typeof s!="string"&&(b.show=k,b.close=()=>O==null?void 0:O(!1),b.align=n);let j=u.style;return T!=null&&T.placement&&(j={...u.style,...b.style},u["x-placement"]=T.placement),y.jsx(s,{...u,...b,style:j,...(w.length||h)&&{"data-bs-popper":"static"},className:me(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});p6.displayName="DropdownMenu";const m6=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=r1,...o},a)=>{const s=Et(e,"dropdown-toggle"),l=m.useContext(wh);r!==void 0&&(o.bsPrefix=r);const[c]=n6();return c.ref=uu(c.ref,f6(a,"DropdownToggle")),y.jsx(i,{className:me(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});m6.displayName="DropdownToggle";const g6=ie.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}=PS(e,{show:"onToggle"}),p=m.useContext(f1),g=Et(n,"dropdown"),v=CS(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,_=nf(($,T)=>{var k;!((k=T.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&T.source==="mousedown"||(T.originalEvent.currentTarget===document&&(T.source!=="keydown"||T.originalEvent.key==="Escape")&&(T.source="rootClose"),x(T.source)&&(l==null||l($,T)))}),w=h6(a==="end",r,v),C=m.useMemo(()=>({align:a,drop:r,isRTL:v}),[a,r,v]),b={down:g,"down-centered":`${g}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(d1.Provider,{value:C,children:y.jsx(hu,{placement:w,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:me(o,i&&"show",b[r])})})})});g6.displayName="Dropdown";const Rn=Object.assign(g6,{Toggle:m6,Menu:p6,Item:c6,ItemText:u6,Divider:s6,Header:l6}),oW="_multiselect_krzom_1",aW="_multiselect-menu_krzom_34",sW="_search-item_krzom_41",lW="_special-option_krzom_45",Zu={multiselect:oW,multiselectMenu:aW,searchItem:sW,specialOption:lW},T2=10,cW=({column:e,filterValue:t,texts:n})=>{var p,g,v;const[r,i]=m.useState(""),o=m.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).map(x=>x===!0||x===!1?x:(x==null?void 0:x.toString())??"").sort(),[e]),a=m.useMemo(()=>o.some(x=>x===""||x===null||x===void 0),[o]),s=m.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),l=x=>{const _=x===""?[]:s.includes(x)?s.filter(w=>w!==x):[...s,x];e.setFilterValue(!_||_.length<1?"":_.join(";"))},c=m.useMemo(()=>{const x=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return a&&x.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),o.forEach(_=>{x.push({value:(_==null?void 0:_.toString())||"",label:_===!0?n.booleanYes||"ano":_===!1?n.booleanNo||"ne":_,specialOption:!1})}),s.forEach(_=>{_&&_!=="no_value_filter_value"&&!o.some(w=>w.toString()===_.toString())&&x.push({value:_,label:_,specialOption:!1})}),Array.from(new Set(x.map(_=>_.value))).map(_=>x.find(w=>w.value===_))},[o,s,a,n]),u=m.useRef(null),d=m.useRef(null),[f,h]=m.useState(!1);return m.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),m.useEffect(()=>{c.length<T2&&i("")},[c]),y.jsxs(Rn,{autoClose:"outside",onToggle:x=>h(x),children:[y.jsx(Rn.Toggle,{className:me("filter multiselect border",Zu.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:u,role:"filter-input",size:"sm",onKeyDown:x=>{x.key==="Escape"&&e.setFilterValue("")},children:s.length>1?n.multiselect.xValues?n.multiselect.xValues(s.length):`${s.length} hodnoty`:s.length===1?(p=c.find(x=>x.value===t))==null?void 0:p.label:n.multiselect.all||"vše"}),y.jsxs(Rn.Menu,{className:me("multiselect-menu shadow-sm",Zu.multiselectMenu),style:{position:"relative",left:(g=u.current)==null?void 0:g.getBoundingClientRect().left,top:(v=u.current)==null?void 0:v.getBoundingClientRect().bottom},children:[c.length>=T2?y.jsx(Rn.Item,{className:me("rounded search-item",Zu.searchItem),children:y.jsx(ef.Control,{className:"w-100",ref:d,size:"sm",type:"search",value:r,onChange:x=>i(x.target.value??"")})}):null,c.filter(x=>x.specialOption?!0:r?tf(x.value).toLowerCase().includes(tf(r.toLowerCase())):!0).map(x=>y.jsx(Rn.Item,{className:me("rounded",{"special-option":x.specialOption},{[Zu.specialOption]:x.specialOption}),onClick:()=>l(x.value),children:y.jsx(ef.Check,{checked:x.value===""?s.length<1:s.includes(x.value),label:x.label,onChange:()=>{}})},x.value))]})]})},uW=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=LF(e.columnDef);return["text","number","date","datetime"].includes(i)?y.jsx(oB,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):y.jsx(cW,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n})};/**
|
|
278
|
-
* table-core
|
|
279
|
-
*
|
|
280
|
-
* Copyright (c) TanStack
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the MIT license found in the
|
|
283
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
284
|
-
*
|
|
285
|
-
* @license MIT
|
|
286
|
-
*/function dW(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}/**
|
|
287
|
-
* react-table
|
|
288
|
-
*
|
|
289
|
-
* Copyright (c) TanStack
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the MIT license found in the
|
|
292
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
293
|
-
*
|
|
294
|
-
* @license MIT
|
|
295
|
-
*/function v6(e,t){return e?fW(e)?ie.createElement(e,t):e:null}function fW(e){return hW(e)||typeof e=="function"||pW(e)}function hW(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function pW(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function mW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Ch=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function h1(e){return"nodeType"in e}function ir(e){var t,n;return e?Vs(e)?e:h1(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function p1(e){const{Document:t}=ir(e);return e instanceof t}function pu(e){return Vs(e)?!1:e instanceof ir(e).HTMLElement}function b6(e){return e instanceof ir(e).SVGElement}function qs(e){return e?Vs(e)?e.document:h1(e)?p1(e)?e:pu(e)||b6(e)?e.ownerDocument:document:document:document}const ni=Ch?m.useLayoutEffect:m.useEffect;function m1(e){const t=m.useRef(e);return ni(()=>{t.current=e}),m.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 gW(){const e=m.useRef(null),t=m.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function $c(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return ni(()=>{n.current!==e&&(n.current=e)},t),n}function mu(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function sf(e){const t=m1(e),n=m.useRef(null),r=m.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function rv(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let Om={};function gu(e,t){return m.useMemo(()=>{if(t)return t;const n=Om[e]==null?0:Om[e]+1;return Om[e]=n,e+"-"+n},[e,t])}function y6(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 ls=y6(1),lf=y6(-1);function vW(e){return"clientX"in e&&"clientY"in e}function g1(e){if(!e)return!1;const{KeyboardEvent:t}=ir(e.target);return t&&e instanceof t}function bW(e){if(!e)return!1;const{TouchEvent:t}=ir(e.target);return t&&e instanceof t}function iv(e){if(bW(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 vW(e)?{x:e.clientX,y:e.clientY}:null}const Sc=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[Sc.Translate.toString(e),Sc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),E2="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function yW(e){return e.matches(E2)?e:e.querySelector(E2)}const xW={display:"none"};function wW(e){let{id:t,value:n}=e;return m.createElement("div",{id:t,style:xW},n)}function _W(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 m.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function CW(){const[e,t]=m.useState("");return{announce:m.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const x6=m.createContext(null);function $W(e){const t=m.useContext(x6);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function SW(){const[e]=m.useState(()=>new Set),t=m.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[m.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 TW={draggable:`
|
|
296
|
-
To pick up a draggable item, press the space bar.
|
|
297
|
-
While dragging, use the arrow keys to move the item.
|
|
298
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
299
|
-
`},EW={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 kW(e){let{announcements:t=EW,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=TW}=e;const{announce:o,announcement:a}=CW(),s=gu("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0)},[]),$W(m.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=m.createElement(m.Fragment,null,m.createElement(wW,{id:r,value:i.draggable}),m.createElement(_W,{id:s,announcement:a}));return n?mn.createPortal(u,n):u}var bn;(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"})(bn||(bn={}));function cf(){}function Mm(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function OW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Ir=Object.freeze({x:0,y:0});function MW(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function AW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function RW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function jW(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function k2(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 NW=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=k2(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=MW(k2(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(AW)};function DW(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 IW=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=DW(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(RW)};function PW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function w6(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ir}function LW(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 FW=LW(1);function BW(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 zW(e,t,n){const r=BW(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 WW={ignoreTransform:!1};function Ys(e,t){t===void 0&&(t=WW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=ir(e).getComputedStyle(e);c&&(n=zW(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 O2(e){return Ys(e,{ignoreTransform:!0})}function UW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function HW(e,t){return t===void 0&&(t=ir(e).getComputedStyle(e)),t.position==="fixed"}function VW(e,t){t===void 0&&(t=ir(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 v1(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(p1(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!pu(i)||b6(i)||n.includes(i))return n;const o=ir(e).getComputedStyle(i);return i!==e&&VW(i,o)&&n.push(i),HW(i,o)?n:r(i.parentNode)}return e?r(e):n}function _6(e){const[t]=v1(e,1);return t??null}function Am(e){return!Ch||!e?null:Vs(e)?e:h1(e)?p1(e)||e===qs(e).scrollingElement?window:pu(e)?e:null:null}function C6(e){return Vs(e)?e.scrollX:e.scrollLeft}function $6(e){return Vs(e)?e.scrollY:e.scrollTop}function ov(e){return{x:C6(e),y:$6(e)}}var $n;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($n||($n={}));function S6(e){return!Ch||!e?!1:e===document.scrollingElement}function T6(e){const t={x:0,y:0},n=S6(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 qW={x:.2,y:.2};function YW(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=qW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=T6(e),h={x:0,y:0},p={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+g.height?(h.y=$n.Backward,p.y=r*Math.abs((t.top+g.height-o)/g.height)):!u&&l>=t.bottom-g.height&&(h.y=$n.Forward,p.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!f&&s>=t.right-g.width?(h.x=$n.Forward,p.x=r*Math.abs((t.right-g.width-s)/g.width)):!d&&a<=t.left+g.width&&(h.x=$n.Backward,p.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:h,speed:p}}function GW(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 E6(e){return e.reduce((t,n)=>ls(t,ov(n)),Ir)}function KW(e){return e.reduce((t,n)=>t+C6(n),0)}function ZW(e){return e.reduce((t,n)=>t+$6(n),0)}function XW(e,t){if(t===void 0&&(t=Ys),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);_6(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const QW=[["x",["left","right"],KW],["y",["top","bottom"],ZW]];class b1{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=v1(n),i=E6(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of QW)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})}}let Gl=class{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 JW(e){const{EventTarget:t}=ir(e);return e instanceof t?e:qs(e)}function Rm(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 pr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pr||(pr={}));function M2(e){e.preventDefault()}function eU(e){e.stopPropagation()}var Mt;(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"})(Mt||(Mt={}));const k6={start:[Mt.Space,Mt.Enter],cancel:[Mt.Esc],end:[Mt.Space,Mt.Enter,Mt.Tab]},tU=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Mt.Right:return{...n,x:n.x+25};case Mt.Left:return{...n,x:n.x-25};case Mt.Down:return{...n,y:n.y+25};case Mt.Up:return{...n,y:n.y-25}}};let y1=class{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 Gl(qs(n)),this.windowListeners=new Gl(ir(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(pr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&XW(r),n(Ir)}handleKeyDown(t){if(g1(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=k6,coordinateGetter:a=tU,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}:Ir;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=lf(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const v=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:b,minScroll:$}=T6(g),T=GW(g),k={x:Math.min(v===Mt.Right?T.right-T.width/2:T.right,Math.max(v===Mt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(v===Mt.Down?T.bottom-T.height/2:T.bottom,Math.max(v===Mt.Down?T.top:T.top+T.height/2,d.y))},O=v===Mt.Right&&!_||v===Mt.Left&&!w,j=v===Mt.Down&&!C||v===Mt.Up&&!x;if(O&&k.x!==d.x){const S=g.scrollLeft+f.x,E=v===Mt.Right&&S<=b.x||v===Mt.Left&&S>=$.x;if(E&&!f.y){g.scrollTo({left:S,behavior:s});return}E?h.x=g.scrollLeft-S:h.x=v===Mt.Right?g.scrollLeft-b.x:g.scrollLeft-$.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(j&&k.y!==d.y){const S=g.scrollTop+f.y,E=v===Mt.Down&&S<=b.y||v===Mt.Up&&S>=$.y;if(E&&!f.x){g.scrollTo({top:S,behavior:s});return}E?h.y=g.scrollTop-S:h.y=v===Mt.Down?g.scrollTop-b.y:g.scrollTop-$.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,ls(lf(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()}};y1.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=k6,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 A2(e){return!!(e&&"distance"in e)}function R2(e){return!!(e&&"delay"in e)}class x1{constructor(t,n,r){var i;r===void 0&&(r=JW(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=qs(a),this.documentListeners=new Gl(this.document),this.listeners=new Gl(r),this.windowListeners=new Gl(ir(a)),this.initialCoordinates=(i=iv(o))!=null?i:Ir,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(pr.Resize,this.handleCancel),this.windowListeners.add(pr.DragStart,M2),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),this.windowListeners.add(pr.ContextMenu,M2),this.documentListeners.add(pr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(R2(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(A2(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(pr.Click,eU,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(pr.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=iv(t))!=null?n:Ir,c=lf(i,l);if(!r&&s){if(A2(s)){if(s.tolerance!=null&&Rm(c,s.tolerance))return this.handleCancel();if(Rm(c,s.distance))return this.handleStart()}if(R2(s)&&Rm(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===Mt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const nU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let O6=class extends x1{constructor(t){const{event:n}=t,r=qs(n.target);super(t,nU,r)}};O6.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 rU={move:{name:"mousemove"},end:{name:"mouseup"}};var av;(function(e){e[e.RightClick=2]="RightClick"})(av||(av={}));let M6=class extends x1{constructor(t){super(t,rU,qs(t.event.target))}};M6.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===av.RightClick?!1:(r==null||r({event:n}),!0)}}];const jm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let A6=class extends x1{constructor(t){super(t,jm)}static setup(){return window.addEventListener(jm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(jm.move.name,t)};function t(){}}};A6.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 Kl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Kl||(Kl={}));var uf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uf||(uf={}));function iU(e){let{acceleration:t,activator:n=Kl.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=uf.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=aU({delta:d,disabled:!o}),[p,g]=gW(),v=m.useRef({x:0,y:0}),x=m.useRef({x:0,y:0}),_=m.useMemo(()=>{switch(n){case Kl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Kl.DraggableRect:return i}},[n,i,l]),w=m.useRef(null),C=m.useCallback(()=>{const $=w.current;if(!$)return;const T=v.current.x*x.current.x,k=v.current.y*x.current.y;$.scrollBy(T,k)},[]),b=m.useMemo(()=>s===uf.TreeOrder?[...c].reverse():c,[s,c]);m.useEffect(()=>{if(!o||!c.length||!_){g();return}for(const $ of b){if((r==null?void 0:r($))===!1)continue;const T=c.indexOf($),k=u[T];if(!k)continue;const{direction:O,speed:j}=YW($,k,_,t,f);for(const S of["x","y"])h[S][O[S]]||(j[S]=0,O[S]=0);if(j.x>0||j.y>0){g(),w.current=$,p(C,a),v.current=j,x.current=O;return}}v.current={x:0,y:0},x.current={x:0,y:0},g()},[t,C,r,g,o,a,JSON.stringify(_),JSON.stringify(h),p,c,b,u,JSON.stringify(f)])}const oU={x:{[$n.Backward]:!1,[$n.Forward]:!1},y:{[$n.Backward]:!1,[$n.Forward]:!1}};function aU(e){let{delta:t,disabled:n}=e;const r=rv(t);return mu(i=>{if(n||!r||!i)return oU;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[$n.Backward]:i.x[$n.Backward]||o.x===-1,[$n.Forward]:i.x[$n.Forward]||o.x===1},y:{[$n.Backward]:i.y[$n.Backward]||o.y===-1,[$n.Forward]:i.y[$n.Forward]||o.y===1}}},[n,t,r])}function sU(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return mu(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function lU(e,t){return m.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 Tc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Tc||(Tc={}));var sv;(function(e){e.Optimized="optimized"})(sv||(sv={}));const j2=new Map;function cU(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=m.useState(null),{frequency:s,measure:l,strategy:c}=i,u=m.useRef(e),d=v(),f=$c(d),h=m.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),p=m.useRef(null),g=mu(x=>{if(d&&!n)return j2;if(!x||x===j2||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 b1(l(C),C):null;w.rect.current=b,b&&_.set(w.id,b)}return _}return x},[e,o,n,d,l]);return m.useEffect(()=>{u.current=e},[e]),m.useEffect(()=>{d||h()},[n,d]),m.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),m.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:o!=null};function v(){switch(c){case Tc.Always:return!1;case Tc.BeforeDragging:return n;default:return!n}}}function R6(e,t){return mu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function uU(e,t){return R6(e,t)}function dU(e){let{callback:t,disabled:n}=e;const r=m1(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function $h(e){let{callback:t,disabled:n}=e;const r=m1(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function fU(e){return new b1(Ys(e),e)}function N2(e,t,n){t===void 0&&(t=fU);const[r,i]=m.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=dU({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=$h({callback:o});return ni(()=>{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 hU(e){const t=R6(e);return w6(e,t)}const D2=[];function pU(e){const t=m.useRef(e),n=mu(r=>e?r&&r!==D2&&e&&t.current&&e.parentNode===t.current.parentNode?r:v1(e):D2,[e]);return m.useEffect(()=>{t.current=e},[e]),n}function mU(e){const[t,n]=m.useState(null),r=m.useRef(e),i=m.useCallback(o=>{const a=Am(o.target);a&&n(s=>s?(s.set(a,ov(a)),new Map(s)):null)},[]);return m.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=Am(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,ov(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=Am(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>ls(o,a),Ir):E6(e):Ir,[e,t])}function I2(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null},t),m.useEffect(()=>{const r=e!==Ir;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?lf(e,n.current):Ir}function gU(e){m.useEffect(()=>{if(!Ch)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 vU(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function j6(e){return m.useMemo(()=>e?UW(e):null,[e])}const P2=[];function bU(e,t){t===void 0&&(t=Ys);const[n]=e,r=j6(n?ir(n):null),[i,o]=m.useState(P2);function a(){o(()=>e.length?e.map(l=>S6(l)?r:new b1(t(l),l)):P2)}const s=$h({callback:a});return ni(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function yU(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return pu(t)?t:e}function xU(e){let{measure:t}=e;const[n,r]=m.useState(null),i=m.useCallback(c=>{for(const{target:u}of c)if(pu(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=$h({callback:i}),a=m.useCallback(c=>{const u=yU(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,l]=sf(a);return m.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const wU=[{sensor:O6,options:{}},{sensor:y1,options:{}}],_U={current:{}},$d={draggable:{measure:O2},droppable:{measure:O2,strategy:Tc.WhileDragging,frequency:sv.Optimized},dragOverlay:{measure:Ys}};let Zl=class 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 CU={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:cf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$d,measureDroppableContainers:cf,windowRect:null,measuringScheduled:!1},$U={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cf,draggableNodes:new Map,over:null,measureDroppableContainers:cf},Sh=m.createContext($U),N6=m.createContext(CU);function SU(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zl}}}function TU(e,t){switch(t.type){case bn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case bn.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 bn.DragEnd:case bn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case bn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Zl(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case bn.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 Zl(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case bn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Zl(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function EU(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=m.useContext(Sh),o=rv(r),a=rv(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!g1(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=yW(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function kU(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function OU(e){return m.useMemo(()=>({draggable:{...$d.draggable,...e==null?void 0:e.draggable},droppable:{...$d.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$d.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 MU(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=m.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ni(()=>{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=w6(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=_6(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const D6=m.createContext({...Ir,scaleX:1,scaleY:1});var Ji;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ji||(Ji={}));const AU=m.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:c=wU,collisionDetection:u=IW,measuring:d,modifiers:f,...h}=e;const p=m.useReducer(TU,void 0,SU),[g,v]=p,[x,_]=SW(),[w,C]=m.useState(Ji.Uninitialized),b=w===Ji.Initialized,{draggable:{active:$,nodes:T,translate:k},droppable:{containers:O}}=g,j=$!=null?T.get($):null,S=m.useRef({initial:null,translated:null}),E=m.useMemo(()=>{var Ke;return $!=null?{id:$,data:(Ke=j==null?void 0:j.data)!=null?Ke:_U,rect:S}:null},[$,j]),A=m.useRef(null),[D,R]=m.useState(null),[M,I]=m.useState(null),F=$c(h,Object.values(h)),U=gu("DndDescribedBy",o),P=m.useMemo(()=>O.getEnabled(),[O]),z=OU(d),{droppableRects:V,measureDroppableContainers:H,measuringScheduled:Y}=cU(P,{dragging:b,dependencies:[k.x,k.y],config:z.droppable}),Z=sU(T,$),J=m.useMemo(()=>M?iv(M):null,[M]),ee=At(),W=uU(Z,z.draggable.measure);MU({activeNode:$!=null?T.get($):null,config:ee.layoutShiftCompensation,initialRect:W,measure:z.draggable.measure});const L=N2(Z,z.draggable.measure,W),B=N2(Z?Z.parentElement:null),q=m.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),N=O.getNodeFor((t=q.current.over)==null?void 0:t.id),Q=xU({measure:z.dragOverlay.measure}),X=(n=Q.nodeRef.current)!=null?n:Z,G=b?(r=Q.rect)!=null?r:L:null,se=!!(Q.nodeRef.current&&Q.rect),te=hU(se?null:L),re=j6(X?ir(X):null),ae=pU(b?N??Z:null),ce=bU(ae),ve=kU(f,{transform:{x:k.x-te.x,y:k.y-te.y,scaleX:1,scaleY:1},activatorEvent:M,active:E,activeNodeRect:L,containerNodeRect:B,draggingNodeRect:G,over:q.current.over,overlayNodeRect:Q.rect,scrollableAncestors:ae,scrollableAncestorRects:ce,windowRect:re}),ge=J?ls(J,k):null,be=mU(ae),Te=I2(be),de=I2(be,[L]),le=ls(ve,Te),we=G?FW(G,ve):null,Be=E&&we?u({active:E,collisionRect:we,droppableRects:V,droppableContainers:P,pointerCoordinates:ge}):null,Bt=jW(Be,"id"),[Le,gt]=m.useState(null),_t=se?ve:ls(ve,de),nn=PW(_t,(i=Le==null?void 0:Le.rect)!=null?i:null,L),Ee=m.useRef(null),je=m.useCallback((Ke,De)=>{let{sensor:We,options:Qe}=De;if(A.current==null)return;const Ie=T.get(A.current);if(!Ie)return;const Je=Ke.nativeEvent,ht=new We({active:A.current,activeNode:Ie,event:Je,options:Qe,context:q,onAbort(Ne){if(!T.get(Ne))return;const{onDragAbort:ke}=F.current,He={id:Ne};ke==null||ke(He),x({type:"onDragAbort",event:He})},onPending(Ne,ke,He,yt){if(!T.get(Ne))return;const{onDragPending:et}=F.current,pt={id:Ne,constraint:ke,initialCoordinates:He,offset:yt};et==null||et(pt),x({type:"onDragPending",event:pt})},onStart(Ne){const ke=A.current;if(ke==null)return;const He=T.get(ke);if(!He)return;const{onDragStart:yt}=F.current,et={activatorEvent:Je,active:{id:ke,data:He.data,rect:S}};mn.unstable_batchedUpdates(()=>{yt==null||yt(et),C(Ji.Initializing),v({type:bn.DragStart,initialCoordinates:Ne,active:ke}),x({type:"onDragStart",event:et}),R(Ee.current),I(Je)})},onMove(Ne){v({type:bn.DragMove,coordinates:Ne})},onEnd:nt(bn.DragEnd),onCancel:nt(bn.DragCancel)});Ee.current=ht;function nt(Ne){return async function(){const{active:ke,collisions:He,over:yt,scrollAdjustedTranslate:et}=q.current;let pt=null;if(ke&&et){const{cancelDrop:tn}=F.current;pt={activatorEvent:Je,active:ke,collisions:He,delta:et,over:yt},Ne===bn.DragEnd&&typeof tn=="function"&&await Promise.resolve(tn(pt))&&(Ne=bn.DragCancel)}A.current=null,mn.unstable_batchedUpdates(()=>{v({type:Ne}),C(Ji.Uninitialized),gt(null),R(null),I(null),Ee.current=null;const tn=Ne===bn.DragEnd?"onDragEnd":"onDragCancel";if(pt){const zt=F.current[tn];zt==null||zt(pt),x({type:tn,event:pt})}})}}},[T]),vt=m.useCallback((Ke,De)=>(We,Qe)=>{const Ie=We.nativeEvent,Je=T.get(Qe);if(A.current!==null||!Je||Ie.dndKit||Ie.defaultPrevented)return;const ht={active:Je};Ke(We,De.options,ht)===!0&&(Ie.dndKit={capturedBy:De.sensor},A.current=Qe,je(We,De))},[T,je]),qe=lU(c,vt);gU(c),ni(()=>{L&&w===Ji.Initializing&&C(Ji.Initialized)},[L,w]),m.useEffect(()=>{const{onDragMove:Ke}=F.current,{active:De,activatorEvent:We,collisions:Qe,over:Ie}=q.current;if(!De||!We)return;const Je={active:De,activatorEvent:We,collisions:Qe,delta:{x:le.x,y:le.y},over:Ie};mn.unstable_batchedUpdates(()=>{Ke==null||Ke(Je),x({type:"onDragMove",event:Je})})},[le.x,le.y]),m.useEffect(()=>{const{active:Ke,activatorEvent:De,collisions:We,droppableContainers:Qe,scrollAdjustedTranslate:Ie}=q.current;if(!Ke||A.current==null||!De||!Ie)return;const{onDragOver:Je}=F.current,ht=Qe.get(Bt),nt=ht&&ht.rect.current?{id:ht.id,rect:ht.rect.current,data:ht.data,disabled:ht.disabled}:null,Ne={active:Ke,activatorEvent:De,collisions:We,delta:{x:Ie.x,y:Ie.y},over:nt};mn.unstable_batchedUpdates(()=>{gt(nt),Je==null||Je(Ne),x({type:"onDragOver",event:Ne})})},[Bt]),ni(()=>{q.current={activatorEvent:M,active:E,activeNode:Z,collisionRect:we,collisions:Be,droppableRects:V,draggableNodes:T,draggingNode:X,draggingNodeRect:G,droppableContainers:O,over:Le,scrollableAncestors:ae,scrollAdjustedTranslate:le},S.current={initial:G,translated:we}},[E,Z,Be,we,T,X,G,V,O,Le,ae,le]),iU({...ee,delta:k,draggingRect:we,pointerCoordinates:ge,scrollableAncestors:ae,scrollableAncestorRects:ce});const bt=m.useMemo(()=>({active:E,activeNode:Z,activeNodeRect:L,activatorEvent:M,collisions:Be,containerNodeRect:B,dragOverlay:Q,draggableNodes:T,droppableContainers:O,droppableRects:V,over:Le,measureDroppableContainers:H,scrollableAncestors:ae,scrollableAncestorRects:ce,measuringConfiguration:z,measuringScheduled:Y,windowRect:re}),[E,Z,L,M,Be,B,Q,T,O,V,Le,H,ae,ce,z,Y,re]),at=m.useMemo(()=>({activatorEvent:M,activators:qe,active:E,activeNodeRect:L,ariaDescribedById:{draggable:U},dispatch:v,draggableNodes:T,over:Le,measureDroppableContainers:H}),[M,qe,E,L,v,U,T,Le,H]);return m.createElement(x6.Provider,{value:_},m.createElement(Sh.Provider,{value:at},m.createElement(N6.Provider,{value:bt},m.createElement(D6.Provider,{value:nn},l)),m.createElement(EU,{disabled:(a==null?void 0:a.restoreFocus)===!1})),m.createElement(kW,{...a,hiddenTextDescribedById:U}));function At(){const Ke=(D==null?void 0:D.autoScrollEnabled)===!1,De=typeof s=="object"?s.enabled===!1:s===!1,We=b&&!Ke&&!De;return typeof s=="object"?{...s,enabled:We}:{enabled:We}}}),RU=m.createContext(null),L2="button",jU="Draggable";function NU(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=gu(jU),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext(Sh),{role:h=L2,roleDescription:p="draggable",tabIndex:g=0}=i??{},v=(l==null?void 0:l.id)===t,x=m.useContext(v?D6:RU),[_,w]=sf(),[C,b]=sf(),$=vU(a,t),T=$c(n);ni(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:C,data:T}),()=>{const O=d.get(t);O&&O.key===o&&d.delete(t)}),[d,t]);const k=m.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&h===L2?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,g,v,p,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:k,isDragging:v,listeners:r?void 0:$,node:_,over:f,setNodeRef:w,setActivatorNodeRef:b,transform:x}}function DU(){return m.useContext(N6)}const IU="Droppable",PU={timeout:25};function LU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=gu(IU),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext(Sh),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:v}={...PU,...i},x=$c(g??r),_=m.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},v)},[v]),w=$h({callback:_,disabled:p||!a}),C=m.useCallback((k,O)=>{w&&(O&&(w.unobserve(O),d.current=!1),k&&w.observe(k))},[w]),[b,$]=sf(C),T=$c(t);return m.useEffect(()=>{!w||!b.current||(w.disconnect(),d.current=!1,w.observe(b.current))},[b,w]),m.useEffect(()=>(s({type:bn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:T}}),()=>s({type:bn.UnregisterDroppable,key:o,id:r})),[r]),m.useEffect(()=>{n!==u.current.disabled&&(s({type:bn.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:$}}function w1(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function FU(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function Xu(e){return e!==null&&e>=0}function BU(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 zU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},WU=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=UU(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,...Qu}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...Qu}:a<i&&a>=o?{x:s.width+l,y:0,...Qu}:{x:0,y:0,...Qu}};function UU(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 I6=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=w1(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}},P6="Sortable",L6=m.createContext({activeIndex:-1,containerId:P6,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:I6,disabled:{draggable:!1,droppable:!1}});function HU(e){let{children:t,id:n,items:r,strategy:i=I6,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=DU(),d=gu(P6,n),f=s.rect!==null,h=m.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),p=a!=null,g=a?h.indexOf(a.id):-1,v=c?h.indexOf(c.id):-1,x=m.useRef(h),_=!BU(h,x.current),w=v!==-1&&g===-1||_,C=zU(o);ni(()=>{_&&p&&u(h)},[_,h,p,u]),m.useEffect(()=>{x.current=h},[h]);const b=m.useMemo(()=>({activeIndex:g,containerId:d,disabled:C,disableTransforms:w,items:h,overIndex:v,useDragOverlay:f,sortedRects:FU(h,l),strategy:i}),[g,d,C.draggable,C.droppable,w,h,v,l,f,i]);return m.createElement(L6.Provider,{value:b},t)}const VU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return w1(n,r,i).indexOf(t)},qU=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},YU={duration:200,easing:"ease"},F6="transform",GU=Sc.Transition.toString({property:F6,duration:0,easing:"linear"}),KU={roleDescription:"sortable"};function ZU(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=m.useState(null),s=m.useRef(n);return ni(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=Ys(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]),m.useEffect(()=>{o&&a(null)},[o]),o}function XU(e){let{animateLayoutChanges:t=qU,attributes:n,disabled:r,data:i,getNewIndex:o=VU,id:a,strategy:s,resizeObserverConfig:l,transition:c=YU}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:v,useDragOverlay:x,strategy:_}=m.useContext(L6),w=QU(r,h),C=u.indexOf(a),b=m.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),$=m.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:T,node:k,isOver:O,setNodeRef:j}=LU({id:a,data:b,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:S,activatorEvent:E,activeNodeRect:A,attributes:D,setNodeRef:R,listeners:M,isDragging:I,over:F,setActivatorNodeRef:U,transform:P}=NU({id:a,data:b,attributes:{...KU,...n},disabled:w.draggable}),z=mW(j,R),V=!!S,H=V&&!p&&Xu(f)&&Xu(v),Y=!x&&I,Z=Y&&H?P:null,J=H?Z??(s??_)({rects:g,activeNodeRect:A,activeIndex:f,overIndex:v,index:C}):null,ee=Xu(f)&&Xu(v)?o({id:a,items:u,activeIndex:f,overIndex:v}):C,W=S==null?void 0:S.id,L=m.useRef({activeId:W,items:u,newIndex:ee,containerId:d}),B=u!==L.current.items,q=t({active:S,containerId:d,isDragging:I,isSorting:V,id:a,index:C,items:u,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:L.current.activeId!=null}),N=ZU({disabled:!q,index:C,node:k,rect:T});return m.useEffect(()=>{V&&L.current.newIndex!==ee&&(L.current.newIndex=ee),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[V,ee,d,u]),m.useEffect(()=>{if(W===L.current.activeId)return;if(W!=null&&L.current.activeId==null){L.current.activeId=W;return}const X=setTimeout(()=>{L.current.activeId=W},50);return()=>clearTimeout(X)},[W]),{active:S,activeIndex:f,attributes:D,data:b,rect:T,index:C,newIndex:ee,items:u,isOver:O,isSorting:V,isDragging:I,listeners:M,node:k,overIndex:v,over:F,setNodeRef:z,setActivatorNodeRef:U,setDroppableNodeRef:j,setDraggableNodeRef:R,transform:N??J,transition:Q()};function Q(){if(N||B&&L.current.newIndex===C)return GU;if(!(Y&&!g1(E)||!c)&&(V||q))return Sc.Transition.toString({...c,property:F6})}}function QU(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}}Mt.Down,Mt.Right,Mt.Up,Mt.Left;const JU="_table-scroll-container_8x5tv_1",eH="_full-screen_8x5tv_8",tH="_table_8x5tv_1",nH="_thead_8x5tv_24",rH="_tbody_8x5tv_25",iH="_th_8x5tv_24",oH="_pinned_8x5tv_38",aH="_sorted_8x5tv_41",sH="_resizer_8x5tv_44",lH="_resizer-bar_8x5tv_58",cH="_reorder-handle_8x5tv_64",uH="_dragging_8x5tv_69",dH="_row-selection-info_8x5tv_73",fH="_tr_8x5tv_77",hH="_td_8x5tv_85",pH="_left_8x5tv_102",mH="_center_8x5tv_106",gH="_right_8x5tv_110",vH="_first-right_8x5tv_119",bH="_grouped_8x5tv_127",yH="_expanded_8x5tv_131",xH="_selected-cell_8x5tv_135",wH="_sm_8x5tv_139",_H="_lg_8x5tv_144",CH="_clickable_8x5tv_149",$H="_cell-selected-row_8x5tv_152",SH="_cell-selection-disabled_8x5tv_160",TH="_own-click_8x5tv_179",EH="_expander-button_8x5tv_185",kH="_empty-table-alert_8x5tv_190",OH="_remove-filters-button-wrapper_8x5tv_198",MH="_remove-filters-button_8x5tv_198",AH="_bottom-bar_8x5tv_228",RH="_left-items_8x5tv_244",jH="_pagination_8x5tv_250",NH="_page-info-text_8x5tv_256",DH="_right-items_8x5tv_262",IH="_sizing-toggle_8x5tv_268",PH="_sizing-menu_8x5tv_283",LH="_sizing-menu-item_8x5tv_287",Ve={tableScrollContainer:JU,fullScreen:eH,table:tH,thead:nH,tbody:rH,th:iH,pinned:oH,sorted:aH,resizer:sH,resizerBar:lH,reorderHandle:cH,dragging:uH,rowSelectionInfo:dH,tr:fH,td:hH,left:pH,center:mH,right:gH,firstRight:vH,grouped:bH,expanded:yH,selectedCell:xH,sm:wH,lg:_H,clickable:CH,cellSelectedRow:$H,cellSelectionDisabled:SH,ownClick:TH,expanderButton:EH,emptyTableAlert:kH,removeFiltersButtonWrapper:OH,removeFiltersButton:MH,bottomBar:AH,leftItems:RH,pagination:jH,pageInfoText:NH,rightItems:DH,sizingToggle:IH,sizingMenu:PH,sizingMenuItem:LH},FH="_column-menu_1r3rf_1",BH="_column-menu-item_1r3rf_5",Ju={columnMenu:FH,columnMenuItem:BH},zH=({header:e,table:t,className:n,IconComponent:r,texts:i,columnMenuPos:o,onColumnMenu:a,dragEnabled:s,style:l})=>{var k,O;const{attributes:c,listeners:u,setNodeRef:d,transform:f,isDragging:h}=XU({id:e.id,disabled:!s}),p={...l??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...s?{transform:Sc.Translate.toString(f)}:{}},g=j=>j.column.getCanSort()?"button":void 0,v=j=>{const S=j.column.getIsSorted(),E=j.column.getIsGrouped();return me("th",Ve.th,{sorted:S,[Ve.sorted]:S},{grouped:E,[Ve.grouped]:E})},x=j=>{const S=j.column.getCanSort();return me("d-flex flex-row align-items-center justify-content-between",{"cursor-pointer":S})},_=j=>{j.preventDefault(),a({id:e.id,x:j.clientX,y:j.clientY})},w=()=>a(null),C=(o==null?void 0:o.id)===e.id,b=e.column.getIsPinned(),$=e.column.getIsGrouped(),T=(O=(k=e.column.columnDef)==null?void 0:k.meta)==null?void 0:O.alwaysPinned;return y.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:p,onContextMenu:_,children:[y.jsx(Rn,{autoClose:!0,show:C,onToggle:j=>!j&&w(),children:mn.createPortal(y.jsxs(Rn.Menu,{show:!0,className:me("shadow-lg column-menu",Ju.columnMenu),style:{position:"fixed",top:C?o.y??0:0,left:C?o.x??0:0,zIndex:9999,display:C?"block":"none"},onClick:w,children:[b!=="right"&&e.column.getCanPin()&&!T?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":b}),onClick:()=>e.column.pin(b==="left"?!1:"left"),children:b==="left"?i.columnUnpin:i.columnPinLeft}):null,b!=="left"&&e.column.getCanPin()&&!T?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":b}),onClick:()=>e.column.pin(b==="right"?!1:"right"),children:b==="right"?i.columnUnpin:i.columnPinRight}):null,e.column.getCanGroup()?y.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:y.jsxs("div",{children:[y.jsxs("div",{className:x(e.getContext()),role:g(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[y.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?y.jsx("div",{...u,...c,className:me("reorder-handle",Ve.reorderHandle,{dragging:h,[Ve.dragging]:h}),children:y.jsx(r,{icon:"drag-handle"})}):null,v6(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?y.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?y.jsx(uW,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?y.jsx("div",{className:me("row-selection-info",Ve.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:me("resizer",Ve.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?Ve.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:me("resizer-bar",Ve.resizerBar)})}):null]})},WH="_icon-button_1nuxt_1",UH="_sm_1nuxt_34",HH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:WH,sm:UH,lg:HH},vi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:o,...a})=>y.jsx("button",{"aria-disabled":n,className:me(o,"icon-button",ed.iconButton,ed[t],{"text-primary":!n&&t==="primary","text-secondary":n||t==="secondary","text-danger":!n&&t==="danger","text-success":!n&&t==="success"},{[ed.sm]:i==="sm",[ed.lg]:i==="lg"}),disabled:n,type:"button",onClick:e,...a,children:r}),VH=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:m.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 m.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},F2=({onClick:e,variant:t="primary",disabled:n,children:r,size:i,...o})=>y.jsx(r1,{disabled:n,size:i,variant:t,onClick:e,...o,children:r});function lv(e,t){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lv(e,t)}function qH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lv(e,t)}function YH(e){var t=cu(e);return t&&t.defaultView||window}function GH(e,t){return YH(e).getComputedStyle(e,t)}var KH=/([A-Z])/g;function ZH(e){return e.replace(KH,"-$1").toLowerCase()}var XH=/^ms-/;function td(e){return ZH(e).replace(XH,"-ms-")}var QH=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function JH(e){return!!(e&&QH.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||GH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(td(i)):JH(i)?r+=i+"("+o+") ":n+=td(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const B2={disabled:!1};var eV=process.env.NODE_ENV!=="production"?Ye.oneOfType([Ye.number,Ye.shape({enter:Ye.number,exit:Ye.number,appear:Ye.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&Ye.oneOfType([Ye.string,Ye.shape({enter:Ye.string,exit:Ye.string,active:Ye.string}),Ye.shape({enter:Ye.string,enterDone:Ye.string,enterActive:Ye.string,exit:Ye.string,exitDone:Ye.string,exitActive:Ye.string})]);const B6=m.createContext(null);var tV=function(e){return e.scrollTop},Fl="unmounted",eo="exited",Ci="entering",io="entered",df="exiting",zi=function(e){qH(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=eo,o.appearStatus=Ci):l=io:r.unmountOnExit||r.mountOnEnter?l=Fl:l=eo,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,i){var o=r.in;return o&&i.status===Fl?{status:eo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==Ci&&o!==io&&(i=Ci):(o===Ci||o===io)&&(i=df)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,o,a;return i=o=a=r,r!=null&&typeof r!="number"&&(i=r.exit,o=r.enter,a=r.appear!==void 0?r.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);o&&tV(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eo&&this.setState({status:Fl})},n.performEnter=function(r){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[mn.findDOMNode(this),a],l=s[0],c=s[1],u=this.getTimeouts(),d=a?u.appear:u.enter;if(!r&&!o||B2.disabled){this.safeSetState({status:io},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Ci},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:io},function(){i.props.onEntered(l,c)})})})},n.performExit=function(){var r=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!i||B2.disabled){this.safeSetState({status:eo},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:df},function(){r.props.onExiting(a),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:eo},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,r(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Fl)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=IS(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(B6.Provider,{value:null},typeof o=="function"?o(r,a):m.cloneElement(m.Children.only(o),a))},t}(m.Component);zi.contextType=B6;zi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ye.shape({current:typeof Element>"u"?Ye.any:function(e,t,n,r,i,o){var a=e[t];return Ye.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Ye.oneOfType([Ye.func.isRequired,Ye.element.isRequired]).isRequired,in:Ye.bool,mountOnEnter:Ye.bool,unmountOnExit:Ye.bool,appear:Ye.bool,enter:Ye.bool,exit:Ye.bool,timeout:function(e){var t=eV;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:Ye.func,onEnter:Ye.func,onEntering:Ye.func,onEntered:Ye.func,onExit:Ye.func,onExiting:Ye.func,onExited:Ye.func}:{};function Wa(){}zi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wa,onEntering:Wa,onEntered:Wa,onExit:Wa,onExiting:Wa,onExited:Wa};zi.UNMOUNTED=Fl;zi.EXITED=eo;zi.ENTERING=Ci;zi.ENTERED=io;zi.EXITING=df;function nV(e){return e.code==="Escape"||e.keyCode===27}function rV(){const e=ie.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function vu(e){if(!e||typeof e=="function")return null;const{major:t}=rV();return t>=19?e.props.ref:e.ref}function iV(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 oV(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function aV(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||iV(e,"transitionend",!0)},t+n),o=oo(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function z6(e,t,n,r){n==null&&(n=oV(e)||0);var i=aV(e,n,r),o=oo(e,"transitionend",t);return function(){i(),o()}}function z2(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function W6(e,t){const n=z2(e,"transitionDuration"),r=z2(e,"transitionDelay"),i=z6(e,o=>{o.target===e&&(i(),t(o))},n+r)}function _l(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...r){t.apply(this,r),n.apply(this,r)}},null)}function U6(e){e.offsetHeight}function sV(e){return e&&"setState"in e?mn.findDOMNode(e):e??null}const _1=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=m.useRef(null),f=uu(d,l),h=$=>{f(sV($))},p=$=>T=>{$&&d.current&&$(d.current,T)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),w=m.useCallback(p(i),[i]),C=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return y.jsx(zi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?($,T)=>s($,{...T,ref:h}):m.cloneElement(s,{ref:h})})});_1.displayName="TransitionWrapper";const lV={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function cV(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=lV[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const uV={[eo]:"collapse",[df]:"collapsing",[Ci]:"collapsing",[io]:"collapse show"},H6=m.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:a,dimension:s="height",in:l=!1,timeout:c=300,mountOnEnter:u=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:h=cV,...p},g)=>{const v=typeof s=="function"?s():s,x=m.useMemo(()=>_l($=>{$.style[v]="0"},e),[v,e]),_=m.useMemo(()=>_l($=>{const T=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[T]}px`},t),[v,t]),w=m.useMemo(()=>_l($=>{$.style[v]=null},n),[v,n]),C=m.useMemo(()=>_l($=>{$.style[v]=`${h(v,$)}px`,U6($)},r),[r,h,v]),b=m.useMemo(()=>_l($=>{$.style[v]=null},i),[v,i]);return y.jsx(_1,{ref:g,addEndListener:W6,...p,"aria-expanded":p.role?l:null,onEnter:x,onEntering:_,onEntered:w,onExit:C,onExiting:b,childRef:vu(a),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,T)=>m.cloneElement(a,{...T,className:me(o,a.props.className,uV[$],v==="width"&&"collapse-horizontal")})})});H6.displayName="Collapse";function V6(e,t){return Array.isArray(e)?e.includes(t):e===t}const bu=ie.createContext({});bu.displayName="AccordionContext";const C1=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},a)=>{const{activeEventKey:s}=m.useContext(bu);return t=Et(t,"accordion-collapse"),y.jsx(H6,{ref:a,in:V6(s,i),...o,className:me(n,t),children:y.jsx(e,{children:ie.Children.only(r)})})});C1.displayName="AccordionCollapse";const Th=ie.createContext({eventKey:""});Th.displayName="AccordionItemContext";const q6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,...c},u)=>{t=Et(t,"accordion-body");const{eventKey:d}=m.useContext(Th);return y.jsx(C1,{eventKey:d,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,children:y.jsx(e,{ref:u,...c,className:me(n,t)})})});q6.displayName="AccordionBody";function dV(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=m.useContext(bu);return o=>{let a=e===n?null:e;i&&(Array.isArray(n)?n.includes(e)?a=n.filter(s=>s!==e):a=[...n,e]:a=[e]),r==null||r(a,o),t==null||t(o)}}const $1=ie.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=Et(t,"accordion-button");const{eventKey:a}=m.useContext(Th),s=dV(a,r),{activeEventKey:l}=m.useContext(bu);return e==="button"&&(i.type="button"),y.jsx(e,{ref:o,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(a):a===l,className:me(n,t,!V6(l,a)&&"collapsed")})});$1.displayName="AccordionButton";const Y6=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:o,...a},s)=>(n=Et(n,"accordion-header"),y.jsx(e,{ref:s,...a,className:me(r,n),children:y.jsx($1,{onClick:o,"aria-controls":t,children:i})})));Y6.displayName="AccordionHeader";const G6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=Et(t,"accordion-item");const a=m.useMemo(()=>({eventKey:r}),[r]);return y.jsx(Th.Provider,{value:a,children:y.jsx(e,{ref:o,...i,className:me(n,t)})})});G6.displayName="AccordionItem";const K6=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:a,flush:s,alwaysOpen:l,...c}=PS(e,{activeKey:"onSelect"}),u=Et(i,"accordion"),d=m.useMemo(()=>({activeEventKey:r,onSelect:a,alwaysOpen:l}),[r,a,l]);return y.jsx(bu.Provider,{value:d,children:y.jsx(n,{ref:t,...c,className:me(o,u,s&&`${u}-flush`)})})});K6.displayName="Accordion";const Po=Object.assign(K6,{Button:$1,Collapse:C1,Item:G6,Header:Y6,Body:q6}),fV=e=>ie.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:me(t.className,e)})),hV=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",pV=typeof document<"u",W2=pV||hV?m.useLayoutEffect:m.useEffect,mV={[Ci]:"show",[io]:"show"},S1=ie.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=m.useCallback((l,c)=>{U6(l),r==null||r(l,c)},[r]);return y.jsx(_1,{ref:o,addEndListener:W6,...a,onEnter:s,childRef:vu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,mV[l],n[l])})})});S1.displayName="Fade";const gV={"aria-label":Ye.string,onClick:Ye.func,variant:Ye.oneOf(["white"])},T1=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));T1.displayName="CloseButton";T1.propTypes=gV;function vV(e){const t=m.useRef(e);return t.current=e,t}function bV(e){const t=vV(e);m.useEffect(()=>()=>t.current(),[])}const U2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function yV(e,t){const n=U2(e),r=U2(t);return i=>{n&&n(i),r&&r(i)}}function E1(e,t){return m.useMemo(()=>yV(e,t),[e,t])}var nd;function H2(e){if((!nd&&nd!==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),nd=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nd}function xV(){return m.useState(null)}function Nm(e){e===void 0&&(e=cu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function wV(e){const t=m.useRef(e);return t.current=e,t}function _V(e){const t=wV(e);m.useEffect(()=>()=>t.current(),[])}function CV(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const V2=t1("modal-open");let k1=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return CV(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(ki(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(V2,""),ki(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(V2),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 Dm=(e,t)=>Hs?e==null?(t||cu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function $V(e,t){const n=xh(),[r,i]=m.useState(()=>Dm(e,n==null?void 0:n.document));if(!r){const o=Dm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=Dm(e);o!==r&&i(o)},[e,r]),r}function SV({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=m.useRef(null),a=m.useRef(t),s=Wn(n);m.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=E1(o,vu(e)),c=m.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const TV=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function EV(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 kV(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=EV(e,TV);const u=m.useRef(null),d=E1(u,vu(l)),f=C=>b=>{C&&u.current&&C(u.current,b)},h=m.useCallback(f(t),[t]),p=m.useCallback(f(n),[n]),g=m.useCallback(f(r),[r]),v=m.useCallback(f(i),[i]),x=m.useCallback(f(o),[o]),_=m.useCallback(f(a),[a]),w=m.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:g},i&&{onExit:v},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const OV=["component"];function MV(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 AV=ie.forwardRef((e,t)=>{let{component:n}=e,r=MV(e,OV);const i=kV(r);return y.jsx(n,Object.assign({ref:t},i))});function RV({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Wn(t);return W2(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),W2(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function jV({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=RV({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=E1(s,vu(e));return o&&!t?null:m.cloneElement(e,{ref:l})}function q2(e,t,n){return e?y.jsx(AV,Object.assign({},n,{component:e})):t?y.jsx(jV,Object.assign({},n,{transition:t})):y.jsx(SV,Object.assign({},n))}const NV=["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 DV(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 Im;function IV(e){return Im||(Im=new k1({ownerDocument:e==null?void 0:e.document})),Im}function PV(e){const t=xh(),n=e||IV(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:m.useCallback(i=>{r.current.backdrop=i},[])})}const Z6=m.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:g=!0,enforceFocus:v=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>y.jsx("div",Object.assign({},G)),manager:b,container:$,onShow:T,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:E,onEntering:A,onEntered:D}=e,R=DV(e,NV);const M=xh(),I=$V($),F=PV(b),U=LS(),P=FS(n),[z,V]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>F,[F]),Hs&&!P&&n&&(H.current=Nm(M==null?void 0:M.document)),n&&z&&V(!1);const Y=Wn(()=>{if(F.add(),B.current=oo(document,"keydown",W),L.current=oo(document,"focus",()=>setTimeout(J),!0),T&&T(),g){var G,se;const te=Nm((G=(se=F.dialog)==null?void 0:se.ownerDocument)!=null?G:M==null?void 0:M.document);F.dialog&&te&&!rf(F.dialog,te)&&(H.current=te,F.dialog.focus())}}),Z=Wn(()=>{if(F.remove(),B.current==null||B.current(),L.current==null||L.current(),x){var G;(G=H.current)==null||G.focus==null||G.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{z&&Z()},[z,Z]),_V(()=>{Z()});const J=Wn(()=>{if(!v||!U()||!F.isTopModal())return;const G=Nm(M==null?void 0:M.document);F.dialog&&G&&!rf(F.dialog,G)&&F.dialog.focus()}),ee=Wn(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&k())}),W=Wn(G=>{l&&nV(G)&&F.isTopModal()&&(u==null||u(G),G.defaultPrevented||k())}),L=m.useRef(),B=m.useRef(),q=(...G)=>{V(!0),j==null||j(...G)};if(!I)return null;const N=Object.assign({role:r,ref:F.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let Q=w?w(N):y.jsx("div",Object.assign({},N,{children:ie.cloneElement(a,{role:"document"})}));Q=q2(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:O,onExiting:S,onExited:q,onEnter:E,onEntering:A,onEntered:D,children:Q});let X=null;return s&&(X=C({ref:F.setBackdropRef,onClick:ee}),X=q2(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),y.jsx(y.Fragment,{children:mn.createPortal(y.jsxs(y.Fragment,{children:[X,Q]}),I)})});Z6.displayName="Modal";const LV=Object.assign(Z6,{Manager:k1});function FV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function BV(e,t){e.classList?e.classList.add(t):FV(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Y2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function zV(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Y2(e.className,t):e.setAttribute("class",Y2(e.className&&e.className.baseVal||"",t))}const Ua={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class WV extends k1{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,ki(n,{[t]:`${parseFloat(ki(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],ki(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(BV(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Qi(n,Ua.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),Qi(n,Ua.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Qi(n,Ua.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();zV(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Qi(n,Ua.FIXED_CONTENT).forEach(o=>this.restore(r,o)),Qi(n,Ua.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Qi(n,Ua.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Pm;function UV(e){return Pm||(Pm=new WV(e)),Pm}const X6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-body"),y.jsx(n,{ref:i,className:me(e,t),...r})));X6.displayName="ModalBody";const Q6=ie.createContext({onHide(){}}),O1=ie.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=Et(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:me(`${e}-content`,n),children:a})})});O1.displayName="ModalDialog";const J6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Et(t,"modal-footer"),y.jsx(n,{ref:i,className:me(e,t),...r})));J6.displayName="ModalFooter";const e5=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(Q6),l=nf(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(T1,{"aria-label":e,variant:t,onClick:l})]})});e5.displayName="AbstractModalHeader";const t5=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=Et(e,"modal-header"),y.jsx(e5,{ref:o,...i,className:me(t,e),closeLabel:n,closeButton:r})));t5.displayName="ModalHeader";const HV=fV("h4"),n5=ie.forwardRef(({className:e,bsPrefix:t,as:n=HV,...r},i)=>(t=Et(t,"modal-title"),y.jsx(n,{ref:i,className:me(e,t),...r})));n5.displayName="ModalTitle";function VV(e){return y.jsx(S1,{...e,timeout:null})}function qV(e){return y.jsx(S1,{...e,timeout:null})}const r5=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=O1,"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:g,onShow:v,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:$,onEntered:T,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:E,backdropClassName:A,manager:D,...R},M)=>{const[I,F]=m.useState({}),[U,P]=m.useState(!1),z=m.useRef(!1),V=m.useRef(!1),H=m.useRef(null),[Y,Z]=xV(),J=uu(M,Z),ee=nf(x),W=CS();e=Et(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function B(){return D||UV({isRTL:W})}function q(le){if(!Hs)return;const we=B().getScrollbarWidth()>0,Be=le.scrollHeight>cu(le).documentElement.clientHeight;F({paddingRight:we&&!Be?H2():void 0,paddingLeft:!we&&Be?H2():void 0})}const N=nf(()=>{Y&&q(Y.dialog)});bV(()=>{Jg(window,"resize",N),H.current==null||H.current()});const Q=()=>{z.current=!0},X=le=>{z.current&&Y&&le.target===Y.dialog&&(V.current=!0),z.current=!1},G=()=>{P(!0),H.current=z6(Y.dialog,()=>{P(!1)})},se=le=>{le.target===le.currentTarget&&G()},te=le=>{if(h==="static"){se(le);return}if(V.current||le.target!==le.currentTarget){V.current=!1;return}x==null||x()},re=le=>{p?g==null||g(le):(le.preventDefault(),h==="static"&&G())},ae=(le,we)=>{le&&q(le),j==null||j(le,we)},ce=le=>{H.current==null||H.current(),k==null||k(le)},ve=(le,we)=>{S==null||S(le,we),e1(window,"resize",N)},ge=le=>{le&&(le.style.display=""),E==null||E(le),Jg(window,"resize",N)},be=m.useCallback(le=>y.jsx("div",{...le,className:me(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Te={...n,...I};Te.display="block";const de=le=>y.jsx("div",{role:"dialog",...le,style:Te,className:me(t,e,U&&`${e}-static`,!f&&"show"),onClick:h?te:void 0,onMouseUp:X,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...R,onMouseDown:Q,className:r,contentClassName:i,children:o})});return y.jsx(Q6.Provider,{value:L,children:y.jsx(LV,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:b,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:ae,onEntering:ve,onEntered:T,onExit:ce,onExiting:O,onExited:ge,manager:B(),transition:f?VV:void 0,backdropTransition:f?qV:void 0,renderBackdrop:be,renderDialog:de})})});r5.displayName="Modal";const Cl=Object.assign(r5,{Body:X6,Header:t5,Title:n5,Footer:J6,Dialog:O1,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),YV="_modal_1sw52_1",GV="_settings-item_1sw52_1",KV="_label_1sw52_8",ZV="_content_1sw52_11",XV="_column-item_1sw52_14",QV="_is-hidden_1sw52_20",Ha={modal:YV,settingsItem:GV,label:KV,content:ZV,columnItem:XV,isHidden:QV},JV=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,IconComponent:o,resetToDefault:a})=>{const[s,l]=m.useState(r.value?r.value.toString():"");m.useEffect(()=>{e&&l(r.value?r.value.toString():"")},[e,r.value]);const c=r.enabled;return y.jsxs(Cl,{className:me("settings-modal",Ha.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[y.jsx(Cl.Header,{closeButton:!0,children:y.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),y.jsx(Cl.Body,{children:y.jsxs(Po,{children:[c?y.jsxs(Po.Item,{eventKey:"general-settings",children:[y.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),y.jsx(Po.Body,{className:"d-flex flex-column gap-1",children:r.enabled?y.jsxs("div",{className:Ha.settingsItem,children:[y.jsx("div",{className:me("text-nowrap",Ha.label),children:n==null?void 0:n.settingsModal.pageSize}),y.jsxs("div",{className:me("text-nowrap",Ha.content),children:[y.jsx(ef.Control,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:s,onChange:u=>{l(u.target.value),u.target.value&&r.onChange(Number(u.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})]}):null,y.jsxs(Po.Item,{eventKey:"column-settings",children:[y.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),y.jsx(Po.Body,{className:"d-flex flex-column gap-1",children:i.allColumns.filter(u=>{var d;return u.getCanHide()&&((d=u.columnDef.meta)==null?void 0:d.hidden)!==!0}).map(u=>y.jsxs("div",{className:me("column-item rounded border",Ha.columnItem,{[Ha.isHidden]:!u.getIsVisible()}),children:[VH(u),y.jsx(vi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:y.jsx(o,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),y.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[y.jsx(F2,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),y.jsx(F2,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},eq=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],G2=new Map(eq),tq=(e,t,n,r,i,o)=>{const a=m.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??a,[c,u]=m.useState(),[d,f]=m.useState(),h=m.useCallback(v=>{e!=null&&e.disabled||l(v)},[e==null?void 0:e.disabled,l]),p=({fieldName:v,dataIndex:x})=>{u(v),f(x)},g=m.useCallback(v=>{if(e!=null&&e.disabled)return;const x=v.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(v.code){case"Space":case"Enter":{v.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":{v.preventDefault(),h(_=>{const w=[Math.min(Math.max(_[0]+G2.get(v.code)[0],0),t.size-1),Math.min(Math.max(_[1]+G2.get(v.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(v.preventDefault(),v.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 m.useEffect(()=>{if(c===void 0)return;u(void 0);const v=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[v,x[1]])},[c,l,t]),m.useEffect(()=>{if(d===void 0)return;f(void 0);const v=n.findIndex(x=>x.index===d);if(l(x=>[x[0],v]),r!==void 0){const x=Math.floor(v/r);i(x)}},[i,r,d,n,l]),m.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const v=new AbortController;return window.addEventListener("keydown",g,{signal:v.signal}),()=>v.abort()},[g,e==null?void 0:e.onCellSelect]),m.useEffect(()=>{var v;(v=o.current)==null||v.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),m.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 v=t.get(s[0]);if(v===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,v)},[e,h,n,s,t]),{selectedCoords:s,changeSelectedCoords:h,setSelectedCellByFNDI:p}},nq=e=>e.type==="number"?"sum":"uniqueCount",rq=(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):v6(e,t)},iq=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(nq(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},oq=e=>{let{transform:t}=e;return{...t,y:0}},aq=({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}),sq=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,texts:a,formatters:s,LinkComponent:l,onRowClick:c,rowNavigation:u,onCellInteraction:d},f)=>{var g,v,x;const h=t.column.columnDef,p=m.useMemo(()=>{var _,w,C,b,$;if(!((_=h.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((w=h.meta)!=null&&w.onCellClick)return["onClickOwn",()=>{var T,k;return(k=(T=h.meta)==null?void 0:T.onCellClick)==null?void 0:k.call(T,e.original)}];if((C=h.meta)!=null&&C.cellNavigation){const T=($=(b=h.meta)==null?void 0:b.cellNavigation)==null?void 0:$.call(b,e.original);if(T)return["navigateOwn",T]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const T=u==null?void 0:u(e.original);if(T)return["navigate",T]}}},[h,e,c,u,t]);return y.jsxs(aq,{className:me((_=>{var T,k,O,j,S,E;const w=((T=h==null?void 0:h.meta)==null?void 0:T.alignment)??"left",C=_.column.getIsSorted(),b=_.cell.getIsGrouped(),$=_.row.getIsExpanded();return me("td",Ve.td,{[Ve.left]:w==="left",[Ve.center]:w==="center",[Ve.right]:w==="right"||h.type==="number"&&((k=h.numericMeta)==null?void 0:k.noFormatting)!==!0},{sorted:C,[Ve.sorted]:C},{grouped:b,[Ve.grouped]:b},{expanded:$,[Ve.expanded]:$},{clickable:!!p,[Ve.clickable]:!!p},{"own-click":(O=p==null?void 0:p[0])==null?void 0:O.endsWith("Own"),[Ve.ownClick]:(j=p==null?void 0:p[0])==null?void 0:j.endsWith("Own")},r,(E=(S=h.meta)==null?void 0:S.className)==null?void 0:E.call(S,e.original))})(t.getContext()),n),isLink:!!((g=p==null?void 0:p[0])!=null&&g.startsWith("navigate")),LinkComponent:l,ref:f,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(v=p==null?void 0:p[0])!=null&&v.startsWith("navigate")?p[1]:void 0,onCellInteraction:d?()=>d==null?void 0:d(e.original):void 0,onClick:(x=p==null?void 0:p[0])!=null&&x.startsWith("onClick")?p[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?y.jsx(vi,{className:me("expander-button",Ve.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:y.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?iq(t.column.columnDef,t.getContext(),a):t.getIsPlaceholder()?null:rq(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},lq=m.forwardRef(sq),cq=({table:e,additionalOptions:t,IconComponent:n,texts:r,formatters:i,bottomBar:o,testId:a,LinkComponent:s,className:l,rowsClassName:c,onRowClick:u,rowNavigation:d,onCellInteraction:f,cellSelection:h,getRowProps:p},g)=>{var Y,Z,J,ee,W,L,B,q,N;const v={boolean:Q=>NF(Q,n),date:DF,datetime:IF,number:PF,...i},[x,_]=m.useState(!1),w=!!e.options.getPaginationRowModel,C=OW(Mm(M6,{}),Mm(A6,{}),Mm(y1,{})),b=e.getState().columnOrder,$=Q=>{const{active:X,over:G}=Q;X&&G&&X.id!==G.id&&e.setColumnOrder(se=>{const te=se.indexOf(X.id),re=se.indexOf(G.id);return te===-1||re===-1?se:w1(se,te,re)})},[T,k]=m.useState(null),O=Q=>{k(Q)},j=Q=>{if(!Q.getCanPin())return"";const X=Q.getIsPinned(),G=X==="right"&&Q.getIsFirstColumn("right"),se=X==="left"&&Q.getIsLastColumn("left");return me({pinned:X,[Ve.pinned]:X,"first-right":G,[Ve.firstRight]:G,"last-left":se,[Ve.lastLeft]:se})},S=Q=>{if(!Q.getCanPin())return{};const X=Q.getIsPinned();return{left:X==="left"?`${Q.getStart("left")}px`:void 0,right:X==="right"?`${Q.getAfter("right")}px`:void 0}},E=e.getState().sorting;m.useEffect(()=>{var Q,X;if(E.length>0){const G=E[0];if((Q=document.activeElement)!=null&&Q.classList.contains("filter"))return;(X=document.getElementById(`filter-${G.id}`))==null||X.focus()}},[E]);const A=e.getPrePaginationRowModel().rows,D=new Map(e.getVisibleLeafColumns().map((Q,X)=>[X,Q.id])),R=m.useRef(null),{selectedCoords:M,changeSelectedCoords:I,setSelectedCellByFNDI:F}=tq(h,D,A,w?((Y=e.getState().pagination)==null?void 0:Y.pageSize)??0:void 0,e.setPageIndex,R);m.useImperativeHandle(g,()=>({setSelectedCell:F}));const U=Q=>{var X;return h!=null&&h.onlyRowSelection&&((X=A[M[1]])==null?void 0:X.index)===Q.index?me(Ve.cellSelectedRow,"cell-selected-row",{[Ve.cellSelectionDisabled]:h.disabled}):""},P=(Q,X)=>{var G;return(h==null?void 0:h.onCellSelect)===void 0||M[0]!==Q||((G=A[M[1]])==null?void 0:G.index)!==X||h.onlyRowSelection?"":h.disabled?"bg-primary-subtle":me("selected-cell",Ve.selectedCell)},z=t.fullScreen.canFullScreen?((Z=t.fullScreen)==null?void 0:Z.isFullScreen)??!1:!1,V=(J=t.sizing)!=null&&J.canSize?((ee=t.sizing)==null?void 0:ee.size)??"md":"md",H=e.getState().columnFilters;return y.jsx(AU,{collisionDetection:NW,modifiers:[oq],sensors:C,onDragEnd:$,children:y.jsxs("div",{className:me("tanstack-bnf-table-container",Ve.tableScrollContainer,{"full-screen":z,[Ve.fullScreen]:z}),children:[H&&H.length>0?y.jsx("div",{className:me("remove-filters-button-wrapper",Ve.removeFiltersButtonWrapper),children:y.jsxs("button",{className:me(Ve.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[y.jsx("div",{className:"d-flex align-items-center justify-content-center",children:y.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,y.jsxs("div",{className:me("tanstack-bnf-table",Ve.table,{sm:V==="sm",lg:V==="lg",[Ve.sm]:V==="sm",[Ve.lg]:V==="lg"},l),"data-testid":a,children:[y.jsx("div",{className:me("thead",Ve.thead),children:e.getHeaderGroups().map(Q=>y.jsx("div",{className:me("tr",Ve.tr),children:y.jsx(HU,{items:b,strategy:WU,children:Q.headers.map(X=>{var G,se;return y.jsx(zH,{className:j(X.column),columnMenuPos:T,dragEnabled:t.enableReordering&&((se=(G=X.column.columnDef)==null?void 0:G.meta)==null?void 0:se.enableReordering)!==!1,header:X,IconComponent:n,style:S(X.column),table:e,texts:r,onColumnMenu:O},X.id)})})},Q.id))}),y.jsxs("div",{className:me("tbody",Ve.tbody),children:[(((L=(W=e.options)==null?void 0:W.data)==null?void 0:L.length)??0)===0?y.jsx("div",{className:me("alert alert-warning empty-table-alert",Ve.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Q,X)=>{var G;return y.jsx("div",{className:me("tr",Ve.tr,U(Q),p?(G=p(Q.original))==null?void 0:G.className:null),role:"data-row",...p?p(Q.original):{},children:Q.getVisibleCells().map((se,te)=>{var re;return y.jsx(lq,{cell:se,className:me(j(se.column),P(te,Q.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(h==null?void 0:h.onCellSelect)!==void 0&&M[0]===te&&((re=A[M[1]])==null?void 0:re.index)===Q.index?R:null,row:Q,rowClassName:me(...(c==null?void 0:c.filter(ae=>ae.selector(Q.original)).map(ae=>ae.className))??[]),rowNavigation:d,style:S(se.column),texts:r,onCellInteraction:(h==null?void 0:h.onCellSelect)===void 0?f:ae=>{var ce,ve;I([te,((ce=e.getState().pagination)==null?void 0:ce.pageIndex)*((ve=e.getState().pagination)==null?void 0:ve.pageSize)+X]),f==null||f(ae)},onRowClick:u},se.id)})},Q.id)})]}),y.jsx(JV,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:w,value:((B=e.getState().pagination)==null?void 0:B.pageSize)??0,onChange:Q=>e.setPageSize(Q)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),o!=null&&o.hidden?null:y.jsxs("div",{className:me("bottom-bar",Ve.bottomBar),children:[y.jsxs("div",{className:me("left-items",Ve.leftItems),children:[w?y.jsxs("div",{className:me("pagination",Ve.pagination),children:[y.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:y.jsx(n,{icon:"page-first"})}),y.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:y.jsx(n,{icon:"page-previous"})}),y.jsx("div",{className:me("page-info-text",Ve.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),y.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:y.jsx(n,{icon:"page-next"})}),y.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:y.jsx(n,{icon:"page-last"})})]}):null,y.jsx("div",{className:me("row-count-text",Ve.rowCountText),children:r.rowCountText(e.getRowCount())})]}),y.jsxs("div",{className:me("right-items",Ve.rightItems),children:[(q=t.fullScreen)!=null&&q.canFullScreen?y.jsx(vi,{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,(N=t.sizing)!=null&&N.canSize?y.jsxs(Rn,{drop:"up",children:[y.jsx(Rn.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",Ve.sizingToggle),id:"table-sizing-button",size:"sm",children:y.jsx(n,{icon:"density"})}),y.jsxs(Rn.Menu,{className:me("shadow-lg sizing-menu",Ve.sizingMenu),children:[y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[V==="sm"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[V==="md"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),y.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[V==="lg"?y.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?y.jsx(vi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:y.jsx(n,{icon:"excel-export"})}):null,y.jsx(vi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:y.jsx(n,{icon:"settings"})})]})]})]})})};m.forwardRef(cq);const uq=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),i5=()=>{const e=dW();return{accessor:(t,n)=>{const r=i=>uq(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function dq(e){return dt({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 fq(e){return dt({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)}function hq(e){return dt({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 pq(e){return dt({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 mq(e){return dt({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 gq(e){return dt({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 vq="_excel_18ggp_1",bq="_word_18ggp_5",yq="_pdf_18ggp_9",xq="_image_18ggp_13",rd={excel:vq,word:bq,pdf:yq,image:xq},o5=e=>{const t=Re.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=ue(n,rd.image),t[4]=n,t[5]=o):o=t[5];let a;t[6]!==i?(a=y.jsx(fq,{...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=ue(n,rd.excel),t[11]=n,t[12]=o):o=t[12];let a;return t[13]!==i||t[14]!==o?(a=y.jsx(mq,{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=ue(n,rd.word),t[16]=n,t[17]=o):o=t[17];let a;return t[18]!==i||t[19]!==o?(a=y.jsx(gq,{className:o,...i}),t[18]=i,t[19]=o,t[20]=a):a=t[20],a}case"PDF":{let o;t[21]!==n?(o=ue(n,rd.pdf),t[21]=n,t[22]=o):o=t[22];let a;return t[23]!==i||t[24]!==o?(a=y.jsx(ZI,{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(dq,{}),t[26]=o):o=t[26],o}}},wq=()=>{const e=Re.c(47),{ProjectIconComponent:t,texts:n}=m.useContext(ln),{documents:r}=n,{apiActions:i,reducer:o}=m.useContext(xn),{downloadFile:a}=i,[s]=o,l=s.activeFolder==="root";let c;e[0]!==a?(c=(S,E,A)=>S?i$(E??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:R=>{R.stopPropagation(),a(A,!0)},children:S}):S:"",e[0]=a,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=i5(),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 g;e[7]!==u?(g=f.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:S=>{const E=S.row.getValue("fileExtension"),A=S.row.getValue("id");return u(y.jsx(o5,{fileExtension:(E==null?void 0:E.toString())??"",className:Kg.extensionIcon,size:18}),(E==null?void 0:E.toString())??"",Number((A==null?void 0:A.toString())??""))}}}),e[7]=u,e[8]=g):g=e[8];let v;if(e[9]!==r.name||e[10]!==u){let S;e[12]!==u?(S=E=>{const A=E.row.getValue("name"),D=E.row.getValue("fileExtension"),R=E.row.getValue("id");return u((A==null?void 0:A.toString())??"",(D==null?void 0:D.toString())??"",Number((R==null?void 0:R.toString())??""))},e[12]=u,e[13]=S):S=e[13],v=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:S}}),e[9]=r.name,e[10]=u,e[11]=v}else v=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:S=>{const E=S.row.getValue("id");return y.jsx(fh,{className:Kg.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 $;e[25]!==r.size?($=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:_q}}),e[25]=r.size,e[26]=$):$=e[26];let T;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let S;e[31]!==r.no||e[32]!==r.yes?(S=E=>E.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=S):S=e[33],T=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:S}}),e[27]=r.archived,e[28]=r.no,e[29]=r.yes,e[30]=T}else T=e[30];let k;e[34]!==_||e[35]!==w||e[36]!==C||e[37]!==b||e[38]!==$||e[39]!==T||e[40]!==p||e[41]!==g||e[42]!==v||e[43]!==x?(k=[h,...p,g,v,x,_,w,C,b,$,T],e[34]=_,e[35]=w,e[36]=C,e[37]=b,e[38]=$,e[39]=T,e[40]=p,e[41]=g,e[42]=v,e[43]=x,e[44]=k):k=e[44];const O=k;let j;return e[45]!==O?(j={columns:O},e[45]=O,e[46]=j):j=e[46],j};function _q(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?ws(t*1024*1024):""}const Cq=e=>{var E;const t=Re.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:o}=m.useContext(xn),[a,s]=o,{columns:l}=wq();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 g;t[5]!==a.markedFiles?(g=Object.fromEntries(a.markedFiles.map(Sq)),t[5]=a.markedFiles,t[6]=g):g=t[6];let v;t[7]!==u?(v=A=>{const D=Object.keys(A).filter(R=>A[R]).map(Tq);u(D)},t[7]=u,t[8]=v):v=t[8];let x;t[9]!==p||t[10]!==g||t[11]!==v?(x={enabled:p,getRowId:$q,selectedRows:g,setSelectedRows:v},t[9]=p,t[10]=g,t[11]=v,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 D;t[16]!==a.activeFolder?(D=R=>R.folderId===a.activeFolder,t[16]=a.activeFolder,t[17]=D):D=t[17],A=a.filteredFiles.filter(D),t[13]=a.activeFolder,t[14]=a.filteredFiles,t[15]=A}else A=t[15];w=A}const C=w,{getDraggableProps:b}=Y0();let $;t[18]!==b||t[19]!==h||t[20]!==i?($=A=>i===!1||h?{}:b(A.id),t[18]=b,t[19]=h,t[20]=i,t[21]=$):$=t[21];const T=$;let k;t[22]===Symbol.for("react.memo_cache_sentinel")?(k=ue(Kg.wrapper),t[22]=k):k=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O={columnFilters:[{id:"archive",value:"false"}]},t[23]=O):O=t[23];let j;t[24]===Symbol.for("react.memo_cache_sentinel")?(j={hidden:!0},t[24]=j):j=t[24];let S;return t[25]!==n||t[26]!==l||t[27]!==C||t[28]!==T||t[29]!==_||t[30]!==a.activeFolder||t[31]!==r?(S=y.jsx("div",{className:k,children:y.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:T,initState:O,tableId:r,bottomBar:j},a.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=T,t[29]=_,t[30]=a.activeFolder,t[31]=r,t[32]=S):S=t[32],S};function $q(e){var t;return((t=e.id)==null?void 0:t.toString())??""}function Sq(e){return[e.toString(),!0]}function Tq(e){return Number(e)}const Eq="_wrapper_1q562_1",kq="_divButtons_1q562_10",Lm={wrapper:Eq,divButtons:kq},Oq="_wrapper_1bpdd_1",Mq="_fileInput_1bpdd_5",K2={wrapper:Oq,fileInput:Mq},Aq=e=>{const t=Re.c(17),{entityId:n,entityType:r,children:i,disabled:o}=e,a=m.useRef(null),[s,l]=m.useState(null),{reducer:c}=m.useContext(xn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=T=>{var k;(((k=T.target.files)==null?void 0:k.length)??0)>0&&l(T.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,g=`documents-upload-${r}-${n}`,v=o||u.activeFolder==="root",x=v?"disabled":void 0;let _;t[2]!==x?(_=ue("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==g||t[6]!==_?(w=y.jsx("label",{htmlFor:g,className:_,children:i}),t[4]=i,t[5]=g,t[6]=_,t[7]=w):w=t[7];let C;t[8]!==g||t[9]!==v?(C=y.jsx("input",{id:g,type:"file",multiple:!0,onChange:f,className:K2.fileInput,ref:a,disabled:v}),t[8]=g,t[9]=v,t[10]=C):C=t[10];let b;t[11]!==s?(b=s!==null?y.jsx(G0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let $;return t[13]!==w||t[14]!==C||t[15]!==b?($=y.jsxs("div",{className:K2.wrapper,children:[w,C,b]}),t[13]=w,t[14]=C,t[15]=b,t[16]=$):$=t[16],$},Ur=e=>{const t=Re.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(fh,{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},Rq=e=>{var P,z,V;const t=Re.c(51),{className:n,entityId:r,entityType:i}=e,{texts:o}=m.useContext(ln),{documents:a}=o,{prompt:s}=DC(),{confirm:l}=P0(),{apiActions:c,reducer:u}=m.useContext(xn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:g,archivateFiles:v,deleteDirectory:x}=c,{renameFolder:_}=rS(),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 H=await s(a.enterNewFolderName,{input:"input"});H!==null&&_(d.activeFolder,H)},t[0]=a.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=b):b=t[4];const $=b;let T;t[5]!==a.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(T=async()=>{if(d.activeFolder==="root")return;const H=await s(a.enterNewFileName,{input:"input"});H!==null&&p(H)},t[5]=a.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=T):T=t[9];const k=T,O=d.activeFolder==="root";let j;e:{if(d.activeFolder==="root"){j=!1;break e}let H;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(H=((P=d.foldersMap.get(d.activeFolder))==null?void 0:P.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=H):H=t[12],j=H}const S=j;let E;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let H;t[16]!==d.constantFiles?(H=Y=>{var Z;return((Z=d.constantFiles.find(J=>J.id===Y))==null?void 0:Z.archive)===!1},t[16]=d.constantFiles,t[17]=H):H=t[17],E=d.markedFiles.every(H),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=E}else E=t[15];const A=E;let D;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let H;t[21]!==d.constantFiles?(H=Y=>{var Z;return((Z=d.constantFiles.find(J=>J.id===Y))==null?void 0:Z.archive)===!0},t[21]=d.constantFiles,t[22]=H):H=t[22],D=d.markedFiles.every(H),t[18]=d.constantFiles,t[19]=d.markedFiles,t[20]=D}else D=t[20];const R=D,M=d.state==="folder-choosing"?"ignore-dim":void 0;let I;t[23]!==n||t[24]!==M?(I=ue(n,Lm.wrapper,M,"d-flex justify-content-between"),t[23]=n,t[24]=M,t[25]=I):I=t[25];let F;t[26]!==A||t[27]!==v||t[28]!==l||t[29]!==R||t[30]!==x||t[31]!==h||t[32]!==f||t[33]!==a||t[34]!==g||t[35]!==r||t[36]!==i||t[37]!==k||t[38]!==$||t[39]!==w||t[40]!==C||t[41]!==S||t[42]!==O||t[43]!==d.activeFolder||t[44]!==d.foldersMap||t[45]!==d.markedFiles||t[46]!==d.state?(F=d.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Lm.divButtons,children:[y.jsx(Aq,{entityId:r,entityType:i,disabled:S,children:a.uploadFiles}),y.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:S,children:a.createFolder}),y.jsx(Ur,{disabled:d.activeFolder==="root"||((z=d.foldersMap.get(d.activeFolder))==null?void 0:z.isDefault),onClick:async()=>{var Y;await l(`${a.deleteFolder} ${(Y=d.foldersMap.get(d.activeFolder))==null?void 0:Y.name}?`)&&x(d.activeFolder)},children:a.deleteFolder}),y.jsx(Ur,{disabled:d.activeFolder==="root"||((V=d.foldersMap.get(d.activeFolder))==null?void 0:V.isDefault),onClick:$,children:a.renameFolder})]}),!O&&!S?y.jsxs("div",{className:Lm.divButtons,children:[y.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:a.editFileProperties}),y.jsx(Ur,{onClick:async()=>{await l(a.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:a.delete}),R?y.jsx(Ur,{onClick:async()=>{await l(a.confirmDearchiveFile(d.markedFiles.length))&&await v(!0)},disabled:w,children:a.dearchivate}):y.jsx(Ur,{onClick:async()=>{await l(a.confirmArchiveFile(d.markedFiles.length))&&await v()},disabled:w||!A,children:a.archivate}),y.jsx(Ur,{onClick:k,disabled:w,children:a.rename}),y.jsx(Ur,{onClick:g,disabled:w,children:a.downloadZip})]}):null]}):d.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Ur,{onClick:()=>f({type:"return-from-folder-choosing"}),className:ue("ignore-dim","body-background-color"),children:a.back})}):void 0,t[26]=A,t[27]=v,t[28]=l,t[29]=R,t[30]=x,t[31]=h,t[32]=f,t[33]=a,t[34]=g,t[35]=r,t[36]=i,t[37]=k,t[38]=$,t[39]=w,t[40]=C,t[41]=S,t[42]=O,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=F):F=t[47];let U;return t[48]!==F||t[49]!==I?(U=y.jsx("div",{className:I,children:F}),t[48]=F,t[49]=I,t[50]=U):U=t[50],U},jq=e=>{const t=Re.c(25),{file:n}=e,{confirm:r}=P0(),{reducer:i,apiActions:o}=m.useContext(xn),[a]=i,{downloadFile:s}=o,{texts:l}=m.useContext(ln),{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:ws(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=sS(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(zn,{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(zn,{variant:"body",children:n.name}),t[12]=n.name,t[13]=p):p=t[13];let g;t[14]!==n.size?(g=n.size==null?null:ws(n.size*1024*1024),t[14]=n.size,t[15]=g):g=t[15];let v;t[16]!==g?(v=y.jsx(zn,{variant:"body",children:g}),t[16]=g,t[17]=v):v=t[17];let x;t[18]!==p||t[19]!==v?(x=y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,v]}),t[18]=p,t[19]=v,t[20]=x):x=t[20];let _;return t[21]!==d||t[22]!==x||t[23]!==h?(_=y.jsxs(Kf,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},Nq="_typeSelect_m3myk_1",Dq={typeSelect:Nq},Iq=()=>{const e=Re.c(34),{reducer:t}=m.useContext(xn),[n]=t,{texts:r}=m.useContext(ln),{documents:i}=r,[o,a]=m.useState(""),[s,l]=m.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(Pq),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 g;if(e[9]!==o||e[10]!==s||e[11]!==n.filteredFiles){let k;e[13]!==o||e[14]!==s?(k=O=>A0(O.name,o)&&(s===null||O.documentTypeId===s),e[13]=o,e[14]=s,e[15]=k):k=e[15],g=n.filteredFiles.filter(k),e[9]=o,e[10]=s,e[11]=n.filteredFiles,e[12]=g}else g=e[12];const v=g;let x;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(x=y.jsx(eS,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:Dq.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(Q$,{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]!==v?(b=v.map(Lq),e[27]=v,e[28]=b):b=e[28];let $;e[29]!==b?($=y.jsx(cC,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=$):$=e[30];let T;return e[31]!==$||e[32]!==C?(T=y.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,$]}),e[31]=$,e[32]=C,e[33]=T):T=e[33],T};function Pq(e){return{id:e[0],name:e[1]}}function Lq(e){return y.jsx(jq,{file:e},e.id)}function Fq(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function Bq(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,Fq(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 Z2(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 zq(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const Wq=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(ln),{startLoading:o,stopLoading:a}=m.useContext(Qf),{addNotification:s}=sh(),l=lh(),c=m.useCallback(async w=>{o("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:T}=Bq(b.folders),k=zq(b.documents,$);t({type:"load-data",files:k,foldersMap:$,rootFolderIds:T,setActiveFolder:w})}finally{a("documentList")}},[l,t,r,n,o,a]);m.useEffect(()=>{c(!0)},[c]);const u=m.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]);m.useEffect(()=>{u()},[u]);const d=m.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=m.useCallback(async w=>{const C=w??e.markedFiles;o("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${Ig(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=m.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=m.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]),g=m.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]),v=m.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?${Ig(e.markedFiles,"documentIds")}`,{responseType:"blob"});zd(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=m.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const b=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(k=>k.id===w),T=`${($==null?void 0:$.name)??w.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;zd(b.data,T,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,l,e.constantFiles,a]),_=m.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:g,downloadAsZip:v,downloadFile:x,uploadFiles:_}},Uq=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Z2(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=Z2(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.")}},Hq=()=>{const e=Re.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]=m.useReducer(Uq,n);let o;return e[1]!==r?(o=[r,i],e[1]=r,e[2]=o):o=e[2],o},Vq=m.memo(e=>{const t=Re.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}=ou(),{ProjectIconComponent:f,texts:h}=m.useContext(ln),{documents:p}=h,[g,v]=Hq(),[x,_]=m.useState(null);let w;t[9]!==v||t[10]!==g?(w=[g,v],t[9]=v,t[10]=g,t[11]=w):w=t[11];const C=Wq(w,a,o);let b,$;t[12]!==C?({loadDocuments:$,...b}=C,t[12]=C,t[13]=b,t[14]=$):(b=t[13],$=t[14]);let T;t[15]!==v||t[16]!==g?(T=[g,v],t[15]=v,t[16]=g,t[17]=T):T=t[17];let k;t[18]!==b||t[19]!==o||t[20]!==a||t[21]!==$||t[22]!==T?(k={entityId:o,entityType:a,apiActions:b,loadDocuments:$,reducer:T},t[18]=b,t[19]=o,t[20]=a,t[21]=$,t[22]=T,t[23]=k):k=t[23];const O=k,{getDropProps:j}=Y0();if(d){let X;t[24]===Symbol.for("react.memo_cache_sentinel")?(X=y.jsx(Iq,{}),t[24]=X):X=t[24];let G;return t[25]!==O?(G=y.jsx(xn.Provider,{value:O,children:X}),t[25]=O,t[26]=G):G=t[26],G}let S;t[27]!==r?(S=ue(Do.wrapper,r),t[27]=r,t[28]=S):S=t[28];const E=g.state==="folder-choosing"?"dim-others":void 0;let A;t[29]!==E?(A=ue(E,Do.explorerWindow),t[29]=E,t[30]=A):A=t[30];const D=i??a;let R;t[31]!==D?(R=y.jsx(pP,{customText:D}),t[31]=D,t[32]=R):R=t[32];let M;if(t[33]!==g.rootFolderIds||t[34]!==u){let X;t[36]!==u?(X=G=>y.jsx(lS,{dirId:G,writePermissions:u},G),t[36]=u,t[37]=X):X=t[37],M=g.rootFolderIds.map(X),t[33]=g.rootFolderIds,t[34]=u,t[35]=M}else M=t[35];let I;t[38]!==R||t[39]!==M?(I=y.jsxs("ul",{className:Do.folderList,children:[R,M]}),t[38]=R,t[39]=M,t[40]=I):I=t[40];let F;t[41]!==I||t[42]!==A?(F=y.jsx("div",{className:A,children:I}),t[41]=I,t[42]=A,t[43]=F):F=t[43];let U;t[44]===Symbol.for("react.memo_cache_sentinel")?(U=ue(Do.explorerWindow,Do.fileList),t[44]=U):U=t[44];let P;t[45]!==j||t[46]!==g||t[47]!==u?(P=u&&MP(g)?j(g.activeFolder,{onFilesDrop:X=>_(X),ignoreInner:!0}):{},t[45]=j,t[46]=g,t[47]=u,t[48]=P):P=t[48];let z;t[49]===Symbol.for("react.memo_cache_sentinel")?(z={style:{marginRight:0}},t[49]=z):z=t[49];let V;t[50]!==f?(V=y.jsx(f,{icon:"file-upload",iconProps:z}),t[50]=f,t[51]=V):V=t[51];let H;t[52]!==p.dropToUpload?(H=y.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=H):H=t[53];let Y;t[54]!==V||t[55]!==H?(Y=y.jsxs("div",{className:Do.dndText,children:[V,H]}),t[54]=V,t[55]=H,t[56]=Y):Y=t[56];const Z=g.activeFolder==="root";let J;t[57]!==Z?(J=Z.toString(),t[57]=Z,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=y.jsx(Cq,{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]!==P||t[65]!==Y||t[66]!==ee?(W=y.jsxs("div",{className:U,...P,children:[Y,ee]}),t[64]=P,t[65]=Y,t[66]=ee,t[67]=W):W=t[67];let L;t[68]!==o||t[69]!==a||t[70]!==u?(L=u?y.jsx(Rq,{className:Do.controls,entityType:a,entityId:o}):null,t[68]=o,t[69]=a,t[70]=u,t[71]=L):L=t[71];let B;t[72]===Symbol.for("react.memo_cache_sentinel")?(B=y.jsx($P,{}),t[72]=B):B=t[72];let q;t[73]!==g.activeFolder||t[74]!==x?(q=x!==null?y.jsx(G0,{files:x,handleClose:()=>_(null),targetFolderId:g.activeFolder==="root"?void 0:g.activeFolder}):null,t[73]=g.activeFolder,t[74]=x,t[75]=q):q=t[75];let N;t[76]!==O||t[77]!==F||t[78]!==W||t[79]!==L||t[80]!==q?(N=y.jsxs(xn.Provider,{value:O,children:[F,W,L,B,q]}),t[76]=O,t[77]=F,t[78]=W,t[79]=L,t[80]=q,t[81]=N):N=t[81];let Q;return t[82]!==s||t[83]!==N||t[84]!==S?(Q=y.jsx("div",{...s,className:S,onDragOver:qq,onDragEnter:Yq,children:N}),t[82]=s,t[83]=N,t[84]=S,t[85]=Q):Q=t[85],Q});function qq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function Yq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const Gq="Left",Kq="Right",Zq="Up",Xq="Down",ts={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},cv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},X2="mousemove",Q2="mouseup",Qq="touchend",Jq="touchmove",eY="touchstart";function tY(e,t,n,r){return e>t?n>0?Kq:Gq:r>0?Xq:Zq}function J2(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 nY(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(X2,r),document.addEventListener(Q2,a));const{clientX:p,clientY:g}=d?u.touches[0]:u,v=J2([p,g],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),cv),{initial:v.slice(),xy:v,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:p,clientY:g}=h?u.touches[0]:u,[v,x]=J2([p,g],f.rotationAngle),_=v-d.xy[0],w=x-d.xy[1],C=Math.abs(_),b=Math.abs(w),$=(u.timeStamp||0)-d.start,T=Math.sqrt(C*C+b*b)/($||1),k=[_/($||1),w/($||1)],O=tY(C,b,_,w),j=typeof f.delta=="number"?f.delta:f.delta[O.toLowerCase()]||ts.delta;if(C<j&&b<j&&!d.swiping)return d;const S={absX:C,absY:b,deltaX:_,deltaY:w,dir:O,event:u,first:d.first,initial:d.initial,velocity:T,vxvy:k};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let E=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${O}`])&&(E=!0),E&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:S,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),cv),{eventData:h})})},o=()=>{document.removeEventListener(X2,r),document.removeEventListener(Q2,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},ts.touchEventOptions),d.touchEventOptions),p=[[eY,n,h],[Jq,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[Qq,i,h]];p.forEach(([g,v,x])=>u.addEventListener(g,v,x)),f=()=>p.forEach(([g,v])=>u.removeEventListener(g,v))}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 rY(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 M1(e){const{trackMouse:t}=e,n=ie.useRef(Object.assign({},cv)),r=ie.useRef(Object.assign({},ts)),i=ie.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},ts),e);let o;for(o in ts)r.current[o]===void 0&&(r.current[o]=ts[o]);const[a,s]=ie.useMemo(()=>nY(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=rY(n.current,r.current,i.current,s),a}const iY="_side-content-bar_16o0s_1",oY="_mobile_16o0s_12",aY="_expanded_16o0s_20",sY="_content-container_16o0s_23",lY="_resizer_16o0s_31",cY="_expander_16o0s_46",uY="_icon_16o0s_65",mi={sideContentBar:iY,mobile:oY,expanded:aY,contentContainer:sY,resizer:lY,expander:cY,icon:uY},a5=e=>{const t=Re.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:o,onResize:a}=e,[s,l]=i,c=o===void 0?!0:o,{ProjectIconComponent:u}=m.useContext(ln),{isMobile:d}=ou();let f;t[0]!==l?(f=j=>{j.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 g=M1(p),[v,x]=m.useState(null);let _;t[5]!==s||t[6]!==d?(_=ue("luminus-side-content-bar shadow",mi.sideContentBar,{[mi.mobile]:d},{[mi.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]!==(v==null?void 0:v.startX)||t[12]!==(v==null?void 0:v.widthStart)||t[13]!==d||t[14]!==a||t[15]!==c||t[16]!==n?(b=c&&!d?y.jsx("div",{role:"button",className:ue(mi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:j=>x({startX:j.clientX,widthStart:n}),onDrag:j=>a(((v==null?void 0:v.widthStart)??0)+(((v==null?void 0:v.startX)??0)-j.clientX)),onDragEnd:()=>x(null),children:y.jsx(u,{className:mi.icon,icon:"resizer-horizontal"})}):null,t[10]=u,t[11]=v==null?void 0:v.startX,t[12]=v==null?void 0:v.widthStart,t[13]=d,t[14]=a,t[15]=c,t[16]=n,t[17]=b):b=t[17];let $;t[18]!==r?($=y.jsx("div",{className:mi.contentContainer,children:r}),t[18]=r,t[19]=$):$=t[19];let T;t[20]!==g||t[21]!==$||t[22]!==_||t[23]!==C||t[24]!==b?(T=y.jsxs("section",{className:_,style:C,...g,children:[b,$]}),t[20]=g,t[21]=$,t[22]=_,t[23]=C,t[24]=b,t[25]=T):T=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:ue(mi.expander,{[mi.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:y.jsx(u,{className:mi.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=k):k=t[30];let O;return t[31]!==T||t[32]!==k?(O=y.jsxs(y.Fragment,{children:[T,k]}),t[31]=T,t[32]=k,t[33]=O):O=t[33],O},dY=e=>{const t=Re.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?y.jsx(zn,{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},fY="_full-screen-container_1rm4r_1",s5={fullScreenContainer:fY},hY=ue("overflow-hidden luminus-full-screen-container",s5.fullScreenContainer),pY="container-fluid",mY=e=>{const t=Re.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:g,removeHelmet:v}=m.useContext(Y$),{texts:x}=m.useContext(ln),{container:_}=x,[w,C]=m.useState(f),[b,$]=m.useState(!1);let T;e:switch(p){case"fullScreen":{T=hY;break e}case"main":{T=pY;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=T;let O,j;t[0]!==g||t[1]!==u||t[2]!==v||t[3]!==n?(O=()=>(u?g(u):typeof n=="string"&&n&&g(n),()=>v()),j=[u,g,v,n],t[0]=g,t[1]=u,t[2]=v,t[3]=n,t[4]=O,t[5]=j):(O=t[4],j=t[5]),m.useEffect(O,j);let S;t[6]===Symbol.for("react.memo_cache_sentinel")?(S={onSwipedLeft:ee=>{ee.velocity>.8&&$(!0)},delta:100},t[6]=S):S=t[6];const E=M1(S),{isMobile:A}=ou(),D=A&&d;let R,M;t[7]!==f?(M=()=>{C(f)},R=[f],t[7]=f,t[8]=R,t[9]=M):(R=t[8],M=t[9]),m.useEffect(M,R);const I=s?"p-0":"p-3";let F;t[10]!==l||t[11]!==I||t[12]!==k?(F=ue(k,I,l),t[10]=l,t[11]=I,t[12]=k,t[13]=F):F=t[13];let U;t[14]!==i||t[15]!==w||t[16]!==p?(U=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=U):U=t[17];const P=p==="fullScreen"?s5.fullScreenContainer:void 0;let z;t[18]!==i||t[19]!==w||t[20]!==p?(z=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=z):z=t[21];let V;t[22]!==D||t[23]!==r||t[24]!==_||t[25]!==n?(V=D?y.jsx(I1,{variant:"warning",children:_.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[n?y.jsx(dY,{title:n}):null,r]}),t[22]=D,t[23]=r,t[24]=_,t[25]=n,t[26]=V):V=t[26];let H;t[27]!==P||t[28]!==z||t[29]!==V?(H=y.jsx("div",{className:P,style:z,children:V}),t[27]=P,t[28]=z,t[29]=V,t[30]=H):H=t[30];let Y;t[31]!==E||t[32]!==F||t[33]!==U||t[34]!==H?(Y=y.jsx("div",{className:F,style:U,...E,children:H}),t[31]=E,t[32]=F,t[33]=U,t[34]=H,t[35]=Y):Y=t[35];let Z;t[36]!==D||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==w?(Z=i&&!D?y.jsx(a5,{width:w,isExpandedOnMobileState:[b,$],resizeable:h,onResize:ee=>h?C(ee):{},children:i}):null,t[36]=D,t[37]=b,t[38]=i,t[39]=h,t[40]=w,t[41]=Z):Z=t[41];let J;return t[42]!==Y||t[43]!==Z?(J=y.jsxs(y.Fragment,{children:[Y,Z]}),t[42]=Y,t[43]=Z,t[44]=J):J=t[44],J};var A1={};A1.match=wY;A1.parse=l5;var gY=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,vY=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,bY=/^(?:(min|max)-)?(.+)/,yY=/(em|rem|px|cm|mm|in|pt|pc)?$/,xY=/(dpi|dpcm|dppx)?$/;function wY(e,t){return l5(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=nw(c),u=nw(u);break;case"resolution":c=tw(c),u=tw(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=ew(c),u=ew(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 l5(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(gY),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(vY),c=l[1].toLowerCase().match(bY);return{modifier:c[1],feature:c[2],value:l[2]}}),a})}function ew(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function tw(e){var t=parseFloat(e),n=String(e).match(xY)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function nw(e){var t=parseFloat(e),n=String(e).match(yY)[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 _Y=A1.match,rw=typeof window<"u"?window.matchMedia:null;function CY(e,t,n){var r=this,i;rw&&!n&&(i=rw.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=_Y(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 $Y(e,t,n){return new CY(e,t,n)}var SY=$Y;const TY=sn(SY);var EY=/[A-Z]/g,kY=/^ms-/,Fm={};function OY(e){return"-"+e.toLowerCase()}function c5(e){if(Fm.hasOwnProperty(e))return Fm[e];var t=e.replace(EY,OY);return Fm[e]=kY.test(t)?"-"+t:t}function MY(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 Bn=xe.oneOfType([xe.string,xe.number]),u5={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},AY={orientation:xe.oneOf(["portrait","landscape"]),scan:xe.oneOf(["progressive","interlace"]),aspectRatio:xe.string,deviceAspectRatio:xe.string,height:Bn,deviceHeight:Bn,width:Bn,deviceWidth:Bn,color:xe.bool,colorIndex:xe.bool,monochrome:xe.bool,resolution:Bn,type:Object.keys(u5)},{type:Gbe,...RY}=AY,jY={minAspectRatio:xe.string,maxAspectRatio:xe.string,minDeviceAspectRatio:xe.string,maxDeviceAspectRatio:xe.string,minHeight:Bn,maxHeight:Bn,minDeviceHeight:Bn,maxDeviceHeight:Bn,minWidth:Bn,maxWidth:Bn,minDeviceWidth:Bn,maxDeviceWidth:Bn,minColor:xe.number,maxColor:xe.number,minColorIndex:xe.number,maxColorIndex:xe.number,minMonochrome:xe.number,maxMonochrome:xe.number,minResolution:Bn,maxResolution:Bn,...RY},NY={...u5,...jY};var DY={all:NY};const IY=e=>`not ${e}`,PY=(e,t)=>{const n=c5(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?IY(n):`(${n}: ${t})`},LY=e=>e.join(" and "),FY=e=>{const t=[];return Object.keys(DY.all).forEach(n=>{const r=e[n];r!=null&&t.push(PY(n,r))}),LY(t)},BY=m.createContext(void 0),zY=e=>e.query||FY(e),iw=e=>e?Object.keys(e).reduce((n,r)=>(n[c5(r)]=e[r],n),{}):void 0,d5=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},WY=e=>{const t=m.useContext(BY),n=()=>iw(e)||iw(t),[r,i]=m.useState(n);return m.useEffect(()=>{const o=n();MY(r,o)||i(o)},[e,t]),r},UY=e=>{const t=()=>zY(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},HY=(e,t)=>{const n=()=>TY(e,t||{},!!t),[r,i]=m.useState(n),o=d5();return m.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},VY=e=>{const[t,n]=m.useState(e.matches);return m.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},Bm=(e,t,n)=>{const r=WY(t),i=UY(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=HY(i,r),a=VY(o);return d5(),m.useEffect(()=>{},[a]),m.useEffect(()=>()=>{o&&o.dispose()},[]),a},qY=["sm","md","lg","always"],f5="ResponsiveContextDropdownItem",YY=e=>e.type.displayName===f5,R1=e=>({});R1.displayName=f5;function GY(e){return e.type&&e.type===m.Fragment}const h5=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(GY(r)){n.push(...h5(r.props.children));return}n.push(r)}}),n},KY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Ps.generatePath(e,r)+"?"+n},ZY="_disabled_9mp5v_1",XY={disabled:ZY},QY=()=>{const e=Re.c(5),{ProjectIconComponent:t}=m.useContext(ln),{checkUserHasPermissions:n}=H$();let r;e[0]!==t||e[1]!==n?(r=(a,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:g,cKey:v,to:x,toRoute:_,disabled:w,icon:C,pathParams:b,...$}=h.props,T=(_==null?void 0:_.permissions)!=null,k=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),O=(w??!1)||T&&!k,j=x??(_==null?void 0:KY(_==null?void 0:_.route,b)),S=g??(_==null?void 0:_.name),E=C??(_!=null?y.jsx(t,{icon:"link"}):void 0);if(p==="always"||qY.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const A=ue($.className,{[XY.disabled]:O});j!=null?c.push(y.jsx(Yo,{...$,as:"link",to:j,disabled:O,icon:E,className:A,children:S},v)):c.push(y.jsx(Yo,{...$,icon:E,className:A,children:S},v))}else{const A=j!=null?{as:"link",href:j}:{};l.push(y.jsx(fh,{...$,...A,icon:E,className:ue(O?"disabled":void 0,$.className),children:S},v))}};return h5(a).forEach(h=>{h&&m.isValidElement(h)&&(YY(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},p5=e=>{const t=Re.c(18),{children:n}=e,{getProcessedChildren:r}=QY();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const o=Bm(i);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:769,maxWidth:1200},t[1]=a):a=t[1];const s=Bm(a);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=Bm(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 g;t[11]!==h?(g=y.jsx(y.Fragment,{children:h}),t[11]=h,t[12]=g):g=t[12];let v;t[13]!==p?(v=p.length>0?y.jsx(q0,{toggle:y.jsx(V0,{as:H0}),children:p}):null,t[13]=p,t[14]=v):v=t[14];let x;return t[15]!==g||t[16]!==v?(x=y.jsxs("div",{className:"d-flex gap-1",children:[g,v]}),t[15]=g,t[16]=v,t[17]=x):x=t[17],x};p5.Item=R1;const JY=m.createContext(void 0);function eG(e,t,n,r){var i=this,o=m.useRef(null),a=m.useRef(0),s=m.useRef(0),l=m.useRef(null),c=m.useRef([]),u=m.useRef(),d=m.useRef(),f=m.useRef(e),h=m.useRef(!0);f.current=e;var p=typeof window<"u",g=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(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;m.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=m.useMemo(function(){var $=function(A){var D=c.current,R=u.current;return c.current=u.current=null,a.current=A,s.current=s.current||A,d.current=f.current.apply(R,D)},T=function(A,D){g&&cancelAnimationFrame(l.current),l.current=g?requestAnimationFrame(A):setTimeout(A,D)},k=function(A){if(!h.current)return!1;var D=A-o.current;return!o.current||D>=t||D<0||_&&A-a.current>=C},O=function(A){return l.current=null,x&&c.current?$(A):(c.current=u.current=null,d.current)},j=function A(){var D=Date.now();if(v&&s.current===a.current&&S(),k(D))return O(D);if(h.current){var R=t-(D-o.current),M=_?Math.min(R,C-(D-a.current)):R;T(A,M)}},S=function(){r&&r({})},E=function(){if(p||w){var A=Date.now(),D=k(A);if(c.current=[].slice.call(arguments),u.current=i,o.current=A,D){if(!l.current&&h.current)return a.current=o.current,T(j,t),v?$(o.current):d.current;if(_)return T(j,t),$(o.current)}return l.current||T(j,t),d.current}};return E.cancel=function(){var A=l.current;A&&(g?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?O(Date.now()):d.current},E},[v,_,t,C,x,g,p,w,r]);return b}function tG(e,t){return e===t}function j1(e,t,n){var r=n&&n.equalityFn||tG,i=m.useRef(e),o=m.useState({})[1],a=eG(m.useCallback(function(l){i.current=l,o({})},[o]),t,n,o),s=m.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const nG="_feedback_esh1j_1",rG="_feedback-spacer_esh1j_8",ow={feedback:nG,feedbackSpacer:rG},Eh=e=>{const t=Re.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=ue("invalid-feedback luminus-invalid-feedback",ow.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=ue("invalid-feedback-spacer",ow.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},iG="_wrapper_1mvyk_1",oG="_open_1mvyk_9",aG="_dropdown_1mvyk_13",sG="_search-input-container_1mvyk_19",lG="_search-input_1mvyk_19",cG="_loading-container_1mvyk_25",uG="_items-container_1mvyk_32",dG="_header-row_1mvyk_38",fG="_name_1mvyk_49",hG="_item_1mvyk_32",pG="_column-item_1mvyk_65",mG="_action-buttons-container_1mvyk_89",gG="_reverse_1mvyk_97",vG="_action-button_1mvyk_89",bG="_actions-dropdown_1mvyk_110",Cn={wrapper:iG,open:oG,dropdown:aG,searchInputContainer:sG,searchInput:lG,loadingContainer:cG,itemsContainer:uG,headerRow:dG,name:fG,item:hG,columnItem:pG,actionButtonsContainer:mG,reverse:gG,actionButton:vG,actionsDropdown:bG},m5=({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:g=!1,inputRef:v,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1,customEllipsisOptions:b})=>{var Te;const{texts:{customSelect:$}}=m.useContext(ln),T=m.useRef(null),k=m.useRef(null),O=m.useRef(null),j=m.useRef(null),S=m.useRef(null),[E,A]=m.useState(""),[D]=j1(E,500),[,R]=m.useState(!1),{copyToClipboard:M}=q$(),I=(Te=v.current)==null?void 0:Te.getBoundingClientRect(),F=(I==null?void 0:I.x)??0,U=((I==null?void 0:I.x)??0)+((I==null?void 0:I.width)??0),P=(I==null?void 0:I.y)??0,z=((I==null?void 0:I.y)??0)+((I==null?void 0:I.height)??0),V=(I==null?void 0:I.width)??0,H=(I==null?void 0:I.height)??0,Y=5,{isMobile:Z}=ou(),J=8,ee=m.useMemo(()=>F?F>window.innerWidth/2-J:!1,[F]),W=m.useMemo(()=>P?P>window.innerHeight/2-J:!1,[P]);m.useEffect(()=>{var de;e&&((de=O.current)==null||de.focus())},[O,e]),m.useEffect(()=>{e||A("")},[e]),m.useEffect(()=>{s&&s(D)},[D,s]);const[L,B]=m.useState(null);m.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const q=m.useMemo(()=>L!==null?n.at(L)??null:null,[L,n]),N=m.useCallback((de,le)=>{var Be,Bt;const we=document.getElementById(`item-${de}`);if(we){const Le=we.clientHeight??0;le==="down"?(Be=j.current)==null||Be.scrollBy({left:0,top:Le,behavior:"smooth"}):(Bt=j.current)==null||Bt.scrollBy({left:0,top:-Le,behavior:"smooth"})}},[]),Q=m.useCallback(de=>{if(L===null||p)return;const le=L+de;le<0||le>=n.length||B(we=>(we!==null&&N(we,de>0?"down":"up"),le))},[L,n,p,N]),X=m.useCallback(de=>{if(e)switch(de.key){case"Escape":de.stopPropagation(),de.preventDefault(),t();break;case"Enter":de.stopPropagation(),de.preventDefault(),p||a(q);break;case"ArrowUp":de.stopPropagation(),de.preventDefault(),Q(-1);break;case"ArrowDown":de.stopPropagation(),de.preventDefault(),Q(1);break}},[t,e,Q,q,p,a]),G=m.useCallback(()=>{R(de=>!de)},[]);m.useEffect(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[G]),m.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]),V$(X),U$([T,k,S],t);const se=c??(u&&u.length>0?250:0),te=(u==null?void 0:u.reduce((de,le)=>de+(le.width??100),0))??0,re=m.useMemo(()=>(o&&e&&!p&&!C)??!1,[o,e,p,C]),ae=m.useMemo(()=>(o&&e)??!1,[o,e]),ce=m.useMemo(()=>e&&(ae||_!==void 0||w!==void 0||b!=null&&b.length>0),[e,ae,_,w,b]),ve=32,ge=Z?`calc(100vw - ${ve}px)`:`calc(max(${V}px, calc(${se}px + ${te}px)))`,be=m.useMemo(()=>(E.length<1&&r&&r.length>0?r:n).map(de=>{var le,we;return d?((le=de.id)==null?void 0:le.toString())??"":((we=de.name)==null?void 0:we.toString())??""}).reduce((de,le)=>de.length>le.length?de:le,""),[E,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(g5,{show:e,onClick:t}),y.jsxs("div",{className:ue("luminus-dropdown-picker-actions",Cn.actionButtonsContainer,{[Cn.reverse]:ee}),style:{top:`calc(${P}px + ${H/2}px - 12px)`,left:ee?re&&ae?`calc(${F}px - 24px - 8px - 24px - 4px)`:`calc(${F}px - 24px - 8px)`:`calc(${U}px + 8px)`},children:[re&&y.jsx("button",{ref:k,type:"button",className:ue("luminus-dropdown-picker-clear-button",Cn.actionButton),onClick:()=>!p&&a(null),children:y.jsx(zn,{variant:"caption",className:"text-danger",children:y.jsx(MC,{size:16})})}),ce?y.jsx("div",{ref:S,children:y.jsxs(q0,{toggle:y.jsx(V0,{as:H0,className:ue("luminus-dropdown-picker-actions-dropdown",Cn.actionsDropdown),icon:y.jsx(zn,{variant:"caption",className:"text-primary",children:y.jsx(RC,{size:16})})}),children:[ae?y.jsx(Yo,{icon:y.jsx(SR,{}),onClick:()=>{var de,le;M(d?((de=o==null?void 0:o.id)==null?void 0:de.toString())??"":((le=o==null?void 0:o.name)==null?void 0:le.toString())??"")},children:$.copySelection}):null,ae&&(_||w)?y.jsx(Gg,{}):null,_?y.jsx(Yo,{icon:y.jsx($R,{}),onClick:()=>{window.open(_,"_blank")},children:$.addNewOption}):null,w?y.jsx(Yo,{icon:y.jsx(DR,{}),onClick:()=>{w()},children:$.refreshOptions}):null,b&&b.length>0?y.jsx(Gg,{}):null,b==null?void 0:b.map(de=>y.jsxs(Yo,{onClick:()=>{de.onClick(),t()},children:[de.icon??null,de.label]},de.label))]})}):null]}),y.jsx("div",{className:ue("luminus-dropdown-picker",Cn.wrapper,{[Cn.open]:e}),style:{top:W?`calc(${P}px - 50vh - 8px)`:`calc(${z}px + 8px)`,left:Z?`${ve/2}px`:ee?`calc(${U}px - ${ge})`:F,right:Z?`${ve/2}px`:ee?`${U}px`:`calc(${F}px + ${ge})`,width:ge,justifyContent:W?"flex-end":"flex-start"},children:y.jsx("div",{ref:T,className:ue("shadow rounded",Cn.dropdown),children:!p&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=Y?null:y.jsx("div",{className:ue("search-input-container border-bottom",Cn.searchInputContainer),children:y.jsx(si.Control,{ref:O,type:"search",size:"sm",className:Cn.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:de=>{var le;return A(((le=de.target)==null?void 0:le.value)??"")}})}),E.length<1&&r&&r.length>0?y.jsx(I1,{variant:"info",size:"sm",children:i??$.suggestedItemsTitle}):null,g?y.jsx("div",{className:Cn.loadingContainer,children:y.jsx(E0,{animation:"border",variant:"primary"})}):(E.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:j,className:ue("items",Cn.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:ue("header-row border-bottom",Cn.headerRow),children:[y.jsx("div",{className:Cn.name,children:y.jsx(zn,{variant:"body2",children:be})}),u==null?void 0:u.filter(de=>de.key!==x).map(de=>y.jsx("div",{className:Cn.columnItem,style:{width:`${de.width??100}px`,minWidth:`${de.width??100}px`,maxWidth:`${de.width??100}px`},children:y.jsx(zn,{variant:"caption",children:de.name})},de.key))]}),(E.length<1&&r&&r.length>0?r:n).map((de,le)=>y.jsxs("button",{id:`item-${le}`,type:"button",className:ue("item cursor-pointer",Cn.item,{[Cn.focused]:L===le},{focused:L===le},{archive:de.additionalColumns?de.additionalColumns[x]:!1}),onClick:()=>!p&&a(de),onMouseEnter:()=>B(le),children:[y.jsx("div",{className:Cn.name,children:y.jsx(zn,{variant:"body2",children:d?de.id:de.name})}),u==null?void 0:u.filter(we=>we.key!==x).map(we=>y.jsx("div",{className:Cn.columnItem,style:{width:`${we.width??100}px`,minWidth:`${we.width??100}px`,maxWidth:`${we.width??100}px`},children:y.jsx(zn,{variant:"caption",className:ue("text-muted"),children:de.additionalColumns&&de.additionalColumns[we.key]})},we.key))]},de.id))]})]})})})]})},yG="_backdrop_3huvf_1",xG="_show_3huvf_11",aw={backdrop:yG,show:xG},g5=e=>{const t=Re.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=ue("luminus-backdrop",aw.backdrop,{[aw.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 N1={},yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.bind=void 0;function wG(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}yu.bind=wG;var kh={},ns=Zn&&Zn.__assign||function(){return ns=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},ns.apply(this,arguments)};Object.defineProperty(kh,"__esModule",{value:!0});kh.bindAll=void 0;var _G=yu;function sw(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function CG(e,t){if(t==null)return e;var n=ns(ns({},e),{options:ns(ns({},sw(t)),sw(e.options))});return n}function $G(e,t,n){var r=t.map(function(i){var o=CG(i,n);return(0,_G.bind)(e,o)});return function(){r.forEach(function(o){return o()})}}kh.bindAll=$G;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=yu;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=kh;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(N1);function v5(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 D1=v5(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),uv={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function SG(e){var t=e.dragLeave;return D1()?t.hasOwnProperty(uv.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!D1())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}N1.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[uv.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(o){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(o[uv.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var TG=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},zm=TG(function(e){return e()}),id=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 EG(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}}),id.schedule(function(){o({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;id.flush(),zm.cancel(),o({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;zm(function(){id.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;id.flush(),zm.cancel(),o({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return a}const I1=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return y.jsx(D8,{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(zn,{variant:o,children:n})})};var P1=wu(),tt=e=>xu(e,P1),L1=wu();tt.write=e=>xu(e,L1);var Oh=wu();tt.onStart=e=>xu(e,Oh);var F1=wu();tt.onFrame=e=>xu(e,F1);var B1=wu();tt.onFinish=e=>xu(e,B1);var cs=[];tt.setTimeout=(e,t)=>{const n=tt.now()+t,r=()=>{const o=cs.findIndex(a=>a.cancel==r);~o&&cs.splice(o,1),so-=~o?1:0},i={time:n,handler:e,cancel:r};return cs.splice(b5(n),0,i),so+=1,y5(),i};var b5=e=>~(~cs.findIndex(t=>t.time>e)||~cs.length);tt.cancel=e=>{Oh.delete(e),F1.delete(e),B1.delete(e),P1.delete(e),L1.delete(e)};tt.sync=e=>{dv=!0,tt.batchedUpdates(e),dv=!1};tt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,tt.onStart(n)}return r.handler=e,r.cancel=()=>{Oh.delete(n),t=null},r};var z1=typeof window<"u"?window.requestAnimationFrame:()=>{};tt.use=e=>z1=e;tt.now=typeof performance<"u"?()=>performance.now():Date.now;tt.batchedUpdates=e=>e();tt.catch=console.error;tt.frameLoop="always";tt.advance=()=>{tt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):w5()};var ao=-1,so=0,dv=!1;function xu(e,t){dv?(t.delete(e),e(0)):(t.add(e),y5())}function y5(){ao<0&&(ao=0,tt.frameLoop!=="demand"&&z1(x5))}function kG(){ao=-1}function x5(){~ao&&(z1(x5),tt.batchedUpdates(w5))}function w5(){const e=ao;ao=tt.now();const t=b5(ao);if(t&&(_5(cs.splice(0,t),n=>n.handler()),so-=t),!so){kG();return}Oh.flush(),P1.flush(e?Math.min(64,ao-e):16.667),F1.flush(),L1.flush(),B1.flush()}function wu(){let e=new Set,t=e;return{add(n){so+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return so-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,so-=t.size,_5(t,r=>r(n)&&e.add(r)),so+=e.size,t=e)}}}function _5(e,t){e.forEach(n=>{try{t(n)}catch(r){tt.catch(r)}})}var OG=Object.defineProperty,MG=(e,t)=>{for(var n in t)OG(e,n,{get:t[n],enumerable:!0})},Pr={};MG(Pr,{assign:()=>RG,colors:()=>uo,createStringInterpolator:()=>U1,skipAnimation:()=>$5,to:()=>C5,willAdvance:()=>H1});function fv(){}var AG=(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 bi(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 Ge=(e,t)=>e.forEach(t);function ri(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 Un=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function Xl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ge(n,t)}}var Bl=(e,...t)=>Xl(e,n=>n(...t)),W1=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U1,C5,uo=null,$5=!1,H1=fv,RG=e=>{e.to&&(C5=e.to),e.now&&(tt.now=e.now),e.colors!==void 0&&(uo=e.colors),e.skipAnimation!=null&&($5=e.skipAnimation),e.createStringInterpolator&&(U1=e.createStringInterpolator),e.requestAnimationFrame&&tt.use(e.requestAnimationFrame),e.batchedUpdates&&(tt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(H1=e.willAdvance),e.frameLoop&&(tt.frameLoop=e.frameLoop)},Ql=new Set,gr=[],Wm=[],ff=0,Mh={get idle(){return!Ql.size&&!gr.length},start(e){ff>e.priority?(Ql.add(e),tt.onStart(jG)):(S5(e),tt(hv))},advance:hv,sort(e){if(ff)tt.onFrame(()=>Mh.sort(e));else{const t=gr.indexOf(e);~t&&(gr.splice(t,1),T5(e))}},clear(){gr=[],Ql.clear()}};function jG(){Ql.forEach(S5),Ql.clear(),tt(hv)}function S5(e){gr.includes(e)||T5(e)}function T5(e){gr.splice(NG(gr,t=>t.priority>e.priority),0,e)}function hv(e){const t=Wm;for(let n=0;n<gr.length;n++){const r=gr[n];ff=r.priority,r.idle||(H1(r),r.advance(e),r.idle||t.push(r))}return ff=0,Wm=gr,Wm.length=0,gr=t,gr.length>0}function NG(e,t){const n=e.findIndex(t);return n<0?e.length:n}var DG={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},jr="[-+]?\\d*\\.?\\d+",hf=jr+"%";function Ah(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var IG=new RegExp("rgb"+Ah(jr,jr,jr)),PG=new RegExp("rgba"+Ah(jr,jr,jr,jr)),LG=new RegExp("hsl"+Ah(jr,hf,hf)),FG=new RegExp("hsla"+Ah(jr,hf,hf,jr)),BG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WG=/^#([0-9a-fA-F]{6})$/,UG=/^#([0-9a-fA-F]{8})$/;function HG(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=WG.exec(e))?parseInt(t[1]+"ff",16)>>>0:uo&&uo[e]!==void 0?uo[e]:(t=IG.exec(e))?(Va(t[1])<<24|Va(t[2])<<16|Va(t[3])<<8|255)>>>0:(t=PG.exec(e))?(Va(t[1])<<24|Va(t[2])<<16|Va(t[3])<<8|uw(t[4]))>>>0:(t=BG.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UG.exec(e))?parseInt(t[1],16)>>>0:(t=zG.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=LG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|255)>>>0:(t=FG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|uw(t[4]))>>>0:null}function Um(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 lw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Um(i,r,e+1/3),a=Um(i,r,e),s=Um(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function Va(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function cw(e){return(parseFloat(e)%360+360)%360/360}function uw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function od(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function dw(e){let t=HG(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 Ec=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Ec({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return U1(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=qG(c,o);return VG(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function VG(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 qG(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var YG={linear:e=>e},kc=Symbol.for("FluidValue.get"),Rs=Symbol.for("FluidValue.observers"),mr=e=>!!(e&&e[kc]),Yn=e=>e&&e[kc]?e[kc]():e,fw=e=>e[Rs]||null;function GG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oc(e,t){const n=e[Rs];n&&n.forEach(r=>{GG(r,t)})}var E5=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");KG(this,e)}},KG=(e,t)=>k5(e,kc,t);function Gs(e,t){if(e[kc]){let n=e[Rs];n||k5(e,Rs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Mc(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 k5=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ZG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hw=new RegExp(`(${Sd.source})(%|[a-z]+)`,"i"),XG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Rh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,O5=e=>{const[t,n]=QG(e);if(!t||W1())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&&Rh.test(n))return O5(n);if(n)return n}return e},QG=e=>{const t=Rh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Hm,JG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,M5=e=>{Hm||(Hm=uo?new RegExp(`(${Object.keys(uo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Yn(o).replace(Rh,O5).replace(ZG,dw).replace(Hm,dw)),n=t.map(o=>o.match(Sd).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=>Ec({...e,output:o}));return o=>{var l;const a=!hw.test(t[0])&&((l=t.find(c=>hw.test(c)))==null?void 0:l.replace(Sd,""));let s=0;return t[0].replace(Sd,()=>`${i[s++](o)}${a||""}`).replace(XG,JG)}},V1="react-spring: ",A5=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${V1}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},eK=A5(console.warn);function tK(){eK(`${V1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var nK=A5(console.warn);function rK(){nK(`${V1}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 jh(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!W1()&&Rh.test(e)||e in(uo||{}))}var Go=W1()?m.useEffect:m.useLayoutEffect,iK=()=>{const e=m.useRef(!1);return Go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function q1(){const e=m.useState()[1],t=iK();return()=>{t.current&&e(Math.random())}}var Y1=e=>m.useEffect(e,oK),oK=[];function pv(e){const t=m.useRef(void 0);return m.useEffect(()=>{t.current=e}),t.current}var Ac=Symbol.for("Animated:node"),aK=e=>!!e&&e[Ac]===e,Vr=e=>e&&e[Ac],G1=(e,t)=>AG(e,Ac,t),Nh=e=>e&&e[Ac]&&e[Ac].getPayload(),R5=class{constructor(){G1(this,this)}getPayload(){return this.payload||[]}},Dh=class j5 extends R5{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 j5(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)}},pf=class N5 extends Dh{constructor(t){super(0),this._string=null,this._toString=Ec({output:[t,t]})}static create(t){return new N5(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=Ec({output:[this.getValue(),t]})),this._value=0,super.reset()}},mf={dependencies:null},Ih=class extends R5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ri(this.source,(n,r)=>{aK(n)?t[r]=n.getValue(e):mr(n)?t[r]=Yn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ge(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ri(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){mf.dependencies&&mr(e)&&mf.dependencies.add(e);const t=Nh(e);t&&Ge(t,n=>this.add(n))}},sK=class D5 extends Ih{constructor(t){super(t)}static create(t){return new D5(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(lK)),!0)}};function lK(e){return(jh(e)?pf:Dh).create(e)}function mv(e){const t=Vr(e);return t?t.constructor:pe.arr(e)?sK:jh(e)?pf:Dh}var pw=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return m.forwardRef((r,i)=>{const o=m.useRef(null),a=n&&m.useCallback(p=>{o.current=dK(i,p)},[i]),[s,l]=uK(r,t),c=q1(),u=()=>{const p=o.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new cK(u,l),f=m.useRef(void 0);Go(()=>(f.current=d,Ge(l,p=>Gs(p,d)),()=>{f.current&&(Ge(f.current.deps,p=>Mc(p,f.current)),tt.cancel(f.current.update))})),m.useEffect(u,[]),Y1(()=>()=>{const p=f.current;Ge(p.deps,g=>Mc(g,p))});const h=t.getComponentProps(s.getValue());return ie.createElement(e,{...h,ref:a})})},cK=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&tt.write(this.update)}};function uK(e,t){const n=new Set;return mf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ih(e),mf.dependencies=null,[e,n]}function dK(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var mw=Symbol.for("AnimatedComponent"),fK=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Ih(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=gw(a)||"Anonymous";return pe.str(a)?a=o[a]||(o[a]=pw(a,i)):a=a[mw]||(a[mw]=pw(a,i)),a.displayName=`Animated(${s})`,a};return ri(e,(a,s)=>{pe.arr(e)&&(s=gw(a)),o[s]=o(a)}),{animated:o}},gw=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function Gn(e,...t){return pe.fun(e)?e(...t):e}var Jl=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Un(e).includes(t))),I5=(e,t)=>pe.obj(e)?t&&e[t]:e,P5=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,hK=e=>e,Ph=(e,t=hK)=>{let n=pK;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},pK=["config","onProps","onStart","onChange","onPause","onResume","onRest"],mK={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 gK(e){const t={};let n=0;if(ri(e,(r,i)=>{mK[i]||(t[i]=r,n++)}),n)return t}function K1(e){const t=gK(e);if(t){const n={to:t};return ri(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Rc(e){return e=Yn(e),pe.arr(e)?e.map(Rc):jh(e)?Pr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function L5(e){for(const t in e)return!0;return!1}function gv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function vv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function F5(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var B5={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}},bv={...B5.default,mass:1,damping:1,easing:YG.linear,clamp:!1},vK=class{constructor(){this.velocity=0,Object.assign(this,bv)}};function bK(e,t,n){n&&(n={...n},vw(n,t),t={...n,...t}),vw(e,t),Object.assign(e,t);for(const a in bv)e[a]==null&&(e[a]=bv[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 vw(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 bw=[],yK=class{constructor(){this.changed=!1,this.values=bw,this.toValues=null,this.fromValues=bw,this.config=new vK,this.immediate=!1}};function z5(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=Jl(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{pe.und(n.pause)||(i.paused=Jl(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Jl(p,t)),l=Gn(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-tt.now()}function f(){l>0&&!Pr.skipAnimation?(i.delayed=!0,c=tt.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 Z1=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?us(e.get()):t.every(n=>n.noop)?W5(e.get()):Mr(e.get(),t.every(n=>n.finished)),W5=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),us=e=>({value:e,cancelled:!0,finished:!1});function U5(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=Ph(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const f=new Promise((v,x)=>(u=v,d=x)),h=v=>{const x=i<=(n.cancelId||0)&&us(r)||i!==n.asyncId&&Mr(r,!1);if(x)throw v.result=x,d(v),v},p=(v,x)=>{const _=new yw,w=new xw;return(async()=>{if(Pr.skipAnimation)throw jc(n),w.result=Mr(r,!1),d(w),w;h(_);const C=pe.obj(v)?{...v}:{...x,to:v};C.parentId=i,ri(c,($,T)=>{pe.und(C[T])&&(C[T]=$)});const b=await r.start(C);return h(_),n.paused&&await new Promise($=>{n.resumeQueue.add($)}),b})()};let g;if(Pr.skipAnimation)return jc(n),Mr(r,!1);try{let v;pe.arr(e)?v=(async x=>{for(const _ of x)await p(_)})(e):v=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([v.then(u),f]),g=Mr(r.get(),!0,!1)}catch(v){if(v instanceof yw)g=v.result;else if(v instanceof xw)g=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return pe.fun(a)&&tt.batchedUpdates(()=>{a(g,r,r.item)}),g})()}function jc(e,t){Xl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yw=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.")}},xw=class extends Error{constructor(){super("SkipAnimationSignal")}},yv=e=>e instanceof X1,xK=1,X1=class extends E5{constructor(){super(...arguments),this.id=xK++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Vr(this);return e&&e.getValue()}to(...e){return Pr.to(this,e)}interpolate(...e){return tK(),Pr.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){Oc(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Mh.sort(this),Oc(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),H5=1,xv=2,wv=4,Vm=e=>(e[ha]&H5)>0,Zi=e=>(e[ha]&xv)>0,$l=e=>(e[ha]&wv)>0,ww=(e,t)=>t?e[ha]|=xv|H5:e[ha]&=~xv,_w=(e,t)=>t?e[ha]|=wv:e[ha]&=~wv,wK=class extends X1{constructor(e,t){if(super(),this.animation=new yK,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!(Zi(this)||this._state.asyncTo)||$l(this)}get goal(){return Yn(this.animation.to)}get velocity(){const e=Vr(this);return e instanceof Dh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Vm(this)}get isAnimating(){return Zi(this)}get isPaused(){return $l(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=Nh(r.to);!a&&mr(r.to)&&(i=Un(Yn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==pf?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 g=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=pe.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const _=o.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(pe.und(o.duration))if(o.decay){const w=o.decay===!0?.998:o.decay,C=Math.exp(-(1-w)*p);h=g+v/(1-w)*(1-C),f=Math.abs(c.lastPosition-h)<=_,x=v*C}else{x=c.lastVelocity==null?v:c.lastVelocity;const w=o.restVelocity||_/10,C=o.clamp?0:o.bounce,b=!pe.und(C),$=g==d?c.v0>0:g<d;let T,k=!1;const O=1,j=Math.ceil(e/O);for(let S=0;S<j&&(T=Math.abs(x)>w,!(!T&&(f=Math.abs(d-h)<=_,f)));++S){b&&(k=h==d||h>d==$,k&&(x=-x*C,h=d));const E=-o.tension*1e-6*(h-d),A=-o.friction*.001*x,D=(E+A)/o.mass;x=x+D*O,h=h+x*O}}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=g+o.easing(w)*(d-g),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=Vr(this),l=s.getValue();if(t){const c=Yn(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 tt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Zi(this)){const{to:e,config:t}=this.animation;tt.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=>Z1(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jc(this._state,e&&this._lastCallId),tt.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||gv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Vm(this)||(e.reverse&&([n,r]=[r,n]),r=Yn(r),pe.und(r)?Vr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Ph(e,(a,s)=>/^on/.test(s)?I5(a,n):a)),$w(this,e,"onProps"),Tl(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 z5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{$l(this)||(_w(this,!0),Bl(o.pauseQueue),Tl(this,"onPause",Mr(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(_w(this,!1),Zi(this)&&this._resume(),Bl(o.resumeQueue),Tl(this,"onResume",Mr(this,Sl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=V5(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(us(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(us(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=!bi(d,c);f&&(s.from=d),d=Yn(d);const h=!bi(u,l);h&&this._focus(u);const p=gv(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||i)&&(g.velocity=0),t.config&&!p&&bK(g,Gn(t.config,o),t.config!==a.config?Gn(a.config,o):void 0);let _=Vr(this);if(!_||pe.und(u))return n(Mr(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Jl(t.reset,o),C=w?d:this.get(),b=Rc(u),$=pe.num(b)||pe.arr(b)||jh(b),T=!p&&(!$||Jl(a.immediate||t.immediate,o));if(h){const S=mv(u);if(S!==_.constructor)if(T)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${S.name}, as the "to" prop suggests`)}const k=_.constructor;let O=mr(u),j=!1;if(!O){const S=w||!Vm(this)&&f;(h||S)&&(j=bi(Rc(C),b),O=!j),(!bi(s.immediate,T)&&!T||!bi(g.decay,v)||!bi(g.velocity,x))&&(O=!0)}if(j&&Zi(this)&&(s.changed&&!w?O=!0:O||this._stop(l)),!p&&((O||mr(l))&&(s.values=_.getPayload(),s.toValues=mr(u)?null:k==pf?[1]:Un(b)),s.immediate!=T&&(s.immediate=T,!T&&!w&&this._set(l)),O)){const{onRest:S}=s;Ge(CK,A=>$w(this,t,A));const E=Mr(this,Sl(this,l));Bl(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&tt.batchedUpdates(()=>{var A;s.changed=!w,S==null||S(E,this),w?Gn(a.onRest,E):(A=s.onStart)==null||A.call(s,E,this)})}w&&this._set(C),p?n(U5(t.to,t,this._state,this)):O?this._start():Zi(this)&&!h?this._pendingCalls.add(n):n(W5(C))}_focus(e){const t=this.animation;e!==t.to&&(fw(this)&&this._detach(),t.to=e,fw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;mr(t)&&(Gs(t,this),yv(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;mr(e)&&Mc(e,this)}_set(e,t=!0){const n=Yn(e);if(!pe.und(n)){const r=Vr(this);if(!r||!bi(n,r.getValue())){const i=mv(n);!r||r.constructor!=i?G1(this,i.create(n)):r.setValue(n),r&&tt.batchedUpdates(()=>{this._onChange(n,t)})}}return Vr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Tl(this,"onStart",Mr(this,Sl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Gn(this.animation.onChange,e,this)),Gn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Vr(this).reset(Yn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Zi(this)||(ww(this,!0),$l(this)||this._resume())}_resume(){Pr.skipAnimation?this.finish():Mh.start(this)}_stop(e,t){if(Zi(this)){ww(this,!1);const n=this.animation;Ge(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oc(this,{type:"idle",parent:this});const r=t?us(this.get()):Mr(this.get(),Sl(this,e??n.to));Bl(this._pendingCalls,r),n.changed&&(n.changed=!1,Tl(this,"onRest",r,this))}}};function Sl(e,t){const n=Rc(t),r=Rc(e.get());return bi(r,n)}function V5(e,t=e.loop,n=e.to){const r=Gn(t);if(r){const i=r!==!0&&K1(r),o=(i||e).reverse,a=!i||i.reset;return Nc({...e,loop:t,default:!1,pause:void 0,to:!o||gv(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Nc(e){const{to:t,from:n}=e=K1(e),r=new Set;return pe.obj(t)&&Cw(t,r),pe.obj(n)&&Cw(n,r),e.keys=r.size?Array.from(r):null,e}function _K(e){const t=Nc(e);return pe.und(t.default)&&(t.default=Ph(t)),t}function Cw(e,t){ri(e,(n,r)=>n!=null&&t.add(r))}var CK=["onStart","onRest","onChange","onPause","onResume"];function $w(e,t,n){e.animation[n]=t[n]!==P5(t,n)?I5(t[n],e.key):void 0}function Tl(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 $K=["onStart","onChange","onRest"],SK=1,q5=class{constructor(e,t){this.id=SK++,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(Nc(e)),this}start(e){let{queue:t}=this;return e?t=Un(e).map(Nc):this.queue=[],this._flush?this._flush(this,t):(X5(this,t),_v(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ge(Un(t),r=>n[r].stop(!!e))}else jc(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;Ge(Un(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Ge(Un(e),n=>t[n].resume())}return this}each(e){ri(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,Xl(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&&Xl(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,Xl(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;tt.onFrame(this._onFrame)}};function _v(e,t){return Promise.all(t.map(n=>Y5(e,n))).then(n=>Z1(e,n))}async function Y5(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)):Ge($K,g=>{const v=t[g];if(pe.fun(v)){const x=e._events[g];t[g]=({finished:_,cancelled:w})=>{const C=x.get(v);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(v,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Bl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||P5(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(z5(++e._lastAsyncId,{props:t,state:d,actions:{pause:fv,resume:fv,start(g,v){h?(jc(d,e._lastAsyncId),v(us(e))):(g.onRest=s,v(U5(u,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const p=Z1(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){const g=V5(t,a,i);if(g)return X5(e,[g]),Y5(e,g,!0)}return l&&tt.batchedUpdates(()=>l(p,e,e.item)),p}function Cv(e,t){const n={...e.springs};return t&&Ge(Un(t),r=>{pe.und(r.keys)&&(r=Nc(r)),pe.obj(r.to)||(r={...r,to:void 0}),Z5(n,r,i=>K5(i))}),G5(e,n),n}function G5(e,t){ri(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Gs(n,e))})}function K5(e,t){const n=new wK;return n.key=e,t&&Gs(n,t),n}function Z5(e,t,n){t.keys&&Ge(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function X5(e,t){Ge(t,n=>{Z5(e.springs,n,r=>K5(r,e))})}var Q5=ie.createContext({pause:!1,immediate:!1}),J5=()=>{const e=[],t=function(r){rK();const i=[];return Ge(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 Ge(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ge(e,r=>r.resume(...arguments)),this},t.set=function(r){Ge(e,(i,o)=>{const a=pe.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Ge(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 Ge(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ge(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 TK(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=m.useMemo(()=>r||arguments.length==3?J5():void 0,[]),o=m.useRef(0),a=q1(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=Cv(x,_);return o.current>0&&!s.queue.length&&!Object.keys(w).some(b=>!x.springs[b])?_v(x,_):new Promise(b=>{G5(x,w),s.queue.push(()=>{b(_v(x,_))}),a()})}}),[]),l=m.useRef([...s.ctrls]),c=m.useRef([]),u=pv(e)||0;m.useMemo(()=>{Ge(l.current.slice(e,u),x=>{vv(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),m.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 q5(null,s.flush)),b=r?r(w,C):t[w];b&&(c.current[w]=_K(b))}}const f=l.current.map((x,_)=>Cv(x,c.current[_])),h=m.useContext(Q5),p=pv(h),g=h!==p&&L5(h);Go(()=>{o.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Ge(x,_=>_())),Ge(l.current,(_,w)=>{i==null||i.add(_),g&&_.start({default:h});const C=c.current[w];C&&(F5(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),Y1(()=>()=>{Ge(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return i?[v,i]:v}function li(e,t){const n=pe.fun(e),[[r],i]=TK(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function Ca(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=m.useMemo(()=>r||arguments.length==3?J5():void 0,[]),h=Un(e),p=[],g=m.useRef(null),v=i?null:g.current;Go(()=>{g.current=p}),Y1(()=>(Ge(p,D=>{f==null||f.add(D.ctrl),D.ctrl.ref=f}),()=>{Ge(g.current,D=>{D.expired&&clearTimeout(D.expirationId),vv(D.ctrl,f),D.ctrl.stop(!0)})}));const x=kK(h,r?r():t,v),_=i&&g.current||[];Go(()=>Ge(_,({ctrl:D,item:R,key:M})=>{vv(D,f),Gn(c,R,M)}));const w=[];if(v&&Ge(v,(D,R)=>{D.expired?(clearTimeout(D.expirationId),_.push(D)):(R=w[R]=x.indexOf(D.key),~R&&(p[R]=D))}),Ge(h,(D,R)=>{p[R]||(p[R]={key:x[R],item:D,phase:"mount",ctrl:new q5},p[R].ctrl.item=D)}),w.length){let D=-1;const{leave:R}=r?r():t;Ge(w,(M,I)=>{const F=v[I];~M?(D=p.indexOf(F),p[D]={...F,item:h[M]}):R&&p.splice(++D,0,F)})}pe.fun(o)&&p.sort((D,R)=>o(D.item,R.item));let C=-a;const b=q1(),$=Ph(t),T=new Map,k=m.useRef(new Map),O=m.useRef(!1);Ge(p,(D,R)=>{const M=D.key,I=D.phase,F=r?r():t;let U,P;const z=Gn(F.delay||0,M);if(I=="mount")U=F.enter,P="enter";else{const Z=x.indexOf(M)<0;if(I!="leave")if(Z)U=F.leave,P="leave";else if(U=F.update)P="update";else return;else if(!Z)U=F.enter,P="enter";else return}if(U=Gn(U,D.item,R),U=pe.obj(U)?K1(U):{to:U},!U.config){const Z=d||$.config;U.config=Gn(Z,D.item,R,P)}C+=a;const V={...$,delay:z+C,ref:u,immediate:F.immediate,reset:!1,...U};if(P=="enter"&&pe.und(V.from)){const Z=r?r():t,J=pe.und(Z.initial)||v?Z.from:Z.initial;V.from=Gn(J,D.item,R)}const{onResolve:H}=V;V.onResolve=Z=>{Gn(H,Z);const J=g.current,ee=J.find(W=>W.key===M);if(ee&&!(Z.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const W=J.every(L=>L.ctrl.idle);if(ee.phase=="leave"){const L=Gn(s,ee.item);if(L!==!1){const B=L===!0?0:L;if(ee.expired=!0,!W&&B>0){B<=2147483647&&(ee.expirationId=setTimeout(b,B));return}}}W&&J.some(L=>L.expired)&&(k.current.delete(ee),l&&(O.current=!0),b())}};const Y=Cv(D.ctrl,V);P==="leave"&&l?k.current.set(D,{phase:P,springs:Y,payload:V}):T.set(D,{phase:P,springs:Y,payload:V})});const j=m.useContext(Q5),S=pv(j),E=j!==S&&L5(j);Go(()=>{E&&Ge(p,D=>{D.ctrl.start({default:j})})},[j]),Ge(T,(D,R)=>{if(k.current.size){const M=p.findIndex(I=>I.key===R.key);p.splice(M,1)}}),Go(()=>{Ge(k.current.size?k.current:T,({phase:D,payload:R},M)=>{const{ctrl:I}=M;M.phase=D,f==null||f.add(I),E&&D=="enter"&&I.start({default:j}),R&&(F5(I,R.ref),(I.ref||f)&&!O.current?I.update(R):(I.start(R),O.current&&(O.current=!1)))})},i?void 0:n);const A=D=>ie.createElement(ie.Fragment,null,p.map((R,M)=>{const{springs:I}=T.get(R)||R.ctrl,F=D({...I},R.item,R,M),U=pe.str(R.key)||pe.num(R.key)?R.key:R.ctrl.id,P=ie.version<"19.0.0",z=(F==null?void 0:F.props)??{},V=P?F==null?void 0:F.ref:z==null?void 0:z.ref;return F&&F.type?ie.createElement(F.type,{...z,key:U,ref:V}):F}));return f?[A,f]:A}var EK=1;function kK(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):EK++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Un(n)}var eT=class extends X1{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ec(...t);const n=this._get(),r=mv(n);G1(this,r.create(n))}advance(e){const t=this._get(),n=this.get();bi(t,n)||(Vr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Sw(this._active)&&qm(this)}_get(){const e=pe.arr(this.source)?this.source.map(Yn):Un(Yn(this.source));return this.calc(...e)}_start(){this.idle&&!Sw(this._active)&&(this.idle=!1,Ge(Nh(this),e=>{e.done=!1}),Pr.skipAnimation?(tt.batchedUpdates(()=>this.advance()),qm(this)):Mh.start(this))}_attach(){let e=1;Ge(Un(this.source),t=>{mr(t)&&Gs(t,this),yv(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ge(Un(this.source),e=>{mr(e)&&Mc(e,this)}),this._active.clear(),qm(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=Un(this.source).reduce((t,n)=>Math.max(t,(yv(n)?n.priority:0)+1),0))}};function OK(e){return e.idle!==!1}function Sw(e){return!e.size||Array.from(e).every(OK)}function qm(e){e.idle||(e.idle=!0,Ge(Nh(e),t=>{t.done=!0}),Oc(e,{type:"idle",parent:e}))}var xo=(e,...t)=>new eT(e,t);Pr.assign({createStringInterpolator:M5,to:(e,t)=>new eT(e,t)});var tT=/^--/;function MK(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!tT.test(e)&&!(ec.hasOwnProperty(e)&&ec[e])?t+"px":(""+t).trim()}var Tw={};function AK(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:Tw[f]||(Tw[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=MK(f,i[f]);tT.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 ec={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},RK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),jK=["Webkit","Ms","Moz","O"];ec=Object.keys(ec).reduce((e,t)=>(jK.forEach(n=>e[RK(n,t)]=e[t]),e),ec);var NK=/^(matrix|translate|scale|rotate|skew)/,DK=/^(translate)/,IK=/^(rotate|skew)/,Ym=(e,t)=>pe.num(e)&&e!==0?e+t:e,Td=(e,t)=>pe.arr(e)?e.every(n=>Td(n,t)):pe.num(e)?e===t:parseFloat(e)===t,PK=class extends Ih{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=>Ym(s,"px")).join(",")})`,Td(a,0)])),ri(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(NK.test(s)){if(delete r[s],pe.und(a))return;const l=DK.test(s)?"px":IK.test(s)?"deg":"";i.push(Un(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Ym(f,l)})`,Td(f,0)]:c=>[`${s}(${c.map(u=>Ym(u,l)).join(",")})`,Td(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new LK(i,o)),super(r)}},LK=class extends E5{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 Ge(this.inputs,(n,r)=>{const i=Yn(n[0]),[o,a]=this.transforms[r](pe.arr(i)?i:n.map(Yn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Ge(this.inputs,t=>Ge(t,n=>mr(n)&&Gs(n,this)))}observerRemoved(e){e==0&&Ge(this.inputs,t=>Ge(t,n=>mr(n)&&Mc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Oc(this,e)}},FK=["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"];Pr.assign({batchedUpdates:mn.unstable_batchedUpdates,createStringInterpolator:M5,colors:DG});var BK=fK(FK,{applyAnimatedValues:AK,createAnimatedStyle:e=>new PK(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Yt=BK.animated;function zK(){this.__data__=[],this.size=0}var WK=zK;function UK(e,t){return e===t||e!==e&&t!==t}var _u=UK,HK=_u;function VK(e,t){for(var n=e.length;n--;)if(HK(e[n][0],t))return n;return-1}var Lh=VK,qK=Lh,YK=Array.prototype,GK=YK.splice;function KK(e){var t=this.__data__,n=qK(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():GK.call(t,n,1),--this.size,!0}var ZK=KK,XK=Lh;function QK(e){var t=this.__data__,n=XK(t,e);return n<0?void 0:t[n][1]}var JK=QK,eZ=Lh;function tZ(e){return eZ(this.__data__,e)>-1}var nZ=tZ,rZ=Lh;function iZ(e,t){var n=this.__data__,r=rZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var oZ=iZ,aZ=WK,sZ=ZK,lZ=JK,cZ=nZ,uZ=oZ;function Ks(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])}}Ks.prototype.clear=aZ;Ks.prototype.delete=sZ;Ks.prototype.get=lZ;Ks.prototype.has=cZ;Ks.prototype.set=uZ;var Fh=Ks,dZ=Fh;function fZ(){this.__data__=new dZ,this.size=0}var hZ=fZ;function pZ(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mZ=pZ;function gZ(e){return this.__data__.get(e)}var vZ=gZ;function bZ(e){return this.__data__.has(e)}var yZ=bZ,xZ=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,nT=xZ,wZ=nT,_Z=typeof self=="object"&&self&&self.Object===Object&&self,CZ=wZ||_Z||Function("return this")(),ci=CZ,$Z=ci,SZ=$Z.Symbol,Zs=SZ,Ew=Zs,rT=Object.prototype,TZ=rT.hasOwnProperty,EZ=rT.toString,El=Ew?Ew.toStringTag:void 0;function kZ(e){var t=TZ.call(e,El),n=e[El];try{e[El]=void 0;var r=!0}catch{}var i=EZ.call(e);return r&&(t?e[El]=n:delete e[El]),i}var OZ=kZ,MZ=Object.prototype,AZ=MZ.toString;function RZ(e){return AZ.call(e)}var jZ=RZ,kw=Zs,NZ=OZ,DZ=jZ,IZ="[object Null]",PZ="[object Undefined]",Ow=kw?kw.toStringTag:void 0;function LZ(e){return e==null?e===void 0?PZ:IZ:Ow&&Ow in Object(e)?NZ(e):DZ(e)}var Wi=LZ;function FZ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ui=FZ,BZ=Wi,zZ=ui,WZ="[object AsyncFunction]",UZ="[object Function]",HZ="[object GeneratorFunction]",VZ="[object Proxy]";function qZ(e){if(!zZ(e))return!1;var t=BZ(e);return t==UZ||t==HZ||t==WZ||t==VZ}var Bh=qZ;const Q1=sn(Bh);var YZ=ci,GZ=YZ["__core-js_shared__"],KZ=GZ,Gm=KZ,Mw=function(){var e=/[^.]+$/.exec(Gm&&Gm.keys&&Gm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ZZ(e){return!!Mw&&Mw in e}var XZ=ZZ,QZ=Function.prototype,JZ=QZ.toString;function eX(e){if(e!=null){try{return JZ.call(e)}catch{}try{return e+""}catch{}}return""}var iT=eX,tX=Bh,nX=XZ,rX=ui,iX=iT,oX=/[\\^$.*+?()[\]{}|]/g,aX=/^\[object .+?Constructor\]$/,sX=Function.prototype,lX=Object.prototype,cX=sX.toString,uX=lX.hasOwnProperty,dX=RegExp("^"+cX.call(uX).replace(oX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fX(e){if(!rX(e)||nX(e))return!1;var t=tX(e)?dX:aX;return t.test(iX(e))}var hX=fX;function pX(e,t){return e==null?void 0:e[t]}var mX=pX,gX=hX,vX=mX;function bX(e,t){var n=vX(e,t);return gX(n)?n:void 0}var $a=bX,yX=$a,xX=ci,wX=yX(xX,"Map"),J1=wX,_X=$a,CX=_X(Object,"create"),zh=CX,Aw=zh;function $X(){this.__data__=Aw?Aw(null):{},this.size=0}var SX=$X;function TX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EX=TX,kX=zh,OX="__lodash_hash_undefined__",MX=Object.prototype,AX=MX.hasOwnProperty;function RX(e){var t=this.__data__;if(kX){var n=t[e];return n===OX?void 0:n}return AX.call(t,e)?t[e]:void 0}var jX=RX,NX=zh,DX=Object.prototype,IX=DX.hasOwnProperty;function PX(e){var t=this.__data__;return NX?t[e]!==void 0:IX.call(t,e)}var LX=PX,FX=zh,BX="__lodash_hash_undefined__";function zX(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=FX&&t===void 0?BX:t,this}var WX=zX,UX=SX,HX=EX,VX=jX,qX=LX,YX=WX;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=UX;Xs.prototype.delete=HX;Xs.prototype.get=VX;Xs.prototype.has=qX;Xs.prototype.set=YX;var GX=Xs,Rw=GX,KX=Fh,ZX=J1;function XX(){this.size=0,this.__data__={hash:new Rw,map:new(ZX||KX),string:new Rw}}var QX=XX;function JX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var eQ=JX,tQ=eQ;function nQ(e,t){var n=e.__data__;return tQ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Wh=nQ,rQ=Wh;function iQ(e){var t=rQ(this,e).delete(e);return this.size-=t?1:0,t}var oQ=iQ,aQ=Wh;function sQ(e){return aQ(this,e).get(e)}var lQ=sQ,cQ=Wh;function uQ(e){return cQ(this,e).has(e)}var dQ=uQ,fQ=Wh;function hQ(e,t){var n=fQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var pQ=hQ,mQ=QX,gQ=oQ,vQ=lQ,bQ=dQ,yQ=pQ;function Qs(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])}}Qs.prototype.clear=mQ;Qs.prototype.delete=gQ;Qs.prototype.get=vQ;Qs.prototype.has=bQ;Qs.prototype.set=yQ;var eb=Qs,xQ=Fh,wQ=J1,_Q=eb,CQ=200;function $Q(e,t){var n=this.__data__;if(n instanceof xQ){var r=n.__data__;if(!wQ||r.length<CQ-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _Q(r)}return n.set(e,t),this.size=n.size,this}var SQ=$Q,TQ=Fh,EQ=hZ,kQ=mZ,OQ=vZ,MQ=yZ,AQ=SQ;function Js(e){var t=this.__data__=new TQ(e);this.size=t.size}Js.prototype.clear=EQ;Js.prototype.delete=kQ;Js.prototype.get=OQ;Js.prototype.has=MQ;Js.prototype.set=AQ;var Uh=Js,RQ=$a,jQ=function(){try{var e=RQ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),oT=jQ,jw=oT;function NQ(e,t,n){t=="__proto__"&&jw?jw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tb=NQ,DQ=tb,IQ=_u;function PQ(e,t,n){(n!==void 0&&!IQ(e[t],n)||n===void 0&&!(t in e))&&DQ(e,t,n)}var aT=PQ;function LQ(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 FQ=LQ,BQ=FQ,zQ=BQ(),sT=zQ,gf={exports:{}};gf.exports;(function(e,t){var n=ci,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})(gf,gf.exports);var lT=gf.exports,WQ=ci,UQ=WQ.Uint8Array,cT=UQ,Nw=cT;function HQ(e){var t=new e.constructor(e.byteLength);return new Nw(t).set(new Nw(e)),t}var nb=HQ,VQ=nb;function qQ(e,t){var n=t?VQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var uT=qQ;function YQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var dT=YQ,GQ=ui,Dw=Object.create,KQ=function(){function e(){}return function(t){if(!GQ(t))return{};if(Dw)return Dw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ZQ=KQ;function XQ(e,t){return function(n){return e(t(n))}}var fT=XQ,QQ=fT,JQ=QQ(Object.getPrototypeOf,Object),rb=JQ,eJ=Object.prototype;function tJ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eJ;return e===n}var ib=tJ,nJ=ZQ,rJ=rb,iJ=ib;function oJ(e){return typeof e.constructor=="function"&&!iJ(e)?nJ(rJ(e)):{}}var hT=oJ;function aJ(e){return e!=null&&typeof e=="object"}var Er=aJ,sJ=Wi,lJ=Er,cJ="[object Arguments]";function uJ(e){return lJ(e)&&sJ(e)==cJ}var dJ=uJ,Iw=dJ,fJ=Er,pT=Object.prototype,hJ=pT.hasOwnProperty,pJ=pT.propertyIsEnumerable,mJ=Iw(function(){return arguments}())?Iw:function(e){return fJ(e)&&hJ.call(e,"callee")&&!pJ.call(e,"callee")},Hh=mJ,gJ=Array.isArray,or=gJ,vJ=9007199254740991;function bJ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vJ}var ob=bJ,yJ=Bh,xJ=ob;function wJ(e){return e!=null&&xJ(e.length)&&!yJ(e)}var el=wJ,_J=el,CJ=Er;function $J(e){return CJ(e)&&_J(e)}var mT=$J,vf={exports:{}};function SJ(){return!1}var TJ=SJ;vf.exports;(function(e,t){var n=ci,r=TJ,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})(vf,vf.exports);var Vh=vf.exports,EJ=Wi,kJ=rb,OJ=Er,MJ="[object Object]",AJ=Function.prototype,RJ=Object.prototype,gT=AJ.toString,jJ=RJ.hasOwnProperty,NJ=gT.call(Object);function DJ(e){if(!OJ(e)||EJ(e)!=MJ)return!1;var t=kJ(e);if(t===null)return!0;var n=jJ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gT.call(n)==NJ}var ab=DJ;const sb=sn(ab);var IJ=Wi,PJ=ob,LJ=Er,FJ="[object Arguments]",BJ="[object Array]",zJ="[object Boolean]",WJ="[object Date]",UJ="[object Error]",HJ="[object Function]",VJ="[object Map]",qJ="[object Number]",YJ="[object Object]",GJ="[object RegExp]",KJ="[object Set]",ZJ="[object String]",XJ="[object WeakMap]",QJ="[object ArrayBuffer]",JJ="[object DataView]",eee="[object Float32Array]",tee="[object Float64Array]",nee="[object Int8Array]",ree="[object Int16Array]",iee="[object Int32Array]",oee="[object Uint8Array]",aee="[object Uint8ClampedArray]",see="[object Uint16Array]",lee="[object Uint32Array]",en={};en[eee]=en[tee]=en[nee]=en[ree]=en[iee]=en[oee]=en[aee]=en[see]=en[lee]=!0;en[FJ]=en[BJ]=en[QJ]=en[zJ]=en[JJ]=en[WJ]=en[UJ]=en[HJ]=en[VJ]=en[qJ]=en[YJ]=en[GJ]=en[KJ]=en[ZJ]=en[XJ]=!1;function cee(e){return LJ(e)&&PJ(e.length)&&!!en[IJ(e)]}var uee=cee;function dee(e){return function(t){return e(t)}}var tl=dee,bf={exports:{}};bf.exports;(function(e,t){var n=nT,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})(bf,bf.exports);var qh=bf.exports,fee=uee,hee=tl,Pw=qh,Lw=Pw&&Pw.isTypedArray,pee=Lw?hee(Lw):fee,lb=pee;function mee(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vT=mee,gee=tb,vee=_u,bee=Object.prototype,yee=bee.hasOwnProperty;function xee(e,t,n){var r=e[t];(!(yee.call(e,t)&&vee(r,n))||n===void 0&&!(t in e))&&gee(e,t,n)}var cb=xee,wee=cb,_ee=tb;function Cee(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?_ee(n,s,l):wee(n,s,l)}return n}var nl=Cee;function $ee(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var See=$ee,Tee=9007199254740991,Eee=/^(?:0|[1-9]\d*)$/;function kee(e,t){var n=typeof e;return t=t??Tee,!!t&&(n=="number"||n!="symbol"&&Eee.test(e))&&e>-1&&e%1==0&&e<t}var Yh=kee,Oee=See,Mee=Hh,Aee=or,Ree=Vh,jee=Yh,Nee=lb,Dee=Object.prototype,Iee=Dee.hasOwnProperty;function Pee(e,t){var n=Aee(e),r=!n&&Mee(e),i=!n&&!r&&Ree(e),o=!n&&!r&&!i&&Nee(e),a=n||r||i||o,s=a?Oee(e.length,String):[],l=s.length;for(var c in e)(t||Iee.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||jee(c,l)))&&s.push(c);return s}var bT=Pee;function Lee(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Fee=Lee,Bee=ui,zee=ib,Wee=Fee,Uee=Object.prototype,Hee=Uee.hasOwnProperty;function Vee(e){if(!Bee(e))return Wee(e);var t=zee(e),n=[];for(var r in e)r=="constructor"&&(t||!Hee.call(e,r))||n.push(r);return n}var qee=Vee,Yee=bT,Gee=qee,Kee=el;function Zee(e){return Kee(e)?Yee(e,!0):Gee(e)}var Cu=Zee,Xee=nl,Qee=Cu;function Jee(e){return Xee(e,Qee(e))}var ete=Jee,Fw=aT,tte=lT,nte=uT,rte=dT,ite=hT,Bw=Hh,zw=or,ote=mT,ate=Vh,ste=Bh,lte=ui,cte=ab,ute=lb,Ww=vT,dte=ete;function fte(e,t,n,r,i,o,a){var s=Ww(e,n),l=Ww(t,n),c=a.get(l);if(c){Fw(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=zw(l),h=!f&&ate(l),p=!f&&!h&&ute(l);u=l,f||h||p?zw(s)?u=s:ote(s)?u=rte(s):h?(d=!1,u=tte(l,!0)):p?(d=!1,u=nte(l,!0)):u=[]:cte(l)||Bw(l)?(u=s,Bw(s)?u=dte(s):(!lte(s)||ste(s))&&(u=ite(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Fw(e,n,u)}var hte=fte,pte=Uh,mte=aT,gte=sT,vte=hte,bte=ui,yte=Cu,xte=vT;function yT(e,t,n,r,i){e!==t&>e(t,function(o,a){if(i||(i=new pte),bte(o))vte(e,t,a,n,yT,r,i);else{var s=r?r(xte(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),mte(e,a,s)}},yte)}var wte=yT;function _te(e){return e}var Gh=_te;function Cte(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 $te=Cte,Ste=$te,Uw=Math.max;function Tte(e,t,n){return t=Uw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Uw(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),Ste(e,this,s)}}var xT=Tte;function Ete(e){return function(){return e}}var kte=Ete,Ote=kte,Hw=oT,Mte=Gh,Ate=Hw?function(e,t){return Hw(e,"toString",{configurable:!0,enumerable:!1,value:Ote(t),writable:!0})}:Mte,Rte=Ate,jte=800,Nte=16,Dte=Date.now;function Ite(e){var t=0,n=0;return function(){var r=Dte(),i=Nte-(r-n);if(n=r,i>0){if(++t>=jte)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Pte=Ite,Lte=Rte,Fte=Pte,Bte=Fte(Lte),wT=Bte,zte=Gh,Wte=xT,Ute=wT;function Hte(e,t){return Ute(Wte(e,t,zte),e+"")}var ub=Hte,Vte=_u,qte=el,Yte=Yh,Gte=ui;function Kte(e,t,n){if(!Gte(n))return!1;var r=typeof t;return(r=="number"?qte(n)&&Yte(t,n.length):r=="string"&&t in n)?Vte(n[t],e):!1}var _T=Kte,Zte=ub,Xte=_T;function Qte(e){return Zte(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&&Xte(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 Jte=Qte,ene=wte,tne=Jte,nne=tne(function(e,t,n){ene(e,t,n)}),rne=nne;const CT=sn(rne);var ine=Wi,one=Er,ane="[object Symbol]";function sne(e){return typeof e=="symbol"||one(e)&&ine(e)==ane}var Kh=sne,lne=or,cne=Kh,une=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dne=/^\w*$/;function fne(e,t){if(lne(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cne(e)?!0:dne.test(e)||!une.test(e)||t!=null&&e in Object(t)}var db=fne,$T=eb,hne="Expected a function";function fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hne);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(fb.Cache||$T),n}fb.Cache=$T;var pne=fb,mne=pne,gne=500;function vne(e){var t=mne(e,function(r){return n.size===gne&&n.clear(),r}),n=t.cache;return t}var bne=vne,yne=bne,xne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wne=/\\(\\)?/g,_ne=yne(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xne,function(n,r,i,o){t.push(i?o.replace(wne,"$1"):r||n)}),t}),Cne=_ne;function $ne(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 Zh=$ne,Vw=Zs,Sne=Zh,Tne=or,Ene=Kh,qw=Vw?Vw.prototype:void 0,Yw=qw?qw.toString:void 0;function ST(e){if(typeof e=="string")return e;if(Tne(e))return Sne(e,ST)+"";if(Ene(e))return Yw?Yw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kne=ST,One=kne;function Mne(e){return e==null?"":One(e)}var TT=Mne,Ane=or,Rne=db,jne=Cne,Nne=TT;function Dne(e,t){return Ane(e)?e:Rne(e,t)?[e]:jne(Nne(e))}var rl=Dne,Ine=Kh;function Pne(e){if(typeof e=="string"||Ine(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var il=Pne,Lne=rl,Fne=il;function Bne(e,t){t=Lne(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Fne(t[n++])];return n&&n==r?e:void 0}var $u=Bne,zne=$u;function Wne(e,t,n){var r=e==null?void 0:zne(e,t);return r===void 0?n:r}var ET=Wne;const ii=sn(ET);var Une=cb,Hne=rl,Vne=Yh,Gw=ui,qne=il;function Yne(e,t,n,r){if(!Gw(e))return e;t=Hne(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=qne(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=Gw(u)?u:Vne(t[i+1])?[]:{})}Une(s,l,c),s=s[l]}return e}var kT=Yne,Gne=kT;function Kne(e,t,n){return e==null?e:Gne(e,t,n)}var Zne=Kne;const zl=sn(Zne);function $v(){return $v=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},$v.apply(null,arguments)}function Xne(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 Qne=["outlineWidth","outlineColor","outlineOpacity"],Jne=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Xne(e,Qne)},ere=["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"],tre=function(e,t){return $v({},t,e)},nre=function(e,t){var n=CT({},e,t);return ere.forEach(function(r){zl(n,r,tre(ii(n,r),n.text))}),n},OT=function(e,t){return t?CT({},e,t):e},rre={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}}},ire=function(e){return m.useMemo(function(){return nre(rre,e)},[e])},ore=function(e,t){return m.useMemo(function(){return OT(e,t)},[e,t])},MT=m.createContext(null),are={},sre=function(e){var t=e.theme,n=t===void 0?are:t,r=e.children,i=ire(n);return y.jsx(MT.Provider,{value:i,children:r})},Ft=function(){var e=m.useContext(MT);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function pa(){return pa=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},pa.apply(null,arguments)}var lre=["basic","chip","container","table","tableCell","tableCellValue"],cre={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Kw=function(e,t){return"translate("+e+"px, "+t+"px)"},AT=m.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Ft(),a=qn(),s=a.animate,l=a.config,c=fde(),u=c[0],d=c[1],f=m.useRef(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),h={transform:Kw(v,x)},f.current||(p=!0),f.current=[v,x]);var _=li({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($,T){if($==null)return{};var k={};for(var O in $)if({}.hasOwnProperty.call($,O)){if(T.indexOf(O)!==-1)continue;k[O]=$[O]}return k}(w,lre),b=pa({},cre,C,{transform:(t=_.transform)!=null?t:Kw(v,x),opacity:_.transform?1:0});return y.jsx(Yt.div,{ref:u,style:b,children:i})});AT.displayName="TooltipWrapper";var RT=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),hb=m.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=Ft(),u=Is(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(RT,{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})}),ure={width:"100%",borderCollapse:"collapse"},jT=m.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Ft();return i.length?(t=typeof o=="function"?o():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},ure,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});jT.displayName="TableTooltip";var Sv=m.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Ft(),a=qn(),s=a.animate,l=a.config,c=m.useMemo(function(){return pa({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=li({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return y.jsx(Yt.line,pa({},u,{fill:"none",style:c}))});Sv.displayName="CrosshairLine";var Tv=m.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(Sv,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(Sv,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Tv.displayName="Crosshair";var NT=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Ev={isVisible:!1,position:[null,null],content:null,anchor:null},DT=m.createContext(Ev),dre=function(e){var t=m.useState(Ev),n=t[0],r=t[1],i=m.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=m.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,g=h.clientY,v=(p-u.left)*f,x=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),a=m.useCallback(function(){r(Ev)},[r]);return{actions:m.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},Ui=function(){var e=m.useContext(NT);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},fre=function(){var e=m.useContext(DT);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},hre=function(e){return e.isVisible},pre=function(){var e=fre();return hre(e)?y.jsx(AT,{position:e.position,anchor:e.anchor,children:e.content}):null},mre=function(e){var t=e.container,n=e.children,r=dre(t),i=r.actions,o=r.state;return y.jsx(NT.Provider,{value:i,children:y.jsx(DT.Provider,{value:o,children:n})})},gre=Wi,vre=or,bre=Er,yre="[object String]";function xre(e){return typeof e=="string"||!vre(e)&&bre(e)&&gre(e)==yre}var wre=xre;const _re=sn(wre);let yr;typeof window<"u"?yr=window:typeof self<"u"?yr=self:yr=global;let kv=null,Ov=null;const Zw=20,Km=yr.clearTimeout,Xw=yr.setTimeout,Zm=yr.cancelAnimationFrame||yr.mozCancelAnimationFrame||yr.webkitCancelAnimationFrame,Qw=yr.requestAnimationFrame||yr.mozRequestAnimationFrame||yr.webkitRequestAnimationFrame;Zm==null||Qw==null?(kv=Km,Ov=function(t){return Xw(t,Zw)}):(kv=function([t,n]){Zm(t),Km(n)},Ov=function(t){const n=Qw(function(){Km(r),t()}),r=Xw(function(){Zm(n),t()},Zw);return[n,r]});function Cre(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__&&kv(this.__resizeRAF__),this.__resizeRAF__=Ov(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 g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{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){v=p[_],h="-"+v.toLowerCase()+"-",r=g[_],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],g=f.createElement("style");g.id="detectElementResize",g.type="text/css",e!=null&&g.setAttribute("nonce",e),g.styleSheet?g.styleSheet.cssText=h:g.appendChild(f.createTextNode(h)),p.appendChild(g)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,g=yr.getComputedStyle(f);g&&g.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const v=p.createElement("div");v.className="expand-trigger",v.appendChild(p.createElement("div"));const x=p.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(v),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 $re extends m.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=Cre(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"},g={};let v=!1;return i||(f===0&&(v=!0),p.height=0,g.height=f,g.scaledHeight=f),o||(h===0&&(v=!0),p.width=0,g.width=h,g.scaledWidth=h),a&&(v=!1),m.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!v&&t(g))}}function Xh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ol(){}var ma=.7,js=1/ma,ds="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sre=/^#([0-9a-f]{3,8})$/,Tre=new RegExp(`^rgb\\(${ds},${ds},${ds}\\)$`),Ere=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),kre=new RegExp(`^rgba\\(${ds},${ds},${ds},${Dc}\\)$`),Ore=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${Dc}\\)$`),Mre=new RegExp(`^hsl\\(${Dc},${Qr},${Qr}\\)$`),Are=new RegExp(`^hsla\\(${Dc},${Qr},${Qr},${Dc}\\)$`),Jw={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};Xh(ol,Ic,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e_,formatHex:e_,formatHex8:Rre,formatHsl:jre,formatRgb:t_,toString:t_});function e_(){return this.rgb().formatHex()}function Rre(){return this.rgb().formatHex8()}function jre(){return PT(this).formatHsl()}function t_(){return this.rgb().formatRgb()}function Ic(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Sre.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?n_(t):n===3?new Nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ad(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ad(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=Tre.exec(e))?new Nn(t[1],t[2],t[3],1):(t=Ere.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kre.exec(e))?ad(t[1],t[2],t[3],t[4]):(t=Ore.exec(e))?ad(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Mre.exec(e))?o_(t[1],t[2]/100,t[3]/100,1):(t=Are.exec(e))?o_(t[1],t[2]/100,t[3]/100,t[4]):Jw.hasOwnProperty(e)?n_(Jw[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function n_(e){return new Nn(e>>16&255,e>>8&255,e&255,1)}function ad(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function IT(e){return e instanceof ol||(e=Ic(e)),e?(e=e.rgb(),new Nn(e.r,e.g,e.b,e.opacity)):new Nn}function Ns(e,t,n,r){return arguments.length===1?IT(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xh(Nn,Ns,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(ra(this.r),ra(this.g),ra(this.b),yf(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:r_,formatHex:r_,formatHex8:Nre,formatRgb:i_,toString:i_}));function r_(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function Nre(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function i_(){const e=yf(this.opacity);return`${e===1?"rgb(":"rgba("}${ra(this.r)}, ${ra(this.g)}, ${ra(this.b)}${e===1?")":`, ${e})`}`}function yf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ra(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=ra(e),(e<16?"0":"")+e.toString(16)}function o_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,n,r)}function PT(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof ol||(e=Ic(e)),!e)return new Ar;if(e instanceof Ar)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 Ar(a,s,l,e.opacity)}function Dre(e,t,n,r){return arguments.length===1?PT(e):new Ar(e,t,n,r??1)}function Ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xh(Ar,Dre,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Ar(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 Nn(Xm(e>=240?e-240:e+120,i,r),Xm(e,i,r),Xm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ar(a_(this.h),sd(this.s),sd(this.l),yf(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=yf(this.opacity);return`${e===1?"hsl(":"hsla("}${a_(this.h)}, ${sd(this.s)*100}%, ${sd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function a_(e){return e=(e||0)%360,e<0?e+360:e}function sd(e){return Math.max(0,Math.min(1,e||0))}function Xm(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 Ire=Math.PI/180,Pre=180/Math.PI;var LT=-.14861,mb=1.78277,gb=-.29227,Qh=-.90649,Pc=1.97294,s_=Pc*Qh,l_=Pc*mb,c_=mb*gb-Qh*LT;function Lre(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof Nn||(e=IT(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(c_*r+s_*t-l_*n)/(c_+s_-l_),o=r-i,a=(Pc*(n-i)-gb*o)/Qh,s=Math.sqrt(a*a+o*o)/(Pc*i*(1-i)),l=s?Math.atan2(a,o)*Pre-120:NaN;return new ia(l<0?l+360:l,s,i,e.opacity)}function oi(e,t,n,r){return arguments.length===1?Lre(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xh(ia,oi,pb(ol,{brighter(e){return e=e==null?js:Math.pow(js,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ire,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Nn(255*(t+n*(LT*r+mb*i)),255*(t+n*(gb*r+Qh*i)),255*(t+n*(Pc*r)),this.opacity)}}));function Fre(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 Bre(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 Fre((n-r/t)*t,a,i,o,s)}}const Jh=e=>()=>e;function FT(e,t){return function(n){return e+n*t}}function zre(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 Wre(e,t){var n=t-e;return n?FT(e,n>180||n<-180?n-360*Math.round(n/360):n):Jh(isNaN(e)?t:e)}function Ure(e){return(e=+e)==1?fs:function(t,n){return n-t?zre(t,n,e):Jh(isNaN(t)?n:t)}}function fs(e,t){var n=t-e;return n?FT(e,n):Jh(isNaN(e)?t:e)}const u_=function e(t){var n=Ure(t);function r(i,o){var a=n((i=Ns(i)).r,(o=Ns(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=fs(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 Hre(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=Ns(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 Vre=Hre(Bre);function qre(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 Yre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Gre(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]=vb(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 Kre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Lc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Zre(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]=vb(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Mv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qm=new RegExp(Mv.source,"g");function Xre(e){return function(){return e}}function Qre(e){return function(t){return e(t)+""}}function BT(e,t){var n=Mv.lastIndex=Qm.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Mv.exec(e))&&(i=Qm.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:Lc(r,i)})),n=Qm.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Qre(l[0].x):Xre(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 vb(e,t){var n=typeof t,r;return t==null||n==="boolean"?Jh(t):(n==="number"?Lc:n==="string"?(r=Ic(t))?(t=r,u_):BT:t instanceof Ic?u_:t instanceof Date?Kre:Yre(t)?qre:Array.isArray(t)?Gre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Zre:Lc)(e,t)}function zT(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function WT(e){return function t(n){n=+n;function r(i,o){var a=e((i=oi(i)).h,(o=oi(o)).h),s=fs(i.s,o.s),l=fs(i.l,o.l),c=fs(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)}WT(Wre);var bb=WT(fs),Jre="__lodash_hash_undefined__";function eie(e){return this.__data__.set(e,Jre),this}var tie=eie;function nie(e){return this.__data__.has(e)}var rie=nie,iie=eb,oie=tie,aie=rie;function xf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new iie;++t<n;)this.add(e[t])}xf.prototype.add=xf.prototype.push=oie;xf.prototype.has=aie;var yb=xf;function sie(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 lie=sie;function cie(e){return e!==e}var uie=cie;function die(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var fie=die,hie=lie,pie=uie,mie=fie;function gie(e,t,n){return t===t?mie(e,t,n):hie(e,pie,n)}var vie=gie,bie=vie;function yie(e,t){var n=e==null?0:e.length;return!!n&&bie(e,t,0)>-1}var UT=yie;function xie(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 HT=xie;function wie(e,t){return e.has(t)}var xb=wie,_ie=yb,Cie=UT,$ie=HT,Sie=Zh,Tie=tl,Eie=xb,kie=200;function Oie(e,t,n,r){var i=-1,o=Cie,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Sie(t,Tie(n))),r?(o=$ie,a=!1):t.length>=kie&&(o=Eie,a=!1,t=new _ie(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 Mie=Oie,Aie=Mie,Rie=ub,jie=mT,Nie=Rie(function(e,t){return jie(e)?Aie(e,t):[]}),Die=Nie;const VT=sn(Die);function mt(e){return function(){return e}}const d_=Math.abs,On=Math.atan2,Lo=Math.cos,Iie=Math.max,Jm=Math.min,Hr=Math.sin,rs=Math.sqrt,An=1e-12,Fc=Math.PI,wf=Fc/2,Ed=2*Fc;function Pie(e){return e>1?0:e<-1?Fc:Math.acos(e)}function f_(e){return e>=1?wf:e<=-1?-wf:Math.asin(e)}const Av=Math.PI,Rv=2*Av,Wo=1e-6,Lie=Rv-Wo;function qT(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Fie(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qT;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 Bie=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qT:Fie(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>Wo)if(!(Math.abs(d*l-c*u)>Wo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=i-s,g=l*l+c*c,v=h*h+p*p,x=Math.sqrt(g),_=Math.sqrt(f),w=o*Math.tan((Av-Math.acos((g+f-v)/(2*x*_)))/2),C=w/_,b=w/x;Math.abs(C-1)>Wo&&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)>Wo||Math.abs(this._y1-u)>Wo)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Rv+Rv),f>Lie?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>Wo&&this._append`A${r},${r},0,${+(f>=Av)},${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 wb(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 Bie(t)}function zie(e){return e.innerRadius}function Wie(e){return e.outerRadius}function Uie(e){return e.startAngle}function Hie(e){return e.endAngle}function Vie(e){return e&&e.padAngle}function qie(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<An))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function ld(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/rs(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,g=r+d,v=(f+p)/2,x=(h+g)/2,_=p-f,w=g-h,C=_*_+w*w,b=i-o,$=f*g-p*h,T=(w<0?-1:1)*rs(Iie(0,b*b*C-$*$)),k=($*w-_*T)/C,O=(-$*_-w*T)/C,j=($*w+_*T)/C,S=(-$*_+w*T)/C,E=k-v,A=O-x,D=j-v,R=S-x;return E*E+A*A>D*D+R*R&&(k=j,O=S),{cx:k,cy:O,x01:-u,y01:-d,x11:k*(i/b-1),y11:O*(i/b-1)}}function Yie(){var e=zie,t=Wie,n=mt(0),r=null,i=Uie,o=Hie,a=Vie,s=null,l=wb(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-wf,g=o.apply(this,arguments)-wf,v=d_(g-p),x=g>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>An))s.moveTo(0,0);else if(v>Ed-An)s.moveTo(h*Lo(p),h*Hr(p)),s.arc(0,0,h,p,g,!x),f>An&&(s.moveTo(f*Lo(g),f*Hr(g)),s.arc(0,0,f,g,p,x));else{var _=p,w=g,C=p,b=g,$=v,T=v,k=a.apply(this,arguments)/2,O=k>An&&(r?+r.apply(this,arguments):rs(f*f+h*h)),j=Jm(d_(h-f)/2,+n.apply(this,arguments)),S=j,E=j,A,D;if(O>An){var R=f_(O/f*Hr(k)),M=f_(O/h*Hr(k));($-=R*2)>An?(R*=x?1:-1,C+=R,b-=R):($=0,C=b=(p+g)/2),(T-=M*2)>An?(M*=x?1:-1,_+=M,w-=M):(T=0,_=w=(p+g)/2)}var I=h*Lo(_),F=h*Hr(_),U=f*Lo(b),P=f*Hr(b);if(j>An){var z=h*Lo(w),V=h*Hr(w),H=f*Lo(C),Y=f*Hr(C),Z;if(v<Fc)if(Z=qie(I,F,H,Y,z,V,U,P)){var J=I-Z[0],ee=F-Z[1],W=z-Z[0],L=V-Z[1],B=1/Hr(Pie((J*W+ee*L)/(rs(J*J+ee*ee)*rs(W*W+L*L)))/2),q=rs(Z[0]*Z[0]+Z[1]*Z[1]);S=Jm(j,(f-q)/(B-1)),E=Jm(j,(h-q)/(B+1))}else S=E=0}T>An?E>An?(A=ld(H,Y,I,F,h,E,x),D=ld(z,V,U,P,h,E,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),E<j?s.arc(A.cx,A.cy,E,On(A.y01,A.x01),On(D.y01,D.x01),!x):(s.arc(A.cx,A.cy,E,On(A.y01,A.x01),On(A.y11,A.x11),!x),s.arc(0,0,h,On(A.cy+A.y11,A.cx+A.x11),On(D.cy+D.y11,D.cx+D.x11),!x),s.arc(D.cx,D.cy,E,On(D.y11,D.x11),On(D.y01,D.x01),!x))):(s.moveTo(I,F),s.arc(0,0,h,_,w,!x)):s.moveTo(I,F),!(f>An)||!($>An)?s.lineTo(U,P):S>An?(A=ld(U,P,z,V,f,-S,x),D=ld(I,F,H,Y,f,-S,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<j?s.arc(A.cx,A.cy,S,On(A.y01,A.x01),On(D.y01,D.x01),!x):(s.arc(A.cx,A.cy,S,On(A.y01,A.x01),On(A.y11,A.x11),!x),s.arc(0,0,f,On(A.cy+A.y11,A.cx+A.x11),On(D.cy+D.y11,D.cx+D.x11),x),s.arc(D.cx,D.cy,S,On(D.y11,D.x11),On(D.y01,D.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-Fc/2;return[Lo(d)*u,Hr(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:mt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:mt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:mt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:mt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:mt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:mt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:mt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function ep(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YT(e){this._context=e}YT.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 _b(e){return new YT(e)}function GT(e){return e[0]}function KT(e){return e[1]}function Cb(e,t){var n=mt(!0),r=null,i=_b,o=null,a=wb(s);e=typeof e=="function"?e:e===void 0?GT:mt(e),t=typeof t=="function"?t:t===void 0?KT:mt(t);function s(l){var c,u=(l=ep(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:mt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:mt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:mt(!!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 Gie(e,t,n){var r=null,i=mt(!0),o=null,a=_b,s=null,l=wb(c);e=typeof e=="function"?e:e===void 0?GT:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?KT:mt(+n);function c(d){var f,h,p,g=(d=ep(d)).length,v,x=!1,_,w=new Array(g),C=new Array(g);for(o==null&&(s=a(_=l())),f=0;f<=g;++f){if(!(f<g&&i(v=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(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):w[f],n?+n(v,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return Cb().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:mt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:mt(+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:mt(!!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 Kie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Zie(e){return e}function Xie(){var e=Zie,t=Kie,n=null,r=mt(0),i=mt(Ed),o=mt(0);function a(s){var l,c=(s=ep(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),g=+r.apply(this,arguments),v=Math.min(Ed,Math.max(-Ed,i.apply(this,arguments)-g)),x,_=Math.min(Math.abs(v)/c,o.apply(this,arguments)),w=_*(v<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,$){return t(p[b],p[$])}):n!=null&&h.sort(function(b,$){return n(s[b],s[$])}),l=0,d=f?(v-c*w)/f:0;l<c;++l,g=x)u=h[l],C=p[u],x=g+(C>0?C*d:0)+w,p[u]={data:s[u],index:l,value:C,startAngle:g,endAngle:x,padAngle:_};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:mt(+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:mt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:mt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:mt(+s),a):o},a}function wo(){}function _f(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 tp(e){this._context=e}tp.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:_f(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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qie(e){return new tp(e)}function ZT(e){this._context=e}ZT.prototype={areaStart:wo,areaEnd:wo,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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jie(e){return new ZT(e)}function XT(e){this._context=e}XT.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:_f(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eoe(e){return new XT(e)}function QT(e,t){this._basis=new tp(e),this._beta=t}QT.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 toe=function e(t){function n(r){return t===1?new tp(r):new QT(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Cf(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 $b(e,t){this._context=e,this._k=(1-t)/6}$b.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:Cf(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:Cf(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 noe=function e(t){function n(r){return new $b(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Sb(e,t){this._context=e,this._k=(1-t)/6}Sb.prototype={areaStart:wo,areaEnd:wo,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:Cf(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 roe=function e(t){function n(r){return new Sb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.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:Cf(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 ioe=function e(t){function n(r){return new Tb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Eb(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>An){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>An){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 JT(e,t){this._context=e,this._alpha=t}JT.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:Eb(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 ooe=function e(t){function n(r){return t?new JT(r,t):new $b(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function eE(e,t){this._context=e,this._alpha=t}eE.prototype={areaStart:wo,areaEnd:wo,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:Eb(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 aoe=function e(t){function n(r){return t?new eE(r,t):new Sb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function tE(e,t){this._context=e,this._alpha=t}tE.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:Eb(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 soe=function e(t){function n(r){return t?new tE(r,t):new Tb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nE(e){this._context=e}nE.prototype={areaStart:wo,areaEnd:wo,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 loe(e){return new nE(e)}function h_(e){return e<0?-1:1}function p_(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(h_(o)+h_(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function m_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function eg(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 $f(e){this._context=e}$f.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:eg(this,this._t0,m_(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,eg(this,m_(this,n=p_(this,e,t)),n);break;default:eg(this,this._t0,n=p_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rE(e){this._context=new iE(e)}(rE.prototype=Object.create($f.prototype)).point=function(e,t){$f.prototype.point.call(this,t,e)};function iE(e){this._context=e}iE.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 coe(e){return new $f(e)}function uoe(e){return new rE(e)}function oE(e){this._context=e}oE.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=g_(e),i=g_(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 g_(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 doe(e){return new oE(e)}function np(e,t){this._context=e,this._t=t}np.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 foe(e){return new np(e,.5)}function hoe(e){return new np(e,0)}function poe(e){return new np(e,1)}function v_(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 b_(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function moe(e,t){return e[t]}function goe(e){const t=[];return t.key=e,t}function voe(){var e=mt([]),t=b_,n=v_,r=moe;function i(o){var a=Array.from(e.apply(this,arguments),goe),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=ep(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:mt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:mt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?b_:typeof o=="function"?o:mt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??v_,i):n},i}function boe(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 kd(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yoe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function kb(e){let t,n,r;e.length!==2?(t=kd,n=(s,l)=>kd(e(s),l),r=(s,l)=>e(s)-l):(t=e===kd||e===yoe?e:xoe,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 xoe(){return 0}function woe(e){return e===null?NaN:+e}const _oe=kb(kd),Coe=_oe.right;kb(woe).center;class y_ extends Map{constructor(t,n=Toe){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(x_(this,t))}has(t){return super.has(x_(this,t))}set(t,n){return super.set($oe(this,t),n)}delete(t){return super.delete(Soe(this,t))}}function x_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $oe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Soe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Toe(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Eoe=Math.sqrt(50),koe=Math.sqrt(10),Ooe=Math.sqrt(2);function Sf(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>=Eoe?10:o>=koe?5:o>=Ooe?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?Sf(e,t,n*2):[s,l,c]}function jv(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?Sf(t,e,n):Sf(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 Nv(e,t,n){return t=+t,e=+e,n=+n,Sf(e,t,n)[2]}function Dv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Nv(t,e,n):Nv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Moe(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 Sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const w_=Symbol("implicit");function Zo(){var e=new y_,t=[],n=[],r=w_;function i(o){let a=e.get(o);if(a===void 0){if(r!==w_)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 y_;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 Zo(t,n).unknown(r)},Sa.apply(i,arguments),i}function Ob(){var e=Zo().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,g=h?r:i;o=(g-p)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),p+=(g-p-o*(f-l))*u,a=o*(1-l),s&&(p=Math.round(p),a=Math.round(a));var v=Moe(f).map(function(x){return p+o*x});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return 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 Ob(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Sa.apply(d(),arguments)}function aE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aE(t())},e}function Aoe(){return aE(Ob.apply(null,arguments).paddingInner(1))}function Roe(e){return function(){return e}}function joe(e){return+e}var __=[0,1];function is(e){return e}function Iv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Roe(isNaN(t)?NaN:.5)}function Noe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Doe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Iv(i,r),o=n(a,o)):(r=Iv(r,i),o=n(o,a)),function(s){return o(r(s))}}function Ioe(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]=Iv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Coe(e,s,1,r)-1;return o[l](i[l](s))}}function rp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mb(){var e=__,t=__,n=vb,r,i,o,a=is,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==is&&(a=Noe(e[0],e[f-1])),s=f>2?Ioe:Doe,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),Lc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,joe),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=zT,u()},d.clamp=function(f){return arguments.length?(a=f?!0:is,u()):a!==is},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 sE(){return Mb()(is,is)}function Poe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Tf(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 Ds(e){return e=Tf(Math.abs(e)),e?e[1]:NaN}function Loe(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 Foe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Boe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bc(e){if(!(t=Boe.exec(e)))throw new Error("invalid format: "+e);var t;return new Ab({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]})}Bc.prototype=Ab.prototype;function Ab(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+""}Ab.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 zoe(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 lE;function Woe(e,t){var n=Tf(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(lE=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")+Tf(e,Math.max(0,t+o-1))[0]}function C_(e,t){var n=Tf(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 $_={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Poe,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 C_(e*100,t)},r:C_,s:Woe,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function S_(e){return e}var T_=Array.prototype.map,E_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Uoe(e){var t=e.grouping===void 0||e.thousands===void 0?S_:Loe(T_.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?S_:Foe(T_.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=Bc(d);var f=d.fill,h=d.align,p=d.sign,g=d.symbol,v=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,b=d.type;b==="n"?(_=!0,b="g"):$_[b]||(w===void 0&&(w=12),C=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var $=g==="$"?n:g==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",T=g==="$"?r:/[%p]/.test(b)?a:"",k=$_[b],O=/[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 j(S){var E=$,A=T,D,R,M;if(b==="c")A=k(S)+A,S="";else{S=+S;var I=S<0||1/S<0;if(S=isNaN(S)?l:k(Math.abs(S),w),C&&(S=zoe(S)),I&&+S==0&&p!=="+"&&(I=!1),E=(I?p==="("?p:s:p==="-"||p==="("?"":p)+E,A=(b==="s"?E_[8+lE/3]:"")+A+(I&&p==="("?")":""),O){for(D=-1,R=S.length;++D<R;)if(M=S.charCodeAt(D),48>M||M>57){A=(M===46?i+S.slice(D+1):S.slice(D))+A,S=S.slice(0,D);break}}}_&&!v&&(S=t(S,1/0));var F=E.length+S.length+A.length,U=F<x?new Array(x-F+1).join(f):"";switch(_&&v&&(S=t(U+S,U.length?x-A.length:1/0),U=""),h){case"<":S=E+S+A+U;break;case"=":S=E+U+S+A;break;case"^":S=U.slice(0,F=U.length>>1)+E+S+A+U.slice(F);break;default:S=U+E+S+A;break}return o(S)}return j.toString=function(){return d+""},j}function u(d,f){var h=c((d=Bc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,g=Math.pow(10,-p),v=E_[8+p/3];return function(x){return h(g*x)+v}}return{format:c,formatPrefix:u}}var cd,Su,cE;Hoe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Hoe(e){return cd=Uoe(e),Su=cd.format,cE=cd.formatPrefix,cd}function Voe(e){return Math.max(0,-Ds(Math.abs(e)))}function qoe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function Yoe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function Goe(e,t,n,r){var i=Dv(e,t,n),o;switch(r=Bc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=qoe(i,a))&&(r.precision=o),cE(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Yoe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Voe(i))&&(r.precision=o-(r.type==="%")*2);break}}return Su(r)}function uE(e){var t=e.domain;return e.ticks=function(n){var r=t();return jv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Goe(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=Nv(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 Ef(){var e=sE();return e.copy=function(){return rp(e,Ef())},Sa.apply(e,arguments),uE(e)}function dE(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 k_(e){return Math.log(e)}function O_(e){return Math.exp(e)}function Koe(e){return-Math.log(-e)}function Zoe(e){return-Math.exp(-e)}function Xoe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Qoe(e){return e===10?Xoe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Joe(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 M_(e){return(t,n)=>-e(-t,n)}function eae(e){const t=e(k_,O_),n=t.domain;let r=10,i,o;function a(){return i=Joe(r),o=Qoe(r),n()[0]<0?(i=M_(i),o=M_(o),e(Koe,Zoe)):e(k_,O_),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,g;const v=s==null?10:+s;let x=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(g=f<0?p/o(-f):p*o(f),!(g<c)){if(g>u)break;x.push(g)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(g=f>0?p/o(-f):p*o(f),!(g<c)){if(g>u)break;x.push(g)}x.length*2<v&&(x=jv(c,u,v))}else x=jv(f,h,Math.min(h-f,v)).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=Bc(l)).precision==null&&(l.trim=!0),l=Su(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(dE(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function fE(){const e=eae(Mb()).domain([1,10]);return e.copy=()=>rp(e,fE()).base(e.base()),Sa.apply(e,arguments),e}function A_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function R_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function tae(e){var t=1,n=e(A_(t),R_(t));return n.constant=function(r){return arguments.length?e(A_(t=+r),R_(t)):t},uE(n)}function hE(){var e=tae(Mb());return e.copy=function(){return rp(e,hE()).constant(e.constant())},Sa.apply(e,arguments)}const tg=new Date,ng=new Date;function wn(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=>wn(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)=>(tg.setTime(+o),ng.setTime(+a),e(tg),e(ng),Math.floor(n(tg,ng))),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 kf=wn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?wn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kf);kf.range;const Ti=1e3,br=Ti*60,Ei=br*60,Fi=Ei*24,Rb=Fi*7,j_=Fi*30,rg=Fi*365,Xo=wn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,e=>e.getUTCSeconds());Xo.range;const jb=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());jb.range;const Nb=wn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());Nb.range;const Db=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());Db.range;const Ib=wn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());Ib.range;const Pb=wn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/Fi,e=>e.getDate()-1);Pb.range;const pE=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fi,e=>e.getUTCDate()-1);pE.range;const mE=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fi,e=>Math.floor(e/Fi));mE.range;function Ta(e){return wn(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())*br)/Rb)}const Lb=Ta(0),nae=Ta(1),rae=Ta(2),iae=Ta(3),oae=Ta(4),aae=Ta(5),sae=Ta(6);Lb.range;nae.range;rae.range;iae.range;oae.range;aae.range;sae.range;function Ea(e){return wn(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)/Rb)}const Fb=Ea(0),lae=Ea(1),cae=Ea(2),uae=Ea(3),dae=Ea(4),fae=Ea(5),hae=Ea(6);Fb.range;lae.range;cae.range;uae.range;dae.range;fae.range;hae.range;const Bb=wn(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());Bb.range;const zb=wn(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());zb.range;const ip=wn(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());ip.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wn(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)});ip.range;const op=wn(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());op.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:wn(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)});op.range;function gE(e,t,n,r,i,o){const a=[[Xo,1,Ti],[Xo,5,5*Ti],[Xo,15,15*Ti],[Xo,30,30*Ti],[o,1,br],[o,5,5*br],[o,15,15*br],[o,30,30*br],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[r,1,Fi],[r,2,2*Fi],[n,1,Rb],[t,1,j_],[t,3,3*j_],[e,1,rg]];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=kb(([,,v])=>v).right(a,f);if(h===a.length)return e.every(Dv(c/rg,u/rg,d));if(h===0)return kf.every(Math.max(Dv(c,u,d),1));const[p,g]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return p.every(g)}return[s,l]}const[pae,mae]=gE(op,zb,Fb,mE,Ib,Nb),[gae,vae]=gE(ip,Bb,Lb,Pb,Db,jb);var ig=new Date,og=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=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 gn(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 ig.setTime(+o),og.setTime(+a),e(ig),e(og),Math.floor(n(ig,og))},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 zc=gn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});zc.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):zc};zc.range;var Of=1e3,ga=6e4,Mf=36e5,vE=864e5,bE=6048e5,Pv=gn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Of)},function(e,t){return(t-e)/Of},function(e){return e.getUTCSeconds()});Pv.range;var yE=gn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of)},function(e,t){e.setTime(+e+t*ga)},function(e,t){return(t-e)/ga},function(e){return e.getMinutes()});yE.range;var xE=gn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of-e.getMinutes()*ga)},function(e,t){e.setTime(+e+t*Mf)},function(e,t){return(t-e)/Mf},function(e){return e.getHours()});xE.range;var Wb=gn(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())*ga)/vE},function(e){return e.getDate()-1});Wb.range;function ka(e){return gn(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())*ga)/bE})}var Af=ka(0),Wc=ka(1),wE=ka(2),_E=ka(3),va=ka(4),CE=ka(5),$E=ka(6);Af.range;Wc.range;wE.range;_E.range;va.range;CE.range;$E.range;var SE=gn(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()});SE.range;var _o=gn(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()});_o.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)})};_o.range;var TE=gn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ga)},function(e,t){return(t-e)/ga},function(e){return e.getUTCMinutes()});TE.range;var EE=gn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Mf)},function(e,t){return(t-e)/Mf},function(e){return e.getUTCHours()});EE.range;var Ub=gn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vE},function(e){return e.getUTCDate()-1});Ub.range;function Oa(e){return gn(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)/bE})}var Rf=Oa(0),Uc=Oa(1),kE=Oa(2),OE=Oa(3),ba=Oa(4),ME=Oa(5),AE=Oa(6);Rf.range;Uc.range;kE.range;OE.range;ba.range;ME.range;AE.range;var RE=gn(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()});RE.range;var Co=gn(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()});Co.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)})};Co.range;function ag(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 sg(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 kl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bae(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=Ol(i),u=Ml(i),d=Ol(o),f=Ml(o),h=Ol(a),p=Ml(a),g=Ol(s),v=Ml(s),x=Ol(l),_=Ml(l),w={a:I,A:F,b:U,B:P,c:null,d:F_,e:F_,f:zae,g:Xae,G:Jae,H:Lae,I:Fae,j:Bae,L:jE,m:Wae,M:Uae,p:z,q:V,Q:W_,s:U_,S:Hae,u:Vae,U:qae,V:Yae,w:Gae,W:Kae,x:null,X:null,y:Zae,Y:Qae,Z:ese,"%":z_},C={a:H,A:Y,b:Z,B:J,c:null,d:B_,e:B_,f:ise,g:pse,G:gse,H:tse,I:nse,j:rse,L:DE,m:ose,M:ase,p:ee,q:W,Q:W_,s:U_,S:sse,u:lse,U:cse,V:use,w:dse,W:fse,x:null,X:null,y:hse,Y:mse,Z:vse,"%":z_},b={a:j,A:S,b:E,B:A,c:D,d:P_,e:P_,f:Nae,g:I_,G:D_,H:L_,I:L_,j:Mae,L:jae,m:Oae,M:Aae,p:O,q:kae,Q:Iae,s:Pae,S:Rae,u:Cae,U:$ae,V:Sae,w:_ae,W:Tae,x:R,X:M,y:I_,Y:D_,Z:Eae,"%":Dae};w.x=$(n,w),w.X=$(r,w),w.c=$(t,w),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(L,B){return function(q){var N=[],Q=-1,X=0,G=L.length,se,te,re;for(q instanceof Date||(q=new Date(+q));++Q<G;)L.charCodeAt(Q)===37&&(N.push(L.slice(X,Q)),(te=N_[se=L.charAt(++Q)])!=null?se=L.charAt(++Q):te=se==="e"?" ":"0",(re=B[se])&&(se=re(q,te)),N.push(se),X=Q+1);return N.push(L.slice(X,Q)),N.join("")}}function T(L,B){return function(q){var N=kl(1900,void 0,1),Q=k(N,L,q+="",0),X,G;if(Q!=q.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(B&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(X=sg(kl(N.y,0,1)),G=X.getUTCDay(),X=G>4||G===0?Uc.ceil(X):Uc(X),X=Ub.offset(X,(N.V-1)*7),N.y=X.getUTCFullYear(),N.m=X.getUTCMonth(),N.d=X.getUTCDate()+(N.w+6)%7):(X=ag(kl(N.y,0,1)),G=X.getDay(),X=G>4||G===0?Wc.ceil(X):Wc(X),X=Wb.offset(X,(N.V-1)*7),N.y=X.getFullYear(),N.m=X.getMonth(),N.d=X.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),G="Z"in N?sg(kl(N.y,0,1)).getUTCDay():ag(kl(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(G+5)%7:N.w+N.U*7-(G+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,sg(N)):ag(N)}}function k(L,B,q,N){for(var Q=0,X=B.length,G=q.length,se,te;Q<X;){if(N>=G)return-1;if(se=B.charCodeAt(Q++),se===37){if(se=B.charAt(Q++),te=b[se in N_?B.charAt(Q++):se],!te||(N=te(L,q,N))<0)return-1}else if(se!=q.charCodeAt(N++))return-1}return N}function O(L,B,q){var N=c.exec(B.slice(q));return N?(L.p=u.get(N[0].toLowerCase()),q+N[0].length):-1}function j(L,B,q){var N=h.exec(B.slice(q));return N?(L.w=p.get(N[0].toLowerCase()),q+N[0].length):-1}function S(L,B,q){var N=d.exec(B.slice(q));return N?(L.w=f.get(N[0].toLowerCase()),q+N[0].length):-1}function E(L,B,q){var N=x.exec(B.slice(q));return N?(L.m=_.get(N[0].toLowerCase()),q+N[0].length):-1}function A(L,B,q){var N=g.exec(B.slice(q));return N?(L.m=v.get(N[0].toLowerCase()),q+N[0].length):-1}function D(L,B,q){return k(L,t,B,q)}function R(L,B,q){return k(L,n,B,q)}function M(L,B,q){return k(L,r,B,q)}function I(L){return a[L.getDay()]}function F(L){return o[L.getDay()]}function U(L){return l[L.getMonth()]}function P(L){return s[L.getMonth()]}function z(L){return i[+(L.getHours()>=12)]}function V(L){return 1+~~(L.getMonth()/3)}function H(L){return a[L.getUTCDay()]}function Y(L){return o[L.getUTCDay()]}function Z(L){return l[L.getUTCMonth()]}function J(L){return s[L.getUTCMonth()]}function ee(L){return i[+(L.getUTCHours()>=12)]}function W(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var B=$(L+="",w);return B.toString=function(){return L},B},parse:function(L){var B=T(L+="",!1);return B.toString=function(){return L},B},utcFormat:function(L){var B=$(L+="",C);return B.toString=function(){return L},B},utcParse:function(L){var B=T(L+="",!0);return B.toString=function(){return L},B}}}var N_={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,yae=/^%/,xae=/[\\^$*+?|[\]().{}]/g;function kt(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 wae(e){return e.replace(xae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(wae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _ae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $ae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Sae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Tae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D_(e,t,n){var r=Sn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Eae(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 kae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Oae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=Sn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function L_(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Aae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Rae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=Sn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Nae(e,t,n){var r=Sn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Dae(e,t,n){var r=yae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Iae(e,t,n){var r=Sn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=Sn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F_(e,t){return kt(e.getDate(),t,2)}function Lae(e,t){return kt(e.getHours(),t,2)}function Fae(e,t){return kt(e.getHours()%12||12,t,2)}function Bae(e,t){return kt(1+Wb.count(_o(e),e),t,3)}function jE(e,t){return kt(e.getMilliseconds(),t,3)}function zae(e,t){return jE(e,t)+"000"}function Wae(e,t){return kt(e.getMonth()+1,t,2)}function Uae(e,t){return kt(e.getMinutes(),t,2)}function Hae(e,t){return kt(e.getSeconds(),t,2)}function Vae(e){var t=e.getDay();return t===0?7:t}function qae(e,t){return kt(Af.count(_o(e)-1,e),t,2)}function NE(e){var t=e.getDay();return t>=4||t===0?va(e):va.ceil(e)}function Yae(e,t){return e=NE(e),kt(va.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function Gae(e){return e.getDay()}function Kae(e,t){return kt(Wc.count(_o(e)-1,e),t,2)}function Zae(e,t){return kt(e.getFullYear()%100,t,2)}function Xae(e,t){return e=NE(e),kt(e.getFullYear()%100,t,2)}function Qae(e,t){return kt(e.getFullYear()%1e4,t,4)}function Jae(e,t){var n=e.getDay();return e=n>=4||n===0?va(e):va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function ese(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function B_(e,t){return kt(e.getUTCDate(),t,2)}function tse(e,t){return kt(e.getUTCHours(),t,2)}function nse(e,t){return kt(e.getUTCHours()%12||12,t,2)}function rse(e,t){return kt(1+Ub.count(Co(e),e),t,3)}function DE(e,t){return kt(e.getUTCMilliseconds(),t,3)}function ise(e,t){return DE(e,t)+"000"}function ose(e,t){return kt(e.getUTCMonth()+1,t,2)}function ase(e,t){return kt(e.getUTCMinutes(),t,2)}function sse(e,t){return kt(e.getUTCSeconds(),t,2)}function lse(e){var t=e.getUTCDay();return t===0?7:t}function cse(e,t){return kt(Rf.count(Co(e)-1,e),t,2)}function IE(e){var t=e.getUTCDay();return t>=4||t===0?ba(e):ba.ceil(e)}function use(e,t){return e=IE(e),kt(ba.count(Co(e),e)+(Co(e).getUTCDay()===4),t,2)}function dse(e){return e.getUTCDay()}function fse(e,t){return kt(Uc.count(Co(e)-1,e),t,2)}function hse(e,t){return kt(e.getUTCFullYear()%100,t,2)}function pse(e,t){return e=IE(e),kt(e.getUTCFullYear()%100,t,2)}function mse(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function gse(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ba(e):ba.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function vse(){return"+0000"}function z_(){return"%"}function W_(e){return+e}function U_(e){return Math.floor(+e/1e3)}var qa,ap,PE,LE,FE;bse({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 bse(e){return qa=bae(e),ap=qa.format,PE=qa.parse,LE=qa.utcFormat,FE=qa.utcParse,qa}function yse(e){return new Date(e)}function xse(e){return e instanceof Date?+e:+new Date(+e)}function Hb(e,t,n,r,i,o,a,s,l,c){var u=sE(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function b($){return(l($)<$?h:s($)<$?p:a($)<$?g:o($)<$?v:r($)<$?i($)<$?x:_:n($)<$?w:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,xse)):f().map(yse)},u.ticks=function($){var T=f();return e(T[0],T[T.length-1],$??10)},u.tickFormat=function($,T){return T==null?b:c(T)},u.nice=function($){var T=f();return(!$||typeof $.range!="function")&&($=t(T[0],T[T.length-1],$??10)),$?f(dE(T,$)):u},u.copy=function(){return rp(u,Hb(e,t,n,r,i,o,a,s,l,c))},u}function wse(){return Sa.apply(Hb(gae,vae,ip,Bb,Lb,Pb,Db,jb,Xo,ap).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _se(){return Sa.apply(Hb(pae,mae,op,zb,Fb,pE,Ib,Nb,Xo,LE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lt(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 Cse=lt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),$se=lt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Sse=lt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Tse=lt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ese=lt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),kse=lt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Ose=lt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Mse=lt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),BE=lt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ase=lt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Gt=e=>Vre(e[e.length-1]);var sp=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lt);const Rse=Gt(sp);var lp=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lt);const jse=Gt(lp);var cp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lt);const Nse=Gt(cp);var up=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lt);const Dse=Gt(up);var dp=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lt);const Ise=Gt(dp);var fp=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lt);const Pse=Gt(fp);var hp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lt);const Lse=Gt(hp);var pp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lt);const Fse=Gt(pp);var mp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lt);const Bse=Gt(mp);var gp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lt);const zse=Gt(gp);var vp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lt);const Wse=Gt(vp);var bp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lt);const Use=Gt(bp);var yp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lt);const Hse=Gt(yp);var xp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lt);const Vse=Gt(xp);var wp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lt);const qse=Gt(wp);var _p=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lt);const Yse=Gt(_p);var Cp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lt);const Gse=Gt(Cp);var $p=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lt);const Kse=Gt($p);var Sp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lt);const Zse=Gt(Sp);var Tp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lt);const Xse=Gt(Tp);var Ep=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lt);const Qse=Gt(Ep);var kp=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lt);const Jse=Gt(kp);var Op=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lt);const ele=Gt(Op);var Mp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lt);const tle=Gt(Mp);var Ap=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lt);const nle=Gt(Ap);var Rp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lt);const rle=Gt(Rp);var jp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lt);const ile=Gt(jp);function ole(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 ale=bb(oi(300,.5,0),oi(-240,.5,1));var sle=bb(oi(-100,.75,.35),oi(80,1.5,.8)),lle=bb(oi(260,.75,.35),oi(80,1.5,.8)),ud=oi();function cle(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ud.h=360*e-100,ud.s=1.5-1.5*t,ud.l=.8-.9*t,ud+""}var dd=Ns(),ule=Math.PI/3,dle=Math.PI*2/3;function fle(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+ule))*t,dd.b=255*(t=Math.sin(e+dle))*t,dd+""}function hle(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 Np(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const ple=Np(lt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var mle=Np(lt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gle=Np(lt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),vle=Np(lt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ble(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var zE=ble;const Ae=sn(zE);var yle=$u,xle=kT,wle=rl;function _le(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=yle(e,a);n(s,a)&&xle(o,wle(a,e),s)}return o}var Cle=_le;function $le(e,t){return e!=null&&t in Object(e)}var Sle=$le,Tle=rl,Ele=Hh,kle=or,Ole=Yh,Mle=ob,Ale=il;function Rle(e,t,n){t=Tle(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Ale(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&&Mle(i)&&Ole(a,i)&&(kle(e)||Ele(e)))}var jle=Rle,Nle=Sle,Dle=jle;function Ile(e,t){return e!=null&&Dle(e,t,Nle)}var WE=Ile,Ple=Cle,Lle=WE;function Fle(e,t){return Ple(e,t,function(n,r){return Lle(e,r)})}var Ble=Fle;function zle(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Vb=zle,H_=Zs,Wle=Hh,Ule=or,V_=H_?H_.isConcatSpreadable:void 0;function Hle(e){return Ule(e)||Wle(e)||!!(V_&&e&&e[V_])}var Vle=Hle,qle=Vb,Yle=Vle;function UE(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Yle),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?UE(s,t-1,n,r,i):qle(i,s):r||(i[i.length]=s)}return i}var HE=UE,Gle=HE;function Kle(e){var t=e==null?0:e.length;return t?Gle(e,1):[]}var Zle=Kle,Xle=Zle,Qle=xT,Jle=wT;function ece(e){return Jle(Qle(e,void 0,Xle),e+"")}var VE=ece,tce=Ble,nce=VE,rce=nce(function(e,t){return e==null?{}:tce(e,t)}),ice=rce;const oce=sn(ice);function ace(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 sce=ace,lce=yb,cce=sce,uce=xb,dce=1,fce=2;function hce(e,t,n,r,i,o){var a=n&dce,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&fce?new lce:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],g=t[d];if(r)var v=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!cce(t,function(x,_){if(!uce(h,_)&&(p===x||i(p,x,n,r,o)))return h.push(_)})){f=!1;break}}else if(!(p===g||i(p,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var qE=hce;function pce(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var mce=pce;function gce(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var qb=gce,q_=Zs,Y_=cT,vce=_u,bce=qE,yce=mce,xce=qb,wce=1,_ce=2,Cce="[object Boolean]",$ce="[object Date]",Sce="[object Error]",Tce="[object Map]",Ece="[object Number]",kce="[object RegExp]",Oce="[object Set]",Mce="[object String]",Ace="[object Symbol]",Rce="[object ArrayBuffer]",jce="[object DataView]",G_=q_?q_.prototype:void 0,lg=G_?G_.valueOf:void 0;function Nce(e,t,n,r,i,o,a){switch(n){case jce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Rce:return!(e.byteLength!=t.byteLength||!o(new Y_(e),new Y_(t)));case Cce:case $ce:case Ece:return vce(+e,+t);case Sce:return e.name==t.name&&e.message==t.message;case kce:case Mce:return e==t+"";case Tce:var s=yce;case Oce:var l=r&wce;if(s||(s=xce),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=_ce,a.set(e,t);var u=bce(s(e),s(t),r,i,o,a);return a.delete(e),u;case Ace:if(lg)return lg.call(e)==lg.call(t)}return!1}var Dce=Nce,Ice=Vb,Pce=or;function Lce(e,t,n){var r=t(e);return Pce(e)?r:Ice(r,n(e))}var YE=Lce;function Fce(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 GE=Fce;function Bce(){return[]}var KE=Bce,zce=GE,Wce=KE,Uce=Object.prototype,Hce=Uce.propertyIsEnumerable,K_=Object.getOwnPropertySymbols,Vce=K_?function(e){return e==null?[]:(e=Object(e),zce(K_(e),function(t){return Hce.call(e,t)}))}:Wce,Yb=Vce,qce=fT,Yce=qce(Object.keys,Object),Gce=Yce,Kce=ib,Zce=Gce,Xce=Object.prototype,Qce=Xce.hasOwnProperty;function Jce(e){if(!Kce(e))return Zce(e);var t=[];for(var n in Object(e))Qce.call(e,n)&&n!="constructor"&&t.push(n);return t}var eue=Jce,tue=bT,nue=eue,rue=el;function iue(e){return rue(e)?tue(e):nue(e)}var Tu=iue,oue=YE,aue=Yb,sue=Tu;function lue(e){return oue(e,sue,aue)}var ZE=lue,Z_=ZE,cue=1,uue=Object.prototype,due=uue.hasOwnProperty;function fue(e,t,n,r,i,o){var a=n&cue,s=Z_(e),l=s.length,c=Z_(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:due.call(t,f)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=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)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){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)&&(g=!1)}return o.delete(e),o.delete(t),g}var hue=fue,pue=$a,mue=ci,gue=pue(mue,"DataView"),vue=gue,bue=$a,yue=ci,xue=bue(yue,"Promise"),wue=xue,_ue=$a,Cue=ci,$ue=_ue(Cue,"Set"),XE=$ue,Sue=$a,Tue=ci,Eue=Sue(Tue,"WeakMap"),kue=Eue,Lv=vue,Fv=J1,Bv=wue,zv=XE,Wv=kue,QE=Wi,al=iT,X_="[object Map]",Oue="[object Object]",Q_="[object Promise]",J_="[object Set]",e4="[object WeakMap]",t4="[object DataView]",Mue=al(Lv),Aue=al(Fv),Rue=al(Bv),jue=al(zv),Nue=al(Wv),Uo=QE;(Lv&&Uo(new Lv(new ArrayBuffer(1)))!=t4||Fv&&Uo(new Fv)!=X_||Bv&&Uo(Bv.resolve())!=Q_||zv&&Uo(new zv)!=J_||Wv&&Uo(new Wv)!=e4)&&(Uo=function(e){var t=QE(e),n=t==Oue?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Mue:return t4;case Aue:return X_;case Rue:return Q_;case jue:return J_;case Nue:return e4}return t});var Dp=Uo,cg=Uh,Due=qE,Iue=Dce,Pue=hue,n4=Dp,r4=or,i4=Vh,Lue=lb,Fue=1,o4="[object Arguments]",a4="[object Array]",fd="[object Object]",Bue=Object.prototype,s4=Bue.hasOwnProperty;function zue(e,t,n,r,i,o){var a=r4(e),s=r4(t),l=a?a4:n4(e),c=s?a4:n4(t);l=l==o4?fd:l,c=c==o4?fd:c;var u=l==fd,d=c==fd,f=l==c;if(f&&i4(e)){if(!i4(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new cg),a||Lue(e)?Due(e,t,n,r,i,o):Iue(e,t,l,n,r,i,o);if(!(n&Fue)){var h=u&&s4.call(e,"__wrapped__"),p=d&&s4.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,v=p?t.value():t;return o||(o=new cg),i(g,v,n,r,o)}}return f?(o||(o=new cg),Pue(e,t,n,r,i,o)):!1}var Wue=zue,Uue=Wue,l4=Er;function JE(e,t,n,r,i){return e===t?!0:e==null||t==null||!l4(e)&&!l4(t)?e!==e&&t!==t:Uue(e,t,n,r,JE,i)}var Gb=JE,Hue=Gb;function Vue(e,t){return Hue(e,t)}var que=Vue;const Yue=sn(que);var ek=m.createContext(),Gue=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=m.useMemo(function(){var s=_re(o)?B5[o]:o;return{animate:r,config:s}},[r,o]);return y.jsx(ek.Provider,{value:a,children:t})},qn=function(){return m.useContext(ek)},Kue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t},Zue={position:"relative"},Ma=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=m.useRef(null);return y.jsx(sre,{theme:n,children:y.jsx(Gue,{animate:s,config:l,children:y.jsx(mre,{container:c,children:y.jsxs(Kue,{condition:i,wrapper:y.jsx("div",{style:Zue,ref:c}),children:[t,a&&y.jsx(pre,{})]})})})})},Xue=function(e,t){return e.width===t.width&&e.height===t.height},Que=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,o=e.debounceResize,a=j1({width:n,height:r},o,{equalityFn:Xue})[0];return m.useEffect(function(){i==null||i(a)},[a,i]),y.jsx(y.Fragment,{children:t(a)})},Aa=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($re,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return y.jsx(Que,{width:l,height:c,onResize:i,debounceResize:a,children:t})}})};function c4(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 Jue(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 c4(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)?c4(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.
|
|
300
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(){return Jr=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},Jr.apply(null,arguments)}function tk(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 ede=["id","colors"],tde=function(e){var t=e.id,n=e.colors,r=tk(e,ede);return y.jsx("linearGradient",Jr({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)})}))},nk={linearGradient:tde},Al={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},nde=m.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Al.background:n,i=e.color,o=i===void 0?Al.color:i,a=e.size,s=a===void 0?Al.size:a,l=e.padding,c=l===void 0?Al.padding:l,u=e.stagger,d=u===void 0?Al.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})]})}),xr=function(e){return e*Math.PI/180},Eu=function(e){return 180*e/Math.PI},rde=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},ide=function(e){var t=e%360;return t<0&&(t+=360),t},rk={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"}}},Rl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},ode=m.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Rl.spacing:n,i=e.rotation,o=i===void 0?Rl.rotation:i,a=e.background,s=a===void 0?Rl.background:a,l=e.color,c=l===void 0?Rl.color:l,u=e.lineWidth,d=u===void 0?Rl.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,g=h,v=h;return f===0?p=`
|
|
301
|
-
M 0 0 L `+g+` 0
|
|
302
|
-
M 0 `+v+" L "+g+" "+v+`
|
|
303
|
-
`:f===90?p=`
|
|
304
|
-
M 0 0 L 0 `+v+`
|
|
305
|
-
M `+g+" 0 L "+g+" "+v+`
|
|
306
|
-
`:(g=Math.abs(h/Math.sin(xr(f))),v=h/Math.sin(xr(90-f)),p=f>0?`
|
|
307
|
-
M 0 `+-v+" L "+2*g+" "+v+`
|
|
308
|
-
M `+-g+" "+-v+" L "+g+" "+v+`
|
|
309
|
-
M `+-g+" 0 L "+g+" "+2*v+`
|
|
310
|
-
`:`
|
|
311
|
-
M `+-g+" "+v+" L "+g+" "+-v+`
|
|
312
|
-
M `+-g+" "+2*v+" L "+2*g+" "+-v+`
|
|
313
|
-
M 0 `+2*v+" L "+2*g+` 0
|
|
314
|
-
`),y.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),jl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ade=m.memo(function(e){var t=e.id,n=e.color,r=n===void 0?jl.color:n,i=e.background,o=i===void 0?jl.background:i,a=e.size,s=a===void 0?jl.size:a,l=e.padding,c=l===void 0?jl.padding:l,u=e.stagger,d=u===void 0?jl.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})]})}),ik={patternDots:nde,patternLines:ode,patternSquares:ade},sde=["type"],u4=Jr({},nk,ik),lde=m.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=tk(n,sde);return u4[r]?m.createElement(u4[r],Jr({key:i.id},i)):null})})}),Ip=m.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=Ft();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(lde,{defs:o}),y.jsx("rect",{width:n,height:r,fill:f.background}),y.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})}),cde=m.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"}})}),ude=m.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?cde: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,g=e.ariaLabel,v=e.ariaLabelledBy,x=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,C=e.isFocusable,b=C!==void 0&&C,$=e.tabIndex,T=$===void 0?0:$,k=e.onFocus,O=e.onBlur,j=e.testId,S=Ft(),E=qn(),A=E.animate,D=E.config,R=li({transform:"translate("+t+", "+n+")",config:D,immediate:!A}),M=m.useCallback(function(F){k==null||k(a,F)},[k,a]),I=m.useCallback(function(F){O==null||O(a,F)},[O,a]);return y.jsxs(Yt.g,{transform:R.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?T:void 0,"aria-label":g,"aria-labelledby":v,"aria-describedby":x,"aria-disabled":w,"aria-hidden":_,onFocus:b&&k?M:void 0,onBlur:b&&O?I:void 0,"data-testid":j,children:[m.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&y.jsx("text",{textAnchor:f,y:p,style:Jne(S.dots.text),children:u})]})}),dde=m.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,g=p===void 0?14:p,v=e.legendOrientation,x=v===void 0?"horizontal":v,_=Ft(),w=0,C=0,b=0,$=0;if(r==="y"?(b=i(o),C=t):(w=i(o),$=n),l&&!c){var T=function(k){var O=k.axis,j=k.width,S=k.height,E=k.position,A=k.offsetX,D=k.offsetY,R=k.orientation,M=0,I=0,F=R==="vertical"?-90:0,U="start";if(O==="x")switch(E){case"top-left":M=-A,I=D,U="end";break;case"top":I=-D,U=R==="horizontal"?"middle":"start";break;case"top-right":M=A,I=D,U=R==="horizontal"?"start":"end";break;case"right":M=A,I=S/2,U=R==="horizontal"?"start":"middle";break;case"bottom-right":M=A,I=S-D,U="start";break;case"bottom":I=S+D,U=R==="horizontal"?"middle":"end";break;case"bottom-left":I=S-D,M=-A,U=R==="horizontal"?"end":"start";break;case"left":M=-A,I=S/2,U=R==="horizontal"?"end":"middle"}else switch(E){case"top-left":M=A,I=-D,U="start";break;case"top":M=j/2,I=-D,U=R==="horizontal"?"middle":"start";break;case"top-right":M=j-A,I=-D,U=R==="horizontal"?"end":"start";break;case"right":M=j+A,U=R==="horizontal"?"start":"middle";break;case"bottom-right":M=j-A,I=D,U="end";break;case"bottom":M=j/2,I=D,U=R==="horizontal"?"middle":"end";break;case"bottom-left":M=A,I=D,U=R==="horizontal"?"start":"end";break;case"left":M=-A,U=R==="horizontal"?"end":"middle"}return{x:M,y:I,rotation:F,textAnchor:U}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:g,orientation:x});c=y.jsx("text",{transform:"translate("+T.x+", "+T.y+") rotate("+T.rotation+")",textAnchor:T.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:$,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:a}),c]})}),ok=m.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(dde,Jr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null}),Kb=function(e){var t=qn(),n=t.animate,r=t.config,i=function(s){var l=m.useRef();return m.useEffect(function(){l.current=s},[s]),l.current}(e),o=m.useMemo(function(){return BT(i,e)},[i,e]),a=li({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return xo(a,o)};m.createContext(void 0);var Uv={basis:Qie,basisClosed:Jie,basisOpen:eoe,bundle:toe,cardinal:noe,cardinalClosed:roe,cardinalOpen:ioe,catmullRom:ooe,catmullRomClosed:aoe,catmullRomOpen:soe,linear:_b,linearClosed:loe,monotoneX:coe,monotoneY:uoe,natural:doe,step:foe,stepAfter:poe,stepBefore:hoe},Zb=Object.keys(Uv);Zb.filter(function(e){return e.endsWith("Closed")});VT(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");VT(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var ak=function(e){if(!Uv[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Uv[e]};Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(mp),Ae(kp),Ae(Op),Ae(Mp),Ae(jp),Ae(Ap),Ae(Rp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Tp),Ae(Ep);Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(mp),Ae(kp),Ae(Op),Ae(Mp),Ae(jp),Ae(Ap),Ae(Rp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Tp),Ae(Ep);Zo(BE);var sk={top:0,right:0,bottom:0,left:0},Ra=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Jr({},sk,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},fde=function(){var e=m.useRef(null),t=m.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=m.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return m.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},hde=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?ap(e.slice("5")):Su(e):function(t){return""+t}},Is=function(e){return m.useMemo(function(){return hde(e)},[e])},pde=function(e,t){var n=Q1(e)?e:function(r){return ii(r,e)};return n},lk=function(e){return Q1(e)?e:function(t){return ii(t,e)}},Oi=function(e){return m.useMemo(function(){return lk(e)},[e])},ck=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},mde=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},uk=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},hs=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]},gde=Object.keys(nk),vde=Object.keys(ik),bde=function(e,t,n){if(e==="*")return!0;if(Q1(e))return e(t);if(sb(e)){var r=n?ii(t,n):t;return Yue(oce(r,Object.keys(e)),e)}return!1},Xb=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 v=h.value,x=v.id,_=v.match;if(bde(_,f,o)){var w=e.find(function(S){return S.id===x});if(w){if(vde.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var C=ii(f,s),b=w.background,$=w.color,T=x;w.background==="inherit"&&(T=T+".bg."+C,b=C),w.color==="inherit"&&(T=T+".fg."+C,$=C),zl(f,c,"url(#"+T+")"),d[T]||(u.push(Jr({},w,{id:T,background:b,color:$})),d[T]=1)}else zl(f,c,"url(#"+x+")");else if(gde.includes(w.type))if(w.colors.map(function(S){return S.color}).includes("inherit")){var k=ii(f,s),O=x,j=Jr({},w,{colors:w.colors.map(function(S,E){return S.color!=="inherit"?S:(O=O+"."+E+"."+k,Jr({},S,{color:S.color==="inherit"?k:S.color}))})});j.id=O,zl(f,c,"url(#"+O+")"),d[O]||(u.push(j),d[O]=1)}else zl(f,c,"url(#"+x+")")}return 1}},g=Jue(n);!(h=g()).done&&!p(););})),u};function Qb(){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 ya=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},xa=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 tc(){return tc=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},tc.apply(null,arguments)}function d4(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 yde=["style","children"],xde=["outlineWidth","outlineColor","outlineOpacity"],sl=function(e){var t=e.style,n=e.children,r=d4(e,yde),i=t.outlineWidth,o=t.outlineColor,a=t.outlineOpacity,s=d4(t,xde);return y.jsxs(y.Fragment,{children:[i>0&&y.jsx(Yt.text,tc({},r,{style:tc({},s,{strokeWidth:2*i,stroke:o,strokeOpacity:a,strokeLinejoin:"round"}),children:n})),y.jsx(Yt.text,tc({},r,{style:s,children:n}))]})};function f4(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 wde(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 f4(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)?f4(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.
|
|
315
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jf(){return jf=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},jf.apply(null,arguments)}var dk={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Cse,accent:$se,dark2:Sse,paired:Tse,pastel1:Ese,pastel2:kse,set1:Ose,set2:Mse,set3:BE,tableau10:Ase},_de=Object.keys(dk),fk={brown_blueGreen:sp,purpleRed_green:lp,pink_yellowGreen:cp,purple_orange:up,red_blue:dp,red_grey:fp,red_yellow_blue:hp,red_yellow_green:pp,spectral:mp},Cde=Object.keys(fk),$de={brown_blueGreen:Rse,purpleRed_green:jse,pink_yellowGreen:Nse,purple_orange:Dse,red_blue:Ise,red_grey:Pse,red_yellow_blue:Lse,red_yellow_green:Fse,spectral:Bse},hk={blues:kp,greens:Op,greys:Mp,oranges:jp,purples:Ap,reds:Rp,blue_green:gp,blue_purple:vp,green_blue:bp,orange_red:yp,purple_blue_green:xp,purple_blue:wp,purple_red:_p,red_purple:Cp,yellow_green_blue:$p,yellow_green:Sp,yellow_orange_brown:Tp,yellow_orange_red:Ep},Sde=Object.keys(hk),Tde={blues:Jse,greens:ele,greys:tle,oranges:ile,purples:nle,reds:rle,turbo:hle,viridis:ple,inferno:gle,magma:mle,plasma:vle,cividis:ole,warm:sle,cool:lle,cubehelixDefault:ale,blue_green:zse,blue_purple:Wse,green_blue:Use,orange_red:Hse,purple_blue_green:Vse,purple_blue:qse,purple_red:Yse,red_purple:Gse,yellow_green_blue:Kse,yellow_green:Zse,yellow_orange_brown:Xse,yellow_orange_red:Qse},ug=jf({},dk,fk,hk),Ede=function(e){return _de.includes(e)},kde=function(e){return Cde.includes(e)},Ode=function(e){return Sde.includes(e)},Mde={rainbow:cle,sinebow:fle};jf({},$de,Tde,Mde);var Ade=function(e){return e.theme!==void 0},Rde=function(e){return e.from!==void 0},jde=function(e,t){if(typeof e=="function")return e;if(sb(e)){if(Ade(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=ii(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(Rde(e)){var r=function(l){return ii(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=wde(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(c,u){return u(c)},Ns(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}},Sr=function(e,t){return m.useMemo(function(){return jde(e,t)},[e,t])},Nde=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return ii(d,t)};if(Array.isArray(e)){var r=Zo(e),i=function(d){return r(n(d))};return i.scale=r,i}if(sb(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return ii(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Ede(e.scheme)){var o=Zo(ug[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(kde(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=Zo(ug[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Ode(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=Zo(ug[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}},Jb=function(e,t){return m.useMemo(function(){return Nde(e,t)},[e,t])};function Ot(){return Ot=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},Ot.apply(null,arguments)}var Dde={pointerEvents:"none"},Ide=function(e){var t=e.label,n=e.style,r=Ft();return y.jsx(Yt.g,{transform:n.transform,opacity:n.progress,style:Dde,children:y.jsx(sl,{textAnchor:"middle",dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})})},pk=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},mk=function(e,t){return e.filter(function(n){return Math.abs(Eu(n.arc.endAngle-n.arc.startAngle))>=t})},Pde={startAngle:{enter:function(e){return Ot({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Ot({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ot({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ot({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Ot({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Ot({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Ot({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ot({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ot({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Ot({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Ot({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Ot({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},gk=function(e,t){return m.useMemo(function(){var n=Pde[e];return{enter:function(r){return Ot({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Ot({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Ot({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},vk=function(e,t){var n=rde(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return oa(n,r)},Lde=function(e){return function(t,n,r,i){return xo([t,n,r,i],function(o,a,s,l){var c=vk({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Fde=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=qn(),o=i.animate,a=i.config,s=gk(n,r);return{transition:Ca(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:Lde(t)}},Bde=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 m.useMemo(function(){return mk(t,o).map(function(l){var c=vk(l.arc,r);return Ot({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,o,s])},zde=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?Ide:c,d=Oi(i),f=Ft(),h=Sr(l,f),p=m.useMemo(function(){return n.filter(function(w){var C=Math.abs(Eu(w.arc.endAngle-w.arc.startAngle)),b=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return C>=a&&b>=s})},[n,a,s]),g=Fde(p,o,r),v=g.transition,x=g.interpolate,_=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,C){return m.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)}})})})},Wde=function(e,t,n){ya(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){xa(e,Ot({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},Ude=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=Oi(i),s=Ft(),l=Sr(o,s),c=m.useCallback(function(u){return{label:a(u),textColor:l(u)}},[a,l]);return Bde({data:t,offset:n,skipAngle:r,computeExtraProps:c})},Hde=function(e){var t=e.label,n=e.style,r=Ft();return y.jsxs(Yt.g,{opacity:n.opacity,children:[y.jsx(Yt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(sl,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})]})},Vde=function(e){var t=pk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},ey=function(e,t,n,r){var i,o,a=pk(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=oa(a,e.outerRadius+t),l=oa(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]}},qde=Cb().x(function(e){return e.x}).y(function(e){return e.y}),Yde=function(e,t,n,r,i,o,a){return xo([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var p=ey({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return qde(p)})},Gde=function(e,t,n,r){return xo([e,t,n,r],function(i,o,a,s){return Vde({startAngle:i,endAngle:o})})},Kde=function(e,t,n,r,i,o,a,s){return xo([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,p,g){var v=ey({startAngle:l,endAngle:c,outerRadius:d},f,h,p),x=v.points,_=v.side,w=x[2];return _==="before"?w.x-=g:w.x+=g,"translate("+w.x+","+w.y+")"})},Zde=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=qn(),f=d.animate,h=d.config,p=Ft(),g=Sr(c,p),v=Sr(u,p),x=function(w,C){return m.useMemo(function(){return mk(w,C)},[w,C])}(t,s),_=function(w){var C=w.offset,b=w.diagonalLength,$=w.straightLength,T=w.textOffset,k=w.getLinkColor,O=w.getTextColor;return m.useMemo(function(){return{enter:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:T,linkColor:k(j),textColor:O(j),opacity:0}},update:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:b,straightLength:$,textOffset:T,linkColor:k(j),textColor:O(j),opacity:1}},leave:function(j){return{startAngle:j.arc.startAngle,endAngle:j.arc.endAngle,innerRadius:j.arc.innerRadius,outerRadius:j.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:T,linkColor:k(j),textColor:O(j),opacity:0}}}},[b,$,T,k,O,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:g,getTextColor:v});return{transition:Ca(x,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:Yde,interpolateTextAnchor:Gde,interpolateTextPosition:Kde}},Xde=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?Hde:f,p=Oi(r),g=Zde({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=g.transition,x=g.interpolateLink,_=g.interpolateTextAnchor,w=g.interpolateTextPosition,C=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(b,$){return m.createElement(C,{key:$.id,datum:$,label:p($),style:Ot({},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)})})})})},Qde=function(e,t,n,r){e.textBaseline="middle",ya(e,n.labels.text),t.forEach(function(i){e.textAlign=rk.canvas.align[i.textAnchor],xa(e,Ot({},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()})},Jde=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=m.useMemo(function(){return t.filter(function(d){return Math.abs(Eu(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Ot({},ey(d.arc,o,a,s),{data:d})})},[t,r,o,a,s]);return m.useMemo(function(){return u.map(function(d){return Ot({},c(d),d)})},[u,c])},efe=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=Oi(l),f=Ft(),h=Sr(c,f),p=Sr(u,f),g=m.useCallback(function(v){var x,_={x:v.points[2].x,y:v.points[2].y};return v.side==="before"?(_.x-=s,x="end"):(_.x+=s,x="start"),Ot({},_,{label:d(v.data),linkColor:h(v.data),textAnchor:x,textColor:p(v.data)})},[d,h,p,s]);return Jde({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:g})},tfe=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=m.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=m.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=m.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=m.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return y.jsx(Yt.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})},nfe=function(e,t,n,r,i){return xo([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)})})},rfe=function(e,t,n){t===void 0&&(t="innerRadius");var r=qn(),i=r.animate,o=r.config,a=gk(t,n);return{transition:Ca(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:nfe}},ife=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?tfe:d,h=Ft(),p=Sr(o,h),g=rfe(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)}}}),v=g.transition,x=g.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,C){return m.createElement(_,{key:C.id,datum:C,style:Ot({},w,{borderWidth:i,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},ofe=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=oa(xr(r),n);a.push([s.x,s.y]);var l=oa(xr(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=oa(xr(c),n);a.push([u.x,u.y])}a=a.map(function(v){var x=v[0],_=v[1];return[e+x,t+_]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:p-h,height:Math.max.apply(Math,f)-g}},afe=function(e,t,n,r,i,o){var a=ck(i,o,e,t);return a<n&&a>r},sfe=function(e,t,n,r,i,o,a){if(afe(e,t,n,r,o,a)){var s=mde(o,a,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},lfe=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 m.useMemo(function(){return Yie().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},cfe=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"}})},ufe=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:`
|
|
316
|
-
M`+r/2+` 0
|
|
317
|
-
L`+.8*r+" "+r/2+`
|
|
318
|
-
L`+r/2+" "+r+`
|
|
319
|
-
L`+.2*r+" "+r/2+`
|
|
320
|
-
L`+r/2+` 0
|
|
321
|
-
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},dfe=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"}})},ffe=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:`
|
|
322
|
-
M`+r/2+` 0
|
|
323
|
-
L`+r+" "+r+`
|
|
324
|
-
L0 `+r+`
|
|
325
|
-
L`+r/2+` 0
|
|
326
|
-
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function lo(){return lo=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},lo.apply(null,arguments)}var vr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},hfe={top:0,right:0,bottom:0,left:0},ty=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}:lo({},hfe,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}},bk=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}},yk=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}},pfe={circle:cfe,diamond:ufe,square:dfe,triangle:ffe},mfe=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,p=e.width,g=e.height,v=e.data,x=e.direction,_=x===void 0?vr.itemDirection:x,w=e.justify,C=w===void 0?vr.justify:w,b=e.textColor,$=e.background,T=$===void 0?"transparent":$,k=e.opacity,O=k===void 0?1:k,j=e.symbolShape,S=j===void 0?vr.symbolShape:j,E=e.symbolSize,A=E===void 0?vr.symbolSize:E,D=e.symbolSpacing,R=D===void 0?vr.symbolSpacing:D,M=e.symbolBorderWidth,I=M===void 0?0:M,F=e.symbolBorderColor,U=F===void 0?"transparent":F,P=e.onClick,z=e.onMouseEnter,V=e.onMouseLeave,H=e.toggleSerie,Y=e.effects,Z=m.useState({}),J=Z[0],ee=Z[1],W=Ft(),L=m.useCallback(function(ce){if(Y){var ve=Y.filter(function(ge){return ge.on==="hover"}).reduce(function(ge,be){return lo({},ge,be.style)},{});ee(ve)}z==null||z(v,ce)},[z,v,Y]),B=m.useCallback(function(ce){if(Y){var ve=Y.filter(function(ge){return ge.on!=="hover"}).reduce(function(ge,be){return lo({},ge,be.style)},{});ee(ve)}V==null||V(v,ce)},[V,v,Y]),q=yk({direction:_,justify:C,symbolSize:(t=J.symbolSize)!=null?t:A,symbolSpacing:R,width:p,height:g}),N=q.symbolX,Q=q.symbolY,X=q.labelX,G=q.labelY,se=q.labelAnchor,te=q.labelAlignment,re=[P,z,V,H].some(function(ce){return ce!==void 0}),ae=typeof S=="function"?S:pfe[S];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:O},children:[y.jsx("rect",{width:p,height:g,fill:(r=J.itemBackground)!=null?r:T,style:{cursor:re?"pointer":"auto"},onClick:function(ce){P==null||P(v,ce),H==null||H(v.id)},onMouseEnter:L,onMouseLeave:B}),ie.createElement(ae,lo({id:v.id,x:N,y:Q,size:(i=J.symbolSize)!=null?i:A,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=J.symbolBorderWidth)!=null?s:I,borderColor:(l=J.symbolBorderColor)!=null?l:U},v.hidden?W.legends.hidden.symbol:void 0)),y.jsx(sl,{textAnchor:se,style:lo({},W.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:W.legends.text.fill)!=null?c:"black",dominantBaseline:te,pointerEvents:"none",userSelect:"none"},v.hidden?W.legends.hidden.text:void 0),x:X,y:G,children:v.label})]})},gfe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?vr.padding:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?vr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?vr.itemsSpacing:h,g=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,_=e.itemOpacity,w=_===void 0?1:_,C=e.symbolShape,b=e.symbolSize,$=e.symbolSpacing,T=e.symbolBorderWidth,k=e.symbolBorderColor,O=e.onClick,j=e.onMouseEnter,S=e.onMouseLeave,E=e.toggleSerie,A=ty({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,D=i==="row"?c+p:0,R=i==="column"?u+p:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(M,I){return y.jsx(mfe,{data:M,x:I*D+A.left,y:I*R+A.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:x,opacity:w,symbolShape:C,symbolSize:b,symbolSpacing:$,symbolBorderWidth:T,symbolBorderColor:k,onClick:O,onMouseEnter:j,onMouseLeave:S,toggleSerie:E},I)})})},ny=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?vr.translateX:i,a=e.translateY,s=a===void 0?vr.translateY:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?vr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?vr.itemsSpacing:h,g=e.itemWidth,v=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,C=e.itemOpacity,b=e.symbolShape,$=e.symbolSize,T=e.symbolSpacing,k=e.symbolBorderWidth,O=e.symbolBorderColor,j=e.onClick,S=e.onMouseEnter,E=e.onMouseLeave,A=e.toggleSerie,D=e.effects,R=ty({itemCount:t.length,itemsSpacing:p,itemWidth:g,itemHeight:v,direction:c,padding:d}),M=R.width,I=R.height,F=bk({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:M,height:I}),U=F.x,P=F.y;return y.jsx(gfe,{data:t,x:U,y:P,direction:c,padding:d,justify:f,effects:D,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:x,itemTextColor:_,itemBackground:w,itemOpacity:C,symbolShape:b,symbolSize:$,symbolSpacing:T,symbolBorderWidth:k,symbolBorderColor:O,onClick:j,onMouseEnter:S,onMouseLeave:E,toggleSerie:typeof A=="boolean"?void 0:A})},vfe={start:"left",middle:"center",end:"right"},ry=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,g=t.itemsSpacing,v=g===void 0?0:g,x=t.itemWidth,_=t.itemHeight,w=t.itemDirection,C=w===void 0?"left-to-right":w,b=t.itemTextColor,$=t.symbolSize,T=$===void 0?16:$,k=t.symbolSpacing,O=k===void 0?8:k,j=t.theme,S=ty({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:v,direction:u,padding:f}),E=S.width,A=S.height,D=S.padding,R=bk({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:E,height:A}),M=R.x,I=R.y,F=u==="row"?x+v:0,U=u==="column"?_+v:0;e.save(),e.translate(M,I),ya(e,j.legends.text),n.forEach(function(P,z){var V,H=z*F+D.left,Y=z*U+D.top,Z=yk({direction:C,justify:p,symbolSize:T,symbolSpacing:O,width:x,height:_}),J=Z.symbolX,ee=Z.symbolY,W=Z.labelX,L=Z.labelY,B=Z.labelAnchor,q=Z.labelAlignment;e.fillStyle=(V=P.color)!=null?V:"black",e.fillRect(H+J,Y+ee,T,T),e.textAlign=vfe[B],q==="central"&&(e.textBaseline="middle"),xa(e,lo({},j.legends.text,{fill:b??j.legends.text.fill}),String(P.label),H+W,Y+L)}),e.restore()};function Tr(){return Tr=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},Tr.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 h4,bfe=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(ny,Tr({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},ye={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(hb,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(h4=window.devicePixelRatio)!=null?h4:1},yfe=["points"],xk=function(e){var t=e.data,n=e.id,r=n===void 0?ye.id:n,i=e.value,o=i===void 0?ye.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?ye.colors:s,c=Oi(r),u=Oi(o),d=Is(a),f=Jb(l,"id");return m.useMemo(function(){return t.map(function(h){var p,g=c(h),v=u(h),x={id:g,label:(p=h.label)!=null?p:g,hidden:!1,value:v,formattedValue:d(v),data:h};return Tr({},x,{color:f(x)})})},[t,c,u,d,f])},xfe=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=m.useMemo(function(){var x=Xie().value(function(_){return _.value}).startAngle(xr(n)).endAngle(xr(r)).padAngle(xr(a));return s||x.sortValues(null),x},[n,r,a,s]),p=m.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return Tr({},_.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:Eu(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]),g=p.legendData,v=m.useRef(f);return m.useEffect(function(){typeof v.current=="function"&&v.current(g)},[v,g]),p},wfe=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=m.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:m.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},wk=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?ye.innerRadius:i,a=e.startAngle,s=a===void 0?ye.startAngle:a,l=e.endAngle,c=l===void 0?ye.endAngle:l,u=e.padAngle,d=u===void 0?ye.padAngle:u,f=e.sortByValue,h=f===void 0?ye.sortByValue:f,p=e.cornerRadius,g=p===void 0?ye.cornerRadius:p,v=e.fit,x=v===void 0?ye.fit:v,_=e.activeInnerRadiusOffset,w=_===void 0?ye.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,b=C===void 0?ye.activeOuterRadiusOffset:C,$=e.activeId,T=e.onActiveIdChange,k=e.defaultActiveId,O=e.forwardLegendData,j=wfe({activeId:$,onActiveIdChange:T,defaultActiveId:k}),S=j.activeId,E=j.setActiveId,A=m.useState([]),D=A[0],R=A[1],M=m.useMemo(function(){var U,P=Math.min(n,r)/2,z=P*Math.min(o,1),V=n/2,H=r/2;if(x){var Y=ofe(V,H,P,s-90,c-90),Z=Y.points,J=ku(Y,yfe),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,V=(V-J.x)/J.width*J.width*ee+W.x,H=(H-J.y)/J.height*J.height*ee+W.y,U={box:J,ratio:ee,points:Z},P*=ee,z*=ee}return{centerX:V,centerY:H,radius:P,innerRadius:z,debug:U}},[n,r,o,s,c,x]),I=xfe({data:t,startAngle:s,endAngle:c,innerRadius:M.innerRadius,outerRadius:M.radius,padAngle:d,sortByValue:h,activeId:S,activeInnerRadiusOffset:w,activeOuterRadiusOffset:b,hiddenIds:D,forwardLegendData:O}),F=m.useCallback(function(U){R(function(P){return P.indexOf(U)>-1?P.filter(function(z){return z!==U}):[].concat(P,[U])})},[]);return Tr({arcGenerator:lfe({cornerRadius:g,padAngle:xr(d)}),activeId:S,setActiveId:E,toggleSerie:F},I,M)},_fe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return m.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},Cfe=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=Ui(),g=p.showTooltipFromEvent,v=p.hideTooltip,x=m.useMemo(function(){if(a)return function(b,$){s==null||s(b,$)}},[a,s]),_=m.useMemo(function(){if(a)return function(b,$){g(m.createElement(f,{datum:b}),$),d(b.id),l==null||l(b,$)}},[a,g,d,l,f]),w=m.useMemo(function(){if(a)return function(b,$){g(m.createElement(f,{datum:b}),$),c==null||c(b,$)}},[a,g,c,f]),C=m.useMemo(function(){if(a)return function(b,$){v(),d(null),u==null||u(b,$)}},[a,v,d,u]);return y.jsx(ife,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},$fe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Sfe=function(e){var t=e.data,n=e.id,r=n===void 0?ye.id:n,i=e.value,o=i===void 0?ye.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ye.sortByValue:s,c=e.layers,u=c===void 0?ye.layers:c,d=e.startAngle,f=d===void 0?ye.startAngle:d,h=e.endAngle,p=h===void 0?ye.endAngle:h,g=e.padAngle,v=g===void 0?ye.padAngle:g,x=e.fit,_=x===void 0?ye.fit:x,w=e.innerRadius,C=w===void 0?ye.innerRadius:w,b=e.cornerRadius,$=b===void 0?ye.cornerRadius:b,T=e.activeInnerRadiusOffset,k=T===void 0?ye.activeInnerRadiusOffset:T,O=e.activeOuterRadiusOffset,j=O===void 0?ye.activeOuterRadiusOffset:O,S=e.width,E=e.height,A=e.margin,D=e.colors,R=D===void 0?ye.colors:D,M=e.borderWidth,I=M===void 0?ye.borderWidth:M,F=e.borderColor,U=F===void 0?ye.borderColor:F,P=e.enableArcLabels,z=P===void 0?ye.enableArcLabels:P,V=e.arcLabel,H=V===void 0?ye.arcLabel:V,Y=e.arcLabelsSkipAngle,Z=Y===void 0?ye.arcLabelsSkipAngle:Y,J=e.arcLabelsSkipRadius,ee=J===void 0?ye.arcLabelsSkipRadius:J,W=e.arcLabelsTextColor,L=W===void 0?ye.arcLabelsTextColor:W,B=e.arcLabelsRadiusOffset,q=B===void 0?ye.arcLabelsRadiusOffset:B,N=e.arcLabelsComponent,Q=e.enableArcLinkLabels,X=Q===void 0?ye.enableArcLinkLabels:Q,G=e.arcLinkLabel,se=G===void 0?ye.arcLinkLabel:G,te=e.arcLinkLabelsSkipAngle,re=te===void 0?ye.arcLinkLabelsSkipAngle:te,ae=e.arcLinkLabelsOffset,ce=ae===void 0?ye.arcLinkLabelsOffset:ae,ve=e.arcLinkLabelsDiagonalLength,ge=ve===void 0?ye.arcLinkLabelsDiagonalLength:ve,be=e.arcLinkLabelsStraightLength,Te=be===void 0?ye.arcLinkLabelsStraightLength:be,de=e.arcLinkLabelsThickness,le=de===void 0?ye.arcLinkLabelsThickness:de,we=e.arcLinkLabelsTextOffset,Be=we===void 0?ye.arcLinkLabelsTextOffset:we,Bt=e.arcLinkLabelsTextColor,Le=Bt===void 0?ye.arcLinkLabelsTextColor:Bt,gt=e.arcLinkLabelsColor,_t=gt===void 0?ye.arcLinkLabelsColor:gt,nn=e.arcLinkLabelComponent,Ee=e.defs,je=Ee===void 0?ye.defs:Ee,vt=e.fill,qe=vt===void 0?ye.fill:vt,bt=e.isInteractive,at=bt===void 0?ye.isInteractive:bt,At=e.onClick,Ke=e.onMouseEnter,De=e.onMouseMove,We=e.onMouseLeave,Qe=e.tooltip,Ie=Qe===void 0?ye.tooltip:Qe,Je=e.activeId,ht=e.onActiveIdChange,nt=e.defaultActiveId,Ne=e.transitionMode,ke=Ne===void 0?ye.transitionMode:Ne,He=e.legends,yt=He===void 0?ye.legends:He,et=e.forwardLegendData,pt=e.role,tn=pt===void 0?ye.role:pt,zt=e.forwardedRef,Ht=Ra(S,E,A),vn=Ht.outerWidth,Kt=Ht.outerHeight,$e=Ht.margin,Ze=Ht.innerWidth,Ct=Ht.innerHeight,cn=xk({data:t,id:r,value:o,valueFormat:a,colors:R}),Zt=wk({data:cn,width:Ze,height:Ct,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:v,sortByValue:l,cornerRadius:$,activeInnerRadiusOffset:k,activeOuterRadiusOffset:j,activeId:Je,onActiveIdChange:ht,defaultActiveId:nt,forwardLegendData:et}),Pe=Zt.dataWithArc,Fe=Zt.legendData,ct=Zt.arcGenerator,Rt=Zt.centerX,$t=Zt.centerY,Xe=Zt.radius,St=Zt.innerRadius,kr=Zt.setActiveId,fn=Zt.toggleSerie,hn=Xb(je,Pe,qe),Pn={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Pn.arcs=y.jsx(Cfe,{center:[Rt,$t],data:Pe,arcGenerator:ct,borderWidth:I,borderColor:U,isInteractive:at,onClick:At,onMouseEnter:Ke,onMouseMove:De,onMouseLeave:We,setActiveId:kr,tooltip:Ie,transitionMode:ke},"arcs")),X&&u.includes("arcLinkLabels")&&(Pn.arcLinkLabels=y.jsx(Xde,{center:[Rt,$t],data:Pe,label:se,skipAngle:re,offset:ce,diagonalLength:ge,straightLength:Te,strokeWidth:le,textOffset:Be,textColor:Le,linkColor:_t,component:nn},"arcLinkLabels")),z&&u.includes("arcLabels")&&(Pn.arcLabels=y.jsx(zde,{center:[Rt,$t],data:Pe,label:H,radiusOffset:q,skipAngle:Z,skipRadius:ee,textColor:L,transitionMode:ke,component:N},"arcLabels")),yt.length>0&&u.includes("legends")&&(Pn.legends=y.jsx(bfe,{width:Ze,height:Ct,data:Fe,legends:yt,toggleSerie:fn},"legends"));var ko=_fe({dataWithArc:Pe,arcGenerator:ct,centerX:Rt,centerY:$t,radius:Xe,innerRadius:St});return y.jsx(Ip,{width:vn,height:Kt,margin:$e,defs:hn,role:tn,ref:zt,children:u.map(function(wt,Oo){return Pn[wt]!==void 0?Pn[wt]:typeof wt=="function"?y.jsx(m.Fragment,{children:m.createElement(wt,ko)},Oo):null})})},Tfe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ye.isInteractive:n,i=e.animate,o=i===void 0?ye.animate:i,a=e.motionConfig,s=a===void 0?ye.motionConfig:a,l=e.theme,c=e.renderWrapper,u=ku(e,$fe);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Sfe,Tr({isInteractive:r},u,{forwardedRef:t}))})}),Efe=["defaultWidth","defaultHeight","onResize","debounceResize"],kfe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=ku(e,Efe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Tfe,Tr({width:l,height:c},a,{ref:t}))}})}),Ofe=["isInteractive","theme","renderWrapper"],Mfe=function(e){var t=e.data,n=e.id,r=n===void 0?ye.id:n,i=e.value,o=i===void 0?ye.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ye.sortByValue:s,c=e.startAngle,u=c===void 0?ye.startAngle:c,d=e.endAngle,f=d===void 0?ye.endAngle:d,h=e.padAngle,p=h===void 0?ye.padAngle:h,g=e.fit,v=g===void 0?ye.fit:g,x=e.innerRadius,_=x===void 0?ye.innerRadius:x,w=e.cornerRadius,C=w===void 0?ye.cornerRadius:w,b=e.activeInnerRadiusOffset,$=b===void 0?ye.activeInnerRadiusOffset:b,T=e.activeOuterRadiusOffset,k=T===void 0?ye.activeOuterRadiusOffset:T,O=e.width,j=e.height,S=e.margin,E=e.pixelRatio,A=E===void 0?ye.pixelRatio:E,D=e.colors,R=D===void 0?ye.colors:D,M=e.borderWidth,I=M===void 0?ye.borderWidth:M,F=e.borderColor,U=F===void 0?ye.borderColor:F,P=e.enableArcLabels,z=P===void 0?ye.enableArcLabels:P,V=e.arcLabel,H=V===void 0?ye.arcLabel:V,Y=e.arcLabelsSkipAngle,Z=Y===void 0?ye.arcLabelsSkipAngle:Y,J=e.arcLabelsTextColor,ee=J===void 0?ye.arcLabelsTextColor:J,W=e.arcLabelsRadiusOffset,L=W===void 0?ye.arcLabelsRadiusOffset:W,B=e.enableArcLinkLabels,q=B===void 0?ye.enableArcLinkLabels:B,N=e.arcLinkLabel,Q=N===void 0?ye.arcLinkLabel:N,X=e.arcLinkLabelsSkipAngle,G=X===void 0?ye.arcLinkLabelsSkipAngle:X,se=e.arcLinkLabelsOffset,te=se===void 0?ye.arcLinkLabelsOffset:se,re=e.arcLinkLabelsDiagonalLength,ae=re===void 0?ye.arcLinkLabelsDiagonalLength:re,ce=e.arcLinkLabelsStraightLength,ve=ce===void 0?ye.arcLinkLabelsStraightLength:ce,ge=e.arcLinkLabelsThickness,be=ge===void 0?ye.arcLinkLabelsThickness:ge,Te=e.arcLinkLabelsTextOffset,de=Te===void 0?ye.arcLinkLabelsTextOffset:Te,le=e.arcLinkLabelsTextColor,we=le===void 0?ye.arcLinkLabelsTextColor:le,Be=e.arcLinkLabelsColor,Bt=Be===void 0?ye.arcLinkLabelsColor:Be,Le=e.isInteractive,gt=Le===void 0?ye.isInteractive:Le,_t=e.onClick,nn=e.onMouseMove,Ee=e.tooltip,je=Ee===void 0?ye.tooltip:Ee,vt=e.activeId,qe=e.onActiveIdChange,bt=e.defaultActiveId,at=e.legends,At=at===void 0?ye.legends:at,Ke=e.forwardLegendData,De=e.role,We=e.forwardedRef,Qe=m.useRef(null),Ie=Ft(),Je=Ra(O,j,S),ht=Je.margin,nt=Je.innerWidth,Ne=Je.innerHeight,ke=Je.outerWidth,He=Je.outerHeight,yt=xk({data:t,id:r,value:o,valueFormat:a,colors:R}),et=wk({data:yt,width:nt,height:Ne,fit:v,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:$,activeOuterRadiusOffset:k,activeId:vt,onActiveIdChange:qe,defaultActiveId:bt,forwardLegendData:Ke}),pt=et.dataWithArc,tn=et.arcGenerator,zt=et.centerX,Ht=et.centerY,vn=et.radius,Kt=et.innerRadius,$e=et.setActiveId,Ze=Sr(U,Ie),Ct=Ude({data:pt,label:H,skipAngle:Z,offset:L,textColor:ee}),cn=efe({data:pt,skipAngle:G,offset:te,diagonalLength:ae,straightLength:ve,label:Q,linkColor:Bt,textOffset:de,textColor:we});m.useEffect(function(){if(Qe.current){Qe.current.width=ke*A,Qe.current.height=He*A;var Xe=Qe.current.getContext("2d");Xe.scale(A,A),Xe.fillStyle=Ie.background,Xe.fillRect(0,0,ke,He),Xe.save(),Xe.translate(ht.left,ht.top),tn.context(Xe),Xe.save(),Xe.translate(zt,Ht),pt.forEach(function(St){Xe.beginPath(),Xe.fillStyle=St.color,Xe.strokeStyle=Ze(St),Xe.lineWidth=I,tn(St.arc),Xe.fill(),I>0&&Xe.stroke()}),q===!0&&Qde(Xe,cn,Ie,be),z===!0&&Wde(Xe,Ct,Ie),Xe.restore(),At.forEach(function(St){ry(Xe,Tr({},St,{data:pt,containerWidth:nt,containerHeight:Ne,theme:Ie}))})}},[Qe,nt,Ne,ke,He,ht.top,ht.left,A,zt,Ht,tn,pt,I,Ze,z,Ct,q,cn,be,At,Ie]);var Zt=m.useMemo(function(){return pt.map(function(Xe){return Tr({id:Xe.id},Xe.arc)})},[pt]),Pe=function(Xe){if(!Qe.current)return null;var St=hs(Qe.current,Xe),kr=St[0],fn=St[1],hn=sfe(ht.left+zt,ht.top+Ht,vn,Kt,Zt,kr,fn);return hn?pt.find(function(Pn){return Pn.id===hn.id}):null},Fe=Ui(),ct=Fe.showTooltipFromEvent,Rt=Fe.hideTooltip,$t=function(Xe){var St=Pe(Xe);St?(nn==null||nn(St,Xe),$e(St.id),ct(m.createElement(je,{datum:St}),Xe)):($e(null),Rt())};return y.jsx("canvas",{ref:Qb(Qe,We),width:ke*A,height:He*A,style:{width:ke,height:He,cursor:gt?"auto":"normal"},onMouseEnter:gt?$t:void 0,onMouseMove:gt?$t:void 0,onMouseLeave:gt?function(){Rt()}:void 0,onClick:gt?function(Xe){if(_t){var St=Pe(Xe);St&&_t(St,Xe)}}:void 0,role:De})},Afe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ye.isInteractive:n,i=e.theme,o=e.renderWrapper,a=ku(e,Ofe);return y.jsx(Ma,{isInteractive:r,renderWrapper:o,theme:i,children:y.jsx(Mfe,Tr({isInteractive:r},a,{forwardedRef:t}))})}),Rfe=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=ku(e,Rfe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Afe,Tr({width:l,height:c},a,{ref:t}))}})});function jfe(){}var Nfe=jfe,dg=XE,Dfe=Nfe,Ife=qb,Pfe=1/0,Lfe=dg&&1/Ife(new dg([,-0]))[1]==Pfe?function(e){return new dg(e)}:Dfe,Ffe=Lfe,Bfe=yb,zfe=UT,Wfe=HT,Ufe=xb,Hfe=Ffe,Vfe=qb,qfe=200;function Yfe(e,t,n){var r=-1,i=zfe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Wfe;else if(o>=qfe){var c=t?null:Hfe(e);if(c)return Vfe(c);a=!1,i=Ufe,l=new Bfe}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 _k=Yfe,Gfe=_k;function Kfe(e){return e&&e.length?Gfe(e):[]}var Zfe=Kfe;const p4=sn(Zfe);var Xfe=Uh,Qfe=Gb,Jfe=1,ehe=2;function the(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 Xfe;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Qfe(u,c,Jfe|ehe,r,d):f))return!1}}return!0}var nhe=the,rhe=ui;function ihe(e){return e===e&&!rhe(e)}var Ck=ihe,ohe=Ck,ahe=Tu;function she(e){for(var t=ahe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ohe(i)]}return t}var lhe=she;function che(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var $k=che,uhe=nhe,dhe=lhe,fhe=$k;function hhe(e){var t=dhe(e);return t.length==1&&t[0][2]?fhe(t[0][0],t[0][1]):function(n){return n===e||uhe(n,e,t)}}var phe=hhe,mhe=Gb,ghe=ET,vhe=WE,bhe=db,yhe=Ck,xhe=$k,whe=il,_he=1,Che=2;function $he(e,t){return bhe(e)&&yhe(t)?xhe(whe(e),t):function(n){var r=ghe(n,e);return r===void 0&&r===t?vhe(n,e):mhe(t,r,_he|Che)}}var She=$he;function The(e){return function(t){return t==null?void 0:t[e]}}var Ehe=The,khe=$u;function Ohe(e){return function(t){return khe(t,e)}}var Mhe=Ohe,Ahe=Ehe,Rhe=Mhe,jhe=db,Nhe=il;function Dhe(e){return jhe(e)?Ahe(Nhe(e)):Rhe(e)}var Ihe=Dhe,Phe=phe,Lhe=She,Fhe=Gh,Bhe=or,zhe=Ihe;function Whe(e){return typeof e=="function"?e:e==null?Fhe:typeof e=="object"?Bhe(e)?Lhe(e[0],e[1]):Phe(e):zhe(e)}var iy=Whe,Uhe=iy,Hhe=_k;function Vhe(e,t){return e&&e.length?Hhe(e,Uhe(t)):[]}var qhe=Vhe;const Hv=sn(qhe);var Yhe=sT,Ghe=Tu;function Khe(e,t){return e&&Yhe(e,t,Ghe)}var Zhe=Khe,Xhe=el;function Qhe(e,t){return function(n,r){if(n==null)return n;if(!Xhe(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 Jhe=Qhe,epe=Zhe,tpe=Jhe,npe=tpe(epe),Sk=npe,rpe=Sk,ipe=el;function ope(e,t){var n=-1,r=ipe(e)?Array(e.length):[];return rpe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var ape=ope;function spe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var lpe=spe,m4=Kh;function cpe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=m4(e),a=t!==void 0,s=t===null,l=t===t,c=m4(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 upe=cpe,dpe=upe;function fpe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=dpe(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 hpe=fpe,fg=Zh,ppe=$u,mpe=iy,gpe=ape,vpe=lpe,bpe=tl,ype=hpe,xpe=Gh,wpe=or;function _pe(e,t,n){t.length?t=fg(t,function(o){return wpe(o)?function(a){return ppe(a,o.length===1?o[0]:o)}:o}):t=[xpe];var r=-1;t=fg(t,bpe(mpe));var i=gpe(e,function(o,a,s){var l=fg(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return vpe(i,function(o,a){return ype(o,a,n)})}var Cpe=_pe,$pe=HE,Spe=Cpe,Tpe=ub,g4=_T,Epe=Tpe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&g4(e,t[0],t[1])?t=[]:n>2&&g4(t[0],t[1],t[2])&&(t=[t[0]]),Spe(e,$pe(t,1),[])}),kpe=Epe;const Ope=sn(kpe);var Mpe=Wi,Ape=Er,Rpe="[object Date]";function jpe(e){return Ape(e)&&Mpe(e)==Rpe}var Npe=jpe,Dpe=Npe,Ipe=tl,v4=qh,b4=v4&&v4.isDate,Ppe=b4?Ipe(b4):Dpe,Lpe=Ppe;const Fpe=sn(Lpe);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 Ya=[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)}],Bpe={millisecond:[],second:Ya.slice(0,1),minute:Ya.slice(0,2),hour:Ya.slice(0,3),day:Ya.slice(0,4),month:Ya.slice(0,5),year:Ya.slice(0,6)},zpe=function(e){return function(t){return Bpe[e].forEach(function(n){n(t)}),t}},Tk=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=zpe(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?FE(n):PE(n);return s(c(l))}},Fo={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},Wpe=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?Fo.min:l,u=e.max,d=u===void 0?Fo.max:u,f=e.stacked,h=f===void 0?Fo.stacked:f,p=e.reverse,g=p===void 0?Fo.reverse:p,v=e.clamp,x=v===void 0?Fo.clamp:v,_=e.nice,w=_===void 0?Fo.nice:_,C=e.round,b=C===void 0?Fo.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 $=Ef().range(r==="x"?[0,n]:[n,0]).interpolate(b?zT:Lc).domain(g?[a,i]:[i,a]).clamp(x);return w===!0?$.nice():typeof w=="number"&&$.nice(w),Upe($,h)},Upe=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},Hpe=function(e,t,n){var r=Aoe().range([0,n]).domain(t.all);return r.type="point",r},Vpe={round:!1},qpe=function(e,t,n,r){var i=e.round,o=i===void 0?Vpe.round:i,a=Ob().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return Ype(a)},Ype=function(e){var t=e;return t.type="band",t},Ga={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Gpe=function(e,t,n){var r,i,o=e.format,a=o===void 0?Ga.format:o,s=e.precision,l=s===void 0?Ga.precision:s,c=e.min,u=c===void 0?Ga.min:c,d=e.max,f=d===void 0?Ga.max:d,h=e.useUTC,p=h===void 0?Ga.useUTC:h,g=e.nice,v=g===void 0?Ga.nice:g,x=Tk({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?_se():wse();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var w=_;return w.type="time",w.useUTC=p,w},Ka={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Kpe=function(e,t,n,r){var i,o=e.base,a=o===void 0?Ka.base:o,s=e.min,l=s===void 0?Ka.min:s,c=e.max,u=c===void 0?Ka.max:c,d=e.round,f=d===void 0?Ka.round:d,h=e.reverse,p=h===void 0?Ka.reverse:h,g=e.nice,v=g===void 0?Ka.nice:g;if(t.all.some(function(T){return T===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,w=!1;if(t.all.filter(function(T){return T!=null}).forEach(function(T){w||(i===void 0?i=Math.sign(T):Math.sign(T)!==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=fE().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,_]),v===!0?C.nice():typeof v=="number"&&C.nice(v);var $=C;return $.type="log",$},Za={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Zpe=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?Za.constant:a,l=e.min,c=l===void 0?Za.min:l,u=e.max,d=u===void 0?Za.max:u,f=e.round,h=f===void 0?Za.round:f,p=e.reverse,g=p===void 0?Za.reverse:p,v=e.nice,x=v===void 0?Za.nice:v;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var _=hE().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),g===!0?_.domain([o,i]):_.domain([i,o]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var C=_;return C.type="symlog",C},Xpe=function(e){return e==="x"?"y":"x"},Qpe=function(e,t){return e===t},Jpe=function(e,t){return e.getTime()===t.getTime()};function Hc(e,t,n,r){switch(e.type){case"linear":return Wpe(e,t,n,r);case"point":return Hpe(0,t,n);case"band":return qpe(e,t,n,r);case"time":return Gpe(e,t,n);case"log":return Kpe(e,t,n,r);case"symlog":return Zpe(e,t,n,r);default:throw new Error("invalid scale spec")}}var y4=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},eme=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return Vo({},d,{data:d.data.map(function(f){return{data:Vo({},f)}})})}(u)}),a=tme(o,t,n);"stacked"in t&&t.stacked===!0&&nme(a,o),"stacked"in n&&n.stacked===!0&&rme(a,o);var s=Hc(t,a.x,r,"x"),l=Hc(n,a.y,i,"y"),c=o.map(function(u){return Vo({},u,{data:u.data.map(function(d){return Vo({},d,{position:{x:y4(d,"x",s),y:y4(d,"y",l)}})})})});return Vo({},a,{series:c,xScale:s,yScale:l})},tme=function(e,t,n){return{x:x4(e,"x",t),y:x4(e,"y",n)}},x4=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,g){p.data[t]=g}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(g){var v=a(g);v&&l(g,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=Tk(n);e.forEach(function(p){p.data.forEach(function(g){var v=a(g);v&&l(g,c(v))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(g){u.push(a(g))})}),n.type){case"linear":var d=Ope(p4(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=Hv(u,function(p){return p.getTime()}).slice(0).sort(function(p,g){return g.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:Ae(f)};default:var h=p4(u);return{all:h,min:h[0],max:Ae(h)}}},Ek=function(e,t,n){var r=Xpe(e),i=[];t[r].all.forEach(function(o){var a=Fpe(o)?Jpe:Qpe,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=Ae(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)},nme=function(e,t){return Ek("x",e,t)},rme=function(e,t){return Ek("y",e,t)},kk=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}},Ok={millisecond:[zc,zc],second:[Pv,Pv],minute:[yE,TE],hour:[xE,EE],day:[gn(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)}),gn(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:[Af,Rf],sunday:[Af,Rf],monday:[Wc,Uc],tuesday:[wE,kE],wednesday:[_E,OE],thursday:[va,ba],friday:[CE,ME],saturday:[$E,AE],month:[SE,RE],year:[_o,Co]},ime=Object.keys(Ok),ome=new RegExp("^every\\s*(\\d+)?\\s*("+ime.join("|")+")s?$","i"),Mk=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(ome);if(n){var r=n[1],i=n[2],o=Ok[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 Lr(){return Lr=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},Lr.apply(null,arguments)}var Ak=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=Mk(r,o),h=rk[d],p="bandwidth"in r?kk(r):r,g={lineX:0,lineY:0},v={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}},g.lineY=a*(i==="after"?1:-1),v.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}},g.lineX=a*(i==="after"?1:-1),v.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($){var T=String($).length;return c&&c>0&&T>c?""+String($).slice(0,c).concat("..."):""+$}(C):C;return Lr({key:C instanceof Date?""+C.valueOf():""+C,value:b},t(C),g,v)}),textAlign:_,textBaseline:w}},Rk=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=ap(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Su(e)},Vv=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)||Mk(i,a)),l="bandwidth"in i?kk(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},ame=m.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=m.useMemo(function(){var h={opacity:u.opacity};return a?{style:Lr({},h,{cursor:"pointer"}),onClick:function(p){return a(p,d)}}:{style:h}},[u.opacity,a,d]);return y.jsxs(Yt.g,Lr({transform:u.transform},f,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),y.jsx(sl,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Kn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},sme=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?Kn.tickSize:u,f=e.tickPadding,h=f===void 0?Kn.tickPadding:f,p=e.tickRotation,g=p===void 0?Kn.tickRotation:p,v=e.format,x=e.renderTick,_=x===void 0?ame:x,w=e.truncateTickAt,C=e.legend,b=e.legendPosition,$=b===void 0?Kn.legendPosition:b,T=e.legendOffset,k=T===void 0?Kn.legendOffset:T,O=e.style,j=e.onClick,S=e.ariaHidden,E=Ft(),A=ore(E.axis,O),D=m.useMemo(function(){return Rk(v,n)},[v,n]),R=Ak({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:g,truncateTickAt:w}),M=R.ticks,I=R.textAlign,F=R.textBaseline,U=null;if(C!==void 0){var P,z=0,V=0,H=0;t==="y"?(H=-90,z=k,$==="start"?(P="start",V=s):$==="middle"?(P="middle",V=s/2):$==="end"&&(P="end")):(V=k,$==="start"?P="start":$==="middle"?(P="middle",z=s/2):$==="end"&&(P="end",z=s)),U=y.jsx(y.Fragment,{children:y.jsx(sl,{transform:"translate("+z+", "+V+") rotate("+H+")",textAnchor:P,style:Lr({},A.legend.text,{dominantBaseline:"central"}),children:C})})}var Y=qn(),Z=Y.animate,J=Y.config,ee=li({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!Z}),W=m.useCallback(function(q){return{opacity:1,transform:"translate("+q.x+","+q.y+")",textTransform:"translate("+q.textX+","+q.textY+") rotate("+g+")"}},[g]),L=m.useCallback(function(q){return{opacity:0,transform:"translate("+q.x+","+q.y+")",textTransform:"translate("+q.textX+","+q.textY+") rotate("+g+")"}},[g]),B=Ca(M,{keys:function(q){return q.key},initial:W,from:L,enter:W,update:W,leave:{opacity:0},config:J,immediate:!Z});return y.jsxs(Yt.g,{transform:ee.transform,"aria-hidden":S,children:[B(function(q,N,Q,X){return ie.createElement(_,Lr({tickIndex:X,format:D,rotate:g,textBaseline:F,textAnchor:I,truncateTickAt:w,animatedProps:q,theme:A.ticks},N,j?{onClick:j}:{}))}),y.jsx(Yt.line,{style:A.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),U]})},lme=m.memo(sme),jk=["top","right","bottom","left"],Nk=m.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:jk.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return y.jsx(lme,Lr({},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)})})}),cme=m.memo(function(e){var t=e.animatedProps,n=Ft();return y.jsx(Yt.line,Lr({},t,n.grid.line))}),w4=m.memo(function(e){var t=e.lines,n=qn(),r=n.animate,i=n.config,o=Ca(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 m.createElement(cme,Lr({},s,{key:s.key,animatedProps:a}))})})}),Dk=m.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=m.useMemo(function(){return!!r&&Vv({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=m.useMemo(function(){return!!i&&Vv({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(w4,{lines:s}),l&&y.jsx(w4,{lines:l})]})}),ume=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?Kn.tickSize:h,g=t.tickPadding,v=g===void 0?Kn.tickPadding:g,x=t.tickRotation,_=x===void 0?Kn.tickRotation:x,w=t.format,C=t.legend,b=t.legendPosition,$=b===void 0?Kn.legendPosition:b,T=t.legendOffset,k=T===void 0?Kn.legendOffset:T,O=t.theme,j=t.style,S=Ak({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:v,tickRotation:_,engine:"canvas"}),E=S.ticks,A=S.textAlign,D=S.textBaseline;e.save(),e.translate(s,c);var R=OT(O.axis,j);e.textAlign=A,e.textBaseline=D,ya(e,R.ticks.text);var M=(n=R.domain.line.strokeWidth)!=null?n:0;typeof M!="string"&&M>0&&(e.lineWidth=M,e.lineCap="square",R.domain.line.stroke&&(e.strokeStyle=R.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?u:0,i==="x"?0:u),e.stroke());var I=typeof w=="function"?w:function(Y){return""+Y},F=(r=R.ticks.line.strokeWidth)!=null?r:0,U=typeof F!="string"&&F>0;if(E.forEach(function(Y){U&&(e.lineWidth=F,e.lineCap="square",R.ticks.line.stroke&&(e.strokeStyle=R.ticks.line.stroke),e.beginPath(),e.moveTo(Y.x,Y.y),e.lineTo(Y.x+Y.lineX,Y.y+Y.lineY),e.stroke());var Z=I(Y.value);e.save(),e.translate(Y.x+Y.textX,Y.y+Y.textY),e.rotate(xr(_)),xa(e,R.ticks.text,""+Z),e.fillText(""+Z,0,0),e.restore()}),C!==void 0){var P=0,z=0,V=0,H="center";i==="y"?(V=-90,P=k,$==="start"?(H="start",z=u):$==="middle"?(H="center",z=u/2):$==="end"&&(H="end")):(z=k,$==="start"?H="start":$==="middle"?(H="center",P=u/2):$==="end"&&(H="end",P=u)),e.translate(P,z),e.rotate(xr(V)),ya(e,R.legend.text),R.legend.text.fill&&(e.fillStyle=R.legend.text.fill),e.textAlign=H,e.textBaseline="middle",xa(e,R.legend.text,C)}e.restore()},Ik=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};jk.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",g=f==="top"||f==="left"?"before":"after",v=p?n:r,x=Rk(h.format,v);ume(e,Lr({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:x,length:p?i:o,ticksPosition:g,theme:u}))})},Nf=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Vv({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()})},dme=TT,fme=0;function hme(e){var t=++fme;return dme(e)+t}var pme=hme;const mme=sn(pme),Mi=11102230246251565e-32,Mn=134217729,gme=(3+8*Mi)*Mi;function hg(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 vme(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Ou(e){return new Float64Array(e)}const bme=(3+16*Mi)*Mi,yme=(2+12*Mi)*Mi,xme=(9+64*Mi)*Mi*Mi,Xa=Ou(4),_4=Ou(8),C4=Ou(12),$4=Ou(16),Fn=Ou(4);function wme(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,g,v,x,_,w,C,b,$,T,k;const O=e-i,j=n-i,S=t-o,E=r-o;C=O*E,f=Mn*O,h=f-(f-O),p=O-h,f=Mn*E,g=f-(f-E),v=E-g,b=p*v-(C-h*g-p*g-h*v),$=S*j,f=Mn*S,h=f-(f-S),p=S-h,f=Mn*j,g=f-(f-j),v=j-g,T=p*v-($-h*g-p*g-h*v),x=b-T,d=b-x,Xa[0]=b-(x+d)+(d-T),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-$,d=w-x,Xa[1]=w-(x+d)+(d-$),k=_+x,d=k-_,Xa[2]=_-(k-d)+(x-d),Xa[3]=k;let A=vme(4,Xa),D=yme*a;if(A>=D||-A>=D||(d=e-O,s=e-(O+d)+(d-i),d=n-j,c=n-(j+d)+(d-i),d=t-S,l=t-(S+d)+(d-o),d=r-E,u=r-(E+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(D=xme*a+gme*Math.abs(A),A+=O*u+E*s-(S*c+j*l),A>=D||-A>=D))return A;C=s*E,f=Mn*s,h=f-(f-s),p=s-h,f=Mn*E,g=f-(f-E),v=E-g,b=p*v-(C-h*g-p*g-h*v),$=l*j,f=Mn*l,h=f-(f-l),p=l-h,f=Mn*j,g=f-(f-j),v=j-g,T=p*v-($-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-$,d=w-x,Fn[1]=w-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const R=hg(4,Xa,4,Fn,_4);C=O*u,f=Mn*O,h=f-(f-O),p=O-h,f=Mn*u,g=f-(f-u),v=u-g,b=p*v-(C-h*g-p*g-h*v),$=S*c,f=Mn*S,h=f-(f-S),p=S-h,f=Mn*c,g=f-(f-c),v=c-g,T=p*v-($-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-$,d=w-x,Fn[1]=w-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const M=hg(R,_4,4,Fn,C4);C=s*u,f=Mn*s,h=f-(f-s),p=s-h,f=Mn*u,g=f-(f-u),v=u-g,b=p*v-(C-h*g-p*g-h*v),$=l*c,f=Mn*l,h=f-(f-l),p=l-h,f=Mn*c,g=f-(f-c),v=c-g,T=p*v-($-h*g-p*g-h*v),x=b-T,d=b-x,Fn[0]=b-(x+d)+(d-T),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-$,d=w-x,Fn[1]=w-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const I=hg(M,C4,4,Fn,$4);return $4[I-1]}function hd(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)>=bme*c?l:-wme(e,t,n,r,i,o,c)}const S4=Math.pow(2,-52),pd=new Uint32Array(512);class Df{static from(t,n=Tme,r=Eme){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 Df(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 O=0;O<a;O++){const j=t[2*O],S=t[2*O+1];j<s&&(s=j),S<l&&(l=S),j>c&&(c=j),S>u&&(u=S),this._ids[O]=O}const d=(s+c)/2,f=(l+u)/2;let h,p,g;for(let O=0,j=1/0;O<a;O++){const S=pg(d,f,t[2*O],t[2*O+1]);S<j&&(h=O,j=S)}const v=t[2*h],x=t[2*h+1];for(let O=0,j=1/0;O<a;O++){if(O===h)continue;const S=pg(v,x,t[2*O],t[2*O+1]);S<j&&S>0&&(p=O,j=S)}let _=t[2*p],w=t[2*p+1],C=1/0;for(let O=0;O<a;O++){if(O===h||O===p)continue;const j=$me(v,x,_,w,t[2*O],t[2*O+1]);j<C&&(g=O,C=j)}let b=t[2*g],$=t[2*g+1];if(C===1/0){for(let S=0;S<a;S++)this._dists[S]=t[2*S]-t[0]||t[2*S+1]-t[1];os(this._ids,this._dists,0,a-1);const O=new Uint32Array(a);let j=0;for(let S=0,E=-1/0;S<a;S++){const A=this._ids[S],D=this._dists[A];D>E&&(O[j++]=A,E=D)}this.hull=O.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hd(v,x,_,w,b,$)<0){const O=p,j=_,S=w;p=g,_=b,w=$,g=O,b=j,$=S}const T=Sme(v,x,_,w,b,$);this._cx=T.x,this._cy=T.y;for(let O=0;O<a;O++)this._dists[O]=pg(t[2*O],t[2*O+1],T.x,T.y);os(this._ids,this._dists,0,a-1),this._hullStart=h;let k=3;r[h]=n[g]=p,r[p]=n[h]=g,r[g]=n[p]=h,i[h]=0,i[p]=1,i[g]=2,o.fill(-1),o[this._hashKey(v,x)]=h,o[this._hashKey(_,w)]=p,o[this._hashKey(b,$)]=g,this.trianglesLen=0,this._addTriangle(h,p,g,-1,-1,-1);for(let O=0,j,S;O<this._ids.length;O++){const E=this._ids[O],A=t[2*E],D=t[2*E+1];if(O>0&&Math.abs(A-j)<=S4&&Math.abs(D-S)<=S4||(j=A,S=D,E===h||E===p||E===g))continue;let R=0;for(let P=0,z=this._hashKey(A,D);P<this._hashSize&&(R=o[(z+P)%this._hashSize],!(R!==-1&&R!==r[R]));P++);R=n[R];let M=R,I;for(;I=r[M],hd(A,D,t[2*M],t[2*M+1],t[2*I],t[2*I+1])>=0;)if(M=I,M===R){M=-1;break}if(M===-1)continue;let F=this._addTriangle(M,E,r[M],-1,-1,i[M]);i[E]=this._legalize(F+2),i[M]=F,k++;let U=r[M];for(;I=r[U],hd(A,D,t[2*U],t[2*U+1],t[2*I],t[2*I+1])<0;)F=this._addTriangle(U,E,I,i[E],-1,i[U]),i[E]=this._legalize(F+2),r[U]=U,k--,U=I;if(M===R)for(;I=n[M],hd(A,D,t[2*I],t[2*I+1],t[2*M],t[2*M+1])<0;)F=this._addTriangle(I,E,M,-1,i[M],i[I]),this._legalize(F+2),i[I]=F,r[M]=M,k--,M=I;this._hullStart=n[E]=M,r[M]=n[U]=E,r[E]=U,o[this._hashKey(A,D)]=E,o[this._hashKey(t[2*M],t[2*M+1])]=M}this.hull=new Uint32Array(k);for(let O=0,j=this._hullStart;O<k;O++)this.hull[O]=j,j=r[j];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(_me(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=pd[--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],g=n[d];if(Cme(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*g],i[2*g+1])){n[t]=g,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<pd.length&&(pd[o++]=_)}else{if(o===0)break;t=pd[--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 _me(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function pg(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function Cme(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,g=u*u+d*d,v=f*f+h*h;return l*(d*v-g*h)-c*(u*v-g*f)+p*(u*h-d*f)<0}function $me(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 Sme(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 os(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;Nl(e,i,o),t[e[n]]>t[e[r]]&&Nl(e,n,r),t[e[o]]>t[e[r]]&&Nl(e,o,r),t[e[n]]>t[e[o]]&&Nl(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;Nl(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(os(e,t,o,r),os(e,t,n,a-1)):(os(e,t,n,a-1),os(e,t,o,r))}}function Nl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Tme(e){return e[0]}function Eme(e){return e[1]}const T4=1e-6;class Qo{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)>T4||Math.abs(this._y1-o)>T4)&&(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 qv{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 kme{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 g=0,v=0,x=r.length,_,w;g<x;g+=3,v+=2){const C=r[g]*2,b=r[g+1]*2,$=r[g+2]*2,T=t[C],k=t[C+1],O=t[b],j=t[b+1],S=t[$],E=t[$+1],A=O-T,D=j-k,R=S-T,M=E-k,I=(A*M-D*R)*2;if(Math.abs(I)<1e-9){if(o===void 0){o=a=0;for(const U of n)o+=t[U*2],a+=t[U*2+1];o/=n.length,a/=n.length}const F=1e9*Math.sign((o-T)*M-(a-k)*R);_=(T+S)/2-F*M,w=(k+E)/2+F*R}else{const F=1/I,U=A*A+D*D,P=R*R+M*M;_=T+(M*U-D*P)*F,w=k+(A*P-R*U)*F}s[v]=_,s[v+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 g=0;g<n.length;++g)l=n[g],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 Qo: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,g=a[h],v=a[h+1],x=a[p],_=a[p+1];this._renderSegment(g,v,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,g=this._project(f,h,s[p+2],s[p+3]);g&&this._renderSegment(f,h,g[0],g[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Qo: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 Qo: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 qv;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,g,v,x,_;if(c===0){if((p=this._clipSegment(o,a,s,l,c,u))===null)continue;[g,v,x,_]=p}else{if((p=this._clipSegment(s,l,o,a,u,c))===null)continue;[x,_,g,v]=p,d=f,f=this._edgecode(g,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(g,v):i=[g,v]}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 Ome=2*Math.PI,Qa=Math.pow;function Mme(e){return e[0]}function Ame(e){return e[1]}function Rme(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 jme(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Pp{static from(t,n=Mme,r=Ame,i){return new Pp("length"in t?Nme(t,n,r,i):Float64Array.from(Dme(t,n,r,i)))}constructor(t){this._delaunator=new Df(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&&Rme(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=jme(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Df(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 kme(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=Qa(n-c[t*2],2)+Qa(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const g=Qa(n-c[p*2],2)+Qa(r-c[p*2+1],2);if(g<d&&(d=g,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&&Qa(n-c[h*2],2)+Qa(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Qo: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 Qo: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,Ome)}return r&&r.value()}renderHull(t){const n=t==null?t=new Qo: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 qv;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Qo: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 qv;return this.renderTriangle(t,n),n.value()}}function Nme(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*Dme(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 If(){return If=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},If.apply(null,arguments)}function Pk(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 sr={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"},oy=function(e){return[e.x,e.y]},Mu=sk,Lk="cursor",Fk="top",Ime=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?oy:n,i=e.margin,o=i===void 0?Mu:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},Pme=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Mu:i,a=e.debug,s=Pp.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}},Bk=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?oy:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Mu:a,l=e.debug;return m.useMemo(function(){return Pme({points:Ime({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[r,t,i,o,s,l])},Lme=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=m.useMemo(function(){return Ef().domain(i).range([0,n])},[i,n]),s=m.useMemo(function(){return Ef().domain(o).range([0,r])},[o,r]),l=m.useMemo(function(){return t.map(function(c){return{x:a(c.x),y:s(c.y),data:c}})},[t,a,s]);return m.useMemo(function(){var c=Pp.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])},Fme=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return m.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},Bme=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?oy:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Mu: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,g=e.onMouseLeave,v=e.onMouseDown,x=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,b=e.onTouchMove,$=e.onTouchEnd,T=e.enableTouchCrosshair,k=T!==void 0&&T,O=e.tooltip,j=e.tooltipPosition,S=j===void 0?Lk:j,E=e.tooltipAnchor,A=E===void 0?Fk:E,D=m.useState(null),R=D[0],M=D[1],I=m.useRef(null);m.useEffect(function(){I.current=R},[I,R]);var F=m.useCallback(function(X){if(!t.current||n.length===0)return null;var G=hs(t.current,X),se=G[0],te=G[1],re=o.find(se,te),ae=re!==void 0?n[re]:null;if(ae&&u!==1/0){var ce=i(ae),ve=ce[0],ge=ce[1];ck(se,te,ve+l.left,ge+l.top)>u&&(re=null,ae=null)}return re===null||ae===null?null:[re,ae]},[t,o,n,i,l,u]),U=Ui(),P=U.showTooltipAt,z=U.showTooltipFromEvent,V=U.hideTooltip,H=m.useMemo(function(){if(O)return S==="cursor"?function(X,G){z(O(X),G,A)}:function(X){var G=i(X),se=G[0],te=G[1];P(O(X),[se+l.left,te+l.top],A)}},[P,z,O,S,A,i,l]),Y=m.useCallback(function(X){var G=F(X);if(M(G),a==null||a(G?G[1]:null),G){var se=G[1];H==null||H(se,X),h==null||h(G[1],X)}},[F,M,a,H,h]),Z=m.useCallback(function(X){var G=F(X);if(M(G),G){var se=G[0],te=G[1];if(a==null||a(te),H==null||H(te,X),I.current){var re=I.current,ae=re[0],ce=re[1];se!==ae?g==null||g(ce,X):p==null||p(te,X)}else h==null||h(te,X)}else a==null||a(null),V==null||V(),I.current&&(g==null||g(I.current[1],X))},[F,M,a,I,h,p,g,H,V]),J=m.useCallback(function(X){M(null),a==null||a(null),V(),g&&I.current&&g(I.current[1],X)},[M,a,I,V,g]),ee=m.useCallback(function(X){var G=F(X);M(G),G&&(v==null||v(G[1],X))},[F,M,v]),W=m.useCallback(function(X){var G=F(X);M(G),G&&(x==null||x(G[1],X))},[F,M,x]),L=m.useCallback(function(X){var G=F(X);M(G),G&&(_==null||_(G[1],X))},[F,M,_]),B=m.useCallback(function(X){var G=F(X);M(G),G&&(w==null||w(G[1],X))},[F,M,w]),q=m.useCallback(function(X){var G=F(X);k&&(M(G),a==null||a(G?G[1]:null)),G&&(C==null||C(G[1],X))},[F,M,a,k,C]),N=m.useCallback(function(X){var G=F(X);k&&(M(G),a==null||a(G?G[1]:null)),G&&(b==null||b(G[1],X))},[F,M,a,k,b]),Q=m.useCallback(function(X){k&&(M(null),a==null||a(null)),$&&I.current&&$(I.current[1],X)},[k,M,a,$,I]);return{current:R,handleMouseEnter:f?Y:void 0,handleMouseMove:f?Z:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?W:void 0,handleClick:f?L:void 0,handleDoubleClick:f?B:void 0,handleTouchStart:f?q:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?Q:void 0}},zme=["theme"],Wme=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=o===void 0?sr.layers:o,s=e.xDomain,l=s===void 0?sr.xDomain:s,c=e.yDomain,u=c===void 0?sr.yDomain:c,d=e.enableLinks,f=d===void 0?sr.enableLinks:d,h=e.linkLineWidth,p=h===void 0?sr.linkLineWidth:h,g=e.linkLineColor,v=g===void 0?sr.linkLineColor:g,x=e.enableCells,_=x===void 0?sr.enableCells:x,w=e.cellLineWidth,C=w===void 0?sr.cellLineWidth:w,b=e.cellLineColor,$=b===void 0?sr.cellLineColor:b,T=e.enablePoints,k=T===void 0?sr.enableCells:T,O=e.pointSize,j=O===void 0?sr.pointSize:O,S=e.pointColor,E=S===void 0?sr.pointColor:S,A=e.role,D=A===void 0?sr.role:A,R=e.forwardedRef,M=Ra(n,r,i),I=M.outerWidth,F=M.outerHeight,U=M.margin,P=M.innerWidth,z=M.innerHeight,V=Lme({data:t,width:P,height:z,xDomain:l,yDomain:u}),H=V.points,Y=V.delaunay,Z=V.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(J.links=y.jsx("path",{stroke:v,strokeWidth:p,fill:"none",d:Y.render()},"links")),_&&a.includes("cells")&&(J.cells=y.jsx("path",{d:Z.render(),fill:"none",stroke:$,strokeWidth:C},"cells")),k&&a.includes("points")&&(J.points=y.jsx("path",{stroke:"none",fill:E,d:Y.renderPoints(void 0,j/2)},"points")),a.includes("bounds")&&(J.bounds=y.jsx("path",{fill:"none",stroke:$,strokeWidth:C,d:Z.renderBounds()},"bounds"));var ee=Fme({points:H,delaunay:Y,voronoi:Z});return y.jsx(Ip,{width:I,height:F,margin:U,role:D,ref:R,children:a.map(function(W,L){return J[W]!==void 0?J[W]:typeof W=="function"?y.jsx(m.Fragment,{children:m.createElement(W,ee)},L):null})})},Ume=m.forwardRef(function(e,t){var n=e.theme,r=Pk(e,zme);return y.jsx(Ma,{isInteractive:!1,animate:!1,theme:n,children:y.jsx(Wme,If({},r,{forwardedRef:t}))})}),Hme=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Pk(e,Hme);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Ume,If({},a,{width:l,height:c,ref:t}))}})});var Vme=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Mu: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,g=e.onTouchStart,v=e.onTouchMove,x=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,C=e.detectionRadius,b=C===void 0?1/0:C,$=e.tooltip,T=e.tooltipPosition,k=T===void 0?Lk:T,O=e.tooltipAnchor,j=O===void 0?Fk:O,S=e.debug,E=m.useRef(null),A=Bk({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:S}),D=A.delaunay,R=A.voronoi,M=Bme({elementRef:E,nodes:t,delaunay:D,margin:o,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:g,onTouchMove:v,onTouchEnd:x,enableTouchCrosshair:w,tooltip:$,tooltipPosition:k,tooltipAnchor:j}),I=M.current,F=M.handleMouseEnter,U=M.handleMouseMove,P=M.handleMouseLeave,z=M.handleMouseDown,V=M.handleMouseUp,H=M.handleClick,Y=M.handleDoubleClick,Z=M.handleTouchStart,J=M.handleTouchMove,ee=M.handleTouchEnd,W=m.useMemo(function(){if(S&&R)return R.render()},[S,R]);return y.jsxs("g",{ref:E,transform:"translate("+-o.left+","+-o.top+")",children:[S&&R&&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:D.renderPoints(void 0,b)}),I&&y.jsx("path",{fill:"pink",opacity:.35,d:R.renderCell(I[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:F,onMouseMove:U,onMouseLeave:P,onMouseDown:z,onMouseUp:V,onTouchStart:Z,onTouchMove:J,onTouchEnd:ee,onClick:H,onDoubleClick:Y})]})},qme=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},Yme=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Dn(){return Dn=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},Dn.apply(null,arguments)}function Lp(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 E4,yi={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:m.memo(function(e){var t=e.point;return y.jsx(hb,{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:m.memo(function(e){var t=e.slice,n=e.axis,r=Ft(),i=n==="x"?"y":"x";return y.jsx(jT,{rows:t.points.map(function(o){return[y.jsx(RT,{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},rt=Dn({},yi,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Kn,axisLeft:Kn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),on=Dn({},yi,{pixelRatio:typeof window<"u"&&(E4=window.devicePixelRatio)!=null?E4:1,axisTop:null,axisRight:null,axisBottom:Kn,axisLeft:Kn});function Gme(e){return m.useMemo(function(){return Cb().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(ak(e))},[e])}function Kme(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return Gie().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(ak(t)).y0(n(r))},[t,n,r])}var Zme=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return m.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],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height: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],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[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])},Xme="line",zk=function(e){var t=e.data,n=e.xScale,r=n===void 0?yi.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?yi.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?yi.colors:u,f=e.curve,h=f===void 0?yi.curve:f,p=e.areaBaselineValue,g=p===void 0?yi.areaBaselineValue:p,v=e.pointColor,x=v===void 0?yi.pointColor:v,_=e.pointBorderColor,w=_===void 0?yi.pointBorderColor:_,C=e.enableSlices,b=C===void 0?rt.enableSlices:C,$=e.initialHiddenIds,T=$===void 0?rt.initialHiddenIds:$,k=m.useState(mme(Xme))[0],O=Is(i),j=Is(s),S=Jb(d,"id"),E=Ft(),A=Sr(x,E),D=Sr(w,E),R=m.useState(T??[]),M=R[0],I=R[1],F=m.useMemo(function(){return eme(t.filter(function(W){return M.indexOf(W.id)===-1}),r,a,l,c)},[t,M,r,a,l,c]),U=F.xScale,P=F.yScale,z=F.series,V=m.useMemo(function(){var W=t.map(function(B){return{id:B.id,label:""+B.id,color:S(B)}}),L=W.map(function(B){return Dn({},z.find(function(q){return q.id===B.id}),{color:B.color})}).filter(function(B){return!!B.id});return{legendData:W.map(function(B){return Dn({},B,{hidden:!L.find(function(q){return q.id===B.id})})}).reverse(),series:L}},[t,z,S]),H=V.legendData,Y=V.series,Z=m.useCallback(function(W){I(function(L){return L.indexOf(W)>-1?L.filter(function(B){return B!==W}):[].concat(L,[W])})},[]),J=function(W){var L=W.series,B=W.getPointColor,q=W.getPointBorderColor,N=W.formatX,Q=W.formatY;return m.useMemo(function(){return L.reduce(function(X,G,se){return[].concat(X,G.data.filter(function(te){return te.position.x!==null&&te.position.y!==null}).map(function(te,re){var ae={id:G.id+"."+re,indexInSeries:re,absIndex:X.length+re,seriesIndex:se,seriesId:G.id,seriesColor:G.color,x:te.position.x,y:te.position.y,data:Dn({},te.data,{xFormatted:N(te.data.x),yFormatted:Q(te.data.y)})};return ae.color=B({series:G,point:ae}),ae.borderColor=q(ae),ae}))},[])},[L,B,q,N,Q])}({series:Y,getPointColor:A,getPointBorderColor:D,formatX:O,formatY:j}),ee=Zme({componentId:k,enableSlices:b,points:J,width:l,height:c});return{legendData:H,toggleSeries:Z,lineGenerator:Gme(h),areaGenerator:Kme({curve:h,yScale:P,areaBaselineValue:g}),getColor:S,series:Y,xScale:U,yScale:P,slices:ee,points:J}},Qme=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=qn(),s=a.animate,l=a.config,c=Kb(o),u=li({color:r,config:l,immediate:!s});return y.jsx(Yt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Jme=m.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(Qme,Dn({path:t(o.data.map(function(a){return a.position}))},Dn({areaOpacity:n,areaBlendMode:r},o)),""+o.id)})})}),ege=m.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=m.useMemo(function(){return t(n)},[t,n]),a=Kb(o);return y.jsx(Yt.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),tge=m.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(ege,{points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})})}),nge=m.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,g=e.onTouchStart,v=e.onTouchMove,x=e.onTouchEnd,_=Ui(),w=_.showTooltipFromEvent,C=_.hideTooltip,b=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),l==null||l(t,R)},[w,o,t,r,s,l]),$=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),c==null||c(t,R)},[w,o,t,r,c]),T=m.useCallback(function(R){C(),s(null),u==null||u(t,R)},[C,s,u,t]),k=m.useCallback(function(R){d==null||d(t,R)},[t,d]),O=m.useCallback(function(R){f==null||f(t,R)},[t,f]),j=m.useCallback(function(R){h==null||h(t,R)},[t,h]),S=m.useCallback(function(R){p==null||p(t,R)},[t,p]),E=m.useCallback(function(R){w(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),g==null||g(t,R)},[r,g,s,w,t,o]),A=m.useCallback(function(R){var M=R.touches[0],I=document.elementFromPoint(M.clientX,M.clientY),F=I==null?void 0:I.getAttribute("data-ref");if(F){var U=n.find(function(P){return P.id===F});U&&(w(m.createElement(o,{slice:U,axis:r}),R,"right"),s(U))}v==null||v(t,R)},[r,v,s,w,t,n,o]),D=m.useCallback(function(R){C(),s(null),x==null||x(t,R)},[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:$,onMouseLeave:T,onMouseDown:k,onMouseUp:O,onClick:j,onDoubleClick:S,onTouchStart:E,onTouchMove:A,onTouchEnd:D,"data-ref":t.id})}),rge=m.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,g=e.onTouchMove,v=e.onTouchEnd;return y.jsx(y.Fragment,{children:t.map(function(x){return y.jsx(nge,{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:g,onTouchEnd:v},x.id)})})}),ige=m.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,g=e.ariaHidden,v=e.ariaDisabled,x=pde(a),_=Ui(),w=_.showTooltipAt,C=_.hideTooltip,b=t.slice(0).sort(function($,T){return $.indexInSeries-T.indexInSeries}).sort(function($,T){return T.seriesIndex-$.seriesIndex}).map(function($){return{id:$.id,x:$.x,y:$.y,datum:$.data,fill:$.color,stroke:$.borderColor,label:o?x($):null,ariaLabel:f?f($):void 0,ariaLabelledBy:h?h($):void 0,ariaDescribedBy:p?p($):void 0,ariaHidden:g?g($):void 0,ariaDisabled:v?v($):void 0,onFocus:l?function(){c($),w(m.createElement(u,{point:$}),[d.left+$.x,d.top+$.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return y.jsx("g",{children:b.map(function($){return y.jsx(ude,{x:$.x,y:$.y,datum:$.datum,symbol:n,size:r,color:$.fill,borderWidth:i,borderColor:$.stroke,label:$.label,labelYOffset:s,ariaLabel:$.ariaLabel,ariaLabelledBy:$.ariaLabelledBy,ariaDescribedBy:$.ariaDescribedBy,ariaHidden:$.ariaHidden,ariaDisabled:$.ariaDisabled,isFocusable:l,onFocus:$.onFocus,onBlur:$.onBlur,testId:"line.point."+$.id},$.id)})})}),oge=m.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,g=e.onTouchEnd,v=e.tooltip,x=e.debug,_=e.enableTouchCrosshair,w=Ui(),C=w.showTooltipAt,b=w.hideTooltip,$=m.useCallback(function(M,I){C(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),a==null||a(M,I)},[C,v,a,i]),T=m.useCallback(function(M,I){C(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),s==null||s(M,I)},[C,v,i.left,i.top,s]),k=m.useCallback(function(M,I){b(),l==null||l(M,I)},[b,l]),O=m.useCallback(function(M,I){c==null||c(M,I)},[c]),j=m.useCallback(function(M,I){u==null||u(M,I)},[u]),S=m.useCallback(function(M,I){d==null||d(M,I)},[d]),E=m.useCallback(function(M,I){f==null||f(M,I)},[f]),A=m.useCallback(function(M,I){C(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),h==null||h(M,I)},[i.left,i.top,h,C,v]),D=m.useCallback(function(M,I){C(m.createElement(v,{point:M}),[M.x+i.left,M.y+i.top],"top"),p==null||p(M,I)},[i.left,i.top,p,C,v]),R=m.useCallback(function(M,I){b(),g==null||g(M,I)},[g,b]);return y.jsx(Vme,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:$,onMouseMove:T,onMouseLeave:k,onMouseDown:O,onMouseUp:j,onClick:S,onDoubleClick:E,onTouchStart:A,onTouchMove:D,onTouchEnd:R,enableTouchCrosshair:_,debug:x})}),age=["isInteractive","animate","motionConfig","theme","renderWrapper"];function sge(e){var t=e.data,n=e.xScale,r=n===void 0?rt.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?rt.yScale:o,s=e.yFormat,l=e.curve,c=l===void 0?rt.curve:l,u=e.margin,d=e.width,f=e.height,h=e.colors,p=h===void 0?rt.colors:h,g=e.lineWidth,v=g===void 0?rt.lineWidth:g,x=e.layers,_=x===void 0?rt.layers:x,w=e.enableArea,C=w===void 0?rt.enableArea:w,b=e.areaBaselineValue,$=b===void 0?rt.areaBaselineValue:b,T=e.areaOpacity,k=T===void 0?rt.areaOpacity:T,O=e.areaBlendMode,j=O===void 0?rt.areaBlendMode:O,S=e.enablePoints,E=S===void 0?rt.enablePoints:S,A=e.pointSymbol,D=e.pointSize,R=D===void 0?rt.pointSize:D,M=e.pointColor,I=M===void 0?rt.pointColor:M,F=e.pointBorderWidth,U=F===void 0?rt.pointBorderWidth:F,P=e.pointBorderColor,z=P===void 0?rt.pointBorderColor:P,V=e.enablePointLabel,H=V===void 0?rt.enablePointLabel:V,Y=e.pointLabel,Z=Y===void 0?rt.pointLabel:Y,J=e.pointLabelYOffset,ee=e.enableGridX,W=ee===void 0?rt.enableGridX:ee,L=e.gridXValues,B=e.enableGridY,q=B===void 0?rt.enableGridY:B,N=e.gridYValues,Q=e.axisTop,X=e.axisRight,G=e.axisBottom,se=G===void 0?rt.axisBottom:G,te=e.axisLeft,re=te===void 0?rt.axisLeft:te,ae=e.defs,ce=ae===void 0?rt.defs:ae,ve=e.fill,ge=ve===void 0?rt.fill:ve,be=e.markers,Te=e.legends,de=Te===void 0?rt.legends:Te,le=e.isInteractive,we=le===void 0?rt.isInteractive:le,Be=e.useMesh,Bt=Be===void 0?rt.useMesh:Be,Le=e.debugMesh,gt=Le===void 0?rt.debugMesh:Le,_t=e.onMouseEnter,nn=e.onMouseMove,Ee=e.onMouseLeave,je=e.onMouseDown,vt=e.onMouseUp,qe=e.onClick,bt=e.onDoubleClick,at=e.onTouchStart,At=e.onTouchMove,Ke=e.onTouchEnd,De=e.tooltip,We=De===void 0?rt.tooltip:De,Qe=e.enableSlices,Ie=Qe===void 0?rt.enableSlices:Qe,Je=e.debugSlices,ht=Je===void 0?rt.debugSlices:Je,nt=e.sliceTooltip,Ne=nt===void 0?rt.sliceTooltip:nt,ke=e.enableCrosshair,He=ke===void 0?rt.enableCrosshair:ke,yt=e.crosshairType,et=yt===void 0?rt.crosshairType:yt,pt=e.enableTouchCrosshair,tn=pt===void 0?rt.enableTouchCrosshair:pt,zt=e.role,Ht=zt===void 0?rt.role:zt,vn=e.ariaLabel,Kt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Ze=e.isFocusable,Ct=Ze===void 0?rt.isFocusable:Ze,cn=e.pointAriaLabel,Zt=e.pointAriaLabelledBy,Pe=e.pointAriaDescribedBy,Fe=e.pointAriaHidden,ct=e.pointAriaDisabled,Rt=e.initialHiddenIds,$t=Rt===void 0?rt.initialHiddenIds:Rt,Xe=e.forwardedRef,St=Ra(d,f,u),kr=St.margin,fn=St.innerWidth,hn=St.innerHeight,Pn=St.outerWidth,ko=St.outerHeight,wt=zk({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:fn,height:hn,colors:p,curve:c,areaBaselineValue:$,pointColor:I,pointBorderColor:z,enableSlices:Ie,initialHiddenIds:$t}),Oo=wt.legendData,Me=wt.toggleSeries,Br=wt.lineGenerator,Mo=wt.areaGenerator,ja=wt.series,Na=wt.xScale,di=wt.yScale,Au=wt.slices,fi=wt.points,ll=m.useState(null),Ao=ll[0],cl=ll[1],Ru=m.useState(null),Ro=Ru[0],ju=Ru[1],Ln={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(W||q)&&(Ln.grid=y.jsx(Dk,{width:fn,height:hn,xScale:W?Na:null,yScale:q?di:null,xValues:L,yValues:N},"grid")),_.includes("markers")&&Array.isArray(be)&&be.length>0&&(Ln.markers=y.jsx(ok,{markers:be,width:fn,height:hn,xScale:Na,yScale:di},"markers")),_.includes("axes")&&(Ln.axes=y.jsx(Nk,{xScale:Na,yScale:di,width:fn,height:hn,top:Q,right:X,bottom:se,left:re},"axes")),_.includes("lines")&&(Ln.lines=y.jsx(tge,{series:ja,lineGenerator:Br,lineWidth:v},"lines")),_.includes("legends")&&de.length>0&&(Ln.legends=y.jsx(m.Fragment,{children:de.map(function(zr,Hi){return y.jsx(ny,Dn({},zr,{containerWidth:fn,containerHeight:hn,data:zr.data||Oo,toggleSerie:zr.toggleSerie?Me:void 0}),Hi)})},"legends"));var zp=Xb(ce,ja,ge);C&&(Ln.areas=y.jsx(Jme,{areaGenerator:Mo,areaOpacity:k,areaBlendMode:j,series:ja},"areas")),we&&Ie!==!1&&(Ln.slices=y.jsx(rge,{slices:Au,axis:Ie,debug:ht,tooltip:Ne,current:Ro,setCurrent:ju,onMouseEnter:_t,onMouseMove:nn,onMouseLeave:Ee,onMouseDown:je,onMouseUp:vt,onClick:qe,onDoubleClick:bt,onTouchStart:at,onTouchMove:At,onTouchEnd:Ke},"slices")),E&&(Ln.points=y.jsx(ige,{points:fi,symbol:A,size:R,borderWidth:U,enableLabel:H,label:Z,labelYOffset:J,isFocusable:Ct,setCurrentPoint:cl,tooltip:We,margin:kr,ariaLabel:cn,ariaLabelledBy:Zt,ariaDescribedBy:Pe,ariaHidden:Fe,ariaDisabled:ct},"points")),we&&He&&(Ao!==null&&(Ln.crosshair=y.jsx(Tv,{width:fn,height:hn,x:Ao.x,y:Ao.y,type:et},"crosshair")),Ro!==null&&Ie&&(Ln.crosshair=y.jsx(Tv,{width:fn,height:hn,x:Ro.x,y:Ro.y,type:Ie},"crosshair"))),we&&Bt&&Ie===!1&&(Ln.mesh=y.jsx(oge,{points:fi,width:fn,height:hn,margin:kr,setCurrent:cl,onMouseEnter:_t,onMouseMove:nn,onMouseLeave:Ee,onMouseDown:je,onMouseUp:vt,onClick:qe,onDoubleClick:bt,onTouchStart:at,onTouchMove:At,onTouchEnd:Ke,tooltip:We,enableTouchCrosshair:tn,debug:gt},"mesh"));var Wp=Dn({},e,{innerWidth:fn,innerHeight:hn,series:ja,slices:Au,points:fi,xScale:Na,yScale:di,lineGenerator:Br,areaGenerator:Mo,currentPoint:Ao,setCurrentPoint:cl,currentSlice:Ro,setCurrentSlice:ju});return y.jsx(Ip,{defs:zp,width:Pn,height:ko,margin:kr,role:Ht,ariaLabel:vn,ariaLabelledBy:Kt,ariaDescribedBy:$e,isFocusable:Ct,ref:Xe,children:_.map(function(zr,Hi){return typeof zr=="function"?y.jsx(m.Fragment,{children:zr(Wp)},Hi):Ln[zr]})})}var lge=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?rt.isInteractive:n,i=e.animate,o=i===void 0?rt.animate:i,a=e.motionConfig,s=a===void 0?rt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=Lp(e,age);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(sge,Dn({isInteractive:r},u,{forwardedRef:t}))})}),cge=["defaultWidth","defaultHeight","onResize","debounceResize"],uge=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Lp(e,cge);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(lge,Dn({width:l,height:c},a,{ref:t}))}})}),dge=["isInteractive","renderWrapper","theme"],fge=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=i===void 0?on.pixelRatio:i,a=e.data,s=e.xScale,l=s===void 0?on.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?on.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?on.curve:h,g=e.layers,v=g===void 0?on.layers:g,x=e.colors,_=x===void 0?on.colors:x,w=e.lineWidth,C=w===void 0?on.lineWidth:w,b=e.enableArea,$=b===void 0?on.enableArea:b,T=e.areaBaselineValue,k=T===void 0?on.areaBaselineValue:T,O=e.areaOpacity,j=O===void 0?on.areaOpacity:O,S=e.enablePoints,E=S===void 0?on.enablePoints:S,A=e.pointSize,D=A===void 0?on.pointSize:A,R=e.pointColor,M=R===void 0?on.pointColor:R,I=e.pointBorderWidth,F=I===void 0?on.pointBorderWidth:I,U=e.pointBorderColor,P=U===void 0?on.pointBorderColor:U,z=e.enableGridX,V=z===void 0?on.enableGridX:z,H=e.gridXValues,Y=e.enableGridY,Z=Y===void 0?on.enableGridY:Y,J=e.gridYValues,ee=e.axisTop,W=e.axisRight,L=e.axisBottom,B=L===void 0?on.axisBottom:L,q=e.axisLeft,N=q===void 0?on.axisLeft:q,Q=e.legends,X=Q===void 0?on.legends:Q,G=e.isInteractive,se=G===void 0?on.isInteractive:G,te=e.debugMesh,re=te===void 0?on.debugMesh:te,ae=e.onMouseLeave,ce=e.onMouseDown,ve=e.onMouseUp,ge=e.onClick,be=e.onDoubleClick,Te=e.tooltip,de=Te===void 0?on.tooltip:Te,le=e.role,we=e.forwardedRef,Be=m.useRef(null),Bt=Ra(t,n,r),Le=Bt.margin,gt=Bt.innerWidth,_t=Bt.innerHeight,nn=Bt.outerWidth,Ee=Bt.outerHeight,je=Ft(),vt=m.useState(null),qe=vt[0],bt=vt[1],at=zk({data:a,xScale:l,xFormat:c,yScale:d,yFormat:f,width:gt,height:_t,colors:_,curve:p,areaBaselineValue:k,pointColor:M,pointBorderColor:P}),At=at.lineGenerator,Ke=at.areaGenerator,De=at.series,We=at.xScale,Qe=at.yScale,Ie=at.points,Je=m.useMemo(function(){return{innerWidth:gt,innerHeight:_t,series:De,points:Ie,xScale:We,yScale:Qe,lineWidth:C,lineGenerator:At,areaGenerator:Ke,currentPoint:qe,setCurrentPoint:bt}},[gt,_t,De,Ie,We,Qe,C,At,Ke,qe,bt]),ht=Bk({points:Ie,width:gt,height:_t,debug:re}),nt=ht.delaunay,Ne=ht.voronoi;m.useEffect(function(){if(Be.current!==null){Be.current.width=nn*o,Be.current.height=Ee*o;var $e=Be.current.getContext("2d");$e.scale(o,o),$e.fillStyle=je.background,$e.fillRect(0,0,nn,Ee),$e.translate(Le.left,Le.top),v.forEach(function(Ze){var Ct;typeof Ze=="function"&&Ze($e,Je);var cn=(Ct=je.grid.line.strokeWidth)!=null?Ct:0;if(Ze==="grid"&&typeof cn!="string"&&cn>0&&($e.lineWidth=cn,$e.strokeStyle=je.grid.line.stroke,V&&Nf($e,{width:gt,height:_t,scale:We,axis:"x",values:H}),Z&&Nf($e,{width:gt,height:_t,scale:Qe,axis:"y",values:J})),Ze==="axes"&&Ik($e,{xScale:We,yScale:Qe,width:gt,height:_t,top:ee,right:W,bottom:B,left:N,theme:je}),Ze==="areas"&&$===!0){$e.save(),$e.globalAlpha=j,Ke.context($e);for(var Zt=De.length-1;Zt>=0;Zt--)$e.fillStyle=De[Zt].color,$e.beginPath(),Ke(De[Zt].data.map(function(Fe){return Fe.position})),$e.fill();$e.restore()}if(Ze==="lines"&&(At.context($e),De.forEach(function(Fe){$e.strokeStyle=Fe.color,$e.lineWidth=C,$e.beginPath(),At(Fe.data.map(function(ct){return ct.position})),$e.stroke()})),Ze==="points"&&E===!0&&D>0&&Ie.forEach(function(Fe){$e.fillStyle=Fe.color,$e.beginPath(),$e.arc(Fe.x,Fe.y,D/2,0,2*Math.PI),$e.fill(),F>0&&($e.strokeStyle=Fe.borderColor,$e.lineWidth=F,$e.stroke())}),Ze==="mesh"&&re===!0&&Ne!==void 0&&(qme($e,Ne),qe&&Yme($e,Ne,qe.absIndex)),Ze==="legends"){var Pe=De.map(function(Fe){return{id:Fe.id,label:Fe.id,color:Fe.color}}).reverse();X.forEach(function(Fe){ry($e,Dn({},Fe,{data:Fe.data||Pe,containerWidth:gt,containerHeight:_t,theme:je}))})}})}},[Be,gt,nn,_t,Ee,Le.left,Le.top,o,v,je,At,De,We,Qe,V,H,Z,J,ee,W,B,N,X,Ie,E,D,F,qe,Je,re,$,Ke,j,C,Ne]);var ke=m.useCallback(function($e){if(!Be.current)return null;var Ze=hs(Be.current,$e),Ct=Ze[0],cn=Ze[1];if(!uk(Le.left,Le.top,gt,_t,Ct,cn))return null;var Zt=nt.find(Ct-Le.left,cn-Le.top);return Ie[Zt]},[Be,Le,gt,_t,nt,Ie]),He=Ui(),yt=He.showTooltipFromEvent,et=He.hideTooltip,pt=m.useCallback(function($e){var Ze=ke($e);bt(Ze),Ze?yt(m.createElement(de,{point:Ze}),$e):et()},[ke,bt,yt,et,de]),tn=m.useCallback(function($e){et(),bt(null),qe&&(ae==null||ae(qe,$e))},[et,bt,ae,qe]),zt=m.useCallback(function($e){if(ce){var Ze=ke($e);Ze&&ce(Ze,$e)}},[ke,ce]),Ht=m.useCallback(function($e){if(ve){var Ze=ke($e);Ze&&ve(Ze,$e)}},[ke,ve]),vn=m.useCallback(function($e){if(ge){var Ze=ke($e);Ze&&ge(Ze,$e)}},[ke,ge]),Kt=m.useCallback(function($e){if(be){var Ze=ke($e);Ze&&be(Ze,$e)}},[ke,be]);return y.jsx("canvas",{ref:Qb(Be,we),width:nn*o,height:Ee*o,style:{width:nn,height:Ee,cursor:se?"auto":"normal"},onMouseEnter:se?pt:void 0,onMouseMove:se?pt:void 0,onMouseLeave:se?tn:void 0,onMouseDown:se?zt:void 0,onMouseUp:se?Ht:void 0,onClick:se?vn:void 0,onDoubleClick:se?Kt:void 0,role:le})},hge=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Lp(e,dge);return y.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(fge,Dn({},o,{forwardedRef:t}))})}),pge=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=Lp(e,pge);return y.jsx(Aa,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(a){var s=a.width,l=a.height;return y.jsx(hge,Dn({width:s,height:l},o,{ref:t}))}})});var mge=Sk;function gge(e,t){var n=[];return mge(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var vge=gge,bge=GE,yge=vge,xge=iy,wge=or;function _ge(e,t){var n=wge(e)?bge:yge;return n(e,xge(t))}var Cge=_ge;const $ge=sn(Cge);var Sge=Wi,Tge=Er,Ege="[object Number]";function kge(e){return typeof e=="number"||Tge(e)&&Sge(e)==Ege}var Oge=kge;const k4=sn(Oge);function Mge(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Age=Mge,Rge=nl,jge=Tu;function Nge(e,t){return e&&Rge(t,jge(t),e)}var Dge=Nge,Ige=nl,Pge=Cu;function Lge(e,t){return e&&Ige(t,Pge(t),e)}var Fge=Lge,Bge=nl,zge=Yb;function Wge(e,t){return Bge(e,zge(e),t)}var Uge=Wge,Hge=Vb,Vge=rb,qge=Yb,Yge=KE,Gge=Object.getOwnPropertySymbols,Kge=Gge?function(e){for(var t=[];e;)Hge(t,qge(e)),e=Vge(e);return t}:Yge,Wk=Kge,Zge=nl,Xge=Wk;function Qge(e,t){return Zge(e,Xge(e),t)}var Jge=Qge,eve=YE,tve=Wk,nve=Cu;function rve(e){return eve(e,nve,tve)}var Uk=rve,ive=Object.prototype,ove=ive.hasOwnProperty;function ave(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ove.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var sve=ave,lve=nb;function cve(e,t){var n=t?lve(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var uve=cve,dve=/\w*$/;function fve(e){var t=new e.constructor(e.source,dve.exec(e));return t.lastIndex=e.lastIndex,t}var hve=fve,O4=Zs,M4=O4?O4.prototype:void 0,A4=M4?M4.valueOf:void 0;function pve(e){return A4?Object(A4.call(e)):{}}var mve=pve,gve=nb,vve=uve,bve=hve,yve=mve,xve=uT,wve="[object Boolean]",_ve="[object Date]",Cve="[object Map]",$ve="[object Number]",Sve="[object RegExp]",Tve="[object Set]",Eve="[object String]",kve="[object Symbol]",Ove="[object ArrayBuffer]",Mve="[object DataView]",Ave="[object Float32Array]",Rve="[object Float64Array]",jve="[object Int8Array]",Nve="[object Int16Array]",Dve="[object Int32Array]",Ive="[object Uint8Array]",Pve="[object Uint8ClampedArray]",Lve="[object Uint16Array]",Fve="[object Uint32Array]";function Bve(e,t,n){var r=e.constructor;switch(t){case Ove:return gve(e);case wve:case _ve:return new r(+e);case Mve:return vve(e,n);case Ave:case Rve:case jve:case Nve:case Dve:case Ive:case Pve:case Lve:case Fve:return xve(e,n);case Cve:return new r;case $ve:case Eve:return new r(e);case Sve:return bve(e);case Tve:return new r;case kve:return yve(e)}}var zve=Bve,Wve=Dp,Uve=Er,Hve="[object Map]";function Vve(e){return Uve(e)&&Wve(e)==Hve}var qve=Vve,Yve=qve,Gve=tl,R4=qh,j4=R4&&R4.isMap,Kve=j4?Gve(j4):Yve,Zve=Kve,Xve=Dp,Qve=Er,Jve="[object Set]";function e0e(e){return Qve(e)&&Xve(e)==Jve}var t0e=e0e,n0e=t0e,r0e=tl,N4=qh,D4=N4&&N4.isSet,i0e=D4?r0e(D4):n0e,o0e=i0e,a0e=Uh,s0e=Age,l0e=cb,c0e=Dge,u0e=Fge,d0e=lT,f0e=dT,h0e=Uge,p0e=Jge,m0e=ZE,g0e=Uk,v0e=Dp,b0e=sve,y0e=zve,x0e=hT,w0e=or,_0e=Vh,C0e=Zve,$0e=ui,S0e=o0e,T0e=Tu,E0e=Cu,k0e=1,O0e=2,M0e=4,Hk="[object Arguments]",A0e="[object Array]",R0e="[object Boolean]",j0e="[object Date]",N0e="[object Error]",Vk="[object Function]",D0e="[object GeneratorFunction]",I0e="[object Map]",P0e="[object Number]",qk="[object Object]",L0e="[object RegExp]",F0e="[object Set]",B0e="[object String]",z0e="[object Symbol]",W0e="[object WeakMap]",U0e="[object ArrayBuffer]",H0e="[object DataView]",V0e="[object Float32Array]",q0e="[object Float64Array]",Y0e="[object Int8Array]",G0e="[object Int16Array]",K0e="[object Int32Array]",Z0e="[object Uint8Array]",X0e="[object Uint8ClampedArray]",Q0e="[object Uint16Array]",J0e="[object Uint32Array]",Xt={};Xt[Hk]=Xt[A0e]=Xt[U0e]=Xt[H0e]=Xt[R0e]=Xt[j0e]=Xt[V0e]=Xt[q0e]=Xt[Y0e]=Xt[G0e]=Xt[K0e]=Xt[I0e]=Xt[P0e]=Xt[qk]=Xt[L0e]=Xt[F0e]=Xt[B0e]=Xt[z0e]=Xt[Z0e]=Xt[X0e]=Xt[Q0e]=Xt[J0e]=!0;Xt[N0e]=Xt[Vk]=Xt[W0e]=!1;function Od(e,t,n,r,i,o){var a,s=t&k0e,l=t&O0e,c=t&M0e;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!$0e(e))return e;var u=w0e(e);if(u){if(a=b0e(e),!s)return f0e(e,a)}else{var d=v0e(e),f=d==Vk||d==D0e;if(_0e(e))return d0e(e,s);if(d==qk||d==Hk||f&&!i){if(a=l||f?{}:x0e(e),!s)return l?p0e(e,u0e(a,e)):h0e(e,c0e(a,e))}else{if(!Xt[d])return i?e:{};a=y0e(e,d,s)}}o||(o=new a0e);var h=o.get(e);if(h)return h;o.set(e,a),S0e(e)?e.forEach(function(v){a.add(Od(v,t,n,v,e,o))}):C0e(e)&&e.forEach(function(v,x){a.set(x,Od(v,t,n,x,e,o))});var p=c?l?g0e:m0e:l?E0e:T0e,g=u?void 0:p(e);return s0e(g||e,function(v,x){g&&(x=v,v=e[x]),l0e(a,x,Od(v,t,n,x,e,o))}),a}var e1e=Od;function t1e(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 n1e=t1e,r1e=$u,i1e=n1e;function o1e(e,t){return t.length<2?e:r1e(e,i1e(t,0,-1))}var a1e=o1e,s1e=rl,l1e=zE,c1e=a1e,u1e=il;function d1e(e,t){return t=s1e(t,e),e=c1e(e,t),e==null||delete e[u1e(l1e(t))]}var f1e=d1e,h1e=ab;function p1e(e){return h1e(e)?void 0:e}var m1e=p1e,g1e=Zh,v1e=e1e,b1e=f1e,y1e=rl,x1e=nl,w1e=m1e,_1e=VE,C1e=Uk,$1e=1,S1e=2,T1e=4,E1e=_1e(function(e,t){var n={};if(e==null)return n;var r=!1;t=g1e(t,function(o){return o=y1e(o,e),r||(r=o.length>1),o}),x1e(e,C1e(e),n),r&&(n=v1e(n,$1e|S1e|T1e,w1e));for(var i=t.length;i--;)b1e(n,t[i]);return n}),k1e=E1e;const Yk=sn(k1e);function ai(){return ai=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},ai.apply(null,arguments)}var Yv={dotSize:4,noteWidth:120,noteTextOffset:8},O1e=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},M1e=function(e){var t=typeof e;return t==="string"||t==="function"},Vc=function(e){return e.type==="circle"},Gv=function(e){return e.type==="dot"},qc=function(e){return e.type==="rect"},A1e=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,$ge(t,a.match).map(function(l){var c=r(l),u=i(l);return(Vc(a)||qc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),ai({},Yk(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},R1e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return ide(Eu(i))},Gk=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?Yv.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Yv.noteTextOffset:c;if(k4(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(k4(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=R1e(r,i,t,n);if(Vc(e)){var p=oa(xr(h),e.size/2);d+=p.x,f+=p.y}if(qc(e)){var g=Math.round((h+90)/45)%8;g===0&&(f-=e.height/2),g===1&&(d+=e.width/2,f-=e.height/2),g===2&&(d+=e.width/2),g===3&&(d+=e.width/2,f+=e.height/2),g===4&&(f+=e.height/2),g===5&&(d-=e.width/2,f+=e.height/2),g===6&&(d-=e.width/2),g===7&&(d-=e.width/2,f-=e.height/2)}var v=t,x=t;return(h+90)%360>180?(v-=l,x-=l):x+=l,{points:[[d,f],[t,n],[x,n]],text:[v,n-u],angle:h+90}},Kk=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return A1e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},j1e=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return ai({},n,{computed:Gk(ai({},n))})})},[t])},N1e=function(e){return m.useMemo(function(){return Gk(e)},[e])},D1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Ft(),a=qn(),s=a.animate,l=a.config,c=li({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?m.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[o.annotations.text.outlineWidth>0&&y.jsx(Yt.text,{x:c.x,y:c.y,style:ai({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),y.jsx(Yt.text,{x:c.x,y:c.y,style:Yk(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},I4=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Ft(),o=m.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=Kb(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=ai({},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(Yt.path,{fill:"none",d:a,style:s})},I1e=function(e){var t=e.x,n=e.y,r=e.size,i=Ft(),o=qn(),a=o.animate,s=o.config,l=li({x:t,y:n,radius:r/2,config:s,immediate:!a});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Yt.circle,{cx:l.x,cy:l.y,r:l.radius,style:ai({},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(Yt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},P1e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Yv.dotSize:r,o=Ft(),a=qn(),s=a.animate,l=a.config,c=li({x:t,y:n,radius:i/2,config:l,immediate:!s});return y.jsxs(y.Fragment,{children:[o.annotations.outline.outlineWidth>0&&y.jsx(Yt.circle,{cx:c.x,cy:c.y,r:c.radius,style:ai({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),y.jsx(Yt.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},L1e=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=Ft(),l=qn(),c=l.animate,u=l.config,d=li({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(Yt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:ai({},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(Yt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},F1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=N1e(e);if(!O1e(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(I4,{points:o.points,isOutline:!0}),Vc(e)&&y.jsx(I1e,{x:n,y:r,size:e.size}),Gv(e)&&y.jsx(P1e,{x:n,y:r,size:e.size}),qc(e)&&y.jsx(L1e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(I4,{points:o.points}),y.jsx(D1e,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},P4=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)})},B1e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!M1e(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(),P4(e,i.computed.points),e.stroke(),e.lineCap="butt"),Vc(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()),Gv(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()),qc(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(),P4(e,i.computed.points),e.stroke(),Vc(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()),Gv(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),qc(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())},z1e=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 Tt(){return Tt=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},Tt.apply(null,arguments)}function Eo(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 L4,W1e=function(e){var t=e.bars,n=e.annotations,r=Kk({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(F1e,Tt({},i),o)})})},U1e=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(ny,Tt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},H1e=["data"],V1e=function(e){var t,n=e.bar,r=n.data,i=Eo(n,H1e),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,g=o.textAnchor,v=e.borderRadius,x=e.borderWidth,_=e.label,w=e.shouldRenderLabel,C=e.isInteractive,b=e.onClick,$=e.onMouseEnter,T=e.onMouseLeave,k=e.tooltip,O=e.isFocusable,j=e.ariaLabel,S=e.ariaLabelledBy,E=e.ariaDescribedBy,A=e.ariaDisabled,D=e.ariaHidden,R=Ft(),M=Ui(),I=M.showTooltipFromEvent,F=M.showTooltipAt,U=M.hideTooltip,P=m.useMemo(function(){return function(){return m.createElement(k,Tt({},i,r))}},[k,i,r]),z=m.useCallback(function(ee){b==null||b(Tt({color:i.color},r),ee)},[i,r,b]),V=m.useCallback(function(ee){return I(P(),ee)},[I,P]),H=m.useCallback(function(ee){$==null||$(r,ee),I(P(),ee)},[r,$,I,P]),Y=m.useCallback(function(ee){T==null||T(r,ee),U()},[r,U,T]),Z=m.useCallback(function(){F(P(),[i.absX+i.width/2,i.absY])},[F,P,i]),J=m.useCallback(function(){U()},[U]);return y.jsxs(Yt.g,{transform:h,children:[y.jsx(Yt.rect,{width:xo(p,function(ee){return Math.max(ee,0)}),height:xo(l,function(ee){return Math.max(ee,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:x,stroke:a,focusable:O,tabIndex:O?0:void 0,"aria-label":j?j(r):void 0,"aria-labelledby":S?S(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":A?A(r):void 0,"aria-hidden":D?D(r):void 0,onMouseEnter:C?H:void 0,onMouseMove:C?V:void 0,onMouseLeave:C?Y:void 0,onClick:C?z:void 0,onFocus:C&&O?Z:void 0,onBlur:C&&O?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&y.jsx(sl,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Tt({},R.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},q1e=["color","label"],Y1e=function(e){var t=e.color,n=e.label,r=Eo(e,q1e);return y.jsx(hb,{id:n,value:r.formattedValue,enableChip:!0,color:t})},qt={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:Y1e,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Vt=Tt({},qt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:V1e,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),pn=Tt({},qt,{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,g=t.labelY,v=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),z1e(e,a,s,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=v==="middle"?"center":v,xa(e,h,d,a+p,s+g))},pixelRatio:typeof window<"u"&&(L4=window.devicePixelRatio)!=null?L4:1}),Zk=function(e,t,n,r,i,o){return Hc(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},Xk=function(e,t){return e.map(function(n){return Tt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Fp=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Bp=function(e){return[e,Number(e)]};function Qk(e,t,n,r){return e===void 0&&(e=qt.layout),n===void 0&&(n=qt.labelPosition),r===void 0&&(r=qt.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 G1e=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],ay=function(e,t){return e>t},Jk=function(e,t){return e<t},eO=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},K1e=function(e){return ay(e,0)?0:e},Z1e=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,g=n?Jk:ay,v=i.map(Fp),x=[];return d.forEach(function(_,w){return eO(0,f.domain().length).forEach(function(C){var b,$,T,k=Bp(i[C][_]),O=k[0],j=k[1],S=s(i[C]),E=((b=f(S))!=null?b:0)+t*w+u*w,A=g($=j,0)?(T=h($))!=null?T:0:r,D=function(M,I){var F;return g(M,0)?r-I:((F=h(M))!=null?F:0)-r}(j,A),R={id:_,value:O===null?O:j,formattedValue:o(j),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:_+"."+R.indexValue,index:x.length,data:R,x:E,y:A,absX:p.left+E,absY:p.top+A,width:t,height:D,color:a(R),label:l(R)})})}),x},X1e=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,g=n?Jk:ay,v=i.map(Fp),x=[];return c.forEach(function(_,w){return eO(0,h.domain().length).forEach(function(C){var b,$,T,k=Bp(i[C][_]),O=k[0],j=k[1],S=a(i[C]),E=g($=j,0)?r:(T=f($))!=null?T:0,A=((b=h(S))!=null?b:0)+t*w+d*w,D=function(M,I){var F;return g(M,0)?((F=f(M))!=null?F:0)-r:r-I}(j,E),R={id:_,value:O===null?O:j,formattedValue:o(j),hidden:!1,index:C,indexValue:S,data:v[C]};x.push({key:_+"."+R.indexValue,index:x.length,data:R,x:E,y:A,absX:p.left+E,absY:p.top+A,width:D,height:t,color:s(R),label:l(R)})})}),x},Q1e=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,g=Eo(e,G1e),v=g.keys.filter(function(I){return!p.includes(I)}),x=Xk(g.data,v),_=i==="vertical"?["y","x",o]:["x","y",a],w=_[0],C=_[1],b=_[2],$=Zk(x,g.getIndex,l,f,b,C),T=d.min==="auto"?K1e:function(I){return I},k=x.reduce(function(I,F){return[].concat(I,v.map(function(U){return F[U]}))},[]).filter(Boolean),O=T(Math.min.apply(Math,k)),j=(r=Math.max.apply(Math,k),isFinite(r)?r:0),S=Hc(d,{all:k,min:O,max:j},w==="x"?o:a,w),E=i==="vertical"?[$,S]:[S,$],A=E[0],D=E[1],R=($.bandwidth()-u*(v.length-1))/v.length,M=[Tt({},g,{data:x,keys:v,innerPadding:u,xScale:A,yScale:D}),R,(t=d.reverse)!=null&&t,(n=S(0))!=null?n:0];return{xScale:A,yScale:D,bars:R>0?i==="vertical"?Z1e.apply(void 0,M):X1e.apply(void 0,M):[]}},J1e=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],tO=function(e){var t;return e.some(Array.isArray)?tO((t=[]).concat.apply(t,e)):e},ebe=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,g){var v,x,_=h[g],w=(v=c(o(_.data)))!=null?v:0,C=((x=function(j){return u(j[n?0:1])}(_))!=null?x:0)+.5*s,b=function(j,S){var E;return((E=u(j[n?1:0]))!=null?E:0)-S}(_,C)-s,$=Bp(_.data[h.key]),T=$[0],k=$[1],O={id:h.key,value:T===null?T:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Fp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:w,y:C,absX:d.left+w,absY:d.top+C,width:t,height:b,color:i(O),label:a(O)})})}),f},tbe=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,g){var v,x,_=h[g],w=(v=u(o(_.data)))!=null?v:0,C=((x=function(j){return c(j[n?1:0])}(_))!=null?x:0)+.5*s,b=function(j,S){var E;return((E=c(j[n?0:1]))!=null?E:0)-S}(_,C)-s,$=Bp(_.data[h.key]),T=$[0],k=$[1],O={id:h.key,value:T===null?T:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Fp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:C,y:w,absX:d.left+C,absY:d.top+w,width:b,height:t,color:i(O),label:a(O)})})}),f},nbe=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=Eo(e,J1e),p=h.keys.filter(function(R){return!f.includes(R)}),g=voe().keys(p).offset(boe)(Xk(r,p)),v=i==="vertical"?["y","x",o]:["x","y",a],x=v[0],_=v[1],w=v[2],C=Zk(r,h.getIndex,l,u,w,_),b=(n=tO(g),c.type==="log"?n.filter(function(R){return R!==0}):n),$=Math.min.apply(Math,b),T=Math.max.apply(Math,b),k=Hc(c,{all:b,min:$,max:T},x==="x"?o:a,x),O=i==="vertical"?[C,k]:[k,C],j=O[0],S=O[1],E=h.innerPadding>0?h.innerPadding:0,A=C.bandwidth(),D=[Tt({},h,{innerPadding:E,stackedData:g,xScale:j,yScale:S}),A,(t=c.reverse)!=null&&t];return{xScale:j,yScale:S,bars:A>0?i==="vertical"?ebe.apply(void 0,D):tbe.apply(void 0,D):[]}},rbe=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=lk(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Hv(c.map(function(h){var p,g;return{id:(p=h.data.indexValue)!=null?p:"",label:d(h.data),hidden:h.data.hidden,color:(g=h.color)!=null?g:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,p){var g=Hv(c.map(function(v){var x;return{id:v.data.id,label:p(v.data),hidden:v.data.hidden,color:(x=v.color)!=null?x:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&g.reverse(),g}(t,o,n,i,s,l)},F4=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},ibe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},obe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},abe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},nO=function(e){var t,n=e.indexBy,r=n===void 0?qt.indexBy:n,i=e.keys,o=i===void 0?qt.keys:i,a=e.label,s=a===void 0?qt.label:a,l=e.tooltipLabel,c=l===void 0?qt.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?qt.colors:d,h=e.colorBy,p=h===void 0?qt.colorBy:h,g=e.borderColor,v=g===void 0?qt.borderColor:g,x=e.labelTextColor,_=x===void 0?qt.labelTextColor:x,w=e.groupMode,C=w===void 0?qt.groupMode:w,b=e.layout,$=b===void 0?qt.layout:b,T=e.data,k=e.margin,O=e.width,j=e.height,S=e.padding,E=S===void 0?qt.padding:S,A=e.innerPadding,D=A===void 0?qt.innerPadding:A,R=e.valueScale,M=R===void 0?qt.valueScale:R,I=e.indexScale,F=I===void 0?qt.indexScale:I,U=e.initialHiddenIds,P=U===void 0?qt.initialHiddenIds:U,z=e.enableLabel,V=z===void 0?qt.enableLabel:z,H=e.labelSkipWidth,Y=H===void 0?qt.labelSkipWidth:H,Z=e.labelSkipHeight,J=Z===void 0?qt.labelSkipHeight:Z,ee=e.legends,W=ee===void 0?qt.legends:ee,L=e.legendLabel,B=e.totalsOffset,q=B===void 0?qt.totalsOffset:B,N=m.useState(P??[]),Q=N[0],X=N[1],G=m.useCallback(function(Ee){X(function(je){return je.indexOf(Ee)>-1?je.filter(function(vt){return vt!==Ee}):[].concat(je,[Ee])})},[]),se=Oi(r),te=Oi(s),re=Oi(c),ae=Is(u),ce=Ft(),ve=Jb(f,p),ge=Sr(v,ce),be=Sr(_,ce),Te=(C==="grouped"?Q1e:nbe)({layout:$,data:T,getIndex:se,keys:o,width:O,height:j,getColor:ve,padding:E,innerPadding:D,valueScale:M,indexScale:F,hiddenIds:Q,formatValue:ae,getTooltipLabel:re,margin:k}),de=Te.bars,le=Te.xScale,we=Te.yScale,Be=m.useMemo(function(){return de.filter(function(Ee){return Ee.data.value!==null}).map(function(Ee,je){return Tt({},Ee,{index:je})})},[de]),Bt=m.useCallback(function(Ee){var je=Ee.width,vt=Ee.height;return!!V&&!(Y>0&&je<Y)&&!(J>0&&vt<J)},[V,Y,J]),Le=m.useMemo(function(){return o.map(function(Ee){var je=de.find(function(vt){return vt.data.id===Ee});return Tt({},je,{data:Tt({id:Ee},je==null?void 0:je.data,{hidden:Q.includes(Ee)})})})},[Q,o,de]),gt=(t=M.reverse)!=null&&t,_t=m.useMemo(function(){return W.map(function(Ee){return[Ee,rbe({bars:Ee.dataFrom==="keys"?Le:de,direction:Ee.direction,from:Ee.dataFrom,groupMode:C,layout:$,legendLabel:L,reverse:gt})]})},[W,Le,de,C,$,L,gt]),nn=m.useMemo(function(){return function(Ee,je,vt,qe,bt,at,At){qe===void 0&&(qe=qt.layout),bt===void 0&&(bt=qt.groupMode);var Ke=[];if(Ee.length===0)return Ke;var De=new Map,We=Ee[0].width,Qe=Ee[0].height;if(bt==="stacked"){var Ie=new Map;Ee.forEach(function(nt){var Ne=nt.data,ke=Ne.indexValue,He=Ne.value;F4(De,ke,Number(He)),ibe(Ie,ke,Number(He))}),Ie.forEach(function(nt,Ne){var ke,He,yt,et=De.get(Ne)||0;qe==="vertical"?(ke=je(Ne),He=vt(nt),yt=vt(nt/2)):(ke=je(nt),He=vt(Ne),yt=je(nt/2)),ke+=qe==="vertical"?We/2:at,He+=qe==="vertical"?-at:Qe/2,Ke.push({key:"total_"+Ne,x:ke,y:He,value:et,formattedValue:At(et),animationOffset:yt})})}else if(bt==="grouped"){var Je=new Map,ht=new Map;Ee.forEach(function(nt){var Ne=nt.data,ke=Ne.indexValue,He=Ne.value;F4(De,ke,Number(He)),obe(Je,ke,Number(He)),abe(ht,ke)}),Je.forEach(function(nt,Ne){var ke,He,yt,et=De.get(Ne)||0,pt=ht.get(Ne);qe==="vertical"?(ke=je(Ne),He=vt(nt),yt=vt(nt/2)):(ke=je(nt),He=vt(Ne),yt=je(nt/2)),ke+=qe==="vertical"?pt*We/2:at,He+=qe==="vertical"?-at:pt*Qe/2,Ke.push({key:"total_"+Ne,x:ke,y:He,value:et,formattedValue:At(et),animationOffset:yt})})}return Ke}(de,le,we,$,C,q,ae)},[de,le,we,$,C,q,ae]);return{bars:de,barsWithValue:Be,xScale:le,yScale:we,getIndex:se,getLabel:te,getTooltipLabel:re,formatValue:ae,getColor:ve,getBorderColor:ge,getLabelColor:be,shouldRenderBarLabel:Bt,hiddenIds:Q,toggleSerie:G,legendsWithData:_t,barTotals:nn}},sbe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Vt.layout:i,a=Ft();return Ca(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(Yt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Tt({},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)})},lbe=["isInteractive","animate","motionConfig","theme","renderWrapper"],cbe=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,g=e.axisRight,v=e.axisBottom,x=v===void 0?Vt.axisBottom:v,_=e.axisLeft,w=_===void 0?Vt.axisLeft:_,C=e.enableGridX,b=C===void 0?Vt.enableGridX:C,$=e.enableGridY,T=$===void 0?Vt.enableGridY:$,k=e.gridXValues,O=e.gridYValues,j=e.layers,S=j===void 0?Vt.layers:j,E=e.barComponent,A=E===void 0?Vt.barComponent:E,D=e.enableLabel,R=D===void 0?Vt.enableLabel:D,M=e.label,I=e.labelSkipWidth,F=I===void 0?Vt.labelSkipWidth:I,U=e.labelSkipHeight,P=U===void 0?Vt.labelSkipHeight:U,z=e.labelTextColor,V=e.labelPosition,H=V===void 0?Vt.labelPosition:V,Y=e.labelOffset,Z=Y===void 0?Vt.labelOffset:Y,J=e.markers,ee=J===void 0?Vt.markers:J,W=e.colorBy,L=e.colors,B=e.defs,q=B===void 0?Vt.defs:B,N=e.fill,Q=N===void 0?Vt.fill:N,X=e.borderRadius,G=X===void 0?Vt.borderRadius:X,se=e.borderWidth,te=se===void 0?Vt.borderWidth:se,re=e.borderColor,ae=e.annotations,ce=ae===void 0?Vt.annotations:ae,ve=e.legendLabel,ge=e.tooltipLabel,be=e.valueFormat,Te=e.isInteractive,de=Te===void 0?Vt.isInteractive:Te,le=e.tooltip,we=le===void 0?Vt.tooltip:le,Be=e.onClick,Bt=e.onMouseEnter,Le=e.onMouseLeave,gt=e.legends,_t=e.role,nn=_t===void 0?Vt.role:_t,Ee=e.ariaLabel,je=e.ariaLabelledBy,vt=e.ariaDescribedBy,qe=e.isFocusable,bt=qe===void 0?Vt.isFocusable:qe,at=e.barAriaLabel,At=e.barAriaLabelledBy,Ke=e.barAriaDescribedBy,De=e.barAriaHidden,We=e.barAriaDisabled,Qe=e.initialHiddenIds,Ie=e.enableTotals,Je=Ie===void 0?Vt.enableTotals:Ie,ht=e.totalsOffset,nt=ht===void 0?Vt.totalsOffset:ht,Ne=e.forwardedRef,ke=qn(),He=ke.animate,yt=ke.config,et=Ra(a,s,o),pt=et.outerWidth,tn=et.outerHeight,zt=et.margin,Ht=et.innerWidth,vn=et.innerHeight,Kt=nO({indexBy:r,label:M,tooltipLabel:ge,valueFormat:be,colors:L,colorBy:W,borderColor:re,labelTextColor:z,groupMode:l,layout:c,data:n,keys:i,margin:zt,width:Ht,height:vn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:R,labelSkipWidth:F,labelSkipHeight:P,legends:gt,legendLabel:ve,initialHiddenIds:Qe,totalsOffset:nt}),$e=Kt.bars,Ze=Kt.barsWithValue,Ct=Kt.xScale,cn=Kt.yScale,Zt=Kt.getLabel,Pe=Kt.getTooltipLabel,Fe=Kt.getBorderColor,ct=Kt.getLabelColor,Rt=Kt.shouldRenderBarLabel,$t=Kt.toggleSerie,Xe=Kt.legendsWithData,St=Kt.barTotals,kr=Kt.getColor,fn=Qk(c,(t=u==null?void 0:u.reverse)!=null&&t,H,Z),hn=Ca(Ze,{keys:function(Me){return Me.key},from:function(Me){return Tt({borderColor:Fe(Me),color:Me.color,height:0,labelColor:ct(Me),labelOpacity:0},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+(Me.y+Me.height)+")",width:Me.width},c==="vertical"?{}:{height:Me.height,transform:"translate("+Me.x+", "+Me.y+")",width:0})},enter:function(Me){return Tt({borderColor:Fe(Me),color:Me.color,height:Me.height,labelColor:ct(Me),labelOpacity:1},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+Me.y+")",width:Me.width})},update:function(Me){return Tt({borderColor:Fe(Me),color:Me.color,height:Me.height,labelColor:ct(Me),labelOpacity:1},fn(Me.width,Me.height),{transform:"translate("+Me.x+", "+Me.y+")",width:Me.width})},leave:function(Me){return Tt({borderColor:Fe(Me),color:Me.color,height:0,labelColor:ct(Me),labelOpacity:0},fn(Me.width,Me.height),{labelY:0,transform:"translate("+Me.x+", "+(Me.y+Me.height)+")",width:Me.width},c==="vertical"?{}:Tt({},fn(Me.width,Me.height),{labelX:0,height:Me.height,transform:"translate("+Me.x+", "+Me.y+")",width:0}))},config:yt,immediate:!He,initial:He?void 0:null}),Pn=m.useMemo(function(){return{borderRadius:G,borderWidth:te,enableLabel:R,isInteractive:de,labelSkipWidth:F,labelSkipHeight:P,onClick:Be,onMouseEnter:Bt,onMouseLeave:Le,getTooltipLabel:Pe,tooltip:we,isFocusable:bt,ariaLabel:at,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:De,ariaDisabled:We}},[G,te,R,Pe,de,P,F,Be,Bt,Le,we,bt,at,At,Ke,De,We]),ko=Xb(q,$e,Q,{dataKey:"data",targetKey:"data.fill"}),wt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};S.includes("annotations")&&(wt.annotations=y.jsx(W1e,{bars:$e,annotations:ce},"annotations")),S.includes("axes")&&(wt.axes=y.jsx(Nk,{xScale:Ct,yScale:cn,width:Ht,height:vn,top:p,right:g,bottom:x,left:w},"axes")),S.includes("bars")&&(wt.bars=y.jsx(m.Fragment,{children:hn(function(Me,Br){return m.createElement(A,Tt({},Pn,{bar:Br,style:Me,shouldRenderLabel:Rt(Br),label:Zt(Br.data)}))})},"bars")),S.includes("grid")&&(wt.grid=y.jsx(Dk,{width:Ht,height:vn,xScale:b?Ct:null,yScale:T?cn:null,xValues:k,yValues:O},"grid")),S.includes("legends")&&(wt.legends=y.jsx(U1e,{width:Ht,height:vn,legends:Xe,toggleSerie:$t},"legends")),S.includes("markers")&&(wt.markers=y.jsx(ok,{markers:ee,width:Ht,height:vn,xScale:Ct,yScale:cn},"markers")),S.includes("totals")&&Je&&(wt.totals=y.jsx(sbe,{data:St,springConfig:yt,animate:He,layout:c},"totals"));var Oo=Tt({},Pn,{margin:zt,width:a,height:s,innerWidth:Ht,innerHeight:vn,bars:$e,legendData:Xe,enableLabel:R,xScale:Ct,yScale:cn,tooltip:we,getTooltipLabel:Pe,onClick:Be,onMouseEnter:Bt,onMouseLeave:Le,getColor:kr});return y.jsx(Ip,{width:pt,height:tn,margin:zt,defs:ko,role:nn,ariaLabel:Ee,ariaLabelledBy:je,ariaDescribedBy:vt,isFocusable:bt,ref:Ne,children:S.map(function(Me,Br){var Mo;return typeof Me=="function"?y.jsx(m.Fragment,{children:m.createElement(Me,Oo)},Br):(Mo=wt==null?void 0:wt[Me])!=null?Mo:null})})},ube=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Vt.isInteractive:n,i=e.animate,o=i===void 0?Vt.animate:i,a=e.motionConfig,s=a===void 0?Vt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=Eo(e,lbe);return y.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(cbe,Tt({},u,{isInteractive:r,forwardedRef:t}))})}),dbe=["isInteractive","renderWrapper","theme"],mg=function(e,t,n,r){return e.find(function(i){return uk(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},fbe=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,g=e.axisRight,v=e.axisBottom,x=v===void 0?pn.axisBottom:v,_=e.axisLeft,w=_===void 0?pn.axisLeft:_,C=e.enableGridX,b=C===void 0?pn.enableGridX:C,$=e.enableGridY,T=$===void 0?pn.enableGridY:$,k=e.gridXValues,O=e.gridYValues,j=e.labelPosition,S=j===void 0?pn.labelPosition:j,E=e.labelOffset,A=E===void 0?pn.labelOffset:E,D=e.layers,R=D===void 0?pn.layers:D,M=e.renderBar,I=M===void 0?pn.renderBar:M,F=e.enableLabel,U=F===void 0?pn.enableLabel:F,P=e.label,z=e.labelSkipWidth,V=z===void 0?pn.labelSkipWidth:z,H=e.labelSkipHeight,Y=H===void 0?pn.labelSkipHeight:H,Z=e.labelTextColor,J=e.colorBy,ee=e.colors,W=e.borderRadius,L=W===void 0?pn.borderRadius:W,B=e.borderWidth,q=B===void 0?pn.borderWidth:B,N=e.borderColor,Q=e.annotations,X=Q===void 0?pn.annotations:Q,G=e.legendLabel,se=e.tooltipLabel,te=e.valueFormat,re=e.isInteractive,ae=re===void 0?pn.isInteractive:re,ce=e.tooltip,ve=ce===void 0?pn.tooltip:ce,ge=e.onClick,be=e.onMouseEnter,Te=e.onMouseLeave,de=e.legends,le=e.pixelRatio,we=le===void 0?pn.pixelRatio:le,Be=e.role,Bt=e.forwardedRef,Le=e.enableTotals,gt=Le===void 0?pn.enableTotals:Le,_t=e.totalsOffset,nn=_t===void 0?pn.totalsOffset:_t,Ee=m.useRef(null),je=Ft(),vt=Ra(a,s,o),qe=vt.margin,bt=vt.innerWidth,at=vt.innerHeight,At=vt.outerWidth,Ke=vt.outerHeight,De=nO({indexBy:r,label:P,tooltipLabel:se,valueFormat:te,colors:ee,colorBy:J,borderColor:N,labelTextColor:Z,groupMode:l,layout:c,data:n,keys:i,margin:qe,width:bt,height:at,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:U,labelSkipWidth:V,labelSkipHeight:Y,legends:de,legendLabel:G,totalsOffset:nn}),We=De.bars,Qe=De.barsWithValue,Ie=De.xScale,Je=De.yScale,ht=De.getLabel,nt=De.getTooltipLabel,Ne=De.getBorderColor,ke=De.getLabelColor,He=De.shouldRenderBarLabel,yt=De.legendsWithData,et=De.barTotals,pt=De.getColor,tn=Ui(),zt=tn.showTooltipFromEvent,Ht=tn.hideTooltip,vn=j1e({annotations:Kk({data:We,annotations:X,getPosition:function(Pe){return{x:Pe.x,y:Pe.y}},getDimensions:function(Pe){var Fe=Pe.width,ct=Pe.height;return{width:Fe,height:ct,size:Math.max(Fe,ct)}}})}),Kt=m.useMemo(function(){return{borderRadius:L,borderWidth:q,isInteractive:ae,isFocusable:!1,labelSkipWidth:V,labelSkipHeight:Y,margin:qe,width:a,height:s,innerWidth:bt,innerHeight:at,bars:We,legendData:yt,enableLabel:U,xScale:Ie,yScale:Je,tooltip:ve,getTooltipLabel:nt,onClick:ge,onMouseEnter:be,onMouseLeave:Te,getColor:pt}},[L,q,ae,V,Y,qe,a,s,bt,at,We,yt,U,Ie,Je,ve,nt,ge,be,Te,pt]),$e=Is(te),Ze=Qk(c,(t=u==null?void 0:u.reverse)!=null&&t,S,A);m.useEffect(function(){if(Ee.current){Ee.current.width=At*we,Ee.current.height=Ke*we;var Pe=Ee.current.getContext("2d");Pe.scale(we,we),Pe.fillStyle=je.background,Pe.fillRect(0,0,At,Ke),Pe.translate(qe.left,qe.top),R.forEach(function(Fe){Fe==="grid"?typeof je.grid.line.strokeWidth=="number"&&je.grid.line.strokeWidth>0&&(Pe.lineWidth=je.grid.line.strokeWidth,Pe.strokeStyle=je.grid.line.stroke,b&&Nf(Pe,{width:bt,height:at,scale:Ie,axis:"x",values:k}),T&&Nf(Pe,{width:bt,height:at,scale:Je,axis:"y",values:O})):Fe==="axes"?Ik(Pe,{xScale:Ie,yScale:Je,width:bt,height:at,top:p,right:g,bottom:x,left:w,theme:je}):Fe==="bars"?(ya(Pe,je.text),Qe.forEach(function(ct){I(Pe,Tt({bar:ct,borderColor:Ne(ct),borderRadius:L,borderWidth:q,label:ht(ct.data),shouldRenderLabel:He(ct),labelStyle:Tt({},je.labels.text,{fill:ke(ct)})},Ze(ct.width,ct.height)))})):Fe==="legends"?yt.forEach(function(ct){var Rt=ct[0],$t=ct[1];ry(Pe,Tt({},Rt,{data:$t,containerWidth:bt,containerHeight:at,theme:je}))}):Fe==="annotations"?B1e(Pe,{annotations:vn,theme:je}):Fe==="totals"&>?function(ct,Rt,$t,Xe){Xe===void 0&&(Xe=pn.layout),ya(ct,$t.labels.text),ct.textBaseline=Xe==="vertical"?"alphabetic":"middle",ct.textAlign=Xe==="vertical"?"center":"start",Rt.forEach(function(St){xa(ct,$t.labels.text,St.formattedValue,St.x,St.y)})}(Pe,et,je,c):typeof Fe=="function"&&Fe(Pe,Kt)}),Pe.save()}},[x,w,g,p,Qe,L,q,vn,b,T,Ne,ht,ke,k,O,l,s,at,bt,Kt,R,c,yt,qe.left,qe.top,Ke,At,we,I,Ie,Je,He,je,a,et,gt,$e,Ze]);var Ct=m.useCallback(function(Pe){if(We&&Ee.current){var Fe=hs(Ee.current,Pe),ct=Fe[0],Rt=Fe[1],$t=mg(We,qe,ct,Rt);$t!==void 0?(zt(m.createElement(ve,Tt({},$t.data,{color:$t.color,label:$t.label,value:Number($t.data.value)})),Pe),Pe.type==="mouseenter"&&(be==null||be($t.data,Pe))):Ht()}},[Ht,qe,be,We,zt,ve]),cn=m.useCallback(function(Pe){if(We&&Ee.current){Ht();var Fe=hs(Ee.current,Pe),ct=Fe[0],Rt=Fe[1],$t=mg(We,qe,ct,Rt);$t&&(Te==null||Te($t.data,Pe))}},[Ht,qe,Te,We]),Zt=m.useCallback(function(Pe){if(We&&Ee.current){var Fe=hs(Ee.current,Pe),ct=Fe[0],Rt=Fe[1],$t=mg(We,qe,ct,Rt);$t!==void 0&&(ge==null||ge(Tt({},$t.data,{color:$t.color}),Pe))}},[qe,ge,We]);return y.jsx("canvas",{ref:Qb(Ee,Bt),width:At*we,height:Ke*we,style:{width:At,height:Ke,cursor:ae?"auto":"normal"},onMouseEnter:ae?Ct:void 0,onMouseMove:ae?Ct:void 0,onMouseLeave:ae?cn:void 0,onClick:ae?Zt:void 0,role:Be})},hbe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Eo(e,dbe);return y.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(fbe,Tt({},o,{isInteractive:n,forwardedRef:t}))})}),pbe=["defaultWidth","defaultHeight","onResize","debounceResize"],mbe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Eo(e,pbe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(ube,Tt({},a,{width:l,height:c,ref:t}))}})}),gbe=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Eo(e,gbe);return y.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(hbe,Tt({},a,{width:l,height:c,ref:t}))}})});exports.AbstractModalHeader=S0;exports.Alert=I1;exports.ApprovalState=T9;exports.AuthContext=Jf;exports.Backdrop=g5;exports.BaseModal=dC;exports.BootstrapModalManager=fC;exports.Button=s0;exports.Col=l0;exports.ConfirmContext=jC;exports.ContextButton=fh;exports.CustomSelectInput=eS;exports.DelegationContext=VC;exports.Documents=Vq;exports.Dropdown=q0;exports.Dropdown$1=xs;exports.DropdownDivider=Gg;exports.DropdownItem=Yo;exports.DropdownToggle=V0;exports.ENTERED=to;exports.ENTERING=xi;exports.EXITED=Xi;exports.EXITING=Ad;exports.FaMinus=YI;exports.FaPlus=GI;exports.FaSearch=KI;exports.Fade=ho;exports.Fe=S9;exports.FileExtensionIcon=o5;exports.FloatingLabelInput=hh;exports.Form=si;exports.FormCheckInput=Gf;exports.FormControl=Q3;exports.FormDisabledContext=G$;exports.FormSelect=y0;exports.HelmetContext=Y$;exports.HookFormTextAreaInput=U0;exports.HookFormTextInput=Es;exports.HtmlTooltip=ZC;exports.IconButton=au;exports.InputAnchorContainer=X$;exports.InvalidFeedback=Eh;exports.ListGroup=cC;exports.ListGroupItem=Kf;exports.LoadingContext=Qf;exports.LoginState=UC;exports.LuminusComponentsContext=ln;exports.MdCheck=gR;exports.MdCircle=mR;exports.MdClear=Qc;exports.MdOutlineAddCircleOutline=CR;exports.MdOutlineArrowOutward=vR;exports.MdOutlineCameraAlt=OR;exports.MdOutlineChevronRight=jR;exports.MdOutlineClose=AC;exports.MdOutlineDelete=MC;exports.MdOutlineEdit=MR;exports.MdOutlineExpand=yR;exports.MdOutlineFileUpload=TR;exports.MdOutlineKeyboardArrowLeft=ER;exports.MdOutlineKeyboardArrowRight=kR;exports.MdOutlineMenu=NR;exports.MdOutlinePhotoLibrary=AR;exports.MdOutlineStar=PR;exports.MdOutlineSubdirectoryArrowRight=IR;exports.MdSave=pR;exports.MdSaveAs=hR;exports.MdSearch=fR;exports.Me=uge;exports.MiniDetailWrapper=J$;exports.Modal=Xn;exports.ModalContext=C0;exports.NoInputContainer=Z$;exports.OverlayTrigger=EC;exports.PageContainer=mY;exports.PiPushPinBold=hq;exports.PiPushPinSlashBold=pq;exports.PrimaryButton=da;exports.PromptContext=NC;exports.PropTypes=xe;exports.ResponsiveContextDropdown=p5;exports.ResponsiveContextDropdownItem=R1;exports.RowLabelInput=su;exports.ShortcutLinksContext=JY;exports.SideContentBar=a5;exports.SimpleDropdownToggle=H0;exports.SimplePicker=m5;exports.SimpleTooltip=O0;exports.Spinner=E0;exports.TextInput=Q$;exports.Tooltip=SC;exports.TransitionWrapper=n0;exports.Typography=zn;exports.UserContext=HC;exports.Xe=mbe;exports.a=j1;exports.addLeadingZeros=Lt;exports.arrayType=z$;exports.atobUtf8=QC;exports.axios=Qt;exports.buildEmployeeNameString=H9;exports.buildOrgUnitString=V9;exports.buildVehicleNameString=U9;exports.cancelToken=tD;exports.capitalizeFirstLetter=W9;exports.classNames=ue;exports.classes=qg;exports.classes$1=tS;exports.compareDate=G9;exports.compareDateTime=K9;exports.compilerRuntimeExports=Re;exports.constructFrom=Ai;exports.context=qf;exports.differenceInCalendarDays=q4;exports.dist=N1;exports.divWithClassName=r0;exports.extractErrorsFromBlobResponse=GC;exports.extractErrorsFromResponse=eh;exports.extractFilename=n$;exports.extractPermissionsFromResponse=KC;exports.fixNameIdNulls=qC;exports.format=Qv;exports.formatDate=B9;exports.formatDateTime=z9;exports.formatFileSize=ws;exports.getChildRef=Fs;exports.getDateString=tj;exports.getDaysDifference=Z9;exports.getFirstDayOfMonth=e$;exports.getFirstDayOfOffsetMonth=X9;exports.getFirstDayOfYear=J9;exports.getLastDayOfMonth=t$;exports.getLastDayOfOffsetMonth=Q9;exports.getLastDayOfYear=ej;exports.getSharedManager=hC;exports.getTimezoneOffsetInMilliseconds=bg;exports.hasOnlyNullValues=YC;exports.hookFormSetServerErrors=k9;exports.isExtensionOpenable=i$;exports.isFileOpenable=r$;exports.isISODate=JC;exports.isLeavingWindowInSafari=SG;exports.isPast=K4;exports.isPrimitive=Bd;exports.isSafari=D1;exports.isValidDate=Y9;exports.joinStrings=M0;exports.makeDispatch=EG;exports.millisecondsInHour=Pf;exports.millisecondsInMinute=Zv;exports.millisecondsInWeek=Kv;exports.msToStartOfNextDay=q9;exports.objectType=Si;exports.once=v5;exports.parseISO=Ff;exports.replaceNullValuesOnlyObjectsWithNulls=E9;exports.saveFile=zd;exports.saveFileFromResponse=ij;exports.secondsInDay=Xv;exports.secondsInHour=z4;exports.secondsInMinute=$O;exports.secondsInMonth=U4;exports.secondsInQuarter=TO;exports.secondsInWeek=SO;exports.secondsInYear=W4;exports.shortenText=F9;exports.startOfDay=vg;exports.startOfWeek=ps;exports.stringContains=Pg;exports.stringSearchWithin=A0;exports.stringStartsWith=o$;exports.stringType=F0;exports.style=co;exports.t=ph;exports.te=kfe;exports.toDate=Vn;exports.transitionEndListener=a3;exports.triggerBrowserReflow=s3;exports.trimIsoDate=th;exports.truncateText=XC;exports.u=i5;exports.urlfyArray=Ig;exports.useAuth=A$;exports.useAxios=lh;exports.useBootstrapBreakpoints=J4;exports.useBootstrapMinBreakpoint=e3;exports.useBootstrapPrefix=ft;exports.useClickOutside=U$;exports.useClipboard=q$;exports.useCol=g3;exports.useConfirm=P0;exports.useCookies=I0;exports.useEventCallback=fo;exports.useFormControlType=B0;exports.useFormDisabledContext=dh;exports.useIsomorphicEffect=v0;exports.useKeyPress=V$;exports.useNotifications=sh;exports.usePermissions=H$;exports.usePrompt=DC;exports.useSwipeable=M1;exports.useWindowSize=ou;exports.useZodSchemaTypes=uh;exports.z=Ll;
|