react-luminus-components 2.0.3-beta.r19-14 → 2.0.3-beta.r19-16
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 +42 -36
- package/dist/FormDisabledProvider-DXNc2136.js +51 -0
- package/dist/FormDisabledProvider-vg-vA0WK.cjs +1 -0
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +5 -3
- package/dist/components/NotifCenter/Actions/types/NotificationKindFullModel.d.ts +5 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +535 -288
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +194 -125
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +277 -131
- package/dist/{localStorageUtils-B7BmbR_u.js → localStorageUtils-CZ4HDRzi.js} +17 -7
- package/dist/main.cjs.js +13 -13
- package/dist/main.es.js +10386 -5526
- package/dist/nivo-bar-BZDK_ha3.js +41897 -0
- package/dist/nivo-bar-D02kyst9.cjs +326 -0
- package/dist/useEmployeePhotoPath-TFR1dZzz.cjs +1 -0
- package/dist/useEmployeePhotoPath-_slBRHnm.js +111 -0
- package/dist/useLocalStorageState-B0hJPCtQ.cjs +1 -0
- package/dist/useLocalStorageState-DcSLbUf2.js +96 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +41 -69
- package/package.json +2 -1
- package/dist/FormDisabledProvider-B62seaHO.cjs +0 -1
- package/dist/FormDisabledProvider-qklvful2.js +0 -40
- package/dist/nivo-bar-C5h-CRYO.cjs +0 -306
- package/dist/nivo-bar-FuUHRilH.js +0 -40076
- package/dist/useEmployeePhotoPath-DdMmh1qU.js +0 -65
- package/dist/useEmployeePhotoPath-Q0EhpWOh.cjs +0 -1
- package/dist/useLocalStorageState-BWVTT0cO.js +0 -80
- package/dist/useLocalStorageState-iaJubQoG.cjs +0 -1
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),m=require("react"),mO=require("@azure/msal-browser"),Ps=require("react-router"),gO=require("@tanstack/react-query"),hy=require("@azure/msal-react"),mn=require("react-dom"),pn=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 mg={exports:{}},Up={};/**
|
|
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 Up;py=1;var e=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Up.c=function(t){return e.H.useMemoCache(t)},Up}var Hp={};/**
|
|
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;Hp.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)}}()),Hp}process.env.NODE_ENV==="production"?mg.exports=bO():mg.exports=yO();var Re=mg.exports,z4={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})()})(z4);var xO=z4.exports;const ce=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,Gv=6048e5,CO=864e5,Kv=6e4,Pf=36e5,B4=3600,$O=60,Zv=B4*24,SO=Zv*7,W4=Zv*_O,U4=W4/12,EO=U4*3;function H4(e,t){return wO(e,t*Pf)}let TO={};function Lf(){return TO}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 gg(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function vg(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=gg(e),r=gg(t),i=+n-vg(n),o=+r-vg(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 Vp(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:Vp({formats:DO,defaultWidth:"full"}),time:Vp({formats:IO,defaultWidth:"full"}),dateTime:Vp({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"},zO=(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 BO={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:BO,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:zO,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/Gv)+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/Gv)+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 zo(r);case"XXXXX":case"XXX":default:return zo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return by(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"+vy(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"+vy(r,":");case"zzzz":default:return"GMT"+zo(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):zo(e,t)}function zo(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,EM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TM=/^'([^]*?)'?$/,kM=/''/g,OM=/[a-zA-Z]/;function Xv(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(EM).map(_=>{const y=_[0];if(y==="p"||y==="P"){const C=vM[y];return C(_,i.formatLong)}return _}).join("").match(SM).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const y=_[0];if(y==="'")return{isToken:!1,value:MM(_)};if(gy[y])return{isToken:!0,value:_};if(y.match(OM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");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 y=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&_M(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wM(y))&&CM(y,t,String(e));const C=gy[y[0]];return C(s,y,i.localize,c)}).join("")}function MM(e){const t=e.match(TM);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!BM(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=qp(t[1]),r=qp(t[2]),i=qp(t[3]);return HM(n,r,i)?n*Pf+r*Kv+i*1e3:NaN}function qp(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*Kv):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 zM=[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 BM(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zM[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 bg(){return bg=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},bg.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 Qv(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 bg({},l,(i={},i[r]=d,i[c]=f,i))},e)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yg(e,t)}function ZM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yg(e,t)}const XM=["xxl","xl","lg","md","sm","xs"],QM="xs",Yc=ie.createContext({prefixes:{},breakpoints:XM,minBreakpoint:QM}),{Consumer:bbe,Provider:ybe}=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 zf(){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 xg={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 y(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 y(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)||y(b)===l},jt.isConcurrentMode=C,jt.isContextConsumer=function(b){return y(b)===s},jt.isContextProvider=function(b){return y(b)===a},jt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},jt.isForwardRef=function(b){return y(b)===u},jt.isFragment=function(b){return y(b)===r},jt.isLazy=function(b){return y(b)===p},jt.isMemo=function(b){return y(b)===h},jt.isPortal=function(b){return y(b)===n},jt.isProfiler=function(b){return y(b)===o},jt.isStrictMode=function(b){return y(b)===i},jt.isSuspense=function(b){return y(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=y,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 y(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 G=N.type;switch(G){case l:case c:case r:case o:case i:case d:return G;default:var K=G&&G.$$typeof;switch(K){case s:case u:case p:case h:case a:return K;default:return Q}}case n:return Q}}}var b=l,$=c,E=s,k=a,O=t,j=u,S=r,T=p,A=h,D=n,R=o,M=i,I=d,z=!1;function W(N){return z||(z=!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 B(N){return C(N)===s}function q(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 X(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function U(N){return C(N)===n}function L(N){return C(N)===o}function F(N){return C(N)===i}function V(N){return C(N)===d}Nt.AsyncMode=b,Nt.ConcurrentMode=$,Nt.ContextConsumer=E,Nt.ContextProvider=k,Nt.Element=O,Nt.ForwardRef=j,Nt.Fragment=S,Nt.Lazy=T,Nt.Memo=A,Nt.Portal=D,Nt.Profiler=R,Nt.StrictMode=M,Nt.Suspense=I,Nt.isAsyncMode=W,Nt.isConcurrentMode=P,Nt.isContextConsumer=B,Nt.isContextProvider=q,Nt.isElement=H,Nt.isForwardRef=Y,Nt.isFragment=X,Nt.isLazy=J,Nt.isMemo=ee,Nt.isPortal=U,Nt.isProfiler=L,Nt.isStrictMode=F,Nt.isSuspense=V,Nt.isValidElementType=y,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 Yp,Sy;function l8(){if(Sy)return Yp;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 Yp=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},Yp}var Gp,Ey;function Jv(){if(Ey)return Gp;Ey=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gp=e,Gp}var Kp,Ty;function n3(){return Ty||(Ty=1,Kp=Function.call.bind(Object.prototype.hasOwnProperty)),Kp}var Zp,ky;function c8(){if(ky)return Zp;ky=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jv(),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={})},Zp=i,Zp}var Xp,Oy;function u8(){if(Oy)return Xp;Oy=1;var e=t3(),t=l8(),n=Jv(),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 Xp=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var B=P&&(c&&P[c]||P[u]);if(typeof B=="function")return B}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:y,element:C(),elementType:b(),instanceOf:$,node:j(),objectOf:k,oneOf:E,oneOfType:O,shape:T,exact:A};function p(P,B){return P===B?P!==0||1/P===1/B:P!==P&&B!==B}function g(P,B){this.message=P,this.data=B&&typeof B=="object"?B:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var B={},q=0;function H(X,J,ee,U,L,F,V){if(U=U||f,F=F||ee,V!==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=U+":"+ee;!B[Q]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+U+"`. 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."),B[Q]=!0,q++)}}return J[ee]==null?X?J[ee]===null?new g("The "+L+" `"+F+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new g("The "+L+" `"+F+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:P(J,ee,U,L,F)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function B(q,H,Y,X,J,ee){var U=q[H],L=M(U);if(L!==P){var F=I(U);return new g("Invalid "+X+" `"+J+"` of type "+("`"+F+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(B)}function _(){return v(a)}function y(P){function B(q,H,Y,X,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=q[H];if(!Array.isArray(ee)){var U=M(ee);return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var F=P(ee,L,Y,X,J+"["+L+"]",n);if(F instanceof Error)return F}return null}return v(B)}function C(){function P(B,q,H,Y,X){var J=B[q];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+X+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(B,q,H,Y,X){var J=B[q];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+X+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function B(q,H,Y,X,J){if(!(q[H]instanceof P)){var ee=P.name||f,U=W(q[H]);return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(B)}function E(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 B(q,H,Y,X,J){for(var ee=q[H],U=0;U<P.length;U++)if(p(ee,P[U]))return null;var L=JSON.stringify(P,function(V,N){var Q=I(N);return Q==="symbol"?String(N):N});return new g("Invalid "+X+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(B)}function k(P){function B(q,H,Y,X,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var F=P(ee,L,Y,X,J+"."+L,n);if(F instanceof Error)return F}return null}return v(B)}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 B=0;B<P.length;B++){var q=P[B];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(q)+" at index "+B+"."),a}function H(Y,X,J,ee,U){for(var L=[],F=0;F<P.length;F++){var V=P[F],N=V(Y,X,J,ee,U,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+" `"+U+"` supplied to "+("`"+J+"`"+Q+"."))}return v(H)}function j(){function P(B,q,H,Y,X){return D(B[q])?null:new g("Invalid "+Y+" `"+X+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,B,q,H,Y){return new g((P||"React class")+": "+B+" type `"+q+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function T(P){function B(q,H,Y,X,J){var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type `"+U+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var F=P[L];if(typeof F!="function")return S(Y,X,J,L,I(F));var V=F(ee,L,Y,X,J+"."+L,n);if(V)return V}return null}return v(B)}function A(P){function B(q,H,Y,X,J){var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type `"+U+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},q[H],P);for(var F in L){var V=P[F];if(r(P,F)&&typeof V!="function")return S(Y,X,J,F,I(V));if(!V)return new g("Invalid "+X+" `"+J+"` key `"+F+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[H],null," ")+`
|
|
44
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ee,F,Y,X,J+"."+F,n);if(N)return N}return null}return v(B)}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 B=d(P);if(B){var q=B.call(P),H;if(B!==P.entries){for(;!(H=q.next()).done;)if(!D(H.value))return!1}else for(;!(H=q.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,B){return P==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function M(P){var B=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(B,P)?"symbol":B}function I(P){if(typeof P>"u"||P===null)return""+P;var B=M(P);if(B==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return B}function z(P){var B=I(P);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function W(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Xp}var Qp,My;function d8(){if(My)return Qp;My=1;var e=Jv();function t(){}function n(){}return n.resetWarningCache=t,Qp=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},Qp}if(process.env.NODE_ENV!=="production"){var f8=t3(),h8=!0;xg.exports=u8()(f8.isElement,h8)}else xg.exports=d8()();var p8=xg.exports;const ve=sn(p8),Ay={disabled:!1};var m8=process.env.NODE_ENV!=="production"?ve.oneOfType([ve.number,ve.shape({enter:ve.number,exit:ve.number,appear:ve.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&ve.oneOfType([ve.string,ve.shape({enter:ve.string,exit:ve.string,active:ve.string}),ve.shape({enter:ve.string,enterDone:ve.string,enterActive:ve.string,exit:ve.string,exitDone:ve.string,exitActive:ve.string})]);const r3=m.createContext(null);var g8=function(t){return t.scrollTop},Dl="unmounted",Xi="exited",xi="entering",to="entered",Ad="exiting",zi=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);zi.contextType=r3;zi.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ve.shape({current:typeof Element>"u"?ve.any:function(e,t,n,r,i,o){var a=e[t];return ve.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:ve.oneOfType([ve.func.isRequired,ve.element.isRequired]).isRequired,in:ve.bool,mountOnEnter:ve.bool,unmountOnExit:ve.bool,appear:ve.bool,enter:ve.bool,exit:ve.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:ve.func,onEnter:ve.func,onEntering:ve.func,onEntered:ve.func,onExit:ve.func,onExiting:ve.func,onExited:ve.func}:{};function Pa(){}zi.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};zi.UNMOUNTED=Dl;zi.EXITED=Xi;zi.ENTERING=xi;zi.ENTERED=to;zi.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 zs=!!(typeof window<"u"&&window.document&&window.document.createElement);var wg=!1,_g=!1;try{var Jp={get passive(){return wg=!0},get once(){return _g=wg=!0}};zs&&(window.addEventListener("test",Jp,Jp),window.removeEventListener("test",Jp,!0))}catch{}function e0(e,t,n,r){if(r&&typeof r!="boolean"&&!_g){var i=r.once,o=r.capture,a=n;!_g&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,wg?r:o)}e.addEventListener(t,n,r)}function Cg(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 e0(e,t,n,r),function(){Cg(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 t0=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=$=>E=>{$&&d.current&&$(d.current,E)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),y=m.useCallback(p(i),[i]),C=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return w.jsx(zi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:y,addEndListener:b,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:h}):m.cloneElement(s,{ref:h})})});t0.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 n0=e=>ie.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:ce(t.className,e)})),l3=n0("h4");l3.displayName="DivStyledAsH4";const c3=ie.forwardRef(({className:e,bsPrefix:t,as:n=l3,...r},i)=>(t=ft(t,"alert-heading"),w.jsx(n,{ref:i,className:ce(e,t),...r})));c3.displayName="AlertHeading";function $g(){return m.useState(null)}function C8(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Tn(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=Tn(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",E8=typeof document<"u",Ny=E8||S8?m.useLayoutEffect:m.useEffect,T8=["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 r0({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 i0=ie.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=k8(e,T8);const[o,{tagName:a}]=r0(Object.assign({tagName:n,disabled:r},i));return w.jsx(a,Object.assign({},i,o,{ref:t}))});i0.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 o0=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=A8(e,M8);const[i]=r0(Object.assign({tagName:"a"},r)),o=Tn(a=>{i.onKeyDown(a),n==null||n(a)});return R8(r.href)||r.role==="button"?w.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):w.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});o0.displayName="Anchor";const f3=ie.forwardRef(({className:e,bsPrefix:t,as:n=o0,...r},i)=>(t=ft(t,"alert-link"),w.jsx(n,{ref:i,className:ce(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 w.jsx(t0,{ref:o,addEndListener:a3,...a,onEnter:s,childRef:Fs(t),children:(l,c)=>ie.cloneElement(t,{...c,className:ce("fade",e,t.props.className,j8[l],n[l])})})});ho.displayName="Fade";const N8={"aria-label":ve.string,onClick:ve.func,variant:ve.oneOf(["white"])},Bf=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>w.jsx("button",{ref:i,type:"button",className:ce("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Bf.displayName="CloseButton";Bf.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}=Qv(e,{show:"onClose"}),h=ft(n,"alert"),p=fo(x=>{c&&c(!1,x)}),g=d===!0?ho:d,v=w.jsxs("div",{role:"alert",...g?void 0:f,ref:t,className:ce(a,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&w.jsx(Bf,{onClick:p,"aria-label":i,variant:o}),s]});return g?w.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}),a0=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}]=r0({tagName:e,disabled:o,...s}),f=d;return w.jsx(f,{...u,...s,ref:l,disabled:o,className:ce(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});a0.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 Sg=2**31-1;function m3(e,t,n){const r=n-Date.now();e.current=r<=Sg?setTimeout(t,r):setTimeout(()=>m3(e,t,n),Sg)}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<=Sg?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:ce(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const s0=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=g3(e);return w.jsx(i,{...r,ref:t,className:ce(n,!a.length&&o)})});s0.displayName="Col";var z8=Function.prototype.bind.call(Function.prototype.call,[].slice);function wi(e,t){return z8(e.querySelectorAll(t))}function B8(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",l0="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,[l0]).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 c0(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 u0(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&&c0(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||(c0(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(c0(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 d0(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=d0(s),c=[Jn,_r].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=iA(i.padding,n),f=u0(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,y=g/2-v/2,C=d[h],b=_-f[u]-d[p],$=_/2-f[u]/2+y,E=Ul(C,$,b),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,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"),y=Jn,C=Qn,b=window;if(c){var $=Kc(n),E="clientHeight",k="clientWidth";if($===cr(n)&&($=$o(n),Ri($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,i===Qn||(i===Jn||i===_r)&&o===nc){C=wr;var O=d&&$===b&&b.visualViewport?b.visualViewport.height:$[E];g-=O-r.height,g*=l?1:-1}if(i===Jn||(i===Qn||i===wr)&&o===nc){y=_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),T=u===!0?cA({x:h,y:g},cr(n)):{x:h,y:g};if(h=T.x,g=T.y,l){var A;return Object.assign({},S,(A={},A[C]=_?"0":"",A[y]=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[y]=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 zu={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,zu)}),s&&l.addEventListener("resize",n.update,zu),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,zu)}),s&&l.removeEventListener("resize",n.update,zu)}}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 zy(e){return e.replace(/start|end/g,function(t){return mA[t]})}function f0(e){var t=cr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function h0(e){return vs($o(e)).left+f0(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+h0(e),y:l}}function vA(e){var t,n=$o(e),r=f0(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+h0(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 p0(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)&&p0(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||[],p0(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Hl(Uf(a)))}function Tg(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 By(e,t,n){return t===b3?Tg(gA(e,n)):aa(t)?bA(t,n):Tg(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=By(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},By(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 E3(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?d0(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,y=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),E=E3({reference:$,element:y,placement:i}),k=Tg(Object.assign({},y,E)),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 T=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]+=T[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)===l0)return[];var t=md(e);return[zy(e),t,zy(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,y=l||(_||!p?[md(v)]:_A(v)),C=[v].concat(y).reduce(function(Y,X){return Y.concat(Yr(X)===l0?wA(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):X)},[]),b=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,O=C[0],j=0;j<C.length;j++){var S=C[j],T=Yr(S),A=bs(S)===ms,D=[Qn,wr].indexOf(T)>=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 z=md(I),W=[];if(o&&W.push(M[T]<=0),s&&W.push(M[I]<=0,M[z]<=0),W.every(function(Y){return Y})){O=S,k=!1;break}E.set(S,W)}if(k)for(var P=p?3:1,B=function(X){var J=C.find(function(ee){var U=E.get(ee);if(U)return U.slice(0,X).every(function(L){return L})});if(J)return O=J,"break"},q=P;q>0;q--){var H=B(q);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 EA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SA};function TA(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]=TA(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]=E3({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),y=!_,C=d0(x),b=RA(C),$=t.modifiersData.popperOffsets,E=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,T={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],z=I+v[D],W=I-v[R],P=h?-k[M]/2:0,B=_===ms?E[M]:k[M],q=_===ms?-k[M]:-E[M],H=t.elements.arrow,Y=h&&H?u0(H):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_3(),J=X[D],ee=X[R],U=Ul(0,E[M],Y[M]),L=y?E[M]/2-P-U-J-j.mainAxis:B-U-J-j.mainAxis,F=y?-E[M]/2+P+U+ee+j.mainAxis:q+U+ee+j.mainAxis,V=t.elements.arrow&&Kc(t.elements.arrow),N=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,Q=(A=S==null?void 0:S[C])!=null?A:0,G=I+L-Q-N,K=I+F-Q,se=Ul(h?jd(z,G):z,I,h?Jo(W,K):W);$[C]=se,T[C]=se-I}if(s){var ne,re=C==="x"?Qn:Jn,oe=C==="x"?wr:_r,ue=$[b],ye=b==="y"?"height":"width",xe=ue+v[re],we=ue-v[oe],Me=[Qn,Jn].indexOf(x)!==-1,de=(ne=S==null?void 0:S[b])!=null?ne:0,le=Me?xe:ue-E[ye]-k[ye]-de+j.altAxis,be=Me?ue+E[ye]+k[ye]-de-j.altAxis:we,ze=h&&Me?rA(le,ue,be):Ul(h?le:xe,ue,h?be:we);$[b]=ze,T[b]=ze-ue}t.modifiersData[r]=T}}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)?f0(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"||p0(o))&&(s=IA(t)),Gr(t)?(l=vs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=h0(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 zA(e){var t=FA(e);return eA.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function BA(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 y=zA(WA([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,y=x.popper;if(Vy(_,y)){u.rects={reference:LA(_,Kc(y),u.options.strategy==="fixed"),popper:u0(y)},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,E=b.options,k=E===void 0?{}:E,O=b.name;typeof $=="function"&&(u=$({state:u,options:k,name:O,instance:h})||u)}}}},update:BA(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,y=_===void 0?{}:_,C=v.effect;if(typeof C=="function"){var b=C({state:u,name:x,instance:h,options:y}),$=function(){};d.push(b||$)}})}function g(){d.forEach(function(v){return v()}),d=[]}return h}}const HA=UA({defaultModifiers:[EA,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 T3(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(y=>{x[y]=v.styles[y],_[y]=v.attributes[y]}),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 eR(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||eR(c)||!JA(c)||!!ic(u,c.target)||o.current,o.current=!1},[e]),s=Tn(c=>{const u=gd(e);u&&ic(u,c.target)?o.current=!0:o.current=!1}),l=Tn(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 tR(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function nR(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=tR(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:nR(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 rR=["children","usePopper"];function iR(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 oR=()=>{};function A3(e={}){const t=m.useContext(Wf),[n,r]=$g(),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||{},y=T3(_,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||oR,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),b={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return O3(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function R3(e){let{children:t,usePopper:n=!0}=e,r=iR(e,rR);const[i,o]=A3(Object.assign({},r,{usePopper:n}));return w.jsx(w.Fragment,{children:t(i,o)})}R3.displayName="DropdownMenu";const Nd={prefix:String(Math.round(Math.random()*1e10)),current:0},j3=m.createContext(Nd),aR=m.createContext(!1);let sR=!!(typeof window<"u"&&window.document&&window.document.createElement),em=new WeakMap;function lR(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=em.get(o);a==null?em.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,em.delete(o))}n.current=++t.current}return n.current}function cR(e){let t=m.useContext(j3);t===Nd&&!sR&&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=lR(!!e),r=t===Nd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function uR(e){let t=m.useId(),[n]=m.useState(mR()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Nd.prefix}`;return e||`${r}-${t}`}const dR=typeof m.useId=="function"?uR:cR;function fR(){return!1}function hR(){return!0}function pR(e){return()=>{}}function mR(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(pR,fR,hR):m.useContext(aR)}const N3=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Gy=()=>{};function D3(){const e=dR(),{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 w.jsx(w.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 gR="data-rr-ui-",vR="rrUi";function Bs(e){return`${gR}${e}`}function bR(e){return`${vR}${e}`}const yR=["eventKey","disabled","onClick","active","as"];function xR(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:Tn(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[Bs("dropdown-item")]:""},{isActive:c}]}const L3=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=i0}=e,s=xR(e,yR);const[l]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return w.jsx(a,Object.assign({},s,{ref:t},l))});L3.displayName="DropdownItem";const F3=m.createContext(zs?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=`* [${Bs("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=Vf(),[c,u]=B8(t,e,r),[d,f]=Ky(),h=d.current,[p,g]=Ky(),v=p.current,x=d3(c),_=m.useRef(null),y=m.useRef(!1),C=m.useContext(ys),b=m.useCallback((S,T,A=T==null?void 0:T.type)=>{u(S,{originalEvent:T,source:A})},[u]),$=Tn((S,T)=>{n==null||n(S,T),b(!1,T,"select"),T.isPropagationStopped()||C==null||C(S,T)}),E=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&&(y.current=h.contains(h.ownerDocument.activeElement));const k=Tn(()=>{v&&v.focus&&v.focus()}),O=Tn(()=>{const S=_.current;let T=o;if(T==null&&(T=d.current&&N3(d.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const A=wi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():y.current&&(y.current=!1,k())},[c,y,k,O]),m.useEffect(()=>{_.current=null});const j=(S,T)=>{if(!d.current)return null;const A=wi(d.current,i);let D=A.indexOf(S)+T;return D=Math.max(0,Math.min(D,A.length)),A[D]};return $8(m.useCallback(()=>l.document,[l]),"keydown",S=>{var T,A;const{key:D}=S,R=S.target,M=(T=d.current)==null?void 0:T.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 W={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,W);else{const P=j(R,1);P&&P.focus&&P.focus()}return;case"Tab":e0(R.ownerDocument,"keyup",P=>{var B;(P.key==="Tab"&&!P.target||!((B=d.current)!=null&&B.contains(P.target)))&&u(!1,W)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,W);break}}),w.jsx(ys.Provider,{value:$,children:w.jsx(Wf.Provider,{value:E,children:s})})}Zc.displayName="Dropdown";Zc.Menu=R3;Zc.Toggle=I3;Zc.Item=L3;const m0=ie.createContext({});m0.displayName="DropdownContext";const z3=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=ft(t,"dropdown-divider"),w.jsx(n,{ref:o,className:ce(e,t),role:r,...i})));z3.displayName="DropdownDivider";const B3=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=ft(t,"dropdown-header"),w.jsx(n,{ref:o,className:ce(e,t),role:r,...i})));B3.displayName="DropdownHeader";const W3=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=o0,...s},l)=>{const c=ft(e,"dropdown-item"),[u,d]=P3({key:n,href:s.href,disabled:r,onClick:i,active:o});return w.jsx(a,{...s,...u,ref:l,className:ce(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"),w.jsx(n,{ref:i,className:ce(e,t),...r})));U3.displayName="DropdownItemText";const wR=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_R=typeof document<"u",g0=_R||wR?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(m0);n=n||g;const _=m.useContext(qf),y=[];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 T=S[0],A=n[T];f=A==="start",y.push(`${p}-${T}-${A}`)}}else n==="end"&&(f=!0);const C=q3(f,v,x),[b,{hasShown:$,popper:E,show:k,toggle:O}]=A3({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&y.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=wa(V3(d,"DropdownMenu"),b.ref),g0(()=>{k&&(E==null||E.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 E!=null&&E.placement&&(j={...u.style,...b.style},u["x-placement"]=E.placement),w.jsx(s,{...u,...b,style:j,...(y.length||h)&&{"data-bs-popper":"static"},className:ce(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...y)})});Y3.displayName="DropdownMenu";const G3=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=a0,...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")),w.jsx(i,{className:ce(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}=Qv(e,{show:"onToggle"}),p=m.useContext(qf),g=ft(n,"dropdown"),v=zf(),x=E=>f===!1?E==="click":f==="inside"?E!=="rootClose":f==="outside"?E!=="select":!0,_=fo((E,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(E,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 w.jsx(m0.Provider,{value:b,children:w.jsx(Zc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:w.jsx(u,{...h,ref:t,className:ce(o,i&&"show",$[r])})})})});K3.displayName="Dropdown";const xs=Object.assign(K3,{Toggle:G3,Menu:Y3,Item:W3,ItemText:U3,Divider:z3,Header:B3}),CR={type:ve.string,tooltip:ve.bool,as:ve.elementType},Yf=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>w.jsx(e,{...i,ref:o,className:ce(t,`${n}-${r?"tooltip":"feedback"}`)}));Yf.displayName="Feedback";Yf.propTypes=CR;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"),w.jsx(a,{...s,ref:l,type:r,id:e||c,className:ce(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"),w.jsx("label",{...r,ref:i,htmlFor:n||o,className:ce(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",..._},y)=>{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),E=w.jsx(Gf,{..._,type:p==="switch"?"checkbox":p,ref:y,isValid:a,isInvalid:s,disabled:o,as:x});return w.jsx(ji.Provider,{value:b,children:w.jsx("div",{style:f,className:ce(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||w.jsxs(w.Fragment,{children:[E,$&&w.jsx(Dd,{title:h,children:g}),c&&w.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."),w.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:ce(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"),w.jsx(n,{ref:i,className:ce(e,t),...r})));J3.displayName="FormFloating";const v0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return w.jsx(ji.Provider,{value:i,children:w.jsx(t,{...n,ref:r})})});v0.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=ce(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?w.jsx(s0,{ref:s,as:"label",className:u,htmlFor:o,...a}):w.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"),w.jsx("input",{...r,type:"range",ref:i,className:ce(t,e),id:n||o})});tC.displayName="FormRange";const b0=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"),w.jsx("select",{...s,size:n,ref:l,className:ce(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});b0.displayName="FormSelect";const nC=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=ft(e,"form-text"),w.jsx(n,{...i,ref:o,className:ce(t,e,r&&"text-muted")})));nC.displayName="FormText";const rC=ie.forwardRef((e,t)=>w.jsx(Id,{...e,ref:t,type:"switch"}));rC.displayName="Switch";const $R=Object.assign(rC,{Input:Id.Input,Label:Id.Label}),y0=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=ft(e,"form-floating"),w.jsxs(v0,{ref:a,className:ce(t,e),controlId:r,...o,children:[n,w.jsx("label",{htmlFor:r,children:i})]})));y0.displayName="FloatingLabel";const SR={_ref:ve.any,validated:ve.bool,as:ve.elementType},x0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>w.jsx(n,{...r,ref:i,className:ce(e,t&&"was-validated")}));x0.displayName="Form";x0.propTypes=SR;const si=Object.assign(x0,{Group:v0,Control:Q3,Floating:J3,Check:Id,Switch:$R,Label:eC,Text:nC,Range:tC,Select:b0,FloatingLabel:y0}),Zy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function ER(e,t){const n=Zy(e),r=Zy(t);return i=>{n&&n(i),r&&r(i)}}function Xc(e,t){return m.useMemo(()=>ER(e,t),[e,t])}const iC=ie.createContext(null),TR=["as","active","eventKey"];function kR(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[Bs("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=Tn(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=i0,active:r,eventKey:i}=e,o=kR(e,TR);const[a,s]=oC(Object.assign({key:oc(i,o.href),active:r},o));return a[Bs("active")]=s.isActive,w.jsx(n,Object.assign({},o,a,{ref:t}))});aC.displayName="NavItem";const OR=["as","onSelect","activeKey","role","onKeyDown"];function MR(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=Bs("event-key"),sC=ie.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=MR(e,OR);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=y=>{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 E=b.indexOf($);if(E===-1)return null;let k=E+y;return k>=b.length&&(k=0),k<0&&(k=b.length-1),b[k]},v=(y,C)=>{y!=null&&(r==null||r(y,C),u==null||u(y,C))},x=y=>{if(a==null||a(y),!d)return;let C;switch(y.key){case"ArrowLeft":case"ArrowUp":C=g(-1);break;case"ArrowRight":case"ArrowDown":C=g(1);break;default:return}C&&(y.preventDefault(),v(C.dataset[bR("EventKey")]||null,y),c.current=!0,l())};m.useEffect(()=>{if(p.current&&c.current){const y=p.current.querySelector(`[${Qy}][aria-selected=true]`);y==null||y.focus()}c.current=!1});const _=Xc(t,p);return w.jsx(ys.Provider,{value:v,children:w.jsx(Hf.Provider,{value:{role:o,activeKey:oc(i),getControlledId:f||Xy,getControllerId:h||Xy},children:w.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:o}))})})});sC.displayName="Nav";const AR=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."),w.jsx(h,{ref:c,...l,...u,onClick:f,className:ce(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}=Qv(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.'),w.jsx(AR,{ref:t,...l,as:s,className:ce(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,a&&`${c}-numbered`)})});lC.displayName="ListGroup";const cC=Object.assign(lC,{Item:Kf});var Bu;function Jy(e){if((!Bu&&Bu!==0||e)&&zs){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),Bu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Bu}function RR(){return m.useState(null)}function tm(e){e===void 0&&(e=Ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function jR(e){const t=m.useRef(e);return t.current=e,t}function NR(e){const t=jR(e);m.useEffect(()=>()=>t.current(),[])}function DR(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ex=Bs("modal-open");class w0{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return DR(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 nm=(e,t)=>zs?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 kg(e,t){const n=Vf(),[r,i]=m.useState(()=>nm(e,n==null?void 0:n.document));if(!r){const o=nm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=nm(e);o!==r&&i(o)},[e,r]),r}function IR({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=m.useRef(null),a=m.useRef(t),s=Tn(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 PR=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function LR(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 FR(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=LR(e,PR);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]),y=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:y},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const zR=["component"];function BR(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 WR=ie.forwardRef((e,t)=>{let{component:n}=e,r=BR(e,zR);const i=FR(r);return w.jsx(n,Object.assign({ref:t},i))});function UR({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),i=Tn(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 HR({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=UR({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 Og(e,t,n){return e?w.jsx(WR,Object.assign({},n,{component:e})):t?w.jsx(HR,Object.assign({},n,{transition:t})):w.jsx(IR,Object.assign({},n))}const VR=["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 qR(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 rm;function YR(e){return rm||(rm=new w0({ownerDocument:e==null?void 0:e.document})),rm}function GR(e){const t=Vf(),n=e||YR(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:y,renderBackdrop:C=K=>w.jsx("div",Object.assign({},K)),manager:b,container:$,onShow:E,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:T,onEntering:A,onEntered:D}=e,R=qR(e,VR);const M=Vf(),I=kg($),z=GR(b),W=u3(),P=d3(n),[B,q]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>z,[z]),zs&&!P&&n&&(H.current=tm(M==null?void 0:M.document)),n&&B&&q(!1);const Y=Tn(()=>{if(z.add(),F.current=$i(document,"keydown",U),L.current=$i(document,"focus",()=>setTimeout(J),!0),E&&E(),g){var K,se;const ne=tm((K=(se=z.dialog)==null?void 0:se.ownerDocument)!=null?K:M==null?void 0:M.document);z.dialog&&ne&&!ic(z.dialog,ne)&&(H.current=ne,z.dialog.focus())}}),X=Tn(()=>{if(z.remove(),F.current==null||F.current(),L.current==null||L.current(),x){var K;(K=H.current)==null||K.focus==null||K.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{B&&X()},[B,X]),NR(()=>{X()});const J=Tn(()=>{if(!v||!W()||!z.isTopModal())return;const K=tm(M==null?void 0:M.document);z.dialog&&K&&!ic(z.dialog,K)&&z.dialog.focus()}),ee=Tn(K=>{K.target===K.currentTarget&&(c==null||c(K),s===!0&&k())}),U=Tn(K=>{l&&i3(K)&&z.isTopModal()&&(u==null||u(K),K.defaultPrevented||k())}),L=m.useRef(),F=m.useRef(),V=(...K)=>{q(!0),j==null||j(...K)};if(!I)return null;const N=Object.assign({role:r,ref:z.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let Q=y?y(N):w.jsx("div",Object.assign({},N,{children:ie.cloneElement(a,{role:"document"})}));Q=Og(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:O,onExiting:S,onExited:V,onEnter:T,onEntering:A,onEntered:D,children:Q});let G=null;return s&&(G=C({ref:z.setBackdropRef,onClick:ee}),G=Og(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G})),w.jsx(w.Fragment,{children:mn.createPortal(w.jsxs(w.Fragment,{children:[G,Q]}),I)})});uC.displayName="Modal";const dC=Object.assign(uC,{Manager:w0});function Mg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function KR(e,t){e.classList?e.classList.add(t):Mg(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 ZR(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 w0{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(KR(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();ZR(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 im;function hC(e){return im||(im=new fC(e)),im}const pC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"modal-body"),w.jsx(n,{ref:i,className:ce(e,t),...r})));pC.displayName="ModalBody";const _0=ie.createContext({onHide(){}}),C0=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 w.jsx("div",{...l,ref:c,className:ce(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:w.jsx("div",{className:ce(`${e}-content`,n),children:a})})});C0.displayName="ModalDialog";const mC=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"modal-footer"),w.jsx(n,{ref:i,className:ce(e,t),...r})));mC.displayName="ModalFooter";const $0=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(_0),l=fo(()=>{s==null||s.onHide(),r==null||r()});return w.jsxs("div",{ref:a,...o,children:[i,n&&w.jsx(Bf,{"aria-label":e,variant:t,onClick:l})]})});$0.displayName="AbstractModalHeader";const gC=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=ft(e,"modal-header"),w.jsx($0,{ref:o,...i,className:ce(t,e),closeLabel:n,closeButton:r})));gC.displayName="ModalHeader";const XR=n0("h4"),vC=ie.forwardRef(({className:e,bsPrefix:t,as:n=XR,...r},i)=>(t=ft(t,"modal-title"),w.jsx(n,{ref:i,className:ce(e,t),...r})));vC.displayName="ModalTitle";function QR(e){return w.jsx(ho,{...e,timeout:null})}function JR(e){return w.jsx(ho,{...e,timeout:null})}const bC=ie.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=C0,"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:y=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:$,onEntered:E,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:T,backdropClassName:A,manager:D,...R},M)=>{const[I,z]=m.useState({}),[W,P]=m.useState(!1),B=m.useRef(!1),q=m.useRef(!1),H=m.useRef(null),[Y,X]=RR(),J=wa(M,X),ee=fo(x),U=zf();e=ft(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function F(){return D||hC({isRTL:U})}function V(le){if(!zs)return;const be=F().getScrollbarWidth()>0,ze=le.scrollHeight>Ls(le).documentElement.clientHeight;z({paddingRight:be&&!ze?Jy():void 0,paddingLeft:!be&&ze?Jy():void 0})}const N=fo(()=>{Y&&V(Y.dialog)});p3(()=>{Cg(window,"resize",N),H.current==null||H.current()});const Q=()=>{B.current=!0},G=le=>{B.current&&Y&&le.target===Y.dialog&&(q.current=!0),B.current=!1},K=()=>{P(!0),H.current=o3(Y.dialog,()=>{P(!1)})},se=le=>{le.target===le.currentTarget&&K()},ne=le=>{if(h==="static"){se(le);return}if(q.current||le.target!==le.currentTarget){q.current=!1;return}x==null||x()},re=le=>{p?g==null||g(le):(le.preventDefault(),h==="static"&&K())},oe=(le,be)=>{le&&V(le),j==null||j(le,be)},ue=le=>{H.current==null||H.current(),k==null||k(le)},ye=(le,be)=>{S==null||S(le,be),e0(window,"resize",N)},xe=le=>{le&&(le.style.display=""),T==null||T(le),Cg(window,"resize",N)},we=m.useCallback(le=>w.jsx("div",{...le,className:ce(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Me={...n,...I};Me.display="block";const de=le=>w.jsx("div",{role:"dialog",...le,style:Me,className:ce(t,e,W&&`${e}-static`,!f&&"show"),onClick:h?ne:void 0,onMouseUp:G,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:w.jsx(a,{...R,onMouseDown:Q,className:r,contentClassName:i,children:o})});return w.jsx(_0.Provider,{value:L,children:w.jsx(dC,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:y,enforceFocus:C,restoreFocus:b,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:oe,onEntering:ye,onEntered:E,onExit:ue,onExiting:O,onExited:xe,manager:F(),transition:f?QR:void 0,backdropTransition:f?JR:void 0,renderBackdrop:we,renderDialog:de})})});bC.displayName="Modal";const Xn=Object.assign(bC,{Body:pC,Header:gC,Title:vC,Footer:mC,Dialog:C0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),e7=()=>{};function t7(e,t,{disabled:n,clickTrigger:r}={}){const i=t||e7;O3(e,i,{disabled:n,clickTrigger:r});const o=Tn(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]=$g(),[d,f]=$g(),h=Xc(u,t),p=kg(e.container),g=kg(e.target),[v,x]=m.useState(!e.show),_=T3(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 y=(...S)=>{x(!0),e.onExited&&e.onExited(...S)},C=e.show||!v;if(t7(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:b,onExiting:$,onEnter:E,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=Og(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:b,onExiting:$,onExited:y,onEnter:E,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"),w.jsx(n,{ref:i,className:ce(e,t),...r})));xC.displayName="PopoverHeader";const S0=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=ft(t,"popover-body"),w.jsx(n,{ref:i,className:ce(e,t),...r})));S0.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=zf(),[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)}),w.jsxs("div",{ref:d,role:"tooltip",style:v,"x-placement":p,className:ce(n,f,p&&`bs-popover-${g}`),...u,children:[w.jsx("div",{className:"popover-arrow",...a}),o?w.jsx(S0,{children:i}):i]})});CC.displayName="Popover";const vd=Object.assign(CC,{Header:xC,Body:S0,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=zf(),[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)}),w.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:ce(n,e,`bs-tooltip-${h}`),...c,children:[w.jsx("div",{className:"tooltip-arrow",...o}),w.jsx("div",{className:`${e}-inner`,children:i})]})});$C.displayName="Tooltip";const SC=Object.assign($C,{TOOLTIP_OFFSET:[0,6]});function n7(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(Mg(t.current,n))return vd.POPPER_OFFSET;if(Mg(t.current,r))return SC.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function r7(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 EC=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]=n7(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 g0(()=>{c&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,a.target]),m.useEffect(()=>{o||u(null)},[o]),w.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:y})=>{var C;r7(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}),E=!!c;return typeof e=="function"?e({...v,placement:b,show:y,...!t&&y&&{className:"show"},popper:$,arrowProps:x,hasDoneInitialMeasure:E}):ie.cloneElement(e,{...v,placement:b,arrowProps:x,popper:$,hasDoneInitialMeasure:E,className:ce(e.props.className,!t&&y&&"show"),style:{...e.props.style,...v.style}})}})});EC.displayName="Overlay";function i7(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)}ve.oneOf(["click","hover","focus"]);const TC=({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=i7(s),{onFocus:_,onBlur:y,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]),E=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)=>{E(),y==null||y(...R)},[E,y]),j=m.useCallback((...R)=>{v(!g),C==null||C(...R)},[C,v,g]),S=m.useCallback((...R)=>{nx($,R,"fromElement")},[$]),T=m.useCallback((...R)=>{nx(E,R,"toElement")},[E]),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=T),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(D):m.cloneElement(n,D),w.jsx(EC,{...u,show:g,onHide:E,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 w.jsx(i,{ref:s,...a,className:ce(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),o7=["attr","size","title"];function a7(e,t){if(e==null)return{};var n=s7(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 s7(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){l7(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 l7(e,t,n){return t=c7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c7(e){var t=u7(e,"string");return typeof t=="symbol"?t:t+""}function u7(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(d7,Pd({attr:Ld({},e.attr)},t),OC(e.child))}function d7(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=a7(e,o7),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 f7(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 h7(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 p7(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 m7(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 g7(e){return dt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function v7(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 b7(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 y7(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 x7(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 w7(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 _7(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 C7(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 $7(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 S7(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 E7(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 T7(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 k7(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 O7(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 M7(e){return dt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},child:[]},{tag:"path",attr:{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},child:[]}]})(e)}function A7(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 R7(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 j7(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 N7(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 D7(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 I7(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 P7(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 L7(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 F7(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 z7={data:""},B7=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||z7},W7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,U7=/\/\*[^]*?\*\/| +/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},H7=(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=W7.exec(c.replace(U7,""));)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},V7=(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 H7(n.unshift?n.raw?V7(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,B7(t.target),t.g,t.o,t.k)}let PC,Ag,Rg;Zf.bind({g:1});let Ni=Zf.bind({k:1});function q7(e,t,n,r){no.p=t,PC=e,Ag=n,Rg=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:Ag&&Ag()},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),Rg&&c[0]&&Rg(s),PC(c,s)}return i}}var Y7=e=>typeof e=="function",Fd=(e,t)=>Y7(e)?e(t):e,G7=(()=>{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}})(),K7=20,T0="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=[],zC={toasts:[],pausedAt:void 0,settings:{toastLimit:K7}},qr={},BC=(e,t=T0)=>{qr[t]=FC(qr[t]||zC,e),bd.forEach(([n,r])=>{n===t&&r(qr[t])})},WC=e=>Object.keys(qr).forEach(t=>BC(e,t)),Z7=e=>Object.keys(qr).find(t=>qr[t].toasts.some(n=>n.id===e)),Xf=(e=T0)=>t=>{BC(t,e)},X7={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Q7=(e={},t=T0)=>{let[n,r]=m.useState(qr[t]||zC),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)||X7[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},J7=(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)||G7()}),Jc=e=>(t,n)=>{let r=J7(t,e,n);return Xf(r.toasterId||Z7(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 e9=1e3,t9=(e,t="default")=>{let{toasts:n,pausedAt:r}=Q7(e,t),i=m.useRef(new Map).current,o=m.useCallback((d,f=e9)=>{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(y=>(y.position||g)===(d.position||g)&&y.height),x=v.findIndex(y=>y.id===d.id),_=v.filter((y,C)=>C<x&&y.visible).length;return v.filter(y=>y.visible).slice(...h?[_+1]:[0,_]).reduce((y,C)=>y+(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}}},n9=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
|
+
}`,r9=Ni`
|
|
53
|
+
from {
|
|
54
|
+
transform: scale(0);
|
|
55
|
+
opacity: 0;
|
|
56
|
+
}
|
|
57
|
+
to {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}`,i9=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
|
+
}`,o9=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: ${n9} 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: ${r9} 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: ${i9} 0.15s ease-out forwards;
|
|
98
|
+
animation-delay: 180ms;
|
|
99
|
+
transform: rotate(90deg);
|
|
100
|
+
}
|
|
101
|
+
`,a9=Ni`
|
|
102
|
+
from {
|
|
103
|
+
transform: rotate(0deg);
|
|
104
|
+
}
|
|
105
|
+
to {
|
|
106
|
+
transform: rotate(360deg);
|
|
107
|
+
}
|
|
108
|
+
`,s9=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: ${a9} 1s linear infinite;
|
|
117
|
+
`,l9=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
|
+
}`,c9=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
|
+
}`,u9=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: ${l9} 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: ${c9} 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
|
+
`,d9=So("div")`
|
|
167
|
+
position: absolute;
|
|
168
|
+
`,f9=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
|
+
`,h9=Ni`
|
|
176
|
+
from {
|
|
177
|
+
transform: scale(0.6);
|
|
178
|
+
opacity: 0.4;
|
|
179
|
+
}
|
|
180
|
+
to {
|
|
181
|
+
transform: scale(1);
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}`,p9=So("div")`
|
|
184
|
+
position: relative;
|
|
185
|
+
transform: scale(0.6);
|
|
186
|
+
opacity: 0.4;
|
|
187
|
+
min-width: 20px;
|
|
188
|
+
animation: ${h9} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
189
|
+
forwards;
|
|
190
|
+
`,m9=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?ie.createElement(p9,null,t):t:n==="blank"?null:ie.createElement(f9,null,ie.createElement(s9,{...r}),n!=="loading"&&ie.createElement(d9,null,n==="error"?ie.createElement(o9,{...r}):ie.createElement(u9,{...r})))},g9=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
|
+
`,v9=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
|
+
`,b9="0%{opacity:0;} 100%{opacity:1;}",y9="0%{opacity:1;} 100%{opacity:0;}",x9=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
|
+
`,w9=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
|
+
`,_9=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=LC()?[b9,y9]:[g9(n),v9(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)`}},C9=ie.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?_9(e.position||t||"top-center",e.visible):{opacity:0},o=ie.createElement(m9,{toast:e}),a=ie.createElement(w9,{...e.ariaProps},Fd(e.message,e));return ie.createElement(x9,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):ie.createElement(ie.Fragment,null,o,a))});q7(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)},S9=(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}},E9=Zf`
|
|
216
|
+
z-index: 9999;
|
|
217
|
+
> * {
|
|
218
|
+
pointer-events: auto;
|
|
219
|
+
}
|
|
220
|
+
`,Wu=16,T9=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=t9(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=S9(d,f);return ie.createElement($9,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?E9:"",style:h},u.type==="custom"?Fd(u.message,u):i?i(u):ie.createElement(C9,{toast:u,position:d}))}))},Fa=yn;const Qf=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var jg;(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"})(jg||(jg={}));const UC=jg;var Ng;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(Ng||(Ng={}));const k9=Ng,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()=>{}}),zd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),qC=e=>{zd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(zd(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),O9=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&YC(r)?t[n]=null:t[n]=r}),t},k0=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(o=>`${o.charAt(0).toLowerCase()}${o.slice(1)}`).join("."),errors:r.errors})):[]},M9=(e,t)=>{k0(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),zd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},GC=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},KC=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=ce("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&&w.jsx(vd.Header,{children:typeof o=="string"?w.jsx(Bn,{variant:"h6",className:"text-primary",children:o}):o}),t[17]=o,t[18]=v):v=t[18];let x;t[19]!==r?(x=w.jsx(vd.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==g||t[22]!==v||t[23]!==x?(_=w.jsxs(vd,{className:g,onClick:A9,children:[v,x]}),t[21]=g,t[22]=v,t[23]=x,t[24]=_):_=t[24];const y=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]!==y||t[32]!==C||t[33]!==p?(b=w.jsx(TC,{placement:a,overlay:_,trigger:p,rootClose:!0,show:y,onToggle:C,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=a,t[30]=_,t[31]=y,t[32]=C,t[33]=p,t[34]=b):b=t[34],b};function A9(e){return e.stopPropagation()}const R9="_h1_14r4v_1",j9="_h3_14r4v_8",N9="_h6_14r4v_15",D9="_subtitle_14r4v_22",I9="_body_14r4v_29",P9="_body2_14r4v_36",L9="_caption_14r4v_43",F9="_form-label_14r4v_50",Gi={h1:R9,h3:j9,h6:N9,subtitle:D9,body:I9,body2:P9,caption:L9,formLabel:F9},z9=e=>{const t=Re.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let o;t[0]!==r?(o=ce("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=w.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=ce("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=w.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=ce("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=w.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=ce("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=w.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=ce("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=w.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=ce("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=w.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=ce("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=w.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=ce("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=w.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=w.jsx(w.Fragment,{children:i}),t[40]=i,t[41]=o):o=t[41],o}}},Bn=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=w.jsx(z9,{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=w.jsx(Bn,{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=w.jsx(KC,{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},ZC=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 Dg=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),B9=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function W9(e){return e==null?"":Xv(Ff(e),"dd.MM.yyyy")}function eh(e){return(e==null?void 0:e.toString().split("T")[0])??""}function U9(e){return e==null?"":Xv(Ff(e),"dd.MM.yyyy HH:mm")}function H9(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const V9=(e,t)=>M0(" ",e?`${e},`:void 0,t),q9=(e,t)=>`${t}${e!=null?` (${e})`:""}`,Y9=(e,t)=>`[${e??""}] ${t??""}`,XC=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),QC=e=>{const t=Ff(e);return!Number.isNaN(t.getTime())};function G9(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function K9(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Z9(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 X9(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function Q9(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 JC(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function e$(e=new Date){return AO(e)}function J9(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),JC(t)}function ej(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),e$(t)}function tj(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function nj(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function rj(e){return eh(e.toISOString())}function t$(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=XC(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 Bd(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 ij=["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"],oj=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],n$=e=>ij.includes(e.type),r$=e=>oj.includes(e.toLowerCase());function aj(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=t$(e.headers.get("Content-disposition"))??n)}const r=n$(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;Bd(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 Ig=(e,t)=>t?e?_s(e).toLowerCase().includes(_s(t.toLowerCase())):!1:!0,i$=(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("*")?Ig(o,i.substring(1)):i$(o,i):Ig(o,i):!0};function o$(e,t){return function(){return e.apply(t,arguments)}}const{toString:sj}=Object.prototype,{getPrototypeOf:R0}=Object,{iterator:th,toStringTag:a$}=Symbol,nh=(e=>t=>{const n=sj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>nh(t)===e),rh=e=>t=>typeof t===e,{isArray:Ws}=Array,Cs=rh("undefined");function eu(e){return e!==null&&!Cs(e)&&e.constructor!==null&&!Cs(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const s$=Fr("ArrayBuffer");function lj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&s$(e.buffer),t}const cj=rh("string"),er=rh("function"),l$=rh("number"),tu=e=>e!==null&&typeof e=="object",uj=e=>e===!0||e===!1,yd=e=>{if(nh(e)!=="object")return!1;const t=R0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(a$ in e)&&!(th in e)},dj=e=>{if(!tu(e)||eu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fj=Fr("Date"),hj=Fr("File"),pj=Fr("Blob"),mj=Fr("FileList"),gj=e=>tu(e)&&er(e.pipe),vj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((t=nh(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},bj=Fr("URLSearchParams"),[yj,xj,wj,_j]=["ReadableStream","Request","Response","Headers"].map(Fr),Cj=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 c$(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,u$=e=>!Cs(e)&&e!==qo;function Pg(){const{caseless:e,skipUndefined:t}=u$(this)&&this||{},n={},r=(i,o)=>{const a=e&&c$(n,o)||o;yd(n[a])&&yd(i)?n[a]=Pg(n[a],i):yd(i)?n[a]=Pg({},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]=o$(i,n):e[o]=i},{allOwnKeys:r}),e),Sj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ej=(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)},Tj=(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},kj=(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},Oj=e=>{if(!e)return null;if(Ws(e))return e;let t=e.length;if(!l$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Mj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&R0(Uint8Array)),Aj=(e,t)=>{const r=(e&&e[th]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Rj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jj=Fr("HTMLFormElement"),Nj=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),Dj=Fr("RegExp"),d$=(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)},Ij=e=>{d$(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+"'")})}})},Pj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ws(e)?r(e):r(String(e).split(t)),n},Lj=()=>{},Fj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zj(e){return!!(e&&er(e.append)&&e[a$]==="FormData"&&e[th])}const Bj=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)},Wj=Fr("AsyncFunction"),Uj=e=>e&&(tu(e)||er(e))&&er(e.then)&&er(e.catch),f$=((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)),Hj=typeof queueMicrotask<"u"?queueMicrotask.bind(qo):typeof process<"u"&&process.nextTick||f$,Vj=e=>e!=null&&er(e[th]),ae={isArray:Ws,isArrayBuffer:s$,isBuffer:eu,isFormData:vj,isArrayBufferView:lj,isString:cj,isNumber:l$,isBoolean:uj,isObject:tu,isPlainObject:yd,isEmptyObject:dj,isReadableStream:yj,isRequest:xj,isResponse:wj,isHeaders:_j,isUndefined:Cs,isDate:fj,isFile:hj,isBlob:pj,isRegExp:Dj,isFunction:er,isStream:gj,isURLSearchParams:bj,isTypedArray:Mj,isFileList:mj,forEach:nu,merge:Pg,extend:$j,trim:Cj,stripBOM:Sj,inherits:Ej,toFlatObject:Tj,kindOf:nh,kindOfTest:Fr,endsWith:kj,toArray:Oj,forEachEntry:Aj,matchAll:Rj,isHTMLForm:jj,hasOwnProperty:ax,hasOwnProp:ax,reduceDescriptors:d$,freezeMethods:Ij,toObjectSet:Pj,toCamelCase:Nj,noop:Lj,toFiniteNumber:Fj,findKey:c$,global:qo,isContextDefined:u$,isSpecCompliantForm:zj,toJSONObject:Bj,isAsyncFn:Wj,isThenable:Uj,setImmediate:f$,asap:Hj,isIterable:Vj};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)}ae.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:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const h$=it.prototype,p$={};["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=>{p$[e]={value:e}});Object.defineProperties(it,p$);Object.defineProperty(h$,"isAxiosError",{value:!0});it.from=(e,t,n,r,i,o)=>{const a=Object.create(h$);ae.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 qj=null;function Lg(e){return ae.isPlainObject(e)||ae.isArray(e)}function m$(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function sx(e,t,n){return e?e.concat(t).map(function(i,o){return i=m$(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Yj(e){return ae.isArray(e)&&!e.some(Lg)}const Gj=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function ih(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!ae.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ae.isDate(p))return p.toISOString();if(ae.isBoolean(p))return p.toString();if(!l&&ae.isBlob(p))throw new it("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(p)||ae.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(ae.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ae.isArray(p)&&Yj(p)||(ae.isFileList(p)||ae.endsWith(g,"[]"))&&(x=ae.toArray(p)))return g=m$(g),x.forEach(function(y,C){!(ae.isUndefined(y)||y===null)&&t.append(a===!0?sx([g],C,o):a===null?g:g+"[]",c(y))}),!1}return Lg(p)?!0:(t.append(sx(v,g,o),c(p)),!1)}const d=[],f=Object.assign(Gj,{defaultVisitor:u,convertValue:c,isVisitable:Lg});function h(p,g){if(!ae.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),ae.forEach(p,function(x,_){(!(ae.isUndefined(x)||x===null)&&i.call(t,x,ae.isString(_)?_.trim():_,g,f))===!0&&h(x,g?g.concat(_):[_])}),d.pop()}}if(!ae.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&&ih(e,this,t)}const g$=j0.prototype;g$.append=function(t,n){this._pairs.push([t,n])};g$.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 Kj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function v$(e,t,n){if(!t)return e;const r=n&&n.encode||Kj;ae.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=ae.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){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const b$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zj=typeof URLSearchParams<"u"?URLSearchParams:j0,Xj=typeof FormData<"u"?FormData:null,Qj=typeof Blob<"u"?Blob:null,Jj={isBrowser:!0,classes:{URLSearchParams:Zj,FormData:Xj,Blob:Qj},protocols:["http","https","file","blob","url","data"]},N0=typeof window<"u"&&typeof document<"u",Fg=typeof navigator=="object"&&navigator||void 0,eN=N0&&(!Fg||["ReactNative","NativeScript","NS"].indexOf(Fg.product)<0),tN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nN=N0&&window.location.href||"http://localhost",rN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:N0,hasStandardBrowserEnv:eN,hasStandardBrowserWebWorkerEnv:tN,navigator:Fg,origin:nN},Symbol.toStringTag,{value:"Module"})),jn={...rN,...Jj};function iN(e,t){return ih(e,new jn.classes.URLSearchParams,{visitor:function(n,r,i,o){return jn.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function oN(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aN(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 y$(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&&ae.isArray(i)?i.length:a,l?(ae.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ae.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ae.isArray(i[a])&&(i[a]=aN(i[a])),!s)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(oN(r),i,n,0)}),n}return null}function sN(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ru={transitional:b$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ae.isObject(t);if(o&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i?JSON.stringify(y$(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.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 iN(t,this.formSerializer).toString();if((s=ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ih(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),sN(t)):t}],transformResponse:[function(t){const n=this.transitional||ru.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.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}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const lN=ae.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"]),cN=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]&&lN[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:ae.isArray(e)?e.map(xd):String(e)}function uN(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 dN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function om(e,t,n,r,i){if(ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function fN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hN(e,t){const n=ae.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=ae.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)=>ae.forEach(s,(c,u)=>o(c,u,l));if(ae.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ae.isString(t)&&(t=t.trim())&&!dN(t))a(cN(t),n);else if(ae.isObject(t)&&ae.isIterable(t)){let s={},l,c;for(const u of t){if(!ae.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ae.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=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return uN(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.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=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||om(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=ae.findKey(r,a);s&&(!n||om(r,r[s],s,n))&&(delete r[s],i=!0)}}return ae.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||om(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ae.forEach(this,(i,o)=>{const a=ae.findKey(r,o);if(a){n[a]=xd(i),delete n[o];return}const s=t?fN(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 ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ae.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]||(hN(i,a),r[s]=!0)}return ae.isArray(t)?t.forEach(o):o(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(tr);function am(e,t){const n=this||ru,r=t||n,i=tr.from(r.headers);let o=r.data;return ae.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function x$(e){return!!(e&&e.__CANCEL__)}function Us(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Us,it,{__CANCEL__:!0});function w$(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 pN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mN(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 gN(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=mN(50,250);return gN(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)=>ae.asap(()=>e(...t)),vN=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,bN=jn.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ae.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ae.isString(r)&&s.push(`path=${r}`),ae.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),ae.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 yN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _$(e,t,n){let r=!yN(t);return e&&(r||n==!1)?xN(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 ae.isPlainObject(c)&&ae.isPlainObject(u)?ae.merge.call({caseless:f},c,u):ae.isPlainObject(u)?ae.merge({},u):ae.isArray(u)?u.slice():u}function i(c,u,d,f){if(ae.isUndefined(u)){if(!ae.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!ae.isUndefined(u))return r(void 0,u)}function a(c,u){if(ae.isUndefined(u)){if(!ae.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 ae.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ae.isUndefined(f)&&d!==s||(n[u]=f)}),n}const C$=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=v$(_$(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ae.isFormData(n)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ae.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&&ae.isFunction(r)&&(r=r(t)),r||r!==!1&&vN(t.url))){const l=i&&o&&bN.read(o);l&&a.set(i,l)}return t},wN=typeof XMLHttpRequest<"u",_N=wN&&function(e){return new Promise(function(n,r){const i=C$(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 y=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:y,config:e,request:v};w$(function(E){n(E),g()},function(E){r(E),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||b$;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&&ae.forEach(a.toJSON(),function(C,b){v.setRequestHeader(b,C)}),ae.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=y=>{v&&(r(!y||y.type?new Us(null,e,v):y),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=pN(i.url);if(_&&jn.protocols.indexOf(_)===-1){r(new it("Unsupported protocol "+_+":",it.ERR_BAD_REQUEST,e));return}v.send(o||null)})},CN=(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=()=>ae.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},SN=async function*(e,t){for await(const n of EN(e))yield*$N(n,t)},EN=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=SN(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}=ae,TN=(({Request:e,Response:t})=>({Request:e,Response:t}))(ae.global),{ReadableStream:gx,TextEncoder:vx}=ae.global,bx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kN=e=>{e=ae.merge.call({skipUndefined:!0},TN,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(()=>ae.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(ae.isBlob(p))return p.size;if(ae.isSpecCompliantForm(p))return(await new n(jn.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(p)||ae.isArrayBuffer(p))return p.byteLength;if(ae.isURLSearchParams(p)&&(p=p+""),ae.isString(p))return(await l(p)).byteLength},h=async(p,g)=>{const v=ae.toFiniteNumber(p.getContentLength());return v??f(g)};return async p=>{let{url:g,method:v,data:x,signal:_,cancelToken:y,timeout:C,onDownloadProgress:b,onUploadProgress:$,responseType:E,headers:k,withCredentials:O="same-origin",fetchOptions:j}=C$(p),S=t||fetch;E=E?(E+"").toLowerCase():"text";let T=CN([_,y&&y.toAbortSignal()],C),A=null;const D=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let R;try{if($&&c&&v!=="get"&&v!=="head"&&(R=await h(k,x))!==0){let B=new n(g,{method:"POST",body:x,duplex:"half"}),q;if(ae.isFormData(x)&&(q=B.headers.get("content-type"))&&k.setContentType(q),B.body){const[H,Y]=dx(R,Wd(fx($)));x=px(B.body,mx,H,Y)}}ae.isString(O)||(O=O?"include":"omit");const M=o&&"credentials"in n.prototype,I={...j,signal:T,method:v.toUpperCase(),headers:k.normalize().toJSON(),body:x,duplex:"half",credentials:M?O:void 0};A=o&&new n(g,I);let z=await(o?S(A,j):S(g,I));const W=u&&(E==="stream"||E==="response");if(u&&(b||W&&D)){const B={};["status","statusText","headers"].forEach(X=>{B[X]=z[X]});const q=ae.toFiniteNumber(z.headers.get("content-length")),[H,Y]=b&&dx(q,Wd(fx(b),!0))||[];z=new r(px(z.body,mx,H,()=>{Y&&Y(),D&&D()}),B)}E=E||"text";let P=await d[ae.findKey(d,E)||"text"](z,p);return!W&&D&&D(),await new Promise((B,q)=>{w$(B,q,{data:P,headers:tr.from(z.headers),status:z.status,statusText:z.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)}}},ON=new Map,$$=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=ON;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:kN(t)),u=c;return c};$$();const D0={http:qj,xhr:_N,fetch:{get:$$}};ae.forEach(D0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yx=e=>`- ${e}`,MN=e=>ae.isFunction(e)||e===null||e===!1;function AN(e,t){e=ae.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,!MN(r)&&(i=D0[(s=String(r)).toLowerCase()],i===void 0))throw new it(`Unknown adapter '${s}'`);if(i&&(ae.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 S$={getAdapter:AN,adapters:D0};function sm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Us(null,e)}function xx(e){return sm(e),e.headers=tr.from(e.headers),e.data=am.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S$.getAdapter(e.adapter||ru.adapter,e)(e).then(function(r){return sm(e),r.data=am.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return x$(r)||(sm(e),r&&r.response&&(r.response.data=am.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const E$="1.13.2",oh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wx={};oh.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}};oh.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function RN(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:RN,validators:oh},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&&(ae.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&&ae.merge(o.common,o[n.method]);o&&ae.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=_$(t.baseURL,t.url,t.allowAbsoluteUrls);return v$(n,t.params,t.paramsSerializer)}};ae.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}))}});ae.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 jN=class T${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 T$(function(i){t=i}),cancel:t}}};function NN(e){return function(n){return e.apply(null,n)}}function DN(e){return ae.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 k$(e){const t=new ea(e),n=o$(ea.prototype.request,t);return ae.extend(n,ea.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return k$(sa(e,i))},n}const Qt=k$(ru);Qt.Axios=ea;Qt.CanceledError=Us;Qt.CancelToken=jN;Qt.isCancel=x$;Qt.VERSION=E$;Qt.toFormData=ih;Qt.AxiosError=it;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=NN;Qt.isAxiosError=DN;Qt.mergeConfig=sa;Qt.AxiosHeaders=tr;Qt.formToJSON=e=>y$(ae.isHTMLForm(e)?new FormData(e):e);Qt.getAdapter=S$.getAdapter;Qt.HttpStatusCode=zg;Qt.default=Qt;const{Axios:_be,AxiosError:Cbe,CanceledError:$be,isCancel:Sbe,CancelToken:Ebe,VERSION:Tbe,all:kbe,Cancel:Obe,isAxiosError:Mbe,spread:Abe,toFormData:Rbe,AxiosHeaders:jbe,HttpStatusCode:Nbe,formToJSON:Dbe,getAdapter:Ibe,mergeConfig:Pbe}=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 IN(){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,y=0,C=0;do{if(y=h.indexOf("=",_),y===-1)break;if(C=h.indexOf(";",_),C===-1)C=v;else if(y>C){_=h.lastIndexOf(";",y-1)+1;continue}var b=s(h,_,y),$=l(h,y,b),E=h.slice(b,$);if(!t.call(g,E)){var k=s(h,y+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[E]=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 y=Math.floor(g.maxAge);if(!isFinite(y))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+y}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=IN();function PN(){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 LN(e){return typeof e=="string"?_d.parse(e):typeof e=="object"&&e!==null?e:{}}function lm(e,t={}){const n=FN(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function FN(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class zN{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=LN(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=PN()}_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:lm(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),lm(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=lm(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 O$=ie.createContext(new zN),{Provider:Lbe,Consumer:Fbe}=O$;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 BN(){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 y(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 y(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)||y(b)===l},Dt.isConcurrentMode=C,Dt.isContextConsumer=function(b){return y(b)===s},Dt.isContextProvider=function(b){return y(b)===a},Dt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Dt.isForwardRef=function(b){return y(b)===u},Dt.isFragment=function(b){return y(b)===r},Dt.isLazy=function(b){return y(b)===p},Dt.isMemo=function(b){return y(b)===h},Dt.isPortal=function(b){return y(b)===n},Dt.isProfiler=function(b){return y(b)===o},Dt.isStrictMode=function(b){return y(b)===i},Dt.isSuspense=function(b){return y(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=y,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 WN(){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 y(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 G=N.type;switch(G){case l:case c:case r:case o:case i:case d:return G;default:var K=G&&G.$$typeof;switch(K){case s:case u:case p:case h:case a:return K;default:return Q}}case n:return Q}}}var b=l,$=c,E=s,k=a,O=t,j=u,S=r,T=p,A=h,D=n,R=o,M=i,I=d,z=!1;function W(N){return z||(z=!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 B(N){return C(N)===s}function q(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 X(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function U(N){return C(N)===n}function L(N){return C(N)===o}function F(N){return C(N)===i}function V(N){return C(N)===d}It.AsyncMode=b,It.ConcurrentMode=$,It.ContextConsumer=E,It.ContextProvider=k,It.Element=O,It.ForwardRef=j,It.Fragment=S,It.Lazy=T,It.Memo=A,It.Portal=D,It.Profiler=R,It.StrictMode=M,It.Suspense=I,It.isAsyncMode=W,It.isConcurrentMode=P,It.isContextConsumer=B,It.isContextProvider=q,It.isElement=H,It.isForwardRef=Y,It.isFragment=X,It.isLazy=J,It.isMemo=ee,It.isPortal=U,It.isProfiler=L,It.isStrictMode=F,It.isSuspense=V,It.isValidElementType=y,It.typeOf=C}()),It}var Sx;function UN(){return Sx||(Sx=1,process.env.NODE_ENV==="production"?Vu.exports=BN():Vu.exports=WN()),Vu.exports}var cm,Ex;function HN(){if(Ex)return cm;Ex=1;var e=UN(),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 y=a(p),C=a(g),b=0;b<_.length;++b){var $=_[b];if(!n[$]&&!(v&&v[$])&&!(C&&C[$])&&!(y&&y[$])){var E=u(g,$);try{s(p,$,E)}catch{}}}}return p}return cm=h,cm}HN();function VN(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function I0(e,t){const n=m.useContext(O$);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=m.useState(()=>n.getAll(i));VN()&&m.useLayoutEffect(()=>{function u(){const d=n.getAll(i);qN(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 qN(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const YN=()=>{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=GN;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(KN),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 GN(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function KN(e){return console.log(e),null}const ZN=()=>{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!==mO.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(XN).catch(QN),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 XN(){return""}function QN(){return null}const M$=()=>{const e=Re.c(13),{useMsal:t}=m.useContext(Jf),n=gO.useQueryClient(),r=YN(),i=ZN();let o;e[0]!==r||e[1]!==i||e[2]!==n||e[3]!==t?(o=(d,f)=>{const h=t?i.login():r.login(d,f);return n.invalidateQueries(),h},e[0]=r,e[1]=i,e[2]=n,e[3]=t,e[4]=o):o=e[4];const a=o,s=t?i.isAuthenticated:r.isAuthenticated;let l;e[5]!==i||e[6]!==t?(l=t?i.isAuthenticating:JN,e[5]=i,e[6]=t,e[7]=l):l=e[7];const c=t?i.logout:r.logout;let u;return e[8]!==s||e[9]!==l||e[10]!==c||e[11]!==a?(u={isAuthenticated:s,isAuthenticating:l,login:a,logout:c},e[8]=s,e[9]=l,e[10]=c,e[11]=a,e[12]=u):u=e[12],u};function JN(){return!1}const eD="_toast_1s57i_1",gl={toast:eD},tD=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}},ah=()=>{const e=Re.c(1),t=nD;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function nD(e,t){const n=ZC(e),r=tD(t),i=w.jsxs(w.Fragment,{children:[n,w.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:w.jsx(N7,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",gl.toast)});break e}case"danger":{Fa(i,{id:n,duration:r,position:"top-center",icon:w.jsx(C7,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",gl.toast)});break e}case"warning":{Fa(i,{id:n,duration:r,position:"top-center",icon:w.jsx(y7,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",gl.toast)});break e}case"info":{Fa(i,{id:n,duration:r,position:"top-center",icon:w.jsx(w7,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",gl.toast)});break e}case"prompt":{Fa(i,{id:n,duration:r,position:"top-center",icon:w.jsx(_7,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",gl.toast)});break e}}}const rD=Qt.CancelToken,sh=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}=ah(),{isAuthenticating:p}=M$(),g=m.useMemo(()=>Qt.create(l),[l]),v=m.useCallback(async y=>{var b,$,E;if(t&&!y.headers.Authorization){if(p())return console.log("Authentication in progress, waiting for token..."),Promise.reject(new Error("Authentication in progress"));const k=i?{token:i,expiresOn:H4(new Date(Date.now()),1)}:await d();if(!k)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(K4(k.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));y.headers.Authorization=`Bearer ${k.token}`}f!==null&&!o&&(y.headers.DelegationId=f.toString());const C=localStorage.getItem("search-use-asterisk")!=="false";return y.headers["Search-Use-Asterisk"]=C?"true":"false",(b=y.url)!=null&&b.includes("culture=")?y.url=($=y.url)==null?void 0:$.replace(/culture=[a-z]{2}/,`culture=${s}`):y.url=`${y.url}${(E=y.url)!=null&&E.includes("?")?"&":"?"}culture=${s}`,y},[t,d,s,i,f,o,p]),x=m.useCallback(y=>{var $,E;if(console.log(y),Qt.isCancel(y)||y.message==="Authentication in progress"||y.message==="No bearer token"||y.message==="Token expired")return Promise.reject(y);const C=k0(y);if(C.length>0){const k=C.find(O=>O.name.toLowerCase()==="others");return k?(!r&&h(k.errors,"danger"),Promise.reject(y)):(!r&&h(c.validationError,"warning"),Promise.reject(y))}const b=GC(y);return b!==null?(!r&&h(`${c.permissionError}: ${M0(", ",...b)}`,"danger"),Promise.reject(y)):(a??[]).includes(($=y.response)==null?void 0:$.status)?Promise.reject(y):((E=y.response)==null?void 0:E.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(y)):y.message&&y.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(y)):(Qt.isCancel(y)||(!r&&h(c.unexpectedError,"danger"),(y.response||y.request)&&!r&&h(c.unexpectedError,"danger")),Promise.reject(y))},[h,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,a]),_=m.useRef(!1);return _.current||(g.interceptors.request.clear(),g.interceptors.request.use(v,y=>Promise.reject(y)),g.interceptors.response.clear(),g.interceptors.response.use(y=>y,x),_.current=!0),m.useEffect(()=>{n&&(g.defaults.baseURL=n)},[n,g.defaults]),m.useEffect(()=>{g.interceptors.request.clear();const y=g.interceptors.request.use(v,C=>Promise.reject(C));return()=>{g.interceptors.request.eject(y)}},[g.interceptors.request,v]),m.useEffect(()=>{g.interceptors.response.clear();const y=g.interceptors.response.use(C=>C,x);return()=>{g.interceptors.response.eject(y)}},[g.interceptors.response,x]),g};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(iD)),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 iD(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 Bg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Bg||(Bg={}));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"]),oD=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 A$=$s;function aD(e){A$=e}function Ud(){return A$}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}},sD=[];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 Be;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const 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 Be;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 Be=Object.freeze({status:"aborted"}),es=e=>({status:"dirty",value:e}),Hn=e=>({status:"valid",value:e}),Wg=e=>e.status==="aborted",Ug=e=>e.status==="dirty",la=e=>e.status==="valid",ac=e=>typeof Promise<"u"&&e instanceof Promise;var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ke||(ke={}));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 Tx=(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 Tx(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 Tx(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 Es.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 lD=/^c[^\s-]{8,}$/i,cD=/^[0-9a-z]+$/,uD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,dD=/^[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,fD=/^[a-z0-9_-]{21}$/i,hD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,pD=/^[-+]?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)?)??$/,mD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let um;const vD=/^(?:(?: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])$/,bD=/^(?:(?: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])$/,yD=/^(([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]))$/,xD=/^(([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])$/,wD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_D=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R$="((\\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])))",CD=new RegExp(`^${R$}$`);function j$(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(`^${j$(e)}$`)}function N$(e){let t=`${R$}T${j$(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 SD(e,t){return!!((t==="v4"||!t)&&vD.test(e)||(t==="v6"||!t)&&yD.test(e))}function ED(e,t){if(!hD.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 TD(e,t){return!!((t==="v4"||!t)&&bD.test(e)||(t==="v6"||!t)&&xD.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}),Be}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")mD.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")um||(um=new RegExp(gD,"u")),um.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")dD.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")fD.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")lD.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")cD.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")uD.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"?N$(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"?CD.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"?pD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?SD(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"?ED(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"?TD(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"?wD.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?_D.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,...ke.errToObj(r)})}_addCheck(t){return new Rr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ke.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ke.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,...ke.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,...ke.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ke.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ke.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ke.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ke.errToObj(n)})}nonempty(t){return this.min(1,ke.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 kD(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}),Be}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"?kD(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,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,i){return new mo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.toString(i)}]})}_addCheck(t){return new mo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.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}),Be}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,r,i){return new go({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ke.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:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.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}),Be}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}),Be}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_date}),Be}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:ke.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ke.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}),Be}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}),Be}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}),Be}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}),Be}}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}),Be}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}),Be;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:ke.toString(n)}})}max(t,n){return new Nr({...this._def,maxLength:{value:t,message:ke.toString(n)}})}length(t,n){return new Nr({...this._def,exactLength:{value:t,message:ke.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}),Be}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 ke.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:ke.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 D$(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}),Be}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}),Be}}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 lh 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}),Be;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]}),Be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const 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 lh({typeName:Ue.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ot(r)})}}function Hg(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=Hg(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=Hg(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(Wg(o)||Wg(a))return Be;const s=Hg(o.value,a.value);return s.valid?((Ug(o)||Ug(a))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.invalid_intersection_types}),Be)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([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}),Be;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"}),Be;!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}),Be;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}),Be;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 Be;(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 Be;(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}),Be;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 Be;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:ke.toString(n)}})}max(t,n){return new ua({...this._def,maxSize:{value:t,message:ke.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}),Be;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 Es){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}),Be}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 D$(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}),Be}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}),Be}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=D$;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}),Be}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}),Be}return Hn(t.data)}get enum(){return this._def.values}}mc.create=(e,t)=>new mc({values:e,typeName:Ue.ZodNativeEnum,...ot(t)});class Es 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}),Be;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})))}}Es.create=(e,t)=>new Es({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 Be;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?Be:l.status==="dirty"||n.value==="dirty"?es(l.value):l});{if(n.value==="aborted")return Be;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?Be: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"?Be:(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"?Be:(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 Be;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})):Be);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}),Be}return{status:"valid",value:t.data}}}Gd.create=e=>new Gd({typeName:Ue.ZodNaN,...ot(e)});const OD=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"?Be: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"?Be:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new 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 I$(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 MD={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 AD=(e,t={message:`Input not instance of ${e.name}`})=>I$(n=>n instanceof e,t),F0=Rr.create,P$=mo.create,RD=Gd.create,jD=go.create,L$=sc.create,ND=ca.create,DD=Vd.create,ID=lc.create,PD=cc.create,F$=Ss.create,LD=ta.create,FD=Di.create,zD=qd.create,z$=Nr.create,Si=an.create,BD=an.strictCreate,WD=uc.create,UD=lh.create,HD=dc.create,VD=ti.create,qD=fc.create,YD=Yd.create,GD=ua.create,KD=as.create,ZD=hc.create,XD=pc.create,B$=vo.create,QD=mc.create,JD=Es.create,Ox=Dr.create,eI=Kr.create,tI=bo.create,nI=Dr.createWithPreprocess,rI=iu.create,iI=()=>F0().optional(),oI=()=>P$().optional(),aI=()=>L$().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})},sI=Be,Ll=Object.freeze(Object.defineProperty({__proto__:null,BRAND:OD,DIRTY:es,EMPTY_PATH:sD,INVALID:Be,NEVER:sI,OK:Hn,ParseStatus:In,Schema:ut,ZodAny:Ss,ZodArray:Nr,ZodBigInt:go,ZodBoolean:sc,ZodBranded:L0,ZodCatch:vc,ZodDate:ca,ZodDefault:gc,ZodDiscriminatedUnion:lh,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:Es,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:F$,array:z$,bigint:jD,boolean:L$,coerce:Pl,custom:I$,date:ND,datetimeRegex:N$,defaultErrorMap:$s,discriminatedUnion:UD,effect:Ox,enum:B$,function:KD,getErrorMap:Ud,getParsedType:_i,instanceof:AD,intersection:HD,isAborted:Wg,isAsync:ac,isDirty:Ug,isValid:la,late:MD,lazy:ZD,literal:XD,makeIssue:Hd,map:YD,nan:RD,nativeEnum:QD,never:FD,null:PD,nullable:tI,number:P$,object:Si,get objectUtil(){return Bg},oboolean:aI,onumber:oI,optional:eI,ostring:iI,pipeline:rI,preprocess:nI,promise:JD,quotelessJson:oD,record:qD,set:GD,setErrorMap:aD,strictObject:BD,string:F0,symbol:DD,transformer:Ox,tuple:VD,undefined:ID,union:WD,unknown:LD,get util(){return xt},void:zD},Symbol.toStringTag,{value:"Module"})),ch=()=>{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(lI)},e[0]=n,e[1]=r):r=e[1];const i=r;let o;e[2]!==i?(o=R=>i(R).nullable().optional().transform(cI),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,z=(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 z.transform(uI),z},e[4]=n,e[5]=s):s=e[5];const l=s;let c;e[6]!==l?(c=R=>l(R).nullable().optional().transform(dI),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(fI),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(QC,{message:n.invalidDate}).transform(hI),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().transform(pI),e[13]=p,e[14]=g):g=e[14];const v=g;let x;e[15]!==n.required?(x=(R,M)=>B$(R,{invalid_type_error:n.required,required_error:n.required}).transform(mI),e[15]=n.required,e[16]=x):x=e[16];const _=x;let y;e[17]!==_?(y=(R,M)=>_(R,M).nullable().transform(gI),e[17]=_,e[18]=y):y=e[18];const C=y;let b;e[19]!==u?(b=R=>Si({id:u({useCoerce:!0})}).nullable().transform(vI),e[19]=u,e[20]=b):b=e[20];const $=b;let E;e[21]!==l?(E=R=>Si({id:l()}).transform(bI),e[21]=l,e[22]=E):E=e[22];const k=E;let O;e[23]!==a?(O=R=>Si({id:a({useCoerce:!0})}).nullable().transform(yI),e[23]=a,e[24]=O):O=e[24];const j=O;let S;e[25]!==i?(S=R=>Si({id:i()}).transform(xI),e[25]=i,e[26]=S):S=e[26];const T=S,A=_I;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]!==T||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:T,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]=T,e[38]=a,e[39]=i,e[40]=D):D=e[40],D};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 e??null}function xI(e){return e??null}function wI(e){return Array.from(e??[])}function _I(e){const{required:t,multiple:n,maxFileSize:r}=e;return F$().transform(wI).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 W$=(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)},U$=()=>{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},H$=(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?CI:(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 CI(){}const z0=(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},V$=()=>{const{addNotification:e}=ah(),{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},q$=m.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),Y$=m.createContext(void 0),Mx={falseIfNotInit:!1},uh=e=>{const{falseIfNotInit:t}=e===void 0?Mx:e,n=t===void 0?Mx.falseIfNotInit:t,r=m.useContext(Y$);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",SI="_filled_1wjon_7",EI="_sm_1wjon_13",TI="_md_1wjon_18",kI="_lg_1wjon_23",za={button:$I,filled:SI,sm:EI,md:TI,lg:kI},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=za[l],p=za[u];let g;t[7]!==f||t[8]!==h||t[9]!==p?(g=ce(f,za.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=w.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=za[l],h=za[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=ce(d,za.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=w.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},OI="_button_1r3i0_1",Vg={button:OI},dh=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=ce(c,Vg.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=w.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=ce(l,Vg.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=w.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},MI="_icon-button_15e26_1",AI="_sm_15e26_14",RI="_md_15e26_23",jI="_lg_15e26_32",qu={"icon-button":"_icon-button_15e26_1",iconButton:MI,sm:AI,md:RI,lg:jI},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=ce(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=w.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=ce(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=w.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 B0={},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]",y="[object Promise]",C="[object Proxy]",b="[object RegExp]",$="[object Set]",E="[object String]",k="[object Symbol]",O="[object Undefined]",j="[object WeakMap]",S="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",D="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",I="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",P="[object Uint16Array]",B="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,X={};X[A]=X[D]=X[R]=X[M]=X[I]=X[z]=X[W]=X[P]=X[B]=!0,X[s]=X[l]=X[S]=X[u]=X[T]=X[d]=X[f]=X[h]=X[g]=X[v]=X[_]=X[b]=X[$]=X[E]=X[j]=!1;var J=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,ee=typeof self=="object"&&self&&self.Object===Object&&self,U=J||ee||Function("return this")(),L=t&&!t.nodeType&&t,F=L&&!0&&e&&!e.nodeType&&e,V=F&&F.exports===L,N=V&&J.process,Q=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),G=Q&&Q.isTypedArray;function K(Z,te){for(var fe=-1,Se=Z==null?0:Z.length,Jt=0,st=[];++fe<Se;){var un=Z[fe];te(un,fe,Z)&&(st[Jt++]=un)}return st}function se(Z,te){for(var fe=-1,Se=te.length,Jt=Z.length;++fe<Se;)Z[Jt+fe]=te[fe];return Z}function ne(Z,te){for(var fe=-1,Se=Z==null?0:Z.length;++fe<Se;)if(te(Z[fe],fe,Z))return!0;return!1}function re(Z,te){for(var fe=-1,Se=Array(Z);++fe<Z;)Se[fe]=te(fe);return Se}function oe(Z){return function(te){return Z(te)}}function ue(Z,te){return Z.has(te)}function ye(Z,te){return Z==null?void 0:Z[te]}function xe(Z){var te=-1,fe=Array(Z.size);return Z.forEach(function(Se,Jt){fe[++te]=[Jt,Se]}),fe}function we(Z,te){return function(fe){return Z(te(fe))}}function Me(Z){var te=-1,fe=Array(Z.size);return Z.forEach(function(Se){fe[++te]=Se}),fe}var de=Array.prototype,le=Function.prototype,be=Object.prototype,ze=U["__core-js_shared__"],zt=le.toString,Le=be.hasOwnProperty,gt=function(){var Z=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return Z?"Symbol(src)_1."+Z:""}(),_t=be.toString,nn=RegExp("^"+zt.call(Le).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=V?U.Buffer:void 0,je=U.Symbol,vt=U.Uint8Array,qe=be.propertyIsEnumerable,bt=de.splice,at=je?je.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Ee?Ee.isBuffer:void 0,De=we(Object.keys,Object),We=Da(U,"DataView"),Qe=Da(U,"Map"),Ie=Da(U,"Promise"),Je=Da(U,"Set"),ht=Da(U,"WeakMap"),nt=Da(Object,"create"),Ne=jo(We),Te=jo(Qe),He=jo(Ie),yt=jo(Je),et=jo(ht),pt=je?je.prototype:void 0,tn=pt?pt.valueOf:void 0;function Bt(Z){var te=-1,fe=Z==null?0:Z.length;for(this.clear();++te<fe;){var Se=Z[te];this.set(Se[0],Se[1])}}function Ht(){this.__data__=nt?nt(null):{},this.size=0}function vn(Z){var te=this.has(Z)&&delete this.__data__[Z];return this.size-=te?1:0,te}function Kt(Z){var te=this.__data__;if(nt){var fe=te[Z];return fe===r?void 0:fe}return Le.call(te,Z)?te[Z]:void 0}function $e(Z){var te=this.__data__;return nt?te[Z]!==void 0:Le.call(te,Z)}function Ze(Z,te){var fe=this.__data__;return this.size+=this.has(Z)?0:1,fe[Z]=nt&&te===void 0?r:te,this}Bt.prototype.clear=Ht,Bt.prototype.delete=vn,Bt.prototype.get=Kt,Bt.prototype.has=$e,Bt.prototype.set=Ze;function Ct(Z){var te=-1,fe=Z==null?0:Z.length;for(this.clear();++te<fe;){var Se=Z[te];this.set(Se[0],Se[1])}}function cn(){this.__data__=[],this.size=0}function Zt(Z){var te=this.__data__,fe=di(te,Z);if(fe<0)return!1;var Se=te.length-1;return fe==Se?te.pop():bt.call(te,fe,1),--this.size,!0}function Pe(Z){var te=this.__data__,fe=di(te,Z);return fe<0?void 0:te[fe][1]}function Fe(Z){return di(this.__data__,Z)>-1}function ct(Z,te){var fe=this.__data__,Se=di(fe,Z);return Se<0?(++this.size,fe.push([Z,te])):fe[Se][1]=te,this}Ct.prototype.clear=cn,Ct.prototype.delete=Zt,Ct.prototype.get=Pe,Ct.prototype.has=Fe,Ct.prototype.set=ct;function Rt(Z){var te=-1,fe=Z==null?0:Z.length;for(this.clear();++te<fe;){var Se=Z[te];this.set(Se[0],Se[1])}}function $t(){this.size=0,this.__data__={hash:new Bt,map:new(Qe||Ct),string:new Bt}}function Xe(Z){var te=Hi(this,Z).delete(Z);return this.size-=te?1:0,te}function St(Z){return Hi(this,Z).get(Z)}function kr(Z){return Hi(this,Z).has(Z)}function dn(Z,te){var fe=Hi(this,Z),Se=fe.size;return fe.set(Z,te),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=dn;function fn(Z){var te=-1,fe=Z==null?0:Z.length;for(this.__data__=new Rt;++te<fe;)this.add(Z[te])}function Pn(Z){return this.__data__.set(Z,r),this}function ko(Z){return this.__data__.has(Z)}fn.prototype.add=fn.prototype.push=Pn,fn.prototype.has=ko;function wt(Z){var te=this.__data__=new Ct(Z);this.size=te.size}function Oo(){this.__data__=new Ct,this.size=0}function Oe(Z){var te=this.__data__,fe=te.delete(Z);return this.size=te.size,fe}function zr(Z){return this.__data__.get(Z)}function Mo(Z){return this.__data__.has(Z)}function ja(Z,te){var fe=this.__data__;if(fe instanceof Ct){var Se=fe.__data__;if(!Qe||Se.length<n-1)return Se.push([Z,te]),this.size=++fe.size,this;fe=this.__data__=new Rt(Se)}return fe.set(Z,te),this.size=fe.size,this}wt.prototype.clear=Oo,wt.prototype.delete=Oe,wt.prototype.get=zr,wt.prototype.has=Mo,wt.prototype.set=ja;function Na(Z,te){var fe=Nu(Z),Se=!fe&&cO(Z),Jt=!fe&&!Se&&Wp(Z),st=!fe&&!Se&&!Jt&&dy(Z),un=fe||Se||Jt||st,_n=un?re(Z.length,String):[],En=_n.length;for(var rn in Z)Le.call(Z,rn)&&!(un&&(rn=="length"||Jt&&(rn=="offset"||rn=="parent")||st&&(rn=="buffer"||rn=="byteLength"||rn=="byteOffset")||iO(rn,En)))&&_n.push(rn);return _n}function di(Z,te){for(var fe=Z.length;fe--;)if(sy(Z[fe][0],te))return fe;return-1}function Au(Z,te,fe){var Se=te(Z);return Nu(Z)?Se:se(Se,fe(Z))}function fi(Z){return Z==null?Z===void 0?O:x:at&&at in Object(Z)?nO(Z):lO(Z)}function ll(Z){return ul(Z)&&fi(Z)==s}function Ao(Z,te,fe,Se,Jt){return Z===te?!0:Z==null||te==null||!ul(Z)&&!ul(te)?Z!==Z&&te!==te:cl(Z,te,fe,Se,Ao,Jt)}function cl(Z,te,fe,Se,Jt,st){var un=Nu(Z),_n=Nu(te),En=un?l:Vi(Z),rn=_n?l:Vi(te);En=En==s?_:En,rn=rn==s?_:rn;var ar=En==_,Or=rn==_,kn=En==rn;if(kn&&Wp(Z)){if(!Wp(te))return!1;un=!0,ar=!1}if(kn&&!ar)return st||(st=new wt),un||dy(Z)?Ln(Z,te,fe,Se,Jt,st):zp(Z,te,En,fe,Se,Jt,st);if(!(fe&i)){var fr=ar&&Le.call(Z,"__wrapped__"),hr=Or&&Le.call(te,"__wrapped__");if(fr||hr){var qi=fr?Z.value():Z,hi=hr?te.value():te;return st||(st=new wt),Jt(qi,hi,fe,Se,st)}}return kn?(st||(st=new wt),Bp(Z,te,fe,Se,Jt,st)):!1}function Ru(Z){if(!uy(Z)||aO(Z))return!1;var te=ly(Z)?nn:H;return te.test(jo(Z))}function Ro(Z){return ul(Z)&&cy(Z.length)&&!!X[fi(Z)]}function ju(Z){if(!sO(Z))return De(Z);var te=[];for(var fe in Object(Z))Le.call(Z,fe)&&fe!="constructor"&&te.push(fe);return te}function Ln(Z,te,fe,Se,Jt,st){var un=fe&i,_n=Z.length,En=te.length;if(_n!=En&&!(un&&En>_n))return!1;var rn=st.get(Z);if(rn&&st.get(te))return rn==te;var ar=-1,Or=!0,kn=fe&o?new fn:void 0;for(st.set(Z,te),st.set(te,Z);++ar<_n;){var fr=Z[ar],hr=te[ar];if(Se)var qi=un?Se(hr,fr,ar,te,Z,st):Se(fr,hr,ar,Z,te,st);if(qi!==void 0){if(qi)continue;Or=!1;break}if(kn){if(!ne(te,function(hi,No){if(!ue(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(Z),st.delete(te),Or}function zp(Z,te,fe,Se,Jt,st,un){switch(fe){case T:if(Z.byteLength!=te.byteLength||Z.byteOffset!=te.byteOffset)return!1;Z=Z.buffer,te=te.buffer;case S:return!(Z.byteLength!=te.byteLength||!st(new vt(Z),new vt(te)));case u:case d:case v:return sy(+Z,+te);case f:return Z.name==te.name&&Z.message==te.message;case b:case E:return Z==te+"";case g:var _n=xe;case $:var En=Se&i;if(_n||(_n=Me),Z.size!=te.size&&!En)return!1;var rn=un.get(Z);if(rn)return rn==te;Se|=o,un.set(Z,te);var ar=Ln(_n(Z),_n(te),Se,Jt,st,un);return un.delete(Z),ar;case k:if(tn)return tn.call(Z)==tn.call(te)}return!1}function Bp(Z,te,fe,Se,Jt,st){var un=fe&i,_n=Br(Z),En=_n.length,rn=Br(te),ar=rn.length;if(En!=ar&&!un)return!1;for(var Or=En;Or--;){var kn=_n[Or];if(!(un?kn in te:Le.call(te,kn)))return!1}var fr=st.get(Z);if(fr&&st.get(te))return fr==te;var hr=!0;st.set(Z,te),st.set(te,Z);for(var qi=un;++Or<En;){kn=_n[Or];var hi=Z[kn],No=te[kn];if(Se)var fy=un?Se(No,hi,kn,te,Z,st):Se(hi,No,kn,Z,te,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=Z.constructor,Iu=te.constructor;Du!=Iu&&"constructor"in Z&&"constructor"in te&&!(typeof Du=="function"&&Du instanceof Du&&typeof Iu=="function"&&Iu instanceof Iu)&&(hr=!1)}return st.delete(Z),st.delete(te),hr}function Br(Z){return Au(Z,fO,rO)}function Hi(Z,te){var fe=Z.__data__;return oO(te)?fe[typeof te=="string"?"string":"hash"]:fe.map}function Da(Z,te){var fe=ye(Z,te);return Ru(fe)?fe:void 0}function nO(Z){var te=Le.call(Z,at),fe=Z[at];try{Z[at]=void 0;var Se=!0}catch{}var Jt=_t.call(Z);return Se&&(te?Z[at]=fe:delete Z[at]),Jt}var rO=At?function(Z){return Z==null?[]:(Z=Object(Z),K(At(Z),function(te){return qe.call(Z,te)}))}:hO,Vi=fi;(We&&Vi(new We(new ArrayBuffer(1)))!=T||Qe&&Vi(new Qe)!=g||Ie&&Vi(Ie.resolve())!=y||Je&&Vi(new Je)!=$||ht&&Vi(new ht)!=j)&&(Vi=function(Z){var te=fi(Z),fe=te==_?Z.constructor:void 0,Se=fe?jo(fe):"";if(Se)switch(Se){case Ne:return T;case Te:return g;case He:return y;case yt:return $;case et:return j}return te});function iO(Z,te){return te=te??a,!!te&&(typeof Z=="number"||Y.test(Z))&&Z>-1&&Z%1==0&&Z<te}function oO(Z){var te=typeof Z;return te=="string"||te=="number"||te=="symbol"||te=="boolean"?Z!=="__proto__":Z===null}function aO(Z){return!!gt&> in Z}function sO(Z){var te=Z&&Z.constructor,fe=typeof te=="function"&&te.prototype||be;return Z===fe}function lO(Z){return _t.call(Z)}function jo(Z){if(Z!=null){try{return zt.call(Z)}catch{}try{return Z+""}catch{}}return""}function sy(Z,te){return Z===te||Z!==Z&&te!==te}var cO=ll(function(){return arguments}())?ll:function(Z){return ul(Z)&&Le.call(Z,"callee")&&!qe.call(Z,"callee")},Nu=Array.isArray;function uO(Z){return Z!=null&&cy(Z.length)&&!ly(Z)}var Wp=Ke||pO;function dO(Z,te){return Ao(Z,te)}function ly(Z){if(!uy(Z))return!1;var te=fi(Z);return te==h||te==p||te==c||te==C}function cy(Z){return typeof Z=="number"&&Z>-1&&Z%1==0&&Z<=a}function uy(Z){var te=typeof Z;return Z!=null&&(te=="object"||te=="function")}function ul(Z){return Z!=null&&typeof Z=="object"}var dy=G?oe(G):Ro;function fO(Z){return uO(Z)?Na(Z):ju(Z)}function hO(){return[]}function pO(){return!1}e.exports=dO})(Kd,Kd.exports);var NI=Kd.exports,G$={exports:{}};(function(e,t){var n=function(){var r=function(b,$){var E=236,k=17,O=b,j=o[$],S=null,T=0,A=null,D=[],R={},M=function(U,L){T=O*4+17,S=function(F){for(var V=new Array(F),N=0;N<F;N+=1){V[N]=new Array(F);for(var Q=0;Q<F;Q+=1)V[N][Q]=null}return V}(T),I(0,0),I(T-7,0),I(0,T-7),P(),W(),q(U,L),O>=7&&B(U),A==null&&(A=X(O,j,D)),H(A,L)},I=function(U,L){for(var F=-1;F<=7;F+=1)if(!(U+F<=-1||T<=U+F))for(var V=-1;V<=7;V+=1)L+V<=-1||T<=L+V||(0<=F&&F<=6&&(V==0||V==6)||0<=V&&V<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=V&&V<=4?S[U+F][L+V]=!0:S[U+F][L+V]=!1)},z=function(){for(var U=0,L=0,F=0;F<8;F+=1){M(!0,F);var V=s.getLostPoint(R);(F==0||U>V)&&(U=V,L=F)}return L},W=function(){for(var U=8;U<T-8;U+=1)S[U][6]==null&&(S[U][6]=U%2==0);for(var L=8;L<T-8;L+=1)S[6][L]==null&&(S[6][L]=L%2==0)},P=function(){for(var U=s.getPatternPosition(O),L=0;L<U.length;L+=1)for(var F=0;F<U.length;F+=1){var V=U[L],N=U[F];if(S[V][N]==null)for(var Q=-2;Q<=2;Q+=1)for(var G=-2;G<=2;G+=1)Q==-2||Q==2||G==-2||G==2||Q==0&&G==0?S[V+Q][N+G]=!0:S[V+Q][N+G]=!1}},B=function(U){for(var L=s.getBCHTypeNumber(O),F=0;F<18;F+=1){var V=!U&&(L>>F&1)==1;S[Math.floor(F/3)][F%3+T-8-3]=V}for(var F=0;F<18;F+=1){var V=!U&&(L>>F&1)==1;S[F%3+T-8-3][Math.floor(F/3)]=V}},q=function(U,L){for(var F=j<<3|L,V=s.getBCHTypeInfo(F),N=0;N<15;N+=1){var Q=!U&&(V>>N&1)==1;N<6?S[N][8]=Q:N<8?S[N+1][8]=Q:S[T-15+N][8]=Q}for(var N=0;N<15;N+=1){var Q=!U&&(V>>N&1)==1;N<8?S[8][T-N-1]=Q:N<9?S[8][15-N-1+1]=Q:S[8][15-N-1]=Q}S[T-8][8]=!U},H=function(U,L){for(var F=-1,V=T-1,N=7,Q=0,G=s.getMaskFunction(L),K=T-1;K>0;K-=2)for(K==6&&(K-=1);;){for(var se=0;se<2;se+=1)if(S[V][K-se]==null){var ne=!1;Q<U.length&&(ne=(U[Q]>>>N&1)==1);var re=G(V,K-se);re&&(ne=!ne),S[V][K-se]=ne,N-=1,N==-1&&(Q+=1,N=7)}if(V+=F,V<0||T<=V){V-=F,F=-F;break}}},Y=function(U,L){for(var F=0,V=0,N=0,Q=new Array(L.length),G=new Array(L.length),K=0;K<L.length;K+=1){var se=L[K].dataCount,ne=L[K].totalCount-se;V=Math.max(V,se),N=Math.max(N,ne),Q[K]=new Array(se);for(var re=0;re<Q[K].length;re+=1)Q[K][re]=255&U.getBuffer()[re+F];F+=se;var oe=s.getErrorCorrectPolynomial(ne),ue=c(Q[K],oe.getLength()-1),ye=ue.mod(oe);G[K]=new Array(oe.getLength()-1);for(var re=0;re<G[K].length;re+=1){var xe=re+ye.getLength()-G[K].length;G[K][re]=xe>=0?ye.getAt(xe):0}}for(var we=0,re=0;re<L.length;re+=1)we+=L[re].totalCount;for(var Me=new Array(we),de=0,re=0;re<V;re+=1)for(var K=0;K<L.length;K+=1)re<Q[K].length&&(Me[de]=Q[K][re],de+=1);for(var re=0;re<N;re+=1)for(var K=0;K<L.length;K+=1)re<G[K].length&&(Me[de]=G[K][re],de+=1);return Me},X=function(U,L,F){for(var V=u.getRSBlocks(U,L),N=d(),Q=0;Q<F.length;Q+=1){var G=F[Q];N.put(G.getMode(),4),N.put(G.getLength(),s.getLengthInBits(G.getMode(),U)),G.write(N)}for(var K=0,Q=0;Q<V.length;Q+=1)K+=V[Q].dataCount;if(N.getLengthInBits()>K*8)throw"code length overflow. ("+N.getLengthInBits()+">"+K*8+")";for(N.getLengthInBits()+4<=K*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=K*8||(N.put(E,8),N.getLengthInBits()>=K*8));)N.put(k,8);return Y(N,V)};R.addData=function(U,L){L=L||"Byte";var F=null;switch(L){case"Numeric":F=f(U);break;case"Alphanumeric":F=h(U);break;case"Byte":F=p(U);break;case"Kanji":F=g(U);break;default:throw"mode:"+L}D.push(F),A=null},R.isDark=function(U,L){if(U<0||T<=U||L<0||T<=L)throw U+","+L;return S[U][L]},R.getModuleCount=function(){return T},R.make=function(){if(O<1){for(var U=1;U<40;U++){for(var L=u.getRSBlocks(U,j),F=d(),V=0;V<D.length;V++){var N=D[V];F.put(N.getMode(),4),F.put(N.getLength(),s.getLengthInBits(N.getMode(),U)),N.write(F)}for(var Q=0,V=0;V<L.length;V++)Q+=L[V].dataCount;if(F.getLengthInBits()<=Q*8)break}O=U}M(!1,z())},R.createTableTag=function(U,L){U=U||2,L=typeof L>"u"?U*4:L;var F="";F+='<table style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: "+L+"px;",F+='">',F+="<tbody>";for(var V=0;V<R.getModuleCount();V+=1){F+="<tr>";for(var N=0;N<R.getModuleCount();N+=1)F+='<td style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: 0px;",F+=" width: "+U+"px;",F+=" height: "+U+"px;",F+=" background-color: ",F+=R.isDark(V,N)?"#000000":"#ffffff",F+=";",F+='"/>';F+="</tr>"}return F+="</tbody>",F+="</table>",F},R.createSvgTag=function(U,L,F,V){var N={};typeof arguments[0]=="object"&&(N=arguments[0],U=N.cellSize,L=N.margin,F=N.alt,V=N.title),U=U||2,L=typeof L>"u"?U*4:L,F=typeof F=="string"?{text:F}:F||{},F.text=F.text||null,F.id=F.text?F.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var Q=R.getModuleCount()*U+L*2,G,K,se,ne,re="",oe;for(oe="l"+U+",0 0,"+U+" -"+U+",0 0,-"+U+"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+=V.text||F.text?' role="img" aria-labelledby="'+J([V.id,F.id].join(" ").trim())+'"':"",re+=">",re+=V.text?'<title id="'+J(V.id)+'">'+J(V.text)+"</title>":"",re+=F.text?'<description id="'+J(F.id)+'">'+J(F.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(ne=se*U+L,G=0;G<R.getModuleCount();G+=1)R.isDark(se,G)&&(K=G*U+L,re+="M"+K+","+ne+oe);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},R.createDataURL=function(U,L){U=U||2,L=typeof L>"u"?U*4:L;var F=R.getModuleCount()*U+L*2,V=L,N=F-L;return C(F,F,function(Q,G){if(V<=Q&&Q<N&&V<=G&&G<N){var K=Math.floor((Q-V)/U),se=Math.floor((G-V)/U);return R.isDark(se,K)?0:1}else return 1})},R.createImgTag=function(U,L,F){U=U||2,L=typeof L>"u"?U*4:L;var V=R.getModuleCount()*U+L*2,N="";return N+="<img",N+=' src="',N+=R.createDataURL(U,L),N+='"',N+=' width="',N+=V,N+='"',N+=' height="',N+=V,N+='"',F&&(N+=' alt="',N+=J(F),N+='"'),N+="/>",N};var J=function(U){for(var L="",F=0;F<U.length;F+=1){var V=U.charAt(F);switch(V){case"<":L+="<";break;case">":L+=">";break;case"&":L+="&";break;case'"':L+=""";break;default:L+=V;break}}return L},ee=function(U){var L=1;U=typeof U>"u"?L*2:U;var F=R.getModuleCount()*L+U*2,V=U,N=F-U,Q,G,K,se,ne,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},oe={"██":"▀","█ ":"▀"," █":" "," ":" "},ue="";for(Q=0;Q<F;Q+=2){for(K=Math.floor((Q-V)/L),se=Math.floor((Q+1-V)/L),G=0;G<F;G+=1)ne="█",V<=G&&G<N&&V<=Q&&Q<N&&R.isDark(K,Math.floor((G-V)/L))&&(ne=" "),V<=G&&G<N&&V<=Q+1&&Q+1<N&&R.isDark(se,Math.floor((G-V)/L))?ne+=" ":ne+="█",ue+=U<1&&Q+1>=N?oe[ne]:re[ne];ue+=`
|
|
245
|
+
`}return F%2&&U>0?ue.substring(0,ue.length-F-1)+Array(F+1).join("▀"):ue.substring(0,ue.length-1)};return R.createASCII=function(U,L){if(U=U||1,U<2)return ee(L);U-=1,L=typeof L>"u"?U*2:L;var F=R.getModuleCount()*U+L*2,V=L,N=F-L,Q,G,K,se,ne=Array(U+1).join("██"),re=Array(U+1).join(" "),oe="",ue="";for(Q=0;Q<F;Q+=1){for(K=Math.floor((Q-V)/U),ue="",G=0;G<F;G+=1)se=1,V<=G&&G<N&&V<=Q&&Q<N&&R.isDark(K,Math.floor((G-V)/U))&&(se=0),ue+=se?ne:re;for(K=0;K<U;K+=1)oe+=ue+`
|
|
246
|
+
`}return oe.substring(0,oe.length-1)},R.renderTo2dContext=function(U,L){L=L||2;for(var F=R.getModuleCount(),V=0;V<F;V++)for(var N=0;N<F;N++)U.fillStyle=R.isDark(V,N)?"black":"white",U.fillRect(V*L,N*L,L,L)},R};r.stringToBytesFuncs={default:function(b){for(var $=[],E=0;E<b.length;E+=1){var k=b.charCodeAt(E);$.push(k&255)}return $}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,$){var E=function(){for(var O=_(b),j=function(){var W=O.read();if(W==-1)throw"eof";return W},S=0,T={};;){var A=O.read();if(A==-1)break;var D=j(),R=j(),M=j(),I=String.fromCharCode(A<<8|D),z=R<<8|M;T[I]=z,S+=1}if(S!=$)throw S+" != "+$;return T}(),k=63;return function(O){for(var j=[],S=0;S<O.length;S+=1){var T=O.charCodeAt(S);if(T<128)j.push(T);else{var A=E[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,E=7973,k=21522,O={},j=function(S){for(var T=0;S!=0;)T+=1,S>>>=1;return T};return O.getBCHTypeInfo=function(S){for(var T=S<<10;j(T)-j($)>=0;)T^=$<<j(T)-j($);return(S<<10|T)^k},O.getBCHTypeNumber=function(S){for(var T=S<<12;j(T)-j(E)>=0;)T^=E<<j(T)-j(E);return S<<12|T},O.getPatternPosition=function(S){return b[S-1]},O.getMaskFunction=function(S){switch(S){case a.PATTERN000:return function(T,A){return(T+A)%2==0};case a.PATTERN001:return function(T,A){return T%2==0};case a.PATTERN010:return function(T,A){return A%3==0};case a.PATTERN011:return function(T,A){return(T+A)%3==0};case a.PATTERN100:return function(T,A){return(Math.floor(T/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(T,A){return T*A%2+T*A%3==0};case a.PATTERN110:return function(T,A){return(T*A%2+T*A%3)%2==0};case a.PATTERN111:return function(T,A){return(T*A%3+(T+A)%2)%2==0};default:throw"bad maskPattern:"+S}},O.getErrorCorrectPolynomial=function(S){for(var T=c([1],0),A=0;A<S;A+=1)T=T.multiply(c([1,l.gexp(A)],0));return T},O.getLengthInBits=function(S,T){if(1<=T&&T<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(T<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(T<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:"+T},O.getLostPoint=function(S){for(var T=S.getModuleCount(),A=0,D=0;D<T;D+=1)for(var R=0;R<T;R+=1){for(var M=0,I=S.isDark(D,R),z=-1;z<=1;z+=1)if(!(D+z<0||T<=D+z))for(var W=-1;W<=1;W+=1)R+W<0||T<=R+W||z==0&&W==0||I==S.isDark(D+z,R+W)&&(M+=1);M>5&&(A+=3+M-5)}for(var D=0;D<T-1;D+=1)for(var R=0;R<T-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<T;D+=1)for(var R=0;R<T-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<T;R+=1)for(var D=0;D<T-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 B=0,R=0;R<T;R+=1)for(var D=0;D<T;D+=1)S.isDark(D,R)&&(B+=1);var q=Math.abs(100*B/T/T-50)/5;return A+=q*10,A},O}(),l=function(){for(var b=new Array(256),$=new Array(256),E=0;E<8;E+=1)b[E]=1<<E;for(var E=8;E<256;E+=1)b[E]=b[E-4]^b[E-5]^b[E-6]^b[E-8];for(var E=0;E<255;E+=1)$[b[E]]=E;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 E=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 E[O]},k.getLength=function(){return E.length},k.multiply=function(O){for(var j=new Array(k.getLength()+O.getLength()-1),S=0;S<k.getLength();S+=1)for(var T=0;T<O.getLength();T+=1)j[S+T]^=l.gexp(l.glog(k.getAt(S))+l.glog(O.getAt(T)));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()),T=0;T<k.getLength();T+=1)S[T]=k.getAt(T);for(var T=0;T<O.getLength();T+=1)S[T]^=l.gexp(l.glog(O.getAt(T))+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},E={},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 E.getRSBlocks=function(O,j){var S=k(O,j);if(typeof S>"u")throw"bad rs block @ typeNumber:"+O+"/errorCorrectionLevel:"+j;for(var T=S.length/3,A=[],D=0;D<T;D+=1)for(var R=S[D*3+0],M=S[D*3+1],I=S[D*3+2],z=0;z<R;z+=1)A.push($(M,I));return A},E}(),d=function(){var b=[],$=0,E={};return E.getBuffer=function(){return b},E.getAt=function(k){var O=Math.floor(k/8);return(b[O]>>>7-k%8&1)==1},E.put=function(k,O){for(var j=0;j<O;j+=1)E.putBit((k>>>O-j-1&1)==1)},E.getLengthInBits=function(){return $},E.putBit=function(k){var O=Math.floor($/8);b.length<=O&&b.push(0),k&&(b[O]|=128>>>$%8),$+=1},E},f=function(b){var $=i.MODE_NUMBER,E=b,k={};k.getMode=function(){return $},k.getLength=function(S){return E.length},k.write=function(S){for(var T=E,A=0;A+2<T.length;)S.put(O(T.substring(A,A+3)),10),A+=3;A<T.length&&(T.length-A==1?S.put(O(T.substring(A,A+1)),4):T.length-A==2&&S.put(O(T.substring(A,A+2)),7))};var O=function(S){for(var T=0,A=0;A<S.length;A+=1)T=T*10+j(S.charAt(A));return T},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,E=b,k={};k.getMode=function(){return $},k.getLength=function(j){return E.length},k.write=function(j){for(var S=E,T=0;T+1<S.length;)j.put(O(S.charAt(T))*45+O(S.charAt(T+1)),11),T+=2;T<S.length&&j.put(O(S.charAt(T)),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,E=r.stringToBytes(b),k={};return k.getMode=function(){return $},k.getLength=function(O){return E.length},k.write=function(O){for(var j=0;j<E.length;j+=1)O.put(E[j],8)},k},g=function(b){var $=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(j,S){var T=E(j);if(T.length!=2||(T[0]<<8|T[1])!=S)throw"sjis not supported."})("友",38726);var k=E(b),O={};return O.getMode=function(){return $},O.getLength=function(j){return~~(k.length/2)},O.write=function(j){for(var S=k,T=0;T+1<S.length;){var A=(255&S[T])<<8|255&S[T+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(T+1)+"/"+A;A=(A>>>8&255)*192+(A&255),j.put(A,13),T+=2}if(T<S.length)throw"illegal char at "+(T+1)},O},v=function(){var b=[],$={};return $.writeByte=function(E){b.push(E&255)},$.writeShort=function(E){$.writeByte(E),$.writeByte(E>>>8)},$.writeBytes=function(E,k,O){k=k||0,O=O||E.length;for(var j=0;j<O;j+=1)$.writeByte(E[j+k])},$.writeString=function(E){for(var k=0;k<E.length;k+=1)$.writeByte(E.charCodeAt(k))},$.toByteArray=function(){return b},$.toString=function(){var E="";E+="[";for(var k=0;k<b.length;k+=1)k>0&&(E+=","),E+=b[k];return E+="]",E},$},x=function(){var b=0,$=0,E=0,k="",O={},j=function(T){k+=String.fromCharCode(S(T&63))},S=function(T){if(!(T<0)){if(T<26)return 65+T;if(T<52)return 97+(T-26);if(T<62)return 48+(T-52);if(T==62)return 43;if(T==63)return 47}throw"n:"+T};return O.writeByte=function(T){for(b=b<<8|T&255,$+=8,E+=1;$>=6;)j(b>>>$-6),$-=6},O.flush=function(){if($>0&&(j(b<<6-$),b=0,$=0),E%3!=0)for(var T=3-E%3,A=0;A<T;A+=1)k+="="},O.toString=function(){return k},O},_=function(b){var $=b,E=0,k=0,O=0,j={};j.read=function(){for(;O<8;){if(E>=$.length){if(O==0)return-1;throw"unexpected end of file./"+O}var T=$.charAt(E);if(E+=1,T=="=")return O=0,-1;if(T.match(/^\s$/))continue;k=k<<6|S(T.charCodeAt(0)),O+=6}var A=k>>>O-8&255;return O-=8,A};var S=function(T){if(65<=T&&T<=90)return T-65;if(97<=T&&T<=122)return T-97+26;if(48<=T&&T<=57)return T-48+52;if(T==43)return 62;if(T==47)return 63;throw"c:"+T};return j},y=function(b,$){var E=b,k=$,O=new Array(b*$),j={};j.setPixel=function(D,R,M){O[R*E+D]=M},j.write=function(D){D.writeString("GIF87a"),D.writeShort(E),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(E),D.writeShort(k),D.writeByte(0);var R=2,M=T(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,z={};return z.write=function(W,P){if(W>>>P)throw"length over";for(;M+P>=8;)R.writeByte(255&(W<<M|I)),P-=8-M,W>>>=8-M,I=0,M=0;I=W<<M|I,M=M+P},z.flush=function(){M>0&&R.writeByte(I)},z},T=function(D){for(var R=1<<D,M=(1<<D)+1,I=D+1,z=A(),W=0;W<R;W+=1)z.add(String.fromCharCode(W));z.add(String.fromCharCode(R)),z.add(String.fromCharCode(M));var P=v(),B=S(P);B.write(R,I);var q=0,H=String.fromCharCode(O[q]);for(q+=1;q<O.length;){var Y=String.fromCharCode(O[q]);q+=1,z.contains(H+Y)?H=H+Y:(B.write(z.indexOf(H),I),z.size()<4095&&(z.size()==1<<I&&(I+=1),z.add(H+Y)),H=Y)}return B.write(z.indexOf(H),I),B.write(M,I),B.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,$,E){for(var k=y(b,$),O=0;O<$;O+=1)for(var j=0;j<b;j+=1)k.setPixel(j,O,E(j,O));var S=v();k.write(S);for(var T=x(),A=S.toByteArray(),D=0;D<A.length;D+=1)T.writeByte(A[D]);return T.flush(),"data:image/gif;base64,"+T};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})})(G$);var DI=G$.exports,II=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)}}(),qg=Zn&&Zn.__assign||function(){return qg=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},qg.apply(this,arguments)};Object.defineProperty(B0,"__esModule",{value:!0});exports.QRCode_1=B0.QRCode=void 0;var PI=NI,LI=DI,dm=m,FI=function(e){II(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=dm.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!PI(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,y=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,$=LI(0,o);$.addData(this.utf16to8(i)),$.make();var E=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=E.getContext("2d"),O=x+2*_,j=$.getModuleCount(),S=x/j,T=window.devicePixelRatio||1;E.height=E.width=O*T,k.scale(T,T),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 z=[!1,!1,!1,!1];M>0&&!$.isDark(M-1,I)&&I>0&&!$.isDark(M,I-1)&&(z[0]=!0),M>0&&!$.isDark(M-1,I)&&I<j-1&&!$.isDark(M,I+1)&&(z[1]=!0),M<j-1&&!$.isDark(M+1,I)&&I<j-1&&!$.isDark(M,I+1)&&(z[2]=!0),M<j-1&&!$.isDark(M+1,I)&&I>0&&!$.isDark(M,I-1)&&(z[3]=!0);var W=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(),z[0]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A,W/2,P/2),z[1]||k.fillRect(Math.round(I*S)+A+Math.floor(W/2),Math.round(M*S)+A,W/2,P/2),z[2]||k.fillRect(Math.round(I*S)+A+Math.floor(W/2),Math.round(M*S)+A+Math.floor(P/2),W/2,P/2),z[3]||k.fillRect(Math.round(I*S)+A,Math.round(M*S)+A+Math.floor(P/2),W/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 W=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,W,P)}for(var B=0;B<3;B++){var q=D[B],M=q.row,I=q.col,H=p,Y=void 0;Array.isArray(H)&&(H=H[B]),typeof H=="number"&&(H=[H,H,H,H]),g?Array.isArray(g)?Y=g[B]:Y=g:Y=l,this.drawPositioningPattern(k,S,A,M,I,Y,H)}if(c){var X=new Image;a&&(X.crossOrigin="Anonymous"),X.onload=function(J){k.save();var ee=y||x*.2,U=C||ee,L=(x-ee)/2,F=(x-U)/2;if(f||b){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var V=ee+2*b,N=U+2*b,Q=L+A-b,G=F+A-b;if(v==="circle"){var K=Q+V/2,se=G+N/2;k.ellipse(K,se,V/2,N/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(Q,G,V,N)}k.globalAlpha=u,k.drawImage(X,L+A,F+A,ee,U),k.restore(),d&&d(J)},X.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return dm.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:qg({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}(dm.Component);exports.QRCode_1=B0.QRCode=FI;const zI="_floating-label_3xm9u_1",BI="_without-label_3xm9u_21",WI="_floating-label-check_3xm9u_184",fm={floatingLabel:zI,withoutLabel:BI,floatingLabelCheck:WI},UI=e=>{const t=Re.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?w.jsx(O0,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},fh=({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?"":w.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?w.jsx("span",{className:ce("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?w.jsx("div",{className:"d-flex align-items-center",children:w.jsx(f,{icon:"info"})}):null]});return s?w.jsx("div",{className:ce("luminus-floating-label-check",fm.floatingLabelCheck),children:n}):w.jsx(UI,{hint:l,children:w.jsx(y0,{ref:e,label:w.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:ce(`luminus-floating-label ${r??""}`,fm.floatingLabel,{[a??""]:a},{[fm.withoutLabel]:d.withoutLabel}),children:n})})};fh.displayName="FloatingLabelInput";const HI="_row-label-input_i295l_1",VI="_label_i295l_4",qI="_input-container_i295l_9",YI="_keep-check-label_i295l_132",GI="_is-invalid_i295l_160",vl={rowLabelInput:HI,label:VI,inputContainer:qI,keepCheckLabel:YI,isInvalid:GI},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?w.jsx(w.Fragment,{}):w.jsx("label",{className:ce("label col-6",{"col-12":l},vl.label),children:w.jsxs(Bn,{variant:"form-label",className:ce("d-flex gap-1 align-items-center",a?"text-danger":""),children:[d.label,r?w.jsx("span",{className:ce("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?w.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:w.jsx(f,{icon:"info"})}):null]})});return w.jsxs("div",{ref:e,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[vl.isInvalid]:a},{[o??""]:o},{"d-none":t},vl.rowLabelInput),children:[u?w.jsx(O0,{text:u,placement:"top",children:h}):h,w.jsx("div",{className:ce("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 K$=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=w.jsx("div",{ref:n,className:a,children:r}),t[0]=r,t[1]=n,t[2]=a,t[3]=s):s=t[3],s};K$.displayName="NoInputContainer";const Z$=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=w.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=w.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},X$=({InputContainer:e=fh,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:y,onConfirm:C,autoComplete:b})=>{var P,B,q;const $=t==="number",E=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]),T=m.useCallback(H=>{var X;const Y=(X=H.target)==null?void 0:X.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=z0(t,n?n.toString()??null:null,D),I=m.useRef(null),z=(((P=I.current)==null?void 0:P.scrollWidth)??0)>(((B=I.current)==null?void 0:B.clientWidth)??0),W=(q=I.current)==null?void 0:q.getBoundingClientRect();return w.jsxs(e,{withoutLabel:a,label:o??"",hidden:c,className:p,hint:y,disabled:u,children:[w.jsx(si.Control,{type:M,placeholder:s??o,size:l,value:i?O:(n==null?void 0:n.toString())??"",onChange:T,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&&w.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:w.jsx(au,{color:"secondary",size:"sm",onClick:E,children:w.jsx(Qc,{})})}),z?w.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((W==null?void 0:W.top)??0)+((W==null?void 0:W.height)??0),left:(W==null?void 0:W.left)??0},children:i?O:(n==null?void 0:n.toString())??""}):null]})},Q$=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=w.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},J$=({InputContainer:e=fh,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:y,miniDetailPlacement:C,selectedItemNavigateTo:b,noRemoveButton:$})=>{const{texts:{customSelect:E}}=m.useContext(ln),[k,O]=m.useState(!1),[j,S]=m.useState(""),T=m.useCallback(W=>{S(W)},[]),A=m.useMemo(()=>n.find(W=>W.id===t)??null,[n,t]),D=m.useCallback(W=>{var P;return W===null?"":!W.name||W.name.length===0?((P=W.id)==null?void 0:P.toString())??"":f?`${W.name} (${W.id})`:W.name},[f]),R=m.useMemo(()=>{const W=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(W.some(P=>P.id===t)||W.push({id:t,name:p})),W.map(P=>({id:P.id,name:D(P)})).filter(P=>A0(P.name,j)).sort((P,B)=>u?0:(P.name??"").localeCompare(B.name??""))},[n,u,j,D,p,t]),M=m.useCallback(W=>{var P;r&&r((W==null?void 0:W.id)===void 0||(W==null?void 0:W.id)===null?null:a?Number(W.id):(P=W.id)==null?void 0:P.toString())},[r,a]),I=m.useCallback(W=>{O(!1),M(W)},[M]),z=m.useRef(null);return w.jsx(w.Fragment,{children:w.jsxs(e,{withoutLabel:o,label:i??"",hidden:l,inputContainerClassName:ce({"luminus-dropdown-select-open":k}),className:d,hint:v,disabled:c,children:[w.jsx(Z$,{currentSelection:A,selectedItemNavigateTo:b,children:w.jsx(Q$,{value:t,MiniDetailComponent:y,miniDetailPlacement:C,children:w.jsxs(si.Select,{ref:z,size:s,value:t??"",onMouseDown:W=>{W.currentTarget.focus(),W.preventDefault()},onClick:()=>{!c&&O(!0)},onChange:()=>{},className:ce("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[h&&!(t==null||t==="")?void 0:w.jsx("option",{value:""}),t!=null&&w.jsx("option",{value:t,children:D(A)})]})})}),z.current&&w.jsx(pE,{show:k,onCancel:()=>O(!1),items:R,currentSelection:A??null,onSelectionChange:I,onSearchQueryChange:T,texts:E,disabled:c,inputRef:z,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:g,addNewOptionPath:x,refreshOptions:_,noRemoveButton:$})]})})};function KI(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 ZI(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 XI(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 QI(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(70),{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,{register:y,formState:C,getValues:b,setValue:$}=pn.useFormContext(),{errors:E,isSubmitted:k}=C;let O;t[0]===Symbol.for("react.memo_cache_sentinel")?(O={falseIfNotInit:!0},t[0]=O):O=t[0];const j=uh(O);console.log("disabled ",p),console.log("formDisabled ",j);const[S,T]=m.useState(void 0),[A,D]=m.useState(!1);let R;if(t[1]!==d||t[2]!==a){let oe;t[4]!==d?(oe=(ue,ye)=>d?0:(ue.name??"").localeCompare(ye.name??""),t[4]=d,t[5]=oe):oe=t[5],R=a.toSorted(oe),t[1]=d,t[2]=a,t[3]=R}else R=t[3];const M=R;let I;t[6]!==u||t[7]!==r||t[8]!==s||t[9]!==$||t[10]!==A?(I=()=>{const oe=u??null;s?$(r,oe===null?null:Number(oe),{shouldDirty:!0,shouldValidate:A}):$(r,(oe==null?void 0:oe.toString())??"",{shouldDirty:!0,shouldValidate:A})},t[6]=u,t[7]=r,t[8]=s,t[9]=$,t[10]=A,t[11]=I):I=t[11];const z=I;let W,P;t[12]!==r||t[13]!==E?(W=()=>{const oe=r.split(".");let ue=E;oe.forEach(ye=>{ue!==void 0&&(ue=ue[ye])}),T(ue)},P=[E,r],t[12]=r,t[13]=E,t[14]=W,t[15]=P):(W=t[14],P=t[15]),m.useEffect(W,P);const B=p||j;console.log(B);let q;t[16]!==r||t[17]!==b||t[18]!==$?(q=()=>{$(r,b(r))},t[16]=r,t[17]=b,t[18]=$,t[19]=q):q=t[19];let H;t[20]!==r||t[21]!==b||t[22]!==M||t[23]!==$?(H=[M,r,b,$],t[20]=r,t[21]=b,t[22]=M,t[23]=$,t[24]=H):H=t[24],m.useEffect(q,H);let Y,X;t[25]!==k?(Y=()=>{k&&D(!0)},X=[k],t[25]=k,t[26]=Y,t[27]=X):(Y=t[26],X=t[27]),m.useEffect(Y,X);const J=S!==void 0;let ee;t[28]!==r?(ee={name:r},t[28]=r,t[29]=ee):ee=t[29];const U=pn.useWatch(ee),L=i??"";let F;t[30]!==s?(F=oe=>s?oe==null||oe===""?null:parseInt(oe,10):oe==null||oe===""?null:oe,t[30]=s,t[31]=F):F=t[31];let V;t[32]!==o||t[33]!==$||t[34]!==A?(V=()=>{o&&o.forEach(oe=>$(oe,null,{shouldDirty:!0,shouldValidate:A}))},t[32]=o,t[33]=$,t[34]=A,t[35]=V):V=t[35];let N;t[36]!==r||t[37]!==y||t[38]!==F||t[39]!==V?(N=y(r,{setValueAs:F,onChange:V}),t[36]=r,t[37]=y,t[38]=F,t[39]=V,t[40]=N):N=t[40];let Q;t[41]===Symbol.for("react.memo_cache_sentinel")?(Q=w.jsx("option",{value:""}),t[41]=Q):Q=t[41];let G;t[42]!==M?(G=M.map(JI),t[42]=M,t[43]=G):G=t[43];let K;t[44]!==B||t[45]!==h||t[46]!==J||t[47]!==l||t[48]!==N||t[49]!==G?(K=w.jsxs(si.Select,{size:l,...N,isInvalid:J,hidden:h,disabled:B,className:"w-100",children:[Q,G]}),t[44]=B,t[45]=h,t[46]=J,t[47]=l,t[48]=N,t[49]=G,t[50]=K):K=t[50];let se;t[51]!==z||t[52]!==U||t[53]!==c?(se=c&&U!=null&&w.jsx("div",{className:"luminus-input-remove-icon inset",children:w.jsx(au,{color:"secondary",size:"sm",onClick:z,children:w.jsx(Qc,{})})}),t[51]=z,t[52]=U,t[53]=c,t[54]=se):se=t[54];let ne;t[55]!==S?(ne=S&&w.jsx(Eh,{message:S.message}),t[55]=S,t[56]=ne):ne=t[56];let re;return t[57]!==_||t[58]!==B||t[59]!==x||t[60]!==h||t[61]!==v||t[62]!==J||t[63]!==f||t[64]!==L||t[65]!==K||t[66]!==se||t[67]!==ne||t[68]!==g?(re=w.jsx(w.Fragment,{children:w.jsxs(_,{label:L,required:f,disabled:B,hidden:h,withoutLabel:g,isInvalid:J,hint:v,className:x,children:[K,se,ne]})}),t[57]=_,t[58]=B,t[59]=x,t[60]=h,t[61]=v,t[62]=J,t[63]=f,t[64]=L,t[65]=K,t[66]=se,t[67]=ne,t[68]=g,t[69]=re):re=t[69],re};function JI(e){return w.jsx("option",{value:e.id??"",children:e.name},e.id)}const U0=e=>{const t=Re.c(55),{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:y}=e,C=n===void 0?su:n,{register:b,formState:$,setValue:E}=pn.useFormContext(),{errors:k,isSubmitted:O}=$;let j;t[0]===Symbol.for("react.memo_cache_sentinel")?(j={falseIfNotInit:!0},t[0]=j):j=t[0];const S=uh(j),[T,A]=m.useState(void 0),[D,R]=m.useState(!1);let M;t[1]!==l||t[2]!==r||t[3]!==E||t[4]!==D?(M=()=>{const se=l??null;E(r,(se==null?void 0:se.toString())??"",{shouldDirty:!0,shouldValidate:D})},t[1]=l,t[2]=r,t[3]=E,t[4]=D,t[5]=M):M=t[5];const I=M;let z;t[6]!==r||t[7]!==k?(z=()=>{const se=r.split(".");let ne=k;se.forEach(re=>{ne!==void 0&&(ne=ne[re])}),A(ne)},t[6]=r,t[7]=k,t[8]=z):z=t[8];const W=z,P=d||S;let B,q;t[9]!==W?(B=()=>{W()},q=[W],t[9]=W,t[10]=B,t[11]=q):(B=t[10],q=t[11]),m.useEffect(B,q);let H,Y;t[12]!==O?(H=()=>{O&&R(!0)},Y=[O],t[12]=O,t[13]=H,t[14]=Y):(H=t[13],Y=t[14]),m.useEffect(H,Y);const X=T!==void 0;let J;t[15]!==r?(J={name:r},t[15]=r,t[16]=J):J=t[16];const ee=pn.useWatch(J),U=i??"";let L;t[17]!==_||t[18]!==o||t[19]!==E||t[20]!==D?(L=se=>{var ne;o&&o.forEach(re=>E(re,null,{shouldDirty:!0,shouldValidate:D})),_&&_((ne=se.target)!=null&&ne.value?se.target.value.toString():null)},t[17]=_,t[18]=o,t[19]=E,t[20]=D,t[21]=L):L=t[21];let F;t[22]!==r||t[23]!==b||t[24]!==L?(F=b(r,{setValueAs:eP,onChange:L}),t[22]=r,t[23]=b,t[24]=L,t[25]=F):F=t[25];const V=f??2;let N;t[26]!==P||t[27]!==p||t[28]!==u||t[29]!==X||t[30]!==v||t[31]!==g||t[32]!==a||t[33]!==F||t[34]!==V?(N=w.jsx(si.Control,{as:"textarea",size:a,...F,isInvalid:X,hidden:u,disabled:P,rows:V,className:"w-100",minLength:g,maxLength:v,...p}),t[26]=P,t[27]=p,t[28]=u,t[29]=X,t[30]=v,t[31]=g,t[32]=a,t[33]=F,t[34]=V,t[35]=N):N=t[35];let Q;t[36]!==I||t[37]!==ee||t[38]!==s?(Q=s&&ee!=null&&w.jsx("div",{className:"luminus-input-remove-icon",children:w.jsx(au,{color:"secondary",size:"sm",onClick:I,children:w.jsx(Qc,{})})}),t[36]=I,t[37]=ee,t[38]=s,t[39]=Q):Q=t[39];let G;t[40]!==T?(G=T&&w.jsx(Eh,{message:T.message}),t[40]=T,t[41]=G):G=t[41];let K;return t[42]!==C||t[43]!==P||t[44]!==y||t[45]!==u||t[46]!==x||t[47]!==X||t[48]!==c||t[49]!==U||t[50]!==N||t[51]!==Q||t[52]!==G||t[53]!==h?(K=w.jsxs(C,{label:U,required:c,disabled:P,hidden:u,withoutLabel:h,isInvalid:X,className:y,hint:x,isForTextAreaInput:!0,children:[N,Q,G]}),t[42]=C,t[43]=P,t[44]=y,t[45]=u,t[46]=x,t[47]=X,t[48]=c,t[49]=U,t[50]=N,t[51]=Q,t[52]=G,t[53]=h,t[54]=K):K=t[54],K};function eP(e){return e==null||e===""?null:e}const Ts=({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:y,hint:C,onChange:b,className:$,autoComplete:E})=>{var F,V,N,Q;const{register:k,setValue:O}=pn.useFormContext(),{errors:j,isSubmitted:S}=pn.useFormState(),T=uh({falseIfNotInit:!0}),[A,D]=m.useState(void 0),[R,M]=m.useState(!1),I=m.useCallback(()=>{const G=c??null;n==="number"?O(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:R}):O(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:R})},[c,n,O,r,R]),z=m.useCallback(()=>{const G=r.split(".");let K=j;G.forEach(se=>{K!==void 0&&(K=K[se])}),D(K)},[j,r]),W=m.useMemo(()=>f||T,[f,T]);m.useEffect(()=>{z()},[z]),m.useEffect(()=>{S&&M(!0)},[S]);const P=A!==void 0,[B,q]=m.useState(!1),H=pn.useWatch({name:r}),Y=z0(n,H??null,B),{ref:X,...J}=k(r,{setValueAs:G=>n==="number"?G==null||G===""?null:Number(G):G==null||G===""?null:G,onChange:G=>{var K;s&&s.forEach(se=>O(se,null,{shouldDirty:!0,shouldValidate:R})),b&&b((K=G.target)!=null&&K.value?n==="number"?Number(G.target.value)??null:G.target.value.toString():null)},onBlur:()=>q(!1)}),ee=m.useRef(null),U=(((F=ee.current)==null?void 0:F.scrollWidth)??0)>(((V=ee.current)==null?void 0:V.clientWidth)??0),L=(N=ee.current)==null?void 0:N.getBoundingClientRect();return m.useImperativeHandle(e,()=>ee.current,[ee]),w.jsxs(t,{label:i,required:u,disabled:W,hidden:d,withoutLabel:h??!1,isInvalid:P,hint:C,className:$,children:[w.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[w.jsx(si.Control,{type:Y,placeholder:o??i,size:a,onFocus:G=>{q(!0),!x&&G.target.select()},...J,ref:G=>{X(G),ee.current=G},isInvalid:P,hidden:d,disabled:W,list:p,className:"w-100",step:g,minLength:_,maxLength:y,autoComplete:E}),v&&w.jsx("div",{className:"custom-picker-button",children:v})]}),l&&H!=null&&w.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:w.jsx(au,{color:"secondary",size:"sm",onClick:I,children:w.jsx(Qc,{})})}),U?w.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((L==null?void 0:L.top)??0)+((L==null?void 0:L.height)??0),left:(L==null?void 0:L.left)??0,pointerEvents:"none"},children:((Q=ee.current)==null?void 0:Q.value)??""}):null,A&&w.jsx(Eh,{message:A.message})]})},tP="_item_1dy8x_1",eS={item:tP},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=ce(u,eS.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=w.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},nP="_button_qhwih_1",rP={button:nP},H0=({ref:e,color:t="primary",icon:n=w.jsx(RC,{size:21}),text:r,onClick:i,className:o,children:a,...s})=>w.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${t} ${o??""}`,rP.button),...s,children:[n,r]}),V0=e=>{const t=Re.c(2);let n;return t[0]!==e?(n=w.jsx(xs.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},iP="_divider_1e6rk_1",oP={divider:iP},Yg=e=>{const t=Re.c(4),{className:n}=e;let r;t[0]!==n?(r=ce("luminus-dropdown-divider",n,oP.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=w.jsx(xs.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},aP="_dropdown_1lk66_1",sP={dropdown:aP},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=ce("luminus-dropdown rounded shadow",sP.dropdown),t[5]=a):a=t[5];let s;t[6]!==n||t[7]!==r?(s=w.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=w.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},lP="_wrapper_1tb6d_1",cP="_controls_1tb6d_16",uP="_explorerWindow_1tb6d_20",dP="_folderList_1tb6d_28",fP="_fileList_1tb6d_35",hP="_dndText_1tb6d_61",Do={wrapper:lP,controls:cP,explorerWindow:uP,folderList:dP,fileList:fP,dndText:hP},xn=m.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),pP="_defaultFolder_8tlxv_1",mP="_names_8tlxv_5",gP="_folderType_8tlxv_9",hm={defaultFolder:pP,names:mP,folderType:gP},tS=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?hm.defaultFolder:"text-primary";let c;t[0]!==l?(c=ce("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=w.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=ce("d-flex flex-column gap-0 align-items-start",hm.names),t[7]=f):f=t[7];const h=n?"fw-bold":"";let p;t[8]!==i||t[9]!==h?(p=w.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?w.jsxs("span",{className:hm.folderType,children:["(",o,")"]}):null,t[11]=o,t[12]=g):g=t[12];let v;t[13]!==p||t[14]!==g?(v=w.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=w.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},vP=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=ce("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=w.jsx(tS,{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=w.jsx("li",{children:w.jsx("button",{onClick:s,type:"button",className:l,children:d})}),t[6]=s,t[7]=d,t[8]=f):f=t[8],f};function bP(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const nS=()=>{const e=sh(),{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=pn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},rS=(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))}},yP=(e,t)=>{t.shouldUseNativeValidation&&rS(e,t);const n={};for(const r in e){const i=pn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(xP(t.names||Object.keys(e),r)){const a=Object.assign({},pn.get(n,r));pn.set(a,"root",o),pn.set(n,r,a)}else pn.set(n,r,o)}return n},xP=(e,t)=>e.some(n=>n.startsWith(t+"."));var wP=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]=pn.appendErrors(a,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},hh=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&&rS({},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:yP(wP(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const _P=()=>{const e=Re.c(14),{reducer:t,entityId:n,entityType:r}=m.useContext(xn),[i]=t,{zNumberRequired:o,zStringRequired:a}=ch(),{createFolder:s}=nS();let l,c;if(e[0]!==o||e[1]!==a){const g=Si({name:a(),documentTypeId:o()});c=pn.useForm,l=hh(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},CP=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(bP(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=_P();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=w.jsx(Xn.Header,{closeButton:!0,children:w.jsx(Xn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=w.jsx(Ts,{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=w.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=w.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=w.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=w.jsx(da,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==v?(_=w.jsxs(Xn.Footer,{children:[v,x]}),t[27]=x,t[28]=v,t[29]=_):_=t[29];let y;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==g?(y=w.jsxs(si,{onSubmit:u,children:[f,g,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=g,t[34]=y):y=t[34];let C;return t[35]!==c||t[36]!==y?(C=w.jsx(w.Fragment,{children:w.jsx(pn.FormProvider,{...c,children:y})}),t[35]=c,t[36]=y,t[37]=C):C=t[37],C},iS=100,$P=(e,t)=>{const n=sh(),{startLoading:r,stopLoading:i}=m.useContext(Qf),{loadDocuments:o}=m.useContext(xn),{zStringRequired:a,zString:s,zNumberRequired:l,zDateRequired:c}=ch(),u=Si({name:a(),description:s(),validToDate:c(),documentTypeId:l()}),d=pn.useForm({resolver:hh(u),defaultValues:{...e,validToDate:eh(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}},SP=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}=$P(r,n);let u;t[0]!==o.editFileProperties?(u=w.jsx(Xn.Header,{closeButton:!0,children:w.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=w.jsx(Ts,{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=w.jsx(Ts,{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=w.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:iS},t[12]=g):g=t[12];let v;t[13]!==o.description?(v=w.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=w.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?(_=w.jsx(da,{onClick:n,color:"secondary",variant:"outlined",children:o.cancel}),t[20]=o.cancel,t[21]=n,t[22]=_):_=t[22];let y;t[23]!==o.save?(y=w.jsx(da,{type:"submit",children:o.save}),t[23]=o.save,t[24]=y):y=t[24];let C;t[25]!==_||t[26]!==y?(C=w.jsxs(Xn.Footer,{children:[_,y]}),t[25]=_,t[26]=y,t[27]=C):C=t[27];let b;t[28]!==x||t[29]!==C||t[30]!==d?(b=w.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?($=w.jsx(pn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=$):$=t[34];let E;return t[35]!==$||t[36]!==u?(E=w.jsxs(w.Fragment,{children:[u,$]}),t[35]=$,t[36]=u,t[37]=E):E=t[37],E},EP=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=w.jsx(w.Fragment,{}),t[5]=l):l=t[5],l}let s;return t[6]!==a||t[7]!==n?(s=w.jsx(SP,{file:a,handleClose:n}),t[6]=a,t[7]=n,t[8]=s):s=t[8],s},TP=()=>{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 w.jsx(CP,{handleClose:n});case"edit-file-properties":return w.jsx(EP,{handleClose:n});default:return null}},[e.state,e.modalType]);return w.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",kP=()=>{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 y=kP();y.innerHTML=i.markedFiles.length.toString(),x.dataTransfer.setDragImage(y,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 y=_.dataTransfer.files;if(x&&y&&y.length>0){x(y);return}const C=_.dataTransfer.getData("application/json");if(C){const $=JSON.parse(C),E=parseInt(((b=_.currentTarget.attributes.getNamedItem(jx))==null?void 0:b.value)??"",10);r(E,$)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=MP,f=AP,h=RP;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 OP(e){e.preventDefault(),e.stopPropagation()}function MP(){return OP}function AP(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 RP(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(Zd))}function oS(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&&oS(o,t,n))return!0}return!1}function jP(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function aS(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${aS(n.parentId,t)}/${n.name}`}const NP=()=>{const e=Re.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=ch();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 X;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}=NP();let x;t[5]!==v?(x=hh(v),t[5]=v,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=eh(new Date().toISOString()),t[7]=_):_=t[7];let y;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(y=(X=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:X.id,t[8]=h,t[9]=c.documentTypes,t[10]=c.foldersMap,t[11]=y):y=t[11];let C;t[12]!==y?(C={validToDate:_,documentTypeId:y},t[12]=y,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 $=pn.useForm(b);let E;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(E=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]=E):E=t[21];const k=E;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=w.jsx("ul",{children:f.map(DP)}),t[26]=f,t[27]=j):j=t[27];let S;t[28]!==O||t[29]!==j?(S=w.jsx(Xn.Header,{closeButton:!0,children:w.jsxs("div",{children:[O,j]})}),t[28]=O,t[29]=j,t[30]=S):S=t[30];let T;t[31]!==$||t[32]!==k?(T=$.handleSubmit(k),t[31]=$,t[32]=k,t[33]=T):T=t[33];let A;t[34]!==a.documentType||t[35]!==c.documentTypes?(A=w.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=w.jsx(Ts,{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?w.jsx(Ts,{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:iS},t[42]=M):M=t[42];let I;t[43]!==a.description?(I=w.jsx(U0,{formField:"description",label:a.description,customFormControlProps:M}),t[43]=a.description,t[44]=I):I=t[44];let z;t[45]!==A||t[46]!==D||t[47]!==R||t[48]!==I?(z=w.jsxs(Xn.Body,{children:[A,D,R,I]}),t[45]=A,t[46]=D,t[47]=R,t[48]=I,t[49]=z):z=t[49];let W;t[50]!==a.cancel||t[51]!==n?(W=w.jsx(da,{variant:"outlined",color:"secondary",onClick:n,children:a.cancel}),t[50]=a.cancel,t[51]=n,t[52]=W):W=t[52];let P;t[53]!==a.upload?(P=w.jsx(da,{type:"submit",children:a.upload}),t[53]=a.upload,t[54]=P):P=t[54];let B;t[55]!==W||t[56]!==P?(B=w.jsxs(Xn.Footer,{children:[W,P]}),t[55]=W,t[56]=P,t[57]=B):B=t[57];let q;t[58]!==T||t[59]!==z||t[60]!==B?(q=w.jsxs(si,{onSubmit:T,children:[z,B]}),t[58]=T,t[59]=z,t[60]=B,t[61]=q):q=t[61];let H;t[62]!==$||t[63]!==q?(H=w.jsx(pn.FormProvider,{...$,children:q}),t[62]=$,t[63]=q,t[64]=H):H=t[64];let Y;return t[65]!==n||t[66]!==S||t[67]!==H?(Y=w.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 DP(e,t){return w.jsxs("li",{children:[e.name," - ",ws(e.size)]},`${e.name}-${t}`)}const IP="_folder_1cktt_1",PP="_collapseArrowDiv_1cktt_8",LP="_button_1cktt_20",FP="_nestedList_1cktt_24",zP="_numberOfFiles_1cktt_31",BP="_collapseArrow_1cktt_8",Io={folder:IP,collapseArrowDiv:PP,button:LP,nestedList:FP,numberOfFiles:zP,collapseArrow:BP},sS=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"&&oS(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,y=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 q;t[15]!==n?(q=H=>H.folderId===n&&H.archive===!1,t[15]=n,t[16]=q):q=t[16],$=a.filteredFiles.filter(q),t[12]=n,t[13]=a.filteredFiles,t[14]=$}else $=t[14];const E=$.length;let k;t[17]!==i||t[18]!==_||t[19]!==y||t[20]!==d?(k=y?d?w.jsx("button",{onClick:()=>f(!1),type:"button",children:w.jsx(i,{icon:"chevron-right",iconProps:{className:Io.collapseArrow}})}):w.jsx("button",{onClick:_,type:"button",children:w.jsx(i,{icon:"chevron-down",iconProps:{className:Io.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=y,t[20]=d,t[21]=k):k=t[21];let O;t[22]!==k?(O=w.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=ce(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:q=>u(q)}):{},t[25]=n,t[26]=v.onlyRead,t[27]=l,t[28]=r,t[29]=S):S=t[29];const T=v.defaultDocType??"",A=n===a.activeFolder;let D;t[30]!==v.isDefault||t[31]!==v.name||t[32]!==T||t[33]!==A?(D=w.jsx(tS,{isDefault:v.isDefault,folderName:v.name,typeName:T,isActive:A}),t[30]=v.isDefault,t[31]=v.name,t[32]=T,t[33]=A,t[34]=D):D=t[34];let R;t[35]!==E?(R=E>0?w.jsxs("span",{className:Io.numberOfFiles,children:["[",E,"]"]}):void 0,t[35]=E,t[36]=R):R=t[36];let M;t[37]!==D||t[38]!==R?(M=w.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=w.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 z;t[44]!==v.childrenIds||t[45]!==y||t[46]!==d||t[47]!==r?(z=y?d?null:w.jsx("ul",{className:Io.nestedList,children:v==null?void 0:v.childrenIds.map(q=>w.jsx(sS,{dirId:q,writePermissions:r},q))}):void 0,t[44]=v.childrenIds,t[45]=y,t[46]=d,t[47]=r,t[48]=z):z=t[48];let W;t[49]!==I||t[50]!==z||t[51]!==O?(W=w.jsxs("li",{className:Io.folder,children:[O,I,z]}),t[49]=I,t[50]=z,t[51]=O,t[52]=W):W=t[52];let P;t[53]!==n||t[54]!==c?(P=c!==null?w.jsx(G0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=P):P=t[55];let B;return t[56]!==W||t[57]!==P?(B=w.jsxs(w.Fragment,{children:[W,P]}),t[56]=W,t[57]=P,t[58]=B):B=t[58],B},WP="_wrapper_1th2u_1",UP="_downloadButton_1th2u_9",Gg={wrapper:WP,downloadButton:UP};function ph(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 HP(){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 VP=HP();const me=ph(VP),lS=6048e5,qP=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 cS(e,t){const n=()=>Ii(t==null?void 0:t.in,NaN),r=ZP(e);let i;if(r.date){const l=XP(r.date,2);i=QP(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=JP(r.time),isNaN(a)))return n();if(r.timezone){if(s=eL(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+-].*)$/},YP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,GP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,KP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ZP(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 XP(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 QP(e,t){if(t===null)return new Date(NaN);const n=e.match(YP);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 oL(t,s,l)?tL(t,s,l):new Date(NaN);{const c=new Date(0);return!rL(t,o,a)||!iL(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function bl(e){return e?parseInt(e):1}function JP(e){const t=e.match(GP);if(!t)return NaN;const n=pm(t[1]),r=pm(t[2]),i=pm(t[3]);return aL(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function pm(e){return e&&parseFloat(e.replace(",","."))||0}function eL(e){if(e==="Z")return 0;const t=e.match(KP);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return sL(r,i)?n*(r*36e5+i*6e4):NaN}function tL(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 nL=[31,null,31,30,31,30,31,31,30,31,30,31];function uS(e){return e%400===0||e%4===0&&e%100!==0}function rL(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(nL[t]||(uS(e)?29:28))}function iL(e,t){return t>=1&&t<=(uS(e)?366:365)}function oL(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function aL(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function sL(e,t){return t>=0&&t<=59}let lL={};function mh(){return lL}function yc(e,t){var s,l,c,u;const n=mh(),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 dS(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 cL(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 uL(e,t,n){const[r,i]=cL(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)/qP)}function dL(e,t){const n=dS(e,t),r=Ii(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xd(r)}function fL(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hL(e){return!(!fL(e)&&typeof e!="number"||isNaN(+ur(e)))}function pL(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 mL={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"}},gL=(e,t,n)=>{let r;const i=mL[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 mm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xL={date:mm({formats:vL,defaultWidth:"full"}),time:mm({formats:bL,defaultWidth:"full"}),dateTime:mm({formats:yL,defaultWidth:"full"})},wL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_L=(e,t,n,r)=>wL[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 CL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$L={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},SL={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"]},EL={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"]},TL={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"}},kL={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"}},OL=(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"},ML={ordinalNumber:OL,era:yl({values:CL,defaultWidth:"wide"}),quarter:yl({values:$L,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yl({values:SL,defaultWidth:"wide"}),day:yl({values:EL,defaultWidth:"wide"}),dayPeriod:yl({values:TL,defaultWidth:"wide",formattingValues:kL,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)?RL(s,d=>d.test(a)):AL(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 AL(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function RL(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jL(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 NL=/^(\d+)(th|st|nd|rd)?/i,DL=/\d+/i,IL={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},PL={any:[/^b/i,/^(a|c)/i]},LL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FL={any:[/1/i,/2/i,/3/i,/4/i]},zL={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},BL={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]},WL={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},UL={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]},HL={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},VL={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}},qL={ordinalNumber:jL({matchPattern:NL,parsePattern:DL,valueCallback:e=>parseInt(e,10)}),era:xl({matchPatterns:IL,defaultMatchWidth:"wide",parsePatterns:PL,defaultParseWidth:"any"}),quarter:xl({matchPatterns:LL,defaultMatchWidth:"wide",parsePatterns:FL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xl({matchPatterns:zL,defaultMatchWidth:"wide",parsePatterns:BL,defaultParseWidth:"any"}),day:xl({matchPatterns:WL,defaultMatchWidth:"wide",parsePatterns:UL,defaultParseWidth:"any"}),dayPeriod:xl({matchPatterns:HL,defaultMatchWidth:"any",parsePatterns:VL,defaultParseWidth:"any"})},YL={code:"en-US",formatDistance:gL,formatLong:xL,formatRelative:_L,localize:ML,match:qL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GL(e,t){const n=ur(e,t==null?void 0:t.in);return uL(n,pL(n))+1}function KL(e,t){const n=ur(e,t==null?void 0:t.in),r=+Xd(n)-+dL(n);return Math.round(r/lS)+1}function fS(e,t){var u,d,f,h;const n=ur(e,t==null?void 0:t.in),r=n.getFullYear(),i=mh(),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 ZL(e,t){var a,s,l,c;const n=mh(),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=fS(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 XL(e,t){const n=ur(e,t==null?void 0:t.in),r=+yc(n,t)-+ZL(n,t);return Math.round(r/lS)+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)}},Ba={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zx={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=fS(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=dS(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=XL(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ut(i,t.length)},I:function(e,t,n){const r=KL(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=GL(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=Ba.noon:r===0?i=Ba.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=Ba.evening:r>=12?i=Ba.afternoon:r>=4?i=Ba.morning:i=Ba.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 Bo(r);case"XXXXX":case"XXX":default:return Bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Wx(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"+Bx(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"+Bx(r,":");case"zzzz":default:return"GMT"+Bo(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 Bx(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):Bo(e,t)}function Bo(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"})}},hS=(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"})}},QL=(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}}",hS(i,t))},JL={p:hS,P:QL},eF=/^D+$/,tF=/^Y+$/,nF=["D","DD","YY","YYYY"];function rF(e){return eF.test(e)}function iF(e){return tF.test(e)}function oF(e,t,n){const r=aF(e,t,n);if(console.warn(r),nF.includes(e))throw new RangeError(r)}function aF(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 sF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cF=/^'([^]*?)'?$/,uF=/''/g,dF=/[a-zA-Z]/;function pS(e,t,n){var u,d,f,h;const r=mh(),i=r.locale??YL,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(!hL(s))throw new RangeError("Invalid time value");let l=t.match(lF).map(p=>{const g=p[0];if(g==="p"||g==="P"){const v=JL[g];return v(p,i.formatLong)}return p}).join("").match(sF).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:fF(p)};if(zx[g])return{isToken:!0,value:p};if(g.match(dF))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;(iF(g)||rF(g))&&oF(g,t,String(e));const v=zx[g[0]];return v(s,g,i.localize,c)}).join("")}function fF(e){const t=e.match(cF);return t?t[1].replace(uF,"'"):e}function mS(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 hF(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 pF(e){return typeof e=="number"&&isNaN(e)}function gS(e){return ss(e)||pF(e)||typeof e=="number"&&!isFinite(e)}function vS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function mF(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 gF(e,t,n){var r=mF(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 vF(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 bF(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 bS(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 yS(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=bS(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 xS=hF(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}}}),yF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function xF(e,t,n){return Math.min(Math.max(e,t),n)}function gm(e){return Math.max(e.selectionStart,e.selectionEnd)}function wF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function _F(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function CF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function $F(e,t,n,r,i,o,a){a===void 0&&(a=CF);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 y=x===-1||f[x]===-1?0:f[x]+1;return y>_?_:r-y<_-r?y:_}function qx(e,t,n,r){var i=e.length;if(t=xF(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 SF(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 wS(e,t,n,r,i,o){o===void 0&&(o=ro);var a=vF(function(p,g){var v,x;return gS(p)?(x="",v=""):typeof p=="number"||g?(x=typeof p=="number"?yS(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 EF(e){return e.replace(/[^0-9]/g,"")}function TF(e){return e}function kF(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=TF);var s=e.removeFormatting;s===void 0&&(s=EF);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&&(_=SF);var y=e.isValidInputCharacter;y===void 0&&(y=wc);var C=e.isCharacterSame,b=mS(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),$=wS(x,l,!!c,a,s,u),E=$[0],k=E.formattedValue,O=E.numAsString,j=$[1],S=m.useRef(),T=m.useRef({formattedValue:k,numAsString:O}),A=function(ne,re){T.current={formattedValue:ne.formattedValue,numAsString:ne.value},j(ne,re)},D=m.useState(!1),R=D[0],M=D[1],I=m.useRef(null),z=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return M(!0),function(){clearTimeout(z.current.setCaretTimeout),clearTimeout(z.current.focusTimeout)}},[]);var W=a,P=function(ne,re){var oe=parseFloat(re);return{formattedValue:ne,value:re,floatValue:isNaN(oe)?void 0:oe}},B=function(ne,re,oe){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(Ho(ne,re),z.current.setCaretTimeout=setTimeout(function(){ne.value===oe&&ne.selectionStart!==re&&Ho(ne,re)},0))},q=function(ne,re,oe){return qx(ne,re,_(ne),oe)},H=function(ne,re,oe){var ue=_(re),ye=$F(re,k,ne,oe,ue,y,C);return ye=qx(re,ye,ue),ye},Y=function(ne){var re=ne.formattedValue;re===void 0&&(re="");var oe=ne.input,ue=ne.source,ye=ne.event,xe=ne.numAsString,we;if(oe){var Me=ne.inputValue||oe.value,de=gm(oe);oe.value=re,we=H(Me,re,de),we!==void 0&&B(oe,we,re)}re!==k&&A(P(re,xe),{event:ye,source:ue})};m.useEffect(function(){var ne=T.current,re=ne.formattedValue,oe=ne.numAsString;(k!==re||O!==oe)&&A(P(k,O),{event:void 0,source:xc.props})},[k,O]);var X=I.current?gm(I.current):void 0,J=typeof window<"u"?m.useLayoutEffect:m.useEffect;J(function(){var ne=I.current;if(k!==T.current.formattedValue&&ne){var re=H(T.current.formattedValue,k,X);ne.value=k,B(ne,re,k)}},[k]);var ee=function(ne,re,oe){var ue=re.target,ye=S.current?yF(S.current,ue.selectionEnd):xS(k,ne),xe=Object.assign(Object.assign({},ye),{lastValue:k}),we=s(ne,xe),Me=W(we);if(we=s(Me,void 0),d&&!d(P(Me,we))){var de=re.target,le=gm(de),be=H(ne,k,le);return de.value=k,B(de,be,k),!1}return Y({formattedValue:Me,numAsString:we,inputValue:ne,event:re,source:oe,input:re.target}),!0},U=function(ne,re){re===void 0&&(re=0);var oe=ne.selectionStart,ue=ne.selectionEnd;S.current={selectionStart:oe,selectionEnd:ue+re}},L=function(ne){var re=ne.target,oe=re.value,ue=ee(oe,ne,xc.event);ue&&f(ne),S.current=void 0},F=function(ne){var re=ne.target,oe=ne.key,ue=re.selectionStart,ye=re.selectionEnd,xe=re.value;xe===void 0&&(xe="");var we;oe==="ArrowLeft"||oe==="Backspace"?we=Math.max(ue-1,0):oe==="ArrowRight"?we=Math.min(ue+1,xe.length):oe==="Delete"&&(we=ue);var Me=0;oe==="Delete"&&ue===ye&&(Me=1);var de=oe==="ArrowLeft"||oe==="ArrowRight";if(we===void 0||ue!==ye&&!de){h(ne),U(re,Me);return}var le=we;if(de){var be=oe==="ArrowLeft"?"left":"right";le=q(xe,we,be),le!==we&&ne.preventDefault()}else oe==="Delete"&&!y(xe[we])?le=q(xe,we,"right"):oe==="Backspace"&&!y(xe[we])&&(le=q(xe,we,"left"));le!==we&&B(re,le,xe),h(ne),U(re,Me)},V=function(ne){var re=ne.target,oe=function(){var ue=re.selectionStart,ye=re.selectionEnd,xe=re.value;if(xe===void 0&&(xe=""),ue===ye){var we=q(xe,ue);we!==ue&&B(re,we,xe)}};oe(),requestAnimationFrame(function(){oe()}),p(ne),U(re)},N=function(ne){ne.persist&&ne.persist();var re=ne.target,oe=ne.currentTarget;I.current=re,z.current.focusTimeout=setTimeout(function(){var ue=re.selectionStart,ye=re.selectionEnd,xe=re.value;xe===void 0&&(xe="");var we=q(xe,ue);we!==ue&&!(ue===0&&ye===xe.length)&&B(re,we,xe),g(Object.assign(Object.assign({},ne),{currentTarget:oe}))},0)},Q=function(ne){I.current=null,clearTimeout(z.current.focusTimeout),clearTimeout(z.current.setCaretTimeout),v(ne)},G=R&&wF()?"numeric":void 0,K=Object.assign({inputMode:G},b,{type:t,value:k,onChange:L,onKeyDown:F,onMouseUp:V,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({},K,{ref:o}))}return m.createElement("input",Object.assign({},K,{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=gh(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=bS(p,n,!!r)),c&&(h=gF(h,c,s)),i&&(h=i+h),o&&(p=p+o),g&&(h="-"+h),e=h+(d&&u||"")+p,e}function gh(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 OF(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 MF(e,t){return new RegExp("(^-)|[0-9]|"+vS(e),"g")}function AF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function RF(e,t,n){var r;t===void 0&&(t=_F(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=gh(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,z,W){var P=!1,B=!1;o.startsWith("-")?P=!1:I.startsWith("--")?(P=!1,B=!0):a.startsWith("-")&&I.length===a.length?P=!1:I[0]==="-"&&(P=!0);var q=P?1:0;return B&&(q=2),q&&(I=I.substring(q),z-=q,W-=q),{value:I,start:z,end:W,hasNegation:P}},_=x(e,u,d),y=_.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,E=C.value,k=e.substring(u,d);e.length&&E.length&&(b>E.length-a.length||$<o.length)&&!(k&&a.startsWith(k))&&(e=E);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=OF(y?"-"+e:e,i),e=(e.match(MF(p))||[]).join("");var T=e.indexOf(p);e=e.replace(new RegExp(vS(p),"g"),function(I,z){return z===T?".":""});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 jF(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 NF(e){var t=gh(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 DF(e){e=NF(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=mS(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=gh(e),v=g.decimalSeparator,x=g.allowedDecimalSeparators,_=function(M){return Yx(M,e)},y=function(M,I){return RF(M,I,e)},C=ss(d)?u:d,b=f??AF(C,c,t);ss(d)?ss(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var $=function(M){return gS(M)?M:(typeof M=="number"&&(M=yS(M)),b&&typeof s=="number"?Vx(M,s,!!l):M)},E=wS($(d),$(u),!!b,_,y,h),k=E[0],O=k.numAsString,j=k.formattedValue,S=E[1],T=function(M){var I=M.target,z=M.key,W=I.selectionStart,P=I.selectionEnd,B=I.value;if(B===void 0&&(B=""),(z==="Backspace"||z==="Delete")&&P<c.length){M.preventDefault();return}if(W!==P){i(M);return}z==="Backspace"&&B[0]==="-"&&W===c.length+1&&n&&Ho(I,1),s&&l&&(z==="Backspace"&&B[W-1]===v?(Ho(I,W-1),M.preventDefault()):z==="Delete"&&B[W]===v&&M.preventDefault()),x!=null&&x.includes(z)&&B[W]===v&&Ho(I,W+1);var q=a===!0?",":a;z==="Backspace"&&B[W-1]===q&&Ho(I,W-1),z==="Delete"&&B[W]===q&&Ho(I,W+1),i(M)},A=function(M){var I=O;if(I.match(/\d/g)||(I=""),r||(I=bF(I)),l&&s&&(I=Vx(I,s,l)),I!==O){var z=Yx(I,e);S({formattedValue:z,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,z=M.lastValue,W=M.formattedValue,P=M.currentValueIndex,B=M.formattedValueIndex,q=I[P],H=W[B],Y=xS(z,I),X=Y.to,J=function(ee){return y(ee).indexOf(".")+c.length};return d===0&&l&&s&&I[X.start]===v&&J(I)<P&&J(W)>B?!1:P>=X.start&&P<X.end&&x&&x.includes(q)&&H===v?!0:q===H};return Object.assign(Object.assign({},p),{value:j,valueIsNumericString:!1,isValidInputCharacter:D,isCharacterSame:R,onValueChange:S,format:_,removeFormatting:y,getCaretBoundary:function(M){return jF(M,e)},onKeyDown:T,onBlur:A})}function IF(e){var t=DF(e);return m.createElement(kF,Object.assign({},t))}const PF=(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?w.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},LF=e=>{const t=e.getValue();return t?pS(cS(t.toString()),"dd.MM.yyyy"):null},FF=e=>{const t=e.getValue();return t?pS(cS(t.toString()),"dd.MM.yyyy HH:mm"):null},zF=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:w.jsx(IF,{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()})},BF=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},WF=["xxl","xl","lg","md","sm","xs"],UF="xs",lu=ie.createContext({prefixes:{},breakpoints:WF,minBreakpoint:UF}),{Consumer:zbe,Provider:Bbe}=lu;function Tt(e,t){const{prefixes:n}=m.useContext(lu);return e||n[t]||t}function HF(){const{breakpoints:e}=m.useContext(lu);return e}function VF(){const{minBreakpoint:e}=m.useContext(lu);return e}function _S(){const{dir:e}=m.useContext(lu);return e==="rtl"}var Gu={exports:{}},vm={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 qF(){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 y(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 y(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)||y(b)===l},Pt.isConcurrentMode=C,Pt.isContextConsumer=function(b){return y(b)===s},Pt.isContextProvider=function(b){return y(b)===a},Pt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Pt.isForwardRef=function(b){return y(b)===u},Pt.isFragment=function(b){return y(b)===r},Pt.isLazy=function(b){return y(b)===p},Pt.isMemo=function(b){return y(b)===h},Pt.isPortal=function(b){return y(b)===n},Pt.isProfiler=function(b){return y(b)===o},Pt.isStrictMode=function(b){return y(b)===i},Pt.isSuspense=function(b){return y(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=y,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 YF(){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 y(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 G=N.type;switch(G){case l:case c:case r:case o:case i:case d:return G;default:var K=G&&G.$$typeof;switch(K){case s:case u:case p:case h:case a:return K;default:return Q}}case n:return Q}}}var b=l,$=c,E=s,k=a,O=t,j=u,S=r,T=p,A=h,D=n,R=o,M=i,I=d,z=!1;function W(N){return z||(z=!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 B(N){return C(N)===s}function q(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 X(N){return C(N)===r}function J(N){return C(N)===p}function ee(N){return C(N)===h}function U(N){return C(N)===n}function L(N){return C(N)===o}function F(N){return C(N)===i}function V(N){return C(N)===d}Wt.AsyncMode=b,Wt.ConcurrentMode=$,Wt.ContextConsumer=E,Wt.ContextProvider=k,Wt.Element=O,Wt.ForwardRef=j,Wt.Fragment=S,Wt.Lazy=T,Wt.Memo=A,Wt.Portal=D,Wt.Profiler=R,Wt.StrictMode=M,Wt.Suspense=I,Wt.isAsyncMode=W,Wt.isConcurrentMode=P,Wt.isContextConsumer=B,Wt.isContextProvider=q,Wt.isElement=H,Wt.isForwardRef=Y,Wt.isFragment=X,Wt.isLazy=J,Wt.isMemo=ee,Wt.isPortal=U,Wt.isProfiler=L,Wt.isStrictMode=F,Wt.isSuspense=V,Wt.isValidElementType=y,Wt.typeOf=C}()),Wt}var Zx;function CS(){return Zx||(Zx=1,process.env.NODE_ENV==="production"?vm.exports=qF():vm.exports=YF()),vm.exports}/*
|
|
273
|
+
object-assign
|
|
274
|
+
(c) Sindre Sorhus
|
|
275
|
+
@license MIT
|
|
276
|
+
*/var bm,Xx;function GF(){if(Xx)return bm;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 bm=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},bm}var ym,Qx;function Z0(){if(Qx)return ym;Qx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ym=e,ym}var Jx,e2;function $S(){return e2||(e2=1,Jx=Function.call.bind(Object.prototype.hasOwnProperty)),Jx}var xm,t2;function KF(){if(t2)return xm;t2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Z0(),n={},r=$S();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={})},xm=i,xm}var wm,n2;function ZF(){if(n2)return wm;n2=1;var e=CS(),t=GF(),n=Z0(),r=$S(),i=KF(),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 wm=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var B=P&&(c&&P[c]||P[u]);if(typeof B=="function")return B}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:y,element:C(),elementType:b(),instanceOf:$,node:j(),objectOf:k,oneOf:E,oneOfType:O,shape:T,exact:A};function p(P,B){return P===B?P!==0||1/P===1/B:P!==P&&B!==B}function g(P,B){this.message=P,this.data=B&&typeof B=="object"?B:{},this.stack=""}g.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var B={},q=0;function H(X,J,ee,U,L,F,V){if(U=U||f,F=F||ee,V!==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=U+":"+ee;!B[Q]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+U+"`. 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."),B[Q]=!0,q++)}}return J[ee]==null?X?J[ee]===null?new g("The "+L+" `"+F+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new g("The "+L+" `"+F+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:P(J,ee,U,L,F)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function x(P){function B(q,H,Y,X,J,ee){var U=q[H],L=M(U);if(L!==P){var F=I(U);return new g("Invalid "+X+" `"+J+"` of type "+("`"+F+"` supplied to `"+Y+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(B)}function _(){return v(a)}function y(P){function B(q,H,Y,X,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=q[H];if(!Array.isArray(ee)){var U=M(ee);return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected an array."))}for(var L=0;L<ee.length;L++){var F=P(ee,L,Y,X,J+"["+L+"]",n);if(F instanceof Error)return F}return null}return v(B)}function C(){function P(B,q,H,Y,X){var J=B[q];if(!s(J)){var ee=M(J);return new g("Invalid "+Y+" `"+X+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return v(P)}function b(){function P(B,q,H,Y,X){var J=B[q];if(!e.isValidElementType(J)){var ee=M(J);return new g("Invalid "+Y+" `"+X+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return v(P)}function $(P){function B(q,H,Y,X,J){if(!(q[H]instanceof P)){var ee=P.name||f,U=W(q[H]);return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(B)}function E(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 B(q,H,Y,X,J){for(var ee=q[H],U=0;U<P.length;U++)if(p(ee,P[U]))return null;var L=JSON.stringify(P,function(F,V){var N=I(V);return N==="symbol"?String(V):V});return new g("Invalid "+X+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+L+"."))}return v(B)}function k(P){function B(q,H,Y,X,J){if(typeof P!="function")return new g("Property `"+J+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type "+("`"+U+"` supplied to `"+Y+"`, expected an object."));for(var L in ee)if(r(ee,L)){var F=P(ee,L,Y,X,J+"."+L,n);if(F instanceof Error)return F}return null}return v(B)}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 B=0;B<P.length;B++){var q=P[B];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(q)+" at index "+B+"."),a}function H(Y,X,J,ee,U){for(var L=[],F=0;F<P.length;F++){var V=P[F],N=V(Y,X,J,ee,U,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+" `"+U+"` supplied to "+("`"+J+"`"+Q+"."))}return v(H)}function j(){function P(B,q,H,Y,X){return D(B[q])?null:new g("Invalid "+Y+" `"+X+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return v(P)}function S(P,B,q,H,Y){return new g((P||"React class")+": "+B+" type `"+q+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function T(P){function B(q,H,Y,X,J){var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type `"+U+"` "+("supplied to `"+Y+"`, expected `object`."));for(var L in P){var F=P[L];if(typeof F!="function")return S(Y,X,J,L,I(F));var V=F(ee,L,Y,X,J+"."+L,n);if(V)return V}return null}return v(B)}function A(P){function B(q,H,Y,X,J){var ee=q[H],U=M(ee);if(U!=="object")return new g("Invalid "+X+" `"+J+"` of type `"+U+"` "+("supplied to `"+Y+"`, expected `object`."));var L=t({},q[H],P);for(var F in L){var V=P[F];if(r(P,F)&&typeof V!="function")return S(Y,X,J,F,I(V));if(!V)return new g("Invalid "+X+" `"+J+"` key `"+F+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[H],null," ")+`
|
|
277
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ee,F,Y,X,J+"."+F,n);if(N)return N}return null}return v(B)}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 B=d(P);if(B){var q=B.call(P),H;if(B!==P.entries){for(;!(H=q.next()).done;)if(!D(H.value))return!1}else for(;!(H=q.next()).done;){var Y=H.value;if(Y&&!D(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,B){return P==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function M(P){var B=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(B,P)?"symbol":B}function I(P){if(typeof P>"u"||P===null)return""+P;var B=M(P);if(B==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return B}function z(P){var B=I(P);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function W(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},wm}var _m,r2;function XF(){if(r2)return _m;r2=1;var e=Z0();function t(){}function n(){}return n.resetWarningCache=t,_m=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},_m}var i2;function QF(){if(i2)return Gu.exports;if(i2=1,process.env.NODE_ENV!=="production"){var e=CS(),t=!0;Gu.exports=ZF()(e.isElement,t)}else Gu.exports=XF()();return Gu.exports}var JF=QF();const Ye=ph(JF);function ez(e,t){return ie.Children.toArray(e).some(n=>ie.isValidElement(n)&&n.type===t)}function tz({as:e,bsPrefix:t,className:n,...r}){t=Tt(t,"col");const i=HF(),o=VF(),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 SS=ie.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=tz(e);return w.jsx(i,{...r,ref:t,className:me(n,!a.length&&o)})});SS.displayName="Col";var Cm,o2;function nz(){if(o2)return Cm;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 Cm=t,Cm}var rz=nz();const vh=ph(rz),iz={type:Ye.string,tooltip:Ye.bool,as:Ye.elementType},bh=ie.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>w.jsx(e,{...i,ref:o,className:me(t,`${n}-${r?"tooltip":"feedback"}`)}));bh.displayName="Feedback";bh.propTypes=iz;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=Tt(t,"form-check-input"),w.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=Tt(e,"form-check-label"),w.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",..._},y)=>{t=Tt(t,"form-check"),n=Tt(n,"form-switch");const{controlId:C}=m.useContext(Pi),b=m.useMemo(()=>({controlId:e||C}),[C,e]),$=!v&&g!=null&&g!==!1||ez(v,Qd),E=w.jsx(X0,{..._,type:p==="switch"?"checkbox":p,ref:y,isValid:a,isInvalid:s,disabled:o,as:x});return w.jsx(Pi.Provider,{value:b,children:w.jsx("div",{style:f,className:me(d,$&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:v||w.jsxs(w.Fragment,{children:[E,$&&w.jsx(Qd,{title:h,children:g}),c&&w.jsx(bh,{type:u,tooltip:l,children:c})]})})})});ES.displayName="FormCheck";const Jd=Object.assign(ES,{Input:X0,Label:Qd}),TS=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=Tt(e,"form-control"),process.env.NODE_ENV!=="production"&&vh(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),w.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")})});TS.displayName="FormControl";const oz=Object.assign(TS,{Feedback:bh}),kS=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Tt(t,"form-floating"),w.jsx(n,{ref:i,className:me(e,t),...r})));kS.displayName="FormFloating";const Q0=ie.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=m.useMemo(()=>({controlId:e}),[e]);return w.jsx(Pi.Provider,{value:i,children:w.jsx(t,{...n,ref:r})})});Q0.displayName="FormGroup";const OS=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=Tt(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"&&vh(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?w.jsx(SS,{ref:s,as:"label",className:u,htmlFor:o,...a}):w.jsx(e,{ref:s,className:u,htmlFor:o,...a})});OS.displayName="FormLabel";const MS=ie.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=m.useContext(Pi);return e=Tt(e,"form-range"),w.jsx("input",{...r,type:"range",ref:i,className:me(t,e),id:n||o})});MS.displayName="FormRange";const AS=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=Tt(e,"form-select"),w.jsx("select",{...s,size:n,ref:l,className:me(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});AS.displayName="FormSelect";const RS=ie.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=Tt(e,"form-text"),w.jsx(n,{...i,ref:o,className:me(t,e,r&&"text-muted")})));RS.displayName="FormText";const jS=ie.forwardRef((e,t)=>w.jsx(Jd,{...e,ref:t,type:"switch"}));jS.displayName="Switch";const az=Object.assign(jS,{Input:Jd.Input,Label:Jd.Label}),NS=ie.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=Tt(e,"form-floating"),w.jsxs(Q0,{ref:a,className:me(t,e),controlId:r,...o,children:[n,w.jsx("label",{htmlFor:r,children:i})]})));NS.displayName="FloatingLabel";const sz={_ref:Ye.any,validated:Ye.bool,as:Ye.elementType},J0=ie.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>w.jsx(n,{...r,ref:i,className:me(e,t&&"was-validated")}));J0.displayName="Form";J0.propTypes=sz;const ef=Object.assign(J0,{Group:Q0,Control:oz,Floating:kS,Check:Jd,Switch:az,Label:OS,Text:RS,Range:MS,Select:AS,FloatingLabel:NS}),lz=({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 w.jsx("div",{className:"w-100 h-100 position-relative",children:u?w.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}):w.jsxs(w.Fragment,{children:[w.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:w.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:w.jsx("div",{role:"button",onClick:()=>{o(u?"":"no_value_filter_value"),s(!1)},children:w.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 Kg(){return Kg=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},Kg.apply(null,arguments)}function DS(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 $m,a2;function cz(){if(a2)return $m;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 $m=e,$m}var uz=cz();const s2=ph(uz);function l2(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function dz(e){var t=fz(e,"string");return typeof t=="symbol"?t:String(t)}function fz(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 hz(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 IS(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[l2(r)],s=o[r],l=DS(o,[l2(r),r].map(dz)),c=t[r],u=hz(s,a,e[c]),d=u[0],f=u[1];return Kg({},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 Zg=!1,Xg=!1;try{var Sm={get passive(){return Zg=!0},get once(){return Xg=Zg=!0}};Hs&&(window.addEventListener("test",Sm,Sm),window.removeEventListener("test",Sm,!0))}catch{}function e1(e,t,n,r){if(r&&typeof r!="boolean"&&!Xg){var i=r.once,o=r.capture,a=n;!Xg&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,Zg?r:o)}e.addEventListener(t,n,r)}function Qg(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(){Qg(e,t,n,r)}}const c2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function pz(e,t){const n=c2(e),r=c2(t);return i=>{n&&n(i),r&&r(i)}}function uu(e,t){return m.useMemo(()=>pz(e,t),[e,t])}function mz(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function nf(e){const t=mz(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function gz(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Wn(e){const t=gz(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function PS(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function LS(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}var vz=Function.prototype.bind.call(Function.prototype.call,[].slice);function Qi(e,t){return vz(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 bz="data-rr-ui-";function t1(e){return`${bz}${e}`}const FS=m.createContext(Hs?window:void 0);FS.Provider;function yh(){return m.useContext(FS)}const yz=["as","disabled"];function xz(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 wz(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"&&wz(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=xz(e,yz);const[o,{tagName:a}]=n1(Object.assign({tagName:n,disabled:r},i));return w.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=Tt(t,"btn"),[u,{tagName:d}]=n1({tagName:e,disabled:o,...s});return w.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 _z(){return m.useState(null)}function Cz(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 $z=["onKeyDown"];function Sz(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 Ez(e){return!e||e.trim()==="#"}const BS=ie.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=Sz(e,$z);const[i]=n1(Object.assign({tagName:"a"},r)),o=Wn(a=>{i.onKeyDown(a),n==null||n(a)});return Ez(r.href)||r.role==="button"?w.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):w.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});BS.displayName="Anchor";function Tz(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 kz(){const[,e]=m.useReducer(t=>t+1,0);return e}const xh=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 Oz(e){const t=PS();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",Mz="clippingParents",WS="viewport",wl="popper",Az="reference",f2=du.reduce(function(e,t){return e.concat([t+"-"+ks,t+"-"+_c])},[]),US=[].concat(du,[i1]).reduce(function(e,t){return e.concat([t,t+"-"+ks,t+"-"+_c])},[]),Rz="beforeRead",jz="read",Nz="afterRead",Dz="beforeMain",Iz="main",Pz="afterMain",Lz="beforeWrite",Fz="write",zz="afterWrite",Bz=[Rz,jz,Nz,Dz,Iz,Pz,Lz,Fz,zz];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 Jg(){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 HS(){return!/^((?!chrome|android).)*safari/i.test(Jg())}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=!HS()&&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 VS(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 Wz(e){return["table","td","th"].indexOf(yo(e))>=0}function Eo(e){return((fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function wh(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(o1(e)?e.host:null)||Eo(e)}function h2(e){return!Xr(e)||Li(e).position==="fixed"?null:e.offsetParent}function Uz(e){var t=/firefox/i.test(Jg()),n=/Trident/i.test(Jg());if(n&&Xr(e)){var r=Li(e);if(r.position==="fixed")return null}var i=wh(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&&Wz(n)&&Li(n).position==="static";)n=h2(n);return n&&(yo(n)==="html"||yo(n)==="body"&&Li(n).position==="static")?t:n||Uz(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 Hz(e,t,n){var r=ql(e,t,n);return r>n?n:r}function qS(){return{top:0,right:0,bottom:0,left:0}}function YS(e){return Object.assign({},qS(),e)}function GS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Vz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,YS(typeof e!="number"?e:GS(e,du))};function qz(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=Vz(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,y=g/2-v/2,C=d[h],b=_-f[u]-d[p],$=_/2-f[u]/2+y,E=ql(C,$,b),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function Yz(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)||VS(t.elements.popper,i)&&(t.elements.arrow=i))}const Gz={name:"arrow",enabled:!0,phase:"main",fn:qz,effect:Yz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var Kz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zz(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"),y=rr,C=nr,b=window;if(c){var $=fu(n),E="clientHeight",k="clientWidth";if($===dr(n)&&($=Eo(n),Li($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,i===nr||(i===rr||i===$r)&&o===_c){C=Cr;var O=d&&$===b&&b.visualViewport?b.visualViewport.height:$[E];g-=O-r.height,g*=l?1:-1}if(i===rr||(i===nr||i===Cr)&&o===_c){y=$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&&Kz),T=u===!0?Zz({x:h,y:g},dr(n)):{x:h,y:g};if(h=T.x,g=T.y,l){var A;return Object.assign({},S,(A={},A[C]=_?"0":"",A[y]=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[y]=x?h+"px":"",t.transform="",t))}function Xz(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 Qz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xz,data:{}};var Ku={passive:!0};function Jz(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 eB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jz,data:{}};var tB={left:"right",right:"left",bottom:"top",top:"bottom"};function Cd(e){return e.replace(/left|right|bottom|top/g,function(t){return tB[t]})}var nB={start:"end",end:"start"};function m2(e){return e.replace(/start|end/g,function(t){return nB[t]})}function l1(e){var t=dr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c1(e){return Ms(Eo(e)).left+l1(e).scrollLeft}function rB(e,t){var n=dr(e),r=Eo(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=HS();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+c1(e),y:l}}function iB(e){var t,n=Eo(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 KS(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:Xr(e)&&u1(e)?e:KS(wh(e))}function Yl(e,t){var n;t===void 0&&(t=[]);var r=KS(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(wh(a)))}function ev(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oB(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===WS?ev(rB(e,n)):fa(t)?oB(t,n):ev(iB(Eo(e)))}function aB(e){var t=Yl(wh(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)&&VS(i,r)&&yo(i)!=="body"}):[]}function sB(e,t,n,r){var i=t==="clippingParents"?aB(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 ZS(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?Mz:s,c=n.rootBoundary,u=c===void 0?WS: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=YS(typeof v!="number"?v:GS(v,du)),_=f===wl?Az:wl,y=e.rects.popper,C=e.elements[p?_:f],b=sB(fa(C)?C:C.contextElement||Eo(e.elements.popper),l,u,a),$=Ms(e.elements.reference),E=ZS({reference:$,element:y,placement:i}),k=ev(Object.assign({},y,E)),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 T=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]+=T[R]*D})}return j}function lB(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?US: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 cB(e){if(Zr(e)===i1)return[];var t=Cd(e);return[m2(e),t,m2(t)]}function uB(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,y=l||(_||!p?[Cd(v)]:cB(v)),C=[v].concat(y).reduce(function(Y,X){return Y.concat(Zr(X)===i1?lB(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):X)},[]),b=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,O=C[0],j=0;j<C.length;j++){var S=C[j],T=Zr(S),A=As(S)===ks,D=[nr,Cr].indexOf(T)>=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 z=Cd(I),W=[];if(o&&W.push(M[T]<=0),s&&W.push(M[I]<=0,M[z]<=0),W.every(function(Y){return Y})){O=S,k=!1;break}E.set(S,W)}if(k)for(var P=p?3:1,B=function(Y){var X=C.find(function(J){var ee=E.get(J);if(ee)return ee.slice(0,Y).every(function(U){return U})});if(X)return O=X,"break"},q=P;q>0;q--){var H=B(q);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const dB={name:"flip",enabled:!0,phase:"main",fn:uB,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 fB(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 hB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fB};function pB(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 mB(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=US.reduce(function(u,d){return u[d]=pB(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 gB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mB};function vB(e){var t=e.state,n=e.name;t.modifiersData[n]=ZS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bB={name:"popperOffsets",enabled:!0,phase:"read",fn:vB,data:{}};function yB(e){return e==="x"?"y":"x"}function xB(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),y=!_,C=s1(x),b=yB(C),$=t.modifiersData.popperOffsets,E=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,T={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],z=I+v[D],W=I-v[R],P=h?-k[M]/2:0,B=_===ks?E[M]:k[M],q=_===ks?-k[M]:-E[M],H=t.elements.arrow,Y=h&&H?a1(H):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qS(),J=X[D],ee=X[R],U=ql(0,E[M],Y[M]),L=y?E[M]/2-P-U-J-j.mainAxis:B-U-J-j.mainAxis,F=y?-E[M]/2+P+U+ee+j.mainAxis:q+U+ee+j.mainAxis,V=t.elements.arrow&&fu(t.elements.arrow),N=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,Q=(A=S==null?void 0:S[C])!=null?A:0,G=I+L-Q-N,K=I+F-Q,se=ql(h?of(z,G):z,I,h?na(W,K):W);$[C]=se,T[C]=se-I}if(s){var ne,re=C==="x"?nr:rr,oe=C==="x"?Cr:$r,ue=$[b],ye=b==="y"?"height":"width",xe=ue+v[re],we=ue-v[oe],Me=[nr,rr].indexOf(x)!==-1,de=(ne=S==null?void 0:S[b])!=null?ne:0,le=Me?xe:ue-E[ye]-k[ye]-de+j.altAxis,be=Me?ue+E[ye]+k[ye]-de-j.altAxis:we,ze=h&&Me?Hz(le,ue,be):ql(h?le:xe,ue,h?be:we);$[b]=ze,T[b]=ze-ue}t.modifiersData[r]=T}}const wB={name:"preventOverflow",enabled:!0,phase:"main",fn:xB,requiresIfExists:["offset"]};function _B(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CB(e){return e===dr(e)||!Xr(e)?l1(e):_B(e)}function $B(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 SB(e,t,n){n===void 0&&(n=!1);var r=Xr(t),i=Xr(t)&&$B(t),o=Eo(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=CB(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 EB(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 TB(e){var t=EB(e);return Bz.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function kB(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function OB(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 MB(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=TB(OB([].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:SB(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 y=c.orderedModifiers[_],C=y.fn,b=y.options,$=b===void 0?{}:b,E=y.name;typeof C=="function"&&(c=C({state:c,options:$,name:E,instance:f})||c)}}}},update:kB(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,y=g.effect;if(typeof y=="function"){var C=y({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 AB=MB({defaultModifiers:[hB,bB,Qz,eB,gB,dB,wB,Gz]}),RB=["enabled","placement","strategy","modifiers"];function jB(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 NB={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},DB={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)}}},IB=[];function PB(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=IB}=n,s=jB(n,RB);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]=Oz(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(y=>{x[y]=v.styles[y],_[y]=v.attributes[y]}),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,NB]})},[o,i,p,r,g]),m.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=AB(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,DB,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 LB(e){return e.button===0}function FB(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 zB(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);vh(!!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||FB(c)||!LB(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 BB(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function WB(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function UB({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=BB(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:WB(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 HB=["children","usePopper"];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}const qB=()=>{};function XS(e={}){const t=m.useContext(xh),[n,r]=_z(),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||{},y=PB(_,x,UB({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||qB,"aria-labelledby":_==null?void 0:_.id},y.attributes.popper,{style:y.styles.popper}),b={show:h,placement:g,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?y:null,arrowProps:f?Object.assign({ref:r},y.attributes.arrow,{style:y.styles.arrow}):{}};return zB(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function QS(e){let{children:t,usePopper:n=!0}=e,r=VB(e,HB);const[i,o]=XS(Object.assign({},r,{usePopper:n}));return w.jsx(w.Fragment,{children:t(i,o)})}QS.displayName="DropdownMenu";const af={prefix:String(Math.round(Math.random()*1e10)),current:0},JS=m.createContext(af),YB=m.createContext(!1);let GB=!!(typeof window<"u"&&window.document&&window.document.createElement),Tm=new WeakMap;function KB(e=!1){let t=m.useContext(JS),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 ZB(e){let t=m.useContext(JS);t===af&&!GB&&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=KB(!!e),r=t===af&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function XB(e){let t=m.useId(),[n]=m.useState(nW()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${af.prefix}`;return e||`${r}-${t}`}const QB=typeof m.useId=="function"?XB:ZB;function JB(){return!1}function eW(){return!0}function tW(e){return()=>{}}function nW(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(tW,JB,eW):m.useContext(YB)}const e6=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},C2=()=>{};function t6(){const e=QB(),{show:t=!1,toggle:n=C2,setToggle:r,menuElement:i}=m.useContext(xh)||{},o=m.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||C2,onClick:o,"aria-expanded":!!t};return i&&e6(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function n6({children:e}){const[t,n]=t6();return w.jsx(w.Fragment,{children:e(t,n)})}n6.displayName="DropdownToggle";const tv=ie.createContext(null),$2=(e,t=null)=>e!=null?String(e):t||null,r6=ie.createContext(null);r6.displayName="NavContext";const rW=["eventKey","disabled","onClick","active","as"];function iW(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 i6({key:e,href:t,active:n,disabled:r,onClick:i}){const o=m.useContext(tv),a=m.useContext(r6),{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 o6=ie.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=zS}=e,s=iW(e,rW);const[l]=i6({key:n,href:s.href,disabled:r,onClick:i,active:o});return w.jsx(a,Object.assign({},s,{ref:t},l))});o6.displayName="DropdownItem";function S2(){const e=kz(),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=yh(),[c,u]=Tz(t,e,r),[d,f]=S2(),h=d.current,[p,g]=S2(),v=p.current,x=LS(c),_=m.useRef(null),y=m.useRef(!1),C=m.useContext(tv),b=m.useCallback((S,T,A=T==null?void 0:T.type)=>{u(S,{originalEvent:T,source:A})},[u]),$=Wn((S,T)=>{n==null||n(S,T),b(!1,T,"select"),T.isPropagationStopped()||(C==null||C(S,T))}),E=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&&(y.current=h.contains(h.ownerDocument.activeElement));const k=Wn(()=>{v&&v.focus&&v.focus()}),O=Wn(()=>{const S=_.current;let T=o;if(T==null&&(T=d.current&&e6(d.current)?"keyboard":!1),T===!1||T==="keyboard"&&!/^key.+$/.test(S))return;const A=Qi(d.current,i)[0];A&&A.focus&&A.focus()});m.useEffect(()=>{c?O():y.current&&(y.current=!1,k())},[c,y,k,O]),m.useEffect(()=>{_.current=null});const j=(S,T)=>{if(!d.current)return null;const A=Qi(d.current,i);let D=A.indexOf(S)+T;return D=Math.max(0,Math.min(D,A.length)),A[D]};return Cz(m.useCallback(()=>l.document,[l]),"keydown",S=>{var T,A;const{key:D}=S,R=S.target,M=(T=d.current)==null?void 0:T.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 z={originalEvent:S,source:S.type};switch(D){case"ArrowUp":{const W=j(R,-1);W&&W.focus&&W.focus(),S.preventDefault();return}case"ArrowDown":if(S.preventDefault(),!c)u(!0,z);else{const W=j(R,1);W&&W.focus&&W.focus()}return;case"Tab":e1(R.ownerDocument,"keyup",W=>{var P;(W.key==="Tab"&&!W.target||!((P=d.current)!=null&&P.contains(W.target)))&&u(!1,z)},{once:!0});break;case"Escape":D==="Escape"&&(S.preventDefault(),S.stopPropagation()),u(!1,z);break}}),w.jsx(tv.Provider,{value:$,children:w.jsx(xh.Provider,{value:E,children:s})})}hu.displayName="Dropdown";hu.Menu=QS;hu.Toggle=n6;hu.Item=o6;const d1=ie.createContext({});d1.displayName="DropdownContext";const a6=ie.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=Tt(t,"dropdown-divider"),w.jsx(n,{ref:o,className:me(e,t),role:r,...i})));a6.displayName="DropdownDivider";const s6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=Tt(t,"dropdown-header"),w.jsx(n,{ref:o,className:me(e,t),role:r,...i})));s6.displayName="DropdownHeader";const l6=ie.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=BS,...s},l)=>{const c=Tt(e,"dropdown-item"),[u,d]=i6({key:n,href:s.href,disabled:r,onClick:i,active:o});return w.jsx(a,{...s,...u,ref:l,className:me(t,c,d.isActive&&"active",r&&"disabled")})});l6.displayName="DropdownItem";const c6=ie.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=Tt(t,"dropdown-item-text"),w.jsx(n,{ref:i,className:me(e,t),...r})));c6.displayName="DropdownItemText";const oW=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",aW=typeof document<"u",sW=aW||oW?m.useLayoutEffect:m.useEffect,f1=ie.createContext(null);f1.displayName="InputGroupContext";const u6=ie.createContext(null);u6.displayName="NavbarContext";function d6(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 f6(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 h6=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(u6),p=Tt(e,"dropdown-menu"),{align:g,drop:v,isRTL:x}=m.useContext(d1);n=n||g;const _=m.useContext(f1),y=[];if(n)if(typeof n=="object"){const S=Object.keys(n);if(process.env.NODE_ENV!=="production"&&vh(S.length===1,"There should only be 1 breakpoint when passing an object to `align`"),S.length){const T=S[0],A=n[T];f=A==="start",y.push(`${p}-${T}-${A}`)}}else n==="end"&&(f=!0);const C=f6(f,v,x),[b,{hasShown:$,popper:E,show:k,toggle:O}]=XS({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&y.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=uu(d6(d,"DropdownMenu"),b.ref),sW(()=>{k&&(E==null||E.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 E!=null&&E.placement&&(j={...u.style,...b.style},u["x-placement"]=E.placement),w.jsx(s,{...u,...b,style:j,...(y.length||h)&&{"data-bs-popper":"static"},className:me(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...y)})});h6.displayName="DropdownMenu";const p6=ie.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=r1,...o},a)=>{const s=Tt(e,"dropdown-toggle"),l=m.useContext(xh);r!==void 0&&(o.bsPrefix=r);const[c]=t6();return c.ref=uu(c.ref,d6(a,"DropdownToggle")),w.jsx(i,{className:me(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});p6.displayName="DropdownToggle";const m6=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}=IS(e,{show:"onToggle"}),p=m.useContext(f1),g=Tt(n,"dropdown"),v=_S(),x=$=>f===!1?$==="click":f==="inside"?$!=="rootClose":f==="outside"?$!=="select":!0,_=nf(($,E)=>{var k;!((k=E.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&E.source==="mousedown"||(E.originalEvent.currentTarget===document&&(E.source!=="keydown"||E.originalEvent.key==="Escape")&&(E.source="rootClose"),x(E.source)&&(l==null||l($,E)))}),y=f6(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 w.jsx(d1.Provider,{value:C,children:w.jsx(hu,{placement:y,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${g}-item:not(.disabled):not(:disabled)`,children:p?h.children:w.jsx(u,{...h,ref:t,className:me(o,i&&"show",b[r])})})})});m6.displayName="Dropdown";const Rn=Object.assign(m6,{Toggle:p6,Menu:h6,Item:l6,ItemText:c6,Divider:a6,Header:s6}),lW="_multiselect_krzom_1",cW="_multiselect-menu_krzom_34",uW="_search-item_krzom_41",dW="_special-option_krzom_45",Zu={multiselect:lW,multiselectMenu:cW,searchItem:uW,specialOption:dW},E2=10,fW=({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(y=>y!==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(y=>y.toString()===_.toString())&&x.push({value:_,label:_,specialOption:!1})}),Array.from(new Set(x.map(_=>_.value))).map(_=>x.find(y=>y.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<E2&&i("")},[c]),w.jsxs(Rn,{autoClose:"outside",onToggle:x=>h(x),children:[w.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"}),w.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>=E2?w.jsx(Rn.Item,{className:me("rounded search-item",Zu.searchItem),children:w.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=>w.jsx(Rn.Item,{className:me("rounded",{"special-option":x.specialOption},{[Zu.specialOption]:x.specialOption}),onClick:()=>l(x.value),children:w.jsx(ef.Check,{checked:x.value===""?s.length<1:s.includes(x.value),label:x.label,onChange:()=>{}})},x.value))]})]})},hW=({column:e,IconComponent:t,texts:n})=>{const r=e.getFilterValue(),i=BF(e.columnDef);return["text","number","date","datetime"].includes(i)?w.jsx(lz,{column:e,filterValue:r?r.toString():null,IconComponent:t,texts:n}):w.jsx(fW,{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 pW(){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 g6(e,t){return e?mW(e)?ie.createElement(e,t):e:null}function mW(e){return gW(e)||typeof e=="function"||vW(e)}function gW(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function vW(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function bW(){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 _h=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 v6(e){return e instanceof ir(e).SVGElement}function qs(e){return e?Vs(e)?e.document:h1(e)?p1(e)?e:pu(e)||v6(e)?e.ownerDocument:document:document:document}const ni=_h?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 yW(){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 nv(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let km={};function gu(e,t){return m.useMemo(()=>{if(t)return t;const n=km[e]==null?0:km[e]+1;return km[e]=n,e+"-"+n},[e,t])}function b6(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=b6(1),lf=b6(-1);function xW(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 wW(e){if(!e)return!1;const{TouchEvent:t}=ir(e.target);return t&&e instanceof t}function rv(e){if(wW(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 xW(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}}}),T2="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function _W(e){return e.matches(T2)?e:e.querySelector(T2)}const CW={display:"none"};function $W(e){let{id:t,value:n}=e;return m.createElement("div",{id:t,style:CW},n)}function SW(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 EW(){const[e,t]=m.useState("");return{announce:m.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const y6=m.createContext(null);function TW(e){const t=m.useContext(y6);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function kW(){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 OW={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
|
+
`},MW={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 AW(e){let{announcements:t=MW,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=OW}=e;const{announce:o,announcement:a}=EW(),s=gu("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0)},[]),TW(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($W,{id:r,value:i.draggable}),m.createElement(SW,{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 Om(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function RW(){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 jW(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function NW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function DW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function IW(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 PW=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=jW(k2(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(NW)};function LW(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 FW=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=LW(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(DW)};function zW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function x6(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ir}function BW(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 WW=BW(1);function UW(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 HW(e,t,n){const r=UW(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 VW={ignoreTransform:!1};function Ys(e,t){t===void 0&&(t=VW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=ir(e).getComputedStyle(e);c&&(n=HW(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 qW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function YW(e,t){return t===void 0&&(t=ir(e).getComputedStyle(e)),t.position==="fixed"}function GW(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)||v6(i)||n.includes(i))return n;const o=ir(e).getComputedStyle(i);return i!==e&&GW(i,o)&&n.push(i),YW(i,o)?n:r(i.parentNode)}return e?r(e):n}function w6(e){const[t]=v1(e,1);return t??null}function Mm(e){return!_h||!e?null:Vs(e)?e:h1(e)?p1(e)||e===qs(e).scrollingElement?window:pu(e)?e:null:null}function _6(e){return Vs(e)?e.scrollX:e.scrollLeft}function C6(e){return Vs(e)?e.scrollY:e.scrollTop}function iv(e){return{x:_6(e),y:C6(e)}}var $n;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($n||($n={}));function $6(e){return!_h||!e?!1:e===document.scrollingElement}function S6(e){const t={x:0,y:0},n=$6(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 KW={x:.2,y:.2};function ZW(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=KW);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=S6(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 XW(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,iv(n)),Ir)}function QW(e){return e.reduce((t,n)=>t+_6(n),0)}function JW(e){return e.reduce((t,n)=>t+C6(n),0)}function eU(e,t){if(t===void 0&&(t=Ys),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);w6(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const tU=[["x",["left","right"],QW],["y",["top","bottom"],JW]];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 tU)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 nU(e){const{EventTarget:t}=ir(e);return e instanceof t?e:qs(e)}function Am(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 rU(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 T6={start:[Mt.Space,Mt.Enter],cancel:[Mt.Esc],end:[Mt.Space,Mt.Enter,Mt.Tab]},iU=(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&&eU(r),n(Ir)}handleKeyDown(t){if(g1(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=T6,coordinateGetter:a=iU,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:y,isBottom:C,maxScroll:b,minScroll:$}=S6(g),E=XW(g),k={x:Math.min(v===Mt.Right?E.right-E.width/2:E.right,Math.max(v===Mt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(v===Mt.Down?E.bottom-E.height/2:E.bottom,Math.max(v===Mt.Down?E.top:E.top+E.height/2,d.y))},O=v===Mt.Right&&!_||v===Mt.Left&&!y,j=v===Mt.Down&&!C||v===Mt.Up&&!x;if(O&&k.x!==d.x){const S=g.scrollLeft+f.x,T=v===Mt.Right&&S<=b.x||v===Mt.Left&&S>=$.x;if(T&&!f.y){g.scrollTo({left:S,behavior:s});return}T?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,T=v===Mt.Down&&S<=b.y||v===Mt.Up&&S>=$.y;if(T&&!f.x){g.scrollTo({top:S,behavior:s});return}T?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=T6,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=nU(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=rv(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,rU,{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=rv(t))!=null?n:Ir,c=lf(i,l);if(!r&&s){if(A2(s)){if(s.tolerance!=null&&Am(c,s.tolerance))return this.handleCancel();if(Am(c,s.distance))return this.handleStart()}if(R2(s)&&Am(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 oU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let k6=class extends x1{constructor(t){const{event:n}=t,r=qs(n.target);super(t,oU,r)}};k6.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 aU={move:{name:"mousemove"},end:{name:"mouseup"}};var ov;(function(e){e[e.RightClick=2]="RightClick"})(ov||(ov={}));let O6=class extends x1{constructor(t){super(t,aU,qs(t.event.target))}};O6.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ov.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let M6=class extends x1{constructor(t){super(t,Rm)}static setup(){return window.addEventListener(Rm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Rm.move.name,t)};function t(){}}};M6.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 sU(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=cU({delta:d,disabled:!o}),[p,g]=yW(),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]),y=m.useRef(null),C=m.useCallback(()=>{const $=y.current;if(!$)return;const E=v.current.x*x.current.x,k=v.current.y*x.current.y;$.scrollBy(E,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 E=c.indexOf($),k=u[E];if(!k)continue;const{direction:O,speed:j}=ZW($,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(),y.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 lU={x:{[$n.Backward]:!1,[$n.Forward]:!1},y:{[$n.Backward]:!1,[$n.Forward]:!1}};function cU(e){let{delta:t,disabled:n}=e;const r=nv(t);return mu(i=>{if(n||!r||!i)return lU;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 uU(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 dU(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 Ec;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ec||(Ec={}));var av;(function(e){e.Optimized="optimized"})(av||(av={}));const j2=new Map;function fU(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(y=>!_.includes(y))))},[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 y of e){if(!y)continue;if(o&&o.length>0&&!o.includes(y.id)&&y.rect.current){_.set(y.id,y.rect.current);continue}const C=y.node.current,b=C?new b1(l(C),C):null;y.rect.current=b,b&&_.set(y.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 Ec.Always:return!1;case Ec.BeforeDragging:return n;default:return!n}}}function A6(e,t){return mu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function hU(e,t){return A6(e,t)}function pU(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 Ch(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 mU(e){return new b1(Ys(e),e)}function N2(e,t,n){t===void 0&&(t=mU);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=pU({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=Ch({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 gU(e){const t=A6(e);return x6(e,t)}const D2=[];function vU(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 bU(e){const[t,n]=m.useState(null),r=m.useRef(e),i=m.useCallback(o=>{const a=Mm(o.target);a&&n(s=>s?(s.set(a,iv(a)),new Map(s)):null)},[]);return m.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=Mm(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,iv(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=Mm(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 yU(e){m.useEffect(()=>{if(!_h)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 xU(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 R6(e){return m.useMemo(()=>e?qW(e):null,[e])}const P2=[];function wU(e,t){t===void 0&&(t=Ys);const[n]=e,r=R6(n?ir(n):null),[i,o]=m.useState(P2);function a(){o(()=>e.length?e.map(l=>$6(l)?r:new b1(t(l),l)):P2)}const s=Ch({callback:a});return ni(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function _U(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return pu(t)?t:e}function CU(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=Ch({callback:i}),a=m.useCallback(c=>{const u=_U(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 $U=[{sensor:k6,options:{}},{sensor:y1,options:{}}],SU={current:{}},$d={draggable:{measure:O2},droppable:{measure:O2,strategy:Ec.WhileDragging,frequency:av.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 EU={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},TU={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cf,draggableNodes:new Map,over:null,measureDroppableContainers:cf},$h=m.createContext(TU),j6=m.createContext(EU);function kU(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zl}}}function OU(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 MU(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=m.useContext($h),o=nv(r),a=nv(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=_W(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function AU(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function RU(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 jU(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=x6(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=w6(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const N6=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 NU=m.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:c=$U,collisionDetection:u=FW,measuring:d,modifiers:f,...h}=e;const p=m.useReducer(OU,void 0,kU),[g,v]=p,[x,_]=kW(),[y,C]=m.useState(Ji.Uninitialized),b=y===Ji.Initialized,{draggable:{active:$,nodes:E,translate:k},droppable:{containers:O}}=g,j=$!=null?E.get($):null,S=m.useRef({initial:null,translated:null}),T=m.useMemo(()=>{var Ke;return $!=null?{id:$,data:(Ke=j==null?void 0:j.data)!=null?Ke:SU,rect:S}:null},[$,j]),A=m.useRef(null),[D,R]=m.useState(null),[M,I]=m.useState(null),z=$c(h,Object.values(h)),W=gu("DndDescribedBy",o),P=m.useMemo(()=>O.getEnabled(),[O]),B=RU(d),{droppableRects:q,measureDroppableContainers:H,measuringScheduled:Y}=fU(P,{dragging:b,dependencies:[k.x,k.y],config:B.droppable}),X=uU(E,$),J=m.useMemo(()=>M?rv(M):null,[M]),ee=At(),U=hU(X,B.draggable.measure);jU({activeNode:$!=null?E.get($):null,config:ee.layoutShiftCompensation,initialRect:U,measure:B.draggable.measure});const L=N2(X,B.draggable.measure,U),F=N2(X?X.parentElement:null),V=m.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),N=O.getNodeFor((t=V.current.over)==null?void 0:t.id),Q=CU({measure:B.dragOverlay.measure}),G=(n=Q.nodeRef.current)!=null?n:X,K=b?(r=Q.rect)!=null?r:L:null,se=!!(Q.nodeRef.current&&Q.rect),ne=gU(se?null:L),re=R6(G?ir(G):null),oe=vU(b?N??X:null),ue=wU(oe),ye=AU(f,{transform:{x:k.x-ne.x,y:k.y-ne.y,scaleX:1,scaleY:1},activatorEvent:M,active:T,activeNodeRect:L,containerNodeRect:F,draggingNodeRect:K,over:V.current.over,overlayNodeRect:Q.rect,scrollableAncestors:oe,scrollableAncestorRects:ue,windowRect:re}),xe=J?ls(J,k):null,we=bU(oe),Me=I2(we),de=I2(we,[L]),le=ls(ye,Me),be=K?WW(K,ye):null,ze=T&&be?u({active:T,collisionRect:be,droppableRects:q,droppableContainers:P,pointerCoordinates:xe}):null,zt=IW(ze,"id"),[Le,gt]=m.useState(null),_t=se?ye:ls(ye,de),nn=zW(_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=E.get(A.current);if(!Ie)return;const Je=Ke.nativeEvent,ht=new We({active:A.current,activeNode:Ie,event:Je,options:Qe,context:V,onAbort(Ne){if(!E.get(Ne))return;const{onDragAbort:Te}=z.current,He={id:Ne};Te==null||Te(He),x({type:"onDragAbort",event:He})},onPending(Ne,Te,He,yt){if(!E.get(Ne))return;const{onDragPending:et}=z.current,pt={id:Ne,constraint:Te,initialCoordinates:He,offset:yt};et==null||et(pt),x({type:"onDragPending",event:pt})},onStart(Ne){const Te=A.current;if(Te==null)return;const He=E.get(Te);if(!He)return;const{onDragStart:yt}=z.current,et={activatorEvent:Je,active:{id:Te,data:He.data,rect:S}};mn.unstable_batchedUpdates(()=>{yt==null||yt(et),C(Ji.Initializing),v({type:bn.DragStart,initialCoordinates:Ne,active:Te}),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:Te,collisions:He,over:yt,scrollAdjustedTranslate:et}=V.current;let pt=null;if(Te&&et){const{cancelDrop:tn}=z.current;pt={activatorEvent:Je,active:Te,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 Bt=z.current[tn];Bt==null||Bt(pt),x({type:tn,event:pt})}})}}},[E]),vt=m.useCallback((Ke,De)=>(We,Qe)=>{const Ie=We.nativeEvent,Je=E.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))},[E,je]),qe=dU(c,vt);yU(c),ni(()=>{L&&y===Ji.Initializing&&C(Ji.Initialized)},[L,y]),m.useEffect(()=>{const{onDragMove:Ke}=z.current,{active:De,activatorEvent:We,collisions:Qe,over:Ie}=V.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}=V.current;if(!Ke||A.current==null||!De||!Ie)return;const{onDragOver:Je}=z.current,ht=Qe.get(zt),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})})},[zt]),ni(()=>{V.current={activatorEvent:M,active:T,activeNode:X,collisionRect:be,collisions:ze,droppableRects:q,draggableNodes:E,draggingNode:G,draggingNodeRect:K,droppableContainers:O,over:Le,scrollableAncestors:oe,scrollAdjustedTranslate:le},S.current={initial:K,translated:be}},[T,X,ze,be,E,G,K,q,O,Le,oe,le]),sU({...ee,delta:k,draggingRect:be,pointerCoordinates:xe,scrollableAncestors:oe,scrollableAncestorRects:ue});const bt=m.useMemo(()=>({active:T,activeNode:X,activeNodeRect:L,activatorEvent:M,collisions:ze,containerNodeRect:F,dragOverlay:Q,draggableNodes:E,droppableContainers:O,droppableRects:q,over:Le,measureDroppableContainers:H,scrollableAncestors:oe,scrollableAncestorRects:ue,measuringConfiguration:B,measuringScheduled:Y,windowRect:re}),[T,X,L,M,ze,F,Q,E,O,q,Le,H,oe,ue,B,Y,re]),at=m.useMemo(()=>({activatorEvent:M,activators:qe,active:T,activeNodeRect:L,ariaDescribedById:{draggable:W},dispatch:v,draggableNodes:E,over:Le,measureDroppableContainers:H}),[M,qe,T,L,v,W,E,Le,H]);return m.createElement(y6.Provider,{value:_},m.createElement($h.Provider,{value:at},m.createElement(j6.Provider,{value:bt},m.createElement(N6.Provider,{value:nn},l)),m.createElement(MU,{disabled:(a==null?void 0:a.restoreFocus)===!1})),m.createElement(AW,{...a,hiddenTextDescribedById:W}));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}}}),DU=m.createContext(null),L2="button",IU="Draggable";function PU(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=gu(IU),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext($h),{role:h=L2,roleDescription:p="draggable",tabIndex:g=0}=i??{},v=(l==null?void 0:l.id)===t,x=m.useContext(v?N6:DU),[_,y]=sf(),[C,b]=sf(),$=xU(a,t),E=$c(n);ni(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:C,data:E}),()=>{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:y,setActivatorNodeRef:b,transform:x}}function LU(){return m.useContext(j6)}const FU="Droppable",zU={timeout:25};function BU(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=gu(FU),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext($h),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:v}={...zU,...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]),y=Ch({callback:_,disabled:p||!a}),C=m.useCallback((k,O)=>{y&&(O&&(y.unobserve(O),d.current=!1),k&&y.observe(k))},[y]),[b,$]=sf(C),E=$c(t);return m.useEffect(()=>{!y||!b.current||(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),m.useEffect(()=>(s({type:bn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:E}}),()=>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 WU(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 UU(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 HU(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qu={scaleX:1,scaleY:1},VU=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=qU(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 qU(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 D6=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}},I6="Sortable",P6=m.createContext({activeIndex:-1,containerId:I6,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:D6,disabled:{draggable:!1,droppable:!1}});function YU(e){let{children:t,id:n,items:r,strategy:i=D6,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=LU(),d=gu(I6,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),_=!UU(h,x.current),y=v!==-1&&g===-1||_,C=HU(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:y,items:h,overIndex:v,useDragOverlay:f,sortedRects:WU(h,l),strategy:i}),[g,d,C.draggable,C.droppable,y,h,v,l,f,i]);return m.createElement(P6.Provider,{value:b},t)}const GU=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return w1(n,r,i).indexOf(t)},KU=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},ZU={duration:200,easing:"ease"},L6="transform",XU=Sc.Transition.toString({property:L6,duration:0,easing:"linear"}),QU={roleDescription:"sortable"};function JU(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 eH(e){let{animateLayoutChanges:t=KU,attributes:n,disabled:r,data:i,getNewIndex:o=GU,id:a,strategy:s,resizeObserverConfig:l,transition:c=ZU}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:v,useDragOverlay:x,strategy:_}=m.useContext(P6),y=tH(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:E,node:k,isOver:O,setNodeRef:j}=BU({id:a,data:b,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:S,activatorEvent:T,activeNodeRect:A,attributes:D,setNodeRef:R,listeners:M,isDragging:I,over:z,setActivatorNodeRef:W,transform:P}=PU({id:a,data:b,attributes:{...QU,...n},disabled:y.draggable}),B=bW(j,R),q=!!S,H=q&&!p&&Xu(f)&&Xu(v),Y=!x&&I,X=Y&&H?P:null,J=H?X??(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,U=S==null?void 0:S.id,L=m.useRef({activeId:U,items:u,newIndex:ee,containerId:d}),F=u!==L.current.items,V=t({active:S,containerId:d,isDragging:I,isSorting:q,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=JU({disabled:!V,index:C,node:k,rect:E});return m.useEffect(()=>{q&&L.current.newIndex!==ee&&(L.current.newIndex=ee),d!==L.current.containerId&&(L.current.containerId=d),u!==L.current.items&&(L.current.items=u)},[q,ee,d,u]),m.useEffect(()=>{if(U===L.current.activeId)return;if(U!=null&&L.current.activeId==null){L.current.activeId=U;return}const G=setTimeout(()=>{L.current.activeId=U},50);return()=>clearTimeout(G)},[U]),{active:S,activeIndex:f,attributes:D,data:b,rect:E,index:C,newIndex:ee,items:u,isOver:O,isSorting:q,isDragging:I,listeners:M,node:k,overIndex:v,over:z,setNodeRef:B,setActivatorNodeRef:W,setDroppableNodeRef:j,setDraggableNodeRef:R,transform:N??J,transition:Q()};function Q(){if(N||F&&L.current.newIndex===C)return XU;if(!(Y&&!g1(T)||!c)&&(q||V))return Sc.Transition.toString({...c,property:L6})}}function tH(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 nH="_table-scroll-container_8x5tv_1",rH="_full-screen_8x5tv_8",iH="_table_8x5tv_1",oH="_thead_8x5tv_24",aH="_tbody_8x5tv_25",sH="_th_8x5tv_24",lH="_pinned_8x5tv_38",cH="_sorted_8x5tv_41",uH="_resizer_8x5tv_44",dH="_resizer-bar_8x5tv_58",fH="_reorder-handle_8x5tv_64",hH="_dragging_8x5tv_69",pH="_row-selection-info_8x5tv_73",mH="_tr_8x5tv_77",gH="_td_8x5tv_85",vH="_left_8x5tv_102",bH="_center_8x5tv_106",yH="_right_8x5tv_110",xH="_first-right_8x5tv_119",wH="_grouped_8x5tv_127",_H="_expanded_8x5tv_131",CH="_selected-cell_8x5tv_135",$H="_sm_8x5tv_139",SH="_lg_8x5tv_144",EH="_clickable_8x5tv_149",TH="_cell-selected-row_8x5tv_152",kH="_cell-selection-disabled_8x5tv_160",OH="_own-click_8x5tv_179",MH="_expander-button_8x5tv_185",AH="_empty-table-alert_8x5tv_190",RH="_remove-filters-button-wrapper_8x5tv_198",jH="_remove-filters-button_8x5tv_198",NH="_bottom-bar_8x5tv_228",DH="_left-items_8x5tv_244",IH="_pagination_8x5tv_250",PH="_page-info-text_8x5tv_256",LH="_right-items_8x5tv_262",FH="_sizing-toggle_8x5tv_268",zH="_sizing-menu_8x5tv_283",BH="_sizing-menu-item_8x5tv_287",Ve={tableScrollContainer:nH,fullScreen:rH,table:iH,thead:oH,tbody:aH,th:sH,pinned:lH,sorted:cH,resizer:uH,resizerBar:dH,reorderHandle:fH,dragging:hH,rowSelectionInfo:pH,tr:mH,td:gH,left:vH,center:bH,right:yH,firstRight:xH,grouped:wH,expanded:_H,selectedCell:CH,sm:$H,lg:SH,clickable:EH,cellSelectedRow:TH,cellSelectionDisabled:kH,ownClick:OH,expanderButton:MH,emptyTableAlert:AH,removeFiltersButtonWrapper:RH,removeFiltersButton:jH,bottomBar:NH,leftItems:DH,pagination:IH,pageInfoText:PH,rightItems:LH,sizingToggle:FH,sizingMenu:zH,sizingMenuItem:BH},WH="_column-menu_1r3rf_1",UH="_column-menu-item_1r3rf_5",Ju={columnMenu:WH,columnMenuItem:UH},HH=({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}=eH({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(),T=j.column.getIsGrouped();return me("th",Ve.th,{sorted:S,[Ve.sorted]:S},{grouped:T,[Ve.grouped]:T})},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})},y=()=>a(null),C=(o==null?void 0:o.id)===e.id,b=e.column.getIsPinned(),$=e.column.getIsGrouped(),E=(O=(k=e.column.columnDef)==null?void 0:k.meta)==null?void 0:O.alwaysPinned;return w.jsxs("div",{className:me(n,v(e.getContext())),ref:d,style:p,onContextMenu:_,children:[w.jsx(Rn,{autoClose:!0,show:C,onToggle:j=>!j&&y(),children:mn.createPortal(w.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:y,children:[b!=="right"&&e.column.getCanPin()&&!E?w.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()&&!E?w.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()?w.jsx(Rn.Item,{className:me(Ju.columnMenuItem,{"text-danger":$}),onClick:e.column.getToggleGroupingHandler(),children:$?i.columnUngroup:i.columnGroup}):null]}),document.body)}),e.isPlaceholder?null:w.jsxs("div",{children:[w.jsxs("div",{className:x(e.getContext()),role:g(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[w.jsxs("div",{className:"d-flex flex-row align-items-center gap-1",children:[s?w.jsx("div",{...u,...c,className:me("reorder-handle",Ve.reorderHandle,{dragging:h,[Ve.dragging]:h}),children:w.jsx(r,{icon:"drag-handle"})}):null,g6(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?w.jsx(r,{icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?w.jsx(hW,{column:e.column,IconComponent:r,texts:i}):e.column.id==="select-col"?w.jsx("div",{className:me("row-selection-info",Ve.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?w.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:w.jsx("div",{className:me("resizer-bar",Ve.resizerBar)})}):null]})},VH="_icon-button_1nuxt_1",qH="_sm_1nuxt_34",YH="_lg_1nuxt_47",ed={"icon-button":"_icon-button_1nuxt_1",iconButton:VH,sm:qH,lg:YH},vi=({onClick:e,color:t="primary",disabled:n,children:r,size:i,className:o,...a})=>w.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}),GH=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})=>w.jsx(r1,{disabled:n,size:i,variant:t,onClick:e,...o,children:r});function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sv(e,t)}function KH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sv(e,t)}function ZH(e){var t=cu(e);return t&&t.defaultView||window}function XH(e,t){return ZH(e).getComputedStyle(e,t)}var QH=/([A-Z])/g;function JH(e){return e.replace(QH,"-$1").toLowerCase()}var eV=/^ms-/;function td(e){return JH(e).replace(eV,"-ms-")}var tV=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function nV(e){return!!(e&&tV.test(e))}function ki(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(td(t))||XH(e).getPropertyValue(td(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(td(i)):nV(i)?r+=i+"("+o+") ":n+=td(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const z2={disabled:!1};var rV=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 F6=m.createContext(null);var iV=function(e){return e.scrollTop},Fl="unmounted",eo="exited",Ci="entering",io="entered",df="exiting",Bi=function(e){KH(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&&iV(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||z2.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||z2.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=DS(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(F6.Provider,{value:null},typeof o=="function"?o(r,a):m.cloneElement(m.Children.only(o),a))},t}(m.Component);Bi.contextType=F6;Bi.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=rV;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(){}Bi.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};Bi.UNMOUNTED=Fl;Bi.EXITED=eo;Bi.ENTERING=Ci;Bi.ENTERED=io;Bi.EXITING=df;function oV(e){return e.code==="Escape"||e.keyCode===27}function aV(){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}=aV();return t>=19?e.props.ref:e.ref}function sV(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 lV(e){var t=ki(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function cV(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||sV(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=lV(e)||0);var i=cV(e,n,r),o=oo(e,"transitionend",t);return function(){i(),o()}}function B2(e,t){const n=ki(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function B6(e,t){const n=B2(e,"transitionDuration"),r=B2(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 W6(e){e.offsetHeight}function uV(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(uV($))},p=$=>E=>{$&&d.current&&$(d.current,E)},g=m.useCallback(p(e),[e]),v=m.useCallback(p(t),[t]),x=m.useCallback(p(n),[n]),_=m.useCallback(p(r),[r]),y=m.useCallback(p(i),[i]),C=m.useCallback(p(o),[o]),b=m.useCallback(p(a),[a]);return w.jsx(Bi,{ref:u,...c,onEnter:g,onEntered:x,onEntering:v,onExit:_,onExited:C,onExiting:y,addEndListener:b,nodeRef:d,children:typeof s=="function"?($,E)=>s($,{...E,ref:h}):m.cloneElement(s,{ref:h})})});_1.displayName="TransitionWrapper";const dV={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function fV(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=dV[e];return r+parseInt(ki(t,i[0]),10)+parseInt(ki(t,i[1]),10)}const hV={[eo]:"collapse",[df]:"collapsing",[Ci]:"collapsing",[io]:"collapse show"},U6=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=fV,...p},g)=>{const v=typeof s=="function"?s():s,x=m.useMemo(()=>_l($=>{$.style[v]="0"},e),[v,e]),_=m.useMemo(()=>_l($=>{const E=`scroll${v[0].toUpperCase()}${v.slice(1)}`;$.style[v]=`${$[E]}px`},t),[v,t]),y=m.useMemo(()=>_l($=>{$.style[v]=null},n),[v,n]),C=m.useMemo(()=>_l($=>{$.style[v]=`${h(v,$)}px`,W6($)},r),[r,h,v]),b=m.useMemo(()=>_l($=>{$.style[v]=null},i),[v,i]);return w.jsx(_1,{ref:g,addEndListener:B6,...p,"aria-expanded":p.role?l:null,onEnter:x,onEntering:_,onEntered:y,onExit:C,onExiting:b,childRef:vu(a),in:l,timeout:c,mountOnEnter:u,unmountOnExit:d,appear:f,children:($,E)=>m.cloneElement(a,{...E,className:me(o,a.props.className,hV[$],v==="width"&&"collapse-horizontal")})})});U6.displayName="Collapse";function H6(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=Tt(t,"accordion-collapse"),w.jsx(U6,{ref:a,in:H6(s,i),...o,className:me(n,t),children:w.jsx(e,{children:ie.Children.only(r)})})});C1.displayName="AccordionCollapse";const Sh=ie.createContext({eventKey:""});Sh.displayName="AccordionItemContext";const V6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,...c},u)=>{t=Tt(t,"accordion-body");const{eventKey:d}=m.useContext(Sh);return w.jsx(C1,{eventKey:d,onEnter:r,onEntering:i,onEntered:o,onExit:a,onExiting:s,onExited:l,children:w.jsx(e,{ref:u,...c,className:me(n,t)})})});V6.displayName="AccordionBody";function pV(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=Tt(t,"accordion-button");const{eventKey:a}=m.useContext(Sh),s=pV(a,r),{activeEventKey:l}=m.useContext(bu);return e==="button"&&(i.type="button"),w.jsx(e,{ref:o,onClick:s,...i,"aria-expanded":Array.isArray(l)?l.includes(a):a===l,className:me(n,t,!H6(l,a)&&"collapsed")})});$1.displayName="AccordionButton";const q6=ie.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:r,children:i,onClick:o,...a},s)=>(n=Tt(n,"accordion-header"),w.jsx(e,{ref:s,...a,className:me(r,n),children:w.jsx($1,{onClick:o,"aria-controls":t,children:i})})));q6.displayName="AccordionHeader";const Y6=ie.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=Tt(t,"accordion-item");const a=m.useMemo(()=>({eventKey:r}),[r]);return w.jsx(Sh.Provider,{value:a,children:w.jsx(e,{ref:o,...i,className:me(n,t)})})});Y6.displayName="AccordionItem";const G6=ie.forwardRef((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:a,flush:s,alwaysOpen:l,...c}=IS(e,{activeKey:"onSelect"}),u=Tt(i,"accordion"),d=m.useMemo(()=>({activeEventKey:r,onSelect:a,alwaysOpen:l}),[r,a,l]);return w.jsx(bu.Provider,{value:d,children:w.jsx(n,{ref:t,...c,className:me(o,u,s&&`${u}-flush`)})})});G6.displayName="Accordion";const Po=Object.assign(G6,{Button:$1,Collapse:C1,Item:Y6,Header:q6,Body:V6}),mV=e=>ie.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:me(t.className,e)})),gV=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",vV=typeof document<"u",W2=vV||gV?m.useLayoutEffect:m.useEffect,bV={[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)=>{W6(l),r==null||r(l,c)},[r]);return w.jsx(_1,{ref:o,addEndListener:B6,...a,onEnter:s,childRef:vu(t),children:(l,c)=>ie.cloneElement(t,{...c,className:me("fade",e,t.props.className,bV[l],n[l])})})});S1.displayName="Fade";const yV={"aria-label":Ye.string,onClick:Ye.func,variant:Ye.oneOf(["white"])},E1=ie.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>w.jsx("button",{ref:i,type:"button",className:me("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));E1.displayName="CloseButton";E1.propTypes=yV;function xV(e){const t=m.useRef(e);return t.current=e,t}function wV(e){const t=xV(e);m.useEffect(()=>()=>t.current(),[])}const U2=e=>!e||typeof e=="function"?e:t=>{e.current=t};function _V(e,t){const n=U2(e),r=U2(t);return i=>{n&&n(i),r&&r(i)}}function T1(e,t){return m.useMemo(()=>_V(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 CV(){return m.useState(null)}function jm(e){e===void 0&&(e=cu());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function $V(e){const t=m.useRef(e);return t.current=e,t}function SV(e){const t=$V(e);m.useEffect(()=>()=>t.current(),[])}function EV(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 EV(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 Nm=(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 TV(e,t){const n=yh(),[r,i]=m.useState(()=>Nm(e,n==null?void 0:n.document));if(!r){const o=Nm(e);o&&i(o)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const o=Nm(e);o!==r&&i(o)},[e,r]),r}function kV({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=T1(o,vu(e)),c=m.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const OV=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];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}function AV(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=MV(e,OV);const u=m.useRef(null),d=T1(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]),y=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:y},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):m.cloneElement(l,{ref:d})})}const RV=["component"];function jV(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 NV=ie.forwardRef((e,t)=>{let{component:n}=e,r=jV(e,RV);const i=AV(r);return w.jsx(n,Object.assign({ref:t},i))});function DV({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 IV({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=m.useState(!t);t&&o&&a(!1);const s=DV({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=T1(s,vu(e));return o&&!t?null:m.cloneElement(e,{ref:l})}function q2(e,t,n){return e?w.jsx(NV,Object.assign({},n,{component:e})):t?w.jsx(IV,Object.assign({},n,{transition:t})):w.jsx(kV,Object.assign({},n))}const PV=["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 LV(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 Dm;function FV(e){return Dm||(Dm=new k1({ownerDocument:e==null?void 0:e.document})),Dm}function zV(e){const t=yh(),n=e||FV(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 K6=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:y,renderBackdrop:C=K=>w.jsx("div",Object.assign({},K)),manager:b,container:$,onShow:E,onHide:k=()=>{},onExit:O,onExited:j,onExiting:S,onEnter:T,onEntering:A,onEntered:D}=e,R=LV(e,PV);const M=yh(),I=TV($),z=zV(b),W=PS(),P=LS(n),[B,q]=m.useState(!n),H=m.useRef(null);m.useImperativeHandle(t,()=>z,[z]),Hs&&!P&&n&&(H.current=jm(M==null?void 0:M.document)),n&&B&&q(!1);const Y=Wn(()=>{if(z.add(),F.current=oo(document,"keydown",U),L.current=oo(document,"focus",()=>setTimeout(J),!0),E&&E(),g){var K,se;const ne=jm((K=(se=z.dialog)==null?void 0:se.ownerDocument)!=null?K:M==null?void 0:M.document);z.dialog&&ne&&!rf(z.dialog,ne)&&(H.current=ne,z.dialog.focus())}}),X=Wn(()=>{if(z.remove(),F.current==null||F.current(),L.current==null||L.current(),x){var K;(K=H.current)==null||K.focus==null||K.focus(_),H.current=null}});m.useEffect(()=>{!n||!I||Y()},[n,I,Y]),m.useEffect(()=>{B&&X()},[B,X]),SV(()=>{X()});const J=Wn(()=>{if(!v||!W()||!z.isTopModal())return;const K=jm(M==null?void 0:M.document);z.dialog&&K&&!rf(z.dialog,K)&&z.dialog.focus()}),ee=Wn(K=>{K.target===K.currentTarget&&(c==null||c(K),s===!0&&k())}),U=Wn(K=>{l&&oV(K)&&z.isTopModal()&&(u==null||u(K),K.defaultPrevented||k())}),L=m.useRef(),F=m.useRef(),V=(...K)=>{q(!0),j==null||j(...K)};if(!I)return null;const N=Object.assign({role:r,ref:z.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},R,{style:o,className:i,tabIndex:-1});let Q=y?y(N):w.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:V,onEnter:T,onEntering:A,onEntered:D,children:Q});let G=null;return s&&(G=C({ref:z.setBackdropRef,onClick:ee}),G=q2(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G})),w.jsx(w.Fragment,{children:mn.createPortal(w.jsxs(w.Fragment,{children:[G,Q]}),I)})});K6.displayName="Modal";const BV=Object.assign(K6,{Manager:k1});function WV(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function UV(e,t){e.classList?e.classList.add(t):WV(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 HV(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 VV 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(UV(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();HV(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 Im;function qV(e){return Im||(Im=new VV(e)),Im}const Z6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Tt(t,"modal-body"),w.jsx(n,{ref:i,className:me(e,t),...r})));Z6.displayName="ModalBody";const X6=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=Tt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return w.jsx("div",{...l,ref:c,className:me(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:w.jsx("div",{className:me(`${e}-content`,n),children:a})})});O1.displayName="ModalDialog";const Q6=ie.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=Tt(t,"modal-footer"),w.jsx(n,{ref:i,className:me(e,t),...r})));Q6.displayName="ModalFooter";const J6=ie.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=m.useContext(X6),l=nf(()=>{s==null||s.onHide(),r==null||r()});return w.jsxs("div",{ref:a,...o,children:[i,n&&w.jsx(E1,{"aria-label":e,variant:t,onClick:l})]})});J6.displayName="AbstractModalHeader";const eE=ie.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=Tt(e,"modal-header"),w.jsx(J6,{ref:o,...i,className:me(t,e),closeLabel:n,closeButton:r})));eE.displayName="ModalHeader";const YV=mV("h4"),tE=ie.forwardRef(({className:e,bsPrefix:t,as:n=YV,...r},i)=>(t=Tt(t,"modal-title"),w.jsx(n,{ref:i,className:me(e,t),...r})));tE.displayName="ModalTitle";function GV(e){return w.jsx(S1,{...e,timeout:null})}function KV(e){return w.jsx(S1,{...e,timeout:null})}const nE=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:y=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:$,onEntered:E,onExit:k,onExiting:O,onEnter:j,onEntering:S,onExited:T,backdropClassName:A,manager:D,...R},M)=>{const[I,z]=m.useState({}),[W,P]=m.useState(!1),B=m.useRef(!1),q=m.useRef(!1),H=m.useRef(null),[Y,X]=CV(),J=uu(M,X),ee=nf(x),U=_S();e=Tt(e,"modal");const L=m.useMemo(()=>({onHide:ee}),[ee]);function F(){return D||qV({isRTL:U})}function V(le){if(!Hs)return;const be=F().getScrollbarWidth()>0,ze=le.scrollHeight>cu(le).documentElement.clientHeight;z({paddingRight:be&&!ze?H2():void 0,paddingLeft:!be&&ze?H2():void 0})}const N=nf(()=>{Y&&V(Y.dialog)});wV(()=>{Qg(window,"resize",N),H.current==null||H.current()});const Q=()=>{B.current=!0},G=le=>{B.current&&Y&&le.target===Y.dialog&&(q.current=!0),B.current=!1},K=()=>{P(!0),H.current=z6(Y.dialog,()=>{P(!1)})},se=le=>{le.target===le.currentTarget&&K()},ne=le=>{if(h==="static"){se(le);return}if(q.current||le.target!==le.currentTarget){q.current=!1;return}x==null||x()},re=le=>{p?g==null||g(le):(le.preventDefault(),h==="static"&&K())},oe=(le,be)=>{le&&V(le),j==null||j(le,be)},ue=le=>{H.current==null||H.current(),k==null||k(le)},ye=(le,be)=>{S==null||S(le,be),e1(window,"resize",N)},xe=le=>{le&&(le.style.display=""),T==null||T(le),Qg(window,"resize",N)},we=m.useCallback(le=>w.jsx("div",{...le,className:me(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Me={...n,...I};Me.display="block";const de=le=>w.jsx("div",{role:"dialog",...le,style:Me,className:me(t,e,W&&`${e}-static`,!f&&"show"),onClick:h?ne:void 0,onMouseUp:G,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:w.jsx(a,{...R,onMouseDown:Q,className:r,contentClassName:i,children:o})});return w.jsx(X6.Provider,{value:L,children:w.jsx(BV,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:y,enforceFocus:C,restoreFocus:b,restoreFocusOptions:$,onEscapeKeyDown:re,onShow:v,onHide:x,onEnter:oe,onEntering:ye,onEntered:E,onExit:ue,onExiting:O,onExited:xe,manager:F(),transition:f?GV:void 0,backdropTransition:f?KV:void 0,renderBackdrop:we,renderDialog:de})})});nE.displayName="Modal";const Cl=Object.assign(nE,{Body:Z6,Header:eE,Title:tE,Footer:Q6,Dialog:O1,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),ZV="_modal_1sw52_1",XV="_settings-item_1sw52_1",QV="_label_1sw52_8",JV="_content_1sw52_11",eq="_column-item_1sw52_14",tq="_is-hidden_1sw52_20",Ha={modal:ZV,settingsItem:XV,label:QV,content:JV,columnItem:eq,isHidden:tq},nq=({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 w.jsxs(Cl,{className:me("settings-modal",Ha.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[w.jsx(Cl.Header,{closeButton:!0,children:w.jsx(Cl.Title,{children:n==null?void 0:n.settingsModal.title})}),w.jsx(Cl.Body,{children:w.jsxs(Po,{children:[c?w.jsxs(Po.Item,{eventKey:"general-settings",children:[w.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.generalSettings}),w.jsx(Po.Body,{className:"d-flex flex-column gap-1",children:r.enabled?w.jsxs("div",{className:Ha.settingsItem,children:[w.jsx("div",{className:me("text-nowrap",Ha.label),children:n==null?void 0:n.settingsModal.pageSize}),w.jsxs("div",{className:me("text-nowrap",Ha.content),children:[w.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))}}),w.jsxs("datalist",{id:"pageSizes",children:[w.jsx("option",{value:"10"}),w.jsx("option",{value:"20"}),w.jsx("option",{value:"30"}),w.jsx("option",{value:"50"}),w.jsx("option",{value:"100"})]})]})]}):null})]}):null,w.jsxs(Po.Item,{eventKey:"column-settings",children:[w.jsx(Po.Header,{children:n==null?void 0:n.settingsModal.columnSettings}),w.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=>w.jsxs("div",{className:me("column-item rounded border",Ha.columnItem,{[Ha.isHidden]:!u.getIsVisible()}),children:[GH(u),w.jsx(vi,{color:"secondary",onClick:()=>u.toggleVisibility(),children:w.jsx(o,{icon:u.getIsVisible()?"visibility":"visibility-off"})})]},u.id))})]})]})}),w.jsxs(Cl.Footer,{className:"d-flex justify-content-between align-items-center",children:[w.jsx(F2,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),w.jsx(F2,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},rq=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],G2=new Map(rq),iq=(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 y=[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(y[1]/r);i(C)}return y});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}},oq=e=>e.type==="number"?"sum":"uniqueCount",aq=(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):g6(e,t)},sq=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(oq(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},lq=e=>{let{transform:t}=e;return{...t,y:0}},cq=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:o,onCellInteraction:a,...s})=>t&&n?w.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}):w.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}),uq=({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 _,y,C,b,$;if(!((_=h.meta)!=null&&_.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((y=h.meta)!=null&&y.onCellClick)return["onClickOwn",()=>{var E,k;return(k=(E=h.meta)==null?void 0:E.onCellClick)==null?void 0:k.call(E,e.original)}];if((C=h.meta)!=null&&C.cellNavigation){const E=($=(b=h.meta)==null?void 0:b.cellNavigation)==null?void 0:$.call(b,e.original);if(E)return["navigateOwn",E]}if(c)return["onClick",()=>c==null?void 0:c(e.original)];if(u){const E=u==null?void 0:u(e.original);if(E)return["navigate",E]}}},[h,e,c,u,t]);return w.jsxs(cq,{className:me((_=>{var E,k,O,j,S,T;const y=((E=h==null?void 0:h.meta)==null?void 0:E.alignment)??"left",C=_.column.getIsSorted(),b=_.cell.getIsGrouped(),$=_.row.getIsExpanded();return me("td",Ve.td,{[Ve.left]:y==="left",[Ve.center]:y==="center",[Ve.right]:y==="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,(T=(S=h.meta)==null?void 0:S.className)==null?void 0:T.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()?w.jsx(vi,{className:me("expander-button",Ve.expanderButton),size:"sm",onClick:e.getToggleExpandedHandler(),children:w.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?sq(t.column.columnDef,t.getContext(),a):t.getIsPlaceholder()?null:aq(t.column.columnDef.cell,t.getContext(),s)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},dq=m.forwardRef(uq),fq=({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,X,J,ee,U,L,F,V,N;const v={boolean:Q=>PF(Q,n),date:LF,datetime:FF,number:zF,...i},[x,_]=m.useState(!1),y=!!e.options.getPaginationRowModel,C=RW(Om(O6,{}),Om(M6,{}),Om(y1,{})),b=e.getState().columnOrder,$=Q=>{const{active:G,over:K}=Q;G&&K&&G.id!==K.id&&e.setColumnOrder(se=>{const ne=se.indexOf(G.id),re=se.indexOf(K.id);return ne===-1||re===-1?se:w1(se,ne,re)})},[E,k]=m.useState(null),O=Q=>{k(Q)},j=Q=>{if(!Q.getCanPin())return"";const G=Q.getIsPinned(),K=G==="right"&&Q.getIsFirstColumn("right"),se=G==="left"&&Q.getIsLastColumn("left");return me({pinned:G,[Ve.pinned]:G,"first-right":K,[Ve.firstRight]:K,"last-left":se,[Ve.lastLeft]:se})},S=Q=>{if(!Q.getCanPin())return{};const G=Q.getIsPinned();return{left:G==="left"?`${Q.getStart("left")}px`:void 0,right:G==="right"?`${Q.getAfter("right")}px`:void 0}},T=e.getState().sorting;m.useEffect(()=>{var Q,G;if(T.length>0){const K=T[0];if((Q=document.activeElement)!=null&&Q.classList.contains("filter"))return;(G=document.getElementById(`filter-${K.id}`))==null||G.focus()}},[T]);const A=e.getPrePaginationRowModel().rows,D=new Map(e.getVisibleLeafColumns().map((Q,G)=>[G,Q.id])),R=m.useRef(null),{selectedCoords:M,changeSelectedCoords:I,setSelectedCellByFNDI:z}=iq(h,D,A,y?((Y=e.getState().pagination)==null?void 0:Y.pageSize)??0:void 0,e.setPageIndex,R);m.useImperativeHandle(g,()=>({setSelectedCell:z}));const W=Q=>{var G;return h!=null&&h.onlyRowSelection&&((G=A[M[1]])==null?void 0:G.index)===Q.index?me(Ve.cellSelectedRow,"cell-selected-row",{[Ve.cellSelectionDisabled]:h.disabled}):""},P=(Q,G)=>{var K;return(h==null?void 0:h.onCellSelect)===void 0||M[0]!==Q||((K=A[M[1]])==null?void 0:K.index)!==G||h.onlyRowSelection?"":h.disabled?"bg-primary-subtle":me("selected-cell",Ve.selectedCell)},B=t.fullScreen.canFullScreen?((X=t.fullScreen)==null?void 0:X.isFullScreen)??!1:!1,q=(J=t.sizing)!=null&&J.canSize?((ee=t.sizing)==null?void 0:ee.size)??"md":"md",H=e.getState().columnFilters;return w.jsx(NU,{collisionDetection:PW,modifiers:[lq],sensors:C,onDragEnd:$,children:w.jsxs("div",{className:me("tanstack-bnf-table-container",Ve.tableScrollContainer,{"full-screen":B,[Ve.fullScreen]:B}),children:[H&&H.length>0?w.jsx("div",{className:me("remove-filters-button-wrapper",Ve.removeFiltersButtonWrapper),children:w.jsxs("button",{className:me(Ve.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[w.jsx("div",{className:"d-flex align-items-center justify-content-center",children:w.jsx(n,{icon:"remove-filters"})}),(r==null?void 0:r.removeFilters)??"Zrušit filtry"]})}):null,w.jsxs("div",{className:me("tanstack-bnf-table",Ve.table,{sm:q==="sm",lg:q==="lg",[Ve.sm]:q==="sm",[Ve.lg]:q==="lg"},l),"data-testid":a,children:[w.jsx("div",{className:me("thead",Ve.thead),children:e.getHeaderGroups().map(Q=>w.jsx("div",{className:me("tr",Ve.tr),children:w.jsx(YU,{items:b,strategy:VU,children:Q.headers.map(G=>{var K,se;return w.jsx(HH,{className:j(G.column),columnMenuPos:E,dragEnabled:t.enableReordering&&((se=(K=G.column.columnDef)==null?void 0:K.meta)==null?void 0:se.enableReordering)!==!1,header:G,IconComponent:n,style:S(G.column),table:e,texts:r,onColumnMenu:O},G.id)})})},Q.id))}),w.jsxs("div",{className:me("tbody",Ve.tbody),children:[(((L=(U=e.options)==null?void 0:U.data)==null?void 0:L.length)??0)===0?w.jsx("div",{className:me("alert alert-warning empty-table-alert",Ve.emptyTableAlert),children:r.emptyTable}):null,e.getRowModel().rows.map((Q,G)=>{var K;return w.jsx("div",{className:me("tr",Ve.tr,W(Q),p?(K=p(Q.original))==null?void 0:K.className:null),role:"data-row",...p?p(Q.original):{},children:Q.getVisibleCells().map((se,ne)=>{var re;return w.jsx(dq,{cell:se,className:me(j(se.column),P(ne,Q.index)),formatters:v,IconComponent:n,LinkComponent:s,ref:(h==null?void 0:h.onCellSelect)!==void 0&&M[0]===ne&&((re=A[M[1]])==null?void 0:re.index)===Q.index?R:null,row:Q,rowClassName:me(...(c==null?void 0:c.filter(oe=>oe.selector(Q.original)).map(oe=>oe.className))??[]),rowNavigation:d,style:S(se.column),texts:r,onCellInteraction:(h==null?void 0:h.onCellSelect)===void 0?f:oe=>{var ue,ye;I([ne,((ue=e.getState().pagination)==null?void 0:ue.pageIndex)*((ye=e.getState().pagination)==null?void 0:ye.pageSize)+G]),f==null||f(oe)},onRowClick:u},se.id)})},Q.id)})]}),w.jsx(nq,{columns:{allColumns:e.getAllColumns()},handleClose:()=>_(!1),IconComponent:n,pageSize:{enabled:y,value:((F=e.getState().pagination)==null?void 0:F.pageSize)??0,onChange:Q=>e.setPageSize(Q)},resetToDefault:t.resetToInitialValues,show:x,texts:r})]}),o!=null&&o.hidden?null:w.jsxs("div",{className:me("bottom-bar",Ve.bottomBar),children:[w.jsxs("div",{className:me("left-items",Ve.leftItems),children:[y?w.jsxs("div",{className:me("pagination",Ve.pagination),children:[w.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:w.jsx(n,{icon:"page-first"})}),w.jsx(vi,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:w.jsx(n,{icon:"page-previous"})}),w.jsx("div",{className:me("page-info-text",Ve.pageInfoText),children:r.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),w.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:w.jsx(n,{icon:"page-next"})}),w.jsx(vi,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:w.jsx(n,{icon:"page-last"})})]}):null,w.jsx("div",{className:me("row-count-text",Ve.rowCountText),children:r.rowCountText(e.getRowCount())})]}),w.jsxs("div",{className:me("right-items",Ve.rightItems),children:[(V=t.fullScreen)!=null&&V.canFullScreen?w.jsx(vi,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:w.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(N=t.sizing)!=null&&N.canSize?w.jsxs(Rn,{drop:"up",children:[w.jsx(Rn.Toggle,{bsPrefix:"sizing-toggle",className:me("sizing-toggle",Ve.sizingToggle),id:"table-sizing-button",size:"sm",children:w.jsx(n,{icon:"density"})}),w.jsxs(Rn.Menu,{className:me("shadow-lg sizing-menu",Ve.sizingMenu),children:[w.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[q==="sm"?w.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.sm]}),w.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[q==="md"?w.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.md]}),w.jsxs(Rn.Item,{className:me("sizing-menu-item",Ve.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[q==="lg"?w.jsx(n,{icon:"boolean-yes"}):null," ",r.sizing.lg]})]})]}):null,t.excelExport.canExport?w.jsx(vi,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(r),children:w.jsx(n,{icon:"excel-export"})}):null,w.jsx(vi,{"data-testId":"table-settings-button",onClick:()=>_(!0),children:w.jsx(n,{icon:"settings"})})]})]})]})})};m.forwardRef(fq);const hq=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),rE=()=>{const e=pW();return{accessor:(t,n)=>{const r=i=>hq(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function pq(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 mq(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 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,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 vq(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 bq="_excel_18ggp_1",yq="_word_18ggp_5",xq="_pdf_18ggp_9",wq="_image_18ggp_13",rd={excel:bq,word:yq,pdf:xq,image:wq},iE=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=ce(n,rd.image),t[4]=n,t[5]=o):o=t[5];let a;t[6]!==i?(a=w.jsx(mq,{...i}),t[6]=i,t[7]=a):a=t[7];let s;return t[8]!==o||t[9]!==a?(s=w.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=ce(n,rd.excel),t[11]=n,t[12]=o):o=t[12];let a;return t[13]!==i||t[14]!==o?(a=w.jsx(gq,{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=ce(n,rd.word),t[16]=n,t[17]=o):o=t[17];let a;return t[18]!==i||t[19]!==o?(a=w.jsx(vq,{className:o,...i}),t[18]=i,t[19]=o,t[20]=a):a=t[20],a}case"PDF":{let o;t[21]!==n?(o=ce(n,rd.pdf),t[21]=n,t[22]=o):o=t[22];let a;return t[23]!==i||t[24]!==o?(a=w.jsx(QI,{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=w.jsx(pq,{}),t[26]=o):o=t[26],o}}},_q=()=>{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,T,A)=>S?r$(T??"")&&localStorage.getItem("file-download-try-opening")!=="false"?w.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=rE(),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 T=S.row.getValue("fileExtension"),A=S.row.getValue("id");return u(w.jsx(iE,{fileExtension:(T==null?void 0:T.toString())??"",className:Gg.extensionIcon,size:18}),(T==null?void 0:T.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=T=>{const A=T.row.getValue("name"),D=T.row.getValue("fileExtension"),R=T.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 y;e[18]!==t||e[19]!==a?(y=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:S=>{const T=S.row.getValue("id");return w.jsx(dh,{className:Gg.downloadButton,onClick:()=>a(Number((T==null?void 0:T.toString())??""),!1),children:w.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=a,e[20]=y):y=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:Cq}}),e[25]=r.size,e[26]=$):$=e[26];let E;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let S;e[31]!==r.no||e[32]!==r.yes?(S=T=>T.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=S):S=e[33],E=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]=E}else E=e[30];let k;e[34]!==_||e[35]!==y||e[36]!==C||e[37]!==b||e[38]!==$||e[39]!==E||e[40]!==p||e[41]!==g||e[42]!==v||e[43]!==x?(k=[h,...p,g,v,x,_,y,C,b,$,E],e[34]=_,e[35]=y,e[36]=C,e[37]=b,e[38]=$,e[39]=E,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 Cq(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?ws(t*1024*1024):""}const $q=e=>{var T;const t=Re.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:o}=m.useContext(xn),[a,s]=o,{columns:l}=_q();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=((T=a.foldersMap.get(a.activeFolder))==null?void 0:T.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(Eq)),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:Sq,selectedRows:g,setSelectedRows:v},t[9]=p,t[10]=g,t[11]=v,t[12]=x):x=t[12];const _=x;let y;e:{if(a.activeFolder==="root"){y=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];y=A}const C=y,{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 E=$;let k;t[22]===Symbol.for("react.memo_cache_sentinel")?(k=ce(Gg.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]!==E||t[29]!==_||t[30]!==a.activeFolder||t[31]!==r?(S=w.jsx("div",{className:k,children:w.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:E,initState:O,tableId:r,bottomBar:j},a.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=E,t[29]=_,t[30]=a.activeFolder,t[31]=r,t[32]=S):S=t[32],S};function Sq(e){var t;return((t=e.id)==null?void 0:t.toString())??""}function Eq(e){return[e.toString(),!0]}function Tq(e){return Number(e)}const kq="_wrapper_1q562_1",Oq="_divButtons_1q562_10",Pm={wrapper:kq,divButtons:Oq},Mq="_wrapper_1bpdd_1",Aq="_fileInput_1bpdd_5",K2={wrapper:Mq,fileInput:Aq},Rq=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=E=>{var k;(((k=E.target.files)==null?void 0:k.length)??0)>0&&l(E.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?(_=ce("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let y;t[4]!==i||t[5]!==g||t[6]!==_?(y=w.jsx("label",{htmlFor:g,className:_,children:i}),t[4]=i,t[5]=g,t[6]=_,t[7]=y):y=t[7];let C;t[8]!==g||t[9]!==v?(C=w.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?w.jsx(G0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let $;return t[13]!==y||t[14]!==C||t[15]!==b?($=w.jsxs("div",{className:K2.wrapper,children:[y,C,b]}),t[13]=y,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=w.jsx(dh,{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},jq=e=>{var P,B,q;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:_}=nS(),y=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 E;t[5]!==a.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(E=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]=E):E=t[9];const k=E,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 T;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let H;t[16]!==d.constantFiles?(H=Y=>{var X;return((X=d.constantFiles.find(J=>J.id===Y))==null?void 0:X.archive)===!1},t[16]=d.constantFiles,t[17]=H):H=t[17],T=d.markedFiles.every(H),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=T}else T=t[15];const A=T;let D;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let H;t[21]!==d.constantFiles?(H=Y=>{var X;return((X=d.constantFiles.find(J=>J.id===Y))==null?void 0:X.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=ce(n,Pm.wrapper,M,"d-flex justify-content-between"),t[23]=n,t[24]=M,t[25]=I):I=t[25];let z;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]!==y||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?(z=d.state!=="folder-choosing"?w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:Pm.divButtons,children:[w.jsx(Rq,{entityId:r,entityType:i,disabled:S,children:a.uploadFiles}),w.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:S,children:a.createFolder}),w.jsx(Ur,{disabled:d.activeFolder==="root"||((B=d.foldersMap.get(d.activeFolder))==null?void 0:B.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}),w.jsx(Ur,{disabled:d.activeFolder==="root"||((q=d.foldersMap.get(d.activeFolder))==null?void 0:q.isDefault),onClick:$,children:a.renameFolder})]}),!O&&!S?w.jsxs("div",{className:Pm.divButtons,children:[w.jsx(Ur,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:a.editFileProperties}),w.jsx(Ur,{onClick:async()=>{await l(a.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:y,children:a.delete}),R?w.jsx(Ur,{onClick:async()=>{await l(a.confirmDearchiveFile(d.markedFiles.length))&&await v(!0)},disabled:y,children:a.dearchivate}):w.jsx(Ur,{onClick:async()=>{await l(a.confirmArchiveFile(d.markedFiles.length))&&await v()},disabled:y||!A,children:a.archivate}),w.jsx(Ur,{onClick:k,disabled:y,children:a.rename}),w.jsx(Ur,{onClick:g,disabled:y,children:a.downloadZip})]}):null]}):d.state==="folder-choosing"?w.jsx(w.Fragment,{children:w.jsx(Ur,{onClick:()=>f({type:"return-from-folder-choosing"}),className:ce("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]=y,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]=z):z=t[47];let W;return t[48]!==z||t[49]!==I?(W=w.jsx("div",{className:I,children:z}),t[48]=z,t[49]=I,t[50]=W):W=t[50],W},Nq=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=aS(n.folderId,a.foldersMap),t[7]=n.folderId,t[8]=a.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=w.jsx(Bn,{variant:"body",className:"text-muted",children:f}),t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n.name?(p=w.jsx(Bn,{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=w.jsx(Bn,{variant:"body",children:g}),t[16]=g,t[17]=v):v=t[17];let x;t[18]!==p||t[19]!==v?(x=w.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?(_=w.jsxs(Kf,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},Dq="_typeSelect_m3myk_1",Iq={typeSelect:Dq},Pq=()=>{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(Lq),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=w.jsx(J$,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:Iq.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 y;e[21]!==i.search||e[22]!==o?(y=w.jsx(X$,{label:i.search,type:"text",value:o,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=o,e[23]=y):y=e[23];let C;e[24]!==x||e[25]!==y?(C=w.jsxs("div",{className:"d-flex gap-1 mb-1",children:[x,y]}),e[24]=x,e[25]=y,e[26]=C):C=e[26];let b;e[27]!==v?(b=v.map(Fq),e[27]=v,e[28]=b):b=e[28];let $;e[29]!==b?($=w.jsx(cC,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=$):$=e[30];let E;return e[31]!==$||e[32]!==C?(E=w.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,$]}),e[31]=$,e[32]=C,e[33]=E):E=e[33],E};function Lq(e){return{id:e[0],name:e[1]}}function Fq(e){return w.jsx(Nq,{file:e},e.id)}function zq(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,zq(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 Wq(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const Uq=([e,t],n,r)=>{const{texts:{documents:i}}=m.useContext(ln),{startLoading:o,stopLoading:a}=m.useContext(Qf),{addNotification:s}=ah(),l=sh(),c=m.useCallback(async y=>{o("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:$,rootIds:E}=Bq(b.folders),k=Wq(b.documents,$);t({type:"load-data",files:k,foldersMap:$,rootFolderIds:E,setActiveFolder:y})}finally{a("documentList")}},[l,t,r,n,o,a]);m.useEffect(()=>{c(!0)},[c]);const u=m.useCallback(async()=>{o("documents-types");try{const y=await l.get(`/documents/types/${n}`);if(y.status!==200)throw new Error(`Unexpected status code: ${y.status}`);t({type:"load-document-types",documentTypes:y.data})}finally{a("documents-types")}},[l,t,n,o,a]);m.useEffect(()=>{u()},[u]);const d=m.useCallback(async(y,C)=>{const b=C??e.markedFiles;o("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${y}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:y}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(y).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,l,t,s,i,a]),f=m.useCallback(async y=>{const C=y??e.markedFiles;o("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${Dg(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 y=>{var C;if(!(y==="root"||(C=e.foldersMap.get(y))!=null&&C.isDefault)){o("documentsFolderDelete");try{const b=await l.delete(`/documents/folder/${y}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:y}),s(i.folderDeleteSuccessful(e.foldersMap.get(y).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,l,t,s,i,a]),p=m.useCallback(async y=>{o("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:y});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 y=>{o("documents-archivate");try{const C=await l.put(`/documents/${y?"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:!y}}),s((y?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 y=e.markedFiles.length;s(i.downloadAsZip(y),"info"),o("documents-ZIP_download");try{const b=await l.get(`/documents/download-zip?${Dg(e.markedFiles,"documentIds")}`,{responseType:"blob"});Bd(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(y,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const b=await l.get(`/documents/${y}?isSmall=true`,{responseType:"blob"}),$=e.constantFiles.find(k=>k.id===y),E=`${($==null?void 0:$.name)??y.toString()}.${$!=null&&$.fileExtension?$==null?void 0:$.fileExtension.toLowerCase():"unknown"}`;Bd(b.data,E,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,l,e.constantFiles,a]),_=m.useCallback(async(y,C)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:y,...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:_}},Hq=(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.")}},Vq=()=>{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(Hq,n);let o;return e[1]!==r?(o=[r,i],e[1]=r,e[2]=o):o=e[2],o},qq=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]=Vq(),[x,_]=m.useState(null);let y;t[9]!==v||t[10]!==g?(y=[g,v],t[9]=v,t[10]=g,t[11]=y):y=t[11];const C=Uq(y,a,o);let b,$;t[12]!==C?({loadDocuments:$,...b}=C,t[12]=C,t[13]=b,t[14]=$):(b=t[13],$=t[14]);let E;t[15]!==v||t[16]!==g?(E=[g,v],t[15]=v,t[16]=g,t[17]=E):E=t[17];let k;t[18]!==b||t[19]!==o||t[20]!==a||t[21]!==$||t[22]!==E?(k={entityId:o,entityType:a,apiActions:b,loadDocuments:$,reducer:E},t[18]=b,t[19]=o,t[20]=a,t[21]=$,t[22]=E,t[23]=k):k=t[23];const O=k,{getDropProps:j}=Y0();if(d){let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=w.jsx(Pq,{}),t[24]=G):G=t[24];let K;return t[25]!==O?(K=w.jsx(xn.Provider,{value:O,children:G}),t[25]=O,t[26]=K):K=t[26],K}let S;t[27]!==r?(S=ce(Do.wrapper,r),t[27]=r,t[28]=S):S=t[28];const T=g.state==="folder-choosing"?"dim-others":void 0;let A;t[29]!==T?(A=ce(T,Do.explorerWindow),t[29]=T,t[30]=A):A=t[30];const D=i??a;let R;t[31]!==D?(R=w.jsx(vP,{customText:D}),t[31]=D,t[32]=R):R=t[32];let M;if(t[33]!==g.rootFolderIds||t[34]!==u){let G;t[36]!==u?(G=K=>w.jsx(sS,{dirId:K,writePermissions:u},K),t[36]=u,t[37]=G):G=t[37],M=g.rootFolderIds.map(G),t[33]=g.rootFolderIds,t[34]=u,t[35]=M}else M=t[35];let I;t[38]!==R||t[39]!==M?(I=w.jsxs("ul",{className:Do.folderList,children:[R,M]}),t[38]=R,t[39]=M,t[40]=I):I=t[40];let z;t[41]!==I||t[42]!==A?(z=w.jsx("div",{className:A,children:I}),t[41]=I,t[42]=A,t[43]=z):z=t[43];let W;t[44]===Symbol.for("react.memo_cache_sentinel")?(W=ce(Do.explorerWindow,Do.fileList),t[44]=W):W=t[44];let P;t[45]!==j||t[46]!==g||t[47]!==u?(P=u&&jP(g)?j(g.activeFolder,{onFilesDrop:G=>_(G),ignoreInner:!0}):{},t[45]=j,t[46]=g,t[47]=u,t[48]=P):P=t[48];let B;t[49]===Symbol.for("react.memo_cache_sentinel")?(B={style:{marginRight:0}},t[49]=B):B=t[49];let q;t[50]!==f?(q=w.jsx(f,{icon:"file-upload",iconProps:B}),t[50]=f,t[51]=q):q=t[51];let H;t[52]!==p.dropToUpload?(H=w.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=H):H=t[53];let Y;t[54]!==q||t[55]!==H?(Y=w.jsxs("div",{className:Do.dndText,children:[q,H]}),t[54]=q,t[55]=H,t[56]=Y):Y=t[56];const X=g.activeFolder==="root";let J;t[57]!==X?(J=X.toString(),t[57]=X,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=w.jsx($q,{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 U;t[64]!==P||t[65]!==Y||t[66]!==ee?(U=w.jsxs("div",{className:W,...P,children:[Y,ee]}),t[64]=P,t[65]=Y,t[66]=ee,t[67]=U):U=t[67];let L;t[68]!==o||t[69]!==a||t[70]!==u?(L=u?w.jsx(jq,{className:Do.controls,entityType:a,entityId:o}):null,t[68]=o,t[69]=a,t[70]=u,t[71]=L):L=t[71];let F;t[72]===Symbol.for("react.memo_cache_sentinel")?(F=w.jsx(TP,{}),t[72]=F):F=t[72];let V;t[73]!==g.activeFolder||t[74]!==x?(V=x!==null?w.jsx(G0,{files:x,handleClose:()=>_(null),targetFolderId:g.activeFolder==="root"?void 0:g.activeFolder}):null,t[73]=g.activeFolder,t[74]=x,t[75]=V):V=t[75];let N;t[76]!==O||t[77]!==z||t[78]!==U||t[79]!==L||t[80]!==V?(N=w.jsxs(xn.Provider,{value:O,children:[z,U,L,F,V]}),t[76]=O,t[77]=z,t[78]=U,t[79]=L,t[80]=V,t[81]=N):N=t[81];let Q;return t[82]!==s||t[83]!==N||t[84]!==S?(Q=w.jsx("div",{...s,className:S,onDragOver:Yq,onDragEnter:Gq,children:N}),t[82]=s,t[83]=N,t[84]=S,t[85]=Q):Q=t[85],Q});function Yq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function Gq(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const Kq="Left",Zq="Right",Xq="Up",Qq="Down",ts={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},lv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},X2="mousemove",Q2="mouseup",Jq="touchend",eY="touchmove",tY="touchstart";function nY(e,t,n,r){return e>t?n>0?Zq:Kq:r>0?Qq:Xq}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 rY(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),lv),{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],y=x-d.xy[1],C=Math.abs(_),b=Math.abs(y),$=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+b*b)/($||1),k=[_/($||1),y/($||1)],O=nY(C,b,_,y),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:y,dir:O,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:k};S.first&&f.onSwipeStart&&f.onSwipeStart(S),f.onSwiping&&f.onSwiping(S);let T=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${O}`])&&(T=!0),T&&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),lv),{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=[[tY,n,h],[eY,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[Jq,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 iY(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({},lv)),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(()=>rY(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=iY(n.current,r.current,i.current,s),a}const oY="_side-content-bar_16o0s_1",aY="_mobile_16o0s_12",sY="_expanded_16o0s_20",lY="_content-container_16o0s_23",cY="_resizer_16o0s_31",uY="_expander_16o0s_46",dY="_icon_16o0s_65",mi={sideContentBar:oY,mobile:aY,expanded:sY,contentContainer:lY,resizer:cY,expander:uY,icon:dY},oE=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?(_=ce("luminus-side-content-bar shadow",mi.sideContentBar,{[mi.mobile]:d},{[mi.expanded]:s}),t[5]=s,t[6]=d,t[7]=_):_=t[7];const y=`${n}px`;let C;t[8]!==y?(C={width:y},t[8]=y,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?w.jsx("div",{role:"button",className:ce(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:w.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?($=w.jsx("div",{className:mi.contentContainer,children:r}),t[18]=r,t[19]=$):$=t[19];let E;t[20]!==g||t[21]!==$||t[22]!==_||t[23]!==C||t[24]!==b?(E=w.jsxs("section",{className:_,style:C,...g,children:[b,$]}),t[20]=g,t[21]=$,t[22]=_,t[23]=C,t[24]=b,t[25]=E):E=t[25];let k;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?(k=d?w.jsx("div",{role:"button",onClick:()=>l(!s),className:ce(mi.expander,{[mi.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:w.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]!==E||t[32]!==k?(O=w.jsxs(w.Fragment,{children:[E,k]}),t[31]=E,t[32]=k,t[33]=O):O=t[33],O},fY=e=>{const t=Re.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?w.jsx(Bn,{variant:"h3",children:n}):n,t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=w.jsx("div",{className:"mb-3",children:r}),t[2]=r,t[3]=i):i=t[3],i},hY="_full-screen-container_1rm4r_1",aE={fullScreenContainer:hY},pY=ce("overflow-hidden luminus-full-screen-container",aE.fullScreenContainer),mY="container-fluid",gY=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(q$),{texts:x}=m.useContext(ln),{container:_}=x,[y,C]=m.useState(f),[b,$]=m.useState(!1);let E;e:switch(p){case"fullScreen":{E=pY;break e}case"main":{E=mY;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=E;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 T=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 z;t[10]!==l||t[11]!==I||t[12]!==k?(z=ce(k,I,l),t[10]=l,t[11]=I,t[12]=k,t[13]=z):z=t[13];let W;t[14]!==i||t[15]!==y||t[16]!==p?(W=p==="fullScreen"?{width:i?`calc(100% - ${y}px)`:"100%"}:void 0,t[14]=i,t[15]=y,t[16]=p,t[17]=W):W=t[17];const P=p==="fullScreen"?aE.fullScreenContainer:void 0;let B;t[18]!==i||t[19]!==y||t[20]!==p?(B=p==="main"?{paddingRight:i?`${y}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=y,t[20]=p,t[21]=B):B=t[21];let q;t[22]!==D||t[23]!==r||t[24]!==_||t[25]!==n?(q=D?w.jsx(I1,{variant:"warning",children:_.unavailableOnMobile}):w.jsxs(w.Fragment,{children:[n?w.jsx(fY,{title:n}):null,r]}),t[22]=D,t[23]=r,t[24]=_,t[25]=n,t[26]=q):q=t[26];let H;t[27]!==P||t[28]!==B||t[29]!==q?(H=w.jsx("div",{className:P,style:B,children:q}),t[27]=P,t[28]=B,t[29]=q,t[30]=H):H=t[30];let Y;t[31]!==T||t[32]!==z||t[33]!==W||t[34]!==H?(Y=w.jsx("div",{className:z,style:W,...T,children:H}),t[31]=T,t[32]=z,t[33]=W,t[34]=H,t[35]=Y):Y=t[35];let X;t[36]!==D||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==y?(X=i&&!D?w.jsx(oE,{width:y,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]=y,t[41]=X):X=t[41];let J;return t[42]!==Y||t[43]!==X?(J=w.jsxs(w.Fragment,{children:[Y,X]}),t[42]=Y,t[43]=X,t[44]=J):J=t[44],J};var A1={};A1.match=_Y;A1.parse=sE;var vY=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,bY=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,yY=/^(?:(min|max)-)?(.+)/,xY=/(em|rem|px|cm|mm|in|pt|pc)?$/,wY=/(dpi|dpcm|dppx)?$/;function _Y(e,t){return sE(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 sE(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(vY),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(bY),c=l[1].toLowerCase().match(yY);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(wY)[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(xY)[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 CY=A1.match,rw=typeof window<"u"?window.matchMedia:null;function $Y(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=CY(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 SY(e,t,n){return new $Y(e,t,n)}var EY=SY;const TY=sn(EY);var kY=/[A-Z]/g,OY=/^ms-/,Lm={};function MY(e){return"-"+e.toLowerCase()}function lE(e){if(Lm.hasOwnProperty(e))return Lm[e];var t=e.replace(kY,MY);return Lm[e]=OY.test(t)?"-"+t:t}function AY(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 zn=ve.oneOfType([ve.string,ve.number]),cE={all:ve.bool,grid:ve.bool,aural:ve.bool,braille:ve.bool,handheld:ve.bool,print:ve.bool,projection:ve.bool,screen:ve.bool,tty:ve.bool,tv:ve.bool,embossed:ve.bool},RY={orientation:ve.oneOf(["portrait","landscape"]),scan:ve.oneOf(["progressive","interlace"]),aspectRatio:ve.string,deviceAspectRatio:ve.string,height:zn,deviceHeight:zn,width:zn,deviceWidth:zn,color:ve.bool,colorIndex:ve.bool,monochrome:ve.bool,resolution:zn,type:Object.keys(cE)},{type:Kbe,...jY}=RY,NY={minAspectRatio:ve.string,maxAspectRatio:ve.string,minDeviceAspectRatio:ve.string,maxDeviceAspectRatio:ve.string,minHeight:zn,maxHeight:zn,minDeviceHeight:zn,maxDeviceHeight:zn,minWidth:zn,maxWidth:zn,minDeviceWidth:zn,maxDeviceWidth:zn,minColor:ve.number,maxColor:ve.number,minColorIndex:ve.number,maxColorIndex:ve.number,minMonochrome:ve.number,maxMonochrome:ve.number,minResolution:zn,maxResolution:zn,...jY},DY={...cE,...NY};var IY={all:DY};const PY=e=>`not ${e}`,LY=(e,t)=>{const n=lE(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?PY(n):`(${n}: ${t})`},FY=e=>e.join(" and "),zY=e=>{const t=[];return Object.keys(IY.all).forEach(n=>{const r=e[n];r!=null&&t.push(LY(n,r))}),FY(t)},BY=m.createContext(void 0),WY=e=>e.query||zY(e),iw=e=>e?Object.keys(e).reduce((n,r)=>(n[lE(r)]=e[r],n),{}):void 0,uE=()=>{const e=m.useRef(!1);return m.useEffect(()=>{e.current=!0},[]),e.current},UY=e=>{const t=m.useContext(BY),n=()=>iw(e)||iw(t),[r,i]=m.useState(n);return m.useEffect(()=>{const o=n();AY(r,o)||i(o)},[e,t]),r},HY=e=>{const t=()=>WY(e),[n,r]=m.useState(t);return m.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},VY=(e,t)=>{const n=()=>TY(e,t||{},!!t),[r,i]=m.useState(n),o=uE();return m.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},qY=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},Fm=(e,t,n)=>{const r=UY(t),i=HY(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=VY(i,r),a=qY(o);return uE(),m.useEffect(()=>{},[a]),m.useEffect(()=>()=>{o&&o.dispose()},[]),a},YY=["sm","md","lg","always"],dE="ResponsiveContextDropdownItem",GY=e=>e.type.displayName===dE,R1=e=>({});R1.displayName=dE;function KY(e){return e.type&&e.type===m.Fragment}const fE=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(KY(r)){n.push(...fE(r.props.children));return}n.push(r)}}),n},ZY=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return Ps.generatePath(e,r)+"?"+n},XY="_disabled_9mp5v_1",QY={disabled:XY},JY=()=>{const e=Re.c(5),{ProjectIconComponent:t}=m.useContext(ln),{checkUserHasPermissions:n}=U$();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:y,icon:C,pathParams:b,...$}=h.props,E=(_==null?void 0:_.permissions)!=null,k=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),O=(y??!1)||E&&!k,j=x??(_==null?void 0:ZY(_==null?void 0:_.route,b)),S=g??(_==null?void 0:_.name),T=C??(_!=null?w.jsx(t,{icon:"link"}):void 0);if(p==="always"||YY.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const A=ce($.className,{[QY.disabled]:O});j!=null?c.push(w.jsx(Yo,{...$,as:"link",to:j,disabled:O,icon:T,className:A,children:S},v)):c.push(w.jsx(Yo,{...$,icon:T,className:A,children:S},v))}else{const A=j!=null?{as:"link",href:j}:{};l.push(w.jsx(dh,{...$,...A,icon:T,className:ce(O?"disabled":void 0,$.className),children:S},v))}};return fE(a).forEach(h=>{h&&m.isValidElement(h)&&(GY(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},hE=e=>{const t=Re.c(18),{children:n}=e,{getProcessedChildren:r}=JY();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const o=Fm(i);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:769,maxWidth:1200},t[1]=a):a=t[1];const s=Fm(a);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=Fm(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=w.jsx(w.Fragment,{children:h}),t[11]=h,t[12]=g):g=t[12];let v;t[13]!==p?(v=p.length>0?w.jsx(q0,{toggle:w.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=w.jsxs("div",{className:"d-flex gap-1",children:[g,v]}),t[15]=g,t[16]=v,t[17]=x):x=t[17],x};hE.Item=R1;const eG=m.createContext(void 0);function tG(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,y="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)},E=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;E(A,M)}},S=function(){r&&r({})},T=function(){if(p||y){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,E(j,t),v?$(o.current):d.current;if(_)return E(j,t),$(o.current)}return l.current||E(j,t),d.current}};return T.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({})},T.isPending=function(){return!!l.current},T.flush=function(){return l.current?O(Date.now()):d.current},T},[v,_,t,C,x,g,p,y,r]);return b}function nG(e,t){return e===t}function j1(e,t,n){var r=n&&n.equalityFn||nG,i=m.useRef(e),o=m.useState({})[1],a=tG(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 rG="_feedback_esh1j_1",iG="_feedback-spacer_esh1j_8",ow={feedback:rG,feedbackSpacer:iG},Eh=e=>{const t=Re.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=ce("invalid-feedback luminus-invalid-feedback",ow.feedback),t[0]=r):r=t[0];let i;t[1]!==n?(i=w.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=ce("invalid-feedback-spacer",ow.feedbackSpacer),t[3]=o):o=t[3];let a;t[4]!==n?(a=w.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=w.jsxs(w.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=s):s=t[8],s},oG="_wrapper_1mvyk_1",aG="_open_1mvyk_9",sG="_dropdown_1mvyk_13",lG="_search-input-container_1mvyk_19",cG="_search-input_1mvyk_19",uG="_loading-container_1mvyk_25",dG="_items-container_1mvyk_32",fG="_header-row_1mvyk_38",hG="_name_1mvyk_49",pG="_item_1mvyk_32",mG="_column-item_1mvyk_65",gG="_action-buttons-container_1mvyk_89",vG="_reverse_1mvyk_97",bG="_action-button_1mvyk_89",yG="_actions-dropdown_1mvyk_110",Cn={wrapper:oG,open:aG,dropdown:sG,searchInputContainer:lG,searchInput:cG,loadingContainer:uG,itemsContainer:dG,headerRow:fG,name:hG,item:pG,columnItem:mG,actionButtonsContainer:gG,reverse:vG,actionButton:bG,actionsDropdown:yG},pE=({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:y,noRemoveButton:C=!1,customEllipsisOptions:b})=>{var Me;const{texts:{customSelect:$}}=m.useContext(ln),E=m.useRef(null),k=m.useRef(null),O=m.useRef(null),j=m.useRef(null),S=m.useRef(null),[T,A]=m.useState(""),[D]=j1(T,500),[,R]=m.useState(!1),{copyToClipboard:M}=V$(),I=(Me=v.current)==null?void 0:Me.getBoundingClientRect(),z=(I==null?void 0:I.x)??0,W=((I==null?void 0:I.x)??0)+((I==null?void 0:I.width)??0),P=(I==null?void 0:I.y)??0,B=((I==null?void 0:I.y)??0)+((I==null?void 0:I.height)??0),q=(I==null?void 0:I.width)??0,H=(I==null?void 0:I.height)??0,Y=5,{isMobile:X}=ou(),J=8,ee=m.useMemo(()=>z?z>window.innerWidth/2-J:!1,[z]),U=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,F]=m.useState(null);m.useEffect(()=>{e&&n.length>0?F(0):F(null)},[n,e]);const V=m.useMemo(()=>L!==null?n.at(L)??null:null,[L,n]),N=m.useCallback((de,le)=>{var ze,zt;const be=document.getElementById(`item-${de}`);if(be){const Le=be.clientHeight??0;le==="down"?(ze=j.current)==null||ze.scrollBy({left:0,top:Le,behavior:"smooth"}):(zt=j.current)==null||zt.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||F(be=>(be!==null&&N(be,de>0?"down":"up"),le))},[L,n,p,N]),G=m.useCallback(de=>{if(e)switch(de.key){case"Escape":de.stopPropagation(),de.preventDefault(),t();break;case"Enter":de.stopPropagation(),de.preventDefault(),p||a(V);break;case"ArrowUp":de.stopPropagation(),de.preventDefault(),Q(-1);break;case"ArrowDown":de.stopPropagation(),de.preventDefault(),Q(1);break}},[t,e,Q,V,p,a]),K=m.useCallback(()=>{R(de=>!de)},[]);m.useEffect(()=>(window.addEventListener("scroll",K),()=>{window.removeEventListener("scroll",K)}),[K]),m.useEffect(()=>(window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[K]),H$(G),W$([E,k,S],t);const se=c??(u&&u.length>0?250:0),ne=(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]),oe=m.useMemo(()=>(o&&e)??!1,[o,e]),ue=m.useMemo(()=>e&&(oe||_!==void 0||y!==void 0||b!=null&&b.length>0),[e,oe,_,y,b]),ye=32,xe=X?`calc(100vw - ${ye}px)`:`calc(max(${q}px, calc(${se}px + ${ne}px)))`,we=m.useMemo(()=>(T.length<1&&r&&r.length>0?r:n).map(de=>{var le,be;return d?((le=de.id)==null?void 0:le.toString())??"":((be=de.name)==null?void 0:be.toString())??""}).reduce((de,le)=>de.length>le.length?de:le,""),[T,r,n,d]);return w.jsxs(w.Fragment,{children:[w.jsx(mE,{show:e,onClick:t}),w.jsxs("div",{className:ce("luminus-dropdown-picker-actions",Cn.actionButtonsContainer,{[Cn.reverse]:ee}),style:{top:`calc(${P}px + ${H/2}px - 12px)`,left:ee?re&&oe?`calc(${z}px - 24px - 8px - 24px - 4px)`:`calc(${z}px - 24px - 8px)`:`calc(${W}px + 8px)`},children:[re&&w.jsx("button",{ref:k,type:"button",className:ce("luminus-dropdown-picker-clear-button",Cn.actionButton),onClick:()=>!p&&a(null),children:w.jsx(Bn,{variant:"caption",className:"text-danger",children:w.jsx(MC,{size:16})})}),ue?w.jsx("div",{ref:S,children:w.jsxs(q0,{toggle:w.jsx(V0,{as:H0,className:ce("luminus-dropdown-picker-actions-dropdown",Cn.actionsDropdown),icon:w.jsx(Bn,{variant:"caption",className:"text-primary",children:w.jsx(RC,{size:16})})}),children:[oe?w.jsx(Yo,{icon:w.jsx(E7,{}),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,oe&&(_||y)?w.jsx(Yg,{}):null,_?w.jsx(Yo,{icon:w.jsx(S7,{}),onClick:()=>{window.open(_,"_blank")},children:$.addNewOption}):null,y?w.jsx(Yo,{icon:w.jsx(P7,{}),onClick:()=>{y()},children:$.refreshOptions}):null,b&&b.length>0?w.jsx(Yg,{}):null,b==null?void 0:b.map(de=>w.jsxs(Yo,{onClick:()=>{de.onClick(),t()},children:[de.icon??null,de.label]},de.label))]})}):null]}),w.jsx("div",{className:ce("luminus-dropdown-picker",Cn.wrapper,{[Cn.open]:e}),style:{top:U?`calc(${P}px - 50vh - 8px)`:`calc(${B}px + 8px)`,left:X?`${ye/2}px`:ee?`calc(${W}px - ${xe})`:z,right:X?`${ye/2}px`:ee?`${W}px`:`calc(${z}px + ${xe})`,width:xe,justifyContent:U?"flex-end":"flex-start"},children:w.jsx("div",{ref:E,className:ce("shadow rounded",Cn.dropdown),children:!p&&w.jsxs(w.Fragment,{children:[!s||f&&(h??n.length)<=Y?null:w.jsx("div",{className:ce("search-input-container border-bottom",Cn.searchInputContainer),children:w.jsx(si.Control,{ref:O,type:"search",size:"sm",className:Cn.searchInput,placeholder:l.searchPlaceholder,value:T,onChange:de=>{var le;return A(((le=de.target)==null?void 0:le.value)??"")}})}),T.length<1&&r&&r.length>0?w.jsx(I1,{variant:"info",size:"sm",children:i??$.suggestedItemsTitle}):null,g?w.jsx("div",{className:Cn.loadingContainer,children:w.jsx(E0,{animation:"border",variant:"primary"})}):(T.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&w.jsxs("div",{ref:j,className:ce("items",Cn.itemsContainer),children:[u&&u.length>0&&w.jsxs("div",{className:ce("header-row border-bottom",Cn.headerRow),children:[w.jsx("div",{className:Cn.name,children:w.jsx(Bn,{variant:"body2",children:we})}),u==null?void 0:u.filter(de=>de.key!==x).map(de=>w.jsx("div",{className:Cn.columnItem,style:{width:`${de.width??100}px`,minWidth:`${de.width??100}px`,maxWidth:`${de.width??100}px`},children:w.jsx(Bn,{variant:"caption",children:de.name})},de.key))]}),(T.length<1&&r&&r.length>0?r:n).map((de,le)=>w.jsxs("button",{id:`item-${le}`,type:"button",className:ce("item cursor-pointer",Cn.item,{[Cn.focused]:L===le},{focused:L===le},{archive:de.additionalColumns?de.additionalColumns[x]:!1}),onClick:()=>!p&&a(de),onMouseEnter:()=>F(le),children:[w.jsx("div",{className:Cn.name,children:w.jsx(Bn,{variant:"body2",children:d?de.id:de.name})}),u==null?void 0:u.filter(be=>be.key!==x).map(be=>w.jsx("div",{className:Cn.columnItem,style:{width:`${be.width??100}px`,minWidth:`${be.width??100}px`,maxWidth:`${be.width??100}px`},children:w.jsx(Bn,{variant:"caption",className:ce("text-muted"),children:de.additionalColumns&&de.additionalColumns[be.key]})},be.key))]},de.id))]})]})})})]})},xG="_backdrop_3huvf_1",wG="_show_3huvf_11",aw={backdrop:xG,show:wG},mE=e=>{const t=Re.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=ce("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=w.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 _G(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=_G;var Th={},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(Th,"__esModule",{value:!0});Th.bindAll=void 0;var CG=yu;function sw(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function $G(e,t){if(t==null)return e;var n=ns(ns({},e),{options:ns(ns({},sw(t)),sw(e.options))});return n}function SG(e,t,n){var r=t.map(function(i){var o=$G(i,n);return(0,CG.bind)(e,o)});return function(){r.forEach(function(o){return o()})}}Th.bindAll=SG;(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=Th;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(N1);function gE(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=gE(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),cv={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function EG(e){var t=e.dragLeave;return D1()?t.hasOwnProperty(cv.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[cv.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(o){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(o[cv.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 kG(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 w.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:w.jsx(Bn,{variant:o,children:n})})};var P1=wu(),tt=e=>xu(e,P1),L1=wu();tt.write=e=>xu(e,L1);var kh=wu();tt.onStart=e=>xu(e,kh);var F1=wu();tt.onFrame=e=>xu(e,F1);var z1=wu();tt.onFinish=e=>xu(e,z1);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(vE(n),0,i),so+=1,bE(),i};var vE=e=>~(~cs.findIndex(t=>t.time>e)||~cs.length);tt.cancel=e=>{kh.delete(e),F1.delete(e),z1.delete(e),P1.delete(e),L1.delete(e)};tt.sync=e=>{uv=!0,tt.batchedUpdates(e),uv=!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=()=>{kh.delete(n),t=null},r};var B1=typeof window<"u"?window.requestAnimationFrame:()=>{};tt.use=e=>B1=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"):xE()};var ao=-1,so=0,uv=!1;function xu(e,t){uv?(t.delete(e),e(0)):(t.add(e),bE())}function bE(){ao<0&&(ao=0,tt.frameLoop!=="demand"&&B1(yE))}function OG(){ao=-1}function yE(){~ao&&(B1(yE),tt.batchedUpdates(xE))}function xE(){const e=ao;ao=tt.now();const t=vE(ao);if(t&&(wE(cs.splice(0,t),n=>n.handler()),so-=t),!so){OG();return}kh.flush(),P1.flush(e?Math.min(64,ao-e):16.667),F1.flush(),L1.flush(),z1.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,wE(t,r=>r(n)&&e.add(r)),so+=e.size,t=e)}}}function wE(e,t){e.forEach(n=>{try{t(n)}catch(r){tt.catch(r)}})}var MG=Object.defineProperty,AG=(e,t)=>{for(var n in t)MG(e,n,{get:t[n],enumerable:!0})},Pr={};AG(Pr,{assign:()=>jG,colors:()=>uo,createStringInterpolator:()=>U1,skipAnimation:()=>CE,to:()=>_E,willAdvance:()=>H1});function dv(){}var RG=(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 zl=(e,...t)=>Xl(e,n=>n(...t)),W1=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U1,_E,uo=null,CE=!1,H1=dv,jG=e=>{e.to&&(_E=e.to),e.now&&(tt.now=e.now),e.colors!==void 0&&(uo=e.colors),e.skipAnimation!=null&&(CE=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=[],Bm=[],ff=0,Oh={get idle(){return!Ql.size&&!gr.length},start(e){ff>e.priority?(Ql.add(e),tt.onStart(NG)):($E(e),tt(fv))},advance:fv,sort(e){if(ff)tt.onFrame(()=>Oh.sort(e));else{const t=gr.indexOf(e);~t&&(gr.splice(t,1),SE(e))}},clear(){gr=[],Ql.clear()}};function NG(){Ql.forEach($E),Ql.clear(),tt(fv)}function $E(e){gr.includes(e)||SE(e)}function SE(e){gr.splice(DG(gr,t=>t.priority>e.priority),0,e)}function fv(e){const t=Bm;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,Bm=gr,Bm.length=0,gr=t,gr.length>0}function DG(e,t){const n=e.findIndex(t);return n<0?e.length:n}var IG={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 Mh(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var PG=new RegExp("rgb"+Mh(jr,jr,jr)),LG=new RegExp("rgba"+Mh(jr,jr,jr,jr)),FG=new RegExp("hsl"+Mh(jr,hf,hf)),zG=new RegExp("hsla"+Mh(jr,hf,hf,jr)),BG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WG=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,UG=/^#([0-9a-fA-F]{6})$/,HG=/^#([0-9a-fA-F]{8})$/;function VG(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=UG.exec(e))?parseInt(t[1]+"ff",16)>>>0:uo&&uo[e]!==void 0?uo[e]:(t=PG.exec(e))?(Va(t[1])<<24|Va(t[2])<<16|Va(t[3])<<8|255)>>>0:(t=LG.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=HG.exec(e))?parseInt(t[1],16)>>>0:(t=WG.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=FG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|255)>>>0:(t=zG.exec(e))?(lw(cw(t[1]),od(t[2]),od(t[3]))|uw(t[4]))>>>0:null}function Wm(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=Wm(i,r,e+1/3),a=Wm(i,r,e),s=Wm(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=VG(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 Tc=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Tc({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=YG(c,o);return qG(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function qG(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 YG(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var GG={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 KG(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oc(e,t){const n=e[Rs];n&&n.forEach(r=>{KG(r,t)})}var EE=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ZG(this,e)}},ZG=(e,t)=>TE(e,kc,t);function Gs(e,t){if(e[kc]){let n=e[Rs];n||TE(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 TE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Sd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,XG=/(#(?:[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"),QG=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ah=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,kE=e=>{const[t,n]=JG(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&&Ah.test(n))return kE(n);if(n)return n}return e},JG=e=>{const t=Ah.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Um,eK=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,OE=e=>{Um||(Um=uo?new RegExp(`(${Object.keys(uo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Yn(o).replace(Ah,kE).replace(XG,dw).replace(Um,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=>Tc({...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(QG,eK)}},V1="react-spring: ",ME=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)}},tK=ME(console.warn);function nK(){tK(`${V1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rK=ME(console.warn);function iK(){rK(`${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 Rh(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!W1()&&Ah.test(e)||e in(uo||{}))}var Go=W1()?m.useEffect:m.useLayoutEffect,oK=()=>{const e=m.useRef(!1);return Go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function q1(){const e=m.useState()[1],t=oK();return()=>{t.current&&e(Math.random())}}var Y1=e=>m.useEffect(e,aK),aK=[];function hv(e){const t=m.useRef(void 0);return m.useEffect(()=>{t.current=e}),t.current}var Ac=Symbol.for("Animated:node"),sK=e=>!!e&&e[Ac]===e,Vr=e=>e&&e[Ac],G1=(e,t)=>RG(e,Ac,t),jh=e=>e&&e[Ac]&&e[Ac].getPayload(),AE=class{constructor(){G1(this,this)}getPayload(){return this.payload||[]}},Nh=class RE extends AE{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 RE(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 jE extends Nh{constructor(t){super(0),this._string=null,this._toString=Tc({output:[t,t]})}static create(t){return new jE(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=Tc({output:[this.getValue(),t]})),this._value=0,super.reset()}},mf={dependencies:null},Dh=class extends AE{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ri(this.source,(n,r)=>{sK(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=jh(e);t&&Ge(t,n=>this.add(n))}},lK=class NE extends Dh{constructor(t){super(t)}static create(t){return new NE(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(cK)),!0)}};function cK(e){return(Rh(e)?pf:Nh).create(e)}function pv(e){const t=Vr(e);return t?t.constructor:pe.arr(e)?lK:Rh(e)?pf:Nh}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=fK(i,p)},[i]),[s,l]=dK(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 uK(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})})},uK=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&tt.write(this.update)}};function dK(e,t){const n=new Set;return mf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dh(e),mf.dependencies=null,[e,n]}function fK(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var mw=Symbol.for("AnimatedComponent"),hK=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dh(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))),DE=(e,t)=>pe.obj(e)?t&&e[t]:e,IE=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,pK=e=>e,Ih=(e,t=pK)=>{let n=mK;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},mK=["config","onProps","onStart","onChange","onPause","onResume","onRest"],gK={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 vK(e){const t={};let n=0;if(ri(e,(r,i)=>{gK[i]||(t[i]=r,n++)}),n)return t}function K1(e){const t=vK(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):Rh(e)?Pr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function PE(e){for(const t in e)return!0;return!1}function mv(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function gv(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function LE(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var FE={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}},vv={...FE.default,mass:1,damping:1,easing:GG.linear,clamp:!1},bK=class{constructor(){this.velocity=0,Object.assign(this,vv)}};function yK(e,t,n){n&&(n={...n},vw(n,t),t={...n,...t}),vw(e,t),Object.assign(e,t);for(const a in vv)e[a]==null&&(e[a]=vv[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=[],xK=class{constructor(){this.changed=!1,this.values=bw,this.toValues=null,this.fromValues=bw,this.config=new bK,this.immediate=!1}};function zE(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)?BE(e.get()):Mr(e.get(),t.every(n=>n.finished)),BE=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 WE(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=Ih(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,y=new xw;return(async()=>{if(Pr.skipAnimation)throw jc(n),y.result=Mr(r,!1),d(y),y;h(_);const C=pe.obj(v)?{...v}:{...x,to:v};C.parentId=i,ri(c,($,E)=>{pe.und(C[E])&&(C[E]=$)});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")}},bv=e=>e instanceof X1,wK=1,X1=class extends EE{constructor(){super(...arguments),this.id=wK++,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 nK(),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||Oh.sort(this),Oc(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),UE=1,yv=2,xv=4,Hm=e=>(e[ha]&UE)>0,Zi=e=>(e[ha]&yv)>0,$l=e=>(e[ha]&xv)>0,ww=(e,t)=>t?e[ha]|=yv|UE:e[ha]&=~yv,_w=(e,t)=>t?e[ha]|=xv:e[ha]&=~xv,_K=class extends X1{constructor(e,t){if(super(),this.animation=new xK,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 Nh?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Hm(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=jh(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 y=o.decay===!0?.998:o.decay,C=Math.exp(-(1-y)*p);h=g+v/(1-y)*(1-C),f=Math.abs(c.lastPosition-h)<=_,x=v*C}else{x=c.lastVelocity==null?v:c.lastVelocity;const y=o.restVelocity||_/10,C=o.clamp?0:o.bounce,b=!pe.und(C),$=g==d?c.v0>0:g<d;let E,k=!1;const O=1,j=Math.ceil(e/O);for(let S=0;S<j&&(E=Math.abs(x)>y,!(!E&&(f=Math.abs(d-h)<=_,f)));++S){b&&(k=h==d||h>d==$,k&&(x=-x*C,h=d));const T=-o.tension*1e-6*(h-d),A=-o.friction*.001*x,D=(T+A)/o.mass;x=x+D*O,h=h+x*O}}else{let y=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)),y=(o.progress||0)+p/this._memoizedDuration,y=y>1?1:y<0?0:y,c.durationProgress=y),h=g+o.easing(y)*(d-g),x=(h-c.lastPosition)/e,f=y==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||mv(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Hm(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,Ih(e,(a,s)=>/^on/.test(s)?DE(a,n):a)),$w(this,e,"onProps"),El(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 zE(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{$l(this)||(_w(this,!0),zl(o.pauseQueue),El(this,"onPause",Mr(this,Sl(this,this.animation.to)),this))},resume:()=>{$l(this)&&(_w(this,!1),Zi(this)&&this._resume(),zl(o.resumeQueue),El(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=HE(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=mv(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||i)&&(g.velocity=0),t.config&&!p&&yK(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 y=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&Jl(t.reset,o),C=y?d:this.get(),b=Rc(u),$=pe.num(b)||pe.arr(b)||Rh(b),E=!p&&(!$||Jl(a.immediate||t.immediate,o));if(h){const S=pv(u);if(S!==_.constructor)if(E)_=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=y||!Hm(this)&&f;(h||S)&&(j=bi(Rc(C),b),O=!j),(!bi(s.immediate,E)&&!E||!bi(g.decay,v)||!bi(g.velocity,x))&&(O=!0)}if(j&&Zi(this)&&(s.changed&&!y?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!=E&&(s.immediate=E,!E&&!y&&this._set(l)),O)){const{onRest:S}=s;Ge($K,A=>$w(this,t,A));const T=Mr(this,Sl(this,l));zl(this._pendingCalls,T),this._pendingCalls.add(n),s.changed&&tt.batchedUpdates(()=>{var A;s.changed=!y,S==null||S(T,this),y?Gn(a.onRest,T):(A=s.onStart)==null||A.call(s,T,this)})}y&&this._set(C),p?n(WE(t.to,t,this._state,this)):O?this._start():Zi(this)&&!h?this._pendingCalls.add(n):n(BE(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),bv(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=pv(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,El(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():Oh.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));zl(this._pendingCalls,r),n.changed&&(n.changed=!1,El(this,"onRest",r,this))}}};function Sl(e,t){const n=Rc(t),r=Rc(e.get());return bi(r,n)}function HE(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||mv(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 CK(e){const t=Nc(e);return pe.und(t.default)&&(t.default=Ih(t)),t}function Cw(e,t){ri(e,(n,r)=>n!=null&&t.add(r))}var $K=["onStart","onRest","onChange","onPause","onResume"];function $w(e,t,n){e.animation[n]=t[n]!==IE(t,n)?DE(t[n],e.key):void 0}function El(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 SK=["onStart","onChange","onRest"],EK=1,VE=class{constructor(e,t){this.id=EK++,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):(ZE(this,t),wv(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 wv(e,t){return Promise.all(t.map(n=>qE(e,n))).then(n=>Z1(e,n))}async function qE(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(SK,g=>{const v=t[g];if(pe.fun(v)){const x=e._events[g];t[g]=({finished:_,cancelled:y})=>{const C=x.get(v);C?(_||(C.finished=!1),y&&(C.cancelled=!0)):x.set(v,{value:null,finished:_||!1,cancelled:y||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,zl(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||IE(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(zE(++e._lastAsyncId,{props:t,state:d,actions:{pause:dv,resume:dv,start(g,v){h?(jc(d,e._lastAsyncId),v(us(e))):(g.onRest=s,v(WE(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=HE(t,a,i);if(g)return ZE(e,[g]),qE(e,g,!0)}return l&&tt.batchedUpdates(()=>l(p,e,e.item)),p}function _v(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}),KE(n,r,i=>GE(i))}),YE(e,n),n}function YE(e,t){ri(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Gs(n,e))})}function GE(e,t){const n=new _K;return n.key=e,t&&Gs(n,t),n}function KE(e,t,n){t.keys&&Ge(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ZE(e,t){Ge(t,n=>{KE(e.springs,n,r=>GE(r,e))})}var XE=ie.createContext({pause:!1,immediate:!1}),QE=()=>{const e=[],t=function(r){iK();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?QE():void 0,[]),o=m.useRef(0),a=q1(),s=m.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const y=_v(x,_);return o.current>0&&!s.queue.length&&!Object.keys(y).some(b=>!x.springs[b])?wv(x,_):new Promise(b=>{YE(x,y),s.queue.push(()=>{b(wv(x,_))}),a()})}}),[]),l=m.useRef([...s.ctrls]),c=m.useRef([]),u=hv(e)||0;m.useMemo(()=>{Ge(l.current.slice(e,u),x=>{gv(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 y=x;y<_;y++){const C=l.current[y]||(l.current[y]=new VE(null,s.flush)),b=r?r(y,C):t[y];b&&(c.current[y]=CK(b))}}const f=l.current.map((x,_)=>_v(x,c.current[_])),h=m.useContext(XE),p=hv(h),g=h!==p&&PE(h);Go(()=>{o.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Ge(x,_=>_())),Ge(l.current,(_,y)=>{i==null||i.add(_),g&&_.start({default:h});const C=c.current[y];C&&(LE(_,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?QE():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),gv(D.ctrl,f),D.ctrl.stop(!0)})}));const x=OK(h,r?r():t,v),_=i&&g.current||[];Go(()=>Ge(_,({ctrl:D,item:R,key:M})=>{gv(D,f),Gn(c,R,M)}));const y=[];if(v&&Ge(v,(D,R)=>{D.expired?(clearTimeout(D.expirationId),_.push(D)):(R=y[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 VE},p[R].ctrl.item=D)}),y.length){let D=-1;const{leave:R}=r?r():t;Ge(y,(M,I)=>{const z=v[I];~M?(D=p.indexOf(z),p[D]={...z,item:h[M]}):R&&p.splice(++D,0,z)})}pe.fun(o)&&p.sort((D,R)=>o(D.item,R.item));let C=-a;const b=q1(),$=Ih(t),E=new Map,k=m.useRef(new Map),O=m.useRef(!1);Ge(p,(D,R)=>{const M=D.key,I=D.phase,z=r?r():t;let W,P;const B=Gn(z.delay||0,M);if(I=="mount")W=z.enter,P="enter";else{const X=x.indexOf(M)<0;if(I!="leave")if(X)W=z.leave,P="leave";else if(W=z.update)P="update";else return;else if(!X)W=z.enter,P="enter";else return}if(W=Gn(W,D.item,R),W=pe.obj(W)?K1(W):{to:W},!W.config){const X=d||$.config;W.config=Gn(X,D.item,R,P)}C+=a;const q={...$,delay:B+C,ref:u,immediate:z.immediate,reset:!1,...W};if(P=="enter"&&pe.und(q.from)){const X=r?r():t,J=pe.und(X.initial)||v?X.from:X.initial;q.from=Gn(J,D.item,R)}const{onResolve:H}=q;q.onResolve=X=>{Gn(H,X);const J=g.current,ee=J.find(U=>U.key===M);if(ee&&!(X.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const U=J.every(L=>L.ctrl.idle);if(ee.phase=="leave"){const L=Gn(s,ee.item);if(L!==!1){const F=L===!0?0:L;if(ee.expired=!0,!U&&F>0){F<=2147483647&&(ee.expirationId=setTimeout(b,F));return}}}U&&J.some(L=>L.expired)&&(k.current.delete(ee),l&&(O.current=!0),b())}};const Y=_v(D.ctrl,q);P==="leave"&&l?k.current.set(D,{phase:P,springs:Y,payload:q}):E.set(D,{phase:P,springs:Y,payload:q})});const j=m.useContext(XE),S=hv(j),T=j!==S&&PE(j);Go(()=>{T&&Ge(p,D=>{D.ctrl.start({default:j})})},[j]),Ge(E,(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:E,({phase:D,payload:R},M)=>{const{ctrl:I}=M;M.phase=D,f==null||f.add(I),T&&D=="enter"&&I.start({default:j}),R&&(LE(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}=E.get(R)||R.ctrl,z=D({...I},R.item,R,M),W=pe.str(R.key)||pe.num(R.key)?R.key:R.ctrl.id,P=ie.version<"19.0.0",B=(z==null?void 0:z.props)??{},q=P?z==null?void 0:z.ref:B==null?void 0:B.ref;return z&&z.type?ie.createElement(z.type,{...B,key:W,ref:q}):z}));return f?[A,f]:A}var kK=1;function OK(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):kK++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Un(n)}var JE=class extends X1{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Tc(...t);const n=this._get(),r=pv(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)&&Vm(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(jh(this),e=>{e.done=!1}),Pr.skipAnimation?(tt.batchedUpdates(()=>this.advance()),Vm(this)):Oh.start(this))}_attach(){let e=1;Ge(Un(this.source),t=>{mr(t)&&Gs(t,this),bv(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(),Vm(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,(bv(n)?n.priority:0)+1),0))}};function MK(e){return e.idle!==!1}function Sw(e){return!e.size||Array.from(e).every(MK)}function Vm(e){e.idle||(e.idle=!0,Ge(jh(e),t=>{t.done=!0}),Oc(e,{type:"idle",parent:e}))}var xo=(e,...t)=>new JE(e,t);Pr.assign({createStringInterpolator:OE,to:(e,t)=>new JE(e,t)});var eT=/^--/;function AK(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!eT.test(e)&&!(ec.hasOwnProperty(e)&&ec[e])?t+"px":(""+t).trim()}var Ew={};function RK(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:Ew[f]||(Ew[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=AK(f,i[f]);eT.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},jK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),NK=["Webkit","Ms","Moz","O"];ec=Object.keys(ec).reduce((e,t)=>(NK.forEach(n=>e[jK(n,t)]=e[t]),e),ec);var DK=/^(matrix|translate|scale|rotate|skew)/,IK=/^(translate)/,PK=/^(rotate|skew)/,qm=(e,t)=>pe.num(e)&&e!==0?e+t:e,Ed=(e,t)=>pe.arr(e)?e.every(n=>Ed(n,t)):pe.num(e)?e===t:parseFloat(e)===t,LK=class extends Dh{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=>qm(s,"px")).join(",")})`,Ed(a,0)])),ri(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(DK.test(s)){if(delete r[s],pe.und(a))return;const l=IK.test(s)?"px":PK.test(s)?"deg":"";i.push(Un(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${qm(f,l)})`,Ed(f,0)]:c=>[`${s}(${c.map(u=>qm(u,l)).join(",")})`,Ed(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new FK(i,o)),super(r)}},FK=class extends EE{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)}},zK=["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:OE,colors:IG});var BK=hK(zK,{applyAnimatedValues:RK,createAnimatedStyle:e=>new LK(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Yt=BK.animated;function WK(){this.__data__=[],this.size=0}var UK=WK;function HK(e,t){return e===t||e!==e&&t!==t}var _u=HK,VK=_u;function qK(e,t){for(var n=e.length;n--;)if(VK(e[n][0],t))return n;return-1}var Ph=qK,YK=Ph,GK=Array.prototype,KK=GK.splice;function ZK(e){var t=this.__data__,n=YK(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():KK.call(t,n,1),--this.size,!0}var XK=ZK,QK=Ph;function JK(e){var t=this.__data__,n=QK(t,e);return n<0?void 0:t[n][1]}var eZ=JK,tZ=Ph;function nZ(e){return tZ(this.__data__,e)>-1}var rZ=nZ,iZ=Ph;function oZ(e,t){var n=this.__data__,r=iZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var aZ=oZ,sZ=UK,lZ=XK,cZ=eZ,uZ=rZ,dZ=aZ;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=sZ;Ks.prototype.delete=lZ;Ks.prototype.get=cZ;Ks.prototype.has=uZ;Ks.prototype.set=dZ;var Lh=Ks,fZ=Lh;function hZ(){this.__data__=new fZ,this.size=0}var pZ=hZ;function mZ(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var gZ=mZ;function vZ(e){return this.__data__.get(e)}var bZ=vZ;function yZ(e){return this.__data__.has(e)}var xZ=yZ,wZ=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn,tT=wZ,_Z=tT,CZ=typeof self=="object"&&self&&self.Object===Object&&self,$Z=_Z||CZ||Function("return this")(),ci=$Z,SZ=ci,EZ=SZ.Symbol,Zs=EZ,Tw=Zs,nT=Object.prototype,TZ=nT.hasOwnProperty,kZ=nT.toString,Tl=Tw?Tw.toStringTag:void 0;function OZ(e){var t=TZ.call(e,Tl),n=e[Tl];try{e[Tl]=void 0;var r=!0}catch{}var i=kZ.call(e);return r&&(t?e[Tl]=n:delete e[Tl]),i}var MZ=OZ,AZ=Object.prototype,RZ=AZ.toString;function jZ(e){return RZ.call(e)}var NZ=jZ,kw=Zs,DZ=MZ,IZ=NZ,PZ="[object Null]",LZ="[object Undefined]",Ow=kw?kw.toStringTag:void 0;function FZ(e){return e==null?e===void 0?LZ:PZ:Ow&&Ow in Object(e)?DZ(e):IZ(e)}var Wi=FZ;function zZ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ui=zZ,BZ=Wi,WZ=ui,UZ="[object AsyncFunction]",HZ="[object Function]",VZ="[object GeneratorFunction]",qZ="[object Proxy]";function YZ(e){if(!WZ(e))return!1;var t=BZ(e);return t==HZ||t==VZ||t==UZ||t==qZ}var Fh=YZ;const Q1=sn(Fh);var GZ=ci,KZ=GZ["__core-js_shared__"],ZZ=KZ,Ym=ZZ,Mw=function(){var e=/[^.]+$/.exec(Ym&&Ym.keys&&Ym.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XZ(e){return!!Mw&&Mw in e}var QZ=XZ,JZ=Function.prototype,eX=JZ.toString;function tX(e){if(e!=null){try{return eX.call(e)}catch{}try{return e+""}catch{}}return""}var rT=tX,nX=Fh,rX=QZ,iX=ui,oX=rT,aX=/[\\^$.*+?()[\]{}|]/g,sX=/^\[object .+?Constructor\]$/,lX=Function.prototype,cX=Object.prototype,uX=lX.toString,dX=cX.hasOwnProperty,fX=RegExp("^"+uX.call(dX).replace(aX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hX(e){if(!iX(e)||rX(e))return!1;var t=nX(e)?fX:sX;return t.test(oX(e))}var pX=hX;function mX(e,t){return e==null?void 0:e[t]}var gX=mX,vX=pX,bX=gX;function yX(e,t){var n=bX(e,t);return vX(n)?n:void 0}var $a=yX,xX=$a,wX=ci,_X=xX(wX,"Map"),J1=_X,CX=$a,$X=CX(Object,"create"),zh=$X,Aw=zh;function SX(){this.__data__=Aw?Aw(null):{},this.size=0}var EX=SX;function TX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kX=TX,OX=zh,MX="__lodash_hash_undefined__",AX=Object.prototype,RX=AX.hasOwnProperty;function jX(e){var t=this.__data__;if(OX){var n=t[e];return n===MX?void 0:n}return RX.call(t,e)?t[e]:void 0}var NX=jX,DX=zh,IX=Object.prototype,PX=IX.hasOwnProperty;function LX(e){var t=this.__data__;return DX?t[e]!==void 0:PX.call(t,e)}var FX=LX,zX=zh,BX="__lodash_hash_undefined__";function WX(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zX&&t===void 0?BX:t,this}var UX=WX,HX=EX,VX=kX,qX=NX,YX=FX,GX=UX;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=HX;Xs.prototype.delete=VX;Xs.prototype.get=qX;Xs.prototype.has=YX;Xs.prototype.set=GX;var KX=Xs,Rw=KX,ZX=Lh,XX=J1;function QX(){this.size=0,this.__data__={hash:new Rw,map:new(XX||ZX),string:new Rw}}var JX=QX;function eQ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tQ=eQ,nQ=tQ;function rQ(e,t){var n=e.__data__;return nQ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Bh=rQ,iQ=Bh;function oQ(e){var t=iQ(this,e).delete(e);return this.size-=t?1:0,t}var aQ=oQ,sQ=Bh;function lQ(e){return sQ(this,e).get(e)}var cQ=lQ,uQ=Bh;function dQ(e){return uQ(this,e).has(e)}var fQ=dQ,hQ=Bh;function pQ(e,t){var n=hQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var mQ=pQ,gQ=JX,vQ=aQ,bQ=cQ,yQ=fQ,xQ=mQ;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=gQ;Qs.prototype.delete=vQ;Qs.prototype.get=bQ;Qs.prototype.has=yQ;Qs.prototype.set=xQ;var eb=Qs,wQ=Lh,_Q=J1,CQ=eb,$Q=200;function SQ(e,t){var n=this.__data__;if(n instanceof wQ){var r=n.__data__;if(!_Q||r.length<$Q-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new CQ(r)}return n.set(e,t),this.size=n.size,this}var EQ=SQ,TQ=Lh,kQ=pZ,OQ=gZ,MQ=bZ,AQ=xZ,RQ=EQ;function Js(e){var t=this.__data__=new TQ(e);this.size=t.size}Js.prototype.clear=kQ;Js.prototype.delete=OQ;Js.prototype.get=MQ;Js.prototype.has=AQ;Js.prototype.set=RQ;var Wh=Js,jQ=$a,NQ=function(){try{var e=jQ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iT=NQ,jw=iT;function DQ(e,t,n){t=="__proto__"&&jw?jw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tb=DQ,IQ=tb,PQ=_u;function LQ(e,t,n){(n!==void 0&&!PQ(e[t],n)||n===void 0&&!(t in e))&&IQ(e,t,n)}var oT=LQ;function FQ(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 zQ=FQ,BQ=zQ,WQ=BQ(),aT=WQ,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 sT=gf.exports,UQ=ci,HQ=UQ.Uint8Array,lT=HQ,Nw=lT;function VQ(e){var t=new e.constructor(e.byteLength);return new Nw(t).set(new Nw(e)),t}var nb=VQ,qQ=nb;function YQ(e,t){var n=t?qQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cT=YQ;function GQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var uT=GQ,KQ=ui,Dw=Object.create,ZQ=function(){function e(){}return function(t){if(!KQ(t))return{};if(Dw)return Dw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),XQ=ZQ;function QQ(e,t){return function(n){return e(t(n))}}var dT=QQ,JQ=dT,eJ=JQ(Object.getPrototypeOf,Object),rb=eJ,tJ=Object.prototype;function nJ(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tJ;return e===n}var ib=nJ,rJ=XQ,iJ=rb,oJ=ib;function aJ(e){return typeof e.constructor=="function"&&!oJ(e)?rJ(iJ(e)):{}}var fT=aJ;function sJ(e){return e!=null&&typeof e=="object"}var Tr=sJ,lJ=Wi,cJ=Tr,uJ="[object Arguments]";function dJ(e){return cJ(e)&&lJ(e)==uJ}var fJ=dJ,Iw=fJ,hJ=Tr,hT=Object.prototype,pJ=hT.hasOwnProperty,mJ=hT.propertyIsEnumerable,gJ=Iw(function(){return arguments}())?Iw:function(e){return hJ(e)&&pJ.call(e,"callee")&&!mJ.call(e,"callee")},Uh=gJ,vJ=Array.isArray,or=vJ,bJ=9007199254740991;function yJ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bJ}var ob=yJ,xJ=Fh,wJ=ob;function _J(e){return e!=null&&wJ(e.length)&&!xJ(e)}var el=_J,CJ=el,$J=Tr;function SJ(e){return $J(e)&&CJ(e)}var pT=SJ,vf={exports:{}};function EJ(){return!1}var TJ=EJ;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 Hh=vf.exports,kJ=Wi,OJ=rb,MJ=Tr,AJ="[object Object]",RJ=Function.prototype,jJ=Object.prototype,mT=RJ.toString,NJ=jJ.hasOwnProperty,DJ=mT.call(Object);function IJ(e){if(!MJ(e)||kJ(e)!=AJ)return!1;var t=OJ(e);if(t===null)return!0;var n=NJ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mT.call(n)==DJ}var ab=IJ;const sb=sn(ab);var PJ=Wi,LJ=ob,FJ=Tr,zJ="[object Arguments]",BJ="[object Array]",WJ="[object Boolean]",UJ="[object Date]",HJ="[object Error]",VJ="[object Function]",qJ="[object Map]",YJ="[object Number]",GJ="[object Object]",KJ="[object RegExp]",ZJ="[object Set]",XJ="[object String]",QJ="[object WeakMap]",JJ="[object ArrayBuffer]",eee="[object DataView]",tee="[object Float32Array]",nee="[object Float64Array]",ree="[object Int8Array]",iee="[object Int16Array]",oee="[object Int32Array]",aee="[object Uint8Array]",see="[object Uint8ClampedArray]",lee="[object Uint16Array]",cee="[object Uint32Array]",en={};en[tee]=en[nee]=en[ree]=en[iee]=en[oee]=en[aee]=en[see]=en[lee]=en[cee]=!0;en[zJ]=en[BJ]=en[JJ]=en[WJ]=en[eee]=en[UJ]=en[HJ]=en[VJ]=en[qJ]=en[YJ]=en[GJ]=en[KJ]=en[ZJ]=en[XJ]=en[QJ]=!1;function uee(e){return FJ(e)&&LJ(e.length)&&!!en[PJ(e)]}var dee=uee;function fee(e){return function(t){return e(t)}}var tl=fee,bf={exports:{}};bf.exports;(function(e,t){var n=tT,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 Vh=bf.exports,hee=dee,pee=tl,Pw=Vh,Lw=Pw&&Pw.isTypedArray,mee=Lw?pee(Lw):hee,lb=mee;function gee(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gT=gee,vee=tb,bee=_u,yee=Object.prototype,xee=yee.hasOwnProperty;function wee(e,t,n){var r=e[t];(!(xee.call(e,t)&&bee(r,n))||n===void 0&&!(t in e))&&vee(e,t,n)}var cb=wee,_ee=cb,Cee=tb;function $ee(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?Cee(n,s,l):_ee(n,s,l)}return n}var nl=$ee;function See(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Eee=See,Tee=9007199254740991,kee=/^(?:0|[1-9]\d*)$/;function Oee(e,t){var n=typeof e;return t=t??Tee,!!t&&(n=="number"||n!="symbol"&&kee.test(e))&&e>-1&&e%1==0&&e<t}var qh=Oee,Mee=Eee,Aee=Uh,Ree=or,jee=Hh,Nee=qh,Dee=lb,Iee=Object.prototype,Pee=Iee.hasOwnProperty;function Lee(e,t){var n=Ree(e),r=!n&&Aee(e),i=!n&&!r&&jee(e),o=!n&&!r&&!i&&Dee(e),a=n||r||i||o,s=a?Mee(e.length,String):[],l=s.length;for(var c in e)(t||Pee.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Nee(c,l)))&&s.push(c);return s}var vT=Lee;function Fee(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zee=Fee,Bee=ui,Wee=ib,Uee=zee,Hee=Object.prototype,Vee=Hee.hasOwnProperty;function qee(e){if(!Bee(e))return Uee(e);var t=Wee(e),n=[];for(var r in e)r=="constructor"&&(t||!Vee.call(e,r))||n.push(r);return n}var Yee=qee,Gee=vT,Kee=Yee,Zee=el;function Xee(e){return Zee(e)?Gee(e,!0):Kee(e)}var Cu=Xee,Qee=nl,Jee=Cu;function ete(e){return Qee(e,Jee(e))}var tte=ete,Fw=oT,nte=sT,rte=cT,ite=uT,ote=fT,zw=Uh,Bw=or,ate=pT,ste=Hh,lte=Fh,cte=ui,ute=ab,dte=lb,Ww=gT,fte=tte;function hte(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=Bw(l),h=!f&&ste(l),p=!f&&!h&&dte(l);u=l,f||h||p?Bw(s)?u=s:ate(s)?u=ite(s):h?(d=!1,u=nte(l,!0)):p?(d=!1,u=rte(l,!0)):u=[]:ute(l)||zw(l)?(u=s,zw(s)?u=fte(s):(!cte(s)||lte(s))&&(u=ote(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Fw(e,n,u)}var pte=hte,mte=Wh,gte=oT,vte=aT,bte=pte,yte=ui,xte=Cu,wte=gT;function bT(e,t,n,r,i){e!==t&&vte(t,function(o,a){if(i||(i=new mte),yte(o))bte(e,t,a,n,bT,r,i);else{var s=r?r(wte(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),gte(e,a,s)}},xte)}var _te=bT;function Cte(e){return e}var Yh=Cte;function $te(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 Ste=$te,Ete=Ste,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),Ete(e,this,s)}}var yT=Tte;function kte(e){return function(){return e}}var Ote=kte,Mte=Ote,Hw=iT,Ate=Yh,Rte=Hw?function(e,t){return Hw(e,"toString",{configurable:!0,enumerable:!1,value:Mte(t),writable:!0})}:Ate,jte=Rte,Nte=800,Dte=16,Ite=Date.now;function Pte(e){var t=0,n=0;return function(){var r=Ite(),i=Dte-(r-n);if(n=r,i>0){if(++t>=Nte)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Lte=Pte,Fte=jte,zte=Lte,Bte=zte(Fte),xT=Bte,Wte=Yh,Ute=yT,Hte=xT;function Vte(e,t){return Hte(Ute(e,t,Wte),e+"")}var ub=Vte,qte=_u,Yte=el,Gte=qh,Kte=ui;function Zte(e,t,n){if(!Kte(n))return!1;var r=typeof t;return(r=="number"?Yte(n)&&Gte(t,n.length):r=="string"&&t in n)?qte(n[t],e):!1}var wT=Zte,Xte=ub,Qte=wT;function Jte(e){return Xte(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&&Qte(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 ene=Jte,tne=_te,nne=ene,rne=nne(function(e,t,n){tne(e,t,n)}),ine=rne;const _T=sn(ine);var one=Wi,ane=Tr,sne="[object Symbol]";function lne(e){return typeof e=="symbol"||ane(e)&&one(e)==sne}var Gh=lne,cne=or,une=Gh,dne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fne=/^\w*$/;function hne(e,t){if(cne(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||une(e)?!0:fne.test(e)||!dne.test(e)||t!=null&&e in Object(t)}var db=hne,CT=eb,pne="Expected a function";function fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pne);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||CT),n}fb.Cache=CT;var mne=fb,gne=mne,vne=500;function bne(e){var t=gne(e,function(r){return n.size===vne&&n.clear(),r}),n=t.cache;return t}var yne=bne,xne=yne,wne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_ne=/\\(\\)?/g,Cne=xne(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wne,function(n,r,i,o){t.push(i?o.replace(_ne,"$1"):r||n)}),t}),$ne=Cne;function Sne(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 Kh=Sne,Vw=Zs,Ene=Kh,Tne=or,kne=Gh,qw=Vw?Vw.prototype:void 0,Yw=qw?qw.toString:void 0;function $T(e){if(typeof e=="string")return e;if(Tne(e))return Ene(e,$T)+"";if(kne(e))return Yw?Yw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var One=$T,Mne=One;function Ane(e){return e==null?"":Mne(e)}var ST=Ane,Rne=or,jne=db,Nne=$ne,Dne=ST;function Ine(e,t){return Rne(e)?e:jne(e,t)?[e]:Nne(Dne(e))}var rl=Ine,Pne=Gh;function Lne(e){if(typeof e=="string"||Pne(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var il=Lne,Fne=rl,zne=il;function Bne(e,t){t=Fne(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zne(t[n++])];return n&&n==r?e:void 0}var $u=Bne,Wne=$u;function Une(e,t,n){var r=e==null?void 0:Wne(e,t);return r===void 0?n:r}var ET=Une;const ii=sn(ET);var Hne=cb,Vne=rl,qne=qh,Gw=ui,Yne=il;function Gne(e,t,n,r){if(!Gw(e))return e;t=Vne(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Yne(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:qne(t[i+1])?[]:{})}Hne(s,l,c),s=s[l]}return e}var TT=Gne,Kne=TT;function Zne(e,t,n){return e==null?e:Kne(e,t,n)}var Xne=Zne;const Bl=sn(Xne);function Cv(){return Cv=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},Cv.apply(null,arguments)}function Qne(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 Jne=["outlineWidth","outlineColor","outlineOpacity"],ere=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Qne(e,Jne)},tre=["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"],nre=function(e,t){return Cv({},t,e)},rre=function(e,t){var n=_T({},e,t);return tre.forEach(function(r){Bl(n,r,nre(ii(n,r),n.text))}),n},kT=function(e,t){return t?_T({},e,t):e},ire={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}}},ore=function(e){return m.useMemo(function(){return rre(ire,e)},[e])},are=function(e,t){return m.useMemo(function(){return kT(e,t)},[e,t])},OT=m.createContext(null),sre={},lre=function(e){var t=e.theme,n=t===void 0?sre:t,r=e.children,i=ore(n);return w.jsx(OT.Provider,{value:i,children:r})},Ft=function(){var e=m.useContext(OT);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 cre=["basic","chip","container","table","tableCell","tableCellValue"],ure={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Kw=function(e,t){return"translate("+e+"px, "+t+"px)"},MT=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=hde(),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}),y=o.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var C=function($,E){if($==null)return{};var k={};for(var O in $)if({}.hasOwnProperty.call($,O)){if(E.indexOf(O)!==-1)continue;k[O]=$[O]}return k}(y,cre),b=pa({},ure,C,{transform:(t=_.transform)!=null?t:Kw(v,x),opacity:_.transform?1:0});return w.jsx(Yt.div,{ref:u,style:b,children:i})});MT.displayName="TooltipWrapper";var AT=m.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return w.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=w.jsxs("div",{style:c.tooltip.basic,children:[a&&w.jsx(AT,{color:s,style:c.tooltip.chip}),d!==void 0?w.jsxs("span",{children:[n,": ",w.jsx("strong",{children:""+d})]}):n]})}return w.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),dre={width:"100%",borderCollapse:"collapse"},RT=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():w.jsxs("div",{children:[n&&n,w.jsx("table",{style:pa({},dre,a.tooltip.table),children:w.jsx("tbody",{children:i.map(function(s,l){return w.jsx("tr",{children:s.map(function(c,u){return w.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),w.jsx("div",{style:a.tooltip.container,children:t})):null});RT.displayName="TableTooltip";var $v=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 w.jsx(Yt.line,pa({},u,{fill:"none",style:c}))});$v.displayName="CrosshairLine";var Sv=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}),w.jsxs(w.Fragment,{children:[t&&w.jsx($v,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&w.jsx($v,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Sv.displayName="Crosshair";var jT=m.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Ev={isVisible:!1,position:[null,null],content:null,anchor:null},NT=m.createContext(Ev),fre=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(jT);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},hre=function(){var e=m.useContext(NT);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},pre=function(e){return e.isVisible},mre=function(){var e=hre();return pre(e)?w.jsx(MT,{position:e.position,anchor:e.anchor,children:e.content}):null},gre=function(e){var t=e.container,n=e.children,r=fre(t),i=r.actions,o=r.state;return w.jsx(jT.Provider,{value:i,children:w.jsx(NT.Provider,{value:o,children:n})})},vre=Wi,bre=or,yre=Tr,xre="[object String]";function wre(e){return typeof e=="string"||!bre(e)&&yre(e)&&vre(e)==xre}var _re=wre;const Cre=sn(_re);let yr;typeof window<"u"?yr=window:typeof self<"u"?yr=self:yr=global;let Tv=null,kv=null;const Zw=20,Gm=yr.clearTimeout,Xw=yr.setTimeout,Km=yr.cancelAnimationFrame||yr.mozCancelAnimationFrame||yr.webkitCancelAnimationFrame,Qw=yr.requestAnimationFrame||yr.mozRequestAnimationFrame||yr.webkitRequestAnimationFrame;Km==null||Qw==null?(Tv=Gm,kv=function(t){return Xw(t,Zw)}):(Tv=function([t,n]){Km(t),Gm(n)},kv=function(t){const n=Qw(function(){Gm(r),t()}),r=Xw(function(){Km(n),t()},Zw);return[n,r]});function $re(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(x){const _=x.__resizeTriggers__,y=_.firstElementChild,C=_.lastElementChild,b=y.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,b.style.width=y.offsetWidth+1+"px",b.style.height=y.offsetHeight+1+"px",y.scrollLeft=y.scrollWidth,y.scrollTop=y.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__&&Tv(this.__resizeRAF__),this.__resizeRAF__=kv(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(y){y.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 Sre 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=$re(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 Zh(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*",Ere=/^#([0-9a-f]{3,8})$/,Tre=new RegExp(`^rgb\\(${ds},${ds},${ds}\\)$`),kre=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),Ore=new RegExp(`^rgba\\(${ds},${ds},${ds},${Dc}\\)$`),Mre=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${Dc}\\)$`),Are=new RegExp(`^hsl\\(${Dc},${Qr},${Qr}\\)$`),Rre=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};Zh(ol,Ic,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e_,formatHex:e_,formatHex8:jre,formatHsl:Nre,formatRgb:t_,toString:t_});function e_(){return this.rgb().formatHex()}function jre(){return this.rgb().formatHex8()}function Nre(){return IT(this).formatHsl()}function t_(){return this.rgb().formatRgb()}function Ic(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ere.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=kre.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ore.exec(e))?ad(t[1],t[2],t[3],t[4]):(t=Mre.exec(e))?ad(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Are.exec(e))?o_(t[1],t[2]/100,t[3]/100,1):(t=Rre.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 DT(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?DT(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}Zh(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:Dre,formatRgb:i_,toString:i_}));function r_(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function Dre(){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 IT(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 Ire(e,t,n,r){return arguments.length===1?IT(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}Zh(Ar,Ire,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(Zm(e>=240?e-240:e+120,i,r),Zm(e,i,r),Zm(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 Zm(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 Pre=Math.PI/180,Lre=180/Math.PI;var PT=-.14861,mb=1.78277,gb=-.29227,Xh=-.90649,Pc=1.97294,s_=Pc*Xh,l_=Pc*mb,c_=mb*gb-Xh*PT;function Fre(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof Nn||(e=DT(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)/Xh,s=Math.sqrt(a*a+o*o)/(Pc*i*(1-i)),l=s?Math.atan2(a,o)*Lre-120:NaN;return new ia(l<0?l+360:l,s,i,e.opacity)}function oi(e,t,n,r){return arguments.length===1?Fre(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}Zh(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)*Pre,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*(PT*r+mb*i)),255*(t+n*(gb*r+Xh*i)),255*(t+n*(Pc*r)),this.opacity)}}));function zre(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 zre((n-r/t)*t,a,i,o,s)}}const Qh=e=>()=>e;function LT(e,t){return function(n){return e+n*t}}function Wre(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 Ure(e,t){var n=t-e;return n?LT(e,n>180||n<-180?n-360*Math.round(n/360):n):Qh(isNaN(e)?t:e)}function Hre(e){return(e=+e)==1?fs:function(t,n){return n-t?Wre(t,n,e):Qh(isNaN(t)?n:t)}}function fs(e,t){var n=t-e;return n?LT(e,n):Qh(isNaN(e)?t:e)}const u_=function e(t){var n=Hre(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 Vre(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 qre=Vre(Bre);function Yre(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 Gre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Kre(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 Zre(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 Xre(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 Ov=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xm=new RegExp(Ov.source,"g");function Qre(e){return function(){return e}}function Jre(e){return function(t){return e(t)+""}}function FT(e,t){var n=Ov.lastIndex=Xm.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Ov.exec(e))&&(i=Xm.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=Xm.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Jre(l[0].x):Qre(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"?Qh(t):(n==="number"?Lc:n==="string"?(r=Ic(t))?(t=r,u_):FT:t instanceof Ic?u_:t instanceof Date?Zre:Gre(t)?Yre:Array.isArray(t)?Kre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Xre:Lc)(e,t)}function zT(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function BT(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)}BT(Ure);var bb=BT(fs),eie="__lodash_hash_undefined__";function tie(e){return this.__data__.set(e,eie),this}var nie=tie;function rie(e){return this.__data__.has(e)}var iie=rie,oie=eb,aie=nie,sie=iie;function xf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oie;++t<n;)this.add(e[t])}xf.prototype.add=xf.prototype.push=aie;xf.prototype.has=sie;var yb=xf;function lie(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 cie=lie;function uie(e){return e!==e}var die=uie;function fie(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var hie=fie,pie=cie,mie=die,gie=hie;function vie(e,t,n){return t===t?gie(e,t,n):pie(e,mie,n)}var bie=vie,yie=bie;function xie(e,t){var n=e==null?0:e.length;return!!n&&yie(e,t,0)>-1}var WT=xie;function wie(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 UT=wie;function _ie(e,t){return e.has(t)}var xb=_ie,Cie=yb,$ie=WT,Sie=UT,Eie=Kh,Tie=tl,kie=xb,Oie=200;function Mie(e,t,n,r){var i=-1,o=$ie,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Eie(t,Tie(n))),r?(o=Sie,a=!1):t.length>=Oie&&(o=kie,a=!1,t=new Cie(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 Aie=Mie,Rie=Aie,jie=ub,Nie=pT,Die=jie(function(e,t){return Nie(e)?Rie(e,t):[]}),Iie=Die;const HT=sn(Iie);function mt(e){return function(){return e}}const d_=Math.abs,On=Math.atan2,Lo=Math.cos,Pie=Math.max,Qm=Math.min,Hr=Math.sin,rs=Math.sqrt,An=1e-12,Fc=Math.PI,wf=Fc/2,Td=2*Fc;function Lie(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 Mv=Math.PI,Av=2*Mv,Wo=1e-6,Fie=Av-Wo;function VT(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zie(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return VT;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?VT:zie(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),y=o*Math.tan((Mv-Math.acos((g+f-v)/(2*x*_)))/2),C=y/_,b=y/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%Av+Av),f>Fie?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>=Mv)},${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 Wie(e){return e.innerRadius}function Uie(e){return e.outerRadius}function Hie(e){return e.startAngle}function Vie(e){return e.endAngle}function qie(e){return e&&e.padAngle}function Yie(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,y=g-h,C=_*_+y*y,b=i-o,$=f*g-p*h,E=(y<0?-1:1)*rs(Pie(0,b*b*C-$*$)),k=($*y-_*E)/C,O=(-$*_-y*E)/C,j=($*y+_*E)/C,S=(-$*_+y*E)/C,T=k-v,A=O-x,D=j-v,R=S-x;return T*T+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 Gie(){var e=Wie,t=Uie,n=mt(0),r=null,i=Hie,o=Vie,a=qie,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>Td-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,y=g,C=p,b=g,$=v,E=v,k=a.apply(this,arguments)/2,O=k>An&&(r?+r.apply(this,arguments):rs(f*f+h*h)),j=Qm(d_(h-f)/2,+n.apply(this,arguments)),S=j,T=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),(E-=M*2)>An?(M*=x?1:-1,_+=M,y-=M):(E=0,_=y=(p+g)/2)}var I=h*Lo(_),z=h*Hr(_),W=f*Lo(b),P=f*Hr(b);if(j>An){var B=h*Lo(y),q=h*Hr(y),H=f*Lo(C),Y=f*Hr(C),X;if(v<Fc)if(X=Yie(I,z,H,Y,B,q,W,P)){var J=I-X[0],ee=z-X[1],U=B-X[0],L=q-X[1],F=1/Hr(Lie((J*U+ee*L)/(rs(J*J+ee*ee)*rs(U*U+L*L)))/2),V=rs(X[0]*X[0]+X[1]*X[1]);S=Qm(j,(f-V)/(F-1)),T=Qm(j,(h-V)/(F+1))}else S=T=0}E>An?T>An?(A=ld(H,Y,I,z,h,T,x),D=ld(B,q,W,P,h,T,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),T<j?s.arc(A.cx,A.cy,T,On(A.y01,A.x01),On(D.y01,D.x01),!x):(s.arc(A.cx,A.cy,T,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,T,On(D.y11,D.x11),On(D.y01,D.x01),!x))):(s.moveTo(I,z),s.arc(0,0,h,_,y,!x)):s.moveTo(I,z),!(f>An)||!($>An)?s.lineTo(W,P):S>An?(A=ld(W,P,B,q,f,-S,x),D=ld(I,z,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 Jh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qT(e){this._context=e}qT.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 qT(e)}function YT(e){return e[0]}function GT(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?YT:mt(e),t=typeof t=="function"?t:t===void 0?GT:mt(t);function s(l){var c,u=(l=Jh(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 Kie(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?YT:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?GT:mt(+n);function c(d){var f,h,p,g=(d=Jh(d)).length,v,x=!1,_,y=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(y[p],C[p]);s.lineEnd(),s.areaEnd()}x&&(y[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):y[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 Zie(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Xie(e){return e}function Qie(){var e=Xie,t=Zie,n=null,r=mt(0),i=mt(Td),o=mt(0);function a(s){var l,c=(s=Jh(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),g=+r.apply(this,arguments),v=Math.min(Td,Math.max(-Td,i.apply(this,arguments)-g)),x,_=Math.min(Math.abs(v)/c,o.apply(this,arguments)),y=_*(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*y)/f:0;l<c;++l,g=x)u=h[l],C=p[u],x=g+(C>0?C*d:0)+y,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 ep(e){this._context=e}ep.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 Jie(e){return new ep(e)}function KT(e){this._context=e}KT.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 eoe(e){return new KT(e)}function ZT(e){this._context=e}ZT.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 toe(e){return new ZT(e)}function XT(e,t){this._basis=new ep(e),this._beta=t}XT.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 noe=function e(t){function n(r){return t===1?new ep(r):new XT(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 roe=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 ioe=function e(t){function n(r){return new Sb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Eb(e,t){this._context=e,this._k=(1-t)/6}Eb.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 ooe=function e(t){function n(r){return new Eb(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tb(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 QT(e,t){this._context=e,this._alpha=t}QT.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:Tb(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 QT(r,t):new $b(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function JT(e,t){this._context=e,this._alpha=t}JT.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:Tb(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 JT(r,t):new Sb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function e5(e,t){this._context=e,this._alpha=t}e5.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:Tb(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 loe=function e(t){function n(r){return t?new e5(r,t):new Eb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function t5(e){this._context=e}t5.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 coe(e){return new t5(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 Jm(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:Jm(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,Jm(this,m_(this,n=p_(this,e,t)),n);break;default:Jm(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 n5(e){this._context=new r5(e)}(n5.prototype=Object.create($f.prototype)).point=function(e,t){$f.prototype.point.call(this,t,e)};function r5(e){this._context=e}r5.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 uoe(e){return new $f(e)}function doe(e){return new n5(e)}function i5(e){this._context=e}i5.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 foe(e){return new i5(e)}function tp(e,t){this._context=e,this._t=t}tp.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 hoe(e){return new tp(e,.5)}function poe(e){return new tp(e,0)}function moe(e){return new tp(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 goe(e,t){return e[t]}function voe(e){const t=[];return t.key=e,t}function boe(){var e=mt([]),t=b_,n=v_,r=goe;function i(o){var a=Array.from(e.apply(this,arguments),voe),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=Jh(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 yoe(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 xoe(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===xoe?e:woe,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 woe(){return 0}function _oe(e){return e===null?NaN:+e}const Coe=kb(kd),$oe=Coe.right;kb(_oe).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(Soe(this,t),n)}delete(t){return super.delete(Eoe(this,t))}}function x_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Soe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Eoe({_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 koe=Math.sqrt(50),Ooe=Math.sqrt(10),Moe=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>=koe?10:o>=Ooe?5:o>=Moe?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 Rv(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 jv(e,t,n){return t=+t,e=+e,n=+n,Sf(e,t,n)[2]}function Nv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?jv(t,e,n):jv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Aoe(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=Aoe(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 o5(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return o5(t())},e}function Roe(){return o5(Ob.apply(null,arguments).paddingInner(1))}function joe(e){return function(){return e}}function Noe(e){return+e}var __=[0,1];function is(e){return e}function Dv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:joe(isNaN(t)?NaN:.5)}function Doe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ioe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Dv(i,r),o=n(a,o)):(r=Dv(r,i),o=n(o,a)),function(s){return o(r(s))}}function Poe(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]=Dv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=$oe(e,s,1,r)-1;return o[l](i[l](s))}}function np(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=Doe(e[0],e[f-1])),s=f>2?Poe:Ioe,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,Noe),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 a5(){return Mb()(is,is)}function Loe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ef(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=Ef(Math.abs(e)),e?e[1]:NaN}function Foe(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 zoe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Boe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zc(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]})}zc.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 Woe(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 s5;function Uoe(e,t){var n=Ef(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(s5=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")+Ef(e,Math.max(0,t+o-1))[0]}function C_(e,t){var n=Ef(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:Loe,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:Uoe,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 E_=Array.prototype.map,T_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Hoe(e){var t=e.grouping===void 0||e.thousands===void 0?S_:Foe(E_.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_:zoe(E_.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=zc(d);var f=d.fill,h=d.align,p=d.sign,g=d.symbol,v=d.zero,x=d.width,_=d.comma,y=d.precision,C=d.trim,b=d.type;b==="n"?(_=!0,b="g"):$_[b]||(y===void 0&&(y=12),C=!0,b="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var $=g==="$"?n:g==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",E=g==="$"?r:/[%p]/.test(b)?a:"",k=$_[b],O=/[defgprs%]/.test(b);y=y===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function j(S){var T=$,A=E,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),y),C&&(S=Woe(S)),I&&+S==0&&p!=="+"&&(I=!1),T=(I?p==="("?p:s:p==="-"||p==="("?"":p)+T,A=(b==="s"?T_[8+s5/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 z=T.length+S.length+A.length,W=z<x?new Array(x-z+1).join(f):"";switch(_&&v&&(S=t(W+S,W.length?x-A.length:1/0),W=""),h){case"<":S=T+S+A+W;break;case"=":S=T+W+S+A;break;case"^":S=W.slice(0,z=W.length>>1)+T+S+A+W.slice(z);break;default:S=W+T+S+A;break}return o(S)}return j.toString=function(){return d+""},j}function u(d,f){var h=c((d=zc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Ds(f)/3)))*3,g=Math.pow(10,-p),v=T_[8+p/3];return function(x){return h(g*x)+v}}return{format:c,formatPrefix:u}}var cd,Su,l5;Voe({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Voe(e){return cd=Hoe(e),Su=cd.format,l5=cd.formatPrefix,cd}function qoe(e){return Math.max(0,-Ds(Math.abs(e)))}function Yoe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(e)))}function Goe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ds(t)-Ds(e))+1}function Koe(e,t,n,r){var i=Nv(e,t,n),o;switch(r=zc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Yoe(i,a))&&(r.precision=o),l5(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Goe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qoe(i))&&(r.precision=o-(r.type==="%")*2);break}}return Su(r)}function c5(e){var t=e.domain;return e.ticks=function(n){var r=t();return Rv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Koe(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=jv(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 Tf(){var e=a5();return e.copy=function(){return np(e,Tf())},Sa.apply(e,arguments),c5(e)}function u5(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 Zoe(e){return-Math.log(-e)}function Xoe(e){return-Math.exp(-e)}function Qoe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Joe(e){return e===10?Qoe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eae(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 tae(e){const t=e(k_,O_),n=t.domain;let r=10,i,o;function a(){return i=eae(r),o=Joe(r),n()[0]<0?(i=M_(i),o=M_(o),e(Zoe,Xoe)):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=Rv(c,u,v))}else x=Rv(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=zc(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(u5(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function d5(){const e=tae(Mb()).domain([1,10]);return e.copy=()=>np(e,d5()).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 nae(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},c5(n)}function f5(){var e=nae(Mb());return e.copy=function(){return np(e,f5()).constant(e.constant())},Sa.apply(e,arguments)}const eg=new Date,tg=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)=>(eg.setTime(+o),tg.setTime(+a),e(eg),e(tg),Math.floor(n(eg,tg))),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 Ei=1e3,br=Ei*60,Ti=br*60,Fi=Ti*24,Rb=Fi*7,j_=Fi*30,ng=Fi*365,Xo=wn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCSeconds());Xo.range;const jb=wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei)},(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()*Ei-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,e=>e.getHours());Db.range;const Ib=wn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,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 h5=wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fi,e=>e.getUTCDate()-1);h5.range;const p5=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));p5.range;function Ea(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=Ea(0),rae=Ea(1),iae=Ea(2),oae=Ea(3),aae=Ea(4),sae=Ea(5),lae=Ea(6);Lb.range;rae.range;iae.range;oae.range;aae.range;sae.range;lae.range;function Ta(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=Ta(0),cae=Ta(1),uae=Ta(2),dae=Ta(3),fae=Ta(4),hae=Ta(5),pae=Ta(6);Fb.range;cae.range;uae.range;dae.range;fae.range;hae.range;pae.range;const zb=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());zb.range;const Bb=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());Bb.range;const rp=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());rp.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)});rp.range;const ip=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());ip.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)});ip.range;function m5(e,t,n,r,i,o){const a=[[Xo,1,Ei],[Xo,5,5*Ei],[Xo,15,15*Ei],[Xo,30,30*Ei],[o,1,br],[o,5,5*br],[o,15,15*br],[o,30,30*br],[i,1,Ti],[i,3,3*Ti],[i,6,6*Ti],[i,12,12*Ti],[r,1,Fi],[r,2,2*Fi],[n,1,Rb],[t,1,j_],[t,3,3*j_],[e,1,ng]];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(Nv(c/ng,u/ng,d));if(h===0)return kf.every(Math.max(Nv(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[mae,gae]=m5(ip,Bb,Fb,p5,Ib,Nb),[vae,bae]=m5(rp,zb,Lb,Pb,Db,jb);var rg=new Date,ig=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 rg.setTime(+o),ig.setTime(+a),e(rg),e(ig),Math.floor(n(rg,ig))},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 Bc=gn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Bc.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}):Bc};Bc.range;var Of=1e3,ga=6e4,Mf=36e5,g5=864e5,v5=6048e5,Iv=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()});Iv.range;var b5=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()});b5.range;var y5=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()});y5.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)/g5},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)/v5})}var Af=ka(0),Wc=ka(1),x5=ka(2),w5=ka(3),va=ka(4),_5=ka(5),C5=ka(6);Af.range;Wc.range;x5.range;w5.range;va.range;_5.range;C5.range;var $5=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()});$5.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 S5=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()});S5.range;var E5=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()});E5.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)/g5},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)/v5})}var Rf=Oa(0),Uc=Oa(1),T5=Oa(2),k5=Oa(3),ba=Oa(4),O5=Oa(5),M5=Oa(6);Rf.range;Uc.range;T5.range;k5.range;ba.range;O5.range;M5.range;var A5=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()});A5.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 og(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 ag(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 yae(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),y={a:I,A:z,b:W,B:P,c:null,d:F_,e:F_,f:Wae,g:Qae,G:ese,H:Fae,I:zae,j:Bae,L:R5,m:Uae,M:Hae,p:B,q,Q:W_,s:U_,S:Vae,u:qae,U:Yae,V:Gae,w:Kae,W:Zae,x:null,X:null,y:Xae,Y:Jae,Z:tse,"%":B_},C={a:H,A:Y,b:X,B:J,c:null,d:z_,e:z_,f:ose,g:mse,G:vse,H:nse,I:rse,j:ise,L:N5,m:ase,M:sse,p:ee,q:U,Q:W_,s:U_,S:lse,u:cse,U:use,V:dse,w:fse,W:hse,x:null,X:null,y:pse,Y:gse,Z:bse,"%":B_},b={a:j,A:S,b:T,B:A,c:D,d:P_,e:P_,f:Dae,g:I_,G:D_,H:L_,I:L_,j:Aae,L:Nae,m:Mae,M:Rae,p:O,q:Oae,Q:Pae,s:Lae,S:jae,u:$ae,U:Sae,V:Eae,w:Cae,W:Tae,x:R,X:M,y:I_,Y:D_,Z:kae,"%":Iae};y.x=$(n,y),y.X=$(r,y),y.c=$(t,y),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(L,F){return function(V){var N=[],Q=-1,G=0,K=L.length,se,ne,re;for(V instanceof Date||(V=new Date(+V));++Q<K;)L.charCodeAt(Q)===37&&(N.push(L.slice(G,Q)),(ne=N_[se=L.charAt(++Q)])!=null?se=L.charAt(++Q):ne=se==="e"?" ":"0",(re=F[se])&&(se=re(V,ne)),N.push(se),G=Q+1);return N.push(L.slice(G,Q)),N.join("")}}function E(L,F){return function(V){var N=kl(1900,void 0,1),Q=k(N,L,V+="",0),G,K;if(Q!=V.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(F&&!("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?(G=ag(kl(N.y,0,1)),K=G.getUTCDay(),G=K>4||K===0?Uc.ceil(G):Uc(G),G=Ub.offset(G,(N.V-1)*7),N.y=G.getUTCFullYear(),N.m=G.getUTCMonth(),N.d=G.getUTCDate()+(N.w+6)%7):(G=og(kl(N.y,0,1)),K=G.getDay(),G=K>4||K===0?Wc.ceil(G):Wc(G),G=Wb.offset(G,(N.V-1)*7),N.y=G.getFullYear(),N.m=G.getMonth(),N.d=G.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),K="Z"in N?ag(kl(N.y,0,1)).getUTCDay():og(kl(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(K+5)%7:N.w+N.U*7-(K+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,ag(N)):og(N)}}function k(L,F,V,N){for(var Q=0,G=F.length,K=V.length,se,ne;Q<G;){if(N>=K)return-1;if(se=F.charCodeAt(Q++),se===37){if(se=F.charAt(Q++),ne=b[se in N_?F.charAt(Q++):se],!ne||(N=ne(L,V,N))<0)return-1}else if(se!=V.charCodeAt(N++))return-1}return N}function O(L,F,V){var N=c.exec(F.slice(V));return N?(L.p=u.get(N[0].toLowerCase()),V+N[0].length):-1}function j(L,F,V){var N=h.exec(F.slice(V));return N?(L.w=p.get(N[0].toLowerCase()),V+N[0].length):-1}function S(L,F,V){var N=d.exec(F.slice(V));return N?(L.w=f.get(N[0].toLowerCase()),V+N[0].length):-1}function T(L,F,V){var N=x.exec(F.slice(V));return N?(L.m=_.get(N[0].toLowerCase()),V+N[0].length):-1}function A(L,F,V){var N=g.exec(F.slice(V));return N?(L.m=v.get(N[0].toLowerCase()),V+N[0].length):-1}function D(L,F,V){return k(L,t,F,V)}function R(L,F,V){return k(L,n,F,V)}function M(L,F,V){return k(L,r,F,V)}function I(L){return a[L.getDay()]}function z(L){return o[L.getDay()]}function W(L){return l[L.getMonth()]}function P(L){return s[L.getMonth()]}function B(L){return i[+(L.getHours()>=12)]}function q(L){return 1+~~(L.getMonth()/3)}function H(L){return a[L.getUTCDay()]}function Y(L){return o[L.getUTCDay()]}function X(L){return l[L.getUTCMonth()]}function J(L){return s[L.getUTCMonth()]}function ee(L){return i[+(L.getUTCHours()>=12)]}function U(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var F=$(L+="",y);return F.toString=function(){return L},F},parse:function(L){var F=E(L+="",!1);return F.toString=function(){return L},F},utcFormat:function(L){var F=$(L+="",C);return F.toString=function(){return L},F},utcParse:function(L){var F=E(L+="",!0);return F.toString=function(){return L},F}}}var N_={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,xae=/^%/,wae=/[\\^$*+?|[\]().{}]/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 _ae(e){return e.replace(wae,"\\$&")}function Ol(e){return new RegExp("^(?:"+e.map(_ae).join("|")+")","i")}function Ml(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Cae(e,t,n){var r=Sn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $ae(e,t,n){var r=Sn.exec(t.slice(n,n+1));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.U=+r[0],n+r[0].length):-1}function Eae(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 kae(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 Oae(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 Mae(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 Aae(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 Rae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=Sn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Nae(e,t,n){var r=Sn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dae(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 Iae(e,t,n){var r=xae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pae(e,t,n){var r=Sn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lae(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 Fae(e,t){return kt(e.getHours(),t,2)}function zae(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 R5(e,t){return kt(e.getMilliseconds(),t,3)}function Wae(e,t){return R5(e,t)+"000"}function Uae(e,t){return kt(e.getMonth()+1,t,2)}function Hae(e,t){return kt(e.getMinutes(),t,2)}function Vae(e,t){return kt(e.getSeconds(),t,2)}function qae(e){var t=e.getDay();return t===0?7:t}function Yae(e,t){return kt(Af.count(_o(e)-1,e),t,2)}function j5(e){var t=e.getDay();return t>=4||t===0?va(e):va.ceil(e)}function Gae(e,t){return e=j5(e),kt(va.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function Kae(e){return e.getDay()}function Zae(e,t){return kt(Wc.count(_o(e)-1,e),t,2)}function Xae(e,t){return kt(e.getFullYear()%100,t,2)}function Qae(e,t){return e=j5(e),kt(e.getFullYear()%100,t,2)}function Jae(e,t){return kt(e.getFullYear()%1e4,t,4)}function ese(e,t){var n=e.getDay();return e=n>=4||n===0?va(e):va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function tse(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function z_(e,t){return kt(e.getUTCDate(),t,2)}function nse(e,t){return kt(e.getUTCHours(),t,2)}function rse(e,t){return kt(e.getUTCHours()%12||12,t,2)}function ise(e,t){return kt(1+Ub.count(Co(e),e),t,3)}function N5(e,t){return kt(e.getUTCMilliseconds(),t,3)}function ose(e,t){return N5(e,t)+"000"}function ase(e,t){return kt(e.getUTCMonth()+1,t,2)}function sse(e,t){return kt(e.getUTCMinutes(),t,2)}function lse(e,t){return kt(e.getUTCSeconds(),t,2)}function cse(e){var t=e.getUTCDay();return t===0?7:t}function use(e,t){return kt(Rf.count(Co(e)-1,e),t,2)}function D5(e){var t=e.getUTCDay();return t>=4||t===0?ba(e):ba.ceil(e)}function dse(e,t){return e=D5(e),kt(ba.count(Co(e),e)+(Co(e).getUTCDay()===4),t,2)}function fse(e){return e.getUTCDay()}function hse(e,t){return kt(Uc.count(Co(e)-1,e),t,2)}function pse(e,t){return kt(e.getUTCFullYear()%100,t,2)}function mse(e,t){return e=D5(e),kt(e.getUTCFullYear()%100,t,2)}function gse(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function vse(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ba(e):ba.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function bse(){return"+0000"}function B_(){return"%"}function W_(e){return+e}function U_(e){return Math.floor(+e/1e3)}var qa,op,I5,P5,L5;yse({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 yse(e){return qa=yae(e),op=qa.format,I5=qa.parse,P5=qa.utcFormat,L5=qa.utcParse,qa}function xse(e){return new Date(e)}function wse(e){return e instanceof Date?+e:+new Date(+e)}function Hb(e,t,n,r,i,o,a,s,l,c){var u=a5(),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"),y=c("%B"),C=c("%Y");function b($){return(l($)<$?h:s($)<$?p:a($)<$?g:o($)<$?v:r($)<$?i($)<$?x:_:n($)<$?y:C)($)}return u.invert=function($){return new Date(d($))},u.domain=function($){return arguments.length?f(Array.from($,wse)):f().map(xse)},u.ticks=function($){var E=f();return e(E[0],E[E.length-1],$??10)},u.tickFormat=function($,E){return E==null?b:c(E)},u.nice=function($){var E=f();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?f(u5(E,$)):u},u.copy=function(){return np(u,Hb(e,t,n,r,i,o,a,s,l,c))},u}function _se(){return Sa.apply(Hb(vae,bae,rp,zb,Lb,Pb,Db,jb,Xo,op).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Cse(){return Sa.apply(Hb(mae,gae,ip,Bb,Fb,h5,Ib,Nb,Xo,P5).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 $se=lt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Sse=lt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Ese=lt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Tse=lt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),kse=lt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Ose=lt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Mse=lt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ase=lt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),F5=lt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Rse=lt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Gt=e=>qre(e[e.length-1]);var ap=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(lt);const jse=Gt(ap);var sp=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(lt);const Nse=Gt(sp);var lp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(lt);const Dse=Gt(lp);var cp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(lt);const Ise=Gt(cp);var up=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(lt);const Pse=Gt(up);var dp=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(lt);const Lse=Gt(dp);var fp=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(lt);const Fse=Gt(fp);var hp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(lt);const zse=Gt(hp);var pp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(lt);const Bse=Gt(pp);var mp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(lt);const Wse=Gt(mp);var gp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(lt);const Use=Gt(gp);var vp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(lt);const Hse=Gt(vp);var bp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(lt);const Vse=Gt(bp);var yp=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(lt);const qse=Gt(yp);var xp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(lt);const Yse=Gt(xp);var wp=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(lt);const Gse=Gt(wp);var _p=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(lt);const Kse=Gt(_p);var Cp=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(lt);const Zse=Gt(Cp);var $p=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(lt);const Xse=Gt($p);var Sp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(lt);const Qse=Gt(Sp);var Ep=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(lt);const Jse=Gt(Ep);var Tp=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(lt);const ele=Gt(Tp);var kp=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(lt);const tle=Gt(kp);var Op=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(lt);const nle=Gt(Op);var Mp=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(lt);const rle=Gt(Mp);var Ap=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(lt);const ile=Gt(Ap);var Rp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(lt);const ole=Gt(Rp);function ale(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 sle=bb(oi(300,.5,0),oi(-240,.5,1));var lle=bb(oi(-100,.75,.35),oi(80,1.5,.8)),cle=bb(oi(260,.75,.35),oi(80,1.5,.8)),ud=oi();function ule(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(),dle=Math.PI/3,fle=Math.PI*2/3;function hle(e){var t;return e=(.5-e)*Math.PI,dd.r=255*(t=Math.sin(e))*t,dd.g=255*(t=Math.sin(e+dle))*t,dd.b=255*(t=Math.sin(e+fle))*t,dd+""}function ple(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 jp(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const mle=jp(lt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var gle=jp(lt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vle=jp(lt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ble=jp(lt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function yle(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var z5=yle;const Ae=sn(z5);var xle=$u,wle=TT,_le=rl;function Cle(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=xle(e,a);n(s,a)&&wle(o,_le(a,e),s)}return o}var $le=Cle;function Sle(e,t){return e!=null&&t in Object(e)}var Ele=Sle,Tle=rl,kle=Uh,Ole=or,Mle=qh,Ale=ob,Rle=il;function jle(e,t,n){t=Tle(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Rle(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&&Ale(i)&&Mle(a,i)&&(Ole(e)||kle(e)))}var Nle=jle,Dle=Ele,Ile=Nle;function Ple(e,t){return e!=null&&Ile(e,t,Dle)}var B5=Ple,Lle=$le,Fle=B5;function zle(e,t){return Lle(e,t,function(n,r){return Fle(e,r)})}var Ble=zle;function Wle(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Vb=Wle,H_=Zs,Ule=Uh,Hle=or,V_=H_?H_.isConcatSpreadable:void 0;function Vle(e){return Hle(e)||Ule(e)||!!(V_&&e&&e[V_])}var qle=Vle,Yle=Vb,Gle=qle;function W5(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Gle),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?W5(s,t-1,n,r,i):Yle(i,s):r||(i[i.length]=s)}return i}var U5=W5,Kle=U5;function Zle(e){var t=e==null?0:e.length;return t?Kle(e,1):[]}var Xle=Zle,Qle=Xle,Jle=yT,ece=xT;function tce(e){return ece(Jle(e,void 0,Qle),e+"")}var H5=tce,nce=Ble,rce=H5,ice=rce(function(e,t){return e==null?{}:nce(e,t)}),oce=ice;const ace=sn(oce);function sce(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 lce=sce,cce=yb,uce=lce,dce=xb,fce=1,hce=2;function pce(e,t,n,r,i,o){var a=n&fce,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&hce?new cce: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(!uce(t,function(x,_){if(!dce(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 V5=pce;function mce(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var gce=mce;function vce(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var qb=vce,q_=Zs,Y_=lT,bce=_u,yce=V5,xce=gce,wce=qb,_ce=1,Cce=2,$ce="[object Boolean]",Sce="[object Date]",Ece="[object Error]",Tce="[object Map]",kce="[object Number]",Oce="[object RegExp]",Mce="[object Set]",Ace="[object String]",Rce="[object Symbol]",jce="[object ArrayBuffer]",Nce="[object DataView]",G_=q_?q_.prototype:void 0,sg=G_?G_.valueOf:void 0;function Dce(e,t,n,r,i,o,a){switch(n){case Nce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jce:return!(e.byteLength!=t.byteLength||!o(new Y_(e),new Y_(t)));case $ce:case Sce:case kce:return bce(+e,+t);case Ece:return e.name==t.name&&e.message==t.message;case Oce:case Ace:return e==t+"";case Tce:var s=xce;case Mce:var l=r&_ce;if(s||(s=wce),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Cce,a.set(e,t);var u=yce(s(e),s(t),r,i,o,a);return a.delete(e),u;case Rce:if(sg)return sg.call(e)==sg.call(t)}return!1}var Ice=Dce,Pce=Vb,Lce=or;function Fce(e,t,n){var r=t(e);return Lce(e)?r:Pce(r,n(e))}var q5=Fce;function zce(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 Y5=zce;function Bce(){return[]}var G5=Bce,Wce=Y5,Uce=G5,Hce=Object.prototype,Vce=Hce.propertyIsEnumerable,K_=Object.getOwnPropertySymbols,qce=K_?function(e){return e==null?[]:(e=Object(e),Wce(K_(e),function(t){return Vce.call(e,t)}))}:Uce,Yb=qce,Yce=dT,Gce=Yce(Object.keys,Object),Kce=Gce,Zce=ib,Xce=Kce,Qce=Object.prototype,Jce=Qce.hasOwnProperty;function eue(e){if(!Zce(e))return Xce(e);var t=[];for(var n in Object(e))Jce.call(e,n)&&n!="constructor"&&t.push(n);return t}var tue=eue,nue=vT,rue=tue,iue=el;function oue(e){return iue(e)?nue(e):rue(e)}var Eu=oue,aue=q5,sue=Yb,lue=Eu;function cue(e){return aue(e,lue,sue)}var K5=cue,Z_=K5,uue=1,due=Object.prototype,fue=due.hasOwnProperty;function hue(e,t,n,r,i,o){var a=n&uue,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:fue.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 y=a?r(_,x,f,t,e,o):r(x,_,f,e,t,o);if(!(y===void 0?x===_||i(x,_,n,r,o):y)){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 pue=hue,mue=$a,gue=ci,vue=mue(gue,"DataView"),bue=vue,yue=$a,xue=ci,wue=yue(xue,"Promise"),_ue=wue,Cue=$a,$ue=ci,Sue=Cue($ue,"Set"),Z5=Sue,Eue=$a,Tue=ci,kue=Eue(Tue,"WeakMap"),Oue=kue,Pv=bue,Lv=J1,Fv=_ue,zv=Z5,Bv=Oue,X5=Wi,al=rT,X_="[object Map]",Mue="[object Object]",Q_="[object Promise]",J_="[object Set]",e4="[object WeakMap]",t4="[object DataView]",Aue=al(Pv),Rue=al(Lv),jue=al(Fv),Nue=al(zv),Due=al(Bv),Uo=X5;(Pv&&Uo(new Pv(new ArrayBuffer(1)))!=t4||Lv&&Uo(new Lv)!=X_||Fv&&Uo(Fv.resolve())!=Q_||zv&&Uo(new zv)!=J_||Bv&&Uo(new Bv)!=e4)&&(Uo=function(e){var t=X5(e),n=t==Mue?e.constructor:void 0,r=n?al(n):"";if(r)switch(r){case Aue:return t4;case Rue:return X_;case jue:return Q_;case Nue:return J_;case Due:return e4}return t});var Np=Uo,lg=Wh,Iue=V5,Pue=Ice,Lue=pue,n4=Np,r4=or,i4=Hh,Fue=lb,zue=1,o4="[object Arguments]",a4="[object Array]",fd="[object Object]",Bue=Object.prototype,s4=Bue.hasOwnProperty;function Wue(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 lg),a||Fue(e)?Iue(e,t,n,r,i,o):Pue(e,t,l,n,r,i,o);if(!(n&zue)){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 lg),i(g,v,n,r,o)}}return f?(o||(o=new lg),Lue(e,t,n,r,i,o)):!1}var Uue=Wue,Hue=Uue,l4=Tr;function Q5(e,t,n,r,i){return e===t?!0:e==null||t==null||!l4(e)&&!l4(t)?e!==e&&t!==t:Hue(e,t,n,r,Q5,i)}var Gb=Q5,Vue=Gb;function que(e,t){return Vue(e,t)}var Yue=que;const Gue=sn(Yue);var J5=m.createContext(),Kue=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=Cre(o)?FE[o]:o;return{animate:r,config:s}},[r,o]);return w.jsx(J5.Provider,{value:a,children:t})},qn=function(){return m.useContext(J5)},Zue=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?m.cloneElement(r,{},t):t},Xue={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 w.jsx(lre,{theme:n,children:w.jsx(Kue,{animate:s,config:l,children:w.jsx(gre,{container:c,children:w.jsxs(Zue,{condition:i,wrapper:w.jsx("div",{style:Xue,ref:c}),children:[t,a&&w.jsx(mre,{})]})})})})},Que=function(e,t){return e.width===t.width&&e.height===t.height},Jue=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:Que})[0];return m.useEffect(function(){i==null||i(a)},[a,i]),w.jsx(w.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 w.jsx(Sre,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return w.jsx(Jue,{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 ede(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 ek(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 tde=["id","colors"],nde=function(e){var t=e.id,n=e.colors,r=ek(e,tde);return w.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 w.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))},tk={linearGradient:nde},Al={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},rde=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),w.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[w.jsx("rect",{width:f,height:f,fill:r}),w.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:o}),d&&w.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},Tu=function(e){return 180*e/Math.PI},ide=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}},ode=function(e){var t=e%360;return t<0&&(t+=360),t},nk={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},ade=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
|
+
`),w.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[w.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),w.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),jl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},sde=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),w.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[w.jsx("rect",{width:f,height:f,fill:o}),w.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&w.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),rk={patternDots:rde,patternLines:ade,patternSquares:sde},lde=["type"],u4=Jr({},tk,rk),cde=m.memo(function(e){var t=e.defs;return!t||t.length<1?null:w.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=ek(n,lde);return u4[r]?m.createElement(u4[r],Jr({key:i.id},i)):null})})}),Dp=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 w.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:[w.jsx(cde,{defs:o}),w.jsx("rect",{width:n,height:r,fill:f.background}),w.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})}),ude=m.memo(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return w.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),dde=m.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?ude: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,y=e.ariaDisabled,C=e.isFocusable,b=C!==void 0&&C,$=e.tabIndex,E=$===void 0?0:$,k=e.onFocus,O=e.onBlur,j=e.testId,S=Ft(),T=qn(),A=T.animate,D=T.config,R=li({transform:"translate("+t+", "+n+")",config:D,immediate:!A}),M=m.useCallback(function(z){k==null||k(a,z)},[k,a]),I=m.useCallback(function(z){O==null||O(a,z)},[O,a]);return w.jsxs(Yt.g,{transform:R.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?E:void 0,"aria-label":g,"aria-labelledby":v,"aria-describedby":x,"aria-disabled":y,"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&&w.jsx("text",{textAnchor:f,y:p,style:ere(S.dots.text),children:u})]})}),fde=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(),y=0,C=0,b=0,$=0;if(r==="y"?(b=i(o),C=t):(y=i(o),$=n),l&&!c){var E=function(k){var O=k.axis,j=k.width,S=k.height,T=k.position,A=k.offsetX,D=k.offsetY,R=k.orientation,M=0,I=0,z=R==="vertical"?-90:0,W="start";if(O==="x")switch(T){case"top-left":M=-A,I=D,W="end";break;case"top":I=-D,W=R==="horizontal"?"middle":"start";break;case"top-right":M=A,I=D,W=R==="horizontal"?"start":"end";break;case"right":M=A,I=S/2,W=R==="horizontal"?"start":"middle";break;case"bottom-right":M=A,I=S-D,W="start";break;case"bottom":I=S+D,W=R==="horizontal"?"middle":"end";break;case"bottom-left":I=S-D,M=-A,W=R==="horizontal"?"end":"start";break;case"left":M=-A,I=S/2,W=R==="horizontal"?"end":"middle"}else switch(T){case"top-left":M=A,I=-D,W="start";break;case"top":M=j/2,I=-D,W=R==="horizontal"?"middle":"start";break;case"top-right":M=j-A,I=-D,W=R==="horizontal"?"end":"start";break;case"right":M=j+A,W=R==="horizontal"?"start":"middle";break;case"bottom-right":M=j-A,I=D,W="end";break;case"bottom":M=j/2,I=D,W=R==="horizontal"?"middle":"end";break;case"bottom-left":M=A,I=D,W=R==="horizontal"?"start":"end";break;case"left":M=-A,W=R==="horizontal"?"end":"middle"}return{x:M,y:I,rotation:z,textAnchor:W}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:g,orientation:x});c=w.jsx("text",{transform:"translate("+E.x+", "+E.y+") rotate("+E.rotation+")",textAnchor:E.textAnchor,dominantBaseline:"central",style:s,children:l})}return w.jsxs("g",{transform:"translate("+y+", "+b+")",children:[w.jsx("line",{x1:0,x2:C,y1:0,y2:$,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:a}),c]})}),ik=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 w.jsx(fde,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 FT(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 Wv={basis:Jie,basisClosed:eoe,basisOpen:toe,bundle:noe,cardinal:roe,cardinalClosed:ioe,cardinalOpen:ooe,catmullRom:aoe,catmullRomClosed:soe,catmullRomOpen:loe,linear:_b,linearClosed:coe,monotoneX:uoe,monotoneY:doe,natural:foe,step:hoe,stepAfter:moe,stepBefore:poe},Zb=Object.keys(Wv);Zb.filter(function(e){return e.endsWith("Closed")});HT(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");HT(Zb,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var ok=function(e){if(!Wv[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Wv[e]};Ae(ap),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(Tp),Ae(kp),Ae(Op),Ae(Rp),Ae(Mp),Ae(Ap),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Ep);Ae(ap),Ae(sp),Ae(lp),Ae(cp),Ae(up),Ae(dp),Ae(fp),Ae(hp),Ae(pp),Ae(Tp),Ae(kp),Ae(Op),Ae(Rp),Ae(Mp),Ae(Ap),Ae(mp),Ae(gp),Ae(vp),Ae(bp),Ae(yp),Ae(xp),Ae(wp),Ae(_p),Ae(Cp),Ae($p),Ae(Sp),Ae(Ep);Zo(F5);var ak={top:0,right:0,bottom:0,left:0},Ra=function(e,t,n){return n===void 0&&(n={}),m.useMemo(function(){var r=Jr({},ak,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},hde=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]},pde=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?op(e.slice("5")):Su(e):function(t){return""+t}},Is=function(e){return m.useMemo(function(){return pde(e)},[e])},mde=function(e,t){var n=Q1(e)?e:function(r){return ii(r,e)};return n},sk=function(e){return Q1(e)?e:function(t){return ii(t,e)}},Oi=function(e){return m.useMemo(function(){return sk(e)},[e])},lk=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},gde=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},ck=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]},vde=Object.keys(tk),bde=Object.keys(rk),yde=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 Gue(ace(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(yde(_,f,o)){var y=e.find(function(S){return S.id===x});if(y){if(bde.includes(y.type))if(y.background==="inherit"||y.color==="inherit"){var C=ii(f,s),b=y.background,$=y.color,E=x;y.background==="inherit"&&(E=E+".bg."+C,b=C),y.color==="inherit"&&(E=E+".fg."+C,$=C),Bl(f,c,"url(#"+E+")"),d[E]||(u.push(Jr({},y,{id:E,background:b,color:$})),d[E]=1)}else Bl(f,c,"url(#"+x+")");else if(vde.includes(y.type))if(y.colors.map(function(S){return S.color}).includes("inherit")){var k=ii(f,s),O=x,j=Jr({},y,{colors:y.colors.map(function(S,T){return S.color!=="inherit"?S:(O=O+"."+T+"."+k,Jr({},S,{color:S.color==="inherit"?k:S.color}))})});j.id=O,Bl(f,c,"url(#"+O+")"),d[O]||(u.push(j),d[O]=1)}else Bl(f,c,"url(#"+x+")")}return 1}},g=ede(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 xde=["style","children"],wde=["outlineWidth","outlineColor","outlineOpacity"],sl=function(e){var t=e.style,n=e.children,r=d4(e,xde),i=t.outlineWidth,o=t.outlineColor,a=t.outlineOpacity,s=d4(t,wde);return w.jsxs(w.Fragment,{children:[i>0&&w.jsx(Yt.text,tc({},r,{style:tc({},s,{strokeWidth:2*i,stroke:o,strokeOpacity:a,strokeLinejoin:"round"}),children:n})),w.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 _de(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 uk={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:$se,accent:Sse,dark2:Ese,paired:Tse,pastel1:kse,pastel2:Ose,set1:Mse,set2:Ase,set3:F5,tableau10:Rse},Cde=Object.keys(uk),dk={brown_blueGreen:ap,purpleRed_green:sp,pink_yellowGreen:lp,purple_orange:cp,red_blue:up,red_grey:dp,red_yellow_blue:fp,red_yellow_green:hp,spectral:pp},$de=Object.keys(dk),Sde={brown_blueGreen:jse,purpleRed_green:Nse,pink_yellowGreen:Dse,purple_orange:Ise,red_blue:Pse,red_grey:Lse,red_yellow_blue:Fse,red_yellow_green:zse,spectral:Bse},fk={blues:Tp,greens:kp,greys:Op,oranges:Rp,purples:Mp,reds:Ap,blue_green:mp,blue_purple:gp,green_blue:vp,orange_red:bp,purple_blue_green:yp,purple_blue:xp,purple_red:wp,red_purple:_p,yellow_green_blue:Cp,yellow_green:$p,yellow_orange_brown:Sp,yellow_orange_red:Ep},Ede=Object.keys(fk),Tde={blues:ele,greens:tle,greys:nle,oranges:ole,purples:rle,reds:ile,turbo:ple,viridis:mle,inferno:vle,magma:gle,plasma:ble,cividis:ale,warm:lle,cool:cle,cubehelixDefault:sle,blue_green:Wse,blue_purple:Use,green_blue:Hse,orange_red:Vse,purple_blue_green:qse,purple_blue:Yse,purple_red:Gse,red_purple:Kse,yellow_green_blue:Zse,yellow_green:Xse,yellow_orange_brown:Qse,yellow_orange_red:Jse},cg=jf({},uk,dk,fk),kde=function(e){return Cde.includes(e)},Ode=function(e){return $de.includes(e)},Mde=function(e){return Ede.includes(e)},Ade={rainbow:ule,sinebow:hle};jf({},Sde,Tde,Ade);var Rde=function(e){return e.theme!==void 0},jde=function(e){return e.from!==void 0},Nde=function(e,t){if(typeof e=="function")return e;if(sb(e)){if(Rde(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(jde(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=_de(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 Nde(e,t)},[e,t])},Dde=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(kde(e.scheme)){var o=Zo(cg[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(Ode(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(cg[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Mde(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(cg[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 Dde(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 Ide={pointerEvents:"none"},Pde=function(e){var t=e.label,n=e.style,r=Ft();return w.jsx(Yt.g,{transform:n.transform,opacity:n.progress,style:Ide,children:w.jsx(sl,{textAnchor:"middle",dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})})},hk=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},pk=function(e,t){return e.filter(function(n){return Math.abs(Tu(n.arc.endAngle-n.arc.startAngle))>=t})},Lde={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})}}},mk=function(e,t){return m.useMemo(function(){var n=Lde[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])},gk=function(e,t){var n=ide(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return oa(n,r)},Fde=function(e){return function(t,n,r,i){return xo([t,n,r,i],function(o,a,s,l){var c=gk({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},zde=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=mk(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:Fde(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 pk(t,o).map(function(l){var c=gk(l.arc,r);return Ot({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,o,s])},Wde=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?Pde:c,d=Oi(i),f=Ft(),h=Sr(l,f),p=m.useMemo(function(){return n.filter(function(y){var C=Math.abs(Tu(y.arc.endAngle-y.arc.startAngle)),b=Math.abs(y.arc.outerRadius-y.arc.innerRadius);return C>=a&&b>=s})},[n,a,s]),g=zde(p,o,r),v=g.transition,x=g.interpolate,_=u;return w.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,C){return m.createElement(_,{key:C.id,datum:C,label:d(C),style:{progress:y.progress,transform:x(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textColor:h(C)}})})})},Ude=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)})},Hde=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})},Vde=function(e){var t=e.label,n=e.style,r=Ft();return w.jsxs(Yt.g,{opacity:n.opacity,children:[w.jsx(Yt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),w.jsx(sl,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Ot({},r.labels.text,{fill:n.textColor}),children:t})]})},qde=function(e){var t=hk(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=hk(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]}},Yde=Cb().x(function(e){return e.x}).y(function(e){return e.y}),Gde=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 Yde(p)})},Kde=function(e,t,n,r){return xo([e,t,n,r],function(i,o,a,s){return qde({startAngle:i,endAngle:o})})},Zde=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,y=x[2];return _==="before"?y.x-=g:y.x+=g,"translate("+y.x+","+y.y+")"})},Xde=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(y,C){return m.useMemo(function(){return pk(y,C)},[y,C])}(t,s),_=function(y){var C=y.offset,b=y.diagonalLength,$=y.straightLength,E=y.textOffset,k=y.getLinkColor,O=y.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:E,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:E,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:E,linkColor:k(j),textColor:O(j),opacity:0}}}},[b,$,E,k,O,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:g,getTextColor:v});return{transition:Ca(x,{keys:function(y){return y.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:Gde,interpolateTextAnchor:Kde,interpolateTextPosition:Zde}},Qde=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?Vde:f,p=Oi(r),g=Xde({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=g.transition,x=g.interpolateLink,_=g.interpolateTextAnchor,y=g.interpolateTextPosition,C=h;return w.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:y(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},Jde=function(e,t,n,r){e.textBaseline="middle",ya(e,n.labels.text),t.forEach(function(i){e.textAlign=nk.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()})},efe=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(Tu(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])},tfe=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 efe({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:g})},nfe=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 w.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})},rfe=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)})})},ife=function(e,t,n){t===void 0&&(t="innerRadius");var r=qn(),i=r.animate,o=r.config,a=mk(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:rfe}},ofe=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?nfe:d,h=Ft(),p=Sr(o,h),g=ife(n,u,{enter:function(y){return{opacity:0,color:y.color,borderColor:p(y)}},update:function(y){return{opacity:1,color:y.color,borderColor:p(y)}},leave:function(y){return{opacity:0,color:y.color,borderColor:p(y)}}}),v=g.transition,x=g.interpolate,_=f;return w.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(y,C){return m.createElement(_,{key:C.id,datum:C,style:Ot({},y,{borderWidth:i,path:x(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},afe=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}},sfe=function(e,t,n,r,i,o){var a=lk(i,o,e,t);return a<n&&a>r},lfe=function(e,t,n,r,i,o,a){if(sfe(e,t,n,r,o,a)){var s=gde(o,a,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},cfe=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 Gie().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},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 w.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"}})},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 w.jsx("g",{transform:"translate("+t+","+n+")",children:w.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"}})})},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 w.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"}})},hfe=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 w.jsx("g",{transform:"translate("+t+","+n+")",children:w.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},pfe={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({},pfe,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}},vk=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}},bk=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}},mfe={circle:ufe,diamond:dfe,square:ffe,triangle:hfe},gfe=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,y=e.justify,C=y===void 0?vr.justify:y,b=e.textColor,$=e.background,E=$===void 0?"transparent":$,k=e.opacity,O=k===void 0?1:k,j=e.symbolShape,S=j===void 0?vr.symbolShape:j,T=e.symbolSize,A=T===void 0?vr.symbolSize:T,D=e.symbolSpacing,R=D===void 0?vr.symbolSpacing:D,M=e.symbolBorderWidth,I=M===void 0?0:M,z=e.symbolBorderColor,W=z===void 0?"transparent":z,P=e.onClick,B=e.onMouseEnter,q=e.onMouseLeave,H=e.toggleSerie,Y=e.effects,X=m.useState({}),J=X[0],ee=X[1],U=Ft(),L=m.useCallback(function(ue){if(Y){var ye=Y.filter(function(xe){return xe.on==="hover"}).reduce(function(xe,we){return lo({},xe,we.style)},{});ee(ye)}B==null||B(v,ue)},[B,v,Y]),F=m.useCallback(function(ue){if(Y){var ye=Y.filter(function(xe){return xe.on!=="hover"}).reduce(function(xe,we){return lo({},xe,we.style)},{});ee(ye)}q==null||q(v,ue)},[q,v,Y]),V=bk({direction:_,justify:C,symbolSize:(t=J.symbolSize)!=null?t:A,symbolSpacing:R,width:p,height:g}),N=V.symbolX,Q=V.symbolY,G=V.labelX,K=V.labelY,se=V.labelAnchor,ne=V.labelAlignment,re=[P,B,q,H].some(function(ue){return ue!==void 0}),oe=typeof S=="function"?S:mfe[S];return w.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:O},children:[w.jsx("rect",{width:p,height:g,fill:(r=J.itemBackground)!=null?r:E,style:{cursor:re?"pointer":"auto"},onClick:function(ue){P==null||P(v,ue),H==null||H(v.id)},onMouseEnter:L,onMouseLeave:F}),ie.createElement(oe,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:W},v.hidden?U.legends.hidden.symbol:void 0)),w.jsx(sl,{textAnchor:se,style:lo({},U.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:U.legends.text.fill)!=null?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},v.hidden?U.legends.hidden.text:void 0),x:G,y:K,children:v.label})]})},vfe=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,y=_===void 0?1:_,C=e.symbolShape,b=e.symbolSize,$=e.symbolSpacing,E=e.symbolBorderWidth,k=e.symbolBorderColor,O=e.onClick,j=e.onMouseEnter,S=e.onMouseLeave,T=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 w.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(M,I){return w.jsx(gfe,{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:y,symbolShape:C,symbolSize:b,symbolSpacing:$,symbolBorderWidth:E,symbolBorderColor:k,onClick:O,onMouseEnter:j,onMouseLeave:S,toggleSerie:T},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,y=e.itemBackground,C=e.itemOpacity,b=e.symbolShape,$=e.symbolSize,E=e.symbolSpacing,k=e.symbolBorderWidth,O=e.symbolBorderColor,j=e.onClick,S=e.onMouseEnter,T=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,z=vk({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:M,height:I}),W=z.x,P=z.y;return w.jsx(vfe,{data:t,x:W,y:P,direction:c,padding:d,justify:f,effects:D,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:x,itemTextColor:_,itemBackground:y,itemOpacity:C,symbolShape:b,symbolSize:$,symbolSpacing:E,symbolBorderWidth:k,symbolBorderColor:O,onClick:j,onMouseEnter:S,onMouseLeave:T,toggleSerie:typeof A=="boolean"?void 0:A})},bfe={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,y=t.itemDirection,C=y===void 0?"left-to-right":y,b=t.itemTextColor,$=t.symbolSize,E=$===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}),T=S.width,A=S.height,D=S.padding,R=vk({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:T,height:A}),M=R.x,I=R.y,z=u==="row"?x+v:0,W=u==="column"?_+v:0;e.save(),e.translate(M,I),ya(e,j.legends.text),n.forEach(function(P,B){var q,H=B*z+D.left,Y=B*W+D.top,X=bk({direction:C,justify:p,symbolSize:E,symbolSpacing:O,width:x,height:_}),J=X.symbolX,ee=X.symbolY,U=X.labelX,L=X.labelY,F=X.labelAnchor,V=X.labelAlignment;e.fillStyle=(q=P.color)!=null?q:"black",e.fillRect(H+J,Y+ee,E,E),e.textAlign=bfe[F],V==="central"&&(e.textBaseline="middle"),xa(e,lo({},j.legends.text,{fill:b??j.legends.text.fill}),String(P.label),H+U,Y+L)}),e.restore()};function Er(){return Er=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},Er.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,yfe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return w.jsx(w.Fragment,{children:r.map(function(a,s){var l;return w.jsx(ny,Er({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},ge={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 w.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},xfe=["points"],yk=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?ge.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 Er({},x,{color:f(x)})})},[t,c,u,d,f])},wfe=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=Qie().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 y=Math.abs(_.endAngle-_.startAngle);return Er({},_.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:y,angleDeg:Tu(y)}})}),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},_fe=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])}},xk=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?ge.innerRadius:i,a=e.startAngle,s=a===void 0?ge.startAngle:a,l=e.endAngle,c=l===void 0?ge.endAngle:l,u=e.padAngle,d=u===void 0?ge.padAngle:u,f=e.sortByValue,h=f===void 0?ge.sortByValue:f,p=e.cornerRadius,g=p===void 0?ge.cornerRadius:p,v=e.fit,x=v===void 0?ge.fit:v,_=e.activeInnerRadiusOffset,y=_===void 0?ge.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,b=C===void 0?ge.activeOuterRadiusOffset:C,$=e.activeId,E=e.onActiveIdChange,k=e.defaultActiveId,O=e.forwardLegendData,j=_fe({activeId:$,onActiveIdChange:E,defaultActiveId:k}),S=j.activeId,T=j.setActiveId,A=m.useState([]),D=A[0],R=A[1],M=m.useMemo(function(){var W,P=Math.min(n,r)/2,B=P*Math.min(o,1),q=n/2,H=r/2;if(x){var Y=afe(q,H,P,s-90,c-90),X=Y.points,J=ku(Y,xfe),ee=Math.min(n/J.width,r/J.height),U={width:J.width*ee,height:J.height*ee};U.x=(n-U.width)/2,U.y=(r-U.height)/2,q=(q-J.x)/J.width*J.width*ee+U.x,H=(H-J.y)/J.height*J.height*ee+U.y,W={box:J,ratio:ee,points:X},P*=ee,B*=ee}return{centerX:q,centerY:H,radius:P,innerRadius:B,debug:W}},[n,r,o,s,c,x]),I=wfe({data:t,startAngle:s,endAngle:c,innerRadius:M.innerRadius,outerRadius:M.radius,padAngle:d,sortByValue:h,activeId:S,activeInnerRadiusOffset:y,activeOuterRadiusOffset:b,hiddenIds:D,forwardLegendData:O}),z=m.useCallback(function(W){R(function(P){return P.indexOf(W)>-1?P.filter(function(B){return B!==W}):[].concat(P,[W])})},[]);return Er({arcGenerator:cfe({cornerRadius:g,padAngle:xr(d)}),activeId:S,setActiveId:T,toggleSerie:z},I,M)},Cfe=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])},$fe=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]),y=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 w.jsx(ofe,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:y,onMouseLeave:C})},Sfe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Efe=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.layers,u=c===void 0?ge.layers:c,d=e.startAngle,f=d===void 0?ge.startAngle:d,h=e.endAngle,p=h===void 0?ge.endAngle:h,g=e.padAngle,v=g===void 0?ge.padAngle:g,x=e.fit,_=x===void 0?ge.fit:x,y=e.innerRadius,C=y===void 0?ge.innerRadius:y,b=e.cornerRadius,$=b===void 0?ge.cornerRadius:b,E=e.activeInnerRadiusOffset,k=E===void 0?ge.activeInnerRadiusOffset:E,O=e.activeOuterRadiusOffset,j=O===void 0?ge.activeOuterRadiusOffset:O,S=e.width,T=e.height,A=e.margin,D=e.colors,R=D===void 0?ge.colors:D,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,z=e.borderColor,W=z===void 0?ge.borderColor:z,P=e.enableArcLabels,B=P===void 0?ge.enableArcLabels:P,q=e.arcLabel,H=q===void 0?ge.arcLabel:q,Y=e.arcLabelsSkipAngle,X=Y===void 0?ge.arcLabelsSkipAngle:Y,J=e.arcLabelsSkipRadius,ee=J===void 0?ge.arcLabelsSkipRadius:J,U=e.arcLabelsTextColor,L=U===void 0?ge.arcLabelsTextColor:U,F=e.arcLabelsRadiusOffset,V=F===void 0?ge.arcLabelsRadiusOffset:F,N=e.arcLabelsComponent,Q=e.enableArcLinkLabels,G=Q===void 0?ge.enableArcLinkLabels:Q,K=e.arcLinkLabel,se=K===void 0?ge.arcLinkLabel:K,ne=e.arcLinkLabelsSkipAngle,re=ne===void 0?ge.arcLinkLabelsSkipAngle:ne,oe=e.arcLinkLabelsOffset,ue=oe===void 0?ge.arcLinkLabelsOffset:oe,ye=e.arcLinkLabelsDiagonalLength,xe=ye===void 0?ge.arcLinkLabelsDiagonalLength:ye,we=e.arcLinkLabelsStraightLength,Me=we===void 0?ge.arcLinkLabelsStraightLength:we,de=e.arcLinkLabelsThickness,le=de===void 0?ge.arcLinkLabelsThickness:de,be=e.arcLinkLabelsTextOffset,ze=be===void 0?ge.arcLinkLabelsTextOffset:be,zt=e.arcLinkLabelsTextColor,Le=zt===void 0?ge.arcLinkLabelsTextColor:zt,gt=e.arcLinkLabelsColor,_t=gt===void 0?ge.arcLinkLabelsColor:gt,nn=e.arcLinkLabelComponent,Ee=e.defs,je=Ee===void 0?ge.defs:Ee,vt=e.fill,qe=vt===void 0?ge.fill:vt,bt=e.isInteractive,at=bt===void 0?ge.isInteractive:bt,At=e.onClick,Ke=e.onMouseEnter,De=e.onMouseMove,We=e.onMouseLeave,Qe=e.tooltip,Ie=Qe===void 0?ge.tooltip:Qe,Je=e.activeId,ht=e.onActiveIdChange,nt=e.defaultActiveId,Ne=e.transitionMode,Te=Ne===void 0?ge.transitionMode:Ne,He=e.legends,yt=He===void 0?ge.legends:He,et=e.forwardLegendData,pt=e.role,tn=pt===void 0?ge.role:pt,Bt=e.forwardedRef,Ht=Ra(S,T,A),vn=Ht.outerWidth,Kt=Ht.outerHeight,$e=Ht.margin,Ze=Ht.innerWidth,Ct=Ht.innerHeight,cn=yk({data:t,id:r,value:o,valueFormat:a,colors:R}),Zt=xk({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,dn=Zt.toggleSerie,fn=Xb(je,Pe,qe),Pn={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Pn.arcs=w.jsx($fe,{center:[Rt,$t],data:Pe,arcGenerator:ct,borderWidth:I,borderColor:W,isInteractive:at,onClick:At,onMouseEnter:Ke,onMouseMove:De,onMouseLeave:We,setActiveId:kr,tooltip:Ie,transitionMode:Te},"arcs")),G&&u.includes("arcLinkLabels")&&(Pn.arcLinkLabels=w.jsx(Qde,{center:[Rt,$t],data:Pe,label:se,skipAngle:re,offset:ue,diagonalLength:xe,straightLength:Me,strokeWidth:le,textOffset:ze,textColor:Le,linkColor:_t,component:nn},"arcLinkLabels")),B&&u.includes("arcLabels")&&(Pn.arcLabels=w.jsx(Wde,{center:[Rt,$t],data:Pe,label:H,radiusOffset:V,skipAngle:X,skipRadius:ee,textColor:L,transitionMode:Te,component:N},"arcLabels")),yt.length>0&&u.includes("legends")&&(Pn.legends=w.jsx(yfe,{width:Ze,height:Ct,data:Fe,legends:yt,toggleSerie:dn},"legends"));var ko=Cfe({dataWithArc:Pe,arcGenerator:ct,centerX:Rt,centerY:$t,radius:Xe,innerRadius:St});return w.jsx(Dp,{width:vn,height:Kt,margin:$e,defs:fn,role:tn,ref:Bt,children:u.map(function(wt,Oo){return Pn[wt]!==void 0?Pn[wt]:typeof wt=="function"?w.jsx(m.Fragment,{children:m.createElement(wt,ko)},Oo):null})})},Tfe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.animate,o=i===void 0?ge.animate:i,a=e.motionConfig,s=a===void 0?ge.motionConfig:a,l=e.theme,c=e.renderWrapper,u=ku(e,Sfe);return w.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:w.jsx(Efe,Er({isInteractive:r},u,{forwardedRef:t}))})}),kfe=["defaultWidth","defaultHeight","onResize","debounceResize"],Ofe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=ku(e,kfe);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(Tfe,Er({width:l,height:c},a,{ref:t}))}})}),Mfe=["isInteractive","theme","renderWrapper"],Afe=function(e){var t=e.data,n=e.id,r=n===void 0?ge.id:n,i=e.value,o=i===void 0?ge.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?ge.sortByValue:s,c=e.startAngle,u=c===void 0?ge.startAngle:c,d=e.endAngle,f=d===void 0?ge.endAngle:d,h=e.padAngle,p=h===void 0?ge.padAngle:h,g=e.fit,v=g===void 0?ge.fit:g,x=e.innerRadius,_=x===void 0?ge.innerRadius:x,y=e.cornerRadius,C=y===void 0?ge.cornerRadius:y,b=e.activeInnerRadiusOffset,$=b===void 0?ge.activeInnerRadiusOffset:b,E=e.activeOuterRadiusOffset,k=E===void 0?ge.activeOuterRadiusOffset:E,O=e.width,j=e.height,S=e.margin,T=e.pixelRatio,A=T===void 0?ge.pixelRatio:T,D=e.colors,R=D===void 0?ge.colors:D,M=e.borderWidth,I=M===void 0?ge.borderWidth:M,z=e.borderColor,W=z===void 0?ge.borderColor:z,P=e.enableArcLabels,B=P===void 0?ge.enableArcLabels:P,q=e.arcLabel,H=q===void 0?ge.arcLabel:q,Y=e.arcLabelsSkipAngle,X=Y===void 0?ge.arcLabelsSkipAngle:Y,J=e.arcLabelsTextColor,ee=J===void 0?ge.arcLabelsTextColor:J,U=e.arcLabelsRadiusOffset,L=U===void 0?ge.arcLabelsRadiusOffset:U,F=e.enableArcLinkLabels,V=F===void 0?ge.enableArcLinkLabels:F,N=e.arcLinkLabel,Q=N===void 0?ge.arcLinkLabel:N,G=e.arcLinkLabelsSkipAngle,K=G===void 0?ge.arcLinkLabelsSkipAngle:G,se=e.arcLinkLabelsOffset,ne=se===void 0?ge.arcLinkLabelsOffset:se,re=e.arcLinkLabelsDiagonalLength,oe=re===void 0?ge.arcLinkLabelsDiagonalLength:re,ue=e.arcLinkLabelsStraightLength,ye=ue===void 0?ge.arcLinkLabelsStraightLength:ue,xe=e.arcLinkLabelsThickness,we=xe===void 0?ge.arcLinkLabelsThickness:xe,Me=e.arcLinkLabelsTextOffset,de=Me===void 0?ge.arcLinkLabelsTextOffset:Me,le=e.arcLinkLabelsTextColor,be=le===void 0?ge.arcLinkLabelsTextColor:le,ze=e.arcLinkLabelsColor,zt=ze===void 0?ge.arcLinkLabelsColor:ze,Le=e.isInteractive,gt=Le===void 0?ge.isInteractive:Le,_t=e.onClick,nn=e.onMouseMove,Ee=e.tooltip,je=Ee===void 0?ge.tooltip:Ee,vt=e.activeId,qe=e.onActiveIdChange,bt=e.defaultActiveId,at=e.legends,At=at===void 0?ge.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,Te=Je.outerWidth,He=Je.outerHeight,yt=yk({data:t,id:r,value:o,valueFormat:a,colors:R}),et=xk({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,Bt=et.centerX,Ht=et.centerY,vn=et.radius,Kt=et.innerRadius,$e=et.setActiveId,Ze=Sr(W,Ie),Ct=Hde({data:pt,label:H,skipAngle:X,offset:L,textColor:ee}),cn=tfe({data:pt,skipAngle:K,offset:ne,diagonalLength:oe,straightLength:ye,label:Q,linkColor:zt,textOffset:de,textColor:be});m.useEffect(function(){if(Qe.current){Qe.current.width=Te*A,Qe.current.height=He*A;var Xe=Qe.current.getContext("2d");Xe.scale(A,A),Xe.fillStyle=Ie.background,Xe.fillRect(0,0,Te,He),Xe.save(),Xe.translate(ht.left,ht.top),tn.context(Xe),Xe.save(),Xe.translate(Bt,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()}),V===!0&&Jde(Xe,cn,Ie,we),B===!0&&Ude(Xe,Ct,Ie),Xe.restore(),At.forEach(function(St){ry(Xe,Er({},St,{data:pt,containerWidth:nt,containerHeight:Ne,theme:Ie}))})}},[Qe,nt,Ne,Te,He,ht.top,ht.left,A,Bt,Ht,tn,pt,I,Ze,B,Ct,V,cn,we,At,Ie]);var Zt=m.useMemo(function(){return pt.map(function(Xe){return Er({id:Xe.id},Xe.arc)})},[pt]),Pe=function(Xe){if(!Qe.current)return null;var St=hs(Qe.current,Xe),kr=St[0],dn=St[1],fn=lfe(ht.left+Bt,ht.top+Ht,vn,Kt,Zt,kr,dn);return fn?pt.find(function(Pn){return Pn.id===fn.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 w.jsx("canvas",{ref:Qb(Qe,We),width:Te*A,height:He*A,style:{width:Te,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})},Rfe=m.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?ge.isInteractive:n,i=e.theme,o=e.renderWrapper,a=ku(e,Mfe);return w.jsx(Ma,{isInteractive:r,renderWrapper:o,theme:i,children:w.jsx(Afe,Er({isInteractive:r},a,{forwardedRef:t}))})}),jfe=["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,jfe);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(Rfe,Er({width:l,height:c},a,{ref:t}))}})});function Nfe(){}var Dfe=Nfe,ug=Z5,Ife=Dfe,Pfe=qb,Lfe=1/0,Ffe=ug&&1/Pfe(new ug([,-0]))[1]==Lfe?function(e){return new ug(e)}:Ife,zfe=Ffe,Bfe=yb,Wfe=WT,Ufe=UT,Hfe=xb,Vfe=zfe,qfe=qb,Yfe=200;function Gfe(e,t,n){var r=-1,i=Wfe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ufe;else if(o>=Yfe){var c=t?null:Vfe(e);if(c)return qfe(c);a=!1,i=Hfe,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 wk=Gfe,Kfe=wk;function Zfe(e){return e&&e.length?Kfe(e):[]}var Xfe=Zfe;const p4=sn(Xfe);var Qfe=Wh,Jfe=Gb,ehe=1,the=2;function nhe(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 Qfe;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Jfe(u,c,ehe|the,r,d):f))return!1}}return!0}var rhe=nhe,ihe=ui;function ohe(e){return e===e&&!ihe(e)}var _k=ohe,ahe=_k,she=Eu;function lhe(e){for(var t=she(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ahe(i)]}return t}var che=lhe;function uhe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Ck=uhe,dhe=rhe,fhe=che,hhe=Ck;function phe(e){var t=fhe(e);return t.length==1&&t[0][2]?hhe(t[0][0],t[0][1]):function(n){return n===e||dhe(n,e,t)}}var mhe=phe,ghe=Gb,vhe=ET,bhe=B5,yhe=db,xhe=_k,whe=Ck,_he=il,Che=1,$he=2;function She(e,t){return yhe(e)&&xhe(t)?whe(_he(e),t):function(n){var r=vhe(n,e);return r===void 0&&r===t?bhe(n,e):ghe(t,r,Che|$he)}}var Ehe=She;function The(e){return function(t){return t==null?void 0:t[e]}}var khe=The,Ohe=$u;function Mhe(e){return function(t){return Ohe(t,e)}}var Ahe=Mhe,Rhe=khe,jhe=Ahe,Nhe=db,Dhe=il;function Ihe(e){return Nhe(e)?Rhe(Dhe(e)):jhe(e)}var Phe=Ihe,Lhe=mhe,Fhe=Ehe,zhe=Yh,Bhe=or,Whe=Phe;function Uhe(e){return typeof e=="function"?e:e==null?zhe:typeof e=="object"?Bhe(e)?Fhe(e[0],e[1]):Lhe(e):Whe(e)}var iy=Uhe,Hhe=iy,Vhe=wk;function qhe(e,t){return e&&e.length?Vhe(e,Hhe(t)):[]}var Yhe=qhe;const Uv=sn(Yhe);var Ghe=aT,Khe=Eu;function Zhe(e,t){return e&&Ghe(e,t,Khe)}var Xhe=Zhe,Qhe=el;function Jhe(e,t){return function(n,r){if(n==null)return n;if(!Qhe(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 epe=Jhe,tpe=Xhe,npe=epe,rpe=npe(tpe),$k=rpe,ipe=$k,ope=el;function ape(e,t){var n=-1,r=ope(e)?Array(e.length):[];return ipe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var spe=ape;function lpe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var cpe=lpe,m4=Gh;function upe(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 dpe=upe,fpe=dpe;function hpe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=fpe(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 ppe=hpe,dg=Kh,mpe=$u,gpe=iy,vpe=spe,bpe=cpe,ype=tl,xpe=ppe,wpe=Yh,_pe=or;function Cpe(e,t,n){t.length?t=dg(t,function(o){return _pe(o)?function(a){return mpe(a,o.length===1?o[0]:o)}:o}):t=[wpe];var r=-1;t=dg(t,ype(gpe));var i=vpe(e,function(o,a,s){var l=dg(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return bpe(i,function(o,a){return xpe(o,a,n)})}var $pe=Cpe,Spe=U5,Epe=$pe,Tpe=ub,g4=wT,kpe=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]]),Epe(e,Spe(t,1),[])}),Ope=kpe;const Mpe=sn(Ope);var Ape=Wi,Rpe=Tr,jpe="[object Date]";function Npe(e){return Rpe(e)&&Ape(e)==jpe}var Dpe=Npe,Ipe=Dpe,Ppe=tl,v4=Vh,b4=v4&&v4.isDate,Lpe=b4?Ppe(b4):Ipe,Fpe=Lpe;const zpe=sn(Fpe);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)},Wpe=function(e){return function(t){return Bpe[e].forEach(function(n){n(t)}),t}},Sk=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=Wpe(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?L5(n):I5(n);return s(c(l))}},Fo={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},Upe=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,y=_===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 $=Tf().range(r==="x"?[0,n]:[n,0]).interpolate(b?zT:Lc).domain(g?[a,i]:[i,a]).clamp(x);return y===!0?$.nice():typeof y=="number"&&$.nice(y),Hpe($,h)},Hpe=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},Vpe=function(e,t,n){var r=Roe().range([0,n]).domain(t.all);return r.type="point",r},qpe={round:!1},Ype=function(e,t,n,r){var i=e.round,o=i===void 0?qpe.round:i,a=Ob().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return Gpe(a)},Gpe=function(e){var t=e;return t.type="band",t},Ga={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Kpe=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=Sk({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?Cse():_se();_.range([0,n]),r&&i&&_.domain([r,i]),v===!0?_.nice():typeof v!="object"&&typeof v!="number"||_.nice(v);var y=_;return y.type="time",y.useUTC=p,y},Ka={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Zpe=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(E){return E===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,y=!1;if(t.all.filter(function(E){return E!=null}).forEach(function(E){y||(i===void 0?i=Math.sign(E):Math.sign(E)!==i&&(y=!0))}),y)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=d5().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},Xpe=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 _=f5().constant(s),y=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(y):_.range(y),g===!0?_.domain([o,i]):_.domain([i,o]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var C=_;return C.type="symlog",C},Qpe=function(e){return e==="x"?"y":"x"},Jpe=function(e,t){return e===t},eme=function(e,t){return e.getTime()===t.getTime()};function Hc(e,t,n,r){switch(e.type){case"linear":return Upe(e,t,n,r);case"point":return Vpe(0,t,n);case"band":return Ype(e,t,n,r);case"time":return Kpe(e,t,n);case"log":return Zpe(e,t,n,r);case"symlog":return Xpe(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},tme=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=nme(o,t,n);"stacked"in t&&t.stacked===!0&&rme(a,o),"stacked"in n&&n.stacked===!0&&ime(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})},nme=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=Sk(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=Mpe(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=Uv(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=Qpe(e),i=[];t[r].all.forEach(function(o){var a=zpe(o)?eme:Jpe,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)},rme=function(e,t){return Ek("x",e,t)},ime=function(e,t){return Ek("y",e,t)},Tk=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}},kk={millisecond:[Bc,Bc],second:[Iv,Iv],minute:[b5,S5],hour:[y5,E5],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:[x5,T5],wednesday:[w5,k5],thursday:[va,ba],friday:[_5,O5],saturday:[C5,M5],month:[$5,A5],year:[_o,Co]},ome=Object.keys(kk),ame=new RegExp("^every\\s*(\\d+)?\\s*("+ome.join("|")+")s?$","i"),Ok=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(ame);if(n){var r=n[1],i=n[2],o=kk[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 Mk=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=Ok(r,o),h=nk[d],p="bandwidth"in r?Tk(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,y=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),y=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"],y=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=h.align[x?"right":"left"],y=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 E=String($).length;return c&&c>0&&E>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:y}},Ak=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=op(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Su(e)},Hv=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)||Ok(i,a)),l="bandwidth"in i?Tk(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},sme=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 w.jsxs(Yt.g,Lr({transform:u.transform},f,{children:[w.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),w.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},lme=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?sme:x,y=e.truncateTickAt,C=e.legend,b=e.legendPosition,$=b===void 0?Kn.legendPosition:b,E=e.legendOffset,k=E===void 0?Kn.legendOffset:E,O=e.style,j=e.onClick,S=e.ariaHidden,T=Ft(),A=are(T.axis,O),D=m.useMemo(function(){return Ak(v,n)},[v,n]),R=Mk({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:g,truncateTickAt:y}),M=R.ticks,I=R.textAlign,z=R.textBaseline,W=null;if(C!==void 0){var P,B=0,q=0,H=0;t==="y"?(H=-90,B=k,$==="start"?(P="start",q=s):$==="middle"?(P="middle",q=s/2):$==="end"&&(P="end")):(q=k,$==="start"?P="start":$==="middle"?(P="middle",B=s/2):$==="end"&&(P="end",B=s)),W=w.jsx(w.Fragment,{children:w.jsx(sl,{transform:"translate("+B+", "+q+") rotate("+H+")",textAnchor:P,style:Lr({},A.legend.text,{dominantBaseline:"central"}),children:C})})}var Y=qn(),X=Y.animate,J=Y.config,ee=li({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!X}),U=m.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),L=m.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+g+")"}},[g]),F=Ca(M,{keys:function(V){return V.key},initial:U,from:L,enter:U,update:U,leave:{opacity:0},config:J,immediate:!X});return w.jsxs(Yt.g,{transform:ee.transform,"aria-hidden":S,children:[F(function(V,N,Q,G){return ie.createElement(_,Lr({tickIndex:G,format:D,rotate:g,textBaseline:z,textAnchor:I,truncateTickAt:y,animatedProps:V,theme:A.ticks},N,j?{onClick:j}:{}))}),w.jsx(Yt.line,{style:A.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),W]})},cme=m.memo(lme),Rk=["top","right","bottom","left"],jk=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 w.jsx(w.Fragment,{children:Rk.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return w.jsx(cme,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)})})}),ume=m.memo(function(e){var t=e.animatedProps,n=Ft();return w.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 w.jsx("g",{children:o(function(a,s){return m.createElement(ume,Lr({},s,{key:s.key,animatedProps:a}))})})}),Nk=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&&Hv({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=m.useMemo(function(){return!!i&&Hv({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return w.jsxs(w.Fragment,{children:[s&&w.jsx(w4,{lines:s}),l&&w.jsx(w4,{lines:l})]})}),dme=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,y=t.format,C=t.legend,b=t.legendPosition,$=b===void 0?Kn.legendPosition:b,E=t.legendOffset,k=E===void 0?Kn.legendOffset:E,O=t.theme,j=t.style,S=Mk({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:v,tickRotation:_,engine:"canvas"}),T=S.ticks,A=S.textAlign,D=S.textBaseline;e.save(),e.translate(s,c);var R=kT(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 y=="function"?y:function(Y){return""+Y},z=(r=R.ticks.line.strokeWidth)!=null?r:0,W=typeof z!="string"&&z>0;if(T.forEach(function(Y){W&&(e.lineWidth=z,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 X=I(Y.value);e.save(),e.translate(Y.x+Y.textX,Y.y+Y.textY),e.rotate(xr(_)),xa(e,R.ticks.text,""+X),e.fillText(""+X,0,0),e.restore()}),C!==void 0){var P=0,B=0,q=0,H="center";i==="y"?(q=-90,P=k,$==="start"?(H="start",B=u):$==="middle"?(H="center",B=u/2):$==="end"&&(H="end")):(B=k,$==="start"?H="start":$==="middle"?(H="center",P=u/2):$==="end"&&(H="end",P=u)),e.translate(P,B),e.rotate(xr(q)),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()},Dk=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};Rk.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=Ak(h.format,v);dme(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;Hv({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()})},fme=ST,hme=0;function pme(e){var t=++hme;return fme(e)+t}var mme=pme;const gme=sn(mme),Mi=11102230246251565e-32,Mn=134217729,vme=(3+8*Mi)*Mi;function fg(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 bme(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 yme=(3+16*Mi)*Mi,xme=(2+12*Mi)*Mi,wme=(9+64*Mi)*Mi*Mi,Xa=Ou(4),_4=Ou(8),C4=Ou(12),$4=Ou(16),Fn=Ou(4);function _me(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,g,v,x,_,y,C,b,$,E,k;const O=e-i,j=n-i,S=t-o,T=r-o;C=O*T,f=Mn*O,h=f-(f-O),p=O-h,f=Mn*T,g=f-(f-T),v=T-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,E=p*v-($-h*g-p*g-h*v),x=b-E,d=b-x,Xa[0]=b-(x+d)+(d-E),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-$,d=y-x,Xa[1]=y-(x+d)+(d-$),k=_+x,d=k-_,Xa[2]=_-(k-d)+(x-d),Xa[3]=k;let A=bme(4,Xa),D=xme*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-T,u=r-(T+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(D=wme*a+vme*Math.abs(A),A+=O*u+T*s-(S*c+j*l),A>=D||-A>=D))return A;C=s*T,f=Mn*s,h=f-(f-s),p=s-h,f=Mn*T,g=f-(f-T),v=T-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,E=p*v-($-h*g-p*g-h*v),x=b-E,d=b-x,Fn[0]=b-(x+d)+(d-E),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-$,d=y-x,Fn[1]=y-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const R=fg(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,E=p*v-($-h*g-p*g-h*v),x=b-E,d=b-x,Fn[0]=b-(x+d)+(d-E),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-$,d=y-x,Fn[1]=y-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const M=fg(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,E=p*v-($-h*g-p*g-h*v),x=b-E,d=b-x,Fn[0]=b-(x+d)+(d-E),_=C+x,d=_-C,y=C-(_-d)+(x-d),x=y-$,d=y-x,Fn[1]=y-(x+d)+(d-$),k=_+x,d=k-_,Fn[2]=_-(k-d)+(x-d),Fn[3]=k;const I=fg(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)>=yme*c?l:-_me(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=kme){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=hg(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=hg(v,x,t[2*O],t[2*O+1]);S<j&&S>0&&(p=O,j=S)}let _=t[2*p],y=t[2*p+1],C=1/0;for(let O=0;O<a;O++){if(O===h||O===p)continue;const j=Sme(v,x,_,y,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,T=-1/0;S<a;S++){const A=this._ids[S],D=this._dists[A];D>T&&(O[j++]=A,T=D)}this.hull=O.subarray(0,j),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hd(v,x,_,y,b,$)<0){const O=p,j=_,S=y;p=g,_=b,y=$,g=O,b=j,$=S}const E=Eme(v,x,_,y,b,$);this._cx=E.x,this._cy=E.y;for(let O=0;O<a;O++)this._dists[O]=hg(t[2*O],t[2*O+1],E.x,E.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(_,y)]=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 T=this._ids[O],A=t[2*T],D=t[2*T+1];if(O>0&&Math.abs(A-j)<=S4&&Math.abs(D-S)<=S4||(j=A,S=D,T===h||T===p||T===g))continue;let R=0;for(let P=0,B=this._hashKey(A,D);P<this._hashSize&&(R=o[(B+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 z=this._addTriangle(M,T,r[M],-1,-1,i[M]);i[T]=this._legalize(z+2),i[M]=z,k++;let W=r[M];for(;I=r[W],hd(A,D,t[2*W],t[2*W+1],t[2*I],t[2*I+1])<0;)z=this._addTriangle(W,T,I,i[T],-1,i[W]),i[T]=this._legalize(z+2),r[W]=W,k--,W=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;)z=this._addTriangle(I,T,M,-1,i[M],i[I]),this._legalize(z+2),i[I]=z,r[M]=M,k--,M=I;this._hullStart=n[T]=M,r[M]=n[W]=T,r[T]=W,o[this._hashKey(A,D)]=T,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(Cme(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($me(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 y=this._hullStart;do{if(this._hullTri[y]===d){this._hullTri[y]=t;break}y=this._hullPrev[y]}while(y!==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 Cme(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function hg(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function $me(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 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=(c*u-s*d)*f,p=(a*d-l*u)*f;return h*h+p*p}function Eme(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 kme(e){return e[1]}const E4=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)>E4||Math.abs(this._y1-o)>E4)&&(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 Vv{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 Ome{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,_,y;g<x;g+=3,v+=2){const C=r[g]*2,b=r[g+1]*2,$=r[g+2]*2,E=t[C],k=t[C+1],O=t[b],j=t[b+1],S=t[$],T=t[$+1],A=O-E,D=j-k,R=S-E,M=T-k,I=(A*M-D*R)*2;if(Math.abs(I)<1e-9){if(o===void 0){o=a=0;for(const W of n)o+=t[W*2],a+=t[W*2+1];o/=n.length,a/=n.length}const z=1e9*Math.sign((o-E)*M-(a-k)*R);_=(E+S)/2-z*M,y=(k+T)/2+z*R}else{const z=1/I,W=A*A+D*D,P=R*R+M*M;_=E+(M*W-D*P)*z,y=k+(A*P-R*W)*z}s[v]=_,s[v+1]=y}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 Vv;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 Mme=2*Math.PI,Qa=Math.pow;function Ame(e){return e[0]}function Rme(e){return e[1]}function jme(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 Nme(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Ip{static from(t,n=Ame,r=Rme,i){return new Ip("length"in t?Dme(t,n,r,i):Float64Array.from(Ime(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&&jme(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=Nme(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 Ome(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,Mme)}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 Vv;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 Vv;return this.renderTriangle(t,n),n.value()}}function Dme(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*Ime(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 Ik(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=ak,Pk="cursor",Lk="top",Pme=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]})},Lme=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=Ip.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}},Fk=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 Lme({points:Pme({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[r,t,i,o,s,l])},Fme=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=m.useMemo(function(){return Tf().domain(i).range([0,n])},[i,n]),s=m.useMemo(function(){return Tf().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=Ip.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])},zme=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,y=e.onDoubleClick,C=e.onTouchStart,b=e.onTouchMove,$=e.onTouchEnd,E=e.enableTouchCrosshair,k=E!==void 0&&E,O=e.tooltip,j=e.tooltipPosition,S=j===void 0?Pk:j,T=e.tooltipAnchor,A=T===void 0?Lk:T,D=m.useState(null),R=D[0],M=D[1],I=m.useRef(null);m.useEffect(function(){I.current=R},[I,R]);var z=m.useCallback(function(G){if(!t.current||n.length===0)return null;var K=hs(t.current,G),se=K[0],ne=K[1],re=o.find(se,ne),oe=re!==void 0?n[re]:null;if(oe&&u!==1/0){var ue=i(oe),ye=ue[0],xe=ue[1];lk(se,ne,ye+l.left,xe+l.top)>u&&(re=null,oe=null)}return re===null||oe===null?null:[re,oe]},[t,o,n,i,l,u]),W=Ui(),P=W.showTooltipAt,B=W.showTooltipFromEvent,q=W.hideTooltip,H=m.useMemo(function(){if(O)return S==="cursor"?function(G,K){B(O(G),K,A)}:function(G){var K=i(G),se=K[0],ne=K[1];P(O(G),[se+l.left,ne+l.top],A)}},[P,B,O,S,A,i,l]),Y=m.useCallback(function(G){var K=z(G);if(M(K),a==null||a(K?K[1]:null),K){var se=K[1];H==null||H(se,G),h==null||h(K[1],G)}},[z,M,a,H,h]),X=m.useCallback(function(G){var K=z(G);if(M(K),K){var se=K[0],ne=K[1];if(a==null||a(ne),H==null||H(ne,G),I.current){var re=I.current,oe=re[0],ue=re[1];se!==oe?g==null||g(ue,G):p==null||p(ne,G)}else h==null||h(ne,G)}else a==null||a(null),q==null||q(),I.current&&(g==null||g(I.current[1],G))},[z,M,a,I,h,p,g,H,q]),J=m.useCallback(function(G){M(null),a==null||a(null),q(),g&&I.current&&g(I.current[1],G)},[M,a,I,q,g]),ee=m.useCallback(function(G){var K=z(G);M(K),K&&(v==null||v(K[1],G))},[z,M,v]),U=m.useCallback(function(G){var K=z(G);M(K),K&&(x==null||x(K[1],G))},[z,M,x]),L=m.useCallback(function(G){var K=z(G);M(K),K&&(_==null||_(K[1],G))},[z,M,_]),F=m.useCallback(function(G){var K=z(G);M(K),K&&(y==null||y(K[1],G))},[z,M,y]),V=m.useCallback(function(G){var K=z(G);k&&(M(K),a==null||a(K?K[1]:null)),K&&(C==null||C(K[1],G))},[z,M,a,k,C]),N=m.useCallback(function(G){var K=z(G);k&&(M(K),a==null||a(K?K[1]:null)),K&&(b==null||b(K[1],G))},[z,M,a,k,b]),Q=m.useCallback(function(G){k&&(M(null),a==null||a(null)),$&&I.current&&$(I.current[1],G)},[k,M,a,$,I]);return{current:R,handleMouseEnter:f?Y:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?U:void 0,handleClick:f?L:void 0,handleDoubleClick:f?F:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?Q:void 0}},Wme=["theme"],Ume=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,y=e.cellLineWidth,C=y===void 0?sr.cellLineWidth:y,b=e.cellLineColor,$=b===void 0?sr.cellLineColor:b,E=e.enablePoints,k=E===void 0?sr.enableCells:E,O=e.pointSize,j=O===void 0?sr.pointSize:O,S=e.pointColor,T=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,z=M.outerHeight,W=M.margin,P=M.innerWidth,B=M.innerHeight,q=Fme({data:t,width:P,height:B,xDomain:l,yDomain:u}),H=q.points,Y=q.delaunay,X=q.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(J.links=w.jsx("path",{stroke:v,strokeWidth:p,fill:"none",d:Y.render()},"links")),_&&a.includes("cells")&&(J.cells=w.jsx("path",{d:X.render(),fill:"none",stroke:$,strokeWidth:C},"cells")),k&&a.includes("points")&&(J.points=w.jsx("path",{stroke:"none",fill:T,d:Y.renderPoints(void 0,j/2)},"points")),a.includes("bounds")&&(J.bounds=w.jsx("path",{fill:"none",stroke:$,strokeWidth:C,d:X.renderBounds()},"bounds"));var ee=zme({points:H,delaunay:Y,voronoi:X});return w.jsx(Dp,{width:I,height:z,margin:W,role:D,ref:R,children:a.map(function(U,L){return J[U]!==void 0?J[U]:typeof U=="function"?w.jsx(m.Fragment,{children:m.createElement(U,ee)},L):null})})},Hme=m.forwardRef(function(e,t){var n=e.theme,r=Ik(e,Wme);return w.jsx(Ma,{isInteractive:!1,animate:!1,theme:n,children:w.jsx(Ume,If({},r,{forwardedRef:t}))})}),Vme=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Ik(e,Vme);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(Hme,If({},a,{width:l,height:c,ref:t}))}})});var qme=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,y=_!==void 0&&_,C=e.detectionRadius,b=C===void 0?1/0:C,$=e.tooltip,E=e.tooltipPosition,k=E===void 0?Pk:E,O=e.tooltipAnchor,j=O===void 0?Lk:O,S=e.debug,T=m.useRef(null),A=Fk({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:S}),D=A.delaunay,R=A.voronoi,M=Bme({elementRef:T,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:y,tooltip:$,tooltipPosition:k,tooltipAnchor:j}),I=M.current,z=M.handleMouseEnter,W=M.handleMouseMove,P=M.handleMouseLeave,B=M.handleMouseDown,q=M.handleMouseUp,H=M.handleClick,Y=M.handleDoubleClick,X=M.handleTouchStart,J=M.handleTouchMove,ee=M.handleTouchEnd,U=m.useMemo(function(){if(S&&R)return R.render()},[S,R]);return w.jsxs("g",{ref:T,transform:"translate("+-o.left+","+-o.top+")",children:[S&&R&&w.jsxs(w.Fragment,{children:[w.jsx("path",{d:U,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&w.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:D.renderPoints(void 0,b)}),I&&w.jsx("path",{fill:"pink",opacity:.35,d:R.renderCell(I[0])})]}),w.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:z,onMouseMove:W,onMouseLeave:P,onMouseDown:B,onMouseUp:q,onTouchStart:X,onTouchMove:J,onTouchEnd:ee,onClick:H,onDoubleClick:Y})]})},Yme=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},Gme=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 Pp(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 T4,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 w.jsx(hb,{id:w.jsxs("span",{children:["x: ",w.jsx("strong",{children:t.data.xFormatted}),", y:"," ",w.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 w.jsx(RT,{rows:t.points.map(function(o){return[w.jsx(AT,{color:o.seriesColor,style:r.tooltip.chip},"chip"),o.seriesId,w.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"&&(T4=window.devicePixelRatio)!=null?T4:1,axisTop:null,axisRight:null,axisBottom:Kn,axisLeft:Kn});function Kme(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(ok(e))},[e])}function Zme(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return m.useMemo(function(){return Kie().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(ok(t)).y0(n(r))},[t,n,r])}var Xme=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])},Qme="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,y=_===void 0?yi.pointBorderColor:_,C=e.enableSlices,b=C===void 0?rt.enableSlices:C,$=e.initialHiddenIds,E=$===void 0?rt.initialHiddenIds:$,k=m.useState(gme(Qme))[0],O=Is(i),j=Is(s),S=Jb(d,"id"),T=Ft(),A=Sr(x,T),D=Sr(y,T),R=m.useState(E??[]),M=R[0],I=R[1],z=m.useMemo(function(){return tme(t.filter(function(U){return M.indexOf(U.id)===-1}),r,a,l,c)},[t,M,r,a,l,c]),W=z.xScale,P=z.yScale,B=z.series,q=m.useMemo(function(){var U=t.map(function(F){return{id:F.id,label:""+F.id,color:S(F)}}),L=U.map(function(F){return Dn({},B.find(function(V){return V.id===F.id}),{color:F.color})}).filter(function(F){return!!F.id});return{legendData:U.map(function(F){return Dn({},F,{hidden:!L.find(function(V){return V.id===F.id})})}).reverse(),series:L}},[t,B,S]),H=q.legendData,Y=q.series,X=m.useCallback(function(U){I(function(L){return L.indexOf(U)>-1?L.filter(function(F){return F!==U}):[].concat(L,[U])})},[]),J=function(U){var L=U.series,F=U.getPointColor,V=U.getPointBorderColor,N=U.formatX,Q=U.formatY;return m.useMemo(function(){return L.reduce(function(G,K,se){return[].concat(G,K.data.filter(function(ne){return ne.position.x!==null&&ne.position.y!==null}).map(function(ne,re){var oe={id:K.id+"."+re,indexInSeries:re,absIndex:G.length+re,seriesIndex:se,seriesId:K.id,seriesColor:K.color,x:ne.position.x,y:ne.position.y,data:Dn({},ne.data,{xFormatted:N(ne.data.x),yFormatted:Q(ne.data.y)})};return oe.color=F({series:K,point:oe}),oe.borderColor=V(oe),oe}))},[])},[L,F,V,N,Q])}({series:Y,getPointColor:A,getPointBorderColor:D,formatX:O,formatY:j}),ee=Xme({componentId:k,enableSlices:b,points:J,width:l,height:c});return{legendData:H,toggleSeries:X,lineGenerator:Kme(h),areaGenerator:Zme({curve:h,yScale:P,areaBaselineValue:g}),getColor:S,series:Y,xScale:W,yScale:P,slices:ee,points:J}},Jme=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 w.jsx(Yt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},ege=m.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return w.jsx("g",{children:i.map(function(o){return w.jsx(Jme,Dn({path:t(o.data.map(function(a){return a.position}))},Dn({areaOpacity:n,areaBlendMode:r},o)),""+o.id)})})}),tge=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 w.jsx(Yt.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),nge=m.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return w.jsx(w.Fragment,{children:t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return w.jsx(tge,{points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})})}),rge=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(),y=_.showTooltipFromEvent,C=_.hideTooltip,b=m.useCallback(function(R){y(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),l==null||l(t,R)},[y,o,t,r,s,l]),$=m.useCallback(function(R){y(m.createElement(o,{slice:t,axis:r}),R,"right"),c==null||c(t,R)},[y,o,t,r,c]),E=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]),T=m.useCallback(function(R){y(m.createElement(o,{slice:t,axis:r}),R,"right"),s(t),g==null||g(t,R)},[r,g,s,y,t,o]),A=m.useCallback(function(R){var M=R.touches[0],I=document.elementFromPoint(M.clientX,M.clientY),z=I==null?void 0:I.getAttribute("data-ref");if(z){var W=n.find(function(P){return P.id===z});W&&(y(m.createElement(o,{slice:W,axis:r}),R,"right"),s(W))}v==null||v(t,R)},[r,v,s,y,t,n,o]),D=m.useCallback(function(R){C(),s(null),x==null||x(t,R)},[C,s,x,t]);return w.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:E,onMouseDown:k,onMouseUp:O,onClick:j,onDoubleClick:S,onTouchStart:T,onTouchMove:A,onTouchEnd:D,"data-ref":t.id})}),ige=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 w.jsx(w.Fragment,{children:t.map(function(x){return w.jsx(rge,{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)})})}),oge=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=mde(a),_=Ui(),y=_.showTooltipAt,C=_.hideTooltip,b=t.slice(0).sort(function($,E){return $.indexInSeries-E.indexInSeries}).sort(function($,E){return E.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($),y(m.createElement(u,{point:$}),[d.left+$.x,d.top+$.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return w.jsx("g",{children:b.map(function($){return w.jsx(dde,{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)})})}),age=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,y=Ui(),C=y.showTooltipAt,b=y.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]),E=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]),T=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 w.jsx(qme,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:$,onMouseMove:E,onMouseLeave:k,onMouseDown:O,onMouseUp:j,onClick:S,onDoubleClick:T,onTouchStart:A,onTouchMove:D,onTouchEnd:R,enableTouchCrosshair:_,debug:x})}),sge=["isInteractive","animate","motionConfig","theme","renderWrapper"];function lge(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,y=e.enableArea,C=y===void 0?rt.enableArea:y,b=e.areaBaselineValue,$=b===void 0?rt.areaBaselineValue:b,E=e.areaOpacity,k=E===void 0?rt.areaOpacity:E,O=e.areaBlendMode,j=O===void 0?rt.areaBlendMode:O,S=e.enablePoints,T=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,z=e.pointBorderWidth,W=z===void 0?rt.pointBorderWidth:z,P=e.pointBorderColor,B=P===void 0?rt.pointBorderColor:P,q=e.enablePointLabel,H=q===void 0?rt.enablePointLabel:q,Y=e.pointLabel,X=Y===void 0?rt.pointLabel:Y,J=e.pointLabelYOffset,ee=e.enableGridX,U=ee===void 0?rt.enableGridX:ee,L=e.gridXValues,F=e.enableGridY,V=F===void 0?rt.enableGridY:F,N=e.gridYValues,Q=e.axisTop,G=e.axisRight,K=e.axisBottom,se=K===void 0?rt.axisBottom:K,ne=e.axisLeft,re=ne===void 0?rt.axisLeft:ne,oe=e.defs,ue=oe===void 0?rt.defs:oe,ye=e.fill,xe=ye===void 0?rt.fill:ye,we=e.markers,Me=e.legends,de=Me===void 0?rt.legends:Me,le=e.isInteractive,be=le===void 0?rt.isInteractive:le,ze=e.useMesh,zt=ze===void 0?rt.useMesh:ze,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,Te=e.enableCrosshair,He=Te===void 0?rt.enableCrosshair:Te,yt=e.crosshairType,et=yt===void 0?rt.crosshairType:yt,pt=e.enableTouchCrosshair,tn=pt===void 0?rt.enableTouchCrosshair:pt,Bt=e.role,Ht=Bt===void 0?rt.role:Bt,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,dn=St.innerWidth,fn=St.innerHeight,Pn=St.outerWidth,ko=St.outerHeight,wt=zk({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:dn,height:fn,colors:p,curve:c,areaBaselineValue:$,pointColor:I,pointBorderColor:B,enableSlices:Ie,initialHiddenIds:$t}),Oo=wt.legendData,Oe=wt.toggleSeries,zr=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")&&(U||V)&&(Ln.grid=w.jsx(Nk,{width:dn,height:fn,xScale:U?Na:null,yScale:V?di:null,xValues:L,yValues:N},"grid")),_.includes("markers")&&Array.isArray(we)&&we.length>0&&(Ln.markers=w.jsx(ik,{markers:we,width:dn,height:fn,xScale:Na,yScale:di},"markers")),_.includes("axes")&&(Ln.axes=w.jsx(jk,{xScale:Na,yScale:di,width:dn,height:fn,top:Q,right:G,bottom:se,left:re},"axes")),_.includes("lines")&&(Ln.lines=w.jsx(nge,{series:ja,lineGenerator:zr,lineWidth:v},"lines")),_.includes("legends")&&de.length>0&&(Ln.legends=w.jsx(m.Fragment,{children:de.map(function(Br,Hi){return w.jsx(ny,Dn({},Br,{containerWidth:dn,containerHeight:fn,data:Br.data||Oo,toggleSerie:Br.toggleSerie?Oe:void 0}),Hi)})},"legends"));var zp=Xb(ue,ja,xe);C&&(Ln.areas=w.jsx(ege,{areaGenerator:Mo,areaOpacity:k,areaBlendMode:j,series:ja},"areas")),be&&Ie!==!1&&(Ln.slices=w.jsx(ige,{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")),T&&(Ln.points=w.jsx(oge,{points:fi,symbol:A,size:R,borderWidth:W,enableLabel:H,label:X,labelYOffset:J,isFocusable:Ct,setCurrentPoint:cl,tooltip:We,margin:kr,ariaLabel:cn,ariaLabelledBy:Zt,ariaDescribedBy:Pe,ariaHidden:Fe,ariaDisabled:ct},"points")),be&&He&&(Ao!==null&&(Ln.crosshair=w.jsx(Sv,{width:dn,height:fn,x:Ao.x,y:Ao.y,type:et},"crosshair")),Ro!==null&&Ie&&(Ln.crosshair=w.jsx(Sv,{width:dn,height:fn,x:Ro.x,y:Ro.y,type:Ie},"crosshair"))),be&&zt&&Ie===!1&&(Ln.mesh=w.jsx(age,{points:fi,width:dn,height:fn,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 Bp=Dn({},e,{innerWidth:dn,innerHeight:fn,series:ja,slices:Au,points:fi,xScale:Na,yScale:di,lineGenerator:zr,areaGenerator:Mo,currentPoint:Ao,setCurrentPoint:cl,currentSlice:Ro,setCurrentSlice:ju});return w.jsx(Dp,{defs:zp,width:Pn,height:ko,margin:kr,role:Ht,ariaLabel:vn,ariaLabelledBy:Kt,ariaDescribedBy:$e,isFocusable:Ct,ref:Xe,children:_.map(function(Br,Hi){return typeof Br=="function"?w.jsx(m.Fragment,{children:Br(Bp)},Hi):Ln[Br]})})}var cge=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=Pp(e,sge);return w.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:w.jsx(lge,Dn({isInteractive:r},u,{forwardedRef:t}))})}),uge=["defaultWidth","defaultHeight","onResize","debounceResize"],dge=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Pp(e,uge);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(cge,Dn({width:l,height:c},a,{ref:t}))}})}),fge=["isInteractive","renderWrapper","theme"],hge=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,y=e.lineWidth,C=y===void 0?on.lineWidth:y,b=e.enableArea,$=b===void 0?on.enableArea:b,E=e.areaBaselineValue,k=E===void 0?on.areaBaselineValue:E,O=e.areaOpacity,j=O===void 0?on.areaOpacity:O,S=e.enablePoints,T=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,z=I===void 0?on.pointBorderWidth:I,W=e.pointBorderColor,P=W===void 0?on.pointBorderColor:W,B=e.enableGridX,q=B===void 0?on.enableGridX:B,H=e.gridXValues,Y=e.enableGridY,X=Y===void 0?on.enableGridY:Y,J=e.gridYValues,ee=e.axisTop,U=e.axisRight,L=e.axisBottom,F=L===void 0?on.axisBottom:L,V=e.axisLeft,N=V===void 0?on.axisLeft:V,Q=e.legends,G=Q===void 0?on.legends:Q,K=e.isInteractive,se=K===void 0?on.isInteractive:K,ne=e.debugMesh,re=ne===void 0?on.debugMesh:ne,oe=e.onMouseLeave,ue=e.onMouseDown,ye=e.onMouseUp,xe=e.onClick,we=e.onDoubleClick,Me=e.tooltip,de=Me===void 0?on.tooltip:Me,le=e.role,be=e.forwardedRef,ze=m.useRef(null),zt=Ra(t,n,r),Le=zt.margin,gt=zt.innerWidth,_t=zt.innerHeight,nn=zt.outerWidth,Ee=zt.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=Fk({points:Ie,width:gt,height:_t,debug:re}),nt=ht.delaunay,Ne=ht.voronoi;m.useEffect(function(){if(ze.current!==null){ze.current.width=nn*o,ze.current.height=Ee*o;var $e=ze.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,q&&Nf($e,{width:gt,height:_t,scale:We,axis:"x",values:H}),X&&Nf($e,{width:gt,height:_t,scale:Qe,axis:"y",values:J})),Ze==="axes"&&Dk($e,{xScale:We,yScale:Qe,width:gt,height:_t,top:ee,right:U,bottom:F,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"&&T===!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(),z>0&&($e.strokeStyle=Fe.borderColor,$e.lineWidth=z,$e.stroke())}),Ze==="mesh"&&re===!0&&Ne!==void 0&&(Yme($e,Ne),qe&&Gme($e,Ne,qe.absIndex)),Ze==="legends"){var Pe=De.map(function(Fe){return{id:Fe.id,label:Fe.id,color:Fe.color}}).reverse();G.forEach(function(Fe){ry($e,Dn({},Fe,{data:Fe.data||Pe,containerWidth:gt,containerHeight:_t,theme:je}))})}})}},[ze,gt,nn,_t,Ee,Le.left,Le.top,o,v,je,At,De,We,Qe,q,H,X,J,ee,U,F,N,G,Ie,T,D,z,qe,Je,re,$,Ke,j,C,Ne]);var Te=m.useCallback(function($e){if(!ze.current)return null;var Ze=hs(ze.current,$e),Ct=Ze[0],cn=Ze[1];if(!ck(Le.left,Le.top,gt,_t,Ct,cn))return null;var Zt=nt.find(Ct-Le.left,cn-Le.top);return Ie[Zt]},[ze,Le,gt,_t,nt,Ie]),He=Ui(),yt=He.showTooltipFromEvent,et=He.hideTooltip,pt=m.useCallback(function($e){var Ze=Te($e);bt(Ze),Ze?yt(m.createElement(de,{point:Ze}),$e):et()},[Te,bt,yt,et,de]),tn=m.useCallback(function($e){et(),bt(null),qe&&(oe==null||oe(qe,$e))},[et,bt,oe,qe]),Bt=m.useCallback(function($e){if(ue){var Ze=Te($e);Ze&&ue(Ze,$e)}},[Te,ue]),Ht=m.useCallback(function($e){if(ye){var Ze=Te($e);Ze&&ye(Ze,$e)}},[Te,ye]),vn=m.useCallback(function($e){if(xe){var Ze=Te($e);Ze&&xe(Ze,$e)}},[Te,xe]),Kt=m.useCallback(function($e){if(we){var Ze=Te($e);Ze&&we(Ze,$e)}},[Te,we]);return w.jsx("canvas",{ref:Qb(ze,be),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?Bt:void 0,onMouseUp:se?Ht:void 0,onClick:se?vn:void 0,onDoubleClick:se?Kt:void 0,role:le})},pge=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Pp(e,fge);return w.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:w.jsx(hge,Dn({},o,{forwardedRef:t}))})}),mge=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=Pp(e,mge);return w.jsx(Aa,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(a){var s=a.width,l=a.height;return w.jsx(pge,Dn({width:s,height:l},o,{ref:t}))}})});var gge=$k;function vge(e,t){var n=[];return gge(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var bge=vge,yge=Y5,xge=bge,wge=iy,_ge=or;function Cge(e,t){var n=_ge(e)?yge:xge;return n(e,wge(t))}var $ge=Cge;const Sge=sn($ge);var Ege=Wi,Tge=Tr,kge="[object Number]";function Oge(e){return typeof e=="number"||Tge(e)&&Ege(e)==kge}var Mge=Oge;const k4=sn(Mge);function Age(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Rge=Age,jge=nl,Nge=Eu;function Dge(e,t){return e&&jge(t,Nge(t),e)}var Ige=Dge,Pge=nl,Lge=Cu;function Fge(e,t){return e&&Pge(t,Lge(t),e)}var zge=Fge,Bge=nl,Wge=Yb;function Uge(e,t){return Bge(e,Wge(e),t)}var Hge=Uge,Vge=Vb,qge=rb,Yge=Yb,Gge=G5,Kge=Object.getOwnPropertySymbols,Zge=Kge?function(e){for(var t=[];e;)Vge(t,Yge(e)),e=qge(e);return t}:Gge,Bk=Zge,Xge=nl,Qge=Bk;function Jge(e,t){return Xge(e,Qge(e),t)}var eve=Jge,tve=q5,nve=Bk,rve=Cu;function ive(e){return tve(e,rve,nve)}var Wk=ive,ove=Object.prototype,ave=ove.hasOwnProperty;function sve(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ave.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var lve=sve,cve=nb;function uve(e,t){var n=t?cve(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var dve=uve,fve=/\w*$/;function hve(e){var t=new e.constructor(e.source,fve.exec(e));return t.lastIndex=e.lastIndex,t}var pve=hve,O4=Zs,M4=O4?O4.prototype:void 0,A4=M4?M4.valueOf:void 0;function mve(e){return A4?Object(A4.call(e)):{}}var gve=mve,vve=nb,bve=dve,yve=pve,xve=gve,wve=cT,_ve="[object Boolean]",Cve="[object Date]",$ve="[object Map]",Sve="[object Number]",Eve="[object RegExp]",Tve="[object Set]",kve="[object String]",Ove="[object Symbol]",Mve="[object ArrayBuffer]",Ave="[object DataView]",Rve="[object Float32Array]",jve="[object Float64Array]",Nve="[object Int8Array]",Dve="[object Int16Array]",Ive="[object Int32Array]",Pve="[object Uint8Array]",Lve="[object Uint8ClampedArray]",Fve="[object Uint16Array]",zve="[object Uint32Array]";function Bve(e,t,n){var r=e.constructor;switch(t){case Mve:return vve(e);case _ve:case Cve:return new r(+e);case Ave:return bve(e,n);case Rve:case jve:case Nve:case Dve:case Ive:case Pve:case Lve:case Fve:case zve:return wve(e,n);case $ve:return new r;case Sve:case kve:return new r(e);case Eve:return yve(e);case Tve:return new r;case Ove:return xve(e)}}var Wve=Bve,Uve=Np,Hve=Tr,Vve="[object Map]";function qve(e){return Hve(e)&&Uve(e)==Vve}var Yve=qve,Gve=Yve,Kve=tl,R4=Vh,j4=R4&&R4.isMap,Zve=j4?Kve(j4):Gve,Xve=Zve,Qve=Np,Jve=Tr,e0e="[object Set]";function t0e(e){return Jve(e)&&Qve(e)==e0e}var n0e=t0e,r0e=n0e,i0e=tl,N4=Vh,D4=N4&&N4.isSet,o0e=D4?i0e(D4):r0e,a0e=o0e,s0e=Wh,l0e=Rge,c0e=cb,u0e=Ige,d0e=zge,f0e=sT,h0e=uT,p0e=Hge,m0e=eve,g0e=K5,v0e=Wk,b0e=Np,y0e=lve,x0e=Wve,w0e=fT,_0e=or,C0e=Hh,$0e=Xve,S0e=ui,E0e=a0e,T0e=Eu,k0e=Cu,O0e=1,M0e=2,A0e=4,Uk="[object Arguments]",R0e="[object Array]",j0e="[object Boolean]",N0e="[object Date]",D0e="[object Error]",Hk="[object Function]",I0e="[object GeneratorFunction]",P0e="[object Map]",L0e="[object Number]",Vk="[object Object]",F0e="[object RegExp]",z0e="[object Set]",B0e="[object String]",W0e="[object Symbol]",U0e="[object WeakMap]",H0e="[object ArrayBuffer]",V0e="[object DataView]",q0e="[object Float32Array]",Y0e="[object Float64Array]",G0e="[object Int8Array]",K0e="[object Int16Array]",Z0e="[object Int32Array]",X0e="[object Uint8Array]",Q0e="[object Uint8ClampedArray]",J0e="[object Uint16Array]",e1e="[object Uint32Array]",Xt={};Xt[Uk]=Xt[R0e]=Xt[H0e]=Xt[V0e]=Xt[j0e]=Xt[N0e]=Xt[q0e]=Xt[Y0e]=Xt[G0e]=Xt[K0e]=Xt[Z0e]=Xt[P0e]=Xt[L0e]=Xt[Vk]=Xt[F0e]=Xt[z0e]=Xt[B0e]=Xt[W0e]=Xt[X0e]=Xt[Q0e]=Xt[J0e]=Xt[e1e]=!0;Xt[D0e]=Xt[Hk]=Xt[U0e]=!1;function Od(e,t,n,r,i,o){var a,s=t&O0e,l=t&M0e,c=t&A0e;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!S0e(e))return e;var u=_0e(e);if(u){if(a=y0e(e),!s)return h0e(e,a)}else{var d=b0e(e),f=d==Hk||d==I0e;if(C0e(e))return f0e(e,s);if(d==Vk||d==Uk||f&&!i){if(a=l||f?{}:w0e(e),!s)return l?m0e(e,d0e(a,e)):p0e(e,u0e(a,e))}else{if(!Xt[d])return i?e:{};a=x0e(e,d,s)}}o||(o=new s0e);var h=o.get(e);if(h)return h;o.set(e,a),E0e(e)?e.forEach(function(v){a.add(Od(v,t,n,v,e,o))}):$0e(e)&&e.forEach(function(v,x){a.set(x,Od(v,t,n,x,e,o))});var p=c?l?v0e:g0e:l?k0e:T0e,g=u?void 0:p(e);return l0e(g||e,function(v,x){g&&(x=v,v=e[x]),c0e(a,x,Od(v,t,n,x,e,o))}),a}var t1e=Od;function n1e(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 r1e=n1e,i1e=$u,o1e=r1e;function a1e(e,t){return t.length<2?e:i1e(e,o1e(t,0,-1))}var s1e=a1e,l1e=rl,c1e=z5,u1e=s1e,d1e=il;function f1e(e,t){return t=l1e(t,e),e=u1e(e,t),e==null||delete e[d1e(c1e(t))]}var h1e=f1e,p1e=ab;function m1e(e){return p1e(e)?void 0:e}var g1e=m1e,v1e=Kh,b1e=t1e,y1e=h1e,x1e=rl,w1e=nl,_1e=g1e,C1e=H5,$1e=Wk,S1e=1,E1e=2,T1e=4,k1e=C1e(function(e,t){var n={};if(e==null)return n;var r=!1;t=v1e(t,function(o){return o=x1e(o,e),r||(r=o.length>1),o}),w1e(e,$1e(e),n),r&&(n=b1e(n,S1e|E1e|T1e,_1e));for(var i=t.length;i--;)y1e(n,t[i]);return n}),O1e=k1e;const qk=sn(O1e);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 qv={dotSize:4,noteWidth:120,noteTextOffset:8},M1e=function(e){var t=typeof e;return m.isValidElement(e)||t==="string"||t==="function"||t==="object"},A1e=function(e){var t=typeof e;return t==="string"||t==="function"},Vc=function(e){return e.type==="circle"},Yv=function(e){return e.type==="dot"},qc=function(e){return e.type==="rect"},R1e=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,Sge(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({},qk(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},j1e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return ode(Tu(i))},Yk=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?qv.noteWidth:s,c=e.noteTextOffset,u=c===void 0?qv.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=j1e(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}},Gk=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return m.useMemo(function(){return R1e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},N1e=function(e){var t=e.annotations;return m.useMemo(function(){return t.map(function(n){return ai({},n,{computed:Yk(ai({},n))})})},[t])},D1e=function(e){return m.useMemo(function(){return Yk(e)},[e])},I1e=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}):w.jsxs(w.Fragment,{children:[o.annotations.text.outlineWidth>0&&w.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}),w.jsx(Yt.text,{x:c.x,y:c.y,style:qk(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),w.jsx(Yt.path,{fill:"none",d:a,style:s})},P1e=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 w.jsxs(w.Fragment,{children:[i.annotations.outline.outlineWidth>0&&w.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})}),w.jsx(Yt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},L1e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?qv.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 w.jsxs(w.Fragment,{children:[o.annotations.outline.outlineWidth>0&&w.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})}),w.jsx(Yt.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},F1e=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 w.jsxs(w.Fragment,{children:[s.annotations.outline.outlineWidth>0&&w.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})}),w.jsx(Yt.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},z1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=D1e(e);if(!M1e(i))throw new Error("note should be a valid react element");return w.jsxs(w.Fragment,{children:[w.jsx(I4,{points:o.points,isOutline:!0}),Vc(e)&&w.jsx(P1e,{x:n,y:r,size:e.size}),Yv(e)&&w.jsx(L1e,{x:n,y:r,size:e.size}),qc(e)&&w.jsx(F1e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),w.jsx(I4,{points:o.points}),w.jsx(I1e,{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(!A1e(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()),Yv(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()),Yv(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())},W1e=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 Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(null,arguments)}function To(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,U1e=function(e){var t=e.bars,n=e.annotations,r=Gk({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 w.jsx(w.Fragment,{children:r.map(function(i,o){return w.jsx(z1e,Et({},i),o)})})},H1e=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return w.jsx(w.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return w.jsx(ny,Et({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},V1e=["data"],q1e=function(e){var t,n=e.bar,r=n.data,i=To(n,V1e),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,y=e.shouldRenderLabel,C=e.isInteractive,b=e.onClick,$=e.onMouseEnter,E=e.onMouseLeave,k=e.tooltip,O=e.isFocusable,j=e.ariaLabel,S=e.ariaLabelledBy,T=e.ariaDescribedBy,A=e.ariaDisabled,D=e.ariaHidden,R=Ft(),M=Ui(),I=M.showTooltipFromEvent,z=M.showTooltipAt,W=M.hideTooltip,P=m.useMemo(function(){return function(){return m.createElement(k,Et({},i,r))}},[k,i,r]),B=m.useCallback(function(ee){b==null||b(Et({color:i.color},r),ee)},[i,r,b]),q=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){E==null||E(r,ee),W()},[r,W,E]),X=m.useCallback(function(){z(P(),[i.absX+i.width/2,i.absY])},[z,P,i]),J=m.useCallback(function(){W()},[W]);return w.jsxs(Yt.g,{transform:h,children:[w.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":T?T(r):void 0,"aria-disabled":A?A(r):void 0,"aria-hidden":D?D(r):void 0,onMouseEnter:C?H:void 0,onMouseMove:C?q:void 0,onMouseLeave:C?Y:void 0,onClick:C?B:void 0,onFocus:C&&O?X:void 0,onBlur:C&&O?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),y&&w.jsx(sl,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Et({},R.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},Y1e=["color","label"],G1e=function(e){var t=e.color,n=e.label,r=To(e,Y1e);return w.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:G1e,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Vt=Et({},qt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:q1e,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),hn=Et({},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(),W1e(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}),Kk=function(e,t,n,r,i,o){return Hc(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},Zk=function(e,t){return e.map(function(n){return Et({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Lp=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Fp=function(e){return[e,Number(e)]};function Xk(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 K1e=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],ay=function(e,t){return e>t},Qk=function(e,t){return e<t},Jk=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Z1e=function(e){return ay(e,0)?0:e},X1e=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?Qk:ay,v=i.map(Lp),x=[];return d.forEach(function(_,y){return Jk(0,f.domain().length).forEach(function(C){var b,$,E,k=Fp(i[C][_]),O=k[0],j=k[1],S=s(i[C]),T=((b=f(S))!=null?b:0)+t*y+u*y,A=g($=j,0)?(E=h($))!=null?E:0:r,D=function(M,I){var z;return g(M,0)?r-I:((z=h(M))!=null?z: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:T,y:A,absX:p.left+T,absY:p.top+A,width:t,height:D,color:a(R),label:l(R)})})}),x},Q1e=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?Qk:ay,v=i.map(Lp),x=[];return c.forEach(function(_,y){return Jk(0,h.domain().length).forEach(function(C){var b,$,E,k=Fp(i[C][_]),O=k[0],j=k[1],S=a(i[C]),T=g($=j,0)?r:(E=f($))!=null?E:0,A=((b=h(S))!=null?b:0)+t*y+d*y,D=function(M,I){var z;return g(M,0)?((z=f(M))!=null?z:0)-r:r-I}(j,T),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:T,y:A,absX:p.left+T,absY:p.top+A,width:D,height:t,color:s(R),label:l(R)})})}),x},J1e=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=To(e,K1e),v=g.keys.filter(function(I){return!p.includes(I)}),x=Zk(g.data,v),_=i==="vertical"?["y","x",o]:["x","y",a],y=_[0],C=_[1],b=_[2],$=Kk(x,g.getIndex,l,f,b,C),E=d.min==="auto"?Z1e:function(I){return I},k=x.reduce(function(I,z){return[].concat(I,v.map(function(W){return z[W]}))},[]).filter(Boolean),O=E(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},y==="x"?o:a,y),T=i==="vertical"?[$,S]:[S,$],A=T[0],D=T[1],R=($.bandwidth()-u*(v.length-1))/v.length,M=[Et({},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"?X1e.apply(void 0,M):Q1e.apply(void 0,M):[]}},ebe=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],eO=function(e){var t;return e.some(Array.isArray)?eO((t=[]).concat.apply(t,e)):e},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 c.domain().forEach(function(p,g){var v,x,_=h[g],y=(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 T;return((T=u(j[n?1:0]))!=null?T:0)-S}(_,C)-s,$=Fp(_.data[h.key]),E=$[0],k=$[1],O={id:h.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Lp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:y,y:C,absX:d.left+y,absY:d.top+C,width:t,height:b,color:i(O),label:a(O)})})}),f},nbe=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],y=(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 T;return((T=c(j[n?0:1]))!=null?T:0)-S}(_,C)-s,$=Fp(_.data[h.key]),E=$[0],k=$[1],O={id:h.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:g,indexValue:p,data:Lp(_.data)};f.push({key:h.key+"."+p,index:f.length,data:O,x:C,y,absX:d.left+C,absY:d.top+y,width:b,height:t,color:i(O),label:a(O)})})}),f},rbe=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=To(e,ebe),p=h.keys.filter(function(R){return!f.includes(R)}),g=boe().keys(p).offset(yoe)(Zk(r,p)),v=i==="vertical"?["y","x",o]:["x","y",a],x=v[0],_=v[1],y=v[2],C=Kk(r,h.getIndex,l,u,y,_),b=(n=eO(g),c.type==="log"?n.filter(function(R){return R!==0}):n),$=Math.min.apply(Math,b),E=Math.max.apply(Math,b),k=Hc(c,{all:b,min:$,max:E},x==="x"?o:a,x),O=i==="vertical"?[C,k]:[k,C],j=O[0],S=O[1],T=h.innerPadding>0?h.innerPadding:0,A=C.bandwidth(),D=[Et({},h,{innerPadding:T,stackedData:g,xScale:j,yScale:S}),A,(t=c.reverse)!=null&&t];return{xScale:j,yScale:S,bars:A>0?i==="vertical"?tbe.apply(void 0,D):nbe.apply(void 0,D):[]}},ibe=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=sk(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Uv(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=Uv(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)},obe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},abe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},sbe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},tO=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,y=e.groupMode,C=y===void 0?qt.groupMode:y,b=e.layout,$=b===void 0?qt.layout:b,E=e.data,k=e.margin,O=e.width,j=e.height,S=e.padding,T=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,z=I===void 0?qt.indexScale:I,W=e.initialHiddenIds,P=W===void 0?qt.initialHiddenIds:W,B=e.enableLabel,q=B===void 0?qt.enableLabel:B,H=e.labelSkipWidth,Y=H===void 0?qt.labelSkipWidth:H,X=e.labelSkipHeight,J=X===void 0?qt.labelSkipHeight:X,ee=e.legends,U=ee===void 0?qt.legends:ee,L=e.legendLabel,F=e.totalsOffset,V=F===void 0?qt.totalsOffset:F,N=m.useState(P??[]),Q=N[0],G=N[1],K=m.useCallback(function(Ee){G(function(je){return je.indexOf(Ee)>-1?je.filter(function(vt){return vt!==Ee}):[].concat(je,[Ee])})},[]),se=Oi(r),ne=Oi(s),re=Oi(c),oe=Is(u),ue=Ft(),ye=Jb(f,p),xe=Sr(v,ue),we=Sr(_,ue),Me=(C==="grouped"?J1e:rbe)({layout:$,data:E,getIndex:se,keys:o,width:O,height:j,getColor:ye,padding:T,innerPadding:D,valueScale:M,indexScale:z,hiddenIds:Q,formatValue:oe,getTooltipLabel:re,margin:k}),de=Me.bars,le=Me.xScale,be=Me.yScale,ze=m.useMemo(function(){return de.filter(function(Ee){return Ee.data.value!==null}).map(function(Ee,je){return Et({},Ee,{index:je})})},[de]),zt=m.useCallback(function(Ee){var je=Ee.width,vt=Ee.height;return!!q&&!(Y>0&&je<Y)&&!(J>0&&vt<J)},[q,Y,J]),Le=m.useMemo(function(){return o.map(function(Ee){var je=de.find(function(vt){return vt.data.id===Ee});return Et({},je,{data:Et({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 U.map(function(Ee){return[Ee,ibe({bars:Ee.dataFrom==="keys"?Le:de,direction:Ee.direction,from:Ee.dataFrom,groupMode:C,layout:$,legendLabel:L,reverse:gt})]})},[U,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,Te=Ne.indexValue,He=Ne.value;F4(De,Te,Number(He)),obe(Ie,Te,Number(He))}),Ie.forEach(function(nt,Ne){var Te,He,yt,et=De.get(Ne)||0;qe==="vertical"?(Te=je(Ne),He=vt(nt),yt=vt(nt/2)):(Te=je(nt),He=vt(Ne),yt=je(nt/2)),Te+=qe==="vertical"?We/2:at,He+=qe==="vertical"?-at:Qe/2,Ke.push({key:"total_"+Ne,x:Te,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,Te=Ne.indexValue,He=Ne.value;F4(De,Te,Number(He)),abe(Je,Te,Number(He)),sbe(ht,Te)}),Je.forEach(function(nt,Ne){var Te,He,yt,et=De.get(Ne)||0,pt=ht.get(Ne);qe==="vertical"?(Te=je(Ne),He=vt(nt),yt=vt(nt/2)):(Te=je(nt),He=vt(Ne),yt=je(nt/2)),Te+=qe==="vertical"?pt*We/2:at,He+=qe==="vertical"?-at:pt*Qe/2,Ke.push({key:"total_"+Ne,x:Te,y:He,value:et,formattedValue:At(et),animationOffset:yt})})}return Ke}(de,le,be,$,C,V,oe)},[de,le,be,$,C,V,oe]);return{bars:de,barsWithValue:ze,xScale:le,yScale:be,getIndex:se,getLabel:ne,getTooltipLabel:re,formatValue:oe,getColor:ye,getBorderColor:xe,getLabelColor:we,shouldRenderBarLabel:zt,hiddenIds:Q,toggleSerie:K,legendsWithData:_t,barTotals:nn}},lbe=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 w.jsx(Yt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Et({},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)})},cbe=["isInteractive","animate","motionConfig","theme","renderWrapper"],ube=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,y=_===void 0?Vt.axisLeft:_,C=e.enableGridX,b=C===void 0?Vt.enableGridX:C,$=e.enableGridY,E=$===void 0?Vt.enableGridY:$,k=e.gridXValues,O=e.gridYValues,j=e.layers,S=j===void 0?Vt.layers:j,T=e.barComponent,A=T===void 0?Vt.barComponent:T,D=e.enableLabel,R=D===void 0?Vt.enableLabel:D,M=e.label,I=e.labelSkipWidth,z=I===void 0?Vt.labelSkipWidth:I,W=e.labelSkipHeight,P=W===void 0?Vt.labelSkipHeight:W,B=e.labelTextColor,q=e.labelPosition,H=q===void 0?Vt.labelPosition:q,Y=e.labelOffset,X=Y===void 0?Vt.labelOffset:Y,J=e.markers,ee=J===void 0?Vt.markers:J,U=e.colorBy,L=e.colors,F=e.defs,V=F===void 0?Vt.defs:F,N=e.fill,Q=N===void 0?Vt.fill:N,G=e.borderRadius,K=G===void 0?Vt.borderRadius:G,se=e.borderWidth,ne=se===void 0?Vt.borderWidth:se,re=e.borderColor,oe=e.annotations,ue=oe===void 0?Vt.annotations:oe,ye=e.legendLabel,xe=e.tooltipLabel,we=e.valueFormat,Me=e.isInteractive,de=Me===void 0?Vt.isInteractive:Me,le=e.tooltip,be=le===void 0?Vt.tooltip:le,ze=e.onClick,zt=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,Te=qn(),He=Te.animate,yt=Te.config,et=Ra(a,s,o),pt=et.outerWidth,tn=et.outerHeight,Bt=et.margin,Ht=et.innerWidth,vn=et.innerHeight,Kt=tO({indexBy:r,label:M,tooltipLabel:xe,valueFormat:we,colors:L,colorBy:U,borderColor:re,labelTextColor:B,groupMode:l,layout:c,data:n,keys:i,margin:Bt,width:Ht,height:vn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:R,labelSkipWidth:z,labelSkipHeight:P,legends:gt,legendLabel:ye,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,dn=Xk(c,(t=u==null?void 0:u.reverse)!=null&&t,H,X),fn=Ca(Ze,{keys:function(Oe){return Oe.key},from:function(Oe){return Et({borderColor:Fe(Oe),color:Oe.color,height:0,labelColor:ct(Oe),labelOpacity:0},dn(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+(Oe.y+Oe.height)+")",width:Oe.width},c==="vertical"?{}:{height:Oe.height,transform:"translate("+Oe.x+", "+Oe.y+")",width:0})},enter:function(Oe){return Et({borderColor:Fe(Oe),color:Oe.color,height:Oe.height,labelColor:ct(Oe),labelOpacity:1},dn(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+Oe.y+")",width:Oe.width})},update:function(Oe){return Et({borderColor:Fe(Oe),color:Oe.color,height:Oe.height,labelColor:ct(Oe),labelOpacity:1},dn(Oe.width,Oe.height),{transform:"translate("+Oe.x+", "+Oe.y+")",width:Oe.width})},leave:function(Oe){return Et({borderColor:Fe(Oe),color:Oe.color,height:0,labelColor:ct(Oe),labelOpacity:0},dn(Oe.width,Oe.height),{labelY:0,transform:"translate("+Oe.x+", "+(Oe.y+Oe.height)+")",width:Oe.width},c==="vertical"?{}:Et({},dn(Oe.width,Oe.height),{labelX:0,height:Oe.height,transform:"translate("+Oe.x+", "+Oe.y+")",width:0}))},config:yt,immediate:!He,initial:He?void 0:null}),Pn=m.useMemo(function(){return{borderRadius:K,borderWidth:ne,enableLabel:R,isInteractive:de,labelSkipWidth:z,labelSkipHeight:P,onClick:ze,onMouseEnter:zt,onMouseLeave:Le,getTooltipLabel:Pe,tooltip:be,isFocusable:bt,ariaLabel:at,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:De,ariaDisabled:We}},[K,ne,R,Pe,de,P,z,ze,zt,Le,be,bt,at,At,Ke,De,We]),ko=Xb(V,$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=w.jsx(U1e,{bars:$e,annotations:ue},"annotations")),S.includes("axes")&&(wt.axes=w.jsx(jk,{xScale:Ct,yScale:cn,width:Ht,height:vn,top:p,right:g,bottom:x,left:y},"axes")),S.includes("bars")&&(wt.bars=w.jsx(m.Fragment,{children:fn(function(Oe,zr){return m.createElement(A,Et({},Pn,{bar:zr,style:Oe,shouldRenderLabel:Rt(zr),label:Zt(zr.data)}))})},"bars")),S.includes("grid")&&(wt.grid=w.jsx(Nk,{width:Ht,height:vn,xScale:b?Ct:null,yScale:E?cn:null,xValues:k,yValues:O},"grid")),S.includes("legends")&&(wt.legends=w.jsx(H1e,{width:Ht,height:vn,legends:Xe,toggleSerie:$t},"legends")),S.includes("markers")&&(wt.markers=w.jsx(ik,{markers:ee,width:Ht,height:vn,xScale:Ct,yScale:cn},"markers")),S.includes("totals")&&Je&&(wt.totals=w.jsx(lbe,{data:St,springConfig:yt,animate:He,layout:c},"totals"));var Oo=Et({},Pn,{margin:Bt,width:a,height:s,innerWidth:Ht,innerHeight:vn,bars:$e,legendData:Xe,enableLabel:R,xScale:Ct,yScale:cn,tooltip:be,getTooltipLabel:Pe,onClick:ze,onMouseEnter:zt,onMouseLeave:Le,getColor:kr});return w.jsx(Dp,{width:pt,height:tn,margin:Bt,defs:ko,role:nn,ariaLabel:Ee,ariaLabelledBy:je,ariaDescribedBy:vt,isFocusable:bt,ref:Ne,children:S.map(function(Oe,zr){var Mo;return typeof Oe=="function"?w.jsx(m.Fragment,{children:m.createElement(Oe,Oo)},zr):(Mo=wt==null?void 0:wt[Oe])!=null?Mo:null})})},dbe=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=To(e,cbe);return w.jsx(Ma,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:w.jsx(ube,Et({},u,{isInteractive:r,forwardedRef:t}))})}),fbe=["isInteractive","renderWrapper","theme"],pg=function(e,t,n,r){return e.find(function(i){return ck(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},hbe=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?hn.axisBottom:v,_=e.axisLeft,y=_===void 0?hn.axisLeft:_,C=e.enableGridX,b=C===void 0?hn.enableGridX:C,$=e.enableGridY,E=$===void 0?hn.enableGridY:$,k=e.gridXValues,O=e.gridYValues,j=e.labelPosition,S=j===void 0?hn.labelPosition:j,T=e.labelOffset,A=T===void 0?hn.labelOffset:T,D=e.layers,R=D===void 0?hn.layers:D,M=e.renderBar,I=M===void 0?hn.renderBar:M,z=e.enableLabel,W=z===void 0?hn.enableLabel:z,P=e.label,B=e.labelSkipWidth,q=B===void 0?hn.labelSkipWidth:B,H=e.labelSkipHeight,Y=H===void 0?hn.labelSkipHeight:H,X=e.labelTextColor,J=e.colorBy,ee=e.colors,U=e.borderRadius,L=U===void 0?hn.borderRadius:U,F=e.borderWidth,V=F===void 0?hn.borderWidth:F,N=e.borderColor,Q=e.annotations,G=Q===void 0?hn.annotations:Q,K=e.legendLabel,se=e.tooltipLabel,ne=e.valueFormat,re=e.isInteractive,oe=re===void 0?hn.isInteractive:re,ue=e.tooltip,ye=ue===void 0?hn.tooltip:ue,xe=e.onClick,we=e.onMouseEnter,Me=e.onMouseLeave,de=e.legends,le=e.pixelRatio,be=le===void 0?hn.pixelRatio:le,ze=e.role,zt=e.forwardedRef,Le=e.enableTotals,gt=Le===void 0?hn.enableTotals:Le,_t=e.totalsOffset,nn=_t===void 0?hn.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=tO({indexBy:r,label:P,tooltipLabel:se,valueFormat:ne,colors:ee,colorBy:J,borderColor:N,labelTextColor:X,groupMode:l,layout:c,data:n,keys:i,margin:qe,width:bt,height:at,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:W,labelSkipWidth:q,labelSkipHeight:Y,legends:de,legendLabel:K,totalsOffset:nn}),We=De.bars,Qe=De.barsWithValue,Ie=De.xScale,Je=De.yScale,ht=De.getLabel,nt=De.getTooltipLabel,Ne=De.getBorderColor,Te=De.getLabelColor,He=De.shouldRenderBarLabel,yt=De.legendsWithData,et=De.barTotals,pt=De.getColor,tn=Ui(),Bt=tn.showTooltipFromEvent,Ht=tn.hideTooltip,vn=N1e({annotations:Gk({data:We,annotations:G,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:V,isInteractive:oe,isFocusable:!1,labelSkipWidth:q,labelSkipHeight:Y,margin:qe,width:a,height:s,innerWidth:bt,innerHeight:at,bars:We,legendData:yt,enableLabel:W,xScale:Ie,yScale:Je,tooltip:ye,getTooltipLabel:nt,onClick:xe,onMouseEnter:we,onMouseLeave:Me,getColor:pt}},[L,V,oe,q,Y,qe,a,s,bt,at,We,yt,W,Ie,Je,ye,nt,xe,we,Me,pt]),$e=Is(ne),Ze=Xk(c,(t=u==null?void 0:u.reverse)!=null&&t,S,A);m.useEffect(function(){if(Ee.current){Ee.current.width=At*be,Ee.current.height=Ke*be;var Pe=Ee.current.getContext("2d");Pe.scale(be,be),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}),E&&Nf(Pe,{width:bt,height:at,scale:Je,axis:"y",values:O})):Fe==="axes"?Dk(Pe,{xScale:Ie,yScale:Je,width:bt,height:at,top:p,right:g,bottom:x,left:y,theme:je}):Fe==="bars"?(ya(Pe,je.text),Qe.forEach(function(ct){I(Pe,Et({bar:ct,borderColor:Ne(ct),borderRadius:L,borderWidth:V,label:ht(ct.data),shouldRenderLabel:He(ct),labelStyle:Et({},je.labels.text,{fill:Te(ct)})},Ze(ct.width,ct.height)))})):Fe==="legends"?yt.forEach(function(ct){var Rt=ct[0],$t=ct[1];ry(Pe,Et({},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=hn.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,y,g,p,Qe,L,V,vn,b,E,Ne,ht,Te,k,O,l,s,at,bt,Kt,R,c,yt,qe.left,qe.top,Ke,At,be,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=pg(We,qe,ct,Rt);$t!==void 0?(Bt(m.createElement(ye,Et({},$t.data,{color:$t.color,label:$t.label,value:Number($t.data.value)})),Pe),Pe.type==="mouseenter"&&(we==null||we($t.data,Pe))):Ht()}},[Ht,qe,we,We,Bt,ye]),cn=m.useCallback(function(Pe){if(We&&Ee.current){Ht();var Fe=hs(Ee.current,Pe),ct=Fe[0],Rt=Fe[1],$t=pg(We,qe,ct,Rt);$t&&(Me==null||Me($t.data,Pe))}},[Ht,qe,Me,We]),Zt=m.useCallback(function(Pe){if(We&&Ee.current){var Fe=hs(Ee.current,Pe),ct=Fe[0],Rt=Fe[1],$t=pg(We,qe,ct,Rt);$t!==void 0&&(xe==null||xe(Et({},$t.data,{color:$t.color}),Pe))}},[qe,xe,We]);return w.jsx("canvas",{ref:Qb(Ee,zt),width:At*be,height:Ke*be,style:{width:At,height:Ke,cursor:oe?"auto":"normal"},onMouseEnter:oe?Ct:void 0,onMouseMove:oe?Ct:void 0,onMouseLeave:oe?cn:void 0,onClick:oe?Zt:void 0,role:ze})},pbe=m.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=To(e,fbe);return w.jsx(Ma,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:w.jsx(hbe,Et({},o,{isInteractive:n,forwardedRef:t}))})}),mbe=["defaultWidth","defaultHeight","onResize","debounceResize"],gbe=m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=To(e,mbe);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(dbe,Et({},a,{width:l,height:c,ref:t}))}})}),vbe=["defaultWidth","defaultHeight","onResize","debounceResize"];m.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=To(e,vbe);return w.jsx(Aa,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return w.jsx(pbe,Et({},a,{width:l,height:c,ref:t}))}})});exports.AbstractModalHeader=$0;exports.Alert=I1;exports.ApprovalState=k9;exports.AuthContext=Jf;exports.Backdrop=mE;exports.BaseModal=dC;exports.BootstrapModalManager=fC;exports.Button=a0;exports.Col=s0;exports.ConfirmContext=jC;exports.ContextButton=dh;exports.CustomSelectInput=J$;exports.DelegationContext=VC;exports.Documents=qq;exports.Dropdown=q0;exports.Dropdown$1=xs;exports.DropdownDivider=Yg;exports.DropdownItem=Yo;exports.DropdownToggle=V0;exports.ENTERED=to;exports.ENTERING=xi;exports.EXITED=Xi;exports.EXITING=Ad;exports.FaMinus=KI;exports.FaPlus=ZI;exports.FaSearch=XI;exports.Fade=ho;exports.Fe=T9;exports.FileExtensionIcon=iE;exports.FloatingLabelInput=fh;exports.Form=si;exports.FormCheckInput=Gf;exports.FormControl=Q3;exports.FormDisabledContext=Y$;exports.FormSelect=b0;exports.HelmetContext=q$;exports.HookFormTextAreaInput=U0;exports.HookFormTextInput=Ts;exports.HtmlTooltip=KC;exports.IconButton=au;exports.InputAnchorContainer=Z$;exports.InvalidFeedback=Eh;exports.ListGroup=cC;exports.ListGroupItem=Kf;exports.LoadingContext=Qf;exports.LoginState=UC;exports.LuminusComponentsContext=ln;exports.MdArrowRight=g7;exports.MdCheck=v7;exports.MdCircle=m7;exports.MdClear=Qc;exports.MdOutlineAddCircleOutline=$7;exports.MdOutlineArrowOutward=b7;exports.MdOutlineCameraAlt=A7;exports.MdOutlineChevronRight=D7;exports.MdOutlineClose=AC;exports.MdOutlineDelete=MC;exports.MdOutlineEdit=R7;exports.MdOutlineExpand=x7;exports.MdOutlineFileUpload=T7;exports.MdOutlineKeyboardArrowLeft=k7;exports.MdOutlineKeyboardArrowRight=O7;exports.MdOutlineKeyboardDoubleArrowLeft=M7;exports.MdOutlineMenu=I7;exports.MdOutlinePhotoLibrary=j7;exports.MdOutlineStar=F7;exports.MdOutlineSubdirectoryArrowRight=L7;exports.MdSave=p7;exports.MdSaveAs=h7;exports.MdSearch=f7;exports.Me=dge;exports.MiniDetailWrapper=Q$;exports.Modal=Xn;exports.ModalContext=_0;exports.NoInputContainer=K$;exports.OverlayTrigger=TC;exports.PageContainer=gY;exports.PrimaryButton=da;exports.PromptContext=NC;exports.PropTypes=ve;exports.ResponsiveContextDropdown=hE;exports.ResponsiveContextDropdownItem=R1;exports.RowLabelInput=su;exports.ShortcutLinksContext=eG;exports.SideContentBar=oE;exports.SimpleDropdownToggle=H0;exports.SimplePicker=pE;exports.SimpleTooltip=O0;exports.Spinner=E0;exports.TextInput=X$;exports.Tooltip=SC;exports.TransitionWrapper=t0;exports.Typography=Bn;exports.UserContext=HC;exports.Xe=gbe;exports.a=j1;exports.addLeadingZeros=Lt;exports.arrayType=z$;exports.atobUtf8=XC;exports.axios=Qt;exports.buildEmployeeNameString=q9;exports.buildOrgUnitString=Y9;exports.buildVehicleNameString=V9;exports.cancelToken=rD;exports.capitalizeFirstLetter=H9;exports.classNames=ce;exports.classes=Vg;exports.classes$1=eS;exports.compareDate=Z9;exports.compareDateTime=X9;exports.compilerRuntimeExports=Re;exports.constructFrom=Ai;exports.context=qf;exports.differenceInCalendarDays=q4;exports.dist=N1;exports.divWithClassName=n0;exports.extractErrorsFromResponse=k0;exports.extractFilename=t$;exports.extractPermissionsFromResponse=GC;exports.fixNameIdNulls=qC;exports.format=Xv;exports.formatDate=W9;exports.formatDateTime=U9;exports.formatFileSize=ws;exports.getChildRef=Fs;exports.getDateString=rj;exports.getDaysDifference=Q9;exports.getFirstDayOfMonth=JC;exports.getFirstDayOfOffsetMonth=J9;exports.getFirstDayOfYear=tj;exports.getLastDayOfMonth=e$;exports.getLastDayOfOffsetMonth=ej;exports.getLastDayOfYear=nj;exports.getSharedManager=hC;exports.getTimezoneOffsetInMilliseconds=vg;exports.hasOnlyNullValues=YC;exports.hookFormSetServerErrors=M9;exports.isExtensionOpenable=r$;exports.isFileOpenable=n$;exports.isISODate=QC;exports.isLeavingWindowInSafari=EG;exports.isPast=K4;exports.isPrimitive=zd;exports.isSafari=D1;exports.isValidDate=K9;exports.joinStrings=M0;exports.makeDispatch=kG;exports.millisecondsInHour=Pf;exports.millisecondsInMinute=Kv;exports.millisecondsInWeek=Gv;exports.msToStartOfNextDay=G9;exports.objectType=Si;exports.once=gE;exports.parseISO=Ff;exports.replaceNullValuesOnlyObjectsWithNulls=O9;exports.saveFile=Bd;exports.saveFileFromResponse=aj;exports.secondsInDay=Zv;exports.secondsInHour=B4;exports.secondsInMinute=$O;exports.secondsInMonth=U4;exports.secondsInQuarter=EO;exports.secondsInWeek=SO;exports.secondsInYear=W4;exports.shortenText=B9;exports.startOfDay=gg;exports.startOfWeek=ps;exports.stringContains=Ig;exports.stringSearchWithin=A0;exports.stringStartsWith=i$;exports.stringType=F0;exports.style=co;exports.t=hh;exports.te=Ofe;exports.toDate=Vn;exports.transitionEndListener=a3;exports.triggerBrowserReflow=s3;exports.trimIsoDate=eh;exports.truncateText=ZC;exports.u=rE;exports.urlfyArray=Dg;exports.useAuth=M$;exports.useAxios=sh;exports.useBootstrapBreakpoints=J4;exports.useBootstrapMinBreakpoint=e3;exports.useBootstrapPrefix=ft;exports.useClickOutside=W$;exports.useClipboard=V$;exports.useCol=g3;exports.useConfirm=P0;exports.useCookies=I0;exports.useEventCallback=fo;exports.useFormControlType=z0;exports.useFormDisabledContext=uh;exports.useIsomorphicEffect=g0;exports.useKeyPress=H$;exports.useNotifications=ah;exports.usePermissions=U$;exports.usePrompt=DC;exports.useSwipeable=M1;exports.useWindowSize=ou;exports.useZodSchemaTypes=ch;exports.z=Ll;
|