1mpacto-react-ui 0.0.127 → 0.0.128
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/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +705 -705
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var f2=Object.defineProperty;var h2=(e,t,n)=>t in e?f2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>h2(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),Oa=require("react-dom");function Ib(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 W=Ib(C),$b=Ib(Oa);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 Ti(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Rb=6048e5,g2=864e5;let m2={};function Iu(){return m2}function _o(e,t){var s,l,u,c;const n=Iu(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Vn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Bl(e){return _o(e,{weekStartsOn:1})}function Ab(e){const t=Vn(e),n=t.getFullYear(),r=Ti(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Bl(r),a=Ti(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Bl(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function _g(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function Ig(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 p2(e,t){const n=_g(e),r=_g(t),i=+n-Ig(n),a=+r-Ig(r);return Math.round((i-a)/g2)}function b2(e){const t=Ab(e),n=Ti(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Bl(n)}function v2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function y2(e){if(!v2(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function x2(e){const t=Vn(e),n=Ti(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const C2={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"}},w2=(e,t,n)=>{let r;const i=C2[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 Er(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const D2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},E2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_2={date:Er({formats:D2,defaultWidth:"full"}),time:Er({formats:S2,defaultWidth:"full"}),dateTime:Er({formats:E2,defaultWidth:"full"})},I2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$2=(e,t,n,r)=>I2[e];function Ot(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const R2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},A2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},F2={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"]},P2={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"]},T2={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"}},k2={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"}},M2=(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"},B2={ordinalNumber:M2,era:Ot({values:R2,defaultWidth:"wide"}),quarter:Ot({values:A2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:F2,defaultWidth:"wide"}),day:Ot({values:P2,defaultWidth:"wide"}),dayPeriod:Ot({values:T2,defaultWidth:"wide",formattingValues:k2,defaultFormattingWidth:"wide"})};function Nt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?N2(s,d=>d.test(o)):O2(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function O2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function N2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function $f(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const V2=/^(\d+)(th|st|nd|rd)?/i,L2=/\d+/i,H2={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},j2={any:[/^b/i,/^(a|c)/i]},W2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z2={any:[/1/i,/2/i,/3/i,/4/i]},G2={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},Z2={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]},X2={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},Y2={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]},U2={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},J2={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}},q2={ordinalNumber:$f({matchPattern:V2,parsePattern:L2,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:H2,defaultMatchWidth:"wide",parsePatterns:j2,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any"}),day:Nt({matchPatterns:X2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:U2,defaultMatchWidth:"any",parsePatterns:J2,defaultParseWidth:"any"})},Rf={code:"en-US",formatDistance:w2,formatLong:_2,formatRelative:$2,localize:B2,match:q2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function K2(e){const t=Vn(e);return p2(t,x2(t))+1}function Q2(e){const t=Vn(e),n=+Bl(t)-+b2(t);return Math.round(n/Rb)+1}function Fb(e,t){var c,d,h,f;const n=Vn(e),r=n.getFullYear(),i=Iu(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ti(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=_o(o,t),l=Ti(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=_o(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function ew(e,t){var s,l,u,c;const n=Iu(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Fb(e,t),a=Ti(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),_o(a,t)}function tw(e,t){const n=Vn(e),r=+_o(n,t)-+ew(n,t);return Math.round(r/Rb)+1}function ze(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ze(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ze(n+1,2)},d(e,t){return ze(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 ze(e.getHours()%12||12,t.length)},H(e,t){return ze(e.getHours(),t.length)},m(e,t){return ze(e.getMinutes(),t.length)},s(e,t){return ze(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ze(i,t.length)}},Ki={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$g={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 Tr.y(e,t)},Y:function(e,t,n,r){const i=Fb(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return ze(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ze(a,t.length)},R:function(e,t){const n=Ab(e);return ze(n,t.length)},u:function(e,t){const n=e.getFullYear();return ze(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 ze(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 ze(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 Tr.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 ze(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=tw(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ze(i,t.length)},I:function(e,t,n){const r=Q2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=K2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ze(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ze(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ze(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ze(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=Ki.noon:r===0?i=Ki.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=Ki.evening:r>=12?i=Ki.afternoon:r>=4?i=Ki.morning:i=Ki.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 Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ag(r);case"XXXX":case"XX":return hi(r);case"XXXXX":case"XXX":default:return hi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ag(r);case"xxxx":case"xx":return hi(r);case"xxxxx":case"xxx":default:return hi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rg(r,":");case"OOOO":default:return"GMT"+hi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rg(r,":");case"zzzz":default:return"GMT"+hi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ze(r,t.length)},T:function(e,t,n){const r=e.getTime();return ze(r,t.length)}};function Rg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ze(a,2)}function Ag(e,t){return e%60===0?(e>0?"-":"+")+ze(Math.abs(e)/60,2):hi(e,t)}function hi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ze(Math.trunc(r/60),2),a=ze(r%60,2);return n+i+t+a}const Fg=(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"})}},Pb=(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"})}},nw=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Fg(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Fg(r,t)).replace("{{time}}",Pb(i,t))},rw={p:Pb,P:nw},iw=/^D+$/,aw=/^Y+$/,ow=["D","DD","YY","YYYY"];function sw(e){return iw.test(e)}function lw(e){return aw.test(e)}function uw(e,t,n){const r=cw(e,t,n);if(console.warn(r),ow.includes(e))throw new RangeError(r)}function cw(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 dw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hw=/^'([^]*?)'?$/,gw=/''/g,mw=/[a-zA-Z]/;function Io(e,t,n){var c,d,h,f,g,m,v,y;const r=Iu(),i=(n==null?void 0:n.locale)??r.locale??Rf,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,s=Vn(e);if(!y2(s))throw new RangeError("Invalid time value");let l=t.match(fw).map(b=>{const x=b[0];if(x==="p"||x==="P"){const S=rw[x];return S(b,i.formatLong)}return b}).join("").match(dw).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const x=b[0];if(x==="'")return{isToken:!1,value:pw(b)};if($g[x])return{isToken:!0,value:b};if(x.match(mw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:b}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(b=>{if(!b.isToken)return b.value;const x=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lw(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&sw(x))&&uw(x,t,String(e));const S=$g[x[0]];return S(s,x,i.localize,u)}).join("")}function pw(e){const t=e.match(hw);return t?t[1].replace(gw,"'"):e}const bw={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},vw=(e,t,n)=>{let r;const i=bw[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?"dalam waktu "+r:r+" yang lalu":r},yw={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},xw={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Cw={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ww={date:Er({formats:yw,defaultWidth:"full"}),time:Er({formats:xw,defaultWidth:"full"}),dateTime:Er({formats:Cw,defaultWidth:"full"})},Dw={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},Sw=(e,t,n,r)=>Dw[e],Ew={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},_w={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},Iw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},$w={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Rw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Aw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Fw=(e,t)=>"ke-"+Number(e),Pw={ordinalNumber:Fw,era:Ot({values:Ew,defaultWidth:"wide"}),quarter:Ot({values:_w,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:Iw,defaultWidth:"wide"}),day:Ot({values:$w,defaultWidth:"wide"}),dayPeriod:Ot({values:Rw,defaultWidth:"wide",formattingValues:Aw,defaultFormattingWidth:"wide"})},Tw=/^ke-(\d+)?/i,kw=/\d+/i,Mw={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},Bw={any:[/^s/i,/^(m|e)/i]},Ow={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},Nw={any:[/1/i,/2/i,/3/i,/4/i]},Vw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},Lw={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hw={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},jw={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},Ww={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},zw={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Gw={ordinalNumber:$f({matchPattern:Tw,parsePattern:kw,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:Mw,defaultMatchWidth:"wide",parsePatterns:Bw,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:Ow,defaultMatchWidth:"wide",parsePatterns:Nw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:Vw,defaultMatchWidth:"wide",parsePatterns:Lw,defaultParseWidth:"any"}),day:Nt({matchPatterns:Hw,defaultMatchWidth:"wide",parsePatterns:jw,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:Ww,defaultMatchWidth:"any",parsePatterns:zw,defaultParseWidth:"any"})},Ol={code:"id",formatDistance:vw,formatLong:ww,formatRelative:Sw,localize:Pw,match:Gw,options:{weekStartsOn:1,firstWeekContainsDate:1}},Zw={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Xw=(e,t,n)=>{let r;const i=Zw[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},Yw={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Uw={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jw={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qw={date:Er({formats:Yw,defaultWidth:"full"}),time:Er({formats:Uw,defaultWidth:"full"}),dateTime:Er({formats:Jw,defaultWidth:"full"})},Kw={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Qw=(e,t,n,r)=>Kw[e],eD={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},tD={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},nD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},rD={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},iD={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},aD=(e,t)=>Number(e)+"e",oD={ordinalNumber:aD,era:Ot({values:eD,defaultWidth:"wide"}),quarter:Ot({values:tD,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:nD,defaultWidth:"wide"}),day:Ot({values:rD,defaultWidth:"wide"}),dayPeriod:Ot({values:iD,defaultWidth:"wide"})},sD=/^(\d+)e?/i,lD=/\d+/i,uD={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},cD={any:[/^v/,/^n/]},dD={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},fD={any:[/1/i,/2/i,/3/i,/4/i]},hD={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},gD={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},mD={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},pD={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},bD={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},vD={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},yD={ordinalNumber:$f({matchPattern:sD,parsePattern:lD,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:uD,defaultMatchWidth:"wide",parsePatterns:cD,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:dD,defaultMatchWidth:"wide",parsePatterns:fD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:hD,defaultMatchWidth:"wide",parsePatterns:gD,defaultParseWidth:"any"}),day:Nt({matchPatterns:mD,defaultMatchWidth:"wide",parsePatterns:pD,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:bD,defaultMatchWidth:"any",parsePatterns:vD,defaultParseWidth:"any"})},Tb={code:"nl",formatDistance:Xw,formatLong:qw,formatRelative:Qw,localize:oD,match:yD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xD=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,hc=Math.ceil,xn=Math.floor,Jt="[BigNumber Error] ",Pg=Jt+"Number primitive has more than 15 significant digits: ",In=1e14,Ce=14,Tg=9007199254740991,gc=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],kr=1e7,tn=1e9;function kb(e){var t,n,r,i=b.prototype={constructor:b,toString:null,valueOf:null},a=new b(1),o=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},v="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function b(p,D){var $,_,A,k,R,M,T,P,B=this;if(!(B instanceof b))return new b(p,D);if(D==null){if(p&&p._isBigNumber===!0){B.s=p.s,!p.c||p.e>d?B.c=B.e=null:p.e<c?B.c=[B.e=0]:(B.e=p.e,B.c=p.c.slice());return}if((M=typeof p=="number")&&p*0==0){if(B.s=1/p<0?(p=-p,-1):1,p===~~p){for(k=0,R=p;R>=10;R/=10,k++);k>d?B.c=B.e=null:(B.e=k,B.c=[p]);return}P=String(p)}else{if(!xD.test(P=String(p)))return r(B,P,M);B.s=P.charCodeAt(0)==45?(P=P.slice(1),-1):1}(k=P.indexOf("."))>-1&&(P=P.replace(".","")),(R=P.search(/e/i))>0?(k<0&&(k=R),k+=+P.slice(R+1),P=P.substring(0,R)):k<0&&(k=P.length)}else{if(et(D,2,v.length,"Base"),D==10&&y)return B=new b(p),I(B,o+B.e+1,s);if(P=String(p),M=typeof p=="number"){if(p*0!=0)return r(B,P,M,D);if(B.s=1/p<0?(P=P.slice(1),-1):1,b.DEBUG&&P.replace(/^0\.0*|\./,"").length>15)throw Error(Pg+p)}else B.s=P.charCodeAt(0)===45?(P=P.slice(1),-1):1;for($=v.slice(0,D),k=R=0,T=P.length;R<T;R++)if($.indexOf(_=P.charAt(R))<0){if(_=="."){if(R>k){k=T;continue}}else if(!A&&(P==P.toUpperCase()&&(P=P.toLowerCase())||P==P.toLowerCase()&&(P=P.toUpperCase()))){A=!0,R=-1,k=0;continue}return r(B,String(p),M,D)}M=!1,P=n(P,D,10,B.s),(k=P.indexOf("."))>-1?P=P.replace(".",""):k=P.length}for(R=0;P.charCodeAt(R)===48;R++);for(T=P.length;P.charCodeAt(--T)===48;);if(P=P.slice(R,++T)){if(T-=R,M&&b.DEBUG&&T>15&&(p>Tg||p!==xn(p)))throw Error(Pg+B.s*p);if((k=k-R-1)>d)B.c=B.e=null;else if(k<c)B.c=[B.e=0];else{if(B.e=k,B.c=[],R=(k+1)%Ce,k<0&&(R+=Ce),R<T){for(R&&B.c.push(+P.slice(0,R)),T-=Ce;R<T;)B.c.push(+P.slice(R,R+=Ce));R=Ce-(P=P.slice(R)).length}else R-=T;for(;R--;P+="0");B.c.push(+P)}}else B.c=[B.e=0]}b.clone=kb,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(p){var D,$;if(p!=null)if(typeof p=="object"){if(p.hasOwnProperty(D="DECIMAL_PLACES")&&($=p[D],et($,0,tn,D),o=$),p.hasOwnProperty(D="ROUNDING_MODE")&&($=p[D],et($,0,8,D),s=$),p.hasOwnProperty(D="EXPONENTIAL_AT")&&($=p[D],$&&$.pop?(et($[0],-1e9,0,D),et($[1],0,tn,D),l=$[0],u=$[1]):(et($,-1e9,tn,D),l=-(u=$<0?-$:$))),p.hasOwnProperty(D="RANGE"))if($=p[D],$&&$.pop)et($[0],-1e9,-1,D),et($[1],1,tn,D),c=$[0],d=$[1];else if(et($,-1e9,tn,D),$)c=-(d=$<0?-$:$);else throw Error(Jt+D+" cannot be zero: "+$);if(p.hasOwnProperty(D="CRYPTO"))if($=p[D],$===!!$)if($)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=$;else throw h=!$,Error(Jt+"crypto unavailable");else h=$;else throw Error(Jt+D+" not true or false: "+$);if(p.hasOwnProperty(D="MODULO_MODE")&&($=p[D],et($,0,9,D),f=$),p.hasOwnProperty(D="POW_PRECISION")&&($=p[D],et($,0,tn,D),g=$),p.hasOwnProperty(D="FORMAT"))if($=p[D],typeof $=="object")m=$;else throw Error(Jt+D+" not an object: "+$);if(p.hasOwnProperty(D="ALPHABET"))if($=p[D],typeof $=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test($))y=$.slice(0,10)=="0123456789",v=$;else throw Error(Jt+D+" invalid: "+$)}else throw Error(Jt+"Object expected: "+p);return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:m,ALPHABET:v}},b.isBigNumber=function(p){if(!p||p._isBigNumber!==!0)return!1;if(!b.DEBUG)return!0;var D,$,_=p.c,A=p.e,k=p.s;e:if({}.toString.call(_)=="[object Array]"){if((k===1||k===-1)&&A>=-1e9&&A<=tn&&A===xn(A)){if(_[0]===0){if(A===0&&_.length===1)return!0;break e}if(D=(A+1)%Ce,D<1&&(D+=Ce),String(_[0]).length==D){for(D=0;D<_.length;D++)if($=_[D],$<0||$>=In||$!==xn($))break e;if($!==0)return!0}}}else if(_===null&&A===null&&(k===null||k===1||k===-1))return!0;throw Error(Jt+"Invalid BigNumber: "+p)},b.maximum=b.max=function(){return S(arguments,-1)},b.minimum=b.min=function(){return S(arguments,1)},b.random=function(){var p=9007199254740992,D=Math.random()*p&2097151?function(){return xn(Math.random()*p)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($){var _,A,k,R,M,T=0,P=[],B=new b(a);if($==null?$=o:et($,0,tn),R=hc($/Ce),h)if(crypto.getRandomValues){for(_=crypto.getRandomValues(new Uint32Array(R*=2));T<R;)M=_[T]*131072+(_[T+1]>>>11),M>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),_[T]=A[0],_[T+1]=A[1]):(P.push(M%1e14),T+=2);T=R/2}else if(crypto.randomBytes){for(_=crypto.randomBytes(R*=7);T<R;)M=(_[T]&31)*281474976710656+_[T+1]*1099511627776+_[T+2]*4294967296+_[T+3]*16777216+(_[T+4]<<16)+(_[T+5]<<8)+_[T+6],M>=9e15?crypto.randomBytes(7).copy(_,T):(P.push(M%1e14),T+=7);T=R/7}else throw h=!1,Error(Jt+"crypto unavailable");if(!h)for(;T<R;)M=D(),M<9e15&&(P[T++]=M%1e14);for(R=P[--T],$%=Ce,R&&$&&(M=gc[Ce-$],P[T]=xn(R/M)*M);P[T]===0;P.pop(),T--);if(T<0)P=[k=0];else{for(k=-1;P[0]===0;P.splice(0,1),k-=Ce);for(T=1,M=P[0];M>=10;M/=10,T++);T<Ce&&(k-=Ce-T)}return B.e=k,B.c=P,B}}(),b.sum=function(){for(var p=1,D=arguments,$=new b(D[0]);p<D.length;)$=$.plus(D[p++]);return $},n=function(){var p="0123456789";function D($,_,A,k){for(var R,M=[0],T,P=0,B=$.length;P<B;){for(T=M.length;T--;M[T]*=_);for(M[0]+=k.indexOf($.charAt(P++)),R=0;R<M.length;R++)M[R]>A-1&&(M[R+1]==null&&(M[R+1]=0),M[R+1]+=M[R]/A|0,M[R]%=A)}return M.reverse()}return function($,_,A,k,R){var M,T,P,B,O,L,H,z,X=$.indexOf("."),G=o,j=s;for(X>=0&&(B=g,g=0,$=$.replace(".",""),z=new b(_),L=z.pow($.length-X),g=B,z.c=D(sr(pn(L.c),L.e,"0"),10,A,p),z.e=z.c.length),H=D($,_,A,R?(M=v,p):(M=p,v)),P=B=H.length;H[--B]==0;H.pop());if(!H[0])return M.charAt(0);if(X<0?--P:(L.c=H,L.e=P,L.s=k,L=t(L,z,G,j,A),H=L.c,O=L.r,P=L.e),T=P+G+1,X=H[T],B=A/2,O=O||T<0||H[T+1]!=null,O=j<4?(X!=null||O)&&(j==0||j==(L.s<0?3:2)):X>B||X==B&&(j==4||O||j==6&&H[T-1]&1||j==(L.s<0?8:7)),T<1||!H[0])$=O?sr(M.charAt(1),-G,M.charAt(0)):M.charAt(0);else{if(H.length=T,O)for(--A;++H[--T]>A;)H[T]=0,T||(++P,H=[1].concat(H));for(B=H.length;!H[--B];);for(X=0,$="";X<=B;$+=M.charAt(H[X++]));$=sr($,P,M.charAt(0))}return $}}(),t=function(){function p(_,A,k){var R,M,T,P,B=0,O=_.length,L=A%kr,H=A/kr|0;for(_=_.slice();O--;)T=_[O]%kr,P=_[O]/kr|0,R=H*T+P*L,M=L*T+R%kr*kr+B,B=(M/k|0)+(R/kr|0)+H*P,_[O]=M%k;return B&&(_=[B].concat(_)),_}function D(_,A,k,R){var M,T;if(k!=R)T=k>R?1:-1;else for(M=T=0;M<k;M++)if(_[M]!=A[M]){T=_[M]>A[M]?1:-1;break}return T}function $(_,A,k,R){for(var M=0;k--;)_[k]-=M,M=_[k]<A[k]?1:0,_[k]=M*R+_[k]-A[k];for(;!_[0]&&_.length>1;_.splice(0,1));}return function(_,A,k,R,M){var T,P,B,O,L,H,z,X,G,j,V,Z,q,te,ue,ie,Y,me=_.s==A.s?1:-1,he=_.c,ce=A.c;if(!he||!he[0]||!ce||!ce[0])return new b(!_.s||!A.s||(he?ce&&he[0]==ce[0]:!ce)?NaN:he&&he[0]==0||!ce?me*0:me/0);for(X=new b(me),G=X.c=[],P=_.e-A.e,me=k+P+1,M||(M=In,P=Cn(_.e/Ce)-Cn(A.e/Ce),me=me/Ce|0),B=0;ce[B]==(he[B]||0);B++);if(ce[B]>(he[B]||0)&&P--,me<0)G.push(1),O=!0;else{for(te=he.length,ie=ce.length,B=0,me+=2,L=xn(M/(ce[0]+1)),L>1&&(ce=p(ce,L,M),he=p(he,L,M),ie=ce.length,te=he.length),q=ie,j=he.slice(0,ie),V=j.length;V<ie;j[V++]=0);Y=ce.slice(),Y=[0].concat(Y),ue=ce[0],ce[1]>=M/2&&ue++;do{if(L=0,T=D(ce,j,ie,V),T<0){if(Z=j[0],ie!=V&&(Z=Z*M+(j[1]||0)),L=xn(Z/ue),L>1)for(L>=M&&(L=M-1),H=p(ce,L,M),z=H.length,V=j.length;D(H,j,z,V)==1;)L--,$(H,ie<z?Y:ce,z,M),z=H.length,T=1;else L==0&&(T=L=1),H=ce.slice(),z=H.length;if(z<V&&(H=[0].concat(H)),$(j,H,V,M),V=j.length,T==-1)for(;D(ce,j,ie,V)<1;)L++,$(j,ie<V?Y:ce,V,M),V=j.length}else T===0&&(L++,j=[0]);G[B++]=L,j[0]?j[V++]=he[q]||0:(j=[he[q]],V=1)}while((q++<te||j[0]!=null)&&me--);O=j[0]!=null,G[0]||G.splice(0,1)}if(M==In){for(B=1,me=G[0];me>=10;me/=10,B++);I(X,k+(X.e=B+P*Ce-1)+1,R,O)}else X.e=P,X.r=+O;return X}}();function x(p,D,$,_){var A,k,R,M,T;if($==null?$=s:et($,0,8),!p.c)return p.toString();if(A=p.c[0],R=p.e,D==null)T=pn(p.c),T=_==1||_==2&&(R<=l||R>=u)?$s(T,R):sr(T,R,"0");else if(p=I(new b(p),D,$),k=p.e,T=pn(p.c),M=T.length,_==1||_==2&&(D<=k||k<=l)){for(;M<D;T+="0",M++);T=$s(T,k)}else if(D-=R,T=sr(T,k,"0"),k+1>M){if(--D>0)for(T+=".";D--;T+="0");}else if(D+=k-M,D>0)for(k+1==M&&(T+=".");D--;T+="0");return p.s<0&&A?"-"+T:T}function S(p,D){for(var $,_,A=1,k=new b(p[0]);A<p.length;A++)_=new b(p[A]),(!_.s||($=si(k,_))===D||$===0&&k.s===D)&&(k=_);return k}function w(p,D,$){for(var _=1,A=D.length;!D[--A];D.pop());for(A=D[0];A>=10;A/=10,_++);return($=_+$*Ce-1)>d?p.c=p.e=null:$<c?p.c=[p.e=0]:(p.e=$,p.c=D),p}r=function(){var p=/^(-?)0([xbo])(?=\w[\w.]*$)/i,D=/^([^.]+)\.$/,$=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(k,R,M,T){var P,B=M?R:R.replace(A,"");if(_.test(B))k.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(p,function(O,L,H){return P=(H=H.toLowerCase())=="x"?16:H=="b"?2:8,!T||T==P?L:O}),T&&(P=T,B=B.replace(D,"$1").replace($,"0.$1")),R!=B))return new b(B,P);if(b.DEBUG)throw Error(Jt+"Not a"+(T?" base "+T:"")+" number: "+R);k.s=null}k.c=k.e=null}}();function I(p,D,$,_){var A,k,R,M,T,P,B,O=p.c,L=gc;if(O){e:{for(A=1,M=O[0];M>=10;M/=10,A++);if(k=D-A,k<0)k+=Ce,R=D,T=O[P=0],B=xn(T/L[A-R-1]%10);else if(P=hc((k+1)/Ce),P>=O.length)if(_){for(;O.length<=P;O.push(0));T=B=0,A=1,k%=Ce,R=k-Ce+1}else break e;else{for(T=M=O[P],A=1;M>=10;M/=10,A++);k%=Ce,R=k-Ce+A,B=R<0?0:xn(T/L[A-R-1]%10)}if(_=_||D<0||O[P+1]!=null||(R<0?T:T%L[A-R-1]),_=$<4?(B||_)&&($==0||$==(p.s<0?3:2)):B>5||B==5&&($==4||_||$==6&&(k>0?R>0?T/L[A-R]:0:O[P-1])%10&1||$==(p.s<0?8:7)),D<1||!O[0])return O.length=0,_?(D-=p.e+1,O[0]=L[(Ce-D%Ce)%Ce],p.e=-D||0):O[0]=p.e=0,p;if(k==0?(O.length=P,M=1,P--):(O.length=P+1,M=L[Ce-k],O[P]=R>0?xn(T/L[A-R]%L[R])*M:0),_)for(;;)if(P==0){for(k=1,R=O[0];R>=10;R/=10,k++);for(R=O[0]+=M,M=1;R>=10;R/=10,M++);k!=M&&(p.e++,O[0]==In&&(O[0]=1));break}else{if(O[P]+=M,O[P]!=In)break;O[P--]=0,M=1}for(k=O.length;O[--k]===0;O.pop());}p.e>d?p.c=p.e=null:p.e<c&&(p.c=[p.e=0])}return p}function F(p){var D,$=p.e;return $===null?p.toString():(D=pn(p.c),D=$<=l||$>=u?$s(D,$):sr(D,$,"0"),p.s<0?"-"+D:D)}return i.absoluteValue=i.abs=function(){var p=new b(this);return p.s<0&&(p.s=1),p},i.comparedTo=function(p,D){return si(this,new b(p,D))},i.decimalPlaces=i.dp=function(p,D){var $,_,A,k=this;if(p!=null)return et(p,0,tn),D==null?D=s:et(D,0,8),I(new b(k),p+k.e+1,D);if(!($=k.c))return null;if(_=((A=$.length-1)-Cn(this.e/Ce))*Ce,A=$[A])for(;A%10==0;A/=10,_--);return _<0&&(_=0),_},i.dividedBy=i.div=function(p,D){return t(this,new b(p,D),o,s)},i.dividedToIntegerBy=i.idiv=function(p,D){return t(this,new b(p,D),0,1)},i.exponentiatedBy=i.pow=function(p,D){var $,_,A,k,R,M,T,P,B,O=this;if(p=new b(p),p.c&&!p.isInteger())throw Error(Jt+"Exponent not an integer: "+F(p));if(D!=null&&(D=new b(D)),M=p.e>14,!O.c||!O.c[0]||O.c[0]==1&&!O.e&&O.c.length==1||!p.c||!p.c[0])return B=new b(Math.pow(+F(O),M?p.s*(2-Is(p)):+F(p))),D?B.mod(D):B;if(T=p.s<0,D){if(D.c?!D.c[0]:!D.s)return new b(NaN);_=!T&&O.isInteger()&&D.isInteger(),_&&(O=O.mod(D))}else{if(p.e>9&&(O.e>0||O.e<-1||(O.e==0?O.c[0]>1||M&&O.c[1]>=24e7:O.c[0]<8e13||M&&O.c[0]<=9999975e7)))return k=O.s<0&&Is(p)?-0:0,O.e>-1&&(k=1/k),new b(T?1/k:k);g&&(k=hc(g/Ce+2))}for(M?($=new b(.5),T&&(p.s=1),P=Is(p)):(A=Math.abs(+F(p)),P=A%2),B=new b(a);;){if(P){if(B=B.times(O),!B.c)break;k?B.c.length>k&&(B.c.length=k):_&&(B=B.mod(D))}if(A){if(A=xn(A/2),A===0)break;P=A%2}else if(p=p.times($),I(p,p.e+1,1),p.e>14)P=Is(p);else{if(A=+F(p),A===0)break;P=A%2}O=O.times(O),k?O.c&&O.c.length>k&&(O.c.length=k):_&&(O=O.mod(D))}return _?B:(T&&(B=a.div(B)),D?B.mod(D):k?I(B,g,s,R):B)},i.integerValue=function(p){var D=new b(this);return p==null?p=s:et(p,0,8),I(D,D.e+1,p)},i.isEqualTo=i.eq=function(p,D){return si(this,new b(p,D))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(p,D){return si(this,new b(p,D))>0},i.isGreaterThanOrEqualTo=i.gte=function(p,D){return(D=si(this,new b(p,D)))===1||D===0},i.isInteger=function(){return!!this.c&&Cn(this.e/Ce)>this.c.length-2},i.isLessThan=i.lt=function(p,D){return si(this,new b(p,D))<0},i.isLessThanOrEqualTo=i.lte=function(p,D){return(D=si(this,new b(p,D)))===-1||D===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(p,D){var $,_,A,k,R=this,M=R.s;if(p=new b(p,D),D=p.s,!M||!D)return new b(NaN);if(M!=D)return p.s=-D,R.plus(p);var T=R.e/Ce,P=p.e/Ce,B=R.c,O=p.c;if(!T||!P){if(!B||!O)return B?(p.s=-D,p):new b(O?R:NaN);if(!B[0]||!O[0])return O[0]?(p.s=-D,p):new b(B[0]?R:s==3?-0:0)}if(T=Cn(T),P=Cn(P),B=B.slice(),M=T-P){for((k=M<0)?(M=-M,A=B):(P=T,A=O),A.reverse(),D=M;D--;A.push(0));A.reverse()}else for(_=(k=(M=B.length)<(D=O.length))?M:D,M=D=0;D<_;D++)if(B[D]!=O[D]){k=B[D]<O[D];break}if(k&&(A=B,B=O,O=A,p.s=-p.s),D=(_=O.length)-($=B.length),D>0)for(;D--;B[$++]=0);for(D=In-1;_>M;){if(B[--_]<O[_]){for($=_;$&&!B[--$];B[$]=D);--B[$],B[_]+=In}B[_]-=O[_]}for(;B[0]==0;B.splice(0,1),--P);return B[0]?w(p,B,P):(p.s=s==3?-1:1,p.c=[p.e=0],p)},i.modulo=i.mod=function(p,D){var $,_,A=this;return p=new b(p,D),!A.c||!p.s||p.c&&!p.c[0]?new b(NaN):!p.c||A.c&&!A.c[0]?new b(A):(f==9?(_=p.s,p.s=1,$=t(A,p,0,3),p.s=_,$.s*=_):$=t(A,p,0,f),p=A.minus($.times(p)),!p.c[0]&&f==1&&(p.s=A.s),p)},i.multipliedBy=i.times=function(p,D){var $,_,A,k,R,M,T,P,B,O,L,H,z,X,G,j=this,V=j.c,Z=(p=new b(p,D)).c;if(!V||!Z||!V[0]||!Z[0])return!j.s||!p.s||V&&!V[0]&&!Z||Z&&!Z[0]&&!V?p.c=p.e=p.s=null:(p.s*=j.s,!V||!Z?p.c=p.e=null:(p.c=[0],p.e=0)),p;for(_=Cn(j.e/Ce)+Cn(p.e/Ce),p.s*=j.s,T=V.length,O=Z.length,T<O&&(z=V,V=Z,Z=z,A=T,T=O,O=A),A=T+O,z=[];A--;z.push(0));for(X=In,G=kr,A=O;--A>=0;){for($=0,L=Z[A]%G,H=Z[A]/G|0,R=T,k=A+R;k>A;)P=V[--R]%G,B=V[R]/G|0,M=H*P+B*L,P=L*P+M%G*G+z[k]+$,$=(P/X|0)+(M/G|0)+H*B,z[k--]=P%X;z[k]=$}return $?++_:z.splice(0,1),w(p,z,_)},i.negated=function(){var p=new b(this);return p.s=-p.s||null,p},i.plus=function(p,D){var $,_=this,A=_.s;if(p=new b(p,D),D=p.s,!A||!D)return new b(NaN);if(A!=D)return p.s=-D,_.minus(p);var k=_.e/Ce,R=p.e/Ce,M=_.c,T=p.c;if(!k||!R){if(!M||!T)return new b(A/0);if(!M[0]||!T[0])return T[0]?p:new b(M[0]?_:A*0)}if(k=Cn(k),R=Cn(R),M=M.slice(),A=k-R){for(A>0?(R=k,$=T):(A=-A,$=M),$.reverse();A--;$.push(0));$.reverse()}for(A=M.length,D=T.length,A-D<0&&($=T,T=M,M=$,D=A),A=0;D;)A=(M[--D]=M[D]+T[D]+A)/In|0,M[D]=In===M[D]?0:M[D]%In;return A&&(M=[A].concat(M),++R),w(p,M,R)},i.precision=i.sd=function(p,D){var $,_,A,k=this;if(p!=null&&p!==!!p)return et(p,1,tn),D==null?D=s:et(D,0,8),I(new b(k),p,D);if(!($=k.c))return null;if(A=$.length-1,_=A*Ce+1,A=$[A]){for(;A%10==0;A/=10,_--);for(A=$[0];A>=10;A/=10,_++);}return p&&k.e+1>_&&(_=k.e+1),_},i.shiftedBy=function(p){return et(p,-9007199254740991,Tg),this.times("1e"+p)},i.squareRoot=i.sqrt=function(){var p,D,$,_,A,k=this,R=k.c,M=k.s,T=k.e,P=o+4,B=new b("0.5");if(M!==1||!R||!R[0])return new b(!M||M<0&&(!R||R[0])?NaN:R?k:1/0);if(M=Math.sqrt(+F(k)),M==0||M==1/0?(D=pn(R),(D.length+T)%2==0&&(D+="0"),M=Math.sqrt(+D),T=Cn((T+1)/2)-(T<0||T%2),M==1/0?D="5e"+T:(D=M.toExponential(),D=D.slice(0,D.indexOf("e")+1)+T),$=new b(D)):$=new b(M+""),$.c[0]){for(T=$.e,M=T+P,M<3&&(M=0);;)if(A=$,$=B.times(A.plus(t(k,A,P,1))),pn(A.c).slice(0,M)===(D=pn($.c)).slice(0,M))if($.e<T&&--M,D=D.slice(M-3,M+1),D=="9999"||!_&&D=="4999"){if(!_&&(I(A,A.e+o+2,0),A.times(A).eq(k))){$=A;break}P+=4,M+=4,_=1}else{(!+D||!+D.slice(1)&&D.charAt(0)=="5")&&(I($,$.e+o+2,1),p=!$.times($).eq(k));break}}return I($,$.e+o+1,s,p)},i.toExponential=function(p,D){return p!=null&&(et(p,0,tn),p++),x(this,p,D,1)},i.toFixed=function(p,D){return p!=null&&(et(p,0,tn),p=p+this.e+1),x(this,p,D)},i.toFormat=function(p,D,$){var _,A=this;if($==null)p!=null&&D&&typeof D=="object"?($=D,D=null):p&&typeof p=="object"?($=p,p=D=null):$=m;else if(typeof $!="object")throw Error(Jt+"Argument not an object: "+$);if(_=A.toFixed(p,D),A.c){var k,R=_.split("."),M=+$.groupSize,T=+$.secondaryGroupSize,P=$.groupSeparator||"",B=R[0],O=R[1],L=A.s<0,H=L?B.slice(1):B,z=H.length;if(T&&(k=M,M=T,T=k,z-=k),M>0&&z>0){for(k=z%M||M,B=H.substr(0,k);k<z;k+=M)B+=P+H.substr(k,M);T>0&&(B+=P+H.slice(k)),L&&(B="-"+B)}_=O?B+($.decimalSeparator||"")+((T=+$.fractionGroupSize)?O.replace(new RegExp("\\d{"+T+"}\\B","g"),"$&"+($.fractionGroupSeparator||"")):O):B}return($.prefix||"")+_+($.suffix||"")},i.toFraction=function(p){var D,$,_,A,k,R,M,T,P,B,O,L,H=this,z=H.c;if(p!=null&&(M=new b(p),!M.isInteger()&&(M.c||M.s!==1)||M.lt(a)))throw Error(Jt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+F(M));if(!z)return new b(H);for(D=new b(a),P=$=new b(a),_=T=new b(a),L=pn(z),k=D.e=L.length-H.e-1,D.c[0]=gc[(R=k%Ce)<0?Ce+R:R],p=!p||M.comparedTo(D)>0?k>0?D:P:M,R=d,d=1/0,M=new b(L),T.c[0]=0;B=t(M,D,0,1),A=$.plus(B.times(_)),A.comparedTo(p)!=1;)$=_,_=A,P=T.plus(B.times(A=P)),T=A,D=M.minus(B.times(A=D)),M=A;return A=t(p.minus($),_,0,1),T=T.plus(A.times(P)),$=$.plus(A.times(_)),T.s=P.s=H.s,k=k*2,O=t(P,_,k,s).minus(H).abs().comparedTo(t(T,$,k,s).minus(H).abs())<1?[P,_]:[T,$],d=R,O},i.toNumber=function(){return+F(this)},i.toPrecision=function(p,D){return p!=null&&et(p,1,tn),x(this,p,D,2)},i.toString=function(p){var D,$=this,_=$.s,A=$.e;return A===null?_?(D="Infinity",_<0&&(D="-"+D)):D="NaN":(p==null?D=A<=l||A>=u?$s(pn($.c),A):sr(pn($.c),A,"0"):p===10&&y?($=I(new b($),o+A+1,s),D=sr(pn($.c),$.e,"0")):(et(p,2,v.length,"Base"),D=n(sr(pn($.c),A,"0"),10,p,_,!0)),_<0&&$.c[0]&&(D="-"+D)),D},i.valueOf=i.toJSON=function(){return F(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&b.set(e),b}function Cn(e){var t=e|0;return e>0||e===t?t:t-1}function pn(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=Ce-t.length;n--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function si(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=l==u,!i||!a)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=a.length)?l:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function et(e,t,n,r){if(e<t||e>n||e!==xn(e))throw Error(Jt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Is(e){var t=e.c.length-1;return Cn(e.e/Ce)==t&&e.c[t]%2!=0}function $s(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function sr(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var $u=kb();const Mb={ROUNDING_MODE:$u.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let xd=!1;const CD=(e=Mb)=>{xd||($u.config(e),xd=!0)},rt=(e,t)=>(xd||CD(),new $u(e,t)),nr=e=>{try{return rt(e).isFinite()}catch{return!1}},Bb=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function Ru(e,t){const{decimals:n=2,instance:r=!1}=t||{};nr(e)||(e="0");const i=rt(e).toFixed(n);return r?rt(i):i}const Af=(e,t=2)=>{let n=parseFloat(Bb(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Nr(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(Af(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const fa=(e,t,n,r)=>{const i={id:Ol,enUS:Rf,nl:Tb};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=Io(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},wD=(e,t,n,r,i,a)=>{const o={id:Ol,enUS:Rf,nl:Tb};if(e&&!isNaN(new Date(e).getTime())){const s=Io(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=Io(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},Ob=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),DD=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:fa(a[t],r)}));return Ob(i,n)},SD=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),ED=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,v)=>{let y=g;const b=g.split(".")[0];return isNaN(parseFloat(b.split(".")[0]))||(parseFloat(b.split(".")[0])<=m?y=`${m}`:parseFloat(b)>=v&&(y=`${v}`)),y},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},kg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,_D=(e,t)=>Array.isArray(e)?e==null?void 0:e.map((n,r,i)=>t(n,r,i)):[],Nb=(e,t)=>e.map(n=>n[t]).join(","),Vb=(e,t)=>e.map(n=>n[t]);function Ff(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!Ff(e[i],t[i]))return!1;return!0}function ID(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}function mc(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Nl(e,...t){if(!t.length)return e;const n=t.shift();if(mc(e)&&mc(n))for(const r in n)mc(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Nl(e[r],n[r])):Object.assign(e,{[r]:n[r]});return Nl(e,...t)}const $D=e=>Af(e||0),RD=e=>Ru(e||0),AD=e=>isNaN(e)?void 0:e,Au=e=>{const t=e.toString().split(""),n=t[1]!=="0"?`,${t[1]}`:"";let[r]=e.toString().split(".");return r=r.replaceAll("-",""),r.length>=15?`${+r.substring(0,3)} T`:r.length===14?`${+r.substring(0,2)} T`:r.length===13?`${+r.substring(0,1)}${n} T`:r.length===12?`${+r.substring(0,3)} M`:r.length===11?`${+r.substring(0,2)} M`:r.length===10?`${+r.substring(0,1)}${n} M`:r.length===9?`${+r.substring(0,3)} JT`:r.length===8?`${+r.substring(0,2)} JT`:r.length===7?`${+r.substring(0,1)}${n} JT`:r.length===6?`${+r.substring(0,3)} RB`:r.length===5?`${+r.substring(0,2)} RB`:r.length===4?`${+r.substring(0,1)}${n} RB`:r.length<=3?+r?`${+r}`:0:null};function FD(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:a=2,withSpace:o,currencyDisplay:s}=t,l=Ru(e,{decimals:a}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,a);i===void 0?h=h.replace(/0+$/,""):h&&i>0&&(h=h.padEnd(i,"0"));let f=h?`${d},${h}`:d;if(!n||!r)return f;const m={"id-ID":{symbol:"Rp",code:"IDR",name:"Rupiah",negativePosition:"start"},"en-US":{symbol:"$",code:"USD",name:"US Dollar",negativePosition:"middle"},"ja-JP":{symbol:"¥",code:"JPY",name:"Yen",negativePosition:"middle"}}[n]||{symbol:"",code:r,name:r},v={symbol:m.symbol,code:m.code,name:m.name}[s||"symbol"],y=f.includes("-");return f=m.negativePosition==="start"?f.replace("-",""):f,o?`${m.negativePosition==="start"&&y?"-":""}${v} ${f}`:`${m.negativePosition==="start"&&y?"-":""}${v}${f}`}function PD(e){if(!nr(e))return"0";const t=typeof e=="number"?rt(e).toString():e;if(!t.includes("."))return t;const[n,r]=t.split("."),i=r.replace(/0+$/,"");return i?`${n}.${i}`:n}/*! js-cookie v3.0.5 | MIT */function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var TD={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Cd(e,t){function n(i,a,o){if(!(typeof document>"u")){o=Rs({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",Rs({},a,{expires:-1}))},withAttributes:function(i){return Cd(this.converter,Rs({},this.attributes,i))},withConverter:function(i){return Cd(Rs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ln=Cd(TD,{path:"/"});const kD={setItem(e,t,n={},r=3e3){const a={...{path:"/",expires:365},...n};parseInt(Ln.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);Ln.set(`${e}_${l}`,u,a)}Ln.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Ln.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Ln.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Ln.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Ln.remove(`${e}_${i}`,r);Ln.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Ln.get();Object.keys(n).forEach(r=>Ln.remove(r,t))}};var wd={exports:{}},za={};/**
|
1
|
+
"use strict";var f2=Object.defineProperty;var h2=(e,t,n)=>t in e?f2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>h2(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),Oa=require("react-dom");function Ib(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 W=Ib(C),$b=Ib(Oa);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 Ti(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Rb=6048e5,g2=864e5;let m2={};function Iu(){return m2}function _o(e,t){var s,l,u,c;const n=Iu(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Vn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Bl(e){return _o(e,{weekStartsOn:1})}function Ab(e){const t=Vn(e),n=t.getFullYear(),r=Ti(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Bl(r),a=Ti(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Bl(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function _g(e){const t=Vn(e);return t.setHours(0,0,0,0),t}function Ig(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 p2(e,t){const n=_g(e),r=_g(t),i=+n-Ig(n),a=+r-Ig(r);return Math.round((i-a)/g2)}function b2(e){const t=Ab(e),n=Ti(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Bl(n)}function v2(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function y2(e){if(!v2(e)&&typeof e!="number")return!1;const t=Vn(e);return!isNaN(Number(t))}function x2(e){const t=Vn(e),n=Ti(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const C2={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"}},w2=(e,t,n)=>{let r;const i=C2[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 Er(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const D2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},E2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_2={date:Er({formats:D2,defaultWidth:"full"}),time:Er({formats:S2,defaultWidth:"full"}),dateTime:Er({formats:E2,defaultWidth:"full"})},I2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$2=(e,t,n,r)=>I2[e];function Ot(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const R2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},A2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},F2={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"]},P2={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"]},T2={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"}},k2={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"}},M2=(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"},B2={ordinalNumber:M2,era:Ot({values:R2,defaultWidth:"wide"}),quarter:Ot({values:A2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:F2,defaultWidth:"wide"}),day:Ot({values:P2,defaultWidth:"wide"}),dayPeriod:Ot({values:T2,defaultWidth:"wide",formattingValues:k2,defaultFormattingWidth:"wide"})};function Nt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?N2(s,d=>d.test(o)):O2(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function O2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function N2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function $f(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const V2=/^(\d+)(th|st|nd|rd)?/i,L2=/\d+/i,H2={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},j2={any:[/^b/i,/^(a|c)/i]},W2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z2={any:[/1/i,/2/i,/3/i,/4/i]},G2={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},Z2={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]},X2={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},Y2={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]},U2={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},J2={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}},q2={ordinalNumber:$f({matchPattern:V2,parsePattern:L2,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:H2,defaultMatchWidth:"wide",parsePatterns:j2,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any"}),day:Nt({matchPatterns:X2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:U2,defaultMatchWidth:"any",parsePatterns:J2,defaultParseWidth:"any"})},Rf={code:"en-US",formatDistance:w2,formatLong:_2,formatRelative:$2,localize:B2,match:q2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function K2(e){const t=Vn(e);return p2(t,x2(t))+1}function Q2(e){const t=Vn(e),n=+Bl(t)-+b2(t);return Math.round(n/Rb)+1}function Fb(e,t){var c,d,h,f;const n=Vn(e),r=n.getFullYear(),i=Iu(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ti(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=_o(o,t),l=Ti(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=_o(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function ew(e,t){var s,l,u,c;const n=Iu(),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??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Fb(e,t),a=Ti(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),_o(a,t)}function tw(e,t){const n=Vn(e),r=+_o(n,t)-+ew(n,t);return Math.round(r/Rb)+1}function ze(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ze(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ze(n+1,2)},d(e,t){return ze(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 ze(e.getHours()%12||12,t.length)},H(e,t){return ze(e.getHours(),t.length)},m(e,t){return ze(e.getMinutes(),t.length)},s(e,t){return ze(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ze(i,t.length)}},Ki={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$g={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 Tr.y(e,t)},Y:function(e,t,n,r){const i=Fb(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return ze(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ze(a,t.length)},R:function(e,t){const n=Ab(e);return ze(n,t.length)},u:function(e,t){const n=e.getFullYear();return ze(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 ze(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 ze(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 Tr.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 ze(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=tw(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ze(i,t.length)},I:function(e,t,n){const r=Q2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=K2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ze(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ze(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ze(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ze(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=Ki.noon:r===0?i=Ki.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=Ki.evening:r>=12?i=Ki.afternoon:r>=4?i=Ki.morning:i=Ki.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 Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ze(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ag(r);case"XXXX":case"XX":return hi(r);case"XXXXX":case"XXX":default:return hi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ag(r);case"xxxx":case"xx":return hi(r);case"xxxxx":case"xxx":default:return hi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rg(r,":");case"OOOO":default:return"GMT"+hi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rg(r,":");case"zzzz":default:return"GMT"+hi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ze(r,t.length)},T:function(e,t,n){const r=e.getTime();return ze(r,t.length)}};function Rg(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ze(a,2)}function Ag(e,t){return e%60===0?(e>0?"-":"+")+ze(Math.abs(e)/60,2):hi(e,t)}function hi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ze(Math.trunc(r/60),2),a=ze(r%60,2);return n+i+t+a}const Fg=(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"})}},Pb=(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"})}},nw=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Fg(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Fg(r,t)).replace("{{time}}",Pb(i,t))},rw={p:Pb,P:nw},iw=/^D+$/,aw=/^Y+$/,ow=["D","DD","YY","YYYY"];function sw(e){return iw.test(e)}function lw(e){return aw.test(e)}function uw(e,t,n){const r=cw(e,t,n);if(console.warn(r),ow.includes(e))throw new RangeError(r)}function cw(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 dw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hw=/^'([^]*?)'?$/,gw=/''/g,mw=/[a-zA-Z]/;function Io(e,t,n){var c,d,h,f,g,m,v,y;const r=Iu(),i=(n==null?void 0:n.locale)??r.locale??Rf,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,s=Vn(e);if(!y2(s))throw new RangeError("Invalid time value");let l=t.match(fw).map(b=>{const x=b[0];if(x==="p"||x==="P"){const S=rw[x];return S(b,i.formatLong)}return b}).join("").match(dw).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const x=b[0];if(x==="'")return{isToken:!1,value:pw(b)};if($g[x])return{isToken:!0,value:b};if(x.match(mw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:b}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(b=>{if(!b.isToken)return b.value;const x=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lw(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&sw(x))&&uw(x,t,String(e));const S=$g[x[0]];return S(s,x,i.localize,u)}).join("")}function pw(e){const t=e.match(hw);return t?t[1].replace(gw,"'"):e}const bw={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},vw=(e,t,n)=>{let r;const i=bw[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?"dalam waktu "+r:r+" yang lalu":r},yw={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},xw={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Cw={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ww={date:Er({formats:yw,defaultWidth:"full"}),time:Er({formats:xw,defaultWidth:"full"}),dateTime:Er({formats:Cw,defaultWidth:"full"})},Dw={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},Sw=(e,t,n,r)=>Dw[e],Ew={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},_w={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},Iw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},$w={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Rw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Aw={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Fw=(e,t)=>"ke-"+Number(e),Pw={ordinalNumber:Fw,era:Ot({values:Ew,defaultWidth:"wide"}),quarter:Ot({values:_w,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:Iw,defaultWidth:"wide"}),day:Ot({values:$w,defaultWidth:"wide"}),dayPeriod:Ot({values:Rw,defaultWidth:"wide",formattingValues:Aw,defaultFormattingWidth:"wide"})},Tw=/^ke-(\d+)?/i,kw=/\d+/i,Mw={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},Bw={any:[/^s/i,/^(m|e)/i]},Ow={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},Nw={any:[/1/i,/2/i,/3/i,/4/i]},Vw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},Lw={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hw={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},jw={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},Ww={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},zw={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Gw={ordinalNumber:$f({matchPattern:Tw,parsePattern:kw,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:Mw,defaultMatchWidth:"wide",parsePatterns:Bw,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:Ow,defaultMatchWidth:"wide",parsePatterns:Nw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:Vw,defaultMatchWidth:"wide",parsePatterns:Lw,defaultParseWidth:"any"}),day:Nt({matchPatterns:Hw,defaultMatchWidth:"wide",parsePatterns:jw,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:Ww,defaultMatchWidth:"any",parsePatterns:zw,defaultParseWidth:"any"})},Ol={code:"id",formatDistance:vw,formatLong:ww,formatRelative:Sw,localize:Pw,match:Gw,options:{weekStartsOn:1,firstWeekContainsDate:1}},Zw={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Xw=(e,t,n)=>{let r;const i=Zw[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},Yw={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Uw={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jw={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qw={date:Er({formats:Yw,defaultWidth:"full"}),time:Er({formats:Uw,defaultWidth:"full"}),dateTime:Er({formats:Jw,defaultWidth:"full"})},Kw={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Qw=(e,t,n,r)=>Kw[e],eD={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},tD={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},nD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},rD={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},iD={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},aD=(e,t)=>Number(e)+"e",oD={ordinalNumber:aD,era:Ot({values:eD,defaultWidth:"wide"}),quarter:Ot({values:tD,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:nD,defaultWidth:"wide"}),day:Ot({values:rD,defaultWidth:"wide"}),dayPeriod:Ot({values:iD,defaultWidth:"wide"})},sD=/^(\d+)e?/i,lD=/\d+/i,uD={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},cD={any:[/^v/,/^n/]},dD={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},fD={any:[/1/i,/2/i,/3/i,/4/i]},hD={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},gD={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},mD={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},pD={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},bD={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},vD={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},yD={ordinalNumber:$f({matchPattern:sD,parsePattern:lD,valueCallback:e=>parseInt(e,10)}),era:Nt({matchPatterns:uD,defaultMatchWidth:"wide",parsePatterns:cD,defaultParseWidth:"any"}),quarter:Nt({matchPatterns:dD,defaultMatchWidth:"wide",parsePatterns:fD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Nt({matchPatterns:hD,defaultMatchWidth:"wide",parsePatterns:gD,defaultParseWidth:"any"}),day:Nt({matchPatterns:mD,defaultMatchWidth:"wide",parsePatterns:pD,defaultParseWidth:"any"}),dayPeriod:Nt({matchPatterns:bD,defaultMatchWidth:"any",parsePatterns:vD,defaultParseWidth:"any"})},Tb={code:"nl",formatDistance:Xw,formatLong:qw,formatRelative:Qw,localize:oD,match:yD,options:{weekStartsOn:1,firstWeekContainsDate:4}};var xD=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,hc=Math.ceil,xn=Math.floor,Jt="[BigNumber Error] ",Pg=Jt+"Number primitive has more than 15 significant digits: ",In=1e14,Ce=14,Tg=9007199254740991,gc=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],kr=1e7,tn=1e9;function kb(e){var t,n,r,i=b.prototype={constructor:b,toString:null,valueOf:null},a=new b(1),o=20,s=4,l=-7,u=21,c=-1e7,d=1e7,h=!1,f=1,g=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},v="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function b(p,D){var $,I,A,k,R,M,T,P,B=this;if(!(B instanceof b))return new b(p,D);if(D==null){if(p&&p._isBigNumber===!0){B.s=p.s,!p.c||p.e>d?B.c=B.e=null:p.e<c?B.c=[B.e=0]:(B.e=p.e,B.c=p.c.slice());return}if((M=typeof p=="number")&&p*0==0){if(B.s=1/p<0?(p=-p,-1):1,p===~~p){for(k=0,R=p;R>=10;R/=10,k++);k>d?B.c=B.e=null:(B.e=k,B.c=[p]);return}P=String(p)}else{if(!xD.test(P=String(p)))return r(B,P,M);B.s=P.charCodeAt(0)==45?(P=P.slice(1),-1):1}(k=P.indexOf("."))>-1&&(P=P.replace(".","")),(R=P.search(/e/i))>0?(k<0&&(k=R),k+=+P.slice(R+1),P=P.substring(0,R)):k<0&&(k=P.length)}else{if(et(D,2,v.length,"Base"),D==10&&y)return B=new b(p),_(B,o+B.e+1,s);if(P=String(p),M=typeof p=="number"){if(p*0!=0)return r(B,P,M,D);if(B.s=1/p<0?(P=P.slice(1),-1):1,b.DEBUG&&P.replace(/^0\.0*|\./,"").length>15)throw Error(Pg+p)}else B.s=P.charCodeAt(0)===45?(P=P.slice(1),-1):1;for($=v.slice(0,D),k=R=0,T=P.length;R<T;R++)if($.indexOf(I=P.charAt(R))<0){if(I=="."){if(R>k){k=T;continue}}else if(!A&&(P==P.toUpperCase()&&(P=P.toLowerCase())||P==P.toLowerCase()&&(P=P.toUpperCase()))){A=!0,R=-1,k=0;continue}return r(B,String(p),M,D)}M=!1,P=n(P,D,10,B.s),(k=P.indexOf("."))>-1?P=P.replace(".",""):k=P.length}for(R=0;P.charCodeAt(R)===48;R++);for(T=P.length;P.charCodeAt(--T)===48;);if(P=P.slice(R,++T)){if(T-=R,M&&b.DEBUG&&T>15&&(p>Tg||p!==xn(p)))throw Error(Pg+B.s*p);if((k=k-R-1)>d)B.c=B.e=null;else if(k<c)B.c=[B.e=0];else{if(B.e=k,B.c=[],R=(k+1)%Ce,k<0&&(R+=Ce),R<T){for(R&&B.c.push(+P.slice(0,R)),T-=Ce;R<T;)B.c.push(+P.slice(R,R+=Ce));R=Ce-(P=P.slice(R)).length}else R-=T;for(;R--;P+="0");B.c.push(+P)}}else B.c=[B.e=0]}b.clone=kb,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(p){var D,$;if(p!=null)if(typeof p=="object"){if(p.hasOwnProperty(D="DECIMAL_PLACES")&&($=p[D],et($,0,tn,D),o=$),p.hasOwnProperty(D="ROUNDING_MODE")&&($=p[D],et($,0,8,D),s=$),p.hasOwnProperty(D="EXPONENTIAL_AT")&&($=p[D],$&&$.pop?(et($[0],-1e9,0,D),et($[1],0,tn,D),l=$[0],u=$[1]):(et($,-1e9,tn,D),l=-(u=$<0?-$:$))),p.hasOwnProperty(D="RANGE"))if($=p[D],$&&$.pop)et($[0],-1e9,-1,D),et($[1],1,tn,D),c=$[0],d=$[1];else if(et($,-1e9,tn,D),$)c=-(d=$<0?-$:$);else throw Error(Jt+D+" cannot be zero: "+$);if(p.hasOwnProperty(D="CRYPTO"))if($=p[D],$===!!$)if($)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))h=$;else throw h=!$,Error(Jt+"crypto unavailable");else h=$;else throw Error(Jt+D+" not true or false: "+$);if(p.hasOwnProperty(D="MODULO_MODE")&&($=p[D],et($,0,9,D),f=$),p.hasOwnProperty(D="POW_PRECISION")&&($=p[D],et($,0,tn,D),g=$),p.hasOwnProperty(D="FORMAT"))if($=p[D],typeof $=="object")m=$;else throw Error(Jt+D+" not an object: "+$);if(p.hasOwnProperty(D="ALPHABET"))if($=p[D],typeof $=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test($))y=$.slice(0,10)=="0123456789",v=$;else throw Error(Jt+D+" invalid: "+$)}else throw Error(Jt+"Object expected: "+p);return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[c,d],CRYPTO:h,MODULO_MODE:f,POW_PRECISION:g,FORMAT:m,ALPHABET:v}},b.isBigNumber=function(p){if(!p||p._isBigNumber!==!0)return!1;if(!b.DEBUG)return!0;var D,$,I=p.c,A=p.e,k=p.s;e:if({}.toString.call(I)=="[object Array]"){if((k===1||k===-1)&&A>=-1e9&&A<=tn&&A===xn(A)){if(I[0]===0){if(A===0&&I.length===1)return!0;break e}if(D=(A+1)%Ce,D<1&&(D+=Ce),String(I[0]).length==D){for(D=0;D<I.length;D++)if($=I[D],$<0||$>=In||$!==xn($))break e;if($!==0)return!0}}}else if(I===null&&A===null&&(k===null||k===1||k===-1))return!0;throw Error(Jt+"Invalid BigNumber: "+p)},b.maximum=b.max=function(){return S(arguments,-1)},b.minimum=b.min=function(){return S(arguments,1)},b.random=function(){var p=9007199254740992,D=Math.random()*p&2097151?function(){return xn(Math.random()*p)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($){var I,A,k,R,M,T=0,P=[],B=new b(a);if($==null?$=o:et($,0,tn),R=hc($/Ce),h)if(crypto.getRandomValues){for(I=crypto.getRandomValues(new Uint32Array(R*=2));T<R;)M=I[T]*131072+(I[T+1]>>>11),M>=9e15?(A=crypto.getRandomValues(new Uint32Array(2)),I[T]=A[0],I[T+1]=A[1]):(P.push(M%1e14),T+=2);T=R/2}else if(crypto.randomBytes){for(I=crypto.randomBytes(R*=7);T<R;)M=(I[T]&31)*281474976710656+I[T+1]*1099511627776+I[T+2]*4294967296+I[T+3]*16777216+(I[T+4]<<16)+(I[T+5]<<8)+I[T+6],M>=9e15?crypto.randomBytes(7).copy(I,T):(P.push(M%1e14),T+=7);T=R/7}else throw h=!1,Error(Jt+"crypto unavailable");if(!h)for(;T<R;)M=D(),M<9e15&&(P[T++]=M%1e14);for(R=P[--T],$%=Ce,R&&$&&(M=gc[Ce-$],P[T]=xn(R/M)*M);P[T]===0;P.pop(),T--);if(T<0)P=[k=0];else{for(k=-1;P[0]===0;P.splice(0,1),k-=Ce);for(T=1,M=P[0];M>=10;M/=10,T++);T<Ce&&(k-=Ce-T)}return B.e=k,B.c=P,B}}(),b.sum=function(){for(var p=1,D=arguments,$=new b(D[0]);p<D.length;)$=$.plus(D[p++]);return $},n=function(){var p="0123456789";function D($,I,A,k){for(var R,M=[0],T,P=0,B=$.length;P<B;){for(T=M.length;T--;M[T]*=I);for(M[0]+=k.indexOf($.charAt(P++)),R=0;R<M.length;R++)M[R]>A-1&&(M[R+1]==null&&(M[R+1]=0),M[R+1]+=M[R]/A|0,M[R]%=A)}return M.reverse()}return function($,I,A,k,R){var M,T,P,B,O,L,H,z,X=$.indexOf("."),G=o,j=s;for(X>=0&&(B=g,g=0,$=$.replace(".",""),z=new b(I),L=z.pow($.length-X),g=B,z.c=D(sr(pn(L.c),L.e,"0"),10,A,p),z.e=z.c.length),H=D($,I,A,R?(M=v,p):(M=p,v)),P=B=H.length;H[--B]==0;H.pop());if(!H[0])return M.charAt(0);if(X<0?--P:(L.c=H,L.e=P,L.s=k,L=t(L,z,G,j,A),H=L.c,O=L.r,P=L.e),T=P+G+1,X=H[T],B=A/2,O=O||T<0||H[T+1]!=null,O=j<4?(X!=null||O)&&(j==0||j==(L.s<0?3:2)):X>B||X==B&&(j==4||O||j==6&&H[T-1]&1||j==(L.s<0?8:7)),T<1||!H[0])$=O?sr(M.charAt(1),-G,M.charAt(0)):M.charAt(0);else{if(H.length=T,O)for(--A;++H[--T]>A;)H[T]=0,T||(++P,H=[1].concat(H));for(B=H.length;!H[--B];);for(X=0,$="";X<=B;$+=M.charAt(H[X++]));$=sr($,P,M.charAt(0))}return $}}(),t=function(){function p(I,A,k){var R,M,T,P,B=0,O=I.length,L=A%kr,H=A/kr|0;for(I=I.slice();O--;)T=I[O]%kr,P=I[O]/kr|0,R=H*T+P*L,M=L*T+R%kr*kr+B,B=(M/k|0)+(R/kr|0)+H*P,I[O]=M%k;return B&&(I=[B].concat(I)),I}function D(I,A,k,R){var M,T;if(k!=R)T=k>R?1:-1;else for(M=T=0;M<k;M++)if(I[M]!=A[M]){T=I[M]>A[M]?1:-1;break}return T}function $(I,A,k,R){for(var M=0;k--;)I[k]-=M,M=I[k]<A[k]?1:0,I[k]=M*R+I[k]-A[k];for(;!I[0]&&I.length>1;I.splice(0,1));}return function(I,A,k,R,M){var T,P,B,O,L,H,z,X,G,j,V,Z,q,te,ue,ie,Y,me=I.s==A.s?1:-1,he=I.c,ce=A.c;if(!he||!he[0]||!ce||!ce[0])return new b(!I.s||!A.s||(he?ce&&he[0]==ce[0]:!ce)?NaN:he&&he[0]==0||!ce?me*0:me/0);for(X=new b(me),G=X.c=[],P=I.e-A.e,me=k+P+1,M||(M=In,P=Cn(I.e/Ce)-Cn(A.e/Ce),me=me/Ce|0),B=0;ce[B]==(he[B]||0);B++);if(ce[B]>(he[B]||0)&&P--,me<0)G.push(1),O=!0;else{for(te=he.length,ie=ce.length,B=0,me+=2,L=xn(M/(ce[0]+1)),L>1&&(ce=p(ce,L,M),he=p(he,L,M),ie=ce.length,te=he.length),q=ie,j=he.slice(0,ie),V=j.length;V<ie;j[V++]=0);Y=ce.slice(),Y=[0].concat(Y),ue=ce[0],ce[1]>=M/2&&ue++;do{if(L=0,T=D(ce,j,ie,V),T<0){if(Z=j[0],ie!=V&&(Z=Z*M+(j[1]||0)),L=xn(Z/ue),L>1)for(L>=M&&(L=M-1),H=p(ce,L,M),z=H.length,V=j.length;D(H,j,z,V)==1;)L--,$(H,ie<z?Y:ce,z,M),z=H.length,T=1;else L==0&&(T=L=1),H=ce.slice(),z=H.length;if(z<V&&(H=[0].concat(H)),$(j,H,V,M),V=j.length,T==-1)for(;D(ce,j,ie,V)<1;)L++,$(j,ie<V?Y:ce,V,M),V=j.length}else T===0&&(L++,j=[0]);G[B++]=L,j[0]?j[V++]=he[q]||0:(j=[he[q]],V=1)}while((q++<te||j[0]!=null)&&me--);O=j[0]!=null,G[0]||G.splice(0,1)}if(M==In){for(B=1,me=G[0];me>=10;me/=10,B++);_(X,k+(X.e=B+P*Ce-1)+1,R,O)}else X.e=P,X.r=+O;return X}}();function x(p,D,$,I){var A,k,R,M,T;if($==null?$=s:et($,0,8),!p.c)return p.toString();if(A=p.c[0],R=p.e,D==null)T=pn(p.c),T=I==1||I==2&&(R<=l||R>=u)?$s(T,R):sr(T,R,"0");else if(p=_(new b(p),D,$),k=p.e,T=pn(p.c),M=T.length,I==1||I==2&&(D<=k||k<=l)){for(;M<D;T+="0",M++);T=$s(T,k)}else if(D-=R,T=sr(T,k,"0"),k+1>M){if(--D>0)for(T+=".";D--;T+="0");}else if(D+=k-M,D>0)for(k+1==M&&(T+=".");D--;T+="0");return p.s<0&&A?"-"+T:T}function S(p,D){for(var $,I,A=1,k=new b(p[0]);A<p.length;A++)I=new b(p[A]),(!I.s||($=si(k,I))===D||$===0&&k.s===D)&&(k=I);return k}function w(p,D,$){for(var I=1,A=D.length;!D[--A];D.pop());for(A=D[0];A>=10;A/=10,I++);return($=I+$*Ce-1)>d?p.c=p.e=null:$<c?p.c=[p.e=0]:(p.e=$,p.c=D),p}r=function(){var p=/^(-?)0([xbo])(?=\w[\w.]*$)/i,D=/^([^.]+)\.$/,$=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(k,R,M,T){var P,B=M?R:R.replace(A,"");if(I.test(B))k.s=isNaN(B)?null:B<0?-1:1;else{if(!M&&(B=B.replace(p,function(O,L,H){return P=(H=H.toLowerCase())=="x"?16:H=="b"?2:8,!T||T==P?L:O}),T&&(P=T,B=B.replace(D,"$1").replace($,"0.$1")),R!=B))return new b(B,P);if(b.DEBUG)throw Error(Jt+"Not a"+(T?" base "+T:"")+" number: "+R);k.s=null}k.c=k.e=null}}();function _(p,D,$,I){var A,k,R,M,T,P,B,O=p.c,L=gc;if(O){e:{for(A=1,M=O[0];M>=10;M/=10,A++);if(k=D-A,k<0)k+=Ce,R=D,T=O[P=0],B=xn(T/L[A-R-1]%10);else if(P=hc((k+1)/Ce),P>=O.length)if(I){for(;O.length<=P;O.push(0));T=B=0,A=1,k%=Ce,R=k-Ce+1}else break e;else{for(T=M=O[P],A=1;M>=10;M/=10,A++);k%=Ce,R=k-Ce+A,B=R<0?0:xn(T/L[A-R-1]%10)}if(I=I||D<0||O[P+1]!=null||(R<0?T:T%L[A-R-1]),I=$<4?(B||I)&&($==0||$==(p.s<0?3:2)):B>5||B==5&&($==4||I||$==6&&(k>0?R>0?T/L[A-R]:0:O[P-1])%10&1||$==(p.s<0?8:7)),D<1||!O[0])return O.length=0,I?(D-=p.e+1,O[0]=L[(Ce-D%Ce)%Ce],p.e=-D||0):O[0]=p.e=0,p;if(k==0?(O.length=P,M=1,P--):(O.length=P+1,M=L[Ce-k],O[P]=R>0?xn(T/L[A-R]%L[R])*M:0),I)for(;;)if(P==0){for(k=1,R=O[0];R>=10;R/=10,k++);for(R=O[0]+=M,M=1;R>=10;R/=10,M++);k!=M&&(p.e++,O[0]==In&&(O[0]=1));break}else{if(O[P]+=M,O[P]!=In)break;O[P--]=0,M=1}for(k=O.length;O[--k]===0;O.pop());}p.e>d?p.c=p.e=null:p.e<c&&(p.c=[p.e=0])}return p}function F(p){var D,$=p.e;return $===null?p.toString():(D=pn(p.c),D=$<=l||$>=u?$s(D,$):sr(D,$,"0"),p.s<0?"-"+D:D)}return i.absoluteValue=i.abs=function(){var p=new b(this);return p.s<0&&(p.s=1),p},i.comparedTo=function(p,D){return si(this,new b(p,D))},i.decimalPlaces=i.dp=function(p,D){var $,I,A,k=this;if(p!=null)return et(p,0,tn),D==null?D=s:et(D,0,8),_(new b(k),p+k.e+1,D);if(!($=k.c))return null;if(I=((A=$.length-1)-Cn(this.e/Ce))*Ce,A=$[A])for(;A%10==0;A/=10,I--);return I<0&&(I=0),I},i.dividedBy=i.div=function(p,D){return t(this,new b(p,D),o,s)},i.dividedToIntegerBy=i.idiv=function(p,D){return t(this,new b(p,D),0,1)},i.exponentiatedBy=i.pow=function(p,D){var $,I,A,k,R,M,T,P,B,O=this;if(p=new b(p),p.c&&!p.isInteger())throw Error(Jt+"Exponent not an integer: "+F(p));if(D!=null&&(D=new b(D)),M=p.e>14,!O.c||!O.c[0]||O.c[0]==1&&!O.e&&O.c.length==1||!p.c||!p.c[0])return B=new b(Math.pow(+F(O),M?p.s*(2-Is(p)):+F(p))),D?B.mod(D):B;if(T=p.s<0,D){if(D.c?!D.c[0]:!D.s)return new b(NaN);I=!T&&O.isInteger()&&D.isInteger(),I&&(O=O.mod(D))}else{if(p.e>9&&(O.e>0||O.e<-1||(O.e==0?O.c[0]>1||M&&O.c[1]>=24e7:O.c[0]<8e13||M&&O.c[0]<=9999975e7)))return k=O.s<0&&Is(p)?-0:0,O.e>-1&&(k=1/k),new b(T?1/k:k);g&&(k=hc(g/Ce+2))}for(M?($=new b(.5),T&&(p.s=1),P=Is(p)):(A=Math.abs(+F(p)),P=A%2),B=new b(a);;){if(P){if(B=B.times(O),!B.c)break;k?B.c.length>k&&(B.c.length=k):I&&(B=B.mod(D))}if(A){if(A=xn(A/2),A===0)break;P=A%2}else if(p=p.times($),_(p,p.e+1,1),p.e>14)P=Is(p);else{if(A=+F(p),A===0)break;P=A%2}O=O.times(O),k?O.c&&O.c.length>k&&(O.c.length=k):I&&(O=O.mod(D))}return I?B:(T&&(B=a.div(B)),D?B.mod(D):k?_(B,g,s,R):B)},i.integerValue=function(p){var D=new b(this);return p==null?p=s:et(p,0,8),_(D,D.e+1,p)},i.isEqualTo=i.eq=function(p,D){return si(this,new b(p,D))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(p,D){return si(this,new b(p,D))>0},i.isGreaterThanOrEqualTo=i.gte=function(p,D){return(D=si(this,new b(p,D)))===1||D===0},i.isInteger=function(){return!!this.c&&Cn(this.e/Ce)>this.c.length-2},i.isLessThan=i.lt=function(p,D){return si(this,new b(p,D))<0},i.isLessThanOrEqualTo=i.lte=function(p,D){return(D=si(this,new b(p,D)))===-1||D===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(p,D){var $,I,A,k,R=this,M=R.s;if(p=new b(p,D),D=p.s,!M||!D)return new b(NaN);if(M!=D)return p.s=-D,R.plus(p);var T=R.e/Ce,P=p.e/Ce,B=R.c,O=p.c;if(!T||!P){if(!B||!O)return B?(p.s=-D,p):new b(O?R:NaN);if(!B[0]||!O[0])return O[0]?(p.s=-D,p):new b(B[0]?R:s==3?-0:0)}if(T=Cn(T),P=Cn(P),B=B.slice(),M=T-P){for((k=M<0)?(M=-M,A=B):(P=T,A=O),A.reverse(),D=M;D--;A.push(0));A.reverse()}else for(I=(k=(M=B.length)<(D=O.length))?M:D,M=D=0;D<I;D++)if(B[D]!=O[D]){k=B[D]<O[D];break}if(k&&(A=B,B=O,O=A,p.s=-p.s),D=(I=O.length)-($=B.length),D>0)for(;D--;B[$++]=0);for(D=In-1;I>M;){if(B[--I]<O[I]){for($=I;$&&!B[--$];B[$]=D);--B[$],B[I]+=In}B[I]-=O[I]}for(;B[0]==0;B.splice(0,1),--P);return B[0]?w(p,B,P):(p.s=s==3?-1:1,p.c=[p.e=0],p)},i.modulo=i.mod=function(p,D){var $,I,A=this;return p=new b(p,D),!A.c||!p.s||p.c&&!p.c[0]?new b(NaN):!p.c||A.c&&!A.c[0]?new b(A):(f==9?(I=p.s,p.s=1,$=t(A,p,0,3),p.s=I,$.s*=I):$=t(A,p,0,f),p=A.minus($.times(p)),!p.c[0]&&f==1&&(p.s=A.s),p)},i.multipliedBy=i.times=function(p,D){var $,I,A,k,R,M,T,P,B,O,L,H,z,X,G,j=this,V=j.c,Z=(p=new b(p,D)).c;if(!V||!Z||!V[0]||!Z[0])return!j.s||!p.s||V&&!V[0]&&!Z||Z&&!Z[0]&&!V?p.c=p.e=p.s=null:(p.s*=j.s,!V||!Z?p.c=p.e=null:(p.c=[0],p.e=0)),p;for(I=Cn(j.e/Ce)+Cn(p.e/Ce),p.s*=j.s,T=V.length,O=Z.length,T<O&&(z=V,V=Z,Z=z,A=T,T=O,O=A),A=T+O,z=[];A--;z.push(0));for(X=In,G=kr,A=O;--A>=0;){for($=0,L=Z[A]%G,H=Z[A]/G|0,R=T,k=A+R;k>A;)P=V[--R]%G,B=V[R]/G|0,M=H*P+B*L,P=L*P+M%G*G+z[k]+$,$=(P/X|0)+(M/G|0)+H*B,z[k--]=P%X;z[k]=$}return $?++I:z.splice(0,1),w(p,z,I)},i.negated=function(){var p=new b(this);return p.s=-p.s||null,p},i.plus=function(p,D){var $,I=this,A=I.s;if(p=new b(p,D),D=p.s,!A||!D)return new b(NaN);if(A!=D)return p.s=-D,I.minus(p);var k=I.e/Ce,R=p.e/Ce,M=I.c,T=p.c;if(!k||!R){if(!M||!T)return new b(A/0);if(!M[0]||!T[0])return T[0]?p:new b(M[0]?I:A*0)}if(k=Cn(k),R=Cn(R),M=M.slice(),A=k-R){for(A>0?(R=k,$=T):(A=-A,$=M),$.reverse();A--;$.push(0));$.reverse()}for(A=M.length,D=T.length,A-D<0&&($=T,T=M,M=$,D=A),A=0;D;)A=(M[--D]=M[D]+T[D]+A)/In|0,M[D]=In===M[D]?0:M[D]%In;return A&&(M=[A].concat(M),++R),w(p,M,R)},i.precision=i.sd=function(p,D){var $,I,A,k=this;if(p!=null&&p!==!!p)return et(p,1,tn),D==null?D=s:et(D,0,8),_(new b(k),p,D);if(!($=k.c))return null;if(A=$.length-1,I=A*Ce+1,A=$[A]){for(;A%10==0;A/=10,I--);for(A=$[0];A>=10;A/=10,I++);}return p&&k.e+1>I&&(I=k.e+1),I},i.shiftedBy=function(p){return et(p,-9007199254740991,Tg),this.times("1e"+p)},i.squareRoot=i.sqrt=function(){var p,D,$,I,A,k=this,R=k.c,M=k.s,T=k.e,P=o+4,B=new b("0.5");if(M!==1||!R||!R[0])return new b(!M||M<0&&(!R||R[0])?NaN:R?k:1/0);if(M=Math.sqrt(+F(k)),M==0||M==1/0?(D=pn(R),(D.length+T)%2==0&&(D+="0"),M=Math.sqrt(+D),T=Cn((T+1)/2)-(T<0||T%2),M==1/0?D="5e"+T:(D=M.toExponential(),D=D.slice(0,D.indexOf("e")+1)+T),$=new b(D)):$=new b(M+""),$.c[0]){for(T=$.e,M=T+P,M<3&&(M=0);;)if(A=$,$=B.times(A.plus(t(k,A,P,1))),pn(A.c).slice(0,M)===(D=pn($.c)).slice(0,M))if($.e<T&&--M,D=D.slice(M-3,M+1),D=="9999"||!I&&D=="4999"){if(!I&&(_(A,A.e+o+2,0),A.times(A).eq(k))){$=A;break}P+=4,M+=4,I=1}else{(!+D||!+D.slice(1)&&D.charAt(0)=="5")&&(_($,$.e+o+2,1),p=!$.times($).eq(k));break}}return _($,$.e+o+1,s,p)},i.toExponential=function(p,D){return p!=null&&(et(p,0,tn),p++),x(this,p,D,1)},i.toFixed=function(p,D){return p!=null&&(et(p,0,tn),p=p+this.e+1),x(this,p,D)},i.toFormat=function(p,D,$){var I,A=this;if($==null)p!=null&&D&&typeof D=="object"?($=D,D=null):p&&typeof p=="object"?($=p,p=D=null):$=m;else if(typeof $!="object")throw Error(Jt+"Argument not an object: "+$);if(I=A.toFixed(p,D),A.c){var k,R=I.split("."),M=+$.groupSize,T=+$.secondaryGroupSize,P=$.groupSeparator||"",B=R[0],O=R[1],L=A.s<0,H=L?B.slice(1):B,z=H.length;if(T&&(k=M,M=T,T=k,z-=k),M>0&&z>0){for(k=z%M||M,B=H.substr(0,k);k<z;k+=M)B+=P+H.substr(k,M);T>0&&(B+=P+H.slice(k)),L&&(B="-"+B)}I=O?B+($.decimalSeparator||"")+((T=+$.fractionGroupSize)?O.replace(new RegExp("\\d{"+T+"}\\B","g"),"$&"+($.fractionGroupSeparator||"")):O):B}return($.prefix||"")+I+($.suffix||"")},i.toFraction=function(p){var D,$,I,A,k,R,M,T,P,B,O,L,H=this,z=H.c;if(p!=null&&(M=new b(p),!M.isInteger()&&(M.c||M.s!==1)||M.lt(a)))throw Error(Jt+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+F(M));if(!z)return new b(H);for(D=new b(a),P=$=new b(a),I=T=new b(a),L=pn(z),k=D.e=L.length-H.e-1,D.c[0]=gc[(R=k%Ce)<0?Ce+R:R],p=!p||M.comparedTo(D)>0?k>0?D:P:M,R=d,d=1/0,M=new b(L),T.c[0]=0;B=t(M,D,0,1),A=$.plus(B.times(I)),A.comparedTo(p)!=1;)$=I,I=A,P=T.plus(B.times(A=P)),T=A,D=M.minus(B.times(A=D)),M=A;return A=t(p.minus($),I,0,1),T=T.plus(A.times(P)),$=$.plus(A.times(I)),T.s=P.s=H.s,k=k*2,O=t(P,I,k,s).minus(H).abs().comparedTo(t(T,$,k,s).minus(H).abs())<1?[P,I]:[T,$],d=R,O},i.toNumber=function(){return+F(this)},i.toPrecision=function(p,D){return p!=null&&et(p,1,tn),x(this,p,D,2)},i.toString=function(p){var D,$=this,I=$.s,A=$.e;return A===null?I?(D="Infinity",I<0&&(D="-"+D)):D="NaN":(p==null?D=A<=l||A>=u?$s(pn($.c),A):sr(pn($.c),A,"0"):p===10&&y?($=_(new b($),o+A+1,s),D=sr(pn($.c),$.e,"0")):(et(p,2,v.length,"Base"),D=n(sr(pn($.c),A,"0"),10,p,I,!0)),I<0&&$.c[0]&&(D="-"+D)),D},i.valueOf=i.toJSON=function(){return F(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&b.set(e),b}function Cn(e){var t=e|0;return e>0||e===t?t:t-1}function pn(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=Ce-t.length;n--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function si(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=l==u,!i||!a)return r?0:!i^n?1:-1;if(!r)return l>u^n?1:-1;for(s=(l=i.length)<(u=a.length)?l:u,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function et(e,t,n,r){if(e<t||e>n||e!==xn(e))throw Error(Jt+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Is(e){var t=e.c.length-1;return Cn(e.e/Ce)==t&&e.c[t]%2!=0}function $s(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function sr(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var $u=kb();const Mb={ROUNDING_MODE:$u.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let xd=!1;const CD=(e=Mb)=>{xd||($u.config(e),xd=!0)},rt=(e,t)=>(xd||CD(),new $u(e,t)),nr=e=>{try{return rt(e).isFinite()}catch{return!1}},Bb=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function Ru(e,t){const{decimals:n=2,instance:r=!1}=t||{};nr(e)||(e="0");const i=rt(e).toFixed(n);return r?rt(i):i}const Af=(e,t=2)=>{let n=parseFloat(Bb(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n};function Nr(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(Af(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const fa=(e,t,n,r)=>{const i={id:Ol,enUS:Rf,nl:Tb};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=Io(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},wD=(e,t,n,r,i,a)=>{const o={id:Ol,enUS:Rf,nl:Tb};if(e&&!isNaN(new Date(e).getTime())){const s=Io(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=Io(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},Ob=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),DD=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:fa(a[t],r)}));return Ob(i,n)},SD=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),ED=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,v)=>{let y=g;const b=g.split(".")[0];return isNaN(parseFloat(b.split(".")[0]))||(parseFloat(b.split(".")[0])<=m?y=`${m}`:parseFloat(b)>=v&&(y=`${v}`)),y},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},kg=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,_D=(e,t)=>Array.isArray(e)?e==null?void 0:e.map((n,r,i)=>t(n,r,i)):[],Nb=(e,t)=>e.map(n=>n[t]).join(","),Vb=(e,t)=>e.map(n=>n[t]);function Ff(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!Ff(e[i],t[i]))return!1;return!0}function ID(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}function mc(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Nl(e,...t){if(!t.length)return e;const n=t.shift();if(mc(e)&&mc(n))for(const r in n)mc(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Nl(e[r],n[r])):Object.assign(e,{[r]:n[r]});return Nl(e,...t)}const $D=e=>Af(e||0),RD=e=>Ru(e||0),AD=e=>isNaN(e)?void 0:e,Au=e=>{const t=e.toString().split(""),n=t[1]!=="0"?`,${t[1]}`:"";let[r]=e.toString().split(".");return r=r.replaceAll("-",""),r.length>=15?`${+r.substring(0,3)} T`:r.length===14?`${+r.substring(0,2)} T`:r.length===13?`${+r.substring(0,1)}${n} T`:r.length===12?`${+r.substring(0,3)} M`:r.length===11?`${+r.substring(0,2)} M`:r.length===10?`${+r.substring(0,1)}${n} M`:r.length===9?`${+r.substring(0,3)} JT`:r.length===8?`${+r.substring(0,2)} JT`:r.length===7?`${+r.substring(0,1)}${n} JT`:r.length===6?`${+r.substring(0,3)} RB`:r.length===5?`${+r.substring(0,2)} RB`:r.length===4?`${+r.substring(0,1)}${n} RB`:r.length<=3?+r?`${+r}`:0:null};function FD(e,t={}){const{locale:n,currency:r,minimumFractionDigits:i,maximumFractionDigits:a=2,withSpace:o,currencyDisplay:s}=t,l=Ru(e,{decimals:a}),[u,c=""]=l.split("."),d=u.replace(/\B(?=(\d{3})+(?!\d))/g,".");let h=c.slice(0,a);i===void 0?h=h.replace(/0+$/,""):h&&i>0&&(h=h.padEnd(i,"0"));let f=h?`${d},${h}`:d;if(!n||!r)return f;const m={"id-ID":{symbol:"Rp",code:"IDR",name:"Rupiah",negativePosition:"start"},"en-US":{symbol:"$",code:"USD",name:"US Dollar",negativePosition:"middle"},"ja-JP":{symbol:"¥",code:"JPY",name:"Yen",negativePosition:"middle"}}[n]||{symbol:"",code:r,name:r},v={symbol:m.symbol,code:m.code,name:m.name}[s||"symbol"],y=f.includes("-");return f=m.negativePosition==="start"?f.replace("-",""):f,o?`${m.negativePosition==="start"&&y?"-":""}${v} ${f}`:`${m.negativePosition==="start"&&y?"-":""}${v}${f}`}function PD(e){if(!nr(e))return"0";const t=typeof e=="number"?rt(e).toString():e;if(!t.includes("."))return t;const[n,r]=t.split("."),i=r.replace(/0+$/,"");return i?`${n}.${i}`:n}/*! js-cookie v3.0.5 | MIT */function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var TD={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Cd(e,t){function n(i,a,o){if(!(typeof document>"u")){o=Rs({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",Rs({},a,{expires:-1}))},withAttributes:function(i){return Cd(this.converter,Rs({},this.attributes,i))},withConverter:function(i){return Cd(Rs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ln=Cd(TD,{path:"/"});const kD={setItem(e,t,n={},r=3e3){const a={...{path:"/",expires:365},...n};parseInt(Ln.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);Ln.set(`${e}_${l}`,u,a)}Ln.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Ln.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Ln.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Ln.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Ln.remove(`${e}_${i}`,r);Ln.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Ln.get();Object.keys(n).forEach(r=>Ln.remove(r,t))}};var wd={exports:{}},za={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -14,7 +14,7 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Bg;function BD(){return Bg||(Bg=1,process.env.NODE_ENV!=="production"&&function(){var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(N){if(N===null||typeof N!="object")return null;var U=g&&N[g]||N[m];return typeof U=="function"?U:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(N){{for(var U=arguments.length,Q=new Array(U>1?U-1:0),ve=1;ve<U;ve++)Q[ve-1]=arguments[ve];x("error",N,Q)}}function x(N,U,Q){{var ve=y.ReactDebugCurrentFrame,Ne=ve.getStackAddendum();Ne!==""&&(U+="%s",Q=Q.concat([Ne]));var Xe=Q.map(function(Pe){return String(Pe)});Xe.unshift("Warning: "+U),Function.prototype.apply.call(console[N],console,Xe)}}var S=!1,w=!1,
|
17
|
+
*/var Bg;function BD(){return Bg||(Bg=1,process.env.NODE_ENV!=="production"&&function(){var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(N){if(N===null||typeof N!="object")return null;var U=g&&N[g]||N[m];return typeof U=="function"?U:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(N){{for(var U=arguments.length,Q=new Array(U>1?U-1:0),ve=1;ve<U;ve++)Q[ve-1]=arguments[ve];x("error",N,Q)}}function x(N,U,Q){{var ve=y.ReactDebugCurrentFrame,Ne=ve.getStackAddendum();Ne!==""&&(U+="%s",Q=Q.concat([Ne]));var Xe=Q.map(function(Pe){return String(Pe)});Xe.unshift("Warning: "+U),Function.prototype.apply.call(console[N],console,Xe)}}var S=!1,w=!1,_=!1,F=!1,p=!1,D;D=Symbol.for("react.module.reference");function $(N){return!!(typeof N=="string"||typeof N=="function"||N===r||N===a||p||N===i||N===u||N===c||F||N===f||S||w||_||typeof N=="object"&&N!==null&&(N.$$typeof===h||N.$$typeof===d||N.$$typeof===o||N.$$typeof===s||N.$$typeof===l||N.$$typeof===D||N.getModuleId!==void 0))}function I(N,U,Q){var ve=N.displayName;if(ve)return ve;var Ne=U.displayName||U.name||"";return Ne!==""?Q+"("+Ne+")":Q}function A(N){return N.displayName||"Context"}function k(N){if(N==null)return null;if(typeof N.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case s:var U=N;return A(U)+".Consumer";case o:var Q=N;return A(Q._context)+".Provider";case l:return I(N,N.render,"ForwardRef");case d:var ve=N.displayName||null;return ve!==null?ve:k(N.type)||"Memo";case h:{var Ne=N,Xe=Ne._payload,Pe=Ne._init;try{return k(Pe(Xe))}catch{return null}}}return null}var R=Object.assign,M=0,T,P,B,O,L,H,z;function X(){}X.__reactDisabledLog=!0;function G(){{if(M===0){T=console.log,P=console.info,B=console.warn,O=console.error,L=console.group,H=console.groupCollapsed,z=console.groupEnd;var N={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}M++}}function j(){{if(M--,M===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},N,{value:T}),info:R({},N,{value:P}),warn:R({},N,{value:B}),error:R({},N,{value:O}),group:R({},N,{value:L}),groupCollapsed:R({},N,{value:H}),groupEnd:R({},N,{value:z})})}M<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var V=y.ReactCurrentDispatcher,Z;function q(N,U,Q){{if(Z===void 0)try{throw Error()}catch(Ne){var ve=Ne.stack.trim().match(/\n( *(at )?)/);Z=ve&&ve[1]||""}return`
|
18
18
|
`+Z+N}}var te=!1,ue;{var ie=typeof WeakMap=="function"?WeakMap:Map;ue=new ie}function Y(N,U){if(!N||te)return"";{var Q=ue.get(N);if(Q!==void 0)return Q}var ve;te=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Xe;Xe=V.current,V.current=null,G();try{if(U){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(Gt){ve=Gt}Reflect.construct(N,[],Pe)}else{try{Pe.call()}catch(Gt){ve=Gt}N.call(Pe.prototype)}}else{try{throw Error()}catch(Gt){ve=Gt}N()}}catch(Gt){if(Gt&&ve&&typeof Gt.stack=="string"){for(var Ie=Gt.stack.split(`
|
19
19
|
`),Bt=ve.stack.split(`
|
20
20
|
`),dt=Ie.length-1,ht=Bt.length-1;dt>=1&&ht>=0&&Ie[dt]!==Bt[ht];)ht--;for(;dt>=1&&ht>=0;dt--,ht--)if(Ie[dt]!==Bt[ht]){if(dt!==1||ht!==1)do if(dt--,ht--,ht<0||Ie[dt]!==Bt[ht]){var mn=`
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+Q+">.")}return U}}function wg(N,U){{if(
|
|
27
27
|
<%s {...props} />
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
29
29
|
let props = %s;
|
30
|
-
<%s key={someKey} {...props} />`,fc,oi,c2,oi),Sg[oi+fc]=!0}}return N===r?a2(ht):i2(ht),ht}}function o2(N,U,Q){return Eg(N,U,Q,!0)}function s2(N,U,Q){return Eg(N,U,Q,!1)}var l2=s2,u2=o2;Ga.Fragment=r,Ga.jsx=l2,Ga.jsxs=u2}()),Ga}process.env.NODE_ENV==="production"?wd.exports=MD():wd.exports=BD();var E=wd.exports;function Lb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lb(e))&&(r&&(r+=" "),r+=t);return r}const $o=e=>typeof e=="number"&&!isNaN(e),Ii=e=>typeof e=="string",sn=e=>typeof e=="function",bl=e=>Ii(e)||sn(e)?e:null,Dd=e=>C.isValidElement(e)||Ii(e)||sn(e)||$o(e);function OD(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Fu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,v=C.useRef(0);return C.useLayoutEffect(()=>{const y=d.current,b=g.split(" "),x=S=>{S.target===d.current&&(f(),y.removeEventListener("animationend",x),y.removeEventListener("animationcancel",x),v.current===0&&S.type!=="animationcancel"&&y.classList.remove(...b))};y.classList.add(...b),y.addEventListener("animationend",x),y.addEventListener("animationcancel",x)},[]),C.useEffect(()=>{const y=d.current,b=()=>{y.removeEventListener("animationend",b),i?OD(y,c,a):c()};h||(u?b():(v.current=1,y.className+=` ${m}`,y.addEventListener("animationend",b)))},[h]),C.createElement(C.Fragment,null,s)}}function Og(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Vt=new Map;let Ro=[];const Sd=new Set,ND=e=>Sd.forEach(t=>t(e)),Hb=()=>Vt.size>0;function jb(e,t){var n;if(t)return!((n=Vt.get(t))==null||!n.isToastActive(e));let r=!1;return Vt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Wb(e,t){Dd(e)&&(Hb()||Ro.push({content:e,options:t}),Vt.forEach(n=>{n.buildToast(e,t)}))}function Ng(e,t){Vt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function VD(e){const{subscribe:t,getSnapshot:n,setProps:r}=C.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],v=[],y=[],b=d;const x=new Map,S=new Set,w=()=>{y=Array.from(x.values()),S.forEach(p=>p())},I=p=>{v=p==null?[]:v.filter(D=>D!==p),w()},F=p=>{const{toastId:D,onOpen:$,updateId:_,children:A}=p.props,k=_==null;p.staleId&&x.delete(p.staleId),x.set(D,p),v=[...v,p.props.toastId].filter(R=>R!==p.staleId),w(),h(Og(p,k?"added":"updated")),k&&sn($)&&$(C.isValidElement(A)&&A.props)};return{id:c,props:b,observe:p=>(S.add(p),()=>S.delete(p)),toggle:(p,D)=>{x.forEach($=>{D!=null&&D!==$.props.toastId||sn($.toggle)&&$.toggle(p)})},removeToast:I,toasts:x,clearQueue:()=>{g-=m.length,m=[]},buildToast:(p,D)=>{if((z=>{let{containerId:X,toastId:G,updateId:j}=z;const V=X?X!==c:c!==1,Z=x.has(G)&&j==null;return V||Z})(D))return;const{toastId:$,updateId:_,data:A,staleId:k,delay:R}=D,M=()=>{I($)},T=_==null;T&&g++;const P={...b,style:b.toastStyle,key:f++,...Object.fromEntries(Object.entries(D).filter(z=>{let[X,G]=z;return G!=null})),toastId:$,updateId:_,data:A,closeToast:M,isIn:!1,className:bl(D.className||b.toastClassName),bodyClassName:bl(D.bodyClassName||b.bodyClassName),progressClassName:bl(D.progressClassName||b.progressClassName),autoClose:!D.isLoading&&(B=D.autoClose,O=b.autoClose,B===!1||$o(B)&&B>0?B:O),deleteToast(){const z=x.get($),{onClose:X,children:G}=z.props;sn(X)&&X(C.isValidElement(G)&&G.props),h(Og(z,"removed")),x.delete($),g--,g<0&&(g=0),m.length>0?F(m.shift()):w()}};var B,O;P.closeButton=b.closeButton,D.closeButton===!1||Dd(D.closeButton)?P.closeButton=D.closeButton:D.closeButton===!0&&(P.closeButton=!Dd(b.closeButton)||b.closeButton);let L=p;C.isValidElement(p)&&!Ii(p.type)?L=C.cloneElement(p,{closeToast:M,toastProps:P,data:A}):sn(p)&&(L=p({closeToast:M,toastProps:P,data:A}));const H={content:L,props:P,staleId:k};b.limit&&b.limit>0&&g>b.limit&&T?m.push(H):$o(R)?setTimeout(()=>{F(H)},R):F(H)},setProps(p){b=p},setToggle:(p,D)=>{x.get(p).toggle=D},isToastActive:p=>v.some(D=>D===p),getSnapshot:()=>b.newestOnTop?y.reverse():y}}(o,a,ND);Vt.set(o,l);const u=l.observe(s);return Ro.forEach(c=>Wb(c.content,c.options)),Ro=[],()=>{u(),Vt.delete(o)}},setProps(s){var l;(l=Vt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=Vt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=C.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return i.forEach(s=>{const{position:l}=s.props;o.has(l)||o.set(l,[]),o.get(l).push(s)}),Array.from(o,s=>a(s[0],s[1]))},isToastActive:jb,count:i==null?void 0:i.length}}function LD(e){const[t,n]=C.useState(!1),[r,i]=C.useState(!1),a=C.useRef(null),o=C.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function v(x){const S=a.current;o.canDrag&&S&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?x.clientX-o.start:x.clientY-o.start,o.start!==x.clientX&&(o.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function y(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",y);const x=a.current;if(o.canDrag&&o.didMove&&x){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();x.style.transition="transform 0.2s, opacity 0.2s",x.style.removeProperty("transform"),x.style.removeProperty("opacity")}}(f=Vt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),C.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(x){if(e.draggable===!0||e.draggable===x.pointerType){o.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",y);const S=a.current;o.canCloseOnClick=!0,o.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(o.start=x.clientX,o.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(o.start=x.clientY,o.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(x){const{top:S,bottom:w,left:I,right:F}=a.current.getBoundingClientRect();x.nativeEvent.type!=="touchend"&&e.pauseOnHover&&x.clientX>=I&&x.clientX<=F&&x.clientY>=S&&x.clientY<=w?m():g()}};return s&&l&&(b.onMouseEnter=m,e.stacked||(b.onMouseLeave=g)),d&&(b.onClick=x=>{c&&c(x),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:b}}function HD(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=yr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),v=sn(o)?o({rtl:c,type:i,defaultClassName:m}):yr(m,o),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return C.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},C.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),C.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:v,style:g,...y}))}let jD=1;const zb=()=>""+jD++;function WD(e){return e&&(Ii(e.toastId)||$o(e.toastId))?e.toastId:zb()}function mo(e,t){return Wb(e,t),t.toastId}function Vl(e,t){return{...t,type:t&&t.type||e,toastId:WD(t)}}function As(e){return(t,n)=>mo(t,Vl(e,n))}function je(e,t){return mo(e,Vl("default",t))}je.loading=(e,t)=>mo(e,Vl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),je.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=Ii(i)?je.loading(i,n):je.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void je.dismiss(r);const f={type:c,...s,...n,data:h},g=Ii(d)?{render:d}:d;return r?je.update(r,{...f,...g}):je(g.render,{...f,...g}),h},u=sn(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},je.success=As("success"),je.info=As("info"),je.error=As("error"),je.warning=As("warning"),je.warn=je.warning,je.dark=(e,t)=>mo(e,Vl("default",{theme:"dark",...t})),je.dismiss=function(e){(function(t){var n;if(Hb()){if(t==null||Ii(n=t)||$o(n))Vt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Vt.get(t.containerId);r?r.removeToast(t.id):Vt.forEach(i=>{i.removeToast(t.id)})}}else Ro=Ro.filter(r=>t!=null&&r.options.toastId!==t)})(e)},je.clearWaitingQueue=function(e){e===void 0&&(e={}),Vt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},je.isActive=jb,je.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=Vt.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:zb()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,mo(o,a)}},je.done=e=>{je.update(e,{progress:1})},je.onChange=function(e){return Sd.add(e),()=>{Sd.delete(e)}},je.play=e=>Ng(!0,e),je.pause=e=>Ng(!1,e);const zD=typeof window<"u"?C.useLayoutEffect:C.useEffect,Fs=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return C.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},pc={info:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return C.createElement("div",{className:"Toastify__spinner"})}},GD=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=LD(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:v,bodyClassName:y,bodyStyle:b,progressClassName:x,progressStyle:S,updateId:w,role:I,progress:F,rtl:p,toastId:D,deleteToast:$,isIn:_,isLoading:A,closeOnClick:k,theme:R}=e,M=yr("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":p},{"Toastify__toast--close-on-click":k}),T=sn(m)?m({rtl:p,position:g,type:c,defaultClassName:M}):yr(M,m),P=function(H){let{theme:z,type:X,isLoading:G,icon:j}=H,V=null;const Z={theme:z,type:X};return j===!1||(sn(j)?V=j({...Z,isLoading:G}):C.isValidElement(j)?V=C.cloneElement(j,Z):G?V=pc.spinner():(q=>q in pc)(X)&&(V=pc[X](Z))),V}(e),B=!!F||!l,O={closeToast:h,type:c,theme:R};let L=null;return o===!1||(L=sn(o)?o(O):C.isValidElement(o)?C.cloneElement(o,O):function(H){let{closeToast:z,theme:X,ariaLabel:G="close"}=H;return C.createElement("button",{className:`Toastify__close-button Toastify__close-button--${X}`,type:"button",onClick:j=>{j.stopPropagation(),z(j)},"aria-label":G},C.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},C.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(O)),C.createElement(f,{isIn:_,done:$,position:g,preventExitTransition:n,nodeRef:r,playToast:a},C.createElement("div",{id:D,onClick:u,"data-in":_,className:T,...i,style:v,ref:r},C.createElement("div",{..._&&{role:I},className:sn(y)?y({type:c}):yr("Toastify__toast-body",y),style:b},P!=null&&C.createElement("div",{className:yr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},P),C.createElement("div",null,s)),L,C.createElement(HD,{...w&&!B?{key:`pb-${w}`}:{},rtl:p,theme:R,delay:l,isRunning:t,isIn:_,closeToast:h,hide:d,type:c,style:S,className:x,controlledProgress:B,progress:F||0})))},Pu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},ZD=Fu(Pu("bounce",!0));Fu(Pu("slide",!0));Fu(Pu("zoom"));Fu(Pu("flip"));const XD={position:"top-right",transition:ZD,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function YD(e){let t={...XD,...e};const n=e.stacked,[r,i]=C.useState(!0),a=C.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=VD(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const v=yr("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return sn(u)?u({position:m,rtl:d,defaultClassName:v}):yr(v,bl(u))}function g(){n&&(i(!0),je.play())}return zD(()=>{if(n){var m;const v=a.current.querySelectorAll('[data-in="true"]'),y=12,b=(m=t.position)==null?void 0:m.includes("top");let x=0,S=0;Array.from(v).reverse().forEach((w,I)=>{const F=w;F.classList.add("Toastify__toast--stacked"),I>0&&(F.dataset.collapsed=`${r}`),F.dataset.pos||(F.dataset.pos=b?"top":"bot");const p=x*(r?.2:1)+(r?0:y*I);F.style.setProperty("--y",`${b?p:-1*p}px`),F.style.setProperty("--g",`${y}`),F.style.setProperty("--s",""+(1-(r?S:0))),x+=F.offsetHeight,S+=.025})}},[r,l,n]),C.createElement("div",{ref:a,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),je.pause())},onMouseLeave:g},o((m,v)=>{const y=v.length?{...c}:{...c,pointerEvents:"none"};return C.createElement("div",{className:f(m),style:y,key:`container-${m}`},v.map(b=>{let{content:x,props:S}=b;return C.createElement(GD,{...S,stacked:n,collapseAll:g,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},x)}))}))}const nn={"alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},UD=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:nn["alert-body"]},a={icon:{laba:{success:E.jsx(qD,{}),warning:E.jsx(n5,{}),error:E.jsx(e5,{}),info:E.jsx(QD,{})},payhere:{success:E.jsx(JD,{}),warning:E.jsx(t5,{}),error:E.jsx(KD,{}),info:E.jsx(r5,{})}},variant:{laba:{success:nn["alert-success-filled"],error:nn["alert-error-filled"],warning:nn["alert-warning-filled"],info:nn["alert-info-filled"]},payhere:{success:nn["alert-success-outlined"],error:nn["alert-error-outlined"],warning:nn["alert-warning-outlined"],info:nn["alert-info-outlined"]}}};return t==="error"?je.error(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?je.info(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?je.warning(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):je(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},JD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"check-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),qD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"circle",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),KD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),QD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),e5=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),t5=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),n5=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),r5=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"information-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),ds=e=>typeof e=="string"||typeof e=="number"||typeof e=="bigint"?Ru(e):"";function i5(e,t){return{name:"minBig",message:t||`Value must be greater than or equal to ${e}`,test(n){return n=ds(n),nr(n)?rt(n).gte(rt(e))?!0:this.createError({message:t||`Value must be greater than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function a5(e,t){return{name:"maxBig",message:t||`Value must be less than or equal to ${e}`,test(n){return n=ds(n),nr(n)?rt(n).lte(rt(e))?!0:this.createError({message:t||`Value must be less than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function o5(e,t){return{name:"moreThanBig",message:t||`Value must be greater than ${e}`,test(n){return n=ds(n),nr(n)?rt(n).gt(rt(e))?!0:this.createError({message:t||`Value must be greater than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function s5(e,t){return{name:"lessThanBig",message:t||`Value must be less than ${e}`,test(n){return n=ds(n),nr(n)?rt(n).lt(rt(e))?!0:this.createError({message:t||`Value must be less than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function l5(e,t,n){return{name:"betweenBig",message:n||`Value must be between ${e} and ${t}`,test(r){if(r=ds(r),!nr(r))return this.createError({message:n||"Invalid BigNumber value"});const i=rt(r),a=rt(e),o=rt(t);return i.lt(a)||i.gt(o)?this.createError({message:n||`Value must be between ${e} and ${t}`}):!0}}}function Pf(e){return u5.test(e)}const u5=/^-?[0-9]+$/;function c5(e){return d5.test(e)}const d5=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Gb(e,t){const n=Number.parseFloat(e),r=String(n),i=Vg(e),a=Vg(r);return!!(i===a||(t==null?void 0:t.approx)===!0&&!Pf(e)&&a.length>=14&&i.startsWith(a.substring(0,14)))}let no=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function f5(e){if(Gb(e,{approx:!1}))return;if(Pf(e))return no.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?no.underflow:no.truncate_float:no.overflow}function Vg(e){return e.replace(h5,"").replace(m5,"").replace(p5,"").replace(g5,"")}const h5=/[eE][+-]?\d+$/,g5=/^-?(0*)?/,m5=/\./,p5=/0+$/;class b5{constructor(t){ae(this,"isLosslessNumber",!0);if(!c5(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=f5(this.value);if(t===void 0||t===no.truncate_float)return Number.parseFloat(this.value);if(Pf(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function v5(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function y5(e){return new b5(e)}function x5(e,t){return Tf({"":e},"",e,t)}function Tf(e,t,n,r){return Array.isArray(n)?r.call(e,t,w5(n,r)):n&&typeof n=="object"&&!v5(n)?r.call(e,t,C5(n,r)):r.call(e,t,n)}function C5(e,t){for(const n of Object.keys(e)){const r=Tf(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function w5(e,t){for(let n=0;n<e.length;n++)e[n]=Tf(e,String(n),e[n],t);return e}function D5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y5,r=0;const i=s();return g(i),v(),t?x5(i,t):i;function a(){if(e.charCodeAt(r)===R5){r++,u();const R={};let M=!0;for(;r<e.length&&e.charCodeAt(r)!==Hg;){M?M=!1:(h(),u());const T=r,P=c();if(P===void 0){x();return}u(),f();const B=s();if(B===void 0){D();return}Object.prototype.hasOwnProperty.call(R,P)&&!Ed(B,R[P])&&S(P,T+1),R[P]=B}return e.charCodeAt(r)!==Hg&&w(),r++,R}}function o(){if(e.charCodeAt(r)===A5){r++,u();const R=[];let M=!0;for(;r<e.length&&e.charCodeAt(r)!==jg;){M?M=!1:h();const T=s();m(T),R.push(T)}return e.charCodeAt(r)!==jg&&I(),r++,R}}function s(){u();const R=c()??d()??a()??o()??l("true",!0)??l("false",!1)??l("null",null);return u(),R}function l(R,M){if(e.slice(r,r+R.length)===R)return r+=R.length,M}function u(){for(;S5(e.charCodeAt(r));)r++}function c(){if(e.charCodeAt(r)===bc){r++;let R="";for(;r<e.length&&e.charCodeAt(r)!==bc;){if(e.charCodeAt(r)===$5){const M=e[r+1],T=I5[M];T!==void 0?(R+=T,r++):M==="u"?Ps(e.charCodeAt(r+2))&&Ps(e.charCodeAt(r+3))&&Ps(e.charCodeAt(r+4))&&Ps(e.charCodeAt(r+5))?(R+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):$(r):p(r)}else _5(e.charCodeAt(r))?R+=e[r]:F(e[r]);r++}return b(),r++,R}}function d(){const R=r;if(e.charCodeAt(r)===Wg&&(r++,y(R)),e.charCodeAt(r)===kf)r++;else if(E5(e.charCodeAt(r)))for(r++;Ts(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===N5)for(r++,y(R);Ts(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===W5||e.charCodeAt(r)===j5)for(r++,(e.charCodeAt(r)===Wg||e.charCodeAt(r)===M5)&&r++,y(R);Ts(e.charCodeAt(r));)r++;if(r>R)return n(e.slice(R,r))}function h(){if(e.charCodeAt(r)!==O5)throw new SyntaxError(`Comma ',' expected after value ${k()}`);r++}function f(){if(e.charCodeAt(r)!==V5)throw new SyntaxError(`Colon ':' expected after property name ${k()}`);r++}function g(R){if(R===void 0)throw new SyntaxError(`JSON value expected ${k()}`)}function m(R){if(R===void 0)throw new SyntaxError(`Array item expected ${k()}`)}function v(){if(r<e.length)throw new SyntaxError(`Expected end of input ${k()}`)}function y(R){if(!Ts(e.charCodeAt(r))){const M=e.slice(R,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${k()}`)}}function b(){if(e.charCodeAt(r)!==bc)throw new SyntaxError(`End of string '"' expected ${k()}`)}function x(){throw new SyntaxError(`Quoted object key expected ${k()}`)}function S(R,M){throw new SyntaxError(`Duplicate key '${R}' encountered at position ${M}`)}function w(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${k()}`)}function I(){throw new SyntaxError(`Array item or end of array ']' expected ${k()}`)}function F(R){throw new SyntaxError(`Invalid character '${R}' ${_()}`)}function p(R){const M=e.slice(R,R+2);throw new SyntaxError(`Invalid escape character '${M}' ${_()}`)}function D(){throw new SyntaxError(`Object value expected after ':' ${_()}`)}function $(R){const M=e.slice(R,R+6);throw new SyntaxError(`Invalid unicode character '${M}' ${_()}`)}function _(){return`at position ${r}`}function A(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function k(){return`${A()} ${_()}`}}function S5(e){return e===F5||e===P5||e===T5||e===k5}function Ps(e){return e>=kf&&e<=Mf||e>=L5&&e<=z5||e>=H5&&e<=G5}function Ts(e){return e>=kf&&e<=Mf}function E5(e){return e>=B5&&e<=Mf}function _5(e){return e>=32&&e<=1114111}function Ed(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>Ed(n,t[r])):Lg(e)&&Lg(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>Ed(e[r],t[r])):!1}function Lg(e){return typeof e=="object"&&e!==null}const I5={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
30
|
+
<%s key={someKey} {...props} />`,fc,oi,c2,oi),Sg[oi+fc]=!0}}return N===r?a2(ht):i2(ht),ht}}function o2(N,U,Q){return Eg(N,U,Q,!0)}function s2(N,U,Q){return Eg(N,U,Q,!1)}var l2=s2,u2=o2;Ga.Fragment=r,Ga.jsx=l2,Ga.jsxs=u2}()),Ga}process.env.NODE_ENV==="production"?wd.exports=MD():wd.exports=BD();var E=wd.exports;function Lb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lb(e))&&(r&&(r+=" "),r+=t);return r}const $o=e=>typeof e=="number"&&!isNaN(e),Ii=e=>typeof e=="string",sn=e=>typeof e=="function",bl=e=>Ii(e)||sn(e)?e:null,Dd=e=>C.isValidElement(e)||Ii(e)||sn(e)||$o(e);function OD(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Fu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,v=C.useRef(0);return C.useLayoutEffect(()=>{const y=d.current,b=g.split(" "),x=S=>{S.target===d.current&&(f(),y.removeEventListener("animationend",x),y.removeEventListener("animationcancel",x),v.current===0&&S.type!=="animationcancel"&&y.classList.remove(...b))};y.classList.add(...b),y.addEventListener("animationend",x),y.addEventListener("animationcancel",x)},[]),C.useEffect(()=>{const y=d.current,b=()=>{y.removeEventListener("animationend",b),i?OD(y,c,a):c()};h||(u?b():(v.current=1,y.className+=` ${m}`,y.addEventListener("animationend",b)))},[h]),C.createElement(C.Fragment,null,s)}}function Og(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Vt=new Map;let Ro=[];const Sd=new Set,ND=e=>Sd.forEach(t=>t(e)),Hb=()=>Vt.size>0;function jb(e,t){var n;if(t)return!((n=Vt.get(t))==null||!n.isToastActive(e));let r=!1;return Vt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Wb(e,t){Dd(e)&&(Hb()||Ro.push({content:e,options:t}),Vt.forEach(n=>{n.buildToast(e,t)}))}function Ng(e,t){Vt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function VD(e){const{subscribe:t,getSnapshot:n,setProps:r}=C.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],v=[],y=[],b=d;const x=new Map,S=new Set,w=()=>{y=Array.from(x.values()),S.forEach(p=>p())},_=p=>{v=p==null?[]:v.filter(D=>D!==p),w()},F=p=>{const{toastId:D,onOpen:$,updateId:I,children:A}=p.props,k=I==null;p.staleId&&x.delete(p.staleId),x.set(D,p),v=[...v,p.props.toastId].filter(R=>R!==p.staleId),w(),h(Og(p,k?"added":"updated")),k&&sn($)&&$(C.isValidElement(A)&&A.props)};return{id:c,props:b,observe:p=>(S.add(p),()=>S.delete(p)),toggle:(p,D)=>{x.forEach($=>{D!=null&&D!==$.props.toastId||sn($.toggle)&&$.toggle(p)})},removeToast:_,toasts:x,clearQueue:()=>{g-=m.length,m=[]},buildToast:(p,D)=>{if((z=>{let{containerId:X,toastId:G,updateId:j}=z;const V=X?X!==c:c!==1,Z=x.has(G)&&j==null;return V||Z})(D))return;const{toastId:$,updateId:I,data:A,staleId:k,delay:R}=D,M=()=>{_($)},T=I==null;T&&g++;const P={...b,style:b.toastStyle,key:f++,...Object.fromEntries(Object.entries(D).filter(z=>{let[X,G]=z;return G!=null})),toastId:$,updateId:I,data:A,closeToast:M,isIn:!1,className:bl(D.className||b.toastClassName),bodyClassName:bl(D.bodyClassName||b.bodyClassName),progressClassName:bl(D.progressClassName||b.progressClassName),autoClose:!D.isLoading&&(B=D.autoClose,O=b.autoClose,B===!1||$o(B)&&B>0?B:O),deleteToast(){const z=x.get($),{onClose:X,children:G}=z.props;sn(X)&&X(C.isValidElement(G)&&G.props),h(Og(z,"removed")),x.delete($),g--,g<0&&(g=0),m.length>0?F(m.shift()):w()}};var B,O;P.closeButton=b.closeButton,D.closeButton===!1||Dd(D.closeButton)?P.closeButton=D.closeButton:D.closeButton===!0&&(P.closeButton=!Dd(b.closeButton)||b.closeButton);let L=p;C.isValidElement(p)&&!Ii(p.type)?L=C.cloneElement(p,{closeToast:M,toastProps:P,data:A}):sn(p)&&(L=p({closeToast:M,toastProps:P,data:A}));const H={content:L,props:P,staleId:k};b.limit&&b.limit>0&&g>b.limit&&T?m.push(H):$o(R)?setTimeout(()=>{F(H)},R):F(H)},setProps(p){b=p},setToggle:(p,D)=>{x.get(p).toggle=D},isToastActive:p=>v.some(D=>D===p),getSnapshot:()=>b.newestOnTop?y.reverse():y}}(o,a,ND);Vt.set(o,l);const u=l.observe(s);return Ro.forEach(c=>Wb(c.content,c.options)),Ro=[],()=>{u(),Vt.delete(o)}},setProps(s){var l;(l=Vt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=Vt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=C.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return i.forEach(s=>{const{position:l}=s.props;o.has(l)||o.set(l,[]),o.get(l).push(s)}),Array.from(o,s=>a(s[0],s[1]))},isToastActive:jb,count:i==null?void 0:i.length}}function LD(e){const[t,n]=C.useState(!1),[r,i]=C.useState(!1),a=C.useRef(null),o=C.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function v(x){const S=a.current;o.canDrag&&S&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?x.clientX-o.start:x.clientY-o.start,o.start!==x.clientX&&(o.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function y(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",y);const x=a.current;if(o.canDrag&&o.didMove&&x){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();x.style.transition="transform 0.2s, opacity 0.2s",x.style.removeProperty("transform"),x.style.removeProperty("opacity")}}(f=Vt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),C.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const b={onPointerDown:function(x){if(e.draggable===!0||e.draggable===x.pointerType){o.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",y);const S=a.current;o.canCloseOnClick=!0,o.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(o.start=x.clientX,o.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(o.start=x.clientY,o.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(x){const{top:S,bottom:w,left:_,right:F}=a.current.getBoundingClientRect();x.nativeEvent.type!=="touchend"&&e.pauseOnHover&&x.clientX>=_&&x.clientX<=F&&x.clientY>=S&&x.clientY<=w?m():g()}};return s&&l&&(b.onMouseEnter=m,e.stacked||(b.onMouseLeave=g)),d&&(b.onClick=x=>{c&&c(x),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:b}}function HD(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=yr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),v=sn(o)?o({rtl:c,type:i,defaultClassName:m}):yr(m,o),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return C.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},C.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),C.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:v,style:g,...y}))}let jD=1;const zb=()=>""+jD++;function WD(e){return e&&(Ii(e.toastId)||$o(e.toastId))?e.toastId:zb()}function mo(e,t){return Wb(e,t),t.toastId}function Vl(e,t){return{...t,type:t&&t.type||e,toastId:WD(t)}}function As(e){return(t,n)=>mo(t,Vl(e,n))}function je(e,t){return mo(e,Vl("default",t))}je.loading=(e,t)=>mo(e,Vl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),je.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=Ii(i)?je.loading(i,n):je.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void je.dismiss(r);const f={type:c,...s,...n,data:h},g=Ii(d)?{render:d}:d;return r?je.update(r,{...f,...g}):je(g.render,{...f,...g}),h},u=sn(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},je.success=As("success"),je.info=As("info"),je.error=As("error"),je.warning=As("warning"),je.warn=je.warning,je.dark=(e,t)=>mo(e,Vl("default",{theme:"dark",...t})),je.dismiss=function(e){(function(t){var n;if(Hb()){if(t==null||Ii(n=t)||$o(n))Vt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Vt.get(t.containerId);r?r.removeToast(t.id):Vt.forEach(i=>{i.removeToast(t.id)})}}else Ro=Ro.filter(r=>t!=null&&r.options.toastId!==t)})(e)},je.clearWaitingQueue=function(e){e===void 0&&(e={}),Vt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},je.isActive=jb,je.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=Vt.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:zb()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,mo(o,a)}},je.done=e=>{je.update(e,{progress:1})},je.onChange=function(e){return Sd.add(e),()=>{Sd.delete(e)}},je.play=e=>Ng(!0,e),je.pause=e=>Ng(!1,e);const zD=typeof window<"u"?C.useLayoutEffect:C.useEffect,Fs=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return C.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},pc={info:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return C.createElement(Fs,{...e},C.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return C.createElement("div",{className:"Toastify__spinner"})}},GD=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=LD(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:v,bodyClassName:y,bodyStyle:b,progressClassName:x,progressStyle:S,updateId:w,role:_,progress:F,rtl:p,toastId:D,deleteToast:$,isIn:I,isLoading:A,closeOnClick:k,theme:R}=e,M=yr("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":p},{"Toastify__toast--close-on-click":k}),T=sn(m)?m({rtl:p,position:g,type:c,defaultClassName:M}):yr(M,m),P=function(H){let{theme:z,type:X,isLoading:G,icon:j}=H,V=null;const Z={theme:z,type:X};return j===!1||(sn(j)?V=j({...Z,isLoading:G}):C.isValidElement(j)?V=C.cloneElement(j,Z):G?V=pc.spinner():(q=>q in pc)(X)&&(V=pc[X](Z))),V}(e),B=!!F||!l,O={closeToast:h,type:c,theme:R};let L=null;return o===!1||(L=sn(o)?o(O):C.isValidElement(o)?C.cloneElement(o,O):function(H){let{closeToast:z,theme:X,ariaLabel:G="close"}=H;return C.createElement("button",{className:`Toastify__close-button Toastify__close-button--${X}`,type:"button",onClick:j=>{j.stopPropagation(),z(j)},"aria-label":G},C.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},C.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(O)),C.createElement(f,{isIn:I,done:$,position:g,preventExitTransition:n,nodeRef:r,playToast:a},C.createElement("div",{id:D,onClick:u,"data-in":I,className:T,...i,style:v,ref:r},C.createElement("div",{...I&&{role:_},className:sn(y)?y({type:c}):yr("Toastify__toast-body",y),style:b},P!=null&&C.createElement("div",{className:yr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},P),C.createElement("div",null,s)),L,C.createElement(HD,{...w&&!B?{key:`pb-${w}`}:{},rtl:p,theme:R,delay:l,isRunning:t,isIn:I,closeToast:h,hide:d,type:c,style:S,className:x,controlledProgress:B,progress:F||0})))},Pu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},ZD=Fu(Pu("bounce",!0));Fu(Pu("slide",!0));Fu(Pu("zoom"));Fu(Pu("flip"));const XD={position:"top-right",transition:ZD,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function YD(e){let t={...XD,...e};const n=e.stacked,[r,i]=C.useState(!0),a=C.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=VD(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const v=yr("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return sn(u)?u({position:m,rtl:d,defaultClassName:v}):yr(v,bl(u))}function g(){n&&(i(!0),je.play())}return zD(()=>{if(n){var m;const v=a.current.querySelectorAll('[data-in="true"]'),y=12,b=(m=t.position)==null?void 0:m.includes("top");let x=0,S=0;Array.from(v).reverse().forEach((w,_)=>{const F=w;F.classList.add("Toastify__toast--stacked"),_>0&&(F.dataset.collapsed=`${r}`),F.dataset.pos||(F.dataset.pos=b?"top":"bot");const p=x*(r?.2:1)+(r?0:y*_);F.style.setProperty("--y",`${b?p:-1*p}px`),F.style.setProperty("--g",`${y}`),F.style.setProperty("--s",""+(1-(r?S:0))),x+=F.offsetHeight,S+=.025})}},[r,l,n]),C.createElement("div",{ref:a,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),je.pause())},onMouseLeave:g},o((m,v)=>{const y=v.length?{...c}:{...c,pointerEvents:"none"};return C.createElement("div",{className:f(m),style:y,key:`container-${m}`},v.map(b=>{let{content:x,props:S}=b;return C.createElement(GD,{...S,stacked:n,collapseAll:g,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},x)}))}))}const nn={"alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},UD=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:nn["alert-body"]},a={icon:{laba:{success:E.jsx(qD,{}),warning:E.jsx(n5,{}),error:E.jsx(e5,{}),info:E.jsx(QD,{})},payhere:{success:E.jsx(JD,{}),warning:E.jsx(t5,{}),error:E.jsx(KD,{}),info:E.jsx(r5,{})}},variant:{laba:{success:nn["alert-success-filled"],error:nn["alert-error-filled"],warning:nn["alert-warning-filled"],info:nn["alert-info-filled"]},payhere:{success:nn["alert-success-outlined"],error:nn["alert-error-outlined"],warning:nn["alert-warning-outlined"],info:nn["alert-info-outlined"]}}};return t==="error"?je.error(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?je.info(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?je.warning(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):je(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:nn["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},JD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"check-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),qD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"circle",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),KD=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),QD=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),e5=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),t5=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"exclamation",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),n5=()=>E.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:E.jsxs("g",{id:"alert",children:[E.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),r5=()=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:E.jsx("g",{id:"information-circle",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),ds=e=>typeof e=="string"||typeof e=="number"||typeof e=="bigint"?Ru(e):"";function i5(e,t){return{name:"minBig",message:t||`Value must be greater than or equal to ${e}`,test(n){return n=ds(n),nr(n)?rt(n).gte(rt(e))?!0:this.createError({message:t||`Value must be greater than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function a5(e,t){return{name:"maxBig",message:t||`Value must be less than or equal to ${e}`,test(n){return n=ds(n),nr(n)?rt(n).lte(rt(e))?!0:this.createError({message:t||`Value must be less than or equal to ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function o5(e,t){return{name:"moreThanBig",message:t||`Value must be greater than ${e}`,test(n){return n=ds(n),nr(n)?rt(n).gt(rt(e))?!0:this.createError({message:t||`Value must be greater than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function s5(e,t){return{name:"lessThanBig",message:t||`Value must be less than ${e}`,test(n){return n=ds(n),nr(n)?rt(n).lt(rt(e))?!0:this.createError({message:t||`Value must be less than ${e}`}):this.createError({message:t||"Invalid BigNumber value"})}}}function l5(e,t,n){return{name:"betweenBig",message:n||`Value must be between ${e} and ${t}`,test(r){if(r=ds(r),!nr(r))return this.createError({message:n||"Invalid BigNumber value"});const i=rt(r),a=rt(e),o=rt(t);return i.lt(a)||i.gt(o)?this.createError({message:n||`Value must be between ${e} and ${t}`}):!0}}}function Pf(e){return u5.test(e)}const u5=/^-?[0-9]+$/;function c5(e){return d5.test(e)}const d5=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Gb(e,t){const n=Number.parseFloat(e),r=String(n),i=Vg(e),a=Vg(r);return!!(i===a||(t==null?void 0:t.approx)===!0&&!Pf(e)&&a.length>=14&&i.startsWith(a.substring(0,14)))}let no=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function f5(e){if(Gb(e,{approx:!1}))return;if(Pf(e))return no.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?no.underflow:no.truncate_float:no.overflow}function Vg(e){return e.replace(h5,"").replace(m5,"").replace(p5,"").replace(g5,"")}const h5=/[eE][+-]?\d+$/,g5=/^-?(0*)?/,m5=/\./,p5=/0+$/;class b5{constructor(t){ae(this,"isLosslessNumber",!0);if(!c5(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=f5(this.value);if(t===void 0||t===no.truncate_float)return Number.parseFloat(this.value);if(Pf(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function v5(e){return e&&typeof e=="object"&&e.isLosslessNumber===!0||!1}function y5(e){return new b5(e)}function x5(e,t){return Tf({"":e},"",e,t)}function Tf(e,t,n,r){return Array.isArray(n)?r.call(e,t,w5(n,r)):n&&typeof n=="object"&&!v5(n)?r.call(e,t,C5(n,r)):r.call(e,t,n)}function C5(e,t){for(const n of Object.keys(e)){const r=Tf(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function w5(e,t){for(let n=0;n<e.length;n++)e[n]=Tf(e,String(n),e[n],t);return e}function D5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y5,r=0;const i=s();return g(i),v(),t?x5(i,t):i;function a(){if(e.charCodeAt(r)===R5){r++,u();const R={};let M=!0;for(;r<e.length&&e.charCodeAt(r)!==Hg;){M?M=!1:(h(),u());const T=r,P=c();if(P===void 0){x();return}u(),f();const B=s();if(B===void 0){D();return}Object.prototype.hasOwnProperty.call(R,P)&&!Ed(B,R[P])&&S(P,T+1),R[P]=B}return e.charCodeAt(r)!==Hg&&w(),r++,R}}function o(){if(e.charCodeAt(r)===A5){r++,u();const R=[];let M=!0;for(;r<e.length&&e.charCodeAt(r)!==jg;){M?M=!1:h();const T=s();m(T),R.push(T)}return e.charCodeAt(r)!==jg&&_(),r++,R}}function s(){u();const R=c()??d()??a()??o()??l("true",!0)??l("false",!1)??l("null",null);return u(),R}function l(R,M){if(e.slice(r,r+R.length)===R)return r+=R.length,M}function u(){for(;S5(e.charCodeAt(r));)r++}function c(){if(e.charCodeAt(r)===bc){r++;let R="";for(;r<e.length&&e.charCodeAt(r)!==bc;){if(e.charCodeAt(r)===$5){const M=e[r+1],T=I5[M];T!==void 0?(R+=T,r++):M==="u"?Ps(e.charCodeAt(r+2))&&Ps(e.charCodeAt(r+3))&&Ps(e.charCodeAt(r+4))&&Ps(e.charCodeAt(r+5))?(R+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):$(r):p(r)}else _5(e.charCodeAt(r))?R+=e[r]:F(e[r]);r++}return b(),r++,R}}function d(){const R=r;if(e.charCodeAt(r)===Wg&&(r++,y(R)),e.charCodeAt(r)===kf)r++;else if(E5(e.charCodeAt(r)))for(r++;Ts(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===N5)for(r++,y(R);Ts(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===W5||e.charCodeAt(r)===j5)for(r++,(e.charCodeAt(r)===Wg||e.charCodeAt(r)===M5)&&r++,y(R);Ts(e.charCodeAt(r));)r++;if(r>R)return n(e.slice(R,r))}function h(){if(e.charCodeAt(r)!==O5)throw new SyntaxError(`Comma ',' expected after value ${k()}`);r++}function f(){if(e.charCodeAt(r)!==V5)throw new SyntaxError(`Colon ':' expected after property name ${k()}`);r++}function g(R){if(R===void 0)throw new SyntaxError(`JSON value expected ${k()}`)}function m(R){if(R===void 0)throw new SyntaxError(`Array item expected ${k()}`)}function v(){if(r<e.length)throw new SyntaxError(`Expected end of input ${k()}`)}function y(R){if(!Ts(e.charCodeAt(r))){const M=e.slice(R,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${k()}`)}}function b(){if(e.charCodeAt(r)!==bc)throw new SyntaxError(`End of string '"' expected ${k()}`)}function x(){throw new SyntaxError(`Quoted object key expected ${k()}`)}function S(R,M){throw new SyntaxError(`Duplicate key '${R}' encountered at position ${M}`)}function w(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${k()}`)}function _(){throw new SyntaxError(`Array item or end of array ']' expected ${k()}`)}function F(R){throw new SyntaxError(`Invalid character '${R}' ${I()}`)}function p(R){const M=e.slice(R,R+2);throw new SyntaxError(`Invalid escape character '${M}' ${I()}`)}function D(){throw new SyntaxError(`Object value expected after ':' ${I()}`)}function $(R){const M=e.slice(R,R+6);throw new SyntaxError(`Invalid unicode character '${M}' ${I()}`)}function I(){return`at position ${r}`}function A(){return r<e.length?`but got '${e[r]}'`:"but reached end of input"}function k(){return`${A()} ${I()}`}}function S5(e){return e===F5||e===P5||e===T5||e===k5}function Ps(e){return e>=kf&&e<=Mf||e>=L5&&e<=z5||e>=H5&&e<=G5}function Ts(e){return e>=kf&&e<=Mf}function E5(e){return e>=B5&&e<=Mf}function _5(e){return e>=32&&e<=1114111}function Ed(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>Ed(n,t[r])):Lg(e)&&Lg(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>Ed(e[r],t[r])):!1}function Lg(e){return typeof e=="object"&&e!==null}const I5={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
31
31
|
`,r:"\r",t:" "},$5=92,R5=123,Hg=125,A5=91,jg=93,F5=32,P5=10,T5=9,k5=13,bc=34,M5=43,Wg=45,kf=48,B5=49,Mf=57,O5=44,N5=46,V5=58,L5=65,H5=97,j5=69,W5=101,z5=70,G5=102;function _d(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(_d);const t={};for(const[n,r]of Object.entries(e))typeof r=="number"||typeof r=="string"?typeof r=="number"&&!Number.isSafeInteger(r)||typeof r=="string"&&/^-?\d+(?:\.\d+)?$/.test(r)?t[n]=rt(r).toString():t[n]=r:typeof r=="object"?t[n]=_d(r):t[n]=r;return t}return e}function Id(e){if(typeof e=="object"&&e!==null){if(Array.isArray(e))return e.map(Id);if(e instanceof rt)return e.toString();const t={};for(const[n,r]of Object.entries(e))t[n]=Id(r);return t}return e}const Z5=e=>D5(e,null,n=>typeof n=="number"&&!Number.isSafeInteger(n)||typeof n=="string"&&/^-?\d+(?:\.\d+)?$/.test(n)?Gb(n)?parseFloat(n):rt(n).toString():n),Zb={black:"#212121",white:"#FFFFFF","primary-50":"#E3F2FD","primary-100":"#BBDEFB","primary-200":"#90CAF9","primary-300":"#64B5F6","primary-400":"#42A5F5","primary-500":"#2196F3","primary-600":"#1E88E5","primary-700":"#1976D2","primary-800":"#1565C0","primary-900":"#0D47A1","blue-gray-50":"#ECEFF1","blue-gray-100":"#CFD8DC","blue-gray-200":"#B0BEC5","blue-gray-300":"#90A4AE","blue-gray-400":"#78909C","blue-gray-500":"#607D8B","blue-gray-600":"#546E7A","blue-gray-700":"#455A64","blue-gray-800":"#37474F","blue-gray-900":"#263238","gray-50":"#FAFAFA","gray-100":"#F5F5F5","gray-200":"#EEEEEE","gray-300":"#E0E0E0","gray-400":"#BDBDBD","gray-500":"#9E9E9E","gray-600":"#757575","gray-700":"#616161","gray-800":"#424242","gray-900":"#212121","brown-50":"#EFEBE9","brown-100":"#D7CCC8","brown-200":"#BCAAA4","brown-300":"#A1887F","brown-400":"#8D6E63","brown-500":"#795548","brown-600":"#6D4C41","brown-700":"#5D4037","brown-800":"#4E342E","brown-900":"#3E2723","deep-orange-50":"#FBE9E7","deep-orange-100":"#FFCCBC","deep-orange-200":"#FFAB91","deep-orange-300":"#FF8A65","deep-orange-400":"#FF7043","deep-orange-500":"#FF5722","deep-orange-600":"#F4511E","deep-orange-700":"#E64A19","deep-orange-800":"#D84315","deep-orange-900":"#BF360C","orange-50":"#FFF3E0","orange-100":"#FFE0B2","orange-200":"#FFCC80","orange-300":"#FFB74D","orange-400":"#FFA726","orange-500":"#FF9800","orange-600":"#FB8C00","orange-700":"#F57C00","orange-800":"#EF6C00","orange-900":"#E65100","amber-50":"#FFF8E1","amber-100":"#FFECB3","amber-200":"#FFE082","amber-300":"#FFD54F","amber-400":"#FFCA28","amber-500":"#FFC107","amber-600":"#FFB300","amber-700":"#FFA000","amber-800":"#FF8F00","amber-900":"#FF6F00","yellow-50":"#FFFDE7","yellow-100":"#FFF9C4","yellow-200":"#FFF59D","yellow-300":"#FFF176","yellow-400":"#FFEE58","yellow-500":"#FFEB3B","yellow-600":"#FDD835","yellow-700":"#FBC02D","yellow-800":"#F9A825","yellow-900":"#F57F17","lime-50":"#F9FBE7","lime-100":"#F0F4C3","lime-200":"#E6EE9C","lime-300":"#DCE775","lime-400":"#D4E157","lime-500":"#CDDC39","lime-600":"#C0CA33","lime-700":"#AFB42B","lime-800":"#9E9D24","lime-900":"#827717","light-green-50":"#F1F8E9","light-green-100":"#DCEDC8","light-green-200":"#C5E1A5","light-green-300":"#AED581","light-green-400":"#9CCC65","light-green-500":"#8BC34A","light-green-600":"#7CB342","light-green-700":"#689F38","light-green-800":"#558B2F","light-green-900":"#33691E","green-50":"#E8F5E9","green-100":"#C8E6C9","green-200":"#A5D6A7","green-300":"#81C784","green-400":"#66BB6A","green-500":"#4CAF50","green-600":"#43A047","green-700":"#388E3C","green-800":"#2E7D32","green-900":"#1B5E20","teal-50":"#E0F2F1","teal-100":"#B2DFDB","teal-200":"#80CBC4","teal-300":"#4DB6AC","teal-400":"#26A69A","teal-500":"#009688","teal-600":"#00897B","teal-700":"#00796B","teal-800":"#00695C","teal-900":"#004D40","cyan-50":"#E0F7FA","cyan-100":"#B2EBF2","cyan-200":"#80DEEA","cyan-300":"#4DD0E1","cyan-400":"#26C6DA","cyan-500":"#00BCD4","cyan-600":"#00ACC1","cyan-700":"#0097A7","cyan-800":"#00838F","cyan-900":"#006064","light-blue-50":"#E1F5FE","light-blue-100":"#B3E5FC","light-blue-200":"#81D4FA","light-blue-300":"#4FC3F7","light-blue-400":"#29B6F6","light-blue-500":"#03A9F4","light-blue-600":"#039BE5","light-blue-700":"#0288D1","light-blue-800":"#0277BD","light-blue-900":"#01579B","blue-50":"#E3F2FD","blue-100":"#BBDEFB","blue-200":"#90CAF9","blue-300":"#64B5F6","blue-400":"#42A5F5","blue-500":"#2196F3","blue-600":"#1E88E5","blue-700":"#1976D2","blue-800":"#1565C0","blue-900":"#0D47A1","indigo-50":"#E8EAF6","indigo-100":"#C5CAE9","indigo-200":"#9FA8DA","indigo-300":"#7986CB","indigo-400":"#5C6BC0","indigo-500":"#3F51B5","indigo-600":"#3949AB","indigo-700":"#303F9F","indigo-800":"#283593","indigo-900":"#1A237E","deep-purple-50":"#EDE7F6","deep-purple-100":"#D1C4E9","deep-purple-200":"#B39DDB","deep-purple-300":"#9575CD","deep-purple-400":"#7E57C2","deep-purple-500":"#673AB7","deep-purple-600":"#5E35B1","deep-purple-700":"#512DA8","deep-purple-800":"#4527A0","deep-purple-900":"#311B92","purple-50":"#F3E5F5","purple-100":"#E1BEE7","purple-200":"#CE93D8","purple-300":"#BA68C8","purple-400":"#AB47BC","purple-500":"#9C27B0","purple-600":"#8E24AA","purple-700":"#7B1FA2","purple-800":"#6A1B9A","purple-900":"#4A148C","pink-50":"#FCE4EC","pink-100":"#F8BBD0","pink-200":"#F48FB1","pink-300":"#F06292","pink-400":"#EC407A","pink-500":"#E91E63","pink-600":"#D81B60","pink-700":"#C2185B","pink-800":"#AD1457","pink-900":"#880E4F","red-50":"#FFEBEE","red-100":"#FFCDD2","red-200":"#EF9A9A","red-300":"#E57373","red-400":"#EF5350","red-500":"#F44336","red-600":"#E53935","red-700":"#D32F2F","red-800":"#C62828","red-900":"#B71C1C","payhere-brand-base":"#102A4D","payhere-brand-10":"#CFD4DB","payhere-brand-20":"#AFB8C4","payhere-brand-30":"#8794A6","payhere-brand-40":"#607188","payhere-brand-50":"#384E6B","payhere-brand-60":"#0D2340","laba-black":"#212529","laba-white":"#FFFFFF","laba-blue-10":"#0163C8","laba-blue-08":"#006DFF","laba-blue-06":"#2899FF","laba-blue-05":"#73A4D6","laba-blue-02":"#DBECFF","laba-blue-01":"#F0F7FF","laba-green-10":"#038C67","laba-green-08":"#04BA27","laba-green-06":"#78D798","laba-green-05":"#ABF3CC","laba-green-02":"#CAEEE5","laba-green-01":"#DFF6F6","laba-grey-10":"#898989","laba-grey-08":"#AEAEAE","laba-grey-06":"#D6D6D6","laba-grey-05":"#EEEEEE","laba-grey-02":"#F2F2F2","laba-grey-01":"#FDFDFD","laba-orange-10":"#C05000","laba-orange-08":"#FF7200","laba-orange-06":"#FF9300","laba-orange-05":"#FFBD78","laba-orange-02":"#FFDDBB","laba-orange-01":"#FFF5EB","laba-red-10":"#9E101F","laba-red-08":"#ED0019","laba-red-06":"#FB004E","laba-red-05":"#FF5378","laba-red-02":"#FFAEBF","laba-red-01":"#FFEBEF"},Xb={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}]},Yb={"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},X5={...Xb,...Yb},Y5={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},U5=()=>E.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),J5="_loading_z48x5_10",we={"button-xs":"_button-xs_z48x5_6","button-s":"_button-s_z48x5_6","button-m":"_button-m_z48x5_6","button-l":"_button-l_z48x5_6","button-extra-small":"_button-extra-small_z48x5_6","button-small":"_button-small_z48x5_6","button-reguler":"_button-reguler_z48x5_6","button-large":"_button-large_z48x5_6",loading:J5,"nude-laba-red-05":"_nude-laba-red-05_z48x5_18","nude-laba-red-08":"_nude-laba-red-08_z48x5_18","nude-laba-red-10":"_nude-laba-red-10_z48x5_18","nude-gray-500":"_nude-gray-500_z48x5_18","nude-green-700":"_nude-green-700_z48x5_18","nude-red-700":"_nude-red-700_z48x5_18","nude-laba-blue-10":"_nude-laba-blue-10_z48x5_18","ghost-blue-gray-100-bg_white-text_blue-gray-400":"_ghost-blue-gray-100-bg_white-text_blue-gray-400_z48x5_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_z48x5_18","ghost-laba-green-10":"_ghost-laba-green-10_z48x5_18","ghost-laba-blue-01":"_ghost-laba-blue-01_z48x5_18","ghost-laba-blue-05":"_ghost-laba-blue-05_z48x5_18","ghost-green-700":"_ghost-green-700_z48x5_18","ghost-red-700":"_ghost-red-700_z48x5_18","ghost-laba-blue-10":"_ghost-laba-blue-10_z48x5_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_z48x5_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_z48x5_18","primary-green-700":"_primary-green-700_z48x5_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_z48x5_18","primary-laba-blue-10":"_primary-laba-blue-10_z48x5_18","tertiary-gray-500":"_tertiary-gray-500_z48x5_18","tertiary-red-600":"_tertiary-red-600_z48x5_18","tertiary-red-300":"_tertiary-red-300_z48x5_18","tertiary-blue-700":"_tertiary-blue-700_z48x5_18","secondary-green-600":"_secondary-green-600_z48x5_18","secondary-red-700":"_secondary-red-700_z48x5_18","secondary-red-600":"_secondary-red-600_z48x5_18","secondary-blue-700":"_secondary-blue-700_z48x5_18","primary-red-700":"_primary-red-700_z48x5_18","primary-blue-700":"_primary-blue-700_z48x5_18","icon-loading":"_icon-loading_z48x5_96"},q5=({className:e=""})=>E.jsx("svg",{className:`${we["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
32
32
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
33
33
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
@@ -42,7 +42,7 @@ React keys must be passed directly to JSX without using spread:
|
|
42
42
|
${u?we.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&E.jsxs(E.Fragment,{children:[typeof i=="function"&&i(),C.isValidElement(i)&&i]}),u&&E.jsx(q5,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&E.jsxs(E.Fragment,{children:[typeof a=="function"&&a(),C.isValidElement(a)&&a]})]})});Mn.displayName="Button";function ni(e){return Ub(e)?(e.nodeName||"").toLowerCase():"#document"}function ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(Ub(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ub(e){return e instanceof Node||e instanceof ln(e).Node}function at(e){return e instanceof Element||e instanceof ln(e).Element}function Ct(e){return e instanceof HTMLElement||e instanceof ln(e).HTMLElement}function $d(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ln(e).ShadowRoot}function fs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function K5(e){return["table","td","th"].includes(ni(e))}function Tu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bf(e){const t=Of(),n=hn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Q5(e){let t=Ir(e);for(;Ct(t)&&!Jr(t);){if(Tu(t))return null;if(Bf(t))return t;t=Ir(t)}return null}function Of(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jr(e){return["html","body","#document"].includes(ni(e))}function hn(e){return ln(e).getComputedStyle(e)}function ku(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(ni(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$d(e)&&e.host||Rr(e);return $d(t)?t.host:t}function Jb(e){const t=Ir(e);return Jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&fs(t)?t:Jb(t)}function Yr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Jb(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ln(i);return a?t.concat(o,o.visualViewport||[],fs(i)?i:[],o.frameElement&&n?Yr(o.frameElement):[]):t.concat(i,Yr(i,[],n))}function gi(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function an(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$d(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function eS(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function qb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function tS(e){return e.mozInputSource===0&&e.isTrusted?!0:Rd()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nS(e){return iS()?!1:!Rd()&&e.width===0&&e.height===0||Rd()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function rS(){return/apple/i.test(navigator.vendor)}function Rd(){const e=/android/i;return e.test(eS())||e.test(qb())}function iS(){return qb().includes("jsdom/")}function zg(e,t){return["mouse","pen"].includes(e)}function aS(e){return"nativeEvent"in e}function oS(e){return e.matches("html,body")}function $n(e){return(e==null?void 0:e.ownerDocument)||document}function vc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function yi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const sS="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Kb(e){return Ct(e)&&e.matches(sS)}function yc(e){e.preventDefault(),e.stopPropagation()}function lS(e){return e?e.getAttribute("role")==="combobox"&&Kb(e):!1}const uS=["top","right","bottom","left"],Gg=["start","end"],Zg=uS.reduce((e,t)=>e.concat(t,t+"-"+Gg[0],t+"-"+Gg[1]),[]),Ea=Math.min,$i=Math.max,Ll=Math.round,ks=Math.floor,qr=e=>({x:e,y:e}),cS={left:"right",right:"left",bottom:"top",top:"bottom"},dS={start:"end",end:"start"};function Ad(e,t,n){return $i(e,Ea(t,n))}function Na(e,t){return typeof e=="function"?e(t):e}function $r(e){return e.split("-")[0]}function Kn(e){return e.split("-")[1]}function Qb(e){return e==="x"?"y":"x"}function Nf(e){return e==="y"?"height":"width"}function _a(e){return["top","bottom"].includes($r(e))?"y":"x"}function Vf(e){return Qb(_a(e))}function e1(e,t,n){n===void 0&&(n=!1);const r=Kn(e),i=Vf(e),a=Nf(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=jl(o)),[o,jl(o)]}function fS(e){const t=jl(e);return[Hl(e),t,Hl(t)]}function Hl(e){return e.replace(/start|end/g,t=>dS[t])}function hS(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function gS(e,t,n,r){const i=Kn(e);let a=hS($r(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Hl)))),a}function jl(e){return e.replace(/left|right|bottom|top/g,t=>cS[t])}function mS(e){return{top:0,right:0,bottom:0,left:0,...e}}function t1(e){return typeof e!="number"?mS(e):{top:e,right:e,bottom:e,left:e}}function Wl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
43
43
|
* tabbable 6.2.0
|
44
44
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
45
|
-
*/var pS=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],zl=pS.join(","),n1=typeof Element>"u",Ia=n1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gl=!n1&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Zl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},bS=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},vS=function(t,n,r){if(Zl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(zl));return n&&Ia.call(t,zl)&&i.unshift(t),i=i.filter(r),i},yS=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Zl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=Ia.call(o,zl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Zl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},r1=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},i1=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||bS(t))&&!r1(t)?0:t.tabIndex},xS=function(t,n){var r=i1(t);return r<0&&n&&!r1(t)?0:r},CS=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},a1=function(t){return t.tagName==="INPUT"},wS=function(t){return a1(t)&&t.type==="hidden"},DS=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},SS=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ES=function(t){if(!t.name)return!0;var n=t.form||Gl(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=SS(i,t.form);return!a||a===t},_S=function(t){return a1(t)&&t.type==="radio"},IS=function(t){return _S(t)&&!ES(t)},$S=function(t){var n,r=t&&Gl(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=Gl(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},Xg=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},RS=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=Ia.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(Ia.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=Gl(t);if(l&&!l.shadowRoot&&i(l)===!0)return Xg(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if($S(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Xg(t);return!1},AS=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ia.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},FS=function(t,n){return!(n.disabled||Zl(n)||wS(n)||RS(n,t)||DS(n)||AS(n))},Fd=function(t,n){return!(IS(n)||i1(n)<0||!FS(t,n))},PS=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},TS=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=xS(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(CS).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},Mu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=yS([t],n.includeContainer,{filter:Fd.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:PS}):r=vS(t,n.includeContainer,Fd.bind(null,n)),TS(r)},kS=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ia.call(t,zl)===!1?!1:Fd(n,t)};function Yg(e,t,n){let{reference:r,floating:i}=e;const a=_a(t),o=Vf(t),s=Nf(o),l=$r(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Kn(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const MS=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Yg(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:v,fn:y}=s[m],{x:b,y:x,data:S,reset:w}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=b??c,d=x??d,f={...f,[v]:{...f[v],...S}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=Yg(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Lf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Na(t,e),g=t1(f),v=s[h?d==="floating"?"reference":"floating":d],y=Wl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},w=Wl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-w.top+g.top)/S.y,bottom:(w.bottom-y.bottom+g.bottom)/S.y,left:(y.left-w.left+g.left)/S.x,right:(w.right-y.right+g.right)/S.x}}const BS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Na(e,t)||{};if(u==null)return{};const d=t1(c),h={x:n,y:r},f=Vf(i),g=Nf(f),m=await o.getDimensions(u),v=f==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[f]-h[f]-a.floating[g],w=h[f]-a.reference[f],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let F=I?I[x]:0;(!F||!await(o.isElement==null?void 0:o.isElement(I)))&&(F=s.floating[x]||a.floating[g]);const p=S/2-w/2,D=F/2-m[g]/2-1,$=Ea(d[y],D),_=Ea(d[b],D),A=$,k=F-m[g]-_,R=F/2-m[g]/2+p,M=Ad(A,R,k),T=!l.arrow&&Kn(i)!=null&&R!==M&&a.reference[g]/2-(R<A?$:_)-m[g]/2<0,P=T?R<A?R-A:R-k:0;return{[f]:h[f]+P,data:{[f]:M,centerOffset:R-M-P,...T&&{alignmentOffset:P}},reset:T}}});function OS(e,t,n){return(e?[...n.filter(i=>Kn(i)===e),...n.filter(i=>Kn(i)!==e)]:n.filter(i=>$r(i)===i)).filter(i=>e?Kn(i)===e||(t?Hl(i)!==i:!1):!0)}const NS=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=Zg,autoAlignment:f=!0,...g}=Na(e,t),m=d!==void 0||h===Zg?OS(d||null,f,h):h,v=await Lf(t,g),y=((n=o.autoPlacement)==null?void 0:n.index)||0,b=m[y];if(b==null)return{};const x=e1(b,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==b)return{reset:{placement:m[0]}};const S=[v[$r(b)],v[x[0]],v[x[1]]],w=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:S}],I=m[y+1];if(I)return{data:{index:y+1,overflows:w},reset:{placement:I}};const F=w.map($=>{const _=Kn($.placement);return[$.placement,_&&c?$.overflows.slice(0,2).reduce((A,k)=>A+k,0):$.overflows[0],$.overflows]}).sort(($,_)=>$[1]-_[1]),D=((i=F.filter($=>$[2].slice(0,Kn($[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||F[0][0];return D!==s?{data:{index:y+1,overflows:w},reset:{placement:D}}:{}}}},VS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=Na(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=$r(i),b=_a(s),x=$r(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=h||(x||!m?[jl(s)]:fS(s)),I=g!=="none";!h&&I&&w.push(...gS(s,m,g,S));const F=[s,...w],p=await Lf(t,v),D=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&D.push(p[y]),d){const R=e1(i,o,S);D.push(p[R[0]],p[R[1]])}if($=[...$,{placement:i,overflows:D}],!D.every(R=>R<=0)){var _,A;const R=(((_=a.flip)==null?void 0:_.index)||0)+1,M=F[R];if(M)return{data:{index:R,overflows:$},reset:{placement:M}};let T=(A=$.filter(P=>P.overflows[0]<=0).sort((P,B)=>P.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!T)switch(f){case"bestFit":{var k;const P=(k=$.filter(B=>{if(I){const O=_a(B.placement);return O===b||O==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(O=>O>0).reduce((O,L)=>O+L,0)]).sort((B,O)=>B[1]-O[1])[0])==null?void 0:k[0];P&&(T=P);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function LS(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$r(n),s=Kn(n),l=_a(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=Na(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const HS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await LS(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},jS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...l}=Na(e,t),u={x:n,y:r},c=await Lf(t,l),d=_a($r(i)),h=Qb(d);let f=u[h],g=u[d];if(a){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=f+c[v],x=f-c[y];f=Ad(b,f,x)}if(o){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=g+c[v],x=g-c[y];g=Ad(b,g,x)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function o1(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ct(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ll(n)!==a||Ll(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Hf(e){return at(e)?e:e.contextElement}function ma(e){const t=Hf(e);if(!Ct(t))return qr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=o1(t);let o=(a?Ll(n.width):n.width)/r,s=(a?Ll(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const WS=qr(0);function s1(e){const t=ln(e);return!Of()||!t.visualViewport?WS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ln(e)?!1:t}function ki(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Hf(e);let o=qr(1);t&&(r?at(r)&&(o=ma(r)):o=ma(e));const s=zS(a,n,r)?s1(a):qr(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=ln(a),f=r&&at(r)?ln(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const v=ma(m),y=m.getBoundingClientRect(),b=hn(m),x=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=x,u+=S,g=ln(m),m=g.frameElement}}return Wl({width:c,height:d,x:l,y:u})}function GS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Rr(r),s=t?Tu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=qr(1);const c=qr(0),d=Ct(r);if((d||!d&&!a)&&((ni(r)!=="body"||fs(o))&&(l=ku(r)),Ct(r))){const h=ki(r);u=ma(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function ZS(e){return Array.from(e.getClientRects())}function l1(e){return ki(Rr(e)).left+ku(e).scrollLeft}function XS(e){const t=Rr(e),n=ku(e),r=e.ownerDocument.body,i=$i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+l1(e);const s=-n.scrollTop;return hn(r).direction==="rtl"&&(o+=$i(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function YS(e,t){const n=ln(e),r=Rr(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=Of();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function US(e,t){const n=ki(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ct(e)?ma(e):qr(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Ug(e,t,n){let r;if(t==="viewport")r=YS(e,n);else if(t==="document")r=XS(Rr(e));else if(at(t))r=US(t,n);else{const i=s1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Wl(r)}function u1(e,t){const n=Ir(e);return n===t||!at(n)||Jr(n)?!1:hn(n).position==="fixed"||u1(n,t)}function JS(e,t){const n=t.get(e);if(n)return n;let r=Yr(e,[],!1).filter(s=>at(s)&&ni(s)!=="body"),i=null;const a=hn(e).position==="fixed";let o=a?Ir(e):e;for(;at(o)&&!Jr(o);){const s=hn(o),l=Bf(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||fs(o)&&!l&&u1(e,o))?r=r.filter(c=>c!==o):i=s,o=Ir(o)}return t.set(e,r),r}function qS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Tu(t)?[]:JS(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Ug(t,c,i);return u.top=$i(d.top,u.top),u.right=Ea(d.right,u.right),u.bottom=Ea(d.bottom,u.bottom),u.left=$i(d.left,u.left),u},Ug(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KS(e){const{width:t,height:n}=o1(e);return{width:t,height:n}}function QS(e,t,n){const r=Ct(t),i=Rr(t),a=n==="fixed",o=ki(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=qr(0);if(r||!r&&!a)if((ni(t)!=="body"||fs(i))&&(s=ku(t)),r){const d=ki(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=l1(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function xc(e){return hn(e).position==="static"}function Jg(e,t){return!Ct(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function c1(e,t){const n=ln(e);if(Tu(e))return n;if(!Ct(e)){let i=Ir(e);for(;i&&!Jr(i);){if(at(i)&&!xc(i))return i;i=Ir(i)}return n}let r=Jg(e,t);for(;r&&K5(r)&&xc(r);)r=Jg(r,t);return r&&Jr(r)&&xc(r)&&!Bf(r)?n:r||Q5(e)||n}const eE=async function(e){const t=this.getOffsetParent||c1,n=this.getDimensions,r=await n(e.floating);return{reference:QS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tE(e){return hn(e).direction==="rtl"}const nE={convertOffsetParentRelativeRectToViewportRelativeRect:GS,getDocumentElement:Rr,getClippingRect:qS,getOffsetParent:c1,getElementRects:eE,getClientRects:ZS,getDimensions:KS,getScale:ma,isElement:at,isRTL:tE};function rE(e,t){let n=null,r;const i=Rr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ks(c),g=ks(i.clientWidth-(u+d)),m=ks(i.clientHeight-(c+h)),v=ks(u),b={rootMargin:-f+"px "+-g+"px "+-m+"px "+-v+"px",threshold:$i(0,Ea(1,l))||1};let x=!0;function S(w){const I=w[0].intersectionRatio;if(I!==l){if(!x)return o();I?o(!1,I):r=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return o(!0),a}function d1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Hf(e),c=i||a?[...u?Yr(u):[],...Yr(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=u&&s?rE(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?ki(e):null;l&&v();function v(){const y=ki(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,g=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(b=>{i&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const iE=HS,aE=NS,oE=jS,sE=VS,qg=BS,lE=(e,t,n)=>{const r=new Map,i={platform:nE,...n},a={...i.platform,_c:r};return MS(e,t,{...i,platform:a})};var vl=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Xl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function f1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kg(e,t){const n=f1(e);return Math.round(t*n)/n}function Qg(e){const t=W.useRef(e);return vl(()=>{t.current=e}),t}function uE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=W.useState(r);Xl(h,r)||f(r);const[g,m]=W.useState(null),[v,y]=W.useState(null),b=W.useCallback(P=>{P!==I.current&&(I.current=P,m(P))},[]),x=W.useCallback(P=>{P!==F.current&&(F.current=P,y(P))},[]),S=a||g,w=o||v,I=W.useRef(null),F=W.useRef(null),p=W.useRef(c),D=l!=null,$=Qg(l),_=Qg(i),A=W.useCallback(()=>{if(!I.current||!F.current)return;const P={placement:t,strategy:n,middleware:h};_.current&&(P.platform=_.current),lE(I.current,F.current,P).then(B=>{const O={...B,isPositioned:!0};k.current&&!Xl(p.current,O)&&(p.current=O,$b.flushSync(()=>{d(O)}))})},[h,t,n,_]);vl(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const k=W.useRef(!1);vl(()=>(k.current=!0,()=>{k.current=!1}),[]),vl(()=>{if(S&&(I.current=S),w&&(F.current=w),S&&w){if($.current)return $.current(S,w,A);A()}},[S,w,A,$,D]);const R=W.useMemo(()=>({reference:I,floating:F,setReference:b,setFloating:x}),[b,x]),M=W.useMemo(()=>({reference:S,floating:w}),[S,w]),T=W.useMemo(()=>{const P={position:n,left:0,top:0};if(!M.floating)return P;const B=Kg(M.floating,c.x),O=Kg(M.floating,c.y);return s?{...P,transform:"translate("+B+"px, "+O+"px)",...f1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:O}},[n,s,M.floating,c.x,c.y]);return W.useMemo(()=>({...c,update:A,refs:R,elements:M,floatingStyles:T}),[c,A,R,M,T])}const cE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qg({element:r.current,padding:i}).fn(n):{}:r?qg({element:r,padding:i}).fn(n):{}}}},dE=(e,t)=>({...iE(e),options:[e,t]}),fE=(e,t)=>({...oE(e),options:[e,t]}),hE=(e,t)=>({...sE(e),options:[e,t]}),gE=(e,t)=>({...aE(e),options:[e,t]}),mE=(e,t)=>({...cE(e),options:[e,t]}),h1={...W},pE=h1.useInsertionEffect,bE=pE||(e=>e());function Hr(e){const t=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return bE(()=>{t.current=e}),W.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)},[])}let em=0;function li(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(em);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():em=requestAnimationFrame(a)}var Lt=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Ao(){return Ao=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},Ao.apply(this,arguments)}let tm=!1,vE=0;const nm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vE++;function yE(){const[e,t]=W.useState(()=>tm?nm():void 0);return Lt(()=>{e==null&&t(nm())},[]),W.useEffect(()=>{tm=!0},[]),e}const xE=h1.useId,Bu=xE||yE;let Fo;process.env.NODE_ENV!=="production"&&(Fo=new Set);function CE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Fo)!=null&&e.has(i))){var a;(a=Fo)==null||a.add(i),console.warn(i)}}function wE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Fo)!=null&&e.has(i))){var a;(a=Fo)==null||a.add(i),console.error(i)}}const DE=W.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a}},width:o=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...m}=t;process.env.NODE_ENV!=="production"&&(n||CE("The `ref` prop is required for `FloatingArrow`."));const v=Bu(),[y,b]=W.useState(!1);if(Lt(()=>{if(!i)return;hn(i).direction==="rtl"&&b(!0)},[i]),!i)return null;const x=u*2,S=x/2,w=o/2*(l/-8+1),I=s/2*l/4,[F,p]=r.split("-"),D=!!h,$=F==="top"||F==="bottom",_=c&&p==="end"?"bottom":"top";let A=c&&p==="end"?"right":"left";c&&y&&(A=p==="end"?"left":"right");const k=(a==null?void 0:a.x)!=null?c||a.x:"",R=(a==null?void 0:a.y)!=null?c||a.y:"",M=h||"M0,0"+(" H"+o)+(" L"+(o-w)+","+(s-I))+(" Q"+o/2+","+s+" "+w+","+(s-I))+" Z",T={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[F];return W.createElement("svg",Ao({},m,{"aria-hidden":!0,ref:n,width:D?o:o+x,height:o,viewBox:"0 0 "+o+" "+(s>o?s:o),style:{position:"absolute",pointerEvents:"none",[A]:k,[_]:R,[F]:$||D?"100%":"calc(100% - "+x/2+"px)",transform:""+T+(f??""),...g}}),x>0&&W.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),W.createElement("path",{stroke:x&&!h?m.fill:"none",d:M}),W.createElement("clipPath",{id:v},W.createElement("rect",{x:-S,y:S*(D?-1:1),width:o+x,height:o})))});function SE(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const EE=W.createContext(null),_E=W.createContext(null),g1=()=>{var e;return((e=W.useContext(EE))==null?void 0:e.id)||null},jf=()=>W.useContext(_E);function Po(e){return"data-floating-ui-"+e}function wi(e){const t=C.useRef(e);return Lt(()=>{t.current=e}),t}function IE(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function po(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Qi=new WeakMap,Ms=new WeakSet,Bs={},Cc=0;const $E=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,m1=e=>e&&(e.host||m1(e.parentNode)),RE=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=m1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function AE(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=RE(t,e),s=new Set,l=new Set(o),u=[];Bs[i]||(Bs[i]=new WeakMap);const c=Bs[i];o.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(ni(g)!=="script")if(s.has(g))h(g);else{const m=a?g.getAttribute(a):null,v=m!==null&&m!=="false",y=(Qi.get(g)||0)+1,b=(c.get(g)||0)+1;Qi.set(g,y),c.set(g,b),u.push(g),y===1&&v&&Ms.add(g),b===1&&g.setAttribute(i,""),!v&&a&&g.setAttribute(a,"true")}})}return Cc++,()=>{u.forEach(f=>{const g=(Qi.get(f)||0)-1,m=(c.get(f)||0)-1;Qi.set(f,g),c.set(f,m),g||(!Ms.has(f)&&a&&f.removeAttribute(a),Ms.delete(f)),m||f.removeAttribute(i)}),Cc--,Cc||(Qi=new WeakMap,Qi=new WeakMap,Ms=new WeakSet,Bs={})}}function rm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=$n(e[0]).body;return AE(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const To=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function p1(e,t){const n=Mu(e,To());t==="prev"&&n.reverse();const r=n.indexOf(gi($n(e)));return n.slice(r+1)[0]}function b1(){return p1(document.body,"next")}function v1(){return p1(document.body,"prev")}function bo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!an(n,r)}function FE(e){Mu(e,To()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function PE(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Wf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let TE;function im(e){e.key==="Tab"&&(e.target,clearTimeout(TE))}const Yl=W.forwardRef(function(t,n){const[r,i]=W.useState();Lt(()=>(rS()&&i("button"),document.addEventListener("keydown",im),()=>{document.removeEventListener("keydown",im)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Po("focus-guard")]:"",style:Wf};return W.createElement("span",Ao({},t,a))}),y1=W.createContext(null),am=Po("portal");function kE(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Bu(),i=x1(),[a,o]=W.useState(null),s=W.useRef(null);return Lt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Lt(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(am,""),l.appendChild(u),s.current=u,o(u)},[t,r]),Lt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!at(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(am,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function ME(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=kE({id:n,root:r}),[o,s]=W.useState(null),l=W.useRef(null),u=W.useRef(null),c=W.useRef(null),d=W.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return W.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&bo(g)&&(g.type==="focusin"?PE:FE)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),W.createElement(y1.Provider,{value:W.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&W.createElement(Yl,{"data-type":"outside",ref:l,onFocus:f=>{if(bo(f,a)){var g;(g=c.current)==null||g.focus()}else{const m=v1()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),h&&a&&W.createElement("span",{"aria-owns":a.id,style:Wf}),a&&$b.createPortal(t,a),h&&a&&W.createElement(Yl,{"data-type":"outside",ref:u,onFocus:f=>{if(bo(f,a)){var g;(g=d.current)==null||g.focus()}else{const m=b1()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const x1=()=>W.useContext(y1),BE=20;let mi=[];function wc(e){mi=mi.filter(n=>n.isConnected);let t=e;if(!(!t||ni(t)==="body")){if(!kS(t,To())){const n=Mu(t,To())[0];n&&(t=n)}mi.push(t),mi.length>BE&&(mi=mi.slice(-20))}}function om(){return mi.slice().reverse().find(e=>e.isConnected)}const OE=W.forwardRef(function(t,n){return W.createElement("button",Ao({},t,{type:"button",ref:n,tabIndex:-1,style:Wf}))});function NE(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:S}}=t,w=typeof o=="number"&&o<0,I=lS(x)&&w,F=$E()?a:!0,p=wi(i),D=wi(o),$=wi(s),_=jf(),A=x1(),k=W.useRef(null),R=W.useRef(null),M=W.useRef(!1),T=W.useRef(!1),P=W.useRef(-1),B=A!=null,O=S==null?void 0:S.firstElementChild,L=(O==null?void 0:O.id)===b?O:S,H=Hr(function(j){return j===void 0&&(j=L),j?Mu(j,To()):[]}),z=Hr(j=>{const V=H(j);return p.current.map(Z=>x&&Z==="reference"?x:L&&Z==="floating"?L:V).filter(Boolean).flat()});W.useEffect(()=>{if(r||!u)return;function j(Z){if(Z.key==="Tab"){an(L,gi($n(L)))&&H().length===0&&!I&&yc(Z);const q=z(),te=yi(Z);p.current[0]==="reference"&&te===x&&(yc(Z),Z.shiftKey?li(q[q.length-1]):li(q[1])),p.current[1]==="floating"&&te===L&&Z.shiftKey&&(yc(Z),li(q[0]))}}const V=$n(L);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,x,L,u,p,I,H,z]),W.useEffect(()=>{if(r||!S)return;function j(V){const Z=yi(V),te=H().indexOf(Z);te!==-1&&(P.current=te)}return S.addEventListener("focusin",j),()=>{S.removeEventListener("focusin",j)}},[r,S,H]),W.useEffect(()=>{if(r||!d)return;function j(){T.current=!0,setTimeout(()=>{T.current=!1})}function V(Z){const q=Z.relatedTarget;queueMicrotask(()=>{const te=!(an(x,q)||an(S,q)||an(q,S)||an(A==null?void 0:A.portalNode,q)||q!=null&&q.hasAttribute(Po("focus-guard"))||_&&(po(_.nodesRef.current,g).find(ue=>{var ie,Y;return an((ie=ue.context)==null?void 0:ie.elements.floating,q)||an((Y=ue.context)==null?void 0:Y.elements.domReference,q)})||IE(_.nodesRef.current,g).find(ue=>{var ie,Y;return((ie=ue.context)==null?void 0:ie.elements.floating)===q||((Y=ue.context)==null?void 0:Y.elements.domReference)===q})));if(l&&te&&gi($n(L))===$n(L).body){Ct(L)&&(L==null||L.focus());const ue=P.current,ie=H(),Y=ie[ue]||ie[ie.length-1]||L;Ct(Y)&&Y.focus()}(I||!u)&&q&&te&&!T.current&&q!==om()&&(M.current=!0,m(!1,Z))})}if(S&&Ct(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",j),S.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",j),S.removeEventListener("focusout",V)}},[r,x,S,L,u,g,_,A,m,d,l,H,I]),W.useEffect(()=>{var j;if(r)return;const V=Array.from((A==null||(j=A.portalNode)==null?void 0:j.querySelectorAll("["+Po("portal")+"]"))||[]);if(S){const Z=[S,...V,k.current,R.current,p.current.includes("reference")||I?x:null].filter(te=>te!=null),q=u||I?rm(Z,F,!F):rm(Z);return()=>{q()}}},[r,x,S,u,p,A,I,F]),Lt(()=>{if(r||!Ct(L))return;const j=$n(L),V=gi(j);queueMicrotask(()=>{const Z=z(L),q=D.current,te=(typeof q=="number"?Z[q]:q.current)||L,ue=an(L,V);!w&&!ue&&h&&li(te,{preventScroll:te===L})})},[r,h,L,w,z,D]),Lt(()=>{if(r||!L)return;let j=!1;const V=$n(L),Z=gi(V);let te=y.current.openEvent;wc(Z);function ue(ie){let{open:Y,reason:me,event:he,nested:ce}=ie;Y&&(te=he),me==="escape-key"&&f.domReference.current&&wc(f.domReference.current),me==="hover"&&he.type==="mouseleave"&&(M.current=!0),me==="outside-press"&&(ce?(M.current=!1,j=!0):M.current=!(tS(he)||nS(he)))}return v.on("openchange",ue),()=>{v.off("openchange",ue);const ie=gi(V),Y=an(S,ie)||_&&po(_.nodesRef.current,g).some(ce=>{var Qe;return an((Qe=ce.context)==null?void 0:Qe.elements.floating,ie)});(Y||te&&["click","mousedown"].includes(te.type))&&f.domReference.current&&wc(f.domReference.current);const he=om();$.current&&!M.current&&Ct(he)&&(!(he!==ie&&ie!==V.body)||Y)&&li(he,{cancelPrevious:!1,preventScroll:j})}},[r,S,L,$,y,f,v,_,g]),Lt(()=>{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{A.setFocusManagerState(null)}},[r,A,u,h,m,f,d]),Lt(()=>{if(r||!L||typeof MutationObserver!="function"||w)return;const j=()=>{const Z=L.getAttribute("tabindex"),q=H(),te=gi($n(S)),ue=q.indexOf(te);ue!==-1&&(P.current=ue),p.current.includes("floating")||te!==f.domReference.current&&q.length===0?Z!=="0"&&L.setAttribute("tabindex","0"):Z!=="-1"&&L.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,S,L,f,p,H,w]);function X(j){return r||!c||!u?null:W.createElement(OE,{ref:j==="start"?k:R,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const G=!r&&F&&(u?!I:!0)&&(B||u);return W.createElement(W.Fragment,null,G&&W.createElement(Yl,{"data-type":"inside",ref:A==null?void 0:A.beforeInsideRef,onFocus:j=>{if(u){const Z=z();li(i[0]==="reference"?Z[0]:Z[Z.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(M.current=!1,bo(j,A.portalNode)){const Z=b1()||x;Z==null||Z.focus()}else{var V;(V=A.beforeOutsideRef.current)==null||V.focus()}}}),!I&&X("start"),n,X("end"),G&&W.createElement(Yl,{"data-type":"inside",ref:A==null?void 0:A.afterInsideRef,onFocus:j=>{if(u)li(z()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(d&&(M.current=!0),bo(j,A.portalNode)){const Z=v1()||x;Z==null||Z.focus()}else{var V;(V=A.afterOutsideRef.current)==null||V.focus()}}}))}function sm(e){return Ct(e.target)&&e.target.tagName==="BUTTON"}function lm(e){return Kb(e)}function VE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=W.useRef(),h=W.useRef(!1),f=W.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(zg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}zg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||sm(g))&&(g.key===" "&&!lm(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||sm(g)||lm(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return W.useMemo(()=>o?{reference:f}:{},[o,f])}const LE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HE={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},um=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function jE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=jf(),v=Hr(typeof l=="function"?l:()=>!1),y=typeof l=="function"?v:l,b=W.useRef(!1),x=W.useRef(!1),{escapeKey:S,outsidePress:w}=um(f),{escapeKey:I,outsidePress:F}=um(g),p=Hr(R=>{var M;if(!n||!o||!s||R.key!=="Escape")return;const T=(M=a.current.floatingContext)==null?void 0:M.nodeId,P=m?po(m.nodesRef.current,T):[];if(!S&&(R.stopPropagation(),P.length>0)){let B=!0;if(P.forEach(O=>{var L;if((L=O.context)!=null&&L.open&&!O.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,aS(R)?R.nativeEvent:R,"escape-key")}),D=Hr(R=>{var M;const T=()=>{var P;p(R),(P=yi(R))==null||P.removeEventListener("keydown",T)};(M=yi(R))==null||M.addEventListener("keydown",T)}),$=Hr(R=>{var M;const T=b.current;b.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||T||typeof y=="function"&&!y(R))return;const B=yi(R),O="["+Po("inert")+"]",L=$n(i.floating).querySelectorAll(O);let H=at(B)?B:null;for(;H&&!Jr(H);){const j=Ir(H);if(Jr(j)||!at(j))break;H=j}if(L.length&&at(B)&&!oS(B)&&!an(B,i.floating)&&Array.from(L).every(j=>!an(H,j)))return;if(Ct(B)&&k){const j=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let Z=V&&R.offsetX>B.clientWidth;if(V&&hn(B).direction==="rtl"&&(Z=R.offsetX<=B.offsetWidth-B.clientWidth),Z||j&&R.offsetY>B.clientHeight)return}const z=(M=a.current.floatingContext)==null?void 0:M.nodeId,X=m&&po(m.nodesRef.current,z).some(j=>{var V;return vc(R,(V=j.context)==null?void 0:V.elements.floating)});if(vc(R,i.floating)||vc(R,i.domReference)||X)return;const G=m?po(m.nodesRef.current,z):[];if(G.length>0){let j=!0;if(G.forEach(V=>{var Z;if((Z=V.context)!=null&&Z.open&&!V.context.dataRef.current.__outsidePressBubbles){j=!1;return}}),!j)return}r(!1,R,"outside-press")}),_=Hr(R=>{var M;const T=()=>{var P;$(R),(P=yi(R))==null||P.removeEventListener(u,T)};(M=yi(R))==null||M.addEventListener(u,T)});W.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=w;function R(P){r(!1,P,"ancestor-scroll")}const M=$n(i.floating);s&&M.addEventListener("keydown",I?D:p,I),y&&M.addEventListener(u,F?_:$,F);let T=[];return h&&(at(i.domReference)&&(T=Yr(i.domReference)),at(i.floating)&&(T=T.concat(Yr(i.floating))),!at(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(Yr(i.reference.contextElement)))),T=T.filter(P=>{var B;return P!==((B=M.defaultView)==null?void 0:B.visualViewport)}),T.forEach(P=>{P.addEventListener("scroll",R,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",I?D:p,I),y&&M.removeEventListener(u,F?_:$,F),T.forEach(P=>{P.removeEventListener("scroll",R)})}},[a,i,s,y,u,n,r,h,o,S,w,p,I,D,$,F,_]),W.useEffect(()=>{b.current=!1},[y,u]);const A=W.useMemo(()=>({onKeyDown:p,[LE[d]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[p,r,c,d]),k=W.useMemo(()=>({onKeyDown:p,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[HE[u]]:()=>{b.current=!0}}),[p,u]);return W.useMemo(()=>o?{reference:A,floating:k}:{},[o,A,k])}function WE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Bu(),a=W.useRef({}),[o]=W.useState(()=>SE()),s=g1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!at(f)&&wE("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=W.useState(r.reference),c=Hr((f,g,m)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=W.useMemo(()=>({setPositionReference:u}),[]),h=W.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return W.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function zE(e){e===void 0&&(e={});const{nodeId:t}=e,n=WE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=W.useState(null),[s,l]=W.useState(null),c=(i==null?void 0:i.reference)||a,d=W.useRef(null),h=jf();Lt(()=>{c&&(d.current=c)},[c]);const f=uE({...e,elements:{...i,...s&&{reference:s}}}),g=W.useCallback(x=>{const S=at(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(S),f.refs.setReference(S)},[f.refs]),m=W.useCallback(x=>{(at(x)||x===null)&&(d.current=x,o(x)),(at(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!at(x))&&f.refs.setReference(x)},[f.refs]),v=W.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),y=W.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=W.useMemo(()=>({...f,...r,refs:v,elements:y,nodeId:t}),[f,v,y,t,r]);return Lt(()=>{r.dataRef.current.floatingContext=b;const x=h==null?void 0:h.nodesRef.current.find(S=>S.id===t);x&&(x.context=b)}),W.useMemo(()=>({...f,context:b,refs:v,elements:y}),[f,v,y,b])}const cm="active",dm="selected";function Dc(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[cm]:o,[dm]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[cm,dm].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(v=>v(...g)).find(v=>v!==void 0)}}}else o[u]=c}),o),{})}}function GE(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=W.useCallback(s=>Dc(s,e,"reference"),t),a=W.useCallback(s=>Dc(s,e,"floating"),n),o=W.useCallback(s=>Dc(s,e,"item"),r);return W.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const ZE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function XE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=ZE.get(o))!=null?n:o,l=Bu(),c=g1()!=null,d=W.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=W.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=W.useCallback(g=>{let{active:m,selected:v}=g;const y={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...y,"aria-selected":m&&v};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,o]);return W.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const fm=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ea(e,t){return typeof e=="function"?e(t):e}function YE(e,t){const[n,r]=W.useState(e);return e&&!n&&r(!0),W.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function UE(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=W.useState("unmounted"),u=YE(n,o);return!u&&s==="close"&&l("unmounted"),Lt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function JE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=W.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=W.useState(()=>({...ea(a,u),...ea(n,u)})),{isMounted:m,status:v}=UE(e,{duration:o}),y=wi(n),b=wi(r),x=wi(i),S=wi(a);return Lt(()=>{const w=ea(y.current,u),I=ea(x.current,u),F=ea(S.current,u),p=ea(b.current,u)||Object.keys(w).reduce((D,$)=>(D[$]="",D),{});if(v==="initial"&&g(D=>({transitionProperty:D.transitionProperty,...F,...w})),v==="open"&&g({transitionProperty:Object.keys(p).map(fm).join(","),transitionDuration:d+"ms",...F,...p}),v==="close"){const D=I||w;g({transitionProperty:Object.keys(D).map(fm).join(","),transitionDuration:h+"ms",...F,...D})}},[h,x,y,b,S,d,v,u]),{isMounted:m,styles:f}}const qE="_popover_7cinv_1",KE={popover:qE},Ar=C.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:m,propsArrow:v={},...y}=e,b=C.useRef(null),[x,S]=C.useState(!1),{refs:w,floatingStyles:I,context:F}=zE({open:x,onOpenChange:P=>{S(P),P||g()},middleware:[dE(i),s?gE(u):hE(l),fE(),mE({element:b})],whileElementsMounted:d1,...f}),p=VE(F),D=jE(F),$=XE(F),{getReferenceProps:_,getFloatingProps:A}=GE([p,D,$]),{styles:k,isMounted:R}=JE(F),M=P=>{w.setReference(P.currentTarget),S(B=>!B),x&&g()};C.useEffect(()=>{a&&o?M({currentTarget:o}):a||S(!1)},[a,o]),C.useImperativeHandle(t,()=>({show:x,setShow:S,handlerShow:M,getReferenceProps:_}),[x]);const T=()=>{let P={...I,...k,...h,zIndex:c};return d&&(P={...P,width:d}),P};return E.jsx(E.Fragment,{children:R&&x&&E.jsx(ME,{children:E.jsx(NE,{context:F,modal:!1,children:E.jsxs("div",{ref:w.setFloating,style:T(),...A(),className:`${KE.popover} ${r??""}`,...y,children:[n,m&&E.jsx(DE,{ref:b,context:F,...v})]})})})})});Ar.displayName="Popover";const QE="_input_192cn_7",e_="_label_192cn_36",t_="_error_192cn_43",Zt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:QE,label:e_,error:t_,"isset-right-icon":"_isset-right-icon_192cn_54","isset-left-icon":"_isset-left-icon_192cn_57","start-icon":"_start-icon_192cn_66","end-icon":"_end-icon_192cn_70","label-error":"_label-error_192cn_77","container-medium":"_container-medium_192cn_82","container-small":"_container-small_192cn_163"},C1=C.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,v={size:{large:Zt["container-large"],medium:Zt["container-medium"],small:Zt["container-small"]}},y=()=>typeof d=="function"||C.isValidElement(d),b=()=>typeof h=="function"||C.isValidElement(h);return E.jsxs("div",{className:`${Zt.container} ${(x=v.size)==null?void 0:x[g]} ${r??""}`,children:[E.jsxs("div",{className:Zt["container-input"],children:[E.jsx("input",{id:l??s,className:`${Zt.input} ${f?Zt.error:""}
|
45
|
+
*/var pS=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],zl=pS.join(","),n1=typeof Element>"u",Ia=n1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gl=!n1&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Zl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},bS=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},vS=function(t,n,r){if(Zl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(zl));return n&&Ia.call(t,zl)&&i.unshift(t),i=i.filter(r),i},yS=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Zl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=Ia.call(o,zl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Zl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},r1=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},i1=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||bS(t))&&!r1(t)?0:t.tabIndex},xS=function(t,n){var r=i1(t);return r<0&&n&&!r1(t)?0:r},CS=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},a1=function(t){return t.tagName==="INPUT"},wS=function(t){return a1(t)&&t.type==="hidden"},DS=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},SS=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ES=function(t){if(!t.name)return!0;var n=t.form||Gl(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=SS(i,t.form);return!a||a===t},_S=function(t){return a1(t)&&t.type==="radio"},IS=function(t){return _S(t)&&!ES(t)},$S=function(t){var n,r=t&&Gl(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=Gl(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},Xg=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},RS=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=Ia.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(Ia.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=Gl(t);if(l&&!l.shadowRoot&&i(l)===!0)return Xg(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if($S(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Xg(t);return!1},AS=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ia.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},FS=function(t,n){return!(n.disabled||Zl(n)||wS(n)||RS(n,t)||DS(n)||AS(n))},Fd=function(t,n){return!(IS(n)||i1(n)<0||!FS(t,n))},PS=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},TS=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=xS(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(CS).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},Mu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=yS([t],n.includeContainer,{filter:Fd.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:PS}):r=vS(t,n.includeContainer,Fd.bind(null,n)),TS(r)},kS=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ia.call(t,zl)===!1?!1:Fd(n,t)};function Yg(e,t,n){let{reference:r,floating:i}=e;const a=_a(t),o=Vf(t),s=Nf(o),l=$r(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Kn(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const MS=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Yg(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:v,fn:y}=s[m],{x:b,y:x,data:S,reset:w}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=b??c,d=x??d,f={...f,[v]:{...f[v],...S}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=Yg(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Lf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Na(t,e),g=t1(f),v=s[h?d==="floating"?"reference":"floating":d],y=Wl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},w=Wl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-w.top+g.top)/S.y,bottom:(w.bottom-y.bottom+g.bottom)/S.y,left:(y.left-w.left+g.left)/S.x,right:(w.right-y.right+g.right)/S.x}}const BS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Na(e,t)||{};if(u==null)return{};const d=t1(c),h={x:n,y:r},f=Vf(i),g=Nf(f),m=await o.getDimensions(u),v=f==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[f]-h[f]-a.floating[g],w=h[f]-a.reference[f],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let F=_?_[x]:0;(!F||!await(o.isElement==null?void 0:o.isElement(_)))&&(F=s.floating[x]||a.floating[g]);const p=S/2-w/2,D=F/2-m[g]/2-1,$=Ea(d[y],D),I=Ea(d[b],D),A=$,k=F-m[g]-I,R=F/2-m[g]/2+p,M=Ad(A,R,k),T=!l.arrow&&Kn(i)!=null&&R!==M&&a.reference[g]/2-(R<A?$:I)-m[g]/2<0,P=T?R<A?R-A:R-k:0;return{[f]:h[f]+P,data:{[f]:M,centerOffset:R-M-P,...T&&{alignmentOffset:P}},reset:T}}});function OS(e,t,n){return(e?[...n.filter(i=>Kn(i)===e),...n.filter(i=>Kn(i)!==e)]:n.filter(i=>$r(i)===i)).filter(i=>e?Kn(i)===e||(t?Hl(i)!==i:!1):!0)}const NS=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=Zg,autoAlignment:f=!0,...g}=Na(e,t),m=d!==void 0||h===Zg?OS(d||null,f,h):h,v=await Lf(t,g),y=((n=o.autoPlacement)==null?void 0:n.index)||0,b=m[y];if(b==null)return{};const x=e1(b,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==b)return{reset:{placement:m[0]}};const S=[v[$r(b)],v[x[0]],v[x[1]]],w=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:S}],_=m[y+1];if(_)return{data:{index:y+1,overflows:w},reset:{placement:_}};const F=w.map($=>{const I=Kn($.placement);return[$.placement,I&&c?$.overflows.slice(0,2).reduce((A,k)=>A+k,0):$.overflows[0],$.overflows]}).sort(($,I)=>$[1]-I[1]),D=((i=F.filter($=>$[2].slice(0,Kn($[0])?2:3).every(I=>I<=0))[0])==null?void 0:i[0])||F[0][0];return D!==s?{data:{index:y+1,overflows:w},reset:{placement:D}}:{}}}},VS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=Na(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=$r(i),b=_a(s),x=$r(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=h||(x||!m?[jl(s)]:fS(s)),_=g!=="none";!h&&_&&w.push(...gS(s,m,g,S));const F=[s,...w],p=await Lf(t,v),D=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&D.push(p[y]),d){const R=e1(i,o,S);D.push(p[R[0]],p[R[1]])}if($=[...$,{placement:i,overflows:D}],!D.every(R=>R<=0)){var I,A;const R=(((I=a.flip)==null?void 0:I.index)||0)+1,M=F[R];if(M)return{data:{index:R,overflows:$},reset:{placement:M}};let T=(A=$.filter(P=>P.overflows[0]<=0).sort((P,B)=>P.overflows[1]-B.overflows[1])[0])==null?void 0:A.placement;if(!T)switch(f){case"bestFit":{var k;const P=(k=$.filter(B=>{if(_){const O=_a(B.placement);return O===b||O==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(O=>O>0).reduce((O,L)=>O+L,0)]).sort((B,O)=>B[1]-O[1])[0])==null?void 0:k[0];P&&(T=P);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function LS(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$r(n),s=Kn(n),l=_a(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=Na(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const HS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await LS(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},jS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...l}=Na(e,t),u={x:n,y:r},c=await Lf(t,l),d=_a($r(i)),h=Qb(d);let f=u[h],g=u[d];if(a){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=f+c[v],x=f-c[y];f=Ad(b,f,x)}if(o){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=g+c[v],x=g-c[y];g=Ad(b,g,x)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function o1(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ct(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ll(n)!==a||Ll(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Hf(e){return at(e)?e:e.contextElement}function ma(e){const t=Hf(e);if(!Ct(t))return qr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=o1(t);let o=(a?Ll(n.width):n.width)/r,s=(a?Ll(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const WS=qr(0);function s1(e){const t=ln(e);return!Of()||!t.visualViewport?WS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ln(e)?!1:t}function ki(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Hf(e);let o=qr(1);t&&(r?at(r)&&(o=ma(r)):o=ma(e));const s=zS(a,n,r)?s1(a):qr(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=ln(a),f=r&&at(r)?ln(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const v=ma(m),y=m.getBoundingClientRect(),b=hn(m),x=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=x,u+=S,g=ln(m),m=g.frameElement}}return Wl({width:c,height:d,x:l,y:u})}function GS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Rr(r),s=t?Tu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=qr(1);const c=qr(0),d=Ct(r);if((d||!d&&!a)&&((ni(r)!=="body"||fs(o))&&(l=ku(r)),Ct(r))){const h=ki(r);u=ma(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function ZS(e){return Array.from(e.getClientRects())}function l1(e){return ki(Rr(e)).left+ku(e).scrollLeft}function XS(e){const t=Rr(e),n=ku(e),r=e.ownerDocument.body,i=$i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+l1(e);const s=-n.scrollTop;return hn(r).direction==="rtl"&&(o+=$i(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function YS(e,t){const n=ln(e),r=Rr(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=Of();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function US(e,t){const n=ki(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ct(e)?ma(e):qr(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Ug(e,t,n){let r;if(t==="viewport")r=YS(e,n);else if(t==="document")r=XS(Rr(e));else if(at(t))r=US(t,n);else{const i=s1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Wl(r)}function u1(e,t){const n=Ir(e);return n===t||!at(n)||Jr(n)?!1:hn(n).position==="fixed"||u1(n,t)}function JS(e,t){const n=t.get(e);if(n)return n;let r=Yr(e,[],!1).filter(s=>at(s)&&ni(s)!=="body"),i=null;const a=hn(e).position==="fixed";let o=a?Ir(e):e;for(;at(o)&&!Jr(o);){const s=hn(o),l=Bf(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||fs(o)&&!l&&u1(e,o))?r=r.filter(c=>c!==o):i=s,o=Ir(o)}return t.set(e,r),r}function qS(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Tu(t)?[]:JS(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Ug(t,c,i);return u.top=$i(d.top,u.top),u.right=Ea(d.right,u.right),u.bottom=Ea(d.bottom,u.bottom),u.left=$i(d.left,u.left),u},Ug(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KS(e){const{width:t,height:n}=o1(e);return{width:t,height:n}}function QS(e,t,n){const r=Ct(t),i=Rr(t),a=n==="fixed",o=ki(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=qr(0);if(r||!r&&!a)if((ni(t)!=="body"||fs(i))&&(s=ku(t)),r){const d=ki(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=l1(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function xc(e){return hn(e).position==="static"}function Jg(e,t){return!Ct(e)||hn(e).position==="fixed"?null:t?t(e):e.offsetParent}function c1(e,t){const n=ln(e);if(Tu(e))return n;if(!Ct(e)){let i=Ir(e);for(;i&&!Jr(i);){if(at(i)&&!xc(i))return i;i=Ir(i)}return n}let r=Jg(e,t);for(;r&&K5(r)&&xc(r);)r=Jg(r,t);return r&&Jr(r)&&xc(r)&&!Bf(r)?n:r||Q5(e)||n}const eE=async function(e){const t=this.getOffsetParent||c1,n=this.getDimensions,r=await n(e.floating);return{reference:QS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tE(e){return hn(e).direction==="rtl"}const nE={convertOffsetParentRelativeRectToViewportRelativeRect:GS,getDocumentElement:Rr,getClippingRect:qS,getOffsetParent:c1,getElementRects:eE,getClientRects:ZS,getDimensions:KS,getScale:ma,isElement:at,isRTL:tE};function rE(e,t){let n=null,r;const i=Rr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ks(c),g=ks(i.clientWidth-(u+d)),m=ks(i.clientHeight-(c+h)),v=ks(u),b={rootMargin:-f+"px "+-g+"px "+-m+"px "+-v+"px",threshold:$i(0,Ea(1,l))||1};let x=!0;function S(w){const _=w[0].intersectionRatio;if(_!==l){if(!x)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return o(!0),a}function d1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Hf(e),c=i||a?[...u?Yr(u):[],...Yr(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=u&&s?rE(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?ki(e):null;l&&v();function v(){const y=ki(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,g=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(b=>{i&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const iE=HS,aE=NS,oE=jS,sE=VS,qg=BS,lE=(e,t,n)=>{const r=new Map,i={platform:nE,...n},a={...i.platform,_c:r};return MS(e,t,{...i,platform:a})};var vl=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Xl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function f1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kg(e,t){const n=f1(e);return Math.round(t*n)/n}function Qg(e){const t=W.useRef(e);return vl(()=>{t.current=e}),t}function uE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=W.useState(r);Xl(h,r)||f(r);const[g,m]=W.useState(null),[v,y]=W.useState(null),b=W.useCallback(P=>{P!==_.current&&(_.current=P,m(P))},[]),x=W.useCallback(P=>{P!==F.current&&(F.current=P,y(P))},[]),S=a||g,w=o||v,_=W.useRef(null),F=W.useRef(null),p=W.useRef(c),D=l!=null,$=Qg(l),I=Qg(i),A=W.useCallback(()=>{if(!_.current||!F.current)return;const P={placement:t,strategy:n,middleware:h};I.current&&(P.platform=I.current),lE(_.current,F.current,P).then(B=>{const O={...B,isPositioned:!0};k.current&&!Xl(p.current,O)&&(p.current=O,$b.flushSync(()=>{d(O)}))})},[h,t,n,I]);vl(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const k=W.useRef(!1);vl(()=>(k.current=!0,()=>{k.current=!1}),[]),vl(()=>{if(S&&(_.current=S),w&&(F.current=w),S&&w){if($.current)return $.current(S,w,A);A()}},[S,w,A,$,D]);const R=W.useMemo(()=>({reference:_,floating:F,setReference:b,setFloating:x}),[b,x]),M=W.useMemo(()=>({reference:S,floating:w}),[S,w]),T=W.useMemo(()=>{const P={position:n,left:0,top:0};if(!M.floating)return P;const B=Kg(M.floating,c.x),O=Kg(M.floating,c.y);return s?{...P,transform:"translate("+B+"px, "+O+"px)",...f1(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:O}},[n,s,M.floating,c.x,c.y]);return W.useMemo(()=>({...c,update:A,refs:R,elements:M,floatingStyles:T}),[c,A,R,M,T])}const cE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qg({element:r.current,padding:i}).fn(n):{}:r?qg({element:r,padding:i}).fn(n):{}}}},dE=(e,t)=>({...iE(e),options:[e,t]}),fE=(e,t)=>({...oE(e),options:[e,t]}),hE=(e,t)=>({...sE(e),options:[e,t]}),gE=(e,t)=>({...aE(e),options:[e,t]}),mE=(e,t)=>({...cE(e),options:[e,t]}),h1={...W},pE=h1.useInsertionEffect,bE=pE||(e=>e());function Hr(e){const t=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return bE(()=>{t.current=e}),W.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)},[])}let em=0;function li(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(em);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():em=requestAnimationFrame(a)}var Lt=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Ao(){return Ao=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},Ao.apply(this,arguments)}let tm=!1,vE=0;const nm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vE++;function yE(){const[e,t]=W.useState(()=>tm?nm():void 0);return Lt(()=>{e==null&&t(nm())},[]),W.useEffect(()=>{tm=!0},[]),e}const xE=h1.useId,Bu=xE||yE;let Fo;process.env.NODE_ENV!=="production"&&(Fo=new Set);function CE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Fo)!=null&&e.has(i))){var a;(a=Fo)==null||a.add(i),console.warn(i)}}function wE(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Fo)!=null&&e.has(i))){var a;(a=Fo)==null||a.add(i),console.error(i)}}const DE=W.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a}},width:o=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:h,style:{transform:f,...g}={},...m}=t;process.env.NODE_ENV!=="production"&&(n||CE("The `ref` prop is required for `FloatingArrow`."));const v=Bu(),[y,b]=W.useState(!1);if(Lt(()=>{if(!i)return;hn(i).direction==="rtl"&&b(!0)},[i]),!i)return null;const x=u*2,S=x/2,w=o/2*(l/-8+1),_=s/2*l/4,[F,p]=r.split("-"),D=!!h,$=F==="top"||F==="bottom",I=c&&p==="end"?"bottom":"top";let A=c&&p==="end"?"right":"left";c&&y&&(A=p==="end"?"left":"right");const k=(a==null?void 0:a.x)!=null?c||a.x:"",R=(a==null?void 0:a.y)!=null?c||a.y:"",M=h||"M0,0"+(" H"+o)+(" L"+(o-w)+","+(s-_))+(" Q"+o/2+","+s+" "+w+","+(s-_))+" Z",T={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[F];return W.createElement("svg",Ao({},m,{"aria-hidden":!0,ref:n,width:D?o:o+x,height:o,viewBox:"0 0 "+o+" "+(s>o?s:o),style:{position:"absolute",pointerEvents:"none",[A]:k,[I]:R,[F]:$||D?"100%":"calc(100% - "+x/2+"px)",transform:""+T+(f??""),...g}}),x>0&&W.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:d,strokeWidth:x+(h?0:1),d:M}),W.createElement("path",{stroke:x&&!h?m.fill:"none",d:M}),W.createElement("clipPath",{id:v},W.createElement("rect",{x:-S,y:S*(D?-1:1),width:o+x,height:o})))});function SE(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const EE=W.createContext(null),_E=W.createContext(null),g1=()=>{var e;return((e=W.useContext(EE))==null?void 0:e.id)||null},jf=()=>W.useContext(_E);function Po(e){return"data-floating-ui-"+e}function wi(e){const t=C.useRef(e);return Lt(()=>{t.current=e}),t}function IE(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function po(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Qi=new WeakMap,Ms=new WeakSet,Bs={},Cc=0;const $E=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,m1=e=>e&&(e.host||m1(e.parentNode)),RE=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=m1(n);return e.contains(r)?r:null}).filter(n=>n!=null);function AE(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=RE(t,e),s=new Set,l=new Set(o),u=[];Bs[i]||(Bs[i]=new WeakMap);const c=Bs[i];o.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(ni(g)!=="script")if(s.has(g))h(g);else{const m=a?g.getAttribute(a):null,v=m!==null&&m!=="false",y=(Qi.get(g)||0)+1,b=(c.get(g)||0)+1;Qi.set(g,y),c.set(g,b),u.push(g),y===1&&v&&Ms.add(g),b===1&&g.setAttribute(i,""),!v&&a&&g.setAttribute(a,"true")}})}return Cc++,()=>{u.forEach(f=>{const g=(Qi.get(f)||0)-1,m=(c.get(f)||0)-1;Qi.set(f,g),c.set(f,m),g||(!Ms.has(f)&&a&&f.removeAttribute(a),Ms.delete(f)),m||f.removeAttribute(i)}),Cc--,Cc||(Qi=new WeakMap,Qi=new WeakMap,Ms=new WeakSet,Bs={})}}function rm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=$n(e[0]).body;return AE(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const To=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function p1(e,t){const n=Mu(e,To());t==="prev"&&n.reverse();const r=n.indexOf(gi($n(e)));return n.slice(r+1)[0]}function b1(){return p1(document.body,"next")}function v1(){return p1(document.body,"prev")}function bo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!an(n,r)}function FE(e){Mu(e,To()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function PE(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Wf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let TE;function im(e){e.key==="Tab"&&(e.target,clearTimeout(TE))}const Yl=W.forwardRef(function(t,n){const[r,i]=W.useState();Lt(()=>(rS()&&i("button"),document.addEventListener("keydown",im),()=>{document.removeEventListener("keydown",im)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Po("focus-guard")]:"",style:Wf};return W.createElement("span",Ao({},t,a))}),y1=W.createContext(null),am=Po("portal");function kE(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Bu(),i=x1(),[a,o]=W.useState(null),s=W.useRef(null);return Lt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Lt(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(am,""),l.appendChild(u),s.current=u,o(u)},[t,r]),Lt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!at(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(am,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function ME(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=kE({id:n,root:r}),[o,s]=W.useState(null),l=W.useRef(null),u=W.useRef(null),c=W.useRef(null),d=W.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return W.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&bo(g)&&(g.type==="focusin"?PE:FE)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),W.createElement(y1.Provider,{value:W.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&W.createElement(Yl,{"data-type":"outside",ref:l,onFocus:f=>{if(bo(f,a)){var g;(g=c.current)==null||g.focus()}else{const m=v1()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),h&&a&&W.createElement("span",{"aria-owns":a.id,style:Wf}),a&&$b.createPortal(t,a),h&&a&&W.createElement(Yl,{"data-type":"outside",ref:u,onFocus:f=>{if(bo(f,a)){var g;(g=d.current)==null||g.focus()}else{const m=b1()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const x1=()=>W.useContext(y1),BE=20;let mi=[];function wc(e){mi=mi.filter(n=>n.isConnected);let t=e;if(!(!t||ni(t)==="body")){if(!kS(t,To())){const n=Mu(t,To())[0];n&&(t=n)}mi.push(t),mi.length>BE&&(mi=mi.slice(-20))}}function om(){return mi.slice().reverse().find(e=>e.isConnected)}const OE=W.forwardRef(function(t,n){return W.createElement("button",Ao({},t,{type:"button",ref:n,tabIndex:-1,style:Wf}))});function NE(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:S}}=t,w=typeof o=="number"&&o<0,_=lS(x)&&w,F=$E()?a:!0,p=wi(i),D=wi(o),$=wi(s),I=jf(),A=x1(),k=W.useRef(null),R=W.useRef(null),M=W.useRef(!1),T=W.useRef(!1),P=W.useRef(-1),B=A!=null,O=S==null?void 0:S.firstElementChild,L=(O==null?void 0:O.id)===b?O:S,H=Hr(function(j){return j===void 0&&(j=L),j?Mu(j,To()):[]}),z=Hr(j=>{const V=H(j);return p.current.map(Z=>x&&Z==="reference"?x:L&&Z==="floating"?L:V).filter(Boolean).flat()});W.useEffect(()=>{if(r||!u)return;function j(Z){if(Z.key==="Tab"){an(L,gi($n(L)))&&H().length===0&&!_&&yc(Z);const q=z(),te=yi(Z);p.current[0]==="reference"&&te===x&&(yc(Z),Z.shiftKey?li(q[q.length-1]):li(q[1])),p.current[1]==="floating"&&te===L&&Z.shiftKey&&(yc(Z),li(q[0]))}}const V=$n(L);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,x,L,u,p,_,H,z]),W.useEffect(()=>{if(r||!S)return;function j(V){const Z=yi(V),te=H().indexOf(Z);te!==-1&&(P.current=te)}return S.addEventListener("focusin",j),()=>{S.removeEventListener("focusin",j)}},[r,S,H]),W.useEffect(()=>{if(r||!d)return;function j(){T.current=!0,setTimeout(()=>{T.current=!1})}function V(Z){const q=Z.relatedTarget;queueMicrotask(()=>{const te=!(an(x,q)||an(S,q)||an(q,S)||an(A==null?void 0:A.portalNode,q)||q!=null&&q.hasAttribute(Po("focus-guard"))||I&&(po(I.nodesRef.current,g).find(ue=>{var ie,Y;return an((ie=ue.context)==null?void 0:ie.elements.floating,q)||an((Y=ue.context)==null?void 0:Y.elements.domReference,q)})||IE(I.nodesRef.current,g).find(ue=>{var ie,Y;return((ie=ue.context)==null?void 0:ie.elements.floating)===q||((Y=ue.context)==null?void 0:Y.elements.domReference)===q})));if(l&&te&&gi($n(L))===$n(L).body){Ct(L)&&(L==null||L.focus());const ue=P.current,ie=H(),Y=ie[ue]||ie[ie.length-1]||L;Ct(Y)&&Y.focus()}(_||!u)&&q&&te&&!T.current&&q!==om()&&(M.current=!0,m(!1,Z))})}if(S&&Ct(x))return x.addEventListener("focusout",V),x.addEventListener("pointerdown",j),S.addEventListener("focusout",V),()=>{x.removeEventListener("focusout",V),x.removeEventListener("pointerdown",j),S.removeEventListener("focusout",V)}},[r,x,S,L,u,g,I,A,m,d,l,H,_]),W.useEffect(()=>{var j;if(r)return;const V=Array.from((A==null||(j=A.portalNode)==null?void 0:j.querySelectorAll("["+Po("portal")+"]"))||[]);if(S){const Z=[S,...V,k.current,R.current,p.current.includes("reference")||_?x:null].filter(te=>te!=null),q=u||_?rm(Z,F,!F):rm(Z);return()=>{q()}}},[r,x,S,u,p,A,_,F]),Lt(()=>{if(r||!Ct(L))return;const j=$n(L),V=gi(j);queueMicrotask(()=>{const Z=z(L),q=D.current,te=(typeof q=="number"?Z[q]:q.current)||L,ue=an(L,V);!w&&!ue&&h&&li(te,{preventScroll:te===L})})},[r,h,L,w,z,D]),Lt(()=>{if(r||!L)return;let j=!1;const V=$n(L),Z=gi(V);let te=y.current.openEvent;wc(Z);function ue(ie){let{open:Y,reason:me,event:he,nested:ce}=ie;Y&&(te=he),me==="escape-key"&&f.domReference.current&&wc(f.domReference.current),me==="hover"&&he.type==="mouseleave"&&(M.current=!0),me==="outside-press"&&(ce?(M.current=!1,j=!0):M.current=!(tS(he)||nS(he)))}return v.on("openchange",ue),()=>{v.off("openchange",ue);const ie=gi(V),Y=an(S,ie)||I&&po(I.nodesRef.current,g).some(ce=>{var Qe;return an((Qe=ce.context)==null?void 0:Qe.elements.floating,ie)});(Y||te&&["click","mousedown"].includes(te.type))&&f.domReference.current&&wc(f.domReference.current);const he=om();$.current&&!M.current&&Ct(he)&&(!(he!==ie&&ie!==V.body)||Y)&&li(he,{cancelPrevious:!1,preventScroll:j})}},[r,S,L,$,y,f,v,I,g]),Lt(()=>{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{A.setFocusManagerState(null)}},[r,A,u,h,m,f,d]),Lt(()=>{if(r||!L||typeof MutationObserver!="function"||w)return;const j=()=>{const Z=L.getAttribute("tabindex"),q=H(),te=gi($n(S)),ue=q.indexOf(te);ue!==-1&&(P.current=ue),p.current.includes("floating")||te!==f.domReference.current&&q.length===0?Z!=="0"&&L.setAttribute("tabindex","0"):Z!=="-1"&&L.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,S,L,f,p,H,w]);function X(j){return r||!c||!u?null:W.createElement(OE,{ref:j==="start"?k:R,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const G=!r&&F&&(u?!_:!0)&&(B||u);return W.createElement(W.Fragment,null,G&&W.createElement(Yl,{"data-type":"inside",ref:A==null?void 0:A.beforeInsideRef,onFocus:j=>{if(u){const Z=z();li(i[0]==="reference"?Z[0]:Z[Z.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(M.current=!1,bo(j,A.portalNode)){const Z=b1()||x;Z==null||Z.focus()}else{var V;(V=A.beforeOutsideRef.current)==null||V.focus()}}}),!_&&X("start"),n,X("end"),G&&W.createElement(Yl,{"data-type":"inside",ref:A==null?void 0:A.afterInsideRef,onFocus:j=>{if(u)li(z()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(d&&(M.current=!0),bo(j,A.portalNode)){const Z=v1()||x;Z==null||Z.focus()}else{var V;(V=A.afterOutsideRef.current)==null||V.focus()}}}))}function sm(e){return Ct(e.target)&&e.target.tagName==="BUTTON"}function lm(e){return Kb(e)}function VE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=W.useRef(),h=W.useRef(!1),f=W.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(zg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}zg(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||sm(g))&&(g.key===" "&&!lm(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||sm(g)||lm(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return W.useMemo(()=>o?{reference:f}:{},[o,f])}const LE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HE={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},um=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function jE(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=jf(),v=Hr(typeof l=="function"?l:()=>!1),y=typeof l=="function"?v:l,b=W.useRef(!1),x=W.useRef(!1),{escapeKey:S,outsidePress:w}=um(f),{escapeKey:_,outsidePress:F}=um(g),p=Hr(R=>{var M;if(!n||!o||!s||R.key!=="Escape")return;const T=(M=a.current.floatingContext)==null?void 0:M.nodeId,P=m?po(m.nodesRef.current,T):[];if(!S&&(R.stopPropagation(),P.length>0)){let B=!0;if(P.forEach(O=>{var L;if((L=O.context)!=null&&L.open&&!O.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,aS(R)?R.nativeEvent:R,"escape-key")}),D=Hr(R=>{var M;const T=()=>{var P;p(R),(P=yi(R))==null||P.removeEventListener("keydown",T)};(M=yi(R))==null||M.addEventListener("keydown",T)}),$=Hr(R=>{var M;const T=b.current;b.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||T||typeof y=="function"&&!y(R))return;const B=yi(R),O="["+Po("inert")+"]",L=$n(i.floating).querySelectorAll(O);let H=at(B)?B:null;for(;H&&!Jr(H);){const j=Ir(H);if(Jr(j)||!at(j))break;H=j}if(L.length&&at(B)&&!oS(B)&&!an(B,i.floating)&&Array.from(L).every(j=>!an(H,j)))return;if(Ct(B)&&k){const j=B.clientWidth>0&&B.scrollWidth>B.clientWidth,V=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let Z=V&&R.offsetX>B.clientWidth;if(V&&hn(B).direction==="rtl"&&(Z=R.offsetX<=B.offsetWidth-B.clientWidth),Z||j&&R.offsetY>B.clientHeight)return}const z=(M=a.current.floatingContext)==null?void 0:M.nodeId,X=m&&po(m.nodesRef.current,z).some(j=>{var V;return vc(R,(V=j.context)==null?void 0:V.elements.floating)});if(vc(R,i.floating)||vc(R,i.domReference)||X)return;const G=m?po(m.nodesRef.current,z):[];if(G.length>0){let j=!0;if(G.forEach(V=>{var Z;if((Z=V.context)!=null&&Z.open&&!V.context.dataRef.current.__outsidePressBubbles){j=!1;return}}),!j)return}r(!1,R,"outside-press")}),I=Hr(R=>{var M;const T=()=>{var P;$(R),(P=yi(R))==null||P.removeEventListener(u,T)};(M=yi(R))==null||M.addEventListener(u,T)});W.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=S,a.current.__outsidePressBubbles=w;function R(P){r(!1,P,"ancestor-scroll")}const M=$n(i.floating);s&&M.addEventListener("keydown",_?D:p,_),y&&M.addEventListener(u,F?I:$,F);let T=[];return h&&(at(i.domReference)&&(T=Yr(i.domReference)),at(i.floating)&&(T=T.concat(Yr(i.floating))),!at(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(Yr(i.reference.contextElement)))),T=T.filter(P=>{var B;return P!==((B=M.defaultView)==null?void 0:B.visualViewport)}),T.forEach(P=>{P.addEventListener("scroll",R,{passive:!0})}),()=>{s&&M.removeEventListener("keydown",_?D:p,_),y&&M.removeEventListener(u,F?I:$,F),T.forEach(P=>{P.removeEventListener("scroll",R)})}},[a,i,s,y,u,n,r,h,o,S,w,p,_,D,$,F,I]),W.useEffect(()=>{b.current=!1},[y,u]);const A=W.useMemo(()=>({onKeyDown:p,[LE[d]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[p,r,c,d]),k=W.useMemo(()=>({onKeyDown:p,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[HE[u]]:()=>{b.current=!0}}),[p,u]);return W.useMemo(()=>o?{reference:A,floating:k}:{},[o,A,k])}function WE(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Bu(),a=W.useRef({}),[o]=W.useState(()=>SE()),s=g1()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!at(f)&&wE("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=W.useState(r.reference),c=Hr((f,g,m)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=W.useMemo(()=>({setPositionReference:u}),[]),h=W.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return W.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function zE(e){e===void 0&&(e={});const{nodeId:t}=e,n=WE({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=W.useState(null),[s,l]=W.useState(null),c=(i==null?void 0:i.reference)||a,d=W.useRef(null),h=jf();Lt(()=>{c&&(d.current=c)},[c]);const f=uE({...e,elements:{...i,...s&&{reference:s}}}),g=W.useCallback(x=>{const S=at(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(S),f.refs.setReference(S)},[f.refs]),m=W.useCallback(x=>{(at(x)||x===null)&&(d.current=x,o(x)),(at(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!at(x))&&f.refs.setReference(x)},[f.refs]),v=W.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),y=W.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=W.useMemo(()=>({...f,...r,refs:v,elements:y,nodeId:t}),[f,v,y,t,r]);return Lt(()=>{r.dataRef.current.floatingContext=b;const x=h==null?void 0:h.nodesRef.current.find(S=>S.id===t);x&&(x.context=b)}),W.useMemo(()=>({...f,context:b,refs:v,elements:y}),[f,v,y,b])}const cm="active",dm="selected";function Dc(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[cm]:o,[dm]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[cm,dm].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(v=>v(...g)).find(v=>v!==void 0)}}}else o[u]=c}),o),{})}}function GE(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=W.useCallback(s=>Dc(s,e,"reference"),t),a=W.useCallback(s=>Dc(s,e,"floating"),n),o=W.useCallback(s=>Dc(s,e,"item"),r);return W.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const ZE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function XE(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=ZE.get(o))!=null?n:o,l=Bu(),c=g1()!=null,d=W.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=W.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=W.useCallback(g=>{let{active:m,selected:v}=g;const y={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...y,"aria-selected":m&&v};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,o]);return W.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const fm=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ea(e,t){return typeof e=="function"?e(t):e}function YE(e,t){const[n,r]=W.useState(e);return e&&!n&&r(!0),W.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function UE(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=W.useState("unmounted"),u=YE(n,o);return!u&&s==="close"&&l("unmounted"),Lt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function JE(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=W.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=W.useState(()=>({...ea(a,u),...ea(n,u)})),{isMounted:m,status:v}=UE(e,{duration:o}),y=wi(n),b=wi(r),x=wi(i),S=wi(a);return Lt(()=>{const w=ea(y.current,u),_=ea(x.current,u),F=ea(S.current,u),p=ea(b.current,u)||Object.keys(w).reduce((D,$)=>(D[$]="",D),{});if(v==="initial"&&g(D=>({transitionProperty:D.transitionProperty,...F,...w})),v==="open"&&g({transitionProperty:Object.keys(p).map(fm).join(","),transitionDuration:d+"ms",...F,...p}),v==="close"){const D=_||w;g({transitionProperty:Object.keys(D).map(fm).join(","),transitionDuration:h+"ms",...F,...D})}},[h,x,y,b,S,d,v,u]),{isMounted:m,styles:f}}const qE="_popover_7cinv_1",KE={popover:qE},Ar=C.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},onClose:g=()=>{},withArrow:m,propsArrow:v={},...y}=e,b=C.useRef(null),[x,S]=C.useState(!1),{refs:w,floatingStyles:_,context:F}=zE({open:x,onOpenChange:P=>{S(P),P||g()},middleware:[dE(i),s?gE(u):hE(l),fE(),mE({element:b})],whileElementsMounted:d1,...f}),p=VE(F),D=jE(F),$=XE(F),{getReferenceProps:I,getFloatingProps:A}=GE([p,D,$]),{styles:k,isMounted:R}=JE(F),M=P=>{w.setReference(P.currentTarget),S(B=>!B),x&&g()};C.useEffect(()=>{a&&o?M({currentTarget:o}):a||S(!1)},[a,o]),C.useImperativeHandle(t,()=>({show:x,setShow:S,handlerShow:M,getReferenceProps:I}),[x]);const T=()=>{let P={..._,...k,...h,zIndex:c};return d&&(P={...P,width:d}),P};return E.jsx(E.Fragment,{children:R&&x&&E.jsx(ME,{children:E.jsx(NE,{context:F,modal:!1,children:E.jsxs("div",{ref:w.setFloating,style:T(),...A(),className:`${KE.popover} ${r??""}`,...y,children:[n,m&&E.jsx(DE,{ref:b,context:F,...v})]})})})})});Ar.displayName="Popover";const QE="_input_192cn_7",e_="_label_192cn_36",t_="_error_192cn_43",Zt={"container-large":"_container-large_192cn_1","container-input":"_container-input_192cn_4",input:QE,label:e_,error:t_,"isset-right-icon":"_isset-right-icon_192cn_54","isset-left-icon":"_isset-left-icon_192cn_57","start-icon":"_start-icon_192cn_66","end-icon":"_end-icon_192cn_70","label-error":"_label-error_192cn_77","container-medium":"_container-medium_192cn_82","container-small":"_container-small_192cn_163"},C1=C.forwardRef((e,t)=>{var x;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,v={size:{large:Zt["container-large"],medium:Zt["container-medium"],small:Zt["container-small"]}},y=()=>typeof d=="function"||C.isValidElement(d),b=()=>typeof h=="function"||C.isValidElement(h);return E.jsxs("div",{className:`${Zt.container} ${(x=v.size)==null?void 0:x[g]} ${r??""}`,children:[E.jsxs("div",{className:Zt["container-input"],children:[E.jsx("input",{id:l??s,className:`${Zt.input} ${f?Zt.error:""}
|
46
46
|
${y()?Zt["isset-left-icon"]:""}
|
47
47
|
${b()?Zt["isset-right-icon"]:""}
|
48
48
|
${o??""}`,ref:t,type:c,...m}),E.jsxs("div",{className:Zt["start-icon"],children:[typeof d=="function"&&d(),C.isValidElement(d)&&d]}),E.jsxs("label",{className:`${Zt.label} ${a??""}`,htmlFor:l??s,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsxs("div",{className:Zt["end-icon"],children:[typeof h=="function"&&h(),C.isValidElement(h)&&h]})]}),f&&E.jsx("label",{className:`${Zt["label-error"]}
|
@@ -62,7 +62,7 @@ React keys must be passed directly to JSX without using spread:
|
|
62
62
|
*/function o_(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function xr(e,t){return typeof e=="function"?e(t):e}function s_(){}function Kt(e,t){return n=>{t.setState(r=>({...r,[e]:xr(n,r[e])}))}}function hs(e){return e instanceof Function}function w1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Gf(e,t){const n=[],r=i=>{i.forEach(a=>{n.push(a);const o=t(a);o!=null&&o.length&&r(o)})};return r(e),n}function oe(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());const s=e(a);if(!(s.length!==r.length||s.some((c,d)=>r[d]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-o)*100)/100,d=Math.round((Date.now()-u)*100)/100,h=d/16,f=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};console.info(`%c⏱ ${f(d,5)} /${f(c,5)} ms`,`
|
63
63
|
font-size: .6rem;
|
64
64
|
font-weight: bold;
|
65
|
-
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function se(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function D1(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),se(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function S1(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:oe(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},se(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},se(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const Et="debugHeaders";function hm(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const E1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return ro(t,[...s,...u,...l],e)},se(e.options,Et,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),ro(t,n,e,"center")),se(e.options,Et,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ro(t,a,e,"left")},se(e.options,Et,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ro(t,a,e,"right")},se(e.options,Et,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},se(e.options,Et,"getLeafHeaders"))}};function ro(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(v=>{const y=[...m].reverse()[0],b=v.column.depth===g.depth;let x,S=!1;if(b&&v.column.parent?x=v.column.parent:(x=v.column,S=!0),y&&(y==null?void 0:y.column)===x)y.subHeaders.push(v);else{const w=hm(n,x,{id:[r,f,x.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(I=>I.column===x).length}`:void 0,depth:f,index:m.length});w.subHeaders.push(v),m.push(w)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>hm(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,v=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],d(g.subHeaders).forEach(x=>{let{colSpan:S,rowSpan:w}=x;m+=S,y.push(w)})):m=1;const b=Math.min(...y);return v=v+b,g.colSpan=m,g.rowSpan=v,{colSpan:m,rowSpan:v}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const gs=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Gf(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:oe(()=>[e.getAllLeafColumns()],l=>l.map(u=>D1(e,s,u,u.id)),se(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),se(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},_1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},I1=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};I1.autoRemove=e=>Pn(e);const $1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};$1.autoRemove=e=>Pn(e);const R1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};R1.autoRemove=e=>Pn(e);const A1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};A1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const F1=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});F1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const P1=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});P1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const T1=(e,t,n)=>e.getValue(t)===n;T1.autoRemove=e=>Pn(e);const k1=(e,t,n)=>e.getValue(t)==n;k1.autoRemove=e=>Pn(e);const Zf=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};Zf.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};Zf.autoRemove=e=>Pn(e)||Pn(e[0])&&Pn(e[1]);const Zn={includesString:I1,includesStringSensitive:$1,equalsString:R1,arrIncludes:A1,arrIncludesAll:F1,arrIncludesSome:P1,equals:T1,weakEquals:k1,inNumberRange:Zf};function Pn(e){return e==null||e===""}const M1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Kt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Zn.includesString:typeof r=="number"?Zn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Zn.equals:Array.isArray(r)?Zn.arrIncludes:Zn.weakEquals},e.getFilterFn=()=>{var n,r;return hs(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Zn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(c=>c.id===e.id),o=xr(n,a?a.value:void 0);if(Pd(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=xr(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Pd(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Pd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const l_=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),u_=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},c_=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},d_=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},f_=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},h_=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!w1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},g_=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),m_=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,p_=(e,t)=>t.length,yl={sum:l_,min:u_,max:c_,extent:d_,mean:f_,median:h_,unique:g_,uniqueCount:m_,count:p_},B1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Kt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return yl.sum;if(Object.prototype.toString.call(r)==="[object Date]")return yl.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return hs(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:yl[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function O1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const N1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Kt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[pa(t,n)],n=>n.findIndex(r=>r.id===e.id),se(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=pa(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=pa(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=oe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return O1(a,n,r)},se(e.options,"debugTable","_getOrderColumnsFn"))}},Sc=()=>({left:[],right:[]}),V1={getInitialState:e=>({columnPinning:Sc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Kt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},se(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),se(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),se(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Sc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Sc())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),se(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),se(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},se(e.options,"debugColumns","getCenterLeafColumns"))}},io={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Ec=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),L1={getDefaultColumnDef:()=>io,getInitialState:e=>({columnSizing:{},columnSizingInfo:Ec(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Kt("columnSizing",e),onColumnSizingInfoChange:Kt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:io.minSize,(r=a??e.columnDef.size)!=null?r:io.size),(i=e.columnDef.maxSize)!=null?i:io.maxSize)},e.getStart=oe(n=>[n,pa(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,pa(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),_c(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=_c(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(x=>{var S,w;const I=t.options.columnResizeDirection==="rtl"?-1:1,F=(b-((S=x==null?void 0:x.startOffset)!=null?S:0))*I,p=Math.max(F/((w=x==null?void 0:x.startSize)!=null?w:0),-.999999);return x.columnSizingStart.forEach(D=>{let[$,_]=D;u[$]=Math.round(Math.max(_+_*p,0)*100)/100}),{...x,deltaOffset:F,deltaPercentage:p}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:y=>d(y.clientX),upHandler:y=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),d(y.touches[0].clientX),!1),upHandler:y=>{var b;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((b=y.touches[0])==null?void 0:b.clientX)}},v=H1()?{passive:!1}:!1;_c(a)?(f==null||f.addEventListener("touchmove",m.moveHandler,v),f==null||f.addEventListener("touchend",m.upHandler,v)):(f==null||f.addEventListener("mousemove",g.moveHandler,v),f==null||f.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Ec():(n=e.initialState.columnSizingInfo)!=null?n:Ec())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let Os=null;function H1(){if(typeof Os=="boolean")return Os;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Os=e,Os}function _c(e){return e.type==="touchstart"}const j1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Kt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=oe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),se(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],se(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>oe(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),se(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function pa(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const W1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},z1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Kt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Zn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return hs(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Zn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},G1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Kt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");r=Math.max(r,o.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Td=0,kd=10,Ic=()=>({pageIndex:Td,pageSize:kd}),Z1={getInitialState:e=>({...e,pagination:{...Ic(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Kt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>xr(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Ic():(i=e.initialState.pagination)!=null?i:Ic())},e.setPageIndex=r=>{e.setPagination(i=>{let a=xr(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?Td:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:Td)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?kd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:kd)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,xr(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=xr(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},se(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},$c=()=>({top:[],bottom:[]}),X1={getInitialState:e=>({rowPinning:$c(),...e}),getDefaultOptions:e=>({onRowPinningChange:Kt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?$c():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:$c())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),se(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),se(e.options,"debugRows","getBottomRows")),e.getCenterRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},se(e.options,"debugRows","getCenterRows"))}},Y1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Kt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{Md(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return Md(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ou(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ul(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ul(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Md=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>Md(e,s.id,n,r,i))};function xl(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=Ou(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Ou(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ul(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(Ou(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Ul(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Jl=/([0-9]+)/gm,b_=(e,t,n)=>U1(Kr(e.getValue(n)).toLowerCase(),Kr(t.getValue(n)).toLowerCase()),v_=(e,t,n)=>U1(Kr(e.getValue(n)),Kr(t.getValue(n))),y_=(e,t,n)=>Xf(Kr(e.getValue(n)).toLowerCase(),Kr(t.getValue(n)).toLowerCase()),x_=(e,t,n)=>Xf(Kr(e.getValue(n)),Kr(t.getValue(n))),C_=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},w_=(e,t,n)=>Xf(e.getValue(n),t.getValue(n));function Xf(e,t){return e===t?0:e>t?1:-1}function Kr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function U1(e,t){const n=e.split(Jl).filter(Boolean),r=t.split(Jl).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const ca={alphanumeric:b_,alphanumericCaseSensitive:v_,text:y_,textCaseSensitive:x_,datetime:C_,basic:w_},J1={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Kt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return ca.datetime;if(typeof a=="string"&&(r=!0,a.split(Jl).length>1))return ca.alphanumeric}return r?ca.text:ca.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return hs(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ca[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},D_=[E1,j1,N1,V1,_1,M1,W1,z1,J1,B1,G1,Z1,X1,Y1,L1];function q1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...D_,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=xr(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:oe(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,v;return(m=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},se(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(y=>{const b=S1(i,y,v,m),x=y;return b.columns=x.columns?f(x.columns,b,v+1):[],b})};return f(h)},se(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),se(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),se(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},se(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function S_(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=gs(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,a+1,c))}}return s};return n.rows=r(t),n},se(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function E_(){return e=>oe(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Yf(n),se(e.options,"debugTable","getExpandedRowModel"))}function Yf(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function __(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},se(e.options,"debugTable","getFacetedMinMaxValues"))}function K1(e,t,n){return n.options.filterFromLeafRows?I_(e,t,n):$_(e,t,n)}function I_(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=gs(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function $_(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<o){const m=gs(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function R_(){return(e,t)=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return K1(n.rows,o,e)},se(e.options,"debugTable","getFacetedRowModel"))}function A_(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},se(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function F_(){return e=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,v=>{f.columnFiltersMeta[m]=v})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,v=>{f.columnFiltersMeta[m]=v})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return K1(t.rows,d,e)},se(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function P_(){return e=>oe(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=T_(l,d);return Array.from(h.entries()).map((g,m)=>{let[v,y]=g,b=`${d}:${v}`;b=c?`${c}>${b}`:b;const x=o(y,u+1,b),S=u?Gf(y,I=>I.subRows):y,w=gs(e,b,S[0].original,m,u,void 0,c);return Object.assign(w,{groupingColumnId:d,groupingValue:v,subRows:x,leafRows:S,getValue:I=>{if(r.includes(I)){if(w._valuesCache.hasOwnProperty(I))return w._valuesCache[I];if(y[0]){var F;w._valuesCache[I]=(F=y[0].getValue(I))!=null?F:void 0}return w._valuesCache[I]}if(w._groupingValuesCache.hasOwnProperty(I))return w._groupingValuesCache[I];const p=e.getColumn(I),D=p==null?void 0:p.getAggregationFn();if(D)return w._groupingValuesCache[I]=D(I,S,y),w._groupingValuesCache[I]}}),x.forEach(I=>{i.push(I),a[I.id]=I}),w})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},se(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function T_(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function k_(e){return t=>oe(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Yf({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},se(t.options,"debugTable","getPaginationRowModel"))}function M_(){return e=>oe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<a.length;f+=1){var h;const g=a[f],m=o[g.id],v=m.sortUndefined,y=(h=g==null?void 0:g.desc)!=null?h:!1;let b=0;if(v){const x=c.getValue(g.id),S=d.getValue(g.id),w=x===void 0,I=S===void 0;if(w||I){if(v==="first")return w?-1:1;if(v==="last")return w?1:-1;b=w&&I?0:w?v:-v}}if(b===0&&(b=m.sortingFn(c,d,g.id)),b!==0)return y&&(b*=-1),m.invertSorting&&(b*=-1),b}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},se(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
65
|
+
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function se(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function D1(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:oe(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),se(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function S1(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:oe(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},se(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:oe(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},se(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const Et="debugHeaders";function hm(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const E1={createTable:e=>{e.getHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return ro(t,[...s,...u,...l],e)},se(e.options,Et,"getHeaderGroups")),e.getCenterHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),ro(t,n,e,"center")),se(e.options,Et,"getCenterHeaderGroups")),e.getLeftHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ro(t,a,e,"left")},se(e.options,Et,"getLeftHeaderGroups")),e.getRightHeaderGroups=oe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ro(t,a,e,"right")},se(e.options,Et,"getRightHeaderGroups")),e.getFooterGroups=oe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getFooterGroups")),e.getLeftFooterGroups=oe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getLeftFooterGroups")),e.getCenterFooterGroups=oe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getCenterFooterGroups")),e.getRightFooterGroups=oe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),se(e.options,Et,"getRightFooterGroups")),e.getFlatHeaders=oe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getFlatHeaders")),e.getLeftFlatHeaders=oe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getLeftFlatHeaders")),e.getCenterFlatHeaders=oe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getCenterFlatHeaders")),e.getRightFlatHeaders=oe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),se(e.options,Et,"getRightFlatHeaders")),e.getCenterLeafHeaders=oe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getCenterLeafHeaders")),e.getLeftLeafHeaders=oe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getLeftLeafHeaders")),e.getRightLeafHeaders=oe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),se(e.options,Et,"getRightLeafHeaders")),e.getLeafHeaders=oe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},se(e.options,Et,"getLeafHeaders"))}};function ro(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(v=>{const y=[...m].reverse()[0],b=v.column.depth===g.depth;let x,S=!1;if(b&&v.column.parent?x=v.column.parent:(x=v.column,S=!0),y&&(y==null?void 0:y.column)===x)y.subHeaders.push(v);else{const w=hm(n,x,{id:[r,f,x.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(_=>_.column===x).length}`:void 0,depth:f,index:m.length});w.subHeaders.push(v),m.push(w)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>hm(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,v=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],d(g.subHeaders).forEach(x=>{let{colSpan:S,rowSpan:w}=x;m+=S,y.push(w)})):m=1;const b=Math.min(...y);return v=v+b,g.colSpan=m,g.rowSpan=v,{colSpan:m,rowSpan:v}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const gs=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Gf(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:oe(()=>[e.getAllLeafColumns()],l=>l.map(u=>D1(e,s,u,u.id)),se(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:oe(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),se(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},_1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},I1=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};I1.autoRemove=e=>Pn(e);const $1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};$1.autoRemove=e=>Pn(e);const R1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};R1.autoRemove=e=>Pn(e);const A1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};A1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const F1=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});F1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const P1=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});P1.autoRemove=e=>Pn(e)||!(e!=null&&e.length);const T1=(e,t,n)=>e.getValue(t)===n;T1.autoRemove=e=>Pn(e);const k1=(e,t,n)=>e.getValue(t)==n;k1.autoRemove=e=>Pn(e);const Zf=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};Zf.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};Zf.autoRemove=e=>Pn(e)||Pn(e[0])&&Pn(e[1]);const Zn={includesString:I1,includesStringSensitive:$1,equalsString:R1,arrIncludes:A1,arrIncludesAll:F1,arrIncludesSome:P1,equals:T1,weakEquals:k1,inNumberRange:Zf};function Pn(e){return e==null||e===""}const M1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Kt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Zn.includesString:typeof r=="number"?Zn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Zn.equals:Array.isArray(r)?Zn.arrIncludes:Zn.weakEquals},e.getFilterFn=()=>{var n,r;return hs(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Zn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(c=>c.id===e.id),o=xr(n,a?a.value:void 0);if(Pd(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=xr(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Pd(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Pd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const l_=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),u_=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},c_=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},d_=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},f_=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},h_=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!w1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},g_=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),m_=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,p_=(e,t)=>t.length,yl={sum:l_,min:u_,max:c_,extent:d_,mean:f_,median:h_,unique:g_,uniqueCount:m_,count:p_},B1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Kt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return yl.sum;if(Object.prototype.toString.call(r)==="[object Date]")return yl.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return hs(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:yl[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function O1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const N1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Kt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=oe(n=>[pa(t,n)],n=>n.findIndex(r=>r.id===e.id),se(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=pa(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=pa(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=oe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return O1(a,n,r)},se(e.options,"debugTable","_getOrderColumnsFn"))}},Sc=()=>({left:[],right:[]}),V1={getInitialState:e=>({columnPinning:Sc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Kt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},se(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),se(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=oe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),se(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Sc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Sc())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),se(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),se(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=oe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},se(e.options,"debugColumns","getCenterLeafColumns"))}},io={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Ec=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),L1={getDefaultColumnDef:()=>io,getInitialState:e=>({columnSizing:{},columnSizingInfo:Ec(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Kt("columnSizing",e),onColumnSizingInfoChange:Kt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:io.minSize,(r=a??e.columnDef.size)!=null?r:io.size),(i=e.columnDef.maxSize)!=null?i:io.maxSize)},e.getStart=oe(n=>[n,pa(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getStart")),e.getAfter=oe(n=>[n,pa(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),se(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),_c(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=_c(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(x=>{var S,w;const _=t.options.columnResizeDirection==="rtl"?-1:1,F=(b-((S=x==null?void 0:x.startOffset)!=null?S:0))*_,p=Math.max(F/((w=x==null?void 0:x.startSize)!=null?w:0),-.999999);return x.columnSizingStart.forEach(D=>{let[$,I]=D;u[$]=Math.round(Math.max(I+I*p,0)*100)/100}),{...x,deltaOffset:F,deltaPercentage:p}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:y=>d(y.clientX),upHandler:y=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),d(y.touches[0].clientX),!1),upHandler:y=>{var b;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((b=y.touches[0])==null?void 0:b.clientX)}},v=H1()?{passive:!1}:!1;_c(a)?(f==null||f.addEventListener("touchmove",m.moveHandler,v),f==null||f.addEventListener("touchend",m.upHandler,v)):(f==null||f.addEventListener("mousemove",g.moveHandler,v),f==null||f.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Ec():(n=e.initialState.columnSizingInfo)!=null?n:Ec())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let Os=null;function H1(){if(typeof Os=="boolean")return Os;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Os=e,Os}function _c(e){return e.type==="touchstart"}const j1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Kt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=oe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),se(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=oe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],se(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>oe(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),se(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function pa(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const W1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},z1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Kt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Zn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return hs(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Zn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},G1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Kt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");r=Math.max(r,o.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Td=0,kd=10,Ic=()=>({pageIndex:Td,pageSize:kd}),Z1={getInitialState:e=>({...e,pagination:{...Ic(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Kt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>xr(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Ic():(i=e.initialState.pagination)!=null?i:Ic())},e.setPageIndex=r=>{e.setPagination(i=>{let a=xr(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?Td:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:Td)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?kd:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:kd)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,xr(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=xr(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=oe(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},se(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},$c=()=>({top:[],bottom:[]}),X1={getInitialState:e=>({rowPinning:$c(),...e}),getDefaultOptions:e=>({onRowPinningChange:Kt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?$c():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:$c())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),se(e.options,"debugRows","getTopRows")),e.getBottomRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),se(e.options,"debugRows","getBottomRows")),e.getCenterRows=oe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},se(e.options,"debugRows","getCenterRows"))}},Y1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Kt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{Md(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=oe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xl(e,n):{rows:[],flatRows:[],rowsById:{}},se(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return Md(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ou(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ul(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ul(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Md=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>Md(e,s.id,n,r,i))};function xl(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=Ou(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function Ou(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ul(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(Ou(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Ul(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Jl=/([0-9]+)/gm,b_=(e,t,n)=>U1(Kr(e.getValue(n)).toLowerCase(),Kr(t.getValue(n)).toLowerCase()),v_=(e,t,n)=>U1(Kr(e.getValue(n)),Kr(t.getValue(n))),y_=(e,t,n)=>Xf(Kr(e.getValue(n)).toLowerCase(),Kr(t.getValue(n)).toLowerCase()),x_=(e,t,n)=>Xf(Kr(e.getValue(n)),Kr(t.getValue(n))),C_=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},w_=(e,t,n)=>Xf(e.getValue(n),t.getValue(n));function Xf(e,t){return e===t?0:e>t?1:-1}function Kr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function U1(e,t){const n=e.split(Jl).filter(Boolean),r=t.split(Jl).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const ca={alphanumeric:b_,alphanumericCaseSensitive:v_,text:y_,textCaseSensitive:x_,datetime:C_,basic:w_},J1={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Kt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return ca.datetime;if(typeof a=="string"&&(r=!0,a.split(Jl).length>1))return ca.alphanumeric}return r?ca.text:ca.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return hs(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ca[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},D_=[E1,j1,N1,V1,_1,M1,W1,z1,J1,B1,G1,Z1,X1,Y1,L1];function q1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...D_,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=xr(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:oe(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,v;return(m=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},se(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:oe(()=>[i._getColumnDefs()],h=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(y=>{const b=S1(i,y,v,m),x=y;return b.columns=x.columns?f(x.columns,b,v+1):[],b})};return f(h)},se(e,"debugColumns","getAllColumns")),getAllFlatColumns:oe(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),se(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:oe(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),se(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:oe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},se(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function S_(){return e=>oe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=gs(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,a+1,c))}}return s};return n.rows=r(t),n},se(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function E_(){return e=>oe(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Yf(n),se(e.options,"debugTable","getExpandedRowModel"))}function Yf(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function __(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},se(e.options,"debugTable","getFacetedMinMaxValues"))}function K1(e,t,n){return n.options.filterFromLeafRows?I_(e,t,n):$_(e,t,n)}function I_(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=gs(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function $_(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<o){const m=gs(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function R_(){return(e,t)=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return K1(n.rows,o,e)},se(e.options,"debugTable","getFacetedRowModel"))}function A_(){return(e,t)=>oe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},se(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function F_(){return e=>oe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,v=>{f.columnFiltersMeta[m]=v})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,v=>{f.columnFiltersMeta[m]=v})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return K1(t.rows,d,e)},se(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function P_(){return e=>oe(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=T_(l,d);return Array.from(h.entries()).map((g,m)=>{let[v,y]=g,b=`${d}:${v}`;b=c?`${c}>${b}`:b;const x=o(y,u+1,b),S=u?Gf(y,_=>_.subRows):y,w=gs(e,b,S[0].original,m,u,void 0,c);return Object.assign(w,{groupingColumnId:d,groupingValue:v,subRows:x,leafRows:S,getValue:_=>{if(r.includes(_)){if(w._valuesCache.hasOwnProperty(_))return w._valuesCache[_];if(y[0]){var F;w._valuesCache[_]=(F=y[0].getValue(_))!=null?F:void 0}return w._valuesCache[_]}if(w._groupingValuesCache.hasOwnProperty(_))return w._groupingValuesCache[_];const p=e.getColumn(_),D=p==null?void 0:p.getAggregationFn();if(D)return w._groupingValuesCache[_]=D(_,S,y),w._groupingValuesCache[_]}}),x.forEach(_=>{i.push(_),a[_.id]=_}),w})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},se(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function T_(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function k_(e){return t=>oe(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Yf({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},se(t.options,"debugTable","getPaginationRowModel"))}function M_(){return e=>oe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<a.length;f+=1){var h;const g=a[f],m=o[g.id],v=m.sortUndefined,y=(h=g==null?void 0:g.desc)!=null?h:!1;let b=0;if(v){const x=c.getValue(g.id),S=d.getValue(g.id),w=x===void 0,_=S===void 0;if(w||_){if(v==="first")return w?-1:1;if(v==="last")return w?1:-1;b=w&&_?0:w?v:-v}}if(b===0&&(b=m.sortingFn(c,d,g.id)),b!==0)return y&&(b*=-1),m.invertSorting&&(b*=-1),b}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},se(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
66
66
|
* react-table
|
67
67
|
*
|
68
68
|
* Copyright (c) TanStack
|
@@ -71,19 +71,19 @@ React keys must be passed directly to JSX without using spread:
|
|
71
71
|
* LICENSE.md file in the root directory of this source tree.
|
72
72
|
*
|
73
73
|
* @license MIT
|
74
|
-
*/function ko(e,t){return e?B_(e)?W.createElement(e,t):e:null}function B_(e){return O_(e)||typeof e=="function"||N_(e)}function O_(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function N_(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function V_(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=W.useState(()=>({current:q1(t)})),[r,i]=W.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const L_=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:_1,ColumnFiltering:M1,ColumnGrouping:B1,ColumnOrdering:N1,ColumnPinning:V1,ColumnSizing:L1,ColumnVisibility:j1,GlobalFaceting:W1,GlobalFiltering:z1,Headers:E1,RowExpanding:G1,RowPagination:Z1,RowPinning:X1,RowSelection:Y1,RowSorting:J1,_getVisibleLeafColumns:pa,aggregationFns:yl,buildHeaderGroups:ro,createCell:D1,createColumn:S1,createColumnHelper:o_,createRow:gs,createTable:q1,defaultColumnSizing:io,expandRows:Yf,filterFns:Zn,flattenBy:Gf,flexRender:ko,functionalUpdate:xr,getCoreRowModel:S_,getExpandedRowModel:E_,getFacetedMinMaxValues:__,getFacetedRowModel:R_,getFacetedUniqueValues:A_,getFilteredRowModel:F_,getGroupedRowModel:P_,getMemoOptions:se,getPaginationRowModel:k_,getSortedRowModel:M_,isFunction:hs,isNumberArray:w1,isRowSelected:Ou,isSubRowSelected:Ul,makeStateUpdater:Kt,memo:oe,noop:s_,orderColumns:O1,passiveEventSupported:H1,reSplitAlphaNumeric:Jl,selectRowsFn:xl,shouldAutoRemoveFilter:Pd,sortingFns:ca,useReactTable:V_},Symbol.toStringTag,{value:"Module"})),Nu=0,ri=1,Va=2,Q1=4;function Mo(e,t){return n=>e(t(n))}function H_(e,t){return t(e)}function ev(e,t){return n=>e(t,n)}function gm(e,t){return()=>e(t)}function Vu(e,t){return t(e),e}function Ke(...e){return e}function j_(e){e()}function mm(e){return()=>e}function W_(...e){return()=>{e.map(j_)}}function Uf(e){return e!==void 0}function Wi(){}function Ze(e,t){return e(ri,t)}function De(e,t){e(Nu,t)}function Jf(e){e(Va)}function Ft(e){return e(Q1)}function le(e,t){return Ze(e,ev(t,Nu))}function rr(e,t){const n=e(ri,r=>{n(),t(r)});return n}function Te(){const e=[];return(t,n)=>{switch(t){case Va:e.splice(0,e.length);return;case ri:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case Nu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=Te();return(r,i)=>{switch(r){case ri:i(t);break;case Nu:t=i;break;case Q1:return t}return n(r,i)}}function z_(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case ri:return a?n===a?void 0:(r(),n=a,t=Ze(e,a),t):(r(),Wi);case Va:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function un(e){return Vu(Te(),t=>le(e,t))}function Pt(e,t){return Vu(K(t),n=>le(e,n))}function G_(...e){return t=>e.reduceRight(H_,t)}function J(e,...t){const n=G_(...t);return(r,i)=>{switch(r){case ri:return Ze(e,n(i));case Va:Jf(e);return}}}function tv(e,t){return e===t}function qe(e=tv){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function ye(e){return t=>n=>{e(n)&&t(n)}}function ne(e){return t=>Mo(t,e)}function Yn(e){return t=>()=>t(e)}function Jn(e,t){return n=>r=>n(t=e(t,r))}function $a(e){return t=>n=>{e>0?e--:t(n)}}function Wr(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function pm(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Se(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Ze(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function bm(...e){return function(t,n){switch(t){case ri:return W_(...e.map(r=>Ze(r,n)));case Va:return;default:throw new Error(`unrecognized action ${t}`)}}}function xe(e,t=tv){return J(e,qe(t))}function wt(...e){const t=Te(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Ze(a,l=>{n[o]=l,r=r|s,r===i&&De(t,n)})}),function(a,o){switch(a){case ri:return r===i&&o(n),Ze(t,o);case Va:return Jf(t);default:throw new Error(`unrecognized action ${a}`)}}}function Oe(e,t=[],{singleton:n}={singleton:!0}){return{id:Z_(),constructor:e,dependencies:t,singleton:n}}const Z_=()=>Symbol();function X_(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function Y_(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const Ns=typeof document<"u"?C.useLayoutEffect:C.useEffect;function qf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=C.createContext({});function l(y,b){y.propsReady&&De(y.propsReady,!1);for(const x of r){const S=y[t.required[x]];De(S,b[x])}for(const x of i)if(x in b){const S=y[t.optional[x]];De(S,b[x])}y.propsReady&&De(y.propsReady,!0)}function u(y){return a.reduce((b,x)=>(b[x]=S=>{const w=y[t.methods[x]];De(w,S)},b),{})}function c(y){return o.reduce((b,x)=>(b[x]=z_(y[t.events[x]]),b),{})}const d=C.forwardRef((y,b)=>{const{children:x,...S}=y,[w]=C.useState(()=>Vu(X_(e),F=>l(F,S))),[I]=C.useState(gm(c,w));return Ns(()=>{for(const F of o)F in S&&Ze(I[F],S[F]);return()=>{Object.values(I).map(Jf)}},[S,I,w]),Ns(()=>{l(w,S)}),C.useImperativeHandle(b,mm(u(w))),C.createElement(s.Provider,{value:w},n?C.createElement(n,Y_([...r,...i,...o],S),x):x)}),h=y=>C.useCallback(ev(De,C.useContext(s)[y]),[y]),f=y=>{const x=C.useContext(s)[y],S=C.useCallback(w=>Ze(x,w),[x]);return C.useSyncExternalStore(S,()=>Ft(x),()=>Ft(x))},g=y=>{const x=C.useContext(s)[y],[S,w]=C.useState(gm(Ft,x));return Ns(()=>Ze(x,I=>{I!==S&&w(mm(I))}),[x,S]),S},m=C.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(y,b)=>{const S=C.useContext(s)[y];Ns(()=>Ze(S,b),[b,S])}}}const U_=typeof document<"u"?C.useLayoutEffect:C.useEffect,J_=U_;var cn=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(cn||{});const q_={0:"debug",1:"log",2:"warn",3:"error"},K_=()=>typeof globalThis>"u"?window:globalThis,ii=Oe(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=K_().VIRTUOSO_LOG_LEVEL)!=null?a:Ft(e);i>=o&&console[q_[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Kf(e,t=!0){const n=C.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=C.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function ir(e,t=!0){return Kf(e,t).callbackRef}function nv(e,t,n,r,i,a,o){const s=C.useCallback(l=>{const u=Q_(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(eI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return Kf(s,n)}function Q_(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},cn.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function eI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,cn.WARN),t==="normal"?0:parseInt(t??"0",10)}function Bn(e,t){return Math.round(e.getBoundingClientRect()[t])}function rv(e,t){return Math.abs(e-t)<1.01}function iv(e,t,n,r=Wi,i){const a=C.useRef(null),o=C.useRef(null),s=C.useRef(null),l=C.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,v=f?window.innerHeight:h.offsetHeight,y=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:v})};d.suppressFlushSync?y():Oa.flushSync(y),o.current!==null&&(g===o.current||g<=0||g===m-v)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);C.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,v;h===window?(m=Math.max(Bn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,v=document.documentElement.scrollTop):(m=h.scrollHeight,g=Bn(h,"height"),v=h.scrollTop);const y=m-g;if(d.top=Math.ceil(Math.max(Math.min(y,d.top),0)),rv(g,m)||d.top===v){e({scrollTop:v,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Ht=Oe(()=>{const e=Te(),t=Te(),n=K(0),r=Te(),i=K(0),a=Te(),o=Te(),s=K(0),l=K(0),u=K(0),c=K(0),d=Te(),h=Te(),f=K(!1);return le(J(e,ne(({scrollTop:g})=>g)),t),le(J(e,ne(({scrollHeight:g})=>g)),o),le(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),Bo={lvl:0};function av(e,t,n,r=Bo,i=Bo){return{k:e,v:t,lvl:n,l:r,r:i}}function Ye(e){return e===Bo}function ba(){return Bo}function Bd(e,t){if(Ye(e))return Bo;const{k:n,l:r,r:i}=e;if(t===n){if(Ye(r))return i;if(Ye(i))return r;{const[a,o]=ov(r);return Cl(bt(e,{k:a,v:o,l:sv(r)}))}}else return t<n?Cl(bt(e,{l:Bd(r,t)})):Cl(bt(e,{r:Bd(i,t)}))}function Oo(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?Oo(e.l,t):Oo(e.r,t)}function On(e,t,n="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=On(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return On(e.l,t,n)}function on(e,t,n){return Ye(e)?av(t,n,1):t===e.k?bt(e,{k:t,v:n}):t<e.k?vm(bt(e,{l:on(e.l,t,n)})):vm(bt(e,{r:on(e.r,t,n)}))}function Od(e,t,n){if(Ye(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Od(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Od(o,t,n))),s}function Di(e){return Ye(e)?[]:[...Di(e.l),{k:e.k,v:e.v},...Di(e.r)]}function ov(e){return Ye(e.r)?[e.k,e.v]:ov(e.r)}function sv(e){return Ye(e.r)?e.l:Cl(bt(e,{r:sv(e.r)}))}function bt(e,t){return av(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function Rc(e){return Ye(e)||e.lvl>e.r.lvl}function vm(e){return Nd(uv(e))}function Cl(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(Rc(t))return uv(bt(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return bt(t.r,{l:bt(t,{r:t.r.l}),r:bt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(Rc(e))return Nd(bt(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const i=n.l,a=Rc(i)?n.lvl-1:n.lvl;return bt(i,{l:bt(e,{r:i.l,lvl:r-1}),r:Nd(bt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function Lu(e,t,n){if(Ye(e))return[];const r=On(e,t)[0];return tI(Od(e,r,n))}function lv(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function tI(e){return lv(e,({k:t,v:n})=>({index:t,value:n}))}function Nd(e){const{r:t,lvl:n}=e;return!Ye(t)&&!Ye(t.r)&&t.lvl===n&&t.r.lvl===n?bt(t,{l:bt(e,{r:t.l}),lvl:n+1}):e}function uv(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?bt(t,{r:bt(e,{l:t.r})}):e}function ql(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function cv(e,t,n){return e[ql(e,t,n)]}function nI(e,t,n,r){const i=ql(e,t,r),a=ql(e,n,r,i);return e.slice(i,a+1)}const Qf=Oe(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function rI(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function ym(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function iI(e,t){let n=Ye(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ye(e)){e=on(e,0,i);continue}const s=Lu(e,a-1,o+1);if(s.some(rI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=Bd(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=on(e,o+1,h));u&&(e=on(e,a,i))}return[e,n]}function aI(){return{offsetTree:[],sizeTree:ba(),groupOffsetTree:ba(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function eh({index:e},t){return t===e?0:t<e?-1:1}function oI({offset:e},t){return t===e?0:t<e?-1:1}function sI(e){return{index:e.index,value:e}}function lI(e,t,n,r=0){return r>0&&(t=Math.max(t,cv(e,r,eh).offset)),lv(nI(e,t,n,oI),sI)}function Vd(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=ql(i,t-1,eh),s=i[l].offset;const c=On(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===On(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of Lu(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function uI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,cn.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ye(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,m)=>on(on(g,m,h),m+1,f),o)}else[o,s]=iI(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Vd(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>on(h,f,No(f,l,i)),ba()),groupIndices:n}}function No(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=cv(t,e,eh),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function cI(e){return typeof e.groupIndex<"u"}function dv(e,t,n){if(cI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=fv(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function fv(e,t){if(!Hu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Hu(e){return!Ye(e.groupOffsetTree)}function dI(e){return Di(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const fI={offsetHeight:"height",offsetWidth:"width"},ar=Oe(([{log:e},{recalcInProgress:t}])=>{const n=Te(),r=Te(),i=Pt(r,0),a=Te(),o=Te(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((w,I)=>Bn(w,fI[I])),h=K(void 0),f=K(0),g=aI(),m=Pt(J(n,Se(l,e,f),Jn(uI,g),qe()),g),v=Pt(J(l,qe(),Jn((w,I)=>({prev:w.current,current:I}),{prev:[],current:[]}),ne(({prev:w})=>w)),[]);le(J(l,ye(w=>w.length>0),Se(m,f),ne(([w,I,F])=>{const p=w.reduce((D,$,_)=>on(D,$,No($,I.offsetTree,F)||_),ba());return{...I,groupIndices:w,groupOffsetTree:p}})),m),le(J(r,Se(m),ye(([w,{lastIndex:I}])=>w<I),ne(([w,{lastIndex:I,lastSize:F}])=>[{startIndex:w,endIndex:I,size:F}])),n),le(u,c);const y=Pt(J(u,ne(w=>w===void 0)),!0);le(J(c,ye(w=>w!==void 0&&Ye(Ft(m).sizeTree)),ne(w=>[{startIndex:0,endIndex:0,size:w}])),n);const b=un(J(n,Se(m),Jn(({sizes:w},[I,F])=>({changed:F!==w,sizes:F}),{changed:!1,sizes:g}),ne(w=>w.changed)));Ze(J(s,Jn((w,I)=>({diff:w.prev-I,prev:I}),{diff:0,prev:0}),ne(w=>w.diff)),w=>{const{groupIndices:I}=Ft(m);if(w>0)De(t,!0),De(a,w+ym(w,I));else if(w<0){const F=Ft(v);F.length>0&&(w-=ym(-w,F)),De(o,w)}}),Ze(J(s,Se(e)),([w,I])=>{w<0&&I("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},cn.ERROR)});const x=un(a);le(J(a,Se(m),ne(([w,I])=>{const F=I.groupIndices.length>0,p=[],D=I.lastSize;if(F){const $=Oo(I.sizeTree,0);let _=0,A=0;for(;_<w;){const M=I.groupIndices[A],T=I.groupIndices.length===A+1?1/0:I.groupIndices[A+1]-M-1;p.push({startIndex:M,endIndex:M,size:$}),p.push({startIndex:M+1,endIndex:M+1+T-1,size:D}),A++,_+=T+1}const k=Di(I.sizeTree);return _!==w&&k.shift(),k.reduce((M,{k:T,v:P})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:T+w-1,size:M.prevSize}]),{ranges:B,prevIndex:T+w,prevSize:P}},{ranges:p,prevIndex:w,prevSize:0}).ranges}return Di(I.sizeTree).reduce(($,{k:_,v:A})=>({ranges:[...$.ranges,{startIndex:$.prevIndex,endIndex:_+w-1,size:$.prevSize}],prevIndex:_+w,prevSize:A}),{ranges:[],prevIndex:0,prevSize:D}).ranges})),n);const S=un(J(o,Se(m,f),ne(([w,{offsetTree:I},F])=>{const p=-w;return No(p,I,F)})));return le(J(o,Se(m,f),ne(([w,I,F])=>{if(I.groupIndices.length>0){if(Ye(I.sizeTree))return I;let D=ba();const $=Ft(v);let _=0,A=0,k=0;for(;_<-w;){k=$[A];const M=$[A+1]-k-1;A++,_+=M+1}if(D=Di(I.sizeTree).reduce((M,{k:T,v:P})=>on(M,Math.max(0,T+w),P),D),_!==-w){const M=Oo(I.sizeTree,k);D=on(D,0,M);const T=On(I.sizeTree,-w+1)[1];D=on(D,1,T)}return{...I,sizeTree:D,...Vd(I.offsetTree,0,D,F)}}else{const D=Di(I.sizeTree).reduce(($,{k:_,v:A})=>on($,Math.max(0,_+w),A),ba());return{...I,sizeTree:D,...Vd(I.offsetTree,0,D,F)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:S,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:m,listRefresh:b,statefulTotalCount:i,trackItemSizes:y,itemSize:d}},Ke(ii,Qf),{singleton:!0}),hI=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function hv(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!hI)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const ms=Oe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Te(),g=Te(),m=K(0);let v=null,y=null,b=null;function x(){v&&(v(),v=null),b&&(b(),b=null),y&&(clearTimeout(y),y=null),De(i,!1)}return le(J(f,Se(e,a,t,m,l,u,h),Se(r,c,d),ne(([[S,w,I,F,p,D,$,_],A,k,R])=>{const M=hv(S),{align:T,behavior:P,offset:B}=M,O=F-1,L=dv(M,w,O);let H=No(L,w.offsetTree,A)+D;T==="end"?(H+=k+On(w.sizeTree,L)[1]-I+R,L===O&&(H+=$)):T==="center"?H+=(k+On(w.sizeTree,L)[1]-I+R)/2:H-=p,B&&(H+=B);const z=X=>{x(),X?(_("retrying to scroll to",{location:S},cn.DEBUG),De(f,S)):(De(g,!0),_("list did not change, scroll successful",{},cn.DEBUG))};if(x(),P==="smooth"){let X=!1;b=Ze(n,G=>{X=X||G}),v=rr(s,()=>{z(X)})}else v=rr(J(n,gI(150)),z);return y=setTimeout(()=>{x()},1200),De(i,!0),_("scrolling from index to",{index:L,top:H,behavior:P},cn.DEBUG),{top:H,behavior:P}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ke(ar,Ht,ii),{singleton:!0});function gI(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const Vo="up",vo="down",mI="none",pI={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},bI=0,ps=Oe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=Te(),u=Te(),c=K(4),d=K(bI),h=Pt(J(bm(J(xe(t),$a(1),Yn(!0)),J(xe(t),$a(1),Yn(!1),pm(100))),qe()),!1),f=Pt(J(bm(J(a,Yn(!0)),J(a,Yn(!1),pm(200))),qe()),!1);le(J(wt(xe(t),xe(d)),ne(([b,x])=>b<=x),qe()),s),le(J(s,Wr(50)),u);const g=un(J(wt(e,xe(n),xe(r),xe(i),xe(c)),Jn((b,[{scrollTop:x,scrollHeight:S},w,I,F,p])=>{const D=x+w-S>-p,$={viewportHeight:w,scrollTop:x,scrollHeight:S};if(D){let A,k;return x>b.state.scrollTop?(A="SCROLLED_DOWN",k=b.state.scrollTop-x):(A="SIZE_DECREASED",k=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:$,atBottomBecause:A,scrollTopDelta:k}}let _;return $.scrollHeight>b.state.scrollHeight?_="SIZE_INCREASED":w<b.state.viewportHeight?_="VIEWPORT_HEIGHT_DECREASING":x<b.state.scrollTop?_="SCROLLING_UPWARDS":_="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:_,state:$}},pI),qe((b,x)=>b&&b.atBottom===x.atBottom))),m=Pt(J(e,Jn((b,{scrollTop:x,scrollHeight:S,viewportHeight:w})=>{if(rv(b.scrollHeight,S))return{scrollTop:x,scrollHeight:S,jump:0,changed:!1};{const I=S-(x+w)<1;return b.scrollTop!==x&&I?{scrollHeight:S,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:S,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),ye(b=>b.changed),ne(b=>b.jump)),0);le(J(g,ne(b=>b.atBottom)),o),le(J(o,Wr(50)),l);const v=K(vo);le(J(e,ne(({scrollTop:b})=>b),qe(),Jn((b,x)=>Ft(f)?{direction:b.direction,prevScrollTop:x}:{direction:x<b.prevScrollTop?Vo:vo,prevScrollTop:x},{direction:vo,prevScrollTop:0}),ne(b=>b.direction)),v),le(J(e,Wr(50),Yn(mI)),v);const y=K(0);return le(J(h,ye(b=>!b),Yn(0)),y),le(J(t,Wr(100),Se(h),ye(([b,x])=>!!x),Jn(([b,x],[S])=>[x,S],[0,0]),ne(([b,x])=>x-b)),y),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:v,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:y,lastJumpDueToItemResize:m}},Ke(Ht)),ai=Oe(([{log:e}])=>{const t=K(!1),n=un(J(t,ye(r=>r),qe()));return Ze(t,r=>{r&&Ft(e)("props updated",{},cn.DEBUG)}),{propsReady:t,didMount:n}},Ke(ii),{singleton:!0});function th(e,t){e==0?t():requestAnimationFrame(()=>th(e-1,t))}function nh(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const bs=Oe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=K(!0),l=K(0),u=K(!0);return le(J(o,Se(l),ye(([c,d])=>!!d),Yn(!1)),s),le(J(o,Se(l),ye(([c,d])=>!!d),Yn(!1)),u),Ze(J(wt(t,o),Se(s,e,n,u),ye(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ye(h)||Uf(f))&&!d&&!g),Se(l)),([,c])=>{rr(a,()=>{De(u,!0)}),th(4,()=>{rr(r,()=>{De(s,!0)}),De(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(ar,Ht,ms,ai),{singleton:!0});function xm(e){return e?e==="smooth"?"smooth":"auto":!1}const vI=(e,t)=>typeof e=="function"?xm(e(t)):t&&xm(e),yI=Oe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=K(!1),d=Te();let h=null;function f(m){De(i,{index:"LAST",align:"end",behavior:m})}Ze(J(wt(J(xe(e),$a(1)),s),Se(xe(c),n,a,u),ne(([[m,v],y,b,x,S])=>{let w=v&&x,I="auto";return w&&(I=vI(y,b||S),w=w&&!!I),{totalCount:m,shouldFollow:w,followOutputBehavior:I}}),ye(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:v})=>{h&&(h(),h=null),h=rr(t,()=>{Ft(l)("following output to ",{totalCount:m},cn.DEBUG),f(v),h=null})});function g(m){const v=rr(r,y=>{m&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Ft(l)("scrolling to bottom due to increased size",{},cn.DEBUG),f("auto"))});setTimeout(v,100)}return Ze(J(wt(xe(c),e,o),ye(([m,,v])=>m&&v),Jn(({value:m},[,v])=>({refreshed:m===v,value:v}),{refreshed:!1,value:0}),ye(({refreshed:m})=>m),Se(c,e)),([,m])=>{Ft(a)&&g(m!==!1)}),Ze(d,()=>{g(Ft(c)!==!1)}),Ze(wt(xe(c),r),([m,v])=>{m&&!v.atBottom&&v.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(ar,ps,ms,bs,ai,ii,Ht));function xI(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const gv=Oe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Te(),o=Te(),s=un(J(a,ne(xI)));return le(J(s,ne(l=>l.totalCount)),e),le(J(s,ne(l=>l.groupIndices)),t),le(J(wt(r,n,i),ye(([l,u])=>Hu(u)),ne(([l,u,c])=>On(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),qe(),ne(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(ar,Ht));function Lo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function mv(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Kl="top",Ql="bottom",Cm="none";function wm(e,t,n){return typeof e=="number"?n===Vo&&t===Kl||n===vo&&t===Ql?e:0:n===Vo?t===Kl?e.main:e.reverse:t===Ql?e.main:e.reverse}function Dm(e,t){return typeof e=="number"?e:e[t]||0}const rh=Oe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Te(),o=K(0),s=K(0),l=K(0),u=Pt(J(wt(xe(e),xe(t),xe(r),xe(a,Lo),xe(l),xe(o),xe(i),xe(n),xe(s)),ne(([c,d,h,[f,g],m,v,y,b,x])=>{const S=c-b,w=v+y,I=Math.max(h-S,0);let F=Cm;const p=Dm(x,Kl),D=Dm(x,Ql);return f-=b,f+=h+y,g+=h+y,g-=b,f>c+w-p&&(F=Vo),g<c-I+d+D&&(F=vo),F!==Cm?[Math.max(S-h-wm(m,Kl,F)-p,0),S-I-y+d+wm(m,Ql,F)+D]:null}),ye(c=>c!=null),qe(Lo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Ht),{singleton:!0});function CI(e,t,n){if(Hu(t)){const r=fv(e,t);return[{index:On(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Ac={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Sm(e,t,n){if(e.length===0)return[];if(!Hu(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=Lu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function wl(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:Sm(e,i,a),topItems:Sm(t,i,a),topListHeight:t.reduce((m,v)=>v.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function pv(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=nh(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return wl(u,[],s,i,n,r)}const zi=Oe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=K([]),v=K(0),y=Te();le(a.topItemsIndexes,m);const b=Pt(J(wt(f,g,xe(o,Lo),xe(t),xe(e),xe(c),u,xe(m),xe(r),xe(i),n),ye(([I,F,,p,,,,,,,D])=>{const $=D&&D.length!==p;return I&&!F&&!$}),ne(([,,[I,F],p,D,$,_,A,k,R,M])=>{const T=D,{sizeTree:P,offsetTree:B}=T,O=Ft(v);if(p===0)return{...Ac,totalCount:p};if(I===0&&F===0)return O===0?{...Ac,totalCount:p}:pv(O,$,D,k,R,M||[]);if(Ye(P))return O>0?null:wl(CI(nh($,p),T,M),[],p,R,T,k);const L=[];if(A.length>0){const j=A[0],V=A[A.length-1];let Z=0;for(const q of Lu(P,j,V)){const te=q.value,ue=Math.max(q.start,j),ie=Math.min(q.end,V);for(let Y=ue;Y<=ie;Y++)L.push({index:Y,size:te,offset:Z,data:M&&M[Y]}),Z+=te}}if(!_)return wl([],L,p,R,T,k);const H=A.length>0?A[A.length-1]+1:0,z=lI(B,I,F,H);if(z.length===0)return null;const X=p-1,G=Vu([],j=>{for(const V of z){const Z=V.value;let q=Z.offset,te=V.start;const ue=Z.size;if(Z.offset<I){te+=Math.floor((I-Z.offset+R)/(ue+R));const Y=te-V.start;q+=Y*ue+Y*R}te<H&&(q+=(H-te)*ue,te=H);const ie=Math.min(V.end,X);for(let Y=te;Y<=ie&&!(q>=F);Y++)j.push({index:Y,size:ue,offset:q,data:M&&M[Y]}),q+=ue+R}});return wl(G,L,p,R,T,k)}),ye(I=>I!==null),qe()),Ac);le(J(n,ye(Uf),ne(I=>I==null?void 0:I.length)),t),le(J(b,ne(I=>I.topListHeight)),d),le(d,l),le(J(b,ne(I=>[I.top,I.bottom])),s),le(J(b,ne(I=>I.items)),y);const x=un(J(b,ye(({items:I})=>I.length>0),Se(t,n),ye(([{items:I},F])=>I[I.length-1].originalIndex===F-1),ne(([,I,F])=>[I-1,F]),qe(Lo),ne(([I])=>I))),S=un(J(b,Wr(200),ye(({items:I,topItems:F})=>I.length>0&&I[0].originalIndex===F.length),ne(({items:I})=>I[0].index),qe())),w=un(J(b,ye(({items:I})=>I.length>0),ne(({items:I})=>{let F=0,p=I.length-1;for(;I[F].type==="group"&&F<p;)F++;for(;I[p].type==="group"&&p>F;)p--;return{startIndex:I[F].index,endIndex:I[p].index}}),qe(mv)));return{listState:b,topItemsIndexes:m,endReached:x,startReached:S,rangeChanged:w,itemsRendered:y,initialItemCount:v,...h}},Ke(ar,gv,rh,bs,ms,ps,ai,Qf),{singleton:!0}),wI=Oe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(le(J(s,Se(a),ye(([,l])=>l!==0),Se(i,e,t,r,n),ne(([[,l],u,c,d,h,f=[]])=>pv(l,u,c,d,h,f))),o),{}),Ke(ar,bs,zi,ai),{singleton:!0}),bv=Oe(([{scrollVelocity:e}])=>{const t=K(!1),n=Te(),r=K(!1);return le(J(e,Se(r,t,n),ye(([i,a])=>!!a),ne(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),qe()),t),Ze(J(wt(t,e,n),Se(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(ps),{singleton:!0}),DI=Oe(([{topItemsIndexes:e}])=>{const t=K(0);return le(J(t,ye(n=>n>0),ne(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(zi)),vv=Oe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Te(),o=Pt(J(wt(e,r,t,n,i),ne(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return le(xe(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Ht,zi),{singleton:!0});function yv(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const SI=yv(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),EI=Oe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=un(J(l,Se(s),Jn(([,y,b,x],[{items:S,totalCount:w,bottom:I,offsetBottom:F},p])=>{const D=I+F;let $=0;return b===w&&y.length>0&&S.length>0&&(S[0].originalIndex===0&&y[0].originalIndex===0||($=D-x,$!==0&&($+=p))),[$,S,w,D]},[0,[],0,0]),ye(([y])=>y!==0),Se(t,o,r,a,f,g),ye(([,y,b,x,,,S])=>!S&&!x&&y!==0&&b===Vo),ne(([[y],,,,,b])=>(b("Upward scrolling compensation",{amount:y},cn.DEBUG),y))));function v(y){y>0?(De(e,{top:-y,behavior:"auto"}),De(n,0)):(De(n,0),De(e,{top:-y,behavior:"auto"}))}return Ze(J(m,Se(n,i)),([y,b,x])=>{x&&SI()?De(n,b-y):v(-y)}),Ze(J(wt(Pt(i,!1),n,g),ye(([y,b,x])=>!y&&!x&&b!==0),ne(([y,b])=>b),Wr(1)),v),le(J(c,ne(y=>({top:-y}))),e),Ze(J(u,Se(d,h),ne(([y,{lastSize:b,groupIndices:x,sizeTree:S},w])=>{function I(F){return F*(b+w)}if(x.length===0)return I(y);{let F=0;const p=Oo(S,0);let D=0,$=0;for(;D<y;){D++,F+=p;let _=x.length===$+1?1/0:x[$+1]-x[$]-1;D+_>y&&(F-=p,_=y-D+1),D+=_,F+=I(_),$++}return F}})),y=>{De(n,y),requestAnimationFrame(()=>{De(e,{top:y}),requestAnimationFrame(()=>{De(n,0),De(g,!1)})})}),{deviation:n}},Ke(Ht,ps,zi,ar,ii,Qf)),_I=Oe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return Ze(J(e,Se(r),ye(([,i])=>i!==0),ne(([,i])=>({top:i}))),i=>{rr(J(n,$a(1),ye(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{De(t,i)})})}),{initialScrollTop:r}},Ke(ai,Ht,zi),{singleton:!0}),II=Oe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=Pt(J(wt(n,e,t),ye(([i])=>i),ne(([,i,a])=>Math.max(0,i-a)),Wr(0),qe()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Ht,vv),{singleton:!0}),ih=Oe(([{scrollTo:e,scrollContainerState:t}])=>{const n=Te(),r=Te(),i=Te(),a=K(!1),o=K(void 0);return le(J(wt(n,r),ne(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),le(J(e,Se(r),ne(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Ht)),$I=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,RI=Oe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Te();return le(J(c,Se(e,i,t,a,o,s,r),Se(n),ne(([[d,h,f,g,m,v,y,b],x])=>{const{done:S,behavior:w,align:I,calculateViewLocation:F=$I,...p}=d,D=dv(d,h,g-1),$=No(D,h.offsetTree,x)+m+v,_=$+On(h.sizeTree,D)[1],A=b+v,k=b+f-y,R=F({itemTop:$,itemBottom:_,viewportTop:A,viewportBottom:k,locationParams:{behavior:w,align:I,...p}});return R?S&&rr(J(l,ye(M=>M===!1),$a(Ft(l)?1:2)),S):S&&S(),R}),ye(d=>d!==null)),u),{scrollIntoView:c}},Ke(ar,Ht,ms,zi,ii),{singleton:!0}),AI=Oe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Te(),u=K(void 0),c=K(null),d=K(null);return le(o,c),le(s,d),Ze(J(l,Se(e,n,a,c,d)),([h,f,g,m,v,y])=>{const b=dI(f.sizeTree);m&&v!==null&&y!==null&&(g=v.scrollTop-y.offsetTop),h({ranges:b,scrollTop:g})}),le(J(u,ye(Uf),ne(FI)),r),le(J(i,Se(u),ye(([,h])=>h!==void 0),qe(),ne(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(ar,Ht,bs,ai,ih));function FI(e){return{offset:e.scrollTop,index:0,align:"start"}}const PI=Oe(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(rh,wI,ai,bv,vv,_I,II,ih,RI,ii)),xv=Oe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,v,y,{listState:b,topItemsIndexes:x,...S},{scrollToIndex:w},I,{topItemCount:F},{groupCounts:p},D])=>(le(S.rangeChanged,D.scrollSeekRangeChanged),le(J(D.windowViewportRect,ne($=>$.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:F,groupCounts:p,fixedItemHeight:n,defaultItemHeight:r,gap:c,...y,statefulTotalCount:u,listState:b,scrollToIndex:w,trackItemSizes:i,itemSize:a,groupIndices:l,...S,...D,...m,sizes:d,...v}),Ke(ar,bs,Ht,AI,yI,zi,ms,EI,DI,gv,PI)),Fc="-webkit-sticky",Em="sticky",Cv=yv(()=>{if(typeof document>"u")return Em;const e=document.createElement("div");return e.style.position=Fc,e.style.position===Fc?Fc:Em});function ah(e,t){const n=C.useRef(null),r=C.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:a}=Kf(r),o=C.useCallback(()=>{r(a.current)},[r,a]);return C.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const ju=C.createContext(void 0),wv=C.createContext(void 0);function oh(e){return e}const TI=Oe(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(oh),a=K("div"),o=K(Wi),s=(l,u=null)=>Pt(J(r,ne(c=>c[l]),qe()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),kI=Oe(([e,t])=>({...e,...t}),Ke(xv,TI)),MI=({height:e})=>C.createElement("div",{style:{height:e}}),BI={position:Cv(),zIndex:1,overflowAnchor:"none"},OI={overflowAnchor:"none"},_m=C.memo(function({showTopList:t=!1}){const n=Re("listState"),r=Sn("sizeRanges"),i=Re("useWindowScroll"),a=Re("customScrollParent"),o=Sn("windowScrollContainerState"),s=Sn("scrollContainerState"),l=a||i?o:s,u=Re("itemContent"),c=Re("context"),d=Re("groupContent"),h=Re("trackItemSizes"),f=Re("itemSize"),g=Re("log"),m=Sn("gap"),{callbackRef:v}=nv(r,f,h,t?Wi:l,g,m,a),[y,b]=C.useState(0);uh("deviation",R=>{y!==R&&b(R)});const x=Re("EmptyPlaceholder"),S=Re("ScrollSeekPlaceholder")||MI,w=Re("ListComponent"),I=Re("ItemComponent"),F=Re("GroupComponent"),p=Re("computeItemKey"),D=Re("isSeeking"),$=Re("groupIndices").length>0,_=Re("alignToBottom"),A=Re("initialItemFinalLocationReached"),k=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:y!==0?y:_?"auto":0,...A?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?C.createElement(x,ot(x,c)):C.createElement(w,{...ot(w,c),ref:v,style:k,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(R=>{const M=R.originalIndex,T=p(M+n.firstItemIndex,R.data,c);return D?C.createElement(S,{...ot(S,c),key:T,index:R.index,height:R.size,type:R.type||"item",...R.type==="group"?{}:{groupIndex:R.groupIndex}}):R.type==="group"?C.createElement(F,{...ot(F,c),key:T,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,style:BI},d(R.index,c)):C.createElement(I,{...ot(I,c),...Dv(I,R.data),key:T,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,"data-item-group-index":R.groupIndex,style:OI},$?u(R.index,R.groupIndex,R.data,c):u(R.index,R.data,c))}))}),NI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},La=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),VI={width:"100%",position:Cv(),top:0,zIndex:1};function ot(e,t){if(typeof e!="string")return{context:t}}function Dv(e,t){return{item:typeof e=="string"?void 0:t}}const LI=C.memo(function(){const t=Re("HeaderComponent"),n=Sn("headerHeight"),r=Re("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=Re("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),HI=C.memo(function(){const t=Re("FooterComponent"),n=Sn("footerHeight"),r=Re("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=Re("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null});function sh({usePublisher:e,useEmitter:t,useEmitterValue:n}){return C.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=iv(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),C.createElement(u,{ref:f,style:{...NI,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...ot(u,h)},o)})}function lh({usePublisher:e,useEmitter:t,useEmitterValue:n}){return C.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:v,scrollToCallback:y}=iv(l,c,u,Wi,f);return J_(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",y),t("scrollBy",v),C.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...ot(u,g)},o)})}const jI=({children:e})=>{const t=C.useContext(ju),n=Sn("viewportHeight"),r=Sn("fixedItemHeight"),i=Re("alignToBottom"),a=ir(Mo(n,o=>Bn(o,"height")));return C.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),C.createElement("div",{style:La(i),ref:a,"data-viewport-type":"element"},e)},WI=({children:e})=>{const t=C.useContext(ju),n=Sn("windowViewportRect"),r=Sn("fixedItemHeight"),i=Re("customScrollParent"),a=ah(n,i),o=Re("alignToBottom");return C.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),C.createElement("div",{ref:a,style:La(o),"data-viewport-type":"window"},e)},zI=({children:e})=>{const t=Re("TopItemListComponent")||"div",n=Re("headerHeight"),r={...VI,marginTop:`${n}px`},i=Re("context");return C.createElement(t,{style:r,...ot(t,i)},e)},GI=C.memo(function(t){const n=Re("useWindowScroll"),r=Re("topItemsIndexes").length>0,i=Re("customScrollParent"),a=i||n?YI:XI,o=i||n?WI:jI;return C.createElement(a,{...t},r&&C.createElement(zI,null,C.createElement(_m,{showTopList:!0})),C.createElement(o,null,C.createElement(LI,null),C.createElement(_m,null),C.createElement(HI,null)))}),{Component:ZI,usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}=qf(kI,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},GI),XI=sh({usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}),YI=lh({usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}),UI=ZI,Im={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},JI={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:$m,ceil:Rm,floor:eu,min:Pc,max:yo}=Math;function qI(e){return{...JI,items:e}}function Am(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function KI(e,t){return e&&e.column===t.column&&e.row===t.row}function Vs(e,t){return e&&e.width===t.width&&e.height===t.height}const QI=Oe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:v,customScrollParent:y,windowScrollContainerState:b,windowScrollTo:x},S])=>{const w=K(0),I=K(0),F=K(Im),p=K({height:0,width:0}),D=K({height:0,width:0}),$=Te(),_=Te(),A=K(0),k=K(null),R=K({row:0,column:0}),M=Te(),T=Te(),P=K(!1),B=K(0),O=K(!0),L=K(!1);Ze(J(g,Se(B),ye(([V,Z])=>!!Z)),()=>{De(O,!1),De(I,0)}),Ze(J(wt(g,O,D,p,B,L),ye(([V,Z,q,te,,ue])=>V&&!Z&&q.height!==0&&te.height!==0&&!ue)),([,,,,V])=>{De(L,!0),th(1,()=>{De($,V)}),rr(J(r),()=>{De(n,[0,0]),De(O,!0)})}),le(J(T,ye(V=>V!=null&&V.scrollTop>0),Yn(0)),I),Ze(J(g,Se(T),ye(([,V])=>V!=null)),([,V])=>{V&&(De(p,V.viewport),De(D,V==null?void 0:V.item),De(R,V.gap),V.scrollTop>0&&(De(P,!0),rr(J(r,$a(1)),Z=>{De(P,!1)}),De(o,{top:V.scrollTop})))}),le(J(p,ne(({height:V})=>V)),i),le(J(wt(xe(p,Vs),xe(D,Vs),xe(R,(V,Z)=>V&&V.column===Z.column&&V.row===Z.row),xe(r)),ne(([V,Z,q,te])=>({viewport:V,item:Z,gap:q,scrollTop:te}))),M),le(J(wt(xe(w),t,xe(R,KI),xe(D,Vs),xe(p,Vs),xe(k),xe(I),xe(P),xe(O),xe(B)),ye(([,,,,,,,V])=>!V),ne(([V,[Z,q],te,ue,ie,Y,me,,he,ce])=>{const{row:Qe,column:ee}=te,{height:re,width:pe}=ue,{width:He}=ie;if(me===0&&(V===0||He===0))return Im;if(pe===0){const Ui=nh(ce,V),lc=Ui===0?Math.max(me-1,0):Ui;return qI(Am(Ui,lc,Y))}const ct=Sv(He,pe,ee);let Fe,_e;he?Z===0&&q===0&&me>0?(Fe=0,_e=me-1):(Fe=ct*eu((Z+Qe)/(re+Qe)),_e=ct*Rm((q+Qe)/(re+Qe))-1,_e=Pc(V-1,yo(_e,ct-1)),Fe=Pc(_e,yo(0,Fe))):(Fe=0,_e=-1);const jt=Am(Fe,_e,Y),{top:Wt,bottom:zt}=Fm(ie,te,ue,jt),or=Rm(V/ct),_s=or*re+(or-1)*Qe-zt;return{items:jt,offsetTop:Wt,offsetBottom:_s,top:Wt,bottom:zt,itemHeight:re,itemWidth:pe}})),F),le(J(k,ye(V=>V!==null),ne(V=>V.length)),w),le(J(wt(p,D,F,R),ye(([V,Z,{items:q}])=>q.length>0&&Z.height!==0&&V.height!==0),ne(([V,Z,{items:q},te])=>{const{top:ue,bottom:ie}=Fm(V,te,Z,q);return[ue,ie]}),qe(Lo)),n);const H=K(!1);le(J(r,Se(H),ne(([V,Z])=>Z||V!==0)),H);const z=un(J(xe(F),ye(({items:V})=>V.length>0),Se(w,H),ye(([{items:V},Z,q])=>q&&V[V.length-1].index===Z-1),ne(([,V])=>V-1),qe())),X=un(J(xe(F),ye(({items:V})=>V.length>0&&V[0].index===0),Yn(0),qe())),G=un(J(xe(F),Se(P),ye(([{items:V},Z])=>V.length>0&&!Z),ne(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),qe(mv),Wr(0)));le(G,h.scrollSeekRangeChanged),le(J($,Se(p,D,w,R),ne(([V,Z,q,te,ue])=>{const ie=hv(V),{align:Y,behavior:me,offset:he}=ie;let ce=ie.index;ce==="LAST"&&(ce=te-1),ce=yo(0,ce,Pc(te-1,ce));let Qe=Ld(Z,ue,q,ce);return Y==="end"?Qe=$m(Qe-Z.height+q.height):Y==="center"&&(Qe=$m(Qe-Z.height/2+q.height/2)),he&&(Qe+=he),{top:Qe,behavior:me}})),o);const j=Pt(J(F,ne(V=>V.offsetBottom+V.bottom)),0);return le(J(m,ne(V=>({width:V.visibleWidth,height:V.visibleHeight}))),p),{data:k,totalCount:w,viewportDimensions:p,itemDimensions:D,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:$,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:x,useWindowScroll:v,customScrollParent:y,windowScrollContainerState:b,deviation:A,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:I,gap:R,restoreStateFrom:T,...h,initialTopMostItemIndex:B,gridState:F,totalListHeight:j,...d,startReached:X,endReached:z,rangeChanged:G,stateChanged:M,propsReady:f,stateRestoreInProgress:P,...S}},Ke(rh,Ht,ps,bv,ai,ih,ii));function Fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Ld(e,t,n,r[0].index),o=Ld(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Ld(e,t,n,r){const i=Sv(e.width,n.width,t.column),a=eu(r/i),o=a*n.height+yo(0,a-1)*t.row;return o>0?o+t.row:o}function Sv(e,t,n){return yo(1,eu((e+n)/(eu(t)+n)))}const e$=Oe(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(oh),o=K("div"),s=K(Wi),l=(u,c=null)=>Pt(J(t,ne(d=>d[u]),qe()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),t$=Oe(([e,t])=>({...e,...t}),Ke(QI,e$)),n$=C.memo(function(){const t=nt("gridState"),n=nt("listClassName"),r=nt("itemClassName"),i=nt("itemContent"),a=nt("computeItemKey"),o=nt("isSeeking"),s=Tn("scrollHeight"),l=nt("ItemComponent"),u=nt("ListComponent"),c=nt("ScrollSeekPlaceholder"),d=nt("context"),h=Tn("itemDimensions"),f=Tn("gap"),g=nt("log"),m=nt("stateRestoreInProgress"),v=ir(y=>{const b=y.parentElement.parentElement.scrollHeight;s(b);const x=y.firstChild;if(x){const{width:S,height:w}=x.getBoundingClientRect();h({width:S,height:w})}f({row:Pm("row-gap",getComputedStyle(y).rowGap,g),column:Pm("column-gap",getComputedStyle(y).columnGap,g)})});return m?null:C.createElement(u,{ref:v,className:n,...ot(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(y=>{const b=a(y.index,y.data,d);return o?C.createElement(c,{key:b,...ot(c,d),index:y.index,height:t.itemHeight,width:t.itemWidth}):C.createElement(l,{...ot(l,d),className:r,"data-index":y.index,key:b},i(y.index,y.data,d))}))}),r$=C.memo(function(){const t=nt("HeaderComponent"),n=Tn("headerHeight"),r=nt("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=nt("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),i$=C.memo(function(){const t=nt("FooterComponent"),n=Tn("footerHeight"),r=nt("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=nt("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),a$=({children:e})=>{const t=C.useContext(wv),n=Tn("itemDimensions"),r=Tn("viewportDimensions"),i=ir(a=>{r(a.getBoundingClientRect())});return C.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),C.createElement("div",{style:La(!1),ref:i},e)},o$=({children:e})=>{const t=C.useContext(wv),n=Tn("windowViewportRect"),r=Tn("itemDimensions"),i=nt("customScrollParent"),a=ah(n,i);return C.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),C.createElement("div",{ref:a,style:La(!1)},e)},s$=C.memo(function({...t}){const n=nt("useWindowScroll"),r=nt("customScrollParent"),i=r||n?u$:l$,a=r||n?o$:a$;return C.createElement(i,{...t},C.createElement(a,null,C.createElement(r$,null),C.createElement(n$,null),C.createElement(i$,null)))}),{usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev}=qf(t$,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},s$),l$=sh({usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev}),u$=lh({usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev});function Pm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,cn.WARN),t==="normal"?0:parseInt(t??"0",10)}const c$=Oe(()=>{const e=K(l=>C.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(oh),o=K(Wi),s=(l,u=null)=>Pt(J(i,ne(c=>c[l]),qe()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),d$=Oe(([e,t])=>({...e,...t}),Ke(xv,c$)),f$=({height:e})=>C.createElement("tr",null,C.createElement("td",{style:{height:e}})),h$=({height:e})=>C.createElement("tr",null,C.createElement("td",{style:{height:e,padding:0,border:0}})),g$={overflowAnchor:"none"},m$=C.memo(function(){const t=We("listState"),n=kn("sizeRanges"),r=We("useWindowScroll"),i=We("customScrollParent"),a=kn("windowScrollContainerState"),o=kn("scrollContainerState"),s=i||r?a:o,l=We("itemContent"),u=We("trackItemSizes"),c=We("itemSize"),d=We("log"),{callbackRef:h,ref:f}=nv(n,c,u,s,d,void 0,i),[g,m]=C.useState(0);ch("deviation",T=>{g!==T&&(f.current.style.marginTop=`${T}px`,m(T))});const v=We("EmptyPlaceholder"),y=We("ScrollSeekPlaceholder")||f$,b=We("FillerRow")||h$,x=We("TableBodyComponent"),S=We("TableRowComponent"),w=We("computeItemKey"),I=We("isSeeking"),F=We("paddingTopAddition"),p=We("firstItemIndex"),D=We("statefulTotalCount"),$=We("context");if(D===0&&v)return C.createElement(v,ot(v,$));const _=t.offsetTop+F+g,A=t.offsetBottom,k=_>0?C.createElement(b,{height:_,key:"padding-top",context:$}):null,R=A>0?C.createElement(b,{height:A,key:"padding-bottom",context:$}):null,M=t.items.map(T=>{const P=T.originalIndex,B=w(P+p,T.data,$);return I?C.createElement(y,{...ot(y,$),key:B,index:T.index,height:T.size,type:T.type||"item"}):C.createElement(S,{...ot(S,$),...Dv(S,T.data),key:B,"data-index":P,"data-known-size":T.size,"data-item-index":T.index,style:g$},l(T.index,T.data,$))});return C.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...ot(x,$)},[k,...M,R])}),p$=({children:e})=>{const t=C.useContext(ju),n=kn("viewportHeight"),r=kn("fixedItemHeight"),i=ir(Mo(n,a=>Bn(a,"height")));return C.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),C.createElement("div",{style:La(!1),ref:i,"data-viewport-type":"element"},e)},b$=({children:e})=>{const t=C.useContext(ju),n=kn("windowViewportRect"),r=kn("fixedItemHeight"),i=We("customScrollParent"),a=ah(n,i);return C.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),C.createElement("div",{ref:a,style:La(!1),"data-viewport-type":"window"},e)},v$=C.memo(function(t){const n=We("useWindowScroll"),r=We("customScrollParent"),i=kn("fixedHeaderHeight"),a=kn("fixedFooterHeight"),o=We("fixedHeaderContent"),s=We("fixedFooterContent"),l=We("context"),u=ir(Mo(i,b=>Bn(b,"height"))),c=ir(Mo(a,b=>Bn(b,"height"))),d=r||n?C$:x$,h=r||n?b$:p$,f=We("TableComponent"),g=We("TableHeadComponent"),m=We("TableFooterComponent"),v=o?C.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...ot(g,l)},o()):null,y=s?C.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...ot(m,l)},s()):null;return C.createElement(d,{...t},C.createElement(h,null,C.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...ot(f,l)},[v,C.createElement(m$,{key:"TableBody"}),y])))}),{Component:y$,usePublisher:kn,useEmitterValue:We,useEmitter:ch}=qf(d$,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},v$),x$=sh({usePublisher:kn,useEmitterValue:We,useEmitter:ch}),C$=lh({usePublisher:kn,useEmitterValue:We,useEmitter:ch}),w$=y$,D$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),S$=({children:e,...t})=>E.jsx(E.Fragment,{children:C.isValidElement(e)&&E.jsx(E.Fragment,{children:C.cloneElement(e,t)})}),dh=C.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:v="",triggerCalCulateContainer:y="",accumulationHeight:b=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:S=()=>0,context:w={},endReached:I,increaseTotalCount:F=1}=e,[p,D]=C.useState(0),$=()=>{if(o==="min-max"){const k=(a+F)*s;return{height:a>u?l:p>k?p:k}}return o==="container"?{height:p}:{}},_=k=>{var T;const R=k.getAttribute("data-index");let M=((T=k.getBoundingClientRect())==null?void 0:T.height)||0;return f==null||f.forEach(P=>{var B,O;M+=((O=(B=document.querySelector(`[${P}="${R}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:O.height)??0}),M},A=()=>{var k;if(v&&o==="container"){const R=((k=document==null?void 0:document.getElementById(v))==null?void 0:k.offsetHeight)??0;D(R-b)}};return C.useEffect(()=>{const k=setTimeout(A,x);return window==null||window.addEventListener("resize",A),window==null||window.addEventListener("load",A),()=>{clearTimeout(k),window==null||window.removeEventListener("resize",A),window==null||window.removeEventListener("load",A)}},[o,y]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(w$,{context:w,ref:t,overscan:typeof g=="function"?g(o==="container"?p:l):o==="container"?p:l,totalListHeightChanged:k=>o==="min-max"?D(k):null,style:$(),totalCount:a,computeItemKey:r,itemSize:C.useCallback(k=>h==="manual"?i(k):_(k),[]),components:{TableRow:S$,...m},fixedHeaderContent:c,itemContent:(...k)=>d(D$,...k),endReached:I,increaseViewportBy:S(o==="container"?p:l)})})});dh.displayName="TableVirtualization";const E$="_sorting_1tyuq_45",Rn={"payhere-reguler":"_payhere-reguler_1tyuq_1","laba-small":"_laba-small_1tyuq_1","laba-reguler":"_laba-reguler_1tyuq_1","pointer-laba":"_pointer-laba_1tyuq_16","pointer-payhere":"_pointer-payhere_1tyuq_20","resize-menu":"_resize-menu_1tyuq_24",sorting:E$,"laba-grey-02":"_laba-grey-02_1tyuq_59"},ta="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function _$(e,t=null){const[n,r]=C.useState(!1);return C.useEffect(()=>{let i=null,a=null;const o=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const I$=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=C.useState(t(n)),[a,o]=C.useState(e.running??!1),[s,l]=C.useState(()=>e==null?void 0:e.callbackDone);return C.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function _v(e,t=0){const n=C.useRef({promise:null,resolve:null,reject:null,timeout:null});return C.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const fh=typeof window<"u"?C.useLayoutEffect:C.useEffect,$$=(e,t)=>{const[n,r]=C.useState({width:0,height:0}),[i,a]=C.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=C.useRef(null);return fh(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:v,bottom:y,right:b,x,y:S}=h.contentRect;a({width:f,height:g,top:m,left:v,bottom:y,right:b,x,y:S})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:o,windowSize:n,contentRect:i}};function R$(e){const[t,n]=C.useState(e),r=C.useRef(t);return C.useEffect(()=>{r.current=t},[t]),[t,n,r]}function A$(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function F$(...e){return t=>{e.forEach(n=>{A$(n,t)})}}function hh(...e){return C.useMemo(()=>F$(...e),e)}function gh(e){const t=C.useRef(e);return Ff(e,t.current)||(t.current=e),t.current}function Mi(e,t){const n=t.map(gh);C.useEffect(e,n)}function P$({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){C.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const T$=({containerRef:e,children:t,columnCount:n,gapX:r,gapY:i,direction:a="masonry-ltr",debounceRecalculate:o=500,durationAnimation:s=500,enableAnimation:l=!1})=>{const u=C.useCallback(()=>{const d=e.current;if(!d)return;const h=Array.from(d.children);if(h.length===0){d.style.height="0px";return}const f=Array(n).fill(0),g=d.offsetWidth;if(g===0)return;const m=(g-(n-1)*r)/n,v=a.includes("rtl"),y=a.includes("top-down");h.forEach((x,S)=>{x.style.width=`${m}px`,x.style.position="absolute",l&&(x.style.transition=`top ${s}ms ease, left ${s}ms ease`);let w;if(y)w=S%n;else{const p=Math.min(...f);w=f.indexOf(p)}const I=f[w];let F;v?F=g-(m*(w+1)+r*w):F=w*(m+r),x.style.top=`${I}px`,x.style.left=`${F}px`,f[w]+=x.offsetHeight+i});const b=Math.max(...f);d.style.height=`${b-i}px`},[e,n,r,a,i]),c=_v(async()=>{u()},o);return C.useLayoutEffect(()=>{u()},[t,u]),C.useEffect(()=>(window.addEventListener("load",u),window.addEventListener("resize",c),()=>{window.removeEventListener("load",u),window.removeEventListener("resize",c)}),[t,c,u]),{recalculateLayout:u}},k$=(e,t)=>{var r,i;let n={};return e&&(n={position:"sticky",top:0,zIndex:2}),(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},tu=(e,t=!1)=>{const n=e.getIsPinned(),r=n==="left"&&e.getIsLastColumn("left"),i=n==="right"&&e.getIsFirstColumn("right");return n?{boxShadow:r?"-4px 0 4px -4px gray inset":i?"4px 0 4px -4px gray inset":void 0,left:n==="left"?`${e.getStart("left")}px`:void 0,right:n==="right"?`${e.getAfter("right")}px`:void 0,position:"sticky",width:e.getSize(),zIndex:1,background:t?"white":""}:{}},Iv=e=>{const t=e.columnPinning.left||[],n=e.columnPinning.right||[],r=e.rowPinning.top||[],i=e.rowPinning.bottom||[];return{left:t,right:n,top:r,bottom:i,isPinning:t.length>0||n.length>0||r.length>0||i.length>0}},rn=()=>({kind:{"payhere-reguler":Rn["payhere-reguler"],"laba-reguler":Rn["laba-reguler"],"laba-small":Rn["laba-small"]},pointer:{"payhere-reguler":Rn["pointer-payhere"],"laba-reguler":Rn["pointer-laba"],"laba-small":Rn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Rn["laba-grey-02"]}}),M$=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>E.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:E.jsxs("table",{className:n,style:{width:Iv(e.getState()).isPinning?e.getTotalSize():""},children:[E.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>E.jsx("tr",{children:g.headers.map(m=>{var y,b,x,S;const v=(b=(y=m.column.columnDef.meta)==null?void 0:y.rowSpan)==null?void 0:b.call(y,m);return!m.isPlaceholder&&v!==void 0&&m.id===m.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{style:{...k$(s,m),...tu(m.column)},colSpan:typeof((x=m.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(S=m.column.columnDef.meta)==null?void 0:S.colSpan(m.column.columnDef):m.colSpan,rowSpan:v,children:[m.isPlaceholder&&v===void 0?null:E.jsxs("div",{className:m.column.getCanSort()?Rn.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[ko(m.column.columnDef.header,m.getContext()),m.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:m.column.getIsSorted()==="asc"||m.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[m.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:u}),m.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:c})]}):E.jsx(E.Fragment,{})})]}),m.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>m.column.resetSize(),onMouseDown:m.getResizeHandler(),onTouchStart:m.getResizeHandler(),className:Rn["resize-menu"]})]},m.id)})},g.id))}),E.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>E.jsxs(C.Fragment,{children:[E.jsx("tr",{onClick:v=>{v.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:o(g),children:g.getVisibleCells().map(v=>{var y,b,x;return E.jsx("td",{style:{...typeof((y=v.column.columnDef.meta)==null?void 0:y.styleTd)=="function"?v.column.columnDef.meta.styleTd(g.original,g):{},...tu(v.column,!0)},className:typeof((b=v.column.columnDef.meta)==null?void 0:b.classNameTd)=="function"?(x=v.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:ko(v.column.columnDef.cell,v.getContext())},v.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&E.jsx("tr",{children:E.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&C.isValidElement(h)&&E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),$v=C.forwardRef((e,t)=>{const{context:n,...r}=e;return E.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});$v.displayName="VirtualizationHead";const B$=({style:e,context:t,...n})=>E.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),O$=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var m,v,y;const[f,g]=C.useState(0);return E.jsx(dh,{context:{headerId:a,classNameTable:s,width:Iv(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((v=e.getRowModel().rows)==null?void 0:v.length)||0,typeCalculateItemSize:"auto",component:{TableHead:$v,Table:B$,EmptyPlaceholder:()=>E.jsx("tbody",{ref:b=>{var x;return g(((x=b==null?void 0:b.getBoundingClientRect())==null?void 0:x.height)??0)},children:E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:C.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(b=>E.jsx("tr",{children:b.headers.map(x=>{var w,I,F,p;const S=(I=(w=x.column.columnDef.meta)==null?void 0:w.rowSpan)==null?void 0:I.call(w,x);return!x.isPlaceholder&&S!==void 0&&x.id===x.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{colSpan:x.colSpan,rowSpan:S,style:{...typeof((F=x.column.columnDef.meta)==null?void 0:F.styleTh)=="function"?(p=x.column.columnDef.meta)==null?void 0:p.styleTh(x.column.columnDef):{},...tu(x.column)},children:[x.isPlaceholder&&S===void 0?null:E.jsxs("div",{className:x.column.getCanSort()?Rn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[ko(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[x.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:u})]}):E.jsx(E.Fragment,{})})]}),x.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:Rn["resize-menu"]})]},x.id)})},b.id)),itemContent:(b,x)=>{var w,I;const S=(I=(w=e.getRowModel())==null?void 0:w.rows)==null?void 0:I[x];return E.jsx(b,{children:({...F})=>E.jsxs(C.Fragment,{children:[E.jsx("tr",{...F,onClick:p=>{p.stopPropagation(),r&&typeof n=="function"&&n(S.original,S)},className:r?c:"",id:o(S),children:S.getVisibleCells().map(p=>{var D,$,_;return E.jsx(E.Fragment,{children:E.jsx("td",{style:{...typeof((D=p.column.columnDef.meta)==null?void 0:D.styleTd)=="function"?p.column.columnDef.meta.styleTd(S.original,S):{},...tu(p.column,!0)},className:typeof(($=p.column.columnDef.meta)==null?void 0:$.classNameTd)=="function"?(_=p.column.columnDef.meta)==null?void 0:_.classNameTd(S.original,S):"",children:ko(p.column.columnDef.cell,p.getContext())},p.id)})})}),S.getIsExpanded()&&typeof h=="function"&&E.jsx("tr",{"data-sub-component":x,children:E.jsx("td",{colSpan:S.getVisibleCells().length,children:h(S.original,S)})})]},S.id)},S.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((y=e.getRowModel().rows)==null?void 0:y.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},N$=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:v,variant:y,renderSubComponent:b})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const S=document.querySelector(`[data-calculate-height-header="${d}"]`);let w=0;const I=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return I==null||I.forEach(F=>{w+=F.offsetHeight}),w>c?c+S.offsetHeight:0}return c};return Mi(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),E.jsxs(E.Fragment,{children:[!o&&E.jsx(M$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${rn().kind[h]} ${y?rn().variant[y]:""}
|
74
|
+
*/function ko(e,t){return e?B_(e)?W.createElement(e,t):e:null}function B_(e){return O_(e)||typeof e=="function"||N_(e)}function O_(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function N_(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function V_(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=W.useState(()=>({current:q1(t)})),[r,i]=W.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const L_=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:_1,ColumnFiltering:M1,ColumnGrouping:B1,ColumnOrdering:N1,ColumnPinning:V1,ColumnSizing:L1,ColumnVisibility:j1,GlobalFaceting:W1,GlobalFiltering:z1,Headers:E1,RowExpanding:G1,RowPagination:Z1,RowPinning:X1,RowSelection:Y1,RowSorting:J1,_getVisibleLeafColumns:pa,aggregationFns:yl,buildHeaderGroups:ro,createCell:D1,createColumn:S1,createColumnHelper:o_,createRow:gs,createTable:q1,defaultColumnSizing:io,expandRows:Yf,filterFns:Zn,flattenBy:Gf,flexRender:ko,functionalUpdate:xr,getCoreRowModel:S_,getExpandedRowModel:E_,getFacetedMinMaxValues:__,getFacetedRowModel:R_,getFacetedUniqueValues:A_,getFilteredRowModel:F_,getGroupedRowModel:P_,getMemoOptions:se,getPaginationRowModel:k_,getSortedRowModel:M_,isFunction:hs,isNumberArray:w1,isRowSelected:Ou,isSubRowSelected:Ul,makeStateUpdater:Kt,memo:oe,noop:s_,orderColumns:O1,passiveEventSupported:H1,reSplitAlphaNumeric:Jl,selectRowsFn:xl,shouldAutoRemoveFilter:Pd,sortingFns:ca,useReactTable:V_},Symbol.toStringTag,{value:"Module"})),Nu=0,ri=1,Va=2,Q1=4;function Mo(e,t){return n=>e(t(n))}function H_(e,t){return t(e)}function ev(e,t){return n=>e(t,n)}function gm(e,t){return()=>e(t)}function Vu(e,t){return t(e),e}function Ke(...e){return e}function j_(e){e()}function mm(e){return()=>e}function W_(...e){return()=>{e.map(j_)}}function Uf(e){return e!==void 0}function Wi(){}function Ze(e,t){return e(ri,t)}function De(e,t){e(Nu,t)}function Jf(e){e(Va)}function Ft(e){return e(Q1)}function le(e,t){return Ze(e,ev(t,Nu))}function rr(e,t){const n=e(ri,r=>{n(),t(r)});return n}function Te(){const e=[];return(t,n)=>{switch(t){case Va:e.splice(0,e.length);return;case ri:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case Nu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=Te();return(r,i)=>{switch(r){case ri:i(t);break;case Nu:t=i;break;case Q1:return t}return n(r,i)}}function z_(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case ri:return a?n===a?void 0:(r(),n=a,t=Ze(e,a),t):(r(),Wi);case Va:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function un(e){return Vu(Te(),t=>le(e,t))}function Pt(e,t){return Vu(K(t),n=>le(e,n))}function G_(...e){return t=>e.reduceRight(H_,t)}function J(e,...t){const n=G_(...t);return(r,i)=>{switch(r){case ri:return Ze(e,n(i));case Va:Jf(e);return}}}function tv(e,t){return e===t}function qe(e=tv){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function ye(e){return t=>n=>{e(n)&&t(n)}}function ne(e){return t=>Mo(t,e)}function Yn(e){return t=>()=>t(e)}function Jn(e,t){return n=>r=>n(t=e(t,r))}function $a(e){return t=>n=>{e>0?e--:t(n)}}function Wr(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function pm(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Se(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Ze(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function bm(...e){return function(t,n){switch(t){case ri:return W_(...e.map(r=>Ze(r,n)));case Va:return;default:throw new Error(`unrecognized action ${t}`)}}}function xe(e,t=tv){return J(e,qe(t))}function wt(...e){const t=Te(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);Ze(a,l=>{n[o]=l,r=r|s,r===i&&De(t,n)})}),function(a,o){switch(a){case ri:return r===i&&o(n),Ze(t,o);case Va:return Jf(t);default:throw new Error(`unrecognized action ${a}`)}}}function Oe(e,t=[],{singleton:n}={singleton:!0}){return{id:Z_(),constructor:e,dependencies:t,singleton:n}}const Z_=()=>Symbol();function X_(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function Y_(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const Ns=typeof document<"u"?C.useLayoutEffect:C.useEffect;function qf(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=C.createContext({});function l(y,b){y.propsReady&&De(y.propsReady,!1);for(const x of r){const S=y[t.required[x]];De(S,b[x])}for(const x of i)if(x in b){const S=y[t.optional[x]];De(S,b[x])}y.propsReady&&De(y.propsReady,!0)}function u(y){return a.reduce((b,x)=>(b[x]=S=>{const w=y[t.methods[x]];De(w,S)},b),{})}function c(y){return o.reduce((b,x)=>(b[x]=z_(y[t.events[x]]),b),{})}const d=C.forwardRef((y,b)=>{const{children:x,...S}=y,[w]=C.useState(()=>Vu(X_(e),F=>l(F,S))),[_]=C.useState(gm(c,w));return Ns(()=>{for(const F of o)F in S&&Ze(_[F],S[F]);return()=>{Object.values(_).map(Jf)}},[S,_,w]),Ns(()=>{l(w,S)}),C.useImperativeHandle(b,mm(u(w))),C.createElement(s.Provider,{value:w},n?C.createElement(n,Y_([...r,...i,...o],S),x):x)}),h=y=>C.useCallback(ev(De,C.useContext(s)[y]),[y]),f=y=>{const x=C.useContext(s)[y],S=C.useCallback(w=>Ze(x,w),[x]);return C.useSyncExternalStore(S,()=>Ft(x),()=>Ft(x))},g=y=>{const x=C.useContext(s)[y],[S,w]=C.useState(gm(Ft,x));return Ns(()=>Ze(x,_=>{_!==S&&w(mm(_))}),[x,S]),S},m=C.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(y,b)=>{const S=C.useContext(s)[y];Ns(()=>Ze(S,b),[b,S])}}}const U_=typeof document<"u"?C.useLayoutEffect:C.useEffect,J_=U_;var cn=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(cn||{});const q_={0:"debug",1:"log",2:"warn",3:"error"},K_=()=>typeof globalThis>"u"?window:globalThis,ii=Oe(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=K_().VIRTUOSO_LOG_LEVEL)!=null?a:Ft(e);i>=o&&console[q_[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Kf(e,t=!0){const n=C.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=C.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function ir(e,t=!0){return Kf(e,t).callbackRef}function nv(e,t,n,r,i,a,o){const s=C.useCallback(l=>{const u=Q_(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(eI("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return Kf(s,n)}function Q_(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},cn.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function eI(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,cn.WARN),t==="normal"?0:parseInt(t??"0",10)}function Bn(e,t){return Math.round(e.getBoundingClientRect()[t])}function rv(e,t){return Math.abs(e-t)<1.01}function iv(e,t,n,r=Wi,i){const a=C.useRef(null),o=C.useRef(null),s=C.useRef(null),l=C.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,v=f?window.innerHeight:h.offsetHeight,y=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:v})};d.suppressFlushSync?y():Oa.flushSync(y),o.current!==null&&(g===o.current||g<=0||g===m-v)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);C.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,v;h===window?(m=Math.max(Bn(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,v=document.documentElement.scrollTop):(m=h.scrollHeight,g=Bn(h,"height"),v=h.scrollTop);const y=m-g;if(d.top=Math.ceil(Math.max(Math.min(y,d.top),0)),rv(g,m)||d.top===v){e({scrollTop:v,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Ht=Oe(()=>{const e=Te(),t=Te(),n=K(0),r=Te(),i=K(0),a=Te(),o=Te(),s=K(0),l=K(0),u=K(0),c=K(0),d=Te(),h=Te(),f=K(!1);return le(J(e,ne(({scrollTop:g})=>g)),t),le(J(e,ne(({scrollHeight:g})=>g)),o),le(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),Bo={lvl:0};function av(e,t,n,r=Bo,i=Bo){return{k:e,v:t,lvl:n,l:r,r:i}}function Ye(e){return e===Bo}function ba(){return Bo}function Bd(e,t){if(Ye(e))return Bo;const{k:n,l:r,r:i}=e;if(t===n){if(Ye(r))return i;if(Ye(i))return r;{const[a,o]=ov(r);return Cl(bt(e,{k:a,v:o,l:sv(r)}))}}else return t<n?Cl(bt(e,{l:Bd(r,t)})):Cl(bt(e,{r:Bd(i,t)}))}function Oo(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?Oo(e.l,t):Oo(e.r,t)}function On(e,t,n="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=On(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return On(e.l,t,n)}function on(e,t,n){return Ye(e)?av(t,n,1):t===e.k?bt(e,{k:t,v:n}):t<e.k?vm(bt(e,{l:on(e.l,t,n)})):vm(bt(e,{r:on(e.r,t,n)}))}function Od(e,t,n){if(Ye(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Od(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Od(o,t,n))),s}function Di(e){return Ye(e)?[]:[...Di(e.l),{k:e.k,v:e.v},...Di(e.r)]}function ov(e){return Ye(e.r)?[e.k,e.v]:ov(e.r)}function sv(e){return Ye(e.r)?e.l:Cl(bt(e,{r:sv(e.r)}))}function bt(e,t){return av(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function Rc(e){return Ye(e)||e.lvl>e.r.lvl}function vm(e){return Nd(uv(e))}function Cl(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(Rc(t))return uv(bt(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return bt(t.r,{l:bt(t,{r:t.r.l}),r:bt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(Rc(e))return Nd(bt(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const i=n.l,a=Rc(i)?n.lvl-1:n.lvl;return bt(i,{l:bt(e,{r:i.l,lvl:r-1}),r:Nd(bt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function Lu(e,t,n){if(Ye(e))return[];const r=On(e,t)[0];return tI(Od(e,r,n))}function lv(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function tI(e){return lv(e,({k:t,v:n})=>({index:t,value:n}))}function Nd(e){const{r:t,lvl:n}=e;return!Ye(t)&&!Ye(t.r)&&t.lvl===n&&t.r.lvl===n?bt(t,{l:bt(e,{r:t.l}),lvl:n+1}):e}function uv(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?bt(t,{r:bt(e,{l:t.r})}):e}function ql(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function cv(e,t,n){return e[ql(e,t,n)]}function nI(e,t,n,r){const i=ql(e,t,r),a=ql(e,n,r,i);return e.slice(i,a+1)}const Qf=Oe(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function rI(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function ym(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function iI(e,t){let n=Ye(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ye(e)){e=on(e,0,i);continue}const s=Lu(e,a-1,o+1);if(s.some(rI(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=Bd(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=on(e,o+1,h));u&&(e=on(e,a,i))}return[e,n]}function aI(){return{offsetTree:[],sizeTree:ba(),groupOffsetTree:ba(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function eh({index:e},t){return t===e?0:t<e?-1:1}function oI({offset:e},t){return t===e?0:t<e?-1:1}function sI(e){return{index:e.index,value:e}}function lI(e,t,n,r=0){return r>0&&(t=Math.max(t,cv(e,r,eh).offset)),lv(nI(e,t,n,oI),sI)}function Vd(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=ql(i,t-1,eh),s=i[l].offset;const c=On(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===On(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of Lu(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function uI(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,cn.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ye(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,m)=>on(on(g,m,h),m+1,f),o)}else[o,s]=iI(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Vd(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>on(h,f,No(f,l,i)),ba()),groupIndices:n}}function No(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=cv(t,e,eh),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function cI(e){return typeof e.groupIndex<"u"}function dv(e,t,n){if(cI(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=fv(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function fv(e,t){if(!Hu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Hu(e){return!Ye(e.groupOffsetTree)}function dI(e){return Di(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const fI={offsetHeight:"height",offsetWidth:"width"},ar=Oe(([{log:e},{recalcInProgress:t}])=>{const n=Te(),r=Te(),i=Pt(r,0),a=Te(),o=Te(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((w,_)=>Bn(w,fI[_])),h=K(void 0),f=K(0),g=aI(),m=Pt(J(n,Se(l,e,f),Jn(uI,g),qe()),g),v=Pt(J(l,qe(),Jn((w,_)=>({prev:w.current,current:_}),{prev:[],current:[]}),ne(({prev:w})=>w)),[]);le(J(l,ye(w=>w.length>0),Se(m,f),ne(([w,_,F])=>{const p=w.reduce((D,$,I)=>on(D,$,No($,_.offsetTree,F)||I),ba());return{..._,groupIndices:w,groupOffsetTree:p}})),m),le(J(r,Se(m),ye(([w,{lastIndex:_}])=>w<_),ne(([w,{lastIndex:_,lastSize:F}])=>[{startIndex:w,endIndex:_,size:F}])),n),le(u,c);const y=Pt(J(u,ne(w=>w===void 0)),!0);le(J(c,ye(w=>w!==void 0&&Ye(Ft(m).sizeTree)),ne(w=>[{startIndex:0,endIndex:0,size:w}])),n);const b=un(J(n,Se(m),Jn(({sizes:w},[_,F])=>({changed:F!==w,sizes:F}),{changed:!1,sizes:g}),ne(w=>w.changed)));Ze(J(s,Jn((w,_)=>({diff:w.prev-_,prev:_}),{diff:0,prev:0}),ne(w=>w.diff)),w=>{const{groupIndices:_}=Ft(m);if(w>0)De(t,!0),De(a,w+ym(w,_));else if(w<0){const F=Ft(v);F.length>0&&(w-=ym(-w,F)),De(o,w)}}),Ze(J(s,Se(e)),([w,_])=>{w<0&&_("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},cn.ERROR)});const x=un(a);le(J(a,Se(m),ne(([w,_])=>{const F=_.groupIndices.length>0,p=[],D=_.lastSize;if(F){const $=Oo(_.sizeTree,0);let I=0,A=0;for(;I<w;){const M=_.groupIndices[A],T=_.groupIndices.length===A+1?1/0:_.groupIndices[A+1]-M-1;p.push({startIndex:M,endIndex:M,size:$}),p.push({startIndex:M+1,endIndex:M+1+T-1,size:D}),A++,I+=T+1}const k=Di(_.sizeTree);return I!==w&&k.shift(),k.reduce((M,{k:T,v:P})=>{let B=M.ranges;return M.prevSize!==0&&(B=[...M.ranges,{startIndex:M.prevIndex,endIndex:T+w-1,size:M.prevSize}]),{ranges:B,prevIndex:T+w,prevSize:P}},{ranges:p,prevIndex:w,prevSize:0}).ranges}return Di(_.sizeTree).reduce(($,{k:I,v:A})=>({ranges:[...$.ranges,{startIndex:$.prevIndex,endIndex:I+w-1,size:$.prevSize}],prevIndex:I+w,prevSize:A}),{ranges:[],prevIndex:0,prevSize:D}).ranges})),n);const S=un(J(o,Se(m,f),ne(([w,{offsetTree:_},F])=>{const p=-w;return No(p,_,F)})));return le(J(o,Se(m,f),ne(([w,_,F])=>{if(_.groupIndices.length>0){if(Ye(_.sizeTree))return _;let D=ba();const $=Ft(v);let I=0,A=0,k=0;for(;I<-w;){k=$[A];const M=$[A+1]-k-1;A++,I+=M+1}if(D=Di(_.sizeTree).reduce((M,{k:T,v:P})=>on(M,Math.max(0,T+w),P),D),I!==-w){const M=Oo(_.sizeTree,k);D=on(D,0,M);const T=On(_.sizeTree,-w+1)[1];D=on(D,1,T)}return{..._,sizeTree:D,...Vd(_.offsetTree,0,D,F)}}else{const D=Di(_.sizeTree).reduce(($,{k:I,v:A})=>on($,Math.max(0,I+w),A),ba());return{..._,sizeTree:D,...Vd(_.offsetTree,0,D,F)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:S,beforeUnshiftWith:x,firstItemIndex:s,gap:f,sizes:m,listRefresh:b,statefulTotalCount:i,trackItemSizes:y,itemSize:d}},Ke(ii,Qf),{singleton:!0}),hI=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function hv(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!hI)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const ms=Oe(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Te(),g=Te(),m=K(0);let v=null,y=null,b=null;function x(){v&&(v(),v=null),b&&(b(),b=null),y&&(clearTimeout(y),y=null),De(i,!1)}return le(J(f,Se(e,a,t,m,l,u,h),Se(r,c,d),ne(([[S,w,_,F,p,D,$,I],A,k,R])=>{const M=hv(S),{align:T,behavior:P,offset:B}=M,O=F-1,L=dv(M,w,O);let H=No(L,w.offsetTree,A)+D;T==="end"?(H+=k+On(w.sizeTree,L)[1]-_+R,L===O&&(H+=$)):T==="center"?H+=(k+On(w.sizeTree,L)[1]-_+R)/2:H-=p,B&&(H+=B);const z=X=>{x(),X?(I("retrying to scroll to",{location:S},cn.DEBUG),De(f,S)):(De(g,!0),I("list did not change, scroll successful",{},cn.DEBUG))};if(x(),P==="smooth"){let X=!1;b=Ze(n,G=>{X=X||G}),v=rr(s,()=>{z(X)})}else v=rr(J(n,gI(150)),z);return y=setTimeout(()=>{x()},1200),De(i,!0),I("scrolling from index to",{index:L,top:H,behavior:P},cn.DEBUG),{top:H,behavior:P}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ke(ar,Ht,ii),{singleton:!0});function gI(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const Vo="up",vo="down",mI="none",pI={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},bI=0,ps=Oe(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=Te(),u=Te(),c=K(4),d=K(bI),h=Pt(J(bm(J(xe(t),$a(1),Yn(!0)),J(xe(t),$a(1),Yn(!1),pm(100))),qe()),!1),f=Pt(J(bm(J(a,Yn(!0)),J(a,Yn(!1),pm(200))),qe()),!1);le(J(wt(xe(t),xe(d)),ne(([b,x])=>b<=x),qe()),s),le(J(s,Wr(50)),u);const g=un(J(wt(e,xe(n),xe(r),xe(i),xe(c)),Jn((b,[{scrollTop:x,scrollHeight:S},w,_,F,p])=>{const D=x+w-S>-p,$={viewportHeight:w,scrollTop:x,scrollHeight:S};if(D){let A,k;return x>b.state.scrollTop?(A="SCROLLED_DOWN",k=b.state.scrollTop-x):(A="SIZE_DECREASED",k=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:$,atBottomBecause:A,scrollTopDelta:k}}let I;return $.scrollHeight>b.state.scrollHeight?I="SIZE_INCREASED":w<b.state.viewportHeight?I="VIEWPORT_HEIGHT_DECREASING":x<b.state.scrollTop?I="SCROLLING_UPWARDS":I="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:I,state:$}},pI),qe((b,x)=>b&&b.atBottom===x.atBottom))),m=Pt(J(e,Jn((b,{scrollTop:x,scrollHeight:S,viewportHeight:w})=>{if(rv(b.scrollHeight,S))return{scrollTop:x,scrollHeight:S,jump:0,changed:!1};{const _=S-(x+w)<1;return b.scrollTop!==x&&_?{scrollHeight:S,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:S,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),ye(b=>b.changed),ne(b=>b.jump)),0);le(J(g,ne(b=>b.atBottom)),o),le(J(o,Wr(50)),l);const v=K(vo);le(J(e,ne(({scrollTop:b})=>b),qe(),Jn((b,x)=>Ft(f)?{direction:b.direction,prevScrollTop:x}:{direction:x<b.prevScrollTop?Vo:vo,prevScrollTop:x},{direction:vo,prevScrollTop:0}),ne(b=>b.direction)),v),le(J(e,Wr(50),Yn(mI)),v);const y=K(0);return le(J(h,ye(b=>!b),Yn(0)),y),le(J(t,Wr(100),Se(h),ye(([b,x])=>!!x),Jn(([b,x],[S])=>[x,S],[0,0]),ne(([b,x])=>x-b)),y),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:v,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:y,lastJumpDueToItemResize:m}},Ke(Ht)),ai=Oe(([{log:e}])=>{const t=K(!1),n=un(J(t,ye(r=>r),qe()));return Ze(t,r=>{r&&Ft(e)("props updated",{},cn.DEBUG)}),{propsReady:t,didMount:n}},Ke(ii),{singleton:!0});function th(e,t){e==0?t():requestAnimationFrame(()=>th(e-1,t))}function nh(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const bs=Oe(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=K(!0),l=K(0),u=K(!0);return le(J(o,Se(l),ye(([c,d])=>!!d),Yn(!1)),s),le(J(o,Se(l),ye(([c,d])=>!!d),Yn(!1)),u),Ze(J(wt(t,o),Se(s,e,n,u),ye(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ye(h)||Uf(f))&&!d&&!g),Se(l)),([,c])=>{rr(a,()=>{De(u,!0)}),th(4,()=>{rr(r,()=>{De(s,!0)}),De(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(ar,Ht,ms,ai),{singleton:!0});function xm(e){return e?e==="smooth"?"smooth":"auto":!1}const vI=(e,t)=>typeof e=="function"?xm(e(t)):t&&xm(e),yI=Oe(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=K(!1),d=Te();let h=null;function f(m){De(i,{index:"LAST",align:"end",behavior:m})}Ze(J(wt(J(xe(e),$a(1)),s),Se(xe(c),n,a,u),ne(([[m,v],y,b,x,S])=>{let w=v&&x,_="auto";return w&&(_=vI(y,b||S),w=w&&!!_),{totalCount:m,shouldFollow:w,followOutputBehavior:_}}),ye(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:v})=>{h&&(h(),h=null),h=rr(t,()=>{Ft(l)("following output to ",{totalCount:m},cn.DEBUG),f(v),h=null})});function g(m){const v=rr(r,y=>{m&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Ft(l)("scrolling to bottom due to increased size",{},cn.DEBUG),f("auto"))});setTimeout(v,100)}return Ze(J(wt(xe(c),e,o),ye(([m,,v])=>m&&v),Jn(({value:m},[,v])=>({refreshed:m===v,value:v}),{refreshed:!1,value:0}),ye(({refreshed:m})=>m),Se(c,e)),([,m])=>{Ft(a)&&g(m!==!1)}),Ze(d,()=>{g(Ft(c)!==!1)}),Ze(wt(xe(c),r),([m,v])=>{m&&!v.atBottom&&v.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(ar,ps,ms,bs,ai,ii,Ht));function xI(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const gv=Oe(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Te(),o=Te(),s=un(J(a,ne(xI)));return le(J(s,ne(l=>l.totalCount)),e),le(J(s,ne(l=>l.groupIndices)),t),le(J(wt(r,n,i),ye(([l,u])=>Hu(u)),ne(([l,u,c])=>On(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),qe(),ne(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(ar,Ht));function Lo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function mv(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Kl="top",Ql="bottom",Cm="none";function wm(e,t,n){return typeof e=="number"?n===Vo&&t===Kl||n===vo&&t===Ql?e:0:n===Vo?t===Kl?e.main:e.reverse:t===Ql?e.main:e.reverse}function Dm(e,t){return typeof e=="number"?e:e[t]||0}const rh=Oe(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Te(),o=K(0),s=K(0),l=K(0),u=Pt(J(wt(xe(e),xe(t),xe(r),xe(a,Lo),xe(l),xe(o),xe(i),xe(n),xe(s)),ne(([c,d,h,[f,g],m,v,y,b,x])=>{const S=c-b,w=v+y,_=Math.max(h-S,0);let F=Cm;const p=Dm(x,Kl),D=Dm(x,Ql);return f-=b,f+=h+y,g+=h+y,g-=b,f>c+w-p&&(F=Vo),g<c-_+d+D&&(F=vo),F!==Cm?[Math.max(S-h-wm(m,Kl,F)-p,0),S-_-y+d+wm(m,Ql,F)+D]:null}),ye(c=>c!=null),qe(Lo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Ht),{singleton:!0});function CI(e,t,n){if(Hu(t)){const r=fv(e,t);return[{index:On(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Ac={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Sm(e,t,n){if(e.length===0)return[];if(!Hu(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=Lu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function wl(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:Sm(e,i,a),topItems:Sm(t,i,a),topListHeight:t.reduce((m,v)=>v.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function pv(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=nh(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return wl(u,[],s,i,n,r)}const zi=Oe(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=K([]),v=K(0),y=Te();le(a.topItemsIndexes,m);const b=Pt(J(wt(f,g,xe(o,Lo),xe(t),xe(e),xe(c),u,xe(m),xe(r),xe(i),n),ye(([_,F,,p,,,,,,,D])=>{const $=D&&D.length!==p;return _&&!F&&!$}),ne(([,,[_,F],p,D,$,I,A,k,R,M])=>{const T=D,{sizeTree:P,offsetTree:B}=T,O=Ft(v);if(p===0)return{...Ac,totalCount:p};if(_===0&&F===0)return O===0?{...Ac,totalCount:p}:pv(O,$,D,k,R,M||[]);if(Ye(P))return O>0?null:wl(CI(nh($,p),T,M),[],p,R,T,k);const L=[];if(A.length>0){const j=A[0],V=A[A.length-1];let Z=0;for(const q of Lu(P,j,V)){const te=q.value,ue=Math.max(q.start,j),ie=Math.min(q.end,V);for(let Y=ue;Y<=ie;Y++)L.push({index:Y,size:te,offset:Z,data:M&&M[Y]}),Z+=te}}if(!I)return wl([],L,p,R,T,k);const H=A.length>0?A[A.length-1]+1:0,z=lI(B,_,F,H);if(z.length===0)return null;const X=p-1,G=Vu([],j=>{for(const V of z){const Z=V.value;let q=Z.offset,te=V.start;const ue=Z.size;if(Z.offset<_){te+=Math.floor((_-Z.offset+R)/(ue+R));const Y=te-V.start;q+=Y*ue+Y*R}te<H&&(q+=(H-te)*ue,te=H);const ie=Math.min(V.end,X);for(let Y=te;Y<=ie&&!(q>=F);Y++)j.push({index:Y,size:ue,offset:q,data:M&&M[Y]}),q+=ue+R}});return wl(G,L,p,R,T,k)}),ye(_=>_!==null),qe()),Ac);le(J(n,ye(Uf),ne(_=>_==null?void 0:_.length)),t),le(J(b,ne(_=>_.topListHeight)),d),le(d,l),le(J(b,ne(_=>[_.top,_.bottom])),s),le(J(b,ne(_=>_.items)),y);const x=un(J(b,ye(({items:_})=>_.length>0),Se(t,n),ye(([{items:_},F])=>_[_.length-1].originalIndex===F-1),ne(([,_,F])=>[_-1,F]),qe(Lo),ne(([_])=>_))),S=un(J(b,Wr(200),ye(({items:_,topItems:F})=>_.length>0&&_[0].originalIndex===F.length),ne(({items:_})=>_[0].index),qe())),w=un(J(b,ye(({items:_})=>_.length>0),ne(({items:_})=>{let F=0,p=_.length-1;for(;_[F].type==="group"&&F<p;)F++;for(;_[p].type==="group"&&p>F;)p--;return{startIndex:_[F].index,endIndex:_[p].index}}),qe(mv)));return{listState:b,topItemsIndexes:m,endReached:x,startReached:S,rangeChanged:w,itemsRendered:y,initialItemCount:v,...h}},Ke(ar,gv,rh,bs,ms,ps,ai,Qf),{singleton:!0}),wI=Oe(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(le(J(s,Se(a),ye(([,l])=>l!==0),Se(i,e,t,r,n),ne(([[,l],u,c,d,h,f=[]])=>pv(l,u,c,d,h,f))),o),{}),Ke(ar,bs,zi,ai),{singleton:!0}),bv=Oe(([{scrollVelocity:e}])=>{const t=K(!1),n=Te(),r=K(!1);return le(J(e,Se(r,t,n),ye(([i,a])=>!!a),ne(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),qe()),t),Ze(J(wt(t,e,n),Se(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(ps),{singleton:!0}),DI=Oe(([{topItemsIndexes:e}])=>{const t=K(0);return le(J(t,ye(n=>n>0),ne(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(zi)),vv=Oe(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Te(),o=Pt(J(wt(e,r,t,n,i),ne(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return le(xe(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Ht,zi),{singleton:!0});function yv(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const SI=yv(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),EI=Oe(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=un(J(l,Se(s),Jn(([,y,b,x],[{items:S,totalCount:w,bottom:_,offsetBottom:F},p])=>{const D=_+F;let $=0;return b===w&&y.length>0&&S.length>0&&(S[0].originalIndex===0&&y[0].originalIndex===0||($=D-x,$!==0&&($+=p))),[$,S,w,D]},[0,[],0,0]),ye(([y])=>y!==0),Se(t,o,r,a,f,g),ye(([,y,b,x,,,S])=>!S&&!x&&y!==0&&b===Vo),ne(([[y],,,,,b])=>(b("Upward scrolling compensation",{amount:y},cn.DEBUG),y))));function v(y){y>0?(De(e,{top:-y,behavior:"auto"}),De(n,0)):(De(n,0),De(e,{top:-y,behavior:"auto"}))}return Ze(J(m,Se(n,i)),([y,b,x])=>{x&&SI()?De(n,b-y):v(-y)}),Ze(J(wt(Pt(i,!1),n,g),ye(([y,b,x])=>!y&&!x&&b!==0),ne(([y,b])=>b),Wr(1)),v),le(J(c,ne(y=>({top:-y}))),e),Ze(J(u,Se(d,h),ne(([y,{lastSize:b,groupIndices:x,sizeTree:S},w])=>{function _(F){return F*(b+w)}if(x.length===0)return _(y);{let F=0;const p=Oo(S,0);let D=0,$=0;for(;D<y;){D++,F+=p;let I=x.length===$+1?1/0:x[$+1]-x[$]-1;D+I>y&&(F-=p,I=y-D+1),D+=I,F+=_(I),$++}return F}})),y=>{De(n,y),requestAnimationFrame(()=>{De(e,{top:y}),requestAnimationFrame(()=>{De(n,0),De(g,!1)})})}),{deviation:n}},Ke(Ht,ps,zi,ar,ii,Qf)),_I=Oe(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return Ze(J(e,Se(r),ye(([,i])=>i!==0),ne(([,i])=>({top:i}))),i=>{rr(J(n,$a(1),ye(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{De(t,i)})})}),{initialScrollTop:r}},Ke(ai,Ht,zi),{singleton:!0}),II=Oe(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=Pt(J(wt(n,e,t),ye(([i])=>i),ne(([,i,a])=>Math.max(0,i-a)),Wr(0),qe()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Ht,vv),{singleton:!0}),ih=Oe(([{scrollTo:e,scrollContainerState:t}])=>{const n=Te(),r=Te(),i=Te(),a=K(!1),o=K(void 0);return le(J(wt(n,r),ne(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),le(J(e,Se(r),ne(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Ht)),$I=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,RI=Oe(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Te();return le(J(c,Se(e,i,t,a,o,s,r),Se(n),ne(([[d,h,f,g,m,v,y,b],x])=>{const{done:S,behavior:w,align:_,calculateViewLocation:F=$I,...p}=d,D=dv(d,h,g-1),$=No(D,h.offsetTree,x)+m+v,I=$+On(h.sizeTree,D)[1],A=b+v,k=b+f-y,R=F({itemTop:$,itemBottom:I,viewportTop:A,viewportBottom:k,locationParams:{behavior:w,align:_,...p}});return R?S&&rr(J(l,ye(M=>M===!1),$a(Ft(l)?1:2)),S):S&&S(),R}),ye(d=>d!==null)),u),{scrollIntoView:c}},Ke(ar,Ht,ms,zi,ii),{singleton:!0}),AI=Oe(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Te(),u=K(void 0),c=K(null),d=K(null);return le(o,c),le(s,d),Ze(J(l,Se(e,n,a,c,d)),([h,f,g,m,v,y])=>{const b=dI(f.sizeTree);m&&v!==null&&y!==null&&(g=v.scrollTop-y.offsetTop),h({ranges:b,scrollTop:g})}),le(J(u,ye(Uf),ne(FI)),r),le(J(i,Se(u),ye(([,h])=>h!==void 0),qe(),ne(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(ar,Ht,bs,ai,ih));function FI(e){return{offset:e.scrollTop,index:0,align:"start"}}const PI=Oe(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(rh,wI,ai,bv,vv,_I,II,ih,RI,ii)),xv=Oe(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,v,y,{listState:b,topItemsIndexes:x,...S},{scrollToIndex:w},_,{topItemCount:F},{groupCounts:p},D])=>(le(S.rangeChanged,D.scrollSeekRangeChanged),le(J(D.windowViewportRect,ne($=>$.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:x,topItemCount:F,groupCounts:p,fixedItemHeight:n,defaultItemHeight:r,gap:c,...y,statefulTotalCount:u,listState:b,scrollToIndex:w,trackItemSizes:i,itemSize:a,groupIndices:l,...S,...D,...m,sizes:d,...v}),Ke(ar,bs,Ht,AI,yI,zi,ms,EI,DI,gv,PI)),Fc="-webkit-sticky",Em="sticky",Cv=yv(()=>{if(typeof document>"u")return Em;const e=document.createElement("div");return e.style.position=Fc,e.style.position===Fc?Fc:Em});function ah(e,t){const n=C.useRef(null),r=C.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:a}=Kf(r),o=C.useCallback(()=>{r(a.current)},[r,a]);return C.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const ju=C.createContext(void 0),wv=C.createContext(void 0);function oh(e){return e}const TI=Oe(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(oh),a=K("div"),o=K(Wi),s=(l,u=null)=>Pt(J(r,ne(c=>c[l]),qe()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),kI=Oe(([e,t])=>({...e,...t}),Ke(xv,TI)),MI=({height:e})=>C.createElement("div",{style:{height:e}}),BI={position:Cv(),zIndex:1,overflowAnchor:"none"},OI={overflowAnchor:"none"},_m=C.memo(function({showTopList:t=!1}){const n=Re("listState"),r=Sn("sizeRanges"),i=Re("useWindowScroll"),a=Re("customScrollParent"),o=Sn("windowScrollContainerState"),s=Sn("scrollContainerState"),l=a||i?o:s,u=Re("itemContent"),c=Re("context"),d=Re("groupContent"),h=Re("trackItemSizes"),f=Re("itemSize"),g=Re("log"),m=Sn("gap"),{callbackRef:v}=nv(r,f,h,t?Wi:l,g,m,a),[y,b]=C.useState(0);uh("deviation",R=>{y!==R&&b(R)});const x=Re("EmptyPlaceholder"),S=Re("ScrollSeekPlaceholder")||MI,w=Re("ListComponent"),_=Re("ItemComponent"),F=Re("GroupComponent"),p=Re("computeItemKey"),D=Re("isSeeking"),$=Re("groupIndices").length>0,I=Re("alignToBottom"),A=Re("initialItemFinalLocationReached"),k=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:y!==0?y:I?"auto":0,...A?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?C.createElement(x,ot(x,c)):C.createElement(w,{...ot(w,c),ref:v,style:k,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(R=>{const M=R.originalIndex,T=p(M+n.firstItemIndex,R.data,c);return D?C.createElement(S,{...ot(S,c),key:T,index:R.index,height:R.size,type:R.type||"item",...R.type==="group"?{}:{groupIndex:R.groupIndex}}):R.type==="group"?C.createElement(F,{...ot(F,c),key:T,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,style:BI},d(R.index,c)):C.createElement(_,{...ot(_,c),...Dv(_,R.data),key:T,"data-index":M,"data-known-size":R.size,"data-item-index":R.index,"data-item-group-index":R.groupIndex,style:OI},$?u(R.index,R.groupIndex,R.data,c):u(R.index,R.data,c))}))}),NI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},La=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),VI={width:"100%",position:Cv(),top:0,zIndex:1};function ot(e,t){if(typeof e!="string")return{context:t}}function Dv(e,t){return{item:typeof e=="string"?void 0:t}}const LI=C.memo(function(){const t=Re("HeaderComponent"),n=Sn("headerHeight"),r=Re("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=Re("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),HI=C.memo(function(){const t=Re("FooterComponent"),n=Sn("footerHeight"),r=Re("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=Re("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null});function sh({usePublisher:e,useEmitter:t,useEmitterValue:n}){return C.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=iv(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),C.createElement(u,{ref:f,style:{...NI,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...ot(u,h)},o)})}function lh({usePublisher:e,useEmitter:t,useEmitterValue:n}){return C.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:v,scrollToCallback:y}=iv(l,c,u,Wi,f);return J_(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",y),t("scrollBy",v),C.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...ot(u,g)},o)})}const jI=({children:e})=>{const t=C.useContext(ju),n=Sn("viewportHeight"),r=Sn("fixedItemHeight"),i=Re("alignToBottom"),a=ir(Mo(n,o=>Bn(o,"height")));return C.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),C.createElement("div",{style:La(i),ref:a,"data-viewport-type":"element"},e)},WI=({children:e})=>{const t=C.useContext(ju),n=Sn("windowViewportRect"),r=Sn("fixedItemHeight"),i=Re("customScrollParent"),a=ah(n,i),o=Re("alignToBottom");return C.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),C.createElement("div",{ref:a,style:La(o),"data-viewport-type":"window"},e)},zI=({children:e})=>{const t=Re("TopItemListComponent")||"div",n=Re("headerHeight"),r={...VI,marginTop:`${n}px`},i=Re("context");return C.createElement(t,{style:r,...ot(t,i)},e)},GI=C.memo(function(t){const n=Re("useWindowScroll"),r=Re("topItemsIndexes").length>0,i=Re("customScrollParent"),a=i||n?YI:XI,o=i||n?WI:jI;return C.createElement(a,{...t},r&&C.createElement(zI,null,C.createElement(_m,{showTopList:!0})),C.createElement(o,null,C.createElement(LI,null),C.createElement(_m,null),C.createElement(HI,null)))}),{Component:ZI,usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}=qf(kI,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},GI),XI=sh({usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}),YI=lh({usePublisher:Sn,useEmitterValue:Re,useEmitter:uh}),UI=ZI,Im={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},JI={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:$m,ceil:Rm,floor:eu,min:Pc,max:yo}=Math;function qI(e){return{...JI,items:e}}function Am(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function KI(e,t){return e&&e.column===t.column&&e.row===t.row}function Vs(e,t){return e&&e.width===t.width&&e.height===t.height}const QI=Oe(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:v,customScrollParent:y,windowScrollContainerState:b,windowScrollTo:x},S])=>{const w=K(0),_=K(0),F=K(Im),p=K({height:0,width:0}),D=K({height:0,width:0}),$=Te(),I=Te(),A=K(0),k=K(null),R=K({row:0,column:0}),M=Te(),T=Te(),P=K(!1),B=K(0),O=K(!0),L=K(!1);Ze(J(g,Se(B),ye(([V,Z])=>!!Z)),()=>{De(O,!1),De(_,0)}),Ze(J(wt(g,O,D,p,B,L),ye(([V,Z,q,te,,ue])=>V&&!Z&&q.height!==0&&te.height!==0&&!ue)),([,,,,V])=>{De(L,!0),th(1,()=>{De($,V)}),rr(J(r),()=>{De(n,[0,0]),De(O,!0)})}),le(J(T,ye(V=>V!=null&&V.scrollTop>0),Yn(0)),_),Ze(J(g,Se(T),ye(([,V])=>V!=null)),([,V])=>{V&&(De(p,V.viewport),De(D,V==null?void 0:V.item),De(R,V.gap),V.scrollTop>0&&(De(P,!0),rr(J(r,$a(1)),Z=>{De(P,!1)}),De(o,{top:V.scrollTop})))}),le(J(p,ne(({height:V})=>V)),i),le(J(wt(xe(p,Vs),xe(D,Vs),xe(R,(V,Z)=>V&&V.column===Z.column&&V.row===Z.row),xe(r)),ne(([V,Z,q,te])=>({viewport:V,item:Z,gap:q,scrollTop:te}))),M),le(J(wt(xe(w),t,xe(R,KI),xe(D,Vs),xe(p,Vs),xe(k),xe(_),xe(P),xe(O),xe(B)),ye(([,,,,,,,V])=>!V),ne(([V,[Z,q],te,ue,ie,Y,me,,he,ce])=>{const{row:Qe,column:ee}=te,{height:re,width:pe}=ue,{width:He}=ie;if(me===0&&(V===0||He===0))return Im;if(pe===0){const Ui=nh(ce,V),lc=Ui===0?Math.max(me-1,0):Ui;return qI(Am(Ui,lc,Y))}const ct=Sv(He,pe,ee);let Fe,_e;he?Z===0&&q===0&&me>0?(Fe=0,_e=me-1):(Fe=ct*eu((Z+Qe)/(re+Qe)),_e=ct*Rm((q+Qe)/(re+Qe))-1,_e=Pc(V-1,yo(_e,ct-1)),Fe=Pc(_e,yo(0,Fe))):(Fe=0,_e=-1);const jt=Am(Fe,_e,Y),{top:Wt,bottom:zt}=Fm(ie,te,ue,jt),or=Rm(V/ct),_s=or*re+(or-1)*Qe-zt;return{items:jt,offsetTop:Wt,offsetBottom:_s,top:Wt,bottom:zt,itemHeight:re,itemWidth:pe}})),F),le(J(k,ye(V=>V!==null),ne(V=>V.length)),w),le(J(wt(p,D,F,R),ye(([V,Z,{items:q}])=>q.length>0&&Z.height!==0&&V.height!==0),ne(([V,Z,{items:q},te])=>{const{top:ue,bottom:ie}=Fm(V,te,Z,q);return[ue,ie]}),qe(Lo)),n);const H=K(!1);le(J(r,Se(H),ne(([V,Z])=>Z||V!==0)),H);const z=un(J(xe(F),ye(({items:V})=>V.length>0),Se(w,H),ye(([{items:V},Z,q])=>q&&V[V.length-1].index===Z-1),ne(([,V])=>V-1),qe())),X=un(J(xe(F),ye(({items:V})=>V.length>0&&V[0].index===0),Yn(0),qe())),G=un(J(xe(F),Se(P),ye(([{items:V},Z])=>V.length>0&&!Z),ne(([{items:V}])=>({startIndex:V[0].index,endIndex:V[V.length-1].index})),qe(mv),Wr(0)));le(G,h.scrollSeekRangeChanged),le(J($,Se(p,D,w,R),ne(([V,Z,q,te,ue])=>{const ie=hv(V),{align:Y,behavior:me,offset:he}=ie;let ce=ie.index;ce==="LAST"&&(ce=te-1),ce=yo(0,ce,Pc(te-1,ce));let Qe=Ld(Z,ue,q,ce);return Y==="end"?Qe=$m(Qe-Z.height+q.height):Y==="center"&&(Qe=$m(Qe-Z.height/2+q.height/2)),he&&(Qe+=he),{top:Qe,behavior:me}})),o);const j=Pt(J(F,ne(V=>V.offsetBottom+V.bottom)),0);return le(J(m,ne(V=>({width:V.visibleWidth,height:V.visibleHeight}))),p),{data:k,totalCount:w,viewportDimensions:p,itemDimensions:D,scrollTop:r,scrollHeight:I,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:$,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:x,useWindowScroll:v,customScrollParent:y,windowScrollContainerState:b,deviation:A,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:_,gap:R,restoreStateFrom:T,...h,initialTopMostItemIndex:B,gridState:F,totalListHeight:j,...d,startReached:X,endReached:z,rangeChanged:G,stateChanged:M,propsReady:f,stateRestoreInProgress:P,...S}},Ke(rh,Ht,ps,bv,ai,ih,ii));function Fm(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Ld(e,t,n,r[0].index),o=Ld(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Ld(e,t,n,r){const i=Sv(e.width,n.width,t.column),a=eu(r/i),o=a*n.height+yo(0,a-1)*t.row;return o>0?o+t.row:o}function Sv(e,t,n){return yo(1,eu((e+n)/(eu(t)+n)))}const e$=Oe(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(oh),o=K("div"),s=K(Wi),l=(u,c=null)=>Pt(J(t,ne(d=>d[u]),qe()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),t$=Oe(([e,t])=>({...e,...t}),Ke(QI,e$)),n$=C.memo(function(){const t=nt("gridState"),n=nt("listClassName"),r=nt("itemClassName"),i=nt("itemContent"),a=nt("computeItemKey"),o=nt("isSeeking"),s=Tn("scrollHeight"),l=nt("ItemComponent"),u=nt("ListComponent"),c=nt("ScrollSeekPlaceholder"),d=nt("context"),h=Tn("itemDimensions"),f=Tn("gap"),g=nt("log"),m=nt("stateRestoreInProgress"),v=ir(y=>{const b=y.parentElement.parentElement.scrollHeight;s(b);const x=y.firstChild;if(x){const{width:S,height:w}=x.getBoundingClientRect();h({width:S,height:w})}f({row:Pm("row-gap",getComputedStyle(y).rowGap,g),column:Pm("column-gap",getComputedStyle(y).columnGap,g)})});return m?null:C.createElement(u,{ref:v,className:n,...ot(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(y=>{const b=a(y.index,y.data,d);return o?C.createElement(c,{key:b,...ot(c,d),index:y.index,height:t.itemHeight,width:t.itemWidth}):C.createElement(l,{...ot(l,d),className:r,"data-index":y.index,key:b},i(y.index,y.data,d))}))}),r$=C.memo(function(){const t=nt("HeaderComponent"),n=Tn("headerHeight"),r=nt("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=nt("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),i$=C.memo(function(){const t=nt("FooterComponent"),n=Tn("footerHeight"),r=nt("headerFooterTag"),i=ir(o=>n(Bn(o,"height"))),a=nt("context");return t?C.createElement(r,{ref:i},C.createElement(t,ot(t,a))):null}),a$=({children:e})=>{const t=C.useContext(wv),n=Tn("itemDimensions"),r=Tn("viewportDimensions"),i=ir(a=>{r(a.getBoundingClientRect())});return C.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),C.createElement("div",{style:La(!1),ref:i},e)},o$=({children:e})=>{const t=C.useContext(wv),n=Tn("windowViewportRect"),r=Tn("itemDimensions"),i=nt("customScrollParent"),a=ah(n,i);return C.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),C.createElement("div",{ref:a,style:La(!1)},e)},s$=C.memo(function({...t}){const n=nt("useWindowScroll"),r=nt("customScrollParent"),i=r||n?u$:l$,a=r||n?o$:a$;return C.createElement(i,{...t},C.createElement(a,null,C.createElement(r$,null),C.createElement(n$,null),C.createElement(i$,null)))}),{usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev}=qf(t$,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},s$),l$=sh({usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev}),u$=lh({usePublisher:Tn,useEmitterValue:nt,useEmitter:Ev});function Pm(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,cn.WARN),t==="normal"?0:parseInt(t??"0",10)}const c$=Oe(()=>{const e=K(l=>C.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(oh),o=K(Wi),s=(l,u=null)=>Pt(J(i,ne(c=>c[l]),qe()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),d$=Oe(([e,t])=>({...e,...t}),Ke(xv,c$)),f$=({height:e})=>C.createElement("tr",null,C.createElement("td",{style:{height:e}})),h$=({height:e})=>C.createElement("tr",null,C.createElement("td",{style:{height:e,padding:0,border:0}})),g$={overflowAnchor:"none"},m$=C.memo(function(){const t=We("listState"),n=kn("sizeRanges"),r=We("useWindowScroll"),i=We("customScrollParent"),a=kn("windowScrollContainerState"),o=kn("scrollContainerState"),s=i||r?a:o,l=We("itemContent"),u=We("trackItemSizes"),c=We("itemSize"),d=We("log"),{callbackRef:h,ref:f}=nv(n,c,u,s,d,void 0,i),[g,m]=C.useState(0);ch("deviation",T=>{g!==T&&(f.current.style.marginTop=`${T}px`,m(T))});const v=We("EmptyPlaceholder"),y=We("ScrollSeekPlaceholder")||f$,b=We("FillerRow")||h$,x=We("TableBodyComponent"),S=We("TableRowComponent"),w=We("computeItemKey"),_=We("isSeeking"),F=We("paddingTopAddition"),p=We("firstItemIndex"),D=We("statefulTotalCount"),$=We("context");if(D===0&&v)return C.createElement(v,ot(v,$));const I=t.offsetTop+F+g,A=t.offsetBottom,k=I>0?C.createElement(b,{height:I,key:"padding-top",context:$}):null,R=A>0?C.createElement(b,{height:A,key:"padding-bottom",context:$}):null,M=t.items.map(T=>{const P=T.originalIndex,B=w(P+p,T.data,$);return _?C.createElement(y,{...ot(y,$),key:B,index:T.index,height:T.size,type:T.type||"item"}):C.createElement(S,{...ot(S,$),...Dv(S,T.data),key:B,"data-index":P,"data-known-size":T.size,"data-item-index":T.index,style:g$},l(T.index,T.data,$))});return C.createElement(x,{ref:h,"data-testid":"virtuoso-item-list",...ot(x,$)},[k,...M,R])}),p$=({children:e})=>{const t=C.useContext(ju),n=kn("viewportHeight"),r=kn("fixedItemHeight"),i=ir(Mo(n,a=>Bn(a,"height")));return C.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),C.createElement("div",{style:La(!1),ref:i,"data-viewport-type":"element"},e)},b$=({children:e})=>{const t=C.useContext(ju),n=kn("windowViewportRect"),r=kn("fixedItemHeight"),i=We("customScrollParent"),a=ah(n,i);return C.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),C.createElement("div",{ref:a,style:La(!1),"data-viewport-type":"window"},e)},v$=C.memo(function(t){const n=We("useWindowScroll"),r=We("customScrollParent"),i=kn("fixedHeaderHeight"),a=kn("fixedFooterHeight"),o=We("fixedHeaderContent"),s=We("fixedFooterContent"),l=We("context"),u=ir(Mo(i,b=>Bn(b,"height"))),c=ir(Mo(a,b=>Bn(b,"height"))),d=r||n?C$:x$,h=r||n?b$:p$,f=We("TableComponent"),g=We("TableHeadComponent"),m=We("TableFooterComponent"),v=o?C.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...ot(g,l)},o()):null,y=s?C.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...ot(m,l)},s()):null;return C.createElement(d,{...t},C.createElement(h,null,C.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...ot(f,l)},[v,C.createElement(m$,{key:"TableBody"}),y])))}),{Component:y$,usePublisher:kn,useEmitterValue:We,useEmitter:ch}=qf(d$,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},v$),x$=sh({usePublisher:kn,useEmitterValue:We,useEmitter:ch}),C$=lh({usePublisher:kn,useEmitterValue:We,useEmitter:ch}),w$=y$,D$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),S$=({children:e,...t})=>E.jsx(E.Fragment,{children:C.isValidElement(e)&&E.jsx(E.Fragment,{children:C.cloneElement(e,t)})}),dh=C.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:v="",triggerCalCulateContainer:y="",accumulationHeight:b=0,delayTriggerCalculateHeight:x=0,increaseViewportBy:S=()=>0,context:w={},endReached:_,increaseTotalCount:F=1}=e,[p,D]=C.useState(0),$=()=>{if(o==="min-max"){const k=(a+F)*s;return{height:a>u?l:p>k?p:k}}return o==="container"?{height:p}:{}},I=k=>{var T;const R=k.getAttribute("data-index");let M=((T=k.getBoundingClientRect())==null?void 0:T.height)||0;return f==null||f.forEach(P=>{var B,O;M+=((O=(B=document.querySelector(`[${P}="${R}"]`))==null?void 0:B.getBoundingClientRect())==null?void 0:O.height)??0}),M},A=()=>{var k;if(v&&o==="container"){const R=((k=document==null?void 0:document.getElementById(v))==null?void 0:k.offsetHeight)??0;D(R-b)}};return C.useEffect(()=>{const k=setTimeout(A,x);return window==null||window.addEventListener("resize",A),window==null||window.addEventListener("load",A),()=>{clearTimeout(k),window==null||window.removeEventListener("resize",A),window==null||window.removeEventListener("load",A)}},[o,y]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(w$,{context:w,ref:t,overscan:typeof g=="function"?g(o==="container"?p:l):o==="container"?p:l,totalListHeightChanged:k=>o==="min-max"?D(k):null,style:$(),totalCount:a,computeItemKey:r,itemSize:C.useCallback(k=>h==="manual"?i(k):I(k),[]),components:{TableRow:S$,...m},fixedHeaderContent:c,itemContent:(...k)=>d(D$,...k),endReached:_,increaseViewportBy:S(o==="container"?p:l)})})});dh.displayName="TableVirtualization";const E$="_sorting_1tyuq_45",Rn={"payhere-reguler":"_payhere-reguler_1tyuq_1","laba-small":"_laba-small_1tyuq_1","laba-reguler":"_laba-reguler_1tyuq_1","pointer-laba":"_pointer-laba_1tyuq_16","pointer-payhere":"_pointer-payhere_1tyuq_20","resize-menu":"_resize-menu_1tyuq_24",sorting:E$,"laba-grey-02":"_laba-grey-02_1tyuq_59"},ta="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function _$(e,t=null){const[n,r]=C.useState(!1);return C.useEffect(()=>{let i=null,a=null;const o=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const I$=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=C.useState(t(n)),[a,o]=C.useState(e.running??!1),[s,l]=C.useState(()=>e==null?void 0:e.callbackDone);return C.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function _v(e,t=0){const n=C.useRef({promise:null,resolve:null,reject:null,timeout:null});return C.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const fh=typeof window<"u"?C.useLayoutEffect:C.useEffect,$$=(e,t)=>{const[n,r]=C.useState({width:0,height:0}),[i,a]=C.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=C.useRef(null);return fh(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:v,bottom:y,right:b,x,y:S}=h.contentRect;a({width:f,height:g,top:m,left:v,bottom:y,right:b,x,y:S})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:o,windowSize:n,contentRect:i}};function R$(e){const[t,n]=C.useState(e),r=C.useRef(t);return C.useEffect(()=>{r.current=t},[t]),[t,n,r]}function A$(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function F$(...e){return t=>{e.forEach(n=>{A$(n,t)})}}function hh(...e){return C.useMemo(()=>F$(...e),e)}function gh(e){const t=C.useRef(e);return Ff(e,t.current)||(t.current=e),t.current}function Mi(e,t){const n=t.map(gh);C.useEffect(e,n)}function P$({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){C.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const T$=({containerRef:e,children:t,columnCount:n,gapX:r,gapY:i,direction:a="masonry-ltr",debounceRecalculate:o=500,durationAnimation:s=500,enableAnimation:l=!1})=>{const u=C.useCallback(()=>{const d=e.current;if(!d)return;const h=Array.from(d.children);if(h.length===0){d.style.height="0px";return}const f=Array(n).fill(0),g=d.offsetWidth;if(g===0)return;const m=(g-(n-1)*r)/n,v=a.includes("rtl"),y=a.includes("top-down");h.forEach((x,S)=>{x.style.width=`${m}px`,x.style.position="absolute",l&&(x.style.transition=`top ${s}ms ease, left ${s}ms ease`);let w;if(y)w=S%n;else{const p=Math.min(...f);w=f.indexOf(p)}const _=f[w];let F;v?F=g-(m*(w+1)+r*w):F=w*(m+r),x.style.top=`${_}px`,x.style.left=`${F}px`,f[w]+=x.offsetHeight+i});const b=Math.max(...f);d.style.height=`${b-i}px`},[e,n,r,a,i]),c=_v(async()=>{u()},o);return C.useLayoutEffect(()=>{u()},[t,u]),C.useEffect(()=>(window.addEventListener("load",u),window.addEventListener("resize",c),()=>{window.removeEventListener("load",u),window.removeEventListener("resize",c)}),[t,c,u]),{recalculateLayout:u}},k$=(e,t)=>{var r,i;let n={};return e&&(n={position:"sticky",top:0,zIndex:2}),(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},tu=(e,t=!1)=>{const n=e.getIsPinned(),r=n==="left"&&e.getIsLastColumn("left"),i=n==="right"&&e.getIsFirstColumn("right");return n?{boxShadow:r?"-4px 0 4px -4px gray inset":i?"4px 0 4px -4px gray inset":void 0,left:n==="left"?`${e.getStart("left")}px`:void 0,right:n==="right"?`${e.getAfter("right")}px`:void 0,position:"sticky",width:e.getSize(),zIndex:1,background:t?"white":""}:{}},Iv=e=>{const t=e.columnPinning.left||[],n=e.columnPinning.right||[],r=e.rowPinning.top||[],i=e.rowPinning.bottom||[];return{left:t,right:n,top:r,bottom:i,isPinning:t.length>0||n.length>0||r.length>0||i.length>0}},rn=()=>({kind:{"payhere-reguler":Rn["payhere-reguler"],"laba-reguler":Rn["laba-reguler"],"laba-small":Rn["laba-small"]},pointer:{"payhere-reguler":Rn["pointer-payhere"],"laba-reguler":Rn["pointer-laba"],"laba-small":Rn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:ta,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Rn["laba-grey-02"]}}),M$=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h,renderSubComponent:f})=>E.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:E.jsxs("table",{className:n,style:{width:Iv(e.getState()).isPinning?e.getTotalSize():""},children:[E.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>E.jsx("tr",{children:g.headers.map(m=>{var y,b,x,S;const v=(b=(y=m.column.columnDef.meta)==null?void 0:y.rowSpan)==null?void 0:b.call(y,m);return!m.isPlaceholder&&v!==void 0&&m.id===m.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{style:{...k$(s,m),...tu(m.column)},colSpan:typeof((x=m.column.columnDef.meta)==null?void 0:x.colSpan)=="function"?(S=m.column.columnDef.meta)==null?void 0:S.colSpan(m.column.columnDef):m.colSpan,rowSpan:v,children:[m.isPlaceholder&&v===void 0?null:E.jsxs("div",{className:m.column.getCanSort()?Rn.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[ko(m.column.columnDef.header,m.getContext()),m.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:m.column.getIsSorted()==="asc"||m.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[m.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:u}),m.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:c})]}):E.jsx(E.Fragment,{})})]}),m.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>m.column.resetSize(),onMouseDown:m.getResizeHandler(),onTouchStart:m.getResizeHandler(),className:Rn["resize-menu"]})]},m.id)})},g.id))}),E.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>E.jsxs(C.Fragment,{children:[E.jsx("tr",{onClick:v=>{v.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:o(g),children:g.getVisibleCells().map(v=>{var y,b,x;return E.jsx("td",{style:{...typeof((y=v.column.columnDef.meta)==null?void 0:y.styleTd)=="function"?v.column.columnDef.meta.styleTd(g.original,g):{},...tu(v.column,!0)},className:typeof((b=v.column.columnDef.meta)==null?void 0:b.classNameTd)=="function"?(x=v.column.columnDef.meta)==null?void 0:x.classNameTd(g.original,g):"",children:ko(v.column.columnDef.cell,v.getContext())},v.id)})},g.id),g.getIsExpanded()&&typeof f=="function"&&E.jsx("tr",{children:E.jsx("td",{colSpan:g.getVisibleCells().length,children:f(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&C.isValidElement(h)&&E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),$v=C.forwardRef((e,t)=>{const{context:n,...r}=e;return E.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});$v.displayName="VirtualizationHead";const B$=({style:e,context:t,...n})=>E.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:{...e,width:t==null?void 0:t.width}}),O$=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d,renderSubComponent:h})=>{var m,v,y;const[f,g]=C.useState(0);return E.jsx(dh,{context:{headerId:a,classNameTable:s,width:Iv(e.getState()).isPinning?e.getTotalSize():""},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((v=e.getRowModel().rows)==null?void 0:v.length)||0,typeCalculateItemSize:"auto",component:{TableHead:$v,Table:B$,EmptyPlaceholder:()=>E.jsx("tbody",{ref:b=>{var x;return g(((x=b==null?void 0:b.getBoundingClientRect())==null?void 0:x.height)??0)},children:E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:C.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(b=>E.jsx("tr",{children:b.headers.map(x=>{var w,_,F,p;const S=(_=(w=x.column.columnDef.meta)==null?void 0:w.rowSpan)==null?void 0:_.call(w,x);return!x.isPlaceholder&&S!==void 0&&x.id===x.column.id?E.jsx(E.Fragment,{}):E.jsxs("th",{colSpan:x.colSpan,rowSpan:S,style:{...typeof((F=x.column.columnDef.meta)==null?void 0:F.styleTh)=="function"?(p=x.column.columnDef.meta)==null?void 0:p.styleTh(x.column.columnDef):{},...tu(x.column)},children:[x.isPlaceholder&&S===void 0?null:E.jsxs("div",{className:x.column.getCanSort()?Rn.sorting:"",onClick:x.column.getToggleSortingHandler(),children:[ko(x.column.columnDef.header,x.getContext()),x.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:x.column.getIsSorted()==="asc"||x.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[x.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:l}),x.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:u})]}):E.jsx(E.Fragment,{})})]}),x.column.getIsPinned()&&E.jsx("div",{onDoubleClick:()=>x.column.resetSize(),onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),className:Rn["resize-menu"]})]},x.id)})},b.id)),itemContent:(b,x)=>{var w,_;const S=(_=(w=e.getRowModel())==null?void 0:w.rows)==null?void 0:_[x];return E.jsx(b,{children:({...F})=>E.jsxs(C.Fragment,{children:[E.jsx("tr",{...F,onClick:p=>{p.stopPropagation(),r&&typeof n=="function"&&n(S.original,S)},className:r?c:"",id:o(S),children:S.getVisibleCells().map(p=>{var D,$,I;return E.jsx(E.Fragment,{children:E.jsx("td",{style:{...typeof((D=p.column.columnDef.meta)==null?void 0:D.styleTd)=="function"?p.column.columnDef.meta.styleTd(S.original,S):{},...tu(p.column,!0)},className:typeof(($=p.column.columnDef.meta)==null?void 0:$.classNameTd)=="function"?(I=p.column.columnDef.meta)==null?void 0:I.classNameTd(S.original,S):"",children:ko(p.column.columnDef.cell,p.getContext())},p.id)})})}),S.getIsExpanded()&&typeof h=="function"&&E.jsx("tr",{"data-sub-component":x,children:E.jsx("td",{colSpan:S.getVisibleCells().length,children:h(S.original,S)})})]},S.id)},S.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((y=e.getRowModel().rows)==null?void 0:y.length)||0)>0?0:f),itemSizeNames:typeof h=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},N$=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:v,variant:y,renderSubComponent:b})=>{const x=()=>{if(![void 0,"undefined"].includes(d)){const S=document.querySelector(`[data-calculate-height-header="${d}"]`);let w=0;const _=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return _==null||_.forEach(F=>{w+=F.offsetHeight}),w>c?c+S.offsetHeight:0}return c};return Mi(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),E.jsxs(E.Fragment,{children:[!o&&E.jsx(M$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${rn().kind[h]} ${y?rn().variant[y]:""}
|
75
75
|
${m?rn().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,maxHeight:x(),idCalculateHeight:d,componentSortASC:C.isValidElement(f)?f:rn().sortingIcon[h].asc,componentSortDESC:C.isValidElement(g)?g:rn().sortingIcon[h].desc,classNamePointer:rn().pointer[h],emptyPlaceholder:v,renderSubComponent:b}),o&&E.jsx(O$,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${rn().kind[h]} ${y?rn().variant[y]:""}
|
76
|
-
${m?rn().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:C.isValidElement(f)?f:rn().sortingIcon[h].asc,componentSortDESC:C.isValidElement(g)?g:rn().sortingIcon[h].desc,classNamePointer:rn().pointer[h],emptyPlaceholder:v,renderSubComponent:b})]})},V$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),L$=({children:e,...t})=>E.jsx(E.Fragment,{children:C.isValidElement(e)&&E.jsx(E.Fragment,{children:C.cloneElement(e,t)})}),Rv=C.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:m="",triggerCalCulateContainer:v="",accumulationHeight:y=0,delayTriggerCalculateHeight:b=0,increaseViewportBy:x=()=>0,context:S={},endReached:w,increaseTotalCount:
|
76
|
+
${m?rn().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:C.isValidElement(f)?f:rn().sortingIcon[h].asc,componentSortDESC:C.isValidElement(g)?g:rn().sortingIcon[h].desc,classNamePointer:rn().pointer[h],emptyPlaceholder:v,renderSubComponent:b})]})},V$=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),L$=({children:e,...t})=>E.jsx(E.Fragment,{children:C.isValidElement(e)&&E.jsx(E.Fragment,{children:C.cloneElement(e,t)})}),Rv=C.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:m="",triggerCalCulateContainer:v="",accumulationHeight:y=0,delayTriggerCalculateHeight:b=0,increaseViewportBy:x=()=>0,context:S={},endReached:w,increaseTotalCount:_=1}=e,[F,p]=C.useState(0),D=()=>{if(o==="min-max"){const A=(a+_)*s;return{height:a>u?l:F>A?F:A}}return o==="container"?{height:F}:{}},$=A=>{var M;const k=A.getAttribute("data-index");let R=((M=A.getBoundingClientRect())==null?void 0:M.height)||0;return h==null||h.forEach(T=>{var P,B;R+=((B=(P=document.querySelector(`[${T}="${k}"]`))==null?void 0:P.getBoundingClientRect())==null?void 0:B.height)??0}),R},I=()=>{var A;if(m&&o==="container"){const k=((A=document==null?void 0:document.getElementById(m))==null?void 0:A.offsetHeight)??0;p(k-y)}};return C.useEffect(()=>{const A=setTimeout(I,b);return window==null||window.addEventListener("resize",I),window==null||window.addEventListener("load",I),()=>{clearTimeout(A),window==null||window.removeEventListener("resize",I),window==null||window.removeEventListener("load",I)}},[o,v]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(UI,{context:S,ref:t,overscan:typeof f=="function"?f(o==="container"?F:l):o==="container"?F:l,totalListHeightChanged:A=>o==="min-max"?p(A):null,style:D(),totalCount:a,computeItemKey:r,itemSize:C.useCallback(A=>d==="manual"?i(A):$(A),[]),itemContent:(...A)=>c(V$,...A),components:{Item:L$,...g},endReached:w,increaseViewportBy:x(o==="container"?F:l)})})});Rv.displayName="ListVirtualization";const H$="_ripple_1vbon_64",j$="_active_1vbon_69",yt={"disable-transition":"_disable-transition_1vbon_1","tab-panel":"_tab-panel_1vbon_5","tabs-medium":"_tabs-medium_1vbon_9","tabs-list":"_tabs-list_1vbon_12","button-tabs":"_button-tabs_1vbon_12","tabs-small":"_tabs-small_1vbon_19","tabs-m":"_tabs-m_1vbon_9","tabs-s":"_tabs-s_1vbon_19","container-tabs":"_container-tabs_1vbon_49","original-laba-blue-10":"_original-laba-blue-10_1vbon_52",ripple:H$,active:j$,"tabs-slider":"_tabs-slider_1vbon_76","container-payhere-brand-base":"_container-payhere-brand-base_1vbon_81","container-laba-blue-10":"_container-laba-blue-10_1vbon_105","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_1vbon_129","container-laba-blue-10-bg_blue-01":"_container-laba-blue-10-bg_blue-01_1vbon_153"},Wu={"0px":"1ru-rounded-none","2px":"1ru-rounded-sm","4px":"1ru-rounded","6px":"1ru-rounded-md","8px":"1ru-rounded-lg","12px":"1ru-rounded-xl","16px":"1ru-rounded-2xl","24px":"1ru-rounded-3xl",full:"1ru-rounded-full"},W$=({id:e,value:t="",keyValueTab:n="",tabsList:r,className:i,classNameContainer:a,classNameButton:o,variant:s="original-laba-blue-10",size:l="tabs-m",borderRadius:u="0px",disabled:c,animation:d=!0,mountedExecuteChange:h=!0,typeButton:f="button",onChange:g})=>{var D;const m=C.useRef([]);let v=r||[];const y=Object.fromEntries(new URL(window.location.href).searchParams.entries()),b={tabsVariant:{"original-laba-blue-10":yt["original-laba-blue-10"],"container-payhere-brand-base":yt["container-payhere-brand-base"],"container-laba-blue-10":yt["container-laba-blue-10"],"container-laba-blue-10-bg_white":yt["container-laba-blue-10-bg_white"],"container-laba-blue-10-bg_blue-01":yt["container-laba-blue-10-bg_blue-01"]},size:{"tabs-m":yt["tabs-m"],"tabs-s":yt["tabs-s"],"tabs-medium":yt["tabs-medium"],"tabs-small":yt["tabs-small"]},borderRadius:Wu,isContainer:["container-payhere-brand-base","container-laba-blue-10","container-laba-blue-10-bg_white","container-laba-blue-10-bg_blue-01"]},[x,S]=C.useState(-1),[w,_]=C.useState({height:0,width:0,left:0});v=v.filter($=>typeof($==null?void 0:$.isHide)=="boolean"?!$.isHide:!0);const F=$=>{const I=$.currentTarget,A=document.createElement("span"),k=Math.max(I.clientWidth,I.clientHeight),R=k/2;A.style.width=A.style.height=`${k}px`,A.style.left=`${$.clientX-I.getBoundingClientRect().left-R}px`,A.style.top=`${$.clientY-I.getBoundingClientRect().top-R}px`,A.classList.add(yt.ripple);const M=I.getElementsByClassName(yt.ripple)[0];M&&M.remove(),I.appendChild(A),setTimeout(()=>{A.remove()},500)},p=$=>{typeof g=="function"&&g($)};return C.useEffect(()=>{function $(){const I=m.current[x],A={left:(I==null?void 0:I.offsetLeft)??0,width:(I==null?void 0:I.clientWidth)??0,height:b.isContainer.includes(s)?(I==null?void 0:I.clientHeight)??0:4};_(A)}return x>=0&&$(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[x]),C.useEffect(()=>{const $=v.findIndex(I=>I.id===(y==null?void 0:y[n])||I.id===t);if((y!=null&&y[n]||t)&&$>=0){S($);const I=v==null?void 0:v.find(A=>A.id===(y==null?void 0:y[n]));y!=null&&y[n]&&I&&!t&&h&&p(I)}$<0&&h&&p(v[0])},[JSON.stringify(t),JSON.stringify(y==null?void 0:y[n])]),E.jsx("div",{className:`${yt["container-tabs"]} ${c?"1ru-opacity-50":""} ${a??""}`,children:E.jsxs("div",{className:`${b.tabsVariant[s]}
|
77
77
|
${b.isContainer.includes(s)?b.size[l]:""}
|
78
78
|
${i??""}
|
79
|
-
`,id:e??"1ru-tabs",children:[E.jsx("div",{className:yt["tabs-list"],children:v.map(($,
|
79
|
+
`,id:e??"1ru-tabs",children:[E.jsx("div",{className:yt["tabs-list"],children:v.map(($,I)=>E.jsx("button",{type:f,id:`1ru-tabs-button-${$.id}`,ref:A=>m.current[I]=A,className:`${yt["button-tabs"]} ${b.borderRadius[u]}
|
80
80
|
${o??""} ${($==null?void 0:$.className)??""}
|
81
|
-
${x===
|
81
|
+
${x===I?yt.active:""}`,disabled:c,onClick:A=>{b.isContainer.includes(s)||F(A),x!=I&&p($)},children:$.label},I))}),E.jsx("div",{className:`${yt["tabs-slider"]} ${b.borderRadius[u]}
|
82
82
|
${o??""} ${d?"":yt["disable-transition"]}
|
83
|
-
`,style:{left:w.left,width:w.width,height:w.height,background:((D=r[x])==null?void 0:D.activeColor)??""}})]})})},z$=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>E.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${yt["tab-panel"]} ${i??""}`,children:e}),G$="_option_19vm6_88",Z$="_active_19vm6_99",Yt={"pagination-nude":"_pagination-nude_19vm6_1","pagination-box":"_pagination-box_19vm6_1","pagination-size":"_pagination-size_19vm6_9","navigation-container":"_navigation-container_19vm6_12","button-container":"_button-container_19vm6_17","button-next":"_button-next_19vm6_17","button-prev":"_button-prev_19vm6_17","pagination-active":"_pagination-active_19vm6_30","goto-page":"_goto-page_19vm6_33","goto-page-input":"_goto-page-input_19vm6_36","options-size":"_options-size_19vm6_88",option:G$,active:Z$},X$="_selected_12d64_1",Y$="_disabled_12d64_19",U$="_valid_12d64_66",J$="_invalid_12d64_72",q$="_error_12d64_103",be={"container-calendar":"_container-calendar_12d64_1","month-calendar":"_month-calendar_12d64_1","cell-month":"_cell-month_12d64_1",selected:X$,"year-calendar":"_year-calendar_12d64_2","cell-year":"_cell-year_12d64_2","cell-calendar":"_cell-calendar_12d64_2","active-cell-calendar":"_active-cell-calendar_12d64_2","custom-time-calendar":"_custom-time-calendar_12d64_3","container-cell-time":"_container-cell-time_12d64_3","cell-time":"_cell-time_12d64_3","header-calendar":"_header-calendar_12d64_11","header-button-calendar":"_header-button-calendar_12d64_15",disabled:Y$,"days-calendar":"_days-calendar_12d64_26","visible-cell-calendar":"_visible-cell-calendar_12d64_33","header-time":"_header-time_12d64_46","type-time":"_type-time_12d64_51",valid:U$,invalid:J$,"footer-calendar":"_footer-calendar_12d64_91","container-filter-date":"_container-filter-date_12d64_96","button-filter-date":"_button-filter-date_12d64_99",error:q$},Qn=({className:e})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:E.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Av=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:20},hiddenHeader:i,setActiveTypeCalendar:a,onChangeYear:o})=>{const s=(u,c)=>{const d=t.focusedDate.set({year:u});c?(a("month"),t.setFocusedDate(d)):!c&&typeof o=="function"&&o(d)},l=(u,c,d)=>Array.from({length:(c-u)/d+1},(h,f)=>u+f*d);return C.useEffect(()=>{const u=document.getElementById(`calendar-year-${t.focusedDate.year}`),c=document.getElementById("wrapper-calendar-year");u&&c&&c.scrollTo({behavior:"instant",top:u.offsetTop-93})},[]),E.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[!i&&E.jsx("div",{className:`${be["header-calendar"]} 1ru-my-2`,children:E.jsxs("div",{className:`${be["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":be.disabled}`,onClick:()=>{n.includes("date")?a("date"):n.includes("month")&&a("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&E.jsx(Qn,{})]})}),E.jsx("div",{id:"wrapper-calendar-year",className:be["year-calendar"],children:l(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(u=>{var g,m;const c=Number(u),d=t!=null&&t.minValue?c<((g=t==null?void 0:t.minValue)==null?void 0:g.year):!1,h=t!=null&&t.maxValue?c>((m=t==null?void 0:t.maxValue)==null?void 0:m.year):!1,f=d||h;return E.jsx("div",{id:`calendar-year-${u}`,onClick:()=>{f||s(c,n.includes("month"))},className:`${be["cell-year"]} ${t.focusedDate.year===c&&!f?be.selected:""} ${t.focusedDate.year!==c&&!f?"hover:1ru-bg-laba-blue-01":""} ${f?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:u},u)})})]})},Ls=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},K$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withGotoPage:f=!1,withMorePage:g=!0,withOptionPageSize:m=!1})=>{const v=C.useRef(null),[y,b]=C.useState(n),[x,S]=C.useState(n.toString()),w={box:Yt["pagination-box"],nude:Yt["pagination-nude"]},
|
84
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _r(e,t){return e6(e)||t6(e,t)||Pv(e,t)||n6()}function r6(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,t){if(e==null)return{};var n,r,i=r6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function a6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=Fr(e,i6),m=C.useState(s!==void 0?s:n),v=_r(m,2),y=v[0],b=v[1],x=C.useState(l!==void 0?l:i),S=_r(x,2),w=S[0],
|
83
|
+
`,style:{left:w.left,width:w.width,height:w.height,background:((D=r[x])==null?void 0:D.activeColor)??""}})]})})},z$=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>E.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${yt["tab-panel"]} ${i??""}`,children:e}),G$="_option_19vm6_88",Z$="_active_19vm6_99",Yt={"pagination-nude":"_pagination-nude_19vm6_1","pagination-box":"_pagination-box_19vm6_1","pagination-size":"_pagination-size_19vm6_9","navigation-container":"_navigation-container_19vm6_12","button-container":"_button-container_19vm6_17","button-next":"_button-next_19vm6_17","button-prev":"_button-prev_19vm6_17","pagination-active":"_pagination-active_19vm6_30","goto-page":"_goto-page_19vm6_33","goto-page-input":"_goto-page-input_19vm6_36","options-size":"_options-size_19vm6_88",option:G$,active:Z$},X$="_selected_12d64_1",Y$="_disabled_12d64_19",U$="_valid_12d64_66",J$="_invalid_12d64_72",q$="_error_12d64_103",be={"container-calendar":"_container-calendar_12d64_1","month-calendar":"_month-calendar_12d64_1","cell-month":"_cell-month_12d64_1",selected:X$,"year-calendar":"_year-calendar_12d64_2","cell-year":"_cell-year_12d64_2","cell-calendar":"_cell-calendar_12d64_2","active-cell-calendar":"_active-cell-calendar_12d64_2","custom-time-calendar":"_custom-time-calendar_12d64_3","container-cell-time":"_container-cell-time_12d64_3","cell-time":"_cell-time_12d64_3","header-calendar":"_header-calendar_12d64_11","header-button-calendar":"_header-button-calendar_12d64_15",disabled:Y$,"days-calendar":"_days-calendar_12d64_26","visible-cell-calendar":"_visible-cell-calendar_12d64_33","header-time":"_header-time_12d64_46","type-time":"_type-time_12d64_51",valid:U$,invalid:J$,"footer-calendar":"_footer-calendar_12d64_91","container-filter-date":"_container-filter-date_12d64_96","button-filter-date":"_button-filter-date_12d64_99",error:q$},Qn=({className:e})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:E.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Av=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:20},hiddenHeader:i,setActiveTypeCalendar:a,onChangeYear:o})=>{const s=(u,c)=>{const d=t.focusedDate.set({year:u});c?(a("month"),t.setFocusedDate(d)):!c&&typeof o=="function"&&o(d)},l=(u,c,d)=>Array.from({length:(c-u)/d+1},(h,f)=>u+f*d);return C.useEffect(()=>{const u=document.getElementById(`calendar-year-${t.focusedDate.year}`),c=document.getElementById("wrapper-calendar-year");u&&c&&c.scrollTo({behavior:"instant",top:u.offsetTop-93})},[]),E.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[!i&&E.jsx("div",{className:`${be["header-calendar"]} 1ru-my-2`,children:E.jsxs("div",{className:`${be["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":be.disabled}`,onClick:()=>{n.includes("date")?a("date"):n.includes("month")&&a("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&E.jsx(Qn,{})]})}),E.jsx("div",{id:"wrapper-calendar-year",className:be["year-calendar"],children:l(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(u=>{var g,m;const c=Number(u),d=t!=null&&t.minValue?c<((g=t==null?void 0:t.minValue)==null?void 0:g.year):!1,h=t!=null&&t.maxValue?c>((m=t==null?void 0:t.maxValue)==null?void 0:m.year):!1,f=d||h;return E.jsx("div",{id:`calendar-year-${u}`,onClick:()=>{f||s(c,n.includes("month"))},className:`${be["cell-year"]} ${t.focusedDate.year===c&&!f?be.selected:""} ${t.focusedDate.year!==c&&!f?"hover:1ru-bg-laba-blue-01":""} ${f?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:u},u)})})]})},Ls=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},K$=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withGotoPage:f=!1,withMorePage:g=!0,withOptionPageSize:m=!1})=>{const v=C.useRef(null),[y,b]=C.useState(n),[x,S]=C.useState(n.toString()),w={box:Yt["pagination-box"],nude:Yt["pagination-nude"]},_=1,F=(y-1)*r+1,p=r*y,D=e?`${Nr(F,"decimal")}-${p>=e?Nr(e,"decimal"):Nr(p,"decimal")}`:0,$=C.useMemo(()=>{const R=Math.ceil(e/r);if(_+5>=R)return Ls(1,R);const T=Math.max(y-_,1),P=Math.min(y+_,R),B=T>2,O=P<R-2,L=1,H=R;if(!B&&O){const z=3+2*_;return[...Ls(1,z),"mr",R]}if(B&&!O){const z=3+2*_,X=Ls(R-z+1,R);return[L,"ml",...X]}if(B&&O){const z=Ls(T,P);return[L,"ml",...z,"mr",H]}},[e,r,_,y]),I=R=>{typeof u=="function"&&(u(R),b(R.pageNumber),S(R.pageNumber.toString()))},A=R=>{if(typeof u=="function"&&g){if(R==="ml"){const T=y-5;b(T<1?1:y-5)}else if(R==="mr"){const T=y+5;b(T>t?t:y+5)}}},k=R=>{S(R);const M=Number(R);M>0&&M<=t&&I({pageSize:r,totalData:e,totalPage:t,pageNumber:M})};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{id:a??"1ru-pagination",className:`${w[o]} ${i}`,children:[E.jsxs("div",{className:Yt["pagination-size"],children:[E.jsx("span",{children:"Baris per halaman:"}),m&&E.jsx(Mn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:E.jsx(Qn,{className:"!1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px] 1ru-mx-0.5"}),className:"!1ru-rounded-md !1ru-min-w-[60px] 1ru-justify-between",onClick:R=>{var M;return(M=v.current)==null?void 0:M.handlerShow(R)},children:Nr(r,"decimal")}),E.jsxs("span",{children:[D," dari ",Nr(e,"decimal")]})]}),E.jsxs("div",{className:Yt["navigation-container"],children:[E.jsx("button",{id:"1ru-pagination-button-prev",className:`${Yt["button-prev"]}`,disabled:y===1,onClick:()=>I({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||C.isValidElement(s)?C.isValidElement(s)?s:s():E.jsx(Qn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),($??[]).map((R,M)=>{if(typeof R!="number"){const T=["ml","mr"].includes(R);return E.jsx("button",{className:Yt["button-container"],disabled:!g,onClick:()=>A(R),children:T?"...":R},M)}return E.jsx("button",{id:`1ru-pagination-button-${R}`,className:`${R===n?Yt["pagination-active"]:""} ${Yt["button-container"]}`,disabled:R===n,onClick:()=>I({pageSize:r,totalData:e,totalPage:t,pageNumber:R}),children:Nr(R,"decimal")},M)}),E.jsx("button",{id:"1ru-pagination-button-next",className:`${Yt["button-next"]}`,disabled:y===t||!t,onClick:()=>I({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||C.isValidElement(l)?C.isValidElement(l)?l:l():E.jsx(Qn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),f&&E.jsxs("div",{className:Yt["goto-page"],children:[E.jsx("span",{children:"Go to:"}),E.jsx("input",{type:"number",className:Yt["goto-page-input"],value:x,onChange:R=>k(R.target.value),onBlur:()=>S(y.toString())})]})]})]}),E.jsx(Ar,{floatingOptions:{placement:"bottom-end"},ref:v,className:Yt["options-size"],offset:d,zIndex:h,children:c.map((R,M)=>E.jsx("p",{className:`${Yt.option} ${R===r?Yt.active:""}`,onClick:()=>{var T;I({totalData:e,totalPage:t,pageSize:R,pageNumber:1}),(T=v.current)==null||T.setShow(!1)},children:Nr(R,"decimal")},M))})]})};function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function Q$(e,t){if(Bi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fv(e){var t=Q$(e,"string");return Bi(t)=="symbol"?t:t+""}function ao(e,t,n){return(t=Fv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tm(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 fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tm(Object(n),!0).forEach(function(r){ao(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e6(e){if(Array.isArray(e))return e}function t6(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Hd(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 Pv(e,t){if(e){if(typeof e=="string")return Hd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hd(e,t):void 0}}function n6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _r(e,t){return e6(e)||t6(e,t)||Pv(e,t)||n6()}function r6(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,t){if(e==null)return{};var n,r,i=r6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function a6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=Fr(e,i6),m=C.useState(s!==void 0?s:n),v=_r(m,2),y=v[0],b=v[1],x=C.useState(l!==void 0?l:i),S=_r(x,2),w=S[0],_=S[1],F=C.useState(f!==void 0?f:o),p=_r(F,2),D=p[0],$=p[1],I=C.useCallback(function(B,O){typeof u=="function"&&u(B,O),$(B)},[u]),A=C.useCallback(function(B,O){var L;typeof c=="function"&&(L=c(B,O)),b(L!==void 0?L:B)},[c]),k=C.useCallback(function(){typeof h=="function"&&h(),_(!0)},[h]),R=C.useCallback(function(){typeof d=="function"&&d(),_(!1)},[d]),M=s!==void 0?s:y,T=l!==void 0?l:w,P=f!==void 0?f:D;return fe(fe({},g),{},{inputValue:M,menuIsOpen:T,onChange:I,onInputChange:A,onMenuClose:R,onMenuOpen:k,value:P})}function ge(){return ge=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},ge.apply(null,arguments)}function o6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function km(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fv(r.key),r)}}function s6(e,t,n){return t&&km(e.prototype,t),n&&km(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jd(e,t){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jd(e,t)}function l6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jd(e,t)}function nu(e){return nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nu(e)}function Tv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tv=function(){return!!e})()}function u6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c6(e,t){if(t&&(Bi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u6(e)}function d6(e){var t=Tv();return function(){var n,r=nu(e);if(t){var i=nu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c6(this,n)}}function f6(e){if(Array.isArray(e))return Hd(e)}function h6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
85
85
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mh(e){return f6(e)||h6(e)||Pv(e)||g6()}function m6(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function p6(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var b6=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(p6(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
86
|
-
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=m6(i);try{o.insertRule(r,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),$t="-ms-",ru="-moz-",Me="-webkit-",ph="comm",bh="rule",vh="decl",v6="@import",kv="@keyframes",y6="@layer",x6=Math.abs,zu=String.fromCharCode,C6=Object.assign;function w6(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function Mv(e){return e.trim()}function D6(e,t){return(e=t.exec(e))?e[0]:e}function Be(e,t,n){return e.replace(t,n)}function Wd(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function Ho(e,t,n){return e.slice(t,n)}function Un(e){return e.length}function yh(e){return e.length}function Hs(e,t){return t.push(e),e}function S6(e,t){return e.map(t).join("")}var Gu=1,Ra=1,Bv=0,Qt=0,mt=0,Ha="";function Zu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Gu,column:Ra,length:o,return:""}}function Za(e,t){return C6(Zu("",null,null,"",null,null,0),e,{length:-e.length},t)}function E6(){return mt}function _6(){return mt=Qt>0?St(Ha,--Qt):0,Ra--,mt===10&&(Ra=1,Gu--),mt}function dn(){return mt=Qt<Bv?St(Ha,Qt++):0,Ra++,mt===10&&(Ra=1,Gu++),mt}function er(){return St(Ha,Qt)}function Dl(){return Qt}function vs(e,t){return Ho(Ha,e,t)}function jo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ov(e){return Gu=Ra=1,Bv=Un(Ha=e),Qt=0,[]}function Nv(e){return Ha="",e}function Sl(e){return Mv(vs(Qt-1,zd(e===91?e+2:e===40?e+1:e)))}function I6(e){for(;(mt=er())&&mt<33;)dn();return jo(e)>2||jo(mt)>3?"":" "}function $6(e,t){for(;--t&&dn()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return vs(e,Dl()+(t<6&&er()==32&&dn()==32))}function zd(e){for(;dn();)switch(mt){case e:return Qt;case 34:case 39:e!==34&&e!==39&&zd(mt);break;case 40:e===41&&zd(e);break;case 92:dn();break}return Qt}function R6(e,t){for(;dn()&&e+mt!==57;)if(e+mt===84&&er()===47)break;return"/*"+vs(t,Qt-1)+"*"+zu(e===47?e:dn())}function A6(e){for(;!jo(er());)dn();return vs(e,Qt)}function F6(e){return Nv(El("",null,null,null,[""],e=Ov(e),0,[0],e))}function El(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,h=0,f=0,g=0,m=1,v=1,y=1,b=0,x="",S=i,w=a,I=r,F=x;v;)switch(g=b,b=dn()){case 40:if(g!=108&&St(F,d-1)==58){Wd(F+=Be(Sl(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=Sl(b);break;case 9:case 10:case 13:case 32:F+=I6(g);break;case 92:F+=$6(Dl()-1,7);continue;case 47:switch(er()){case 42:case 47:Hs(P6(R6(dn(),Dl()),t,n),l);break;default:F+="/"}break;case 123*m:s[u++]=Un(F)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:y==-1&&(F=Be(F,/\f/g,"")),f>0&&Un(F)-d&&Hs(f>32?Bm(F+";",r,n,d-1):Bm(Be(F," ","")+";",r,n,d-2),l);break;case 59:F+=";";default:if(Hs(I=Mm(F,t,n,u,c,i,s,x,S=[],w=[],d),a),b===123)if(c===0)El(F,t,I,I,S,a,d,s,w);else switch(h===99&&St(F,3)===110?100:h){case 100:case 108:case 109:case 115:El(e,I,I,r&&Hs(Mm(e,I,I,0,0,i,s,x,i,S=[],d),w),i,w,d,s,r?S:w);break;default:El(F,I,I,I,[""],w,0,s,w)}}u=c=f=0,m=y=1,x=F="",d=o;break;case 58:d=1+Un(F),f=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&_6()==125)continue}switch(F+=zu(b),b*m){case 38:y=c>0?1:(F+="\f",-1);break;case 44:s[u++]=(Un(F)-1)*y,y=1;break;case 64:er()===45&&(F+=Sl(dn())),h=er(),c=d=Un(x=F+=A6(Dl())),b++;break;case 45:g===45&&Un(F)==2&&(m=0)}}return a}function Mm(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=i===0?a:[""],f=yh(h),g=0,m=0,v=0;g<r;++g)for(var y=0,b=Ho(e,d+1,d=x6(m=o[g])),x=e;y<f;++y)(x=Mv(m>0?h[y]+" "+b:Be(b,/&\f/g,h[y])))&&(l[v++]=x);return Zu(e,t,n,i===0?bh:s,l,u,c)}function P6(e,t,n){return Zu(e,t,n,ph,zu(E6()),Ho(e,2,-2),0)}function Bm(e,t,n,r){return Zu(e,t,n,vh,Ho(e,0,r),Ho(e,r+1,-1),r)}function va(e,t){for(var n="",r=yh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function T6(e,t,n,r){switch(e.type){case y6:if(e.children.length)break;case v6:case vh:return e.return=e.return||e.value;case ph:return"";case kv:return e.return=e.value+"{"+va(e.children,r)+"}";case bh:e.value=e.props.join(",")}return Un(n=va(e.children,r))?e.return=e.value+"{"+n+"}":""}function k6(e){var t=yh(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function M6(e){return function(t){t.root||(t=t.return)&&e(t)}}var B6=function(t,n,r){for(var i=0,a=0;i=a,a=er(),i===38&&a===12&&(n[r]=1),!jo(a);)dn();return vs(t,Qt)},O6=function(t,n){var r=-1,i=44;do switch(jo(i)){case 0:i===38&&er()===12&&(n[r]=1),t[r]+=B6(Qt-1,n,r);break;case 2:t[r]+=Sl(i);break;case 4:if(i===44){t[++r]=er()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zu(i)}while(i=dn());return t},N6=function(t,n){return Nv(O6(Ov(t),n))},Om=new WeakMap,V6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Om.get(r))&&!i){Om.set(t,!0);for(var a=[],o=N6(n,a),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},L6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},H6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",j6=function(t){return t.type==="comm"&&t.children.indexOf(H6)>-1},W6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!n.parent,s=o?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if(j6(u))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Vv=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},z6=function(t,n){for(var r=t-1;r>=0;r--)if(!Vv(n[r]))return!0;return!1},Nm=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},G6=function(t,n,r){Vv(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Nm(t)):z6(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Nm(t)))};function Lv(e,t){switch(w6(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+ru+e+$t+e+e;case 6828:case 4268:return Me+e+$t+e+e;case 6165:return Me+e+$t+"flex-"+e+e;case 5187:return Me+e+Be(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+$t+"flex-$1$2")+e;case 5443:return Me+e+$t+"flex-item-"+Be(e,/flex-|-self/,"")+e;case 4675:return Me+e+$t+"flex-line-pack"+Be(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+$t+Be(e,"shrink","negative")+e;case 5292:return Me+e+$t+Be(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Be(e,"-grow","")+Me+e+$t+Be(e,"grow","positive")+e;case 4554:return Me+Be(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Be(Be(Be(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Be(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Be(Be(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+$t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Be(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Un(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+ru+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wd(e,"stretch")?Lv(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Un(e)-3-(~Wd(e,"!important")&&10))){case 107:return Be(e,":",":"+Me)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(St(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+$t+e+e}return e}var Z6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case vh:t.return=Lv(t.value,t.length);break;case kv:return va([Za(t,{value:Be(t.value,"@","@"+Me)})],i);case bh:if(t.length)return S6(t.props,function(a){switch(D6(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return va([Za(t,{props:[Be(a,/:(read-\w+)/,":"+ru+"$1")]})],i);case"::placeholder":return va([Za(t,{props:[Be(a,/:(plac\w+)/,":"+Me+"input-$1")]}),Za(t,{props:[Be(a,/:(plac\w+)/,":"+ru+"$1")]}),Za(t,{props:[Be(a,/:(plac\w+)/,$t+"input-$1")]})],i)}return""})}},X6=[Z6],Y6=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
86
|
+
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=m6(i);try{o.insertRule(r,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),$t="-ms-",ru="-moz-",Me="-webkit-",ph="comm",bh="rule",vh="decl",v6="@import",kv="@keyframes",y6="@layer",x6=Math.abs,zu=String.fromCharCode,C6=Object.assign;function w6(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function Mv(e){return e.trim()}function D6(e,t){return(e=t.exec(e))?e[0]:e}function Be(e,t,n){return e.replace(t,n)}function Wd(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function Ho(e,t,n){return e.slice(t,n)}function Un(e){return e.length}function yh(e){return e.length}function Hs(e,t){return t.push(e),e}function S6(e,t){return e.map(t).join("")}var Gu=1,Ra=1,Bv=0,Qt=0,mt=0,Ha="";function Zu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Gu,column:Ra,length:o,return:""}}function Za(e,t){return C6(Zu("",null,null,"",null,null,0),e,{length:-e.length},t)}function E6(){return mt}function _6(){return mt=Qt>0?St(Ha,--Qt):0,Ra--,mt===10&&(Ra=1,Gu--),mt}function dn(){return mt=Qt<Bv?St(Ha,Qt++):0,Ra++,mt===10&&(Ra=1,Gu++),mt}function er(){return St(Ha,Qt)}function Dl(){return Qt}function vs(e,t){return Ho(Ha,e,t)}function jo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ov(e){return Gu=Ra=1,Bv=Un(Ha=e),Qt=0,[]}function Nv(e){return Ha="",e}function Sl(e){return Mv(vs(Qt-1,zd(e===91?e+2:e===40?e+1:e)))}function I6(e){for(;(mt=er())&&mt<33;)dn();return jo(e)>2||jo(mt)>3?"":" "}function $6(e,t){for(;--t&&dn()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return vs(e,Dl()+(t<6&&er()==32&&dn()==32))}function zd(e){for(;dn();)switch(mt){case e:return Qt;case 34:case 39:e!==34&&e!==39&&zd(mt);break;case 40:e===41&&zd(e);break;case 92:dn();break}return Qt}function R6(e,t){for(;dn()&&e+mt!==57;)if(e+mt===84&&er()===47)break;return"/*"+vs(t,Qt-1)+"*"+zu(e===47?e:dn())}function A6(e){for(;!jo(er());)dn();return vs(e,Qt)}function F6(e){return Nv(El("",null,null,null,[""],e=Ov(e),0,[0],e))}function El(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,h=0,f=0,g=0,m=1,v=1,y=1,b=0,x="",S=i,w=a,_=r,F=x;v;)switch(g=b,b=dn()){case 40:if(g!=108&&St(F,d-1)==58){Wd(F+=Be(Sl(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=Sl(b);break;case 9:case 10:case 13:case 32:F+=I6(g);break;case 92:F+=$6(Dl()-1,7);continue;case 47:switch(er()){case 42:case 47:Hs(P6(R6(dn(),Dl()),t,n),l);break;default:F+="/"}break;case 123*m:s[u++]=Un(F)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:y==-1&&(F=Be(F,/\f/g,"")),f>0&&Un(F)-d&&Hs(f>32?Bm(F+";",r,n,d-1):Bm(Be(F," ","")+";",r,n,d-2),l);break;case 59:F+=";";default:if(Hs(_=Mm(F,t,n,u,c,i,s,x,S=[],w=[],d),a),b===123)if(c===0)El(F,t,_,_,S,a,d,s,w);else switch(h===99&&St(F,3)===110?100:h){case 100:case 108:case 109:case 115:El(e,_,_,r&&Hs(Mm(e,_,_,0,0,i,s,x,i,S=[],d),w),i,w,d,s,r?S:w);break;default:El(F,_,_,_,[""],w,0,s,w)}}u=c=f=0,m=y=1,x=F="",d=o;break;case 58:d=1+Un(F),f=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&_6()==125)continue}switch(F+=zu(b),b*m){case 38:y=c>0?1:(F+="\f",-1);break;case 44:s[u++]=(Un(F)-1)*y,y=1;break;case 64:er()===45&&(F+=Sl(dn())),h=er(),c=d=Un(x=F+=A6(Dl())),b++;break;case 45:g===45&&Un(F)==2&&(m=0)}}return a}function Mm(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=i===0?a:[""],f=yh(h),g=0,m=0,v=0;g<r;++g)for(var y=0,b=Ho(e,d+1,d=x6(m=o[g])),x=e;y<f;++y)(x=Mv(m>0?h[y]+" "+b:Be(b,/&\f/g,h[y])))&&(l[v++]=x);return Zu(e,t,n,i===0?bh:s,l,u,c)}function P6(e,t,n){return Zu(e,t,n,ph,zu(E6()),Ho(e,2,-2),0)}function Bm(e,t,n,r){return Zu(e,t,n,vh,Ho(e,0,r),Ho(e,r+1,-1),r)}function va(e,t){for(var n="",r=yh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function T6(e,t,n,r){switch(e.type){case y6:if(e.children.length)break;case v6:case vh:return e.return=e.return||e.value;case ph:return"";case kv:return e.return=e.value+"{"+va(e.children,r)+"}";case bh:e.value=e.props.join(",")}return Un(n=va(e.children,r))?e.return=e.value+"{"+n+"}":""}function k6(e){var t=yh(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function M6(e){return function(t){t.root||(t=t.return)&&e(t)}}var B6=function(t,n,r){for(var i=0,a=0;i=a,a=er(),i===38&&a===12&&(n[r]=1),!jo(a);)dn();return vs(t,Qt)},O6=function(t,n){var r=-1,i=44;do switch(jo(i)){case 0:i===38&&er()===12&&(n[r]=1),t[r]+=B6(Qt-1,n,r);break;case 2:t[r]+=Sl(i);break;case 4:if(i===44){t[++r]=er()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zu(i)}while(i=dn());return t},N6=function(t,n){return Nv(O6(Ov(t),n))},Om=new WeakMap,V6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Om.get(r))&&!i){Om.set(t,!0);for(var a=[],o=N6(n,a),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},L6=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},H6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",j6=function(t){return t.type==="comm"&&t.children.indexOf(H6)>-1},W6=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!n.parent,s=o?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if(j6(u))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Vv=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},z6=function(t,n){for(var r=t-1;r>=0;r--)if(!Vv(n[r]))return!0;return!1},Nm=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},G6=function(t,n,r){Vv(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Nm(t)):z6(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Nm(t)))};function Lv(e,t){switch(w6(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+ru+e+$t+e+e;case 6828:case 4268:return Me+e+$t+e+e;case 6165:return Me+e+$t+"flex-"+e+e;case 5187:return Me+e+Be(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+$t+"flex-$1$2")+e;case 5443:return Me+e+$t+"flex-item-"+Be(e,/flex-|-self/,"")+e;case 4675:return Me+e+$t+"flex-line-pack"+Be(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+$t+Be(e,"shrink","negative")+e;case 5292:return Me+e+$t+Be(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Be(e,"-grow","")+Me+e+$t+Be(e,"grow","positive")+e;case 4554:return Me+Be(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Be(Be(Be(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Be(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Be(Be(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+$t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Be(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Un(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+ru+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wd(e,"stretch")?Lv(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Un(e)-3-(~Wd(e,"!important")&&10))){case 107:return Be(e,":",":"+Me)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(St(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+$t+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+$t+e+e}return e}var Z6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case vh:t.return=Lv(t.value,t.length);break;case kv:return va([Za(t,{value:Be(t.value,"@","@"+Me)})],i);case bh:if(t.length)return S6(t.props,function(a){switch(D6(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return va([Za(t,{props:[Be(a,/:(read-\w+)/,":"+ru+"$1")]})],i);case"::placeholder":return va([Za(t,{props:[Be(a,/:(plac\w+)/,":"+Me+"input-$1")]}),Za(t,{props:[Be(a,/:(plac\w+)/,":"+ru+"$1")]}),Za(t,{props:[Be(a,/:(plac\w+)/,$t+"input-$1")]})],i)}return""})}},X6=[Z6],Y6=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
87
87
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||X6;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)a[v[y]]=!0;s.push(m)});var l,u=[V6,L6];process.env.NODE_ENV!=="production"&&u.push(W6({get compat(){return g.compat}}),G6);{var c,d=[T6,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==ph&&c.insert(m.value+"{}"))}:M6(function(m){c.insert(m)})],h=k6(u.concat(i,d)),f=function(v){return va(F6(v),h)};l=function(v,y,b,x){c=b,process.env.NODE_ENV!=="production"&&y.map!==void 0&&(c={insert:function(w){b.insert(w+y.map)}}),f(v?v+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new b6({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},Gd={exports:{}},Ve={};/** @license React v16.13.1
|
88
88
|
* react-is.production.min.js
|
89
89
|
*
|
@@ -91,14 +91,14 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
91
91
|
*
|
92
92
|
* This source code is licensed under the MIT license found in the
|
93
93
|
* LICENSE file in the root directory of this source tree.
|
94
|
-
*/var Vm;function U6(){if(Vm)return Ve;Vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var
|
94
|
+
*/var Vm;function U6(){if(Vm)return Ve;Vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case l:case u:case r:case a:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case g:case f:case o:return w;default:return _}}case n:return _}}}function S(w){return x(w)===u}return Ve.AsyncMode=l,Ve.ConcurrentMode=u,Ve.ContextConsumer=s,Ve.ContextProvider=o,Ve.Element=t,Ve.ForwardRef=c,Ve.Fragment=r,Ve.Lazy=g,Ve.Memo=f,Ve.Portal=n,Ve.Profiler=a,Ve.StrictMode=i,Ve.Suspense=d,Ve.isAsyncMode=function(w){return S(w)||x(w)===l},Ve.isConcurrentMode=S,Ve.isContextConsumer=function(w){return x(w)===s},Ve.isContextProvider=function(w){return x(w)===o},Ve.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ve.isForwardRef=function(w){return x(w)===c},Ve.isFragment=function(w){return x(w)===r},Ve.isLazy=function(w){return x(w)===g},Ve.isMemo=function(w){return x(w)===f},Ve.isPortal=function(w){return x(w)===n},Ve.isProfiler=function(w){return x(w)===a},Ve.isStrictMode=function(w){return x(w)===i},Ve.isSuspense=function(w){return x(w)===d},Ve.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===u||w===a||w===i||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===f||w.$$typeof===o||w.$$typeof===s||w.$$typeof===c||w.$$typeof===v||w.$$typeof===y||w.$$typeof===b||w.$$typeof===m)},Ve.typeOf=x,Ve}var Le={};/** @license React v16.13.1
|
95
95
|
* react-is.development.js
|
96
96
|
*
|
97
97
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
98
98
|
*
|
99
99
|
* This source code is licensed under the MIT license found in the
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
101
|
-
*/var Lm;function J6(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===u||Y===a||Y===i||Y===d||Y===h||typeof Y=="object"&&Y!==null&&(Y.$$typeof===g||Y.$$typeof===f||Y.$$typeof===o||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===v||Y.$$typeof===y||Y.$$typeof===b||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var me=Y.$$typeof;switch(me){case t:var he=Y.type;switch(he){case l:case u:case r:case a:case i:case d:return he;default:var ce=he&&he.$$typeof;switch(ce){case s:case c:case g:case f:case o:return ce;default:return me}}case n:return me}}}var w=l,
|
101
|
+
*/var Lm;function J6(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===u||Y===a||Y===i||Y===d||Y===h||typeof Y=="object"&&Y!==null&&(Y.$$typeof===g||Y.$$typeof===f||Y.$$typeof===o||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===v||Y.$$typeof===y||Y.$$typeof===b||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var me=Y.$$typeof;switch(me){case t:var he=Y.type;switch(he){case l:case u:case r:case a:case i:case d:return he;default:var ce=he&&he.$$typeof;switch(ce){case s:case c:case g:case f:case o:return ce;default:return me}}case n:return me}}}var w=l,_=u,F=s,p=o,D=t,$=c,I=r,A=g,k=f,R=n,M=a,T=i,P=d,B=!1;function O(Y){return B||(B=!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.")),L(Y)||S(Y)===l}function L(Y){return S(Y)===u}function H(Y){return S(Y)===s}function z(Y){return S(Y)===o}function X(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function G(Y){return S(Y)===c}function j(Y){return S(Y)===r}function V(Y){return S(Y)===g}function Z(Y){return S(Y)===f}function q(Y){return S(Y)===n}function te(Y){return S(Y)===a}function ue(Y){return S(Y)===i}function ie(Y){return S(Y)===d}Le.AsyncMode=w,Le.ConcurrentMode=_,Le.ContextConsumer=F,Le.ContextProvider=p,Le.Element=D,Le.ForwardRef=$,Le.Fragment=I,Le.Lazy=A,Le.Memo=k,Le.Portal=R,Le.Profiler=M,Le.StrictMode=T,Le.Suspense=P,Le.isAsyncMode=O,Le.isConcurrentMode=L,Le.isContextConsumer=H,Le.isContextProvider=z,Le.isElement=X,Le.isForwardRef=G,Le.isFragment=j,Le.isLazy=V,Le.isMemo=Z,Le.isPortal=q,Le.isProfiler=te,Le.isStrictMode=ue,Le.isSuspense=ie,Le.isValidElementType=x,Le.typeOf=S}()),Le}process.env.NODE_ENV==="production"?Gd.exports=U6():Gd.exports=J6();var q6=Gd.exports,Hv=q6,K6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Q6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jv={};jv[Hv.ForwardRef]=K6;jv[Hv.Memo]=Q6;var e9=!0;function Wv(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var xh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||e9===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ch=function(t,n,r){xh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function t9(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function r9(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Hm=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
102
102
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
103
103
|
You can read more about this here:
|
104
104
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,i9="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",a9=/[A-Z]|^ms/g,zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wh=function(t){return t.charCodeAt(1)===45},jm=function(t){return t!=null&&typeof t!="boolean"},Tc=r9(function(e){return wh(e)?e:e.replace(a9,"-$&").toLowerCase()}),iu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zv,function(r,i,a){return An={name:i,styles:a,next:An},i})}return n9[t]!==1&&!wh(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var o9=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,s9=["normal","none","initial","inherit","unset"],l9=iu,u9=/^-ms-/,c9=/-(.)/g,Wm={};iu=function(t,n){if(t==="content"&&(typeof n!="string"||s9.indexOf(n)===-1&&!o9.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=l9(t,n);return r!==""&&!wh(t)&&t.indexOf("-")!==-1&&Wm[t]===void 0&&(Wm[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(u9,"ms-").replace(c9,function(i,a){return a.toUpperCase()})+"?")),r}}var Gv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Wo(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Gv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return An={name:n.name,styles:n.styles,next:An},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)An={name:r.name,styles:r.styles,next:An},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return d9(e,t,n)}case"function":{if(e!==void 0){var a=An,o=n(e);return An=a,Wo(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=n.replace(zv,function(c,d,h){var f="animation"+s.length;return s.push("const "+f+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
|
@@ -107,10 +107,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
107
107
|
You should wrap it with \`css\` like this:
|
108
108
|
|
109
109
|
`+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function d9(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Wo(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":jm(o)&&(r+=Tc(a)+":"+iu(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Gv);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)jm(o[s])&&(r+=Tc(a)+":"+iu(a,o[s])+";");else{var l=Wo(e,t,o);switch(a){case"animation":case"animationName":{r+=Tc(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(i9),r+=a+"{"+l+"}"}}}}return r}var zm=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Zv;process.env.NODE_ENV!=="production"&&(Zv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var An,zo=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";An=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Wo(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Hm),a+=o[0]);for(var s=1;s<t.length;s++)a+=Wo(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(Hm),a+=o[s]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(Zv,function(h){return l=h,""})),zm.lastIndex=0;for(var u="",c;(c=zm.exec(a))!==null;)u+="-"+c[1];var d=t9(a)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:a,map:l,next:An,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:a,next:An}},f9=function(t){return t()},Xv=W.useInsertionEffect?W.useInsertionEffect:!1,Yv=Xv||f9,Gm=Xv||W.useLayoutEffect,Dh={}.hasOwnProperty,Sh=W.createContext(typeof HTMLElement<"u"?Y6({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Sh.displayName="EmotionCacheContext");Sh.Provider;var Eh=function(t){return C.forwardRef(function(n,r){var i=C.useContext(Sh);return t(n,i,r)})},Xu=W.createContext({});process.env.NODE_ENV!=="production"&&(Xu.displayName="EmotionThemeContext");var Zm=function(t){var n=t.split(".");return n[n.length-1]},h9=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return Zm(n[1])},g9=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),m9=function(t){return t.replace(/\$/g,"-")},p9=function(t){if(t)for(var n=t.split(`
|
110
|
-
`),r=0;r<n.length;r++){var i=h9(n[r]);if(i){if(g9.has(i))break;if(/^[A-Z]/.test(i))return m9(i)}}},Zd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",b9=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Dh.call(n,i)&&(r[i]=n[i]);if(r[Zd]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=p9(new Error().stack);a&&(r[Xd]=a)}return r},v9=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return xh(n,r,i),Yv(function(){return Ch(n,r,i)}),null},Uv=Eh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Zd],a=[r],o="";typeof e.className=="string"?o=Wv(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=zo(a,void 0,W.useContext(Xu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Xd];l&&(s=zo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Dh.call(e,c)&&c!=="css"&&c!==Zd&&(process.env.NODE_ENV==="production"||c!==Xd)&&(u[c]=e[c]);return u.ref=n,u.className=o,W.createElement(W.Fragment,null,W.createElement(v9,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,u))});process.env.NODE_ENV!=="production"&&(Uv.displayName="EmotionCssPropInternal");var y9=Uv,x9={version:"11.11.4"},de=function(t,n){var r=arguments;if(n==null||!Dh.call(n,"css"))return W.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=y9,a[1]=b9(t,n);for(var o=2;o<i;o++)a[o]=r[o];return W.createElement.apply(null,a)},Xm=!1,C9=Eh(function(e,t){process.env.NODE_ENV!=="production"&&!Xm&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Xm=!0);var n=e.styles,r=zo([n],void 0,W.useContext(Xu)),i=W.useRef();return Gm(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Gm(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Ch(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(C9.displayName="EmotionGlobal");function _h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return zo(t)}var w9=function(){var t=_h.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},D9=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function S9(e,t,n){var r=[],i=Wv(e,r,n);return r.length<2?n:i+t(r)}var E9=function(t){var n=t.cache,r=t.serializedArr;return Yv(function(){for(var i=0;i<r.length;i++)Ch(n,r[i],!1)}),null},_9=Eh(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=zo(c,t.registered);return r.push(h),xh(t,h,!1),t.key+"-"+h.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return S9(t.registered,i,D9(c))},o={css:i,cx:a,theme:W.useContext(Xu)},s=e.children(o);return n=!0,W.createElement(W.Fragment,null,W.createElement(E9,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(_9.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Ym=!0,I9=typeof jest<"u"||typeof vi<"u";if(Ym&&!I9){var Um=typeof globalThis<"u"?globalThis:Ym?window:global,Jm="__EMOTION_REACT_"+x9.version.split(".")[0]+"__";Um[Jm]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Um[Jm]=!0}}function $9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Yd=C.useLayoutEffect,R9=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],au=function(){};function A9(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function F9(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(A9(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var qm=function(t){return L9(t)?t.filter(Boolean):Bi(t)==="object"&&t!==null?[t]:[]},Jv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Fr(t,R9);return fe({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Yu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P9(e){return Yu(e)?window.innerHeight:e.clientHeight}function qv(e){return Yu(e)?window.pageYOffset:e.scrollTop}function ou(e,t){if(Yu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function T9(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function k9(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function js(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:au,i=qv(e),a=t-i,o=10,s=0;function l(){s+=o;var u=k9(s,i,a,n);ou(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Km(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ou(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ou(e,Math.max(t.offsetTop-i,0))}function M9(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Qm(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function B9(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Kv=!1,O9={get passive(){return Kv=!0}},Ws=typeof window<"u"?window:{};Ws.addEventListener&&Ws.removeEventListener&&(Ws.addEventListener("p",au,O9),Ws.removeEventListener("p",au,!1));var N9=Kv;function V9(e){return e!=null}function L9(e){return Array.isArray(e)}function zs(e,t,n){return e?t:n}var H9=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];var a=Object.entries(t).filter(function(o){var s=_r(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=_r(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},j9=["children","innerProps"],W9=["children","innerProps"];function z9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=T9(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,v=n.offsetParent.getBoundingClientRect(),y=v.top,b=o?window.innerHeight:P9(l),x=qv(l),S=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),I=y-w,F=b-m,p=I+x,D=d-x-m,$=f-b+x+S,_=x+m-w,A=160;switch(i){case"auto":case"bottom":if(F>=g)return{placement:"bottom",maxHeight:t};if(D>=g&&!o)return a&&js(l,$,A),{placement:"bottom",maxHeight:t};if(!o&&D>=r||o&&F>=r){a&&js(l,$,A);var k=o?F-S:D-S;return{placement:"bottom",maxHeight:k}}if(i==="auto"||o){var R=t,M=o?I:p;return M>=r&&(R=Math.min(M-S-s,t)),{placement:"top",maxHeight:R}}if(i==="bottom")return a&&ou(l,$),{placement:"bottom",maxHeight:t};break;case"top":if(I>=g)return{placement:"top",maxHeight:t};if(p>=g&&!o)return a&&js(l,_,A),{placement:"top",maxHeight:t};if(!o&&p>=r||o&&I>=r){var T=t;return(!o&&p>=r||o&&I>=r)&&(T=o?I-w:p-w),a&&js(l,_,A),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function G9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Qv=function(t){return t==="auto"?"bottom":t},Z9=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return fe((r={label:"menu"},ao(r,G9(i),"100%"),ao(r,"position","absolute"),ao(r,"width","100%"),ao(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ey=C.createContext(null),X9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=C.useContext(ey)||{},c=u.setPortalPlacement,d=C.useRef(null),h=C.useState(i),f=_r(h,2),g=f[0],m=f[1],v=C.useState(null),y=_r(v,2),b=y[0],x=y[1],S=l.spacing.controlHeight;return Yd(function(){var w=d.current;if(w){var I=o==="fixed",F=s&&!I,p=z9({maxHeight:i,menuEl:w,minHeight:r,placement:a,shouldScroll:F,isFixedPosition:I,controlHeight:S});m(p.maxHeight),x(p.placement),c==null||c(p.placement)}},[i,a,o,s,r,c,S]),n({ref:d,placerProps:fe(fe({},t),{},{placement:b||Qv(a),maxHeight:g})})},Y9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return de("div",ge({},st(t,"menu",{menu:!0}),{ref:r},i),n)},U9=Y9,J9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},q9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return de("div",ge({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},ty=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},K9=ty,Q9=ty,eR=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=Fr(t,j9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tR=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=Fr(t,W9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nR=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rR=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=C.useRef(null),u=C.useRef(null),c=C.useState(Qv(o)),d=_r(c,2),h=d[0],f=d[1],g=C.useMemo(function(){return{setPortalPlacement:f}},[]),m=C.useState(null),v=_r(m,2),y=v[0],b=v[1],x=C.useCallback(function(){if(i){var F=M9(i),p=s==="fixed"?0:window.pageYOffset,D=F[h]+p;(D!==(y==null?void 0:y.offset)||F.left!==(y==null?void 0:y.rect.left)||F.width!==(y==null?void 0:y.rect.width))&&b({offset:D,rect:F})}},[i,s,h,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Yd(function(){x()},[x]);var S=C.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=d1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);Yd(function(){S()},[S]);var w=C.useCallback(function(F){l.current=F,S()},[S]);if(!n&&s!=="fixed"||!y)return null;var I=de("div",ge({ref:w},st(fe(fe({},t),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),a),r);return de(ey.Provider,{value:g},n?Oa.createPortal(I,n):I)},iR=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},aR=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return de("div",ge({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},oR=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},sR=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return de("div",ge({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},lR=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},uR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},ep,cR=["size"],dR=["innerProps","isRtl","size"];function fR(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hR=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:fR},ny=function(t){var n=t.size,r=Fr(t,cR);return de("svg",ge({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hR},r))},Ih=function(t){return de(ny,ge({size:20},t),de("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ry=function(t){return de(ny,ge({size:20},t),de("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},iy=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},gR=iy,mR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||de(ry,null))},pR=iy,bR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||de(Ih,null))},vR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},yR=function(t){var n=t.innerProps;return de("span",ge({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},xR=w9(ep||(ep=$9([`
|
110
|
+
`),r=0;r<n.length;r++){var i=h9(n[r]);if(i){if(g9.has(i))break;if(/^[A-Z]/.test(i))return m9(i)}}},Zd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",b9=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Dh.call(n,i)&&(r[i]=n[i]);if(r[Zd]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=p9(new Error().stack);a&&(r[Xd]=a)}return r},v9=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return xh(n,r,i),Yv(function(){return Ch(n,r,i)}),null},Uv=Eh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Zd],a=[r],o="";typeof e.className=="string"?o=Wv(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=zo(a,void 0,W.useContext(Xu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Xd];l&&(s=zo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Dh.call(e,c)&&c!=="css"&&c!==Zd&&(process.env.NODE_ENV==="production"||c!==Xd)&&(u[c]=e[c]);return u.ref=n,u.className=o,W.createElement(W.Fragment,null,W.createElement(v9,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,u))});process.env.NODE_ENV!=="production"&&(Uv.displayName="EmotionCssPropInternal");var y9=Uv,x9={version:"11.11.4"},de=function(t,n){var r=arguments;if(n==null||!Dh.call(n,"css"))return W.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=y9,a[1]=b9(t,n);for(var o=2;o<i;o++)a[o]=r[o];return W.createElement.apply(null,a)},Xm=!1,C9=Eh(function(e,t){process.env.NODE_ENV!=="production"&&!Xm&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Xm=!0);var n=e.styles,r=zo([n],void 0,W.useContext(Xu)),i=W.useRef();return Gm(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Gm(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Ch(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(C9.displayName="EmotionGlobal");function _h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return zo(t)}var w9=function(){var t=_h.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},D9=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function S9(e,t,n){var r=[],i=Wv(e,r,n);return r.length<2?n:i+t(r)}var E9=function(t){var n=t.cache,r=t.serializedArr;return Yv(function(){for(var i=0;i<r.length;i++)Ch(n,r[i],!1)}),null},_9=Eh(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=zo(c,t.registered);return r.push(h),xh(t,h,!1),t.key+"-"+h.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return S9(t.registered,i,D9(c))},o={css:i,cx:a,theme:W.useContext(Xu)},s=e.children(o);return n=!0,W.createElement(W.Fragment,null,W.createElement(E9,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(_9.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Ym=!0,I9=typeof jest<"u"||typeof vi<"u";if(Ym&&!I9){var Um=typeof globalThis<"u"?globalThis:Ym?window:global,Jm="__EMOTION_REACT_"+x9.version.split(".")[0]+"__";Um[Jm]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Um[Jm]=!0}}function $9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Yd=C.useLayoutEffect,R9=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],au=function(){};function A9(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function F9(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(A9(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var qm=function(t){return L9(t)?t.filter(Boolean):Bi(t)==="object"&&t!==null?[t]:[]},Jv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Fr(t,R9);return fe({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function Yu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P9(e){return Yu(e)?window.innerHeight:e.clientHeight}function qv(e){return Yu(e)?window.pageYOffset:e.scrollTop}function ou(e,t){if(Yu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function T9(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function k9(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function js(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:au,i=qv(e),a=t-i,o=10,s=0;function l(){s+=o;var u=k9(s,i,a,n);ou(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Km(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ou(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ou(e,Math.max(t.offsetTop-i,0))}function M9(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Qm(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function B9(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Kv=!1,O9={get passive(){return Kv=!0}},Ws=typeof window<"u"?window:{};Ws.addEventListener&&Ws.removeEventListener&&(Ws.addEventListener("p",au,O9),Ws.removeEventListener("p",au,!1));var N9=Kv;function V9(e){return e!=null}function L9(e){return Array.isArray(e)}function zs(e,t,n){return e?t:n}var H9=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];var a=Object.entries(t).filter(function(o){var s=_r(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=_r(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},j9=["children","innerProps"],W9=["children","innerProps"];function z9(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=T9(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,v=n.offsetParent.getBoundingClientRect(),y=v.top,b=o?window.innerHeight:P9(l),x=qv(l),S=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,F=b-m,p=_+x,D=d-x-m,$=f-b+x+S,I=x+m-w,A=160;switch(i){case"auto":case"bottom":if(F>=g)return{placement:"bottom",maxHeight:t};if(D>=g&&!o)return a&&js(l,$,A),{placement:"bottom",maxHeight:t};if(!o&&D>=r||o&&F>=r){a&&js(l,$,A);var k=o?F-S:D-S;return{placement:"bottom",maxHeight:k}}if(i==="auto"||o){var R=t,M=o?_:p;return M>=r&&(R=Math.min(M-S-s,t)),{placement:"top",maxHeight:R}}if(i==="bottom")return a&&ou(l,$),{placement:"bottom",maxHeight:t};break;case"top":if(_>=g)return{placement:"top",maxHeight:t};if(p>=g&&!o)return a&&js(l,I,A),{placement:"top",maxHeight:t};if(!o&&p>=r||o&&_>=r){var T=t;return(!o&&p>=r||o&&_>=r)&&(T=o?_-w:p-w),a&&js(l,I,A),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function G9(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Qv=function(t){return t==="auto"?"bottom":t},Z9=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return fe((r={label:"menu"},ao(r,G9(i),"100%"),ao(r,"position","absolute"),ao(r,"width","100%"),ao(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ey=C.createContext(null),X9=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=C.useContext(ey)||{},c=u.setPortalPlacement,d=C.useRef(null),h=C.useState(i),f=_r(h,2),g=f[0],m=f[1],v=C.useState(null),y=_r(v,2),b=y[0],x=y[1],S=l.spacing.controlHeight;return Yd(function(){var w=d.current;if(w){var _=o==="fixed",F=s&&!_,p=z9({maxHeight:i,menuEl:w,minHeight:r,placement:a,shouldScroll:F,isFixedPosition:_,controlHeight:S});m(p.maxHeight),x(p.placement),c==null||c(p.placement)}},[i,a,o,s,r,c,S]),n({ref:d,placerProps:fe(fe({},t),{},{placement:b||Qv(a),maxHeight:g})})},Y9=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return de("div",ge({},st(t,"menu",{menu:!0}),{ref:r},i),n)},U9=Y9,J9=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},q9=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return de("div",ge({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},ty=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},K9=ty,Q9=ty,eR=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=Fr(t,j9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tR=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=Fr(t,W9);return de("div",ge({},st(fe(fe({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nR=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rR=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=C.useRef(null),u=C.useRef(null),c=C.useState(Qv(o)),d=_r(c,2),h=d[0],f=d[1],g=C.useMemo(function(){return{setPortalPlacement:f}},[]),m=C.useState(null),v=_r(m,2),y=v[0],b=v[1],x=C.useCallback(function(){if(i){var F=M9(i),p=s==="fixed"?0:window.pageYOffset,D=F[h]+p;(D!==(y==null?void 0:y.offset)||F.left!==(y==null?void 0:y.rect.left)||F.width!==(y==null?void 0:y.rect.width))&&b({offset:D,rect:F})}},[i,s,h,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Yd(function(){x()},[x]);var S=C.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=d1(i,l.current,x,{elementResize:"ResizeObserver"in window}))},[i,x]);Yd(function(){S()},[S]);var w=C.useCallback(function(F){l.current=F,S()},[S]);if(!n&&s!=="fixed"||!y)return null;var _=de("div",ge({ref:w},st(fe(fe({},t),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),a),r);return de(ey.Provider,{value:g},n?Oa.createPortal(_,n):_)},iR=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},aR=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return de("div",ge({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},oR=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},sR=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return de("div",ge({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},lR=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},uR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},ep,cR=["size"],dR=["innerProps","isRtl","size"];function fR(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hR=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:fR},ny=function(t){var n=t.size,r=Fr(t,cR);return de("svg",ge({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hR},r))},Ih=function(t){return de(ny,ge({size:20},t),de("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ry=function(t){return de(ny,ge({size:20},t),de("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},iy=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},gR=iy,mR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||de(ry,null))},pR=iy,bR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||de(Ih,null))},vR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},yR=function(t){var n=t.innerProps;return de("span",ge({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},xR=w9(ep||(ep=$9([`
|
111
111
|
0%, 80%, 100% { opacity: 0; }
|
112
112
|
40% { opacity: 1; }
|
113
|
-
`]))),CR=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},kc=function(t){var n=t.delay,r=t.offset;return de("span",{css:_h({animation:"".concat(xR," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},wR=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=Fr(t,dR);return de("div",ge({},st(fe(fe({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),de(kc,{delay:0,offset:r}),de(kc,{delay:160,offset:!0}),de(kc,{delay:320,offset:!r}))},DR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},SR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",ge({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},ER=SR,_R=["data"],IR=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},$R=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return de("div",ge({},st(t,"group",{group:!0}),l),de(o,ge({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),de("div",null,n))},RR=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},AR=function(t){var n=Jv(t);n.data;var r=Fr(n,_R);return de("div",ge({},st(t,"groupHeading",{"group-heading":!0}),r))},FR=$R,PR=["innerRef","isDisabled","isHidden","inputClassName"],TR=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},kR),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},ay={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ay)},MR=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ay)},BR=function(t){var n=t.cx,r=t.value,i=Jv(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=Fr(i,PR);return de("div",ge({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),de("input",ge({className:n({input:!0},l),ref:a,style:MR(s),disabled:o},u)))},OR=BR,NR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},VR=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},LR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},oy=function(t){var n=t.children,r=t.innerProps;return de("div",r,n)},HR=oy,jR=oy;function WR(e){var t=e.children,n=e.innerProps;return de("div",ge({role:"button"},n),t||de(Ih,{size:14}))}var zR=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return de(u,{data:i,innerProps:fe(fe({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},de(c,{data:i,innerProps:fe({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),de(d,{data:i,innerProps:fe(fe({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},GR=zR,ZR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},XR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",ge({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},YR=XR,UR=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},JR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"placeholder",{placeholder:!0}),r),n)},qR=JR,KR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},QR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return de("div",ge({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},eA=QR,sy={ClearIndicator:bR,Control:ER,DropdownIndicator:mR,DownChevron:ry,CrossIcon:Ih,Group:FR,GroupHeading:AR,IndicatorsContainer:uR,IndicatorSeparator:yR,Input:OR,LoadingIndicator:wR,Menu:U9,MenuList:q9,MenuPortal:rR,LoadingMessage:tR,NoOptionsMessage:eR,MultiValue:GR,MultiValueContainer:HR,MultiValueLabel:jR,MultiValueRemove:WR,Option:YR,Placeholder:qR,SelectContainer:aR,SingleValue:eA,ValueContainer:sR},tA=function(t){return fe(fe({},sy),t.components)},tp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function nA(e,t){return!!(e===t||tp(e)&&tp(t))}function rA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!nA(e[n],t[n]))return!1;return!0}function iA(e,t){t===void 0&&(t=rA);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function aA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oA=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:aA},sA=function(t){return de("span",ge({css:oA},t))},np=sA,lA={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,v){return m&&m.length?"".concat(m.indexOf(v)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},uA=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,v=l.isSearchable,y=l.menuIsOpen,b=l.options,x=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,I=l["aria-label"],F=l["aria-live"],p=C.useMemo(function(){return fe(fe({},lA),d||{})},[d]),D=C.useMemo(function(){var M="";if(n&&p.onChange){var T=n.option,P=n.options,B=n.removedValue,O=n.removedValues,L=n.value,H=function(q){return Array.isArray(q)?null:q},z=B||T||H(L),X=z?h(z):"",G=P||O||void 0,j=G?G.map(h):[],V=fe({isDisabled:z&&m(z,s),label:X,labels:j},n);M=p.onChange(V)}return M},[n,p,m,s,h]),$=C.useMemo(function(){var M="",T=r||i,P=!!(r&&s&&s.includes(r));if(T&&p.onFocus){var B={focused:T,label:h(T),isDisabled:m(T,s),isSelected:P,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};M=p.onFocus(B)}return M},[r,i,h,m,p,a,s,c]),_=C.useMemo(function(){var M="";if(y&&b.length&&!w&&p.onFilter){var T=x({count:a.length});M=p.onFilter({inputValue:f,resultsMessage:T})}return M},[a,f,y,p,b,x,w]),A=(n==null?void 0:n.action)==="initial-input-focus",k=C.useMemo(function(){var M="";if(p.guidance){var T=i?"value":y?"menu":"input";M=p.guidance({"aria-label":I,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:v,tabSelectsValue:S,isInitialFocus:A})}return M},[I,r,i,g,m,v,y,p,s,S,A]),R=de(C.Fragment,null,de("span",{id:"aria-selection"},D),de("span",{id:"aria-focused"},$),de("span",{id:"aria-results"},_),de("span",{id:"aria-guidance"},k));return de(C.Fragment,null,de(np,{id:u},A&&R),de(np,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&R))},cA=uA,Ud=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],dA=new RegExp("["+Ud.map(function(e){return e.letters}).join("")+"]","g"),ly={};for(var Mc=0;Mc<Ud.length;Mc++)for(var Bc=Ud[Mc],Oc=0;Oc<Bc.letters.length;Oc++)ly[Bc.letters[Oc]]=Bc.base;var uy=function(t){return t.replace(dA,function(n){return ly[n]})},fA=iA(uy),rp=function(t){return t.replace(/^\s+|\s+$/g,"")},hA=function(t){return"".concat(t.label," ").concat(t.value)},gA=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=fe({ignoreCase:!0,ignoreAccents:!0,stringify:hA,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?rp(r):r,d=l?rp(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=fA(c),d=uy(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},mA=["innerRef"];function pA(e){var t=e.innerRef,n=Fr(e,mA),r=H9(n,"onExited","in","enter","exit","appear");return de("input",ge({ref:t},r,{css:_h({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var bA=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function vA(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=C.useRef(!1),s=C.useRef(!1),l=C.useRef(0),u=C.useRef(null),c=C.useCallback(function(v,y){if(u.current!==null){var b=u.current,x=b.scrollTop,S=b.scrollHeight,w=b.clientHeight,I=u.current,F=y>0,p=S-w-x,D=!1;p>y&&o.current&&(r&&r(v),o.current=!1),F&&s.current&&(a&&a(v),s.current=!1),F&&y>p?(n&&!o.current&&n(v),I.scrollTop=S,D=!0,o.current=!0):!F&&-y>x&&(i&&!s.current&&i(v),I.scrollTop=0,D=!0,s.current=!0),D&&bA(v)}},[n,r,i,a]),d=C.useCallback(function(v){c(v,v.deltaY)},[c]),h=C.useCallback(function(v){l.current=v.changedTouches[0].clientY},[]),f=C.useCallback(function(v){var y=l.current-v.changedTouches[0].clientY;c(v,y)},[c]),g=C.useCallback(function(v){if(v){var y=N9?{passive:!1}:!1;v.addEventListener("wheel",d,y),v.addEventListener("touchstart",h,y),v.addEventListener("touchmove",f,y)}},[f,h,d]),m=C.useCallback(function(v){v&&(v.removeEventListener("wheel",d,!1),v.removeEventListener("touchstart",h,!1),v.removeEventListener("touchmove",f,!1))},[f,h,d]);return C.useEffect(function(){if(t){var v=u.current;return g(v),function(){m(v)}}},[t,g,m]),function(v){u.current=v}}var ip=["boxSizing","height","overflow","paddingRight","position"],ap={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function op(e){e.preventDefault()}function sp(e){e.stopPropagation()}function lp(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function up(){return"ontouchstart"in window||navigator.maxTouchPoints}var cp=!!(typeof window<"u"&&window.document&&window.document.createElement),Xa=0,na={capture:!1,passive:!1};function yA(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=C.useRef({}),a=C.useRef(null),o=C.useCallback(function(l){if(cp){var u=document.body,c=u&&u.style;if(r&&ip.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Xa<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(ap).forEach(function(g){var m=ap[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&up()&&(u.addEventListener("touchmove",op,na),l&&(l.addEventListener("touchstart",lp,na),l.addEventListener("touchmove",sp,na))),Xa+=1}},[r]),s=C.useCallback(function(l){if(cp){var u=document.body,c=u&&u.style;Xa=Math.max(Xa-1,0),r&&Xa<1&&ip.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&up()&&(u.removeEventListener("touchmove",op,na),l&&(l.removeEventListener("touchstart",lp,na),l.removeEventListener("touchmove",sp,na)))}},[r]);return C.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function xA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var CA=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wA=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xA};function DA(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=vA({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=yA({isEnabled:n}),d=function(f){u(f),c(f)};return de(C.Fragment,null,n&&de("div",{onClick:CA,css:wA}),t(d))}function SA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var EA=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:SA},_A=function(t){var n=t.name,r=t.onFocus;return de("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:EA,value:"",onChange:function(){}})},IA=_A;function $h(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $A(){return $h(/^iPhone/i)}function cy(){return $h(/^Mac/i)}function RA(){return $h(/^iPad/i)||cy()&&navigator.maxTouchPoints>1}function AA(){return $A()||RA()}function FA(){return cy()||AA()}var PA=function(t){return t.label},TA=function(t){return t.label},kA=function(t){return t.value},MA=function(t){return!!t.isDisabled},BA={clearIndicator:pR,container:iR,control:DR,dropdownIndicator:gR,group:IR,groupHeading:RR,indicatorsContainer:lR,indicatorSeparator:vR,input:TR,loadingIndicator:CR,loadingMessage:Q9,menu:Z9,menuList:J9,menuPortal:nR,multiValue:NR,multiValueLabel:VR,multiValueRemove:LR,noOptionsMessage:K9,option:ZR,placeholder:UR,singleValue:KR,valueContainer:oR},OA={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},NA=4,dy=4,VA=38,LA=dy*2,HA={baseUnit:dy,controlHeight:VA,menuGutter:LA},Nc={borderRadius:NA,colors:OA,spacing:HA},jA={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qm(),captureMenuScroll:!Qm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:gA(),formatGroupLabel:PA,getOptionLabel:TA,getOptionValue:kA,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:MA,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!B9(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dp(e,t,n,r){var i=gy(e,t,n),a=my(e,t,n),o=hy(e,t),s=su(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function _l(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return dp(e,o,t,s)}).filter(function(o){return hp(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=dp(e,n,t,r);return hp(e,a)?a:void 0}).filter(V9)}function fy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,mh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function fp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,mh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function WA(e,t){return fy(_l(e,t))}function hp(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!by(e)||!a)&&py(e,{label:o,value:s,data:i},r)}function zA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function GA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Vc=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},hy=function(t,n){return t.getOptionLabel(n)},su=function(t,n){return t.getOptionValue(n)};function gy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function my(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=su(e,t);return n.some(function(i){return su(e,i)===r})}function py(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var by=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},ZA=1,vy=function(e){l6(n,e);var t=d6(n);function n(r){var i;if(o6(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=FA(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var v=i.getOptionValue(l);i.setValue(f.filter(function(y){return i.getOptionValue(y)!==v}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(mh(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=zs(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(zs(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=zs(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Vc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return fp(_l(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return F9.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return hy(i.props,l)},i.getOptionValue=function(l){return su(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=BA[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return tA(i.props)},i.buildCategorizedOptions=function(){return _l(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return fy(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:fe({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Yu(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return by(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,v=u.menuIsOpen,y=u.onKeyDown,b=u.tabSelectsValue,x=u.openMenuOnFocus,S=i.state,w=S.focusedOption,I=S.focusedValue,F=S.selectValue;if(!m&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(I)i.removeValue(I);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!v||!b||!w||x&&i.isOptionSelected(w,F))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(v){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":v?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!v){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":v?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":v?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!v)return;i.focusOption("pageup");break;case"PageDown":if(!v)return;i.focusOption("pagedown");break;case"Home":if(!v)return;i.focusOption("first");break;case"End":if(!v)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++ZA),i.state.selectValue=qm(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Vc(a,o[s])}return i}return s6(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Km(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Km(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Nc):fe(fe({},Nc),this.props.theme):Nc}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return gy(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return my(this.props,i,a)}},{key:"filterOption",value:function(i,a){return py(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,v=m.inputIsHidden,y=m.ariaSelection,b=this.commonProps,x=s||this.getElementId("input"),S=fe(fe(fe({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?W.createElement(g,ge({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:a,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):W.createElement(pA,ge({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:au,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,v=f.isMulti,y=f.inputValue,b=f.placeholder,x=this.state,S=x.selectValue,w=x.focusedValue,I=x.isFocused;if(!this.hasValue()||!g)return y?null:W.createElement(d,ge({},h,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),b);if(v)return S.map(function(p,D){var $=p===w,_="".concat(i.getOptionLabel(p),"-").concat(i.getOptionValue(p));return W.createElement(o,ge({},h,{components:{Container:s,Label:l,Remove:u},isFocused:$,isDisabled:m,key:_,index:D,removeProps:{onClick:function(){return i.removeValue(p)},onTouchEnd:function(){return i.removeValue(p)},onMouseDown:function(k){k.preventDefault()}},data:p}),i.formatOptionLabel(p,"value"))});if(y)return null;var F=S[0];return W.createElement(c,ge({},h,{data:F,isDisabled:m}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(o,ge({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,m=this.state.focusedOption,v=this.props,y=v.captureMenuScroll,b=v.inputValue,x=v.isLoading,S=v.loadingMessage,w=v.minMenuHeight,I=v.maxMenuHeight,F=v.menuIsOpen,p=v.menuPlacement,D=v.menuPosition,$=v.menuPortalTarget,_=v.menuShouldBlockScroll,A=v.menuShouldScrollIntoView,k=v.noOptionsMessage,R=v.onMenuScrollToTop,M=v.onMenuScrollToBottom;if(!F)return null;var T=function(X,G){var j=X.type,V=X.data,Z=X.isDisabled,q=X.isSelected,te=X.label,ue=X.value,ie=m===V,Y=Z?void 0:function(){return i.onOptionHover(V)},me=Z?void 0:function(){return i.selectOption(V)},he="".concat(i.getElementId("option"),"-").concat(G),ce={id:he,onClick:me,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:q};return W.createElement(f,ge({},g,{innerProps:ce,data:V,isDisabled:Z,isSelected:q,key:he,label:te,type:j,value:ue,isFocused:ie,innerRef:ie?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(X.data,"menu"))},P;if(this.hasOptions())P=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var X=z.data,G=z.options,j=z.index,V="".concat(i.getElementId("group"),"-").concat(j),Z="".concat(V,"-heading");return W.createElement(o,ge({},g,{key:V,data:X,options:G,Heading:s,headingProps:{id:Z,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(q){return T(q,"".concat(j,"-").concat(q.index))}))}else if(z.type==="option")return T(z,"".concat(z.index))});else if(x){var B=S({inputValue:b});if(B===null)return null;P=W.createElement(d,g,B)}else{var O=k({inputValue:b});if(O===null)return null;P=W.createElement(h,g,O)}var L={minMenuHeight:w,maxMenuHeight:I,menuPlacement:p,menuPosition:D,menuShouldScrollIntoView:A},H=W.createElement(X9,ge({},g,L),function(z){var X=z.ref,G=z.placerProps,j=G.placement,V=G.maxHeight;return W.createElement(l,ge({},g,L,{innerRef:X,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:j}),W.createElement(DA,{captureEnabled:y,onTopArrive:R,onBottomArrive:M,lockEnabled:_},function(Z){return W.createElement(u,ge({},g,{innerRef:function(te){i.getMenuListRef(te),Z(te)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:m}),P)}))});return $||D==="fixed"?W.createElement(c,ge({},g,{appendTo:$,controlElement:this.controlRef,menuPlacement:p,menuPosition:D}),H):H}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return W.createElement(IA,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(m){return i.getOptionValue(m)}).join(o);return W.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,v){return W.createElement("input",{key:"i-".concat(v),name:u,type:"hidden",value:i.getOptionValue(m)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return W.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return W.createElement(cA,ge({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return W.createElement(s,ge({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),W.createElement(a,ge({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),W.createElement(l,ge({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(o,ge({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,v=i.inputValue,y=i.isMulti,b=qm(g),x={};if(o&&(g!==o.value||f!==o.options||m!==o.menuIsOpen||v!==o.inputValue)){var S=m?WA(i,b):[],w=m?fp(_l(i,b),"".concat(h,"-option")):[],I=s?zA(a,b):null,F=GA(a,S),p=Vc(w,F);x={selectValue:b,focusedOption:F,focusedOptionId:p,focusableOptionsWithIds:w,focusedValue:I,clearFocusValueOnUpdate:!1}}var D=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},$=u,_=c&&d;return c&&!_&&($={value:zs(y,b,b[0]||null),options:b,action:"initial-input-focus"},_=!d),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),fe(fe(fe({},x),D),{},{prevProps:i,ariaSelection:$,prevWasFocused:_})}}]),n}(C.Component);vy.defaultProps=jA;var XA=C.forwardRef(function(e,t){var n=a6(e);return W.createElement(vy,ge({ref:t},n))}),YA=XA;const UA="_container_26hat_1",Lc={container:UA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},JA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},qA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},KA={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},yy=C.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:v={},onMenuClose:y=()=>{},zIndexPopper:b=0,id:x="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:w,flipOptions:I,autoPlacementOptions:F,withSearch:p=!1,floatingOptions:D={},offsetPopover:$=5,selectProps:_={},errorLabel:A="payhere",controlType:k="payhere",actionValueChange:R=()=>{},...M}=e,T={error:{laba:Lc["error-laba"],payhere:Lc["error-payhere"]}},P=C.useRef(null),B=C.useRef(null),[O,L]=C.useState(""),[H,z]=C.useState(!1),[X,G]=C.useState({}),[j,V]=C.useState(0),Z=me=>{var he;(he=B.current)==null||he.setShow(me),z(me)},q=()=>{if(d)return e.isMulti?h:[h]},te=me=>{var he;(he=B.current)==null||he.handlerShow(me),V(P.current.offsetWidth),z(ce=>!ce)},ue=()=>{var me;m&&((me=B.current)==null||me.setShow(!1))},ie=(me,he)=>{var ce;f&&(z(!1),(ce=B.current)==null||ce.setShow(!1)),typeof c=="function"&&c(me,he),d||G(me)},Y=()=>{P.current&&V(P.current.offsetWidth)};return Mi(()=>{d&&G(h),R(h)},[d,h]),C.useEffect(()=>{H?g():H||(y(),L(""))},[H]),C.useImperativeHandle(t,()=>({selectValue:X,setSelectValue:G,handlerClose:ue,handlerShow:te,show:H,setShow:Z}),[H,gh(X)]),C.useEffect(()=>(window.addEventListener("resize",Y),window.addEventListener("load",Y),()=>{window.removeEventListener("resize",Y),window.removeEventListener("load",Y)}),[P]),E.jsxs("div",{id:x,className:`${Lc.container} ${a} ${H?`${o} open-popover`:null}`,ref:P,children:[r({selectValue:X,setSelectValue:G,handlerClose:ue,handlerShow:te,show:H,setShow:Z}),E.jsx(Ar,{ref:B,offset:$,useAutoPlacement:w,flipOptions:I,autoPlacementOptions:F,zIndex:b,styleInnerPopover:v,id:S,width:typeof n=="function"?n(j,X):n??j,className:s,floatingOptions:D,children:E.jsx(YA,{className:"1ru-w-full",defaultValue:q(),inputValue:O,onInputChange:(me,{action:he})=>{he==="input-change"&&L(me)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:p?k==="laba"?JA:qA:KA,noOptionsMessage:()=>"Tidak ada data.",onChange:ie,selectProps:{..._,setShowDropdown:Z},...M})}),E.jsx("div",{className:`${T.error[A]} ${l}`,children:u})]})});yy.displayName="SelectDropdownContainer";function ya(e,t){return e-t*Math.floor(e/t)}const xy=1721426;function Si(e,t,n,r){t=ys(e,t);let i=t-1,a=-2;return n<=2?a=0:zr(t)&&(a=-1),xy-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function zr(e){return e%4===0&&(e%100!==0||e%400===0)}function ys(e,t){return e==="BC"?1-t:t}function Uu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const QA={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class gn{fromJulianDay(t){let n=t,r=n-xy,i=Math.floor(r/146097),a=ya(r,146097),o=Math.floor(a/36524),s=ya(a,36524),l=Math.floor(s/1461),u=ya(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=Uu(d),g=n-Si(h,f,1,1),m=2;n<Si(h,f,3,1)?m=0:zr(f)&&(m=1);let v=Math.floor(((g+m)*12+373)/367),y=n-Si(h,f,v,1)+1;return new ut(h,f,v,y)}toJulianDay(t){return Si(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return QA[zr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return zr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const eF={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function gt(e,t){return t=xt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Jd(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function tF(e,t){return gt(e,Rh(t))}function Ju(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-oF(t))%7;return r<0&&(r+=7),r}function nF(e){return Cr(Date.now(),e)}function Rh(e){return fn(nF(e))}function Cy(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function wy(e,t){return gp(e)-gp(t)}function gp(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Hc=null;function Oi(){return Hc==null&&(Hc=new Intl.DateTimeFormat().resolvedOptions().timeZone),Hc}function xs(e){return e.subtract({days:e.day-1})}function qd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function rF(e){return xs(e.subtract({months:e.month-1}))}function Go(e,t){let n=Ju(e,t);return e.subtract({days:n})}function iF(e,t){return Go(e,t).add({days:6})}const mp=new Map;function aF(e){if(Intl.Locale){let n=mp.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&mp.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function oF(e){let t=aF(e);return t&&eF[t]||0}function Dy(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ju(xs(e),t)+n)/7)}function Ah(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Fh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Aa(e){e=xt(e,new gn);let t=ys(e.era,e.year);return Sy(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Sy(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function Kd(e,t){if(t==="UTC")return 0;if(e>0&&t===Oi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Ey(e,t);return Sy(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const pp=new Map;function Ey(e,t){let n=pp.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),pp.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const bp=864e5;function sF(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>lF(e,t,a))}function lF(e,t,n){let r=Ey(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function pr(e,t,n="compatible"){let r=Qr(e);if(t==="UTC")return Aa(r);if(t===Oi()&&n==="compatible"){r=xt(r,new gn);let l=new Date,u=ys(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=Aa(r),a=Kd(i-bp,t),o=Kd(i+bp,t),s=sF(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function _y(e,t,n="compatible"){return new Date(pr(e,t,n))}function Cr(e,t){let n=Kd(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Xo(i,a,o,t,n,s,l,u,c)}function fn(e){return new ut(e.calendar,e.era,e.year,e.month,e.day)}function Qr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new lu(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function xt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ni(r),r}function uF(e,t,n){if(e instanceof Xo)return e.timeZone===t?e:dF(e,t);let r=pr(e,t,n);return Cr(r,t)}function cF(e){let t=Aa(e)-e.offset;return new Date(t)}function dF(e,t){let n=Aa(e)-e.offset;return xt(Cr(n,t),e.calendar)}const Ya=36e5;function qu(e,t){let n=e.copy(),r="hour"in n?Ay(n,t):0;Qd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,ef(n),Iy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,fF(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Qd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function ef(e){for(;e.month<1;)Qd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Qd(e,1)}function fF(e){for(;e.day<1;)e.month--,ef(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,ef(e)}function Iy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ni(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Iy(e)}function Ph(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function $y(e,t){return qu(e,Ph(t))}function Th(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ni(n),n}function Zo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Ry(n),n}function hF(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Gs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Gs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Gs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Gs(e.hour,24),t}function Ry(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Gs(e,t){let n=e%t;return n<0&&(n+=t),n}function Ay(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,hF(e)}function Fy(e,t){let n=e.copy();return Ay(n,t),n}function gF(e,t){return Fy(e,Ph(t))}function kh(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=wr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Ni(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=wr(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=wr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=wr(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ni(i),i}function Mh(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=wr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=wr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=wr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=wr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function wr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Py(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=qu(Qr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=pr(i,e.timeZone)}else n=Aa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Cr(n,e.timeZone);return xt(r,e.calendar)}function mF(e,t){return Py(e,Ph(t))}function pF(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Qr(e),s=xt(Zo(o,{hour:i}),new gn),l=[pr(s,e.timeZone,"earlier"),pr(s,e.timeZone,"later")].filter(g=>Cr(g,e.timeZone).day===s.day)[0],u=xt(Zo(o,{hour:a}),new gn),c=[pr(u,e.timeZone,"earlier"),pr(u,e.timeZone,"later")].filter(g=>Cr(g,e.timeZone).day===u.day).pop(),d=Aa(e)-e.offset,h=Math.floor(d/Ya),f=d%Ya;return d=wr(h,n,Math.floor(l/Ya),Math.floor(c/Ya),r==null?void 0:r.round)*Ya+f,xt(Cr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mh(e,t,n,r);case"era":case"year":case"month":case"day":{let i=kh(Qr(e),t,n,r),a=pr(i,e.timeZone);return xt(Cr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function bF(e,t,n){let r=Qr(e),i=Zo(Th(r,t),t);if(i.compare(r)===0)return e;let a=pr(i,e.timeZone,n);return xt(Cr(a,e.timeZone),e.calendar)}const vF=/^(\d{4})-(\d{2})-(\d{2})$/;function Bh(e){let t=e.match(vF);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ut(jc(t[1],0,9999),jc(t[2],1,12),1);return n.day=jc(t[3],0,n.calendar.getDaysInMonth(n)),n}function jc(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Ty(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function ky(e){let t=xt(e,new gn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function My(e){return`${ky(e)}T${Ty(e)}`}function yF(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function xF(e){return`${My(e)}${yF(e.offset)}[${e.timeZone}]`}function CF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cs(e,t,n){CF(e,t),t.set(e,n)}function Oh(e){let t=typeof e[0]=="object"?e.shift():new gn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var wF=new WeakMap;class ut{copy(){return this.era?new ut(this.calendar,this.era,this.year,this.month,this.day):new ut(this.calendar,this.year,this.month,this.day)}add(t){return qu(this,t)}subtract(t){return $y(this,t)}set(t){return Th(this,t)}cycle(t,n,r){return kh(this,t,n,r)}toDate(t){return _y(this,t)}toString(){return ky(this)}compare(t){return Cy(this,t)}constructor(...t){Cs(this,wF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Ni(this)}}var DF=new WeakMap;class Nh{copy(){return new Nh(this.hour,this.minute,this.second,this.millisecond)}add(t){return Fy(this,t)}subtract(t){return gF(this,t)}set(t){return Zo(this,t)}cycle(t,n,r){return Mh(this,t,n,r)}toString(){return Ty(this)}compare(t){return wy(this,t)}constructor(t=0,n=0,r=0,i=0){Cs(this,DF,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Ry(this)}}var SF=new WeakMap;class lu{copy(){return this.era?new lu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new lu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return qu(this,t)}subtract(t){return $y(this,t)}set(t){return Th(Zo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return kh(this,t,n,r);default:return Mh(this,t,n,r)}}toDate(t,n){return _y(this,t,n)}toString(){return My(this)}compare(t){let n=Cy(this,t);return n===0?wy(this,Qr(t)):n}constructor(...t){Cs(this,SF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ni(this)}}var EF=new WeakMap;class Xo{copy(){return this.era?new Xo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Xo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Py(this,t)}subtract(t){return mF(this,t)}set(t,n){return bF(this,t,n)}cycle(t,n,r){return pF(this,t,n,r)}toDate(){return cF(this)}toString(){return xF(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-uF(t,this.timeZone).toDate().getTime()}constructor(...t){Cs(this,EF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ni(this)}}const xa=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_F=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Il=[1867,1911,1925,1988,2018],Lr=["meiji","taisho","showa","heisei","reiwa"];function vp(e){const t=xa.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?xa.length-1:t===0?0:t-1}function Wc(e){let t=Il[Lr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ut(e.year+t,e.month,e.day)}class IF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=vp(n);return new ut(this,Lr[r],n.year-Il[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Wc(t))}balanceDate(t){let n=Wc(t),r=vp(n);Lr[r]!==t.era&&(t.era=Lr[r],t.year=n.year-Il[r]),this.constrainDate(t)}constrainDate(t){let n=Lr.indexOf(t.era),r=_F[n];if(r!=null){let[i,a,o]=r,s=i-Il[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=xa[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Lr}getYearsInEra(t){let n=Lr.indexOf(t.era),r=xa[n],i=xa[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Wc(t))}getMinimumMonthInYear(t){let n=yp(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=yp(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function yp(e){if(e.year===1){let t=Lr.indexOf(e.era);return xa[t]}}const By=-543;class $F extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ys(n.era,n.year);return new ut(this,r-By,n.month,n.day)}toJulianDay(t){return super.toJulianDay(xp(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(xp(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function xp(e){let[t,n]=Uu(e.year+By);return new ut(t,n,e.month,e.day)}const uu=1911;function Oy(e){return e.era==="minguo"?e.year+uu:1-e.year+uu}function Cp(e){let t=e-uu;return t>0?["minguo",t]:["before_minguo",1-t]}class RF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ys(n.era,n.year),[i,a]=Cp(r);return new ut(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(wp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Cp(Oy(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(wp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-uu}constructor(...t){super(...t),this.identifier="roc"}}function wp(e){let[t,n]=Uu(Oy(e));return new ut(t,n,e.month,e.day)}const Dp=1948320,Sp=[0,31,62,93,124,155,186,216,246,276,306,336];class AF{fromJulianDay(t){let n=t-Dp,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-Sp[o]+1;return new ut(this,r,o+1,s)}toJulianDay(t){let n=Dp-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Sp[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ya(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const zc=78,Ep=80;class FF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-zc,i=t-Si(n.era,n.year,1,1),a;i<Ep?(r--,a=zr(n.year-1)?31:30,i+=a+155+90+10):(a=zr(n.year)?31:30,i-=Ep);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new ut(this,r,o,s)}toJulianDay(t){let n=t.year+zc,[r,i]=Uu(n),a,o;return zr(i)?(a=31,o=Si(r,i,3,21)):(a=30,o=Si(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&zr(t.year+zc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const cu=1948440,_p=1948439,wn=1300,ra=1600,PF=460322;function du(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ny(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+du(t,r,1,1)))/29.5)+1),a=n-du(t,r,i,1)+1;return new ut(e,r,i,a)}function Ip(e){return(14+11*e)%30<11}class Vh{fromJulianDay(t){return Ny(this,cu,t)}toJulianDay(t){return du(cu,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Ip(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Ip(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class TF extends Vh{fromJulianDay(t){return Ny(this,_p,t)}toJulianDay(t){return du(_p,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const kF="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let tf,Ca;function $l(e){return PF+Ca[e-wn]}function oo(e,t){let n=e-wn,r=1<<11-(t-1);return tf[n]&r?30:29}function $p(e,t){let n=$l(e);for(let r=1;r<t;r++)n+=oo(e,r);return n}function Rp(e){return Ca[e+1-wn]-Ca[e-wn]}class MF extends Vh{fromJulianDay(t){let n=t-cu,r=$l(wn),i=$l(ra);if(n<r||n>i)return super.fromJulianDay(t);{let a=wn-1,o=1,s=1;for(;s>0;){a++,s=n-$l(a)+1;let l=Rp(a);if(s===l){o=12;break}else if(s<l){let u=oo(a,o);for(o=1;s>u;)s-=u,o++,u=oo(a,o);break}}return new ut(this,a,o,n-$p(a,o)+1)}}toJulianDay(t){return t.year<wn||t.year>ra?super.toJulianDay(t):cu+$p(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<wn||t.year>ra?super.getDaysInMonth(t):oo(t.year,t.month)}getDaysInYear(t){return t.year<wn||t.year>ra?super.getDaysInYear(t):Rp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",tf||(tf=new Uint16Array(Uint8Array.from(atob(kF),t=>t.charCodeAt(0)).buffer)),!Ca){Ca=new Uint32Array(ra-wn+1);let t=0;for(let n=wn;n<=ra;n++){Ca[n-wn]=t;for(let r=1;r<=12;r++)t+=oo(n,r)}}}}const Ap=347997,Vy=1080,Ly=24*Vy,BF=29,OF=12*Vy+793,NF=BF*Ly+OF;function xi(e){return ya(e*7+1,19)<7}function Rl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ya(3*(r+1),7)<3&&(r+=1),r}function VF(e){let t=Rl(e-1),n=Rl(e);return Rl(e+1)-n===356?2:n-t===382?1:0}function xo(e){return Rl(e)+VF(e)}function Hy(e){return xo(e+1)-xo(e)}function LF(e){let t=Hy(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Zs(e,t){if(t>=6&&!xi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=LF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?xi(e)?30:0:30}class HF{fromJulianDay(t){let n=t-Ap,r=n*Ly/NF,i=Math.floor((19*r+234)/235)+1,a=xo(i),o=Math.floor(n-a);for(;o<1;)i--,a=xo(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Zs(i,s),s++;s--,l-=Zs(i,s);let u=o-l;return new ut(this,i,s,u)}toJulianDay(t){let n=xo(t.year);for(let r=1;r<t.month;r++)n+=Zs(t.year,r);return n+t.day+Ap}getDaysInMonth(t){return Zs(t.year,t.month)}getMonthsInYear(t){return xi(t.year)?13:12}getDaysInYear(t){return Hy(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(xi(n.year)&&!xi(t.year)&&n.month>6?t.month--:!xi(n.year)&&xi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const nf=1723856,Fp=1824665,rf=5500;function fu(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Lh(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-fu(e,n,1,1))/30),i=t+1-fu(e,n,r,1);return[n,r,i]}function jy(e){return Math.floor(e%4/3)}function Wy(e,t){return t%13!==0?30:jy(e)+5}class Hh{fromJulianDay(t){let[n,r,i]=Lh(nf,t),a="AM";return n<=0&&(a="AA",n+=rf),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=rf),fu(nf,n,t.month,t.day)}getDaysInMonth(t){return Wy(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+jy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class jF extends Hh{fromJulianDay(t){let[n,r,i]=Lh(nf,t);return n+=rf,new ut(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class WF extends Hh{fromJulianDay(t){let[n,r,i]=Lh(Fp,t),a="CE";return n<=0&&(a="BCE",n=1-n),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),fu(Fp,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Wy(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function ws(e){switch(e){case"buddhist":return new $F;case"ethiopic":return new Hh;case"ethioaa":return new jF;case"coptic":return new WF;case"hebrew":return new HF;case"indian":return new FF;case"islamic-civil":return new Vh;case"islamic-tbla":return new TF;case"islamic-umalqura":return new MF;case"japanese":return new IF;case"persian":return new AF;case"roc":return new RF;case"gregory":default:return new gn}}let Gc=new Map;class Yo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ZF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=XF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=zy(t,n),this.options=n}}const zF={true:{ja:"h11"},false:{}};function zy(e,t={}){if(typeof t.hour12=="boolean"&&GF()){t={...t};let i=zF[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Gc.has(n))return Gc.get(n);let r=new Intl.DateTimeFormat(e,t);return Gc.set(n,r),r}let Zc=null;function GF(){return Zc==null&&(Zc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Zc}let Xc=null;function ZF(){return Xc==null&&(Xc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Xc}function XF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=zy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Gi=typeof document<"u"?C.useLayoutEffect:()=>{};function br(e){const t=C.useRef(null);return Gi(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function YF(e){let[t,n]=C.useState(e),r=C.useRef(null),i=br(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Gi(()=>{r.current&&i()});let a=br(o=>{r.current=o(t),i()});return[t,a]}const hu={prefix:String(Math.round(Math.random()*1e10)),current:0},Gy=C.createContext(hu),UF=C.createContext(!1);let JF=!!(typeof window<"u"&&window.document&&window.document.createElement),Yc=new WeakMap;function qF(e=!1){let t=C.useContext(Gy),n=C.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=Yc.get(a);o==null?Yc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Yc.delete(a))}n.current=++t.current}return n.current}function KF(e){let t=C.useContext(Gy);t===hu&&!JF&&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=qF(!!e),r=t===hu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function QF(e){let t=C.useId(),[n]=C.useState(Zy()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${hu.prefix}`;return e||`${r}-${t}`}const e7=typeof C.useId=="function"?QF:KF;function t7(){return!1}function n7(){return!0}function r7(e){return()=>{}}function Zy(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(r7,t7,n7):C.useContext(UF)}let i7=!!(typeof window<"u"&&window.document&&window.document.createElement),gu=new Map;function Fa(e){let[t,n]=C.useState(e),r=C.useRef(null),i=e7(t),a=C.useCallback(o=>{r.current=o},[]);return i7&&gu.set(i,a),Gi(()=>{let o=i;return()=>{gu.delete(o)}},[i]),C.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function a7(e,t){if(e===t)return e;let n=gu.get(e);if(n)return n(t),t;let r=gu.get(t);return r?(r(e),e):t}function af(e=[]){let t=Fa(),[n,r]=YF(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Gi(i,[t,i,...e]),n}function Xy(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function en(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Xy(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=yr(a,o):i==="id"&&a&&o?t.id=a7(a,o):t[i]=o!==void 0?o:a}}return t}const o7=new Set(["id"]),s7=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l7=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),u7=/^(data-.*)$/;function jh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(o7.has(o)||n&&s7.has(o)||r&&l7.has(o)||i!=null&&i.has(o)||u7.test(o))&&(a[o]=e[o]);return a}function Gr(e){if(c7())e.focus({preventScroll:!0});else{let t=d7(e);e.focus(),f7(t)}}let Xs=null;function c7(){if(Xs==null){Xs=!1;try{document.createElement("div").focus({get preventScroll(){return Xs=!0,!0}})}catch{}}return Xs}function d7(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function f7(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ku(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Wh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Uo(){return Wh(/^Mac/i)}function h7(){return Wh(/^iPhone/i)}function Yy(){return Wh(/^iPad/i)||Uo()&&navigator.maxTouchPoints>1}function Uy(){return h7()||Yy()}function g7(){return Ku(/AppleWebKit/i)&&!m7()}function m7(){return Ku(/Chrome/i)}function Jy(){return Ku(/Android/i)}function p7(){return Ku(/Firefox/i)}function Jo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;p7()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Uo()?a=!0:o=!0);let u=g7()&&Uo()&&!Yy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Jo.isOpening=n,Gr(e),e.dispatchEvent(u),Jo.isOpening=!1}Jo.isOpening=!1;let da=new Map,of=new Set;function Pp(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=da.get(r.target);i||(i=new Set,da.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=da.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),da.delete(r.target)),da.size===0)){for(let a of of)a();of.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pp():document.addEventListener("DOMContentLoaded",Pp));function qy(e){requestAnimationFrame(()=>{da.size===0?e():of.add(e)})}function b7(){let e=C.useRef(new Map),t=C.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=C.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=C.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zh(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Fa(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Tp(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Ky(e,t){Gi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function sf(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function v7(e,t){let n=e;for(sf(n,t)&&(n=n.parentElement);n&&!sf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function y7(e,t){const n=[];for(;e&&e!==document.documentElement;)sf(e,t)&&n.push(e),e=e.parentElement;return n}let x7=0;const Uc=new Map;function Qy(e){let[t,n]=C.useState();return Gi(()=>{if(!e)return;let r=Uc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${x7++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Uc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Uc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Jc(e,t,n,r){let i=br(n),a=n==null;C.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function C7(e,t){let n=kp(e,t,"left"),r=kp(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function kp(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function w7(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=y7(e);for(let u of l)C7(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function lf(e){return e.mozInputSource===0&&e.isTrusted?!0:Jy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function D7(e){return!Jy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ex(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function qo(e,t,n){let[r,i]=C.useState(e||t),a=C.useRef(e!==void 0),o=e!==void 0;C.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=C.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(o?s:f,...g);return d(m,...c),o?f:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let ha="default",uf="",Al=new WeakMap;function Mp(e){if(Uy()){if(ha==="default"){const t=At(e);uf=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ha="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Al.set(e,e.style.userSelect),e.style.userSelect="none")}function Ys(e){if(Uy()){if(ha!=="disabled")return;ha="restoring",setTimeout(()=>{qy(()=>{if(ha==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uf||""),uf="",ha="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Al.has(e)){let t=Al.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Al.delete(e)}}const tx=C.createContext({register:()=>{}});tx.displayName="PressResponderContext";function S7(e,t){return t.get?t.get.call(e):t.value}function nx(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function E7(e,t){var n=nx(e,t,"get");return S7(e,n)}function _7(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bp(e,t,n){var r=nx(e,t,"set");return _7(e,r,n),n}function I7(e){let t=C.useContext(tx);if(t){let{register:n,...r}=t;e=en(r,e),n()}return Ky(t,e.ref),e}var Us=new WeakMap;class Js{continuePropagation(){Bp(this,Us,!1)}get shouldStopPropagation(){return E7(this,Us)}constructor(t,n,r){Cs(this,Us,{writable:!0,value:void 0}),Bp(this,Us,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Op=Symbol("linkClicked");function Gh(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=I7(e),[f,g]=C.useState(!1),m=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:y}=b7(),b=br((p,D)=>{let $=m.current;if(o||$.didFirePressStart)return!1;let _=!0;if($.isTriggeringEvent=!0,r){let A=new Js("pressstart",D,p);r(A),_=A.shouldStopPropagation}return n&&n(!0),$.isTriggeringEvent=!1,$.didFirePressStart=!0,g(!0),_}),x=br((p,D,$=!0)=>{let _=m.current;if(!_.didFirePressStart)return!1;_.ignoreClickAfterPress=!0,_.didFirePressStart=!1,_.isTriggeringEvent=!0;let A=!0;if(i){let k=new Js("pressend",D,p);i(k),A=k.shouldStopPropagation}if(n&&n(!1),g(!1),t&&$&&!o){let k=new Js("press",D,p);t(k),A&&(A=k.shouldStopPropagation)}return _.isTriggeringEvent=!1,A}),S=br((p,D)=>{let $=m.current;if(o)return!1;if(a){$.isTriggeringEvent=!0;let _=new Js("pressup",D,p);return a(_),$.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),w=br(p=>{let D=m.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&x(lr(D.target,p),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,y(),c||Ys(D.target))}),I=br(p=>{u&&w(p)}),F=C.useMemo(()=>{let p=m.current,D={onKeyDown(_){if(qc(_.nativeEvent,_.currentTarget)&&_.currentTarget.contains(_.target)){var A;Vp(_.target,_.key)&&_.preventDefault();let k=!0;if(!p.isPressed&&!_.repeat){p.target=_.currentTarget,p.isPressed=!0,k=b(_,"keyboard");let R=_.currentTarget,M=T=>{qc(T,R)&&!T.repeat&&R.contains(T.target)&&p.target&&S(lr(p.target,T),"keyboard")};v(At(_.currentTarget),"keyup",Xy(M,$),!0)}k&&_.stopPropagation(),_.metaKey&&Uo()&&((A=p.metaKeyEvents)===null||A===void 0||A.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(_){if(!(_&&!_.currentTarget.contains(_.target))&&_&&_.button===0&&!p.isTriggeringEvent&&!Jo.isOpening){let A=!0;if(o&&_.preventDefault(),!p.ignoreClickAfterPress&&!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||lf(_.nativeEvent))){!o&&!l&&Gr(_.currentTarget);let k=b(_,"virtual"),R=S(_,"virtual"),M=x(_,"virtual");A=k&&R&&M}p.ignoreEmulatedMouseEvents=!1,p.ignoreClickAfterPress=!1,A&&_.stopPropagation()}}},$=_=>{var A;if(p.isPressed&&p.target&&qc(_,p.target)){var k;Vp(_.target,_.key)&&_.preventDefault();let M=_.target;x(lr(p.target,_),"keyboard",p.target.contains(M)),y(),_.key!=="Enter"&&Zh(p.target)&&p.target.contains(M)&&!_[Op]&&(_[Op]=!0,Jo(p.target,_,!1)),p.isPressed=!1,(k=p.metaKeyEvents)===null||k===void 0||k.delete(_.key)}else if(_.key==="Meta"&&(!((A=p.metaKeyEvents)===null||A===void 0)&&A.size)){var R;let M=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let T of M.values())(R=p.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){D.onPointerDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(D7(R.nativeEvent)){p.pointerType="virtual";return}Kc(R.currentTarget)&&R.preventDefault(),p.pointerType=R.pointerType;let M=!0;p.isPressed||(p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=R.pointerId,p.target=R.currentTarget,!o&&!l&&Gr(R.currentTarget),c||Mp(p.target),M=b(R,p.pointerType),v(At(R.currentTarget),"pointermove",_,!1),v(At(R.currentTarget),"pointerup",A,!1),v(At(R.currentTarget),"pointercancel",k,!1)),M&&R.stopPropagation()},D.onMouseDown=R=>{R.currentTarget.contains(R.target)&&R.button===0&&(Kc(R.currentTarget)&&R.preventDefault(),R.stopPropagation())},D.onPointerUp=R=>{!R.currentTarget.contains(R.target)||p.pointerType==="virtual"||R.button===0&&ia(R,R.currentTarget)&&S(R,p.pointerType||R.pointerType)};let _=R=>{R.pointerId===p.activePointerId&&(p.target&&ia(R,p.target)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,b(lr(p.target,R),p.pointerType)):p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,x(lr(p.target,R),p.pointerType,!1),I(R)))},A=R=>{R.pointerId===p.activePointerId&&p.isPressed&&R.button===0&&p.target&&(ia(R,p.target)&&p.pointerType!=null?x(lr(p.target,R),p.pointerType):p.isOverTarget&&p.pointerType!=null&&x(lr(p.target,R),p.pointerType,!1),p.isPressed=!1,p.isOverTarget=!1,p.activePointerId=null,p.pointerType=null,y(),c||Ys(p.target))},k=R=>{w(R)};D.onDragStart=R=>{R.currentTarget.contains(R.target)&&w(R)}}else{D.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(Kc(k.currentTarget)&&k.preventDefault(),p.ignoreEmulatedMouseEvents){k.stopPropagation();return}p.isPressed=!0,p.isOverTarget=!0,p.target=k.currentTarget,p.pointerType=lf(k.nativeEvent)?"virtual":"mouse",!o&&!l&&Gr(k.currentTarget),b(k,p.pointerType)&&k.stopPropagation(),v(At(k.currentTarget),"mouseup",_,!1)},D.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,R=b(k,p.pointerType)),R&&k.stopPropagation()},D.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,R=x(k,p.pointerType,!1),I(k)),R&&k.stopPropagation()},D.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!p.ignoreEmulatedMouseEvents&&k.button===0&&S(k,p.pointerType||"mouse")};let _=k=>{if(k.button===0){if(p.isPressed=!1,y(),p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&ia(k,p.target)&&p.pointerType!=null?x(lr(p.target,k),p.pointerType):p.target&&p.isOverTarget&&p.pointerType!=null&&x(lr(p.target,k),p.pointerType,!1),p.isOverTarget=!1}};D.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let R=$7(k.nativeEvent);if(!R)return;p.activePointerId=R.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=k.currentTarget,p.pointerType="touch",!o&&!l&&Gr(k.currentTarget),c||Mp(p.target),b(k,p.pointerType)&&k.stopPropagation(),v(Fn(k.currentTarget),"scroll",A,!0)},D.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=Np(k.nativeEvent,p.activePointerId),M=!0;R&&ia(R,k.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,M=b(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,M=x(k,p.pointerType,!1),I(k)),M&&k.stopPropagation()},D.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=Np(k.nativeEvent,p.activePointerId),M=!0;R&&ia(R,k.currentTarget)&&p.pointerType!=null?(S(k,p.pointerType),M=x(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(M=x(k,p.pointerType,!1)),M&&k.stopPropagation(),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!c&&Ys(p.target),y()},D.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),p.isPressed&&w(k))};let A=k=>{p.isPressed&&k.target.contains(p.target)&&w({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=k=>{k.currentTarget.contains(k.target)&&w(k)}}return D},[v,o,l,y,c,w,I,x,b,S]);return C.useEffect(()=>()=>{var p;c||Ys((p=m.current.target)!==null&&p!==void 0?p:void 0)},[c]),{isPressed:s||f,pressProps:en(h,F)}}function Zh(e){return e.tagName==="A"&&e.hasAttribute("href")}function qc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!rx(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Zh(i))&&n!=="Enter")}function $7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Np(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function lr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function R7(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function A7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ia(e,t){let n=t.getBoundingClientRect(),r=R7(e);return A7(n,r)}function Kc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Vp(e,t){return e instanceof HTMLInputElement?!rx(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zh(e)}const F7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rx(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":F7.has(e.type)}class P7{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function ix(e){let t=C.useRef({isFocused:!1,observer:null});Gi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=br(r=>{e==null||e(r)});return C.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new P7("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ax(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=ix(a),s=C.useCallback(l=>{const u=At(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let ja=null,cf=new Set,Co=new Map,Vi=!1,df=!1;const T7={Tab:!0,Escape:!0};function Xh(e,t){for(let n of cf)n(e,t)}function k7(e){return!(e.metaKey||!Uo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function mu(e){Vi=!0,k7(e)&&(ja="keyboard",Xh("keyboard",e))}function Dn(e){ja="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Vi=!0,Xh("pointer",e))}function ox(e){lf(e)&&(Vi=!0,ja="virtual")}function sx(e){e.target===window||e.target===document||(!Vi&&!df&&(ja="virtual",Xh("virtual",e)),Vi=!1,df=!1)}function lx(){Vi=!1,df=!0}function ff(e){if(typeof window>"u"||Co.get(Fn(e)))return;const t=Fn(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Vi=!0,r.apply(this,arguments)},n.addEventListener("keydown",mu,!0),n.addEventListener("keyup",mu,!0),n.addEventListener("click",ox,!0),t.addEventListener("focus",sx,!0),t.addEventListener("blur",lx,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dn,!0),n.addEventListener("pointermove",Dn,!0),n.addEventListener("pointerup",Dn,!0)):(n.addEventListener("mousedown",Dn,!0),n.addEventListener("mousemove",Dn,!0),n.addEventListener("mouseup",Dn,!0)),t.addEventListener("beforeunload",()=>{ux(e)},{once:!0}),Co.set(t,{focus:r})}const ux=(e,t)=>{const n=Fn(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),Co.has(n)&&(n.HTMLElement.prototype.focus=Co.get(n).focus,r.removeEventListener("keydown",mu,!0),r.removeEventListener("keyup",mu,!0),r.removeEventListener("click",ox,!0),n.removeEventListener("focus",sx,!0),n.removeEventListener("blur",lx,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dn,!0),r.removeEventListener("pointermove",Dn,!0),r.removeEventListener("pointerup",Dn,!0)):(r.removeEventListener("mousedown",Dn,!0),r.removeEventListener("mousemove",Dn,!0),r.removeEventListener("mouseup",Dn,!0)),Co.delete(n))};function M7(e){const t=At(e);let n;return t.readyState!=="loading"?ff(e):(n=()=>{ff(e)},t.addEventListener("DOMContentLoaded",n)),()=>ux(e,n)}typeof document<"u"&&M7();function cx(){return ja!=="pointer"}function dx(){return ja}const B7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O7(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!B7.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!T7[n.key])}function N7(e,t,n){ff(),C.useEffect(()=>{let r=(i,a)=>{O7(!!(n!=null&&n.isTextInput),i,a)&&e(cx())};return cf.add(r),()=>{cf.delete(r)}},t)}function fx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=C.useRef({isFocusWithin:!1}),o=C.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=ix(o),l=C.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function Lp(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function V7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lp(e.onKeyDown),onKeyUp:Lp(e.onKeyUp)}}}function hx(e){const t=At(e);if(dx()==="virtual"){let n=t.activeElement;qy(()=>{t.activeElement===n&&e.isConnected&&Gr(e)})}else Gr(e)}function L7(e){const t=Fn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function H7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function gx(e,t){return e.nodeName!=="#comment"&&L7(e)&&H7(e,t)&&(!e.parentElement||gx(e.parentElement,e))}const Yh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],j7=Yh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const W7=Yh.join(':not([hidden]):not([tabindex="-1"]),');function mx(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ua(e,t=!1){if(e!=null&&!t)try{hx(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function so(e,t,n){let r=t!=null&&t.tabbable?W7:j7,i=At(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&gx(a)&&(!n||mx(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function px(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=so(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Ua(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=so(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Qc(u);return d&&Ua(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=Qc(u);if(!d)return null;c=d}return c&&Ua(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=so(r,{tabbable:i,accept:a}).nextNode();return s&&Ua(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=so(r,{tabbable:i,accept:a}),s=Qc(o);return s&&Ua(s,!0),s??null}}}function Qc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Uh{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Hp({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&mx(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uh;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Hp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Hp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Uh;function bx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=C.useRef({isFocused:!1,isFocusVisible:t||cx()}),[a,o]=C.useState(!1),[s,l]=C.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=C.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=C.useCallback(f=>{i.current.isFocused=f,o(f),u()},[u]);N7(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=ax({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=fx({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let z7=C.createContext(null);function G7(e){let t=C.useContext(z7)||{};Ky(t,e);let{ref:n,...r}=t;return r}function Z7(e,t){let{focusProps:n}=ax(e),{keyboardProps:r}=V7(e),i=en(n,r),a=G7(t),o=e.isDisabled?{}:a,s=C.useRef(e.autoFocus);return C.useEffect(()=>{s.current&&t.current&&hx(t.current),s.current=!1},[t]),{focusableProps:en({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const X7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Y7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vx(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return X7.has(n.script)}let t=e.split("-")[0];return Y7.has(t)}const U7=Symbol.for("react-aria.i18n.locale");function yx(){let e=typeof window<"u"&&window[U7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:vx(e)?"rtl":"ltr"}}let hf=yx(),lo=new Set;function jp(){hf=yx();for(let e of lo)e(hf)}function xx(){let e=Zy(),[t,n]=C.useState(hf);return C.useEffect(()=>(lo.size===0&&window.addEventListener("languagechange",jp),lo.add(n),()=>{lo.delete(n),lo.size===0&&window.removeEventListener("languagechange",jp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Cx=C.createContext(null);function Jh(e){let{locale:t,children:n}=e,r=xx(),i=C.useMemo(()=>t?{locale:t,direction:vx(t)?"rtl":"ltr"}:r,[r,t]);return C.createElement(Cx.Provider,{value:i},n)}function Nn(){let e=xx();return C.useContext(Cx)||e}const J7=Symbol.for("react-aria.i18n.locale"),q7=Symbol.for("react-aria.i18n.strings");let aa;class Zi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=K7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[J7];if(aa===void 0){let i=window[q7];if(!i)return null;aa={};for(let a in i)aa[a]=new Zi({[n]:i[a]},n)}let r=aa==null?void 0:aa[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function K7(e,t,n="en-US"){if(t[e])return t[e];let r=Q7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Q7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Wp=new Map,zp=new Map;class wx{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Wp.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Wp.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=zp.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zp.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Gp=new WeakMap;function eP(e){let t=Gp.get(e);return t||(t=new Zi(e),Gp.set(e,t)),t}function tP(e,t){return t&&Zi.getGlobalDictionaryForPackage(t)||eP(e)}function Ds(e,t){let{locale:n}=Nn(),r=tP(e,t);return C.useMemo(()=>new wx(n,r),[n,r])}function ei(e){e=ex(e??{},nP);let{locale:t}=Nn();return C.useMemo(()=>new Yo(t,e),[t,e])}function nP(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function rP(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,v;n==="button"?v={type:m,disabled:r}:v={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:y,isPressed:b}=Gh({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=Z7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let S=en(x,y,jh(e,{labelable:!0}));return{isPressed:b,buttonProps:en(v,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{d&&(d(w),console.warn("onClick is deprecated, please use onPress"))}})}}var Dx={};Dx={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Sx={};Sx={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Ex={};Ex={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var _x={};_x={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Ix={};Ix={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var $x={};$x={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Rx={};Rx={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ax={};Ax={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Fx={};Fx={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Px={};Px={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Tx={};Tx={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var kx={};kx={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Mx={};Mx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Bx={};Bx={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Ox={};Ox={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Nx={};Nx={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Vx={};Vx={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Lx={};Lx={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Hx={};Hx={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var jx={};jx={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Wx={};Wx={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zx={};zx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Gx={};Gx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Zx={};Zx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Xx={};Xx={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Yx={};Yx={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Ux={};Ux={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Jx={};Jx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var qx={};qx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Kx={};Kx={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Qx={};Qx={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var e4={};e4={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var t4={};t4={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var n4={};n4={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Ss={};Ss={"ar-AE":Dx,"bg-BG":Sx,"cs-CZ":Ex,"da-DK":_x,"de-DE":Ix,"el-GR":$x,"en-US":Rx,"es-ES":Ax,"et-EE":Fx,"fi-FI":Px,"fr-FR":Tx,"he-IL":kx,"hr-HR":Mx,"hu-HU":Bx,"it-IT":Ox,"ja-JP":Nx,"ko-KR":Vx,"lt-LT":Lx,"lv-LV":Hx,"nb-NO":jx,"nl-NL":Wx,"pl-PL":zx,"pt-BR":Gx,"pt-PT":Zx,"ro-RO":Xx,"ru-RU":Yx,"sk-SK":Ux,"sl-SI":Jx,"sr-SP":qx,"sv-SE":Kx,"tr-TR":Qx,"uk-UA":e4,"zh-CN":t4,"zh-TW":n4};function r4(e){return e&&e.__esModule?e.default:e}const qh=new WeakMap;function Ko(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function iP(e){let t=Ds(r4(Ss),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=ei({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ko(n)||Ko(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!a&&n&&r)if(gt(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=mf(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function gf(e,t,n,r){let i=Ds(r4(Ss),"@react-aria/calendar"),a=Ko(e)||Ko(t),o=ei({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=ei({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(gt(e,xs(e))){if(gt(t,qd(e)))return o.format(e.toDate(n));if(gt(t,qd(t)))return r?mf(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?mf(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function mf(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const i4=7e3;let ed=null;function Zp(e,t="assertive",n=i4){ed||(ed=new aP),ed.announce(e,t,n)}class aP{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=i4){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function oP(e){return e&&e.__esModule?e.default:e}function a4(e,t){let n=Ds(oP(Ss),"@react-aria/calendar"),r=jh(e),i=gf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=gf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tp(()=>{t.isFocused||Zp(a)},[a]);let o=iP(t);Tp(()=>{o&&Zp(o,"polite",4e3)},[o]);let s=af([!!e.errorMessage,e.isInvalid,e.validationState]);qh.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=C.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=C.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=zh({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:en(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function o4(e,t){return a4(e,t)}function sP(e,t,n){let r=a4(e,t),i=C.useRef(!1),a=C.useRef(typeof window<"u"?window:null);return Jc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Jc(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Jc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function s4(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Nn(),a=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},o=gf(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=qh.get(t),u=zh({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=ei({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Nn(),h=C.useMemo(()=>{let f=Go(Rh(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let v=f.add({days:g}).toDate(t.timeZone);return c.format(v)})},[d,t.timeZone,c]);return{gridProps:en(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function lP(e){return e&&e.__esModule?e.default:e}function uP(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=qh.get(t),s=Ds(lP(Ss),"@react-aria/calendar"),l=ei({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ko(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&>(t.value,r));f&&(u=!0),r=ex(r,Jd);let g=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=tF(r,t.timeZone),v=C.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(gt(r,t.value.start)||gt(r,t.value.end))&&(_=o+", "),_+=l.format(g),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&>(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&>(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,g,s,u,m,r,t,o]),y="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?y=s.format("finishRangeSelectionPrompt"):y=s.format("startRangeSelectionPrompt"));let b=Qy(y),x=C.useRef(!1),S=C.useRef(!1),w=C.useRef(null),{pressProps:I,isPressed:F}=Gh({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!f){if(gt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(gt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let A=()=>{t.setDragging(!0),w.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};_.pointerType==="touch"?w.current=setTimeout(A,200):A()}},onPressEnd(){S.current=!1,x.current=!1,clearTimeout(w.current),w.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),p=null;i||(p=gt(r,t.focusedDate)?0:-1),C.useEffect(()=>{c&&n.current&&(Gr(n.current),dx()!=="pointer"&&document.activeElement===n.current&&w7(n.current,{containingElement:v7(n.current)}))},[c,n]);let D=ei({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),$=C.useMemo(()=>D.formatToParts(g).find(_=>_.type==="day").value,[D,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:en(I,{onFocus(){i||t.setFocusedDate(r)},tabIndex:p,role:"button","aria-disabled":!h||null,"aria-label":v,"aria-invalid":f||null,"aria-describedby":[f?a:null,b["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:F,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:$}}const Qu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l4={...Qu,customError:!0,valid:!1},Ci={isInvalid:!1,validationDetails:Qu,validationErrors:[]},cP=C.createContext({}),pu="__formValidationState"+Date.now();function dP(e){if(e[pu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[pu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return fP(e)}function fP(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:l4}:null,u=C.useMemo(()=>Xp(hP(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=C.useContext(cP),d=C.useMemo(()=>r?Array.isArray(r)?r.flatMap($=>pf(c[$])):pf(c[r]):[],[c,r]),[h,f]=C.useState(c),[g,m]=C.useState(!1);c!==h&&(f(c),m(!1));let v=C.useMemo(()=>Xp(g?[]:d),[g,d]),y=C.useRef(Ci),[b,x]=C.useState(Ci),S=C.useRef(Ci),w=()=>{if(!I)return;F(!1);let $=u||a||y.current;td($,S.current)||(S.current=$,x($))},[I,F]=C.useState(!1);return C.useEffect(w),{realtimeValidation:l||v||u||a||Ci,displayValidation:s==="native"?l||v||b:l||v||u||a||b,updateValidation($){s==="aria"&&!td(b,$)?x($):y.current=$},resetValidation(){let $=Ci;td($,S.current)||(S.current=$,x($)),s==="native"&&F(!1),m(!0)},commitValidation(){s==="native"&&F(!0),m(!0)}}}function pf(e){return e?Array.isArray(e)?e:[e]:[]}function hP(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return pf(n)}return[]}function Xp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l4}:null}function td(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function bu(...e){let t=new Set,n=!1,r={...Qu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function gP(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Fa(t);let o=Fa(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zh({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function mP(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=gP(e),s=af([!!t,!!n,r,i]),l=af([!!t,!!n,r,i]);return o=en(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var u4={};u4={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var c4={};c4={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var d4={};d4={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var f4={};f4={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var h4={};h4={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var g4={};g4={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var m4={};m4={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var p4={};p4={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var b4={};b4={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var v4={};v4={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var y4={};y4={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var x4={};x4={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var C4={};C4={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var w4={};w4={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var D4={};D4={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var S4={};S4={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var E4={};E4={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var _4={};_4={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var I4={};I4={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var $4={};$4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var R4={};R4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var A4={};A4={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var F4={};F4={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var P4={};P4={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var T4={};T4={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var k4={};k4={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var M4={};M4={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var B4={};B4={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var O4={};O4={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var N4={};N4={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var V4={};V4={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var L4={};L4={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var H4={};H4={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var j4={};j4={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var W4={};W4={"ar-AE":u4,"bg-BG":c4,"cs-CZ":d4,"da-DK":f4,"de-DE":h4,"el-GR":g4,"en-US":m4,"es-ES":p4,"et-EE":b4,"fi-FI":v4,"fr-FR":y4,"he-IL":x4,"hr-HR":C4,"hu-HU":w4,"it-IT":D4,"ja-JP":S4,"ko-KR":E4,"lt-LT":_4,"lv-LV":I4,"nb-NO":$4,"nl-NL":R4,"pl-PL":A4,"pt-BR":F4,"pt-PT":P4,"ro-RO":T4,"ru-RU":k4,"sk-SK":M4,"sl-SI":B4,"sr-SP":O4,"sv-SE":N4,"tr-TR":V4,"uk-UA":L4,"zh-CN":H4,"zh-TW":j4};function pP(e,t,n){let{direction:r}=Nn(),i=C.useMemo(()=>px(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=so(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=Gh({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return en(s,{onKeyDown:a})}const bP="__role_"+Date.now(),vP="__focusManager_"+Date.now();function yP(e){return e&&e.__esModule?e.default:e}function xP(e,t,n){var r,i;let a=Ds(yP(W4),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=mP({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=Nn(),m=t.formatValue(g,{month:"long"}),v=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",y=Qy(v),b={"aria-label":a.format("startDate"),"aria-labelledby":f},x={"aria-label":a.format("endDate"),"aria-labelledby":f},S=Fa(),w=Fa(),I=pP(t,n),F=[y["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,p=C.useMemo(()=>px(n,{accept:R=>R.id!==S}),[n,S]),D={[vP]:p,[bP]:"presentation","aria-describedby":F,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},$=jh(e),{focusWithinProps:_}=fx({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),A=C.useRef(Ci),k=C.useRef(Ci);return{groupProps:en($,I,c,y,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...u,onClick:()=>{p.focusFirst()}},buttonProps:{...y,id:S,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${S} ${f}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${S} ${f}`},startFieldProps:{...b,...D,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){A.current=R,t.updateValidation(bu(R,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...D,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:R=>t.setDateTime("end",R),name:e.endName,[pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){k.current=R,t.updateValidation(bu(A.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:s,validationDetails:l}}function wa(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function bf(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=Ei(e,t,n).subtract(a);return Qo(e,o,t,n,r,i)}function Ei(e,t,n,r,i){let a=e;return t.years?a=rF(e):t.months?a=xs(e):t.weeks&&(a=Go(e,n)),Qo(e,a,t,n,r,i)}function vf(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=Ei(e,t,n).subtract(a);return Qo(e,o,t,n,r,i)}function Qo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Fh(t,Ei(fn(i),n,r))),a&&e.compare(a)<=0&&(t=Ah(t,vf(fn(a),n,r))),t}function Vr(e,t,n){return t&&(e=Fh(e,fn(t))),n&&(e=Ah(e,fn(n))),e}function z4(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function G4(e){let t=C.useMemo(()=>new Yo(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=C.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=qo(e.value,e.defaultValue,e.onChange),g=C.useMemo(()=>h?xt(fn(h),d):null,[h,d]),m=C.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),v=C.useMemo(()=>e.focusedValue?Vr(xt(fn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),y=C.useMemo(()=>Vr(e.defaultFocusedValue?xt(fn(e.defaultFocusedValue),d):g||xt(Rh(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[b,x]=qo(v,y,e.onFocusChange),[S,w]=C.useState(()=>{switch(l){case"start":return Ei(b,a,r,o,s);case"end":return vf(b,a,r,o,s);case"center":default:return bf(b,a,r,o,s)}}),[I,F]=C.useState(e.autoFocus||!1),p=C.useMemo(()=>{let P={...a};return P.days?P.days--:P.days=-1,S.add(P)},[S,a]),[D,$]=C.useState(d.identifier);if(d.identifier!==D){let P=xt(b,d);w(bf(P,a,r,o,s)),x(P),$(d.identifier)}wa(b,o,s)?x(Vr(b,o,s)):b.compare(S)<0?w(vf(b,a,r,o,s)):b.compare(p)>0&&w(Ei(b,a,r,o,s));function _(P){P=Vr(P,o,s),x(P)}function A(P){if(!e.isDisabled&&!e.isReadOnly){if(P===null){f(null);return}if(P=Vr(P,o,s),P=z4(P,S,u),!P)return;P=xt(P,(h==null?void 0:h.calendar)||new gn),h&&"hour"in h?f(h.set(P)):f(P)}}let k=C.useMemo(()=>g?u&&u(g)?!0:wa(g,o,s):!1,[g,u,o,s]),R=e.isInvalid||e.validationState==="invalid"||k,M=R?"invalid":null,T=C.useMemo(()=>c==="visible"?a:nd(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:A,visibleRange:{start:S,end:p},minValue:o,maxValue:s,focusedDate:b,timeZone:m,validationState:M,isValueInvalid:R,setFocusedDate(P){_(P),F(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&_(b.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let P=S.add(T);x(Vr(b.add(T),o,s)),w(Ei(Qo(b,P,T,r,o,s),T,r))},focusPreviousPage(){let P=S.subtract(T);x(Vr(b.subtract(T),o,s)),w(Ei(Qo(b,P,T,r,o,s),T,r))},focusSectionStart(){a.days?_(S):a.weeks?_(Go(b,r)):(a.months||a.years)&&_(xs(b))},focusSectionEnd(){a.days?_(p):a.weeks?_(iF(b,r)):(a.months||a.years)&&_(qd(b))},focusNextSection(P){if(!P&&!a.days){_(b.add(nd(a)));return}a.days?this.focusNextPage():a.weeks?_(b.add({months:1})):(a.months||a.years)&&_(b.add({years:1}))},focusPreviousSection(P){if(!P&&!a.days){_(b.subtract(nd(a)));return}a.days?this.focusPreviousPage():a.weeks?_(b.subtract({months:1})):(a.months||a.years)&&_(b.subtract({years:1}))},selectFocusedDate(){A(b)},selectDate(P){A(P)},isFocused:I,setFocused:F,isInvalid(P){return wa(P,o,s)},isSelected(P){return g!=null&>(P,g)&&!this.isCellDisabled(P)&&!this.isCellUnavailable(P)},isCellFocused(P){return I&&b&>(P,b)},isCellDisabled(P){return e.isDisabled||P.compare(S)<0||P.compare(p)>0||this.isInvalid(P,o,s)},isCellUnavailable(P){return e.isDateUnavailable&&e.isDateUnavailable(P)},isPreviousVisibleRangeInvalid(){let P=S.subtract({days:1});return gt(P,S)||this.isInvalid(P,o,s)},isNextVisibleRangeInvalid(){let P=p.add({days:1});return gt(P,p)||this.isInvalid(P,o,s)},getDatesInWeek(P,B=S){let O=B.add({weeks:P}),L=[];O=Go(O,r);let H=Ju(O,r);for(let z=0;z<H;z++)L.push(null);for(;L.length<7;){L.push(O);let z=O.add({days:1});if(gt(O,z))break;O=z}for(;L.length<7;)L.push(null);return L}}}function nd(e){let t={...e};for(let n in e)t[n]=1;return t}function CP(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=qo(t,n||null,r),[h,f]=C.useState(null),g="center";if(c&&c.start&&c.end){let B=bf(fn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(B)>0&&(g="start")}let m=C.useRef(null),[v,y]=C.useState(null),b=C.useMemo(()=>Fh(s,v==null?void 0:v.start),[s,v]),x=C.useMemo(()=>Ah(l,v==null?void 0:v.end),[l,v]),S=G4({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:b,maxValue:x,selectionAlignment:g}),w=P=>{P&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Up(P,S,-1),end:Up(P,S,1)},y(m.current)):(m.current=null,y(null))},[I,F]=C.useState(S.visibleRange);(!Jd(S.visibleRange.start,I.start)||!Jd(S.visibleRange.end,I.end))&&(w(h),F(S.visibleRange));let p=P=>{P?(f(P),w(P)):(f(null),w(null))},D=h?rd(h,S.focusedDate):c&&rd(c.start,c.end),$=P=>{if(!e.isReadOnly&&(P=Vr(P,b,x),P=z4(P,S.visibleRange.start,e.isDateUnavailable),!!P))if(!h)p(P);else{let B=rd(h,P);d({start:Yp(B.start,c==null?void 0:c.start),end:Yp(B.end,c==null?void 0:c.end)}),p(null)}},[_,A]=C.useState(!1),{isDateUnavailable:k}=e,R=C.useMemo(()=>!c||h?!1:k&&(k(c.start)||k(c.end))?!0:wa(c.start,s,l)||wa(c.end,s,l),[k,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||R;return{...S,value:c,setValue:d,anchorDate:h,setAnchorDate:p,highlightedRange:D,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){$(S.focusedDate)},selectDate:$,highlightDate(P){h&&S.setFocusedDate(P)},isSelected(P){return D&&P.compare(D.start)>=0&&P.compare(D.end)<=0&&!S.isCellDisabled(P)&&!S.isCellUnavailable(P)},isInvalid(P){var B,O;return S.isInvalid(P)||wa(P,(B=m.current)===null||B===void 0?void 0:B.start,(O=m.current)===null||O===void 0?void 0:O.end)},isDragging:_,setDragging:A}}function rd(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:fn(e),end:fn(t)})}function Yp(e,t){return e=xt(e,(t==null?void 0:t.calendar)||new gn),t&&"hour"in t?t.set(e):e}function Up(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function wP(e){let[t,n]=qo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),a=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Z4={};Z4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var X4={};X4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Y4={};Y4={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var U4={};U4={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var J4={};J4={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var q4={};q4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var K4={};K4={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Q4={};Q4={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var e3={};e3={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var t3={};t3={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var n3={};n3={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var r3={};r3={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var i3={};i3={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var a3={};a3={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var o3={};o3={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var s3={};s3={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var l3={};l3={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var u3={};u3={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var c3={};c3={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var d3={};d3={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var f3={};f3={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var h3={};h3={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var g3={};g3={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var m3={};m3={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var p3={};p3={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var b3={};b3={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var v3={};v3={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var y3={};y3={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var x3={};x3={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var C3={};C3={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var w3={};w3={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var D3={};D3={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var S3={};S3={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var E3={};E3={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var _3={};_3={"ar-AE":Z4,"bg-BG":X4,"cs-CZ":Y4,"da-DK":U4,"de-DE":J4,"el-GR":q4,"en-US":K4,"es-ES":Q4,"et-EE":e3,"fi-FI":t3,"fr-FR":n3,"he-IL":r3,"hr-HR":i3,"hu-HU":a3,"it-IT":o3,"ja-JP":s3,"ko-KR":l3,"lt-LT":u3,"lv-LV":c3,"nb-NO":d3,"nl-NL":f3,"pl-PL":h3,"pt-BR":g3,"pt-PT":m3,"ro-RO":p3,"ru-RU":b3,"sk-SK":v3,"sl-SI":y3,"sr-SP":x3,"sv-SE":C3,"tr-TR":w3,"uk-UA":D3,"zh-CN":S3,"zh-TW":E3};function DP(e){return e&&e.__esModule?e.default:e}const I3=new Zi(DP(_3));function $3(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Jp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=$3(),d=Zi.getGlobalDictionaryForPackage("@react-stately/datepicker")||I3,h=new wx(c,d),f=new Yo(c,yf({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function SP(e,t,n,r,i){let a=Jp(e==null?void 0:e.start,t,n,r,i),o=Jp(e==null?void 0:e.end,t,n,r,i),s=bu(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Zi.getGlobalDictionaryForPackage("@react-stately/datepicker")||I3;s=bu(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",$3())],validationDetails:{...Qu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const EP={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},_P={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yf(e,t){e={...t.shouldForceLeadingZeros?_P:EP,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function qs(e){return e&&"hour"in e?e:new Nh}function IP(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=C.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function $P(e){var t,n;let r=wP(e),[i,a]=qo(e.value,e.defaultValue||null,e.onChange),[o,s]=C.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=T=>{s(T||{start:null,end:null}),T!=null&&T.start&&T.end?a(T):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=IP(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[v,y]=C.useState(null),[b,x]=C.useState(null);l&&l.start&&l.end&&(v=l,"hour"in l.start&&(b=l));let S=(T,P)=>{u({start:"timeZone"in P.start?P.start.set(fn(T.start)):Qr(T.start,P.start),end:"timeZone"in P.end?P.end.set(fn(T.end)):Qr(T.end,P.end)}),y(null),x(null),k.commitValidation()},w=T=>{let P=typeof m=="function"?m():m;f?P||T.start&&T.end&&(b!=null&&b.start)&&(b!=null&&b.end)?S(T,{start:(b==null?void 0:b.start)||qs(e.placeholderValue),end:(b==null?void 0:b.end)||qs(e.placeholderValue)}):y(T):T.start&&T.end?(u(T),k.commitValidation()):y(T),P&&r.setOpen(!1)},I=T=>{v!=null&&v.start&&(v!=null&&v.end)&&T.start&&T.end?S(v,T):x(T)},F=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",p=C.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:F}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,F]),{minValue:D,maxValue:$,isDateUnavailable:_}=e,A=C.useMemo(()=>SP(l,D,$,_,p),[l,D,$,_,p]),k=dP({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:A}),R=k.displayValidation.isInvalid,M=e.validationState||(R?"invalid":null);return{...k,value:l,setValue:u,dateRange:v,timeRange:b,granularity:d,hasTime:f,setDate(T,P){w({...v,[T]:P})},setTime(T,P){I({...b,[T]:P})},setDateTime(T,P){u({...l,[T]:P})},setDateRange:w,setTimeRange:I,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(v!=null&&v.start)&&(v!=null&&v.end)&&f&&S(v,{start:(b==null?void 0:b.start)||qs(e.placeholderValue),end:(b==null?void 0:b.end)||qs(e.placeholderValue)}),r.setOpen(T)},validationState:M,isInvalid:R,formatValue(T,P){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,O=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,H=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=yf(P,{granularity:O,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),X=l.start.toDate(B||"UTC"),G=l.end.toDate(L||"UTC"),j=new Yo(T,z),V;if(B===L&&O===H&&l.start.compare(l.end)!==0){try{let Z=j.formatRangeToParts(X,G),q=-1;for(let ie=0;ie<Z.length;ie++){let Y=Z[ie];if(Y.source==="shared"&&Y.type==="literal")q=ie;else if(Y.source==="endRange")break}let te="",ue="";for(let ie=0;ie<Z.length;ie++)ie<q?te+=Z[ie].value:ie>q&&(ue+=Z[ie].value);return{start:te,end:ue}}catch{}V=j}else{let Z=yf(P,{granularity:H,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Yo(T,Z)}return{start:j.format(X),end:V.format(G)}}}}const R3=e=>{const t=C.useRef(null),{locale:n}=Nn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=uP({date:i},r,t),{focusProps:h}=bx(),f="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.end):null:s,m=Ju(i,n),v=s&&(f??m===0??i.day===1),y=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return E.jsx("td",{...a,children:E.jsx("div",{...en(o,h),ref:t,className:`${be["cell-calendar"]} ${v?"1ru-rounded-l-full":""} ${y?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?E.jsx("div",{className:be["visible-cell-calendar"],children:c}):E.jsx("div",{className:`${be["active-cell-calendar"]} ${u&&!d?be.disabled:""} ${f||g?d?be.error:be.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},Pa=e=>{const t=C.useRef(null),{buttonProps:n}=rP(e,t),{focusProps:r}=bx();return E.jsx("button",{...en(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},A3=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a,hiddenHeader:o})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=ei({month:"short",timeZone:n.timeZone}),c=(h,f)=>{const g=n.focusedDate.set({month:h});f?(r("date"),n.setFocusedDate(g)):!f&&typeof i=="function"&&i(g)},d=h=>{const f=n.focusedDate.set({year:h});n.setFocusedDate(f)};return E.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[!o&&E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>d(n.focusedDate.year-1),children:typeof e=="function"||C.isValidElement(e)?C.isValidElement(e)?e:e():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:`${be["header-button-calendar"]} ${a.includes("year")?"":be.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),E.jsx(Pa,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>d(n.focusedDate.year+1),children:typeof t=="function"||C.isValidElement(t)?C.isValidElement(t)?t:t():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsx("div",{className:be["month-calendar"],children:[...Array(l).keys()].map(h=>{var x,S,w,I;const f=n.focusedDate.set({month:h+1}),g=u.format(f.toDate(n.timeZone)),m=((x=n.value)==null?void 0:x.year)||((w=(S=n.value)==null?void 0:S.start)==null?void 0:w.year)||s,v=n!=null&&n.minValue?f.month<((I=n==null?void 0:n.minValue)==null?void 0:I.month)&&f.year<=n.minValue.year:!1,y=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,b=v||y;return E.jsx("div",{onClick:()=>{b||c(f.month,a.includes("date"))},className:`${be["cell-month"]} ${n.focusedDate.month===f.month&&!b&&f.year===m?be.selected:""} ${n.focusedDate.month!==f.month&&!b?"hover:1ru-bg-laba-blue-01":""} ${b?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:g},h)})})]})},RP=e=>{const t=Dy(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=s4({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=o4(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return E.jsxs("div",{children:[!e.hiddenHeader&&E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||C.isValidElement(e==null?void 0:e.prevIcon)?C.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:be["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),E.jsx(Pa,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||C.isValidElement(e==null?void 0:e.nextIcon)?C.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...n,children:[E.jsx("thead",{...r,children:E.jsx("tr",{children:i.map((u,c)=>E.jsx("th",{className:be["days-calendar"],children:l(c)},c))})}),E.jsx("tbody",{children:[...new Array(t).keys()].map(u=>E.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?E.jsx(R3,{state:e.state,date:c},d):E.jsx("td",{},d))},u))})]})]})},AP=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:a})=>{const o=e?new Date(e):null,s=t?new Date(t):null,l=o==null?void 0:o.getHours(),u=s==null?void 0:s.getHours(),c=o==null?void 0:o.getMinutes(),d=s==null?void 0:s.getMinutes(),[h,f]=C.useState(!0),g=(b,x,S)=>Array.from({length:(x-b)/S+1},(w,I)=>b+I*S),m=(b,x)=>{typeof a=="function"&&a({hour:b,minut:x,second:r==null?void 0:r.second})},v=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),x=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),S=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");b&&S&&S.scrollTo({behavior:"instant",top:b.offsetTop-75}),x&&w&&w.scrollTo({behavior:"instant",top:x.offsetTop-75})},y=(b,x)=>{let S=!0;if(o&&n){const w=n.year===o.getFullYear(),I=n.month===o.getMonth()+1;n.day===o.getDate()&&I&&w?(x==="hour"&&b<(l??0)||x==="minut"&&((r==null?void 0:r.hour)??0)<=o.getHours()&&b<(c??0))&&(S=!1):n.toDate(Oi()).getTime()<o.getTime()&&(S=!1)}if(s&&n){const w=n.year===s.getFullYear(),I=n.month===s.getMonth()+1;n.day===s.getDate()&&I&&w?(x==="hour"&&b>(u??0)||x==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&b>(d??0))&&(S=!1):n.toDate(Oi()).getTime()>s.getTime()&&(S=!1)}return S};return C.useEffect(()=>{h&&v(),r&&f(!1)},[JSON.stringify(n)]),E.jsxs("div",{className:be["custom-time-calendar"],children:[!i&&E.jsx("div",{className:be["header-time"],children:"Atur Waktu"}),E.jsxs("div",{className:be["type-time"],children:[E.jsx("div",{children:"Jam"}),E.jsx("div",{children:"Menit"})]}),E.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[E.jsx("div",{id:"wrapper-calendar-hour",className:be["container-cell-time"],children:g(0,23,1).map(b=>E.jsx("div",{id:`calendar-hour-${b}`,className:`${be["cell-time"]} ${(r==null?void 0:r.hour)===b?y(b,"hour")?be.selected:be.error:""} ${y(b,"hour")&&(r==null?void 0:r.hour)!=b?be.valid:be.invalid}`,onClick:()=>{y(b,"hour")&&m(b,r==null?void 0:r.minut)},children:b<10?`0${b}`:b},b))}),E.jsx("div",{id:"wrapper-calendar-minut",className:be["container-cell-time"],children:g(0,59,1).map(b=>E.jsx("div",{id:`calendar-minut-${b}`,className:`${be["cell-time"]} ${(r==null?void 0:r.minut)===b?y(b,"minut")?be.selected:be.error:""} ${y(b,"minut")&&(r==null?void 0:r.minut)!=b?be.valid:be.invalid}`,onClick:()=>{y(b,"minut")&&m(r==null?void 0:r.hour,b)},children:b<10?`0${b}`:b},b))})]})]})},ec=e=>{const t=G4({...e,locale:e.locale,createCalendar:ws}),{title:n}=o4(e,t),[r,i]=C.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Mi(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&E.jsx(E.Fragment,{children:E.jsxs("div",{className:be["container-calendar"],children:[E.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[E.jsx(RP,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&E.jsx(AP,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&E.jsxs("div",{className:`${be["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):E.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&E.jsx(A3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a,hiddenHeader:e.hiddenHeader}),r==="year"&&E.jsx(Av,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a,hiddenHeader:e.hiddenHeader})]})},FP=e=>{const t=C.useRef(null),{locale:n}=Nn(),r=CP({...e,locale:n,createCalendar:ws}),i=m=>{let v="";switch(m){case 0:v="Min";break;case 1:v="Sen";break;case 2:v="Sel";break;case 3:v="Rab";break;case 4:v="Kam";break;case 5:v="Jum";break;case 6:v="Sab";break}return v},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=sP(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=s4({},r),h=Dy(r.visibleRange.start,n),[f,g]=C.useState("date");return E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&E.jsx(E.Fragment,{children:E.jsx("div",{...a,ref:t,children:E.jsxs("div",{className:be["container-calendar"],children:[E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||C.isValidElement(e==null?void 0:e.prevIcon)?C.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:be["header-button-calendar"],onClick:()=>g("month"),children:l}),E.jsx(Pa,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||C.isValidElement(e==null?void 0:e.nextIcon)?C.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[E.jsx("thead",{...c,className:"text-gray-600",children:E.jsx("tr",{children:d.map((m,v)=>E.jsx("th",{className:be["days-calendar"],children:i(v)},v))})}),E.jsx("tbody",{children:[...new Array(h).keys()].map(m=>E.jsx("tr",{children:r.getDatesInWeek(m).map((v,y)=>v?E.jsx(R3,{state:r,date:v},y):E.jsx("td",{},y))},m))})]}),e.withConfirm&&E.jsxs("div",{className:be["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):E.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&E.jsx(A3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&E.jsx(Av,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},F3=e=>{const t=$P(e),n=C.useRef(null),{calendarProps:r}=xP(e,t,n);return E.jsx("div",{ref:n,children:E.jsx(FP,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Ks=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},PP=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:v="date-picker-popover",floatingOptions:y={},offsetPopover:b=5,zIndexPopper:x=1,hiddenHeader:S}=e,w=ei(),{locale:I}=Nn(),F=Ks(t),p=Ks(n),D=C.useRef(null),[$,_]=C.useState(),[A,k]=C.useState(),R=O=>{var G;const L=new Date;let H=O.toDate(Oi());H.setHours(L.getHours(),L.getMinutes(),L.getSeconds());const z=t?new Date(t):null,X=n?new Date(n):null;if(o){if(H=new Date(new Date(H).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),z&&(z==null?void 0:z.toDateString())===new Date(H).toDateString()&&(z==null?void 0:z.toTimeString())>=(H==null?void 0:H.toTimeString())){if(z&&(z.getHours()>H.getHours()||z.getHours()===H.getHours()&&z.getMinutes()>H.getMinutes()))return;H=new Date(z.setSeconds(z.getSeconds()+1))}if(X&&(X==null?void 0:X.toDateString())===new Date(H).toDateString()&&(X==null?void 0:X.toTimeString())<(H==null?void 0:H.toTimeString())){if(X&&(X.getHours()<H.getHours()||X.getHours()===H.getHours()&&X.getMinutes()<H.getMinutes()))return;H=new Date(X.setSeconds(X.getSeconds()-1))}}else z&&w.format(H)===w.format(z)&&z.getTime()>=H.getTime()?H=new Date(z.setSeconds(z.getSeconds()+1)):X&&w.format(H)===w.format(X)&&X.getTime()<=H.getTime()&&(H=new Date(X.setSeconds(X.getSeconds()-1)));typeof g=="function"&&(g(H),(G=D.current)==null||G.setShow(!1))},M=(O,L)=>{_(O),(L??(!a&&!o))&&R(O)},T=O=>{k(O)},P=O=>{const L=new Date(r??new Date);k({hour:L.getHours(),minut:L.getMinutes(),second:L.getSeconds()}),_(Ks(r))},B=()=>{$&&M($,!0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:m,onClick:O=>{var L;(L=D.current)==null||L.handlerShow(O),P()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),E.jsx(Ar,{zIndex:x,ref:D,offset:b,id:v,floatingOptions:{placement:"bottom-end",...y},children:E.jsx("div",{className:s??"",children:E.jsx(Jh,{locale:"id-ID",children:E.jsx(ec,{minValue:F,maxValue:p,minDate:t,maxDate:n,time:A,locale:I,value:$,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:ws,defaultValue:Ks(r),onChange:M,handlerReset:()=>{var O;typeof g=="function"&&(g(i),(O=D.current)==null||O.setShow(!1))},handlerSubmit:B,handlerChangeTime:T,withConfirm:a,isCustomTime:o,type:["date","month","year"],hiddenHeader:S})})})})]})},id=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},qp=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new ut(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new ut(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},P3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=Nn(),f=id(t),g=id(n),[m,v]=C.useState(),y=w=>{typeof c=="function"&&c(w)},b=(w,I)=>{const F=w.start.toDate(Oi()),p=w.end.toDate(Oi());v(w),(I??!i)&&y({startDate:F,endDate:new Date(p.setHours(23,59,59))})},x=w=>{if(typeof d=="function")d();else if(r&&w){const I=new Date(r.endDate??new Date),F=w.focusedDate.set({month:I.getMonth()+1,year:I.getFullYear()});w.setFocusedDate(F)}v(qp(r))},S=()=>{m&&b(m,!0)};return E.jsx("div",{className:"1ru-flex 1ru-flex-col",children:E.jsxs(Jh,{locale:"id-ID",children:[u==="RANGE"&&E.jsx(F3,{defaultValue:qp(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:b,handlerReset:x,handlerSubmit:S}),u==="SINGLE"&&E.jsx(ec,{defaultValue:id(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:ws,onChange:w=>b({start:w,end:w}),handlerReset:x,handlerSubmit:S,type:["date","month","year"]})]})})},TP=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:v,mountedExecuteChange:y=!0,formatingDate:b})=>{const x=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],S=C.useRef(null),[w,I]=C.useState(),[F,p]=C.useState(),[D,$]=C.useState(),_=(G,j)=>{const V=new Date(G??new Date);return j==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},A=()=>{const G=new Date;return{startDate:G,endDate:G}},k=()=>{const G=new Date;G.setDate(G.getDate()-G.getDay());const j=new Date;return j.setDate(j.getDate()+(6-j.getDay())),{startDate:G,endDate:j}},R=()=>{const G=new Date,j=new Date(G.getFullYear(),G.getMonth(),1),V=new Date(G.getFullYear(),G.getMonth()+1,0);return{startDate:j,endDate:V}},M=()=>{const G=new Date(new Date().getFullYear(),0,1),j=new Date(new Date().getFullYear(),11,31);return{startDate:G,endDate:j}},T=()=>{const G=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:G,endDate:G}},P=()=>{const G=new Date;G.setDate(G.getDate()-(7+G.getDay()));const j=new Date;return j.setDate(j.getDate()-(j.getDay()+1)),{startDate:G,endDate:j}},B=()=>{const G=new Date,j=new Date(G.getFullYear(),G.getMonth()-1,1),V=new Date(G.getFullYear(),G.getMonth(),0);return{startDate:j,endDate:V}},O=()=>{const G=new Date(new Date().getFullYear()-1,0,1),j=new Date(new Date().getFullYear()-1,11,31);return{startDate:G,endDate:j}},L=(G,j,V)=>{var Z;if($(G),typeof c=="function"){let q=G;b==="string"&&G?q={startDate:fa(G.startDate,b),endDate:fa(G.endDate,b)}:typeof b=="boolean"&&G&&(q={startDate:fa(G.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:fa(G.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(Z=S.current)==null||Z.setShow(!1),c(q,j??"",V)}},H=(G,j)=>{I(G);let V;if((G==null?void 0:G.key)!=="custom"){switch(p(G),G==null?void 0:G.key){case"thisDay":V=A();break;case"thisWeek":V=k();break;case"thisMonth":V=R();break;case"thisYear":V=M();break;case"yesterday":V=T();break;case"lastWeek":V=P();break;case"lastMonth":V=B();break;case"lastYear":V=O();break}V&&j&&L({startDate:_(V.startDate,"start"),endDate:_(V.endDate,"end")},G==null?void 0:G.value,G)}},z=(G,j)=>{const V=(l??x).find(Z=>Z.key===G);!G&&!V?(j&&L(),H(void 0,j),p(void 0)):typeof G=="object"?(j&&L({startDate:_(G.startDate,"start"),endDate:_(G.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),H({key:"custom",value:"Kustom"},j),p({key:"custom",value:"Kustom"})):(H(V,j),p(V))},X=()=>{var G;if(e){$(e);const j=(G=l??x)==null?void 0:G.find(V=>V.key===e.label||V.value===e.label);Object.keys(j||{}).length>0&&I(j)}else I(void 0),p(void 0)};return C.useEffect(()=>{X()},[JSON.stringify(e)]),C.useEffect(()=>{z(v??e,y)},[]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{onClick:G=>{var j;(j=S.current)==null||j.handlerShow(G),X()},className:o,id:h,children:[C.isValidElement(s)&&s,typeof s=="function"?s(D,F):"Pilih Filter"]}),E.jsx(Ar,{zIndex:m,ref:S,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:E.jsxs("div",{className:`${be["container-filter-date"]} ${a}`,children:[E.jsx("div",{children:(l??x).map((G,j)=>E.jsx("div",{className:`${be["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(w==null?void 0:w.key)===G.key?"1ru-text-laba-blue-10":""}`,onClick:()=>H(G,!0),children:G.value},j))}),(w==null?void 0:w.key)==="custom"&&E.jsx("div",{children:E.jsx(P3,{defaultValue:D,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:G=>{L(G,"Kustom",{key:"custom",value:"Kustom"}),p({key:"custom",value:"Kustom"})},onReset:()=>{z(v,!0)},typePicker:u,withConfirm:!0})})]})})]})},kP="_active_z4wg4_31",MP="_disabled_z4wg4_34",_t={"title-switch-laba":"_title-switch-laba_z4wg4_1","title-switch-payhere":"_title-switch-payhere_z4wg4_6","description-switch-laba":"_description-switch-laba_z4wg4_11","description-switch-payhere":"_description-switch-payhere_z4wg4_16","switch-l":"_switch-l_z4wg4_21","switch-payhere":"_switch-payhere_z4wg4_21",active:kP,disabled:MP,"disabled-nonactive":"_disabled-nonactive_z4wg4_37","thumb-switch":"_thumb-switch_z4wg4_40","switch-laba":"_switch-laba_z4wg4_57","switch-r":"_switch-r_z4wg4_94","switch-s":"_switch-s_z4wg4_167"},BP=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:_t["switch-l"],regular:_t["switch-r"],small:_t["switch-s"]},kind:{laba:_t["switch-laba"],payhere:_t["switch-payhere"]},text:{title:{laba:_t["title-switch-laba"],payhere:_t["title-switch-payhere"]},desc:{laba:_t["description-switch-laba"],payhere:_t["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return E.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),E.jsx("span",{className:`${d.size[i]} ${d.kind[a]} ${e?_t.active:""} ${t?_t.disabled:""} ${!e&&t?_t["disabled-nonactive"]:""}`,children:E.jsx("span",{className:`${_t["thumb-switch"]} ${e?_t.active:""} ${t?_t.disabled:""} ${!e&&t?_t["disabled-nonactive"]:""}`})})]}),(n||r)&&E.jsxs("div",{children:[n&&E.jsx("div",{className:`${d.text.title[a]} ${l}`,children:n}),r&&E.jsx("div",{className:`${d.text.desc[a]} ${u}`,children:r})]})]})},OP="_loading_11t4k_10",$e={"button-xs":"_button-xs_11t4k_6","button-s":"_button-s_11t4k_6","button-m":"_button-m_11t4k_6","button-l":"_button-l_11t4k_6","button-extra-small":"_button-extra-small_11t4k_6","button-small":"_button-small_11t4k_6","button-reguler":"_button-reguler_11t4k_6","button-large":"_button-large_11t4k_6",loading:OP,"nude-laba-red-05":"_nude-laba-red-05_11t4k_18","nude-laba-red-10":"_nude-laba-red-10_11t4k_18","nude-gray-500":"_nude-gray-500_11t4k_18","nude-green-700":"_nude-green-700_11t4k_18","nude-red-700":"_nude-red-700_11t4k_18","nude-laba-blue-10":"_nude-laba-blue-10_11t4k_18","ghost-laba-green-10":"_ghost-laba-green-10_11t4k_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_11t4k_18","ghost-green-700":"_ghost-green-700_11t4k_18","ghost-red-700":"_ghost-red-700_11t4k_18","ghost-laba-blue-10":"_ghost-laba-blue-10_11t4k_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_11t4k_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_11t4k_18","primary-green-700":"_primary-green-700_11t4k_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_11t4k_18","primary-laba-blue-10":"_primary-laba-blue-10_11t4k_18","tertiary-gray-500":"_tertiary-gray-500_11t4k_18","tertiary-red-600":"_tertiary-red-600_11t4k_18","tertiary-red-300":"_tertiary-red-300_11t4k_18","tertiary-blue-700":"_tertiary-blue-700_11t4k_18","secondary-green-600":"_secondary-green-600_11t4k_18","secondary-red-700":"_secondary-red-700_11t4k_18","secondary-red-600":"_secondary-red-600_11t4k_18","secondary-blue-700":"_secondary-blue-700_11t4k_18","primary-red-700":"_primary-red-700_11t4k_18","primary-blue-700":"_primary-blue-700_11t4k_18","icon-loading":"_icon-loading_11t4k_80"},NP=({className:e=""})=>E.jsx("svg",{className:`${$e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
113
|
+
`]))),CR=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},kc=function(t){var n=t.delay,r=t.offset;return de("span",{css:_h({animation:"".concat(xR," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},wR=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=Fr(t,dR);return de("div",ge({},st(fe(fe({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),de(kc,{delay:0,offset:r}),de(kc,{delay:160,offset:!0}),de(kc,{delay:320,offset:!r}))},DR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},SR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return de("div",ge({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},ER=SR,_R=["data"],IR=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},$R=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return de("div",ge({},st(t,"group",{group:!0}),l),de(o,ge({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),de("div",null,n))},RR=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},AR=function(t){var n=Jv(t);n.data;var r=Fr(n,_R);return de("div",ge({},st(t,"groupHeading",{"group-heading":!0}),r))},FR=$R,PR=["innerRef","isDisabled","isHidden","inputClassName"],TR=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},kR),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},ay={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kR={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ay)},MR=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ay)},BR=function(t){var n=t.cx,r=t.value,i=Jv(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=Fr(i,PR);return de("div",ge({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),de("input",ge({className:n({input:!0},l),ref:a,style:MR(s),disabled:o},u)))},OR=BR,NR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},VR=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},LR=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},oy=function(t){var n=t.children,r=t.innerProps;return de("div",r,n)},HR=oy,jR=oy;function WR(e){var t=e.children,n=e.innerProps;return de("div",ge({role:"button"},n),t||de(Ih,{size:14}))}var zR=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return de(u,{data:i,innerProps:fe(fe({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},de(c,{data:i,innerProps:fe({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),de(d,{data:i,innerProps:fe(fe({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},GR=zR,ZR=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},XR=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return de("div",ge({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},YR=XR,UR=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},JR=function(t){var n=t.children,r=t.innerProps;return de("div",ge({},st(t,"placeholder",{placeholder:!0}),r),n)},qR=JR,KR=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},QR=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return de("div",ge({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},eA=QR,sy={ClearIndicator:bR,Control:ER,DropdownIndicator:mR,DownChevron:ry,CrossIcon:Ih,Group:FR,GroupHeading:AR,IndicatorsContainer:uR,IndicatorSeparator:yR,Input:OR,LoadingIndicator:wR,Menu:U9,MenuList:q9,MenuPortal:rR,LoadingMessage:tR,NoOptionsMessage:eR,MultiValue:GR,MultiValueContainer:HR,MultiValueLabel:jR,MultiValueRemove:WR,Option:YR,Placeholder:qR,SelectContainer:aR,SingleValue:eA,ValueContainer:sR},tA=function(t){return fe(fe({},sy),t.components)},tp=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function nA(e,t){return!!(e===t||tp(e)&&tp(t))}function rA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!nA(e[n],t[n]))return!1;return!0}function iA(e,t){t===void 0&&(t=rA);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function aA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oA=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:aA},sA=function(t){return de("span",ge({css:oA},t))},np=sA,lA={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,v){return m&&m.length?"".concat(m.indexOf(v)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},uA=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,v=l.isSearchable,y=l.menuIsOpen,b=l.options,x=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,_=l["aria-label"],F=l["aria-live"],p=C.useMemo(function(){return fe(fe({},lA),d||{})},[d]),D=C.useMemo(function(){var M="";if(n&&p.onChange){var T=n.option,P=n.options,B=n.removedValue,O=n.removedValues,L=n.value,H=function(q){return Array.isArray(q)?null:q},z=B||T||H(L),X=z?h(z):"",G=P||O||void 0,j=G?G.map(h):[],V=fe({isDisabled:z&&m(z,s),label:X,labels:j},n);M=p.onChange(V)}return M},[n,p,m,s,h]),$=C.useMemo(function(){var M="",T=r||i,P=!!(r&&s&&s.includes(r));if(T&&p.onFocus){var B={focused:T,label:h(T),isDisabled:m(T,s),isSelected:P,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};M=p.onFocus(B)}return M},[r,i,h,m,p,a,s,c]),I=C.useMemo(function(){var M="";if(y&&b.length&&!w&&p.onFilter){var T=x({count:a.length});M=p.onFilter({inputValue:f,resultsMessage:T})}return M},[a,f,y,p,b,x,w]),A=(n==null?void 0:n.action)==="initial-input-focus",k=C.useMemo(function(){var M="";if(p.guidance){var T=i?"value":y?"menu":"input";M=p.guidance({"aria-label":_,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:v,tabSelectsValue:S,isInitialFocus:A})}return M},[_,r,i,g,m,v,y,p,s,S,A]),R=de(C.Fragment,null,de("span",{id:"aria-selection"},D),de("span",{id:"aria-focused"},$),de("span",{id:"aria-results"},I),de("span",{id:"aria-guidance"},k));return de(C.Fragment,null,de(np,{id:u},A&&R),de(np,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&R))},cA=uA,Ud=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],dA=new RegExp("["+Ud.map(function(e){return e.letters}).join("")+"]","g"),ly={};for(var Mc=0;Mc<Ud.length;Mc++)for(var Bc=Ud[Mc],Oc=0;Oc<Bc.letters.length;Oc++)ly[Bc.letters[Oc]]=Bc.base;var uy=function(t){return t.replace(dA,function(n){return ly[n]})},fA=iA(uy),rp=function(t){return t.replace(/^\s+|\s+$/g,"")},hA=function(t){return"".concat(t.label," ").concat(t.value)},gA=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=fe({ignoreCase:!0,ignoreAccents:!0,stringify:hA,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?rp(r):r,d=l?rp(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=fA(c),d=uy(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},mA=["innerRef"];function pA(e){var t=e.innerRef,n=Fr(e,mA),r=H9(n,"onExited","in","enter","exit","appear");return de("input",ge({ref:t},r,{css:_h({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var bA=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function vA(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=C.useRef(!1),s=C.useRef(!1),l=C.useRef(0),u=C.useRef(null),c=C.useCallback(function(v,y){if(u.current!==null){var b=u.current,x=b.scrollTop,S=b.scrollHeight,w=b.clientHeight,_=u.current,F=y>0,p=S-w-x,D=!1;p>y&&o.current&&(r&&r(v),o.current=!1),F&&s.current&&(a&&a(v),s.current=!1),F&&y>p?(n&&!o.current&&n(v),_.scrollTop=S,D=!0,o.current=!0):!F&&-y>x&&(i&&!s.current&&i(v),_.scrollTop=0,D=!0,s.current=!0),D&&bA(v)}},[n,r,i,a]),d=C.useCallback(function(v){c(v,v.deltaY)},[c]),h=C.useCallback(function(v){l.current=v.changedTouches[0].clientY},[]),f=C.useCallback(function(v){var y=l.current-v.changedTouches[0].clientY;c(v,y)},[c]),g=C.useCallback(function(v){if(v){var y=N9?{passive:!1}:!1;v.addEventListener("wheel",d,y),v.addEventListener("touchstart",h,y),v.addEventListener("touchmove",f,y)}},[f,h,d]),m=C.useCallback(function(v){v&&(v.removeEventListener("wheel",d,!1),v.removeEventListener("touchstart",h,!1),v.removeEventListener("touchmove",f,!1))},[f,h,d]);return C.useEffect(function(){if(t){var v=u.current;return g(v),function(){m(v)}}},[t,g,m]),function(v){u.current=v}}var ip=["boxSizing","height","overflow","paddingRight","position"],ap={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function op(e){e.preventDefault()}function sp(e){e.stopPropagation()}function lp(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function up(){return"ontouchstart"in window||navigator.maxTouchPoints}var cp=!!(typeof window<"u"&&window.document&&window.document.createElement),Xa=0,na={capture:!1,passive:!1};function yA(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=C.useRef({}),a=C.useRef(null),o=C.useCallback(function(l){if(cp){var u=document.body,c=u&&u.style;if(r&&ip.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Xa<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(ap).forEach(function(g){var m=ap[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&up()&&(u.addEventListener("touchmove",op,na),l&&(l.addEventListener("touchstart",lp,na),l.addEventListener("touchmove",sp,na))),Xa+=1}},[r]),s=C.useCallback(function(l){if(cp){var u=document.body,c=u&&u.style;Xa=Math.max(Xa-1,0),r&&Xa<1&&ip.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&up()&&(u.removeEventListener("touchmove",op,na),l&&(l.removeEventListener("touchstart",lp,na),l.removeEventListener("touchmove",sp,na)))}},[r]);return C.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function xA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var CA=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wA=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xA};function DA(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=vA({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=yA({isEnabled:n}),d=function(f){u(f),c(f)};return de(C.Fragment,null,n&&de("div",{onClick:CA,css:wA}),t(d))}function SA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var EA=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:SA},_A=function(t){var n=t.name,r=t.onFocus;return de("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:EA,value:"",onChange:function(){}})},IA=_A;function $h(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $A(){return $h(/^iPhone/i)}function cy(){return $h(/^Mac/i)}function RA(){return $h(/^iPad/i)||cy()&&navigator.maxTouchPoints>1}function AA(){return $A()||RA()}function FA(){return cy()||AA()}var PA=function(t){return t.label},TA=function(t){return t.label},kA=function(t){return t.value},MA=function(t){return!!t.isDisabled},BA={clearIndicator:pR,container:iR,control:DR,dropdownIndicator:gR,group:IR,groupHeading:RR,indicatorsContainer:lR,indicatorSeparator:vR,input:TR,loadingIndicator:CR,loadingMessage:Q9,menu:Z9,menuList:J9,menuPortal:nR,multiValue:NR,multiValueLabel:VR,multiValueRemove:LR,noOptionsMessage:K9,option:ZR,placeholder:UR,singleValue:KR,valueContainer:oR},OA={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},NA=4,dy=4,VA=38,LA=dy*2,HA={baseUnit:dy,controlHeight:VA,menuGutter:LA},Nc={borderRadius:NA,colors:OA,spacing:HA},jA={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qm(),captureMenuScroll:!Qm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:gA(),formatGroupLabel:PA,getOptionLabel:TA,getOptionValue:kA,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:MA,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!B9(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dp(e,t,n,r){var i=gy(e,t,n),a=my(e,t,n),o=hy(e,t),s=su(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function _l(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return dp(e,o,t,s)}).filter(function(o){return hp(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=dp(e,n,t,r);return hp(e,a)?a:void 0}).filter(V9)}function fy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,mh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function fp(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,mh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function WA(e,t){return fy(_l(e,t))}function hp(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!by(e)||!a)&&py(e,{label:o,value:s,data:i},r)}function zA(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function GA(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Vc=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},hy=function(t,n){return t.getOptionLabel(n)},su=function(t,n){return t.getOptionValue(n)};function gy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function my(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=su(e,t);return n.some(function(i){return su(e,i)===r})}function py(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var by=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},ZA=1,vy=function(e){l6(n,e);var t=d6(n);function n(r){var i;if(o6(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=FA(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var v=i.getOptionValue(l);i.setValue(f.filter(function(y){return i.getOptionValue(y)!==v}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(mh(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=zs(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(zs(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=zs(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Vc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return fp(_l(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return F9.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return hy(i.props,l)},i.getOptionValue=function(l){return su(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=BA[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return tA(i.props)},i.buildCategorizedOptions=function(){return _l(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return fy(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:fe({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Yu(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return by(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,v=u.menuIsOpen,y=u.onKeyDown,b=u.tabSelectsValue,x=u.openMenuOnFocus,S=i.state,w=S.focusedOption,_=S.focusedValue,F=S.selectValue;if(!m&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(_)i.removeValue(_);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!v||!b||!w||x&&i.isOptionSelected(w,F))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(v){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":v?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!v){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":v?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":v?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!v)return;i.focusOption("pageup");break;case"PageDown":if(!v)return;i.focusOption("pagedown");break;case"Home":if(!v)return;i.focusOption("first");break;case"End":if(!v)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++ZA),i.state.selectValue=qm(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Vc(a,o[s])}return i}return s6(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Km(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Km(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Nc):fe(fe({},Nc),this.props.theme):Nc}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return gy(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return my(this.props,i,a)}},{key:"filterOption",value:function(i,a){return py(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,v=m.inputIsHidden,y=m.ariaSelection,b=this.commonProps,x=s||this.getElementId("input"),S=fe(fe(fe({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?W.createElement(g,ge({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:a,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):W.createElement(pA,ge({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:au,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,v=f.isMulti,y=f.inputValue,b=f.placeholder,x=this.state,S=x.selectValue,w=x.focusedValue,_=x.isFocused;if(!this.hasValue()||!g)return y?null:W.createElement(d,ge({},h,{key:"placeholder",isDisabled:m,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),b);if(v)return S.map(function(p,D){var $=p===w,I="".concat(i.getOptionLabel(p),"-").concat(i.getOptionValue(p));return W.createElement(o,ge({},h,{components:{Container:s,Label:l,Remove:u},isFocused:$,isDisabled:m,key:I,index:D,removeProps:{onClick:function(){return i.removeValue(p)},onTouchEnd:function(){return i.removeValue(p)},onMouseDown:function(k){k.preventDefault()}},data:p}),i.formatOptionLabel(p,"value"))});if(y)return null;var F=S[0];return W.createElement(c,ge({},h,{data:F,isDisabled:m}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return W.createElement(o,ge({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(a,ge({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,m=this.state.focusedOption,v=this.props,y=v.captureMenuScroll,b=v.inputValue,x=v.isLoading,S=v.loadingMessage,w=v.minMenuHeight,_=v.maxMenuHeight,F=v.menuIsOpen,p=v.menuPlacement,D=v.menuPosition,$=v.menuPortalTarget,I=v.menuShouldBlockScroll,A=v.menuShouldScrollIntoView,k=v.noOptionsMessage,R=v.onMenuScrollToTop,M=v.onMenuScrollToBottom;if(!F)return null;var T=function(X,G){var j=X.type,V=X.data,Z=X.isDisabled,q=X.isSelected,te=X.label,ue=X.value,ie=m===V,Y=Z?void 0:function(){return i.onOptionHover(V)},me=Z?void 0:function(){return i.selectOption(V)},he="".concat(i.getElementId("option"),"-").concat(G),ce={id:he,onClick:me,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:q};return W.createElement(f,ge({},g,{innerProps:ce,data:V,isDisabled:Z,isSelected:q,key:he,label:te,type:j,value:ue,isFocused:ie,innerRef:ie?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(X.data,"menu"))},P;if(this.hasOptions())P=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var X=z.data,G=z.options,j=z.index,V="".concat(i.getElementId("group"),"-").concat(j),Z="".concat(V,"-heading");return W.createElement(o,ge({},g,{key:V,data:X,options:G,Heading:s,headingProps:{id:Z,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(q){return T(q,"".concat(j,"-").concat(q.index))}))}else if(z.type==="option")return T(z,"".concat(z.index))});else if(x){var B=S({inputValue:b});if(B===null)return null;P=W.createElement(d,g,B)}else{var O=k({inputValue:b});if(O===null)return null;P=W.createElement(h,g,O)}var L={minMenuHeight:w,maxMenuHeight:_,menuPlacement:p,menuPosition:D,menuShouldScrollIntoView:A},H=W.createElement(X9,ge({},g,L),function(z){var X=z.ref,G=z.placerProps,j=G.placement,V=G.maxHeight;return W.createElement(l,ge({},g,L,{innerRef:X,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:x,placement:j}),W.createElement(DA,{captureEnabled:y,onTopArrive:R,onBottomArrive:M,lockEnabled:I},function(Z){return W.createElement(u,ge({},g,{innerRef:function(te){i.getMenuListRef(te),Z(te)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:x,maxHeight:V,focusedOption:m}),P)}))});return $||D==="fixed"?W.createElement(c,ge({},g,{appendTo:$,controlElement:this.controlRef,menuPlacement:p,menuPosition:D}),H):H}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return W.createElement(IA,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(m){return i.getOptionValue(m)}).join(o);return W.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,v){return W.createElement("input",{key:"i-".concat(v),name:u,type:"hidden",value:i.getOptionValue(m)})}):W.createElement("input",{name:u,type:"hidden",value:""});return W.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return W.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return W.createElement(cA,ge({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return W.createElement(s,ge({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),W.createElement(a,ge({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),W.createElement(l,ge({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(o,ge({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,v=i.inputValue,y=i.isMulti,b=qm(g),x={};if(o&&(g!==o.value||f!==o.options||m!==o.menuIsOpen||v!==o.inputValue)){var S=m?WA(i,b):[],w=m?fp(_l(i,b),"".concat(h,"-option")):[],_=s?zA(a,b):null,F=GA(a,S),p=Vc(w,F);x={selectValue:b,focusedOption:F,focusedOptionId:p,focusableOptionsWithIds:w,focusedValue:_,clearFocusValueOnUpdate:!1}}var D=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},$=u,I=c&&d;return c&&!I&&($={value:zs(y,b,b[0]||null),options:b,action:"initial-input-focus"},I=!d),(u==null?void 0:u.action)==="initial-input-focus"&&($=null),fe(fe(fe({},x),D),{},{prevProps:i,ariaSelection:$,prevWasFocused:I})}}]),n}(C.Component);vy.defaultProps=jA;var XA=C.forwardRef(function(e,t){var n=a6(e);return W.createElement(vy,ge({ref:t},n))}),YA=XA;const UA="_container_26hat_1",Lc={container:UA,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},JA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},qA={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},KA={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},yy=C.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:v={},onMenuClose:y=()=>{},zIndexPopper:b=0,id:x="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:w,flipOptions:_,autoPlacementOptions:F,withSearch:p=!1,floatingOptions:D={},offsetPopover:$=5,selectProps:I={},errorLabel:A="payhere",controlType:k="payhere",actionValueChange:R=()=>{},...M}=e,T={error:{laba:Lc["error-laba"],payhere:Lc["error-payhere"]}},P=C.useRef(null),B=C.useRef(null),[O,L]=C.useState(""),[H,z]=C.useState(!1),[X,G]=C.useState({}),[j,V]=C.useState(0),Z=me=>{var he;(he=B.current)==null||he.setShow(me),z(me)},q=()=>{if(d)return e.isMulti?h:[h]},te=me=>{var he;(he=B.current)==null||he.handlerShow(me),V(P.current.offsetWidth),z(ce=>!ce)},ue=()=>{var me;m&&((me=B.current)==null||me.setShow(!1))},ie=(me,he)=>{var ce;f&&(z(!1),(ce=B.current)==null||ce.setShow(!1)),typeof c=="function"&&c(me,he),d||G(me)},Y=()=>{P.current&&V(P.current.offsetWidth)};return Mi(()=>{d&&G(h),R(h)},[d,h]),C.useEffect(()=>{H?g():H||(y(),L(""))},[H]),C.useImperativeHandle(t,()=>({selectValue:X,setSelectValue:G,handlerClose:ue,handlerShow:te,show:H,setShow:Z}),[H,gh(X)]),C.useEffect(()=>(window.addEventListener("resize",Y),window.addEventListener("load",Y),()=>{window.removeEventListener("resize",Y),window.removeEventListener("load",Y)}),[P]),E.jsxs("div",{id:x,className:`${Lc.container} ${a} ${H?`${o} open-popover`:null}`,ref:P,children:[r({selectValue:X,setSelectValue:G,handlerClose:ue,handlerShow:te,show:H,setShow:Z}),E.jsx(Ar,{ref:B,offset:$,useAutoPlacement:w,flipOptions:_,autoPlacementOptions:F,zIndex:b,styleInnerPopover:v,id:S,width:typeof n=="function"?n(j,X):n??j,className:s,floatingOptions:D,children:E.jsx(YA,{className:"1ru-w-full",defaultValue:q(),inputValue:O,onInputChange:(me,{action:he})=>{he==="input-change"&&L(me)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:p?k==="laba"?JA:qA:KA,noOptionsMessage:()=>"Tidak ada data.",onChange:ie,selectProps:{...I,setShowDropdown:Z},...M})}),E.jsx("div",{className:`${T.error[A]} ${l}`,children:u})]})});yy.displayName="SelectDropdownContainer";function ya(e,t){return e-t*Math.floor(e/t)}const xy=1721426;function Si(e,t,n,r){t=ys(e,t);let i=t-1,a=-2;return n<=2?a=0:zr(t)&&(a=-1),xy-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function zr(e){return e%4===0&&(e%100!==0||e%400===0)}function ys(e,t){return e==="BC"?1-t:t}function Uu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const QA={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class gn{fromJulianDay(t){let n=t,r=n-xy,i=Math.floor(r/146097),a=ya(r,146097),o=Math.floor(a/36524),s=ya(a,36524),l=Math.floor(s/1461),u=ya(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=Uu(d),g=n-Si(h,f,1,1),m=2;n<Si(h,f,3,1)?m=0:zr(f)&&(m=1);let v=Math.floor(((g+m)*12+373)/367),y=n-Si(h,f,v,1)+1;return new ut(h,f,v,y)}toJulianDay(t){return Si(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return QA[zr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return zr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const eF={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function gt(e,t){return t=xt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Jd(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function tF(e,t){return gt(e,Rh(t))}function Ju(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-oF(t))%7;return r<0&&(r+=7),r}function nF(e){return Cr(Date.now(),e)}function Rh(e){return fn(nF(e))}function Cy(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function wy(e,t){return gp(e)-gp(t)}function gp(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Hc=null;function Oi(){return Hc==null&&(Hc=new Intl.DateTimeFormat().resolvedOptions().timeZone),Hc}function xs(e){return e.subtract({days:e.day-1})}function qd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function rF(e){return xs(e.subtract({months:e.month-1}))}function Go(e,t){let n=Ju(e,t);return e.subtract({days:n})}function iF(e,t){return Go(e,t).add({days:6})}const mp=new Map;function aF(e){if(Intl.Locale){let n=mp.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&mp.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function oF(e){let t=aF(e);return t&&eF[t]||0}function Dy(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Ju(xs(e),t)+n)/7)}function Ah(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Fh(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Aa(e){e=xt(e,new gn);let t=ys(e.era,e.year);return Sy(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Sy(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function Kd(e,t){if(t==="UTC")return 0;if(e>0&&t===Oi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Ey(e,t);return Sy(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const pp=new Map;function Ey(e,t){let n=pp.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),pp.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const bp=864e5;function sF(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>lF(e,t,a))}function lF(e,t,n){let r=Ey(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function pr(e,t,n="compatible"){let r=Qr(e);if(t==="UTC")return Aa(r);if(t===Oi()&&n==="compatible"){r=xt(r,new gn);let l=new Date,u=ys(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=Aa(r),a=Kd(i-bp,t),o=Kd(i+bp,t),s=sF(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function _y(e,t,n="compatible"){return new Date(pr(e,t,n))}function Cr(e,t){let n=Kd(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Xo(i,a,o,t,n,s,l,u,c)}function fn(e){return new ut(e.calendar,e.era,e.year,e.month,e.day)}function Qr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new lu(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function xt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ni(r),r}function uF(e,t,n){if(e instanceof Xo)return e.timeZone===t?e:dF(e,t);let r=pr(e,t,n);return Cr(r,t)}function cF(e){let t=Aa(e)-e.offset;return new Date(t)}function dF(e,t){let n=Aa(e)-e.offset;return xt(Cr(n,t),e.calendar)}const Ya=36e5;function qu(e,t){let n=e.copy(),r="hour"in n?Ay(n,t):0;Qd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,ef(n),Iy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,fF(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Qd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function ef(e){for(;e.month<1;)Qd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Qd(e,1)}function fF(e){for(;e.day<1;)e.month--,ef(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,ef(e)}function Iy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ni(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Iy(e)}function Ph(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function $y(e,t){return qu(e,Ph(t))}function Th(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ni(n),n}function Zo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Ry(n),n}function hF(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Gs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Gs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Gs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Gs(e.hour,24),t}function Ry(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Gs(e,t){let n=e%t;return n<0&&(n+=t),n}function Ay(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,hF(e)}function Fy(e,t){let n=e.copy();return Ay(n,t),n}function gF(e,t){return Fy(e,Ph(t))}function kh(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=wr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Ni(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=wr(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=wr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=wr(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ni(i),i}function Mh(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=wr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=wr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=wr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=wr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function wr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Py(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=qu(Qr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=pr(i,e.timeZone)}else n=Aa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Cr(n,e.timeZone);return xt(r,e.calendar)}function mF(e,t){return Py(e,Ph(t))}function pF(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Qr(e),s=xt(Zo(o,{hour:i}),new gn),l=[pr(s,e.timeZone,"earlier"),pr(s,e.timeZone,"later")].filter(g=>Cr(g,e.timeZone).day===s.day)[0],u=xt(Zo(o,{hour:a}),new gn),c=[pr(u,e.timeZone,"earlier"),pr(u,e.timeZone,"later")].filter(g=>Cr(g,e.timeZone).day===u.day).pop(),d=Aa(e)-e.offset,h=Math.floor(d/Ya),f=d%Ya;return d=wr(h,n,Math.floor(l/Ya),Math.floor(c/Ya),r==null?void 0:r.round)*Ya+f,xt(Cr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mh(e,t,n,r);case"era":case"year":case"month":case"day":{let i=kh(Qr(e),t,n,r),a=pr(i,e.timeZone);return xt(Cr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function bF(e,t,n){let r=Qr(e),i=Zo(Th(r,t),t);if(i.compare(r)===0)return e;let a=pr(i,e.timeZone,n);return xt(Cr(a,e.timeZone),e.calendar)}const vF=/^(\d{4})-(\d{2})-(\d{2})$/;function Bh(e){let t=e.match(vF);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ut(jc(t[1],0,9999),jc(t[2],1,12),1);return n.day=jc(t[3],0,n.calendar.getDaysInMonth(n)),n}function jc(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Ty(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function ky(e){let t=xt(e,new gn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function My(e){return`${ky(e)}T${Ty(e)}`}function yF(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function xF(e){return`${My(e)}${yF(e.offset)}[${e.timeZone}]`}function CF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cs(e,t,n){CF(e,t),t.set(e,n)}function Oh(e){let t=typeof e[0]=="object"?e.shift():new gn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var wF=new WeakMap;class ut{copy(){return this.era?new ut(this.calendar,this.era,this.year,this.month,this.day):new ut(this.calendar,this.year,this.month,this.day)}add(t){return qu(this,t)}subtract(t){return $y(this,t)}set(t){return Th(this,t)}cycle(t,n,r){return kh(this,t,n,r)}toDate(t){return _y(this,t)}toString(){return ky(this)}compare(t){return Cy(this,t)}constructor(...t){Cs(this,wF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Ni(this)}}var DF=new WeakMap;class Nh{copy(){return new Nh(this.hour,this.minute,this.second,this.millisecond)}add(t){return Fy(this,t)}subtract(t){return gF(this,t)}set(t){return Zo(this,t)}cycle(t,n,r){return Mh(this,t,n,r)}toString(){return Ty(this)}compare(t){return wy(this,t)}constructor(t=0,n=0,r=0,i=0){Cs(this,DF,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Ry(this)}}var SF=new WeakMap;class lu{copy(){return this.era?new lu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new lu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return qu(this,t)}subtract(t){return $y(this,t)}set(t){return Th(Zo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return kh(this,t,n,r);default:return Mh(this,t,n,r)}}toDate(t,n){return _y(this,t,n)}toString(){return My(this)}compare(t){let n=Cy(this,t);return n===0?wy(this,Qr(t)):n}constructor(...t){Cs(this,SF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ni(this)}}var EF=new WeakMap;class Xo{copy(){return this.era?new Xo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Xo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Py(this,t)}subtract(t){return mF(this,t)}set(t,n){return bF(this,t,n)}cycle(t,n,r){return pF(this,t,n,r)}toDate(){return cF(this)}toString(){return xF(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-uF(t,this.timeZone).toDate().getTime()}constructor(...t){Cs(this,EF,{writable:!0,value:void 0});let[n,r,i,a,o]=Oh(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ni(this)}}const xa=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_F=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Il=[1867,1911,1925,1988,2018],Lr=["meiji","taisho","showa","heisei","reiwa"];function vp(e){const t=xa.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?xa.length-1:t===0?0:t-1}function Wc(e){let t=Il[Lr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ut(e.year+t,e.month,e.day)}class IF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=vp(n);return new ut(this,Lr[r],n.year-Il[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Wc(t))}balanceDate(t){let n=Wc(t),r=vp(n);Lr[r]!==t.era&&(t.era=Lr[r],t.year=n.year-Il[r]),this.constrainDate(t)}constrainDate(t){let n=Lr.indexOf(t.era),r=_F[n];if(r!=null){let[i,a,o]=r,s=i-Il[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=xa[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Lr}getYearsInEra(t){let n=Lr.indexOf(t.era),r=xa[n],i=xa[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Wc(t))}getMinimumMonthInYear(t){let n=yp(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=yp(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function yp(e){if(e.year===1){let t=Lr.indexOf(e.era);return xa[t]}}const By=-543;class $F extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ys(n.era,n.year);return new ut(this,r-By,n.month,n.day)}toJulianDay(t){return super.toJulianDay(xp(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(xp(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function xp(e){let[t,n]=Uu(e.year+By);return new ut(t,n,e.month,e.day)}const uu=1911;function Oy(e){return e.era==="minguo"?e.year+uu:1-e.year+uu}function Cp(e){let t=e-uu;return t>0?["minguo",t]:["before_minguo",1-t]}class RF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ys(n.era,n.year),[i,a]=Cp(r);return new ut(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(wp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Cp(Oy(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(wp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-uu}constructor(...t){super(...t),this.identifier="roc"}}function wp(e){let[t,n]=Uu(Oy(e));return new ut(t,n,e.month,e.day)}const Dp=1948320,Sp=[0,31,62,93,124,155,186,216,246,276,306,336];class AF{fromJulianDay(t){let n=t-Dp,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-Sp[o]+1;return new ut(this,r,o+1,s)}toJulianDay(t){let n=Dp-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Sp[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ya(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const zc=78,Ep=80;class FF extends gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-zc,i=t-Si(n.era,n.year,1,1),a;i<Ep?(r--,a=zr(n.year-1)?31:30,i+=a+155+90+10):(a=zr(n.year)?31:30,i-=Ep);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new ut(this,r,o,s)}toJulianDay(t){let n=t.year+zc,[r,i]=Uu(n),a,o;return zr(i)?(a=31,o=Si(r,i,3,21)):(a=30,o=Si(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&zr(t.year+zc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const cu=1948440,_p=1948439,wn=1300,ra=1600,PF=460322;function du(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ny(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+du(t,r,1,1)))/29.5)+1),a=n-du(t,r,i,1)+1;return new ut(e,r,i,a)}function Ip(e){return(14+11*e)%30<11}class Vh{fromJulianDay(t){return Ny(this,cu,t)}toJulianDay(t){return du(cu,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Ip(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Ip(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class TF extends Vh{fromJulianDay(t){return Ny(this,_p,t)}toJulianDay(t){return du(_p,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const kF="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let tf,Ca;function $l(e){return PF+Ca[e-wn]}function oo(e,t){let n=e-wn,r=1<<11-(t-1);return tf[n]&r?30:29}function $p(e,t){let n=$l(e);for(let r=1;r<t;r++)n+=oo(e,r);return n}function Rp(e){return Ca[e+1-wn]-Ca[e-wn]}class MF extends Vh{fromJulianDay(t){let n=t-cu,r=$l(wn),i=$l(ra);if(n<r||n>i)return super.fromJulianDay(t);{let a=wn-1,o=1,s=1;for(;s>0;){a++,s=n-$l(a)+1;let l=Rp(a);if(s===l){o=12;break}else if(s<l){let u=oo(a,o);for(o=1;s>u;)s-=u,o++,u=oo(a,o);break}}return new ut(this,a,o,n-$p(a,o)+1)}}toJulianDay(t){return t.year<wn||t.year>ra?super.toJulianDay(t):cu+$p(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<wn||t.year>ra?super.getDaysInMonth(t):oo(t.year,t.month)}getDaysInYear(t){return t.year<wn||t.year>ra?super.getDaysInYear(t):Rp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",tf||(tf=new Uint16Array(Uint8Array.from(atob(kF),t=>t.charCodeAt(0)).buffer)),!Ca){Ca=new Uint32Array(ra-wn+1);let t=0;for(let n=wn;n<=ra;n++){Ca[n-wn]=t;for(let r=1;r<=12;r++)t+=oo(n,r)}}}}const Ap=347997,Vy=1080,Ly=24*Vy,BF=29,OF=12*Vy+793,NF=BF*Ly+OF;function xi(e){return ya(e*7+1,19)<7}function Rl(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ya(3*(r+1),7)<3&&(r+=1),r}function VF(e){let t=Rl(e-1),n=Rl(e);return Rl(e+1)-n===356?2:n-t===382?1:0}function xo(e){return Rl(e)+VF(e)}function Hy(e){return xo(e+1)-xo(e)}function LF(e){let t=Hy(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Zs(e,t){if(t>=6&&!xi(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=LF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?xi(e)?30:0:30}class HF{fromJulianDay(t){let n=t-Ap,r=n*Ly/NF,i=Math.floor((19*r+234)/235)+1,a=xo(i),o=Math.floor(n-a);for(;o<1;)i--,a=xo(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Zs(i,s),s++;s--,l-=Zs(i,s);let u=o-l;return new ut(this,i,s,u)}toJulianDay(t){let n=xo(t.year);for(let r=1;r<t.month;r++)n+=Zs(t.year,r);return n+t.day+Ap}getDaysInMonth(t){return Zs(t.year,t.month)}getMonthsInYear(t){return xi(t.year)?13:12}getDaysInYear(t){return Hy(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(xi(n.year)&&!xi(t.year)&&n.month>6?t.month--:!xi(n.year)&&xi(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const nf=1723856,Fp=1824665,rf=5500;function fu(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Lh(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-fu(e,n,1,1))/30),i=t+1-fu(e,n,r,1);return[n,r,i]}function jy(e){return Math.floor(e%4/3)}function Wy(e,t){return t%13!==0?30:jy(e)+5}class Hh{fromJulianDay(t){let[n,r,i]=Lh(nf,t),a="AM";return n<=0&&(a="AA",n+=rf),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=rf),fu(nf,n,t.month,t.day)}getDaysInMonth(t){return Wy(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+jy(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class jF extends Hh{fromJulianDay(t){let[n,r,i]=Lh(nf,t);return n+=rf,new ut(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class WF extends Hh{fromJulianDay(t){let[n,r,i]=Lh(Fp,t),a="CE";return n<=0&&(a="BCE",n=1-n),new ut(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),fu(Fp,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Wy(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function ws(e){switch(e){case"buddhist":return new $F;case"ethiopic":return new Hh;case"ethioaa":return new jF;case"coptic":return new WF;case"hebrew":return new HF;case"indian":return new FF;case"islamic-civil":return new Vh;case"islamic-tbla":return new TF;case"islamic-umalqura":return new MF;case"japanese":return new IF;case"persian":return new AF;case"roc":return new RF;case"gregory":default:return new gn}}let Gc=new Map;class Yo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ZF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=XF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=zy(t,n),this.options=n}}const zF={true:{ja:"h11"},false:{}};function zy(e,t={}){if(typeof t.hour12=="boolean"&&GF()){t={...t};let i=zF[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Gc.has(n))return Gc.get(n);let r=new Intl.DateTimeFormat(e,t);return Gc.set(n,r),r}let Zc=null;function GF(){return Zc==null&&(Zc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Zc}let Xc=null;function ZF(){return Xc==null&&(Xc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Xc}function XF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=zy(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Gi=typeof document<"u"?C.useLayoutEffect:()=>{};function br(e){const t=C.useRef(null);return Gi(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function YF(e){let[t,n]=C.useState(e),r=C.useRef(null),i=br(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Gi(()=>{r.current&&i()});let a=br(o=>{r.current=o(t),i()});return[t,a]}const hu={prefix:String(Math.round(Math.random()*1e10)),current:0},Gy=C.createContext(hu),UF=C.createContext(!1);let JF=!!(typeof window<"u"&&window.document&&window.document.createElement),Yc=new WeakMap;function qF(e=!1){let t=C.useContext(Gy),n=C.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=Yc.get(a);o==null?Yc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,Yc.delete(a))}n.current=++t.current}return n.current}function KF(e){let t=C.useContext(Gy);t===hu&&!JF&&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=qF(!!e),r=t===hu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function QF(e){let t=C.useId(),[n]=C.useState(Zy()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${hu.prefix}`;return e||`${r}-${t}`}const e7=typeof C.useId=="function"?QF:KF;function t7(){return!1}function n7(){return!0}function r7(e){return()=>{}}function Zy(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(r7,t7,n7):C.useContext(UF)}let i7=!!(typeof window<"u"&&window.document&&window.document.createElement),gu=new Map;function Fa(e){let[t,n]=C.useState(e),r=C.useRef(null),i=e7(t),a=C.useCallback(o=>{r.current=o},[]);return i7&&gu.set(i,a),Gi(()=>{let o=i;return()=>{gu.delete(o)}},[i]),C.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function a7(e,t){if(e===t)return e;let n=gu.get(e);if(n)return n(t),t;let r=gu.get(t);return r?(r(e),e):t}function af(e=[]){let t=Fa(),[n,r]=YF(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Gi(i,[t,i,...e]),n}function Xy(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function en(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Xy(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=yr(a,o):i==="id"&&a&&o?t.id=a7(a,o):t[i]=o!==void 0?o:a}}return t}const o7=new Set(["id"]),s7=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l7=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),u7=/^(data-.*)$/;function jh(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(o7.has(o)||n&&s7.has(o)||r&&l7.has(o)||i!=null&&i.has(o)||u7.test(o))&&(a[o]=e[o]);return a}function Gr(e){if(c7())e.focus({preventScroll:!0});else{let t=d7(e);e.focus(),f7(t)}}let Xs=null;function c7(){if(Xs==null){Xs=!1;try{document.createElement("div").focus({get preventScroll(){return Xs=!0,!0}})}catch{}}return Xs}function d7(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function f7(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ku(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Wh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Uo(){return Wh(/^Mac/i)}function h7(){return Wh(/^iPhone/i)}function Yy(){return Wh(/^iPad/i)||Uo()&&navigator.maxTouchPoints>1}function Uy(){return h7()||Yy()}function g7(){return Ku(/AppleWebKit/i)&&!m7()}function m7(){return Ku(/Chrome/i)}function Jy(){return Ku(/Android/i)}function p7(){return Ku(/Firefox/i)}function Jo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;p7()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Uo()?a=!0:o=!0);let u=g7()&&Uo()&&!Yy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Jo.isOpening=n,Gr(e),e.dispatchEvent(u),Jo.isOpening=!1}Jo.isOpening=!1;let da=new Map,of=new Set;function Pp(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=da.get(r.target);i||(i=new Set,da.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=da.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),da.delete(r.target)),da.size===0)){for(let a of of)a();of.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pp():document.addEventListener("DOMContentLoaded",Pp));function qy(e){requestAnimationFrame(()=>{da.size===0?e():of.add(e)})}function b7(){let e=C.useRef(new Map),t=C.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=C.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=C.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zh(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Fa(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Tp(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Ky(e,t){Gi(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function sf(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function v7(e,t){let n=e;for(sf(n,t)&&(n=n.parentElement);n&&!sf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function y7(e,t){const n=[];for(;e&&e!==document.documentElement;)sf(e,t)&&n.push(e),e=e.parentElement;return n}let x7=0;const Uc=new Map;function Qy(e){let[t,n]=C.useState();return Gi(()=>{if(!e)return;let r=Uc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${x7++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Uc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Uc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Jc(e,t,n,r){let i=br(n),a=n==null;C.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function C7(e,t){let n=kp(e,t,"left"),r=kp(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function kp(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function w7(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=y7(e);for(let u of l)C7(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function lf(e){return e.mozInputSource===0&&e.isTrusted?!0:Jy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function D7(e){return!Jy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ex(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function qo(e,t,n){let[r,i]=C.useState(e||t),a=C.useRef(e!==void 0),o=e!==void 0;C.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=C.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(o?s:f,...g);return d(m,...c),o?f:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let ha="default",uf="",Al=new WeakMap;function Mp(e){if(Uy()){if(ha==="default"){const t=At(e);uf=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ha="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Al.set(e,e.style.userSelect),e.style.userSelect="none")}function Ys(e){if(Uy()){if(ha!=="disabled")return;ha="restoring",setTimeout(()=>{qy(()=>{if(ha==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uf||""),uf="",ha="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Al.has(e)){let t=Al.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Al.delete(e)}}const tx=C.createContext({register:()=>{}});tx.displayName="PressResponderContext";function S7(e,t){return t.get?t.get.call(e):t.value}function nx(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function E7(e,t){var n=nx(e,t,"get");return S7(e,n)}function _7(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bp(e,t,n){var r=nx(e,t,"set");return _7(e,r,n),n}function I7(e){let t=C.useContext(tx);if(t){let{register:n,...r}=t;e=en(r,e),n()}return Ky(t,e.ref),e}var Us=new WeakMap;class Js{continuePropagation(){Bp(this,Us,!1)}get shouldStopPropagation(){return E7(this,Us)}constructor(t,n,r){Cs(this,Us,{writable:!0,value:void 0}),Bp(this,Us,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Op=Symbol("linkClicked");function Gh(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=I7(e),[f,g]=C.useState(!1),m=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:y}=b7(),b=br((p,D)=>{let $=m.current;if(o||$.didFirePressStart)return!1;let I=!0;if($.isTriggeringEvent=!0,r){let A=new Js("pressstart",D,p);r(A),I=A.shouldStopPropagation}return n&&n(!0),$.isTriggeringEvent=!1,$.didFirePressStart=!0,g(!0),I}),x=br((p,D,$=!0)=>{let I=m.current;if(!I.didFirePressStart)return!1;I.ignoreClickAfterPress=!0,I.didFirePressStart=!1,I.isTriggeringEvent=!0;let A=!0;if(i){let k=new Js("pressend",D,p);i(k),A=k.shouldStopPropagation}if(n&&n(!1),g(!1),t&&$&&!o){let k=new Js("press",D,p);t(k),A&&(A=k.shouldStopPropagation)}return I.isTriggeringEvent=!1,A}),S=br((p,D)=>{let $=m.current;if(o)return!1;if(a){$.isTriggeringEvent=!0;let I=new Js("pressup",D,p);return a(I),$.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),w=br(p=>{let D=m.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&x(lr(D.target,p),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,y(),c||Ys(D.target))}),_=br(p=>{u&&w(p)}),F=C.useMemo(()=>{let p=m.current,D={onKeyDown(I){if(qc(I.nativeEvent,I.currentTarget)&&I.currentTarget.contains(I.target)){var A;Vp(I.target,I.key)&&I.preventDefault();let k=!0;if(!p.isPressed&&!I.repeat){p.target=I.currentTarget,p.isPressed=!0,k=b(I,"keyboard");let R=I.currentTarget,M=T=>{qc(T,R)&&!T.repeat&&R.contains(T.target)&&p.target&&S(lr(p.target,T),"keyboard")};v(At(I.currentTarget),"keyup",Xy(M,$),!0)}k&&I.stopPropagation(),I.metaKey&&Uo()&&((A=p.metaKeyEvents)===null||A===void 0||A.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(I){if(!(I&&!I.currentTarget.contains(I.target))&&I&&I.button===0&&!p.isTriggeringEvent&&!Jo.isOpening){let A=!0;if(o&&I.preventDefault(),!p.ignoreClickAfterPress&&!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||lf(I.nativeEvent))){!o&&!l&&Gr(I.currentTarget);let k=b(I,"virtual"),R=S(I,"virtual"),M=x(I,"virtual");A=k&&R&&M}p.ignoreEmulatedMouseEvents=!1,p.ignoreClickAfterPress=!1,A&&I.stopPropagation()}}},$=I=>{var A;if(p.isPressed&&p.target&&qc(I,p.target)){var k;Vp(I.target,I.key)&&I.preventDefault();let M=I.target;x(lr(p.target,I),"keyboard",p.target.contains(M)),y(),I.key!=="Enter"&&Zh(p.target)&&p.target.contains(M)&&!I[Op]&&(I[Op]=!0,Jo(p.target,I,!1)),p.isPressed=!1,(k=p.metaKeyEvents)===null||k===void 0||k.delete(I.key)}else if(I.key==="Meta"&&(!((A=p.metaKeyEvents)===null||A===void 0)&&A.size)){var R;let M=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let T of M.values())(R=p.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){D.onPointerDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(D7(R.nativeEvent)){p.pointerType="virtual";return}Kc(R.currentTarget)&&R.preventDefault(),p.pointerType=R.pointerType;let M=!0;p.isPressed||(p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=R.pointerId,p.target=R.currentTarget,!o&&!l&&Gr(R.currentTarget),c||Mp(p.target),M=b(R,p.pointerType),v(At(R.currentTarget),"pointermove",I,!1),v(At(R.currentTarget),"pointerup",A,!1),v(At(R.currentTarget),"pointercancel",k,!1)),M&&R.stopPropagation()},D.onMouseDown=R=>{R.currentTarget.contains(R.target)&&R.button===0&&(Kc(R.currentTarget)&&R.preventDefault(),R.stopPropagation())},D.onPointerUp=R=>{!R.currentTarget.contains(R.target)||p.pointerType==="virtual"||R.button===0&&ia(R,R.currentTarget)&&S(R,p.pointerType||R.pointerType)};let I=R=>{R.pointerId===p.activePointerId&&(p.target&&ia(R,p.target)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,b(lr(p.target,R),p.pointerType)):p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,x(lr(p.target,R),p.pointerType,!1),_(R)))},A=R=>{R.pointerId===p.activePointerId&&p.isPressed&&R.button===0&&p.target&&(ia(R,p.target)&&p.pointerType!=null?x(lr(p.target,R),p.pointerType):p.isOverTarget&&p.pointerType!=null&&x(lr(p.target,R),p.pointerType,!1),p.isPressed=!1,p.isOverTarget=!1,p.activePointerId=null,p.pointerType=null,y(),c||Ys(p.target))},k=R=>{w(R)};D.onDragStart=R=>{R.currentTarget.contains(R.target)&&w(R)}}else{D.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(Kc(k.currentTarget)&&k.preventDefault(),p.ignoreEmulatedMouseEvents){k.stopPropagation();return}p.isPressed=!0,p.isOverTarget=!0,p.target=k.currentTarget,p.pointerType=lf(k.nativeEvent)?"virtual":"mouse",!o&&!l&&Gr(k.currentTarget),b(k,p.pointerType)&&k.stopPropagation(),v(At(k.currentTarget),"mouseup",I,!1)},D.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,R=b(k,p.pointerType)),R&&k.stopPropagation()},D.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let R=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,R=x(k,p.pointerType,!1),_(k)),R&&k.stopPropagation()},D.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!p.ignoreEmulatedMouseEvents&&k.button===0&&S(k,p.pointerType||"mouse")};let I=k=>{if(k.button===0){if(p.isPressed=!1,y(),p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&ia(k,p.target)&&p.pointerType!=null?x(lr(p.target,k),p.pointerType):p.target&&p.isOverTarget&&p.pointerType!=null&&x(lr(p.target,k),p.pointerType,!1),p.isOverTarget=!1}};D.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let R=$7(k.nativeEvent);if(!R)return;p.activePointerId=R.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=k.currentTarget,p.pointerType="touch",!o&&!l&&Gr(k.currentTarget),c||Mp(p.target),b(k,p.pointerType)&&k.stopPropagation(),v(Fn(k.currentTarget),"scroll",A,!0)},D.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=Np(k.nativeEvent,p.activePointerId),M=!0;R&&ia(R,k.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,M=b(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,M=x(k,p.pointerType,!1),_(k)),M&&k.stopPropagation()},D.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!p.isPressed){k.stopPropagation();return}let R=Np(k.nativeEvent,p.activePointerId),M=!0;R&&ia(R,k.currentTarget)&&p.pointerType!=null?(S(k,p.pointerType),M=x(k,p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(M=x(k,p.pointerType,!1)),M&&k.stopPropagation(),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!c&&Ys(p.target),y()},D.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),p.isPressed&&w(k))};let A=k=>{p.isPressed&&k.target.contains(p.target)&&w({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=k=>{k.currentTarget.contains(k.target)&&w(k)}}return D},[v,o,l,y,c,w,_,x,b,S]);return C.useEffect(()=>()=>{var p;c||Ys((p=m.current.target)!==null&&p!==void 0?p:void 0)},[c]),{isPressed:s||f,pressProps:en(h,F)}}function Zh(e){return e.tagName==="A"&&e.hasAttribute("href")}function qc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!rx(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Zh(i))&&n!=="Enter")}function $7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Np(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function lr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function R7(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function A7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ia(e,t){let n=t.getBoundingClientRect(),r=R7(e);return A7(n,r)}function Kc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Vp(e,t){return e instanceof HTMLInputElement?!rx(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zh(e)}const F7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rx(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":F7.has(e.type)}class P7{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function ix(e){let t=C.useRef({isFocused:!1,observer:null});Gi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=br(r=>{e==null||e(r)});return C.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new P7("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ax(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=ix(a),s=C.useCallback(l=>{const u=At(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let ja=null,cf=new Set,Co=new Map,Vi=!1,df=!1;const T7={Tab:!0,Escape:!0};function Xh(e,t){for(let n of cf)n(e,t)}function k7(e){return!(e.metaKey||!Uo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function mu(e){Vi=!0,k7(e)&&(ja="keyboard",Xh("keyboard",e))}function Dn(e){ja="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Vi=!0,Xh("pointer",e))}function ox(e){lf(e)&&(Vi=!0,ja="virtual")}function sx(e){e.target===window||e.target===document||(!Vi&&!df&&(ja="virtual",Xh("virtual",e)),Vi=!1,df=!1)}function lx(){Vi=!1,df=!0}function ff(e){if(typeof window>"u"||Co.get(Fn(e)))return;const t=Fn(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Vi=!0,r.apply(this,arguments)},n.addEventListener("keydown",mu,!0),n.addEventListener("keyup",mu,!0),n.addEventListener("click",ox,!0),t.addEventListener("focus",sx,!0),t.addEventListener("blur",lx,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dn,!0),n.addEventListener("pointermove",Dn,!0),n.addEventListener("pointerup",Dn,!0)):(n.addEventListener("mousedown",Dn,!0),n.addEventListener("mousemove",Dn,!0),n.addEventListener("mouseup",Dn,!0)),t.addEventListener("beforeunload",()=>{ux(e)},{once:!0}),Co.set(t,{focus:r})}const ux=(e,t)=>{const n=Fn(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),Co.has(n)&&(n.HTMLElement.prototype.focus=Co.get(n).focus,r.removeEventListener("keydown",mu,!0),r.removeEventListener("keyup",mu,!0),r.removeEventListener("click",ox,!0),n.removeEventListener("focus",sx,!0),n.removeEventListener("blur",lx,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dn,!0),r.removeEventListener("pointermove",Dn,!0),r.removeEventListener("pointerup",Dn,!0)):(r.removeEventListener("mousedown",Dn,!0),r.removeEventListener("mousemove",Dn,!0),r.removeEventListener("mouseup",Dn,!0)),Co.delete(n))};function M7(e){const t=At(e);let n;return t.readyState!=="loading"?ff(e):(n=()=>{ff(e)},t.addEventListener("DOMContentLoaded",n)),()=>ux(e,n)}typeof document<"u"&&M7();function cx(){return ja!=="pointer"}function dx(){return ja}const B7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O7(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!B7.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!T7[n.key])}function N7(e,t,n){ff(),C.useEffect(()=>{let r=(i,a)=>{O7(!!(n!=null&&n.isTextInput),i,a)&&e(cx())};return cf.add(r),()=>{cf.delete(r)}},t)}function fx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=C.useRef({isFocusWithin:!1}),o=C.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=ix(o),l=C.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function Lp(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function V7(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lp(e.onKeyDown),onKeyUp:Lp(e.onKeyUp)}}}function hx(e){const t=At(e);if(dx()==="virtual"){let n=t.activeElement;qy(()=>{t.activeElement===n&&e.isConnected&&Gr(e)})}else Gr(e)}function L7(e){const t=Fn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function H7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function gx(e,t){return e.nodeName!=="#comment"&&L7(e)&&H7(e,t)&&(!e.parentElement||gx(e.parentElement,e))}const Yh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],j7=Yh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const W7=Yh.join(':not([hidden]):not([tabindex="-1"]),');function mx(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ua(e,t=!1){if(e!=null&&!t)try{hx(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function so(e,t,n){let r=t!=null&&t.tabbable?W7:j7,i=At(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&gx(a)&&(!n||mx(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function px(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=so(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Ua(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||At(r).activeElement,u=so(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=Qc(u);return d&&Ua(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=Qc(u);if(!d)return null;c=d}return c&&Ua(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=so(r,{tabbable:i,accept:a}).nextNode();return s&&Ua(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=so(r,{tabbable:i,accept:a}),s=Qc(o);return s&&Ua(s,!0),s??null}}}function Qc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Uh{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Hp({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&mx(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uh;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Hp({scopeRef:null}),this.fastMap.set(null,this.root)}}class Hp{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Uh;function bx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=C.useRef({isFocused:!1,isFocusVisible:t||cx()}),[a,o]=C.useState(!1),[s,l]=C.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=C.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=C.useCallback(f=>{i.current.isFocused=f,o(f),u()},[u]);N7(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=ax({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=fx({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let z7=C.createContext(null);function G7(e){let t=C.useContext(z7)||{};Ky(t,e);let{ref:n,...r}=t;return r}function Z7(e,t){let{focusProps:n}=ax(e),{keyboardProps:r}=V7(e),i=en(n,r),a=G7(t),o=e.isDisabled?{}:a,s=C.useRef(e.autoFocus);return C.useEffect(()=>{s.current&&t.current&&hx(t.current),s.current=!1},[t]),{focusableProps:en({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const X7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Y7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vx(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return X7.has(n.script)}let t=e.split("-")[0];return Y7.has(t)}const U7=Symbol.for("react-aria.i18n.locale");function yx(){let e=typeof window<"u"&&window[U7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:vx(e)?"rtl":"ltr"}}let hf=yx(),lo=new Set;function jp(){hf=yx();for(let e of lo)e(hf)}function xx(){let e=Zy(),[t,n]=C.useState(hf);return C.useEffect(()=>(lo.size===0&&window.addEventListener("languagechange",jp),lo.add(n),()=>{lo.delete(n),lo.size===0&&window.removeEventListener("languagechange",jp)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Cx=C.createContext(null);function Jh(e){let{locale:t,children:n}=e,r=xx(),i=C.useMemo(()=>t?{locale:t,direction:vx(t)?"rtl":"ltr"}:r,[r,t]);return C.createElement(Cx.Provider,{value:i},n)}function Nn(){let e=xx();return C.useContext(Cx)||e}const J7=Symbol.for("react-aria.i18n.locale"),q7=Symbol.for("react-aria.i18n.strings");let aa;class Zi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=K7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[J7];if(aa===void 0){let i=window[q7];if(!i)return null;aa={};for(let a in i)aa[a]=new Zi({[n]:i[a]},n)}let r=aa==null?void 0:aa[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function K7(e,t,n="en-US"){if(t[e])return t[e];let r=Q7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Q7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Wp=new Map,zp=new Map;class wx{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Wp.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Wp.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=zp.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zp.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Gp=new WeakMap;function eP(e){let t=Gp.get(e);return t||(t=new Zi(e),Gp.set(e,t)),t}function tP(e,t){return t&&Zi.getGlobalDictionaryForPackage(t)||eP(e)}function Ds(e,t){let{locale:n}=Nn(),r=tP(e,t);return C.useMemo(()=>new wx(n,r),[n,r])}function ei(e){e=ex(e??{},nP);let{locale:t}=Nn();return C.useMemo(()=>new Yo(t,e),[t,e])}function nP(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function rP(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,v;n==="button"?v={type:m,disabled:r}:v={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:y,isPressed:b}=Gh({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:x}=Z7(e,t);c&&(x.tabIndex=r?-1:x.tabIndex);let S=en(x,y,jh(e,{labelable:!0}));return{isPressed:b,buttonProps:en(v,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:w=>{d&&(d(w),console.warn("onClick is deprecated, please use onPress"))}})}}var Dx={};Dx={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Sx={};Sx={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Ex={};Ex={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var _x={};_x={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Ix={};Ix={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var $x={};$x={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Rx={};Rx={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Ax={};Ax={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Fx={};Fx={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Px={};Px={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Tx={};Tx={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var kx={};kx={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Mx={};Mx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var Bx={};Bx={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Ox={};Ox={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var Nx={};Nx={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Vx={};Vx={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Lx={};Lx={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Hx={};Hx={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var jx={};jx={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Wx={};Wx={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zx={};zx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Gx={};Gx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Zx={};Zx={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Xx={};Xx={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Yx={};Yx={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Ux={};Ux={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Jx={};Jx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var qx={};qx={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var Kx={};Kx={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Qx={};Qx={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var e4={};e4={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var t4={};t4={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var n4={};n4={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Ss={};Ss={"ar-AE":Dx,"bg-BG":Sx,"cs-CZ":Ex,"da-DK":_x,"de-DE":Ix,"el-GR":$x,"en-US":Rx,"es-ES":Ax,"et-EE":Fx,"fi-FI":Px,"fr-FR":Tx,"he-IL":kx,"hr-HR":Mx,"hu-HU":Bx,"it-IT":Ox,"ja-JP":Nx,"ko-KR":Vx,"lt-LT":Lx,"lv-LV":Hx,"nb-NO":jx,"nl-NL":Wx,"pl-PL":zx,"pt-BR":Gx,"pt-PT":Zx,"ro-RO":Xx,"ru-RU":Yx,"sk-SK":Ux,"sl-SI":Jx,"sr-SP":qx,"sv-SE":Kx,"tr-TR":Qx,"uk-UA":e4,"zh-CN":t4,"zh-TW":n4};function r4(e){return e&&e.__esModule?e.default:e}const qh=new WeakMap;function Ko(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function iP(e){let t=Ds(r4(Ss),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=ei({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ko(n)||Ko(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!a&&n&&r)if(gt(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=mf(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function gf(e,t,n,r){let i=Ds(r4(Ss),"@react-aria/calendar"),a=Ko(e)||Ko(t),o=ei({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=ei({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(gt(e,xs(e))){if(gt(t,qd(e)))return o.format(e.toDate(n));if(gt(t,qd(t)))return r?mf(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?mf(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function mf(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const i4=7e3;let ed=null;function Zp(e,t="assertive",n=i4){ed||(ed=new aP),ed.announce(e,t,n)}class aP{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=i4){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function oP(e){return e&&e.__esModule?e.default:e}function a4(e,t){let n=Ds(oP(Ss),"@react-aria/calendar"),r=jh(e),i=gf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=gf(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tp(()=>{t.isFocused||Zp(a)},[a]);let o=iP(t);Tp(()=>{o&&Zp(o,"polite",4e3)},[o]);let s=af([!!e.errorMessage,e.isInvalid,e.validationState]);qh.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=C.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=C.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=zh({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:en(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function o4(e,t){return a4(e,t)}function sP(e,t,n){let r=a4(e,t),i=C.useRef(!1),a=C.useRef(typeof window<"u"?window:null);return Jc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Jc(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Jc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function s4(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Nn(),a=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},o=gf(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=qh.get(t),u=zh({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=ei({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Nn(),h=C.useMemo(()=>{let f=Go(Rh(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let v=f.add({days:g}).toDate(t.timeZone);return c.format(v)})},[d,t.timeZone,c]);return{gridProps:en(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function lP(e){return e&&e.__esModule?e.default:e}function uP(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=qh.get(t),s=Ds(lP(Ss),"@react-aria/calendar"),l=ei({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ko(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&>(t.value,r));f&&(u=!0),r=ex(r,Jd);let g=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=tF(r,t.timeZone),v=C.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(gt(r,t.value.start)||gt(r,t.value.end))&&(I=o+", "),I+=l.format(g),m?I=s.format(u?"todayDateSelected":"todayDate",{date:I}):u&&(I=s.format("dateSelected",{date:I})),t.minValue&>(r,t.minValue)?I+=", "+s.format("minimumDate"):t.maxValue&>(r,t.maxValue)&&(I+=", "+s.format("maximumDate")),I},[l,g,s,u,m,r,t,o]),y="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?y=s.format("finishRangeSelectionPrompt"):y=s.format("startRangeSelectionPrompt"));let b=Qy(y),x=C.useRef(!1),S=C.useRef(!1),w=C.useRef(null),{pressProps:_,isPressed:F}=Gh({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.pointerType==="touch")){if(t.highlightedRange&&!f){if(gt(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(gt(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let A=()=>{t.setDragging(!0),w.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};I.pointerType==="touch"?w.current=setTimeout(A,200):A()}},onPressEnd(){S.current=!1,x.current=!1,clearTimeout(w.current),w.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),p=null;i||(p=gt(r,t.focusedDate)?0:-1),C.useEffect(()=>{c&&n.current&&(Gr(n.current),dx()!=="pointer"&&document.activeElement===n.current&&w7(n.current,{containingElement:v7(n.current)}))},[c,n]);let D=ei({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),$=C.useMemo(()=>D.formatToParts(g).find(I=>I.type==="day").value,[D,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:en(_,{onFocus(){i||t.setFocusedDate(r)},tabIndex:p,role:"button","aria-disabled":!h||null,"aria-label":v,"aria-invalid":f||null,"aria-describedby":[f?a:null,b["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.preventDefault()}}),isPressed:F,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:$}}const Qu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l4={...Qu,customError:!0,valid:!1},Ci={isInvalid:!1,validationDetails:Qu,validationErrors:[]},cP=C.createContext({}),pu="__formValidationState"+Date.now();function dP(e){if(e[pu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[pu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return fP(e)}function fP(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:l4}:null,u=C.useMemo(()=>Xp(hP(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=C.useContext(cP),d=C.useMemo(()=>r?Array.isArray(r)?r.flatMap($=>pf(c[$])):pf(c[r]):[],[c,r]),[h,f]=C.useState(c),[g,m]=C.useState(!1);c!==h&&(f(c),m(!1));let v=C.useMemo(()=>Xp(g?[]:d),[g,d]),y=C.useRef(Ci),[b,x]=C.useState(Ci),S=C.useRef(Ci),w=()=>{if(!_)return;F(!1);let $=u||a||y.current;td($,S.current)||(S.current=$,x($))},[_,F]=C.useState(!1);return C.useEffect(w),{realtimeValidation:l||v||u||a||Ci,displayValidation:s==="native"?l||v||b:l||v||u||a||b,updateValidation($){s==="aria"&&!td(b,$)?x($):y.current=$},resetValidation(){let $=Ci;td($,S.current)||(S.current=$,x($)),s==="native"&&F(!1),m(!0)},commitValidation(){s==="native"&&F(!0),m(!0)}}}function pf(e){return e?Array.isArray(e)?e:[e]:[]}function hP(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return pf(n)}return[]}function Xp(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l4}:null}function td(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function bu(...e){let t=new Set,n=!1,r={...Qu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function gP(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Fa(t);let o=Fa(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zh({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function mP(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=gP(e),s=af([!!t,!!n,r,i]),l=af([!!t,!!n,r,i]);return o=en(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var u4={};u4={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var c4={};c4={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var d4={};d4={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var f4={};f4={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var h4={};h4={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var g4={};g4={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var m4={};m4={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var p4={};p4={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var b4={};b4={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var v4={};v4={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var y4={};y4={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var x4={};x4={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var C4={};C4={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var w4={};w4={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var D4={};D4={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var S4={};S4={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var E4={};E4={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var _4={};_4={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var I4={};I4={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var $4={};$4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var R4={};R4={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var A4={};A4={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var F4={};F4={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var P4={};P4={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var T4={};T4={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var k4={};k4={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var M4={};M4={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var B4={};B4={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var O4={};O4={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var N4={};N4={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var V4={};V4={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var L4={};L4={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var H4={};H4={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var j4={};j4={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var W4={};W4={"ar-AE":u4,"bg-BG":c4,"cs-CZ":d4,"da-DK":f4,"de-DE":h4,"el-GR":g4,"en-US":m4,"es-ES":p4,"et-EE":b4,"fi-FI":v4,"fr-FR":y4,"he-IL":x4,"hr-HR":C4,"hu-HU":w4,"it-IT":D4,"ja-JP":S4,"ko-KR":E4,"lt-LT":_4,"lv-LV":I4,"nb-NO":$4,"nl-NL":R4,"pl-PL":A4,"pt-BR":F4,"pt-PT":P4,"ro-RO":T4,"ru-RU":k4,"sk-SK":M4,"sl-SI":B4,"sr-SP":O4,"sv-SE":N4,"tr-TR":V4,"uk-UA":L4,"zh-CN":H4,"zh-TW":j4};function pP(e,t,n){let{direction:r}=Nn(),i=C.useMemo(()=>px(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=so(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=Gh({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return en(s,{onKeyDown:a})}const bP="__role_"+Date.now(),vP="__focusManager_"+Date.now();function yP(e){return e&&e.__esModule?e.default:e}function xP(e,t,n){var r,i;let a=Ds(yP(W4),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=mP({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=Nn(),m=t.formatValue(g,{month:"long"}),v=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",y=Qy(v),b={"aria-label":a.format("startDate"),"aria-labelledby":f},x={"aria-label":a.format("endDate"),"aria-labelledby":f},S=Fa(),w=Fa(),_=pP(t,n),F=[y["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,p=C.useMemo(()=>px(n,{accept:R=>R.id!==S}),[n,S]),D={[vP]:p,[bP]:"presentation","aria-describedby":F,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},$=jh(e),{focusWithinProps:I}=fx({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),A=C.useRef(Ci),k=C.useRef(Ci);return{groupProps:en($,_,c,y,I,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...u,onClick:()=>{p.focusFirst()}},buttonProps:{...y,id:S,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${S} ${f}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${S} ${f}`},startFieldProps:{...b,...D,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){A.current=R,t.updateValidation(bu(R,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...x,...D,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:R=>t.setDateTime("end",R),name:e.endName,[pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){k.current=R,t.updateValidation(bu(A.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:s,validationDetails:l}}function wa(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function bf(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=Ei(e,t,n).subtract(a);return Qo(e,o,t,n,r,i)}function Ei(e,t,n,r,i){let a=e;return t.years?a=rF(e):t.months?a=xs(e):t.weeks&&(a=Go(e,n)),Qo(e,a,t,n,r,i)}function vf(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=Ei(e,t,n).subtract(a);return Qo(e,o,t,n,r,i)}function Qo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Fh(t,Ei(fn(i),n,r))),a&&e.compare(a)<=0&&(t=Ah(t,vf(fn(a),n,r))),t}function Vr(e,t,n){return t&&(e=Fh(e,fn(t))),n&&(e=Ah(e,fn(n))),e}function z4(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function G4(e){let t=C.useMemo(()=>new Yo(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=C.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=qo(e.value,e.defaultValue,e.onChange),g=C.useMemo(()=>h?xt(fn(h),d):null,[h,d]),m=C.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),v=C.useMemo(()=>e.focusedValue?Vr(xt(fn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),y=C.useMemo(()=>Vr(e.defaultFocusedValue?xt(fn(e.defaultFocusedValue),d):g||xt(Rh(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[b,x]=qo(v,y,e.onFocusChange),[S,w]=C.useState(()=>{switch(l){case"start":return Ei(b,a,r,o,s);case"end":return vf(b,a,r,o,s);case"center":default:return bf(b,a,r,o,s)}}),[_,F]=C.useState(e.autoFocus||!1),p=C.useMemo(()=>{let P={...a};return P.days?P.days--:P.days=-1,S.add(P)},[S,a]),[D,$]=C.useState(d.identifier);if(d.identifier!==D){let P=xt(b,d);w(bf(P,a,r,o,s)),x(P),$(d.identifier)}wa(b,o,s)?x(Vr(b,o,s)):b.compare(S)<0?w(vf(b,a,r,o,s)):b.compare(p)>0&&w(Ei(b,a,r,o,s));function I(P){P=Vr(P,o,s),x(P)}function A(P){if(!e.isDisabled&&!e.isReadOnly){if(P===null){f(null);return}if(P=Vr(P,o,s),P=z4(P,S,u),!P)return;P=xt(P,(h==null?void 0:h.calendar)||new gn),h&&"hour"in h?f(h.set(P)):f(P)}}let k=C.useMemo(()=>g?u&&u(g)?!0:wa(g,o,s):!1,[g,u,o,s]),R=e.isInvalid||e.validationState==="invalid"||k,M=R?"invalid":null,T=C.useMemo(()=>c==="visible"?a:nd(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:A,visibleRange:{start:S,end:p},minValue:o,maxValue:s,focusedDate:b,timeZone:m,validationState:M,isValueInvalid:R,setFocusedDate(P){I(P),F(!0)},focusNextDay(){I(b.add({days:1}))},focusPreviousDay(){I(b.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&I(b.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&I(b.subtract({weeks:1}))},focusNextPage(){let P=S.add(T);x(Vr(b.add(T),o,s)),w(Ei(Qo(b,P,T,r,o,s),T,r))},focusPreviousPage(){let P=S.subtract(T);x(Vr(b.subtract(T),o,s)),w(Ei(Qo(b,P,T,r,o,s),T,r))},focusSectionStart(){a.days?I(S):a.weeks?I(Go(b,r)):(a.months||a.years)&&I(xs(b))},focusSectionEnd(){a.days?I(p):a.weeks?I(iF(b,r)):(a.months||a.years)&&I(qd(b))},focusNextSection(P){if(!P&&!a.days){I(b.add(nd(a)));return}a.days?this.focusNextPage():a.weeks?I(b.add({months:1})):(a.months||a.years)&&I(b.add({years:1}))},focusPreviousSection(P){if(!P&&!a.days){I(b.subtract(nd(a)));return}a.days?this.focusPreviousPage():a.weeks?I(b.subtract({months:1})):(a.months||a.years)&&I(b.subtract({years:1}))},selectFocusedDate(){A(b)},selectDate(P){A(P)},isFocused:_,setFocused:F,isInvalid(P){return wa(P,o,s)},isSelected(P){return g!=null&>(P,g)&&!this.isCellDisabled(P)&&!this.isCellUnavailable(P)},isCellFocused(P){return _&&b&>(P,b)},isCellDisabled(P){return e.isDisabled||P.compare(S)<0||P.compare(p)>0||this.isInvalid(P,o,s)},isCellUnavailable(P){return e.isDateUnavailable&&e.isDateUnavailable(P)},isPreviousVisibleRangeInvalid(){let P=S.subtract({days:1});return gt(P,S)||this.isInvalid(P,o,s)},isNextVisibleRangeInvalid(){let P=p.add({days:1});return gt(P,p)||this.isInvalid(P,o,s)},getDatesInWeek(P,B=S){let O=B.add({weeks:P}),L=[];O=Go(O,r);let H=Ju(O,r);for(let z=0;z<H;z++)L.push(null);for(;L.length<7;){L.push(O);let z=O.add({days:1});if(gt(O,z))break;O=z}for(;L.length<7;)L.push(null);return L}}}function nd(e){let t={...e};for(let n in e)t[n]=1;return t}function CP(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=qo(t,n||null,r),[h,f]=C.useState(null),g="center";if(c&&c.start&&c.end){let B=bf(fn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(B)>0&&(g="start")}let m=C.useRef(null),[v,y]=C.useState(null),b=C.useMemo(()=>Fh(s,v==null?void 0:v.start),[s,v]),x=C.useMemo(()=>Ah(l,v==null?void 0:v.end),[l,v]),S=G4({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:b,maxValue:x,selectionAlignment:g}),w=P=>{P&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Up(P,S,-1),end:Up(P,S,1)},y(m.current)):(m.current=null,y(null))},[_,F]=C.useState(S.visibleRange);(!Jd(S.visibleRange.start,_.start)||!Jd(S.visibleRange.end,_.end))&&(w(h),F(S.visibleRange));let p=P=>{P?(f(P),w(P)):(f(null),w(null))},D=h?rd(h,S.focusedDate):c&&rd(c.start,c.end),$=P=>{if(!e.isReadOnly&&(P=Vr(P,b,x),P=z4(P,S.visibleRange.start,e.isDateUnavailable),!!P))if(!h)p(P);else{let B=rd(h,P);d({start:Yp(B.start,c==null?void 0:c.start),end:Yp(B.end,c==null?void 0:c.end)}),p(null)}},[I,A]=C.useState(!1),{isDateUnavailable:k}=e,R=C.useMemo(()=>!c||h?!1:k&&(k(c.start)||k(c.end))?!0:wa(c.start,s,l)||wa(c.end,s,l),[k,c,h,s,l]),M=e.isInvalid||e.validationState==="invalid"||R;return{...S,value:c,setValue:d,anchorDate:h,setAnchorDate:p,highlightedRange:D,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){$(S.focusedDate)},selectDate:$,highlightDate(P){h&&S.setFocusedDate(P)},isSelected(P){return D&&P.compare(D.start)>=0&&P.compare(D.end)<=0&&!S.isCellDisabled(P)&&!S.isCellUnavailable(P)},isInvalid(P){var B,O;return S.isInvalid(P)||wa(P,(B=m.current)===null||B===void 0?void 0:B.start,(O=m.current)===null||O===void 0?void 0:O.end)},isDragging:I,setDragging:A}}function rd(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:fn(e),end:fn(t)})}function Yp(e,t){return e=xt(e,(t==null?void 0:t.calendar)||new gn),t&&"hour"in t?t.set(e):e}function Up(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function wP(e){let[t,n]=qo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),a=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Z4={};Z4={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var X4={};X4={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Y4={};Y4={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var U4={};U4={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var J4={};J4={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var q4={};q4={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var K4={};K4={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Q4={};Q4={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var e3={};e3={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var t3={};t3={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var n3={};n3={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var r3={};r3={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var i3={};i3={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var a3={};a3={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var o3={};o3={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var s3={};s3={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var l3={};l3={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var u3={};u3={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var c3={};c3={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var d3={};d3={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var f3={};f3={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var h3={};h3={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var g3={};g3={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var m3={};m3={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var p3={};p3={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var b3={};b3={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var v3={};v3={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var y3={};y3={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var x3={};x3={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var C3={};C3={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var w3={};w3={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var D3={};D3={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var S3={};S3={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var E3={};E3={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var _3={};_3={"ar-AE":Z4,"bg-BG":X4,"cs-CZ":Y4,"da-DK":U4,"de-DE":J4,"el-GR":q4,"en-US":K4,"es-ES":Q4,"et-EE":e3,"fi-FI":t3,"fr-FR":n3,"he-IL":r3,"hr-HR":i3,"hu-HU":a3,"it-IT":o3,"ja-JP":s3,"ko-KR":l3,"lt-LT":u3,"lv-LV":c3,"nb-NO":d3,"nl-NL":f3,"pl-PL":h3,"pt-BR":g3,"pt-PT":m3,"ro-RO":p3,"ru-RU":b3,"sk-SK":v3,"sl-SI":y3,"sr-SP":x3,"sv-SE":C3,"tr-TR":w3,"uk-UA":D3,"zh-CN":S3,"zh-TW":E3};function DP(e){return e&&e.__esModule?e.default:e}const I3=new Zi(DP(_3));function $3(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Jp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=$3(),d=Zi.getGlobalDictionaryForPackage("@react-stately/datepicker")||I3,h=new wx(c,d),f=new Yo(c,yf({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function SP(e,t,n,r,i){let a=Jp(e==null?void 0:e.start,t,n,r,i),o=Jp(e==null?void 0:e.end,t,n,r,i),s=bu(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Zi.getGlobalDictionaryForPackage("@react-stately/datepicker")||I3;s=bu(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",$3())],validationDetails:{...Qu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const EP={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},_P={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yf(e,t){e={...t.shouldForceLeadingZeros?_P:EP,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function qs(e){return e&&"hour"in e?e:new Nh}function IP(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=C.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function $P(e){var t,n;let r=wP(e),[i,a]=qo(e.value,e.defaultValue||null,e.onChange),[o,s]=C.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=T=>{s(T||{start:null,end:null}),T!=null&&T.start&&T.end?a(T):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=IP(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[v,y]=C.useState(null),[b,x]=C.useState(null);l&&l.start&&l.end&&(v=l,"hour"in l.start&&(b=l));let S=(T,P)=>{u({start:"timeZone"in P.start?P.start.set(fn(T.start)):Qr(T.start,P.start),end:"timeZone"in P.end?P.end.set(fn(T.end)):Qr(T.end,P.end)}),y(null),x(null),k.commitValidation()},w=T=>{let P=typeof m=="function"?m():m;f?P||T.start&&T.end&&(b!=null&&b.start)&&(b!=null&&b.end)?S(T,{start:(b==null?void 0:b.start)||qs(e.placeholderValue),end:(b==null?void 0:b.end)||qs(e.placeholderValue)}):y(T):T.start&&T.end?(u(T),k.commitValidation()):y(T),P&&r.setOpen(!1)},_=T=>{v!=null&&v.start&&(v!=null&&v.end)&&T.start&&T.end?S(v,T):x(T)},F=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",p=C.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:F}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,F]),{minValue:D,maxValue:$,isDateUnavailable:I}=e,A=C.useMemo(()=>SP(l,D,$,I,p),[l,D,$,I,p]),k=dP({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:A}),R=k.displayValidation.isInvalid,M=e.validationState||(R?"invalid":null);return{...k,value:l,setValue:u,dateRange:v,timeRange:b,granularity:d,hasTime:f,setDate(T,P){w({...v,[T]:P})},setTime(T,P){_({...b,[T]:P})},setDateTime(T,P){u({...l,[T]:P})},setDateRange:w,setTimeRange:_,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(v!=null&&v.start)&&(v!=null&&v.end)&&f&&S(v,{start:(b==null?void 0:b.start)||qs(e.placeholderValue),end:(b==null?void 0:b.end)||qs(e.placeholderValue)}),r.setOpen(T)},validationState:M,isInvalid:R,formatValue(T,P){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,O=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,H=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=yf(P,{granularity:O,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),X=l.start.toDate(B||"UTC"),G=l.end.toDate(L||"UTC"),j=new Yo(T,z),V;if(B===L&&O===H&&l.start.compare(l.end)!==0){try{let Z=j.formatRangeToParts(X,G),q=-1;for(let ie=0;ie<Z.length;ie++){let Y=Z[ie];if(Y.source==="shared"&&Y.type==="literal")q=ie;else if(Y.source==="endRange")break}let te="",ue="";for(let ie=0;ie<Z.length;ie++)ie<q?te+=Z[ie].value:ie>q&&(ue+=Z[ie].value);return{start:te,end:ue}}catch{}V=j}else{let Z=yf(P,{granularity:H,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});V=new Yo(T,Z)}return{start:j.format(X),end:V.format(G)}}}}const R3=e=>{const t=C.useRef(null),{locale:n}=Nn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=uP({date:i},r,t),{focusProps:h}=bx(),f="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?gt(i,r.highlightedRange.end):null:s,m=Ju(i,n),v=s&&(f??m===0??i.day===1),y=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return E.jsx("td",{...a,children:E.jsx("div",{...en(o,h),ref:t,className:`${be["cell-calendar"]} ${v?"1ru-rounded-l-full":""} ${y?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?E.jsx("div",{className:be["visible-cell-calendar"],children:c}):E.jsx("div",{className:`${be["active-cell-calendar"]} ${u&&!d?be.disabled:""} ${f||g?d?be.error:be.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},Pa=e=>{const t=C.useRef(null),{buttonProps:n}=rP(e,t),{focusProps:r}=bx();return E.jsx("button",{...en(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},A3=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a,hiddenHeader:o})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=ei({month:"short",timeZone:n.timeZone}),c=(h,f)=>{const g=n.focusedDate.set({month:h});f?(r("date"),n.setFocusedDate(g)):!f&&typeof i=="function"&&i(g)},d=h=>{const f=n.focusedDate.set({year:h});n.setFocusedDate(f)};return E.jsxs("div",{className:`1ru-w-[296px] ${be["container-calendar"]}`,children:[!o&&E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>d(n.focusedDate.year-1),children:typeof e=="function"||C.isValidElement(e)?C.isValidElement(e)?e:e():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:`${be["header-button-calendar"]} ${a.includes("year")?"":be.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),E.jsx(Pa,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>d(n.focusedDate.year+1),children:typeof t=="function"||C.isValidElement(t)?C.isValidElement(t)?t:t():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsx("div",{className:be["month-calendar"],children:[...Array(l).keys()].map(h=>{var x,S,w,_;const f=n.focusedDate.set({month:h+1}),g=u.format(f.toDate(n.timeZone)),m=((x=n.value)==null?void 0:x.year)||((w=(S=n.value)==null?void 0:S.start)==null?void 0:w.year)||s,v=n!=null&&n.minValue?f.month<((_=n==null?void 0:n.minValue)==null?void 0:_.month)&&f.year<=n.minValue.year:!1,y=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,b=v||y;return E.jsx("div",{onClick:()=>{b||c(f.month,a.includes("date"))},className:`${be["cell-month"]} ${n.focusedDate.month===f.month&&!b&&f.year===m?be.selected:""} ${n.focusedDate.month!==f.month&&!b?"hover:1ru-bg-laba-blue-01":""} ${b?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:g},h)})})]})},RP=e=>{const t=Dy(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=s4({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=o4(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return E.jsxs("div",{children:[!e.hiddenHeader&&E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||C.isValidElement(e==null?void 0:e.prevIcon)?C.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:be["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),E.jsx(Pa,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||C.isValidElement(e==null?void 0:e.nextIcon)?C.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...n,children:[E.jsx("thead",{...r,children:E.jsx("tr",{children:i.map((u,c)=>E.jsx("th",{className:be["days-calendar"],children:l(c)},c))})}),E.jsx("tbody",{children:[...new Array(t).keys()].map(u=>E.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?E.jsx(R3,{state:e.state,date:c},d):E.jsx("td",{},d))},u))})]})]})},AP=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:a})=>{const o=e?new Date(e):null,s=t?new Date(t):null,l=o==null?void 0:o.getHours(),u=s==null?void 0:s.getHours(),c=o==null?void 0:o.getMinutes(),d=s==null?void 0:s.getMinutes(),[h,f]=C.useState(!0),g=(b,x,S)=>Array.from({length:(x-b)/S+1},(w,_)=>b+_*S),m=(b,x)=>{typeof a=="function"&&a({hour:b,minut:x,second:r==null?void 0:r.second})},v=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),x=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),S=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");b&&S&&S.scrollTo({behavior:"instant",top:b.offsetTop-75}),x&&w&&w.scrollTo({behavior:"instant",top:x.offsetTop-75})},y=(b,x)=>{let S=!0;if(o&&n){const w=n.year===o.getFullYear(),_=n.month===o.getMonth()+1;n.day===o.getDate()&&_&&w?(x==="hour"&&b<(l??0)||x==="minut"&&((r==null?void 0:r.hour)??0)<=o.getHours()&&b<(c??0))&&(S=!1):n.toDate(Oi()).getTime()<o.getTime()&&(S=!1)}if(s&&n){const w=n.year===s.getFullYear(),_=n.month===s.getMonth()+1;n.day===s.getDate()&&_&&w?(x==="hour"&&b>(u??0)||x==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&b>(d??0))&&(S=!1):n.toDate(Oi()).getTime()>s.getTime()&&(S=!1)}return S};return C.useEffect(()=>{h&&v(),r&&f(!1)},[JSON.stringify(n)]),E.jsxs("div",{className:be["custom-time-calendar"],children:[!i&&E.jsx("div",{className:be["header-time"],children:"Atur Waktu"}),E.jsxs("div",{className:be["type-time"],children:[E.jsx("div",{children:"Jam"}),E.jsx("div",{children:"Menit"})]}),E.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[E.jsx("div",{id:"wrapper-calendar-hour",className:be["container-cell-time"],children:g(0,23,1).map(b=>E.jsx("div",{id:`calendar-hour-${b}`,className:`${be["cell-time"]} ${(r==null?void 0:r.hour)===b?y(b,"hour")?be.selected:be.error:""} ${y(b,"hour")&&(r==null?void 0:r.hour)!=b?be.valid:be.invalid}`,onClick:()=>{y(b,"hour")&&m(b,r==null?void 0:r.minut)},children:b<10?`0${b}`:b},b))}),E.jsx("div",{id:"wrapper-calendar-minut",className:be["container-cell-time"],children:g(0,59,1).map(b=>E.jsx("div",{id:`calendar-minut-${b}`,className:`${be["cell-time"]} ${(r==null?void 0:r.minut)===b?y(b,"minut")?be.selected:be.error:""} ${y(b,"minut")&&(r==null?void 0:r.minut)!=b?be.valid:be.invalid}`,onClick:()=>{y(b,"minut")&&m(r==null?void 0:r.hour,b)},children:b<10?`0${b}`:b},b))})]})]})},ec=e=>{const t=G4({...e,locale:e.locale,createCalendar:ws}),{title:n}=o4(e,t),[r,i]=C.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Mi(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&E.jsx(E.Fragment,{children:E.jsxs("div",{className:be["container-calendar"],children:[E.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[E.jsx(RP,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&E.jsx(AP,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&E.jsxs("div",{className:`${be["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):E.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&E.jsx(A3,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a,hiddenHeader:e.hiddenHeader}),r==="year"&&E.jsx(Av,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a,hiddenHeader:e.hiddenHeader})]})},FP=e=>{const t=C.useRef(null),{locale:n}=Nn(),r=CP({...e,locale:n,createCalendar:ws}),i=m=>{let v="";switch(m){case 0:v="Min";break;case 1:v="Sen";break;case 2:v="Sel";break;case 3:v="Rab";break;case 4:v="Kam";break;case 5:v="Jum";break;case 6:v="Sab";break}return v},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=sP(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=s4({},r),h=Dy(r.visibleRange.start,n),[f,g]=C.useState("date");return E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&E.jsx(E.Fragment,{children:E.jsx("div",{...a,ref:t,children:E.jsxs("div",{className:be["container-calendar"],children:[E.jsxs("div",{className:be["header-calendar"],children:[E.jsx(Pa,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||C.isValidElement(e==null?void 0:e.prevIcon)?C.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(Qn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:be["header-button-calendar"],onClick:()=>g("month"),children:l}),E.jsx(Pa,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||C.isValidElement(e==null?void 0:e.nextIcon)?C.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(Qn,{className:"-1ru-rotate-90"})})]}),E.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[E.jsx("thead",{...c,className:"text-gray-600",children:E.jsx("tr",{children:d.map((m,v)=>E.jsx("th",{className:be["days-calendar"],children:i(v)},v))})}),E.jsx("tbody",{children:[...new Array(h).keys()].map(m=>E.jsx("tr",{children:r.getDatesInWeek(m).map((v,y)=>v?E.jsx(R3,{state:r,date:v},y):E.jsx("td",{},y))},m))})]}),e.withConfirm&&E.jsxs("div",{className:be["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):E.jsx(Mn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?E.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):E.jsx(Mn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&E.jsx(A3,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&E.jsx(Av,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},F3=e=>{const t=$P(e),n=C.useRef(null),{calendarProps:r}=xP(e,t,n);return E.jsx("div",{ref:n,children:E.jsx(FP,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Ks=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},PP=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:v="date-picker-popover",floatingOptions:y={},offsetPopover:b=5,zIndexPopper:x=1,hiddenHeader:S}=e,w=ei(),{locale:_}=Nn(),F=Ks(t),p=Ks(n),D=C.useRef(null),[$,I]=C.useState(),[A,k]=C.useState(),R=O=>{var G;const L=new Date;let H=O.toDate(Oi());H.setHours(L.getHours(),L.getMinutes(),L.getSeconds());const z=t?new Date(t):null,X=n?new Date(n):null;if(o){if(H=new Date(new Date(H).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),z&&(z==null?void 0:z.toDateString())===new Date(H).toDateString()&&(z==null?void 0:z.toTimeString())>=(H==null?void 0:H.toTimeString())){if(z&&(z.getHours()>H.getHours()||z.getHours()===H.getHours()&&z.getMinutes()>H.getMinutes()))return;H=new Date(z.setSeconds(z.getSeconds()+1))}if(X&&(X==null?void 0:X.toDateString())===new Date(H).toDateString()&&(X==null?void 0:X.toTimeString())<(H==null?void 0:H.toTimeString())){if(X&&(X.getHours()<H.getHours()||X.getHours()===H.getHours()&&X.getMinutes()<H.getMinutes()))return;H=new Date(X.setSeconds(X.getSeconds()-1))}}else z&&w.format(H)===w.format(z)&&z.getTime()>=H.getTime()?H=new Date(z.setSeconds(z.getSeconds()+1)):X&&w.format(H)===w.format(X)&&X.getTime()<=H.getTime()&&(H=new Date(X.setSeconds(X.getSeconds()-1)));typeof g=="function"&&(g(H),(G=D.current)==null||G.setShow(!1))},M=(O,L)=>{I(O),(L??(!a&&!o))&&R(O)},T=O=>{k(O)},P=O=>{const L=new Date(r??new Date);k({hour:L.getHours(),minut:L.getMinutes(),second:L.getSeconds()}),I(Ks(r))},B=()=>{$&&M($,!0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:m,onClick:O=>{var L;(L=D.current)==null||L.handlerShow(O),P()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),E.jsx(Ar,{zIndex:x,ref:D,offset:b,id:v,floatingOptions:{placement:"bottom-end",...y},children:E.jsx("div",{className:s??"",children:E.jsx(Jh,{locale:"id-ID",children:E.jsx(ec,{minValue:F,maxValue:p,minDate:t,maxDate:n,time:A,locale:_,value:$,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:ws,defaultValue:Ks(r),onChange:M,handlerReset:()=>{var O;typeof g=="function"&&(g(i),(O=D.current)==null||O.setShow(!1))},handlerSubmit:B,handlerChangeTime:T,withConfirm:a,isCustomTime:o,type:["date","month","year"],hiddenHeader:S})})})})]})},id=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},qp=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new ut(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new ut(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},P3=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=Nn(),f=id(t),g=id(n),[m,v]=C.useState(),y=w=>{typeof c=="function"&&c(w)},b=(w,_)=>{const F=w.start.toDate(Oi()),p=w.end.toDate(Oi());v(w),(_??!i)&&y({startDate:F,endDate:new Date(p.setHours(23,59,59))})},x=w=>{if(typeof d=="function")d();else if(r&&w){const _=new Date(r.endDate??new Date),F=w.focusedDate.set({month:_.getMonth()+1,year:_.getFullYear()});w.setFocusedDate(F)}v(qp(r))},S=()=>{m&&b(m,!0)};return E.jsx("div",{className:"1ru-flex 1ru-flex-col",children:E.jsxs(Jh,{locale:"id-ID",children:[u==="RANGE"&&E.jsx(F3,{defaultValue:qp(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:b,handlerReset:x,handlerSubmit:S}),u==="SINGLE"&&E.jsx(ec,{defaultValue:id(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:ws,onChange:w=>b({start:w,end:w}),handlerReset:x,handlerSubmit:S,type:["date","month","year"]})]})})},TP=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:v,mountedExecuteChange:y=!0,formatingDate:b})=>{const x=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],S=C.useRef(null),[w,_]=C.useState(),[F,p]=C.useState(),[D,$]=C.useState(),I=(G,j)=>{const V=new Date(G??new Date);return j==="start"?new Date(V.setHours(0,0,0)):new Date(V.setHours(23,59,59))},A=()=>{const G=new Date;return{startDate:G,endDate:G}},k=()=>{const G=new Date;G.setDate(G.getDate()-G.getDay());const j=new Date;return j.setDate(j.getDate()+(6-j.getDay())),{startDate:G,endDate:j}},R=()=>{const G=new Date,j=new Date(G.getFullYear(),G.getMonth(),1),V=new Date(G.getFullYear(),G.getMonth()+1,0);return{startDate:j,endDate:V}},M=()=>{const G=new Date(new Date().getFullYear(),0,1),j=new Date(new Date().getFullYear(),11,31);return{startDate:G,endDate:j}},T=()=>{const G=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:G,endDate:G}},P=()=>{const G=new Date;G.setDate(G.getDate()-(7+G.getDay()));const j=new Date;return j.setDate(j.getDate()-(j.getDay()+1)),{startDate:G,endDate:j}},B=()=>{const G=new Date,j=new Date(G.getFullYear(),G.getMonth()-1,1),V=new Date(G.getFullYear(),G.getMonth(),0);return{startDate:j,endDate:V}},O=()=>{const G=new Date(new Date().getFullYear()-1,0,1),j=new Date(new Date().getFullYear()-1,11,31);return{startDate:G,endDate:j}},L=(G,j,V)=>{var Z;if($(G),typeof c=="function"){let q=G;b==="string"&&G?q={startDate:fa(G.startDate,b),endDate:fa(G.endDate,b)}:typeof b=="boolean"&&G&&(q={startDate:fa(G.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:fa(G.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(Z=S.current)==null||Z.setShow(!1),c(q,j??"",V)}},H=(G,j)=>{_(G);let V;if((G==null?void 0:G.key)!=="custom"){switch(p(G),G==null?void 0:G.key){case"thisDay":V=A();break;case"thisWeek":V=k();break;case"thisMonth":V=R();break;case"thisYear":V=M();break;case"yesterday":V=T();break;case"lastWeek":V=P();break;case"lastMonth":V=B();break;case"lastYear":V=O();break}V&&j&&L({startDate:I(V.startDate,"start"),endDate:I(V.endDate,"end")},G==null?void 0:G.value,G)}},z=(G,j)=>{const V=(l??x).find(Z=>Z.key===G);!G&&!V?(j&&L(),H(void 0,j),p(void 0)):typeof G=="object"?(j&&L({startDate:I(G.startDate,"start"),endDate:I(G.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),H({key:"custom",value:"Kustom"},j),p({key:"custom",value:"Kustom"})):(H(V,j),p(V))},X=()=>{var G;if(e){$(e);const j=(G=l??x)==null?void 0:G.find(V=>V.key===e.label||V.value===e.label);Object.keys(j||{}).length>0&&_(j)}else _(void 0),p(void 0)};return C.useEffect(()=>{X()},[JSON.stringify(e)]),C.useEffect(()=>{z(v??e,y)},[]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{onClick:G=>{var j;(j=S.current)==null||j.handlerShow(G),X()},className:o,id:h,children:[C.isValidElement(s)&&s,typeof s=="function"?s(D,F):"Pilih Filter"]}),E.jsx(Ar,{zIndex:m,ref:S,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:E.jsxs("div",{className:`${be["container-filter-date"]} ${a}`,children:[E.jsx("div",{children:(l??x).map((G,j)=>E.jsx("div",{className:`${be["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(w==null?void 0:w.key)===G.key?"1ru-text-laba-blue-10":""}`,onClick:()=>H(G,!0),children:G.value},j))}),(w==null?void 0:w.key)==="custom"&&E.jsx("div",{children:E.jsx(P3,{defaultValue:D,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:G=>{L(G,"Kustom",{key:"custom",value:"Kustom"}),p({key:"custom",value:"Kustom"})},onReset:()=>{z(v,!0)},typePicker:u,withConfirm:!0})})]})})]})},kP="_active_z4wg4_31",MP="_disabled_z4wg4_34",_t={"title-switch-laba":"_title-switch-laba_z4wg4_1","title-switch-payhere":"_title-switch-payhere_z4wg4_6","description-switch-laba":"_description-switch-laba_z4wg4_11","description-switch-payhere":"_description-switch-payhere_z4wg4_16","switch-l":"_switch-l_z4wg4_21","switch-payhere":"_switch-payhere_z4wg4_21",active:kP,disabled:MP,"disabled-nonactive":"_disabled-nonactive_z4wg4_37","thumb-switch":"_thumb-switch_z4wg4_40","switch-laba":"_switch-laba_z4wg4_57","switch-r":"_switch-r_z4wg4_94","switch-s":"_switch-s_z4wg4_167"},BP=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const d={size:{large:_t["switch-l"],regular:_t["switch-r"],small:_t["switch-s"]},kind:{laba:_t["switch-laba"],payhere:_t["switch-payhere"]},text:{title:{laba:_t["title-switch-laba"],payhere:_t["title-switch-payhere"]},desc:{laba:_t["description-switch-laba"],payhere:_t["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return E.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:f=>f.stopPropagation(),children:[E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),E.jsx("span",{className:`${d.size[i]} ${d.kind[a]} ${e?_t.active:""} ${t?_t.disabled:""} ${!e&&t?_t["disabled-nonactive"]:""}`,children:E.jsx("span",{className:`${_t["thumb-switch"]} ${e?_t.active:""} ${t?_t.disabled:""} ${!e&&t?_t["disabled-nonactive"]:""}`})})]}),(n||r)&&E.jsxs("div",{children:[n&&E.jsx("div",{className:`${d.text.title[a]} ${l}`,children:n}),r&&E.jsx("div",{className:`${d.text.desc[a]} ${u}`,children:r})]})]})},OP="_loading_11t4k_10",$e={"button-xs":"_button-xs_11t4k_6","button-s":"_button-s_11t4k_6","button-m":"_button-m_11t4k_6","button-l":"_button-l_11t4k_6","button-extra-small":"_button-extra-small_11t4k_6","button-small":"_button-small_11t4k_6","button-reguler":"_button-reguler_11t4k_6","button-large":"_button-large_11t4k_6",loading:OP,"nude-laba-red-05":"_nude-laba-red-05_11t4k_18","nude-laba-red-10":"_nude-laba-red-10_11t4k_18","nude-gray-500":"_nude-gray-500_11t4k_18","nude-green-700":"_nude-green-700_11t4k_18","nude-red-700":"_nude-red-700_11t4k_18","nude-laba-blue-10":"_nude-laba-blue-10_11t4k_18","ghost-laba-green-10":"_ghost-laba-green-10_11t4k_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_11t4k_18","ghost-green-700":"_ghost-green-700_11t4k_18","ghost-red-700":"_ghost-red-700_11t4k_18","ghost-laba-blue-10":"_ghost-laba-blue-10_11t4k_18","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_11t4k_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_11t4k_18","primary-green-700":"_primary-green-700_11t4k_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_11t4k_18","primary-laba-blue-10":"_primary-laba-blue-10_11t4k_18","tertiary-gray-500":"_tertiary-gray-500_11t4k_18","tertiary-red-600":"_tertiary-red-600_11t4k_18","tertiary-red-300":"_tertiary-red-300_11t4k_18","tertiary-blue-700":"_tertiary-blue-700_11t4k_18","secondary-green-600":"_secondary-green-600_11t4k_18","secondary-red-700":"_secondary-red-700_11t4k_18","secondary-red-600":"_secondary-red-600_11t4k_18","secondary-blue-700":"_secondary-blue-700_11t4k_18","primary-red-700":"_primary-red-700_11t4k_18","primary-blue-700":"_primary-blue-700_11t4k_18","icon-loading":"_icon-loading_11t4k_80"},NP=({className:e=""})=>E.jsx("svg",{className:`${$e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:E.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
114
114
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
115
115
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
116
116
|
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
@@ -130,11 +130,11 @@ You should wrap it with \`css\` like this:
|
|
130
130
|
${m.borderRadius[s]}
|
131
131
|
${v()} ${y()} ${u?ui.disabled:""} ${l??""}`,htmlFor:n??t,children:[E.jsx(tc,{id:n,name:t,type:r,disabled:u,...e,...g}),E.jsxs("div",{children:[E.jsx("p",{className:`${ui.label}
|
132
132
|
${i?`${m.typographyLabel[i]} custom-typography`:""}`,children:d}),E.jsx("p",{className:`${ui.desc} ${a?`${m.typographyDesc[a]} custom-typography`:""}`,children:h})]})]})},Kp={"gap-0":"1ru-gap-0","gap-x-0":"1ru-gap-x-0","gap-y-0":"1ru-gap-y-0","gap-px":"1ru-gap-px","gap-x-px":"1ru-gap-x-px","gap-y-px":"1ru-gap-y-px","gap-0.5":"1ru-gap-0.5","gap-x-0.5":"1ru-gap-x-0.5","gap-y-0.5":"1ru-gap-y-0.5","gap-1":"1ru-gap-1","gap-x-1":"1ru-gap-x-1","gap-y-1":"1ru-gap-y-1","gap-1.5":"1ru-gap-1.5","gap-x-1.5":"1ru-gap-x-1.5","gap-y-1.5":"1ru-gap-y-1.5","gap-2":"1ru-gap-2","gap-x-2":"1ru-gap-x-2","gap-y-2":"1ru-gap-y-2","gap-2.5":"1ru-gap-2.5","gap-x-2.5":"1ru-gap-x-2.5","gap-y-2.5":"1ru-gap-y-2.5","gap-3":"1ru-gap-3","gap-x-3":"1ru-gap-x-3","gap-y-3":"1ru-gap-y-3","gap-3.5":"1ru-gap-3.5","gap-x-3.5":"1ru-gap-x-3.5","gap-y-3.5":"1ru-gap-y-3.5","gap-4":"1ru-gap-4","gap-x-4":"1ru-gap-x-4","gap-y-4":"1ru-gap-y-4","gap-5":"1ru-gap-5","gap-x-5":"1ru-gap-x-5","gap-y-5":"1ru-gap-y-5","gap-6":"1ru-gap-6","gap-x-6":"1ru-gap-x-6","gap-y-6":"1ru-gap-y-6","gap-7":"1ru-gap-7","gap-x-7":"1ru-gap-x-7","gap-y-7":"1ru-gap-y-7","gap-8":"1ru-gap-8","gap-x-8":"1ru-gap-x-8","gap-y-8":"1ru-gap-y-8","gap-9":"1ru-gap-9","gap-x-9":"1ru-gap-x-9","gap-y-9":"1ru-gap-y-9","gap-10":"1ru-gap-10","gap-x-10":"1ru-gap-x-10","gap-y-10":"1ru-gap-y-10"},XP="_action_fqogk_8",YP="_urls_fqogk_20",UP="_url_fqogk_20",JP="_active_fqogk_32",oa={"laba-blue-10":"_laba-blue-10_fqogk_1","blue-700":"_blue-700_fqogk_1",action:XP,urls:YP,url:UP,active:JP},qP=({as:e,variants:t="laba-blue-10",fonts:n="lato",urls:r=[],textBreadcrumbs:i=[],onClickBreadcrumbs:a=[],gapAction:o,gapUrls:s,className:l,textAction:u="Kembali",iconAction:c,onClickAction:d,onClickUrls:h,separator:f=">",propsLink:g,...m})=>{const v=e??"div",y={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-10":oa["laba-blue-10"],"blue-700":oa["blue-700"]},gapAction:Kp,gapUrls:Kp},b=x=>!!(Array.isArray(r)&&r.length>0&&r.length-1===x);return E.jsxs("div",{className:`${y.fonts[n]} ${y.variants[t]}
|
133
|
-
${l??""}`,...m,children:[d&&E.jsxs("div",{onClick:d,className:`${oa.action} ${o?y.gapAction[o]:""}`,children:[c,u]}),E.jsx("div",{className:`${oa.urls} ${s?y.gapUrls[s]:""}`,children:r==null?void 0:r.map((x,S)=>E.jsxs(C.Fragment,{children:[E.jsx(v,{className:`${oa.url} ${b(S)?oa.active:""}`,onClick:()=>{(a==null?void 0:a[S])!==void 0&&typeof a[S]=="function"?a[S]():typeof h=="function"&&h(x)},...g?g(x,S,r):{},children:i[S]}),!b(S)&&E.jsx(E.Fragment,{children:f})]},S))})]})},KP="_sidebar_mnqdg_9",bn={"splace-screen":"_splace-screen_mnqdg_1","payhere-brand-base-white":"_payhere-brand-base-white_mnqdg_6",sidebar:KP,"button-collaps-sidebar":"_button-collaps-sidebar_mnqdg_19","menu-sidebar":"_menu-sidebar_mnqdg_30","sidebar-open":"_sidebar-open_mnqdg_49","container-icon-company-sidebar":"_container-icon-company-sidebar_mnqdg_60","icon-company-sidebar":"_icon-company-sidebar_mnqdg_63","sidebar-close":"_sidebar-close_mnqdg_67","content-sidebar":"_content-sidebar_mnqdg_84","payhere-brand-base-transparent":"_payhere-brand-base-transparent_mnqdg_138","laba-white":"_laba-white_mnqdg_270"},QP="_hidden_1j95c_62",tt={"item-icon-subs":"_item-icon-subs_1j95c_1","item-sidebar-2":"_item-sidebar-2_1j95c_1","item-sidebar-1":"_item-sidebar-1_1j95c_1","item-icon":"_item-icon_1j95c_1","item-label":"_item-label_1j95c_13","item-sidebar-open":"_item-sidebar-open_1j95c_35","item-sidebar-close":"_item-sidebar-close_1j95c_45","item-sidebar-laba":"_item-sidebar-laba_1j95c_53","item-sidebar-payhere":"_item-sidebar-payhere_1j95c_53","item-subs-sidebar":"_item-subs-sidebar_1j95c_58",hidden:QP,"divider-item-sidebar":"_divider-item-sidebar_1j95c_67","hover-sidebar-payhere":"_hover-sidebar-payhere_1j95c_87","hover-sidebar-laba":"_hover-sidebar-laba_1j95c_96"},N3=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var x,S,w,
|
133
|
+
${l??""}`,...m,children:[d&&E.jsxs("div",{onClick:d,className:`${oa.action} ${o?y.gapAction[o]:""}`,children:[c,u]}),E.jsx("div",{className:`${oa.urls} ${s?y.gapUrls[s]:""}`,children:r==null?void 0:r.map((x,S)=>E.jsxs(C.Fragment,{children:[E.jsx(v,{className:`${oa.url} ${b(S)?oa.active:""}`,onClick:()=>{(a==null?void 0:a[S])!==void 0&&typeof a[S]=="function"?a[S]():typeof h=="function"&&h(x)},...g?g(x,S,r):{},children:i[S]}),!b(S)&&E.jsx(E.Fragment,{children:f})]},S))})]})},KP="_sidebar_mnqdg_9",bn={"splace-screen":"_splace-screen_mnqdg_1","payhere-brand-base-white":"_payhere-brand-base-white_mnqdg_6",sidebar:KP,"button-collaps-sidebar":"_button-collaps-sidebar_mnqdg_19","menu-sidebar":"_menu-sidebar_mnqdg_30","sidebar-open":"_sidebar-open_mnqdg_49","container-icon-company-sidebar":"_container-icon-company-sidebar_mnqdg_60","icon-company-sidebar":"_icon-company-sidebar_mnqdg_63","sidebar-close":"_sidebar-close_mnqdg_67","content-sidebar":"_content-sidebar_mnqdg_84","payhere-brand-base-transparent":"_payhere-brand-base-transparent_mnqdg_138","laba-white":"_laba-white_mnqdg_270"},QP="_hidden_1j95c_62",tt={"item-icon-subs":"_item-icon-subs_1j95c_1","item-sidebar-2":"_item-sidebar-2_1j95c_1","item-sidebar-1":"_item-sidebar-1_1j95c_1","item-icon":"_item-icon_1j95c_1","item-label":"_item-label_1j95c_13","item-sidebar-open":"_item-sidebar-open_1j95c_35","item-sidebar-close":"_item-sidebar-close_1j95c_45","item-sidebar-laba":"_item-sidebar-laba_1j95c_53","item-sidebar-payhere":"_item-sidebar-payhere_1j95c_53","item-subs-sidebar":"_item-subs-sidebar_1j95c_58",hidden:QP,"divider-item-sidebar":"_divider-item-sidebar_1j95c_67","hover-sidebar-payhere":"_hover-sidebar-payhere_1j95c_87","hover-sidebar-laba":"_hover-sidebar-laba_1j95c_96"},N3=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var x,S,w,_;const c={activeColor:{"payhere-brand-base-white":tt["item-sidebar-payhere"],"payhere-brand-base-transparent":tt["item-sidebar-payhere"],"laba-white":tt["item-sidebar-laba"]},hoverColor:{"payhere-brand-base-white":tt["hover-sidebar-payhere"],"payhere-brand-base-transparent":tt["hover-sidebar-payhere"],"laba-white":tt["hover-sidebar-laba"]}};let d=E.jsx(E.Fragment,{});const h=e??"div",[f,g]=C.useState(!1),m=r===u.slug,v=t.split("/"),y=v.includes(u.name),b=()=>{if(u.subs.length>0)if(y){const F=v.splice(0,v.indexOf(u.name));F.length>0?o(`${F.join("/")}/`):o("")}else o(`${t}${u.name}/`);else typeof s=="function"&&s(u)};return u.isShow?((u.parent===1||u.parent===3)&&(d=E.jsxs(E.Fragment,{children:[E.jsxs(h,{id:u.name,className:`${tt["item-sidebar-1"]} ${(x=c.hoverColor)==null?void 0:x[a]}
|
134
134
|
${m||u.subs.length>0&&y?(S=c.activeColor)==null?void 0:S[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
135
135
|
`,onClick:b,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[E.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[C.isValidElement(u.svgIcon)&&E.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:tt["item-label"],children:u.label})]}),u.subs.length>0&&n&&E.jsxs("div",{className:tt["item-icon-subs"],children:[C.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&E.jsx("div",{className:tt["divider-item-sidebar"]})]})),(u.parent===2||u.parent===4)&&(d=E.jsxs(E.Fragment,{children:[E.jsxs(h,{id:u.name,className:`${tt["item-sidebar-2"]} ${(w=c.hoverColor)==null?void 0:w[a]}
|
136
|
-
${m||u.subs.length>0&&y?(
|
137
|
-
`,onClick:b,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[C.isValidElement(u.svgIcon)&&E.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:tt["item-label"],children:u.label}),u.subs.length>0&&n&&E.jsxs("div",{className:tt["item-icon-subs"],children:[C.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&E.jsx("div",{className:tt["divider-item-sidebar"]})]})),u.subs.length>0?E.jsxs("div",{className:`${n??y?"":"-mt-2"}`,children:[d,E.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!y?tt.hidden:""}`,children:u.subs.map(F=>C.createElement(N3,{...F,as:F.manualRoute?"div":F.subs.length>0?e:u.linkComponent,key:F.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&E.jsx("div",{className:tt["divider-item-sidebar"]})]}):d):E.jsx(E.Fragment,{})},V3=C.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,v=C.useRef(null),y={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":bn["payhere-brand-base-white"],"payhere-brand-base-transparent":bn["payhere-brand-base-transparent"],"laba-white":bn["laba-white"]}},[b,x]=C.useState(null),[S,w]=C.useState(null),[I,F]=C.useState(""),[p,D]=C.useState(),[$,_]=C.useState(0),A=()=>{var B;let T=0;const P=document.getElementById("icon-company-sidebar");(B=P==null?void 0:P.childNodes)==null||B.forEach(O=>{T+=O.getBoundingClientRect().width??0}),D(T+c+"px")},k=()=>{_(window.innerWidth)},R=()=>{x(!S),S?D("auto"):setTimeout(()=>{A()},100)};return C.useEffect(()=>{$>=768?(x(!0),setTimeout(()=>{A()},100)):(x(!1),D("auto"))},[$]),C.useEffect(()=>{typeof b=="boolean"&&w(b)},[b]),C.useImperativeHandle(t,()=>({openSidebar:b,setOpenSidebar:x,handlerClickCollapse:R}),[b,S]),C.useEffect(()=>(i&&i.split("/").length>1&&F(i+"/"),A(),k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[]),E.jsxs("div",{className:y.variants[h],...m,ref:v,children:[E.jsxs("div",{id:"1ru-sidebar",className:`${bn.sidebar} ${typeof S=="boolean"&&S?bn["sidebar-open"]:""} ${typeof S=="boolean"&&!S?bn["sidebar-close"]:""}`,children:[C.isValidElement(s)&&E.jsxs("div",{className:bn["button-collaps-sidebar"],onClick:R,children:[b&&s,b?"":C.isValidElement(l)?l:s]}),E.jsx("div",{className:bn["container-icon-company-sidebar"],children:E.jsxs("div",{id:"icon-company-sidebar",className:bn["icon-company-sidebar"],style:{width:p&&y.withCuctomWidthIconCompany.includes(h)?p:"100%"},children:[C.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:x})]})}),E.jsx("div",{className:bn["menu-sidebar"],onMouseOver:()=>{b||w(!0)},onMouseOut:()=>{b||w(!1)},children:u.map(T=>C.createElement(N3,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:I,open:S,patch:i,iconSubs:o,variant:h,setShow:F,onClickItems:d}))}),f&&E.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[C.isValidElement(f)&&E.jsx("div",{children:f}),typeof f=="function"&&E.jsx("div",{children:f()})]})]}),b&&E.jsx("div",{className:bn["splace-screen"],onClick:R}),E.jsxs("div",{className:bn["content-sidebar"],children:[g&&((M=C.Children)==null?void 0:M.map(r,T=>E.jsx(E.Fragment,{children:C.isValidElement(T)&&E.jsx(E.Fragment,{children:C.cloneElement(T,{openSidebar:b,handlerClickCollapse:R})})}))),!g&&E.jsx(E.Fragment,{children:r})]})]})});V3.displayName="Sidebar";const eT="_collapse_gto9s_1",tT={collapse:eT},nT=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,delayTriggerCalculateHeight:s=0})=>{const[l,u]=C.useState("1000vh"),c=()=>{var h;const d=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(d||"1000vh")};return C.useEffect(()=>{const d=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(d),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[o]),E.jsx("div",{className:`${tT.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:E.jsx("div",{id:t,className:r??"",children:e})})},rT="_modal_9v1mi_1",Mr={modal:rT,"modal-content":"_modal-content_9v1mi_1","with-overlay":"_with-overlay_9v1mi_14","modal-small":"_modal-small_9v1mi_24","modal-medium":"_modal-medium_9v1mi_28","modal-regular":"_modal-regular_9v1mi_32","modal-large":"_modal-large_9v1mi_36","modal-show":"_modal-show_9v1mi_40"},iT=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:Mr["modal-small"],medium:Mr["modal-medium"],regular:Mr["modal-regular"],large:Mr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return E.jsx(E.Fragment,{children:a&&document.getElementById(r)&&Oa.createPortal(E.jsx("div",{id:n,onClick:f,className:`${Mr.modal} ${i?Mr["with-overlay"]:""} ${a?Mr["modal-show"]:""} ${l??""}`,children:E.jsx(d,{onClick:g=>g.stopPropagation(),className:`${Mr["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},aT="_dot_10oqk_31",zn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:aT,"right-content":"_right-content_10oqk_34"},oT=({children:e,noTime:t=!1})=>E.jsx("div",{className:`${zn["timeline-container"]} ${t?zn["no-time"]:""}`,children:e}),sT=({children:e,time:t,clasName:n,noTime:r=!1})=>E.jsxs("div",{className:zn["timeline-content"],children:[E.jsx("div",{className:`${zn["left-content"]} ${r?zn["no-time"]:""}`,children:E.jsxs("div",{className:zn["time-content"],children:[!r&&E.jsx("time",{className:zn["text-time"],children:t??""}),E.jsx("div",{className:zn.dot})]})}),E.jsx("div",{className:`${zn["right-content"]} ${r?zn["no-time"]:""} ${n??""}`,children:e})]}),lT=Object.assign(oT,{TimelineContent:sT}),Qs=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},uT=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber",triggerReset:u={},reset:c})=>{const d=s?{[l]:1}:{},[h,f]=C.useState(Qs(i??{},o,"")),[g,m]=C.useState(kg(n,Qs(r??{},o,n))),[v,y]=C.useState(!1),b=(w,I)=>{const F={};return Object.keys(I).forEach(p=>{F[`${w}${p}`]=I[p]}),F},x=(w,I,F,p)=>{let D=w;const $=b(n,{[I]:w});Array.isArray(w)&&(F==="array-of-object-to-array"?D=Vb(w,p):F==="array-of-object-to-string"?D=Nb(w,p):F==="array-to-string"&&(D=D.toString())),typeof t=="function"&&t({...h,[I]:D,...d},{...g,...$}),f(_=>({..._,[I]:D})),m(_=>({..._,...$}))},S=(w,I)=>{const p=b(n,{...I??w});typeof t=="function"&&t({...h,...w,...d},{...g,...p}),f(D=>({...D,...w})),m(D=>({...D,...p}))};return Mi(()=>{!v&&typeof t=="function"&&a&&(t(h,g),y(!0))},[h,g,v,a]),Mi(()=>{c&&(m(kg(n,Qs(r??{},o,n))),f(Qs(i??{},o,"")))},[c,u]),E.jsx(E.Fragment,{children:e({handlerOnChange:x,handlerOnChangeNative:S,value:h,nativeValue:g})})};function Kh(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 ts;(function(e){e.event="event",e.props="prop"})(ts||(ts={}));function vr(){}function cT(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(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Li(e){return!!(e||"").match(/\d/)}function Ri(e){return e==null}function dT(e){return typeof e=="number"&&isNaN(e)}function L3(e){return Ri(e)||dT(e)||typeof e=="number"&&!isFinite(e)}function H3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fT(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 hT(e,t,n){var r=fT(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 gT(e){var t=C.useRef(e);t.current=e;var n=C.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Qh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function mT(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 j3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Qp(e,t){return Array(t+1).join(e)}function W3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+Qp("0",Math.abs(o))+i:o>=s?i=i+Qp("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function e0(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Qh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(m,v,y){return m.length>y?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},c[0]));var h=j3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function jr(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 z3=cT(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),pT=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function bT(e,t,n){return Math.min(Math.max(e,t),n)}function ad(e){return Math.max(e.selectionStart,e.selectionEnd)}function vT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function G3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Z3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function yT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function xT(e,t,n,r,i,a,o){o===void 0&&(o=yT);var s=i.findIndex(function(S){return S}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var v=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(v&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var y=r;y<u&&(h[y]===-1||!a(n[y]));)y++;var b=y===u||h[y]===-1?c:h[y];for(y=r-1;y>0&&h[y]===-1;)y--;var x=y===-1||h[y]===-1?0:h[y]+1;return x>b?b:r-x<b-r?x:b}function vu(e,t,n,r){var i=e.length;if(t=bT(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 CT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Li(e[n])||Li(e[n-1]));return t}function X3(e,t,n,r,i,a){a===void 0&&(a=vr);var o=gT(function(g,m){var v,y;return L3(g)?(y="",v=""):typeof g=="number"||m?(y=typeof g=="number"?W3(g):g,v=r(y)):(y=i(g,void 0),v=r(y)),{formattedValue:v,numAsString:y}}),s=C.useState(function(){return o(Ri(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,m)},d=e,h=n;Ri(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return C.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function wT(e){return e.replace(/[^0-9]/g,"")}function DT(e){return e}function Y3(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,a=e.getInputRef,o=e.format;o===void 0&&(o=DT);var s=e.removeFormatting;s===void 0&&(s=wT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=vr);var f=e.onKeyDown;f===void 0&&(f=vr);var g=e.onMouseUp;g===void 0&&(g=vr);var m=e.onFocus;m===void 0&&(m=vr);var v=e.onBlur;v===void 0&&(v=vr);var y=e.value,b=e.getCaretBoundary;b===void 0&&(b=CT);var x=e.isValidInputCharacter;x===void 0&&(x=Li);var S=e.isCharacterSame,w=Kh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),I=X3(y,l,!!u,o,s,c),F=I[0],p=F.formattedValue,D=F.numAsString,$=I[1],_=C.useRef(),A=C.useRef({formattedValue:p,numAsString:D}),k=function(ee,re){A.current={formattedValue:ee.formattedValue,numAsString:ee.value},$(ee,re)},R=C.useState(!1),M=R[0],T=R[1],P=C.useRef(null),B=C.useRef({setCaretTimeout:null,focusTimeout:null});C.useEffect(function(){return T(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var O=o,L=function(ee,re){var pe=parseFloat(re);return{formattedValue:ee,value:re,floatValue:isNaN(pe)?void 0:pe}},H=function(ee,re,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(jr(ee,re),B.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==re&&jr(ee,re)},0))},z=function(ee,re,pe){return vu(ee,re,b(ee),pe)},X=function(ee,re,pe){var He=b(re),ct=xT(re,p,ee,pe,He,x,S);return ct=vu(re,ct,He),ct},G=function(ee){var re=ee.formattedValue;re===void 0&&(re="");var pe=ee.input,He=ee.source,ct=ee.event,Fe=ee.numAsString,_e;if(pe){var jt=ee.inputValue||pe.value,Wt=ad(pe);pe.value=re,_e=X(jt,re,Wt),_e!==void 0&&H(pe,_e,re)}re!==p&&k(L(re,Fe),{event:ct,source:He})};C.useEffect(function(){var ee=A.current,re=ee.formattedValue,pe=ee.numAsString;(p!==re||D!==pe)&&k(L(p,D),{event:void 0,source:ts.props})},[p,D]);var j=P.current?ad(P.current):void 0,V=typeof window<"u"?C.useLayoutEffect:C.useEffect;V(function(){var ee=P.current;if(p!==A.current.formattedValue&&ee){var re=X(A.current.formattedValue,p,j);ee.value=p,H(ee,re,p)}},[p]);var Z=function(ee,re,pe){var He=re.target,ct=_.current?pT(_.current,He.selectionEnd):z3(p,ee),Fe=Object.assign(Object.assign({},ct),{lastValue:p}),_e=s(ee,Fe),jt=O(_e);if(_e=s(jt,void 0),d&&!d(L(jt,_e))){var Wt=re.target,zt=ad(Wt),or=X(ee,p,zt);return Wt.value=p,H(Wt,or,p),!1}return G({formattedValue:jt,numAsString:_e,inputValue:ee,event:re,source:pe,input:re.target}),!0},q=function(ee,re){re===void 0&&(re=0);var pe=ee.selectionStart,He=ee.selectionEnd;_.current={selectionStart:pe,selectionEnd:He+re}},te=function(ee){var re=ee.target,pe=re.value,He=Z(pe,ee,ts.event);He&&h(ee),_.current=void 0},ue=function(ee){var re=ee.target,pe=ee.key,He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;Fe===void 0&&(Fe="");var _e;pe==="ArrowLeft"||pe==="Backspace"?_e=Math.max(He-1,0):pe==="ArrowRight"?_e=Math.min(He+1,Fe.length):pe==="Delete"&&(_e=He);var jt=0;pe==="Delete"&&He===ct&&(jt=1);var Wt=pe==="ArrowLeft"||pe==="ArrowRight";if(_e===void 0||He!==ct&&!Wt){f(ee),q(re,jt);return}var zt=_e;if(Wt){var or=pe==="ArrowLeft"?"left":"right";zt=z(Fe,_e,or),zt!==_e&&ee.preventDefault()}else pe==="Delete"&&!x(Fe[_e])?zt=z(Fe,_e,"right"):pe==="Backspace"&&!x(Fe[_e])&&(zt=z(Fe,_e,"left"));zt!==_e&&H(re,zt,Fe),f(ee),q(re,jt)},ie=function(ee){var re=ee.target,pe=function(){var He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;if(Fe===void 0&&(Fe=""),He===ct){var _e=z(Fe,He);_e!==He&&H(re,_e,Fe)}};pe(),requestAnimationFrame(function(){pe()}),g(ee),q(re)},Y=function(ee){ee.persist&&ee.persist();var re=ee.target,pe=ee.currentTarget;P.current=re,B.current.focusTimeout=setTimeout(function(){var He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;Fe===void 0&&(Fe="");var _e=z(Fe,He);_e!==He&&!(He===0&&ct===Fe.length)&&H(re,_e,Fe),m(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},me=function(ee){P.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),v(ee)},he=M&&vT()?"numeric":void 0,ce=Object.assign({inputMode:he},w,{type:t,value:p,onChange:te,onKeyDown:ue,onMouseUp:ie,onFocus:Y,onBlur:me});if(n==="text")return i?C.createElement(C.Fragment,null,i(p,w)||null):C.createElement("span",Object.assign({},w,{ref:a}),p);if(r){var Qe=r;return C.createElement(Qe,Object.assign({},ce,{ref:a}))}return C.createElement("input",Object.assign({},ce,{ref:a}))}function t0(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=nc(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=Qh(e,o),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=j3(g,n,!!r)),u&&(f=hT(f,u,s)),i&&(f=i+f),a&&(g=g+a),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function nc(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 ST(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function ET(e,t){return new RegExp("(^-)|[0-9]|"+H3(e),"g")}function _T(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function IT(e,t,n){var r;t===void 0&&(t=G3(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=nc(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(Li(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var v=s===0?"":g;e=e.substring(0,c)+v+e.substring(c+1,e.length)}var y=function(P,B,O){var L=!1,H=!1;a.startsWith("-")?L=!1:P.startsWith("--")?(L=!1,H=!0):o.startsWith("-")&&P.length===o.length?L=!1:P[0]==="-"&&(L=!0);var z=L?1:0;return H&&(z=2),z&&(P=P.substring(z),B-=z,O-=z),{value:P,start:B,end:O,hasNegation:L}},b=y(e,c,d),x=b.hasNegation;r=b,e=r.value,c=r.start,d=r.end;var S=y(t.lastValue,l.start,l.end),w=S.start,I=S.end,F=S.value,p=e.substring(c,d);e.length&&F.length&&(w>F.length-o.length||I<a.length)&&!(p&&o.startsWith(p))&&(e=F);var D=0;e.startsWith(a)?D+=a.length:c<a.length&&(D=c),e=e.substring(D),d-=D;var $=e.length,_=e.length-o.length;e.endsWith(o)?$=_:(d>_||d>e.length-o.length)&&($=d),e=e.substring(0,$),e=ST(x?"-"+e:e,i),e=(e.match(ET(g))||[]).join("");var A=e.indexOf(g);e=e.replace(new RegExp(H3(g),"g"),function(P,B){return B===A?".":""});var k=Qh(e,i),R=k.beforeDecimal,M=k.afterDecimal,T=k.addNegation;return u.end-u.start<l.end-l.start&&R===""&&m&&!parseFloat(M)&&(e=T?"-":""),e}function $T(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}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function RT(e){var t=nc(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
136
|
+
${m||u.subs.length>0&&y?(_=c.activeColor)==null?void 0:_[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
137
|
+
`,onClick:b,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[C.isValidElement(u.svgIcon)&&E.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&y||f?u.svgIconActive:u.svgIcon}),E.jsx("div",{className:tt["item-label"],children:u.label}),u.subs.length>0&&n&&E.jsxs("div",{className:tt["item-icon-subs"],children:[C.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&E.jsx("div",{className:tt["divider-item-sidebar"]})]})),u.subs.length>0?E.jsxs("div",{className:`${n??y?"":"-mt-2"}`,children:[d,E.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!y?tt.hidden:""}`,children:u.subs.map(F=>C.createElement(N3,{...F,as:F.manualRoute?"div":F.subs.length>0?e:u.linkComponent,key:F.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&E.jsx("div",{className:tt["divider-item-sidebar"]})]}):d):E.jsx(E.Fragment,{})},V3=C.forwardRef((e,t)=>{var M;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,v=C.useRef(null),y={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":bn["payhere-brand-base-white"],"payhere-brand-base-transparent":bn["payhere-brand-base-transparent"],"laba-white":bn["laba-white"]}},[b,x]=C.useState(null),[S,w]=C.useState(null),[_,F]=C.useState(""),[p,D]=C.useState(),[$,I]=C.useState(0),A=()=>{var B;let T=0;const P=document.getElementById("icon-company-sidebar");(B=P==null?void 0:P.childNodes)==null||B.forEach(O=>{T+=O.getBoundingClientRect().width??0}),D(T+c+"px")},k=()=>{I(window.innerWidth)},R=()=>{x(!S),S?D("auto"):setTimeout(()=>{A()},100)};return C.useEffect(()=>{$>=768?(x(!0),setTimeout(()=>{A()},100)):(x(!1),D("auto"))},[$]),C.useEffect(()=>{typeof b=="boolean"&&w(b)},[b]),C.useImperativeHandle(t,()=>({openSidebar:b,setOpenSidebar:x,handlerClickCollapse:R}),[b,S]),C.useEffect(()=>(i&&i.split("/").length>1&&F(i+"/"),A(),k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[]),E.jsxs("div",{className:y.variants[h],...m,ref:v,children:[E.jsxs("div",{id:"1ru-sidebar",className:`${bn.sidebar} ${typeof S=="boolean"&&S?bn["sidebar-open"]:""} ${typeof S=="boolean"&&!S?bn["sidebar-close"]:""}`,children:[C.isValidElement(s)&&E.jsxs("div",{className:bn["button-collaps-sidebar"],onClick:R,children:[b&&s,b?"":C.isValidElement(l)?l:s]}),E.jsx("div",{className:bn["container-icon-company-sidebar"],children:E.jsxs("div",{id:"icon-company-sidebar",className:bn["icon-company-sidebar"],style:{width:p&&y.withCuctomWidthIconCompany.includes(h)?p:"100%"},children:[C.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:x})]})}),E.jsx("div",{className:bn["menu-sidebar"],onMouseOver:()=>{b||w(!0)},onMouseOut:()=>{b||w(!1)},children:u.map(T=>C.createElement(N3,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:_,open:S,patch:i,iconSubs:o,variant:h,setShow:F,onClickItems:d}))}),f&&E.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[C.isValidElement(f)&&E.jsx("div",{children:f}),typeof f=="function"&&E.jsx("div",{children:f()})]})]}),b&&E.jsx("div",{className:bn["splace-screen"],onClick:R}),E.jsxs("div",{className:bn["content-sidebar"],children:[g&&((M=C.Children)==null?void 0:M.map(r,T=>E.jsx(E.Fragment,{children:C.isValidElement(T)&&E.jsx(E.Fragment,{children:C.cloneElement(T,{openSidebar:b,handlerClickCollapse:R})})}))),!g&&E.jsx(E.Fragment,{children:r})]})]})});V3.displayName="Sidebar";const eT="_collapse_gto9s_1",tT={collapse:eT},nT=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,delayTriggerCalculateHeight:s=0})=>{const[l,u]=C.useState("1000vh"),c=()=>{var h;const d=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(d||"1000vh")};return C.useEffect(()=>{const d=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(d),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[o]),E.jsx("div",{className:`${tT.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:E.jsx("div",{id:t,className:r??"",children:e})})},rT="_modal_9v1mi_1",Mr={modal:rT,"modal-content":"_modal-content_9v1mi_1","with-overlay":"_with-overlay_9v1mi_14","modal-small":"_modal-small_9v1mi_24","modal-medium":"_modal-medium_9v1mi_28","modal-regular":"_modal-regular_9v1mi_32","modal-large":"_modal-large_9v1mi_36","modal-show":"_modal-show_9v1mi_40"},iT=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:Mr["modal-small"],medium:Mr["modal-medium"],regular:Mr["modal-regular"],large:Mr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return E.jsx(E.Fragment,{children:a&&document.getElementById(r)&&Oa.createPortal(E.jsx("div",{id:n,onClick:f,className:`${Mr.modal} ${i?Mr["with-overlay"]:""} ${a?Mr["modal-show"]:""} ${l??""}`,children:E.jsx(d,{onClick:g=>g.stopPropagation(),className:`${Mr["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},aT="_dot_10oqk_31",zn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:aT,"right-content":"_right-content_10oqk_34"},oT=({children:e,noTime:t=!1})=>E.jsx("div",{className:`${zn["timeline-container"]} ${t?zn["no-time"]:""}`,children:e}),sT=({children:e,time:t,clasName:n,noTime:r=!1})=>E.jsxs("div",{className:zn["timeline-content"],children:[E.jsx("div",{className:`${zn["left-content"]} ${r?zn["no-time"]:""}`,children:E.jsxs("div",{className:zn["time-content"],children:[!r&&E.jsx("time",{className:zn["text-time"],children:t??""}),E.jsx("div",{className:zn.dot})]})}),E.jsx("div",{className:`${zn["right-content"]} ${r?zn["no-time"]:""} ${n??""}`,children:e})]}),lT=Object.assign(oT,{TimelineContent:sT}),Qs=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},uT=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber",triggerReset:u={},reset:c})=>{const d=s?{[l]:1}:{},[h,f]=C.useState(Qs(i??{},o,"")),[g,m]=C.useState(kg(n,Qs(r??{},o,n))),[v,y]=C.useState(!1),b=(w,_)=>{const F={};return Object.keys(_).forEach(p=>{F[`${w}${p}`]=_[p]}),F},x=(w,_,F,p)=>{let D=w;const $=b(n,{[_]:w});Array.isArray(w)&&(F==="array-of-object-to-array"?D=Vb(w,p):F==="array-of-object-to-string"?D=Nb(w,p):F==="array-to-string"&&(D=D.toString())),typeof t=="function"&&t({...h,[_]:D,...d},{...g,...$}),f(I=>({...I,[_]:D})),m(I=>({...I,...$}))},S=(w,_)=>{const p=b(n,{..._??w});typeof t=="function"&&t({...h,...w,...d},{...g,...p}),f(D=>({...D,...w})),m(D=>({...D,...p}))};return Mi(()=>{!v&&typeof t=="function"&&a&&(t(h,g),y(!0))},[h,g,v,a]),Mi(()=>{c&&(m(kg(n,Qs(r??{},o,n))),f(Qs(i??{},o,"")))},[c,u]),E.jsx(E.Fragment,{children:e({handlerOnChange:x,handlerOnChangeNative:S,value:h,nativeValue:g})})};function Kh(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 ts;(function(e){e.event="event",e.props="prop"})(ts||(ts={}));function vr(){}function cT(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(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Li(e){return!!(e||"").match(/\d/)}function Ri(e){return e==null}function dT(e){return typeof e=="number"&&isNaN(e)}function L3(e){return Ri(e)||dT(e)||typeof e=="number"&&!isFinite(e)}function H3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fT(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 hT(e,t,n){var r=fT(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 gT(e){var t=C.useRef(e);t.current=e;var n=C.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Qh(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function mT(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 j3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Qp(e,t){return Array(t+1).join(e)}function W3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+Qp("0",Math.abs(o))+i:o>=s?i=i+Qp("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function e0(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Qh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(m,v,y){return m.length>y?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},c[0]));var h=j3(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function jr(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 z3=cT(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),pT=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function bT(e,t,n){return Math.min(Math.max(e,t),n)}function ad(e){return Math.max(e.selectionStart,e.selectionEnd)}function vT(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function G3(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Z3(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function yT(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function xT(e,t,n,r,i,a,o){o===void 0&&(o=yT);var s=i.findIndex(function(S){return S}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var v=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(v&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var y=r;y<u&&(h[y]===-1||!a(n[y]));)y++;var b=y===u||h[y]===-1?c:h[y];for(y=r-1;y>0&&h[y]===-1;)y--;var x=y===-1||h[y]===-1?0:h[y]+1;return x>b?b:r-x<b-r?x:b}function vu(e,t,n,r){var i=e.length;if(t=bT(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 CT(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Li(e[n])||Li(e[n-1]));return t}function X3(e,t,n,r,i,a){a===void 0&&(a=vr);var o=gT(function(g,m){var v,y;return L3(g)?(y="",v=""):typeof g=="number"||m?(y=typeof g=="number"?W3(g):g,v=r(y)):(y=i(g,void 0),v=r(y)),{formattedValue:v,numAsString:y}}),s=C.useState(function(){return o(Ri(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,m)},d=e,h=n;Ri(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return C.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function wT(e){return e.replace(/[^0-9]/g,"")}function DT(e){return e}function Y3(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,a=e.getInputRef,o=e.format;o===void 0&&(o=DT);var s=e.removeFormatting;s===void 0&&(s=wT);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=vr);var f=e.onKeyDown;f===void 0&&(f=vr);var g=e.onMouseUp;g===void 0&&(g=vr);var m=e.onFocus;m===void 0&&(m=vr);var v=e.onBlur;v===void 0&&(v=vr);var y=e.value,b=e.getCaretBoundary;b===void 0&&(b=CT);var x=e.isValidInputCharacter;x===void 0&&(x=Li);var S=e.isCharacterSame,w=Kh(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=X3(y,l,!!u,o,s,c),F=_[0],p=F.formattedValue,D=F.numAsString,$=_[1],I=C.useRef(),A=C.useRef({formattedValue:p,numAsString:D}),k=function(ee,re){A.current={formattedValue:ee.formattedValue,numAsString:ee.value},$(ee,re)},R=C.useState(!1),M=R[0],T=R[1],P=C.useRef(null),B=C.useRef({setCaretTimeout:null,focusTimeout:null});C.useEffect(function(){return T(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var O=o,L=function(ee,re){var pe=parseFloat(re);return{formattedValue:ee,value:re,floatValue:isNaN(pe)?void 0:pe}},H=function(ee,re,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(jr(ee,re),B.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==re&&jr(ee,re)},0))},z=function(ee,re,pe){return vu(ee,re,b(ee),pe)},X=function(ee,re,pe){var He=b(re),ct=xT(re,p,ee,pe,He,x,S);return ct=vu(re,ct,He),ct},G=function(ee){var re=ee.formattedValue;re===void 0&&(re="");var pe=ee.input,He=ee.source,ct=ee.event,Fe=ee.numAsString,_e;if(pe){var jt=ee.inputValue||pe.value,Wt=ad(pe);pe.value=re,_e=X(jt,re,Wt),_e!==void 0&&H(pe,_e,re)}re!==p&&k(L(re,Fe),{event:ct,source:He})};C.useEffect(function(){var ee=A.current,re=ee.formattedValue,pe=ee.numAsString;(p!==re||D!==pe)&&k(L(p,D),{event:void 0,source:ts.props})},[p,D]);var j=P.current?ad(P.current):void 0,V=typeof window<"u"?C.useLayoutEffect:C.useEffect;V(function(){var ee=P.current;if(p!==A.current.formattedValue&&ee){var re=X(A.current.formattedValue,p,j);ee.value=p,H(ee,re,p)}},[p]);var Z=function(ee,re,pe){var He=re.target,ct=I.current?pT(I.current,He.selectionEnd):z3(p,ee),Fe=Object.assign(Object.assign({},ct),{lastValue:p}),_e=s(ee,Fe),jt=O(_e);if(_e=s(jt,void 0),d&&!d(L(jt,_e))){var Wt=re.target,zt=ad(Wt),or=X(ee,p,zt);return Wt.value=p,H(Wt,or,p),!1}return G({formattedValue:jt,numAsString:_e,inputValue:ee,event:re,source:pe,input:re.target}),!0},q=function(ee,re){re===void 0&&(re=0);var pe=ee.selectionStart,He=ee.selectionEnd;I.current={selectionStart:pe,selectionEnd:He+re}},te=function(ee){var re=ee.target,pe=re.value,He=Z(pe,ee,ts.event);He&&h(ee),I.current=void 0},ue=function(ee){var re=ee.target,pe=ee.key,He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;Fe===void 0&&(Fe="");var _e;pe==="ArrowLeft"||pe==="Backspace"?_e=Math.max(He-1,0):pe==="ArrowRight"?_e=Math.min(He+1,Fe.length):pe==="Delete"&&(_e=He);var jt=0;pe==="Delete"&&He===ct&&(jt=1);var Wt=pe==="ArrowLeft"||pe==="ArrowRight";if(_e===void 0||He!==ct&&!Wt){f(ee),q(re,jt);return}var zt=_e;if(Wt){var or=pe==="ArrowLeft"?"left":"right";zt=z(Fe,_e,or),zt!==_e&&ee.preventDefault()}else pe==="Delete"&&!x(Fe[_e])?zt=z(Fe,_e,"right"):pe==="Backspace"&&!x(Fe[_e])&&(zt=z(Fe,_e,"left"));zt!==_e&&H(re,zt,Fe),f(ee),q(re,jt)},ie=function(ee){var re=ee.target,pe=function(){var He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;if(Fe===void 0&&(Fe=""),He===ct){var _e=z(Fe,He);_e!==He&&H(re,_e,Fe)}};pe(),requestAnimationFrame(function(){pe()}),g(ee),q(re)},Y=function(ee){ee.persist&&ee.persist();var re=ee.target,pe=ee.currentTarget;P.current=re,B.current.focusTimeout=setTimeout(function(){var He=re.selectionStart,ct=re.selectionEnd,Fe=re.value;Fe===void 0&&(Fe="");var _e=z(Fe,He);_e!==He&&!(He===0&&ct===Fe.length)&&H(re,_e,Fe),m(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},me=function(ee){P.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),v(ee)},he=M&&vT()?"numeric":void 0,ce=Object.assign({inputMode:he},w,{type:t,value:p,onChange:te,onKeyDown:ue,onMouseUp:ie,onFocus:Y,onBlur:me});if(n==="text")return i?C.createElement(C.Fragment,null,i(p,w)||null):C.createElement("span",Object.assign({},w,{ref:a}),p);if(r){var Qe=r;return C.createElement(Qe,Object.assign({},ce,{ref:a}))}return C.createElement("input",Object.assign({},ce,{ref:a}))}function t0(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=nc(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=Qh(e,o),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=j3(g,n,!!r)),u&&(f=hT(f,u,s)),i&&(f=i+f),a&&(g=g+a),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function nc(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 ST(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function ET(e,t){return new RegExp("(^-)|[0-9]|"+H3(e),"g")}function _T(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function IT(e,t,n){var r;t===void 0&&(t=G3(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=nc(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(Li(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var v=s===0?"":g;e=e.substring(0,c)+v+e.substring(c+1,e.length)}var y=function(P,B,O){var L=!1,H=!1;a.startsWith("-")?L=!1:P.startsWith("--")?(L=!1,H=!0):o.startsWith("-")&&P.length===o.length?L=!1:P[0]==="-"&&(L=!0);var z=L?1:0;return H&&(z=2),z&&(P=P.substring(z),B-=z,O-=z),{value:P,start:B,end:O,hasNegation:L}},b=y(e,c,d),x=b.hasNegation;r=b,e=r.value,c=r.start,d=r.end;var S=y(t.lastValue,l.start,l.end),w=S.start,_=S.end,F=S.value,p=e.substring(c,d);e.length&&F.length&&(w>F.length-o.length||_<a.length)&&!(p&&o.startsWith(p))&&(e=F);var D=0;e.startsWith(a)?D+=a.length:c<a.length&&(D=c),e=e.substring(D),d-=D;var $=e.length,I=e.length-o.length;e.endsWith(o)?$=I:(d>I||d>e.length-o.length)&&($=d),e=e.substring(0,$),e=ST(x?"-"+e:e,i),e=(e.match(ET(g))||[]).join("");var A=e.indexOf(g);e=e.replace(new RegExp(H3(g),"g"),function(P,B){return B===A?".":""});var k=Qh(e,i),R=k.beforeDecimal,M=k.afterDecimal,T=k.addNegation;return u.end-u.start<l.end-l.start&&R===""&&m&&!parseFloat(M)&&(e=T?"-":""),e}function $T(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}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function RT(e){var t=nc(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
138
138
|
Decimal separator can't be same as thousand separator.
|
139
139
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
140
140
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
@@ -142,7 +142,7 @@ You should wrap it with \`css\` like this:
|
|
142
142
|
Prefix can't start with '-' when allowNegative is true.
|
143
143
|
prefix: `+i+`
|
144
144
|
allowNegative: `+a+`
|
145
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function AT(e){e=RT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=vr);var a=e.onBlur;a===void 0&&(a=vr);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=Kh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=nc(e),v=m.decimalSeparator,y=m.allowedDecimalSeparators,b=function(T){return t0(T,e)},x=function(T,P){return IT(T,P,e)},S=Ri(d)?c:d,w=h??_T(S,u,t);Ri(d)?Ri(c)||(w=w||typeof c=="number"):w=w||typeof d=="number";var I=function(T){return L3(T)?T:(typeof T=="number"&&(T=W3(T)),w&&typeof s=="number"?e0(T,s,!!l):T)},F=X3(I(d),I(c),!!w,b,x,f),p=F[0],D=p.numAsString,$=p.formattedValue,_=F[1],A=function(T){var P=T.target,B=T.key,O=P.selectionStart,L=P.selectionEnd,H=P.value;if(H===void 0&&(H=""),(B==="Backspace"||B==="Delete")&&L<u.length){T.preventDefault();return}if(O!==L){i(T);return}B==="Backspace"&&H[0]==="-"&&O===u.length+1&&n&&jr(P,1),s&&l&&(B==="Backspace"&&H[O-1]===v?(jr(P,O-1),T.preventDefault()):B==="Delete"&&H[O]===v&&T.preventDefault()),y!=null&&y.includes(B)&&H[O]===v&&jr(P,O+1);var z=o===!0?",":o;B==="Backspace"&&H[O-1]===z&&jr(P,O-1),B==="Delete"&&H[O]===z&&jr(P,O+1),i(T)},k=function(T){var P=D;if(P.match(/\d/g)||(P=""),r||(P=mT(P)),l&&s&&(P=e0(P,s,l)),P!==D){var B=t0(P,e);_({formattedValue:B,value:P,floatValue:parseFloat(P)},{event:T,source:ts.event})}a(T)},R=function(T){return T===v?!0:Li(T)},M=function(T){var P=T.currentValue,B=T.lastValue,O=T.formattedValue,L=T.currentValueIndex,H=T.formattedValueIndex,z=P[L],X=O[H],G=z3(B,P),j=G.to;return L>=j.start&&L<j.end&&y&&y.includes(z)&&X===v?!0:z===X};return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:R,isCharacterSame:M,onValueChange:_,format:b,removeFormatting:x,getCaretBoundary:function(T){return $T(T,e)},onKeyDown:A,onBlur:k})}function FT(e){var t=AT(e);return C.createElement(Y3,Object.assign({},t))}function PT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||Z3(i,o),o+=1);return s.join("")}function TT(e,t,n){t===void 0&&(t=G3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(v){return r[v]===i},u=function(v,y){for(var b="",x=0;x<v.length;x++)l(y+x)&&Li(v[x])&&(b+=v[x]);return b},c=function(v){return v.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Li(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(f,0)+c(g)+u(m,a.end)}function kT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=Z3(r,o-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function MT(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function BT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function OT(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=vr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Kh(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);MT(e);var u=function(g){return kT(g,e)},c=function(g){var m=g.key,v=g.target,y=v.selectionStart,b=v.selectionEnd,x=v.value;if(y!==b){r(g);return}var S=y;if(m==="Backspace"||m==="Delete"){var w="right";if(m==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;w="left"}else{for(var I=t.length;S<I&&t[S]!==i;)S++;w="right"}S=vu(x,S,u(x),w)}else t[S]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(S=vu(x,S+1,u(x),"right"));S!==y&&jr(v,S),r(g)},d=Ri(a)?o:a,h=s??BT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return PT(g,f)},removeFormatting:function(g,m){return TT(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function NT(e){var t=OT(e);return C.createElement(Y3,Object.assign({},t))}const VT=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>E.jsx(FT,{isAllowed:o=>e!==void 0&&nr(e)&&rt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:rt(e).toString()}}),!1):t!==void 0&&nr(t)&&rt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:rt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),LT=({children:e,containerId:t="portal-root"})=>{const[n,r]=C.useState(null);return C.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?Oa.createPortal(e,n):null},HT={"button-remove":"_button-remove_1o2yg_1"},jT=()=>E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),WT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),U3=e=>{const t=C.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=o||["image/png","image/jpeg","image/jpg"],[f,g]=C.useState(""),m={internal:f||s,external:s||f},v=x=>{if(x!=null&&x.length){const S=x[0],w=S.size/1024/1024;let I="";if(h.some(F=>{var p;return(p=x[0].type)==null?void 0:p.includes(F)})?w>a?I=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):I="Berkas tidak didukung, silahkan pilih file kembali.",g(I),d==null||d(I),!(t!=null&&t.current))return;t.current.value=""}},y=x=>{var S;x.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},b=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return E.jsxs(E.Fragment,{children:[E.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{v(x.target.files)}}),E.jsx(zf,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>y(x),startIcon:E.jsx(WT,{}),endIcon:n&&E.jsx("div",{className:HT["button-remove"],onClick:x=>b(x),children:E.jsx(jT,{})}),error:m[c],...u})]})};U3.displayName="UploadFile";const zT=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,triggerCalCulateContainer:l={},...u})=>{const[c,d]=C.useState(e),[h,f]=C.useState(0),g=C.useRef(new Array(t).fill(null)),m=C.useRef(null),v=C.useCallback(()=>{var I;const x=((I=m.current)==null?void 0:I.offsetWidth)??0;let S=0,w=0;g.current.forEach((F,p)=>{F&&(S+=F.offsetWidth,p>0&&(S+=o),S<=x&&w++)}),d(C.Children.toArray(e).slice(0,w)),f(C.Children.count(e)-w)},[e,o]);C.useEffect(()=>(v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}),[]);const y=C.useMemo(()=>C.Children.map(c,(x,S)=>C.cloneElement(x,{ref:w=>g.current[S]=w,key:`child-${S}`})),[c]);Mi(()=>{l&&(d(e),setTimeout(()=>v(),100))},[l]);const b={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(b.maxWidth=n),E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:m,style:b,className:a??"",...u,children:y}),h>0&&E.jsx(E.Fragment,{children:r(h)})]})},GT="_container_1wopr_1",ZT="_image_1wopr_5",cr={container:GT,"image-content":"_image-content_1wopr_5",image:ZT,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},XT=({className:e})=>E.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:E.jsx("g",{id:"x",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
145
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function AT(e){e=RT(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=vr);var a=e.onBlur;a===void 0&&(a=vr);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=Kh(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=nc(e),v=m.decimalSeparator,y=m.allowedDecimalSeparators,b=function(T){return t0(T,e)},x=function(T,P){return IT(T,P,e)},S=Ri(d)?c:d,w=h??_T(S,u,t);Ri(d)?Ri(c)||(w=w||typeof c=="number"):w=w||typeof d=="number";var _=function(T){return L3(T)?T:(typeof T=="number"&&(T=W3(T)),w&&typeof s=="number"?e0(T,s,!!l):T)},F=X3(_(d),_(c),!!w,b,x,f),p=F[0],D=p.numAsString,$=p.formattedValue,I=F[1],A=function(T){var P=T.target,B=T.key,O=P.selectionStart,L=P.selectionEnd,H=P.value;if(H===void 0&&(H=""),(B==="Backspace"||B==="Delete")&&L<u.length){T.preventDefault();return}if(O!==L){i(T);return}B==="Backspace"&&H[0]==="-"&&O===u.length+1&&n&&jr(P,1),s&&l&&(B==="Backspace"&&H[O-1]===v?(jr(P,O-1),T.preventDefault()):B==="Delete"&&H[O]===v&&T.preventDefault()),y!=null&&y.includes(B)&&H[O]===v&&jr(P,O+1);var z=o===!0?",":o;B==="Backspace"&&H[O-1]===z&&jr(P,O-1),B==="Delete"&&H[O]===z&&jr(P,O+1),i(T)},k=function(T){var P=D;if(P.match(/\d/g)||(P=""),r||(P=mT(P)),l&&s&&(P=e0(P,s,l)),P!==D){var B=t0(P,e);I({formattedValue:B,value:P,floatValue:parseFloat(P)},{event:T,source:ts.event})}a(T)},R=function(T){return T===v?!0:Li(T)},M=function(T){var P=T.currentValue,B=T.lastValue,O=T.formattedValue,L=T.currentValueIndex,H=T.formattedValueIndex,z=P[L],X=O[H],G=z3(B,P),j=G.to;return L>=j.start&&L<j.end&&y&&y.includes(z)&&X===v?!0:z===X};return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:R,isCharacterSame:M,onValueChange:I,format:b,removeFormatting:x,getCaretBoundary:function(T){return $T(T,e)},onKeyDown:A,onBlur:k})}function FT(e){var t=AT(e);return C.createElement(Y3,Object.assign({},t))}function PT(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||Z3(i,o),o+=1);return s.join("")}function TT(e,t,n){t===void 0&&(t=G3(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(v){return r[v]===i},u=function(v,y){for(var b="",x=0;x<v.length;x++)l(y+x)&&Li(v[x])&&(b+=v[x]);return b},c=function(v){return v.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))Li(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(f,0)+c(g)+u(m,a.end)}function kT(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=Z3(r,o-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function MT(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function BT(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function OT(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=vr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Kh(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);MT(e);var u=function(g){return kT(g,e)},c=function(g){var m=g.key,v=g.target,y=v.selectionStart,b=v.selectionEnd,x=v.value;if(y!==b){r(g);return}var S=y;if(m==="Backspace"||m==="Delete"){var w="right";if(m==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;w="left"}else{for(var _=t.length;S<_&&t[S]!==i;)S++;w="right"}S=vu(x,S,u(x),w)}else t[S]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(S=vu(x,S+1,u(x),"right"));S!==y&&jr(v,S),r(g)},d=Ri(a)?o:a,h=s??BT(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return PT(g,f)},removeFormatting:function(g,m){return TT(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function NT(e){var t=OT(e);return C.createElement(Y3,Object.assign({},t))}const VT=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>E.jsx(FT,{isAllowed:o=>e!==void 0&&nr(e)&&rt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:rt(e).toString()}}),!1):t!==void 0&&nr(t)&&rt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:rt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),LT=({children:e,containerId:t="portal-root"})=>{const[n,r]=C.useState(null);return C.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?Oa.createPortal(e,n):null},HT={"button-remove":"_button-remove_1o2yg_1"},jT=()=>E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),WT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),U3=e=>{const t=C.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:d}=e,h=o||["image/png","image/jpeg","image/jpg"],[f,g]=C.useState(""),m={internal:f||s,external:s||f},v=x=>{if(x!=null&&x.length){const S=x[0],w=S.size/1024/1024;let _="";if(h.some(F=>{var p;return(p=x[0].type)==null?void 0:p.includes(F)})?w>a?_=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):_="Berkas tidak didukung, silahkan pilih file kembali.",g(_),d==null||d(_),!(t!=null&&t.current))return;t.current.value=""}},y=x=>{var S;x.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},b=x=>{x.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return E.jsxs(E.Fragment,{children:[E.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:x=>{v(x.target.files)}}),E.jsx(zf,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:x=>y(x),startIcon:E.jsx(WT,{}),endIcon:n&&E.jsx("div",{className:HT["button-remove"],onClick:x=>b(x),children:E.jsx(jT,{})}),error:m[c],...u})]})};U3.displayName="UploadFile";const zT=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,triggerCalCulateContainer:l={},...u})=>{const[c,d]=C.useState(e),[h,f]=C.useState(0),g=C.useRef(new Array(t).fill(null)),m=C.useRef(null),v=C.useCallback(()=>{var _;const x=((_=m.current)==null?void 0:_.offsetWidth)??0;let S=0,w=0;g.current.forEach((F,p)=>{F&&(S+=F.offsetWidth,p>0&&(S+=o),S<=x&&w++)}),d(C.Children.toArray(e).slice(0,w)),f(C.Children.count(e)-w)},[e,o]);C.useEffect(()=>(v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}),[]);const y=C.useMemo(()=>C.Children.map(c,(x,S)=>C.cloneElement(x,{ref:w=>g.current[S]=w,key:`child-${S}`})),[c]);Mi(()=>{l&&(d(e),setTimeout(()=>v(),100))},[l]);const b={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(b.maxWidth=n),E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:m,style:b,className:a??"",...u,children:y}),h>0&&E.jsx(E.Fragment,{children:r(h)})]})},GT="_container_1wopr_1",ZT="_image_1wopr_5",cr={container:GT,"image-content":"_image-content_1wopr_5",image:ZT,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},XT=({className:e})=>E.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:E.jsx("g",{id:"x",children:E.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
146
146
|
6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
|
147
147
|
5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
|
148
148
|
6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
|
@@ -153,7 +153,7 @@ You should wrap it with \`css\` like this:
|
|
153
153
|
13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
|
154
154
|
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),YT=({className:e})=>E.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 ${e??""}`,children:E.jsx("g",{id:"upload",children:E.jsx("path",{id:"Vector",d:`M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
|
155
155
|
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
156
|
-
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),UT=({onChange:e,valueUrl:t,validateFile:n,validateFileDesc:r="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:i=2,icon:a,desc:o,classNameContainer:s,classNameImage:l,classNameAction:u})=>{const c=C.useRef(null),d=n||["image/png","image/jpeg","image/jpg"],[h,f]=C.useState(""),[g,m]=C.useState(""),v=x=>{if(x!=null&&x.length){const S=x[0],w=S.size/1024/1024;if(!d.some(
|
156
|
+
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),UT=({onChange:e,valueUrl:t,validateFile:n,validateFileDesc:r="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:i=2,icon:a,desc:o,classNameContainer:s,classNameImage:l,classNameAction:u})=>{const c=C.useRef(null),d=n||["image/png","image/jpeg","image/jpg"],[h,f]=C.useState(""),[g,m]=C.useState(""),v=x=>{if(x!=null&&x.length){const S=x[0],w=S.size/1024/1024;if(!d.some(_=>{var F;return(F=x[0].type)==null?void 0:F.includes(_)}))m("Berkas tidak didukung, silahkan pilih file kembali.");else if(w>i){const _=`${x.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${i}MB.`;m(_)}else{if(!(c!=null&&c.current))return;m(""),e(S),f(URL.createObjectURL(S)),c.current.value=""}}},y=x=>{x.preventDefault(),v(x.dataTransfer.files)},b=x=>{x.preventDefault(),c!=null&&c.current&&(typeof e=="function"&&e(null),f(""),c.current.value="")};return E.jsxs("div",{className:`${cr.container} ${s}`,children:[E.jsx("input",{accept:d==null?void 0:d.join(", "),ref:c,hidden:!0,type:"file",multiple:!1,onChange:x=>{x.target.files&&v(x.target.files)}}),h||t?E.jsx("div",{className:`${cr["image-content"]} ${l}`,onDrop:y,onDragOver:x=>x.preventDefault(),onDragLeave:x=>x.preventDefault(),children:E.jsx("img",{src:h||t,alt:"upload-image",className:`${cr.image} ${l}`})}):E.jsxs("div",{className:`${cr["image-content"]} ${l}`,onDrop:y,onDragOver:x=>x.preventDefault(),onDragLeave:x=>x.preventDefault(),children:[a,E.jsx("div",{className:cr["text-desc"],children:typeof o=="function"?o():o})]}),E.jsxs("div",{className:cr["action-content"],children:[E.jsxs("div",{className:`${cr["button-content"]} ${u}`,children:[(h||t)&&E.jsx(Mn,{variants:"tertiary-red-600",size:"xs",startIcon:E.jsx(XT,{}),onClick:x=>b(x),children:"Hapus"}),E.jsxs(Mn,{variants:"tertiary-blue-700",size:"xs",onClick:()=>{var x;return(x=c.current)==null?void 0:x.click()},startIcon:E.jsx(YT,{}),children:[h||t?"Ganti":"Pilih"," Gambar"]})]}),E.jsx("p",{className:cr["text-desc"],children:r}),g&&E.jsx("p",{className:cr["text-error"],children:g})]})]})},JT="_container_qyhmv_1",qT="_label_qyhmv_4",KT="_disabled_qyhmv_9",QT="_textarea_qyhmv_15",ek="_error_qyhmv_41",It={container:JT,"size-medium":"_size-medium_qyhmv_1",label:qT,disabled:KT,"container-textarea":"_container-textarea_qyhmv_12",textarea:QT,error:ek,"label-error":"_label-error_qyhmv_49","size-medium-border-bottom":"_size-medium-border-bottom_qyhmv_57","size-m":"_size-m_qyhmv_1","solid-blue-300":"_solid-blue-300_qyhmv_169","dashed-blue-300":"_dashed-blue-300_qyhmv_182","solid-laba-blue-10":"_solid-laba-blue-10_qyhmv_192","dashed-laba-blue-10":"_dashed-laba-blue-10_qyhmv_205","border-bottom-laba-blue-08":"_border-bottom-laba-blue-08_qyhmv_215"},J3=C.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:d,minHeight:h=94,maxHeight:f=150,style:g,sizeInput:m="m",variant:v="solid-blue-300",...y}=e,b=C.useRef(null),x=hh(b,t),S={...g??{},maxHeight:f,height:d??h,minHeight:h},[w,_]=C.useState(!1),F={size:{m:It["size-m"],medium:It["size-medium"],"medium-border-bottom":It["size-medium-border-bottom"]},variant:{"solid-blue-300":{border:0,style:It["solid-blue-300"]},"dashed-blue-300":{border:3.7,style:It["dashed-blue-300"]},"solid-laba-blue-10":{border:0,style:It["solid-laba-blue-10"]},"dashed-laba-blue-10":{border:3.7,style:It["dashed-laba-blue-10"]},"border-bottom-laba-blue-08":{border:1,style:It["border-bottom-laba-blue-08"]}}},p=function(I){var A;_(!0),(A=e.onFocus)==null||A.call(e,I)},D=function(I){var A;_(!1),(A=e.onBlur)==null||A.call(e,I)},$=function(I){const A=(I==null?void 0:I.target)??b.current;A.style.height="0px",A.style.height=A.scrollHeight+F.variant[v].border+"px"};return fh(()=>(w&&b.current?b.current.addEventListener("input",$):$(),()=>{var I;(I=b.current)==null||I.removeEventListener("input",$)}),[w]),E.jsxs("div",{className:`${It.container}
|
157
157
|
${F.size[m]}
|
158
158
|
${F.variant[v].style}
|
159
159
|
${r??""}`,children:[u&&E.jsxs("label",{htmlFor:l??s,className:`${It.label} ${y.disabled?It.disabled:""} ${a??""}`,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsx("div",{className:`${It["container-textarea"]}`,children:E.jsx("textarea",{id:l??s,className:` ${c?It.error:""}
|
@@ -169,27 +169,27 @@ You should wrap it with \`css\` like this:
|
|
169
169
|
* https://www.chartjs.org
|
170
170
|
* (c) 2024 Chart.js Contributors
|
171
171
|
* Released under the MIT License
|
172
|
-
*/function dr(){}const Dk=(()=>{let e=0;return()=>e++})();function Ue(e){return e===null||typeof e>"u"}function pt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Mt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Hn(e,t){return Mt(e)?e:t}function Ee(e,t){return typeof e>"u"?t:e}const Sk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,eC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Je(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ge(e,t,n,r){let i,a,o;if(pt(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Ae(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function yu(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function xu(e){if(pt(e))return e.map(xu);if(Ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=xu(e[n[i]]);return t}return e}function tC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ek(e,t,n,r){if(!tC(e))return;const i=t[e],a=n[e];Ae(i)&&Ae(a)?rs(i,a,r):t[e]=xu(a)}function rs(e,t,n){const r=pt(t)?t:[t],i=r.length;if(!Ae(e))return e;n=n||{};const a=n.merger||Ek;let o;for(let s=0;s<i;++s){if(o=r[s],!Ae(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function wo(e,t){return rs(e,t,{merger:_k})}function _k(e,t,n){if(!tC(e))return;const r=t[e],i=n[e];Ae(r)&&Ae(i)?wo(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=xu(i))}const o0={"":e=>e,x:e=>e.x,y:e=>e.y};function Ik(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function $k(e){const t=Ik(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Hi(e,t){return(o0[t]||(o0[t]=$k(t)))(e)}function rg(e){return e.charAt(0).toUpperCase()+e.slice(1)}const is=e=>typeof e<"u",ti=e=>typeof e=="function",s0=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Rk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const lt=Math.PI,it=2*lt,Ak=it+lt,Cu=Number.POSITIVE_INFINITY,Fk=lt/180,vt=lt/2,ci=lt/4,l0=lt*2/3,nC=Math.log10,tr=Math.sign;function Do(e,t,n){return Math.abs(e-t)<n}function u0(e){const t=Math.round(e);e=Do(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(nC(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Pk(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function as(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Tk(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function kk(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Dr(e){return e*(lt/180)}function Mk(e){return e*(180/lt)}function c0(e){if(!Mt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function rC(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*lt&&(a+=it),{angle:a,distance:i}}function Cf(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Bk(e,t){return(e-t+Ak)%it-lt}function Xn(e){return(e%it+it)%it}function os(e,t,n,r){const i=Xn(e),a=Xn(t),o=Xn(n),s=Xn(a-i),l=Xn(o-i),u=Xn(i-a),c=Xn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Tt(e,t,n){return Math.max(t,Math.min(n,e))}function Ok(e){return Tt(e,-32768,32767)}function Sr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ig(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const _i=(e,t,n,r)=>ig(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),Nk=(e,t,n)=>ig(e,n,r=>e[r][t]>=n);function Vk(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const iC=["push","pop","shift","splice","unshift"];function Lk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iC.forEach(n=>{const r="_onData"+rg(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function d0(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(iC.forEach(a=>{delete e[a]}),delete e._chartjs)}function aC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const oC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function sC(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,oC.call(window,()=>{r=!1,e.apply(t,n)}))}}function Hk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const ag=e=>e==="start"?"left":e==="end"?"right":"center",Rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,jk=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Wk(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:u,max:c,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=Tt(Math.min(_i(s,l,u).lo,n?r:_i(t,l,o.getPixelForValue(u)).lo),0,r-1)),h?a=Tt(Math.max(_i(s,o.axis,c,!0).hi+1,n?0:_i(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function zk(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const rl=e=>e===0||e===1,f0=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),h0=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,So={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*vt)+1,easeOutSine:e=>Math.sin(e*vt),easeInOutSine:e=>-.5*(Math.cos(lt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>rl(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>rl(e)?e:f0(e,.075,.3),easeOutElastic:e=>rl(e)?e:h0(e,.075,.3),easeInOutElastic(e){return rl(e)?e:e<.5?.5*f0(e*2,.1125,.45):.5+.5*h0(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-So.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?So.easeInBounce(e*2)*.5:So.easeOutBounce(e*2-1)*.5+.5};function og(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function g0(e){return og(e)?e:new ns(e)}function sd(e){return og(e)?e:new ns(e).saturate(.5).darken(.1).hexString()}const Gk=["x","y","borderWidth","radius","tension"],Zk=["color","borderColor","backgroundColor"];function Xk(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Zk},numbers:{type:"number",properties:Gk}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Yk(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const m0=new Map;function Uk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=m0.get(n);return r||(r=new Intl.NumberFormat(e,t),m0.set(n,r)),r}function sg(e,t,n){return Uk(t,n).format(e)}const Jk={values(e){return pt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=qk(e,n)}const o=nC(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sg(e,r,l)}};function qk(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var lC={formatters:Jk};function Kk(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:lC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ji=Object.create(null),wf=Object.create(null);function Eo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function ld(e,t,n){return typeof t=="string"?rs(Eo(e,t),n):rs(Eo(e,""),t)}class Qk{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>sd(i.backgroundColor),this.hoverBorderColor=(r,i)=>sd(i.borderColor),this.hoverColor=(r,i)=>sd(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return ld(this,t,n)}get(t){return Eo(this,t)}describe(t,n){return ld(wf,t,n)}override(t,n){return ld(ji,t,n)}route(t,n,r,i){const a=Eo(this,t),o=Eo(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return Ae(l)?Object.assign({},u,l):Ee(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ft=new Qk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Xk,Yk,Kk]);function eM(e){return!e||Ue(e.size)||Ue(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function p0(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function di(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function b0(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Df(e,t,n,r){uC(e,t,n,r,null)}function uC(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let v=(g||0)*Fk;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,it):e.arc(n,r,m,0,it),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=l0,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=l0,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(v+ci)*l,d=Math.cos(v+ci)*(i?i/2-u:l),s=Math.sin(v+ci)*l,h=Math.sin(v+ci)*(i?i/2-u:l),e.arc(n-d,r-s,u,v-lt,v-vt),e.arc(n+h,r-o,u,v-vt,v),e.arc(n+d,r+s,u,v,v+vt),e.arc(n-h,r+o,u,v+vt,v+lt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}v+=ci;case"rectRot":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":v+=ci;case"cross":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),v+=ci,d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(v)*m,s=Math.sin(v)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ss(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function rc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ic(e){e.restore()}function tM(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function nM(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function rM(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ue(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function iM(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function aM(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function ls(e,t,n,r,i,a={}){const o=pt(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,rM(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&aM(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Ue(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),iM(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function wu(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*lt,lt,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,lt,vt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,vt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-vt,!0),e.lineTo(n+o.topLeft,r)}const oM=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sM=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lM(e,t){const n=(""+e).match(oM);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const uM=e=>+e||0;function lg(e,t){const n={},r=Ae(t),i=r?Object.keys(t):t,a=Ae(e)?r?o=>Ee(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=uM(a(o));return n}function cC(e){return lg(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Da(e){return lg(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _n(e){const t=cC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function kt(e,t){e=e||{},t=t||ft.font;let n=Ee(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ee(e.style,t.style);r&&!(""+r).match(sM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ee(e.family,t.family),lineHeight:lM(Ee(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ee(e.weight,t.weight),string:""};return i.string=eM(i),i}function il(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function cM(e,t,n){const{min:r,max:i}=e,a=eC(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Xi(e,t){return Object.assign(Object.create(e),t)}function ug(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=gC("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>ug([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return fC(s,l,()=>vM(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return y0(s).includes(l)},ownKeys(s){return y0(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function Ta(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:dC(e,r),setContext:a=>Ta(e,a,n,r),override:a=>Ta(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return fC(a,o,()=>fM(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function dC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ti(n)?n:()=>n,isIndexable:ti(r)?r:()=>r}}const dM=(e,t)=>e?e+rg(t):t,cg=(e,t)=>Ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function fC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function fM(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return ti(s)&&o.isScriptable(t)&&(s=hM(t,s,e,n)),pt(s)&&s.length&&(s=gM(t,s,e,o.isIndexable)),cg(t,s)&&(s=Ta(s,i,a&&a[t],o)),s}function hM(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),cg(e,l)&&(l=dg(i._scopes,i,e,l)),l}function gM(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Ae(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=dg(u,i,e,c);t.push(Ta(d,a,o&&o[e],s))}}return t}function hC(e,t,n){return ti(e)?e(t,n):e}const mM=(e,t)=>e===!0?t:typeof e=="string"?Hi(t,e):void 0;function pM(e,t,n,r,i){for(const a of t){const o=mM(n,a);if(o){e.add(o);const s=hC(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function dg(e,t,n,r){const i=t._rootScopes,a=hC(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=v0(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=v0(s,o,a,l,r),l===null)?!1:ug(Array.from(s),[""],i,a,()=>bM(t,n,r))}function v0(e,t,n,r,i){for(;n;)n=pM(e,t,n,r,i);return n}function bM(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return pt(i)&&Ae(n)?n:i||{}}function vM(e,t,n,r){let i;for(const a of t)if(i=gC(dM(a,e),n),typeof i<"u")return cg(e,i)?dg(n,r,e,i):i}function gC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function y0(e){let t=e._keys;return t||(t=e._keys=yM(e._scopes)),t}function yM(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const xM=Number.EPSILON||1e-14,ka=(e,t)=>t<e.length&&!e[t].skip&&e[t],mC=e=>e==="x"?"y":"x";function CM(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Cf(a,i),l=Cf(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function wM(e,t,n){const r=e.length;let i,a,o,s,l,u=ka(e,0);for(let c=0;c<r-1;++c)if(l=u,u=ka(e,c+1),!(!l||!u)){if(Do(t[c],0,xM)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function DM(e,t,n="x"){const r=mC(n),i=e.length;let a,o,s,l=ka(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=ka(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function SM(e,t="x"){const n=mC(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=ka(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=ka(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?tr(i[o-1])!==tr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}wM(e,i,a),DM(e,a,t)}function al(e,t,n){return Math.max(Math.min(e,n),t)}function EM(e,t){let n,r,i,a,o,s=ss(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ss(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=al(i.cp1x,t.left,t.right),i.cp1y=al(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=al(i.cp2x,t.left,t.right),i.cp2y=al(i.cp2y,t.top,t.bottom)))}function _M(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")SM(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=CM(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&EM(e,n)}function fg(){return typeof window<"u"&&typeof document<"u"}function hg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Du(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const ac=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function IM(e,t){return ac(e).getPropertyValue(t)}const $M=["top","right","bottom","left"];function Ai(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=$M[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const RM=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function AM(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(RM(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function pi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ac(n),a=i.boxSizing==="border-box",o=Ai(i,"padding"),s=Ai(i,"border","width"),{x:l,y:u,box:c}=AM(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function FM(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&hg(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=ac(a),l=Ai(s,"border","width"),u=Ai(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Du(s.maxWidth,a,"clientWidth"),i=Du(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Cu,maxHeight:i||Cu}}const ol=e=>Math.round(e*10)/10;function PM(e,t,n,r){const i=ac(e),a=Ai(i,"margin"),o=Du(i.maxWidth,e,"clientWidth")||Cu,s=Du(i.maxHeight,e,"clientHeight")||Cu,l=FM(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ai(i,"border","width"),f=Ai(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=ol(Math.min(u,o,l.maxWidth)),c=ol(Math.min(c,s,l.maxHeight)),u&&!c&&(c=ol(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=ol(Math.floor(c*r))),{width:u,height:c}}function x0(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const TM=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};fg()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function C0(e,t){const n=IM(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bi(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function kM(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function MM(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=bi(e,i,n),s=bi(i,a,n),l=bi(a,t,n),u=bi(o,s,n),c=bi(s,l,n);return bi(u,c,n)}const BM=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},OM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Sa(e,t,n){return e?BM(t,n):OM()}function pC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function bC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function vC(e){return e==="angle"?{between:os,compare:Bk,normalize:Xn}:{between:Sr,compare:(t,n)=>t-n,normalize:t=>t}}function w0({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function NM(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=vC(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function yC(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=vC(r),{start:c,end:d,loop:h,style:f}=NM(e,t,n),g=[];let m=!1,v=null,y,b,x;const S=()=>l(i,x,y)&&s(i,x)!==0,w=()=>s(a,y)===0||l(a,x,y),I=()=>m||S(),F=()=>!m||w();for(let p=c,D=c;p<=d;++p)b=t[p%o],!b.skip&&(y=u(b[r]),y!==x&&(m=l(y,i,a),v===null&&I()&&(v=s(y,i)===0?p:D),v!==null&&F()&&(g.push(w0({start:v,end:p,loop:h,count:o,style:f})),v=null),D=p,x=y));return v!==null&&g.push(w0({start:v,end:d,loop:h,count:o,style:f})),g}function xC(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=yC(r[i],e.points,t);a.length&&n.push(...a)}return n}function VM(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function LM(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function HM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=VM(n,i,a,r);if(r===!0)return D0(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return D0(e,LM(n,o,l,u),n,t)}function D0(e,t,n,r){return!r||!r.setContext||!n?t:jM(e,t,n,r)}function jM(e,t,n,r){const i=e._chart.getContext(),a=S0(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,m,v,y){const b=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=b;for(;n[m%l].skip;)m+=b;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:v,style:y}),c=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],v;for(h=d+1;h<=g.end;h++){const y=n[h%l];v=S0(r.setContext(Xi(i,{type:"segment",p0:m,p1:y,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),WM(v,c)&&f(d,h-1,g.loop,c),m=y,c=v}d<h-1&&f(d,h-1,g.loop,c)}return u}function S0(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function WM(e,t){if(!t)return!1;const n=[],r=function(i,a){return og(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
172
|
+
*/function dr(){}const Dk=(()=>{let e=0;return()=>e++})();function Ue(e){return e===null||typeof e>"u"}function pt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Mt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Hn(e,t){return Mt(e)?e:t}function Ee(e,t){return typeof e>"u"?t:e}const Sk=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,eC=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Je(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ge(e,t,n,r){let i,a,o;if(pt(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Ae(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function yu(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function xu(e){if(pt(e))return e.map(xu);if(Ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=xu(e[n[i]]);return t}return e}function tC(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ek(e,t,n,r){if(!tC(e))return;const i=t[e],a=n[e];Ae(i)&&Ae(a)?rs(i,a,r):t[e]=xu(a)}function rs(e,t,n){const r=pt(t)?t:[t],i=r.length;if(!Ae(e))return e;n=n||{};const a=n.merger||Ek;let o;for(let s=0;s<i;++s){if(o=r[s],!Ae(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function wo(e,t){return rs(e,t,{merger:_k})}function _k(e,t,n){if(!tC(e))return;const r=t[e],i=n[e];Ae(r)&&Ae(i)?wo(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=xu(i))}const o0={"":e=>e,x:e=>e.x,y:e=>e.y};function Ik(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function $k(e){const t=Ik(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Hi(e,t){return(o0[t]||(o0[t]=$k(t)))(e)}function rg(e){return e.charAt(0).toUpperCase()+e.slice(1)}const is=e=>typeof e<"u",ti=e=>typeof e=="function",s0=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Rk(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const lt=Math.PI,it=2*lt,Ak=it+lt,Cu=Number.POSITIVE_INFINITY,Fk=lt/180,vt=lt/2,ci=lt/4,l0=lt*2/3,nC=Math.log10,tr=Math.sign;function Do(e,t,n){return Math.abs(e-t)<n}function u0(e){const t=Math.round(e);e=Do(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(nC(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Pk(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function as(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Tk(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function kk(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Dr(e){return e*(lt/180)}function Mk(e){return e*(180/lt)}function c0(e){if(!Mt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function rC(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*lt&&(a+=it),{angle:a,distance:i}}function Cf(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Bk(e,t){return(e-t+Ak)%it-lt}function Xn(e){return(e%it+it)%it}function os(e,t,n,r){const i=Xn(e),a=Xn(t),o=Xn(n),s=Xn(a-i),l=Xn(o-i),u=Xn(i-a),c=Xn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Tt(e,t,n){return Math.max(t,Math.min(n,e))}function Ok(e){return Tt(e,-32768,32767)}function Sr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ig(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const _i=(e,t,n,r)=>ig(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),Nk=(e,t,n)=>ig(e,n,r=>e[r][t]>=n);function Vk(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const iC=["push","pop","shift","splice","unshift"];function Lk(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iC.forEach(n=>{const r="_onData"+rg(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function d0(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(iC.forEach(a=>{delete e[a]}),delete e._chartjs)}function aC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const oC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function sC(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,oC.call(window,()=>{r=!1,e.apply(t,n)}))}}function Hk(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const ag=e=>e==="start"?"left":e==="end"?"right":"center",Rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,jk=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Wk(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:u,max:c,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=Tt(Math.min(_i(s,l,u).lo,n?r:_i(t,l,o.getPixelForValue(u)).lo),0,r-1)),h?a=Tt(Math.max(_i(s,o.axis,c,!0).hi+1,n?0:_i(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function zk(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const rl=e=>e===0||e===1,f0=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),h0=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,So={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*vt)+1,easeOutSine:e=>Math.sin(e*vt),easeInOutSine:e=>-.5*(Math.cos(lt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>rl(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>rl(e)?e:f0(e,.075,.3),easeOutElastic:e=>rl(e)?e:h0(e,.075,.3),easeInOutElastic(e){return rl(e)?e:e<.5?.5*f0(e*2,.1125,.45):.5+.5*h0(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-So.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?So.easeInBounce(e*2)*.5:So.easeOutBounce(e*2-1)*.5+.5};function og(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function g0(e){return og(e)?e:new ns(e)}function sd(e){return og(e)?e:new ns(e).saturate(.5).darken(.1).hexString()}const Gk=["x","y","borderWidth","radius","tension"],Zk=["color","borderColor","backgroundColor"];function Xk(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Zk},numbers:{type:"number",properties:Gk}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Yk(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const m0=new Map;function Uk(e,t){t=t||{};const n=e+JSON.stringify(t);let r=m0.get(n);return r||(r=new Intl.NumberFormat(e,t),m0.set(n,r)),r}function sg(e,t,n){return Uk(t,n).format(e)}const Jk={values(e){return pt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=qk(e,n)}const o=nC(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sg(e,r,l)}};function qk(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var lC={formatters:Jk};function Kk(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:lC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ji=Object.create(null),wf=Object.create(null);function Eo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function ld(e,t,n){return typeof t=="string"?rs(Eo(e,t),n):rs(Eo(e,""),t)}class Qk{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>sd(i.backgroundColor),this.hoverBorderColor=(r,i)=>sd(i.borderColor),this.hoverColor=(r,i)=>sd(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return ld(this,t,n)}get(t){return Eo(this,t)}describe(t,n){return ld(wf,t,n)}override(t,n){return ld(ji,t,n)}route(t,n,r,i){const a=Eo(this,t),o=Eo(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return Ae(l)?Object.assign({},u,l):Ee(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ft=new Qk({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Xk,Yk,Kk]);function eM(e){return!e||Ue(e.size)||Ue(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function p0(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function di(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function b0(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Df(e,t,n,r){uC(e,t,n,r,null)}function uC(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let v=(g||0)*Fk;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,it):e.arc(n,r,m,0,it),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=l0,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),v+=l0,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(v+ci)*l,d=Math.cos(v+ci)*(i?i/2-u:l),s=Math.sin(v+ci)*l,h=Math.sin(v+ci)*(i?i/2-u:l),e.arc(n-d,r-s,u,v-lt,v-vt),e.arc(n+h,r-o,u,v-vt,v),e.arc(n+d,r+s,u,v,v+vt),e.arc(n-h,r+o,u,v+vt,v+lt),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}v+=ci;case"rectRot":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":v+=ci;case"cross":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),v+=ci,d=Math.cos(v)*(i?i/2:m),o=Math.cos(v)*m,s=Math.sin(v)*m,h=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(v)*m,s=Math.sin(v)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ss(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function rc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ic(e){e.restore()}function tM(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function nM(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function rM(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ue(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function iM(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function aM(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function ls(e,t,n,r,i,a={}){const o=pt(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,rM(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&aM(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Ue(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),iM(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function wu(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*lt,lt,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,lt,vt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,vt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-vt,!0),e.lineTo(n+o.topLeft,r)}const oM=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sM=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lM(e,t){const n=(""+e).match(oM);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const uM=e=>+e||0;function lg(e,t){const n={},r=Ae(t),i=r?Object.keys(t):t,a=Ae(e)?r?o=>Ee(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=uM(a(o));return n}function cC(e){return lg(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Da(e){return lg(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _n(e){const t=cC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function kt(e,t){e=e||{},t=t||ft.font;let n=Ee(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ee(e.style,t.style);r&&!(""+r).match(sM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ee(e.family,t.family),lineHeight:lM(Ee(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ee(e.weight,t.weight),string:""};return i.string=eM(i),i}function il(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function cM(e,t,n){const{min:r,max:i}=e,a=eC(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Xi(e,t){return Object.assign(Object.create(e),t)}function ug(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=gC("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>ug([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return fC(s,l,()=>vM(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return y0(s).includes(l)},ownKeys(s){return y0(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function Ta(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:dC(e,r),setContext:a=>Ta(e,a,n,r),override:a=>Ta(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return fC(a,o,()=>fM(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function dC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ti(n)?n:()=>n,isIndexable:ti(r)?r:()=>r}}const dM=(e,t)=>e?e+rg(t):t,cg=(e,t)=>Ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function fC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function fM(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return ti(s)&&o.isScriptable(t)&&(s=hM(t,s,e,n)),pt(s)&&s.length&&(s=gM(t,s,e,o.isIndexable)),cg(t,s)&&(s=Ta(s,i,a&&a[t],o)),s}function hM(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),cg(e,l)&&(l=dg(i._scopes,i,e,l)),l}function gM(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Ae(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=dg(u,i,e,c);t.push(Ta(d,a,o&&o[e],s))}}return t}function hC(e,t,n){return ti(e)?e(t,n):e}const mM=(e,t)=>e===!0?t:typeof e=="string"?Hi(t,e):void 0;function pM(e,t,n,r,i){for(const a of t){const o=mM(n,a);if(o){e.add(o);const s=hC(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function dg(e,t,n,r){const i=t._rootScopes,a=hC(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=v0(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=v0(s,o,a,l,r),l===null)?!1:ug(Array.from(s),[""],i,a,()=>bM(t,n,r))}function v0(e,t,n,r,i){for(;n;)n=pM(e,t,n,r,i);return n}function bM(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return pt(i)&&Ae(n)?n:i||{}}function vM(e,t,n,r){let i;for(const a of t)if(i=gC(dM(a,e),n),typeof i<"u")return cg(e,i)?dg(n,r,e,i):i}function gC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function y0(e){let t=e._keys;return t||(t=e._keys=yM(e._scopes)),t}function yM(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const xM=Number.EPSILON||1e-14,ka=(e,t)=>t<e.length&&!e[t].skip&&e[t],mC=e=>e==="x"?"y":"x";function CM(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Cf(a,i),l=Cf(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function wM(e,t,n){const r=e.length;let i,a,o,s,l,u=ka(e,0);for(let c=0;c<r-1;++c)if(l=u,u=ka(e,c+1),!(!l||!u)){if(Do(t[c],0,xM)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function DM(e,t,n="x"){const r=mC(n),i=e.length;let a,o,s,l=ka(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=ka(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function SM(e,t="x"){const n=mC(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=ka(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=ka(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?tr(i[o-1])!==tr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}wM(e,i,a),DM(e,a,t)}function al(e,t,n){return Math.max(Math.min(e,n),t)}function EM(e,t){let n,r,i,a,o,s=ss(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ss(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=al(i.cp1x,t.left,t.right),i.cp1y=al(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=al(i.cp2x,t.left,t.right),i.cp2y=al(i.cp2y,t.top,t.bottom)))}function _M(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")SM(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=CM(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&EM(e,n)}function fg(){return typeof window<"u"&&typeof document<"u"}function hg(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Du(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const ac=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function IM(e,t){return ac(e).getPropertyValue(t)}const $M=["top","right","bottom","left"];function Ai(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=$M[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const RM=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function AM(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(RM(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function pi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ac(n),a=i.boxSizing==="border-box",o=Ai(i,"padding"),s=Ai(i,"border","width"),{x:l,y:u,box:c}=AM(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function FM(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&hg(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=ac(a),l=Ai(s,"border","width"),u=Ai(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Du(s.maxWidth,a,"clientWidth"),i=Du(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Cu,maxHeight:i||Cu}}const ol=e=>Math.round(e*10)/10;function PM(e,t,n,r){const i=ac(e),a=Ai(i,"margin"),o=Du(i.maxWidth,e,"clientWidth")||Cu,s=Du(i.maxHeight,e,"clientHeight")||Cu,l=FM(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ai(i,"border","width"),f=Ai(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=ol(Math.min(u,o,l.maxWidth)),c=ol(Math.min(c,s,l.maxHeight)),u&&!c&&(c=ol(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=ol(Math.floor(c*r))),{width:u,height:c}}function x0(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const TM=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};fg()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function C0(e,t){const n=IM(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bi(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function kM(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function MM(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=bi(e,i,n),s=bi(i,a,n),l=bi(a,t,n),u=bi(o,s,n),c=bi(s,l,n);return bi(u,c,n)}const BM=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},OM=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Sa(e,t,n){return e?BM(t,n):OM()}function pC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function bC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function vC(e){return e==="angle"?{between:os,compare:Bk,normalize:Xn}:{between:Sr,compare:(t,n)=>t-n,normalize:t=>t}}function w0({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function NM(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=vC(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function yC(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=vC(r),{start:c,end:d,loop:h,style:f}=NM(e,t,n),g=[];let m=!1,v=null,y,b,x;const S=()=>l(i,x,y)&&s(i,x)!==0,w=()=>s(a,y)===0||l(a,x,y),_=()=>m||S(),F=()=>!m||w();for(let p=c,D=c;p<=d;++p)b=t[p%o],!b.skip&&(y=u(b[r]),y!==x&&(m=l(y,i,a),v===null&&_()&&(v=s(y,i)===0?p:D),v!==null&&F()&&(g.push(w0({start:v,end:p,loop:h,count:o,style:f})),v=null),D=p,x=y));return v!==null&&g.push(w0({start:v,end:d,loop:h,count:o,style:f})),g}function xC(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=yC(r[i],e.points,t);a.length&&n.push(...a)}return n}function VM(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function LM(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function HM(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=VM(n,i,a,r);if(r===!0)return D0(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return D0(e,LM(n,o,l,u),n,t)}function D0(e,t,n,r){return!r||!r.setContext||!n?t:jM(e,t,n,r)}function jM(e,t,n,r){const i=e._chart.getContext(),a=S0(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,m,v,y){const b=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=b;for(;n[m%l].skip;)m+=b;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:v,style:y}),c=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],v;for(h=d+1;h<=g.end;h++){const y=n[h%l];v=S0(r.setContext(Xi(i,{type:"segment",p0:m,p1:y,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),WM(v,c)&&f(d,h-1,g.loop,c),m=y,c=v}d<h-1&&f(d,h-1,g.loop,c)}return u}function S0(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function WM(e,t){if(!t)return!1;const n=[],r=function(i,a){return og(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
173
173
|
* Chart.js v4.4.3
|
174
174
|
* https://www.chartjs.org
|
175
175
|
* (c) 2024 Chart.js Contributors
|
176
176
|
* Released under the MIT License
|
177
|
-
*/class zM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=oC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var hr=new zM;const E0="transparent",GM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=g0(e||E0),i=r.valid&&g0(t||E0);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class ZM{constructor(t,n,r,i){const a=n[r];i=il([t.to,i,a,t.from]);const o=il([t.from,a,i]);this._active=!0,this._fn=t.fn||GM[t.type||typeof o],this._easing=So[t.easing]||So.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=il([t.to,n,i,t.from]),this._from=il([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class CC{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ae(t))return;const n=Object.keys(ft.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Ae(a))return;const o={};for(const s of n)o[s]=a[s];(pt(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=YM(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&XM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=d=new ZM(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return hr.add(this._chart,r),!0}}function XM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function YM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function _0(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function UM(e,t,n){if(n===!1)return!1;const r=_0(e,n),i=_0(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function JM(e){let t,n,r,i;return Ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function wC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function I0(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],Mt(u)&&(a||t===0||tr(t)===tr(u))&&(t+=u)}return t}}function qM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function $0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function KM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function QM(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function eB(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function R0(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function A0(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=KM(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:v}=g,y=g._stacks||(g._stacks={});h=y[u]=eB(i,c,m),h[s]=v,h._top=R0(h,o,!0,r.type),h._bottom=R0(h,o,!1,r.type);const b=h._visualValues||(h._visualValues={});b[s]=v}}function ud(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function tB(e,t){return Xi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function nB(e,t,n){return Xi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ja(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const cd=e=>e==="reset"||e==="none",F0=(e,t)=>t?e:Object.assign({},e),rB=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:wC(n,!0),values:null};class Fi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=$0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ja(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,a=n.xAxisID=Ee(r.xAxisID,ud(t,"x")),o=n.yAxisID=Ee(r.yAxisID,ud(t,"y")),s=n.rAxisID=Ee(r.rAxisID,ud(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&d0(this._data,this),t._stacked&&Ja(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ae(n)){const i=this._cachedMeta;this._data=qM(n,i)}else if(r!==n){if(r){d0(r,this);const i=this._cachedMeta;Ja(i),i._parsed=[]}n&&Object.isExtensible(n)&&Lk(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=$0(n.vScale,n),n.stack!==r.stack&&(i=!0,Ja(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&A0(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{pt(i[t])?h=this.parseArrayData(r,i,t,n):Ae(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}o&&A0(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:a.parse(Hi(f,s),h),y:o.parse(Hi(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:wC(i,!0),values:n._stacks[t.axis]._visualValues};return I0(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=I0(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=rB(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=QM(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!Mt(f[t.axis])||c>m||d<m}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],Mt(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=JM(Ee(this.options.clip,UM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=nB(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=tB(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&is(r);if(s)return F0(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(ft.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(F0(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new CC(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||cd(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){cd(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!cd(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Ja(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(Fi,"defaults",{}),ae(Fi,"datasetElementType",null),ae(Fi,"dataElementType",null);function iB(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=aC(r.sort((i,a)=>i-a))}return e._cache.$bar}function aB(e){const t=e.iScale,n=iB(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(is(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return r}function oB(e,t,n,r){const i=n.barThickness;let a,o;return Ue(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function sB(e,t,n,r){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}function lB(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a);let l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}function DC(e,t,n,r){return pt(e)?lB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function P0(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let u,c,d,h;for(u=n,c=n+r;u<c;++u)h=t[u],d={},d[i.axis]=s||i.parse(o[u],u),l.push(DC(h,d,a,u));return l}function dd(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function uB(e,t,n){return e!==0?tr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function cB(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function dB(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:u,bottom:c}=cB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[T0(c,o,s,l)]=!0,i=u)),a[T0(i,o,s,l)]=!0,e.borderSkipped=a}function T0(e,t,n,r){return r?(e=fB(e,t,n),e=k0(e,n,t)):e=k0(e,t,n),e}function fB(e,t,n){return e===t?n:e===n?t:e}function k0(e,t,n){return e==="start"?t:e==="end"?n:e}function hB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Fl extends Fi{parsePrimitiveData(t,n,r,i){return P0(t,n,r,i)}parseArrayData(t,n,r,i){return P0(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?s:l,c=o.axis==="x"?s:l,d=[];let h,f,g,m;for(h=r,f=r+i;h<f;++h)m=n[h],g={},g[a.axis]=a.parse(Hi(m,u),h),d.push(DC(Hi(m,c),g,o,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=dd(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const g=this.getParsed(f),m=a||Ue(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),v=this._calculateBarIndexPixels(f,c),y=(g._stacks||{})[s.axis],b={horizontal:u,base:m.base,enableBorderRadius:!y||dd(g._custom)||o===y._top||o===y._bottom,x:u?m.head:v.center,y:u?v.center:m.head,height:u?v.size:Math.abs(m.size),width:u?Math.abs(m.size):v.size};h&&(b.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const x=b.options||t[f].options;dB(b,x,y,o),hB(b,x,c.ratio),this.updateElement(t[f],f,b,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,o=[],s=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(Ue(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const s=t.barThickness;return{min:s||aB(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),u=l._custom,c=dd(u);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,g,m;f!==d&&(h=f-d,f=d),c&&(d=u.barStart,f=u.barEnd-u.barStart,d!==0&&tr(d)!==tr(u.barEnd)&&(h=0),h+=d);const v=!Ue(a)&&!c?a:h;let y=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(h+f):g=y,m=g-y,Math.abs(m)<o){m=uB(m,n,s)*o,d===s&&(y-=m/2);const b=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),S=Math.min(b,x),w=Math.max(b,x);y=Math.max(Math.min(y,w),S),g=y+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const b=tr(m)*n.getLineWidthForValue(s)/2;y+=b,m-=b}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,o=Ee(i.maxBarThickness,1/0);let s,l;if(n.grouped){const u=a?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?sB(t,n,i,u):oB(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);s=c.start+c.chunk*d+c.chunk/2,l=Math.min(o,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}ae(Fl,"id","bar"),ae(Fl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(Fl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function gB(e,t,n){let r=1,i=1,a=0,o=0;if(t<it){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,S,w)=>os(x,s,l,!0)?1:Math.max(S,S*n,w,w*n),g=(x,S,w)=>os(x,s,l,!0)?-1:Math.min(S,S*n,w,w*n),m=f(0,u,d),v=f(vt,c,h),y=g(lt,u,d),b=g(lt+vt,c,h);r=(m-y)/2,i=(v-b)/2,a=-(m+y)/2,o=-(v+b)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class co extends Fi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Ae(r[t])){const{key:l="value"}=this._parsing;a=u=>+Hi(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Dr(this.options.rotation-90)}_getCircumference(){return Dr(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(Sk(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=gB(d,c,l),v=(r.width-o)/h,y=(r.height-o)/f,b=Math.max(Math.min(v,y)/2,0),x=eC(this.options.radius,b),S=Math.max(x*l,0),w=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/it)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:v}=this._getSharedOptions(n,i);let y=this._getRotation(),b;for(b=0;b<n;++b)y+=this._circumference(b,a);for(b=n;b<n+r;++b){const x=this._circumference(b,a),S=t[b],w={x:c+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:f};v&&(w.options=m||this.resolveDataElementOptions(b,S.active?"active":i)),y+=x,this.updateElement(S,b,w,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=sg(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ee(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(co,"id","doughnut"),ae(co,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(co,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ae(co,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Pl extends Fi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=Wk(n,i,o);this._drawStart=s,this._drawCount=l,zk(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:g,segment:m}=this.options,v=as(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||a||i==="none",b=n+r,x=t.length;let S=n>0&&this.getParsed(n-1);for(let w=0;w<x;++w){const I=t[w],F=y?I:{};if(w<n||w>=b){F.skip=!0;continue}const p=this.getParsed(w),D=Ue(p[f]),$=F[h]=o.getPixelForValue(p[h],w),_=F[f]=a||D?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,p,l):p[f],w);F.skip=isNaN($)||isNaN(_)||D,F.stop=w>0&&Math.abs(p[h]-S[h])>v,m&&(F.parsed=p,F.raw=u.data[w]),d&&(F.options=c||this.resolveDataElementOptions(w,I.active?"active":i)),y||this.updateElement(I,w,F,i),S=p}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ae(Pl,"id","line"),ae(Pl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Pl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function fi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gg{constructor(t){ae(this,"options");this.options=t||{}}static override(t){Object.assign(gg.prototype,t)}init(){}formats(){return fi()}parse(){return fi()}format(){return fi()}add(){return fi()}diff(){return fi()}startOf(){return fi()}endOf(){return fi()}}var mB={_date:gg};function pB(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?Nk:_i;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function oc(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=pB(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function bB(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function fd(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||oc(e,n,t,function(s,l,u){!i&&!ss(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function vB(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=rC(o,{x:t.x,y:t.y});os(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return oc(e,n,t,a),i}function yB(e,t,n,r,i,a){let o=[];const s=bB(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!f)return;const v=s(t,g);v<l?(o=[{element:c,datasetIndex:d,index:h}],l=v):v===l&&o.push({element:c,datasetIndex:d,index:h})}return oc(e,n,t,u),o}function hd(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?vB(e,t,n,i):yB(e,t,n,r,i,a)}function M0(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return oc(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var xB={modes:{index(e,t,n,r){const i=pi(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?fd(e,i,a,r,o):hd(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?fd(e,i,a,r,o):hd(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return fd(e,i,a,r,o)},nearest(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return hd(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=pi(t,e);return M0(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=pi(t,e);return M0(e,i,"y",n.intersect,r)}}};const SC=["left","top","right","bottom"];function qa(e,t){return e.filter(n=>n.pos===t)}function B0(e,t){return e.filter(n=>SC.indexOf(n.pos)===-1&&n.box.axis===t)}function Ka(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function CB(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function wB(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!SC.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function DB(e,t){const n=wB(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function SB(e){const t=CB(e),n=Ka(t.filter(u=>u.box.fullSize),!0),r=Ka(qa(t,"left"),!0),i=Ka(qa(t,"right")),a=Ka(qa(t,"top"),!0),o=Ka(qa(t,"bottom")),s=B0(t,"x"),l=B0(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:qa(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function O0(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function EC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function EB(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&EC(o,a.getPadding());const s=Math.max(0,t.outerWidth-O0(o,e,"left","right")),l=Math.max(0,t.outerHeight-O0(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function _B(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function IB(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function fo(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,IB(s.horizontal,t));const{same:d,other:h}=EB(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&fo(i,t,n,r)||c}function sl(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function N0(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;is(u.start)&&(o=u.start),l.fullSize?sl(l,i.left,o,n.outerWidth-i.right-i.left,h):sl(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;is(u.start)&&(a=u.start),l.fullSize?sl(l,a,i.top,h,n.outerHeight-i.bottom-i.top):sl(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var En={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=_n(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=SB(e.boxes),l=s.vertical,u=s.horizontal;Ge(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);EC(h,_n(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=DB(l.concat(u),d);fo(s.fullSize,f,d,g),fo(l,f,d,g),fo(u,f,d,g)&&fo(l,f,d,g),_B(f),N0(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,N0(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ge(s.chartArea,m=>{const v=m.box;Object.assign(v,e.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class _C{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class $B extends _C{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Tl="$chartjs",RB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},V0=e=>e===null||e==="";function AB(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Tl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",V0(i)){const a=C0(e,"width");a!==void 0&&(e.width=a)}if(V0(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=C0(e,"height");a!==void 0&&(e.height=a)}return e}const IC=TM?{passive:!0}:!1;function FB(e,t,n){e&&e.addEventListener(t,n,IC)}function PB(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,IC)}function TB(e,t){const n=RB[e.type]||e.type,{x:r,y:i}=pi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Su(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function kB(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Su(s.addedNodes,r),o=o&&!Su(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function MB(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Su(s.removedNodes,r),o=o&&!Su(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const us=new Map;let L0=0;function $C(){const e=window.devicePixelRatio;e!==L0&&(L0=e,us.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function BB(e,t){us.size||window.addEventListener("resize",$C),us.set(e,t)}function OB(e){us.delete(e),us.size||window.removeEventListener("resize",$C)}function NB(e,t,n){const r=e.canvas,i=r&&hg(r);if(!i)return;const a=sC((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),BB(e,a),o}function gd(e,t,n){n&&n.disconnect(),t==="resize"&&OB(e)}function VB(e,t,n){const r=e.canvas,i=sC(a=>{e.ctx!==null&&n(TB(a,e))},e);return FB(r,t,i),i}class LB extends _C{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(AB(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Tl])return!1;const r=n[Tl].initial;["height","width"].forEach(a=>{const o=r[a];Ue(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Tl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:kB,detach:MB,resize:NB}[n]||VB;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:gd,detach:gd,resize:gd}[n]||PB)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return PM(t,n,r,i)}isAttached(t){const n=t&&hg(t);return!!(n&&n.isConnected)}}function HB(e){return!fg()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?$B:LB}var pl;let Pr=(pl=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return as(this.x)&&as(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ae(pl,"defaults",{}),ae(pl,"defaultRoutes"),pl);function jB(e,t){const n=e.options.ticks,r=WB(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?GB(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return ZB(t,u,a,o/i),u;const c=zB(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(ll(t,u,c,Ue(f)?0:s-f,s),d=0,h=o-1;d<h;d++)ll(t,u,c,a[d],a[d+1]);return ll(t,u,c,l,Ue(f)?t.length:l+f),u}return ll(t,u,c),u}function WB(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function zB(e,t,n){const r=XB(e),i=t.length/n;if(!r)return Math.max(i,1);const a=Pk(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function GB(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function ZB(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function ll(e,t,n,r,i){const a=Ee(r,0),o=Math.min(Ee(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function XB(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const YB=e=>e==="left"?"right":e==="right"?"left":e,H0=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,j0=(e,t)=>Math.min(t||e,e);function W0(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function UB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function JB(e,t){Ge(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Qa(e){return e.drawTicks?e.tickLength:0}function z0(e,t){if(!e.display)return 0;const n=kt(e.font,t),r=_n(e.padding);return(pt(e.text)?e.text.length:1)*n.lineHeight+r.height}function qB(e,t){return Xi(e,{scale:t,type:"scale"})}function KB(e,t,n){return Xi(e,{tick:n,index:t,type:"tick"})}function QB(e,t,n){let r=ag(e);return(n&&t!=="right"||!n&&t==="right")&&(r=YB(r)),r}function e8(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=o-i,v=s-a;if(e.isHorizontal()){if(f=Rt(r,a,s),Ae(n)){const y=Object.keys(n)[0],b=n[y];g=c[y].getPixelForValue(b)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=H0(e,n,t);h=s-a}else{if(Ae(n)){const y=Object.keys(n)[0],b=n[y];f=c[y].getPixelForValue(b)-v+t}else n==="center"?f=(u.left+u.right)/2-v+t:f=H0(e,n,t);g=Rt(r,o,i),d=n==="left"?-vt:vt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Wa extends Pr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Hn(t,Number.POSITIVE_INFINITY),n=Hn(n,Number.NEGATIVE_INFINITY),r=Hn(r,Number.POSITIVE_INFINITY),i=Hn(i,Number.NEGATIVE_INFINITY),{min:Hn(t,r),max:Hn(n,i),minDefined:Mt(t),maxDefined:Mt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Hn(n,Hn(r,n)),max:Hn(r,Hn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Je(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=cM(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?W0(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=jB(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Je(this.options.afterUpdate,[this])}beforeSetDimensions(){Je(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Je(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Je(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Je(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Je(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Je(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Je(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=j0(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Tt(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-Qa(t.grid)-n.padding-z0(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=Mk(Math.min(Math.asin(Tt((c.highest.height+6)/s,-1,1)),Math.asin(Tt(l/u,-1,1))-Math.asin(Tt(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Je(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=z0(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Qa(a)+l):(t.height=this.maxHeight,t.width=Qa(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=Dr(this.labelRotation),m=Math.cos(g),v=Math.sin(g);if(s){const y=r.mirror?0:v*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{const y=r.mirror?0:m*d.width+v*h.height;t.width=Math.min(this.maxWidth,t.width+y+f)}this._calculatePadding(u,c,v,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Je(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Ue(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=W0(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/j0(n,r));let u=0,c=0,d,h,f,g,m,v,y,b,x,S,w;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=v=m.string,y=a[v]=a[v]||{data:{},gc:[]},b=m.lineHeight,x=S=0,!Ue(g)&&!pt(g))x=p0(i,y.data,y.gc,x,g),S=b;else if(pt(g))for(h=0,f=g.length;h<f;++h)w=g[h],!Ue(w)&&!pt(w)&&(x=p0(i,y.data,y.gc,x,w),S+=b);o.push(x),s.push(S),u=Math.max(x,u),c=Math.max(S,c)}JB(a,n);const I=o.indexOf(u),F=s.indexOf(c),p=D=>({width:o[D]||0,height:s[D]||0});return{first:p(0),last:p(n-1),widest:p(I),highest:p(F),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Ok(this._alignToPixels?di(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=KB(this.getContext(),t,r))}return this.$context||(this.$context=qB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Dr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Qa(a),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,v=m/2,y=function(T){return di(r,T,m)};let b,x,S,w,I,F,p,D,$,_,A,k;if(o==="top")b=y(this.bottom),F=this.bottom-h,D=b-v,_=y(t.top)+v,k=t.bottom;else if(o==="bottom")b=y(this.top),_=t.top,k=y(t.bottom)-v,F=b+v,D=this.top+h;else if(o==="left")b=y(this.right),I=this.right-h,p=b-v,$=y(t.left)+v,A=t.right;else if(o==="right")b=y(this.left),$=t.left,A=y(t.right)-v,I=b+v,p=this.left+h;else if(n==="x"){if(o==="center")b=y((t.top+t.bottom)/2+.5);else if(Ae(o)){const T=Object.keys(o)[0],P=o[T];b=y(this.chart.scales[T].getPixelForValue(P))}_=t.top,k=t.bottom,F=b+v,D=F+h}else if(n==="y"){if(o==="center")b=y((t.left+t.right)/2);else if(Ae(o)){const T=Object.keys(o)[0],P=o[T];b=y(this.chart.scales[T].getPixelForValue(P))}I=b-v,p=I-h,$=t.left,A=t.right}const R=Ee(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/R));for(x=0;x<d;x+=M){const T=this.getContext(x),P=a.setContext(T),B=s.setContext(T),O=P.lineWidth,L=P.color,H=B.dash||[],z=B.dashOffset,X=P.tickWidth,G=P.tickColor,j=P.tickBorderDash||[],V=P.tickBorderDashOffset;S=UB(this,x,l),S!==void 0&&(w=di(r,S,O),u?I=p=$=A=w:F=D=_=k=w,f.push({tx1:I,ty1:F,tx2:p,ty2:D,x1:$,y1:_,x2:A,y2:k,width:O,color:L,borderDash:H,borderDashOffset:z,tickWidth:X,tickColor:G,tickBorderDash:j,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=b,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=Qa(r.grid),f=h+c,g=d?-c:f,m=-Dr(this.labelRotation),v=[];let y,b,x,S,w,I,F,p,D,$,_,A,k="middle";if(i==="top")I=this.bottom-g,F=this._getXAxisLabelAlignment();else if(i==="bottom")I=this.top+g,F=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,w=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,w=M.x}else if(n==="x"){if(i==="center")I=(t.top+t.bottom)/2+f;else if(Ae(i)){const M=Object.keys(i)[0],T=i[M];I=this.chart.scales[M].getPixelForValue(T)+f}F=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-f;else if(Ae(i)){const M=Object.keys(i)[0],T=i[M];w=this.chart.scales[M].getPixelForValue(T)}F=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?k="top":l==="end"&&(k="bottom"));const R=this._getLabelSizes();for(y=0,b=s.length;y<b;++y){x=s[y],S=x.label;const M=a.setContext(this.getContext(y));p=this.getPixelForTick(y)+a.labelOffset,D=this._resolveTickFontOptions(y),$=D.lineHeight,_=pt(S)?S.length:1;const T=_/2,P=M.color,B=M.textStrokeColor,O=M.textStrokeWidth;let L=F;o?(w=p,F==="inner"&&(y===b-1?L=this.options.reverse?"left":"right":y===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||m!==0?A=-_*$+$/2:u==="center"?A=-R.highest.height/2-T*$+$:A=-R.highest.height+$/2:u==="near"||m!==0?A=$/2:u==="center"?A=R.highest.height/2-T*$:A=R.highest.height-_*$,d&&(A*=-1),m!==0&&!M.showLabelBackdrop&&(w+=$/2*Math.sin(m))):(I=p,A=(1-_)*$/2);let H;if(M.showLabelBackdrop){const z=_n(M.backdropPadding),X=R.heights[y],G=R.widths[y];let j=A-z.top,V=0-z.left;switch(k){case"middle":j-=X/2;break;case"bottom":j-=X;break}switch(F){case"center":V-=G/2;break;case"right":V-=G;break;case"inner":y===b-1?V-=G:y>0&&(V-=G/2);break}H={left:V,top:j,width:G+z.width,height:X+z.height,color:M.backdropColor}}v.push({label:S,font:D,textOffset:A,options:{rotation:m,color:P,strokeColor:B,strokeWidth:O,textAlign:L,textBaseline:k,translation:[w,I],backdrop:H}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Dr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=di(t,this.left,o)-o/2,c=di(t,this.right,s)+s/2,d=h=l):(d=di(t,this.top,o)-o/2,h=di(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&rc(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;ls(r,u,0,c,l,s)}i&&ic(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=kt(r.font),o=_n(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Ae(n)?(l+=o.bottom,pt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=e8(this,l,n,s);ls(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:QB(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ee(t.grid&&t.grid.z,-1),i=Ee(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Wa.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return kt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ul{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;r8(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,t8(t,o,r),this.override&&ft.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in ft[i]&&(delete ft[i][r],this.override&&delete ji[r])}}function t8(e,t,n){const r=rs(Object.create(null),[n?ft.get(n):{},ft.get(t),e.defaults]);ft.set(t,r),e.defaultRoutes&&n8(t,e.defaultRoutes),e.descriptors&&ft.describe(t,e.descriptors)}function n8(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ft.route(a,i,l,s)})}function r8(e){return"id"in e&&"defaults"in e}class i8{constructor(){this.controllers=new ul(Fi,"datasets",!0),this.elements=new ul(Pr,"elements"),this.plugins=new ul(Object,"plugins"),this.scales=new ul(Wa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Ge(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=rg(t);Je(r["before"+i],[],r),n[t](r),Je(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Gn=new i8;class a8{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Je(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Ue(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ee(r.options&&r.options.plugins,{}),a=o8(r);return i===!1&&!n?[]:l8(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function o8(e){const t={},n=[],r=Object.keys(Gn.plugins.items);for(let a=0;a<r.length;a++)n.push(Gn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function s8(e,t){return!t&&e===!1?null:e===!0?{}:e}function l8(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=s8(r[l],i);u!==null&&a.push({plugin:s,options:u8(e.config,{plugin:s,local:n[l]},u,o)})}return a}function u8(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Sf(e,t){const n=ft.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function c8(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function d8(e,t){return e===t?"_index_":"_value_"}function G0(e){if(e==="x"||e==="y"||e==="r")return e}function f8(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Ef(e,...t){if(G0(e))return e;for(const n of t){const r=n.axis||f8(n.position)||e.length>1&&G0(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Z0(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function h8(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Z0(e,"x",n[0])||Z0(e,"y",n[0])}return{}}function g8(e,t){const n=ji[e.type]||{scales:{}},r=t.scales||{},i=Sf(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Ae(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Ef(o,s,h8(o,e),ft.scales[s.type]),u=d8(l,i),c=n.scales||{};a[o]=wo(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||Sf(s,t),c=(ji[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=c8(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),wo(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];wo(s,[ft.scales[s.type],ft.scale])}),a}function RC(e){const t=e.options||(e.options={});t.plugins=Ee(t.plugins,{}),t.scales=g8(e,t)}function AC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function m8(e){return e=e||{},e.data=AC(e.data),RC(e),e}const X0=new Map,FC=new Set;function cl(e,t){let n=X0.get(e);return n||(n=t(),X0.set(e,n),FC.add(n)),n}const eo=(e,t,n)=>{const r=Hi(t,n);r!==void 0&&e.add(r)};class p8{constructor(t){this._config=m8(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=AC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),RC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return cl(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>eo(l,t,d))),c.forEach(d=>eo(l,i,d)),c.forEach(d=>eo(l,ji[a]||{},d)),c.forEach(d=>eo(l,ft,d)),c.forEach(d=>eo(l,wf,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),FC.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ji[n]||{},ft.datasets[n]||{},{type:n},ft,wf]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Y0(this._resolverCache,t,i);let l=o;if(v8(o,n)){a.$shared=!1,r=ti(r)?r():r;const u=this.createResolver(t,r,s);l=Ta(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Y0(this._resolverCache,t,r);return Ae(n)?Ta(a,n,void 0,i):a}}function Y0(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:ug(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const b8=e=>Ae(e)&&Object.getOwnPropertyNames(e).some(t=>ti(e[t]));function v8(e,t){const{isScriptable:n,isIndexable:r}=dC(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(ti(s)||b8(s))||o&&pt(s))return!0}return!1}var y8="4.4.3";const x8=["top","bottom","left","right","chartArea"];function U0(e,t){return e==="top"||e==="bottom"||x8.indexOf(e)===-1&&t==="x"}function J0(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function q0(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Je(n&&n.onComplete,[e],t)}function C8(e){const t=e.chart,n=t.options.animation;Je(n&&n.onProgress,[e],t)}function PC(e){return fg()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const kl={},K0=e=>{const t=PC(e);return Object.values(kl).filter(n=>n.canvas===t).pop()};function w8(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function D8(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function dl(e,t,n){return e.options.clip?e[n]:t[n]}function S8(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:dl(n,t,"left"),right:dl(n,t,"right"),top:dl(r,t,"top"),bottom:dl(r,t,"bottom")}:t}var Or;let Yi=(Or=class{static register(...t){Gn.add(...t),Q0()}static unregister(...t){Gn.remove(...t),Q0()}constructor(t,n){const r=this.config=new p8(n),i=PC(t),a=K0(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||HB(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=Dk(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new a8,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hk(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],kl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}hr.listen(this,"complete",q0),hr.listen(this,"progress",C8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Ue(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():x0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return b0(this.canvas,this.ctx),this}stop(){return hr.stop(this),this}resize(t,n){hr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,x0(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Je(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ge(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=Ef(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ge(a,o=>{const s=o.options,l=s.id,u=Ef(l,s),c=Ee(s.type,o.dtype);(s.position===void 0||U0(s.position,u)!==U0(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Gn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ge(i,(o,s)=>{o||delete r[s]}),Ge(r,o=>{En.configure(this,o,o.options),En.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(J0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||Sf(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Gn.getController(s),{datasetElementType:u,dataElementType:c}=ft.datasets[s];Object.assign(l,{dataElementType:Gn.getElement(c),datasetElementType:u&&Gn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ge(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Ge(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(J0("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ge(this.scales,t=>{En.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!s0(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;w8(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!s0(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;En.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ge(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ti(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(hr.has(this)?this.attached&&!hr.running(this)&&hr.start(this):(this.draw(),q0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=S8(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&rc(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&ic(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return ss(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=xB.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Xi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);is(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),hr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),b0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete kl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Ge(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Ge(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ge(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!yu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=Rk(t),u=D8(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Je(a.onHover,[t,s,this],this),l&&Je(a.onClick,[t,s,this],this));const c=!yu(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ae(Or,"defaults",ft),ae(Or,"instances",kl),ae(Or,"overrides",ji),ae(Or,"registry",Gn),ae(Or,"version",y8),ae(Or,"getChart",K0),Or);function Q0(){return Ge(Yi.instances,e=>e._plugins.invalidate())}function E8(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+vt,r-vt),e.closePath(),e.clip()}function _8(e){return lg(e,["outerStart","outerEnd","innerStart","innerEnd"])}function I8(e,t,n,r){const i=_8(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return Tt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Tt(i.innerStart,0,o),innerEnd:Tt(i.innerEnd,0,o)}}function la(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Eu(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const M=c>0?c-r:0,T=d>0?d-r:0,P=(M+T)/2,B=P!==0?g*P/(P+r):g;f=(g-B)/2}const m=Math.max(.001,g*d-n/lt)/d,v=(g-m)/2,y=l+v+f,b=i-v-f,{outerStart:x,outerEnd:S,innerStart:w,innerEnd:I}=I8(t,h,d,b-y),F=d-x,p=d-S,D=y+x/F,$=b-S/p,_=h+w,A=h+I,k=y+w/_,R=b-I/A;if(e.beginPath(),a){const M=(D+$)/2;if(e.arc(o,s,d,D,M),e.arc(o,s,d,M,$),S>0){const O=la(p,$,o,s);e.arc(O.x,O.y,S,$,b+vt)}const T=la(A,b,o,s);if(e.lineTo(T.x,T.y),I>0){const O=la(A,R,o,s);e.arc(O.x,O.y,I,b+vt,R+Math.PI)}const P=(b-I/h+(y+w/h))/2;if(e.arc(o,s,h,b-I/h,P,!0),e.arc(o,s,h,P,y+w/h,!0),w>0){const O=la(_,k,o,s);e.arc(O.x,O.y,w,k+Math.PI,y-vt)}const B=la(F,y,o,s);if(e.lineTo(B.x,B.y),x>0){const O=la(F,D,o,s);e.arc(O.x,O.y,x,y-vt,D)}}else{e.moveTo(o,s);const M=Math.cos(D)*d+o,T=Math.sin(D)*d+s;e.lineTo(M,T);const P=Math.cos($)*d+o,B=Math.sin($)*d+s;e.lineTo(P,B)}e.closePath()}function $8(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Eu(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%it||it))}return Eu(e,t,n,r,l,i),e.fill(),l}function R8(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(a){Eu(e,t,n,r,g,i);for(let m=0;m<a;++m)e.stroke();isNaN(s)||(g=o+(s%it||it))}f&&E8(e,t,g),a||(Eu(e,t,n,r,g,i),e.stroke())}class ho extends Pr{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=rC(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=Ee(h,u-l)>=it||os(o,l,u),v=Sr(s,c+f,d+f);return m&&v}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>it?Math.floor(i/it):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(lt,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,$8(n,this,c,o,s),R8(n,this,c,o,s),n.restore()}}ae(ho,"id","arc"),ae(ho,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(ho,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(ho,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function TC(e,t,n=t){e.lineCap=Ee(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ee(n.borderDash,t.borderDash)),e.lineDashOffset=Ee(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ee(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ee(n.borderWidth,t.borderWidth),e.strokeStyle=Ee(n.borderColor,t.borderColor)}function A8(e,t,n){e.lineTo(n.x,n.y)}function F8(e){return e.stepped?tM:e.tension||e.cubicInterpolationMode==="monotone"?nM:A8}function kC(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function P8(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=kC(i,n,r),c=F8(a);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,a.stepped),m=g);return l&&(g=i[(s+(h?u:0))%o],c(e,m,g,h,a.stepped)),!!l}function T8(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=kC(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,v,y;const b=S=>(o+(u?s-S:S))%a,x=()=>{m!==v&&(e.lineTo(c,v),e.lineTo(c,m),e.lineTo(c,y))};for(l&&(f=i[b(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[b(h)],f.skip)continue;const S=f.x,w=f.y,I=S|0;I===g?(w<m?m=w:w>v&&(v=w),c=(d*c+S)/++d):(x(),e.lineTo(S,w),g=I,d=0,m=v=w),y=w}x()}function _f(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?T8:P8}function k8(e){return e.stepped?kM:e.tension||e.cubicInterpolationMode==="monotone"?MM:bi}function M8(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),TC(e,t.options),e.stroke(i)}function B8(e,t,n,r){const{segments:i,options:a}=t,o=_f(t);for(const s of i)TC(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const O8=typeof Path2D=="function";function N8(e,t,n,r){O8&&!t.options.segment?M8(e,t,n,r):B8(e,t,n,r)}class qn extends Pr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;_M(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=HM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=xC(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=k8(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),v=l(f,g,m,r.stepped);v[n]=t[n],s.push(v)}return s.length===1?s[0]:s}pathSegment(t,n,r){return _f(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=_f(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),N8(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(qn,"id","line"),ae(qn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(qn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(qn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function eb(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class Pi extends Pr{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return eb(this,n,"x",r)}inYRange(n,r){return eb(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!ss(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Df(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(Pi,"id","point"),ae(Pi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(Pi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function MC(e,t){const{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,d;return e.horizontal?(d=o/2,s=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=a/2,s=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function Xr(e,t,n,r){return e?0:Tt(t,n,r)}function V8(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=cC(r);return{t:Xr(i.top,a.top,0,n),r:Xr(i.right,a.right,0,t),b:Xr(i.bottom,a.bottom,0,n),l:Xr(i.left,a.left,0,t)}}function L8(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Da(i),o=Math.min(t,n),s=e.borderSkipped,l=r||Ae(i);return{topLeft:Xr(!l||s.top||s.left,a.topLeft,0,o),topRight:Xr(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Xr(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Xr(!l||s.bottom||s.right,a.bottomRight,0,o)}}function H8(e){const t=MC(e),n=t.right-t.left,r=t.bottom-t.top,i=V8(e,n/2,r/2),a=L8(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function md(e,t,n,r){const i=t===null,a=n===null,s=e&&!(i&&a)&&MC(e,r);return s&&(i||Sr(t,s.left,s.right))&&(a||Sr(n,s.top,s.bottom))}function j8(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function W8(e,t){e.rect(t.x,t.y,t.w,t.h)}function pd(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class Ml extends Pr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=H8(this),s=j8(o.radius)?wu:W8;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,pd(o,n,a)),t.clip(),s(t,pd(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,pd(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return md(this,t,n,r)}inXRange(t,n){return md(this,t,null,n)}inYRange(t,n){return md(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}ae(Ml,"id","bar"),ae(Ml,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(Ml,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function z8(e,t,n){const r=e.segments,i=e.points,a=t.points,o=[];for(const s of r){let{start:l,end:u}=s;u=mg(l,u,i);const c=If(n,i[l],i[u],s.loop);if(!t.segments){o.push({source:s,target:c,start:i[l],end:i[u]});continue}const d=xC(t,c);for(const h of d){const f=If(n,a[h.start],a[h.end],h.loop),g=yC(s,i,f);for(const m of g)o.push({source:m,target:h,start:{[n]:tb(c,f,"start",Math.max)},end:{[n]:tb(c,f,"end",Math.min)}})}}return o}function If(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=Xn(i),a=Xn(a)),{property:e,start:i,end:a}}function G8(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:o,end:s})=>{s=mg(o,s,i);const l=i[o],u=i[s];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function mg(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function tb(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function BC(e,t){let n=[],r=!1;return pt(e)?(r=!0,n=e):n=G8(e,t),n.length?new qn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function nb(e){return e&&e.fill!==!1}function Z8(e,t,n){let i=e[t].fill;const a=[t];let o;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Mt(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;a.push(i),i=o.fill}return!1}function X8(e,t,n){const r=q8(e);if(Ae(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Mt(i)&&Math.floor(i)===i?Y8(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Y8(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function U8(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ae(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function J8(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Ae(e)?r=e.value:r=t.getBaseValue(),r}function q8(e){const t=e.options,n=t.fill;let r=Ee(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function K8(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=Q8(t,n);s.push(BC({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)eO(i,o[c],s)}return new qn({points:i,options:{}})}function Q8(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function eO(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:o,last:s,point:l}=tO(a,t,"x");if(!(!l||o&&s)){if(o)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function tO(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,o=e.points;let s=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],d=o[c.start][n],h=o[c.end][n];if(Sr(i,d,h)){s=i===d,l=i===h;break}}return{first:s,last:l,point:r}}class OC{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:o}=this;return n=n||{start:0,end:it},t.arc(i,a,o,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function nO(e){const{chart:t,fill:n,line:r}=e;if(Mt(n))return rO(t,n);if(n==="stack")return K8(e);if(n==="shape")return!0;const i=iO(e);return i instanceof OC?i:BC(i,r)}function rO(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function iO(e){return(e.scale||{}).getPointPositionForValue?oO(e):aO(e)}function aO(e){const{scale:t={},fill:n}=e,r=U8(n,t);if(Mt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function oO(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=J8(n,t,a),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new OC({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,o));return s}function bd(e,t,n){const r=nO(t),{line:i,scale:a,axis:o}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(rc(e,n),sO(e,{line:i,target:r,above:c,below:d,area:n,scale:a,axis:o}),ic(e))}function sO(e,t){const{line:n,target:r,above:i,below:a,area:o,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(rb(e,r,o.top),ib(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),rb(e,r,o.bottom)),ib(e,{line:n,target:r,color:a,scale:s,property:l}),e.restore()}function rb(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],d=i[mg(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function ib(e,t){const{line:n,target:r,property:i,color:a,scale:o}=t,s=z8(n,r,i);for(const{source:l,target:u,start:c,end:d}of s){const{style:{backgroundColor:h=a}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,lO(e,o,f&&If(i,c,d)),e.beginPath();const g=!!n.pathSegment(e,l);let m;if(f){g?e.closePath():ab(e,r,d,i);const v=!!r.pathSegment(e,u,{move:g,reverse:!0});m=g&&v,m||ab(e,r,c,i)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function lO(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:o,end:s}=n||{};a==="x"&&(e.beginPath(),e.rect(o,r,s-o,i-r),e.clip())}function ab(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var NC={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,o,s,l;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof qn&&(l={visible:e.isDatasetVisible(o),index:o,fill:X8(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=Z8(i,o,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&bd(e.ctx,s,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;nb(a)&&bd(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!nb(r)||n.drawTime!=="beforeDatasetDraw"||bd(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ob=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},uO=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class sb extends Pr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Je(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=kt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=ob(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const v=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+v+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:v,height:i},u[u.length-1]+=v+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:b,itemHeight:x}=cO(r,n,a,v,i);y>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[y]={left:g,top:f,col:m,width:b,height:x},h=Math.max(h,b),f+=x+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=Sa(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Rt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=Rt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;rc(t,this),this._draw(),ic(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ft.color,l=Sa(t.rtl,this.left,this.width),u=kt(o.font),{padding:c}=o,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=ob(o,d),y=function(I,F,p){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const D=Ee(p.lineWidth,1);if(i.fillStyle=Ee(p.fillStyle,s),i.lineCap=Ee(p.lineCap,"butt"),i.lineDashOffset=Ee(p.lineDashOffset,0),i.lineJoin=Ee(p.lineJoin,"miter"),i.lineWidth=D,i.strokeStyle=Ee(p.strokeStyle,s),i.setLineDash(Ee(p.lineDash,[])),o.usePointStyle){const $={radius:m*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:D},_=l.xPlus(I,g/2),A=F+h;uC(i,$,_,A,o.pointStyleWidth&&g)}else{const $=F+Math.max((d-m)/2,0),_=l.leftForLtr(I,g),A=Da(p.borderRadius);i.beginPath(),Object.values(A).some(k=>k!==0)?wu(i,{x:_,y:$,w:g,h:m,radius:A}):i.rect(_,$,g,m),i.fill(),D!==0&&i.stroke()}i.restore()},b=function(I,F,p){ls(i,p.text,I,F+v/2,u,{strikethrough:p.hidden,textAlign:l.textAlign(p.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?f={x:Rt(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:f={x:this.left+c,y:Rt(a,this.top+S+c,this.bottom-n[0].height),line:0},pC(this.ctx,t.textDirection);const w=v+c;this.legendItems.forEach((I,F)=>{i.strokeStyle=I.fontColor,i.fillStyle=I.fontColor;const p=i.measureText(I.text).width,D=l.textAlign(I.textAlign||(I.textAlign=o.textAlign)),$=g+h+p;let _=f.x,A=f.y;l.setWidth(this.width),x?F>0&&_+$+c>this.right&&(A=f.y+=w,f.line++,_=f.x=Rt(a,this.left+c,this.right-r[f.line])):F>0&&A+w>this.bottom&&(_=f.x=_+n[f.line].width+c,f.line++,A=f.y=Rt(a,this.top+S+c,this.bottom-n[f.line].height));const k=l.x(_);if(y(k,A,I),_=jk(D,_+g+h,x?_+$:this.right,t.rtl),b(l.x(_),A,I),x)f.x+=$+c;else if(typeof I.text!="string"){const R=u.lineHeight;f.y+=VC(I,R)+c}else f.y+=w}),bC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=kt(n.font),i=_n(n.padding);if(!n.display)return;const a=Sa(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=Rt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);c=u+Rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=Rt(s,d,d+h);o.textAlign=a.textAlign(ag(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,ls(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=kt(t.font),r=_n(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Sr(t,this.left,this.right)&&Sr(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Sr(t,i.left,i.left+i.width)&&Sr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!hO(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=uO(i,r);i&&!a&&Je(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Je(n.onHover,[t,r,this],this)}else r&&Je(n.onClick,[t,r,this],this)}}function cO(e,t,n,r,i){const a=dO(r,e,t,n),o=fO(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function dO(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function fO(e,t,n){let r=e;return typeof t.text!="string"&&(r=VC(t,n)),r}function VC(e,t){const n=e.text?e.text.length:0;return t*n}function hO(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var LC={id:"legend",_element:sb,start(e,t,n){const r=e.legend=new sb({ctx:e.ctx,options:n,chart:e});En.configure(e,r,n),En.addBox(e,r)},stop(e){En.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;En.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=_n(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class HC extends Pr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=pt(r.text)?r.text.length:1;this._padding=_n(r.padding);const a=i*kt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Rt(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=Rt(s,i,n),l=lt*-.5):(c=a-t,d=Rt(s,n,i),l=lt*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=kt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);ls(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:ag(n.align),textBaseline:"middle",translation:[o,s]})}}function gO(e,t){const n=new HC({ctx:e.ctx,options:t,chart:e});En.configure(e,n,t),En.addBox(e,n),e.titleBlock=n}var jC={id:"title",_element:HC,start(e,t,n){gO(e,n)},stop(e){const t=e.titleBlock;En.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;En.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const go={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Cf(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Wn(e,t){return t&&(pt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function gr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
177
|
+
*/class zM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=oC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var hr=new zM;const E0="transparent",GM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=g0(e||E0),i=r.valid&&g0(t||E0);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class ZM{constructor(t,n,r,i){const a=n[r];i=il([t.to,i,a,t.from]);const o=il([t.from,a,i]);this._active=!0,this._fn=t.fn||GM[t.type||typeof o],this._easing=So[t.easing]||So.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=il([t.to,n,i,t.from]),this._from=il([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class CC{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Ae(t))return;const n=Object.keys(ft.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Ae(a))return;const o={};for(const s of n)o[s]=a[s];(pt(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=YM(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&XM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=d=new ZM(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return hr.add(this._chart,r),!0}}function XM(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function YM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function _0(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function UM(e,t,n){if(n===!1)return!1;const r=_0(e,n),i=_0(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function JM(e){let t,n,r,i;return Ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function wC(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function I0(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],Mt(u)&&(a||t===0||tr(t)===tr(u))&&(t+=u)}return t}}function qM(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function $0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function KM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function QM(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function eB(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function R0(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function A0(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=KM(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:v}=g,y=g._stacks||(g._stacks={});h=y[u]=eB(i,c,m),h[s]=v,h._top=R0(h,o,!0,r.type),h._bottom=R0(h,o,!1,r.type);const b=h._visualValues||(h._visualValues={});b[s]=v}}function ud(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function tB(e,t){return Xi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function nB(e,t,n){return Xi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ja(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const cd=e=>e==="reset"||e==="none",F0=(e,t)=>t?e:Object.assign({},e),rB=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:wC(n,!0),values:null};class Fi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=$0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ja(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,a=n.xAxisID=Ee(r.xAxisID,ud(t,"x")),o=n.yAxisID=Ee(r.yAxisID,ud(t,"y")),s=n.rAxisID=Ee(r.rAxisID,ud(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&d0(this._data,this),t._stacked&&Ja(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Ae(n)){const i=this._cachedMeta;this._data=qM(n,i)}else if(r!==n){if(r){d0(r,this);const i=this._cachedMeta;Ja(i),i._parsed=[]}n&&Object.isExtensible(n)&&Lk(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=$0(n.vScale,n),n.stack!==r.stack&&(i=!0,Ja(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&A0(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{pt(i[t])?h=this.parseArrayData(r,i,t,n):Ae(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}o&&A0(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:a.parse(Hi(f,s),h),y:o.parse(Hi(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:wC(i,!0),values:n._stacks[t.axis]._visualValues};return I0(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=I0(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=rB(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=QM(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!Mt(f[t.axis])||c>m||d<m}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],Mt(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=JM(Ee(this.options.clip,UM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=nB(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=tB(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&is(r);if(s)return F0(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(ft.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(F0(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new CC(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||cd(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){cd(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!cd(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Ja(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(Fi,"defaults",{}),ae(Fi,"datasetElementType",null),ae(Fi,"dataElementType",null);function iB(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=aC(r.sort((i,a)=>i-a))}return e._cache.$bar}function aB(e){const t=e.iScale,n=iB(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(is(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return r}function oB(e,t,n,r){const i=n.barThickness;let a,o;return Ue(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function sB(e,t,n,r){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}function lB(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a);let l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}function DC(e,t,n,r){return pt(e)?lB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function P0(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let u,c,d,h;for(u=n,c=n+r;u<c;++u)h=t[u],d={},d[i.axis]=s||i.parse(o[u],u),l.push(DC(h,d,a,u));return l}function dd(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function uB(e,t,n){return e!==0?tr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function cB(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function dB(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:u,bottom:c}=cB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[T0(c,o,s,l)]=!0,i=u)),a[T0(i,o,s,l)]=!0,e.borderSkipped=a}function T0(e,t,n,r){return r?(e=fB(e,t,n),e=k0(e,n,t)):e=k0(e,t,n),e}function fB(e,t,n){return e===t?n:e===n?t:e}function k0(e,t,n){return e==="start"?t:e==="end"?n:e}function hB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Fl extends Fi{parsePrimitiveData(t,n,r,i){return P0(t,n,r,i)}parseArrayData(t,n,r,i){return P0(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?s:l,c=o.axis==="x"?s:l,d=[];let h,f,g,m;for(h=r,f=r+i;h<f;++h)m=n[h],g={},g[a.axis]=a.parse(Hi(m,u),h),d.push(DC(Hi(m,c),g,o,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=dd(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const g=this.getParsed(f),m=a||Ue(g[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),v=this._calculateBarIndexPixels(f,c),y=(g._stacks||{})[s.axis],b={horizontal:u,base:m.base,enableBorderRadius:!y||dd(g._custom)||o===y._top||o===y._bottom,x:u?m.head:v.center,y:u?v.center:m.head,height:u?v.size:Math.abs(m.size),width:u?Math.abs(m.size):v.size};h&&(b.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const x=b.options||t[f].options;dB(b,x,y,o),hB(b,x,c.ratio),this.updateElement(t[f],f,b,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,o=[],s=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(Ue(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const s=t.barThickness;return{min:s||aB(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),u=l._custom,c=dd(u);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,g,m;f!==d&&(h=f-d,f=d),c&&(d=u.barStart,f=u.barEnd-u.barStart,d!==0&&tr(d)!==tr(u.barEnd)&&(h=0),h+=d);const v=!Ue(a)&&!c?a:h;let y=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(h+f):g=y,m=g-y,Math.abs(m)<o){m=uB(m,n,s)*o,d===s&&(y-=m/2);const b=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),S=Math.min(b,x),w=Math.max(b,x);y=Math.max(Math.min(y,w),S),g=y+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(g)-n.getValueForPixel(y))}if(y===n.getPixelForValue(s)){const b=tr(m)*n.getLineWidthForValue(s)/2;y+=b,m-=b}return{size:m,base:y,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,o=Ee(i.maxBarThickness,1/0);let s,l;if(n.grouped){const u=a?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?sB(t,n,i,u):oB(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);s=c.start+c.chunk*d+c.chunk/2,l=Math.min(o,c.chunk*c.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}ae(Fl,"id","bar"),ae(Fl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(Fl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function gB(e,t,n){let r=1,i=1,a=0,o=0;if(t<it){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(x,S,w)=>os(x,s,l,!0)?1:Math.max(S,S*n,w,w*n),g=(x,S,w)=>os(x,s,l,!0)?-1:Math.min(S,S*n,w,w*n),m=f(0,u,d),v=f(vt,c,h),y=g(lt,u,d),b=g(lt+vt,c,h);r=(m-y)/2,i=(v-b)/2,a=-(m+y)/2,o=-(v+b)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class co extends Fi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Ae(r[t])){const{key:l="value"}=this._parsing;a=u=>+Hi(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Dr(this.options.rotation-90)}_getCircumference(){return Dr(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(Sk(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=gB(d,c,l),v=(r.width-o)/h,y=(r.height-o)/f,b=Math.max(Math.min(v,y)/2,0),x=eC(this.options.radius,b),S=Math.max(x*l,0),w=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/it)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:v}=this._getSharedOptions(n,i);let y=this._getRotation(),b;for(b=0;b<n;++b)y+=this._circumference(b,a);for(b=n;b<n+r;++b){const x=this._circumference(b,a),S=t[b],w={x:c+this.offsetX,y:d+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:g,innerRadius:f};v&&(w.options=m||this.resolveDataElementOptions(b,S.active?"active":i)),y+=x,this.updateElement(S,b,w,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=sg(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ee(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(co,"id","doughnut"),ae(co,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(co,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ae(co,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Pl extends Fi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=Wk(n,i,o);this._drawStart=s,this._drawCount=l,zk(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:g,segment:m}=this.options,v=as(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||a||i==="none",b=n+r,x=t.length;let S=n>0&&this.getParsed(n-1);for(let w=0;w<x;++w){const _=t[w],F=y?_:{};if(w<n||w>=b){F.skip=!0;continue}const p=this.getParsed(w),D=Ue(p[f]),$=F[h]=o.getPixelForValue(p[h],w),I=F[f]=a||D?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,p,l):p[f],w);F.skip=isNaN($)||isNaN(I)||D,F.stop=w>0&&Math.abs(p[h]-S[h])>v,m&&(F.parsed=p,F.raw=u.data[w]),d&&(F.options=c||this.resolveDataElementOptions(w,_.active?"active":i)),y||this.updateElement(_,w,F,i),S=p}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ae(Pl,"id","line"),ae(Pl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Pl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function fi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gg{constructor(t){ae(this,"options");this.options=t||{}}static override(t){Object.assign(gg.prototype,t)}init(){}formats(){return fi()}parse(){return fi()}format(){return fi()}add(){return fi()}diff(){return fi()}startOf(){return fi()}endOf(){return fi()}}var mB={_date:gg};function pB(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?Nk:_i;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function oc(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=pB(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function bB(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function fd(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||oc(e,n,t,function(s,l,u){!i&&!ss(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function vB(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=rC(o,{x:t.x,y:t.y});os(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return oc(e,n,t,a),i}function yB(e,t,n,r,i,a){let o=[];const s=bB(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!f)return;const v=s(t,g);v<l?(o=[{element:c,datasetIndex:d,index:h}],l=v):v===l&&o.push({element:c,datasetIndex:d,index:h})}return oc(e,n,t,u),o}function hd(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?vB(e,t,n,i):yB(e,t,n,r,i,a)}function M0(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return oc(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var xB={modes:{index(e,t,n,r){const i=pi(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?fd(e,i,a,r,o):hd(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?fd(e,i,a,r,o):hd(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return fd(e,i,a,r,o)},nearest(e,t,n,r){const i=pi(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return hd(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=pi(t,e);return M0(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=pi(t,e);return M0(e,i,"y",n.intersect,r)}}};const SC=["left","top","right","bottom"];function qa(e,t){return e.filter(n=>n.pos===t)}function B0(e,t){return e.filter(n=>SC.indexOf(n.pos)===-1&&n.box.axis===t)}function Ka(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function CB(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function wB(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!SC.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function DB(e,t){const n=wB(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function SB(e){const t=CB(e),n=Ka(t.filter(u=>u.box.fullSize),!0),r=Ka(qa(t,"left"),!0),i=Ka(qa(t,"right")),a=Ka(qa(t,"top"),!0),o=Ka(qa(t,"bottom")),s=B0(t,"x"),l=B0(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:qa(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function O0(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function EC(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function EB(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&EC(o,a.getPadding());const s=Math.max(0,t.outerWidth-O0(o,e,"left","right")),l=Math.max(0,t.outerHeight-O0(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function _B(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function IB(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function fo(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,IB(s.horizontal,t));const{same:d,other:h}=EB(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&fo(i,t,n,r)||c}function sl(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function N0(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;is(u.start)&&(o=u.start),l.fullSize?sl(l,i.left,o,n.outerWidth-i.right-i.left,h):sl(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;is(u.start)&&(a=u.start),l.fullSize?sl(l,a,i.top,h,n.outerHeight-i.bottom-i.top):sl(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var En={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=_n(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=SB(e.boxes),l=s.vertical,u=s.horizontal;Ge(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);EC(h,_n(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=DB(l.concat(u),d);fo(s.fullSize,f,d,g),fo(l,f,d,g),fo(u,f,d,g)&&fo(l,f,d,g),_B(f),N0(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,N0(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ge(s.chartArea,m=>{const v=m.box;Object.assign(v,e.chartArea),v.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class _C{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class $B extends _C{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Tl="$chartjs",RB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},V0=e=>e===null||e==="";function AB(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Tl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",V0(i)){const a=C0(e,"width");a!==void 0&&(e.width=a)}if(V0(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=C0(e,"height");a!==void 0&&(e.height=a)}return e}const IC=TM?{passive:!0}:!1;function FB(e,t,n){e&&e.addEventListener(t,n,IC)}function PB(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,IC)}function TB(e,t){const n=RB[e.type]||e.type,{x:r,y:i}=pi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Su(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function kB(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Su(s.addedNodes,r),o=o&&!Su(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function MB(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Su(s.removedNodes,r),o=o&&!Su(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const us=new Map;let L0=0;function $C(){const e=window.devicePixelRatio;e!==L0&&(L0=e,us.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function BB(e,t){us.size||window.addEventListener("resize",$C),us.set(e,t)}function OB(e){us.delete(e),us.size||window.removeEventListener("resize",$C)}function NB(e,t,n){const r=e.canvas,i=r&&hg(r);if(!i)return;const a=sC((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),BB(e,a),o}function gd(e,t,n){n&&n.disconnect(),t==="resize"&&OB(e)}function VB(e,t,n){const r=e.canvas,i=sC(a=>{e.ctx!==null&&n(TB(a,e))},e);return FB(r,t,i),i}class LB extends _C{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(AB(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Tl])return!1;const r=n[Tl].initial;["height","width"].forEach(a=>{const o=r[a];Ue(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Tl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:kB,detach:MB,resize:NB}[n]||VB;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:gd,detach:gd,resize:gd}[n]||PB)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return PM(t,n,r,i)}isAttached(t){const n=t&&hg(t);return!!(n&&n.isConnected)}}function HB(e){return!fg()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?$B:LB}var pl;let Pr=(pl=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return as(this.x)&&as(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ae(pl,"defaults",{}),ae(pl,"defaultRoutes"),pl);function jB(e,t){const n=e.options.ticks,r=WB(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?GB(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return ZB(t,u,a,o/i),u;const c=zB(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(ll(t,u,c,Ue(f)?0:s-f,s),d=0,h=o-1;d<h;d++)ll(t,u,c,a[d],a[d+1]);return ll(t,u,c,l,Ue(f)?t.length:l+f),u}return ll(t,u,c),u}function WB(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function zB(e,t,n){const r=XB(e),i=t.length/n;if(!r)return Math.max(i,1);const a=Pk(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function GB(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function ZB(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function ll(e,t,n,r,i){const a=Ee(r,0),o=Math.min(Ee(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function XB(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const YB=e=>e==="left"?"right":e==="right"?"left":e,H0=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,j0=(e,t)=>Math.min(t||e,e);function W0(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function UB(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function JB(e,t){Ge(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Qa(e){return e.drawTicks?e.tickLength:0}function z0(e,t){if(!e.display)return 0;const n=kt(e.font,t),r=_n(e.padding);return(pt(e.text)?e.text.length:1)*n.lineHeight+r.height}function qB(e,t){return Xi(e,{scale:t,type:"scale"})}function KB(e,t,n){return Xi(e,{tick:n,index:t,type:"tick"})}function QB(e,t,n){let r=ag(e);return(n&&t!=="right"||!n&&t==="right")&&(r=YB(r)),r}function e8(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=o-i,v=s-a;if(e.isHorizontal()){if(f=Rt(r,a,s),Ae(n)){const y=Object.keys(n)[0],b=n[y];g=c[y].getPixelForValue(b)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=H0(e,n,t);h=s-a}else{if(Ae(n)){const y=Object.keys(n)[0],b=n[y];f=c[y].getPixelForValue(b)-v+t}else n==="center"?f=(u.left+u.right)/2-v+t:f=H0(e,n,t);g=Rt(r,o,i),d=n==="left"?-vt:vt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Wa extends Pr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Hn(t,Number.POSITIVE_INFINITY),n=Hn(n,Number.NEGATIVE_INFINITY),r=Hn(r,Number.POSITIVE_INFINITY),i=Hn(i,Number.NEGATIVE_INFINITY),{min:Hn(t,r),max:Hn(n,i),minDefined:Mt(t),maxDefined:Mt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Hn(n,Hn(r,n)),max:Hn(r,Hn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Je(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=cM(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?W0(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=jB(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Je(this.options.afterUpdate,[this])}beforeSetDimensions(){Je(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Je(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Je(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Je(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Je(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Je(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Je(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=j0(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Tt(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-Qa(t.grid)-n.padding-z0(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=Mk(Math.min(Math.asin(Tt((c.highest.height+6)/s,-1,1)),Math.asin(Tt(l/u,-1,1))-Math.asin(Tt(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Je(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=z0(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Qa(a)+l):(t.height=this.maxHeight,t.width=Qa(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=Dr(this.labelRotation),m=Math.cos(g),v=Math.sin(g);if(s){const y=r.mirror?0:v*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{const y=r.mirror?0:m*d.width+v*h.height;t.width=Math.min(this.maxWidth,t.width+y+f)}this._calculatePadding(u,c,v,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Je(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Ue(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=W0(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/j0(n,r));let u=0,c=0,d,h,f,g,m,v,y,b,x,S,w;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=v=m.string,y=a[v]=a[v]||{data:{},gc:[]},b=m.lineHeight,x=S=0,!Ue(g)&&!pt(g))x=p0(i,y.data,y.gc,x,g),S=b;else if(pt(g))for(h=0,f=g.length;h<f;++h)w=g[h],!Ue(w)&&!pt(w)&&(x=p0(i,y.data,y.gc,x,w),S+=b);o.push(x),s.push(S),u=Math.max(x,u),c=Math.max(S,c)}JB(a,n);const _=o.indexOf(u),F=s.indexOf(c),p=D=>({width:o[D]||0,height:s[D]||0});return{first:p(0),last:p(n-1),widest:p(_),highest:p(F),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Ok(this._alignToPixels?di(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=KB(this.getContext(),t,r))}return this.$context||(this.$context=qB(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Dr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Qa(a),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,v=m/2,y=function(T){return di(r,T,m)};let b,x,S,w,_,F,p,D,$,I,A,k;if(o==="top")b=y(this.bottom),F=this.bottom-h,D=b-v,I=y(t.top)+v,k=t.bottom;else if(o==="bottom")b=y(this.top),I=t.top,k=y(t.bottom)-v,F=b+v,D=this.top+h;else if(o==="left")b=y(this.right),_=this.right-h,p=b-v,$=y(t.left)+v,A=t.right;else if(o==="right")b=y(this.left),$=t.left,A=y(t.right)-v,_=b+v,p=this.left+h;else if(n==="x"){if(o==="center")b=y((t.top+t.bottom)/2+.5);else if(Ae(o)){const T=Object.keys(o)[0],P=o[T];b=y(this.chart.scales[T].getPixelForValue(P))}I=t.top,k=t.bottom,F=b+v,D=F+h}else if(n==="y"){if(o==="center")b=y((t.left+t.right)/2);else if(Ae(o)){const T=Object.keys(o)[0],P=o[T];b=y(this.chart.scales[T].getPixelForValue(P))}_=b-v,p=_-h,$=t.left,A=t.right}const R=Ee(i.ticks.maxTicksLimit,d),M=Math.max(1,Math.ceil(d/R));for(x=0;x<d;x+=M){const T=this.getContext(x),P=a.setContext(T),B=s.setContext(T),O=P.lineWidth,L=P.color,H=B.dash||[],z=B.dashOffset,X=P.tickWidth,G=P.tickColor,j=P.tickBorderDash||[],V=P.tickBorderDashOffset;S=UB(this,x,l),S!==void 0&&(w=di(r,S,O),u?_=p=$=A=w:F=D=I=k=w,f.push({tx1:_,ty1:F,tx2:p,ty2:D,x1:$,y1:I,x2:A,y2:k,width:O,color:L,borderDash:H,borderDashOffset:z,tickWidth:X,tickColor:G,tickBorderDash:j,tickBorderDashOffset:V}))}return this._ticksLength=d,this._borderValue=b,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=Qa(r.grid),f=h+c,g=d?-c:f,m=-Dr(this.labelRotation),v=[];let y,b,x,S,w,_,F,p,D,$,I,A,k="middle";if(i==="top")_=this.bottom-g,F=this._getXAxisLabelAlignment();else if(i==="bottom")_=this.top+g,F=this._getXAxisLabelAlignment();else if(i==="left"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,w=M.x}else if(i==="right"){const M=this._getYAxisLabelAlignment(h);F=M.textAlign,w=M.x}else if(n==="x"){if(i==="center")_=(t.top+t.bottom)/2+f;else if(Ae(i)){const M=Object.keys(i)[0],T=i[M];_=this.chart.scales[M].getPixelForValue(T)+f}F=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-f;else if(Ae(i)){const M=Object.keys(i)[0],T=i[M];w=this.chart.scales[M].getPixelForValue(T)}F=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?k="top":l==="end"&&(k="bottom"));const R=this._getLabelSizes();for(y=0,b=s.length;y<b;++y){x=s[y],S=x.label;const M=a.setContext(this.getContext(y));p=this.getPixelForTick(y)+a.labelOffset,D=this._resolveTickFontOptions(y),$=D.lineHeight,I=pt(S)?S.length:1;const T=I/2,P=M.color,B=M.textStrokeColor,O=M.textStrokeWidth;let L=F;o?(w=p,F==="inner"&&(y===b-1?L=this.options.reverse?"left":"right":y===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||m!==0?A=-I*$+$/2:u==="center"?A=-R.highest.height/2-T*$+$:A=-R.highest.height+$/2:u==="near"||m!==0?A=$/2:u==="center"?A=R.highest.height/2-T*$:A=R.highest.height-I*$,d&&(A*=-1),m!==0&&!M.showLabelBackdrop&&(w+=$/2*Math.sin(m))):(_=p,A=(1-I)*$/2);let H;if(M.showLabelBackdrop){const z=_n(M.backdropPadding),X=R.heights[y],G=R.widths[y];let j=A-z.top,V=0-z.left;switch(k){case"middle":j-=X/2;break;case"bottom":j-=X;break}switch(F){case"center":V-=G/2;break;case"right":V-=G;break;case"inner":y===b-1?V-=G:y>0&&(V-=G/2);break}H={left:V,top:j,width:G+z.width,height:X+z.height,color:M.backdropColor}}v.push({label:S,font:D,textOffset:A,options:{rotation:m,color:P,strokeColor:B,strokeWidth:O,textAlign:L,textBaseline:k,translation:[w,_],backdrop:H}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Dr(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=di(t,this.left,o)-o/2,c=di(t,this.right,s)+s/2,d=h=l):(d=di(t,this.top,o)-o/2,h=di(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&rc(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;ls(r,u,0,c,l,s)}i&&ic(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=kt(r.font),o=_n(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Ae(n)?(l+=o.bottom,pt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=e8(this,l,n,s);ls(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:QB(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ee(t.grid&&t.grid.z,-1),i=Ee(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Wa.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return kt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ul{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;r8(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,t8(t,o,r),this.override&&ft.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in ft[i]&&(delete ft[i][r],this.override&&delete ji[r])}}function t8(e,t,n){const r=rs(Object.create(null),[n?ft.get(n):{},ft.get(t),e.defaults]);ft.set(t,r),e.defaultRoutes&&n8(t,e.defaultRoutes),e.descriptors&&ft.describe(t,e.descriptors)}function n8(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ft.route(a,i,l,s)})}function r8(e){return"id"in e&&"defaults"in e}class i8{constructor(){this.controllers=new ul(Fi,"datasets",!0),this.elements=new ul(Pr,"elements"),this.plugins=new ul(Object,"plugins"),this.scales=new ul(Wa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Ge(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=rg(t);Je(r["before"+i],[],r),n[t](r),Je(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Gn=new i8;class a8{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Je(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Ue(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ee(r.options&&r.options.plugins,{}),a=o8(r);return i===!1&&!n?[]:l8(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function o8(e){const t={},n=[],r=Object.keys(Gn.plugins.items);for(let a=0;a<r.length;a++)n.push(Gn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function s8(e,t){return!t&&e===!1?null:e===!0?{}:e}function l8(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=s8(r[l],i);u!==null&&a.push({plugin:s,options:u8(e.config,{plugin:s,local:n[l]},u,o)})}return a}function u8(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Sf(e,t){const n=ft.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function c8(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function d8(e,t){return e===t?"_index_":"_value_"}function G0(e){if(e==="x"||e==="y"||e==="r")return e}function f8(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Ef(e,...t){if(G0(e))return e;for(const n of t){const r=n.axis||f8(n.position)||e.length>1&&G0(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Z0(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function h8(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Z0(e,"x",n[0])||Z0(e,"y",n[0])}return{}}function g8(e,t){const n=ji[e.type]||{scales:{}},r=t.scales||{},i=Sf(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Ae(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Ef(o,s,h8(o,e),ft.scales[s.type]),u=d8(l,i),c=n.scales||{};a[o]=wo(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||Sf(s,t),c=(ji[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=c8(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),wo(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];wo(s,[ft.scales[s.type],ft.scale])}),a}function RC(e){const t=e.options||(e.options={});t.plugins=Ee(t.plugins,{}),t.scales=g8(e,t)}function AC(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function m8(e){return e=e||{},e.data=AC(e.data),RC(e),e}const X0=new Map,FC=new Set;function cl(e,t){let n=X0.get(e);return n||(n=t(),X0.set(e,n),FC.add(n)),n}const eo=(e,t,n)=>{const r=Hi(t,n);r!==void 0&&e.add(r)};class p8{constructor(t){this._config=m8(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=AC(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),RC(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return cl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return cl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return cl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return cl(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>eo(l,t,d))),c.forEach(d=>eo(l,i,d)),c.forEach(d=>eo(l,ji[a]||{},d)),c.forEach(d=>eo(l,ft,d)),c.forEach(d=>eo(l,wf,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),FC.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ji[n]||{},ft.datasets[n]||{},{type:n},ft,wf]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Y0(this._resolverCache,t,i);let l=o;if(v8(o,n)){a.$shared=!1,r=ti(r)?r():r;const u=this.createResolver(t,r,s);l=Ta(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Y0(this._resolverCache,t,r);return Ae(n)?Ta(a,n,void 0,i):a}}function Y0(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:ug(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const b8=e=>Ae(e)&&Object.getOwnPropertyNames(e).some(t=>ti(e[t]));function v8(e,t){const{isScriptable:n,isIndexable:r}=dC(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(ti(s)||b8(s))||o&&pt(s))return!0}return!1}var y8="4.4.3";const x8=["top","bottom","left","right","chartArea"];function U0(e,t){return e==="top"||e==="bottom"||x8.indexOf(e)===-1&&t==="x"}function J0(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function q0(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Je(n&&n.onComplete,[e],t)}function C8(e){const t=e.chart,n=t.options.animation;Je(n&&n.onProgress,[e],t)}function PC(e){return fg()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const kl={},K0=e=>{const t=PC(e);return Object.values(kl).filter(n=>n.canvas===t).pop()};function w8(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function D8(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function dl(e,t,n){return e.options.clip?e[n]:t[n]}function S8(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:dl(n,t,"left"),right:dl(n,t,"right"),top:dl(r,t,"top"),bottom:dl(r,t,"bottom")}:t}var Or;let Yi=(Or=class{static register(...t){Gn.add(...t),Q0()}static unregister(...t){Gn.remove(...t),Q0()}constructor(t,n){const r=this.config=new p8(n),i=PC(t),a=K0(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||HB(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=Dk(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new a8,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hk(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],kl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}hr.listen(this,"complete",q0),hr.listen(this,"progress",C8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Ue(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Gn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():x0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return b0(this.canvas,this.ctx),this}stop(){return hr.stop(this),this}resize(t,n){hr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,x0(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Je(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ge(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=Ef(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ge(a,o=>{const s=o.options,l=s.id,u=Ef(l,s),c=Ee(s.type,o.dtype);(s.position===void 0||U0(s.position,u)!==U0(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Gn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Ge(i,(o,s)=>{o||delete r[s]}),Ge(r,o=>{En.configure(this,o,o.options),En.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(J0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||Sf(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Gn.getController(s),{datasetElementType:u,dataElementType:c}=ft.datasets[s];Object.assign(l,{dataElementType:Gn.getElement(c),datasetElementType:u&&Gn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ge(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Ge(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(J0("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ge(this.scales,t=>{En.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!s0(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;w8(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!s0(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;En.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ge(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ti(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(hr.has(this)?this.attached&&!hr.running(this)&&hr.start(this):(this.draw(),q0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=S8(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&rc(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&ic(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return ss(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=xB.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Xi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);is(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),hr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),b0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete kl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Ge(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){Ge(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ge(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!yu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=Rk(t),u=D8(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Je(a.onHover,[t,s,this],this),l&&Je(a.onClick,[t,s,this],this));const c=!yu(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ae(Or,"defaults",ft),ae(Or,"instances",kl),ae(Or,"overrides",ji),ae(Or,"registry",Gn),ae(Or,"version",y8),ae(Or,"getChart",K0),Or);function Q0(){return Ge(Yi.instances,e=>e._plugins.invalidate())}function E8(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+vt,r-vt),e.closePath(),e.clip()}function _8(e){return lg(e,["outerStart","outerEnd","innerStart","innerEnd"])}function I8(e,t,n,r){const i=_8(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return Tt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Tt(i.innerStart,0,o),innerEnd:Tt(i.innerEnd,0,o)}}function la(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Eu(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const M=c>0?c-r:0,T=d>0?d-r:0,P=(M+T)/2,B=P!==0?g*P/(P+r):g;f=(g-B)/2}const m=Math.max(.001,g*d-n/lt)/d,v=(g-m)/2,y=l+v+f,b=i-v-f,{outerStart:x,outerEnd:S,innerStart:w,innerEnd:_}=I8(t,h,d,b-y),F=d-x,p=d-S,D=y+x/F,$=b-S/p,I=h+w,A=h+_,k=y+w/I,R=b-_/A;if(e.beginPath(),a){const M=(D+$)/2;if(e.arc(o,s,d,D,M),e.arc(o,s,d,M,$),S>0){const O=la(p,$,o,s);e.arc(O.x,O.y,S,$,b+vt)}const T=la(A,b,o,s);if(e.lineTo(T.x,T.y),_>0){const O=la(A,R,o,s);e.arc(O.x,O.y,_,b+vt,R+Math.PI)}const P=(b-_/h+(y+w/h))/2;if(e.arc(o,s,h,b-_/h,P,!0),e.arc(o,s,h,P,y+w/h,!0),w>0){const O=la(I,k,o,s);e.arc(O.x,O.y,w,k+Math.PI,y-vt)}const B=la(F,y,o,s);if(e.lineTo(B.x,B.y),x>0){const O=la(F,D,o,s);e.arc(O.x,O.y,x,y-vt,D)}}else{e.moveTo(o,s);const M=Math.cos(D)*d+o,T=Math.sin(D)*d+s;e.lineTo(M,T);const P=Math.cos($)*d+o,B=Math.sin($)*d+s;e.lineTo(P,B)}e.closePath()}function $8(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Eu(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%it||it))}return Eu(e,t,n,r,l,i),e.fill(),l}function R8(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(a){Eu(e,t,n,r,g,i);for(let m=0;m<a;++m)e.stroke();isNaN(s)||(g=o+(s%it||it))}f&&E8(e,t,g),a||(Eu(e,t,n,r,g,i),e.stroke())}class ho extends Pr{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=rC(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=Ee(h,u-l)>=it||os(o,l,u),v=Sr(s,c+f,d+f);return m&&v}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>it?Math.floor(i/it):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(lt,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,$8(n,this,c,o,s),R8(n,this,c,o,s),n.restore()}}ae(ho,"id","arc"),ae(ho,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(ho,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(ho,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function TC(e,t,n=t){e.lineCap=Ee(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ee(n.borderDash,t.borderDash)),e.lineDashOffset=Ee(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ee(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ee(n.borderWidth,t.borderWidth),e.strokeStyle=Ee(n.borderColor,t.borderColor)}function A8(e,t,n){e.lineTo(n.x,n.y)}function F8(e){return e.stepped?tM:e.tension||e.cubicInterpolationMode==="monotone"?nM:A8}function kC(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function P8(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=kC(i,n,r),c=F8(a);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,a.stepped),m=g);return l&&(g=i[(s+(h?u:0))%o],c(e,m,g,h,a.stepped)),!!l}function T8(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=kC(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,v,y;const b=S=>(o+(u?s-S:S))%a,x=()=>{m!==v&&(e.lineTo(c,v),e.lineTo(c,m),e.lineTo(c,y))};for(l&&(f=i[b(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[b(h)],f.skip)continue;const S=f.x,w=f.y,_=S|0;_===g?(w<m?m=w:w>v&&(v=w),c=(d*c+S)/++d):(x(),e.lineTo(S,w),g=_,d=0,m=v=w),y=w}x()}function _f(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?T8:P8}function k8(e){return e.stepped?kM:e.tension||e.cubicInterpolationMode==="monotone"?MM:bi}function M8(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),TC(e,t.options),e.stroke(i)}function B8(e,t,n,r){const{segments:i,options:a}=t,o=_f(t);for(const s of i)TC(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const O8=typeof Path2D=="function";function N8(e,t,n,r){O8&&!t.options.segment?M8(e,t,n,r):B8(e,t,n,r)}class qn extends Pr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;_M(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=HM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=xC(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=k8(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),v=l(f,g,m,r.stepped);v[n]=t[n],s.push(v)}return s.length===1?s[0]:s}pathSegment(t,n,r){return _f(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=_f(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),N8(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(qn,"id","line"),ae(qn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(qn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(qn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function eb(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class Pi extends Pr{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return eb(this,n,"x",r)}inYRange(n,r){return eb(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!ss(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Df(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(Pi,"id","point"),ae(Pi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(Pi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function MC(e,t){const{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,d;return e.horizontal?(d=o/2,s=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=a/2,s=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function Xr(e,t,n,r){return e?0:Tt(t,n,r)}function V8(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=cC(r);return{t:Xr(i.top,a.top,0,n),r:Xr(i.right,a.right,0,t),b:Xr(i.bottom,a.bottom,0,n),l:Xr(i.left,a.left,0,t)}}function L8(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Da(i),o=Math.min(t,n),s=e.borderSkipped,l=r||Ae(i);return{topLeft:Xr(!l||s.top||s.left,a.topLeft,0,o),topRight:Xr(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Xr(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Xr(!l||s.bottom||s.right,a.bottomRight,0,o)}}function H8(e){const t=MC(e),n=t.right-t.left,r=t.bottom-t.top,i=V8(e,n/2,r/2),a=L8(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function md(e,t,n,r){const i=t===null,a=n===null,s=e&&!(i&&a)&&MC(e,r);return s&&(i||Sr(t,s.left,s.right))&&(a||Sr(n,s.top,s.bottom))}function j8(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function W8(e,t){e.rect(t.x,t.y,t.w,t.h)}function pd(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class Ml extends Pr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=H8(this),s=j8(o.radius)?wu:W8;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,pd(o,n,a)),t.clip(),s(t,pd(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,pd(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return md(this,t,n,r)}inXRange(t,n){return md(this,t,null,n)}inYRange(t,n){return md(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}ae(Ml,"id","bar"),ae(Ml,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(Ml,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function z8(e,t,n){const r=e.segments,i=e.points,a=t.points,o=[];for(const s of r){let{start:l,end:u}=s;u=mg(l,u,i);const c=If(n,i[l],i[u],s.loop);if(!t.segments){o.push({source:s,target:c,start:i[l],end:i[u]});continue}const d=xC(t,c);for(const h of d){const f=If(n,a[h.start],a[h.end],h.loop),g=yC(s,i,f);for(const m of g)o.push({source:m,target:h,start:{[n]:tb(c,f,"start",Math.max)},end:{[n]:tb(c,f,"end",Math.min)}})}}return o}function If(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=Xn(i),a=Xn(a)),{property:e,start:i,end:a}}function G8(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:o,end:s})=>{s=mg(o,s,i);const l=i[o],u=i[s];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function mg(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function tb(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function BC(e,t){let n=[],r=!1;return pt(e)?(r=!0,n=e):n=G8(e,t),n.length?new qn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function nb(e){return e&&e.fill!==!1}function Z8(e,t,n){let i=e[t].fill;const a=[t];let o;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Mt(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;a.push(i),i=o.fill}return!1}function X8(e,t,n){const r=q8(e);if(Ae(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Mt(i)&&Math.floor(i)===i?Y8(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Y8(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function U8(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Ae(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function J8(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Ae(e)?r=e.value:r=t.getBaseValue(),r}function q8(e){const t=e.options,n=t.fill;let r=Ee(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function K8(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=Q8(t,n);s.push(BC({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)eO(i,o[c],s)}return new qn({points:i,options:{}})}function Q8(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function eO(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:o,last:s,point:l}=tO(a,t,"x");if(!(!l||o&&s)){if(o)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function tO(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,o=e.points;let s=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],d=o[c.start][n],h=o[c.end][n];if(Sr(i,d,h)){s=i===d,l=i===h;break}}return{first:s,last:l,point:r}}class OC{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:o}=this;return n=n||{start:0,end:it},t.arc(i,a,o,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function nO(e){const{chart:t,fill:n,line:r}=e;if(Mt(n))return rO(t,n);if(n==="stack")return K8(e);if(n==="shape")return!0;const i=iO(e);return i instanceof OC?i:BC(i,r)}function rO(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function iO(e){return(e.scale||{}).getPointPositionForValue?oO(e):aO(e)}function aO(e){const{scale:t={},fill:n}=e,r=U8(n,t);if(Mt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function oO(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=J8(n,t,a),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new OC({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,o));return s}function bd(e,t,n){const r=nO(t),{line:i,scale:a,axis:o}=t,s=i.options,l=s.fill,u=s.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(rc(e,n),sO(e,{line:i,target:r,above:c,below:d,area:n,scale:a,axis:o}),ic(e))}function sO(e,t){const{line:n,target:r,above:i,below:a,area:o,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(rb(e,r,o.top),ib(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),rb(e,r,o.bottom)),ib(e,{line:n,target:r,color:a,scale:s,property:l}),e.restore()}function rb(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],d=i[mg(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function ib(e,t){const{line:n,target:r,property:i,color:a,scale:o}=t,s=z8(n,r,i);for(const{source:l,target:u,start:c,end:d}of s){const{style:{backgroundColor:h=a}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,lO(e,o,f&&If(i,c,d)),e.beginPath();const g=!!n.pathSegment(e,l);let m;if(f){g?e.closePath():ab(e,r,d,i);const v=!!r.pathSegment(e,u,{move:g,reverse:!0});m=g&&v,m||ab(e,r,c,i)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function lO(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:o,end:s}=n||{};a==="x"&&(e.beginPath(),e.rect(o,r,s-o,i-r),e.clip())}function ab(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var NC={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,o,s,l;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof qn&&(l={visible:e.isDatasetVisible(o),index:o,fill:X8(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=Z8(i,o,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&bd(e.ctx,s,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;nb(a)&&bd(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!nb(r)||n.drawTime!=="beforeDatasetDraw"||bd(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ob=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},uO=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class sb extends Pr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Je(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=kt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=ob(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const v=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+v+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:v,height:i},u[u.length-1]+=v+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:b,itemHeight:x}=cO(r,n,a,v,i);y>0&&f+x+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[y]={left:g,top:f,col:m,width:b,height:x},h=Math.max(h,b),f+=x+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=Sa(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Rt(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=Rt(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=Rt(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;rc(t,this),this._draw(),ic(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ft.color,l=Sa(t.rtl,this.left,this.width),u=kt(o.font),{padding:c}=o,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=ob(o,d),y=function(_,F,p){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const D=Ee(p.lineWidth,1);if(i.fillStyle=Ee(p.fillStyle,s),i.lineCap=Ee(p.lineCap,"butt"),i.lineDashOffset=Ee(p.lineDashOffset,0),i.lineJoin=Ee(p.lineJoin,"miter"),i.lineWidth=D,i.strokeStyle=Ee(p.strokeStyle,s),i.setLineDash(Ee(p.lineDash,[])),o.usePointStyle){const $={radius:m*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:D},I=l.xPlus(_,g/2),A=F+h;uC(i,$,I,A,o.pointStyleWidth&&g)}else{const $=F+Math.max((d-m)/2,0),I=l.leftForLtr(_,g),A=Da(p.borderRadius);i.beginPath(),Object.values(A).some(k=>k!==0)?wu(i,{x:I,y:$,w:g,h:m,radius:A}):i.rect(I,$,g,m),i.fill(),D!==0&&i.stroke()}i.restore()},b=function(_,F,p){ls(i,p.text,_,F+v/2,u,{strikethrough:p.hidden,textAlign:l.textAlign(p.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?f={x:Rt(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:f={x:this.left+c,y:Rt(a,this.top+S+c,this.bottom-n[0].height),line:0},pC(this.ctx,t.textDirection);const w=v+c;this.legendItems.forEach((_,F)=>{i.strokeStyle=_.fontColor,i.fillStyle=_.fontColor;const p=i.measureText(_.text).width,D=l.textAlign(_.textAlign||(_.textAlign=o.textAlign)),$=g+h+p;let I=f.x,A=f.y;l.setWidth(this.width),x?F>0&&I+$+c>this.right&&(A=f.y+=w,f.line++,I=f.x=Rt(a,this.left+c,this.right-r[f.line])):F>0&&A+w>this.bottom&&(I=f.x=I+n[f.line].width+c,f.line++,A=f.y=Rt(a,this.top+S+c,this.bottom-n[f.line].height));const k=l.x(I);if(y(k,A,_),I=jk(D,I+g+h,x?I+$:this.right,t.rtl),b(l.x(I),A,_),x)f.x+=$+c;else if(typeof _.text!="string"){const R=u.lineHeight;f.y+=VC(_,R)+c}else f.y+=w}),bC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=kt(n.font),i=_n(n.padding);if(!n.display)return;const a=Sa(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=Rt(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);c=u+Rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=Rt(s,d,d+h);o.textAlign=a.textAlign(ag(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,ls(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=kt(t.font),r=_n(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Sr(t,this.left,this.right)&&Sr(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Sr(t,i.left,i.left+i.width)&&Sr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!hO(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=uO(i,r);i&&!a&&Je(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Je(n.onHover,[t,r,this],this)}else r&&Je(n.onClick,[t,r,this],this)}}function cO(e,t,n,r,i){const a=dO(r,e,t,n),o=fO(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function dO(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function fO(e,t,n){let r=e;return typeof t.text!="string"&&(r=VC(t,n)),r}function VC(e,t){const n=e.text?e.text.length:0;return t*n}function hO(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var LC={id:"legend",_element:sb,start(e,t,n){const r=e.legend=new sb({ctx:e.ctx,options:n,chart:e});En.configure(e,r,n),En.addBox(e,r)},stop(e){En.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;En.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=_n(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class HC extends Pr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=pt(r.text)?r.text.length:1;this._padding=_n(r.padding);const a=i*kt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Rt(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=Rt(s,i,n),l=lt*-.5):(c=a-t,d=Rt(s,n,i),l=lt*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=kt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);ls(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:ag(n.align),textBaseline:"middle",translation:[o,s]})}}function gO(e,t){const n=new HC({ctx:e.ctx,options:t,chart:e});En.configure(e,n,t),En.addBox(e,n),e.titleBlock=n}var jC={id:"title",_element:HC,start(e,t,n){gO(e,n)},stop(e){const t=e.titleBlock;En.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;En.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const go={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Cf(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Wn(e,t){return t&&(pt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function gr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
178
178
|
`)>-1?e.split(`
|
179
|
-
`):e}function mO(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function lb(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=kt(t.bodyFont),u=kt(t.titleFont),c=kt(t.footerFont),d=a.length,h=i.length,f=r.length,g=_n(t.padding);let m=g.height,v=0,y=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*S+(y-f)*l.lineHeight+(y-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let b=0;const x=function(S){v=Math.max(v,n.measureText(S).width+b)};return n.save(),n.font=u.string,Ge(e.title,x),n.font=l.string,Ge(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?o+2+t.boxPadding:0,Ge(r,S=>{Ge(S.before,x),Ge(S.lines,x),Ge(S.after,x)}),b=0,n.font=c.string,Ge(e.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function pO(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function bO(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function vO(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),bO(u,e,t,n)&&(u="center"),u}function ub(e,t,n){const r=n.yAlign||t.yAlign||pO(e,n);return{xAlign:n.xAlign||t.xAlign||vO(e,t,n,r),yAlign:r}}function yO(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function xO(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function cb(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=Da(o);let g=yO(t,s);const m=xO(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:Tt(g,0,r.width-t.width),y:Tt(m,0,r.height-t.height)}}function fl(e,t,n){const r=_n(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function db(e){return Wn([],gr(e))}function CO(e,t,n){return Xi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function fb(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const WC={beforeTitle:dr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:dr,beforeBody:dr,beforeLabel:dr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ue(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:dr,afterBody:dr,beforeFooter:dr,footer:dr,afterFooter:dr};function Ut(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?WC[t].call(n,r):i}var yd;let hb=(yd=class extends Pr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new CC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=CO(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ut(r,"beforeTitle",this,t),a=Ut(r,"title",this,t),o=Ut(r,"afterTitle",this,t);let s=[];return s=Wn(s,gr(i)),s=Wn(s,gr(a)),s=Wn(s,gr(o)),s}getBeforeBody(t,n){return db(Ut(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ge(t,a=>{const o={before:[],lines:[],after:[]},s=fb(r,a);Wn(o.before,gr(Ut(s,"beforeLabel",this,a))),Wn(o.lines,Ut(s,"label",this,a)),Wn(o.after,gr(Ut(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return db(Ut(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ut(r,"beforeFooter",this,t),a=Ut(r,"footer",this,t),o=Ut(r,"afterFooter",this,t);let s=[];return s=Wn(s,gr(i)),s=Wn(s,gr(a)),s=Wn(s,gr(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(mO(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),Ge(s,c=>{const d=fb(t.callbacks,c);i.push(Ut(d,"labelColor",this,c)),a.push(Ut(d,"labelPointStyle",this,c)),o.push(Ut(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=go[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=lb(this,r),u=Object.assign({},s,l),c=ub(this.chart,r,u),d=cb(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Da(s),{x:h,y:f}=t,{width:g,height:m}=n;let v,y,b,x,S,w;return a==="center"?(S=f+m/2,i==="left"?(v=h,y=v-o,x=S+o,w=S-o):(v=h+g,y=v+o,x=S-o,w=S+o),b=v):(i==="left"?y=h+Math.max(l,c)+o:i==="right"?y=h+g-Math.max(u,d)-o:y=this.caretX,a==="top"?(x=f,S=x-o,v=y-o,b=y+o):(x=f+m,S=x+o,v=y+o,b=y-o),w=x),{x1:v,x2:y,x3:b,y1:x,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=Sa(r.rtl,this.x,this.width);for(t.x=fl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=kt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=kt(a.bodyFont),d=fl(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},v=i.leftForLtr(h,u)+u/2,y=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Df(t,m,v,y),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Df(t,m,v,y)}else{t.lineWidth=Ae(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),v=i.leftForLtr(i.xPlus(h,1),u-2),y=Da(o.borderRadius);Object.values(y).some(b=>b!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,wu(t,{x:m,y:g,w:u,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),wu(t,{x:v,y:g+1,w:u-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(v,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=kt(r.bodyFont);let h=d.lineHeight,f=0;const g=Sa(r.rtl,this.x,this.width),m=function(p){n.fillText(p,g.x(t.x+f),t.y+h/2),t.y+=h+a},v=g.textAlign(o);let y,b,x,S,w,I,F;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=fl(this,v,r),n.fillStyle=r.bodyColor,Ge(this.beforeBody,m),f=s&&v!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,I=i.length;S<I;++S){for(y=i[S],b=this.labelTextColors[S],n.fillStyle=b,Ge(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,S,g,r),h=Math.max(d.lineHeight,l)),w=0,F=x.length;w<F;++w)m(x[w]),h=d.lineHeight;Ge(y.after,m)}f=0,h=d.lineHeight,Ge(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=Sa(r.rtl,this.x,this.width);for(t.x=fl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=kt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=Da(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=go[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=lb(this,t),l=Object.assign({},o,this._size),u=ub(n,t,l),c=cb(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=_n(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),pC(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),bC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!yu(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!yu(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=go[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},ae(yd,"positioners",go),yd);var cs={id:"tooltip",_element:hb,positioners:go,afterInit(e,t,n){n&&(e.tooltip=new hb({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:WC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const wO=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function DO(e,t,n,r){const i=e.indexOf(t);if(i===-1)return wO(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const SO=(e,t)=>e===null?null:Tt(Math.round(e),0,t);function gb(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ma extends Wa{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ue(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:DO(r,t,Ee(n,t),this._addedLabels),SO(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return gb.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ae(Ma,"id","category"),ae(Ma,"defaults",{ticks:{callback:gb}});function EO(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:m,max:v}=t,y=!Ue(o),b=!Ue(s),x=!Ue(u),S=(v-m)/(d+1);let w=u0((v-m)/g/f)*f,I,F,p,D;if(w<1e-14&&!y&&!b)return[{value:m},{value:v}];D=Math.ceil(v/w)-Math.floor(m/w),D>g&&(w=u0(D*w/g/f)*f),Ue(l)||(I=Math.pow(10,l),w=Math.ceil(w*I)/I),i==="ticks"?(F=Math.floor(m/w)*w,p=Math.ceil(v/w)*w):(F=m,p=v),y&&b&&a&&Tk((s-o)/a,w/1e3)?(D=Math.round(Math.min((s-o)/w,c)),w=(s-o)/D,F=o,p=s):x?(F=y?o:F,p=b?s:p,D=u-1,w=(p-F)/D):(D=(p-F)/w,Do(D,Math.round(D),w/1e3)?D=Math.round(D):D=Math.ceil(D));const $=Math.max(c0(w),c0(F));I=Math.pow(10,Ue(l)?$:l),F=Math.round(F*I)/I,p=Math.round(p*I)/I;let _=0;for(y&&(h&&F!==o?(n.push({value:o}),F<o&&_++,Do(Math.round((F+_*w)*I)/I,o,mb(o,S,e))&&_++):F<o&&_++);_<D;++_){const A=Math.round((F+_*w)*I)/I;if(b&&A>s)break;n.push({value:A})}return b&&h&&p!==s?n.length&&Do(n[n.length-1].value,s,mb(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!b||p===s)&&n.push({value:p}),n}function mb(e,t,{horizontal:n,minRotation:r}){const i=Dr(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class _O extends Wa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Ue(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=tr(i),u=tr(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=EO(i,a);return t.bounds==="ticks"&&kk(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return sg(t,this.chart.options.locale,this.options.ticks.format)}}class Ba extends _O{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Mt(t)?t:0,this.max=Mt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Dr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ae(Ba,"id","linear"),ae(Ba,"defaults",{ticks:{callback:lC.formatters.numeric}});const sc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qt=Object.keys(sc);function pb(e,t){return e-t}function bb(e,t){if(Ue(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),Mt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(as(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function vb(e,t,n,r){const i=qt.length;for(let a=qt.indexOf(e);a<i-1;++a){const o=sc[qt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return qt[a]}return qt[i-1]}function IO(e,t,n,r,i){for(let a=qt.length-1;a>=qt.indexOf(n);a--){const o=qt[a];if(sc[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return qt[n?qt.indexOf(n):0]}function $O(e){for(let t=qt.indexOf(e)+1,n=qt.length;t<n;++t)if(sc[qt[t]].common)return qt[t]}function yb(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=ig(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function RO(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function xb(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:RO(e,r,i,n)}class _u extends Wa{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new mB._date(t.adapters.date);i.init(n),wo(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:bb(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Mt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Mt(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=Vk(i,a,o);return this._unit=n.unit||(r.autoSkip?vb(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):IO(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:$O(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),xb(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Tt(n,0,o),r=Tt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||vb(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ee(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=as(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)yb(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&yb(c,h,g),Object.keys(c).sort(pb).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Je(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Dr(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,xb(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(bb(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return aC(t.sort(pb))}}ae(_u,"id","time"),ae(_u,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hl(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=_i(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=_i(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Cb extends _u{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hl(n,this.min),this._tableRange=hl(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hl(this._table,r*this._tableRange+this._minPos,!0)}}ae(Cb,"id","timeseries"),ae(Cb,"defaults",_u.defaults);const zC="label";function wb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function AO(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function GC(e,t){e.labels=t}function ZC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zC;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function FO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zC;const n={labels:[],datasets:[]};return GC(n,e.labels),ZC(n,e.datasets,t),n}function PO(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=C.useRef(null),g=C.useRef(),m=()=>{f.current&&(g.current=new Yi(f.current,{type:o,data:FO(s,a),options:l&&{...l},plugins:u}),wb(t,g.current))},v=()=>{wb(t,null),g.current&&(g.current.destroy(),g.current=null)};return C.useEffect(()=>{!i&&g.current&&l&&AO(g.current,l)},[i,l]),C.useEffect(()=>{!i&&g.current&&GC(g.current.config.data,s.labels)},[i,s.labels]),C.useEffect(()=>{!i&&g.current&&s.datasets&&ZC(g.current.config.data,s.datasets,a)},[i,s.datasets]),C.useEffect(()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),C.useEffect(()=>{g.current&&(v(),setTimeout(m))},[o]),C.useEffect(()=>(m(),()=>v()),[]),C.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const TO=C.forwardRef(PO);function pg(e,t){return Yi.register(t),C.forwardRef((n,r)=>C.createElement(TO,Object.assign({},n,{ref:r,type:e})))}const XC=pg("line",Pl),kO=pg("bar",Fl),Db=pg("doughnut",co);Yi.register(Ma,Ba,Pi,qn,ho,jC,cs,LC);const Sb=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var _;const S=[].concat(t),w=S.length,I=u.font;let F=0,p=0,D;for(D=0;D<w;++D)u.font=S[D].font,F=Math.max(u.measureText(S[D].text).width,F),p+=(_=S[D].font)==null?void 0:_.lineHeight;return u.font=I,{height:p,width:F}},d=(S,w)=>{let I=document.createElement("div");document.body.appendChild(I),I.style.fontSize=`${w}px`,I.style.position="absolute",I.style.left="-10",I.style.top="-10",I.textContent=S;const F={width:I.clientWidth,height:I.clientHeight};return document.body.removeChild(I),I=null,F},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,v=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let y;const b=t.length;let x=0;for(y=0;y<b;++y){let S=(i=t[y].font)==null?void 0:i.size,w=(a=t[y].font)==null?void 0:a.lineHeight;const I=typeof t[y].text=="number"?t[y].text.toString():t[y].text;for(;d(I,S).width>f+(t[y].id==="value"?50:0);)S-=1,w=d(I,S).height;I.length>22&&w<14&&(w=18);const F=v+w/2+x,p=typeof t[y].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[y].text):t[y].text;let D=t[y].urlIconDesc?" ":"";if(t[y].percentage!==void 0?D+=`${t[y].percentage}% ${t[y].text}`:D+=p,u.fillStyle=t[y].color,u.font=`${S<10?10:S}px sans-serif`,x+=w,t[y].percentage!==void 0&&t[y].urlIconDesc){const $=((s=(o=t[y])==null?void 0:o.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[y].urlIconDesc,u.drawImage(_,45-($>6?$+2:$-2.5),F-8,16,14)}u.fillText(D,g,F)}u.restore(),u.save()}},MO=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let v=document.getElementById("chartjs-tooltip");v||(v=document.createElement("div"),v.id="chartjs-tooltip",v.innerHTML="<table></table>",document.body.appendChild(v));const y=m.tooltip;if(y.opacity===0){v.style.opacity="0";return}v.classList.remove("above","below","no-transform"),y.yAlign?v.classList.add(y.yAlign):v.classList.add("no-transform");const b=t.filter(F=>!F[u]),x=t.filter(F=>F[c]>0&&F[c]<1);if(b.length===1&&x.length===1)return;function S(F){return F.lines}if(y.body){const F=y.title||[];let p=y.body.map(S),D="<thead>";F.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",D+=`<tr><span style="${A}">${_}</span></tr>`}),D+="</thead><tbody>",p.length>1&&p[0][0]===p[1][0]&&(p=[p[0]]),p.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const k=`<span style="${A}">${_}</span>`;D+=`<tr><td>${k}</td></tr>`}),D+="</tbody>";const $=v.querySelector("table");$&&($.innerHTML=D)}const w=m.chart.canvas.getBoundingClientRect(),I=w.top+window.pageYOffset+y.caretY;v.style.opacity="1",v.style.border="solid 1px #0163C8",v.style.background="white",v.style.height="fit-content",v.style.borderRadius="10px",v.style.position="absolute",v.style.zIndex="10",v.style.padding="4px 0",v.style.left=`${w.left+window.pageXOffset+y.caretX-80}px`,v.style.top=`${I>300&&!s?280:I}px`,v.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const v=t[m[0].dataIndex];return v==null?void 0:v[u]},label(m){const v=t==null?void 0:t[m.dataIndex];let y="Nilai: ";return v&&(y+=v.value),y}}}},elements:{arc:{borderWidth:0}}};return E.jsxs("div",{className:h??"",children:[!s&&E.jsx(Db,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){Sb(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&E.jsx(Db,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){Sb(m,o.filter(v=>v.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},gl=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},BO=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1,hiddenHeader:m})=>{const{locale:v}=Nn(),y=C.useRef(null),b=gl(i),x=gl(a),S=w=>{var I;typeof l=="function"&&(l({month:w.month,year:w.year}),(I=y.current)==null||I.setShow(!1))};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:c,onClick:w=>{var I;w.stopPropagation(),(I=y.current)==null||I.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),E.jsx("div",{className:o??"",children:E.jsx(Ar,{zIndex:g,ref:y,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:E.jsx(Jh,{locale:"id-ID",children:E.jsx(ec,{minValue:b,maxValue:x,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:v,value:gl(`${t}/${e}/1`),createCalendar:ws,defaultValue:gl(`${t}/${e}/1`),onChange:S,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},OO=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=C.useRef(null);return C.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),E.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:E.jsx(tc,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},NO="_input_6rs0g_7",VO="_error_6rs0g_32",yn={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:NO,error:VO,"isset-right-icon":"_isset-right-icon_6rs0g_41","isset-left-icon":"_isset-left-icon_6rs0g_45","start-icon":"_start-icon_6rs0g_49","end-icon":"_end-icon_6rs0g_52","label-error":"_label-error_6rs0g_55","container-s":"_container-s_6rs0g_61","container-l":"_container-l_6rs0g_121"},bg=C.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:yn["container-l"],s:yn["container-s"],xs:yn["container-xs"]}},f=()=>typeof i=="function"||C.isValidElement(i),g=()=>typeof a=="function"||C.isValidElement(a);return E.jsxs("div",{className:`${h.size[s]} ${t}`,children:[E.jsxs("div",{className:`${yn["container-input"]}`,children:[E.jsxs("div",{className:yn["start-icon"],children:[typeof i=="function"&&i(),C.isValidElement(i)&&i]}),E.jsx("input",{id:n??e,className:`${yn.input} ${o?yn.error:""}
|
179
|
+
`):e}function mO(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function lb(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=kt(t.bodyFont),u=kt(t.titleFont),c=kt(t.footerFont),d=a.length,h=i.length,f=r.length,g=_n(t.padding);let m=g.height,v=0,y=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*S+(y-f)*l.lineHeight+(y-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let b=0;const x=function(S){v=Math.max(v,n.measureText(S).width+b)};return n.save(),n.font=u.string,Ge(e.title,x),n.font=l.string,Ge(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?o+2+t.boxPadding:0,Ge(r,S=>{Ge(S.before,x),Ge(S.lines,x),Ge(S.after,x)}),b=0,n.font=c.string,Ge(e.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function pO(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function bO(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function vO(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),bO(u,e,t,n)&&(u="center"),u}function ub(e,t,n){const r=n.yAlign||t.yAlign||pO(e,n);return{xAlign:n.xAlign||t.xAlign||vO(e,t,n,r),yAlign:r}}function yO(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function xO(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function cb(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=Da(o);let g=yO(t,s);const m=xO(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:Tt(g,0,r.width-t.width),y:Tt(m,0,r.height-t.height)}}function fl(e,t,n){const r=_n(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function db(e){return Wn([],gr(e))}function CO(e,t,n){return Xi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function fb(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const WC={beforeTitle:dr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:dr,beforeBody:dr,beforeLabel:dr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ue(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:dr,afterBody:dr,beforeFooter:dr,footer:dr,afterFooter:dr};function Ut(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?WC[t].call(n,r):i}var yd;let hb=(yd=class extends Pr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new CC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=CO(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ut(r,"beforeTitle",this,t),a=Ut(r,"title",this,t),o=Ut(r,"afterTitle",this,t);let s=[];return s=Wn(s,gr(i)),s=Wn(s,gr(a)),s=Wn(s,gr(o)),s}getBeforeBody(t,n){return db(Ut(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Ge(t,a=>{const o={before:[],lines:[],after:[]},s=fb(r,a);Wn(o.before,gr(Ut(s,"beforeLabel",this,a))),Wn(o.lines,Ut(s,"label",this,a)),Wn(o.after,gr(Ut(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return db(Ut(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ut(r,"beforeFooter",this,t),a=Ut(r,"footer",this,t),o=Ut(r,"afterFooter",this,t);let s=[];return s=Wn(s,gr(i)),s=Wn(s,gr(a)),s=Wn(s,gr(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(mO(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),Ge(s,c=>{const d=fb(t.callbacks,c);i.push(Ut(d,"labelColor",this,c)),a.push(Ut(d,"labelPointStyle",this,c)),o.push(Ut(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=go[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=lb(this,r),u=Object.assign({},s,l),c=ub(this.chart,r,u),d=cb(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Da(s),{x:h,y:f}=t,{width:g,height:m}=n;let v,y,b,x,S,w;return a==="center"?(S=f+m/2,i==="left"?(v=h,y=v-o,x=S+o,w=S-o):(v=h+g,y=v+o,x=S-o,w=S+o),b=v):(i==="left"?y=h+Math.max(l,c)+o:i==="right"?y=h+g-Math.max(u,d)-o:y=this.caretX,a==="top"?(x=f,S=x-o,v=y-o,b=y+o):(x=f+m,S=x+o,v=y+o,b=y-o),w=x),{x1:v,x2:y,x3:b,y1:x,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=Sa(r.rtl,this.x,this.width);for(t.x=fl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=kt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=kt(a.bodyFont),d=fl(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},v=i.leftForLtr(h,u)+u/2,y=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Df(t,m,v,y),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Df(t,m,v,y)}else{t.lineWidth=Ae(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),v=i.leftForLtr(i.xPlus(h,1),u-2),y=Da(o.borderRadius);Object.values(y).some(b=>b!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,wu(t,{x:m,y:g,w:u,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),wu(t,{x:v,y:g+1,w:u-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(v,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=kt(r.bodyFont);let h=d.lineHeight,f=0;const g=Sa(r.rtl,this.x,this.width),m=function(p){n.fillText(p,g.x(t.x+f),t.y+h/2),t.y+=h+a},v=g.textAlign(o);let y,b,x,S,w,_,F;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=fl(this,v,r),n.fillStyle=r.bodyColor,Ge(this.beforeBody,m),f=s&&v!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,_=i.length;S<_;++S){for(y=i[S],b=this.labelTextColors[S],n.fillStyle=b,Ge(y.before,m),x=y.lines,s&&x.length&&(this._drawColorBox(n,t,S,g,r),h=Math.max(d.lineHeight,l)),w=0,F=x.length;w<F;++w)m(x[w]),h=d.lineHeight;Ge(y.after,m)}f=0,h=d.lineHeight,Ge(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=Sa(r.rtl,this.x,this.width);for(t.x=fl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=kt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=Da(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=go[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=lb(this,t),l=Object.assign({},o,this._size),u=ub(n,t,l),c=cb(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=_n(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),pC(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),bC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!yu(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!yu(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=go[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},ae(yd,"positioners",go),yd);var cs={id:"tooltip",_element:hb,positioners:go,afterInit(e,t,n){n&&(e.tooltip=new hb({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:WC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const wO=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function DO(e,t,n,r){const i=e.indexOf(t);if(i===-1)return wO(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const SO=(e,t)=>e===null?null:Tt(Math.round(e),0,t);function gb(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ma extends Wa{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ue(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:DO(r,t,Ee(n,t),this._addedLabels),SO(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return gb.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ae(Ma,"id","category"),ae(Ma,"defaults",{ticks:{callback:gb}});function EO(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:m,max:v}=t,y=!Ue(o),b=!Ue(s),x=!Ue(u),S=(v-m)/(d+1);let w=u0((v-m)/g/f)*f,_,F,p,D;if(w<1e-14&&!y&&!b)return[{value:m},{value:v}];D=Math.ceil(v/w)-Math.floor(m/w),D>g&&(w=u0(D*w/g/f)*f),Ue(l)||(_=Math.pow(10,l),w=Math.ceil(w*_)/_),i==="ticks"?(F=Math.floor(m/w)*w,p=Math.ceil(v/w)*w):(F=m,p=v),y&&b&&a&&Tk((s-o)/a,w/1e3)?(D=Math.round(Math.min((s-o)/w,c)),w=(s-o)/D,F=o,p=s):x?(F=y?o:F,p=b?s:p,D=u-1,w=(p-F)/D):(D=(p-F)/w,Do(D,Math.round(D),w/1e3)?D=Math.round(D):D=Math.ceil(D));const $=Math.max(c0(w),c0(F));_=Math.pow(10,Ue(l)?$:l),F=Math.round(F*_)/_,p=Math.round(p*_)/_;let I=0;for(y&&(h&&F!==o?(n.push({value:o}),F<o&&I++,Do(Math.round((F+I*w)*_)/_,o,mb(o,S,e))&&I++):F<o&&I++);I<D;++I){const A=Math.round((F+I*w)*_)/_;if(b&&A>s)break;n.push({value:A})}return b&&h&&p!==s?n.length&&Do(n[n.length-1].value,s,mb(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!b||p===s)&&n.push({value:p}),n}function mb(e,t,{horizontal:n,minRotation:r}){const i=Dr(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class _O extends Wa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Ue(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=tr(i),u=tr(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=EO(i,a);return t.bounds==="ticks"&&kk(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return sg(t,this.chart.options.locale,this.options.ticks.format)}}class Ba extends _O{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Mt(t)?t:0,this.max=Mt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Dr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ae(Ba,"id","linear"),ae(Ba,"defaults",{ticks:{callback:lC.formatters.numeric}});const sc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qt=Object.keys(sc);function pb(e,t){return e-t}function bb(e,t){if(Ue(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),Mt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(as(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function vb(e,t,n,r){const i=qt.length;for(let a=qt.indexOf(e);a<i-1;++a){const o=sc[qt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return qt[a]}return qt[i-1]}function IO(e,t,n,r,i){for(let a=qt.length-1;a>=qt.indexOf(n);a--){const o=qt[a];if(sc[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return qt[n?qt.indexOf(n):0]}function $O(e){for(let t=qt.indexOf(e)+1,n=qt.length;t<n;++t)if(sc[qt[t]].common)return qt[t]}function yb(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=ig(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function RO(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function xb(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:RO(e,r,i,n)}class _u extends Wa{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new mB._date(t.adapters.date);i.init(n),wo(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:bb(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Mt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Mt(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=Vk(i,a,o);return this._unit=n.unit||(r.autoSkip?vb(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):IO(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:$O(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),xb(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Tt(n,0,o),r=Tt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||vb(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ee(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=as(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)yb(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&yb(c,h,g),Object.keys(c).sort(pb).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Je(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Dr(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,xb(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(bb(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return aC(t.sort(pb))}}ae(_u,"id","time"),ae(_u,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hl(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=_i(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=_i(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Cb extends _u{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hl(n,this.min),this._tableRange=hl(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hl(this._table,r*this._tableRange+this._minPos,!0)}}ae(Cb,"id","timeseries"),ae(Cb,"defaults",_u.defaults);const zC="label";function wb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function AO(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function GC(e,t){e.labels=t}function ZC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zC;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function FO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zC;const n={labels:[],datasets:[]};return GC(n,e.labels),ZC(n,e.datasets,t),n}function PO(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=C.useRef(null),g=C.useRef(),m=()=>{f.current&&(g.current=new Yi(f.current,{type:o,data:FO(s,a),options:l&&{...l},plugins:u}),wb(t,g.current))},v=()=>{wb(t,null),g.current&&(g.current.destroy(),g.current=null)};return C.useEffect(()=>{!i&&g.current&&l&&AO(g.current,l)},[i,l]),C.useEffect(()=>{!i&&g.current&&GC(g.current.config.data,s.labels)},[i,s.labels]),C.useEffect(()=>{!i&&g.current&&s.datasets&&ZC(g.current.config.data,s.datasets,a)},[i,s.datasets]),C.useEffect(()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),C.useEffect(()=>{g.current&&(v(),setTimeout(m))},[o]),C.useEffect(()=>(m(),()=>v()),[]),C.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const TO=C.forwardRef(PO);function pg(e,t){return Yi.register(t),C.forwardRef((n,r)=>C.createElement(TO,Object.assign({},n,{ref:r,type:e})))}const XC=pg("line",Pl),kO=pg("bar",Fl),Db=pg("doughnut",co);Yi.register(Ma,Ba,Pi,qn,ho,jC,cs,LC);const Sb=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var I;const S=[].concat(t),w=S.length,_=u.font;let F=0,p=0,D;for(D=0;D<w;++D)u.font=S[D].font,F=Math.max(u.measureText(S[D].text).width,F),p+=(I=S[D].font)==null?void 0:I.lineHeight;return u.font=_,{height:p,width:F}},d=(S,w)=>{let _=document.createElement("div");document.body.appendChild(_),_.style.fontSize=`${w}px`,_.style.position="absolute",_.style.left="-10",_.style.top="-10",_.textContent=S;const F={width:_.clientWidth,height:_.clientHeight};return document.body.removeChild(_),_=null,F},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,v=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let y;const b=t.length;let x=0;for(y=0;y<b;++y){let S=(i=t[y].font)==null?void 0:i.size,w=(a=t[y].font)==null?void 0:a.lineHeight;const _=typeof t[y].text=="number"?t[y].text.toString():t[y].text;for(;d(_,S).width>f+(t[y].id==="value"?50:0);)S-=1,w=d(_,S).height;_.length>22&&w<14&&(w=18);const F=v+w/2+x,p=typeof t[y].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[y].text):t[y].text;let D=t[y].urlIconDesc?" ":"";if(t[y].percentage!==void 0?D+=`${t[y].percentage}% ${t[y].text}`:D+=p,u.fillStyle=t[y].color,u.font=`${S<10?10:S}px sans-serif`,x+=w,t[y].percentage!==void 0&&t[y].urlIconDesc){const $=((s=(o=t[y])==null?void 0:o.percentage)==null?void 0:s.length)??0,I=new Image;I.src=t[y].urlIconDesc,u.drawImage(I,45-($>6?$+2:$-2.5),F-8,16,14)}u.fillText(D,g,F)}u.restore(),u.save()}},MO=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let v=document.getElementById("chartjs-tooltip");v||(v=document.createElement("div"),v.id="chartjs-tooltip",v.innerHTML="<table></table>",document.body.appendChild(v));const y=m.tooltip;if(y.opacity===0){v.style.opacity="0";return}v.classList.remove("above","below","no-transform"),y.yAlign?v.classList.add(y.yAlign):v.classList.add("no-transform");const b=t.filter(F=>!F[u]),x=t.filter(F=>F[c]>0&&F[c]<1);if(b.length===1&&x.length===1)return;function S(F){return F.lines}if(y.body){const F=y.title||[];let p=y.body.map(S),D="<thead>";F.forEach(I=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",D+=`<tr><span style="${A}">${I}</span></tr>`}),D+="</thead><tbody>",p.length>1&&p[0][0]===p[1][0]&&(p=[p[0]]),p.forEach(I=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const k=`<span style="${A}">${I}</span>`;D+=`<tr><td>${k}</td></tr>`}),D+="</tbody>";const $=v.querySelector("table");$&&($.innerHTML=D)}const w=m.chart.canvas.getBoundingClientRect(),_=w.top+window.pageYOffset+y.caretY;v.style.opacity="1",v.style.border="solid 1px #0163C8",v.style.background="white",v.style.height="fit-content",v.style.borderRadius="10px",v.style.position="absolute",v.style.zIndex="10",v.style.padding="4px 0",v.style.left=`${w.left+window.pageXOffset+y.caretX-80}px`,v.style.top=`${_>300&&!s?280:_}px`,v.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const v=t[m[0].dataIndex];return v==null?void 0:v[u]},label(m){const v=t==null?void 0:t[m.dataIndex];let y="Nilai: ";return v&&(y+=v.value),y}}}},elements:{arc:{borderWidth:0}}};return E.jsxs("div",{className:h??"",children:[!s&&E.jsx(Db,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){Sb(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&E.jsx(Db,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){Sb(m,o.filter(v=>v.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},gl=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bh(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},BO=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1,hiddenHeader:m})=>{const{locale:v}=Nn(),y=C.useRef(null),b=gl(i),x=gl(a),S=w=>{var _;typeof l=="function"&&(l({month:w.month,year:w.year}),(_=y.current)==null||_.setShow(!1))};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:c,onClick:w=>{var _;w.stopPropagation(),(_=y.current)==null||_.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),E.jsx("div",{className:o??"",children:E.jsx(Ar,{zIndex:g,ref:y,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:E.jsx(Jh,{locale:"id-ID",children:E.jsx(ec,{minValue:b,maxValue:x,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:v,value:gl(`${t}/${e}/1`),createCalendar:ws,defaultValue:gl(`${t}/${e}/1`),onChange:S,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},OO=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=C.useRef(null);return C.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),E.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:E.jsx(tc,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},NO="_input_6rs0g_7",VO="_error_6rs0g_32",yn={"container-xs":"_container-xs_6rs0g_1","container-input":"_container-input_6rs0g_4",input:NO,error:VO,"isset-right-icon":"_isset-right-icon_6rs0g_41","isset-left-icon":"_isset-left-icon_6rs0g_45","start-icon":"_start-icon_6rs0g_49","end-icon":"_end-icon_6rs0g_52","label-error":"_label-error_6rs0g_55","container-s":"_container-s_6rs0g_61","container-l":"_container-l_6rs0g_121"},bg=C.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{l:yn["container-l"],s:yn["container-s"],xs:yn["container-xs"]}},f=()=>typeof i=="function"||C.isValidElement(i),g=()=>typeof a=="function"||C.isValidElement(a);return E.jsxs("div",{className:`${h.size[s]} ${t}`,children:[E.jsxs("div",{className:`${yn["container-input"]}`,children:[E.jsxs("div",{className:yn["start-icon"],children:[typeof i=="function"&&i(),C.isValidElement(i)&&i]}),E.jsx("input",{id:n??e,className:`${yn.input} ${o?yn.error:""}
|
180
180
|
${f()?yn["isset-left-icon"]:""}
|
181
181
|
${g()?yn["isset-right-icon"]:""}
|
182
182
|
${u??""}`,ref:d,type:r,...c}),E.jsxs("div",{className:yn["end-icon"],children:[typeof a=="function"&&a(),C.isValidElement(a)&&a]})]}),o&&E.jsx("label",{className:`${yn["label-error"]}
|
183
|
-
${c.disabled?yn.disabled:""} ${l??""}`,children:o})]})});bg.displayName="InputNative";const LO="_container_1szxn_1",HO="_files_1szxn_4",jO="_file_1szxn_4",ua={container:LO,files:HO,file:jO,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},WO=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:d,priorityError:h="external",eventError:f})=>{const g={variants:"ghost-laba-blue-10",size:"small"},m=C.useRef(null),v=t||["image/png","image/jpeg","image/jpg"],[y,b]=C.useState(""),x={internal:y||l,external:l||y},S=F=>{if(F!=null&&F.length){const p=Array.from(F).slice(0,o),D=p==null?void 0:p.filter(A=>!v.includes(A.type)),$=(p==null?void 0:p.reduce((A,k)=>A+k.size,0))/1024/1024;let
|
183
|
+
${c.disabled?yn.disabled:""} ${l??""}`,children:o})]})});bg.displayName="InputNative";const LO="_container_1szxn_1",HO="_files_1szxn_4",jO="_file_1szxn_4",ua={container:LO,files:HO,file:jO,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},WO=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:d,priorityError:h="external",eventError:f})=>{const g={variants:"ghost-laba-blue-10",size:"small"},m=C.useRef(null),v=t||["image/png","image/jpeg","image/jpg"],[y,b]=C.useState(""),x={internal:y||l,external:l||y},S=F=>{if(F!=null&&F.length){const p=Array.from(F).slice(0,o),D=p==null?void 0:p.filter(A=>!v.includes(A.type)),$=(p==null?void 0:p.reduce((A,k)=>A+k.size,0))/1024/1024;let I="";if(D.length>0?I="Berkas tidak didukung, silahkan pilih file kembali.":$>s?I=`${F.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`:typeof c=="function"&&c(p),b(I),f==null||f(I),!(m!=null&&m.current))return;m.current.value=""}},w=F=>{var p;F.preventDefault(),m!=null&&m.current&&((p=m.current)==null||p.click())};function _(F){if(typeof F!="string")throw new Error("Input harus berupa string");const p=F.split(".");if(p.length===1)return{filename:F,extension:""};const D="."+p[p.length-1];return{filename:p.slice(0,-1).join("."),extension:D}}return E.jsxs("div",{className:`${ua.container} ${n??""}`,children:[E.jsx(Mn,{...g,...a,className:r??"",onClick:F=>w(F),children:i}),E.jsx(bg,{accept:v==null?void 0:v.join(", "),ref:m,type:"file",onChange:F=>S(F.target.files),error:x[h],multiple:o>1,hidden:!0}),E.jsx("div",{className:ua.files,children:e==null?void 0:e.map((F,p)=>E.jsxs("div",{className:ua.file,onClick:D=>{D.stopPropagation(),typeof d=="function"&&d(F)},children:[E.jsxs("div",{className:ua["file-name-wrapper"],children:[E.jsx("span",{className:ua["file-name"],children:_((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").filename}),E.jsx("span",{className:ua["file-extension"],children:_((F==null?void 0:F.originalName)??(F==null?void 0:F.name)??(F==null?void 0:F.fileName)??"").extension})]}),typeof u=="function"&&E.jsx(E.Fragment,{children:u(F)})]},p))})]})},Eb={"error-payhere":"_error-payhere_1hkqz_1","error-laba":"_error-laba_1hkqz_5"},zO=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:Eb["error-laba"],payhere:Eb["error-payhere"]}};return E.jsx(E.Fragment,{children:n?E.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):E.jsx(E.Fragment,{})})},GO="_container_2h4d1_1",ZO="_textarea_2h4d1_7",XO="_label_2h4d1_36",YO="_error_2h4d1_44",fr={container:GO,"size-medium":"_size-medium_2h4d1_1","container-textarea":"_container-textarea_2h4d1_4",textarea:ZO,"placeholder-shown":"_placeholder-shown_2h4d1_24",label:XO,error:YO,"label-error":"_label-error_2h4d1_61"},YC=C.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:d,minHeight:h=94,maxHeight:f=150,style:g,sizeInput:m="medium",translateLabel:v=20,autoTranslateLabel:y=!1,...b}=e,x=C.useRef(null),S=hh(x,t),w=C.useRef(null),_={...g??{},maxHeight:f,height:d??h,minHeight:h},[F,p]=C.useState(!1),[D,$]=C.useState(!1),[I,A]=C.useState(v),k={size:{medium:fr["size-medium"]}},R=()=>{var B;["",void 0,null].includes(b.value)||["",void 0,null].includes((B=x.current)==null?void 0:B.value)?($(!1),y&&setTimeout(()=>{var z,X;const O=((z=x.current)==null?void 0:z.offsetHeight)??0,L=((X=w.current)==null?void 0:X.offsetHeight)??0,H=(O-L)/2;A(H)},100)):$(!0)},M=function(B){var O;p(!0),R(),(O=e.onFocus)==null||O.call(e,B)},T=function(B){var O;p(!1),(O=e.onBlur)==null||O.call(e,B)},P=function(B){R();const O=(B==null?void 0:B.target)??x.current;O.style.height="0px",O.style.height=O.scrollHeight+"px"};return fh(()=>(F&&x.current?x.current.addEventListener("input",P):P(),()=>{var B;(B=x.current)==null||B.removeEventListener("input",P)}),[F]),E.jsxs("div",{className:`${fr.container}
|
184
184
|
${k.size[m]}
|
185
185
|
${r??""}`,children:[E.jsxs("div",{className:`${fr["container-textarea"]}`,children:[E.jsx("textarea",{id:l??s,className:`${D?"":fr["placeholder-shown"]} ${c?fr.error:""}
|
186
186
|
${fr.textarea}
|
187
|
-
${i??""}`,ref:S,style:
|
187
|
+
${i??""}`,ref:S,style:_,...b,onFocus:M,onBlur:T}),u&&E.jsxs("label",{htmlFor:l??s,ref:w,style:{transform:`translateY(${I}px)`},className:`${fr.label} ${a??""}`,children:[u," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]})]}),c&&E.jsx("label",{className:`${fr["label-error"]}
|
188
188
|
${b.disabled?fr.disabled:""} ${o??""}`,children:c})]})});YC.displayName="TextareaFloatingInner";const UO="_container_1gvog_1",JO="_passed_1gvog_17",qO="_active_1gvog_20",jn={container:UO,"content-section":"_content-section_1gvog_4","content-step":"_content-step_1gvog_7","number-step":"_number-step_1gvog_11",passed:JO,active:qO,"content-line-dashed":"_content-line-dashed_1gvog_24","content-line-active":"_content-line-active_1gvog_27","content-description":"_content-description_1gvog_31"},KO=({activeStep:e,stepList:t,widthLine:n=250,classNameContainer:r,classNameContent:i,classNameDesc:a,onChange:o})=>E.jsx("div",{className:`${jn.container} ${r??""}`,children:t.map((s,l)=>{const u=l+1;return E.jsxs("div",{className:`${jn["content-section"]} ${i??""}`,onClick:()=>{typeof o=="function"&&o(s)},children:[E.jsxs("div",{className:jn["content-step"],children:[u<t.length&&E.jsxs(E.Fragment,{children:[(s.step??u)>=e&&E.jsx("svg",{height:"5",xmlns:"http://www.w3.org/2000/svg",className:jn["content-line-dashed"],width:n+10,style:{left:n/2+30},children:E.jsx("g",{fill:"none",stroke:"#D6D6D6",strokeWidth:"11",children:E.jsx("path",{strokeDasharray:"12,4",d:`M0 0 ${n+20} 0`})})}),(s.step??u)<e&&E.jsx("hr",{className:jn["content-line-active"],style:{width:n+10,left:n/2+30}})]}),E.jsx("div",{style:{width:n/2}}),E.jsx("div",{className:`${jn["number-step"]}
|
189
189
|
${(s.step??u)<e?jn.passed:""}
|
190
190
|
${(s.step??u)===e?jn.active:""}
|
191
191
|
${s.className??""}`,children:s.value?s.value:u}),E.jsx("div",{style:{width:n/2}})]}),s.desc&&E.jsx("div",{className:`${jn["content-description"]} ${a??""}
|
192
|
-
${(s.step??u)<=e?jn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});Yi.register(Ma,Ba,Pi,qn,jC,cs,LC);const QO=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},eN=({data:e,className:t,height:n=65})=>{const r=C.useRef(null),i=e.map(h=>Io(QO(1,h.label,h.year),"MMM yy",{locale:Ol}))||[],[a,o]=C.useState(""),[s,l]=C.useState(""),u=h=>{const f=[],g=[];let m=!h.find(v=>v.isCurrent);return h.forEach(v=>{m?(g.push(v.value),f.push(null)):(f.push(v.value),v.isCurrent?(m=!0,g.push(v.value)):g.push(null))}),{passed:f,notPassed:g}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:a,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const f=e[h.dataIndex];let g=s;return f.isCurrent&&(g="#ED0019"),g},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:a,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},d={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let f=document.getElementById("chartjs-tooltip");f||(f=document.createElement("div"),f.id="chartjs-tooltip",f.innerHTML="<table></table>",document.body.appendChild(f));const g=h.tooltip;if(g.opacity===0){f.style.opacity="0";return}f.classList.remove("above","below","no-transform"),g.yAlign?f.classList.add(g.yAlign):f.classList.add("no-transform");function m(y){return y.lines}if(g.body){const y=g.title||[];let b=g.body.map(m),x="<thead>";y.forEach(w=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; font-weight: 600",I+="; font-size: 12px",I+="; padding: 0px 14px",x+=`<tr><span style="${I}">${w}</span></tr>`}),x+="</thead><tbody>",b.length>1&&b[0][0]===b[1][0]&&(b=[b[0]]),b.forEach(w=>{let I="";I+="display: flex",I+="; justify-content: center",I+="; color: #0163C8",I+="; padding: 0px 14px",I+="; font-size: 12px";const F=`<span style="${I}">${w}</span>`;x+=`<tr><td>${F}</td></tr>`}),x+="</tbody>";const S=f.querySelector("table");S&&(S.innerHTML=x)}const v=h.chart.canvas.getBoundingClientRect();f.style.opacity="1",f.style.border="solid 1px #0163C8",f.style.background="white",f.style.height="fit-content",f.style.borderRadius="10px",f.style.position="absolute",f.style.zIndex="10",f.style.padding="4px 0",f.style.left=v.left+window.pageXOffset+g.caretX-30+"px",f.style.top=v.top+window.pageYOffset+g.caretY-60+"px",f.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const f=e[h[0].dataIndex];return Io(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:Ol})},label:function(h){let f=h.dataset.label??"";return f&&(f+=": "),h.parsed.y!==null&&(f+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),f}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return Au(h)??0}}}}};return C.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),f=h==null?void 0:h.createLinearGradient(0,100,500,-500);f==null||f.addColorStop(0,"rgba(237, 0, 25, 0)"),f==null||f.addColorStop(1,"rgba(237, 0, 25, 20)");const g=h.fillStyle="rgba(255, 255, 255, 0)";l(g),o(f)}},[]),E.jsxs("div",{className:t??"",children:[E.jsx(XC,{options:d,data:c,height:n}),E.jsx("div",{className:"1ru-h-5",children:E.jsx("canvas",{ref:r})})]})},tN="_container_1oiqk_1",_b={container:tN,"container-popover":"_container-popover_1oiqk_5"},nN=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=C.useRef(null),m={backgroundColor:Zb[s]||s},[v,y]=C.useState(!1),[b,x]=C.useState(!1),S=I=>{var F;(F=g.current)==null||F.handlerShow(I),x(!0),typeof i=="function"&&i()},w=()=>{var I;x(!1),v||(clearInterval(f),(I=g.current)==null||I.setShow(!1),typeof a=="function"&&a())};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:e,onMouseEnter:I=>{if(d&&!v){const F=I.currentTarget;f=setTimeout(()=>{S({...I,currentTarget:F})},h)}},onMouseLeave:()=>{d&&!v&&w()},onClick:I=>{y(!0),clearInterval(f),b||S(I)},className:_b.container,children:t}),E.jsx(Ar,{floatingOptions:{placement:o},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{v&&(y(!1),w())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${_b["container-popover"]} ${c??""}`,...l,children:n})]})},rN="_icon_i1q12_5",iN="_show_i1q12_8",vd={"container-popover":"_container-popover_i1q12_1",icon:rN,show:iN},UC=C.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:m=5,idPopover:v="1ru-popover-button-popover",onClick:y,onClose:b,...x}=e,S=C.useRef(null),w=C.useRef(null),[I,F]=C.useState(!1),p=(A,k,R)=>{let M=E.jsx(E.Fragment,{});return A&&C.isValidElement(k)?M=k:C.isValidElement(R)&&(M=E.jsx("div",{className:`${vd.icon} ${A?vd.show:""}`,children:R})),M},D=A=>{var k;(k=S.current)==null||k.setShow(A),F(A)},$=A=>{var k;(k=S.current)==null||k.handlerShow(A),F(!0)},_=()=>{var A;F(!1),(A=S.current)==null||A.setShow(!1),typeof b=="function"&&b()};return C.useImperativeHandle(t,()=>({show:I,setShow:D,handlerClose:_,handlerShow:$}),[I]),E.jsxs(E.Fragment,{children:[E.jsx(Mn,{ref:w,id:r,className:`${u} ${I?c:""}`,onClick:A=>{I?_():typeof y=="function"?y(A):$(A)},startIcon:p(I,s,a),endIcon:p(I,l,o),...x,children:i}),E.jsx(Ar,{ref:S,id:v,offset:m,floatingOptions:{placement:h},zIndex:g,onClose:_,className:`${vd["container-popover"]} ${d}`,...f,children:n})]})});UC.displayName="ButtonPopover";var ga={},to=Oa;if(process.env.NODE_ENV==="production")ga.createRoot=to.createRoot,ga.hydrateRoot=to.hydrateRoot;else{var ml=to.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ga.createRoot=function(e,t){ml.usingClientEntryPoint=!0;try{return to.createRoot(e,t)}finally{ml.usingClientEntryPoint=!1}},ga.hydrateRoot=function(e,t,n){ml.usingClientEntryPoint=!0;try{return to.hydrateRoot(e,t,n)}finally{ml.usingClientEntryPoint=!1}}}Yi.register(Ma,Ba,Pi,qn,NC,cs);const aN=(e,t,n)=>({chart:r,tooltip:i})=>{var c,d,h,f,g,m,v;let a=document.getElementById(t);if(a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),n.current=ga.createRoot(a)),i.opacity===0){a.style.opacity="0";return}a.style.opacity="1",a.style.position="absolute",a.style.pointerEvents="none";const o=r.canvas.getBoundingClientRect();a.style.left=o.left+window.pageXOffset+i.caretX+"px",a.style.top=o.top+window.pageYOffset+i.caretY+"px";const s=((d=(c=i.dataPoints)==null?void 0:c[0])==null?void 0:d.label)??"",l=((f=(h=i.dataPoints)==null?void 0:h[0])==null?void 0:f.raw)??"",u=((m=(g=i.dataPoints)==null?void 0:g[0])==null?void 0:m.dataset.label)??"";(v=n.current)==null||v.render(E.jsx(e,{label:s,value:l,dataset:u}))},oN={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:a,right:o}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(a,s),n.lineTo(o,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},sN={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},lN=({data:e,height:t,classNameContainer:n,id:r,options:i,customTooltip:a})=>{const o=C.useRef(void 0),s=C.useRef(null),l=C.useRef(0),u=C.useRef(0),c=C.useCallback(function({ctx:g,chartArea:m,scales:v,chartHeight:y,gradientFor:b,item:x}){let I=(v.y.getPixelForValue(0)-m.top)/y;I=I<0?0:I,o.current=g.createLinearGradient(0,m.top,0,y+m.top),b==="background"?(o.current.addColorStop(0,(x==null?void 0:x.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(I,(x==null?void 0:x.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(I,(x==null?void 0:x.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(x==null?void 0:x.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(I,(x==null?void 0:x.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(I,(x==null?void 0:x.colorBorderNegative)||"#EB6B6B"))},[]),d=C.useCallback(function({ctx:g,chartArea:m,scales:v,gradientFor:y,item:b}){const x=m.right-m.left,S=m.bottom-m.top;return(!o.current||l.current!==x||u.current!==S)&&(l.current=x,u.current=S,c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b})),c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b}),o.current},[]),h=C.useMemo(()=>({...e,datasets:e.datasets.map(m=>({fill:!0,backgroundColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"background",item:m})},borderColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"border",item:m})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...m,data:m.data}))}),[e]),f=C.useMemo(()=>Nl(sN,{plugins:{tooltip:{enabled:!a,external:({chart:m,tooltip:v})=>a?aN(a,`${r}-tooltip`,s)({chart:m,tooltip:v}):void 0}}},i??{}),[i,a]);return E.jsx("div",{id:r,className:n,style:{height:t||"300px"},children:E.jsx(XC,{data:h,options:f,plugins:[oN]})})};Yi.register(Ma,Ba,Ml,cs,Pi,NC,cs);const uN=(e,t,n)=>({chart:r,tooltip:i})=>{var c,d,h,f,g,m,v;let a=document.getElementById(t);if(a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),n.current=ga.createRoot(a)),i.opacity===0){a.style.opacity="0";return}a.style.opacity="1",a.style.position="absolute",a.style.pointerEvents="none";const o=r.canvas.getBoundingClientRect();a.style.left=o.left+window.pageXOffset+i.caretX+"px",a.style.top=o.top+window.pageYOffset+i.caretY+"px";const s=((d=(c=i.dataPoints)==null?void 0:c[0])==null?void 0:d.label)??"",l=((f=(h=i.dataPoints)==null?void 0:h[0])==null?void 0:f.raw)??"",u=((m=(g=i.dataPoints)==null?void 0:g[0])==null?void 0:m.dataset.label)??"";(v=n.current)==null||v.render(E.jsx(e,{label:s,value:l,dataset:u}))},cN={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,a)=>{const o=e.getDatasetMeta(a);o.visible&&o.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?Au(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let d,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,d=s.y-5,d>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,d=s.y+5,d<r&&(h=!0)),h&&t.fillText(c,s.x,d)})}),t.restore()}},dN={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return Au(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},fN=({data:e,classNameContainer:t,height:n,id:r,options:i,customTooltip:a})=>{const o=C.useRef(void 0),s=C.useRef(null),l=C.useRef(0),u=C.useRef(0),c=C.useCallback(function({ctx:g,chartArea:m,scales:v,chartHeight:y,gradientFor:b,item:x}){let I=(v.y.getPixelForValue(0)-m.top)/y;I=I<0?0:I,o.current=g.createLinearGradient(0,m.top,0,y+m.top),b==="background"?(o.current.addColorStop(0,(x==null?void 0:x.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(I,(x==null?void 0:x.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(I,(x==null?void 0:x.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(x==null?void 0:x.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(I,(x==null?void 0:x.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(I,(x==null?void 0:x.colorBorderNegative)||"#EB6B6B"))},[]),d=C.useCallback(function({ctx:g,chartArea:m,scales:v,gradientFor:y,item:b}){const x=m.right-m.left,S=m.bottom-m.top;return(!o.current||l.current!==x||u.current!==S)&&(l.current=x,u.current=S,c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b})),c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b}),o.current},[]),h=C.useMemo(()=>({...e,datasets:e.datasets.map(m=>({fill:!0,backgroundColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"background",item:m})},borderColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"border",item:m})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...m,data:m.data}))}),[e]),f=C.useMemo(()=>Nl(dN,{plugins:{tooltip:{enabled:!a,external:({chart:m,tooltip:v})=>a?uN(a,`${r}-tooltip`,s)({chart:m,tooltip:v}):void 0}}},i??{}),[i,a]);return E.jsx("div",{id:r,className:t,style:{height:n||"300px"},children:E.jsx(kO,{data:h,options:f,plugins:[cN]})})},hN="_left_1s2i5_4",gN="_right_1s2i5_7",mN="_indicator_1s2i5_16",pN="_active_1s2i5_19",Br={"container-step-indicator":"_container-step-indicator_1s2i5_1",left:hN,right:gN,"text-step-indicator":"_text-step-indicator_1s2i5_10","step-indicator":"_step-indicator_1s2i5_13",indicator:mN,active:pN};function bN(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const vN=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:a="",id:o="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:d=""})=>E.jsxs("div",{id:o,className:`${Br["container-step-indicator"]}
|
192
|
+
${(s.step??u)<=e?jn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});Yi.register(Ma,Ba,Pi,qn,jC,cs,LC);const QO=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},eN=({data:e,className:t,height:n=65})=>{const r=C.useRef(null),i=e.map(h=>Io(QO(1,h.label,h.year),"MMM yy",{locale:Ol}))||[],[a,o]=C.useState(""),[s,l]=C.useState(""),u=h=>{const f=[],g=[];let m=!h.find(v=>v.isCurrent);return h.forEach(v=>{m?(g.push(v.value),f.push(null)):(f.push(v.value),v.isCurrent?(m=!0,g.push(v.value)):g.push(null))}),{passed:f,notPassed:g}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:a,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const f=e[h.dataIndex];let g=s;return f.isCurrent&&(g="#ED0019"),g},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:a,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},d={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let f=document.getElementById("chartjs-tooltip");f||(f=document.createElement("div"),f.id="chartjs-tooltip",f.innerHTML="<table></table>",document.body.appendChild(f));const g=h.tooltip;if(g.opacity===0){f.style.opacity="0";return}f.classList.remove("above","below","no-transform"),g.yAlign?f.classList.add(g.yAlign):f.classList.add("no-transform");function m(y){return y.lines}if(g.body){const y=g.title||[];let b=g.body.map(m),x="<thead>";y.forEach(w=>{let _="";_+="display: flex",_+="; justify-content: center",_+="; font-weight: 600",_+="; font-size: 12px",_+="; padding: 0px 14px",x+=`<tr><span style="${_}">${w}</span></tr>`}),x+="</thead><tbody>",b.length>1&&b[0][0]===b[1][0]&&(b=[b[0]]),b.forEach(w=>{let _="";_+="display: flex",_+="; justify-content: center",_+="; color: #0163C8",_+="; padding: 0px 14px",_+="; font-size: 12px";const F=`<span style="${_}">${w}</span>`;x+=`<tr><td>${F}</td></tr>`}),x+="</tbody>";const S=f.querySelector("table");S&&(S.innerHTML=x)}const v=h.chart.canvas.getBoundingClientRect();f.style.opacity="1",f.style.border="solid 1px #0163C8",f.style.background="white",f.style.height="fit-content",f.style.borderRadius="10px",f.style.position="absolute",f.style.zIndex="10",f.style.padding="4px 0",f.style.left=v.left+window.pageXOffset+g.caretX-30+"px",f.style.top=v.top+window.pageYOffset+g.caretY-60+"px",f.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const f=e[h[0].dataIndex];return Io(new Date(`1/${f.label}/${f.year}`),"MMMM yyyy",{locale:Ol})},label:function(h){let f=h.dataset.label??"";return f&&(f+=": "),h.parsed.y!==null&&(f+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),f}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return Au(h)??0}}}}};return C.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),f=h==null?void 0:h.createLinearGradient(0,100,500,-500);f==null||f.addColorStop(0,"rgba(237, 0, 25, 0)"),f==null||f.addColorStop(1,"rgba(237, 0, 25, 20)");const g=h.fillStyle="rgba(255, 255, 255, 0)";l(g),o(f)}},[]),E.jsxs("div",{className:t??"",children:[E.jsx(XC,{options:d,data:c,height:n}),E.jsx("div",{className:"1ru-h-5",children:E.jsx("canvas",{ref:r})})]})},tN="_container_1oiqk_1",_b={container:tN,"container-popover":"_container-popover_1oiqk_5"},nN=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:d,delay:h=600})=>{let f;const g=C.useRef(null),m={backgroundColor:Zb[s]||s},[v,y]=C.useState(!1),[b,x]=C.useState(!1),S=_=>{var F;(F=g.current)==null||F.handlerShow(_),x(!0),typeof i=="function"&&i()},w=()=>{var _;x(!1),v||(clearInterval(f),(_=g.current)==null||_.setShow(!1),typeof a=="function"&&a())};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:e,onMouseEnter:_=>{if(d&&!v){const F=_.currentTarget;f=setTimeout(()=>{S({..._,currentTarget:F})},h)}},onMouseLeave:()=>{d&&!v&&w()},onClick:_=>{y(!0),clearInterval(f),b||S(_)},className:_b.container,children:t}),E.jsx(Ar,{floatingOptions:{placement:o},ref:g,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{v&&(y(!1),w())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${_b["container-popover"]} ${c??""}`,...l,children:n})]})},rN="_icon_i1q12_5",iN="_show_i1q12_8",vd={"container-popover":"_container-popover_i1q12_1",icon:rN,show:iN},UC=C.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:d="",placement:h="top-end",popoverProps:f,zIndexPopover:g=1,offset:m=5,idPopover:v="1ru-popover-button-popover",onClick:y,onClose:b,...x}=e,S=C.useRef(null),w=C.useRef(null),[_,F]=C.useState(!1),p=(A,k,R)=>{let M=E.jsx(E.Fragment,{});return A&&C.isValidElement(k)?M=k:C.isValidElement(R)&&(M=E.jsx("div",{className:`${vd.icon} ${A?vd.show:""}`,children:R})),M},D=A=>{var k;(k=S.current)==null||k.setShow(A),F(A)},$=A=>{var k;(k=S.current)==null||k.handlerShow(A),F(!0)},I=()=>{var A;F(!1),(A=S.current)==null||A.setShow(!1),typeof b=="function"&&b()};return C.useImperativeHandle(t,()=>({show:_,setShow:D,handlerClose:I,handlerShow:$}),[_]),E.jsxs(E.Fragment,{children:[E.jsx(Mn,{ref:w,id:r,className:`${u} ${_?c:""}`,onClick:A=>{_?I():typeof y=="function"?y(A):$(A)},startIcon:p(_,s,a),endIcon:p(_,l,o),...x,children:i}),E.jsx(Ar,{ref:S,id:v,offset:m,floatingOptions:{placement:h},zIndex:g,onClose:I,className:`${vd["container-popover"]} ${d}`,...f,children:n})]})});UC.displayName="ButtonPopover";var ga={},to=Oa;if(process.env.NODE_ENV==="production")ga.createRoot=to.createRoot,ga.hydrateRoot=to.hydrateRoot;else{var ml=to.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ga.createRoot=function(e,t){ml.usingClientEntryPoint=!0;try{return to.createRoot(e,t)}finally{ml.usingClientEntryPoint=!1}},ga.hydrateRoot=function(e,t,n){ml.usingClientEntryPoint=!0;try{return to.hydrateRoot(e,t,n)}finally{ml.usingClientEntryPoint=!1}}}Yi.register(Ma,Ba,Pi,qn,NC,cs);const aN=(e,t,n)=>({chart:r,tooltip:i})=>{var c,d,h,f,g,m,v;let a=document.getElementById(t);if(a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),n.current=ga.createRoot(a)),i.opacity===0){a.style.opacity="0";return}a.style.opacity="1",a.style.position="absolute",a.style.pointerEvents="none";const o=r.canvas.getBoundingClientRect();a.style.left=o.left+window.pageXOffset+i.caretX+"px",a.style.top=o.top+window.pageYOffset+i.caretY+"px";const s=((d=(c=i.dataPoints)==null?void 0:c[0])==null?void 0:d.label)??"",l=((f=(h=i.dataPoints)==null?void 0:h[0])==null?void 0:f.raw)??"",u=((m=(g=i.dataPoints)==null?void 0:g[0])==null?void 0:m.dataset.label)??"";(v=n.current)==null||v.render(E.jsx(e,{label:s,value:l,dataset:u}))},oN={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:a,right:o}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(a,s),n.lineTo(o,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},sN={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},lN=({data:e,height:t,classNameContainer:n,id:r,options:i,customTooltip:a})=>{const o=C.useRef(void 0),s=C.useRef(null),l=C.useRef(0),u=C.useRef(0),c=C.useCallback(function({ctx:g,chartArea:m,scales:v,chartHeight:y,gradientFor:b,item:x}){let _=(v.y.getPixelForValue(0)-m.top)/y;_=_<0?0:_>1?1:_,o.current=g.createLinearGradient(0,m.top,0,y+m.top),b==="background"?(o.current.addColorStop(0,(x==null?void 0:x.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(_,(x==null?void 0:x.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(_,(x==null?void 0:x.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(x==null?void 0:x.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(_,(x==null?void 0:x.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(_,(x==null?void 0:x.colorBorderNegative)||"#EB6B6B"))},[]),d=C.useCallback(function({ctx:g,chartArea:m,scales:v,gradientFor:y,item:b}){const x=m.right-m.left,S=m.bottom-m.top;return(!o.current||l.current!==x||u.current!==S)&&(l.current=x,u.current=S,c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b})),c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b}),o.current},[]),h=C.useMemo(()=>({...e,datasets:e.datasets.map(m=>({fill:!0,backgroundColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"background",item:m})},borderColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"border",item:m})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...m,data:m.data}))}),[e]),f=C.useMemo(()=>Nl(sN,{plugins:{tooltip:{enabled:!a,external:({chart:m,tooltip:v})=>a?aN(a,`${r}-tooltip`,s)({chart:m,tooltip:v}):void 0}}},i??{}),[i,a]);return E.jsx("div",{id:r,className:n,style:{height:t||"300px"},children:E.jsx(XC,{data:h,options:f,plugins:[oN]})})};Yi.register(Ma,Ba,Ml,cs,Pi,NC,cs);const uN=(e,t,n)=>({chart:r,tooltip:i})=>{var c,d,h,f,g,m,v;let a=document.getElementById(t);if(a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),n.current=ga.createRoot(a)),i.opacity===0){a.style.opacity="0";return}a.style.opacity="1",a.style.position="absolute",a.style.pointerEvents="none";const o=r.canvas.getBoundingClientRect();a.style.left=o.left+window.pageXOffset+i.caretX+"px",a.style.top=o.top+window.pageYOffset+i.caretY+"px";const s=((d=(c=i.dataPoints)==null?void 0:c[0])==null?void 0:d.label)??"",l=((f=(h=i.dataPoints)==null?void 0:h[0])==null?void 0:f.raw)??"",u=((m=(g=i.dataPoints)==null?void 0:g[0])==null?void 0:m.dataset.label)??"";(v=n.current)==null||v.render(E.jsx(e,{label:s,value:l,dataset:u}))},cN={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,a)=>{const o=e.getDatasetMeta(a);o.visible&&o.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?Au(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let d,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,d=s.y-5,d>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,d=s.y+5,d<r&&(h=!0)),h&&t.fillText(c,s.x,d)})}),t.restore()}},dN={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return Au(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},fN=({data:e,classNameContainer:t,height:n,id:r,options:i,customTooltip:a})=>{const o=C.useRef(void 0),s=C.useRef(null),l=C.useRef(0),u=C.useRef(0),c=C.useCallback(function({ctx:g,chartArea:m,scales:v,chartHeight:y,gradientFor:b,item:x}){let _=(v.y.getPixelForValue(0)-m.top)/y;_=_<0?0:_>1?1:_,o.current=g.createLinearGradient(0,m.top,0,y+m.top),b==="background"?(o.current.addColorStop(0,(x==null?void 0:x.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(_,(x==null?void 0:x.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(_,(x==null?void 0:x.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(x==null?void 0:x.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(_,(x==null?void 0:x.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(_,(x==null?void 0:x.colorBorderNegative)||"#EB6B6B"))},[]),d=C.useCallback(function({ctx:g,chartArea:m,scales:v,gradientFor:y,item:b}){const x=m.right-m.left,S=m.bottom-m.top;return(!o.current||l.current!==x||u.current!==S)&&(l.current=x,u.current=S,c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b})),c({ctx:g,chartArea:m,scales:v,chartHeight:S,gradientFor:y,item:b}),o.current},[]),h=C.useMemo(()=>({...e,datasets:e.datasets.map(m=>({fill:!0,backgroundColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"background",item:m})},borderColor:function(v){const y=v.chart,{ctx:b,chartArea:x,scales:S}=y;if(x)return d({ctx:b,chartArea:x,scales:S,gradientFor:"border",item:m})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...m,data:m.data}))}),[e]),f=C.useMemo(()=>Nl(dN,{plugins:{tooltip:{enabled:!a,external:({chart:m,tooltip:v})=>a?uN(a,`${r}-tooltip`,s)({chart:m,tooltip:v}):void 0}}},i??{}),[i,a]);return E.jsx("div",{id:r,className:t,style:{height:n||"300px"},children:E.jsx(kO,{data:h,options:f,plugins:[cN]})})},hN="_left_1s2i5_4",gN="_right_1s2i5_7",mN="_indicator_1s2i5_16",pN="_active_1s2i5_19",Br={"container-step-indicator":"_container-step-indicator_1s2i5_1",left:hN,right:gN,"text-step-indicator":"_text-step-indicator_1s2i5_10","step-indicator":"_step-indicator_1s2i5_13",indicator:mN,active:pN};function bN(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const vN=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:a="",id:o="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:d=""})=>E.jsxs("div",{id:o,className:`${Br["container-step-indicator"]}
|
193
193
|
${s==="left"?Br.left:Br.right} ${r||""}`,children:[s==="left"&&E.jsxs("p",{className:`${Br["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]}),E.jsx("div",{className:`${Br["step-indicator"]} ${d||""}
|
194
194
|
${u?"1ru-w-full":""} ${c}`,style:{gap:c},children:Array.from({length:t}).map((h,f)=>E.jsx("div",{className:`${Br.indicator} ${a||""}
|
195
195
|
${f<=e?`${Br.active} ${n}`:""}`,style:{width:u?bN(t,c):l}},f))}),s==="right"&&E.jsxs("p",{className:`${Br["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]})]});exports.AlertContainer=YD;exports.Badges=k3;exports.BigNumber=rt;exports.Breadcrumbs=qP;exports.Button=Mn;exports.ButtonIcon=T3;exports.ButtonPopover=UC;exports.Calendar=ec;exports.CalendarRange=F3;exports.CheckboxTable=OO;exports.Chips=M3;exports.Collapse=nT;exports.ConfigColors=Zb;exports.ConfigTable=rn;exports.DatePicker=PP;exports.DateRangePicker=P3;exports.DefaultCheckedChecboxIcon=B3;exports.DefaultRadioChecboxIcon=O3;exports.DoughnutChart=MO;exports.ErrorMessage=zO;exports.FilterContainer=uT;exports.FilterDate=TP;exports.GradientBarChart=fN;exports.GradientLineChart=lN;exports.InputFloatingInner=C1;exports.InputNative=bg;exports.InputReguler=zf;exports.LineChart=eN;exports.ListVirtualization=Rv;exports.ModalDialog=iT;exports.MonthYearPicker=BO;exports.NumberFormat=VT;exports.Pagination=K$;exports.PatternFormat=NT;exports.Popover=Ar;exports.PortalComponent=LT;exports.RadioCheckbox=tc;exports.RadioCheckboxLabel=ZP;exports.SelectDropdownContainer=yy;exports.SelectDropdownContainerComponents=sy;exports.Sidebar=V3;exports.Step=KO;exports.StepIndicator=vN;exports.Switch=BP;exports.TPublish=U5;exports.TabPanel=z$;exports.Table=N$;exports.TableVirtualization=dh;exports.Tabs=W$;exports.Textarea=J3;exports.TextareaFloatingInner=YC;exports.Timeline=lT;exports.Tooltip=nN;exports.TruncateComponent=zT;exports.TypeBigNumber=$u;exports.UploadFile=U3;exports.UploadImage=UT;exports.UploadMultipleFile=WO;exports.betweenBig=l5;exports.configScreens=Y5;exports.configTypography=X5;exports.configTypographyLabaBisnis=Yb;exports.configTypographyPayhere=Xb;exports.convertBigNumbersToStrings=Id;exports.convertNumbersToBigNumbers=_d;exports.convertTextToJsonBigNumbers=Z5;exports.cookieStorage=kD;exports.deepCompareEquals=Ff;exports.defaultConfig=Mb;exports.filterContainerArrayMapping=_D;exports.formatBigNumber=FD;exports.formatDate=fa;exports.formatDateRange=wD;exports.formatNumber=Nr;exports.groupByKey=Ob;exports.isAccurateBigNumber=nr;exports.isAccurateNumber=Bb;exports.lessThanBig=s5;exports.maxBig=a5;exports.minBig=i5;exports.moreThanBig=o5;exports.openAlert=UD;exports.parseBigDecimal=Ru;exports.parseDecimal=Af;exports.removeKeyObjectEmptyValue=SD;exports.removeTrailingZeros=PD;exports.setDigit=Au;exports.transformArrayOfObjectToArray=Vb;exports.transformArrayOfObjectToString=Nb;exports.transformBigNumber=RD;exports.transformDataHistory=DD;exports.transformLatLong=ED;exports.transformNumber=$D;exports.transformSecondTime=ID;exports.transfromIsNan=AD;exports.useAsyncDebounce=_v;exports.useCombinedResizeObserver=$$;exports.useCountdown=I$;exports.useDeepCompareEffect=Mi;exports.useDeepCompareMemoize=gh;exports.useElementOrWindowMediaQuery=_$;exports.useEventListener=P$;exports.useMasonry=T$;exports.useMergeRefs=hh;exports.useStateRef=R$;exports.utilTable=L_;
|