1mpacto-react-ui 0.0.96 → 0.0.98
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/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +54 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2520 -2516
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Collapse/Collapse.d.ts +1 -1
- package/dist/src/components/Upload/UploadFile.stories.d.ts +2 -0
- package/dist/src/components/Upload/UploadMultipleFile.d.ts +1 -1
- package/dist/src/components/Upload/UploadMultipleFile.stories.d.ts +23 -0
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +1 -1
- package/dist/src/interfaces/components/Collapse/index.d.ts +1 -0
- package/dist/src/interfaces/components/UploadFile/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var Z3=Object.defineProperty;var X3=(e,t,n)=>t in e?Z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>X3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),Lo=require("react-dom");function C0(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 L=C0(x),w0=C0(Lo);function An(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 mi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const D0=6048e5,Y3=864e5;let U3={};function au(){return U3}function io(e,t){var s,l,u,c;const n=au(),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=An(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ll(e){return io(e,{weekStartsOn:1})}function S0(e){const t=An(e),n=t.getFullYear(),r=mi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=ll(r),a=mi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=ll(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Th(e){const t=An(e);return t.setHours(0,0,0,0),t}function Mh(e){const t=An(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 J3(e,t){const n=Th(e),r=Th(t),i=+n-Mh(n),a=+r-Mh(r);return Math.round((i-a)/Y3)}function K3(e){const t=S0(e),n=mi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ll(n)}function q3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Q3(e){if(!q3(e)&&typeof e!="number")return!1;const t=An(e);return!isNaN(Number(t))}function eC(e){const t=An(e),n=mi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const tC={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"}},nC=(e,t,n)=>{let r;const i=tC[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 cr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},iC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oC={date:cr({formats:rC,defaultWidth:"full"}),time:cr({formats:iC,defaultWidth:"full"}),dateTime:cr({formats:aC,defaultWidth:"full"})},sC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lC=(e,t,n,r)=>sC[e];function Tt(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 uC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dC={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"]},fC={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"]},hC={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"}},gC={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"}},mC=(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"},pC={ordinalNumber:mC,era:Tt({values:uC,defaultWidth:"wide"}),quarter:Tt({values:cC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:dC,defaultWidth:"wide"}),day:Tt({values:fC,defaultWidth:"wide"}),dayPeriod:Tt({values:hC,defaultWidth:"wide",formattingValues:gC,defaultFormattingWidth:"wide"})};function Mt(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)?vC(s,d=>d.test(o)):bC(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 bC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ld(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 yC=/^(\d+)(th|st|nd|rd)?/i,xC=/\d+/i,CC={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},wC={any:[/^b/i,/^(a|c)/i]},DC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SC={any:[/1/i,/2/i,/3/i,/4/i]},EC={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},IC={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]},_C={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},$C={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]},RC={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},AC={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}},FC={ordinalNumber:Ld({matchPattern:yC,parsePattern:xC,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:CC,defaultMatchWidth:"wide",parsePatterns:wC,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:DC,defaultMatchWidth:"wide",parsePatterns:SC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:EC,defaultMatchWidth:"wide",parsePatterns:IC,defaultParseWidth:"any"}),day:Mt({matchPatterns:_C,defaultMatchWidth:"wide",parsePatterns:$C,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:RC,defaultMatchWidth:"any",parsePatterns:AC,defaultParseWidth:"any"})},jd={code:"en-US",formatDistance:nC,formatLong:oC,formatRelative:lC,localize:pC,match:FC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function PC(e){const t=An(e);return J3(t,eC(t))+1}function TC(e){const t=An(e),n=+ll(t)-+K3(t);return Math.round(n/D0)+1}function E0(e,t){var c,d,f,h;const n=An(e),r=n.getFullYear(),i=au(),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??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=mi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=io(o,t),l=mi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=io(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function MC(e,t){var s,l,u,c;const n=au(),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=E0(e,t),a=mi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),io(a,t)}function kC(e,t){const n=An(e),r=+io(n,t)-+MC(n,t);return Math.round(r/D0)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Mi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kh={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 br.y(e,t)},Y:function(e,t,n,r){const i=E0(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return je(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):je(a,t.length)},R:function(e,t){const n=S0(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 br.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 je(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=kC(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=TC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=PC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 je(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 je(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 je(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=Mi.noon:r===0?i=Mi.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=Mi.evening:r>=12?i=Mi.afternoon:r>=4?i=Mi.morning:i=Mi.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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Vh(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Vh(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Bh(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Bh(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return je(r,t.length)},T:function(e,t,n){const r=e.getTime();return je(r,t.length)}};function Bh(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+je(a,2)}function Vh(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),a=je(r%60,2);return n+i+t+a}const Oh=(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"})}},I0=(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"})}},BC=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Oh(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}}",Oh(r,t)).replace("{{time}}",I0(i,t))},VC={p:I0,P:BC},OC=/^D+$/,NC=/^Y+$/,LC=["D","DD","YY","YYYY"];function jC(e){return OC.test(e)}function HC(e){return NC.test(e)}function WC(e,t,n){const r=zC(e,t,n);if(console.warn(r),LC.includes(e))throw new RangeError(r)}function zC(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 GC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XC=/^'([^]*?)'?$/,YC=/''/g,UC=/[a-zA-Z]/;function ao(e,t,n){var c,d,f,h,g,m,p,b;const r=au(),i=(n==null?void 0:n.locale)??r.locale??jd,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??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.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??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,s=An(e);if(!Q3(s))throw new RangeError("Invalid time value");let l=t.match(ZC).map(v=>{const y=v[0];if(y==="p"||y==="P"){const w=VC[y];return w(v,i.formatLong)}return v}).join("").match(GC).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const y=v[0];if(y==="'")return{isToken:!1,value:JC(v)};if(kh[y])return{isToken:!0,value:v};if(y.match(UC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const y=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&HC(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&jC(y))&&WC(y,t,String(e));const w=kh[y[0]];return w(s,y,i.localize,u)}).join("")}function JC(e){const t=e.match(XC);return t?t[1].replace(YC,"'"):e}const KC={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"}},qC=(e,t,n)=>{let r;const i=KC[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},QC={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},e2={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},t2={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n2={date:cr({formats:QC,defaultWidth:"full"}),time:cr({formats:e2,defaultWidth:"full"}),dateTime:cr({formats:t2,defaultWidth:"full"})},r2={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},i2=(e,t,n,r)=>r2[e],a2={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},o2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},s2={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"]},l2={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"]},u2={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"}},c2={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"}},d2=(e,t)=>"ke-"+Number(e),f2={ordinalNumber:d2,era:Tt({values:a2,defaultWidth:"wide"}),quarter:Tt({values:o2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:s2,defaultWidth:"wide"}),day:Tt({values:l2,defaultWidth:"wide"}),dayPeriod:Tt({values:u2,defaultWidth:"wide",formattingValues:c2,defaultFormattingWidth:"wide"})},h2=/^ke-(\d+)?/i,g2=/\d+/i,m2={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},p2={any:[/^s/i,/^(m|e)/i]},b2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},v2={any:[/1/i,/2/i,/3/i,/4/i]},y2={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},x2={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]},C2={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},w2={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]},D2={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},S2={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}},E2={ordinalNumber:Ld({matchPattern:h2,parsePattern:g2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:m2,defaultMatchWidth:"wide",parsePatterns:p2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:b2,defaultMatchWidth:"wide",parsePatterns:v2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:y2,defaultMatchWidth:"wide",parsePatterns:x2,defaultParseWidth:"any"}),day:Mt({matchPatterns:C2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:D2,defaultMatchWidth:"any",parsePatterns:S2,defaultParseWidth:"any"})},ul={code:"id",formatDistance:qC,formatLong:n2,formatRelative:i2,localize:f2,match:E2,options:{weekStartsOn:1,firstWeekContainsDate:1}},I2={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"}},_2=(e,t,n)=>{let r;const i=I2[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},$2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},R2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},A2={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F2={date:cr({formats:$2,defaultWidth:"full"}),time:cr({formats:R2,defaultWidth:"full"}),dateTime:cr({formats:A2,defaultWidth:"full"})},P2={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},T2=(e,t,n,r)=>P2[e],M2={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},k2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},B2={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"]},V2={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"]},O2={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"}},N2=(e,t)=>Number(e)+"e",L2={ordinalNumber:N2,era:Tt({values:M2,defaultWidth:"wide"}),quarter:Tt({values:k2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:B2,defaultWidth:"wide"}),day:Tt({values:V2,defaultWidth:"wide"}),dayPeriod:Tt({values:O2,defaultWidth:"wide"})},j2=/^(\d+)e?/i,H2=/\d+/i,W2={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},z2={any:[/^v/,/^n/]},G2={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},Z2={any:[/1/i,/2/i,/3/i,/4/i]},X2={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},Y2={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]},U2={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},J2={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]},K2={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},q2={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}},Q2={ordinalNumber:Ld({matchPattern:j2,parsePattern:H2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:X2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any"}),day:Mt({matchPatterns:U2,defaultMatchWidth:"wide",parsePatterns:J2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:K2,defaultMatchWidth:"any",parsePatterns:q2,defaultParseWidth:"any"})},_0={code:"nl",formatDistance:_2,formatLong:F2,formatRelative:T2,localize:L2,match:Q2,options:{weekStartsOn:1,firstWeekContainsDate:4}};function xr(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(R0(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const Yi=(e,t,n,r)=>{const i={id:ul,enUS:jd,nl:_0};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=ao(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},ew=(e,t,n,r,i,a)=>{const o={id:ul,enUS:jd,nl:_0};if(e&&!isNaN(new Date(e).getTime())){const s=ao(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=ao(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},$0=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),tw=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:Yi(a[t],r)}));return $0(i,n)},R0=(e,t=2)=>{let n=parseFloat(cl(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n},nw=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),rw=(e,t)=>{var f,h;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((f=e.split(",")[0])==null?void 0:f.trim())||"",o=((h=e.split(",")[1])==null?void 0:h.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,p)=>{let b=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?b=`${m}`:parseFloat(v)>=p&&(b=`${p}`)),b},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}},iw=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,cl=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 Hd(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)||!Hd(e[i],t[i]))return!1;return!0}function aw(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}}/*! js-cookie v3.0.5 | MIT */function os(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 ow={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 kc(e,t){function n(i,a,o){if(!(typeof document>"u")){o=os({},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,"",os({},a,{expires:-1}))},withAttributes:function(i){return kc(this.converter,os({},this.attributes,i))},withConverter:function(i){return kc(os({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fn=kc(ow,{path:"/"});const sw={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(Fn.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);Fn.set(`${e}_${l}`,u,a)}Fn.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Fn.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Fn.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Fn.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Fn.remove(`${e}_${i}`,r);Fn.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Fn.get();Object.keys(n).forEach(r=>Fn.remove(r,t))}};var Bc={exports:{}},Sa={};/**
|
1
|
+
"use strict";var Z3=Object.defineProperty;var X3=(e,t,n)=>t in e?Z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>X3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),Lo=require("react-dom");function C0(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 L=C0(x),w0=C0(Lo);function An(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 mi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const D0=6048e5,Y3=864e5;let U3={};function au(){return U3}function io(e,t){var s,l,u,c;const n=au(),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=An(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ll(e){return io(e,{weekStartsOn:1})}function S0(e){const t=An(e),n=t.getFullYear(),r=mi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=ll(r),a=mi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=ll(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Th(e){const t=An(e);return t.setHours(0,0,0,0),t}function Mh(e){const t=An(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 J3(e,t){const n=Th(e),r=Th(t),i=+n-Mh(n),a=+r-Mh(r);return Math.round((i-a)/Y3)}function K3(e){const t=S0(e),n=mi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ll(n)}function q3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Q3(e){if(!q3(e)&&typeof e!="number")return!1;const t=An(e);return!isNaN(Number(t))}function eC(e){const t=An(e),n=mi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const tC={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"}},nC=(e,t,n)=>{let r;const i=tC[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 cr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},iC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oC={date:cr({formats:rC,defaultWidth:"full"}),time:cr({formats:iC,defaultWidth:"full"}),dateTime:cr({formats:aC,defaultWidth:"full"})},sC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lC=(e,t,n,r)=>sC[e];function Tt(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 uC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dC={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"]},fC={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"]},hC={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"}},gC={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"}},mC=(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"},pC={ordinalNumber:mC,era:Tt({values:uC,defaultWidth:"wide"}),quarter:Tt({values:cC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:dC,defaultWidth:"wide"}),day:Tt({values:fC,defaultWidth:"wide"}),dayPeriod:Tt({values:hC,defaultWidth:"wide",formattingValues:gC,defaultFormattingWidth:"wide"})};function Mt(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)?vC(s,d=>d.test(o)):bC(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 bC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ld(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 yC=/^(\d+)(th|st|nd|rd)?/i,xC=/\d+/i,CC={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},wC={any:[/^b/i,/^(a|c)/i]},DC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SC={any:[/1/i,/2/i,/3/i,/4/i]},EC={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},IC={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]},_C={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},$C={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]},RC={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},AC={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}},FC={ordinalNumber:Ld({matchPattern:yC,parsePattern:xC,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:CC,defaultMatchWidth:"wide",parsePatterns:wC,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:DC,defaultMatchWidth:"wide",parsePatterns:SC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:EC,defaultMatchWidth:"wide",parsePatterns:IC,defaultParseWidth:"any"}),day:Mt({matchPatterns:_C,defaultMatchWidth:"wide",parsePatterns:$C,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:RC,defaultMatchWidth:"any",parsePatterns:AC,defaultParseWidth:"any"})},jd={code:"en-US",formatDistance:nC,formatLong:oC,formatRelative:lC,localize:pC,match:FC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function PC(e){const t=An(e);return J3(t,eC(t))+1}function TC(e){const t=An(e),n=+ll(t)-+K3(t);return Math.round(n/D0)+1}function E0(e,t){var c,d,f,h;const n=An(e),r=n.getFullYear(),i=au(),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??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=mi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=io(o,t),l=mi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=io(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function MC(e,t){var s,l,u,c;const n=au(),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=E0(e,t),a=mi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),io(a,t)}function kC(e,t){const n=An(e),r=+io(n,t)-+MC(n,t);return Math.round(r/D0)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Mi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kh={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 br.y(e,t)},Y:function(e,t,n,r){const i=E0(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return je(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):je(a,t.length)},R:function(e,t){const n=S0(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 br.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 je(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=kC(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=TC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=PC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 je(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 je(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 je(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=Mi.noon:r===0?i=Mi.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=Mi.evening:r>=12?i=Mi.afternoon:r>=4?i=Mi.morning:i=Mi.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 br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Vh(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Vh(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Bh(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Bh(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return je(r,t.length)},T:function(e,t,n){const r=e.getTime();return je(r,t.length)}};function Bh(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+je(a,2)}function Vh(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):qr(e,t)}function qr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),a=je(r%60,2);return n+i+t+a}const Oh=(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"})}},I0=(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"})}},BC=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Oh(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}}",Oh(r,t)).replace("{{time}}",I0(i,t))},VC={p:I0,P:BC},OC=/^D+$/,NC=/^Y+$/,LC=["D","DD","YY","YYYY"];function jC(e){return OC.test(e)}function HC(e){return NC.test(e)}function WC(e,t,n){const r=zC(e,t,n);if(console.warn(r),LC.includes(e))throw new RangeError(r)}function zC(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 GC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XC=/^'([^]*?)'?$/,YC=/''/g,UC=/[a-zA-Z]/;function ao(e,t,n){var c,d,f,h,g,m,p,b;const r=au(),i=(n==null?void 0:n.locale)??r.locale??jd,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??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.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??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,s=An(e);if(!Q3(s))throw new RangeError("Invalid time value");let l=t.match(ZC).map(v=>{const y=v[0];if(y==="p"||y==="P"){const D=VC[y];return D(v,i.formatLong)}return v}).join("").match(GC).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const y=v[0];if(y==="'")return{isToken:!1,value:JC(v)};if(kh[y])return{isToken:!0,value:v};if(y.match(UC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const y=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&HC(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&jC(y))&&WC(y,t,String(e));const D=kh[y[0]];return D(s,y,i.localize,u)}).join("")}function JC(e){const t=e.match(XC);return t?t[1].replace(YC,"'"):e}const KC={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"}},qC=(e,t,n)=>{let r;const i=KC[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},QC={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},e2={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},t2={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n2={date:cr({formats:QC,defaultWidth:"full"}),time:cr({formats:e2,defaultWidth:"full"}),dateTime:cr({formats:t2,defaultWidth:"full"})},r2={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},i2=(e,t,n,r)=>r2[e],a2={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},o2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},s2={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"]},l2={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"]},u2={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"}},c2={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"}},d2=(e,t)=>"ke-"+Number(e),f2={ordinalNumber:d2,era:Tt({values:a2,defaultWidth:"wide"}),quarter:Tt({values:o2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:s2,defaultWidth:"wide"}),day:Tt({values:l2,defaultWidth:"wide"}),dayPeriod:Tt({values:u2,defaultWidth:"wide",formattingValues:c2,defaultFormattingWidth:"wide"})},h2=/^ke-(\d+)?/i,g2=/\d+/i,m2={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},p2={any:[/^s/i,/^(m|e)/i]},b2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},v2={any:[/1/i,/2/i,/3/i,/4/i]},y2={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},x2={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]},C2={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},w2={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]},D2={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},S2={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}},E2={ordinalNumber:Ld({matchPattern:h2,parsePattern:g2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:m2,defaultMatchWidth:"wide",parsePatterns:p2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:b2,defaultMatchWidth:"wide",parsePatterns:v2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:y2,defaultMatchWidth:"wide",parsePatterns:x2,defaultParseWidth:"any"}),day:Mt({matchPatterns:C2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:D2,defaultMatchWidth:"any",parsePatterns:S2,defaultParseWidth:"any"})},ul={code:"id",formatDistance:qC,formatLong:n2,formatRelative:i2,localize:f2,match:E2,options:{weekStartsOn:1,firstWeekContainsDate:1}},I2={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"}},_2=(e,t,n)=>{let r;const i=I2[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},$2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},R2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},A2={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F2={date:cr({formats:$2,defaultWidth:"full"}),time:cr({formats:R2,defaultWidth:"full"}),dateTime:cr({formats:A2,defaultWidth:"full"})},P2={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},T2=(e,t,n,r)=>P2[e],M2={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},k2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},B2={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"]},V2={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"]},O2={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"}},N2=(e,t)=>Number(e)+"e",L2={ordinalNumber:N2,era:Tt({values:M2,defaultWidth:"wide"}),quarter:Tt({values:k2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:B2,defaultWidth:"wide"}),day:Tt({values:V2,defaultWidth:"wide"}),dayPeriod:Tt({values:O2,defaultWidth:"wide"})},j2=/^(\d+)e?/i,H2=/\d+/i,W2={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},z2={any:[/^v/,/^n/]},G2={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},Z2={any:[/1/i,/2/i,/3/i,/4/i]},X2={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},Y2={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]},U2={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},J2={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]},K2={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},q2={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}},Q2={ordinalNumber:Ld({matchPattern:j2,parsePattern:H2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:X2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any"}),day:Mt({matchPatterns:U2,defaultMatchWidth:"wide",parsePatterns:J2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:K2,defaultMatchWidth:"any",parsePatterns:q2,defaultParseWidth:"any"})},_0={code:"nl",formatDistance:_2,formatLong:F2,formatRelative:T2,localize:L2,match:Q2,options:{weekStartsOn:1,firstWeekContainsDate:4}};function xr(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(R0(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const Yi=(e,t,n,r)=>{const i={id:ul,enUS:jd,nl:_0};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=ao(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},ew=(e,t,n,r,i,a)=>{const o={id:ul,enUS:jd,nl:_0};if(e&&!isNaN(new Date(e).getTime())){const s=ao(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=ao(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},$0=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),tw=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:Yi(a[t],r)}));return $0(i,n)},R0=(e,t=2)=>{let n=parseFloat(cl(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n},nw=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),rw=(e,t)=>{var f,h;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((f=e.split(",")[0])==null?void 0:f.trim())||"",o=((h=e.split(",")[1])==null?void 0:h.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,p)=>{let b=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?b=`${m}`:parseFloat(v)>=p&&(b=`${p}`)),b},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}},iw=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,cl=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 Hd(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)||!Hd(e[i],t[i]))return!1;return!0}function aw(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}}/*! js-cookie v3.0.5 | MIT */function os(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 ow={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 kc(e,t){function n(i,a,o){if(!(typeof document>"u")){o=os({},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,"",os({},a,{expires:-1}))},withAttributes:function(i){return kc(this.converter,os({},this.attributes,i))},withConverter:function(i){return kc(os({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fn=kc(ow,{path:"/"});const sw={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(Fn.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);Fn.set(`${e}_${l}`,u,a)}Fn.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(Fn.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=Fn.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(Fn.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)Fn.remove(`${e}_${i}`,r);Fn.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=Fn.get();Object.keys(n).forEach(r=>Fn.remove(r,t))}};var Bc={exports:{}},Sa={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -14,20 +14,20 @@
|
|
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 Lh;function uw(){return Lh||(Lh=1,process.env.NODE_ENV!=="production"&&function(){var e=x,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"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function p(k){if(k===null||typeof k!="object")return null;var Y=g&&k[g]||k[m];return typeof Y=="function"?Y:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(k){{for(var Y=arguments.length,Q=new Array(Y>1?Y-1:0),me=1;me<Y;me++)Q[me-1]=arguments[me];y("error",k,Q)}}function y(k,Y,Q){{var me=b.ReactDebugCurrentFrame,ke=me.getStackAddendum();ke!==""&&(Y+="%s",Q=Q.concat([ke]));var ze=Q.map(function(
|
18
|
-
`+G+k}}var re=!1,fe;{var le=typeof WeakMap=="function"?WeakMap:Map;fe=new le}function X(k,Y){if(!k||re)return"";{var Q=fe.get(k);if(Q!==void 0)return Q}var me;re=!0;var ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=O.current,O.current=null,W();try{if(Y){var
|
17
|
+
*/var Lh;function uw(){return Lh||(Lh=1,process.env.NODE_ENV!=="production"&&function(){var e=x,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"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function p(k){if(k===null||typeof k!="object")return null;var Y=g&&k[g]||k[m];return typeof Y=="function"?Y:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(k){{for(var Y=arguments.length,Q=new Array(Y>1?Y-1:0),me=1;me<Y;me++)Q[me-1]=arguments[me];y("error",k,Q)}}function y(k,Y,Q){{var me=b.ReactDebugCurrentFrame,ke=me.getStackAddendum();ke!==""&&(Y+="%s",Q=Q.concat([ke]));var ze=Q.map(function(Ie){return String(Ie)});ze.unshift("Warning: "+Y),Function.prototype.apply.call(console[k],console,ze)}}var D=!1,C=!1,E=!1,I=!1,w=!1,$;$=Symbol.for("react.module.reference");function R(k){return!!(typeof k=="string"||typeof k=="function"||k===r||k===a||w||k===i||k===u||k===c||I||k===h||D||C||E||typeof k=="object"&&k!==null&&(k.$$typeof===f||k.$$typeof===d||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===$||k.getModuleId!==void 0))}function _(k,Y,Q){var me=k.displayName;if(me)return me;var ke=Y.displayName||Y.name||"";return ke!==""?Q+"("+ke+")":Q}function P(k){return k.displayName||"Context"}function M(k){if(k==null)return null;if(typeof k.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){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 k=="object")switch(k.$$typeof){case s:var Y=k;return P(Y)+".Consumer";case o:var Q=k;return P(Q._context)+".Provider";case l:return _(k,k.render,"ForwardRef");case d:var me=k.displayName||null;return me!==null?me:M(k.type)||"Memo";case f:{var ke=k,ze=ke._payload,Ie=ke._init;try{return M(Ie(ze))}catch{return null}}}return null}var A=Object.assign,B=0,T,F,V,j,N,Z,z;function q(){}q.__reactDisabledLog=!0;function W(){{if(B===0){T=console.log,F=console.info,V=console.warn,j=console.error,N=console.group,Z=console.groupCollapsed,z=console.groupEnd;var k={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:k,log:k,warn:k,error:k,group:k,groupCollapsed:k,groupEnd:k})}B++}}function H(){{if(B--,B===0){var k={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},k,{value:T}),info:A({},k,{value:F}),warn:A({},k,{value:V}),error:A({},k,{value:j}),group:A({},k,{value:N}),groupCollapsed:A({},k,{value:Z}),groupEnd:A({},k,{value:z})})}B<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var O=b.ReactCurrentDispatcher,G;function J(k,Y,Q){{if(G===void 0)try{throw Error()}catch(ke){var me=ke.stack.trim().match(/\n( *(at )?)/);G=me&&me[1]||""}return`
|
18
|
+
`+G+k}}var re=!1,fe;{var le=typeof WeakMap=="function"?WeakMap:Map;fe=new le}function X(k,Y){if(!k||re)return"";{var Q=fe.get(k);if(Q!==void 0)return Q}var me;re=!0;var ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=O.current,O.current=null,W();try{if(Y){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(jt){me=jt}Reflect.construct(k,[],Ie)}else{try{Ie.call()}catch(jt){me=jt}k.call(Ie.prototype)}}else{try{throw Error()}catch(jt){me=jt}k()}}catch(jt){if(jt&&me&&typeof jt.stack=="string"){for(var we=jt.stack.split(`
|
19
19
|
`),Pt=me.stack.split(`
|
20
20
|
`),ct=we.length-1,ft=Pt.length-1;ct>=1&&ft>=0&&we[ct]!==Pt[ft];)ft--;for(;ct>=1&&ft>=0;ct--,ft--)if(we[ct]!==Pt[ft]){if(ct!==1||ft!==1)do if(ct--,ft--,ft<0||we[ct]!==Pt[ft]){var cn=`
|
21
|
-
`+we[ct].replace(" at new "," at ");return k.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",k.displayName)),typeof k=="function"&&fe.set(k,cn),cn}while(ct>=1&&ft>=0);break}}}finally{re=!1,O.current=ze,H(),Error.prepareStackTrace=ke}var Ti=k?k.displayName||k.name:"",zr=Ti?J(Ti):"";return typeof k=="function"&&fe.set(k,zr),zr}function Ae(k,Y,Q){return X(k,!1)}function Me(k){var Y=k.prototype;return!!(Y&&Y.isReactComponent)}function Xe(k,Y,Q){if(k==null)return"";if(typeof k=="function")return X(k,Me(k));if(typeof k=="string")return J(k);switch(k){case u:return J("Suspense");case c:return J("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case l:return Ae(k.render);case d:return Xe(k.type,Y,Q);case f:{var me=k,ke=me._payload,ze=me._init;try{return Xe(ze(ke),Y,Q)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,ee={},ne=b.ReactDebugCurrentFrame;function he(k){if(k){var Y=k._owner,Q=Xe(k.type,k._source,Y?Y.type:null);ne.setExtraStackFrame(Q)}else ne.setExtraStackFrame(null)}function Oe(k,Y,Q,me,ke){{var ze=Function.call.bind(et);for(var
|
21
|
+
`+we[ct].replace(" at new "," at ");return k.displayName&&cn.includes("<anonymous>")&&(cn=cn.replace("<anonymous>",k.displayName)),typeof k=="function"&&fe.set(k,cn),cn}while(ct>=1&&ft>=0);break}}}finally{re=!1,O.current=ze,H(),Error.prepareStackTrace=ke}var Ti=k?k.displayName||k.name:"",zr=Ti?J(Ti):"";return typeof k=="function"&&fe.set(k,zr),zr}function Ae(k,Y,Q){return X(k,!1)}function Me(k){var Y=k.prototype;return!!(Y&&Y.isReactComponent)}function Xe(k,Y,Q){if(k==null)return"";if(typeof k=="function")return X(k,Me(k));if(typeof k=="string")return J(k);switch(k){case u:return J("Suspense");case c:return J("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case l:return Ae(k.render);case d:return Xe(k.type,Y,Q);case f:{var me=k,ke=me._payload,ze=me._init;try{return Xe(ze(ke),Y,Q)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,ee={},ne=b.ReactDebugCurrentFrame;function he(k){if(k){var Y=k._owner,Q=Xe(k.type,k._source,Y?Y.type:null);ne.setExtraStackFrame(Q)}else ne.setExtraStackFrame(null)}function Oe(k,Y,Q,me,ke){{var ze=Function.call.bind(et);for(var Ie in k)if(ze(k,Ie)){var we=void 0;try{if(typeof k[Ie]!="function"){var Pt=Error((me||"React class")+": "+Q+" type `"+Ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof k[Ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}we=k[Ie](Y,Ie,me,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ct){we=ct}we&&!(we instanceof Error)&&(he(ke),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",me||"React class",Q,Ie,typeof we),he(null)),we instanceof Error&&!(we.message in ee)&&(ee[we.message]=!0,he(ke),v("Failed %s type: %s",Q,we.message),he(null))}}}var ut=Array.isArray;function Se(k){return ut(k)}function xe(k){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,Q=Y&&k[Symbol.toStringTag]||k.constructor.name||"Object";return Q}}function Ot(k){try{return Nt(k),!1}catch{return!0}}function Nt(k){return""+k}function Lt(k){if(Ot(k))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xe(k)),Nt(k)}var un=b.ReactCurrentOwner,Eh={key:!0,ref:!0,__self:!0,__source:!0},as,Fi,Da;Da={};function R3(k){if(et.call(k,"ref")){var Y=Object.getOwnPropertyDescriptor(k,"ref").get;if(Y&&Y.isReactWarning)return!1}return k.ref!==void 0}function A3(k){if(et.call(k,"key")){var Y=Object.getOwnPropertyDescriptor(k,"key").get;if(Y&&Y.isReactWarning)return!1}return k.key!==void 0}function F3(k,Y){if(typeof k.ref=="string"&&un.current&&Y&&un.current.stateNode!==Y){var Q=M(un.current.type);Da[Q]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(un.current.type),k.ref),Da[Q]=!0)}}function P3(k,Y){{var Q=function(){as||(as=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};Q.isReactWarning=!0,Object.defineProperty(k,"key",{get:Q,configurable:!0})}}function T3(k,Y){{var Q=function(){Fi||(Fi=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};Q.isReactWarning=!0,Object.defineProperty(k,"ref",{get:Q,configurable:!0})}}var M3=function(k,Y,Q,me,ke,ze,Ie){var we={$$typeof:t,type:k,key:Y,ref:Q,props:Ie,_owner:ze};return we._store={},Object.defineProperty(we._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(we,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(we,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ke}),Object.freeze&&(Object.freeze(we.props),Object.freeze(we)),we};function k3(k,Y,Q,me,ke){{var ze,Ie={},we=null,Pt=null;Q!==void 0&&(Lt(Q),we=""+Q),A3(Y)&&(Lt(Y.key),we=""+Y.key),R3(Y)&&(Pt=Y.ref,F3(Y,ke));for(ze in Y)et.call(Y,ze)&&!Eh.hasOwnProperty(ze)&&(Ie[ze]=Y[ze]);if(k&&k.defaultProps){var ct=k.defaultProps;for(ze in ct)Ie[ze]===void 0&&(Ie[ze]=ct[ze])}if(we||Pt){var ft=typeof k=="function"?k.displayName||k.name||"Unknown":k;we&&P3(Ie,ft),Pt&&T3(Ie,ft)}return M3(k,we,Pt,ke,me,un.current,Ie)}}var Mu=b.ReactCurrentOwner,Ih=b.ReactDebugCurrentFrame;function Pi(k){if(k){var Y=k._owner,Q=Xe(k.type,k._source,Y?Y.type:null);Ih.setExtraStackFrame(Q)}else Ih.setExtraStackFrame(null)}var ku;ku=!1;function Bu(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function _h(){{if(Mu.current){var k=M(Mu.current.type);if(k)return`
|
22
22
|
|
23
23
|
Check the render method of \``+k+"`."}return""}}function B3(k){return""}var $h={};function V3(k){{var Y=_h();if(!Y){var Q=typeof k=="string"?k:k.displayName||k.name;Q&&(Y=`
|
24
24
|
|
25
|
-
Check the top-level render call using <`+Q+">.")}return Y}}function Rh(k,Y){{if(!k._store||k._store.validated||k.key!=null)return;k._store.validated=!0;var Q=V3(Y);if($h[Q])return;$h[Q]=!0;var me="";k&&k._owner&&k._owner!==Mu.current&&(me=" It was passed a child from "+M(k._owner.type)+"."),Pi(k),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,me),Pi(null)}}function Ah(k,Y){{if(typeof k!="object")return;if(Se(k))for(var Q=0;Q<k.length;Q++){var me=k[Q];Bu(me)&&Rh(me,Y)}else if(Bu(k))k._store&&(k._store.validated=!0);else if(k){var ke=p(k);if(typeof ke=="function"&&ke!==k.entries)for(var ze=ke.call(k),
|
25
|
+
Check the top-level render call using <`+Q+">.")}return Y}}function Rh(k,Y){{if(!k._store||k._store.validated||k.key!=null)return;k._store.validated=!0;var Q=V3(Y);if($h[Q])return;$h[Q]=!0;var me="";k&&k._owner&&k._owner!==Mu.current&&(me=" It was passed a child from "+M(k._owner.type)+"."),Pi(k),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,me),Pi(null)}}function Ah(k,Y){{if(typeof k!="object")return;if(Se(k))for(var Q=0;Q<k.length;Q++){var me=k[Q];Bu(me)&&Rh(me,Y)}else if(Bu(k))k._store&&(k._store.validated=!0);else if(k){var ke=p(k);if(typeof ke=="function"&&ke!==k.entries)for(var ze=ke.call(k),Ie;!(Ie=ze.next()).done;)Bu(Ie.value)&&Rh(Ie.value,Y)}}}function O3(k){{var Y=k.type;if(Y==null||typeof Y=="string")return;var Q;if(typeof Y=="function")Q=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===l||Y.$$typeof===d))Q=Y.propTypes;else return;if(Q){var me=M(Y);Oe(Q,k.props,"prop",me,k)}else if(Y.PropTypes!==void 0&&!ku){ku=!0;var ke=M(Y);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function N3(k){{for(var Y=Object.keys(k.props),Q=0;Q<Y.length;Q++){var me=Y[Q];if(me!=="children"&&me!=="key"){Pi(k),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),Pi(null);break}}k.ref!==null&&(Pi(k),v("Invalid attribute `ref` supplied to `React.Fragment`."),Pi(null))}}var Fh={};function Ph(k,Y,Q,me,ke,ze){{var Ie=R(k);if(!Ie){var we="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pt=B3();Pt?we+=Pt:we+=_h();var ct;k===null?ct="null":Se(k)?ct="array":k!==void 0&&k.$$typeof===t?(ct="<"+(M(k.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):ct=typeof k,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ct,we)}var ft=k3(k,Y,Q,ke,ze);if(ft==null)return ft;if(Ie){var cn=Y.children;if(cn!==void 0)if(me)if(Se(cn)){for(var Ti=0;Ti<cn.length;Ti++)Ah(cn[Ti],k);Object.freeze&&Object.freeze(cn)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ah(cn,k)}if(et.call(Y,"key")){var zr=M(k),jt=Object.keys(Y).filter(function(G3){return G3!=="key"}),Vu=jt.length>0?"{key: someKey, "+jt.join(": ..., ")+": ...}":"{key: someKey}";if(!Fh[zr+Vu]){var z3=jt.length>0?"{"+jt.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
26
26
|
let props = %s;
|
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} />`,Vu,zr,z3,zr),Fh[zr+Vu]=!0}}return k===r?N3(ft):O3(ft),ft}}function L3(k,Y,Q){return Ph(k,Y,Q,!0)}function j3(k,Y,Q){return Ph(k,Y,Q,!1)}var H3=j3,W3=L3;Ea.Fragment=r,Ea.jsx=H3,Ea.jsxs=W3}()),Ea}process.env.NODE_ENV==="production"?Bc.exports=lw():Bc.exports=uw();var E=Bc.exports;function A0(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=A0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ar(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=A0(e))&&(r&&(r+=" "),r+=t);return r}const oo=e=>typeof e=="number"&&!isNaN(e),di=e=>typeof e=="string",tn=e=>typeof e=="function",Gs=e=>di(e)||tn(e)?e:null,Vc=e=>x.isValidElement(e)||di(e)||tn(e)||oo(e);function cw(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 ou(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:f,playToast:h}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,p=x.useRef(0);return x.useLayoutEffect(()=>{const b=d.current,v=g.split(" "),y=w=>{w.target===d.current&&(h(),b.removeEventListener("animationend",y),b.removeEventListener("animationcancel",y),p.current===0&&w.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",y),b.addEventListener("animationcancel",y)},[]),x.useEffect(()=>{const b=d.current,v=()=>{b.removeEventListener("animationend",v),i?cw(b,c,a):c()};f||(u?v():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",v)))},[f]),x.createElement(x.Fragment,null,s)}}function jh(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 kt=new Map;let so=[];const Oc=new Set,dw=e=>Oc.forEach(t=>t(e)),F0=()=>kt.size>0;function P0(e,t){var n;if(t)return!((n=kt.get(t))==null||!n.isToastActive(e));let r=!1;return kt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function T0(e,t){Vc(e)&&(F0()||so.push({content:e,options:t}),kt.forEach(n=>{n.buildToast(e,t)}))}function Hh(e,t){kt.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 fw(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,f){let h=1,g=0,m=[],p=[],b=[],v=d;const y=new Map,w=new Set,C=()=>{b=Array.from(y.values()),w.forEach(D=>D())},S=D=>{p=D==null?[]:p.filter($=>$!==D),C()},I=D=>{const{toastId:$,onOpen:R,updateId:_,children:P}=D.props,M=_==null;D.staleId&&y.delete(D.staleId),y.set($,D),p=[...p,D.props.toastId].filter(A=>A!==D.staleId),C(),f(jh(D,M?"added":"updated")),M&&tn(R)&&R(x.isValidElement(P)&&P.props)};return{id:c,props:v,observe:D=>(w.add(D),()=>w.delete(D)),toggle:(D,$)=>{y.forEach(R=>{$!=null&&$!==R.props.toastId||tn(R.toggle)&&R.toggle(D)})},removeToast:S,toasts:y,clearQueue:()=>{g-=m.length,m=[]},buildToast:(D,$)=>{if((z=>{let{containerId:q,toastId:W,updateId:H}=z;const O=q?q!==c:c!==1,G=y.has(W)&&H==null;return O||G})($))return;const{toastId:R,updateId:_,data:P,staleId:M,delay:A}=$,B=()=>{S(R)},T=_==null;T&&g++;const F={...v,style:v.toastStyle,key:h++,...Object.fromEntries(Object.entries($).filter(z=>{let[q,W]=z;return W!=null})),toastId:R,updateId:_,data:P,closeToast:B,isIn:!1,className:Gs($.className||v.toastClassName),bodyClassName:Gs($.bodyClassName||v.bodyClassName),progressClassName:Gs($.progressClassName||v.progressClassName),autoClose:!$.isLoading&&(V=$.autoClose,j=v.autoClose,V===!1||oo(V)&&V>0?V:j),deleteToast(){const z=y.get(R),{onClose:q,children:W}=z.props;tn(q)&&q(x.isValidElement(W)&&W.props),f(jh(z,"removed")),y.delete(R),g--,g<0&&(g=0),m.length>0?I(m.shift()):C()}};var V,j;F.closeButton=v.closeButton,$.closeButton===!1||Vc($.closeButton)?F.closeButton=$.closeButton:$.closeButton===!0&&(F.closeButton=!Vc(v.closeButton)||v.closeButton);let N=D;x.isValidElement(D)&&!di(D.type)?N=x.cloneElement(D,{closeToast:B,toastProps:F,data:P}):tn(D)&&(N=D({closeToast:B,toastProps:F,data:P}));const Z={content:N,props:F,staleId:M};v.limit&&v.limit>0&&g>v.limit&&T?m.push(Z):oo(A)?setTimeout(()=>{I(Z)},A):I(Z)},setProps(D){v=D},setToggle:(D,$)=>{y.get(D).toggle=$},isToastActive:D=>p.some($=>$===D),getSnapshot:()=>v.newestOnTop?b.reverse():b}}(o,a,dw);kt.set(o,l);const u=l.observe(s);return so.forEach(c=>T0(c.content,c.options)),so=[],()=>{u(),kt.delete(o)}},setProps(s){var l;(l=kt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=kt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.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:P0,count:i==null?void 0:i.length}}function hw(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),a=x.useRef(null),o=x.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 f,h;function g(){n(!0)}function m(){n(!1)}function p(y){const w=a.current;o.canDrag&&w&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?y.clientX-o.start:y.clientY-o.start,o.start!==y.clientX&&(o.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const y=a.current;if(o.canDrag&&o.didMove&&y){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(h=kt.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(f.id,f.fn),x.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 v={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){o.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const w=a.current;o.canCloseOnClick=!0,o.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(o.start=y.clientX,o.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(o.start=y.clientY,o.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:w,bottom:C,left:S,right:I}=a.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=S&&y.clientX<=I&&y.clientY>=w&&y.clientY<=C?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=y=>{c&&c(y),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}function gw(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:f}=e;const h=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=ar("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),p=tn(o)?o({rtl:c,type:i,defaultClassName:m}):ar(m,o),b={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return x.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},x.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),x.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:p,style:g,...b}))}let mw=1;const M0=()=>""+mw++;function pw(e){return e&&(di(e.toastId)||oo(e.toastId))?e.toastId:M0()}function Za(e,t){return T0(e,t),t.toastId}function dl(e,t){return{...t,type:t&&t.type||e,toastId:pw(t)}}function ss(e){return(t,n)=>Za(t,dl(e,n))}function Ne(e,t){return Za(e,dl("default",t))}Ne.loading=(e,t)=>Za(e,dl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=di(i)?Ne.loading(i,n):Ne.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,f)=>{if(d==null)return void Ne.dismiss(r);const h={type:c,...s,...n,data:f},g=di(d)?{render:d}:d;return r?Ne.update(r,{...h,...g}):Ne(g.render,{...h,...g}),f},u=tn(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},Ne.success=ss("success"),Ne.info=ss("info"),Ne.error=ss("error"),Ne.warning=ss("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>Za(e,dl("default",{theme:"dark",...t})),Ne.dismiss=function(e){(function(t){var n;if(F0()){if(t==null||di(n=t)||oo(n))kt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=kt.get(t.containerId);r?r.removeToast(t.id):kt.forEach(i=>{i.removeToast(t.id)})}}else so=so.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Ne.clearWaitingQueue=function(e){e===void 0&&(e={}),kt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ne.isActive=P0,Ne.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=kt.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:M0()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,Za(o,a)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return Oc.add(e),()=>{Oc.delete(e)}},Ne.play=e=>Hh(!0,e),Ne.pause=e=>Hh(!1,e);const bw=typeof window<"u"?x.useLayoutEffect:x.useEffect,ls=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return x.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ou={info:function(e){return x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement("div",{className:"Toastify__spinner"})}},vw=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=hw(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:f,transition:h,position:g,className:m,style:p,bodyClassName:b,bodyStyle:v,progressClassName:y,progressStyle:w,updateId:C,role:S,progress:I,rtl:D,toastId:$,deleteToast:R,isIn:_,isLoading:P,closeOnClick:M,theme:A}=e,B=ar("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":M}),T=tn(m)?m({rtl:D,position:g,type:c,defaultClassName:B}):ar(B,m),F=function(Z){let{theme:z,type:q,isLoading:W,icon:H}=Z,O=null;const G={theme:z,type:q};return H===!1||(tn(H)?O=H({...G,isLoading:W}):x.isValidElement(H)?O=x.cloneElement(H,G):W?O=Ou.spinner():(J=>J in Ou)(q)&&(O=Ou[q](G))),O}(e),V=!!I||!l,j={closeToast:f,type:c,theme:A};let N=null;return o===!1||(N=tn(o)?o(j):x.isValidElement(o)?x.cloneElement(o,j):function(Z){let{closeToast:z,theme:q,ariaLabel:W="close"}=Z;return x.createElement("button",{className:`Toastify__close-button Toastify__close-button--${q}`,type:"button",onClick:H=>{H.stopPropagation(),z(H)},"aria-label":W},x.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},x.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"})))}(j)),x.createElement(h,{isIn:_,done:R,position:g,preventExitTransition:n,nodeRef:r,playToast:a},x.createElement("div",{id:$,onClick:u,"data-in":_,className:T,...i,style:p,ref:r},x.createElement("div",{..._&&{role:S},className:tn(b)?b({type:c}):ar("Toastify__toast-body",b),style:v},F!=null&&x.createElement("div",{className:ar("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},F),x.createElement("div",null,s)),N,x.createElement(gw,{...C&&!V?{key:`pb-${C}`}:{},rtl:D,theme:A,delay:l,isRunning:t,isIn:_,closeToast:f,hide:d,type:c,style:w,className:y,controlledProgress:V,progress:I||0})))},su=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},yw=ou(su("bounce",!0));ou(su("slide",!0));ou(su("zoom"));ou(su("flip"));const xw={position:"top-right",transition:yw,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Cw(e){let t={...xw,...e};const n=e.stacked,[r,i]=x.useState(!0),a=x.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=fw(t),{className:u,style:c,rtl:d,containerId:f}=t;function h(m){const p=ar("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return tn(u)?u({position:m,rtl:d,defaultClassName:p}):ar(p,Gs(u))}function g(){n&&(i(!0),Ne.play())}return bw(()=>{if(n){var m;const p=a.current.querySelectorAll('[data-in="true"]'),b=12,v=(m=t.position)==null?void 0:m.includes("top");let y=0,w=0;Array.from(p).reverse().forEach((C,S)=>{const I=C;I.classList.add("Toastify__toast--stacked"),S>0&&(I.dataset.collapsed=`${r}`),I.dataset.pos||(I.dataset.pos=v?"top":"bot");const D=y*(r?.2:1)+(r?0:b*S);I.style.setProperty("--y",`${v?D:-1*D}px`),I.style.setProperty("--g",`${b}`),I.style.setProperty("--s",""+(1-(r?w:0))),y+=I.offsetHeight,w+=.025})}},[r,l,n]),x.createElement("div",{ref:a,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),Ne.pause())},onMouseLeave:g},o((m,p)=>{const b=p.length?{...c}:{...c,pointerEvents:"none"};return x.createElement("div",{className:h(m),style:b,key:`container-${m}`},p.map(v=>{let{content:y,props:w}=v;return x.createElement(vw,{...w,stacked:n,collapseAll:g,isIn:s(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},y)}))}))}const Ut={"alert-base":"_alert-base_l9fm8_1","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"},ww=(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:Ut["alert-body"]},a={icon:{laba:{success:E.jsx(Sw,{}),warning:E.jsx(Rw,{}),error:E.jsx(_w,{}),info:E.jsx(Iw,{})},payhere:{success:E.jsx(Dw,{}),warning:E.jsx($w,{}),error:E.jsx(Ew,{}),info:E.jsx(Aw,{})}},variant:{laba:{success:Ut["alert-success-filled"],error:Ut["alert-error-filled"],warning:Ut["alert-warning-filled"],info:Ut["alert-info-filled"]},payhere:{success:Ut["alert-success-outlined"],error:Ut["alert-error-outlined"],warning:Ut["alert-warning-outlined"],info:Ut["alert-info-outlined"]}}};return t==="error"?Ne.error(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ut["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?Ne.info(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ut["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?Ne.warning(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ut["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):Ne(E.jsxs("div",{children:[["laba"].includes(r)&&E.jsx("p",{className:Ut["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},Dw=()=>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"})})}),Sw=()=>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"})]})}),Ew=()=>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"})})}),Iw=()=>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"})]})}),_w=()=>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"})]})}),$w=()=>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"})})}),Rw=()=>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"})]})}),Aw=()=>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"})})}),Fw={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"},k0={"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}]},B0={"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}]},Pw={...k0,...B0},Tw={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Mw=()=>E.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),kw="_loading_1r2sa_10",_e={"button-base":"_button-base_1r2sa_6","button-xs":"_button-xs_1r2sa_6","button-s":"_button-s_1r2sa_6","button-m":"_button-m_1r2sa_6","button-l":"_button-l_1r2sa_6","button-extra-small":"_button-extra-small_1r2sa_6","button-small":"_button-small_1r2sa_6","button-reguler":"_button-reguler_1r2sa_6","button-large":"_button-large_1r2sa_6",loading:kw,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1r2sa_18","nude-laba-red-08":"_nude-laba-red-08_1r2sa_18","nude-laba-red-10":"_nude-laba-red-10_1r2sa_18","nude-gray-500":"_nude-gray-500_1r2sa_18","nude-green-700":"_nude-green-700_1r2sa_18","nude-red-700":"_nude-red-700_1r2sa_18","nude-laba-blue-10":"_nude-laba-blue-10_1r2sa_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1r2sa_18","ghost-laba-blue-01":"_ghost-laba-blue-01_1r2sa_18","ghost-green-700":"_ghost-green-700_1r2sa_18","ghost-red-700":"_ghost-red-700_1r2sa_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1r2sa_18","primary-green-700":"_primary-green-700_1r2sa_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1r2sa_18","primary-laba-blue-10":"_primary-laba-blue-10_1r2sa_18","button-disabled-gray-100":"_button-disabled-gray-100_1r2sa_18","tertiary-gray-500":"_tertiary-gray-500_1r2sa_18","tertiary-red-600":"_tertiary-red-600_1r2sa_18","tertiary-red-300":"_tertiary-red-300_1r2sa_18","tertiary-blue-700":"_tertiary-blue-700_1r2sa_18","secondary-green-600":"_secondary-green-600_1r2sa_18","secondary-red-600":"_secondary-red-600_1r2sa_18","secondary-blue-700":"_secondary-blue-700_1r2sa_18","primary-red-700":"_primary-red-700_1r2sa_18","primary-blue-700":"_primary-blue-700_1r2sa_18","icon-loading":"_icon-loading_1r2sa_96","spin-loading":"_spin-loading_1r2sa_1"},Bw=({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
|
30
|
+
<%s key={someKey} {...props} />`,Vu,zr,z3,zr),Fh[zr+Vu]=!0}}return k===r?N3(ft):O3(ft),ft}}function L3(k,Y,Q){return Ph(k,Y,Q,!0)}function j3(k,Y,Q){return Ph(k,Y,Q,!1)}var H3=j3,W3=L3;Ea.Fragment=r,Ea.jsx=H3,Ea.jsxs=W3}()),Ea}process.env.NODE_ENV==="production"?Bc.exports=lw():Bc.exports=uw();var S=Bc.exports;function A0(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=A0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ar(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=A0(e))&&(r&&(r+=" "),r+=t);return r}const oo=e=>typeof e=="number"&&!isNaN(e),di=e=>typeof e=="string",tn=e=>typeof e=="function",Gs=e=>di(e)||tn(e)?e:null,Vc=e=>x.isValidElement(e)||di(e)||tn(e)||oo(e);function cw(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 ou(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:f,playToast:h}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,p=x.useRef(0);return x.useLayoutEffect(()=>{const b=d.current,v=g.split(" "),y=D=>{D.target===d.current&&(h(),b.removeEventListener("animationend",y),b.removeEventListener("animationcancel",y),p.current===0&&D.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",y),b.addEventListener("animationcancel",y)},[]),x.useEffect(()=>{const b=d.current,v=()=>{b.removeEventListener("animationend",v),i?cw(b,c,a):c()};f||(u?v():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",v)))},[f]),x.createElement(x.Fragment,null,s)}}function jh(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 kt=new Map;let so=[];const Oc=new Set,dw=e=>Oc.forEach(t=>t(e)),F0=()=>kt.size>0;function P0(e,t){var n;if(t)return!((n=kt.get(t))==null||!n.isToastActive(e));let r=!1;return kt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function T0(e,t){Vc(e)&&(F0()||so.push({content:e,options:t}),kt.forEach(n=>{n.buildToast(e,t)}))}function Hh(e,t){kt.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 fw(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,f){let h=1,g=0,m=[],p=[],b=[],v=d;const y=new Map,D=new Set,C=()=>{b=Array.from(y.values()),D.forEach(w=>w())},E=w=>{p=w==null?[]:p.filter($=>$!==w),C()},I=w=>{const{toastId:$,onOpen:R,updateId:_,children:P}=w.props,M=_==null;w.staleId&&y.delete(w.staleId),y.set($,w),p=[...p,w.props.toastId].filter(A=>A!==w.staleId),C(),f(jh(w,M?"added":"updated")),M&&tn(R)&&R(x.isValidElement(P)&&P.props)};return{id:c,props:v,observe:w=>(D.add(w),()=>D.delete(w)),toggle:(w,$)=>{y.forEach(R=>{$!=null&&$!==R.props.toastId||tn(R.toggle)&&R.toggle(w)})},removeToast:E,toasts:y,clearQueue:()=>{g-=m.length,m=[]},buildToast:(w,$)=>{if((z=>{let{containerId:q,toastId:W,updateId:H}=z;const O=q?q!==c:c!==1,G=y.has(W)&&H==null;return O||G})($))return;const{toastId:R,updateId:_,data:P,staleId:M,delay:A}=$,B=()=>{E(R)},T=_==null;T&&g++;const F={...v,style:v.toastStyle,key:h++,...Object.fromEntries(Object.entries($).filter(z=>{let[q,W]=z;return W!=null})),toastId:R,updateId:_,data:P,closeToast:B,isIn:!1,className:Gs($.className||v.toastClassName),bodyClassName:Gs($.bodyClassName||v.bodyClassName),progressClassName:Gs($.progressClassName||v.progressClassName),autoClose:!$.isLoading&&(V=$.autoClose,j=v.autoClose,V===!1||oo(V)&&V>0?V:j),deleteToast(){const z=y.get(R),{onClose:q,children:W}=z.props;tn(q)&&q(x.isValidElement(W)&&W.props),f(jh(z,"removed")),y.delete(R),g--,g<0&&(g=0),m.length>0?I(m.shift()):C()}};var V,j;F.closeButton=v.closeButton,$.closeButton===!1||Vc($.closeButton)?F.closeButton=$.closeButton:$.closeButton===!0&&(F.closeButton=!Vc(v.closeButton)||v.closeButton);let N=w;x.isValidElement(w)&&!di(w.type)?N=x.cloneElement(w,{closeToast:B,toastProps:F,data:P}):tn(w)&&(N=w({closeToast:B,toastProps:F,data:P}));const Z={content:N,props:F,staleId:M};v.limit&&v.limit>0&&g>v.limit&&T?m.push(Z):oo(A)?setTimeout(()=>{I(Z)},A):I(Z)},setProps(w){v=w},setToggle:(w,$)=>{y.get(w).toggle=$},isToastActive:w=>p.some($=>$===w),getSnapshot:()=>v.newestOnTop?b.reverse():b}}(o,a,dw);kt.set(o,l);const u=l.observe(s);return so.forEach(c=>T0(c.content,c.options)),so=[],()=>{u(),kt.delete(o)}},setProps(s){var l;(l=kt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=kt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.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:P0,count:i==null?void 0:i.length}}function hw(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),a=x.useRef(null),o=x.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 f,h;function g(){n(!0)}function m(){n(!1)}function p(y){const D=a.current;o.canDrag&&D&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?y.clientX-o.start:y.clientY-o.start,o.start!==y.clientX&&(o.canCloseOnClick=!1),D.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,D.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const y=a.current;if(o.canDrag&&o.didMove&&y){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(h=kt.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(f.id,f.fn),x.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 v={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){o.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const D=a.current;o.canCloseOnClick=!0,o.canDrag=!0,D.style.transition="none",e.draggableDirection==="x"?(o.start=y.clientX,o.removalDistance=D.offsetWidth*(e.draggablePercent/100)):(o.start=y.clientY,o.removalDistance=D.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:D,bottom:C,left:E,right:I}=a.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=E&&y.clientX<=I&&y.clientY>=D&&y.clientY<=C?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=y=>{c&&c(y),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}function gw(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:f}=e;const h=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=ar("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),p=tn(o)?o({rtl:c,type:i,defaultClassName:m}):ar(m,o),b={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return x.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},x.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),x.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:p,style:g,...b}))}let mw=1;const M0=()=>""+mw++;function pw(e){return e&&(di(e.toastId)||oo(e.toastId))?e.toastId:M0()}function Za(e,t){return T0(e,t),t.toastId}function dl(e,t){return{...t,type:t&&t.type||e,toastId:pw(t)}}function ss(e){return(t,n)=>Za(t,dl(e,n))}function Ne(e,t){return Za(e,dl("default",t))}Ne.loading=(e,t)=>Za(e,dl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=di(i)?Ne.loading(i,n):Ne.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,f)=>{if(d==null)return void Ne.dismiss(r);const h={type:c,...s,...n,data:f},g=di(d)?{render:d}:d;return r?Ne.update(r,{...h,...g}):Ne(g.render,{...h,...g}),f},u=tn(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},Ne.success=ss("success"),Ne.info=ss("info"),Ne.error=ss("error"),Ne.warning=ss("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>Za(e,dl("default",{theme:"dark",...t})),Ne.dismiss=function(e){(function(t){var n;if(F0()){if(t==null||di(n=t)||oo(n))kt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=kt.get(t.containerId);r?r.removeToast(t.id):kt.forEach(i=>{i.removeToast(t.id)})}}else so=so.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Ne.clearWaitingQueue=function(e){e===void 0&&(e={}),kt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ne.isActive=P0,Ne.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=kt.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:M0()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,Za(o,a)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return Oc.add(e),()=>{Oc.delete(e)}},Ne.play=e=>Hh(!0,e),Ne.pause=e=>Hh(!1,e);const bw=typeof window<"u"?x.useLayoutEffect:x.useEffect,ls=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return x.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ou={info:function(e){return x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement(ls,{...e},x.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 x.createElement("div",{className:"Toastify__spinner"})}},vw=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=hw(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:f,transition:h,position:g,className:m,style:p,bodyClassName:b,bodyStyle:v,progressClassName:y,progressStyle:D,updateId:C,role:E,progress:I,rtl:w,toastId:$,deleteToast:R,isIn:_,isLoading:P,closeOnClick:M,theme:A}=e,B=ar("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":M}),T=tn(m)?m({rtl:w,position:g,type:c,defaultClassName:B}):ar(B,m),F=function(Z){let{theme:z,type:q,isLoading:W,icon:H}=Z,O=null;const G={theme:z,type:q};return H===!1||(tn(H)?O=H({...G,isLoading:W}):x.isValidElement(H)?O=x.cloneElement(H,G):W?O=Ou.spinner():(J=>J in Ou)(q)&&(O=Ou[q](G))),O}(e),V=!!I||!l,j={closeToast:f,type:c,theme:A};let N=null;return o===!1||(N=tn(o)?o(j):x.isValidElement(o)?x.cloneElement(o,j):function(Z){let{closeToast:z,theme:q,ariaLabel:W="close"}=Z;return x.createElement("button",{className:`Toastify__close-button Toastify__close-button--${q}`,type:"button",onClick:H=>{H.stopPropagation(),z(H)},"aria-label":W},x.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},x.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"})))}(j)),x.createElement(h,{isIn:_,done:R,position:g,preventExitTransition:n,nodeRef:r,playToast:a},x.createElement("div",{id:$,onClick:u,"data-in":_,className:T,...i,style:p,ref:r},x.createElement("div",{..._&&{role:E},className:tn(b)?b({type:c}):ar("Toastify__toast-body",b),style:v},F!=null&&x.createElement("div",{className:ar("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},F),x.createElement("div",null,s)),N,x.createElement(gw,{...C&&!V?{key:`pb-${C}`}:{},rtl:w,theme:A,delay:l,isRunning:t,isIn:_,closeToast:f,hide:d,type:c,style:D,className:y,controlledProgress:V,progress:I||0})))},su=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},yw=ou(su("bounce",!0));ou(su("slide",!0));ou(su("zoom"));ou(su("flip"));const xw={position:"top-right",transition:yw,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Cw(e){let t={...xw,...e};const n=e.stacked,[r,i]=x.useState(!0),a=x.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=fw(t),{className:u,style:c,rtl:d,containerId:f}=t;function h(m){const p=ar("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return tn(u)?u({position:m,rtl:d,defaultClassName:p}):ar(p,Gs(u))}function g(){n&&(i(!0),Ne.play())}return bw(()=>{if(n){var m;const p=a.current.querySelectorAll('[data-in="true"]'),b=12,v=(m=t.position)==null?void 0:m.includes("top");let y=0,D=0;Array.from(p).reverse().forEach((C,E)=>{const I=C;I.classList.add("Toastify__toast--stacked"),E>0&&(I.dataset.collapsed=`${r}`),I.dataset.pos||(I.dataset.pos=v?"top":"bot");const w=y*(r?.2:1)+(r?0:b*E);I.style.setProperty("--y",`${v?w:-1*w}px`),I.style.setProperty("--g",`${b}`),I.style.setProperty("--s",""+(1-(r?D:0))),y+=I.offsetHeight,D+=.025})}},[r,l,n]),x.createElement("div",{ref:a,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),Ne.pause())},onMouseLeave:g},o((m,p)=>{const b=p.length?{...c}:{...c,pointerEvents:"none"};return x.createElement("div",{className:h(m),style:b,key:`container-${m}`},p.map(v=>{let{content:y,props:D}=v;return x.createElement(vw,{...D,stacked:n,collapseAll:g,isIn:s(D.toastId,D.containerId),style:D.style,key:`toast-${D.key}`},y)}))}))}const Ut={"alert-base":"_alert-base_l9fm8_1","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"},ww=(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:Ut["alert-body"]},a={icon:{laba:{success:S.jsx(Sw,{}),warning:S.jsx(Rw,{}),error:S.jsx(_w,{}),info:S.jsx(Iw,{})},payhere:{success:S.jsx(Dw,{}),warning:S.jsx($w,{}),error:S.jsx(Ew,{}),info:S.jsx(Aw,{})}},variant:{laba:{success:Ut["alert-success-filled"],error:Ut["alert-error-filled"],warning:Ut["alert-warning-filled"],info:Ut["alert-info-filled"]},payhere:{success:Ut["alert-success-outlined"],error:Ut["alert-error-outlined"],warning:Ut["alert-warning-outlined"],info:Ut["alert-info-outlined"]}}};return t==="error"?Ne.error(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Ut["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?Ne.info(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Ut["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?Ne.warning(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Ut["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):Ne(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Ut["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},Dw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"check-circle",children:S.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"})})}),Sw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"circle",children:[S.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"}),S.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ew=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation-circle",children:S.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"})})}),Iw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.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"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),_w=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.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"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),$w=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation",children:S.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"})})}),Rw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.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"})]})}),Aw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"information-circle",children:S.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"})})}),Fw={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"},k0={"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}]},B0={"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}]},Pw={...k0,...B0},Tw={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Mw=()=>S.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),kw="_loading_ij77c_10",Ee={"button-base":"_button-base_ij77c_6","button-xs":"_button-xs_ij77c_6","button-s":"_button-s_ij77c_6","button-m":"_button-m_ij77c_6","button-l":"_button-l_ij77c_6","button-extra-small":"_button-extra-small_ij77c_6","button-small":"_button-small_ij77c_6","button-reguler":"_button-reguler_ij77c_6","button-large":"_button-large_ij77c_6",loading:kw,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_ij77c_18","nude-laba-red-08":"_nude-laba-red-08_ij77c_18","nude-laba-red-10":"_nude-laba-red-10_ij77c_18","nude-gray-500":"_nude-gray-500_ij77c_18","nude-green-700":"_nude-green-700_ij77c_18","nude-red-700":"_nude-red-700_ij77c_18","nude-laba-blue-10":"_nude-laba-blue-10_ij77c_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_ij77c_18","ghost-laba-blue-01":"_ghost-laba-blue-01_ij77c_18","ghost-green-700":"_ghost-green-700_ij77c_18","ghost-red-700":"_ghost-red-700_ij77c_18","ghost-laba-blue-10":"_ghost-laba-blue-10_ij77c_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_ij77c_18","primary-green-700":"_primary-green-700_ij77c_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_ij77c_18","primary-laba-blue-10":"_primary-laba-blue-10_ij77c_18","button-disabled-gray-100":"_button-disabled-gray-100_ij77c_18","tertiary-gray-500":"_tertiary-gray-500_ij77c_18","tertiary-red-600":"_tertiary-red-600_ij77c_18","tertiary-red-300":"_tertiary-red-300_ij77c_18","tertiary-blue-700":"_tertiary-blue-700_ij77c_18","secondary-green-600":"_secondary-green-600_ij77c_18","secondary-red-700":"_secondary-red-700_ij77c_18","secondary-red-600":"_secondary-red-600_ij77c_18","secondary-blue-700":"_secondary-blue-700_ij77c_18","primary-red-700":"_primary-red-700_ij77c_18","primary-blue-700":"_primary-blue-700_ij77c_18","icon-loading":"_icon-loading_ij77c_96","spin-loading":"_spin-loading_ij77c_1"},Bw=({className:e=""})=>S.jsx("svg",{className:`${Ee["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:S.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
|
31
31
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
32
32
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
33
33
|
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
|
@@ -37,18 +37,18 @@ React keys must be passed directly to JSX without using spread:
|
|
37
37
|
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
38
38
|
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
39
39
|
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
40
|
-
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),Wn=x.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",startIcon:i=()=>
|
41
|
-
${u?
|
40
|
+
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),Wn=x.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",startIcon:i=()=>S.jsx(S.Fragment,{}),endIcon:a=()=>S.jsx(S.Fragment,{}),children:o,className:s,classNameIconLoading:l,loading:u,onClick:c,type:d="button",disabled:f,...h}=e,g={size:{large:Ee["button-large"],reguler:Ee["button-reguler"],small:Ee["button-small"],"extra-small":Ee["button-extra-small"],l:Ee["button-l"],m:Ee["button-m"],s:Ee["button-s"],xs:Ee["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":Ee["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":Ee["primary-red-700-dsb_laba-grey-06"],"primary-green-700":Ee["primary-green-700"],"ghost-laba-blue-10":Ee["ghost-laba-blue-10"],"ghost-red-700":Ee["ghost-red-700"],"ghost-green-700":Ee["ghost-green-700"],"nude-laba-blue-10":Ee["nude-laba-blue-10"],"nude-red-700":Ee["nude-red-700"],"nude-green-700":Ee["nude-green-700"],"nude-gray-500":Ee["nude-gray-500"],"primary-blue-700":Ee["primary-blue-700"],"secondary-blue-700":Ee["secondary-blue-700"],"tertiary-blue-700":Ee["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":Ee["ghost-blue-gray-100-bg_white"],"secondary-red-600":Ee["secondary-red-600"],"tertiary-red-300":Ee["tertiary-red-300"],"tertiary-gray-500":Ee["tertiary-gray-500"],"tertiary-red-600":Ee["tertiary-red-600"],"secondary-green-600":Ee["secondary-green-600"],"nude-laba-red-10":Ee["nude-laba-red-10"],"primary-red-700":Ee["primary-red-700"],"nude-laba-red-08":Ee["nude-laba-red-08"],"ghost-laba-blue-01":Ee["ghost-laba-blue-01"],"filled-laba-white_laba-blue-10":Ee["filled-laba-white_laba-blue-10"],"secondary-red-700":Ee["secondary-red-700"]}};return S.jsxs("button",{onClick:u?void 0:c,ref:t,className:`${g.size[n]} ${g.variants[r]}
|
41
|
+
${u?Ee.loading:""} ${s??""}`,type:d,disabled:f??u,...h,children:[!u&&S.jsxs(S.Fragment,{children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),u&&S.jsx(Bw,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&S.jsxs(S.Fragment,{children:[typeof a=="function"&&a(),x.isValidElement(a)&&a]})]})});Wn.displayName="Button";function Or(e){return V0(e)?(e.nodeName||"").toLowerCase():"#document"}function nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mr(e){var t;return(t=(V0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function V0(e){return e instanceof Node||e instanceof nn(e).Node}function rt(e){return e instanceof Element||e instanceof nn(e).Element}function vt(e){return e instanceof HTMLElement||e instanceof nn(e).HTMLElement}function Nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nn(e).ShadowRoot}function jo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Vw(e){return["table","td","th"].includes(Or(e))}function lu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wd(e){const t=zd(),n=vn(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 Ow(e){let t=hr(e);for(;vt(t)&&!Pr(t);){if(lu(t))return null;if(Wd(t))return t;t=hr(t)}return null}function zd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pr(e){return["html","body","#document"].includes(Or(e))}function vn(e){return nn(e).getComputedStyle(e)}function uu(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hr(e){if(Or(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||mr(e);return Nc(t)?t.host:t}function O0(e){const t=hr(e);return Pr(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&jo(t)?t:O0(t)}function Ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=O0(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=nn(i);return a?t.concat(o,o.visualViewport||[],jo(i)?i:[],o.frameElement&&n?Ar(o.frameElement):[]):t.concat(i,Ar(i,[],n))}function Qr(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 qt(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Nc(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Nw(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function N0(){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 Lw(e){return e.mozInputSource===0&&e.isTrusted?!0:Lc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jw(e){return Ww()?!1:!Lc()&&e.width===0&&e.height===0||Lc()&&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 Hw(){return/apple/i.test(navigator.vendor)}function Lc(){const e=/android/i;return e.test(Nw())||e.test(N0())}function Ww(){return N0().includes("jsdom/")}function Wh(e,t){return["mouse","pen"].includes(e)}function zw(e){return"nativeEvent"in e}function Gw(e){return e.matches("html,body")}function xn(e){return(e==null?void 0:e.ownerDocument)||document}function Nu(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 ri(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Zw="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function L0(e){return vt(e)&&e.matches(Zw)}function Lu(e){e.preventDefault(),e.stopPropagation()}function Xw(e){return e?e.getAttribute("role")==="combobox"&&L0(e):!1}const Yw=["top","right","bottom","left"],zh=["start","end"],Gh=Yw.reduce((e,t)=>e.concat(t,t+"-"+zh[0],t+"-"+zh[1]),[]),fl=Math.min,fi=Math.max,hl=Math.round,us=Math.floor,Tr=e=>({x:e,y:e}),Uw={left:"right",right:"left",bottom:"top",top:"bottom"},Jw={start:"end",end:"start"};function Zh(e,t,n){return fi(e,fl(t,n))}function Ho(e,t){return typeof e=="function"?e(t):e}function gr(e){return e.split("-")[0]}function dr(e){return e.split("-")[1]}function j0(e){return e==="x"?"y":"x"}function H0(e){return e==="y"?"height":"width"}function ua(e){return["top","bottom"].includes(gr(e))?"y":"x"}function W0(e){return j0(ua(e))}function z0(e,t,n){n===void 0&&(n=!1);const r=dr(e),i=W0(e),a=H0(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ml(o)),[o,ml(o)]}function Kw(e){const t=ml(e);return[gl(e),t,gl(t)]}function gl(e){return e.replace(/start|end/g,t=>Jw[t])}function qw(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 Qw(e,t,n,r){const i=dr(e);let a=qw(gr(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(gl)))),a}function ml(e){return e.replace(/left|right|bottom|top/g,t=>Uw[t])}function eD(e){return{top:0,right:0,bottom:0,left:0,...e}}function tD(e){return typeof e!="number"?eD(e):{top:e,right:e,bottom:e,left:e}}function pl(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}}/*!
|
42
42
|
* tabbable 6.2.0
|
43
43
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
44
|
-
*/var nD=["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])"],bl=nD.join(","),G0=typeof Element>"u",ca=G0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vl=!G0&&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},yl=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},rD=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},iD=function(t,n,r){if(yl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(bl));return n&&ca.call(t,bl)&&i.unshift(t),i=i.filter(r),i},aD=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!yl(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=ca.call(o,bl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!yl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&f){var h=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return i},Z0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},X0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||rD(t))&&!Z0(t)?0:t.tabIndex},oD=function(t,n){var r=X0(t);return r<0&&n&&!Z0(t)?0:r},sD=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Y0=function(t){return t.tagName==="INPUT"},lD=function(t){return Y0(t)&&t.type==="hidden"},uD=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cD=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dD=function(t){if(!t.name)return!0;var n=t.form||vl(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=cD(i,t.form);return!a||a===t},fD=function(t){return Y0(t)&&t.type==="radio"},hD=function(t){return fD(t)&&!dD(t)},gD=function(t){var n,r=t&&vl(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=vl(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},Xh=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},mD=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ca.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(ca.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=vl(t);if(l&&!l.shadowRoot&&i(l)===!0)return Xh(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(gD(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Xh(t);return!1},pD=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 ca.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},bD=function(t,n){return!(n.disabled||yl(n)||lD(n)||mD(n,t)||uD(n)||pD(n))},jc=function(t,n){return!(hD(n)||X0(n)<0||!bD(t,n))},vD=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},yD=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=oD(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(sD).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},cu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=aD([t],n.includeContainer,{filter:jc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vD}):r=iD(t,n.includeContainer,jc.bind(null,n)),yD(r)},xD=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ca.call(t,bl)===!1?!1:jc(n,t)};function Yh(e,t,n){let{reference:r,floating:i}=e;const a=ua(t),o=W0(t),s=H0(o),l=gr(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(dr(t)){case"start":h[o]-=f*(n&&u?-1:1);break;case"end":h[o]+=f*(n&&u?-1:1);break}return h}const CD=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}=Yh(u,r,l),f=r,h={},g=0;for(let m=0;m<s.length;m++){const{name:p,fn:b}=s[m],{x:v,y,data:w,reset:C}=await b({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,d=y??d,h={...h,[p]:{...h[p],...w}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:d}=Yh(u,f,l)),m=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function Gd(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:f=!1,padding:h=0}=Ho(t,e),g=tD(h),p=s[f?d==="floating"?"reference":"floating":d],b=pl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(p)))==null||n?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},C=pl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-C.top+g.top)/w.y,bottom:(C.bottom-b.bottom+g.bottom)/w.y,left:(b.left-C.left+g.left)/w.x,right:(C.right-b.right+g.right)/w.x}}function wD(e,t,n){return(e?[...n.filter(i=>dr(i)===e),...n.filter(i=>dr(i)!==e)]:n.filter(i=>gr(i)===i)).filter(i=>e?dr(i)===e||(t?gl(i)!==i:!1):!0)}const DD=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:f=Gh,autoAlignment:h=!0,...g}=Ho(e,t),m=d!==void 0||f===Gh?wD(d||null,h,f):f,p=await Gd(t,g),b=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[b];if(v==null)return{};const y=z0(v,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const w=[p[gr(v)],p[y[0]],p[y[1]]],C=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:w}],S=m[b+1];if(S)return{data:{index:b+1,overflows:C},reset:{placement:S}};const I=C.map(R=>{const _=dr(R.placement);return[R.placement,_&&c?R.overflows.slice(0,2).reduce((P,M)=>P+M,0):R.overflows[0],R.overflows]}).sort((R,_)=>R[1]-_[1]),$=((i=I.filter(R=>R[2].slice(0,dr(R[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||I[0][0];return $!==s?{data:{index:b+1,overflows:C},reset:{placement:$}}:{}}}},SD=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:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...p}=Ho(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=gr(i),v=ua(s),y=gr(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(y||!m?[ml(s)]:Kw(s)),S=g!=="none";!f&&S&&C.push(...Qw(s,m,g,w));const I=[s,...C],D=await Gd(t,p),$=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&$.push(D[b]),d){const A=z0(i,o,w);$.push(D[A[0]],D[A[1]])}if(R=[...R,{placement:i,overflows:$}],!$.every(A=>A<=0)){var _,P;const A=(((_=a.flip)==null?void 0:_.index)||0)+1,B=I[A];if(B)return{data:{index:A,overflows:R},reset:{placement:B}};let T=(P=R.filter(F=>F.overflows[0]<=0).sort((F,V)=>F.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!T)switch(h){case"bestFit":{var M;const F=(M=R.filter(V=>{if(S){const j=ua(V.placement);return j===v||j==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(j=>j>0).reduce((j,N)=>j+N,0)]).sort((V,j)=>V[1]-j[1])[0])==null?void 0:M[0];F&&(T=F);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function ED(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=gr(n),s=dr(n),l=ua(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=Ho(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const ID=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 ED(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}}}}},_D=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:p=>{let{x:b,y:v}=p;return{x:b,y:v}}},...l}=Ho(e,t),u={x:n,y:r},c=await Gd(t,l),d=ua(gr(i)),f=j0(d);let h=u[f],g=u[d];if(a){const p=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=h+c[p],y=h-c[b];h=Zh(v,h,y)}if(o){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=g+c[p],y=g-c[b];g=Zh(v,g,y)}const m=s.fn({...t,[f]:h,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function U0(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=hl(n)!==a||hl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zd(e){return rt(e)?e:e.contextElement}function qi(e){const t=Zd(e);if(!vt(t))return Tr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=U0(t);let o=(a?hl(n.width):n.width)/r,s=(a?hl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const $D=Tr(0);function J0(e){const t=nn(e);return!zd()||!t.visualViewport?$D:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nn(e)?!1:t}function pi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Zd(e);let o=Tr(1);t&&(r?rt(r)&&(o=qi(r)):o=qi(e));const s=RD(a,n,r)?J0(a):Tr(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 f=nn(a),h=r&&rt(r)?nn(r):r;let g=f,m=g.frameElement;for(;m&&r&&h!==g;){const p=qi(m),b=m.getBoundingClientRect(),v=vn(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*p.x,w=b.top+(m.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=y,u+=w,g=nn(m),m=g.frameElement}}return pl({width:c,height:d,x:l,y:u})}function AD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=mr(r),s=t?lu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Tr(1);const c=Tr(0),d=vt(r);if((d||!d&&!a)&&((Or(r)!=="body"||jo(o))&&(l=uu(r)),vt(r))){const f=pi(r);u=qi(r),c.x=f.x+r.clientLeft,c.y=f.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 FD(e){return Array.from(e.getClientRects())}function K0(e){return pi(mr(e)).left+uu(e).scrollLeft}function PD(e){const t=mr(e),n=uu(e),r=e.ownerDocument.body,i=fi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+K0(e);const s=-n.scrollTop;return vn(r).direction==="rtl"&&(o+=fi(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function TD(e,t){const n=nn(e),r=mr(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=zd();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function MD(e,t){const n=pi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vt(e)?qi(e):Tr(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 Uh(e,t,n){let r;if(t==="viewport")r=TD(e,n);else if(t==="document")r=PD(mr(e));else if(rt(t))r=MD(t,n);else{const i=J0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return pl(r)}function q0(e,t){const n=hr(e);return n===t||!rt(n)||Pr(n)?!1:vn(n).position==="fixed"||q0(n,t)}function kD(e,t){const n=t.get(e);if(n)return n;let r=Ar(e,[],!1).filter(s=>rt(s)&&Or(s)!=="body"),i=null;const a=vn(e).position==="fixed";let o=a?hr(e):e;for(;rt(o)&&!Pr(o);){const s=vn(o),l=Wd(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||jo(o)&&!l&&q0(e,o))?r=r.filter(c=>c!==o):i=s,o=hr(o)}return t.set(e,r),r}function BD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lu(t)?[]:kD(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Uh(t,c,i);return u.top=fi(d.top,u.top),u.right=fl(d.right,u.right),u.bottom=fl(d.bottom,u.bottom),u.left=fi(d.left,u.left),u},Uh(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function VD(e){const{width:t,height:n}=U0(e);return{width:t,height:n}}function OD(e,t,n){const r=vt(t),i=mr(t),a=n==="fixed",o=pi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Tr(0);if(r||!r&&!a)if((Or(t)!=="body"||jo(i))&&(s=uu(t)),r){const d=pi(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=K0(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 ju(e){return vn(e).position==="static"}function Jh(e,t){return!vt(e)||vn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Q0(e,t){const n=nn(e);if(lu(e))return n;if(!vt(e)){let i=hr(e);for(;i&&!Pr(i);){if(rt(i)&&!ju(i))return i;i=hr(i)}return n}let r=Jh(e,t);for(;r&&Vw(r)&&ju(r);)r=Jh(r,t);return r&&Pr(r)&&ju(r)&&!Wd(r)?n:r||Ow(e)||n}const ND=async function(e){const t=this.getOffsetParent||Q0,n=this.getDimensions,r=await n(e.floating);return{reference:OD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LD(e){return vn(e).direction==="rtl"}const jD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:mr,getClippingRect:BD,getOffsetParent:Q0,getElementRects:ND,getClientRects:FD,getDimensions:VD,getScale:qi,isElement:rt,isRTL:LD};function HD(e,t){let n=null,r;const i=mr(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:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h=us(c),g=us(i.clientWidth-(u+d)),m=us(i.clientHeight-(c+f)),p=us(u),v={rootMargin:-h+"px "+-g+"px "+-m+"px "+-p+"px",threshold:fi(0,fl(1,l))||1};let y=!0;function w(C){const S=C[0].intersectionRatio;if(S!==l){if(!y)return o();S?o(!1,S):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,v)}n.observe(e)}return o(!0),a}function eb(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=Zd(e),c=i||a?[...u?Ar(u):[],...Ar(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=u&&s?HD(u,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,m=l?pi(e):null;l&&p();function p(){const b=pi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const WD=ID,zD=DD,GD=_D,ZD=SD,XD=(e,t,n)=>{const r=new Map,i={platform:jD,...n},a={...i.platform,_c:r};return CD(e,t,{...i,platform:a})};var Zs=typeof document<"u"?x.useLayoutEffect:x.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 tb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kh(e,t){const n=tb(e);return Math.round(t*n)/n}function qh(e){const t=L.useRef(e);return Zs(()=>{t.current=e}),t}function YD(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]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=L.useState(r);xl(f,r)||h(r);const[g,m]=L.useState(null),[p,b]=L.useState(null),v=L.useCallback(F=>{F!==S.current&&(S.current=F,m(F))},[]),y=L.useCallback(F=>{F!==I.current&&(I.current=F,b(F))},[]),w=a||g,C=o||p,S=L.useRef(null),I=L.useRef(null),D=L.useRef(c),$=l!=null,R=qh(l),_=qh(i),P=L.useCallback(()=>{if(!S.current||!I.current)return;const F={placement:t,strategy:n,middleware:f};_.current&&(F.platform=_.current),XD(S.current,I.current,F).then(V=>{const j={...V,isPositioned:!0};M.current&&!xl(D.current,j)&&(D.current=j,w0.flushSync(()=>{d(j)}))})},[f,t,n,_]);Zs(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const M=L.useRef(!1);Zs(()=>(M.current=!0,()=>{M.current=!1}),[]),Zs(()=>{if(w&&(S.current=w),C&&(I.current=C),w&&C){if(R.current)return R.current(w,C,P);P()}},[w,C,P,R,$]);const A=L.useMemo(()=>({reference:S,floating:I,setReference:v,setFloating:y}),[v,y]),B=L.useMemo(()=>({reference:w,floating:C}),[w,C]),T=L.useMemo(()=>{const F={position:n,left:0,top:0};if(!B.floating)return F;const V=Kh(B.floating,c.x),j=Kh(B.floating,c.y);return s?{...F,transform:"translate("+V+"px, "+j+"px)",...tb(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:j}},[n,s,B.floating,c.x,c.y]);return L.useMemo(()=>({...c,update:P,refs:A,elements:B,floatingStyles:T}),[c,P,A,B,T])}const UD=(e,t)=>({...WD(e),options:[e,t]}),JD=(e,t)=>({...GD(e),options:[e,t]}),KD=(e,t)=>({...ZD(e),options:[e,t]}),qD=(e,t)=>({...zD(e),options:[e,t]}),nb={...L},QD=nb.useInsertionEffect,e5=QD||(e=>e());function Dr(e){const t=L.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return e5(()=>{t.current=e}),L.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 Qh=0;function Gr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Qh);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Qh=requestAnimationFrame(a)}var Gt=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Cl(){return Cl=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},Cl.apply(this,arguments)}let eg=!1,t5=0;const tg=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+t5++;function n5(){const[e,t]=L.useState(()=>eg?tg():void 0);return Gt(()=>{e==null&&t(tg())},[]),L.useEffect(()=>{eg=!0},[]),e}const r5=nb.useId,Xd=r5||n5;let Hc;process.env.NODE_ENV!=="production"&&(Hc=new Set);function i5(){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=Hc)!=null&&e.has(i))){var a;(a=Hc)==null||a.add(i),console.error(i)}}function a5(){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 o5=L.createContext(null),s5=L.createContext(null),rb=()=>{var e;return((e=L.useContext(o5))==null?void 0:e.id)||null},Yd=()=>L.useContext(s5);function lo(e){return"data-floating-ui-"+e}function oi(e){const t=x.useRef(e);return Gt(()=>{t.current=e}),t}function l5(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 Xa(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 ki=new WeakMap,cs=new WeakSet,ds={},Hu=0;const u5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,ib=e=>e&&(e.host||ib(e.parentNode)),c5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=ib(n);return e.contains(r)?r:null}).filter(n=>n!=null);function d5(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=c5(t,e),s=new Set,l=new Set(o),u=[];ds[i]||(ds[i]=new WeakMap);const c=ds[i];o.forEach(d),f(t),s.clear();function d(h){!h||s.has(h)||(s.add(h),h.parentNode&&d(h.parentNode))}function f(h){!h||l.has(h)||[].forEach.call(h.children,g=>{if(Or(g)!=="script")if(s.has(g))f(g);else{const m=a?g.getAttribute(a):null,p=m!==null&&m!=="false",b=(ki.get(g)||0)+1,v=(c.get(g)||0)+1;ki.set(g,b),c.set(g,v),u.push(g),b===1&&p&&cs.add(g),v===1&&g.setAttribute(i,""),!p&&a&&g.setAttribute(a,"true")}})}return Hu++,()=>{u.forEach(h=>{const g=(ki.get(h)||0)-1,m=(c.get(h)||0)-1;ki.set(h,g),c.set(h,m),g||(!cs.has(h)&&a&&h.removeAttribute(a),cs.delete(h)),m||h.removeAttribute(i)}),Hu--,Hu||(ki=new WeakMap,ki=new WeakMap,cs=new WeakSet,ds={})}}function ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=xn(e[0]).body;return d5(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const uo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ab(e,t){const n=cu(e,uo());t==="prev"&&n.reverse();const r=n.indexOf(Qr(xn(e)));return n.slice(r+1)[0]}function ob(){return ab(document.body,"next")}function sb(){return ab(document.body,"prev")}function Ya(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!qt(n,r)}function f5(e){cu(e,uo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function h5(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 Ud={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 g5;function rg(e){e.key==="Tab"&&(e.target,clearTimeout(g5))}const wl=L.forwardRef(function(t,n){const[r,i]=L.useState();Gt(()=>(Hw()&&i("button"),document.addEventListener("keydown",rg),()=>{document.removeEventListener("keydown",rg)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[lo("focus-guard")]:"",style:Ud};return L.createElement("span",Cl({},t,a))}),lb=L.createContext(null),ig=lo("portal");function m5(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Xd(),i=ub(),[a,o]=L.useState(null),s=L.useRef(null);return Gt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Gt(()=>{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(ig,""),l.appendChild(u),s.current=u,o(u)},[t,r]),Gt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(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(ig,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function p5(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=m5({id:n,root:r}),[o,s]=L.useState(null),l=L.useRef(null),u=L.useRef(null),c=L.useRef(null),d=L.useRef(null),f=!!o&&!o.modal&&o.open&&i&&!!(r||a);return L.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function h(g){a&&Ya(g)&&(g.type==="focusin"?h5:f5)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,i,o==null?void 0:o.modal]),L.createElement(lb.Provider,{value:L.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},f&&a&&L.createElement(wl,{"data-type":"outside",ref:l,onFocus:h=>{if(Ya(h,a)){var g;(g=c.current)==null||g.focus()}else{const m=sb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),f&&a&&L.createElement("span",{"aria-owns":a.id,style:Ud}),a&&w0.createPortal(t,a),f&&a&&L.createElement(wl,{"data-type":"outside",ref:u,onFocus:h=>{if(Ya(h,a)){var g;(g=d.current)==null||g.focus()}else{const m=ob()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const ub=()=>L.useContext(lb),ag=20;let ei=[];function Wu(e){ei=ei.filter(n=>n.isConnected);let t=e;if(!(!t||Or(t)==="body")){if(!xD(t,uo())){const n=cu(t,uo())[0];n&&(t=n)}ei.push(t),ei.length>ag&&(ei=ei.slice(-ag))}}function og(){return ei.slice().reverse().find(e=>e.isConnected)}const b5=L.forwardRef(function(t,n){return L.createElement("button",Cl({},t,{type:"button",ref:n,tabIndex:-1,style:Ud}))});function v5(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:f,refs:h,nodeId:g,onOpenChange:m,events:p,dataRef:b,floatingId:v,elements:{domReference:y,floating:w}}=t,C=typeof o=="number"&&o<0,S=Xw(y)&&C,I=u5()?a:!0,D=oi(i),$=oi(o),R=oi(s),_=Yd(),P=ub(),M=L.useRef(null),A=L.useRef(null),B=L.useRef(!1),T=L.useRef(!1),F=L.useRef(-1),V=P!=null,j=w==null?void 0:w.firstElementChild,N=(j==null?void 0:j.id)===v?j:w,Z=Dr(function(H){return H===void 0&&(H=N),H?cu(H,uo()):[]}),z=Dr(H=>{const O=Z(H);return D.current.map(G=>y&&G==="reference"?y:N&&G==="floating"?N:O).filter(Boolean).flat()});L.useEffect(()=>{if(r||!u)return;function H(G){if(G.key==="Tab"){qt(N,Qr(xn(N)))&&Z().length===0&&!S&&Lu(G);const J=z(),re=ri(G);D.current[0]==="reference"&&re===y&&(Lu(G),G.shiftKey?Gr(J[J.length-1]):Gr(J[1])),D.current[1]==="floating"&&re===N&&G.shiftKey&&(Lu(G),Gr(J[0]))}}const O=xn(N);return O.addEventListener("keydown",H),()=>{O.removeEventListener("keydown",H)}},[r,y,N,u,D,S,Z,z]),L.useEffect(()=>{if(r||!w)return;function H(O){const G=ri(O),re=Z().indexOf(G);re!==-1&&(F.current=re)}return w.addEventListener("focusin",H),()=>{w.removeEventListener("focusin",H)}},[r,w,Z]),L.useEffect(()=>{if(r||!d)return;function H(){T.current=!0,setTimeout(()=>{T.current=!1})}function O(G){const J=G.relatedTarget;queueMicrotask(()=>{const re=!(qt(y,J)||qt(w,J)||qt(J,w)||qt(P==null?void 0:P.portalNode,J)||J!=null&&J.hasAttribute(lo("focus-guard"))||_&&(Xa(_.nodesRef.current,g).find(fe=>{var le,X;return qt((le=fe.context)==null?void 0:le.elements.floating,J)||qt((X=fe.context)==null?void 0:X.elements.domReference,J)})||l5(_.nodesRef.current,g).find(fe=>{var le,X;return((le=fe.context)==null?void 0:le.elements.floating)===J||((X=fe.context)==null?void 0:X.elements.domReference)===J})));if(l&&re&&Qr(xn(N))===xn(N).body){vt(N)&&(N==null||N.focus());const fe=F.current,le=Z(),X=le[fe]||le[le.length-1]||N;vt(X)&&X.focus()}(S||!u)&&J&&re&&!T.current&&J!==og()&&(B.current=!0,m(!1,G))})}if(w&&vt(y))return y.addEventListener("focusout",O),y.addEventListener("pointerdown",H),w.addEventListener("focusout",O),()=>{y.removeEventListener("focusout",O),y.removeEventListener("pointerdown",H),w.removeEventListener("focusout",O)}},[r,y,w,N,u,g,_,P,m,d,l,Z,S]),L.useEffect(()=>{var H;if(r)return;const O=Array.from((P==null||(H=P.portalNode)==null?void 0:H.querySelectorAll("["+lo("portal")+"]"))||[]);if(w){const G=[w,...O,M.current,A.current,D.current.includes("reference")||S?y:null].filter(re=>re!=null),J=u||S?ng(G,I,!I):ng(G);return()=>{J()}}},[r,y,w,u,D,P,S,I]),Gt(()=>{if(r||!vt(N))return;const H=xn(N),O=Qr(H);queueMicrotask(()=>{const G=z(N),J=$.current,re=(typeof J=="number"?G[J]:J.current)||N,fe=qt(N,O);!C&&!fe&&f&&Gr(re,{preventScroll:re===N})})},[r,f,N,C,z,$]),Gt(()=>{if(r||!N)return;let H=!1;const O=xn(N),G=Qr(O);let re=b.current.openEvent;Wu(G);function fe(le){let{open:X,reason:Ae,event:Me,nested:Xe}=le;X&&(re=Me),Ae==="escape-key"&&h.domReference.current&&Wu(h.domReference.current),Ae==="hover"&&Me.type==="mouseleave"&&(B.current=!0),Ae==="outside-press"&&(Xe?(B.current=!1,H=!0):B.current=!(Lw(Me)||jw(Me)))}return p.on("openchange",fe),()=>{p.off("openchange",fe);const le=Qr(O),X=qt(w,le)||_&&Xa(_.nodesRef.current,g).some(Xe=>{var et;return qt((et=Xe.context)==null?void 0:et.elements.floating,le)});(X||re&&["click","mousedown"].includes(re.type))&&h.domReference.current&&Wu(h.domReference.current);const Me=og();R.current&&!B.current&&vt(Me)&&(!(Me!==le&&le!==O.body)||X)&&Gr(Me,{cancelPrevious:!1,preventScroll:H})}},[r,w,N,R,b,h,p,_,g]),Gt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:d,open:f,onOpenChange:m,refs:h}),()=>{P.setFocusManagerState(null)}},[r,P,u,f,m,h,d]),Gt(()=>{if(r||!N||typeof MutationObserver!="function"||C)return;const H=()=>{const G=N.getAttribute("tabindex"),J=Z(),re=Qr(xn(w)),fe=J.indexOf(re);fe!==-1&&(F.current=fe),D.current.includes("floating")||re!==h.domReference.current&&J.length===0?G!=="0"&&N.setAttribute("tabindex","0"):G!=="-1"&&N.setAttribute("tabindex","-1")};H();const O=new MutationObserver(H);return O.observe(N,{childList:!0,subtree:!0,attributes:!0}),()=>{O.disconnect()}},[r,w,N,h,D,Z,C]);function q(H){return r||!c||!u?null:L.createElement(b5,{ref:H==="start"?M:A,onClick:O=>m(!1,O.nativeEvent)},typeof c=="string"?c:"Dismiss")}const W=!r&&I&&(u?!S:!0)&&(V||u);return L.createElement(L.Fragment,null,W&&L.createElement(wl,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:H=>{if(u){const G=z();Gr(i[0]==="reference"?G[0]:G[G.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(B.current=!1,Ya(H,P.portalNode)){const G=ob()||y;G==null||G.focus()}else{var O;(O=P.beforeOutsideRef.current)==null||O.focus()}}}),!S&&q("start"),n,q("end"),W&&L.createElement(wl,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:H=>{if(u)Gr(z()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(B.current=!0),Ya(H,P.portalNode)){const G=sb()||y;G==null||G.focus()}else{var O;(O=P.afterOutsideRef.current)==null||O.focus()}}}))}function sg(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function lg(e){return L0(e)}function y5(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=L.useRef(),f=L.useRef(!1),h=L.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Wh(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}Wh(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||sg(g))&&(g.key===" "&&!lg(a)&&(g.preventDefault(),f.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||sg(g)||lg(a)||g.key===" "&&f.current&&(f.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return L.useMemo(()=>o?{reference:h}:{},[o,h])}const x5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},C5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ug=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 w5(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:f=!1,bubbles:h,capture:g}=t,m=Yd(),p=Dr(typeof l=="function"?l:()=>!1),b=typeof l=="function"?p:l,v=L.useRef(!1),y=L.useRef(!1),{escapeKey:w,outsidePress:C}=ug(h),{escapeKey:S,outsidePress:I}=ug(g),D=Dr(A=>{var B;if(!n||!o||!s||A.key!=="Escape")return;const T=(B=a.current.floatingContext)==null?void 0:B.nodeId,F=m?Xa(m.nodesRef.current,T):[];if(!w&&(A.stopPropagation(),F.length>0)){let V=!0;if(F.forEach(j=>{var N;if((N=j.context)!=null&&N.open&&!j.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,zw(A)?A.nativeEvent:A,"escape-key")}),$=Dr(A=>{var B;const T=()=>{var F;D(A),(F=ri(A))==null||F.removeEventListener("keydown",T)};(B=ri(A))==null||B.addEventListener("keydown",T)}),R=Dr(A=>{var B;const T=v.current;v.current=!1;const F=y.current;if(y.current=!1,u==="click"&&F||T||typeof b=="function"&&!b(A))return;const V=ri(A),j="["+lo("inert")+"]",N=xn(i.floating).querySelectorAll(j);let Z=rt(V)?V:null;for(;Z&&!Pr(Z);){const H=hr(Z);if(Pr(H)||!rt(H))break;Z=H}if(N.length&&rt(V)&&!Gw(V)&&!qt(V,i.floating)&&Array.from(N).every(H=>!qt(Z,H)))return;if(vt(V)&&M){const H=V.clientWidth>0&&V.scrollWidth>V.clientWidth,O=V.clientHeight>0&&V.scrollHeight>V.clientHeight;let G=O&&A.offsetX>V.clientWidth;if(O&&vn(V).direction==="rtl"&&(G=A.offsetX<=V.offsetWidth-V.clientWidth),G||H&&A.offsetY>V.clientHeight)return}const z=(B=a.current.floatingContext)==null?void 0:B.nodeId,q=m&&Xa(m.nodesRef.current,z).some(H=>{var O;return Nu(A,(O=H.context)==null?void 0:O.elements.floating)});if(Nu(A,i.floating)||Nu(A,i.domReference)||q)return;const W=m?Xa(m.nodesRef.current,z):[];if(W.length>0){let H=!0;if(W.forEach(O=>{var G;if((G=O.context)!=null&&G.open&&!O.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,A,"outside-press")}),_=Dr(A=>{var B;const T=()=>{var F;R(A),(F=ri(A))==null||F.removeEventListener(u,T)};(B=ri(A))==null||B.addEventListener(u,T)});L.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=w,a.current.__outsidePressBubbles=C;function A(F){r(!1,F,"ancestor-scroll")}const B=xn(i.floating);s&&B.addEventListener("keydown",S?$:D,S),b&&B.addEventListener(u,I?_:R,I);let T=[];return f&&(rt(i.domReference)&&(T=Ar(i.domReference)),rt(i.floating)&&(T=T.concat(Ar(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(Ar(i.reference.contextElement)))),T=T.filter(F=>{var V;return F!==((V=B.defaultView)==null?void 0:V.visualViewport)}),T.forEach(F=>{F.addEventListener("scroll",A,{passive:!0})}),()=>{s&&B.removeEventListener("keydown",S?$:D,S),b&&B.removeEventListener(u,I?_:R,I),T.forEach(F=>{F.removeEventListener("scroll",A)})}},[a,i,s,b,u,n,r,f,o,w,C,D,S,$,R,I,_]),L.useEffect(()=>{v.current=!1},[b,u]);const P=L.useMemo(()=>({onKeyDown:D,[x5[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[D,r,c,d]),M=L.useMemo(()=>({onKeyDown:D,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[C5[u]]:()=>{v.current=!0}}),[D,u]);return L.useMemo(()=>o?{reference:P,floating:M}:{},[o,P,M])}function D5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Xd(),a=L.useRef({}),[o]=L.useState(()=>a5()),s=rb()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!rt(h)&&i5("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]=L.useState(r.reference),c=Dr((h,g,m)=>{a.current.openEvent=h?g:void 0,o.emit("openchange",{open:h,event:g,reason:m,nested:s}),n==null||n(h,g,m)}),d=L.useMemo(()=>({setPositionReference:u}),[]),f=L.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return L.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:f,events:o,floatingId:i,refs:d}),[t,c,f,o,i,d])}function S5(e){e===void 0&&(e={});const{nodeId:t}=e,n=D5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=L.useState(null),[s,l]=L.useState(null),c=(i==null?void 0:i.reference)||a,d=L.useRef(null),f=Yd();Gt(()=>{c&&(d.current=c)},[c]);const h=YD({...e,elements:{...i,...s&&{reference:s}}}),g=L.useCallback(y=>{const w=rt(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(w),h.refs.setReference(w)},[h.refs]),m=L.useCallback(y=>{(rt(y)||y===null)&&(d.current=y,o(y)),(rt(h.refs.reference.current)||h.refs.reference.current===null||y!==null&&!rt(y))&&h.refs.setReference(y)},[h.refs]),p=L.useMemo(()=>({...h.refs,setReference:m,setPositionReference:g,domReference:d}),[h.refs,m,g]),b=L.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),v=L.useMemo(()=>({...h,...r,refs:p,elements:b,nodeId:t}),[h,p,b,t,r]);return Gt(()=>{r.dataRef.current.floatingContext=v;const y=f==null?void 0:f.nodesRef.current.find(w=>w.id===t);y&&(y.context=v)}),L.useMemo(()=>({...h,context:v,refs:p,elements:b}),[h,p,b,v])}const cg="active",dg="selected";function zu(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[cg]:o,[dg]: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&&[cg,dg].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 f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=r.get(u))==null?void 0:f.map(p=>p(...g)).find(p=>p!==void 0)}}}else o[u]=c}),o),{})}}function E5(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=L.useCallback(s=>zu(s,e,"reference"),t),a=L.useCallback(s=>zu(s,e,"floating"),n),o=L.useCallback(s=>zu(s,e,"item"),r);return L.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const I5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=I5.get(o))!=null?n:o,l=Xd(),c=rb()!=null,d=L.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]),f=L.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),h=L.useCallback(g=>{let{active:m,selected:p}=g;const b={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...b,"aria-selected":m&&p};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,o]);return L.useMemo(()=>a?{reference:d,floating:f,item:h}:{},[a,d,f,h])}const fg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Bi(e,t){return typeof e=="function"?e(t):e}function $5(e,t){const[n,r]=L.useState(e);return e&&!n&&r(!0),L.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function R5(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]=L.useState("unmounted"),u=$5(n,o);return!u&&s==="close"&&l("unmounted"),Gt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function A5(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=L.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,f=(c?o:o.close)||0,[h,g]=L.useState(()=>({...Bi(a,u),...Bi(n,u)})),{isMounted:m,status:p}=R5(e,{duration:o}),b=oi(n),v=oi(r),y=oi(i),w=oi(a);return Gt(()=>{const C=Bi(b.current,u),S=Bi(y.current,u),I=Bi(w.current,u),D=Bi(v.current,u)||Object.keys(C).reduce(($,R)=>($[R]="",$),{});if(p==="initial"&&g($=>({transitionProperty:$.transitionProperty,...I,...C})),p==="open"&&g({transitionProperty:Object.keys(D).map(fg).join(","),transitionDuration:d+"ms",...I,...D}),p==="close"){const $=S||C;g({transitionProperty:Object.keys($).map(fg).join(","),transitionDuration:f+"ms",...I,...$})}},[f,y,b,v,w,d,p,u]),{isMounted:m,styles:h}}const F5="_popover_7cinv_1",P5={popover:F5},Ei=x.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:f={},floatingOptions:h={},onClose:g=()=>{},...m}=e,[p,b]=x.useState(!1),{refs:v,floatingStyles:y,context:w}=S5({open:p,onOpenChange:A=>{b(A),A||g()},middleware:[UD(i),s?qD(u):KD(l),JD()],whileElementsMounted:eb,...h}),C=y5(w),S=w5(w),I=_5(w),{getReferenceProps:D,getFloatingProps:$}=E5([C,S,I]),{styles:R,isMounted:_}=A5(w),P=A=>{v.setReference(A.currentTarget),b(B=>!B),p&&g()};x.useEffect(()=>{a&&o?P({currentTarget:o}):a||b(!1)},[a,o]),x.useImperativeHandle(t,()=>({show:p,setShow:b,handlerShow:P,getReferenceProps:D}),[p]);const M=()=>{let A={...y,...R,...f,zIndex:c};return d&&(A={...A,width:d}),A};return E.jsx(E.Fragment,{children:_&&p&&E.jsx(p5,{children:E.jsx(v5,{context:w,modal:!1,children:E.jsx("div",{ref:v.setFloating,style:M(),...$(),className:`${P5.popover} ${r??""}`,...m,children:n})})})})});Ei.displayName="Popover";const T5="_input_17tnz_7",M5="_label_17tnz_35",k5="_error_17tnz_42",Jt={"container-large":"_container-large_17tnz_1","container-input":"_container-input_17tnz_4",input:T5,label:M5,error:k5,"isset-right-icon":"_isset-right-icon_17tnz_53","isset-left-icon":"_isset-left-icon_17tnz_56","start-icon":"_start-icon_17tnz_63","end-icon":"_end-icon_17tnz_66","label-error":"_label-error_17tnz_72","container-medium":"_container-medium_17tnz_77"},cb=x.forwardRef((e,t)=>{var y;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:f,error:h,sizeInput:g="large",...m}=e,p={size:{large:Jt["container-large"],medium:Jt["container-medium"]},variant:{}},b=()=>typeof d=="function"||x.isValidElement(d),v=()=>typeof f=="function"||x.isValidElement(f);return E.jsxs("div",{className:`${Jt.container} ${(y=p.size)==null?void 0:y[g]} ${r??""}`,children:[E.jsxs("div",{className:Jt["container-input"],children:[E.jsx("input",{id:l??s,className:`${Jt.input} ${h?Jt.error:""}
|
44
|
+
*/var nD=["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])"],bl=nD.join(","),G0=typeof Element>"u",ca=G0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vl=!G0&&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},yl=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},rD=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},iD=function(t,n,r){if(yl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(bl));return n&&ca.call(t,bl)&&i.unshift(t),i=i.filter(r),i},aD=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!yl(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=ca.call(o,bl);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!yl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&f){var h=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return i},Z0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},X0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||rD(t))&&!Z0(t)?0:t.tabIndex},oD=function(t,n){var r=X0(t);return r<0&&n&&!Z0(t)?0:r},sD=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Y0=function(t){return t.tagName==="INPUT"},lD=function(t){return Y0(t)&&t.type==="hidden"},uD=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cD=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dD=function(t){if(!t.name)return!0;var n=t.form||vl(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=cD(i,t.form);return!a||a===t},fD=function(t){return Y0(t)&&t.type==="radio"},hD=function(t){return fD(t)&&!dD(t)},gD=function(t){var n,r=t&&vl(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=vl(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},Xh=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},mD=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ca.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(ca.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=vl(t);if(l&&!l.shadowRoot&&i(l)===!0)return Xh(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(gD(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Xh(t);return!1},pD=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 ca.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},bD=function(t,n){return!(n.disabled||yl(n)||lD(n)||mD(n,t)||uD(n)||pD(n))},jc=function(t,n){return!(hD(n)||X0(n)<0||!bD(t,n))},vD=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},yD=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=oD(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(sD).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},cu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=aD([t],n.includeContainer,{filter:jc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vD}):r=iD(t,n.includeContainer,jc.bind(null,n)),yD(r)},xD=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ca.call(t,bl)===!1?!1:jc(n,t)};function Yh(e,t,n){let{reference:r,floating:i}=e;const a=ua(t),o=W0(t),s=H0(o),l=gr(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(dr(t)){case"start":h[o]-=f*(n&&u?-1:1);break;case"end":h[o]+=f*(n&&u?-1:1);break}return h}const CD=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}=Yh(u,r,l),f=r,h={},g=0;for(let m=0;m<s.length;m++){const{name:p,fn:b}=s[m],{x:v,y,data:D,reset:C}=await b({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,d=y??d,h={...h,[p]:{...h[p],...D}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:d}=Yh(u,f,l)),m=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function Gd(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:f=!1,padding:h=0}=Ho(t,e),g=tD(h),p=s[f?d==="floating"?"reference":"floating":d],b=pl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(p)))==null||n?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),D=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},C=pl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-C.top+g.top)/D.y,bottom:(C.bottom-b.bottom+g.bottom)/D.y,left:(b.left-C.left+g.left)/D.x,right:(C.right-b.right+g.right)/D.x}}function wD(e,t,n){return(e?[...n.filter(i=>dr(i)===e),...n.filter(i=>dr(i)!==e)]:n.filter(i=>gr(i)===i)).filter(i=>e?dr(i)===e||(t?gl(i)!==i:!1):!0)}const DD=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:f=Gh,autoAlignment:h=!0,...g}=Ho(e,t),m=d!==void 0||f===Gh?wD(d||null,h,f):f,p=await Gd(t,g),b=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[b];if(v==null)return{};const y=z0(v,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const D=[p[gr(v)],p[y[0]],p[y[1]]],C=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:D}],E=m[b+1];if(E)return{data:{index:b+1,overflows:C},reset:{placement:E}};const I=C.map(R=>{const _=dr(R.placement);return[R.placement,_&&c?R.overflows.slice(0,2).reduce((P,M)=>P+M,0):R.overflows[0],R.overflows]}).sort((R,_)=>R[1]-_[1]),$=((i=I.filter(R=>R[2].slice(0,dr(R[0])?2:3).every(_=>_<=0))[0])==null?void 0:i[0])||I[0][0];return $!==s?{data:{index:b+1,overflows:C},reset:{placement:$}}:{}}}},SD=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:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...p}=Ho(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=gr(i),v=ua(s),y=gr(s)===s,D=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(y||!m?[ml(s)]:Kw(s)),E=g!=="none";!f&&E&&C.push(...Qw(s,m,g,D));const I=[s,...C],w=await Gd(t,p),$=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&$.push(w[b]),d){const A=z0(i,o,D);$.push(w[A[0]],w[A[1]])}if(R=[...R,{placement:i,overflows:$}],!$.every(A=>A<=0)){var _,P;const A=(((_=a.flip)==null?void 0:_.index)||0)+1,B=I[A];if(B)return{data:{index:A,overflows:R},reset:{placement:B}};let T=(P=R.filter(F=>F.overflows[0]<=0).sort((F,V)=>F.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!T)switch(h){case"bestFit":{var M;const F=(M=R.filter(V=>{if(E){const j=ua(V.placement);return j===v||j==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(j=>j>0).reduce((j,N)=>j+N,0)]).sort((V,j)=>V[1]-j[1])[0])==null?void 0:M[0];F&&(T=F);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function ED(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=gr(n),s=dr(n),l=ua(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=Ho(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const ID=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 ED(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}}}}},_D=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:p=>{let{x:b,y:v}=p;return{x:b,y:v}}},...l}=Ho(e,t),u={x:n,y:r},c=await Gd(t,l),d=ua(gr(i)),f=j0(d);let h=u[f],g=u[d];if(a){const p=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=h+c[p],y=h-c[b];h=Zh(v,h,y)}if(o){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=g+c[p],y=g-c[b];g=Zh(v,g,y)}const m=s.fn({...t,[f]:h,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function U0(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=hl(n)!==a||hl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zd(e){return rt(e)?e:e.contextElement}function qi(e){const t=Zd(e);if(!vt(t))return Tr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=U0(t);let o=(a?hl(n.width):n.width)/r,s=(a?hl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const $D=Tr(0);function J0(e){const t=nn(e);return!zd()||!t.visualViewport?$D:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nn(e)?!1:t}function pi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Zd(e);let o=Tr(1);t&&(r?rt(r)&&(o=qi(r)):o=qi(e));const s=RD(a,n,r)?J0(a):Tr(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 f=nn(a),h=r&&rt(r)?nn(r):r;let g=f,m=g.frameElement;for(;m&&r&&h!==g;){const p=qi(m),b=m.getBoundingClientRect(),v=vn(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*p.x,D=b.top+(m.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=y,u+=D,g=nn(m),m=g.frameElement}}return pl({width:c,height:d,x:l,y:u})}function AD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=mr(r),s=t?lu(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Tr(1);const c=Tr(0),d=vt(r);if((d||!d&&!a)&&((Or(r)!=="body"||jo(o))&&(l=uu(r)),vt(r))){const f=pi(r);u=qi(r),c.x=f.x+r.clientLeft,c.y=f.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 FD(e){return Array.from(e.getClientRects())}function K0(e){return pi(mr(e)).left+uu(e).scrollLeft}function PD(e){const t=mr(e),n=uu(e),r=e.ownerDocument.body,i=fi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+K0(e);const s=-n.scrollTop;return vn(r).direction==="rtl"&&(o+=fi(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function TD(e,t){const n=nn(e),r=mr(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=zd();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function MD(e,t){const n=pi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vt(e)?qi(e):Tr(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 Uh(e,t,n){let r;if(t==="viewport")r=TD(e,n);else if(t==="document")r=PD(mr(e));else if(rt(t))r=MD(t,n);else{const i=J0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return pl(r)}function q0(e,t){const n=hr(e);return n===t||!rt(n)||Pr(n)?!1:vn(n).position==="fixed"||q0(n,t)}function kD(e,t){const n=t.get(e);if(n)return n;let r=Ar(e,[],!1).filter(s=>rt(s)&&Or(s)!=="body"),i=null;const a=vn(e).position==="fixed";let o=a?hr(e):e;for(;rt(o)&&!Pr(o);){const s=vn(o),l=Wd(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||jo(o)&&!l&&q0(e,o))?r=r.filter(c=>c!==o):i=s,o=hr(o)}return t.set(e,r),r}function BD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lu(t)?[]:kD(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Uh(t,c,i);return u.top=fi(d.top,u.top),u.right=fl(d.right,u.right),u.bottom=fl(d.bottom,u.bottom),u.left=fi(d.left,u.left),u},Uh(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function VD(e){const{width:t,height:n}=U0(e);return{width:t,height:n}}function OD(e,t,n){const r=vt(t),i=mr(t),a=n==="fixed",o=pi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Tr(0);if(r||!r&&!a)if((Or(t)!=="body"||jo(i))&&(s=uu(t)),r){const d=pi(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=K0(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 ju(e){return vn(e).position==="static"}function Jh(e,t){return!vt(e)||vn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Q0(e,t){const n=nn(e);if(lu(e))return n;if(!vt(e)){let i=hr(e);for(;i&&!Pr(i);){if(rt(i)&&!ju(i))return i;i=hr(i)}return n}let r=Jh(e,t);for(;r&&Vw(r)&&ju(r);)r=Jh(r,t);return r&&Pr(r)&&ju(r)&&!Wd(r)?n:r||Ow(e)||n}const ND=async function(e){const t=this.getOffsetParent||Q0,n=this.getDimensions,r=await n(e.floating);return{reference:OD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LD(e){return vn(e).direction==="rtl"}const jD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:mr,getClippingRect:BD,getOffsetParent:Q0,getElementRects:ND,getClientRects:FD,getDimensions:VD,getScale:qi,isElement:rt,isRTL:LD};function HD(e,t){let n=null,r;const i=mr(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:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h=us(c),g=us(i.clientWidth-(u+d)),m=us(i.clientHeight-(c+f)),p=us(u),v={rootMargin:-h+"px "+-g+"px "+-m+"px "+-p+"px",threshold:fi(0,fl(1,l))||1};let y=!0;function D(C){const E=C[0].intersectionRatio;if(E!==l){if(!y)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(D,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,v)}n.observe(e)}return o(!0),a}function eb(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=Zd(e),c=i||a?[...u?Ar(u):[],...Ar(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=u&&s?HD(u,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,m=l?pi(e):null;l&&p();function p(){const b=pi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const WD=ID,zD=DD,GD=_D,ZD=SD,XD=(e,t,n)=>{const r=new Map,i={platform:jD,...n},a={...i.platform,_c:r};return CD(e,t,{...i,platform:a})};var Zs=typeof document<"u"?x.useLayoutEffect:x.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 tb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kh(e,t){const n=tb(e);return Math.round(t*n)/n}function qh(e){const t=L.useRef(e);return Zs(()=>{t.current=e}),t}function YD(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]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=L.useState(r);xl(f,r)||h(r);const[g,m]=L.useState(null),[p,b]=L.useState(null),v=L.useCallback(F=>{F!==E.current&&(E.current=F,m(F))},[]),y=L.useCallback(F=>{F!==I.current&&(I.current=F,b(F))},[]),D=a||g,C=o||p,E=L.useRef(null),I=L.useRef(null),w=L.useRef(c),$=l!=null,R=qh(l),_=qh(i),P=L.useCallback(()=>{if(!E.current||!I.current)return;const F={placement:t,strategy:n,middleware:f};_.current&&(F.platform=_.current),XD(E.current,I.current,F).then(V=>{const j={...V,isPositioned:!0};M.current&&!xl(w.current,j)&&(w.current=j,w0.flushSync(()=>{d(j)}))})},[f,t,n,_]);Zs(()=>{u===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const M=L.useRef(!1);Zs(()=>(M.current=!0,()=>{M.current=!1}),[]),Zs(()=>{if(D&&(E.current=D),C&&(I.current=C),D&&C){if(R.current)return R.current(D,C,P);P()}},[D,C,P,R,$]);const A=L.useMemo(()=>({reference:E,floating:I,setReference:v,setFloating:y}),[v,y]),B=L.useMemo(()=>({reference:D,floating:C}),[D,C]),T=L.useMemo(()=>{const F={position:n,left:0,top:0};if(!B.floating)return F;const V=Kh(B.floating,c.x),j=Kh(B.floating,c.y);return s?{...F,transform:"translate("+V+"px, "+j+"px)",...tb(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:j}},[n,s,B.floating,c.x,c.y]);return L.useMemo(()=>({...c,update:P,refs:A,elements:B,floatingStyles:T}),[c,P,A,B,T])}const UD=(e,t)=>({...WD(e),options:[e,t]}),JD=(e,t)=>({...GD(e),options:[e,t]}),KD=(e,t)=>({...ZD(e),options:[e,t]}),qD=(e,t)=>({...zD(e),options:[e,t]}),nb={...L},QD=nb.useInsertionEffect,e5=QD||(e=>e());function Dr(e){const t=L.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return e5(()=>{t.current=e}),L.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 Qh=0;function Gr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Qh);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Qh=requestAnimationFrame(a)}var Gt=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Cl(){return Cl=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},Cl.apply(this,arguments)}let eg=!1,t5=0;const tg=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+t5++;function n5(){const[e,t]=L.useState(()=>eg?tg():void 0);return Gt(()=>{e==null&&t(tg())},[]),L.useEffect(()=>{eg=!0},[]),e}const r5=nb.useId,Xd=r5||n5;let Hc;process.env.NODE_ENV!=="production"&&(Hc=new Set);function i5(){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=Hc)!=null&&e.has(i))){var a;(a=Hc)==null||a.add(i),console.error(i)}}function a5(){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 o5=L.createContext(null),s5=L.createContext(null),rb=()=>{var e;return((e=L.useContext(o5))==null?void 0:e.id)||null},Yd=()=>L.useContext(s5);function lo(e){return"data-floating-ui-"+e}function oi(e){const t=x.useRef(e);return Gt(()=>{t.current=e}),t}function l5(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 Xa(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 ki=new WeakMap,cs=new WeakSet,ds={},Hu=0;const u5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,ib=e=>e&&(e.host||ib(e.parentNode)),c5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=ib(n);return e.contains(r)?r:null}).filter(n=>n!=null);function d5(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=c5(t,e),s=new Set,l=new Set(o),u=[];ds[i]||(ds[i]=new WeakMap);const c=ds[i];o.forEach(d),f(t),s.clear();function d(h){!h||s.has(h)||(s.add(h),h.parentNode&&d(h.parentNode))}function f(h){!h||l.has(h)||[].forEach.call(h.children,g=>{if(Or(g)!=="script")if(s.has(g))f(g);else{const m=a?g.getAttribute(a):null,p=m!==null&&m!=="false",b=(ki.get(g)||0)+1,v=(c.get(g)||0)+1;ki.set(g,b),c.set(g,v),u.push(g),b===1&&p&&cs.add(g),v===1&&g.setAttribute(i,""),!p&&a&&g.setAttribute(a,"true")}})}return Hu++,()=>{u.forEach(h=>{const g=(ki.get(h)||0)-1,m=(c.get(h)||0)-1;ki.set(h,g),c.set(h,m),g||(!cs.has(h)&&a&&h.removeAttribute(a),cs.delete(h)),m||h.removeAttribute(i)}),Hu--,Hu||(ki=new WeakMap,ki=new WeakMap,cs=new WeakSet,ds={})}}function ng(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=xn(e[0]).body;return d5(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const uo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ab(e,t){const n=cu(e,uo());t==="prev"&&n.reverse();const r=n.indexOf(Qr(xn(e)));return n.slice(r+1)[0]}function ob(){return ab(document.body,"next")}function sb(){return ab(document.body,"prev")}function Ya(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!qt(n,r)}function f5(e){cu(e,uo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function h5(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 Ud={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 g5;function rg(e){e.key==="Tab"&&(e.target,clearTimeout(g5))}const wl=L.forwardRef(function(t,n){const[r,i]=L.useState();Gt(()=>(Hw()&&i("button"),document.addEventListener("keydown",rg),()=>{document.removeEventListener("keydown",rg)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[lo("focus-guard")]:"",style:Ud};return L.createElement("span",Cl({},t,a))}),lb=L.createContext(null),ig=lo("portal");function m5(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Xd(),i=ub(),[a,o]=L.useState(null),s=L.useRef(null);return Gt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),Gt(()=>{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(ig,""),l.appendChild(u),s.current=u,o(u)},[t,r]),Gt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(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(ig,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function p5(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=m5({id:n,root:r}),[o,s]=L.useState(null),l=L.useRef(null),u=L.useRef(null),c=L.useRef(null),d=L.useRef(null),f=!!o&&!o.modal&&o.open&&i&&!!(r||a);return L.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function h(g){a&&Ya(g)&&(g.type==="focusin"?h5:f5)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,i,o==null?void 0:o.modal]),L.createElement(lb.Provider,{value:L.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},f&&a&&L.createElement(wl,{"data-type":"outside",ref:l,onFocus:h=>{if(Ya(h,a)){var g;(g=c.current)==null||g.focus()}else{const m=sb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),f&&a&&L.createElement("span",{"aria-owns":a.id,style:Ud}),a&&w0.createPortal(t,a),f&&a&&L.createElement(wl,{"data-type":"outside",ref:u,onFocus:h=>{if(Ya(h,a)){var g;(g=d.current)==null||g.focus()}else{const m=ob()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const ub=()=>L.useContext(lb),ag=20;let ei=[];function Wu(e){ei=ei.filter(n=>n.isConnected);let t=e;if(!(!t||Or(t)==="body")){if(!xD(t,uo())){const n=cu(t,uo())[0];n&&(t=n)}ei.push(t),ei.length>ag&&(ei=ei.slice(-ag))}}function og(){return ei.slice().reverse().find(e=>e.isConnected)}const b5=L.forwardRef(function(t,n){return L.createElement("button",Cl({},t,{type:"button",ref:n,tabIndex:-1,style:Ud}))});function v5(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:f,refs:h,nodeId:g,onOpenChange:m,events:p,dataRef:b,floatingId:v,elements:{domReference:y,floating:D}}=t,C=typeof o=="number"&&o<0,E=Xw(y)&&C,I=u5()?a:!0,w=oi(i),$=oi(o),R=oi(s),_=Yd(),P=ub(),M=L.useRef(null),A=L.useRef(null),B=L.useRef(!1),T=L.useRef(!1),F=L.useRef(-1),V=P!=null,j=D==null?void 0:D.firstElementChild,N=(j==null?void 0:j.id)===v?j:D,Z=Dr(function(H){return H===void 0&&(H=N),H?cu(H,uo()):[]}),z=Dr(H=>{const O=Z(H);return w.current.map(G=>y&&G==="reference"?y:N&&G==="floating"?N:O).filter(Boolean).flat()});L.useEffect(()=>{if(r||!u)return;function H(G){if(G.key==="Tab"){qt(N,Qr(xn(N)))&&Z().length===0&&!E&&Lu(G);const J=z(),re=ri(G);w.current[0]==="reference"&&re===y&&(Lu(G),G.shiftKey?Gr(J[J.length-1]):Gr(J[1])),w.current[1]==="floating"&&re===N&&G.shiftKey&&(Lu(G),Gr(J[0]))}}const O=xn(N);return O.addEventListener("keydown",H),()=>{O.removeEventListener("keydown",H)}},[r,y,N,u,w,E,Z,z]),L.useEffect(()=>{if(r||!D)return;function H(O){const G=ri(O),re=Z().indexOf(G);re!==-1&&(F.current=re)}return D.addEventListener("focusin",H),()=>{D.removeEventListener("focusin",H)}},[r,D,Z]),L.useEffect(()=>{if(r||!d)return;function H(){T.current=!0,setTimeout(()=>{T.current=!1})}function O(G){const J=G.relatedTarget;queueMicrotask(()=>{const re=!(qt(y,J)||qt(D,J)||qt(J,D)||qt(P==null?void 0:P.portalNode,J)||J!=null&&J.hasAttribute(lo("focus-guard"))||_&&(Xa(_.nodesRef.current,g).find(fe=>{var le,X;return qt((le=fe.context)==null?void 0:le.elements.floating,J)||qt((X=fe.context)==null?void 0:X.elements.domReference,J)})||l5(_.nodesRef.current,g).find(fe=>{var le,X;return((le=fe.context)==null?void 0:le.elements.floating)===J||((X=fe.context)==null?void 0:X.elements.domReference)===J})));if(l&&re&&Qr(xn(N))===xn(N).body){vt(N)&&(N==null||N.focus());const fe=F.current,le=Z(),X=le[fe]||le[le.length-1]||N;vt(X)&&X.focus()}(E||!u)&&J&&re&&!T.current&&J!==og()&&(B.current=!0,m(!1,G))})}if(D&&vt(y))return y.addEventListener("focusout",O),y.addEventListener("pointerdown",H),D.addEventListener("focusout",O),()=>{y.removeEventListener("focusout",O),y.removeEventListener("pointerdown",H),D.removeEventListener("focusout",O)}},[r,y,D,N,u,g,_,P,m,d,l,Z,E]),L.useEffect(()=>{var H;if(r)return;const O=Array.from((P==null||(H=P.portalNode)==null?void 0:H.querySelectorAll("["+lo("portal")+"]"))||[]);if(D){const G=[D,...O,M.current,A.current,w.current.includes("reference")||E?y:null].filter(re=>re!=null),J=u||E?ng(G,I,!I):ng(G);return()=>{J()}}},[r,y,D,u,w,P,E,I]),Gt(()=>{if(r||!vt(N))return;const H=xn(N),O=Qr(H);queueMicrotask(()=>{const G=z(N),J=$.current,re=(typeof J=="number"?G[J]:J.current)||N,fe=qt(N,O);!C&&!fe&&f&&Gr(re,{preventScroll:re===N})})},[r,f,N,C,z,$]),Gt(()=>{if(r||!N)return;let H=!1;const O=xn(N),G=Qr(O);let re=b.current.openEvent;Wu(G);function fe(le){let{open:X,reason:Ae,event:Me,nested:Xe}=le;X&&(re=Me),Ae==="escape-key"&&h.domReference.current&&Wu(h.domReference.current),Ae==="hover"&&Me.type==="mouseleave"&&(B.current=!0),Ae==="outside-press"&&(Xe?(B.current=!1,H=!0):B.current=!(Lw(Me)||jw(Me)))}return p.on("openchange",fe),()=>{p.off("openchange",fe);const le=Qr(O),X=qt(D,le)||_&&Xa(_.nodesRef.current,g).some(Xe=>{var et;return qt((et=Xe.context)==null?void 0:et.elements.floating,le)});(X||re&&["click","mousedown"].includes(re.type))&&h.domReference.current&&Wu(h.domReference.current);const Me=og();R.current&&!B.current&&vt(Me)&&(!(Me!==le&&le!==O.body)||X)&&Gr(Me,{cancelPrevious:!1,preventScroll:H})}},[r,D,N,R,b,h,p,_,g]),Gt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:d,open:f,onOpenChange:m,refs:h}),()=>{P.setFocusManagerState(null)}},[r,P,u,f,m,h,d]),Gt(()=>{if(r||!N||typeof MutationObserver!="function"||C)return;const H=()=>{const G=N.getAttribute("tabindex"),J=Z(),re=Qr(xn(D)),fe=J.indexOf(re);fe!==-1&&(F.current=fe),w.current.includes("floating")||re!==h.domReference.current&&J.length===0?G!=="0"&&N.setAttribute("tabindex","0"):G!=="-1"&&N.setAttribute("tabindex","-1")};H();const O=new MutationObserver(H);return O.observe(N,{childList:!0,subtree:!0,attributes:!0}),()=>{O.disconnect()}},[r,D,N,h,w,Z,C]);function q(H){return r||!c||!u?null:L.createElement(b5,{ref:H==="start"?M:A,onClick:O=>m(!1,O.nativeEvent)},typeof c=="string"?c:"Dismiss")}const W=!r&&I&&(u?!E:!0)&&(V||u);return L.createElement(L.Fragment,null,W&&L.createElement(wl,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:H=>{if(u){const G=z();Gr(i[0]==="reference"?G[0]:G[G.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(B.current=!1,Ya(H,P.portalNode)){const G=ob()||y;G==null||G.focus()}else{var O;(O=P.beforeOutsideRef.current)==null||O.focus()}}}),!E&&q("start"),n,q("end"),W&&L.createElement(wl,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:H=>{if(u)Gr(z()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(B.current=!0),Ya(H,P.portalNode)){const G=sb()||y;G==null||G.focus()}else{var O;(O=P.afterOutsideRef.current)==null||O.focus()}}}))}function sg(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function lg(e){return L0(e)}function y5(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=L.useRef(),f=L.useRef(!1),h=L.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Wh(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}Wh(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||sg(g))&&(g.key===" "&&!lg(a)&&(g.preventDefault(),f.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||sg(g)||lg(a)||g.key===" "&&f.current&&(f.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return L.useMemo(()=>o?{reference:h}:{},[o,h])}const x5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},C5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ug=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 w5(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:f=!1,bubbles:h,capture:g}=t,m=Yd(),p=Dr(typeof l=="function"?l:()=>!1),b=typeof l=="function"?p:l,v=L.useRef(!1),y=L.useRef(!1),{escapeKey:D,outsidePress:C}=ug(h),{escapeKey:E,outsidePress:I}=ug(g),w=Dr(A=>{var B;if(!n||!o||!s||A.key!=="Escape")return;const T=(B=a.current.floatingContext)==null?void 0:B.nodeId,F=m?Xa(m.nodesRef.current,T):[];if(!D&&(A.stopPropagation(),F.length>0)){let V=!0;if(F.forEach(j=>{var N;if((N=j.context)!=null&&N.open&&!j.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,zw(A)?A.nativeEvent:A,"escape-key")}),$=Dr(A=>{var B;const T=()=>{var F;w(A),(F=ri(A))==null||F.removeEventListener("keydown",T)};(B=ri(A))==null||B.addEventListener("keydown",T)}),R=Dr(A=>{var B;const T=v.current;v.current=!1;const F=y.current;if(y.current=!1,u==="click"&&F||T||typeof b=="function"&&!b(A))return;const V=ri(A),j="["+lo("inert")+"]",N=xn(i.floating).querySelectorAll(j);let Z=rt(V)?V:null;for(;Z&&!Pr(Z);){const H=hr(Z);if(Pr(H)||!rt(H))break;Z=H}if(N.length&&rt(V)&&!Gw(V)&&!qt(V,i.floating)&&Array.from(N).every(H=>!qt(Z,H)))return;if(vt(V)&&M){const H=V.clientWidth>0&&V.scrollWidth>V.clientWidth,O=V.clientHeight>0&&V.scrollHeight>V.clientHeight;let G=O&&A.offsetX>V.clientWidth;if(O&&vn(V).direction==="rtl"&&(G=A.offsetX<=V.offsetWidth-V.clientWidth),G||H&&A.offsetY>V.clientHeight)return}const z=(B=a.current.floatingContext)==null?void 0:B.nodeId,q=m&&Xa(m.nodesRef.current,z).some(H=>{var O;return Nu(A,(O=H.context)==null?void 0:O.elements.floating)});if(Nu(A,i.floating)||Nu(A,i.domReference)||q)return;const W=m?Xa(m.nodesRef.current,z):[];if(W.length>0){let H=!0;if(W.forEach(O=>{var G;if((G=O.context)!=null&&G.open&&!O.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}r(!1,A,"outside-press")}),_=Dr(A=>{var B;const T=()=>{var F;R(A),(F=ri(A))==null||F.removeEventListener(u,T)};(B=ri(A))==null||B.addEventListener(u,T)});L.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=D,a.current.__outsidePressBubbles=C;function A(F){r(!1,F,"ancestor-scroll")}const B=xn(i.floating);s&&B.addEventListener("keydown",E?$:w,E),b&&B.addEventListener(u,I?_:R,I);let T=[];return f&&(rt(i.domReference)&&(T=Ar(i.domReference)),rt(i.floating)&&(T=T.concat(Ar(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(Ar(i.reference.contextElement)))),T=T.filter(F=>{var V;return F!==((V=B.defaultView)==null?void 0:V.visualViewport)}),T.forEach(F=>{F.addEventListener("scroll",A,{passive:!0})}),()=>{s&&B.removeEventListener("keydown",E?$:w,E),b&&B.removeEventListener(u,I?_:R,I),T.forEach(F=>{F.removeEventListener("scroll",A)})}},[a,i,s,b,u,n,r,f,o,D,C,w,E,$,R,I,_]),L.useEffect(()=>{v.current=!1},[b,u]);const P=L.useMemo(()=>({onKeyDown:w,[x5[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[w,r,c,d]),M=L.useMemo(()=>({onKeyDown:w,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[C5[u]]:()=>{v.current=!0}}),[w,u]);return L.useMemo(()=>o?{reference:P,floating:M}:{},[o,P,M])}function D5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Xd(),a=L.useRef({}),[o]=L.useState(()=>a5()),s=rb()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!rt(h)&&i5("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]=L.useState(r.reference),c=Dr((h,g,m)=>{a.current.openEvent=h?g:void 0,o.emit("openchange",{open:h,event:g,reason:m,nested:s}),n==null||n(h,g,m)}),d=L.useMemo(()=>({setPositionReference:u}),[]),f=L.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return L.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:f,events:o,floatingId:i,refs:d}),[t,c,f,o,i,d])}function S5(e){e===void 0&&(e={});const{nodeId:t}=e,n=D5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=L.useState(null),[s,l]=L.useState(null),c=(i==null?void 0:i.reference)||a,d=L.useRef(null),f=Yd();Gt(()=>{c&&(d.current=c)},[c]);const h=YD({...e,elements:{...i,...s&&{reference:s}}}),g=L.useCallback(y=>{const D=rt(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(D),h.refs.setReference(D)},[h.refs]),m=L.useCallback(y=>{(rt(y)||y===null)&&(d.current=y,o(y)),(rt(h.refs.reference.current)||h.refs.reference.current===null||y!==null&&!rt(y))&&h.refs.setReference(y)},[h.refs]),p=L.useMemo(()=>({...h.refs,setReference:m,setPositionReference:g,domReference:d}),[h.refs,m,g]),b=L.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),v=L.useMemo(()=>({...h,...r,refs:p,elements:b,nodeId:t}),[h,p,b,t,r]);return Gt(()=>{r.dataRef.current.floatingContext=v;const y=f==null?void 0:f.nodesRef.current.find(D=>D.id===t);y&&(y.context=v)}),L.useMemo(()=>({...h,context:v,refs:p,elements:b}),[h,p,b,v])}const cg="active",dg="selected";function zu(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[cg]:o,[dg]: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&&[cg,dg].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 f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=r.get(u))==null?void 0:f.map(p=>p(...g)).find(p=>p!==void 0)}}}else o[u]=c}),o),{})}}function E5(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=L.useCallback(s=>zu(s,e,"reference"),t),a=L.useCallback(s=>zu(s,e,"floating"),n),o=L.useCallback(s=>zu(s,e,"item"),r);return L.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const I5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=I5.get(o))!=null?n:o,l=Xd(),c=rb()!=null,d=L.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]),f=L.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),h=L.useCallback(g=>{let{active:m,selected:p}=g;const b={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...b,"aria-selected":m&&p};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,o]);return L.useMemo(()=>a?{reference:d,floating:f,item:h}:{},[a,d,f,h])}const fg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Bi(e,t){return typeof e=="function"?e(t):e}function $5(e,t){const[n,r]=L.useState(e);return e&&!n&&r(!0),L.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function R5(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]=L.useState("unmounted"),u=$5(n,o);return!u&&s==="close"&&l("unmounted"),Gt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function A5(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=L.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,f=(c?o:o.close)||0,[h,g]=L.useState(()=>({...Bi(a,u),...Bi(n,u)})),{isMounted:m,status:p}=R5(e,{duration:o}),b=oi(n),v=oi(r),y=oi(i),D=oi(a);return Gt(()=>{const C=Bi(b.current,u),E=Bi(y.current,u),I=Bi(D.current,u),w=Bi(v.current,u)||Object.keys(C).reduce(($,R)=>($[R]="",$),{});if(p==="initial"&&g($=>({transitionProperty:$.transitionProperty,...I,...C})),p==="open"&&g({transitionProperty:Object.keys(w).map(fg).join(","),transitionDuration:d+"ms",...I,...w}),p==="close"){const $=E||C;g({transitionProperty:Object.keys($).map(fg).join(","),transitionDuration:f+"ms",...I,...$})}},[f,y,b,v,D,d,p,u]),{isMounted:m,styles:h}}const F5="_popover_7cinv_1",P5={popover:F5},Ei=x.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:f={},floatingOptions:h={},onClose:g=()=>{},...m}=e,[p,b]=x.useState(!1),{refs:v,floatingStyles:y,context:D}=S5({open:p,onOpenChange:A=>{b(A),A||g()},middleware:[UD(i),s?qD(u):KD(l),JD()],whileElementsMounted:eb,...h}),C=y5(D),E=w5(D),I=_5(D),{getReferenceProps:w,getFloatingProps:$}=E5([C,E,I]),{styles:R,isMounted:_}=A5(D),P=A=>{v.setReference(A.currentTarget),b(B=>!B),p&&g()};x.useEffect(()=>{a&&o?P({currentTarget:o}):a||b(!1)},[a,o]),x.useImperativeHandle(t,()=>({show:p,setShow:b,handlerShow:P,getReferenceProps:w}),[p]);const M=()=>{let A={...y,...R,...f,zIndex:c};return d&&(A={...A,width:d}),A};return S.jsx(S.Fragment,{children:_&&p&&S.jsx(p5,{children:S.jsx(v5,{context:D,modal:!1,children:S.jsx("div",{ref:v.setFloating,style:M(),...$(),className:`${P5.popover} ${r??""}`,...m,children:n})})})})});Ei.displayName="Popover";const T5="_input_17tnz_7",M5="_label_17tnz_35",k5="_error_17tnz_42",Jt={"container-large":"_container-large_17tnz_1","container-input":"_container-input_17tnz_4",input:T5,label:M5,error:k5,"isset-right-icon":"_isset-right-icon_17tnz_53","isset-left-icon":"_isset-left-icon_17tnz_56","start-icon":"_start-icon_17tnz_63","end-icon":"_end-icon_17tnz_66","label-error":"_label-error_17tnz_72","container-medium":"_container-medium_17tnz_77"},cb=x.forwardRef((e,t)=>{var y;const{isRequired:n,classNameContainer:r,classNameLabelError:i,classNameLabel:a,className:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:f,error:h,sizeInput:g="large",...m}=e,p={size:{large:Jt["container-large"],medium:Jt["container-medium"]},variant:{}},b=()=>typeof d=="function"||x.isValidElement(d),v=()=>typeof f=="function"||x.isValidElement(f);return S.jsxs("div",{className:`${Jt.container} ${(y=p.size)==null?void 0:y[g]} ${r??""}`,children:[S.jsxs("div",{className:Jt["container-input"],children:[S.jsx("input",{id:l??s,className:`${Jt.input} ${h?Jt.error:""}
|
45
45
|
${b()?Jt["isset-left-icon"]:""}
|
46
46
|
${v()?Jt["isset-right-icon"]:""}
|
47
|
-
${o??""}`,ref:t,type:c,...m}),
|
48
|
-
${m.disabled?Jt.disabled:""} ${i??""}`,children:h})]})});cb.displayName="InputFloatingInner";const B5="_label_oblon_4",V5="_disabled_oblon_9",O5="_input_oblon_15",N5="_error_oblon_43",Ht={"container-large":"_container-large_oblon_1",label:B5,disabled:V5,"container-input":"_container-input_oblon_12",input:O5,error:N5,"isset-right-icon":"_isset-right-icon_oblon_52","isset-left-icon":"_isset-left-icon_oblon_56","start-icon":"_start-icon_oblon_60","end-icon":"_end-icon_oblon_63","label-error":"_label-error_oblon_66","container-medium":"_container-medium_oblon_75","container-small":"_container-small_oblon_149"},Jd=x.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:f,error:h,sizeInput:g="large",...m}=e,p={size:{large:Ht["container-large"],medium:Ht["container-medium"],small:Ht["container-small"]},variant:{}},b=()=>typeof d=="function"||x.isValidElement(d),v=()=>typeof f=="function"||x.isValidElement(f);return
|
47
|
+
${o??""}`,ref:t,type:c,...m}),S.jsxs("div",{className:Jt["start-icon"],children:[typeof d=="function"&&d(),x.isValidElement(d)&&d]}),S.jsxs("label",{className:`${Jt.label} ${a??""}`,htmlFor:l??s,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),S.jsxs("div",{className:Jt["end-icon"],children:[typeof f=="function"&&f(),x.isValidElement(f)&&f]})]}),h&&S.jsx("label",{className:`${Jt["label-error"]}
|
48
|
+
${m.disabled?Jt.disabled:""} ${i??""}`,children:h})]})});cb.displayName="InputFloatingInner";const B5="_label_oblon_4",V5="_disabled_oblon_9",O5="_input_oblon_15",N5="_error_oblon_43",Ht={"container-large":"_container-large_oblon_1",label:B5,disabled:V5,"container-input":"_container-input_oblon_12",input:O5,error:N5,"isset-right-icon":"_isset-right-icon_oblon_52","isset-left-icon":"_isset-left-icon_oblon_56","start-icon":"_start-icon_oblon_60","end-icon":"_end-icon_oblon_63","label-error":"_label-error_oblon_66","container-medium":"_container-medium_oblon_75","container-small":"_container-small_oblon_149"},Jd=x.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:f,error:h,sizeInput:g="large",...m}=e,p={size:{large:Ht["container-large"],medium:Ht["container-medium"],small:Ht["container-small"]},variant:{}},b=()=>typeof d=="function"||x.isValidElement(d),v=()=>typeof f=="function"||x.isValidElement(f);return S.jsxs("div",{className:`${p.size[g]} ${r??""}`,children:[u&&S.jsxs("label",{htmlFor:l??s,className:`${Ht.label} ${m.disabled?Ht.disabled:""} ${a??""}`,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),S.jsxs("div",{className:`${Ht["container-input"]}`,children:[S.jsxs("div",{className:Ht["start-icon"],children:[typeof d=="function"&&d(),x.isValidElement(d)&&d]}),S.jsx("input",{id:l??s,className:`${Ht.input} ${h?Ht.error:""}
|
49
49
|
${b()?Ht["isset-left-icon"]:""}
|
50
50
|
${v()?Ht["isset-right-icon"]:""}
|
51
|
-
${i??""}`,ref:t,type:c,...m}),
|
51
|
+
${i??""}`,ref:t,type:c,...m}),S.jsxs("div",{className:Ht["end-icon"],children:[typeof f=="function"&&f(),x.isValidElement(f)&&f]})]}),h&&S.jsx("label",{className:`${Ht["label-error"]}
|
52
52
|
${m.disabled?Ht.disabled:""} ${o??""}`,children:h})]})});Jd.displayName="InputReguler";/**
|
53
53
|
* table-core
|
54
54
|
*
|
@@ -61,7 +61,7 @@ React keys must be passed directly to JSX without using spread:
|
|
61
61
|
*/function L5(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function or(e,t){return typeof e=="function"?e(t):e}function j5(){}function Zt(e,t){return n=>{t.setState(r=>({...r,[e]:or(n,r[e])}))}}function Wo(e){return e instanceof Function}function db(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Kd(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 ae(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,f=d/16,h=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};console.info(`%c⏱ ${h(d,5)} /${h(c,5)} ms`,`
|
62
62
|
font-size: .6rem;
|
63
63
|
font-weight: bold;
|
64
|
-
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function oe(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 fb(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:ae(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),oe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function hb(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=f=>{let h=f;for(const m of l.split(".")){var g;h=(g=h)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return h}:c=f=>f[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:ae(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},oe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return f(g)}return[d]},oe(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const St="debugHeaders";function hg(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 gb={createTable:e=>{e.getHeaderGroups=ae(()=>[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(f=>f.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return ka(t,[...s,...u,...l],e)},oe(e.options,St,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[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))),ka(t,n,e,"center")),oe(e.options,St,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[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 ka(t,a,e,"left")},oe(e.options,St,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[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 ka(t,a,e,"right")},oe(e.options,St,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[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()},oe(e.options,St,"getLeafHeaders"))}};function ka(e,t,n,r){var i,a;let o=0;const s=function(f,h){h===void 0&&(h=1),o=Math.max(o,h),f.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,h+1)},0)};s(e);let l=[];const u=(f,h)=>{const g={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];f.forEach(p=>{const b=[...m].reverse()[0],v=p.column.depth===g.depth;let y,w=!1;if(v&&p.column.parent?y=p.column.parent:(y=p.column,w=!0),b&&(b==null?void 0:b.column)===y)b.subHeaders.push(p);else{const C=hg(n,y,{id:[r,h,y.id,p==null?void 0:p.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(S=>S.column===y).length}`:void 0,depth:h,index:m.length});C.subHeaders.push(p),m.push(C)}g.headers.push(p),p.headerGroup=g}),l.push(g),h>0&&u(m,h-1)},c=t.map((f,h)=>hg(n,f,{depth:o,index:h}));u(c,o-1),l.reverse();const d=f=>f.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,p=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],d(g.subHeaders).forEach(y=>{let{colSpan:w,rowSpan:C}=y;m+=w,b.push(C)})):m=1;const v=Math.min(...b);return p=p+v,g.colSpan=m,g.rowSpan=p,{colSpan:m,rowSpan:p}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const zo=(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:()=>Kd(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:ae(()=>[e.getAllLeafColumns()],l=>l.map(u=>fb(e,s,u,u.id)),oe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),oe(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},mb={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()}}},pb=(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))};pb.autoRemove=e=>Sn(e);const bb=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};bb.autoRemove=e=>Sn(e);const vb=(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())};vb.autoRemove=e=>Sn(e);const yb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};yb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const xb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});xb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const Cb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});Cb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const wb=(e,t,n)=>e.getValue(t)===n;wb.autoRemove=e=>Sn(e);const Db=(e,t,n)=>e.getValue(t)==n;Db.autoRemove=e=>Sn(e);const qd=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};qd.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]};qd.autoRemove=e=>Sn(e)||Sn(e[0])&&Sn(e[1]);const Bn={includesString:pb,includesStringSensitive:bb,equalsString:vb,arrIncludes:yb,arrIncludesAll:xb,arrIncludesSome:Cb,equals:wb,weakEquals:Db,inNumberRange:qd};function Sn(e){return e==null||e===""}const Sb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Zt("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"?Bn.includesString:typeof r=="number"?Bn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bn.equals:Array.isArray(r)?Bn.arrIncludes:Bn.weakEquals},e.getFilterFn=()=>{var n,r;return Wo(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:Bn[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=or(n,a?a.value:void 0);if(Wc(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=or(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Wc(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 Wc(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const H5=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),W5=(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},z5=(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},G5=(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]},Z5=(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},X5=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!db(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},Y5=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),U5=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,J5=(e,t)=>t.length,Xs={sum:H5,min:W5,max:z5,extent:G5,mean:Z5,median:X5,unique:Y5,uniqueCount:U5,count:J5},Eb={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:Zt("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 Xs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Xs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Wo(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:Xs[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 Ib(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 _b={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Zt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[Qi(t,n)],n=>n.findIndex(r=>r.id===e.id),oe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Qi(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Qi(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=ae(()=>[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 Ib(a,n,r)},oe(e.options,"debugTable","_getOrderColumnsFn"))}},Gu=()=>({left:[],right:[]}),$b={getInitialState:e=>({columnPinning:Gu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Zt("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=ae(()=>[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))},oe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[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"})),oe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[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"})),oe(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?Gu():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Gu())},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=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[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))},oe(e.options,"debugColumns","getCenterLeafColumns"))}},Ba={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Zu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Rb={getDefaultColumnDef:()=>Ba,getInitialState:e=>({columnSizing:{},columnSizingInfo:Zu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Zt("columnSizing",e),onColumnSizingInfoChange:Zt("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:Ba.minSize,(r=a??e.columnDef.size)!=null?r:Ba.size),(i=e.columnDef.maxSize)!=null?i:Ba.maxSize)},e.getStart=ae(n=>[n,Qi(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,Qi(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),oe(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(),Xu(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Xu(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(b,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(y=>{var w,C;const S=t.options.columnResizeDirection==="rtl"?-1:1,I=(v-((w=y==null?void 0:y.startOffset)!=null?w:0))*S,D=Math.max(I/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach($=>{let[R,_]=$;u[R]=Math.round(Math.max(_+_*D,0)*100)/100}),{...y,deltaOffset:I,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(y=>({...y,...u})))},d=b=>c("move",b),f=b=>{c("end",b),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,g={moveHandler:b=>d(b.clientX),upHandler:b=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),f(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var v;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),f((v=b.touches[0])==null?void 0:v.clientX)}},p=Ab()?{passive:!1}:!1;Xu(a)?(h==null||h.addEventListener("touchmove",m.moveHandler,p),h==null||h.addEventListener("touchend",m.upHandler,p)):(h==null||h.addEventListener("mousemove",g.moveHandler,p),h==null||h.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(b=>({...b,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?Zu():(n=e.initialState.columnSizingInfo)!=null?n:Zu())},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 fs=null;function Ab(){if(typeof fs=="boolean")return fs;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 fs=e,fs}function Xu(e){return e.type==="touchstart"}const Fb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Zt("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=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),oe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],oe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>ae(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),oe(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 Qi(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Pb={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()}}},Tb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Zt("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=()=>Bn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Wo(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Mb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Zt("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()}}}},zc=0,Gc=10,Yu=()=>({pageIndex:zc,pageSize:Gc}),kb={getInitialState:e=>({...e,pagination:{...Yu(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Zt("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=>or(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Yu():(i=e.initialState.pagination)!=null?i:Yu())},e.setPageIndex=r=>{e.setPagination(i=>{let a=or(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?zc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:zc)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?Gc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:Gc)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,or(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=or(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ae(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},oe(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}}},Uu=()=>({top:[],bottom:[]}),Bb={getInitialState:e=>({rowPinning:Uu(),...e}),getDefaultOptions:e=>({onRowPinningChange:Zt("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,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,g;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).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?Uu():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Uu())},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=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),oe(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),oe(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[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))},oe(e.options,"debugRows","getCenterRows"))}},Vb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Zt("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=>{Zc(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(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 Zc(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return du(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Dl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Dl(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)}}}},Zc=(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=>Zc(e,s.id,n,r,i))};function Ys(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=du(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 du(e,t){var n;return(n=t[e.id])!=null?n:!1}function Dl(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()&&(du(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Dl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Sl=/([0-9]+)/gm,K5=(e,t,n)=>Ob(Mr(e.getValue(n)).toLowerCase(),Mr(t.getValue(n)).toLowerCase()),q5=(e,t,n)=>Ob(Mr(e.getValue(n)),Mr(t.getValue(n))),Q5=(e,t,n)=>Qd(Mr(e.getValue(n)).toLowerCase(),Mr(t.getValue(n)).toLowerCase()),eS=(e,t,n)=>Qd(Mr(e.getValue(n)),Mr(t.getValue(n))),tS=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},nS=(e,t,n)=>Qd(e.getValue(n),t.getValue(n));function Qd(e,t){return e===t?0:e>t?1:-1}function Mr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ob(e,t){const n=e.split(Sl).filter(Boolean),r=t.split(Sl).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 Zi={alphanumeric:K5,alphanumericCaseSensitive:q5,text:Q5,textCaseSensitive:eS,datetime:tS,basic:nS},Nb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Zt("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 Zi.datetime;if(typeof a=="string"&&(r=!0,a.split(Sl).length>1))return Zi.alphanumeric}return r?Zi.text:Zi.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 Wo(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:Zi[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(h=>h.id===e.id),l=o==null?void 0:o.findIndex(h=>h.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 f;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(h=>h.id===e.id?{...h,desc:d}:h):c==="remove"?u=o.filter(h=>h.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())}},rS=[gb,Fb,_b,$b,mb,Sb,Pb,Tb,Nb,Eb,Mb,kb,Bb,Vb,Rb];function Lb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...rS,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),o=f=>i.options.mergeOptions?i.options.mergeOptions(a,f):{...a,...f};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:f=>{u.push(f),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:f=>{const h=or(f,i.options);i.options=o(h)},getState:()=>i.options.state,setState:f=>{i.options.onStateChange==null||i.options.onStateChange(f)},_getRowId:(f,h,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(f,h,g))!=null?m:`${g?[g.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(f,h)=>{let g=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[f];if(!g&&(g=i.getCoreRowModel().rowsById[f],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return g},_getDefaultColumnDef:ae(()=>[i.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,p;return(m=(p=g.renderValue())==null||p.toString==null?void 0:p.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...f}},oe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:ae(()=>[i._getColumnDefs()],f=>{const h=function(g,m,p){return p===void 0&&(p=0),g.map(b=>{const v=hb(i,b,p,m),y=b;return v.columns=y.columns?h(y.columns,v,p+1):[],v})};return h(f)},oe(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[i.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),oe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[i.getAllFlatColumns()],f=>f.reduce((h,g)=>(h[g.id]=g,h),{}),oe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(f,h)=>{let g=f.flatMap(m=>m.getLeafColumns());return h(g)},oe(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=i._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(i,d);for(let f=0;f<i._features.length;f++){const h=i._features[f];h==null||h.createTable==null||h.createTable(i)}return i}function iS(){return e=>ae(()=>[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=zo(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},oe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function aS(){return e=>ae(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:ef(n),oe(e.options,"debugTable","getExpandedRowModel"))}function ef(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 oS(){return(e,t)=>ae(()=>{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},oe(e.options,"debugTable","getFacetedMinMaxValues"))}function jb(e,t,n){return n.options.filterFromLeafRows?sS(e,t,n):lS(e,t,n)}function sS(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 f=0;f<l.length;f++){var d;let h=l[f];const g=zo(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(g.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&u<o){if(g.subRows=s(h.subRows,u+1),h=g,t(h)&&!g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}if(t(h)||g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}}else h=g,t(h)&&(c.push(h),a[h.id]=h,i.push(h))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function lS(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 f=0;f<l.length;f++){let h=l[f];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&u<o){const m=zo(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);m.subRows=s(h.subRows,u+1),h=m}c.push(h),i.push(h),a[h.id]=h}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function uS(){return(e,t)=>ae(()=>[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 jb(n.rows,o,e)},oe(e.options,"debugTable","getFacetedRowModel"))}function cS(){return(e,t)=>ae(()=>{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},oe(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function dS(){return e=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(f=>{var h;const g=e.getColumn(f.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:f.id,filterFn:m,resolvedValue:(h=m.resolveFilterValue==null?void 0:m.resolveFilterValue(f.value))!=null?h:f.value})});const o=(n??[]).map(f=>f.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(f=>{var h;a.push({id:f.id,filterFn:s,resolvedValue:(h=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?h:r})}));let u,c;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;h.columnFilters[m]=u.filterFn(h,m,u.resolvedValue,p=>{h.columnFiltersMeta[m]=p})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(h,m,c.resolvedValue,p=>{h.columnFiltersMeta[m]=p})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const d=f=>{for(let h=0;h<o.length;h++)if(f.columnFilters[o[h]]===!1)return!1;return!0};return jb(t.rows,d,e)},oe(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function fS(){return e=>ae(()=>[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],f=hS(l,d);return Array.from(f.entries()).map((g,m)=>{let[p,b]=g,v=`${d}:${p}`;v=c?`${c}>${v}`:v;const y=o(b,u+1,v),w=u?Kd(b,S=>S.subRows):b,C=zo(e,v,w[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:d,groupingValue:p,subRows:y,leafRows:w,getValue:S=>{if(r.includes(S)){if(C._valuesCache.hasOwnProperty(S))return C._valuesCache[S];if(b[0]){var I;C._valuesCache[S]=(I=b[0].getValue(S))!=null?I:void 0}return C._valuesCache[S]}if(C._groupingValuesCache.hasOwnProperty(S))return C._groupingValuesCache[S];const D=e.getColumn(S),$=D==null?void 0:D.getAggregationFn();if($)return C._groupingValuesCache[S]=$(S,w,b),C._groupingValuesCache[S]}}),y.forEach(S=>{i.push(S),a[S.id]=S}),C})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},oe(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function hS(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 gS(e){return t=>ae(()=>[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=ef({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const f=h=>{d.flatRows.push(h),h.subRows.length&&h.subRows.forEach(f)};return d.rows.forEach(f),d},oe(t.options,"debugTable","getPaginationRowModel"))}function mS(){return e=>ae(()=>[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 h=0;h<a.length;h+=1){var f;const g=a[h],m=o[g.id],p=m.sortUndefined,b=(f=g==null?void 0:g.desc)!=null?f:!1;let v=0;if(p){const y=c.getValue(g.id),w=d.getValue(g.id),C=y===void 0,S=w===void 0;if(C||S){if(p==="first")return C?-1:1;if(p==="last")return C?1:-1;v=C&&S?0:C?p:-p}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return b&&(v*=-1),m.invertSorting&&(v*=-1),v}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}},oe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
64
|
+
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function oe(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 fb(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:ae(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),oe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function hb(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=f=>{let h=f;for(const m of l.split(".")){var g;h=(g=h)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return h}:c=f=>f[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:ae(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},oe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return f(g)}return[d]},oe(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const St="debugHeaders";function hg(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 gb={createTable:e=>{e.getHeaderGroups=ae(()=>[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(f=>f.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return ka(t,[...s,...u,...l],e)},oe(e.options,St,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[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))),ka(t,n,e,"center")),oe(e.options,St,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[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 ka(t,a,e,"left")},oe(e.options,St,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[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 ka(t,a,e,"right")},oe(e.options,St,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[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()},oe(e.options,St,"getLeafHeaders"))}};function ka(e,t,n,r){var i,a;let o=0;const s=function(f,h){h===void 0&&(h=1),o=Math.max(o,h),f.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,h+1)},0)};s(e);let l=[];const u=(f,h)=>{const g={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];f.forEach(p=>{const b=[...m].reverse()[0],v=p.column.depth===g.depth;let y,D=!1;if(v&&p.column.parent?y=p.column.parent:(y=p.column,D=!0),b&&(b==null?void 0:b.column)===y)b.subHeaders.push(p);else{const C=hg(n,y,{id:[r,h,y.id,p==null?void 0:p.id].filter(Boolean).join("_"),isPlaceholder:D,placeholderId:D?`${m.filter(E=>E.column===y).length}`:void 0,depth:h,index:m.length});C.subHeaders.push(p),m.push(C)}g.headers.push(p),p.headerGroup=g}),l.push(g),h>0&&u(m,h-1)},c=t.map((f,h)=>hg(n,f,{depth:o,index:h}));u(c,o-1),l.reverse();const d=f=>f.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,p=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],d(g.subHeaders).forEach(y=>{let{colSpan:D,rowSpan:C}=y;m+=D,b.push(C)})):m=1;const v=Math.min(...b);return p=p+v,g.colSpan=m,g.rowSpan=p,{colSpan:m,rowSpan:p}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const zo=(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:()=>Kd(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:ae(()=>[e.getAllLeafColumns()],l=>l.map(u=>fb(e,s,u,u.id)),oe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),oe(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},mb={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()}}},pb=(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))};pb.autoRemove=e=>Sn(e);const bb=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};bb.autoRemove=e=>Sn(e);const vb=(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())};vb.autoRemove=e=>Sn(e);const yb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};yb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const xb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});xb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const Cb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});Cb.autoRemove=e=>Sn(e)||!(e!=null&&e.length);const wb=(e,t,n)=>e.getValue(t)===n;wb.autoRemove=e=>Sn(e);const Db=(e,t,n)=>e.getValue(t)==n;Db.autoRemove=e=>Sn(e);const qd=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};qd.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]};qd.autoRemove=e=>Sn(e)||Sn(e[0])&&Sn(e[1]);const Bn={includesString:pb,includesStringSensitive:bb,equalsString:vb,arrIncludes:yb,arrIncludesAll:xb,arrIncludesSome:Cb,equals:wb,weakEquals:Db,inNumberRange:qd};function Sn(e){return e==null||e===""}const Sb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Zt("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"?Bn.includesString:typeof r=="number"?Bn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bn.equals:Array.isArray(r)?Bn.arrIncludes:Bn.weakEquals},e.getFilterFn=()=>{var n,r;return Wo(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:Bn[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=or(n,a?a.value:void 0);if(Wc(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=or(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Wc(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 Wc(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const H5=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),W5=(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},z5=(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},G5=(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]},Z5=(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},X5=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!db(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},Y5=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),U5=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,J5=(e,t)=>t.length,Xs={sum:H5,min:W5,max:z5,extent:G5,mean:Z5,median:X5,unique:Y5,uniqueCount:U5,count:J5},Eb={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:Zt("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 Xs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Xs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Wo(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:Xs[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 Ib(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 _b={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Zt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[Qi(t,n)],n=>n.findIndex(r=>r.id===e.id),oe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Qi(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Qi(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=ae(()=>[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 Ib(a,n,r)},oe(e.options,"debugTable","_getOrderColumnsFn"))}},Gu=()=>({left:[],right:[]}),$b={getInitialState:e=>({columnPinning:Gu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Zt("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=ae(()=>[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))},oe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[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"})),oe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[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"})),oe(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?Gu():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Gu())},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=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[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))},oe(e.options,"debugColumns","getCenterLeafColumns"))}},Ba={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Zu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Rb={getDefaultColumnDef:()=>Ba,getInitialState:e=>({columnSizing:{},columnSizingInfo:Zu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Zt("columnSizing",e),onColumnSizingInfoChange:Zt("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:Ba.minSize,(r=a??e.columnDef.size)!=null?r:Ba.size),(i=e.columnDef.maxSize)!=null?i:Ba.maxSize)},e.getStart=ae(n=>[n,Qi(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,Qi(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),oe(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(),Xu(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Xu(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(b,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(y=>{var D,C;const E=t.options.columnResizeDirection==="rtl"?-1:1,I=(v-((D=y==null?void 0:y.startOffset)!=null?D:0))*E,w=Math.max(I/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach($=>{let[R,_]=$;u[R]=Math.round(Math.max(_+_*w,0)*100)/100}),{...y,deltaOffset:I,deltaPercentage:w}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(y=>({...y,...u})))},d=b=>c("move",b),f=b=>{c("end",b),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,g={moveHandler:b=>d(b.clientX),upHandler:b=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),f(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var v;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),f((v=b.touches[0])==null?void 0:v.clientX)}},p=Ab()?{passive:!1}:!1;Xu(a)?(h==null||h.addEventListener("touchmove",m.moveHandler,p),h==null||h.addEventListener("touchend",m.upHandler,p)):(h==null||h.addEventListener("mousemove",g.moveHandler,p),h==null||h.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(b=>({...b,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?Zu():(n=e.initialState.columnSizingInfo)!=null?n:Zu())},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 fs=null;function Ab(){if(typeof fs=="boolean")return fs;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 fs=e,fs}function Xu(e){return e.type==="touchstart"}const Fb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Zt("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=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),oe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],oe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>ae(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),oe(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 Qi(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Pb={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()}}},Tb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Zt("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=()=>Bn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Wo(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Mb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Zt("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()}}}},zc=0,Gc=10,Yu=()=>({pageIndex:zc,pageSize:Gc}),kb={getInitialState:e=>({...e,pagination:{...Yu(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Zt("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=>or(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Yu():(i=e.initialState.pagination)!=null?i:Yu())},e.setPageIndex=r=>{e.setPagination(i=>{let a=or(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?zc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:zc)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?Gc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:Gc)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,or(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=or(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ae(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},oe(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}}},Uu=()=>({top:[],bottom:[]}),Bb={getInitialState:e=>({rowPinning:Uu(),...e}),getDefaultOptions:e=>({onRowPinningChange:Zt("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,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,g;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).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?Uu():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Uu())},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=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),oe(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),oe(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[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))},oe(e.options,"debugRows","getCenterRows"))}},Vb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Zt("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=>{Zc(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ys(e,n):{rows:[],flatRows:[],rowsById:{}},oe(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 Zc(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return du(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Dl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Dl(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)}}}},Zc=(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=>Zc(e,s.id,n,r,i))};function Ys(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=du(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 du(e,t){var n;return(n=t[e.id])!=null?n:!1}function Dl(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()&&(du(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=Dl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Sl=/([0-9]+)/gm,K5=(e,t,n)=>Ob(Mr(e.getValue(n)).toLowerCase(),Mr(t.getValue(n)).toLowerCase()),q5=(e,t,n)=>Ob(Mr(e.getValue(n)),Mr(t.getValue(n))),Q5=(e,t,n)=>Qd(Mr(e.getValue(n)).toLowerCase(),Mr(t.getValue(n)).toLowerCase()),eS=(e,t,n)=>Qd(Mr(e.getValue(n)),Mr(t.getValue(n))),tS=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},nS=(e,t,n)=>Qd(e.getValue(n),t.getValue(n));function Qd(e,t){return e===t?0:e>t?1:-1}function Mr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ob(e,t){const n=e.split(Sl).filter(Boolean),r=t.split(Sl).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 Zi={alphanumeric:K5,alphanumericCaseSensitive:q5,text:Q5,textCaseSensitive:eS,datetime:tS,basic:nS},Nb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Zt("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 Zi.datetime;if(typeof a=="string"&&(r=!0,a.split(Sl).length>1))return Zi.alphanumeric}return r?Zi.text:Zi.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 Wo(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:Zi[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(h=>h.id===e.id),l=o==null?void 0:o.findIndex(h=>h.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 f;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(h=>h.id===e.id?{...h,desc:d}:h):c==="remove"?u=o.filter(h=>h.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())}},rS=[gb,Fb,_b,$b,mb,Sb,Pb,Tb,Nb,Eb,Mb,kb,Bb,Vb,Rb];function Lb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...rS,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),o=f=>i.options.mergeOptions?i.options.mergeOptions(a,f):{...a,...f};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:f=>{u.push(f),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:f=>{const h=or(f,i.options);i.options=o(h)},getState:()=>i.options.state,setState:f=>{i.options.onStateChange==null||i.options.onStateChange(f)},_getRowId:(f,h,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(f,h,g))!=null?m:`${g?[g.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(f,h)=>{let g=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[f];if(!g&&(g=i.getCoreRowModel().rowsById[f],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return g},_getDefaultColumnDef:ae(()=>[i.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,p;return(m=(p=g.renderValue())==null||p.toString==null?void 0:p.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...f}},oe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:ae(()=>[i._getColumnDefs()],f=>{const h=function(g,m,p){return p===void 0&&(p=0),g.map(b=>{const v=hb(i,b,p,m),y=b;return v.columns=y.columns?h(y.columns,v,p+1):[],v})};return h(f)},oe(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[i.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),oe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[i.getAllFlatColumns()],f=>f.reduce((h,g)=>(h[g.id]=g,h),{}),oe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(f,h)=>{let g=f.flatMap(m=>m.getLeafColumns());return h(g)},oe(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=i._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(i,d);for(let f=0;f<i._features.length;f++){const h=i._features[f];h==null||h.createTable==null||h.createTable(i)}return i}function iS(){return e=>ae(()=>[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=zo(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},oe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function aS(){return e=>ae(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:ef(n),oe(e.options,"debugTable","getExpandedRowModel"))}function ef(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 oS(){return(e,t)=>ae(()=>{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},oe(e.options,"debugTable","getFacetedMinMaxValues"))}function jb(e,t,n){return n.options.filterFromLeafRows?sS(e,t,n):lS(e,t,n)}function sS(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 f=0;f<l.length;f++){var d;let h=l[f];const g=zo(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(g.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&u<o){if(g.subRows=s(h.subRows,u+1),h=g,t(h)&&!g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}if(t(h)||g.subRows.length){c.push(h),a[h.id]=h,i.push(h);continue}}else h=g,t(h)&&(c.push(h),a[h.id]=h,i.push(h))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function lS(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 f=0;f<l.length;f++){let h=l[f];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&u<o){const m=zo(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);m.subRows=s(h.subRows,u+1),h=m}c.push(h),i.push(h),a[h.id]=h}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function uS(){return(e,t)=>ae(()=>[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 jb(n.rows,o,e)},oe(e.options,"debugTable","getFacetedRowModel"))}function cS(){return(e,t)=>ae(()=>{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},oe(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function dS(){return e=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(f=>{var h;const g=e.getColumn(f.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:f.id,filterFn:m,resolvedValue:(h=m.resolveFilterValue==null?void 0:m.resolveFilterValue(f.value))!=null?h:f.value})});const o=(n??[]).map(f=>f.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(f=>{var h;a.push({id:f.id,filterFn:s,resolvedValue:(h=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?h:r})}));let u,c;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;h.columnFilters[m]=u.filterFn(h,m,u.resolvedValue,p=>{h.columnFiltersMeta[m]=p})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(h,m,c.resolvedValue,p=>{h.columnFiltersMeta[m]=p})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const d=f=>{for(let h=0;h<o.length;h++)if(f.columnFilters[o[h]]===!1)return!1;return!0};return jb(t.rows,d,e)},oe(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function fS(){return e=>ae(()=>[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],f=hS(l,d);return Array.from(f.entries()).map((g,m)=>{let[p,b]=g,v=`${d}:${p}`;v=c?`${c}>${v}`:v;const y=o(b,u+1,v),D=u?Kd(b,E=>E.subRows):b,C=zo(e,v,D[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:d,groupingValue:p,subRows:y,leafRows:D,getValue:E=>{if(r.includes(E)){if(C._valuesCache.hasOwnProperty(E))return C._valuesCache[E];if(b[0]){var I;C._valuesCache[E]=(I=b[0].getValue(E))!=null?I:void 0}return C._valuesCache[E]}if(C._groupingValuesCache.hasOwnProperty(E))return C._groupingValuesCache[E];const w=e.getColumn(E),$=w==null?void 0:w.getAggregationFn();if($)return C._groupingValuesCache[E]=$(E,D,b),C._groupingValuesCache[E]}}),y.forEach(E=>{i.push(E),a[E.id]=E}),C})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},oe(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function hS(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 gS(e){return t=>ae(()=>[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=ef({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const f=h=>{d.flatRows.push(h),h.subRows.length&&h.subRows.forEach(f)};return d.rows.forEach(f),d},oe(t.options,"debugTable","getPaginationRowModel"))}function mS(){return e=>ae(()=>[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 h=0;h<a.length;h+=1){var f;const g=a[h],m=o[g.id],p=m.sortUndefined,b=(f=g==null?void 0:g.desc)!=null?f:!1;let v=0;if(p){const y=c.getValue(g.id),D=d.getValue(g.id),C=y===void 0,E=D===void 0;if(C||E){if(p==="first")return C?-1:1;if(p==="last")return C?1:-1;v=C&&E?0:C?p:-p}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return b&&(v*=-1),m.invertSorting&&(v*=-1),v}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}},oe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
65
65
|
* react-table
|
66
66
|
*
|
67
67
|
* Copyright (c) TanStack
|
@@ -70,17 +70,17 @@ React keys must be passed directly to JSX without using spread:
|
|
70
70
|
* LICENSE.md file in the root directory of this source tree.
|
71
71
|
*
|
72
72
|
* @license MIT
|
73
|
-
*/function co(e,t){return e?pS(e)?L.createElement(e,t):e:null}function pS(e){return bS(e)||typeof e=="function"||vS(e)}function bS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function vS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=L.useState(()=>({current:Lb(t)})),[r,i]=L.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 xS=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:mb,ColumnFiltering:Sb,ColumnGrouping:Eb,ColumnOrdering:_b,ColumnPinning:$b,ColumnSizing:Rb,ColumnVisibility:Fb,GlobalFaceting:Pb,GlobalFiltering:Tb,Headers:gb,RowExpanding:Mb,RowPagination:kb,RowPinning:Bb,RowSelection:Vb,RowSorting:Nb,_getVisibleLeafColumns:Qi,aggregationFns:Xs,buildHeaderGroups:ka,createCell:fb,createColumn:hb,createColumnHelper:L5,createRow:zo,createTable:Lb,defaultColumnSizing:Ba,expandRows:ef,filterFns:Bn,flattenBy:Kd,flexRender:co,functionalUpdate:or,getCoreRowModel:iS,getExpandedRowModel:aS,getFacetedMinMaxValues:oS,getFacetedRowModel:uS,getFacetedUniqueValues:cS,getFilteredRowModel:dS,getGroupedRowModel:fS,getMemoOptions:oe,getPaginationRowModel:gS,getSortedRowModel:mS,isFunction:Wo,isNumberArray:db,isRowSelected:du,isSubRowSelected:Dl,makeStateUpdater:Zt,memo:ae,noop:j5,orderColumns:Ib,passiveEventSupported:Ab,reSplitAlphaNumeric:Sl,selectRowsFn:Ys,shouldAutoRemoveFilter:Wc,sortingFns:Zi,useReactTable:yS},Symbol.toStringTag,{value:"Module"})),fu=0,Nr=1,ya=2,Hb=4;function fo(e,t){return n=>e(t(n))}function CS(e,t){return t(e)}function Wb(e,t){return n=>e(t,n)}function gg(e,t){return()=>e(t)}function hu(e,t){return t(e),e}function Ke(...e){return e}function wS(e){e()}function mg(e){return()=>e}function DS(...e){return()=>{e.map(wS)}}function tf(e){return e!==void 0}function Ii(){}function We(e,t){return e(Nr,t)}function ve(e,t){e(fu,t)}function nf(e){e(ya)}function Rt(e){return e(Hb)}function se(e,t){return We(e,Wb(t,fu))}function zn(e,t){const n=e(Nr,r=>{n(),t(r)});return n}function Ie(){const e=[];return(t,n)=>{switch(t){case ya:e.splice(0,e.length);return;case Nr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case fu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=Ie();return(r,i)=>{switch(r){case Nr:i(t);break;case fu:t=i;break;case Hb:return t}return n(r,i)}}function SS(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Nr:return a?n===a?void 0:(r(),n=a,t=We(e,a),t):(r(),Ii);case ya:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function rn(e){return hu(Ie(),t=>se(e,t))}function At(e,t){return hu(K(t),n=>se(e,n))}function ES(...e){return t=>e.reduceRight(CS,t)}function U(e,...t){const n=ES(...t);return(r,i)=>{switch(r){case Nr:return We(e,n(i));case ya:nf(e);return}}}function zb(e,t){return e===t}function Ue(e=zb){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function pe(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>fo(t,e)}function Vn(e){return t=>()=>t(e)}function Nn(e,t){return n=>r=>n(t=e(t,r))}function da(e){return t=>n=>{e>0?e--:t(n)}}function Er(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function pg(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function ye(...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);We(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 bg(...e){return function(t,n){switch(t){case Nr:return DS(...e.map(r=>We(r,n)));case ya:return;default:throw new Error(`unrecognized action ${t}`)}}}function be(e,t=zb){return U(e,Ue(t))}function yt(...e){const t=Ie(),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);We(a,l=>{n[o]=l,r=r|s,r===i&&ve(t,n)})}),function(a,o){switch(a){case Nr:return r===i&&o(n),We(t,o);case ya:return nf(t);default:throw new Error(`unrecognized action ${a}`)}}}function Te(e,t=[],{singleton:n}={singleton:!0}){return{id:IS(),constructor:e,dependencies:t,singleton:n}}const IS=()=>Symbol();function _S(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 $S(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 hs=typeof document<"u"?x.useLayoutEffect:x.useEffect;function rf(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=x.createContext({});function l(b,v){b.propsReady&&ve(b.propsReady,!1);for(const y of r){const w=b[t.required[y]];ve(w,v[y])}for(const y of i)if(y in v){const w=b[t.optional[y]];ve(w,v[y])}b.propsReady&&ve(b.propsReady,!0)}function u(b){return a.reduce((v,y)=>(v[y]=w=>{const C=b[t.methods[y]];ve(C,w)},v),{})}function c(b){return o.reduce((v,y)=>(v[y]=SS(b[t.events[y]]),v),{})}const d=x.forwardRef((b,v)=>{const{children:y,...w}=b,[C]=x.useState(()=>hu(_S(e),I=>l(I,w))),[S]=x.useState(gg(c,C));return hs(()=>{for(const I of o)I in w&&We(S[I],w[I]);return()=>{Object.values(S).map(nf)}},[w,S,C]),hs(()=>{l(C,w)}),x.useImperativeHandle(v,mg(u(C))),x.createElement(s.Provider,{value:C},n?x.createElement(n,$S([...r,...i,...o],w),y):y)}),f=b=>x.useCallback(Wb(ve,x.useContext(s)[b]),[b]),h=b=>{const y=x.useContext(s)[b],w=x.useCallback(C=>We(y,C),[y]);return x.useSyncExternalStore(w,()=>Rt(y),()=>Rt(y))},g=b=>{const y=x.useContext(s)[b],[w,C]=x.useState(gg(Rt,y));return hs(()=>We(y,S=>{S!==w&&C(mg(S))}),[y,w]),w},m=x.version.startsWith("18")?h:g;return{Component:d,usePublisher:f,useEmitterValue:m,useEmitter:(b,v)=>{const w=x.useContext(s)[b];hs(()=>We(w,v),[v,w])}}}const RS=typeof document<"u"?x.useLayoutEffect:x.useEffect,AS=RS;var an=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(an||{});const FS={0:"debug",1:"log",2:"warn",3:"error"},PS=()=>typeof globalThis>"u"?window:globalThis,Lr=Te(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=PS().VIRTUOSO_LOG_LEVEL)!=null?a:Rt(e);i>=o&&console[FS[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function af(e,t=!0){const n=x.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=x.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 Gn(e,t=!0){return af(e,t).callbackRef}function Gb(e,t,n,r,i,a,o){const s=x.useCallback(l=>{const u=TS(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",f=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,h=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(f,0),scrollHeight:h,viewportHeight:g}),a==null||a(MS("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return af(s,n)}function TS(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},an.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 MS(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,an.WARN),t==="normal"?0:parseInt(t??"0",10)}function _n(e,t){return Math.round(e.getBoundingClientRect()[t])}function Zb(e,t){return Math.abs(e-t)<1.01}function Xb(e,t,n,r=Ii,i){const a=x.useRef(null),o=x.useRef(null),s=x.useRef(null),l=x.useCallback(d=>{const f=d.target,h=f===window||f===document,g=h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,m=h?document.documentElement.scrollHeight:f.scrollHeight,p=h?window.innerHeight:f.offsetHeight,b=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:p})};d.suppressFlushSync?b():Lo.flushSync(b),o.current!==null&&(g===o.current||g<=0||g===m-p)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);x.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 f=a.current;if(!f||"offsetHeight"in f&&f.offsetHeight===0)return;const h=d.behavior==="smooth";let g,m,p;f===window?(m=Math.max(_n(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,p=document.documentElement.scrollTop):(m=f.scrollHeight,g=_n(f,"height"),p=f.scrollTop);const b=m-g;if(d.top=Math.ceil(Math.max(Math.min(b,d.top),0)),Zb(g,m)||d.top===p){e({scrollTop:p,scrollHeight:m,viewportHeight:g}),h&&t(!0);return}h?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,f.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Vt=Te(()=>{const e=Ie(),t=Ie(),n=K(0),r=Ie(),i=K(0),a=Ie(),o=Ie(),s=K(0),l=K(0),u=K(0),c=K(0),d=Ie(),f=Ie(),h=K(!1);return se(U(e,te(({scrollTop:g})=>g)),t),se(U(e,te(({scrollHeight:g})=>g)),o),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:f,statefulScrollTop:i,deviation:n,scrollingInProgress:h}},[],{singleton:!0}),ho={lvl:0};function Yb(e,t,n,r=ho,i=ho){return{k:e,v:t,lvl:n,l:r,r:i}}function Ge(e){return e===ho}function ea(){return ho}function Xc(e,t){if(Ge(e))return ho;const{k:n,l:r,r:i}=e;if(t===n){if(Ge(r))return i;if(Ge(i))return r;{const[a,o]=Ub(r);return Us(mt(e,{k:a,v:o,l:Jb(r)}))}}else return t<n?Us(mt(e,{l:Xc(r,t)})):Us(mt(e,{r:Xc(i,t)}))}function go(e,t){if(!Ge(e))return t===e.k?e.v:t<e.k?go(e.l,t):go(e.r,t)}function $n(e,t,n="k"){if(Ge(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=$n(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return $n(e.l,t,n)}function en(e,t,n){return Ge(e)?Yb(t,n,1):t===e.k?mt(e,{k:t,v:n}):t<e.k?vg(mt(e,{l:en(e.l,t,n)})):vg(mt(e,{r:en(e.r,t,n)}))}function Yc(e,t,n){if(Ge(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Yc(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Yc(o,t,n))),s}function si(e){return Ge(e)?[]:[...si(e.l),{k:e.k,v:e.v},...si(e.r)]}function Ub(e){return Ge(e.r)?[e.k,e.v]:Ub(e.r)}function Jb(e){return Ge(e.r)?e.l:Us(mt(e,{r:Jb(e.r)}))}function mt(e,t){return Yb(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 Ju(e){return Ge(e)||e.lvl>e.r.lvl}function vg(e){return Uc(qb(e))}function Us(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(Ju(t))return qb(mt(e,{lvl:r-1}));if(!Ge(t)&&!Ge(t.r))return mt(t.r,{l:mt(t,{r:t.r.l}),r:mt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(Ju(e))return Uc(mt(e,{lvl:r-1}));if(!Ge(n)&&!Ge(n.l)){const i=n.l,a=Ju(i)?n.lvl-1:n.lvl;return mt(i,{l:mt(e,{r:i.l,lvl:r-1}),r:Uc(mt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function gu(e,t,n){if(Ge(e))return[];const r=$n(e,t)[0];return kS(Yc(e,r,n))}function Kb(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 kS(e){return Kb(e,({k:t,v:n})=>({index:t,value:n}))}function Uc(e){const{r:t,lvl:n}=e;return!Ge(t)&&!Ge(t.r)&&t.lvl===n&&t.r.lvl===n?mt(t,{l:mt(e,{r:t.l}),lvl:n+1}):e}function qb(e){const{l:t}=e;return!Ge(t)&&t.lvl===e.lvl?mt(t,{r:mt(e,{l:t.r})}):e}function El(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 Qb(e,t,n){return e[El(e,t,n)]}function BS(e,t,n,r){const i=El(e,t,r),a=El(e,n,r,i);return e.slice(i,a+1)}const of=Te(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function VS(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 yg(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 OS(e,t){let n=Ge(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ge(e)){e=en(e,0,i);continue}const s=gu(e,a-1,o+1);if(s.some(VS(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:f}of s)l?(o>=c||i===f)&&(e=Xc(e,c)):(u=f!==i,l=!0),d>o&&o>=c&&f!==i&&(e=en(e,o+1,f));u&&(e=en(e,a,i))}return[e,n]}function NS(){return{offsetTree:[],sizeTree:ea(),groupOffsetTree:ea(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function sf({index:e},t){return t===e?0:t<e?-1:1}function LS({offset:e},t){return t===e?0:t<e?-1:1}function jS(e){return{index:e.index,value:e}}function HS(e,t,n,r=0){return r>0&&(t=Math.max(t,Qb(e,r,sf).offset)),Kb(BS(e,t,n,LS),jS)}function Jc(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=El(i,t-1,sf),s=i[l].offset;const c=$n(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===$n(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of gu(n,t,1/0)){const d=u-a,f=d*o+s+d*r;i.push({offset:f,size:c,index:u}),a=u,s=f,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function WS(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,an.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ge(a)&&t.length===2){const f=t[0].size,h=t[1].size;o=n.reduce((g,m)=>en(en(g,m,f),m+1,h),o)}else[o,s]=OS(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Jc(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((f,h)=>en(f,h,mo(h,l,i)),ea()),groupIndices:n}}function mo(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Qb(t,e,sf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function zS(e){return typeof e.groupIndex<"u"}function e1(e,t,n){if(zS(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=t1(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function t1(e,t){if(!mu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function mu(e){return!Ge(e.groupOffsetTree)}function GS(e){return si(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 ZS={offsetHeight:"height",offsetWidth:"width"},Zn=Te(([{log:e},{recalcInProgress:t}])=>{const n=Ie(),r=Ie(),i=At(r,0),a=Ie(),o=Ie(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((C,S)=>_n(C,ZS[S])),f=K(void 0),h=K(0),g=NS(),m=At(U(n,ye(l,e,h),Nn(WS,g),Ue()),g),p=At(U(l,Ue(),Nn((C,S)=>({prev:C.current,current:S}),{prev:[],current:[]}),te(({prev:C})=>C)),[]);se(U(l,pe(C=>C.length>0),ye(m,h),te(([C,S,I])=>{const D=C.reduce(($,R,_)=>en($,R,mo(R,S.offsetTree,I)||_),ea());return{...S,groupIndices:C,groupOffsetTree:D}})),m),se(U(r,ye(m),pe(([C,{lastIndex:S}])=>C<S),te(([C,{lastIndex:S,lastSize:I}])=>[{startIndex:C,endIndex:S,size:I}])),n),se(u,c);const b=At(U(u,te(C=>C===void 0)),!0);se(U(c,pe(C=>C!==void 0&&Ge(Rt(m).sizeTree)),te(C=>[{startIndex:0,endIndex:0,size:C}])),n);const v=rn(U(n,ye(m),Nn(({sizes:C},[S,I])=>({changed:I!==C,sizes:I}),{changed:!1,sizes:g}),te(C=>C.changed)));We(U(s,Nn((C,S)=>({diff:C.prev-S,prev:S}),{diff:0,prev:0}),te(C=>C.diff)),C=>{const{groupIndices:S}=Rt(m);if(C>0)ve(t,!0),ve(a,C+yg(C,S));else if(C<0){const I=Rt(p);I.length>0&&(C-=yg(-C,I)),ve(o,C)}}),We(U(s,ye(e)),([C,S])=>{C<0&&S("`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},an.ERROR)});const y=rn(a);se(U(a,ye(m),te(([C,S])=>{const I=S.groupIndices.length>0,D=[],$=S.lastSize;if(I){const R=go(S.sizeTree,0);let _=0,P=0;for(;_<C;){const B=S.groupIndices[P],T=S.groupIndices.length===P+1?1/0:S.groupIndices[P+1]-B-1;D.push({startIndex:B,endIndex:B,size:R}),D.push({startIndex:B+1,endIndex:B+1+T-1,size:$}),P++,_+=T+1}const M=si(S.sizeTree);return _!==C&&M.shift(),M.reduce((B,{k:T,v:F})=>{let V=B.ranges;return B.prevSize!==0&&(V=[...B.ranges,{startIndex:B.prevIndex,endIndex:T+C-1,size:B.prevSize}]),{ranges:V,prevIndex:T+C,prevSize:F}},{ranges:D,prevIndex:C,prevSize:0}).ranges}return si(S.sizeTree).reduce((R,{k:_,v:P})=>({ranges:[...R.ranges,{startIndex:R.prevIndex,endIndex:_+C-1,size:R.prevSize}],prevIndex:_+C,prevSize:P}),{ranges:[],prevIndex:0,prevSize:$}).ranges})),n);const w=rn(U(o,ye(m,h),te(([C,{offsetTree:S},I])=>{const D=-C;return mo(D,S,I)})));return se(U(o,ye(m,h),te(([C,S,I])=>{if(S.groupIndices.length>0){if(Ge(S.sizeTree))return S;let $=ea();const R=Rt(p);let _=0,P=0,M=0;for(;_<-C;){M=R[P];const B=R[P+1]-M-1;P++,_+=B+1}if($=si(S.sizeTree).reduce((B,{k:T,v:F})=>en(B,Math.max(0,T+C),F),$),_!==-C){const B=go(S.sizeTree,M);$=en($,0,B);const T=$n(S.sizeTree,-C+1)[1];$=en($,1,T)}return{...S,sizeTree:$,...Jc(S.offsetTree,0,$,I)}}else{const $=si(S.sizeTree).reduce((R,{k:_,v:P})=>en(R,Math.max(0,_+C),P),ea());return{...S,sizeTree:$,...Jc(S.offsetTree,0,$,I)}}})),m),{data:f,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:w,beforeUnshiftWith:y,firstItemIndex:s,gap:h,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:b,itemSize:d}},Ke(Lr,of),{singleton:!0}),XS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function n1(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!XS)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Go=Te(([{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:f}])=>{const h=Ie(),g=Ie(),m=K(0);let p=null,b=null,v=null;function y(){p&&(p(),p=null),v&&(v(),v=null),b&&(clearTimeout(b),b=null),ve(i,!1)}return se(U(h,ye(e,a,t,m,l,u,f),ye(r,c,d),te(([[w,C,S,I,D,$,R,_],P,M,A])=>{const B=n1(w),{align:T,behavior:F,offset:V}=B,j=I-1,N=e1(B,C,j);let Z=mo(N,C.offsetTree,P)+$;T==="end"?(Z+=M+$n(C.sizeTree,N)[1]-S+A,N===j&&(Z+=R)):T==="center"?Z+=(M+$n(C.sizeTree,N)[1]-S+A)/2:Z-=D,V&&(Z+=V);const z=q=>{y(),q?(_("retrying to scroll to",{location:w},an.DEBUG),ve(h,w)):(ve(g,!0),_("list did not change, scroll successful",{},an.DEBUG))};if(y(),F==="smooth"){let q=!1;v=We(n,W=>{q=q||W}),p=zn(s,()=>{z(q)})}else p=zn(U(n,YS(150)),z);return b=setTimeout(()=>{y()},1200),ve(i,!0),_("scrolling from index to",{index:N,top:Z,behavior:F},an.DEBUG),{top:Z,behavior:F}})),o),{scrollToIndex:h,scrollTargetReached:g,topListHeight:m}},Ke(Zn,Vt,Lr),{singleton:!0});function YS(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const po="up",Ua="down",US="none",JS={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},KS=0,Zo=Te(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=Ie(),u=Ie(),c=K(4),d=K(KS),f=At(U(bg(U(be(t),da(1),Vn(!0)),U(be(t),da(1),Vn(!1),pg(100))),Ue()),!1),h=At(U(bg(U(a,Vn(!0)),U(a,Vn(!1),pg(200))),Ue()),!1);se(U(yt(be(t),be(d)),te(([v,y])=>v<=y),Ue()),s),se(U(s,Er(50)),u);const g=rn(U(yt(e,be(n),be(r),be(i),be(c)),Nn((v,[{scrollTop:y,scrollHeight:w},C,S,I,D])=>{const $=y+C-w>-D,R={viewportHeight:C,scrollTop:y,scrollHeight:w};if($){let P,M;return y>v.state.scrollTop?(P="SCROLLED_DOWN",M=v.state.scrollTop-y):(P="SIZE_DECREASED",M=v.state.scrollTop-y||v.scrollTopDelta),{atBottom:!0,state:R,atBottomBecause:P,scrollTopDelta:M}}let _;return R.scrollHeight>v.state.scrollHeight?_="SIZE_INCREASED":C<v.state.viewportHeight?_="VIEWPORT_HEIGHT_DECREASING":y<v.state.scrollTop?_="SCROLLING_UPWARDS":_="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:_,state:R}},JS),Ue((v,y)=>v&&v.atBottom===y.atBottom))),m=At(U(e,Nn((v,{scrollTop:y,scrollHeight:w,viewportHeight:C})=>{if(Zb(v.scrollHeight,w))return{scrollTop:y,scrollHeight:w,jump:0,changed:!1};{const S=w-(y+C)<1;return v.scrollTop!==y&&S?{scrollHeight:w,scrollTop:y,jump:v.scrollTop-y,changed:!0}:{scrollHeight:w,scrollTop:y,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),pe(v=>v.changed),te(v=>v.jump)),0);se(U(g,te(v=>v.atBottom)),o),se(U(o,Er(50)),l);const p=K(Ua);se(U(e,te(({scrollTop:v})=>v),Ue(),Nn((v,y)=>Rt(h)?{direction:v.direction,prevScrollTop:y}:{direction:y<v.prevScrollTop?po:Ua,prevScrollTop:y},{direction:Ua,prevScrollTop:0}),te(v=>v.direction)),p),se(U(e,Er(50),Vn(US)),p);const b=K(0);return se(U(f,pe(v=>!v),Vn(0)),b),se(U(t,Er(100),ye(f),pe(([v,y])=>!!y),Nn(([v,y],[w])=>[y,w],[0,0]),te(([v,y])=>y-v)),b),{isScrolling:f,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:p,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:b,lastJumpDueToItemResize:m}},Ke(Vt)),jr=Te(([{log:e}])=>{const t=K(!1),n=rn(U(t,pe(r=>r),Ue()));return We(t,r=>{r&&Rt(e)("props updated",{},an.DEBUG)}),{propsReady:t,didMount:n}},Ke(Lr),{singleton:!0});function lf(e,t){e==0?t():requestAnimationFrame(()=>lf(e-1,t))}function uf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Xo=Te(([{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 se(U(o,ye(l),pe(([c,d])=>!!d),Vn(!1)),s),se(U(o,ye(l),pe(([c,d])=>!!d),Vn(!1)),u),We(U(yt(t,o),ye(s,e,n,u),pe(([[,c],d,{sizeTree:f},h,g])=>c&&(!Ge(f)||tf(h))&&!d&&!g),ye(l)),([,c])=>{zn(a,()=>{ve(u,!0)}),lf(4,()=>{zn(r,()=>{ve(s,!0)}),ve(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(Zn,Vt,Go,jr),{singleton:!0});function xg(e){return e?e==="smooth"?"smooth":"auto":!1}const qS=(e,t)=>typeof e=="function"?xg(e(t)):t&&xg(e),QS=Te(([{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=Ie();let f=null;function h(m){ve(i,{index:"LAST",align:"end",behavior:m})}We(U(yt(U(be(e),da(1)),s),ye(be(c),n,a,u),te(([[m,p],b,v,y,w])=>{let C=p&&y,S="auto";return C&&(S=qS(b,v||w),C=C&&!!S),{totalCount:m,shouldFollow:C,followOutputBehavior:S}}),pe(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:p})=>{f&&(f(),f=null),f=zn(t,()=>{Rt(l)("following output to ",{totalCount:m},an.DEBUG),h(p),f=null})});function g(m){const p=zn(r,b=>{m&&!b.atBottom&&b.notAtBottomBecause==="SIZE_INCREASED"&&!f&&(Rt(l)("scrolling to bottom due to increased size",{},an.DEBUG),h("auto"))});setTimeout(p,100)}return We(U(yt(be(c),e,o),pe(([m,,p])=>m&&p),Nn(({value:m},[,p])=>({refreshed:m===p,value:p}),{refreshed:!1,value:0}),pe(({refreshed:m})=>m),ye(c,e)),([,m])=>{Rt(a)&&g(m!==!1)}),We(d,()=>{g(Rt(c)!==!1)}),We(yt(be(c),r),([m,p])=>{m&&!p.atBottom&&p.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&h("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(Zn,Zo,Go,Xo,jr,Lr,Vt));function eE(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const r1=Te(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Ie(),o=Ie(),s=rn(U(a,te(eE)));return se(U(s,te(l=>l.totalCount)),e),se(U(s,te(l=>l.groupIndices)),t),se(U(yt(r,n,i),pe(([l,u])=>mu(u)),te(([l,u,c])=>$n(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Ue(),te(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(Zn,Vt));function bo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function i1(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Il="top",_l="bottom",Cg="none";function wg(e,t,n){return typeof e=="number"?n===po&&t===Il||n===Ua&&t===_l?e:0:n===po?t===Il?e.main:e.reverse:t===_l?e.main:e.reverse}function Dg(e,t){return typeof e=="number"?e:e[t]||0}const cf=Te(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Ie(),o=K(0),s=K(0),l=K(0),u=At(U(yt(be(e),be(t),be(r),be(a,bo),be(l),be(o),be(i),be(n),be(s)),te(([c,d,f,[h,g],m,p,b,v,y])=>{const w=c-v,C=p+b,S=Math.max(f-w,0);let I=Cg;const D=Dg(y,Il),$=Dg(y,_l);return h-=v,h+=f+b,g+=f+b,g-=v,h>c+C-D&&(I=po),g<c-S+d+$&&(I=Ua),I!==Cg?[Math.max(w-f-wg(m,Il,I)-D,0),w-S-b+d+wg(m,_l,I)+$]:null}),pe(c=>c!=null),Ue(bo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Vt),{singleton:!0});function tE(e,t,n){if(mu(t)){const r=t1(e,t);return[{index:$n(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 Ku={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Sg(e,t,n){if(e.length===0)return[];if(!mu(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=gu(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 Js(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,f=s+d*o+(d-1)*r,h=u,g=f-c;return{items:Sg(e,i,a),topItems:Sg(t,i,a),topListHeight:t.reduce((m,p)=>p.size+m,0),offsetTop:u,offsetBottom:g,top:h,bottom:c,totalCount:n,firstItemIndex:a}}function a1(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=uf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return Js(u,[],s,i,n,r)}const _i=Te(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},f,{didMount:h},{recalcInProgress:g}])=>{const m=K([]),p=K(0),b=Ie();se(a.topItemsIndexes,m);const v=At(U(yt(h,g,be(o,bo),be(t),be(e),be(c),u,be(m),be(r),be(i),n),pe(([S,I,,D,,,,,,,$])=>{const R=$&&$.length!==D;return S&&!I&&!R}),te(([,,[S,I],D,$,R,_,P,M,A,B])=>{const T=$,{sizeTree:F,offsetTree:V}=T,j=Rt(p);if(D===0)return{...Ku,totalCount:D};if(S===0&&I===0)return j===0?{...Ku,totalCount:D}:a1(j,R,$,M,A,B||[]);if(Ge(F))return j>0?null:Js(tE(uf(R,D),T,B),[],D,A,T,M);const N=[];if(P.length>0){const H=P[0],O=P[P.length-1];let G=0;for(const J of gu(F,H,O)){const re=J.value,fe=Math.max(J.start,H),le=Math.min(J.end,O);for(let X=fe;X<=le;X++)N.push({index:X,size:re,offset:G,data:B&&B[X]}),G+=re}}if(!_)return Js([],N,D,A,T,M);const Z=P.length>0?P[P.length-1]+1:0,z=HS(V,S,I,Z);if(z.length===0)return null;const q=D-1,W=hu([],H=>{for(const O of z){const G=O.value;let J=G.offset,re=O.start;const fe=G.size;if(G.offset<S){re+=Math.floor((S-G.offset+A)/(fe+A));const X=re-O.start;J+=X*fe+X*A}re<Z&&(J+=(Z-re)*fe,re=Z);const le=Math.min(O.end,q);for(let X=re;X<=le&&!(J>=I);X++)H.push({index:X,size:fe,offset:J,data:B&&B[X]}),J+=fe+A}});return Js(W,N,D,A,T,M)}),pe(S=>S!==null),Ue()),Ku);se(U(n,pe(tf),te(S=>S==null?void 0:S.length)),t),se(U(v,te(S=>S.topListHeight)),d),se(d,l),se(U(v,te(S=>[S.top,S.bottom])),s),se(U(v,te(S=>S.items)),b);const y=rn(U(v,pe(({items:S})=>S.length>0),ye(t,n),pe(([{items:S},I])=>S[S.length-1].originalIndex===I-1),te(([,S,I])=>[S-1,I]),Ue(bo),te(([S])=>S))),w=rn(U(v,Er(200),pe(({items:S,topItems:I})=>S.length>0&&S[0].originalIndex===I.length),te(({items:S})=>S[0].index),Ue())),C=rn(U(v,pe(({items:S})=>S.length>0),te(({items:S})=>{let I=0,D=S.length-1;for(;S[I].type==="group"&&I<D;)I++;for(;S[D].type==="group"&&D>I;)D--;return{startIndex:S[I].index,endIndex:S[D].index}}),Ue(i1)));return{listState:v,topItemsIndexes:m,endReached:y,startReached:w,rangeChanged:C,itemsRendered:b,initialItemCount:p,...f}},Ke(Zn,r1,cf,Xo,Go,Zo,jr,of),{singleton:!0}),nE=Te(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(se(U(s,ye(a),pe(([,l])=>l!==0),ye(i,e,t,r,n),te(([[,l],u,c,d,f,h=[]])=>a1(l,u,c,d,f,h))),o),{}),Ke(Zn,Xo,_i,jr),{singleton:!0}),o1=Te(([{scrollVelocity:e}])=>{const t=K(!1),n=Ie(),r=K(!1);return se(U(e,ye(r,t,n),pe(([i,a])=>!!a),te(([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}),Ue()),t),We(U(yt(t,e,n),ye(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(Zo),{singleton:!0}),rE=Te(([{topItemsIndexes:e}])=>{const t=K(0);return se(U(t,pe(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(_i)),s1=Te(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Ie(),o=At(U(yt(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(be(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Vt,_i),{singleton:!0});function l1(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const iE=l1(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),aE=Te(([{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:f},{log:h},{recalcInProgress:g}])=>{const m=rn(U(l,ye(s),Nn(([,b,v,y],[{items:w,totalCount:C,bottom:S,offsetBottom:I},D])=>{const $=S+I;let R=0;return v===C&&b.length>0&&w.length>0&&(w[0].originalIndex===0&&b[0].originalIndex===0||(R=$-y,R!==0&&(R+=D))),[R,w,C,$]},[0,[],0,0]),pe(([b])=>b!==0),ye(t,o,r,a,h,g),pe(([,b,v,y,,,w])=>!w&&!y&&b!==0&&v===po),te(([[b],,,,,v])=>(v("Upward scrolling compensation",{amount:b},an.DEBUG),b))));function p(b){b>0?(ve(e,{top:-b,behavior:"auto"}),ve(n,0)):(ve(n,0),ve(e,{top:-b,behavior:"auto"}))}return We(U(m,ye(n,i)),([b,v,y])=>{y&&iE()?ve(n,v-b):p(-b)}),We(U(yt(At(i,!1),n,g),pe(([b,v,y])=>!b&&!y&&v!==0),te(([b,v])=>v),Er(1)),p),se(U(c,te(b=>({top:-b}))),e),We(U(u,ye(d,f),te(([b,{lastSize:v,groupIndices:y,sizeTree:w},C])=>{function S(I){return I*(v+C)}if(y.length===0)return S(b);{let I=0;const D=go(w,0);let $=0,R=0;for(;$<b;){$++,I+=D;let _=y.length===R+1?1/0:y[R+1]-y[R]-1;$+_>b&&(I-=D,_=b-$+1),$+=_,I+=S(_),R++}return I}})),b=>{ve(n,b),requestAnimationFrame(()=>{ve(e,{top:b}),requestAnimationFrame(()=>{ve(n,0),ve(g,!1)})})}),{deviation:n}},Ke(Vt,Zo,_i,Zn,Lr,of)),oE=Te(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return We(U(e,ye(r),pe(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{zn(U(n,da(1),pe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{ve(t,i)})})}),{initialScrollTop:r}},Ke(jr,Vt,_i),{singleton:!0}),sE=Te(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=At(U(yt(n,e,t),pe(([i])=>i),te(([,i,a])=>Math.max(0,i-a)),Er(0),Ue()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Vt,s1),{singleton:!0}),df=Te(([{scrollTo:e,scrollContainerState:t}])=>{const n=Ie(),r=Ie(),i=Ie(),a=K(!1),o=K(void 0);return se(U(yt(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(U(e,ye(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Vt)),lE=({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,uE=Te(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Ie();return se(U(c,ye(e,i,t,a,o,s,r),ye(n),te(([[d,f,h,g,m,p,b,v],y])=>{const{done:w,behavior:C,align:S,calculateViewLocation:I=lE,...D}=d,$=e1(d,f,g-1),R=mo($,f.offsetTree,y)+m+p,_=R+$n(f.sizeTree,$)[1],P=v+p,M=v+h-b,A=I({itemTop:R,itemBottom:_,viewportTop:P,viewportBottom:M,locationParams:{behavior:C,align:S,...D}});return A?w&&zn(U(l,pe(B=>B===!1),da(Rt(l)?1:2)),w):w&&w(),A}),pe(d=>d!==null)),u),{scrollIntoView:c}},Ke(Zn,Vt,Go,_i,Lr),{singleton:!0}),cE=Te(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Ie(),u=K(void 0),c=K(null),d=K(null);return se(o,c),se(s,d),We(U(l,ye(e,n,a,c,d)),([f,h,g,m,p,b])=>{const v=GS(h.sizeTree);m&&p!==null&&b!==null&&(g=p.scrollTop-b.offsetTop),f({ranges:v,scrollTop:g})}),se(U(u,pe(tf),te(dE)),r),se(U(i,ye(u),pe(([,f])=>f!==void 0),Ue(),te(([,f])=>f.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(Zn,Vt,Xo,jr,df));function dE(e){return{offset:e.scrollTop,index:0,align:"start"}}const fE=Te(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(cf,nE,jr,o1,s1,oE,sE,df,uE,Lr)),u1=Te(([{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:f,scrolledToInitialItem:h,initialItemFinalLocationReached:g},m,p,b,{listState:v,topItemsIndexes:y,...w},{scrollToIndex:C},S,{topItemCount:I},{groupCounts:D},$])=>(se(w.rangeChanged,$.scrollSeekRangeChanged),se(U($.windowViewportRect,te(R=>R.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:f,scrolledToInitialItem:h,initialItemFinalLocationReached:g,topItemsIndexes:y,topItemCount:I,groupCounts:D,fixedItemHeight:n,defaultItemHeight:r,gap:c,...b,statefulTotalCount:u,listState:v,scrollToIndex:C,trackItemSizes:i,itemSize:a,groupIndices:l,...w,...$,...m,sizes:d,...p}),Ke(Zn,Xo,Vt,cE,QS,_i,Go,aE,rE,r1,fE)),qu="-webkit-sticky",Eg="sticky",c1=l1(()=>{if(typeof document>"u")return Eg;const e=document.createElement("div");return e.style.position=qu,e.style.position===qu?qu:Eg});function ff(e,t){const n=x.useRef(null),r=x.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const f=t.getBoundingClientRect(),h=l.top-f.top;c=f.height-Math.max(0,h),d=h+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}=af(r),o=x.useCallback(()=>{r(a.current)},[r,a]);return x.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 pu=x.createContext(void 0),d1=x.createContext(void 0);function hf(e){return e}const hE=Te(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(hf),a=K("div"),o=K(Ii),s=(l,u=null)=>At(U(r,te(c=>c[l]),Ue()),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")}}),gE=Te(([e,t])=>({...e,...t}),Ke(u1,hE)),mE=({height:e})=>x.createElement("div",{style:{height:e}}),pE={position:c1(),zIndex:1,overflowAnchor:"none"},bE={overflowAnchor:"none"},Ig=x.memo(function({showTopList:t=!1}){const n=De("listState"),r=pn("sizeRanges"),i=De("useWindowScroll"),a=De("customScrollParent"),o=pn("windowScrollContainerState"),s=pn("scrollContainerState"),l=a||i?o:s,u=De("itemContent"),c=De("context"),d=De("groupContent"),f=De("trackItemSizes"),h=De("itemSize"),g=De("log"),m=pn("gap"),{callbackRef:p}=Gb(r,h,f,t?Ii:l,g,m,a),[b,v]=x.useState(0);pf("deviation",A=>{b!==A&&v(A)});const y=De("EmptyPlaceholder"),w=De("ScrollSeekPlaceholder")||mE,C=De("ListComponent"),S=De("ItemComponent"),I=De("GroupComponent"),D=De("computeItemKey"),$=De("isSeeking"),R=De("groupIndices").length>0,_=De("alignToBottom"),P=De("initialItemFinalLocationReached"),M=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:b!==0?b:_?"auto":0,...P?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&y?x.createElement(y,it(y,c)):x.createElement(C,{...it(C,c),ref:p,style:M,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const B=A.originalIndex,T=D(B+n.firstItemIndex,A.data,c);return $?x.createElement(w,{...it(w,c),key:T,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?x.createElement(I,{...it(I,c),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,style:pE},d(A.index,c)):x.createElement(S,{...it(S,c),...f1(S,A.data),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:bE},R?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),vE={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},xa=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),yE={width:"100%",position:c1(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function f1(e,t){return{item:typeof e=="string"?void 0:t}}const xE=x.memo(function(){const t=De("HeaderComponent"),n=pn("headerHeight"),r=De("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),CE=x.memo(function(){const t=De("FooterComponent"),n=pn("footerHeight"),r=De("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null});function gf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),f=n("context"),{scrollerRef:h,scrollByCallback:g,scrollToCallback:m}=Xb(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),x.createElement(u,{ref:h,style:{...vE,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,f)},o)})}function mf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),f=n("deviation"),h=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:p,scrollToCallback:b}=Xb(l,c,u,Ii,h);return AS(()=>(m.current=h||window,()=>{m.current=null}),[m,h]),t("windowScrollTo",b),t("scrollBy",p),x.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+f}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const wE=({children:e})=>{const t=x.useContext(pu),n=pn("viewportHeight"),r=pn("fixedItemHeight"),i=De("alignToBottom"),a=Gn(fo(n,o=>_n(o,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:xa(i),ref:a,"data-viewport-type":"element"},e)},DE=({children:e})=>{const t=x.useContext(pu),n=pn("windowViewportRect"),r=pn("fixedItemHeight"),i=De("customScrollParent"),a=ff(n,i),o=De("alignToBottom");return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(o),"data-viewport-type":"window"},e)},SE=({children:e})=>{const t=De("TopItemListComponent")||"div",n=De("headerHeight"),r={...yE,marginTop:`${n}px`},i=De("context");return x.createElement(t,{style:r,...it(t,i)},e)},EE=x.memo(function(t){const n=De("useWindowScroll"),r=De("topItemsIndexes").length>0,i=De("customScrollParent"),a=i||n?$E:_E,o=i||n?DE:wE;return x.createElement(a,{...t},r&&x.createElement(SE,null,x.createElement(Ig,{showTopList:!0})),x.createElement(o,null,x.createElement(xE,null),x.createElement(Ig,null),x.createElement(CE,null)))}),{Component:IE,usePublisher:pn,useEmitterValue:De,useEmitter:pf}=rf(gE,{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"}},EE),_E=gf({usePublisher:pn,useEmitterValue:De,useEmitter:pf}),$E=mf({usePublisher:pn,useEmitterValue:De,useEmitter:pf}),RE=IE,_g={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},AE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:$g,ceil:Rg,floor:$l,min:Qu,max:Ja}=Math;function FE(e){return{...AE,items:e}}function Ag(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 PE(e,t){return e&&e.column===t.column&&e.row===t.row}function gs(e,t){return e&&e.width===t.width&&e.height===t.height}const TE=Te(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,f,{propsReady:h,didMount:g},{windowViewportRect:m,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,windowScrollTo:y},w])=>{const C=K(0),S=K(0),I=K(_g),D=K({height:0,width:0}),$=K({height:0,width:0}),R=Ie(),_=Ie(),P=K(0),M=K(null),A=K({row:0,column:0}),B=Ie(),T=Ie(),F=K(!1),V=K(0),j=K(!0),N=K(!1);We(U(g,ye(V),pe(([O,G])=>!!G)),()=>{ve(j,!1),ve(S,0)}),We(U(yt(g,j,$,D,V,N),pe(([O,G,J,re,,fe])=>O&&!G&&J.height!==0&&re.height!==0&&!fe)),([,,,,O])=>{ve(N,!0),lf(1,()=>{ve(R,O)}),zn(U(r),()=>{ve(n,[0,0]),ve(j,!0)})}),se(U(T,pe(O=>O!=null&&O.scrollTop>0),Vn(0)),S),We(U(g,ye(T),pe(([,O])=>O!=null)),([,O])=>{O&&(ve(D,O.viewport),ve($,O==null?void 0:O.item),ve(A,O.gap),O.scrollTop>0&&(ve(F,!0),zn(U(r,da(1)),G=>{ve(F,!1)}),ve(o,{top:O.scrollTop})))}),se(U(D,te(({height:O})=>O)),i),se(U(yt(be(D,gs),be($,gs),be(A,(O,G)=>O&&O.column===G.column&&O.row===G.row),be(r)),te(([O,G,J,re])=>({viewport:O,item:G,gap:J,scrollTop:re}))),B),se(U(yt(be(C),t,be(A,PE),be($,gs),be(D,gs),be(M),be(S),be(F),be(j),be(V)),pe(([,,,,,,,O])=>!O),te(([O,[G,J],re,fe,le,X,Ae,,Me,Xe])=>{const{row:et,column:ee}=re,{height:ne,width:he}=fe,{width:Oe}=le;if(Ae===0&&(O===0||Oe===0))return _g;if(he===0){const Fi=uf(Xe,O),Da=Fi===0?Math.max(Ae-1,0):Fi;return FE(Ag(Fi,Da,X))}const ut=h1(Oe,he,ee);let Se,xe;Me?G===0&&J===0&&Ae>0?(Se=0,xe=Ae-1):(Se=ut*$l((G+et)/(ne+et)),xe=ut*Rg((J+et)/(ne+et))-1,xe=Qu(O-1,Ja(xe,ut-1)),Se=Qu(xe,Ja(0,Se))):(Se=0,xe=-1);const Ot=Ag(Se,xe,X),{top:Nt,bottom:Lt}=Fg(le,re,fe,Ot),un=Rg(O/ut),as=un*ne+(un-1)*et-Lt;return{items:Ot,offsetTop:Nt,offsetBottom:as,top:Nt,bottom:Lt,itemHeight:ne,itemWidth:he}})),I),se(U(M,pe(O=>O!==null),te(O=>O.length)),C),se(U(yt(D,$,I,A),pe(([O,G,{items:J}])=>J.length>0&&G.height!==0&&O.height!==0),te(([O,G,{items:J},re])=>{const{top:fe,bottom:le}=Fg(O,re,G,J);return[fe,le]}),Ue(bo)),n);const Z=K(!1);se(U(r,ye(Z),te(([O,G])=>G||O!==0)),Z);const z=rn(U(be(I),pe(({items:O})=>O.length>0),ye(C,Z),pe(([{items:O},G,J])=>J&&O[O.length-1].index===G-1),te(([,O])=>O-1),Ue())),q=rn(U(be(I),pe(({items:O})=>O.length>0&&O[0].index===0),Vn(0),Ue())),W=rn(U(be(I),ye(F),pe(([{items:O},G])=>O.length>0&&!G),te(([{items:O}])=>({startIndex:O[0].index,endIndex:O[O.length-1].index})),Ue(i1),Er(0)));se(W,f.scrollSeekRangeChanged),se(U(R,ye(D,$,C,A),te(([O,G,J,re,fe])=>{const le=n1(O),{align:X,behavior:Ae,offset:Me}=le;let Xe=le.index;Xe==="LAST"&&(Xe=re-1),Xe=Ja(0,Xe,Qu(re-1,Xe));let et=Kc(G,fe,J,Xe);return X==="end"?et=$g(et-G.height+J.height):X==="center"&&(et=$g(et-G.height/2+J.height/2)),Me&&(et+=Me),{top:et,behavior:Ae}})),o);const H=At(U(I,te(O=>O.offsetBottom+O.bottom)),0);return se(U(m,te(O=>({width:O.visibleWidth,height:O.visibleHeight}))),D),{data:M,totalCount:C,viewportDimensions:D,itemDimensions:$,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:R,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:y,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,deviation:P,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:S,gap:A,restoreStateFrom:T,...f,initialTopMostItemIndex:V,gridState:I,totalListHeight:H,...d,startReached:q,endReached:z,rangeChanged:W,stateChanged:B,propsReady:h,stateRestoreInProgress:F,...w}},Ke(cf,Vt,Zo,o1,jr,df,Lr));function Fg(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Kc(e,t,n,r[0].index),o=Kc(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Kc(e,t,n,r){const i=h1(e.width,n.width,t.column),a=$l(r/i),o=a*n.height+Ja(0,a-1)*t.row;return o>0?o+t.row:o}function h1(e,t,n){return Ja(1,$l((e+n)/($l(t)+n)))}const ME=Te(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(hf),o=K("div"),s=K(Ii),l=(u,c=null)=>At(U(t,te(d=>d[u]),Ue()),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")}}),kE=Te(([e,t])=>({...e,...t}),Ke(TE,ME)),BE=x.memo(function(){const t=nt("gridState"),n=nt("listClassName"),r=nt("itemClassName"),i=nt("itemContent"),a=nt("computeItemKey"),o=nt("isSeeking"),s=En("scrollHeight"),l=nt("ItemComponent"),u=nt("ListComponent"),c=nt("ScrollSeekPlaceholder"),d=nt("context"),f=En("itemDimensions"),h=En("gap"),g=nt("log"),m=nt("stateRestoreInProgress"),p=Gn(b=>{const v=b.parentElement.parentElement.scrollHeight;s(v);const y=b.firstChild;if(y){const{width:w,height:C}=y.getBoundingClientRect();f({width:w,height:C})}h({row:Pg("row-gap",getComputedStyle(b).rowGap,g),column:Pg("column-gap",getComputedStyle(b).columnGap,g)})});return m?null:x.createElement(u,{ref:p,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(b=>{const v=a(b.index,b.data,d);return o?x.createElement(c,{key:v,...it(c,d),index:b.index,height:t.itemHeight,width:t.itemWidth}):x.createElement(l,{...it(l,d),className:r,"data-index":b.index,key:v},i(b.index,b.data,d))}))}),VE=x.memo(function(){const t=nt("HeaderComponent"),n=En("headerHeight"),r=nt("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=nt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),OE=x.memo(function(){const t=nt("FooterComponent"),n=En("footerHeight"),r=nt("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=nt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),NE=({children:e})=>{const t=x.useContext(d1),n=En("itemDimensions"),r=En("viewportDimensions"),i=Gn(a=>{r(a.getBoundingClientRect())});return x.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),x.createElement("div",{style:xa(!1),ref:i},e)},LE=({children:e})=>{const t=x.useContext(d1),n=En("windowViewportRect"),r=En("itemDimensions"),i=nt("customScrollParent"),a=ff(n,i);return x.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(!1)},e)},jE=x.memo(function({...t}){const n=nt("useWindowScroll"),r=nt("customScrollParent"),i=r||n?WE:HE,a=r||n?LE:NE;return x.createElement(i,{...t},x.createElement(a,null,x.createElement(VE,null),x.createElement(BE,null),x.createElement(OE,null)))}),{Component:vB,usePublisher:En,useEmitterValue:nt,useEmitter:g1}=rf(kE,{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"}},jE),HE=gf({usePublisher:En,useEmitterValue:nt,useEmitter:g1}),WE=mf({usePublisher:En,useEmitterValue:nt,useEmitter:g1});function Pg(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,an.WARN),t==="normal"?0:parseInt(t??"0",10)}const zE=Te(()=>{const e=K(l=>x.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(hf),o=K(Ii),s=(l,u=null)=>At(U(i,te(c=>c[l]),Ue()),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")}}),GE=Te(([e,t])=>({...e,...t}),Ke(u1,zE)),ZE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e}})),XE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e,padding:0,border:0}})),YE={overflowAnchor:"none"},UE=x.memo(function(){const t=Le("listState"),n=In("sizeRanges"),r=Le("useWindowScroll"),i=Le("customScrollParent"),a=In("windowScrollContainerState"),o=In("scrollContainerState"),s=i||r?a:o,l=Le("itemContent"),u=Le("trackItemSizes"),c=Le("itemSize"),d=Le("log"),{callbackRef:f,ref:h}=Gb(n,c,u,s,d,void 0,i),[g,m]=x.useState(0);bf("deviation",T=>{g!==T&&(h.current.style.marginTop=`${T}px`,m(T))});const p=Le("EmptyPlaceholder"),b=Le("ScrollSeekPlaceholder")||ZE,v=Le("FillerRow")||XE,y=Le("TableBodyComponent"),w=Le("TableRowComponent"),C=Le("computeItemKey"),S=Le("isSeeking"),I=Le("paddingTopAddition"),D=Le("firstItemIndex"),$=Le("statefulTotalCount"),R=Le("context");if($===0&&p)return x.createElement(p,it(p,R));const _=t.offsetTop+I+g,P=t.offsetBottom,M=_>0?x.createElement(v,{height:_,key:"padding-top",context:R}):null,A=P>0?x.createElement(v,{height:P,key:"padding-bottom",context:R}):null,B=t.items.map(T=>{const F=T.originalIndex,V=C(F+D,T.data,R);return S?x.createElement(b,{...it(b,R),key:V,index:T.index,height:T.size,type:T.type||"item"}):x.createElement(w,{...it(w,R),...f1(w,T.data),key:V,"data-index":F,"data-known-size":T.size,"data-item-index":T.index,style:YE},l(T.index,T.data,R))});return x.createElement(y,{ref:f,"data-testid":"virtuoso-item-list",...it(y,R)},[M,...B,A])}),JE=({children:e})=>{const t=x.useContext(pu),n=In("viewportHeight"),r=In("fixedItemHeight"),i=Gn(fo(n,a=>_n(a,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:xa(!1),ref:i,"data-viewport-type":"element"},e)},KE=({children:e})=>{const t=x.useContext(pu),n=In("windowViewportRect"),r=In("fixedItemHeight"),i=Le("customScrollParent"),a=ff(n,i);return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(!1),"data-viewport-type":"window"},e)},qE=x.memo(function(t){const n=Le("useWindowScroll"),r=Le("customScrollParent"),i=In("fixedHeaderHeight"),a=In("fixedFooterHeight"),o=Le("fixedHeaderContent"),s=Le("fixedFooterContent"),l=Le("context"),u=Gn(fo(i,v=>_n(v,"height"))),c=Gn(fo(a,v=>_n(v,"height"))),d=r||n?tI:eI,f=r||n?KE:JE,h=Le("TableComponent"),g=Le("TableHeadComponent"),m=Le("TableFooterComponent"),p=o?x.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,b=s?x.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(m,l)},s()):null;return x.createElement(d,{...t},x.createElement(f,null,x.createElement(h,{style:{borderSpacing:0,overflowAnchor:"none"},...it(h,l)},[p,x.createElement(UE,{key:"TableBody"}),b])))}),{Component:QE,usePublisher:In,useEmitterValue:Le,useEmitter:bf}=rf(GE,{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"}},qE),eI=gf({usePublisher:In,useEmitterValue:Le,useEmitter:bf}),tI=mf({usePublisher:In,useEmitterValue:Le,useEmitter:bf}),nI=QE,rI=({children:e,...t})=>E.jsx(E.Fragment,{children:e(t)}),iI=({children:e,...t})=>E.jsx(E.Fragment,{children:x.isValidElement(e)&&E.jsx(E.Fragment,{children:x.cloneElement(e,t)})}),vf=x.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:f="manual",itemSizeNames:h=[],overscan:g=null,component:m={},idContainer:p="",triggerCalCulateContainer:b="",accumulationHeight:v=0,delayTriggerCalculateHeight:y=0,increaseViewportBy:w=()=>0,context:C={},endReached:S}=e,[I,D]=x.useState(0),$=()=>{if(o==="min-max"){const P=(a+1)*s;return{height:a>u?l:I>P?I:P}}return o==="container"?{height:I}:{}},R=P=>{var B;const M=P.getAttribute("data-index");let A=((B=P.getBoundingClientRect())==null?void 0:B.height)||0;return h==null||h.forEach(T=>{var F,V;A+=((V=(F=document.querySelector(`[${T}="${M}"]`))==null?void 0:F.getBoundingClientRect())==null?void 0:V.height)??0}),A},_=()=>{var P;if(p&&o==="container"){const M=((P=document==null?void 0:document.getElementById(p))==null?void 0:P.offsetHeight)??0;D(M-v)}};return x.useEffect(()=>{const P=setTimeout(_,y);return window==null||window.addEventListener("resize",_),window==null||window.addEventListener("load",_),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",_),window==null||window.removeEventListener("load",_)}},[o,b]),E.jsx("div",{className:`1ru-w-full ${n}`,children:E.jsx(nI,{context:C,ref:t,overscan:typeof g=="function"?g(o==="container"?I:l):o==="container"?I:l,totalListHeightChanged:P=>o==="min-max"?D(P):null,style:$(),totalCount:a,computeItemKey:r,itemSize:x.useCallback(P=>f==="manual"?i(P):R(P),[]),components:{TableRow:iI,...m},fixedHeaderContent:c,itemContent:(...P)=>d(rI,...P),endReached:S,increaseViewportBy:w(o==="container"?I:l)})})});vf.displayName="TableVirtualization";const aI="_sorting_1i6eh_39",er={"container-table":"_container-table_1i6eh_1","payhere-reguler":"_payhere-reguler_1i6eh_1","laba-small":"_laba-small_1i6eh_1","laba-reguler":"_laba-reguler_1i6eh_1","table-root":"_table-root_1i6eh_5","table-scroll-top":"_table-scroll-top_1i6eh_9","pointer-laba":"_pointer-laba_1i6eh_16","pointer-payhere":"_pointer-payhere_1i6eh_20",sorting:aI,"laba-grey-02":"_laba-grey-02_1i6eh_53"},Vi="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 oI(e,t=null){const[n,r]=x.useState(!1);return x.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 sI=e=>{const t=f=>{const h=new Date,g=f.getTime()-h.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]=x.useState(t(n)),[a,o]=x.useState(e.running??!1),[s,l]=x.useState(()=>e==null?void 0:e.callbackDone);return x.useEffect(()=>{let f;return a&&r>0?f=setInterval(()=>{i(h=>Math.max(h-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{f&&clearInterval(f)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:f=>{i(typeof f=="number"?f:t(f??n))},setCallbackDone:f=>l(()=>f)}};function lI(e,t=0){const n=x.useRef({promise:null,resolve:null,reject:null,timeout:null});return x.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 yf=typeof window<"u"?x.useLayoutEffect:x.useEffect,uI=(e,t)=>{const[n,r]=x.useState({width:0,height:0}),[i,a]=x.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=x.useRef(null);return yf(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const f of d){const{width:h,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w}=f.contentRect;a({width:h,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w})}};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 cI(e){const[t,n]=x.useState(e),r=x.useRef(t);return x.useEffect(()=>{r.current=t},[t]),[t,n,r]}function dI(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 fI(...e){return t=>{e.forEach(n=>{dI(n,t)})}}function xf(...e){return x.useMemo(()=>fI(...e),e)}function Cf(e){const t=x.useRef(e);return Hd(e,t.current)||(t.current=e),t.current}function Yo(e,t){const n=t.map(Cf);x.useEffect(e,n)}function hI({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){x.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const gI=(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},Kt=()=>({kind:{"payhere-reguler":er["payhere-reguler"],"laba-reguler":er["laba-reguler"],"laba-small":er["laba-small"]},pointer:{"payhere-reguler":er["pointer-payhere"],"laba-reguler":er["pointer-laba"],"laba-small":er["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:E.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":er["laba-grey-02"]}}),mI=({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:f,renderSubComponent:h})=>E.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:E.jsxs("table",{className:n,children:[E.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>E.jsx("tr",{children:g.headers.map(m=>E.jsx("th",{style:gI(s,m),colSpan:m.colSpan,children:m.isPlaceholder?null:E.jsxs("div",{className:m.column.getCanSort()?er.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[co(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.id))},g.id))}),E.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>E.jsxs(x.Fragment,{children:[E.jsx("tr",{onClick:p=>{p.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:o(g),children:g.getVisibleCells().map(p=>{var b,v,y;return E.jsx("td",{style:typeof((b=p.column.columnDef.meta)==null?void 0:b.styleTd)=="function"?p.column.columnDef.meta.styleTd(g.original,g):{},className:typeof((v=p.column.columnDef.meta)==null?void 0:v.classNameTd)=="function"?(y=p.column.columnDef.meta)==null?void 0:y.classNameTd(g.original,g):"",children:co(p.column.columnDef.cell,p.getContext())},p.id)})},g.id),g.getIsExpanded()&&typeof h=="function"&&E.jsx("tr",{children:E.jsx("td",{colSpan:g.getVisibleCells().length,children:h(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&x.isValidElement(f)&&E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:f})})]})]})}),m1=x.forwardRef((e,t)=>{const{context:n,...r}=e;return E.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});m1.displayName="VirtualizationHead";const pI=({style:e,context:t,...n})=>E.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:e}),bI=({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:f})=>{var m,p,b;const[h,g]=x.useState(0);return E.jsx(vf,{context:{headerId:a,classNameTable:s},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((p=e.getRowModel().rows)==null?void 0:p.length)||0,typeCalculateItemSize:"auto",component:{TableHead:m1,Table:pI,EmptyPlaceholder:()=>E.jsx("tbody",{ref:v=>{var y;return g(((y=v==null?void 0:v.getBoundingClientRect())==null?void 0:y.height)??0)},children:E.jsx("tr",{children:E.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:x.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(v=>E.jsx("tr",{children:v.headers.map(y=>{var w,C;return E.jsx("th",{colSpan:y.colSpan,style:typeof((w=y.column.columnDef.meta)==null?void 0:w.styleTh)=="function"?(C=y.column.columnDef.meta)==null?void 0:C.styleTh(y.column.columnDef):{},children:y.isPlaceholder?null:E.jsxs("div",{className:y.column.getCanSort()?er.sorting:"",onClick:y.column.getToggleSortingHandler(),children:[co(y.column.columnDef.header,y.getContext()),y.column.getCanSort()&&E.jsx("span",{className:"1ru-flex-shrink-0",children:y.column.getIsSorted()==="asc"||y.column.getIsSorted()==="desc"?E.jsxs(E.Fragment,{children:[y.column.getIsSorted()==="asc"&&E.jsx(E.Fragment,{children:l}),y.column.getIsSorted()==="desc"&&E.jsx(E.Fragment,{children:u})]}):E.jsx(E.Fragment,{})})]})},y.id)})},v.id)),itemContent:(v,y)=>{var C,S;const w=(S=(C=e.getRowModel())==null?void 0:C.rows)==null?void 0:S[y];return E.jsx(v,{children:({...I})=>E.jsxs(x.Fragment,{children:[E.jsx("tr",{...I,onClick:D=>{D.stopPropagation(),r&&typeof n=="function"&&n(w.original,w)},className:r?c:"",id:o(w),children:w.getVisibleCells().map(D=>{var $,R,_;return E.jsx(E.Fragment,{children:E.jsx("td",{style:typeof(($=D.column.columnDef.meta)==null?void 0:$.styleTd)=="function"?D.column.columnDef.meta.styleTd(w.original,w):{},className:typeof((R=D.column.columnDef.meta)==null?void 0:R.classNameTd)=="function"?(_=D.column.columnDef.meta)==null?void 0:_.classNameTd(w.original,w):"",children:co(D.column.columnDef.cell,D.getContext())},D.id)})})}),w.getIsExpanded()&&typeof f=="function"&&E.jsx("tr",{"data-sub-component":y,children:E.jsx("td",{colSpan:w.getVisibleCells().length,children:f(w.original,w)})})]},w.id)},w.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((b=e.getRowModel().rows)==null?void 0:b.length)||0)>0?0:h),itemSizeNames:typeof f=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},vI=({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:f="laba-reguler",componentSortASC:h,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:p,variant:b,renderSubComponent:v})=>{const y=()=>{if(![void 0,"undefined"].includes(d)){const w=document.querySelector(`[data-calculate-height-header="${d}"]`);let C=0;const S=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return S==null||S.forEach(I=>{C+=I.offsetHeight}),C>c?c+w.offsetHeight:0}return c};return Yo(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),E.jsxs(E.Fragment,{children:[!o&&E.jsx(mI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Kt().kind[f]} ${b?Kt().variant[b]:""}
|
74
|
-
${m?Kt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,maxHeight:y(),idCalculateHeight:d,componentSortASC:x.isValidElement(h)?h:Kt().sortingIcon[f].asc,componentSortDESC:x.isValidElement(g)?g:Kt().sortingIcon[f].desc,classNamePointer:Kt().pointer[f],emptyPlaceholder:p,renderSubComponent:v}),o&&
|
75
|
-
${m?Kt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:x.isValidElement(h)?h:Kt().sortingIcon[f].asc,componentSortDESC:x.isValidElement(g)?g:Kt().sortingIcon[f].desc,classNamePointer:Kt().pointer[f],emptyPlaceholder:p,renderSubComponent:v})]})},yI=({children:e,...t})=>
|
73
|
+
*/function co(e,t){return e?pS(e)?L.createElement(e,t):e:null}function pS(e){return bS(e)||typeof e=="function"||vS(e)}function bS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function vS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=L.useState(()=>({current:Lb(t)})),[r,i]=L.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 xS=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:mb,ColumnFiltering:Sb,ColumnGrouping:Eb,ColumnOrdering:_b,ColumnPinning:$b,ColumnSizing:Rb,ColumnVisibility:Fb,GlobalFaceting:Pb,GlobalFiltering:Tb,Headers:gb,RowExpanding:Mb,RowPagination:kb,RowPinning:Bb,RowSelection:Vb,RowSorting:Nb,_getVisibleLeafColumns:Qi,aggregationFns:Xs,buildHeaderGroups:ka,createCell:fb,createColumn:hb,createColumnHelper:L5,createRow:zo,createTable:Lb,defaultColumnSizing:Ba,expandRows:ef,filterFns:Bn,flattenBy:Kd,flexRender:co,functionalUpdate:or,getCoreRowModel:iS,getExpandedRowModel:aS,getFacetedMinMaxValues:oS,getFacetedRowModel:uS,getFacetedUniqueValues:cS,getFilteredRowModel:dS,getGroupedRowModel:fS,getMemoOptions:oe,getPaginationRowModel:gS,getSortedRowModel:mS,isFunction:Wo,isNumberArray:db,isRowSelected:du,isSubRowSelected:Dl,makeStateUpdater:Zt,memo:ae,noop:j5,orderColumns:Ib,passiveEventSupported:Ab,reSplitAlphaNumeric:Sl,selectRowsFn:Ys,shouldAutoRemoveFilter:Wc,sortingFns:Zi,useReactTable:yS},Symbol.toStringTag,{value:"Module"})),fu=0,Nr=1,ya=2,Hb=4;function fo(e,t){return n=>e(t(n))}function CS(e,t){return t(e)}function Wb(e,t){return n=>e(t,n)}function gg(e,t){return()=>e(t)}function hu(e,t){return t(e),e}function Ke(...e){return e}function wS(e){e()}function mg(e){return()=>e}function DS(...e){return()=>{e.map(wS)}}function tf(e){return e!==void 0}function Ii(){}function We(e,t){return e(Nr,t)}function ve(e,t){e(fu,t)}function nf(e){e(ya)}function Rt(e){return e(Hb)}function se(e,t){return We(e,Wb(t,fu))}function zn(e,t){const n=e(Nr,r=>{n(),t(r)});return n}function _e(){const e=[];return(t,n)=>{switch(t){case ya:e.splice(0,e.length);return;case Nr:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case fu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=_e();return(r,i)=>{switch(r){case Nr:i(t);break;case fu:t=i;break;case Hb:return t}return n(r,i)}}function SS(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Nr:return a?n===a?void 0:(r(),n=a,t=We(e,a),t):(r(),Ii);case ya:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function rn(e){return hu(_e(),t=>se(e,t))}function At(e,t){return hu(K(t),n=>se(e,n))}function ES(...e){return t=>e.reduceRight(CS,t)}function U(e,...t){const n=ES(...t);return(r,i)=>{switch(r){case Nr:return We(e,n(i));case ya:nf(e);return}}}function zb(e,t){return e===t}function Ue(e=zb){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function pe(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>fo(t,e)}function Vn(e){return t=>()=>t(e)}function Nn(e,t){return n=>r=>n(t=e(t,r))}function da(e){return t=>n=>{e>0?e--:t(n)}}function Er(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function pg(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function ye(...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);We(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 bg(...e){return function(t,n){switch(t){case Nr:return DS(...e.map(r=>We(r,n)));case ya:return;default:throw new Error(`unrecognized action ${t}`)}}}function be(e,t=zb){return U(e,Ue(t))}function yt(...e){const t=_e(),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);We(a,l=>{n[o]=l,r=r|s,r===i&&ve(t,n)})}),function(a,o){switch(a){case Nr:return r===i&&o(n),We(t,o);case ya:return nf(t);default:throw new Error(`unrecognized action ${a}`)}}}function Te(e,t=[],{singleton:n}={singleton:!0}){return{id:IS(),constructor:e,dependencies:t,singleton:n}}const IS=()=>Symbol();function _S(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 $S(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 hs=typeof document<"u"?x.useLayoutEffect:x.useEffect;function rf(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=x.createContext({});function l(b,v){b.propsReady&&ve(b.propsReady,!1);for(const y of r){const D=b[t.required[y]];ve(D,v[y])}for(const y of i)if(y in v){const D=b[t.optional[y]];ve(D,v[y])}b.propsReady&&ve(b.propsReady,!0)}function u(b){return a.reduce((v,y)=>(v[y]=D=>{const C=b[t.methods[y]];ve(C,D)},v),{})}function c(b){return o.reduce((v,y)=>(v[y]=SS(b[t.events[y]]),v),{})}const d=x.forwardRef((b,v)=>{const{children:y,...D}=b,[C]=x.useState(()=>hu(_S(e),I=>l(I,D))),[E]=x.useState(gg(c,C));return hs(()=>{for(const I of o)I in D&&We(E[I],D[I]);return()=>{Object.values(E).map(nf)}},[D,E,C]),hs(()=>{l(C,D)}),x.useImperativeHandle(v,mg(u(C))),x.createElement(s.Provider,{value:C},n?x.createElement(n,$S([...r,...i,...o],D),y):y)}),f=b=>x.useCallback(Wb(ve,x.useContext(s)[b]),[b]),h=b=>{const y=x.useContext(s)[b],D=x.useCallback(C=>We(y,C),[y]);return x.useSyncExternalStore(D,()=>Rt(y),()=>Rt(y))},g=b=>{const y=x.useContext(s)[b],[D,C]=x.useState(gg(Rt,y));return hs(()=>We(y,E=>{E!==D&&C(mg(E))}),[y,D]),D},m=x.version.startsWith("18")?h:g;return{Component:d,usePublisher:f,useEmitterValue:m,useEmitter:(b,v)=>{const D=x.useContext(s)[b];hs(()=>We(D,v),[v,D])}}}const RS=typeof document<"u"?x.useLayoutEffect:x.useEffect,AS=RS;var an=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(an||{});const FS={0:"debug",1:"log",2:"warn",3:"error"},PS=()=>typeof globalThis>"u"?window:globalThis,Lr=Te(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=PS().VIRTUOSO_LOG_LEVEL)!=null?a:Rt(e);i>=o&&console[FS[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function af(e,t=!0){const n=x.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=x.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 Gn(e,t=!0){return af(e,t).callbackRef}function Gb(e,t,n,r,i,a,o){const s=x.useCallback(l=>{const u=TS(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",f=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,h=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(f,0),scrollHeight:h,viewportHeight:g}),a==null||a(MS("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return af(s,n)}function TS(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},an.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 MS(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,an.WARN),t==="normal"?0:parseInt(t??"0",10)}function _n(e,t){return Math.round(e.getBoundingClientRect()[t])}function Zb(e,t){return Math.abs(e-t)<1.01}function Xb(e,t,n,r=Ii,i){const a=x.useRef(null),o=x.useRef(null),s=x.useRef(null),l=x.useCallback(d=>{const f=d.target,h=f===window||f===document,g=h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,m=h?document.documentElement.scrollHeight:f.scrollHeight,p=h?window.innerHeight:f.offsetHeight,b=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:p})};d.suppressFlushSync?b():Lo.flushSync(b),o.current!==null&&(g===o.current||g<=0||g===m-p)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);x.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 f=a.current;if(!f||"offsetHeight"in f&&f.offsetHeight===0)return;const h=d.behavior==="smooth";let g,m,p;f===window?(m=Math.max(_n(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,p=document.documentElement.scrollTop):(m=f.scrollHeight,g=_n(f,"height"),p=f.scrollTop);const b=m-g;if(d.top=Math.ceil(Math.max(Math.min(b,d.top),0)),Zb(g,m)||d.top===p){e({scrollTop:p,scrollHeight:m,viewportHeight:g}),h&&t(!0);return}h?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,f.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Vt=Te(()=>{const e=_e(),t=_e(),n=K(0),r=_e(),i=K(0),a=_e(),o=_e(),s=K(0),l=K(0),u=K(0),c=K(0),d=_e(),f=_e(),h=K(!1);return se(U(e,te(({scrollTop:g})=>g)),t),se(U(e,te(({scrollHeight:g})=>g)),o),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:f,statefulScrollTop:i,deviation:n,scrollingInProgress:h}},[],{singleton:!0}),ho={lvl:0};function Yb(e,t,n,r=ho,i=ho){return{k:e,v:t,lvl:n,l:r,r:i}}function Ge(e){return e===ho}function ea(){return ho}function Xc(e,t){if(Ge(e))return ho;const{k:n,l:r,r:i}=e;if(t===n){if(Ge(r))return i;if(Ge(i))return r;{const[a,o]=Ub(r);return Us(mt(e,{k:a,v:o,l:Jb(r)}))}}else return t<n?Us(mt(e,{l:Xc(r,t)})):Us(mt(e,{r:Xc(i,t)}))}function go(e,t){if(!Ge(e))return t===e.k?e.v:t<e.k?go(e.l,t):go(e.r,t)}function $n(e,t,n="k"){if(Ge(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=$n(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return $n(e.l,t,n)}function en(e,t,n){return Ge(e)?Yb(t,n,1):t===e.k?mt(e,{k:t,v:n}):t<e.k?vg(mt(e,{l:en(e.l,t,n)})):vg(mt(e,{r:en(e.r,t,n)}))}function Yc(e,t,n){if(Ge(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Yc(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Yc(o,t,n))),s}function si(e){return Ge(e)?[]:[...si(e.l),{k:e.k,v:e.v},...si(e.r)]}function Ub(e){return Ge(e.r)?[e.k,e.v]:Ub(e.r)}function Jb(e){return Ge(e.r)?e.l:Us(mt(e,{r:Jb(e.r)}))}function mt(e,t){return Yb(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 Ju(e){return Ge(e)||e.lvl>e.r.lvl}function vg(e){return Uc(qb(e))}function Us(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(Ju(t))return qb(mt(e,{lvl:r-1}));if(!Ge(t)&&!Ge(t.r))return mt(t.r,{l:mt(t,{r:t.r.l}),r:mt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(Ju(e))return Uc(mt(e,{lvl:r-1}));if(!Ge(n)&&!Ge(n.l)){const i=n.l,a=Ju(i)?n.lvl-1:n.lvl;return mt(i,{l:mt(e,{r:i.l,lvl:r-1}),r:Uc(mt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function gu(e,t,n){if(Ge(e))return[];const r=$n(e,t)[0];return kS(Yc(e,r,n))}function Kb(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 kS(e){return Kb(e,({k:t,v:n})=>({index:t,value:n}))}function Uc(e){const{r:t,lvl:n}=e;return!Ge(t)&&!Ge(t.r)&&t.lvl===n&&t.r.lvl===n?mt(t,{l:mt(e,{r:t.l}),lvl:n+1}):e}function qb(e){const{l:t}=e;return!Ge(t)&&t.lvl===e.lvl?mt(t,{r:mt(e,{l:t.r})}):e}function El(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 Qb(e,t,n){return e[El(e,t,n)]}function BS(e,t,n,r){const i=El(e,t,r),a=El(e,n,r,i);return e.slice(i,a+1)}const of=Te(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function VS(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 yg(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 OS(e,t){let n=Ge(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ge(e)){e=en(e,0,i);continue}const s=gu(e,a-1,o+1);if(s.some(VS(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:f}of s)l?(o>=c||i===f)&&(e=Xc(e,c)):(u=f!==i,l=!0),d>o&&o>=c&&f!==i&&(e=en(e,o+1,f));u&&(e=en(e,a,i))}return[e,n]}function NS(){return{offsetTree:[],sizeTree:ea(),groupOffsetTree:ea(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function sf({index:e},t){return t===e?0:t<e?-1:1}function LS({offset:e},t){return t===e?0:t<e?-1:1}function jS(e){return{index:e.index,value:e}}function HS(e,t,n,r=0){return r>0&&(t=Math.max(t,Qb(e,r,sf).offset)),Kb(BS(e,t,n,LS),jS)}function Jc(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=El(i,t-1,sf),s=i[l].offset;const c=$n(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===$n(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of gu(n,t,1/0)){const d=u-a,f=d*o+s+d*r;i.push({offset:f,size:c,index:u}),a=u,s=f,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function WS(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,an.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ge(a)&&t.length===2){const f=t[0].size,h=t[1].size;o=n.reduce((g,m)=>en(en(g,m,f),m+1,h),o)}else[o,s]=OS(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Jc(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((f,h)=>en(f,h,mo(h,l,i)),ea()),groupIndices:n}}function mo(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Qb(t,e,sf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function zS(e){return typeof e.groupIndex<"u"}function e1(e,t,n){if(zS(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=t1(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function t1(e,t){if(!mu(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function mu(e){return!Ge(e.groupOffsetTree)}function GS(e){return si(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 ZS={offsetHeight:"height",offsetWidth:"width"},Zn=Te(([{log:e},{recalcInProgress:t}])=>{const n=_e(),r=_e(),i=At(r,0),a=_e(),o=_e(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((C,E)=>_n(C,ZS[E])),f=K(void 0),h=K(0),g=NS(),m=At(U(n,ye(l,e,h),Nn(WS,g),Ue()),g),p=At(U(l,Ue(),Nn((C,E)=>({prev:C.current,current:E}),{prev:[],current:[]}),te(({prev:C})=>C)),[]);se(U(l,pe(C=>C.length>0),ye(m,h),te(([C,E,I])=>{const w=C.reduce(($,R,_)=>en($,R,mo(R,E.offsetTree,I)||_),ea());return{...E,groupIndices:C,groupOffsetTree:w}})),m),se(U(r,ye(m),pe(([C,{lastIndex:E}])=>C<E),te(([C,{lastIndex:E,lastSize:I}])=>[{startIndex:C,endIndex:E,size:I}])),n),se(u,c);const b=At(U(u,te(C=>C===void 0)),!0);se(U(c,pe(C=>C!==void 0&&Ge(Rt(m).sizeTree)),te(C=>[{startIndex:0,endIndex:0,size:C}])),n);const v=rn(U(n,ye(m),Nn(({sizes:C},[E,I])=>({changed:I!==C,sizes:I}),{changed:!1,sizes:g}),te(C=>C.changed)));We(U(s,Nn((C,E)=>({diff:C.prev-E,prev:E}),{diff:0,prev:0}),te(C=>C.diff)),C=>{const{groupIndices:E}=Rt(m);if(C>0)ve(t,!0),ve(a,C+yg(C,E));else if(C<0){const I=Rt(p);I.length>0&&(C-=yg(-C,I)),ve(o,C)}}),We(U(s,ye(e)),([C,E])=>{C<0&&E("`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},an.ERROR)});const y=rn(a);se(U(a,ye(m),te(([C,E])=>{const I=E.groupIndices.length>0,w=[],$=E.lastSize;if(I){const R=go(E.sizeTree,0);let _=0,P=0;for(;_<C;){const B=E.groupIndices[P],T=E.groupIndices.length===P+1?1/0:E.groupIndices[P+1]-B-1;w.push({startIndex:B,endIndex:B,size:R}),w.push({startIndex:B+1,endIndex:B+1+T-1,size:$}),P++,_+=T+1}const M=si(E.sizeTree);return _!==C&&M.shift(),M.reduce((B,{k:T,v:F})=>{let V=B.ranges;return B.prevSize!==0&&(V=[...B.ranges,{startIndex:B.prevIndex,endIndex:T+C-1,size:B.prevSize}]),{ranges:V,prevIndex:T+C,prevSize:F}},{ranges:w,prevIndex:C,prevSize:0}).ranges}return si(E.sizeTree).reduce((R,{k:_,v:P})=>({ranges:[...R.ranges,{startIndex:R.prevIndex,endIndex:_+C-1,size:R.prevSize}],prevIndex:_+C,prevSize:P}),{ranges:[],prevIndex:0,prevSize:$}).ranges})),n);const D=rn(U(o,ye(m,h),te(([C,{offsetTree:E},I])=>{const w=-C;return mo(w,E,I)})));return se(U(o,ye(m,h),te(([C,E,I])=>{if(E.groupIndices.length>0){if(Ge(E.sizeTree))return E;let $=ea();const R=Rt(p);let _=0,P=0,M=0;for(;_<-C;){M=R[P];const B=R[P+1]-M-1;P++,_+=B+1}if($=si(E.sizeTree).reduce((B,{k:T,v:F})=>en(B,Math.max(0,T+C),F),$),_!==-C){const B=go(E.sizeTree,M);$=en($,0,B);const T=$n(E.sizeTree,-C+1)[1];$=en($,1,T)}return{...E,sizeTree:$,...Jc(E.offsetTree,0,$,I)}}else{const $=si(E.sizeTree).reduce((R,{k:_,v:P})=>en(R,Math.max(0,_+C),P),ea());return{...E,sizeTree:$,...Jc(E.offsetTree,0,$,I)}}})),m),{data:f,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:D,beforeUnshiftWith:y,firstItemIndex:s,gap:h,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:b,itemSize:d}},Ke(Lr,of),{singleton:!0}),XS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function n1(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!XS)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Go=Te(([{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:f}])=>{const h=_e(),g=_e(),m=K(0);let p=null,b=null,v=null;function y(){p&&(p(),p=null),v&&(v(),v=null),b&&(clearTimeout(b),b=null),ve(i,!1)}return se(U(h,ye(e,a,t,m,l,u,f),ye(r,c,d),te(([[D,C,E,I,w,$,R,_],P,M,A])=>{const B=n1(D),{align:T,behavior:F,offset:V}=B,j=I-1,N=e1(B,C,j);let Z=mo(N,C.offsetTree,P)+$;T==="end"?(Z+=M+$n(C.sizeTree,N)[1]-E+A,N===j&&(Z+=R)):T==="center"?Z+=(M+$n(C.sizeTree,N)[1]-E+A)/2:Z-=w,V&&(Z+=V);const z=q=>{y(),q?(_("retrying to scroll to",{location:D},an.DEBUG),ve(h,D)):(ve(g,!0),_("list did not change, scroll successful",{},an.DEBUG))};if(y(),F==="smooth"){let q=!1;v=We(n,W=>{q=q||W}),p=zn(s,()=>{z(q)})}else p=zn(U(n,YS(150)),z);return b=setTimeout(()=>{y()},1200),ve(i,!0),_("scrolling from index to",{index:N,top:Z,behavior:F},an.DEBUG),{top:Z,behavior:F}})),o),{scrollToIndex:h,scrollTargetReached:g,topListHeight:m}},Ke(Zn,Vt,Lr),{singleton:!0});function YS(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const po="up",Ua="down",US="none",JS={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},KS=0,Zo=Te(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=_e(),u=_e(),c=K(4),d=K(KS),f=At(U(bg(U(be(t),da(1),Vn(!0)),U(be(t),da(1),Vn(!1),pg(100))),Ue()),!1),h=At(U(bg(U(a,Vn(!0)),U(a,Vn(!1),pg(200))),Ue()),!1);se(U(yt(be(t),be(d)),te(([v,y])=>v<=y),Ue()),s),se(U(s,Er(50)),u);const g=rn(U(yt(e,be(n),be(r),be(i),be(c)),Nn((v,[{scrollTop:y,scrollHeight:D},C,E,I,w])=>{const $=y+C-D>-w,R={viewportHeight:C,scrollTop:y,scrollHeight:D};if($){let P,M;return y>v.state.scrollTop?(P="SCROLLED_DOWN",M=v.state.scrollTop-y):(P="SIZE_DECREASED",M=v.state.scrollTop-y||v.scrollTopDelta),{atBottom:!0,state:R,atBottomBecause:P,scrollTopDelta:M}}let _;return R.scrollHeight>v.state.scrollHeight?_="SIZE_INCREASED":C<v.state.viewportHeight?_="VIEWPORT_HEIGHT_DECREASING":y<v.state.scrollTop?_="SCROLLING_UPWARDS":_="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:_,state:R}},JS),Ue((v,y)=>v&&v.atBottom===y.atBottom))),m=At(U(e,Nn((v,{scrollTop:y,scrollHeight:D,viewportHeight:C})=>{if(Zb(v.scrollHeight,D))return{scrollTop:y,scrollHeight:D,jump:0,changed:!1};{const E=D-(y+C)<1;return v.scrollTop!==y&&E?{scrollHeight:D,scrollTop:y,jump:v.scrollTop-y,changed:!0}:{scrollHeight:D,scrollTop:y,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),pe(v=>v.changed),te(v=>v.jump)),0);se(U(g,te(v=>v.atBottom)),o),se(U(o,Er(50)),l);const p=K(Ua);se(U(e,te(({scrollTop:v})=>v),Ue(),Nn((v,y)=>Rt(h)?{direction:v.direction,prevScrollTop:y}:{direction:y<v.prevScrollTop?po:Ua,prevScrollTop:y},{direction:Ua,prevScrollTop:0}),te(v=>v.direction)),p),se(U(e,Er(50),Vn(US)),p);const b=K(0);return se(U(f,pe(v=>!v),Vn(0)),b),se(U(t,Er(100),ye(f),pe(([v,y])=>!!y),Nn(([v,y],[D])=>[y,D],[0,0]),te(([v,y])=>y-v)),b),{isScrolling:f,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:p,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:b,lastJumpDueToItemResize:m}},Ke(Vt)),jr=Te(([{log:e}])=>{const t=K(!1),n=rn(U(t,pe(r=>r),Ue()));return We(t,r=>{r&&Rt(e)("props updated",{},an.DEBUG)}),{propsReady:t,didMount:n}},Ke(Lr),{singleton:!0});function lf(e,t){e==0?t():requestAnimationFrame(()=>lf(e-1,t))}function uf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Xo=Te(([{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 se(U(o,ye(l),pe(([c,d])=>!!d),Vn(!1)),s),se(U(o,ye(l),pe(([c,d])=>!!d),Vn(!1)),u),We(U(yt(t,o),ye(s,e,n,u),pe(([[,c],d,{sizeTree:f},h,g])=>c&&(!Ge(f)||tf(h))&&!d&&!g),ye(l)),([,c])=>{zn(a,()=>{ve(u,!0)}),lf(4,()=>{zn(r,()=>{ve(s,!0)}),ve(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ke(Zn,Vt,Go,jr),{singleton:!0});function xg(e){return e?e==="smooth"?"smooth":"auto":!1}const qS=(e,t)=>typeof e=="function"?xg(e(t)):t&&xg(e),QS=Te(([{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=_e();let f=null;function h(m){ve(i,{index:"LAST",align:"end",behavior:m})}We(U(yt(U(be(e),da(1)),s),ye(be(c),n,a,u),te(([[m,p],b,v,y,D])=>{let C=p&&y,E="auto";return C&&(E=qS(b,v||D),C=C&&!!E),{totalCount:m,shouldFollow:C,followOutputBehavior:E}}),pe(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:p})=>{f&&(f(),f=null),f=zn(t,()=>{Rt(l)("following output to ",{totalCount:m},an.DEBUG),h(p),f=null})});function g(m){const p=zn(r,b=>{m&&!b.atBottom&&b.notAtBottomBecause==="SIZE_INCREASED"&&!f&&(Rt(l)("scrolling to bottom due to increased size",{},an.DEBUG),h("auto"))});setTimeout(p,100)}return We(U(yt(be(c),e,o),pe(([m,,p])=>m&&p),Nn(({value:m},[,p])=>({refreshed:m===p,value:p}),{refreshed:!1,value:0}),pe(({refreshed:m})=>m),ye(c,e)),([,m])=>{Rt(a)&&g(m!==!1)}),We(d,()=>{g(Rt(c)!==!1)}),We(yt(be(c),r),([m,p])=>{m&&!p.atBottom&&p.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&h("auto")}),{followOutput:c,autoscrollToBottom:d}},Ke(Zn,Zo,Go,Xo,jr,Lr,Vt));function eE(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const r1=Te(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=_e(),o=_e(),s=rn(U(a,te(eE)));return se(U(s,te(l=>l.totalCount)),e),se(U(s,te(l=>l.groupIndices)),t),se(U(yt(r,n,i),pe(([l,u])=>mu(u)),te(([l,u,c])=>$n(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Ue(),te(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ke(Zn,Vt));function bo(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function i1(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const Il="top",_l="bottom",Cg="none";function wg(e,t,n){return typeof e=="number"?n===po&&t===Il||n===Ua&&t===_l?e:0:n===po?t===Il?e.main:e.reverse:t===_l?e.main:e.reverse}function Dg(e,t){return typeof e=="number"?e:e[t]||0}const cf=Te(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=_e(),o=K(0),s=K(0),l=K(0),u=At(U(yt(be(e),be(t),be(r),be(a,bo),be(l),be(o),be(i),be(n),be(s)),te(([c,d,f,[h,g],m,p,b,v,y])=>{const D=c-v,C=p+b,E=Math.max(f-D,0);let I=Cg;const w=Dg(y,Il),$=Dg(y,_l);return h-=v,h+=f+b,g+=f+b,g-=v,h>c+C-w&&(I=po),g<c-E+d+$&&(I=Ua),I!==Cg?[Math.max(D-f-wg(m,Il,I)-w,0),D-E-b+d+wg(m,_l,I)+$]:null}),pe(c=>c!=null),Ue(bo)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ke(Vt),{singleton:!0});function tE(e,t,n){if(mu(t)){const r=t1(e,t);return[{index:$n(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 Ku={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Sg(e,t,n){if(e.length===0)return[];if(!mu(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=gu(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 Js(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,f=s+d*o+(d-1)*r,h=u,g=f-c;return{items:Sg(e,i,a),topItems:Sg(t,i,a),topListHeight:t.reduce((m,p)=>p.size+m,0),offsetTop:u,offsetBottom:g,top:h,bottom:c,totalCount:n,firstItemIndex:a}}function a1(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=uf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return Js(u,[],s,i,n,r)}const _i=Te(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},f,{didMount:h},{recalcInProgress:g}])=>{const m=K([]),p=K(0),b=_e();se(a.topItemsIndexes,m);const v=At(U(yt(h,g,be(o,bo),be(t),be(e),be(c),u,be(m),be(r),be(i),n),pe(([E,I,,w,,,,,,,$])=>{const R=$&&$.length!==w;return E&&!I&&!R}),te(([,,[E,I],w,$,R,_,P,M,A,B])=>{const T=$,{sizeTree:F,offsetTree:V}=T,j=Rt(p);if(w===0)return{...Ku,totalCount:w};if(E===0&&I===0)return j===0?{...Ku,totalCount:w}:a1(j,R,$,M,A,B||[]);if(Ge(F))return j>0?null:Js(tE(uf(R,w),T,B),[],w,A,T,M);const N=[];if(P.length>0){const H=P[0],O=P[P.length-1];let G=0;for(const J of gu(F,H,O)){const re=J.value,fe=Math.max(J.start,H),le=Math.min(J.end,O);for(let X=fe;X<=le;X++)N.push({index:X,size:re,offset:G,data:B&&B[X]}),G+=re}}if(!_)return Js([],N,w,A,T,M);const Z=P.length>0?P[P.length-1]+1:0,z=HS(V,E,I,Z);if(z.length===0)return null;const q=w-1,W=hu([],H=>{for(const O of z){const G=O.value;let J=G.offset,re=O.start;const fe=G.size;if(G.offset<E){re+=Math.floor((E-G.offset+A)/(fe+A));const X=re-O.start;J+=X*fe+X*A}re<Z&&(J+=(Z-re)*fe,re=Z);const le=Math.min(O.end,q);for(let X=re;X<=le&&!(J>=I);X++)H.push({index:X,size:fe,offset:J,data:B&&B[X]}),J+=fe+A}});return Js(W,N,w,A,T,M)}),pe(E=>E!==null),Ue()),Ku);se(U(n,pe(tf),te(E=>E==null?void 0:E.length)),t),se(U(v,te(E=>E.topListHeight)),d),se(d,l),se(U(v,te(E=>[E.top,E.bottom])),s),se(U(v,te(E=>E.items)),b);const y=rn(U(v,pe(({items:E})=>E.length>0),ye(t,n),pe(([{items:E},I])=>E[E.length-1].originalIndex===I-1),te(([,E,I])=>[E-1,I]),Ue(bo),te(([E])=>E))),D=rn(U(v,Er(200),pe(({items:E,topItems:I})=>E.length>0&&E[0].originalIndex===I.length),te(({items:E})=>E[0].index),Ue())),C=rn(U(v,pe(({items:E})=>E.length>0),te(({items:E})=>{let I=0,w=E.length-1;for(;E[I].type==="group"&&I<w;)I++;for(;E[w].type==="group"&&w>I;)w--;return{startIndex:E[I].index,endIndex:E[w].index}}),Ue(i1)));return{listState:v,topItemsIndexes:m,endReached:y,startReached:D,rangeChanged:C,itemsRendered:b,initialItemCount:p,...f}},Ke(Zn,r1,cf,Xo,Go,Zo,jr,of),{singleton:!0}),nE=Te(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(se(U(s,ye(a),pe(([,l])=>l!==0),ye(i,e,t,r,n),te(([[,l],u,c,d,f,h=[]])=>a1(l,u,c,d,f,h))),o),{}),Ke(Zn,Xo,_i,jr),{singleton:!0}),o1=Te(([{scrollVelocity:e}])=>{const t=K(!1),n=_e(),r=K(!1);return se(U(e,ye(r,t,n),pe(([i,a])=>!!a),te(([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}),Ue()),t),We(U(yt(t,e,n),ye(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ke(Zo),{singleton:!0}),rE=Te(([{topItemsIndexes:e}])=>{const t=K(0);return se(U(t,pe(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ke(_i)),s1=Te(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=_e(),o=At(U(yt(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(be(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ke(Vt,_i),{singleton:!0});function l1(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const iE=l1(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),aE=Te(([{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:f},{log:h},{recalcInProgress:g}])=>{const m=rn(U(l,ye(s),Nn(([,b,v,y],[{items:D,totalCount:C,bottom:E,offsetBottom:I},w])=>{const $=E+I;let R=0;return v===C&&b.length>0&&D.length>0&&(D[0].originalIndex===0&&b[0].originalIndex===0||(R=$-y,R!==0&&(R+=w))),[R,D,C,$]},[0,[],0,0]),pe(([b])=>b!==0),ye(t,o,r,a,h,g),pe(([,b,v,y,,,D])=>!D&&!y&&b!==0&&v===po),te(([[b],,,,,v])=>(v("Upward scrolling compensation",{amount:b},an.DEBUG),b))));function p(b){b>0?(ve(e,{top:-b,behavior:"auto"}),ve(n,0)):(ve(n,0),ve(e,{top:-b,behavior:"auto"}))}return We(U(m,ye(n,i)),([b,v,y])=>{y&&iE()?ve(n,v-b):p(-b)}),We(U(yt(At(i,!1),n,g),pe(([b,v,y])=>!b&&!y&&v!==0),te(([b,v])=>v),Er(1)),p),se(U(c,te(b=>({top:-b}))),e),We(U(u,ye(d,f),te(([b,{lastSize:v,groupIndices:y,sizeTree:D},C])=>{function E(I){return I*(v+C)}if(y.length===0)return E(b);{let I=0;const w=go(D,0);let $=0,R=0;for(;$<b;){$++,I+=w;let _=y.length===R+1?1/0:y[R+1]-y[R]-1;$+_>b&&(I-=w,_=b-$+1),$+=_,I+=E(_),R++}return I}})),b=>{ve(n,b),requestAnimationFrame(()=>{ve(e,{top:b}),requestAnimationFrame(()=>{ve(n,0),ve(g,!1)})})}),{deviation:n}},Ke(Vt,Zo,_i,Zn,Lr,of)),oE=Te(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return We(U(e,ye(r),pe(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{zn(U(n,da(1),pe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{ve(t,i)})})}),{initialScrollTop:r}},Ke(jr,Vt,_i),{singleton:!0}),sE=Te(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=At(U(yt(n,e,t),pe(([i])=>i),te(([,i,a])=>Math.max(0,i-a)),Er(0),Ue()),0);return{alignToBottom:n,paddingTopAddition:r}},Ke(Vt,s1),{singleton:!0}),df=Te(([{scrollTo:e,scrollContainerState:t}])=>{const n=_e(),r=_e(),i=_e(),a=K(!1),o=K(void 0);return se(U(yt(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(U(e,ye(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ke(Vt)),lE=({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,uE=Te(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=_e();return se(U(c,ye(e,i,t,a,o,s,r),ye(n),te(([[d,f,h,g,m,p,b,v],y])=>{const{done:D,behavior:C,align:E,calculateViewLocation:I=lE,...w}=d,$=e1(d,f,g-1),R=mo($,f.offsetTree,y)+m+p,_=R+$n(f.sizeTree,$)[1],P=v+p,M=v+h-b,A=I({itemTop:R,itemBottom:_,viewportTop:P,viewportBottom:M,locationParams:{behavior:C,align:E,...w}});return A?D&&zn(U(l,pe(B=>B===!1),da(Rt(l)?1:2)),D):D&&D(),A}),pe(d=>d!==null)),u),{scrollIntoView:c}},Ke(Zn,Vt,Go,_i,Lr),{singleton:!0}),cE=Te(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=_e(),u=K(void 0),c=K(null),d=K(null);return se(o,c),se(s,d),We(U(l,ye(e,n,a,c,d)),([f,h,g,m,p,b])=>{const v=GS(h.sizeTree);m&&p!==null&&b!==null&&(g=p.scrollTop-b.offsetTop),f({ranges:v,scrollTop:g})}),se(U(u,pe(tf),te(dE)),r),se(U(i,ye(u),pe(([,f])=>f!==void 0),Ue(),te(([,f])=>f.ranges)),t),{getState:l,restoreStateFrom:u}},Ke(Zn,Vt,Xo,jr,df));function dE(e){return{offset:e.scrollTop,index:0,align:"start"}}const fE=Te(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ke(cf,nE,jr,o1,s1,oE,sE,df,uE,Lr)),u1=Te(([{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:f,scrolledToInitialItem:h,initialItemFinalLocationReached:g},m,p,b,{listState:v,topItemsIndexes:y,...D},{scrollToIndex:C},E,{topItemCount:I},{groupCounts:w},$])=>(se(D.rangeChanged,$.scrollSeekRangeChanged),se(U($.windowViewportRect,te(R=>R.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:f,scrolledToInitialItem:h,initialItemFinalLocationReached:g,topItemsIndexes:y,topItemCount:I,groupCounts:w,fixedItemHeight:n,defaultItemHeight:r,gap:c,...b,statefulTotalCount:u,listState:v,scrollToIndex:C,trackItemSizes:i,itemSize:a,groupIndices:l,...D,...$,...m,sizes:d,...p}),Ke(Zn,Xo,Vt,cE,QS,_i,Go,aE,rE,r1,fE)),qu="-webkit-sticky",Eg="sticky",c1=l1(()=>{if(typeof document>"u")return Eg;const e=document.createElement("div");return e.style.position=qu,e.style.position===qu?qu:Eg});function ff(e,t){const n=x.useRef(null),r=x.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const f=t.getBoundingClientRect(),h=l.top-f.top;c=f.height-Math.max(0,h),d=h+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}=af(r),o=x.useCallback(()=>{r(a.current)},[r,a]);return x.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 pu=x.createContext(void 0),d1=x.createContext(void 0);function hf(e){return e}const hE=Te(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(hf),a=K("div"),o=K(Ii),s=(l,u=null)=>At(U(r,te(c=>c[l]),Ue()),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")}}),gE=Te(([e,t])=>({...e,...t}),Ke(u1,hE)),mE=({height:e})=>x.createElement("div",{style:{height:e}}),pE={position:c1(),zIndex:1,overflowAnchor:"none"},bE={overflowAnchor:"none"},Ig=x.memo(function({showTopList:t=!1}){const n=De("listState"),r=pn("sizeRanges"),i=De("useWindowScroll"),a=De("customScrollParent"),o=pn("windowScrollContainerState"),s=pn("scrollContainerState"),l=a||i?o:s,u=De("itemContent"),c=De("context"),d=De("groupContent"),f=De("trackItemSizes"),h=De("itemSize"),g=De("log"),m=pn("gap"),{callbackRef:p}=Gb(r,h,f,t?Ii:l,g,m,a),[b,v]=x.useState(0);pf("deviation",A=>{b!==A&&v(A)});const y=De("EmptyPlaceholder"),D=De("ScrollSeekPlaceholder")||mE,C=De("ListComponent"),E=De("ItemComponent"),I=De("GroupComponent"),w=De("computeItemKey"),$=De("isSeeking"),R=De("groupIndices").length>0,_=De("alignToBottom"),P=De("initialItemFinalLocationReached"),M=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:b!==0?b:_?"auto":0,...P?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&y?x.createElement(y,it(y,c)):x.createElement(C,{...it(C,c),ref:p,style:M,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const B=A.originalIndex,T=w(B+n.firstItemIndex,A.data,c);return $?x.createElement(D,{...it(D,c),key:T,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?x.createElement(I,{...it(I,c),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,style:pE},d(A.index,c)):x.createElement(E,{...it(E,c),...f1(E,A.data),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:bE},R?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),vE={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},xa=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),yE={width:"100%",position:c1(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function f1(e,t){return{item:typeof e=="string"?void 0:t}}const xE=x.memo(function(){const t=De("HeaderComponent"),n=pn("headerHeight"),r=De("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),CE=x.memo(function(){const t=De("FooterComponent"),n=pn("footerHeight"),r=De("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null});function gf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),f=n("context"),{scrollerRef:h,scrollByCallback:g,scrollToCallback:m}=Xb(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),x.createElement(u,{ref:h,style:{...vE,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,f)},o)})}function mf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),f=n("deviation"),h=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:p,scrollToCallback:b}=Xb(l,c,u,Ii,h);return AS(()=>(m.current=h||window,()=>{m.current=null}),[m,h]),t("windowScrollTo",b),t("scrollBy",p),x.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+f}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const wE=({children:e})=>{const t=x.useContext(pu),n=pn("viewportHeight"),r=pn("fixedItemHeight"),i=De("alignToBottom"),a=Gn(fo(n,o=>_n(o,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:xa(i),ref:a,"data-viewport-type":"element"},e)},DE=({children:e})=>{const t=x.useContext(pu),n=pn("windowViewportRect"),r=pn("fixedItemHeight"),i=De("customScrollParent"),a=ff(n,i),o=De("alignToBottom");return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(o),"data-viewport-type":"window"},e)},SE=({children:e})=>{const t=De("TopItemListComponent")||"div",n=De("headerHeight"),r={...yE,marginTop:`${n}px`},i=De("context");return x.createElement(t,{style:r,...it(t,i)},e)},EE=x.memo(function(t){const n=De("useWindowScroll"),r=De("topItemsIndexes").length>0,i=De("customScrollParent"),a=i||n?$E:_E,o=i||n?DE:wE;return x.createElement(a,{...t},r&&x.createElement(SE,null,x.createElement(Ig,{showTopList:!0})),x.createElement(o,null,x.createElement(xE,null),x.createElement(Ig,null),x.createElement(CE,null)))}),{Component:IE,usePublisher:pn,useEmitterValue:De,useEmitter:pf}=rf(gE,{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"}},EE),_E=gf({usePublisher:pn,useEmitterValue:De,useEmitter:pf}),$E=mf({usePublisher:pn,useEmitterValue:De,useEmitter:pf}),RE=IE,_g={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},AE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:$g,ceil:Rg,floor:$l,min:Qu,max:Ja}=Math;function FE(e){return{...AE,items:e}}function Ag(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 PE(e,t){return e&&e.column===t.column&&e.row===t.row}function gs(e,t){return e&&e.width===t.width&&e.height===t.height}const TE=Te(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,f,{propsReady:h,didMount:g},{windowViewportRect:m,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,windowScrollTo:y},D])=>{const C=K(0),E=K(0),I=K(_g),w=K({height:0,width:0}),$=K({height:0,width:0}),R=_e(),_=_e(),P=K(0),M=K(null),A=K({row:0,column:0}),B=_e(),T=_e(),F=K(!1),V=K(0),j=K(!0),N=K(!1);We(U(g,ye(V),pe(([O,G])=>!!G)),()=>{ve(j,!1),ve(E,0)}),We(U(yt(g,j,$,w,V,N),pe(([O,G,J,re,,fe])=>O&&!G&&J.height!==0&&re.height!==0&&!fe)),([,,,,O])=>{ve(N,!0),lf(1,()=>{ve(R,O)}),zn(U(r),()=>{ve(n,[0,0]),ve(j,!0)})}),se(U(T,pe(O=>O!=null&&O.scrollTop>0),Vn(0)),E),We(U(g,ye(T),pe(([,O])=>O!=null)),([,O])=>{O&&(ve(w,O.viewport),ve($,O==null?void 0:O.item),ve(A,O.gap),O.scrollTop>0&&(ve(F,!0),zn(U(r,da(1)),G=>{ve(F,!1)}),ve(o,{top:O.scrollTop})))}),se(U(w,te(({height:O})=>O)),i),se(U(yt(be(w,gs),be($,gs),be(A,(O,G)=>O&&O.column===G.column&&O.row===G.row),be(r)),te(([O,G,J,re])=>({viewport:O,item:G,gap:J,scrollTop:re}))),B),se(U(yt(be(C),t,be(A,PE),be($,gs),be(w,gs),be(M),be(E),be(F),be(j),be(V)),pe(([,,,,,,,O])=>!O),te(([O,[G,J],re,fe,le,X,Ae,,Me,Xe])=>{const{row:et,column:ee}=re,{height:ne,width:he}=fe,{width:Oe}=le;if(Ae===0&&(O===0||Oe===0))return _g;if(he===0){const Fi=uf(Xe,O),Da=Fi===0?Math.max(Ae-1,0):Fi;return FE(Ag(Fi,Da,X))}const ut=h1(Oe,he,ee);let Se,xe;Me?G===0&&J===0&&Ae>0?(Se=0,xe=Ae-1):(Se=ut*$l((G+et)/(ne+et)),xe=ut*Rg((J+et)/(ne+et))-1,xe=Qu(O-1,Ja(xe,ut-1)),Se=Qu(xe,Ja(0,Se))):(Se=0,xe=-1);const Ot=Ag(Se,xe,X),{top:Nt,bottom:Lt}=Fg(le,re,fe,Ot),un=Rg(O/ut),as=un*ne+(un-1)*et-Lt;return{items:Ot,offsetTop:Nt,offsetBottom:as,top:Nt,bottom:Lt,itemHeight:ne,itemWidth:he}})),I),se(U(M,pe(O=>O!==null),te(O=>O.length)),C),se(U(yt(w,$,I,A),pe(([O,G,{items:J}])=>J.length>0&&G.height!==0&&O.height!==0),te(([O,G,{items:J},re])=>{const{top:fe,bottom:le}=Fg(O,re,G,J);return[fe,le]}),Ue(bo)),n);const Z=K(!1);se(U(r,ye(Z),te(([O,G])=>G||O!==0)),Z);const z=rn(U(be(I),pe(({items:O})=>O.length>0),ye(C,Z),pe(([{items:O},G,J])=>J&&O[O.length-1].index===G-1),te(([,O])=>O-1),Ue())),q=rn(U(be(I),pe(({items:O})=>O.length>0&&O[0].index===0),Vn(0),Ue())),W=rn(U(be(I),ye(F),pe(([{items:O},G])=>O.length>0&&!G),te(([{items:O}])=>({startIndex:O[0].index,endIndex:O[O.length-1].index})),Ue(i1),Er(0)));se(W,f.scrollSeekRangeChanged),se(U(R,ye(w,$,C,A),te(([O,G,J,re,fe])=>{const le=n1(O),{align:X,behavior:Ae,offset:Me}=le;let Xe=le.index;Xe==="LAST"&&(Xe=re-1),Xe=Ja(0,Xe,Qu(re-1,Xe));let et=Kc(G,fe,J,Xe);return X==="end"?et=$g(et-G.height+J.height):X==="center"&&(et=$g(et-G.height/2+J.height/2)),Me&&(et+=Me),{top:et,behavior:Ae}})),o);const H=At(U(I,te(O=>O.offsetBottom+O.bottom)),0);return se(U(m,te(O=>({width:O.visibleWidth,height:O.visibleHeight}))),w),{data:M,totalCount:C,viewportDimensions:w,itemDimensions:$,scrollTop:r,scrollHeight:_,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:R,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:y,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,deviation:P,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:E,gap:A,restoreStateFrom:T,...f,initialTopMostItemIndex:V,gridState:I,totalListHeight:H,...d,startReached:q,endReached:z,rangeChanged:W,stateChanged:B,propsReady:h,stateRestoreInProgress:F,...D}},Ke(cf,Vt,Zo,o1,jr,df,Lr));function Fg(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Kc(e,t,n,r[0].index),o=Kc(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Kc(e,t,n,r){const i=h1(e.width,n.width,t.column),a=$l(r/i),o=a*n.height+Ja(0,a-1)*t.row;return o>0?o+t.row:o}function h1(e,t,n){return Ja(1,$l((e+n)/($l(t)+n)))}const ME=Te(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(hf),o=K("div"),s=K(Ii),l=(u,c=null)=>At(U(t,te(d=>d[u]),Ue()),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")}}),kE=Te(([e,t])=>({...e,...t}),Ke(TE,ME)),BE=x.memo(function(){const t=nt("gridState"),n=nt("listClassName"),r=nt("itemClassName"),i=nt("itemContent"),a=nt("computeItemKey"),o=nt("isSeeking"),s=En("scrollHeight"),l=nt("ItemComponent"),u=nt("ListComponent"),c=nt("ScrollSeekPlaceholder"),d=nt("context"),f=En("itemDimensions"),h=En("gap"),g=nt("log"),m=nt("stateRestoreInProgress"),p=Gn(b=>{const v=b.parentElement.parentElement.scrollHeight;s(v);const y=b.firstChild;if(y){const{width:D,height:C}=y.getBoundingClientRect();f({width:D,height:C})}h({row:Pg("row-gap",getComputedStyle(b).rowGap,g),column:Pg("column-gap",getComputedStyle(b).columnGap,g)})});return m?null:x.createElement(u,{ref:p,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(b=>{const v=a(b.index,b.data,d);return o?x.createElement(c,{key:v,...it(c,d),index:b.index,height:t.itemHeight,width:t.itemWidth}):x.createElement(l,{...it(l,d),className:r,"data-index":b.index,key:v},i(b.index,b.data,d))}))}),VE=x.memo(function(){const t=nt("HeaderComponent"),n=En("headerHeight"),r=nt("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=nt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),OE=x.memo(function(){const t=nt("FooterComponent"),n=En("footerHeight"),r=nt("headerFooterTag"),i=Gn(o=>n(_n(o,"height"))),a=nt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),NE=({children:e})=>{const t=x.useContext(d1),n=En("itemDimensions"),r=En("viewportDimensions"),i=Gn(a=>{r(a.getBoundingClientRect())});return x.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),x.createElement("div",{style:xa(!1),ref:i},e)},LE=({children:e})=>{const t=x.useContext(d1),n=En("windowViewportRect"),r=En("itemDimensions"),i=nt("customScrollParent"),a=ff(n,i);return x.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(!1)},e)},jE=x.memo(function({...t}){const n=nt("useWindowScroll"),r=nt("customScrollParent"),i=r||n?WE:HE,a=r||n?LE:NE;return x.createElement(i,{...t},x.createElement(a,null,x.createElement(VE,null),x.createElement(BE,null),x.createElement(OE,null)))}),{Component:vB,usePublisher:En,useEmitterValue:nt,useEmitter:g1}=rf(kE,{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"}},jE),HE=gf({usePublisher:En,useEmitterValue:nt,useEmitter:g1}),WE=mf({usePublisher:En,useEmitterValue:nt,useEmitter:g1});function Pg(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,an.WARN),t==="normal"?0:parseInt(t??"0",10)}const zE=Te(()=>{const e=K(l=>x.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(hf),o=K(Ii),s=(l,u=null)=>At(U(i,te(c=>c[l]),Ue()),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")}}),GE=Te(([e,t])=>({...e,...t}),Ke(u1,zE)),ZE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e}})),XE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e,padding:0,border:0}})),YE={overflowAnchor:"none"},UE=x.memo(function(){const t=Le("listState"),n=In("sizeRanges"),r=Le("useWindowScroll"),i=Le("customScrollParent"),a=In("windowScrollContainerState"),o=In("scrollContainerState"),s=i||r?a:o,l=Le("itemContent"),u=Le("trackItemSizes"),c=Le("itemSize"),d=Le("log"),{callbackRef:f,ref:h}=Gb(n,c,u,s,d,void 0,i),[g,m]=x.useState(0);bf("deviation",T=>{g!==T&&(h.current.style.marginTop=`${T}px`,m(T))});const p=Le("EmptyPlaceholder"),b=Le("ScrollSeekPlaceholder")||ZE,v=Le("FillerRow")||XE,y=Le("TableBodyComponent"),D=Le("TableRowComponent"),C=Le("computeItemKey"),E=Le("isSeeking"),I=Le("paddingTopAddition"),w=Le("firstItemIndex"),$=Le("statefulTotalCount"),R=Le("context");if($===0&&p)return x.createElement(p,it(p,R));const _=t.offsetTop+I+g,P=t.offsetBottom,M=_>0?x.createElement(v,{height:_,key:"padding-top",context:R}):null,A=P>0?x.createElement(v,{height:P,key:"padding-bottom",context:R}):null,B=t.items.map(T=>{const F=T.originalIndex,V=C(F+w,T.data,R);return E?x.createElement(b,{...it(b,R),key:V,index:T.index,height:T.size,type:T.type||"item"}):x.createElement(D,{...it(D,R),...f1(D,T.data),key:V,"data-index":F,"data-known-size":T.size,"data-item-index":T.index,style:YE},l(T.index,T.data,R))});return x.createElement(y,{ref:f,"data-testid":"virtuoso-item-list",...it(y,R)},[M,...B,A])}),JE=({children:e})=>{const t=x.useContext(pu),n=In("viewportHeight"),r=In("fixedItemHeight"),i=Gn(fo(n,a=>_n(a,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:xa(!1),ref:i,"data-viewport-type":"element"},e)},KE=({children:e})=>{const t=x.useContext(pu),n=In("windowViewportRect"),r=In("fixedItemHeight"),i=Le("customScrollParent"),a=ff(n,i);return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:xa(!1),"data-viewport-type":"window"},e)},qE=x.memo(function(t){const n=Le("useWindowScroll"),r=Le("customScrollParent"),i=In("fixedHeaderHeight"),a=In("fixedFooterHeight"),o=Le("fixedHeaderContent"),s=Le("fixedFooterContent"),l=Le("context"),u=Gn(fo(i,v=>_n(v,"height"))),c=Gn(fo(a,v=>_n(v,"height"))),d=r||n?tI:eI,f=r||n?KE:JE,h=Le("TableComponent"),g=Le("TableHeadComponent"),m=Le("TableFooterComponent"),p=o?x.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,b=s?x.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(m,l)},s()):null;return x.createElement(d,{...t},x.createElement(f,null,x.createElement(h,{style:{borderSpacing:0,overflowAnchor:"none"},...it(h,l)},[p,x.createElement(UE,{key:"TableBody"}),b])))}),{Component:QE,usePublisher:In,useEmitterValue:Le,useEmitter:bf}=rf(GE,{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"}},qE),eI=gf({usePublisher:In,useEmitterValue:Le,useEmitter:bf}),tI=mf({usePublisher:In,useEmitterValue:Le,useEmitter:bf}),nI=QE,rI=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),iI=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),vf=x.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:f="manual",itemSizeNames:h=[],overscan:g=null,component:m={},idContainer:p="",triggerCalCulateContainer:b="",accumulationHeight:v=0,delayTriggerCalculateHeight:y=0,increaseViewportBy:D=()=>0,context:C={},endReached:E}=e,[I,w]=x.useState(0),$=()=>{if(o==="min-max"){const P=(a+1)*s;return{height:a>u?l:I>P?I:P}}return o==="container"?{height:I}:{}},R=P=>{var B;const M=P.getAttribute("data-index");let A=((B=P.getBoundingClientRect())==null?void 0:B.height)||0;return h==null||h.forEach(T=>{var F,V;A+=((V=(F=document.querySelector(`[${T}="${M}"]`))==null?void 0:F.getBoundingClientRect())==null?void 0:V.height)??0}),A},_=()=>{var P;if(p&&o==="container"){const M=((P=document==null?void 0:document.getElementById(p))==null?void 0:P.offsetHeight)??0;w(M-v)}};return x.useEffect(()=>{const P=setTimeout(_,y);return window==null||window.addEventListener("resize",_),window==null||window.addEventListener("load",_),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",_),window==null||window.removeEventListener("load",_)}},[o,b]),S.jsx("div",{className:`1ru-w-full ${n}`,children:S.jsx(nI,{context:C,ref:t,overscan:typeof g=="function"?g(o==="container"?I:l):o==="container"?I:l,totalListHeightChanged:P=>o==="min-max"?w(P):null,style:$(),totalCount:a,computeItemKey:r,itemSize:x.useCallback(P=>f==="manual"?i(P):R(P),[]),components:{TableRow:iI,...m},fixedHeaderContent:c,itemContent:(...P)=>d(rI,...P),endReached:E,increaseViewportBy:D(o==="container"?I:l)})})});vf.displayName="TableVirtualization";const aI="_sorting_1i6eh_39",er={"container-table":"_container-table_1i6eh_1","payhere-reguler":"_payhere-reguler_1i6eh_1","laba-small":"_laba-small_1i6eh_1","laba-reguler":"_laba-reguler_1i6eh_1","table-root":"_table-root_1i6eh_5","table-scroll-top":"_table-scroll-top_1i6eh_9","pointer-laba":"_pointer-laba_1i6eh_16","pointer-payhere":"_pointer-payhere_1i6eh_20",sorting:aI,"laba-grey-02":"_laba-grey-02_1i6eh_53"},Vi="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 oI(e,t=null){const[n,r]=x.useState(!1);return x.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 sI=e=>{const t=f=>{const h=new Date,g=f.getTime()-h.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]=x.useState(t(n)),[a,o]=x.useState(e.running??!1),[s,l]=x.useState(()=>e==null?void 0:e.callbackDone);return x.useEffect(()=>{let f;return a&&r>0?f=setInterval(()=>{i(h=>Math.max(h-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{f&&clearInterval(f)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:f=>{i(typeof f=="number"?f:t(f??n))},setCallbackDone:f=>l(()=>f)}};function lI(e,t=0){const n=x.useRef({promise:null,resolve:null,reject:null,timeout:null});return x.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 yf=typeof window<"u"?x.useLayoutEffect:x.useEffect,uI=(e,t)=>{const[n,r]=x.useState({width:0,height:0}),[i,a]=x.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=x.useRef(null);return yf(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const f of d){const{width:h,height:g,top:m,left:p,bottom:b,right:v,x:y,y:D}=f.contentRect;a({width:h,height:g,top:m,left:p,bottom:b,right:v,x:y,y:D})}};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 cI(e){const[t,n]=x.useState(e),r=x.useRef(t);return x.useEffect(()=>{r.current=t},[t]),[t,n,r]}function dI(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 fI(...e){return t=>{e.forEach(n=>{dI(n,t)})}}function xf(...e){return x.useMemo(()=>fI(...e),e)}function Cf(e){const t=x.useRef(e);return Hd(e,t.current)||(t.current=e),t.current}function Yo(e,t){const n=t.map(Cf);x.useEffect(e,n)}function hI({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){x.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const gI=(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},Kt=()=>({kind:{"payhere-reguler":er["payhere-reguler"],"laba-reguler":er["laba-reguler"],"laba-small":er["laba-small"]},pointer:{"payhere-reguler":er["pointer-payhere"],"laba-reguler":er["pointer-laba"],"laba-small":er["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Vi,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":er["laba-grey-02"]}}),mI=({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:f,renderSubComponent:h})=>S.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:S.jsxs("table",{className:n,children:[S.jsx("thead",{id:a,"data-calculate-height-header":l,children:e.getHeaderGroups().map(g=>S.jsx("tr",{children:g.headers.map(m=>S.jsx("th",{style:gI(s,m),colSpan:m.colSpan,children:m.isPlaceholder?null:S.jsxs("div",{className:m.column.getCanSort()?er.sorting:"",onClick:m.column.getToggleSortingHandler(),children:[co(m.column.columnDef.header,m.getContext()),m.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:m.column.getIsSorted()==="asc"||m.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[m.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:u}),m.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:c})]}):S.jsx(S.Fragment,{})})]})},m.id))},g.id))}),S.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((g,m)=>S.jsxs(x.Fragment,{children:[S.jsx("tr",{onClick:p=>{p.stopPropagation(),i&&typeof r=="function"&&r(g.original,g)},className:i?d:"","data-calculate-height":`${l}-${m}`,id:o(g),children:g.getVisibleCells().map(p=>{var b,v,y;return S.jsx("td",{style:typeof((b=p.column.columnDef.meta)==null?void 0:b.styleTd)=="function"?p.column.columnDef.meta.styleTd(g.original,g):{},className:typeof((v=p.column.columnDef.meta)==null?void 0:v.classNameTd)=="function"?(y=p.column.columnDef.meta)==null?void 0:y.classNameTd(g.original,g):"",children:co(p.column.columnDef.cell,p.getContext())},p.id)})},g.id),g.getIsExpanded()&&typeof h=="function"&&S.jsx("tr",{children:S.jsx("td",{colSpan:g.getVisibleCells().length,children:h(g.original,g)})})]},g.id)),e.getRowModel().rows.length===0&&x.isValidElement(f)&&S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:f})})]})]})}),m1=x.forwardRef((e,t)=>{const{context:n,...r}=e;return S.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});m1.displayName="VirtualizationHead";const pI=({style:e,context:t,...n})=>S.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:e}),bI=({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:f})=>{var m,p,b;const[h,g]=x.useState(0);return S.jsx(vf,{context:{headerId:a,classNameTable:s},typeHight:"min-max",totalCount:((m=e.getRowModel().rows)==null?void 0:m.length)||0,minLengthItem:((p=e.getRowModel().rows)==null?void 0:p.length)||0,typeCalculateItemSize:"auto",component:{TableHead:m1,Table:pI,EmptyPlaceholder:()=>S.jsx("tbody",{ref:v=>{var y;return g(((y=v==null?void 0:v.getBoundingClientRect())==null?void 0:y.height)??0)},children:S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:x.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(v=>S.jsx("tr",{children:v.headers.map(y=>{var D,C;return S.jsx("th",{colSpan:y.colSpan,style:typeof((D=y.column.columnDef.meta)==null?void 0:D.styleTh)=="function"?(C=y.column.columnDef.meta)==null?void 0:C.styleTh(y.column.columnDef):{},children:y.isPlaceholder?null:S.jsxs("div",{className:y.column.getCanSort()?er.sorting:"",onClick:y.column.getToggleSortingHandler(),children:[co(y.column.columnDef.header,y.getContext()),y.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:y.column.getIsSorted()==="asc"||y.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[y.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:l}),y.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:u})]}):S.jsx(S.Fragment,{})})]})},y.id)})},v.id)),itemContent:(v,y)=>{var C,E;const D=(E=(C=e.getRowModel())==null?void 0:C.rows)==null?void 0:E[y];return S.jsx(v,{children:({...I})=>S.jsxs(x.Fragment,{children:[S.jsx("tr",{...I,onClick:w=>{w.stopPropagation(),r&&typeof n=="function"&&n(D.original,D)},className:r?c:"",id:o(D),children:D.getVisibleCells().map(w=>{var $,R,_;return S.jsx(S.Fragment,{children:S.jsx("td",{style:typeof(($=w.column.columnDef.meta)==null?void 0:$.styleTd)=="function"?w.column.columnDef.meta.styleTd(D.original,D):{},className:typeof((R=w.column.columnDef.meta)==null?void 0:R.classNameTd)=="function"?(_=w.column.columnDef.meta)==null?void 0:_.classNameTd(D.original,D):"",children:co(w.column.columnDef.cell,w.getContext())},w.id)})})}),D.getIsExpanded()&&typeof f=="function"&&S.jsx("tr",{"data-sub-component":y,children:S.jsx("td",{colSpan:D.getVisibleCells().length,children:f(D.original,D)})})]},D.id)},D.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((b=e.getRowModel().rows)==null?void 0:b.length)||0)>0?0:h),itemSizeNames:typeof f=="function"?[...(i==null?void 0:i.itemSizeNames)??[],"data-sub-component"]:i==null?void 0:i.itemSizeNames})},vI=({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:f="laba-reguler",componentSortASC:h,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:p,variant:b,renderSubComponent:v})=>{const y=()=>{if(![void 0,"undefined"].includes(d)){const D=document.querySelector(`[data-calculate-height-header="${d}"]`);let C=0;const E=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return E==null||E.forEach(I=>{C+=I.offsetHeight}),C>c?c+D.offsetHeight:0}return c};return Yo(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),S.jsxs(S.Fragment,{children:[!o&&S.jsx(mI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Kt().kind[f]} ${b?Kt().variant[b]:""}
|
74
|
+
${m?Kt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,maxHeight:y(),idCalculateHeight:d,componentSortASC:x.isValidElement(h)?h:Kt().sortingIcon[f].asc,componentSortDESC:x.isValidElement(g)?g:Kt().sortingIcon[f].desc,classNamePointer:Kt().pointer[f],emptyPlaceholder:p,renderSubComponent:v}),o&&S.jsx(bI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Kt().kind[f]} ${b?Kt().variant[b]:""}
|
75
|
+
${m?Kt().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:x.isValidElement(h)?h:Kt().sortingIcon[f].asc,componentSortDESC:x.isValidElement(g)?g:Kt().sortingIcon[f].desc,classNamePointer:Kt().pointer[f],emptyPlaceholder:p,renderSubComponent:v})]})},yI=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),xI=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),p1=x.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:f=[],overscan:h=null,component:g={},idContainer:m="",triggerCalCulateContainer:p="",accumulationHeight:b=0,delayTriggerCalculateHeight:v=0,increaseViewportBy:y=()=>0,context:D={},endReached:C}=e,[E,I]=x.useState(0),w=()=>{if(o==="min-max"){const _=(a+1)*s;return{height:a>u?l:E>_?E:_}}return o==="container"?{height:E}:{}},$=_=>{var A;const P=_.getAttribute("data-index");let M=((A=_.getBoundingClientRect())==null?void 0:A.height)||0;return f==null||f.forEach(B=>{var T,F;M+=((F=(T=document.querySelector(`[${B}="${P}"]`))==null?void 0:T.getBoundingClientRect())==null?void 0:F.height)??0}),M},R=()=>{var _;if(m&&o==="container"){const P=((_=document==null?void 0:document.getElementById(m))==null?void 0:_.offsetHeight)??0;I(P-b)}};return x.useEffect(()=>{const _=setTimeout(R,v);return window==null||window.addEventListener("resize",R),window==null||window.addEventListener("load",R),()=>{clearTimeout(_),window==null||window.removeEventListener("resize",R),window==null||window.removeEventListener("load",R)}},[o,p]),S.jsx("div",{className:`1ru-w-full ${n}`,children:S.jsx(RE,{context:D,ref:t,overscan:typeof h=="function"?h(o==="container"?E:l):o==="container"?E:l,totalListHeightChanged:_=>o==="min-max"?I(_):null,style:w(),totalCount:a,computeItemKey:r,itemSize:x.useCallback(_=>d==="manual"?i(_):$(_),[]),itemContent:(..._)=>c(yI,..._),components:{Item:xI,...g},endReached:C,increaseViewportBy:y(o==="container"?E:l)})})});p1.displayName="ListVirtualization";const CI="_ripple_ori0m_64",wI="_active_ori0m_69",wt={"disable-transition":"_disable-transition_ori0m_1","tab-panel":"_tab-panel_ori0m_5","tabs-medium":"_tabs-medium_ori0m_9","tabs-list":"_tabs-list_ori0m_12","button-tabs":"_button-tabs_ori0m_12","tabs-small":"_tabs-small_ori0m_19","tabs-m":"_tabs-m_ori0m_9","tabs-s":"_tabs-s_ori0m_19","container-tabs":"_container-tabs_ori0m_49","original-laba-blue-10":"_original-laba-blue-10_ori0m_52",ripple:CI,active:wI,"tabs-slider":"_tabs-slider_ori0m_76","container-payhere-brand-base":"_container-payhere-brand-base_ori0m_81","container-laba-blue-10":"_container-laba-blue-10_ori0m_105","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_ori0m_129"},vo={"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"},DI=({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:f=!0,onChange:h})=>{var w;const g=x.useRef([]);let m=r||[];const p=Object.fromEntries(new URL(window.location.href).searchParams.entries()),b={tabsVariant:{"original-laba-blue-10":wt["original-laba-blue-10"],"container-payhere-brand-base":wt["container-payhere-brand-base"],"container-laba-blue-10":wt["container-laba-blue-10"],"container-laba-blue-10-bg_white":wt["container-laba-blue-10-bg_white"]},size:{"tabs-m":wt["tabs-m"],"tabs-s":wt["tabs-s"],"tabs-medium":wt["tabs-medium"],"tabs-small":wt["tabs-small"]},borderRadius:vo,isContainer:["container-payhere-brand-base","container-laba-blue-10","container-laba-blue-10-bg_white"]},[v,y]=x.useState(-1),[D,C]=x.useState({height:0,width:0,left:0});m=m.filter($=>typeof($==null?void 0:$.isHide)=="boolean"?!$.isHide:!0);const E=$=>{const R=$.currentTarget,_=document.createElement("span"),P=Math.max(R.clientWidth,R.clientHeight),M=P/2;_.style.width=_.style.height=`${P}px`,_.style.left=`${$.clientX-R.getBoundingClientRect().left-M}px`,_.style.top=`${$.clientY-R.getBoundingClientRect().top-M}px`,_.classList.add(wt.ripple);const A=R.getElementsByClassName(wt.ripple)[0];A&&A.remove(),R.appendChild(_),setTimeout(()=>{_.remove()},500)},I=$=>{typeof h=="function"&&h($)};return x.useEffect(()=>{function $(){const R=g.current[v],_={left:(R==null?void 0:R.offsetLeft)??0,width:(R==null?void 0:R.clientWidth)??0,height:b.isContainer.includes(s)?(R==null?void 0:R.clientHeight)??0:4};C(_)}return v>=0&&$(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[v]),x.useEffect(()=>{const $=m.findIndex(R=>R.id===(p==null?void 0:p[n])||R.id===t);if((p!=null&&p[n]||t)&&$>=0){y($);const R=m==null?void 0:m.find(_=>_.id===(p==null?void 0:p[n]));p!=null&&p[n]&&R&&!t&&f&&I(R)}$<0&&f&&I(m[0])},[JSON.stringify(t),JSON.stringify(p==null?void 0:p[n])]),S.jsx("div",{className:`${wt["container-tabs"]} ${c?"1ru-opacity-50":""} ${a??""}`,children:S.jsxs("div",{className:`${b.tabsVariant[s]}
|
76
76
|
${b.isContainer.includes(s)?b.size[l]:""}
|
77
|
-
${i??""}`,id:e??"1ru-tabs",children:[
|
78
|
-
${o??""} ${v===R?wt.active:""}`,disabled:c,onClick:_=>{b.isContainer.includes(s)||
|
77
|
+
${i??""}`,id:e??"1ru-tabs",children:[S.jsx("div",{className:wt["tabs-list"],children:m.map(($,R)=>S.jsx("button",{id:`1ru-tabs-button-${$.id}`,ref:_=>g.current[R]=_,className:`${wt["button-tabs"]} ${b.borderRadius[u]}
|
78
|
+
${o??""} ${v===R?wt.active:""}`,disabled:c,onClick:_=>{b.isContainer.includes(s)||E(_),v!=R&&I($)},children:$.label},R))}),S.jsx("div",{className:`${wt["tabs-slider"]} ${b.borderRadius[u]}
|
79
79
|
${o??""} ${d?"":wt["disable-transition"]}
|
80
|
-
`,style:{left:
|
81
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(e,t){return MI(e)||kI(e,t)||y1(e,t)||BI()}function VI(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 pr(e,t){if(e==null)return{};var n,r,i=VI(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 OI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function NI(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,f=e.onMenuOpen,h=e.value,g=pr(e,OI),m=x.useState(s!==void 0?s:n),p=fr(m,2),b=p[0],v=p[1],y=x.useState(l!==void 0?l:i),
|
80
|
+
`,style:{left:D.left,width:D.width,height:D.height,background:((w=r[v])==null?void 0:w.activeColor)??""}})]})})},SI=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>S.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${wt["tab-panel"]} ${i??""}`,children:e}),EI="_option_eztw3_62",II="_active_eztw3_73",dn={"base-pagination":"_base-pagination_eztw3_1","pagination-nude":"_pagination-nude_eztw3_1","pagination-box":"_pagination-box_eztw3_1","pagination-size":"_pagination-size_eztw3_9","navigation-container":"_navigation-container_eztw3_12","button-container":"_button-container_eztw3_17","button-next":"_button-next_eztw3_17","button-prev":"_button-prev_eztw3_17","pagination-active":"_pagination-active_eztw3_30","options-size":"_options-size_eztw3_62",option:EI,active:II},_I="_selected_1is24_1",$I="_disabled_1is24_19",RI="_valid_1is24_66",AI="_invalid_1is24_72",FI="_error_1is24_103",ge={"selected-calendar":"_selected-calendar_1is24_1","container-calendar":"_container-calendar_1is24_1","month-calendar":"_month-calendar_1is24_1","cell-month":"_cell-month_1is24_1",selected:_I,"year-calendar":"_year-calendar_1is24_2","cell-year":"_cell-year_1is24_2","cell-calendar":"_cell-calendar_1is24_2","active-cell-calendar":"_active-cell-calendar_1is24_2","custom-time-calendar":"_custom-time-calendar_1is24_3","container-cell-time":"_container-cell-time_1is24_3","cell-time":"_cell-time_1is24_3","header-calendar":"_header-calendar_1is24_11","header-button-calendar":"_header-button-calendar_1is24_15",disabled:$I,"days-calendar":"_days-calendar_1is24_26","visible-cell-calendar":"_visible-cell-calendar_1is24_33","header-time":"_header-time_1is24_46","type-time":"_type-time_1is24_51",valid:RI,invalid:AI,"footer-calendar":"_footer-calendar_1is24_91","container-filter-date":"_container-filter-date_1is24_96","button-filter-date":"_button-filter-date_1is24_99",error:FI},jn=({className:e})=>S.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:S.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"})}),b1=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:10},setActiveTypeCalendar:i,onChangeYear:a})=>{const o=(l,u)=>{const c=t.focusedDate.set({year:l});u?(i("month"),t.setFocusedDate(c)):!u&&typeof a=="function"&&a(c)},s=(l,u,c)=>Array.from({length:(u-l)/c+1},(d,f)=>l+f*c);return x.useEffect(()=>{const l=document.getElementById(`calendar-year-${t.focusedDate.year}`),u=document.getElementById("wrapper-calendar-year");l&&u&&u.scrollTo({behavior:"instant",top:l.offsetTop-93})},[]),S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsx("div",{className:`${ge["header-calendar"]} 1ru-my-2`,children:S.jsxs("div",{className:`${ge["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":ge.disabled}`,onClick:()=>{n.includes("date")?i("date"):n.includes("month")&&i("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&S.jsx(jn,{})]})}),S.jsx("div",{id:"wrapper-calendar-year",className:ge["year-calendar"],children:s(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(l=>{var h,g;const u=Number(l),c=t!=null&&t.minValue?u<((h=t==null?void 0:t.minValue)==null?void 0:h.year):!1,d=t!=null&&t.maxValue?u>((g=t==null?void 0:t.maxValue)==null?void 0:g.year):!1,f=c||d;return S.jsx("div",{id:`calendar-year-${l}`,onClick:()=>{f||o(u,n.includes("month"))},className:`${ge["cell-year"]} ${t.focusedDate.year===u&&!f?ge.selected:""} ${t.focusedDate.year!==u&&!f?"hover:1ru-bg-laba-blue-01":""} ${f?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:l},l)})})]})},ms=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},PI=({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:f,withOptionPageSize:h=!1})=>{const g=x.useRef(null),m={box:dn["pagination-box"],nude:dn["pagination-nude"]},p=1,b=(n-1)*r+1,v=r*n,y=e?`${xr(b,"decimal")}-${v>=e?xr(e,"decimal"):xr(v,"decimal")}`:0,D=x.useMemo(()=>{const E=Math.ceil(e/r);if(p+5>=E)return ms(1,E);const w=Math.max(n-p,1),$=Math.min(n+p,E),R=w>2,_=$<E-2,P=1,M=E;if(!R&&_){const A=3+2*p;return[...ms(1,A),"...",E]}if(R&&!_){const A=3+2*p,B=ms(E-A+1,E);return[P,"...",...B]}if(R&&_){const A=ms(w,$);return[P,"...",...A,"...",M]}},[e,r,p,n]),C=E=>{typeof u=="function"&&u(E)};return S.jsxs(S.Fragment,{children:[S.jsxs("div",{id:a??"1ru-pagination",className:`${m[o]} ${i}`,children:[S.jsxs("div",{className:dn["pagination-size"],children:[S.jsx("span",{children:"Baris per halaman:"}),h&&S.jsx(Wn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:S.jsx(jn,{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:E=>{var I;return(I=g.current)==null?void 0:I.handlerShow(E)},children:xr(r,"decimal")}),S.jsxs("span",{children:[y," dari ",xr(e,"decimal")]})]}),S.jsxs("div",{className:dn["navigation-container"],children:[S.jsx("button",{id:"1ru-pagination-button-prev",className:`${dn["button-prev"]}`,disabled:n===1,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||x.isValidElement(s)?x.isValidElement(s)?s:s():S.jsx(jn,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),(D??[]).map((E,I)=>typeof E!="number"?S.jsx("button",{className:dn["button-container"],disabled:!0,children:E},I):S.jsx("button",{id:`1ru-pagination-button-${E}`,className:`${E===n?dn["pagination-active"]:""} ${dn["button-container"]}`,disabled:E===n,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:E}),children:xr(E,"decimal")},I)),S.jsx("button",{id:"1ru-pagination-button-next",className:`${dn["button-next"]}`,disabled:n===t||!t,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||x.isValidElement(l)?x.isValidElement(l)?l:l():S.jsx(jn,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})})]})]}),S.jsx(Ei,{floatingOptions:{placement:"bottom-end"},ref:g,className:dn["options-size"],offset:d,zIndex:f,children:c.map((E,I)=>S.jsx("p",{className:`${dn.option} ${E===r?dn.active:""}`,onClick:()=>{var w;C({totalData:e,totalPage:t,pageSize:E,pageNumber:1}),(w=g.current)==null||w.setShow(!1)},children:xr(E,"decimal")},I))})]})};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 TI(e,t){if(bi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v1(e){var t=TI(e,"string");return bi(t)=="symbol"?t:t+""}function Va(e,t,n){return(t=v1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tg(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(n),!0).forEach(function(r){Va(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MI(e){if(Array.isArray(e))return e}function kI(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 qc(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 y1(e,t){if(e){if(typeof e=="string")return qc(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)?qc(e,t):void 0}}function BI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(e,t){return MI(e)||kI(e,t)||y1(e,t)||BI()}function VI(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 pr(e,t){if(e==null)return{};var n,r,i=VI(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 OI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function NI(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,f=e.onMenuOpen,h=e.value,g=pr(e,OI),m=x.useState(s!==void 0?s:n),p=fr(m,2),b=p[0],v=p[1],y=x.useState(l!==void 0?l:i),D=fr(y,2),C=D[0],E=D[1],I=x.useState(h!==void 0?h:o),w=fr(I,2),$=w[0],R=w[1],_=x.useCallback(function(V,j){typeof u=="function"&&u(V,j),R(V)},[u]),P=x.useCallback(function(V,j){var N;typeof c=="function"&&(N=c(V,j)),v(N!==void 0?N:V)},[c]),M=x.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),A=x.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),B=s!==void 0?s:b,T=l!==void 0?l:C,F=h!==void 0?h:$;return ce(ce({},g),{},{inputValue:B,menuIsOpen:T,onChange:_,onInputChange:P,onMenuClose:A,onMenuOpen:M,value:F})}function de(){return de=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},de.apply(null,arguments)}function LI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mg(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,v1(r.key),r)}}function jI(e,t,n){return t&&Mg(e.prototype,t),n&&Mg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qc(e,t){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qc(e,t)}function HI(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&&Qc(e,t)}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rl(e)}function x1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x1=function(){return!!e})()}function WI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zI(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 WI(e)}function GI(e){var t=x1();return function(){var n,r=Rl(e);if(t){var i=Rl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zI(this,n)}}function ZI(e){if(Array.isArray(e))return qc(e)}function XI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
82
82
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wf(e){return ZI(e)||XI(e)||y1(e)||YI()}function UI(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 JI(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 KI=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(JI(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:
|
83
|
-
`+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=UI(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}(),It="-ms-",Al="-moz-",Fe="-webkit-",Df="comm",Sf="rule",Ef="decl",qI="@import",C1="@keyframes",QI="@layer",e_=Math.abs,bu=String.fromCharCode,t_=Object.assign;function n_(e,t){return Dt(e,0)^45?(((t<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}function w1(e){return e.trim()}function r_(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,n){return e.replace(t,n)}function ed(e,t){return e.indexOf(t)}function Dt(e,t){return e.charCodeAt(t)|0}function yo(e,t,n){return e.slice(t,n)}function On(e){return e.length}function If(e){return e.length}function ps(e,t){return t.push(e),e}function i_(e,t){return e.map(t).join("")}var vu=1,fa=1,D1=0,Xt=0,gt=0,Ca="";function yu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:vu,column:fa,length:o,return:""}}function Ia(e,t){return t_(yu("",null,null,"",null,null,0),e,{length:-e.length},t)}function a_(){return gt}function o_(){return gt=Xt>0?Dt(Ca,--Xt):0,fa--,gt===10&&(fa=1,vu--),gt}function on(){return gt=Xt<D1?Dt(Ca,Xt++):0,fa++,gt===10&&(fa=1,vu++),gt}function Hn(){return Dt(Ca,Xt)}function Ks(){return Xt}function Uo(e,t){return yo(Ca,e,t)}function xo(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 S1(e){return vu=fa=1,D1=On(Ca=e),Xt=0,[]}function E1(e){return Ca="",e}function qs(e){return w1(Uo(Xt-1,td(e===91?e+2:e===40?e+1:e)))}function s_(e){for(;(gt=Hn())&><33;)on();return xo(e)>2||xo(gt)>3?"":" "}function l_(e,t){for(;--t&&on()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return Uo(e,Ks()+(t<6&&Hn()==32&&on()==32))}function td(e){for(;on();)switch(gt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&td(gt);break;case 40:e===41&&td(e);break;case 92:on();break}return Xt}function u_(e,t){for(;on()&&e+gt!==57;)if(e+gt===84&&Hn()===47)break;return"/*"+Uo(t,Xt-1)+"*"+bu(e===47?e:on())}function c_(e){for(;!xo(Hn());)on();return Uo(e,Xt)}function d_(e){return E1(Qs("",null,null,null,[""],e=S1(e),0,[0],e))}function Qs(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,f=0,h=0,g=0,m=1,p=1,b=1,v=0,y="",w=i,C=a,S=r,I=y;p;)switch(g=v,v=on()){case 40:if(g!=108&&Dt(I,d-1)==58){ed(I+=Pe(qs(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=qs(v);break;case 9:case 10:case 13:case 32:I+=s_(g);break;case 92:I+=l_(Ks()-1,7);continue;case 47:switch(Hn()){case 42:case 47:ps(f_(u_(on(),Ks()),t,n),l);break;default:I+="/"}break;case 123*m:s[u++]=On(I)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:p=0;case 59+c:b==-1&&(I=Pe(I,/\f/g,"")),h>0&&On(I)-d&&ps(h>32?Bg(I+";",r,n,d-1):Bg(Pe(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(ps(S=kg(I,t,n,u,c,i,s,y,w=[],C=[],d),a),v===123)if(c===0)Qs(I,t,S,S,w,a,d,s,C);else switch(f===99&&Dt(I,3)===110?100:f){case 100:case 108:case 109:case 115:Qs(e,S,S,r&&ps(kg(e,S,S,0,0,i,s,y,i,w=[],d),C),i,C,d,s,r?w:C);break;default:Qs(I,S,S,S,[""],C,0,s,C)}}u=c=h=0,m=b=1,y=I="",d=o;break;case 58:d=1+On(I),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&o_()==125)continue}switch(I+=bu(v),v*m){case 38:b=c>0?1:(I+="\f",-1);break;case 44:s[u++]=(On(I)-1)*b,b=1;break;case 64:Hn()===45&&(I+=qs(on())),f=Hn(),c=d=On(y=I+=c_(Ks())),v++;break;case 45:g===45&&On(I)==2&&(m=0)}}return a}function kg(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,f=i===0?a:[""],h=If(f),g=0,m=0,p=0;g<r;++g)for(var b=0,v=yo(e,d+1,d=e_(m=o[g])),y=e;b<h;++b)(y=w1(m>0?f[b]+" "+v:Pe(v,/&\f/g,f[b])))&&(l[p++]=y);return yu(e,t,n,i===0?Sf:s,l,u,c)}function f_(e,t,n){return yu(e,t,n,Df,bu(a_()),yo(e,2,-2),0)}function Bg(e,t,n,r){return yu(e,t,n,Ef,yo(e,0,r),yo(e,r+1,-1),r)}function ta(e,t){for(var n="",r=If(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function h_(e,t,n,r){switch(e.type){case QI:if(e.children.length)break;case qI:case Ef:return e.return=e.return||e.value;case Df:return"";case C1:return e.return=e.value+"{"+ta(e.children,r)+"}";case Sf:e.value=e.props.join(",")}return On(n=ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function g_(e){var t=If(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 m_(e){return function(t){t.root||(t=t.return)&&e(t)}}var p_=function(t,n,r){for(var i=0,a=0;i=a,a=Hn(),i===38&&a===12&&(n[r]=1),!xo(a);)on();return Uo(t,Xt)},b_=function(t,n){var r=-1,i=44;do switch(xo(i)){case 0:i===38&&Hn()===12&&(n[r]=1),t[r]+=p_(Xt-1,n,r);break;case 2:t[r]+=qs(i);break;case 4:if(i===44){t[++r]=Hn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=bu(i)}while(i=on());return t},v_=function(t,n){return E1(b_(S1(t),n))},Vg=new WeakMap,y_=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&&!Vg.get(r))&&!i){Vg.set(t,!0);for(var a=[],o=v_(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]}}},x_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},C_="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",w_=function(t){return t.type==="comm"&&t.children.indexOf(C_)>-1},D_=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(w_(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".')})}}}},I1=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},S_=function(t,n){for(var r=t-1;r>=0;r--)if(!I1(n[r]))return!0;return!1},Og=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},E_=function(t,n,r){I1(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."),Og(t)):S_(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Og(t)))};function _1(e,t){switch(n_(e,t)){case 5103:return Fe+"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 Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Al+e+It+e+e;case 6828:case 4268:return Fe+e+It+e+e;case 6165:return Fe+e+It+"flex-"+e+e;case 5187:return Fe+e+Pe(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return Fe+e+It+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return Fe+e+It+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+It+Pe(e,"shrink","negative")+e;case 5292:return Fe+e+It+Pe(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Pe(e,"-grow","")+Fe+e+It+Pe(e,"grow","positive")+e;case 4554:return Fe+Pe(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Fe+"$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(On(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Al+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ed(e,"stretch")?_1(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,On(e)-3-(~ed(e,"!important")&&10))){case 107:return Pe(e,":",":"+Fe)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+It+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+It+e+e}return e}var I_=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ef:t.return=_1(t.value,t.length);break;case C1:return ta([Ia(t,{value:Pe(t.value,"@","@"+Fe)})],i);case Sf:if(t.length)return i_(t.props,function(a){switch(r_(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ta([Ia(t,{props:[Pe(a,/:(read-\w+)/,":"+Al+"$1")]})],i);case"::placeholder":return ta([Ia(t,{props:[Pe(a,/:(plac\w+)/,":"+Fe+"input-$1")]}),Ia(t,{props:[Pe(a,/:(plac\w+)/,":"+Al+"$1")]}),Ia(t,{props:[Pe(a,/:(plac\w+)/,It+"input-$1")]})],i)}return""})}},__=[I_],$_=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.
|
83
|
+
`+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=UI(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}(),It="-ms-",Al="-moz-",Fe="-webkit-",Df="comm",Sf="rule",Ef="decl",qI="@import",C1="@keyframes",QI="@layer",e_=Math.abs,bu=String.fromCharCode,t_=Object.assign;function n_(e,t){return Dt(e,0)^45?(((t<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}function w1(e){return e.trim()}function r_(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,n){return e.replace(t,n)}function ed(e,t){return e.indexOf(t)}function Dt(e,t){return e.charCodeAt(t)|0}function yo(e,t,n){return e.slice(t,n)}function On(e){return e.length}function If(e){return e.length}function ps(e,t){return t.push(e),e}function i_(e,t){return e.map(t).join("")}var vu=1,fa=1,D1=0,Xt=0,gt=0,Ca="";function yu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:vu,column:fa,length:o,return:""}}function Ia(e,t){return t_(yu("",null,null,"",null,null,0),e,{length:-e.length},t)}function a_(){return gt}function o_(){return gt=Xt>0?Dt(Ca,--Xt):0,fa--,gt===10&&(fa=1,vu--),gt}function on(){return gt=Xt<D1?Dt(Ca,Xt++):0,fa++,gt===10&&(fa=1,vu++),gt}function Hn(){return Dt(Ca,Xt)}function Ks(){return Xt}function Uo(e,t){return yo(Ca,e,t)}function xo(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 S1(e){return vu=fa=1,D1=On(Ca=e),Xt=0,[]}function E1(e){return Ca="",e}function qs(e){return w1(Uo(Xt-1,td(e===91?e+2:e===40?e+1:e)))}function s_(e){for(;(gt=Hn())&><33;)on();return xo(e)>2||xo(gt)>3?"":" "}function l_(e,t){for(;--t&&on()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return Uo(e,Ks()+(t<6&&Hn()==32&&on()==32))}function td(e){for(;on();)switch(gt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&td(gt);break;case 40:e===41&&td(e);break;case 92:on();break}return Xt}function u_(e,t){for(;on()&&e+gt!==57;)if(e+gt===84&&Hn()===47)break;return"/*"+Uo(t,Xt-1)+"*"+bu(e===47?e:on())}function c_(e){for(;!xo(Hn());)on();return Uo(e,Xt)}function d_(e){return E1(Qs("",null,null,null,[""],e=S1(e),0,[0],e))}function Qs(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,f=0,h=0,g=0,m=1,p=1,b=1,v=0,y="",D=i,C=a,E=r,I=y;p;)switch(g=v,v=on()){case 40:if(g!=108&&Dt(I,d-1)==58){ed(I+=Pe(qs(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=qs(v);break;case 9:case 10:case 13:case 32:I+=s_(g);break;case 92:I+=l_(Ks()-1,7);continue;case 47:switch(Hn()){case 42:case 47:ps(f_(u_(on(),Ks()),t,n),l);break;default:I+="/"}break;case 123*m:s[u++]=On(I)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:p=0;case 59+c:b==-1&&(I=Pe(I,/\f/g,"")),h>0&&On(I)-d&&ps(h>32?Bg(I+";",r,n,d-1):Bg(Pe(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(ps(E=kg(I,t,n,u,c,i,s,y,D=[],C=[],d),a),v===123)if(c===0)Qs(I,t,E,E,D,a,d,s,C);else switch(f===99&&Dt(I,3)===110?100:f){case 100:case 108:case 109:case 115:Qs(e,E,E,r&&ps(kg(e,E,E,0,0,i,s,y,i,D=[],d),C),i,C,d,s,r?D:C);break;default:Qs(I,E,E,E,[""],C,0,s,C)}}u=c=h=0,m=b=1,y=I="",d=o;break;case 58:d=1+On(I),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&o_()==125)continue}switch(I+=bu(v),v*m){case 38:b=c>0?1:(I+="\f",-1);break;case 44:s[u++]=(On(I)-1)*b,b=1;break;case 64:Hn()===45&&(I+=qs(on())),f=Hn(),c=d=On(y=I+=c_(Ks())),v++;break;case 45:g===45&&On(I)==2&&(m=0)}}return a}function kg(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,f=i===0?a:[""],h=If(f),g=0,m=0,p=0;g<r;++g)for(var b=0,v=yo(e,d+1,d=e_(m=o[g])),y=e;b<h;++b)(y=w1(m>0?f[b]+" "+v:Pe(v,/&\f/g,f[b])))&&(l[p++]=y);return yu(e,t,n,i===0?Sf:s,l,u,c)}function f_(e,t,n){return yu(e,t,n,Df,bu(a_()),yo(e,2,-2),0)}function Bg(e,t,n,r){return yu(e,t,n,Ef,yo(e,0,r),yo(e,r+1,-1),r)}function ta(e,t){for(var n="",r=If(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function h_(e,t,n,r){switch(e.type){case QI:if(e.children.length)break;case qI:case Ef:return e.return=e.return||e.value;case Df:return"";case C1:return e.return=e.value+"{"+ta(e.children,r)+"}";case Sf:e.value=e.props.join(",")}return On(n=ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function g_(e){var t=If(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 m_(e){return function(t){t.root||(t=t.return)&&e(t)}}var p_=function(t,n,r){for(var i=0,a=0;i=a,a=Hn(),i===38&&a===12&&(n[r]=1),!xo(a);)on();return Uo(t,Xt)},b_=function(t,n){var r=-1,i=44;do switch(xo(i)){case 0:i===38&&Hn()===12&&(n[r]=1),t[r]+=p_(Xt-1,n,r);break;case 2:t[r]+=qs(i);break;case 4:if(i===44){t[++r]=Hn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=bu(i)}while(i=on());return t},v_=function(t,n){return E1(b_(S1(t),n))},Vg=new WeakMap,y_=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&&!Vg.get(r))&&!i){Vg.set(t,!0);for(var a=[],o=v_(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]}}},x_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},C_="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",w_=function(t){return t.type==="comm"&&t.children.indexOf(C_)>-1},D_=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(w_(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".')})}}}},I1=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},S_=function(t,n){for(var r=t-1;r>=0;r--)if(!I1(n[r]))return!0;return!1},Og=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},E_=function(t,n,r){I1(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."),Og(t)):S_(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Og(t)))};function _1(e,t){switch(n_(e,t)){case 5103:return Fe+"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 Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Al+e+It+e+e;case 6828:case 4268:return Fe+e+It+e+e;case 6165:return Fe+e+It+"flex-"+e+e;case 5187:return Fe+e+Pe(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return Fe+e+It+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return Fe+e+It+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+It+Pe(e,"shrink","negative")+e;case 5292:return Fe+e+It+Pe(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Pe(e,"-grow","")+Fe+e+It+Pe(e,"grow","positive")+e;case 4554:return Fe+Pe(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Fe+"$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(On(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Al+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ed(e,"stretch")?_1(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,On(e)-3-(~ed(e,"!important")&&10))){case 107:return Pe(e,":",":"+Fe)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+It+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+It+e+e}return e}var I_=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ef:t.return=_1(t.value,t.length);break;case C1:return ta([Ia(t,{value:Pe(t.value,"@","@"+Fe)})],i);case Sf:if(t.length)return i_(t.props,function(a){switch(r_(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ta([Ia(t,{props:[Pe(a,/:(read-\w+)/,":"+Al+"$1")]})],i);case"::placeholder":return ta([Ia(t,{props:[Pe(a,/:(plac\w+)/,":"+Fe+"input-$1")]}),Ia(t,{props:[Pe(a,/:(plac\w+)/,":"+Al+"$1")]}),Ia(t,{props:[Pe(a,/:(plac\w+)/,It+"input-$1")]})],i)}return""})}},__=[I_],$_=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.
|
84
84
|
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 p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||__;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 p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(m)});var l,u=[y_,x_];process.env.NODE_ENV!=="production"&&u.push(D_({get compat(){return g.compat}}),E_);{var c,d=[h_,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Df&&c.insert(m.value+"{}"))}:m_(function(m){c.insert(m)})],f=g_(u.concat(i,d)),h=function(p){return ta(d_(p),f)};l=function(p,b,v,y){c=v,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(c={insert:function(C){v.insert(C+b.map)}}),h(p?p+"{"+b.styles+"}":b.styles),y&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new KI({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},nd={exports:{}},Be={};/** @license React v16.13.1
|
85
85
|
* react-is.production.min.js
|
86
86
|
*
|
@@ -88,14 +88,14 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
88
88
|
*
|
89
89
|
* This source code is licensed under the MIT license found in the
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
91
|
-
*/var Ng;function R_(){if(Ng)return Be;Ng=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,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(C){if(typeof C=="object"&&C!==null){var
|
91
|
+
*/var Ng;function R_(){if(Ng)return Be;Ng=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,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case t:switch(C=C.type,C){case l:case u:case r:case a:case i:case d:return C;default:switch(C=C&&C.$$typeof,C){case s:case c:case g:case h:case o:return C;default:return E}}case n:return E}}}function D(C){return y(C)===u}return Be.AsyncMode=l,Be.ConcurrentMode=u,Be.ContextConsumer=s,Be.ContextProvider=o,Be.Element=t,Be.ForwardRef=c,Be.Fragment=r,Be.Lazy=g,Be.Memo=h,Be.Portal=n,Be.Profiler=a,Be.StrictMode=i,Be.Suspense=d,Be.isAsyncMode=function(C){return D(C)||y(C)===l},Be.isConcurrentMode=D,Be.isContextConsumer=function(C){return y(C)===s},Be.isContextProvider=function(C){return y(C)===o},Be.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Be.isForwardRef=function(C){return y(C)===c},Be.isFragment=function(C){return y(C)===r},Be.isLazy=function(C){return y(C)===g},Be.isMemo=function(C){return y(C)===h},Be.isPortal=function(C){return y(C)===n},Be.isProfiler=function(C){return y(C)===a},Be.isStrictMode=function(C){return y(C)===i},Be.isSuspense=function(C){return y(C)===d},Be.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===a||C===i||C===d||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===h||C.$$typeof===o||C.$$typeof===s||C.$$typeof===c||C.$$typeof===p||C.$$typeof===b||C.$$typeof===v||C.$$typeof===m)},Be.typeOf=y,Be}var Ve={};/** @license React v16.13.1
|
92
92
|
* react-is.development.js
|
93
93
|
*
|
94
94
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
95
95
|
*
|
96
96
|
* This source code is licensed under the MIT license found in the
|
97
97
|
* LICENSE file in the root directory of this source tree.
|
98
|
-
*/var Lg;function A_(){return Lg||(Lg=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,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===a||X===i||X===d||X===f||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===h||X.$$typeof===o||X.$$typeof===s||X.$$typeof===c||X.$$typeof===p||X.$$typeof===b||X.$$typeof===v||X.$$typeof===m)}function
|
98
|
+
*/var Lg;function A_(){return Lg||(Lg=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,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===a||X===i||X===d||X===f||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===h||X.$$typeof===o||X.$$typeof===s||X.$$typeof===c||X.$$typeof===p||X.$$typeof===b||X.$$typeof===v||X.$$typeof===m)}function D(X){if(typeof X=="object"&&X!==null){var Ae=X.$$typeof;switch(Ae){case t:var Me=X.type;switch(Me){case l:case u:case r:case a:case i:case d:return Me;default:var Xe=Me&&Me.$$typeof;switch(Xe){case s:case c:case g:case h:case o:return Xe;default:return Ae}}case n:return Ae}}}var C=l,E=u,I=s,w=o,$=t,R=c,_=r,P=g,M=h,A=n,B=a,T=i,F=d,V=!1;function j(X){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(X)||D(X)===l}function N(X){return D(X)===u}function Z(X){return D(X)===s}function z(X){return D(X)===o}function q(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function W(X){return D(X)===c}function H(X){return D(X)===r}function O(X){return D(X)===g}function G(X){return D(X)===h}function J(X){return D(X)===n}function re(X){return D(X)===a}function fe(X){return D(X)===i}function le(X){return D(X)===d}Ve.AsyncMode=C,Ve.ConcurrentMode=E,Ve.ContextConsumer=I,Ve.ContextProvider=w,Ve.Element=$,Ve.ForwardRef=R,Ve.Fragment=_,Ve.Lazy=P,Ve.Memo=M,Ve.Portal=A,Ve.Profiler=B,Ve.StrictMode=T,Ve.Suspense=F,Ve.isAsyncMode=j,Ve.isConcurrentMode=N,Ve.isContextConsumer=Z,Ve.isContextProvider=z,Ve.isElement=q,Ve.isForwardRef=W,Ve.isFragment=H,Ve.isLazy=O,Ve.isMemo=G,Ve.isPortal=J,Ve.isProfiler=re,Ve.isStrictMode=fe,Ve.isSuspense=le,Ve.isValidElementType=y,Ve.typeOf=D}()),Ve}process.env.NODE_ENV==="production"?nd.exports=R_():nd.exports=A_();var F_=nd.exports,$1=F_,P_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R1={};R1[$1.ForwardRef]=P_;R1[$1.Memo]=T_;var M_=!0;function A1(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var _f=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||M_===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},$f=function(t,n,r){_f(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 k_(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 B_={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 V_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jg=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
99
99
|
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';".
|
100
100
|
You can read more about this here:
|
101
101
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,O_="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",N_=/[A-Z]|^ms/g,F1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rf=function(t){return t.charCodeAt(1)===45},Hg=function(t){return t!=null&&typeof t!="boolean"},ec=V_(function(e){return Rf(e)?e:e.replace(N_,"-$&").toLowerCase()}),Fl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(F1,function(r,i,a){return wn={name:i,styles:a,next:wn},i})}return B_[t]!==1&&!Rf(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var L_=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,j_=["normal","none","initial","inherit","unset"],H_=Fl,W_=/^-ms-/,z_=/-(.)/g,Wg={};Fl=function(t,n){if(t==="content"&&(typeof n!="string"||j_.indexOf(n)===-1&&!L_.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=H_(t,n);return r!==""&&!Rf(t)&&t.indexOf("-")!==-1&&Wg[t]===void 0&&(Wg[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(W_,"ms-").replace(z_,function(i,a){return a.toUpperCase()})+"?")),r}}var P1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Co(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(P1);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return wn={name:n.name,styles:n.styles,next:wn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)wn={name:r.name,styles:r.styles,next:wn},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return G_(e,t,n)}case"function":{if(e!==void 0){var a=wn,o=n(e);return wn=a,Co(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(F1,function(c,d,f){var h="animation"+s.length;return s.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});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(`
|
@@ -104,10 +104,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
104
104
|
You should wrap it with \`css\` like this:
|
105
105
|
|
106
106
|
`+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function G_(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Co(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]+"}":Hg(o)&&(r+=ec(a)+":"+Fl(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(P1);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Hg(o[s])&&(r+=ec(a)+":"+Fl(a,o[s])+";");else{var l=Co(e,t,o);switch(a){case"animation":case"animationName":{r+=ec(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(O_),r+=a+"{"+l+"}"}}}}return r}var zg=/label:\s*([^\s;\n{]+)\s*(;|$)/g,T1;process.env.NODE_ENV!=="production"&&(T1=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var wn,wo=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="";wn=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Co(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(jg),a+=o[0]);for(var s=1;s<t.length;s++)a+=Co(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(jg),a+=o[s]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(T1,function(f){return l=f,""})),zg.lastIndex=0;for(var u="",c;(c=zg.exec(a))!==null;)u+="-"+c[1];var d=k_(a)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:a,map:l,next:wn,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:wn}},Z_=function(t){return t()},M1=L.useInsertionEffect?L.useInsertionEffect:!1,k1=M1||Z_,Gg=M1||L.useLayoutEffect,Af={}.hasOwnProperty,Ff=L.createContext(typeof HTMLElement<"u"?$_({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Ff.displayName="EmotionCacheContext");Ff.Provider;var Pf=function(t){return x.forwardRef(function(n,r){var i=x.useContext(Ff);return t(n,i,r)})},xu=L.createContext({});process.env.NODE_ENV!=="production"&&(xu.displayName="EmotionThemeContext");var Zg=function(t){var n=t.split(".");return n[n.length-1]},X_=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 Zg(n[1])},Y_=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),U_=function(t){return t.replace(/\$/g,"-")},J_=function(t){if(t)for(var n=t.split(`
|
107
|
-
`),r=0;r<n.length;r++){var i=X_(n[r]);if(i){if(Y_.has(i))break;if(/^[A-Z]/.test(i))return U_(i)}}},rd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",id="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",K_=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)Af.call(n,i)&&(r[i]=n[i]);if(r[rd]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=J_(new Error().stack);a&&(r[id]=a)}return r},q_=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _f(n,r,i),k1(function(){return $f(n,r,i)}),null},B1=Pf(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[rd],a=[r],o="";typeof e.className=="string"?o=A1(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=wo(a,void 0,L.useContext(xu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[id];l&&(s=wo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Af.call(e,c)&&c!=="css"&&c!==rd&&(process.env.NODE_ENV==="production"||c!==id)&&(u[c]=e[c]);return u.ref=n,u.className=o,L.createElement(L.Fragment,null,L.createElement(q_,{cache:t,serialized:s,isStringTag:typeof i=="string"}),L.createElement(i,u))});process.env.NODE_ENV!=="production"&&(B1.displayName="EmotionCssPropInternal");var Q_=B1,e6={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ue=function(t,n){var r=arguments;if(n==null||!Af.call(n,"css"))return L.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Q_,a[1]=K_(t,n);for(var o=2;o<i;o++)a[o]=r[o];return L.createElement.apply(null,a)},Xg=!1,t6=Pf(function(e,t){process.env.NODE_ENV!=="production"&&!Xg&&(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?"),Xg=!0);var n=e.styles,r=wo([n],void 0,L.useContext(xu)),i=L.useRef();return Gg(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]),Gg(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&$f(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"&&(t6.displayName="EmotionGlobal");function Tf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wo(t)}var n6=function(){var t=Tf.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_"}}},r6=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 i6(e,t,n){var r=[],i=A1(e,r,n);return r.length<2?n:i+t(r)}var a6=function(t){var n=t.cache,r=t.serializedArr;return k1(function(){for(var i=0;i<r.length;i++)$f(n,r[i],!1)}),null},o6=Pf(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 f=wo(c,t.registered);return r.push(f),_f(t,f,!1),t.key+"-"+f.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 i6(t.registered,i,r6(c))},o={css:i,cx:a,theme:L.useContext(xu)},s=e.children(o);return n=!0,L.createElement(L.Fragment,null,L.createElement(a6,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(o6.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Yg=!0,s6=typeof jest<"u"||typeof vi<"u";if(Yg&&!s6){var Ug=typeof globalThis<"u"?globalThis:Yg?window:global,Jg="__EMOTION_REACT_"+e6.version.split(".")[0]+"__";Ug[Jg]&&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."),Ug[Jg]=!0}}function l6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ad=x.useLayoutEffect,u6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pl=function(){};function c6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function d6(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(c6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Kg=function(t){return x6(t)?t.filter(Boolean):bi(t)==="object"&&t!==null?[t]:[]},V1=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=pr(t,u6);return ce({},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 Cu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function f6(e){return Cu(e)?window.innerHeight:e.clientHeight}function O1(e){return Cu(e)?window.pageYOffset:e.scrollTop}function Tl(e,t){if(Cu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function h6(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 g6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function bs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pl,i=O1(e),a=t-i,o=10,s=0;function l(){s+=o;var u=g6(s,i,a,n);Tl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function qg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Tl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Tl(e,Math.max(t.offsetTop-i,0))}function m6(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 Qg(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function p6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var N1=!1,b6={get passive(){return N1=!0}},vs=typeof window<"u"?window:{};vs.addEventListener&&vs.removeEventListener&&(vs.addEventListener("p",Pl,b6),vs.removeEventListener("p",Pl,!1));var v6=N1;function y6(e){return e!=null}function x6(e){return Array.isArray(e)}function ys(e,t,n){return e?t:n}var C6=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=fr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=fr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},w6=["children","innerProps"],D6=["children","innerProps"];function S6(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=h6(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,v=o?window.innerHeight:f6(l),y=O1(l),w=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),S=b-C,I=v-m,D=S+y,$=d-y-m,R=h-v+y+w,_=y+m-C,P=160;switch(i){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if($>=g&&!o)return a&&bs(l,R,P),{placement:"bottom",maxHeight:t};if(!o&&$>=r||o&&I>=r){a&&bs(l,R,P);var M=o?I-w:$-w;return{placement:"bottom",maxHeight:M}}if(i==="auto"||o){var A=t,B=o?S:D;return B>=r&&(A=Math.min(B-w-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Tl(l,R),{placement:"bottom",maxHeight:t};break;case"top":if(S>=g)return{placement:"top",maxHeight:t};if(D>=g&&!o)return a&&bs(l,_,P),{placement:"top",maxHeight:t};if(!o&&D>=r||o&&S>=r){var T=t;return(!o&&D>=r||o&&S>=r)&&(T=o?S-C:D-C),a&&bs(l,_,P),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function E6(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var L1=function(t){return t==="auto"?"bottom":t},I6=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ce((r={label:"menu"},Va(r,E6(i),"100%"),Va(r,"position","absolute"),Va(r,"width","100%"),Va(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})},j1=x.createContext(null),_6=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=x.useContext(j1)||{},c=u.setPortalPlacement,d=x.useRef(null),f=x.useState(i),h=fr(f,2),g=h[0],m=h[1],p=x.useState(null),b=fr(p,2),v=b[0],y=b[1],w=l.spacing.controlHeight;return ad(function(){var C=d.current;if(C){var S=o==="fixed",I=s&&!S,D=S6({maxHeight:i,menuEl:C,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:S,controlHeight:w});m(D.maxHeight),y(D.placement),c==null||c(D.placement)}},[i,a,o,s,r,c,w]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||L1(a),maxHeight:g})})},$6=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ue("div",de({},st(t,"menu",{menu:!0}),{ref:r},i),n)},R6=$6,A6=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},F6=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ue("div",de({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},H1=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ce({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},P6=H1,T6=H1,M6=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=pr(t,w6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},k6=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=pr(t,D6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},B6=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}},V6=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(L1(o)),d=fr(c,2),f=d[0],h=d[1],g=x.useMemo(function(){return{setPortalPlacement:h}},[]),m=x.useState(null),p=fr(m,2),b=p[0],v=p[1],y=x.useCallback(function(){if(i){var I=m6(i),D=s==="fixed"?0:window.pageYOffset,$=I[f]+D;($!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&v({offset:$,rect:I})}},[i,s,f,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);ad(function(){y()},[y]);var w=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=eb(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);ad(function(){w()},[w]);var C=x.useCallback(function(I){l.current=I,w()},[w]);if(!n&&s!=="fixed"||!b)return null;var S=ue("div",de({ref:C},st(ce(ce({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(j1.Provider,{value:g},n?Lo.createPortal(S,n):S)},O6=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},N6=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ue("div",de({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},L6=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ce({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")})},j6=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ue("div",de({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},H6=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},W6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},em,z6=["size"],G6=["innerProps","isRtl","size"];function Z6(){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 X6=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:Z6},W1=function(t){var n=t.size,r=pr(t,z6);return ue("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:X6},r))},Mf=function(t){return ue(W1,de({size:20},t),ue("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"}))},z1=function(t){return ue(W1,de({size:20},t),ue("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"}))},G1=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},Y6=G1,U6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(z1,null))},J6=G1,K6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(Mf,null))},q6=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},Q6=function(t){var n=t.innerProps;return ue("span",de({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},e$=n6(em||(em=l6([`
|
107
|
+
`),r=0;r<n.length;r++){var i=X_(n[r]);if(i){if(Y_.has(i))break;if(/^[A-Z]/.test(i))return U_(i)}}},rd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",id="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",K_=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)Af.call(n,i)&&(r[i]=n[i]);if(r[rd]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=J_(new Error().stack);a&&(r[id]=a)}return r},q_=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _f(n,r,i),k1(function(){return $f(n,r,i)}),null},B1=Pf(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[rd],a=[r],o="";typeof e.className=="string"?o=A1(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=wo(a,void 0,L.useContext(xu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[id];l&&(s=wo([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Af.call(e,c)&&c!=="css"&&c!==rd&&(process.env.NODE_ENV==="production"||c!==id)&&(u[c]=e[c]);return u.ref=n,u.className=o,L.createElement(L.Fragment,null,L.createElement(q_,{cache:t,serialized:s,isStringTag:typeof i=="string"}),L.createElement(i,u))});process.env.NODE_ENV!=="production"&&(B1.displayName="EmotionCssPropInternal");var Q_=B1,e6={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ue=function(t,n){var r=arguments;if(n==null||!Af.call(n,"css"))return L.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Q_,a[1]=K_(t,n);for(var o=2;o<i;o++)a[o]=r[o];return L.createElement.apply(null,a)},Xg=!1,t6=Pf(function(e,t){process.env.NODE_ENV!=="production"&&!Xg&&(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?"),Xg=!0);var n=e.styles,r=wo([n],void 0,L.useContext(xu)),i=L.useRef();return Gg(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]),Gg(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&$f(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"&&(t6.displayName="EmotionGlobal");function Tf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wo(t)}var n6=function(){var t=Tf.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_"}}},r6=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 i6(e,t,n){var r=[],i=A1(e,r,n);return r.length<2?n:i+t(r)}var a6=function(t){var n=t.cache,r=t.serializedArr;return k1(function(){for(var i=0;i<r.length;i++)$f(n,r[i],!1)}),null},o6=Pf(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 f=wo(c,t.registered);return r.push(f),_f(t,f,!1),t.key+"-"+f.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 i6(t.registered,i,r6(c))},o={css:i,cx:a,theme:L.useContext(xu)},s=e.children(o);return n=!0,L.createElement(L.Fragment,null,L.createElement(a6,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(o6.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Yg=!0,s6=typeof jest<"u"||typeof vi<"u";if(Yg&&!s6){var Ug=typeof globalThis<"u"?globalThis:Yg?window:global,Jg="__EMOTION_REACT_"+e6.version.split(".")[0]+"__";Ug[Jg]&&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."),Ug[Jg]=!0}}function l6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ad=x.useLayoutEffect,u6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pl=function(){};function c6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function d6(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(c6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Kg=function(t){return x6(t)?t.filter(Boolean):bi(t)==="object"&&t!==null?[t]:[]},V1=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=pr(t,u6);return ce({},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 Cu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function f6(e){return Cu(e)?window.innerHeight:e.clientHeight}function O1(e){return Cu(e)?window.pageYOffset:e.scrollTop}function Tl(e,t){if(Cu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function h6(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 g6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function bs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pl,i=O1(e),a=t-i,o=10,s=0;function l(){s+=o;var u=g6(s,i,a,n);Tl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function qg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Tl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Tl(e,Math.max(t.offsetTop-i,0))}function m6(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 Qg(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function p6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var N1=!1,b6={get passive(){return N1=!0}},vs=typeof window<"u"?window:{};vs.addEventListener&&vs.removeEventListener&&(vs.addEventListener("p",Pl,b6),vs.removeEventListener("p",Pl,!1));var v6=N1;function y6(e){return e!=null}function x6(e){return Array.isArray(e)}function ys(e,t,n){return e?t:n}var C6=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=fr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=fr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},w6=["children","innerProps"],D6=["children","innerProps"];function S6(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=h6(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,v=o?window.innerHeight:f6(l),y=O1(l),D=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),E=b-C,I=v-m,w=E+y,$=d-y-m,R=h-v+y+D,_=y+m-C,P=160;switch(i){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if($>=g&&!o)return a&&bs(l,R,P),{placement:"bottom",maxHeight:t};if(!o&&$>=r||o&&I>=r){a&&bs(l,R,P);var M=o?I-D:$-D;return{placement:"bottom",maxHeight:M}}if(i==="auto"||o){var A=t,B=o?E:w;return B>=r&&(A=Math.min(B-D-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Tl(l,R),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(w>=g&&!o)return a&&bs(l,_,P),{placement:"top",maxHeight:t};if(!o&&w>=r||o&&E>=r){var T=t;return(!o&&w>=r||o&&E>=r)&&(T=o?E-C:w-C),a&&bs(l,_,P),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function E6(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var L1=function(t){return t==="auto"?"bottom":t},I6=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ce((r={label:"menu"},Va(r,E6(i),"100%"),Va(r,"position","absolute"),Va(r,"width","100%"),Va(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})},j1=x.createContext(null),_6=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=x.useContext(j1)||{},c=u.setPortalPlacement,d=x.useRef(null),f=x.useState(i),h=fr(f,2),g=h[0],m=h[1],p=x.useState(null),b=fr(p,2),v=b[0],y=b[1],D=l.spacing.controlHeight;return ad(function(){var C=d.current;if(C){var E=o==="fixed",I=s&&!E,w=S6({maxHeight:i,menuEl:C,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:E,controlHeight:D});m(w.maxHeight),y(w.placement),c==null||c(w.placement)}},[i,a,o,s,r,c,D]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||L1(a),maxHeight:g})})},$6=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ue("div",de({},st(t,"menu",{menu:!0}),{ref:r},i),n)},R6=$6,A6=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},F6=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ue("div",de({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},H1=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ce({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},P6=H1,T6=H1,M6=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=pr(t,w6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},k6=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=pr(t,D6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},B6=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}},V6=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(L1(o)),d=fr(c,2),f=d[0],h=d[1],g=x.useMemo(function(){return{setPortalPlacement:h}},[]),m=x.useState(null),p=fr(m,2),b=p[0],v=p[1],y=x.useCallback(function(){if(i){var I=m6(i),w=s==="fixed"?0:window.pageYOffset,$=I[f]+w;($!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&v({offset:$,rect:I})}},[i,s,f,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);ad(function(){y()},[y]);var D=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=eb(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);ad(function(){D()},[D]);var C=x.useCallback(function(I){l.current=I,D()},[D]);if(!n&&s!=="fixed"||!b)return null;var E=ue("div",de({ref:C},st(ce(ce({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(j1.Provider,{value:g},n?Lo.createPortal(E,n):E)},O6=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},N6=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ue("div",de({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},L6=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ce({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")})},j6=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ue("div",de({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},H6=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},W6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},em,z6=["size"],G6=["innerProps","isRtl","size"];function Z6(){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 X6=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:Z6},W1=function(t){var n=t.size,r=pr(t,z6);return ue("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:X6},r))},Mf=function(t){return ue(W1,de({size:20},t),ue("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"}))},z1=function(t){return ue(W1,de({size:20},t),ue("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"}))},G1=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},Y6=G1,U6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(z1,null))},J6=G1,K6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(Mf,null))},q6=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},Q6=function(t){var n=t.innerProps;return ue("span",de({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},e$=n6(em||(em=l6([`
|
108
108
|
0%, 80%, 100% { opacity: 0; }
|
109
109
|
40% { opacity: 1; }
|
110
|
-
`]))),t$=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ce({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})},tc=function(t){var n=t.delay,r=t.offset;return ue("span",{css:Tf({animation:"".concat(e$," 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 */")})},n$=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=pr(t,G6);return ue("div",de({},st(ce(ce({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(tc,{delay:0,offset:r}),ue(tc,{delay:160,offset:!0}),ue(tc,{delay:320,offset:!r}))},r$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ce({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}})},i$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ue("div",de({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)},a$=i$,o$=["data"],s$=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},l$=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 ue("div",de({},st(t,"group",{group:!0}),l),ue(o,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),ue("div",null,n))},u$=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ce({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"})},c$=function(t){var n=V1(t);n.data;var r=pr(n,o$);return ue("div",de({},st(t,"groupHeading",{"group-heading":!0}),r))},d$=l$,f$=["innerRef","isDisabled","isHidden","inputClassName"],h$=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},g$),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Z1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},g$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Z1)},m$=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Z1)},p$=function(t){var n=t.cx,r=t.value,i=V1(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=pr(i,f$);return ue("div",de({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",de({className:n({input:!0},l),ref:a,style:m$(s),disabled:o},u)))},b$=p$,v$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},y$=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ce({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})},x$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ce({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}})},X1=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},C$=X1,w$=X1;function D$(e){var t=e.children,n=e.innerProps;return ue("div",de({role:"button"},n),t||ue(Mf,{size:14}))}var S$=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 ue(u,{data:i,innerProps:ce(ce({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ue(c,{data:i,innerProps:ce({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ue(d,{data:i,innerProps:ce(ce({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},E$=S$,I$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ce({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}})},_$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ue("div",de({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},$$=_$,R$=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},A$=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"placeholder",{placeholder:!0}),r),n)},F$=A$,P$=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ce({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})},T$=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ue("div",de({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},M$=T$,Y1={ClearIndicator:K6,Control:a$,DropdownIndicator:U6,DownChevron:z1,CrossIcon:Mf,Group:d$,GroupHeading:c$,IndicatorsContainer:W6,IndicatorSeparator:Q6,Input:b$,LoadingIndicator:n$,Menu:R6,MenuList:F6,MenuPortal:V6,LoadingMessage:k6,NoOptionsMessage:M6,MultiValue:E$,MultiValueContainer:C$,MultiValueLabel:w$,MultiValueRemove:D$,Option:$$,Placeholder:F$,SelectContainer:N6,SingleValue:M$,ValueContainer:j6},k$=function(t){return ce(ce({},Y1),t.components)},tm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function B$(e,t){return!!(e===t||tm(e)&&tm(t))}function V$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!B$(e[n],t[n]))return!1;return!0}function O$(e,t){t===void 0&&(t=V$);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 N$(){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 L$=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:N$},j$=function(t){return ue("span",de({css:L$},t))},nm=j$,H$={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,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var f=l?" disabled":"",h="".concat(u?" selected":"").concat(f);return"".concat(o).concat(h,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},W$=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,f=l.getOptionLabel,h=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,S=l["aria-label"],I=l["aria-live"],D=x.useMemo(function(){return ce(ce({},H$),d||{})},[d]),$=x.useMemo(function(){var B="";if(n&&D.onChange){var T=n.option,F=n.options,V=n.removedValue,j=n.removedValues,N=n.value,Z=function(J){return Array.isArray(J)?null:J},z=V||T||Z(N),q=z?f(z):"",W=F||j||void 0,H=W?W.map(f):[],O=ce({isDisabled:z&&m(z,s),label:q,labels:H},n);B=D.onChange(O)}return B},[n,D,m,s,f]),R=x.useMemo(function(){var B="",T=r||i,F=!!(r&&s&&s.includes(r));if(T&&D.onFocus){var V={focused:T,label:f(T),isDisabled:m(T,s),isSelected:F,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};B=D.onFocus(V)}return B},[r,i,f,m,D,a,s,c]),_=x.useMemo(function(){var B="";if(b&&v.length&&!C&&D.onFilter){var T=y({count:a.length});B=D.onFilter({inputValue:h,resultsMessage:T})}return B},[a,h,b,D,v,y,C]),P=(n==null?void 0:n.action)==="initial-input-focus",M=x.useMemo(function(){var B="";if(D.guidance){var T=i?"value":b?"menu":"input";B=D.guidance({"aria-label":S,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:p,tabSelectsValue:w,isInitialFocus:P})}return B},[S,r,i,g,m,p,b,D,s,w,P]),A=ue(x.Fragment,null,ue("span",{id:"aria-selection"},$),ue("span",{id:"aria-focused"},R),ue("span",{id:"aria-results"},_),ue("span",{id:"aria-guidance"},M));return ue(x.Fragment,null,ue(nm,{id:u},P&&A),ue(nm,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&A))},z$=W$,od=[{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źẑżžẓẕƶȥɀⱬꝣ"}],G$=new RegExp("["+od.map(function(e){return e.letters}).join("")+"]","g"),U1={};for(var nc=0;nc<od.length;nc++)for(var rc=od[nc],ic=0;ic<rc.letters.length;ic++)U1[rc.letters[ic]]=rc.base;var J1=function(t){return t.replace(G$,function(n){return U1[n]})},Z$=O$(J1),rm=function(t){return t.replace(/^\s+|\s+$/g,"")},X$=function(t){return"".concat(t.label," ").concat(t.value)},Y$=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:X$,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?rm(r):r,d=l?rm(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=Z$(c),d=J1(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},U$=["innerRef"];function J$(e){var t=e.innerRef,n=pr(e,U$),r=C6(n,"onExited","in","enter","exit","appear");return ue("input",de({ref:t},r,{css:Tf({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 K$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function q$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(p,b){if(u.current!==null){var v=u.current,y=v.scrollTop,w=v.scrollHeight,C=v.clientHeight,S=u.current,I=b>0,D=w-C-y,$=!1;D>b&&o.current&&(r&&r(p),o.current=!1),I&&s.current&&(a&&a(p),s.current=!1),I&&b>D?(n&&!o.current&&n(p),S.scrollTop=w,$=!0,o.current=!0):!I&&-b>y&&(i&&!s.current&&i(p),S.scrollTop=0,$=!0,s.current=!0),$&&K$(p)}},[n,r,i,a]),d=x.useCallback(function(p){c(p,p.deltaY)},[c]),f=x.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),h=x.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=x.useCallback(function(p){if(p){var b=v6?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",h,b)}},[h,f,d]),m=x.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",h,!1))},[h,f,d]);return x.useEffect(function(){if(t){var p=u.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){u.current=p}}var im=["boxSizing","height","overflow","paddingRight","position"],am={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function om(e){e.preventDefault()}function sm(e){e.stopPropagation()}function lm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function um(){return"ontouchstart"in window||navigator.maxTouchPoints}var cm=!!(typeof window<"u"&&window.document&&window.document.createElement),_a=0,Oi={capture:!1,passive:!1};function Q$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),a=x.useRef(null),o=x.useCallback(function(l){if(cm){var u=document.body,c=u&&u.style;if(r&&im.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&_a<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(am).forEach(function(g){var m=am[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(h,"px"))}u&&um()&&(u.addEventListener("touchmove",om,Oi),l&&(l.addEventListener("touchstart",lm,Oi),l.addEventListener("touchmove",sm,Oi))),_a+=1}},[r]),s=x.useCallback(function(l){if(cm){var u=document.body,c=u&&u.style;_a=Math.max(_a-1,0),r&&_a<1&&im.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),u&&um()&&(u.removeEventListener("touchmove",om,Oi),l&&(l.removeEventListener("touchstart",lm,Oi),l.removeEventListener("touchmove",sm,Oi)))}},[r]);return x.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function e9(){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 t9=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},n9=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:e9};function r9(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=q$({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=Q$({isEnabled:n}),d=function(h){u(h),c(h)};return ue(x.Fragment,null,n&&ue("div",{onClick:t9,css:n9}),t(d))}function i9(){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 a9=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:i9},o9=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:a9,value:"",onChange:function(){}})},s9=o9;function kf(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 l9(){return kf(/^iPhone/i)}function K1(){return kf(/^Mac/i)}function u9(){return kf(/^iPad/i)||K1()&&navigator.maxTouchPoints>1}function c9(){return l9()||u9()}function d9(){return K1()||c9()}var f9=function(t){return t.label},h9=function(t){return t.label},g9=function(t){return t.value},m9=function(t){return!!t.isDisabled},p9={clearIndicator:J6,container:O6,control:r$,dropdownIndicator:Y6,group:s$,groupHeading:u$,indicatorsContainer:H6,indicatorSeparator:q6,input:h$,loadingIndicator:t$,loadingMessage:T6,menu:I6,menuList:A6,menuPortal:B6,multiValue:v$,multiValueLabel:y$,multiValueRemove:x$,noOptionsMessage:P6,option:I$,placeholder:R$,singleValue:P$,valueContainer:L6},b9={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%)"},v9=4,q1=4,y9=38,x9=q1*2,C9={baseUnit:q1,controlHeight:y9,menuGutter:x9},ac={borderRadius:v9,colors:b9,spacing:C9},w9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qg(),captureMenuScroll:!Qg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Y$(),formatGroupLabel:f9,getOptionLabel:h9,getOptionValue:g9,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:m9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!p6(),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 dm(e,t,n,r){var i=tv(e,t,n),a=nv(e,t,n),o=ev(e,t),s=Ml(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function el(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return dm(e,o,t,s)}).filter(function(o){return hm(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=dm(e,n,t,r);return hm(e,a)?a:void 0}).filter(y6)}function Q1(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,wf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function fm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,wf(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 D9(e,t){return Q1(el(e,t))}function hm(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!iv(e)||!a)&&rv(e,{label:o,value:s,data:i},r)}function S9(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 E9(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var oc=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},ev=function(t,n){return t.getOptionLabel(n)},Ml=function(t,n){return t.getOptionValue(n)};function tv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Ml(e,t);return n.some(function(i){return Ml(e,i)===r})}function rv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var iv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},I9=1,av=function(e){HI(n,e);var t=GI(n);function n(r){var i;if(LI(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=d9(),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,f=c.name;u.name=f,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),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,f=u.name,h=i.state.selectValue,g=d&&i.isOptionSelected(l,h),m=i.isOptionDisabled(l,h);if(g){var p=i.getOptionValue(l);i.setValue(h.filter(function(b){return i.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(wf(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(g){return i.getOptionValue(g)!==d}),h=ys(u,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ys(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),f=ys(l,d,d[0]||null);i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return oc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return fm(el(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 d6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return ev(i.props,l)},i.getOptionValue=function(l){return Ml(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=p9[l](u,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(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 k$(i.props)},i.buildCategorizedOptions=function(){return el(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Q1(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({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&&Cu(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),f=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=d>h||f>h}},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 iv(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,f=u.escapeClearsValue,h=u.inputValue,g=u.isClearable,m=u.isDisabled,p=u.menuIsOpen,b=u.onKeyDown,v=u.tabSelectsValue,y=u.openMenuOnFocus,w=i.state,C=w.focusedOption,S=w.focusedValue,I=w.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(S)i.removeValue(S);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!p||!v||!C||y&&i.isOptionSelected(C,I))return;i.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(p){if(!C||i.isComposing)return;i.selectOption(C);break}return;case"Escape":p?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):g&&f&&i.clearValue();break;case" ":if(h)return;if(!p){i.openMenu("first");break}if(!C)return;i.selectOption(C);break;case"ArrowUp":p?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":p?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!p)return;i.focusOption("pageup");break;case"PageDown":if(!p)return;i.focusOption("pagedown");break;case"Home":if(!p)return;i.focusOption("first");break;case"End":if(!p)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++I9),i.state.selectValue=Kg(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=oc(a,o[s])}return i}return jI(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&&qg(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&&(qg(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(ac):ce(ce({},ac),this.props.theme):ac}},{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,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:h,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 tv(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return nv(this.props,i,a)}},{key:"filterOption",value:function(i,a){return rv(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,f=i.required,h=this.getComponents(),g=h.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,v=this.commonProps,y=s||this.getElementId("input"),w=ce(ce(ce({"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?L.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:a,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},w)):L.createElement(J$,de({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{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,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,p=h.isMulti,b=h.inputValue,v=h.placeholder,y=this.state,w=y.selectValue,C=y.focusedValue,S=y.isFocused;if(!this.hasValue()||!g)return b?null:L.createElement(d,de({},f,{key:"placeholder",isDisabled:m,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),v);if(p)return w.map(function(D,$){var R=D===C,_="".concat(i.getOptionLabel(D),"-").concat(i.getOptionValue(D));return L.createElement(o,de({},f,{components:{Container:s,Label:l,Remove:u},isFocused:R,isDisabled:m,key:_,index:$,removeProps:{onClick:function(){return i.removeValue(D)},onTouchEnd:function(){return i.removeValue(D)},onMouseDown:function(M){M.preventDefault()}},data:D}),i.formatOptionLabel(D,"value"))});if(b)return null;var I=w[0];return L.createElement(c,de({},f,{data:I,isDisabled:m}),this.formatOptionLabel(I,"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 L.createElement(a,de({},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 L.createElement(a,de({},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 L.createElement(o,de({},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 L.createElement(a,de({},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,f=a.NoOptionsMessage,h=a.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,w=p.loadingMessage,C=p.minMenuHeight,S=p.maxMenuHeight,I=p.menuIsOpen,D=p.menuPlacement,$=p.menuPosition,R=p.menuPortalTarget,_=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,M=p.noOptionsMessage,A=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!I)return null;var T=function(q,W){var H=q.type,O=q.data,G=q.isDisabled,J=q.isSelected,re=q.label,fe=q.value,le=m===O,X=G?void 0:function(){return i.onOptionHover(O)},Ae=G?void 0:function(){return i.selectOption(O)},Me="".concat(i.getElementId("option"),"-").concat(W),Xe={id:Me,onClick:Ae,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:J};return L.createElement(h,de({},g,{innerProps:Xe,data:O,isDisabled:G,isSelected:J,key:Me,label:re,type:H,value:fe,isFocused:le,innerRef:le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(q.data,"menu"))},F;if(this.hasOptions())F=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var q=z.data,W=z.options,H=z.index,O="".concat(i.getElementId("group"),"-").concat(H),G="".concat(O,"-heading");return L.createElement(o,de({},g,{key:O,data:q,options:W,Heading:s,headingProps:{id:G,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(J){return T(J,"".concat(H,"-").concat(J.index))}))}else if(z.type==="option")return T(z,"".concat(z.index))});else if(y){var V=w({inputValue:v});if(V===null)return null;F=L.createElement(d,g,V)}else{var j=M({inputValue:v});if(j===null)return null;F=L.createElement(f,g,j)}var N={minMenuHeight:C,maxMenuHeight:S,menuPlacement:D,menuPosition:$,menuShouldScrollIntoView:P},Z=L.createElement(_6,de({},g,N),function(z){var q=z.ref,W=z.placerProps,H=W.placement,O=W.maxHeight;return L.createElement(l,de({},g,N,{innerRef:q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:H}),L.createElement(r9,{captureEnabled:b,onTopArrive:A,onBottomArrive:B,lockEnabled:_},function(G){return L.createElement(u,de({},g,{innerRef:function(re){i.getMenuListRef(re),G(re)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:O,focusedOption:m}),F)}))});return R||$==="fixed"?L.createElement(c,de({},g,{appendTo:R,controlElement:this.controlRef,menuPlacement:D,menuPosition:$}),Z):Z}},{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 L.createElement(s9,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var f=d.map(function(m){return i.getOptionValue(m)}).join(o);return L.createElement("input",{name:u,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,p){return L.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:i.getOptionValue(m)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return L.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 L.createElement(z$,de({},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,f=u.isDisabled,h=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return L.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),L.createElement(a,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),L.createElement(l,de({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(o,de({},m,{isDisabled:f}),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,f=a.instancePrefix,h=i.options,g=i.value,m=i.menuIsOpen,p=i.inputValue,b=i.isMulti,v=Kg(g),y={};if(o&&(g!==o.value||h!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var w=m?D9(i,v):[],C=m?fm(el(i,v),"".concat(f,"-option")):[],S=s?S9(a,v):null,I=E9(a,w),D=oc(C,I);y={selectValue:v,focusedOption:I,focusedOptionId:D,focusableOptionsWithIds:C,focusedValue:S,clearFocusValueOnUpdate:!1}}var $=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},R=u,_=c&&d;return c&&!_&&(R={value:ys(b,v,v[0]||null),options:v,action:"initial-input-focus"},_=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),ce(ce(ce({},y),$),{},{prevProps:i,ariaSelection:R,prevWasFocused:_})}}]),n}(x.Component);av.defaultProps=w9;var _9=x.forwardRef(function(e,t){var n=NI(e);return L.createElement(av,de({ref:t},n))}),$9=_9;const R9="_container_26hat_1",sc={container:R9,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},A9={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:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},F9={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:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},ov=x.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:f={},autoClose:h=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:p={},onMenuClose:b=()=>{},zIndexPopper:v=0,id:y="select-dropdown-container",idPopover:w="select-dropdown-container-popover",useAutoPlacement:C,flipOptions:S,autoPlacementOptions:I,withSearch:D=!1,floatingOptions:$={},offsetPopover:R=5,selectProps:_={},errorLabel:P="payhere",actionValueChange:M=()=>{},...A}=e,B={error:{laba:sc["error-laba"],payhere:sc["error-payhere"]}},T=x.useRef(null),F=x.useRef(null),[V,j]=x.useState(""),[N,Z]=x.useState(!1),[z,q]=x.useState({}),[W,H]=x.useState(0),O=X=>{var Ae;(Ae=F.current)==null||Ae.setShow(X),Z(X)},G=()=>{if(d)return e.isMulti?f:[f]},J=X=>{var Ae;(Ae=F.current)==null||Ae.handlerShow(X),H(T.current.offsetWidth),Z(Me=>!Me)},re=()=>{var X;m&&((X=F.current)==null||X.setShow(!1))},fe=(X,Ae)=>{var Me;h&&(Z(!1),(Me=F.current)==null||Me.setShow(!1)),q(X),typeof c=="function"&&c(X,Ae)},le=()=>{T.current&&H(T.current.offsetWidth)};return Yo(()=>{d&&q(f),M(f)},[d,f]),x.useEffect(()=>{N?g():N||(b(),j(""))},[N]),x.useImperativeHandle(t,()=>({selectValue:z,setSelectValue:q,handlerClose:re,handlerShow:J,show:N,setShow:O}),[N,Cf(z)]),x.useEffect(()=>(window.addEventListener("resize",le),window.addEventListener("load",le),()=>{window.removeEventListener("resize",le),window.removeEventListener("load",le)}),[T]),E.jsxs("div",{id:y,className:`${sc.container} ${a} ${N?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:z,setSelectValue:q,handlerClose:re,handlerShow:J,show:N,setShow:O}),E.jsx(Ei,{ref:F,offset:R,useAutoPlacement:C,flipOptions:S,autoPlacementOptions:I,zIndex:v,styleInnerPopover:p,id:w,width:typeof n=="function"?n(W,z):n??W,className:s,floatingOptions:$,children:E.jsx($9,{className:"1ru-w-full",defaultValue:G(),inputValue:V,onInputChange:(X,{action:Ae})=>{Ae==="input-change"&&j(X)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:D?A9:F9,noOptionsMessage:()=>"Tidak ada data.",onChange:fe,selectProps:{..._,setShowDropdown:O},...A})}),E.jsx("div",{className:`${B.error[P]} ${l}`,children:u})]})});ov.displayName="SelectDropdownContainer";function na(e,t){return e-t*Math.floor(e/t)}const sv=1721426;function li(e,t,n,r){t=Jo(e,t);let i=t-1,a=-2;return n<=2?a=0:Ir(t)&&(a=-1),sv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ir(e){return e%4===0&&(e%100!==0||e%400===0)}function Jo(e,t){return e==="BC"?1-t:t}function wu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const P9={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 ln{fromJulianDay(t){let n=t,r=n-sv,i=Math.floor(r/146097),a=na(r,146097),o=Math.floor(a/36524),s=na(a,36524),l=Math.floor(s/1461),u=na(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[f,h]=wu(d),g=n-li(f,h,1,1),m=2;n<li(f,h,3,1)?m=0:Ir(h)&&(m=1);let p=Math.floor(((g+m)*12+373)/367),b=n-li(f,h,p,1)+1;return new lt(f,h,p,b)}toJulianDay(t){return li(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return P9[Ir(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ir(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 T9={"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 ht(e,t){return t=bt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function sd(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 M9(e,t){return ht(e,Bf(t))}function Du(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-N9(t))%7;return r<0&&(r+=7),r}function k9(e){return sr(Date.now(),e)}function Bf(e){return sn(k9(e))}function lv(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function uv(e,t){return gm(e)-gm(t)}function gm(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let lc=null;function yi(){return lc==null&&(lc=new Intl.DateTimeFormat().resolvedOptions().timeZone),lc}function Ko(e){return e.subtract({days:e.day-1})}function ld(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function B9(e){return Ko(e.subtract({months:e.month-1}))}function Do(e,t){let n=Du(e,t);return e.subtract({days:n})}function V9(e,t){return Do(e,t).add({days:6})}const mm=new Map;function O9(e){if(Intl.Locale){let n=mm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&mm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function N9(e){let t=O9(e);return t&&T9[t]||0}function cv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Du(Ko(e),t)+n)/7)}function Vf(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Of(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ha(e){e=bt(e,new ln);let t=Jo(e.era,e.year);return dv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function dv(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 ud(e,t){if(t==="UTC")return 0;if(e>0&&t===yi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=fv(e,t);return dv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const pm=new Map;function fv(e,t){let n=pm.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"}),pm.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 bm=864e5;function L9(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>j9(e,t,a))}function j9(e,t,n){let r=fv(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 nr(e,t,n="compatible"){let r=kr(e);if(t==="UTC")return ha(r);if(t===yi()&&n==="compatible"){r=bt(r,new ln);let l=new Date,u=Jo(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=ha(r),a=ud(i-bm,t),o=ud(i+bm,t),s=L9(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 hv(e,t,n="compatible"){return new Date(nr(e,t,n))}function sr(e,t){let n=ud(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 Eo(i,a,o,t,n,s,l,u,c)}function sn(e){return new lt(e.calendar,e.era,e.year,e.month,e.day)}function kr(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 kl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function bt(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,xi(r),r}function H9(e,t,n){if(e instanceof Eo)return e.timeZone===t?e:z9(e,t);let r=nr(e,t,n);return sr(r,t)}function W9(e){let t=ha(e)-e.offset;return new Date(t)}function z9(e,t){let n=ha(e)-e.offset;return bt(sr(n,t),e.calendar)}const $a=36e5;function Su(e,t){let n=e.copy(),r="hour"in n?bv(n,t):0;cd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,dd(n),gv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,G9(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 cd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function dd(e){for(;e.month<1;)cd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,cd(e,1)}function G9(e){for(;e.day<1;)e.month--,dd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,dd(e)}function gv(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 xi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gv(e)}function Nf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function mv(e,t){return Su(e,Nf(t))}function Lf(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),xi(n),n}function So(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),pv(n),n}function Z9(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=xs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=xs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=xs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=xs(e.hour,24),t}function pv(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 xs(e,t){let n=e%t;return n<0&&(n+=t),n}function bv(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Z9(e)}function vv(e,t){let n=e.copy();return bv(n,t),n}function X9(e,t){return vv(e,Nf(t))}function jf(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=lr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],xi(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=lr(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=lr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=lr(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),xi(i),i}function Hf(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=lr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=lr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=lr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=lr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function lr(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 yv(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=Su(kr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=nr(i,e.timeZone)}else n=ha(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=sr(n,e.timeZone);return bt(r,e.calendar)}function Y9(e,t){return yv(e,Nf(t))}function U9(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=kr(e),s=bt(So(o,{hour:i}),new ln),l=[nr(s,e.timeZone,"earlier"),nr(s,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===s.day)[0],u=bt(So(o,{hour:a}),new ln),c=[nr(u,e.timeZone,"earlier"),nr(u,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===u.day).pop(),d=ha(e)-e.offset,f=Math.floor(d/$a),h=d%$a;return d=lr(f,n,Math.floor(l/$a),Math.floor(c/$a),r==null?void 0:r.round)*$a+h,bt(sr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Hf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=jf(kr(e),t,n,r),a=nr(i,e.timeZone);return bt(sr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function J9(e,t,n){let r=kr(e),i=So(Lf(r,t),t);if(i.compare(r)===0)return e;let a=nr(i,e.timeZone,n);return bt(sr(a,e.timeZone),e.calendar)}const K9=/^(\d{4})-(\d{2})-(\d{2})$/;function Wf(e){let t=e.match(K9);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new lt(uc(t[1],0,9999),uc(t[2],1,12),1);return n.day=uc(t[3],0,n.calendar.getDaysInMonth(n)),n}function uc(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 xv(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 Cv(e){let t=bt(e,new ln);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function wv(e){return`${Cv(e)}T${xv(e)}`}function q9(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 Q9(e){return`${wv(e)}${q9(e.offset)}[${e.timeZone}]`}function eR(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qo(e,t,n){eR(e,t),t.set(e,n)}function zf(e){let t=typeof e[0]=="object"?e.shift():new ln,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 tR=new WeakMap;class lt{copy(){return this.era?new lt(this.calendar,this.era,this.year,this.month,this.day):new lt(this.calendar,this.year,this.month,this.day)}add(t){return Su(this,t)}subtract(t){return mv(this,t)}set(t){return Lf(this,t)}cycle(t,n,r){return jf(this,t,n,r)}toDate(t){return hv(this,t)}toString(){return Cv(this)}compare(t){return lv(this,t)}constructor(...t){qo(this,tR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,xi(this)}}var nR=new WeakMap;class Gf{copy(){return new Gf(this.hour,this.minute,this.second,this.millisecond)}add(t){return vv(this,t)}subtract(t){return X9(this,t)}set(t){return So(this,t)}cycle(t,n,r){return Hf(this,t,n,r)}toString(){return xv(this)}compare(t){return uv(this,t)}constructor(t=0,n=0,r=0,i=0){qo(this,nR,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,pv(this)}}var rR=new WeakMap;class kl{copy(){return this.era?new kl(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kl(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Su(this,t)}subtract(t){return mv(this,t)}set(t){return Lf(So(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return jf(this,t,n,r);default:return Hf(this,t,n,r)}}toDate(t,n){return hv(this,t,n)}toString(){return wv(this)}compare(t){let n=lv(this,t);return n===0?uv(this,kr(t)):n}constructor(...t){qo(this,rR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(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,xi(this)}}var iR=new WeakMap;class Eo{copy(){return this.era?new Eo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Eo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return yv(this,t)}subtract(t){return Y9(this,t)}set(t,n){return J9(this,t,n)}cycle(t,n,r){return U9(this,t,n,r)}toDate(){return W9(this)}toString(){return Q9(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-H9(t,this.timeZone).toDate().getTime()}constructor(...t){qo(this,iR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(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,xi(this)}}const ra=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],aR=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],tl=[1867,1911,1925,1988,2018],wr=["meiji","taisho","showa","heisei","reiwa"];function vm(e){const t=ra.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?ra.length-1:t===0?0:t-1}function cc(e){let t=tl[wr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new lt(e.year+t,e.month,e.day)}class oR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=vm(n);return new lt(this,wr[r],n.year-tl[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(cc(t))}balanceDate(t){let n=cc(t),r=vm(n);wr[r]!==t.era&&(t.era=wr[r],t.year=n.year-tl[r]),this.constrainDate(t)}constrainDate(t){let n=wr.indexOf(t.era),r=aR[n];if(r!=null){let[i,a,o]=r,s=i-tl[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]=ra[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return wr}getYearsInEra(t){let n=wr.indexOf(t.era),r=ra[n],i=ra[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(cc(t))}getMinimumMonthInYear(t){let n=ym(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ym(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ym(e){if(e.year===1){let t=wr.indexOf(e.era);return ra[t]}}const Dv=-543;class sR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=Jo(n.era,n.year);return new lt(this,r-Dv,n.month,n.day)}toJulianDay(t){return super.toJulianDay(xm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(xm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function xm(e){let[t,n]=wu(e.year+Dv);return new lt(t,n,e.month,e.day)}const Bl=1911;function Sv(e){return e.era==="minguo"?e.year+Bl:1-e.year+Bl}function Cm(e){let t=e-Bl;return t>0?["minguo",t]:["before_minguo",1-t]}class lR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=Jo(n.era,n.year),[i,a]=Cm(r);return new lt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(wm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Cm(Sv(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(wm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Bl}constructor(...t){super(...t),this.identifier="roc"}}function wm(e){let[t,n]=wu(Sv(e));return new lt(t,n,e.month,e.day)}const Dm=1948320,Sm=[0,31,62,93,124,155,186,216,246,276,306,336];class uR{fromJulianDay(t){let n=t-Dm,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-Sm[o]+1;return new lt(this,r,o+1,s)}toJulianDay(t){let n=Dm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Sm[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||na(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const dc=78,Em=80;class cR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-dc,i=t-li(n.era,n.year,1,1),a;i<Em?(r--,a=Ir(n.year-1)?31:30,i+=a+155+90+10):(a=Ir(n.year)?31:30,i-=Em);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 lt(this,r,o,s)}toJulianDay(t){let n=t.year+dc,[r,i]=wu(n),a,o;return Ir(i)?(a=31,o=li(r,i,3,21)):(a=30,o=li(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&&Ir(t.year+dc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Vl=1948440,Im=1948439,gn=1300,Ni=1600,dR=460322;function Ol(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ev(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Ol(t,r,1,1)))/29.5)+1),a=n-Ol(t,r,i,1)+1;return new lt(e,r,i,a)}function _m(e){return(14+11*e)%30<11}class Zf{fromJulianDay(t){return Ev(this,Vl,t)}toJulianDay(t){return Ol(Vl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&_m(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return _m(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class fR extends Zf{fromJulianDay(t){return Ev(this,Im,t)}toJulianDay(t){return Ol(Im,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const hR="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let fd,ia;function nl(e){return dR+ia[e-gn]}function Oa(e,t){let n=e-gn,r=1<<11-(t-1);return fd[n]&r?30:29}function $m(e,t){let n=nl(e);for(let r=1;r<t;r++)n+=Oa(e,r);return n}function Rm(e){return ia[e+1-gn]-ia[e-gn]}class gR extends Zf{fromJulianDay(t){let n=t-Vl,r=nl(gn),i=nl(Ni);if(n<r||n>i)return super.fromJulianDay(t);{let a=gn-1,o=1,s=1;for(;s>0;){a++,s=n-nl(a)+1;let l=Rm(a);if(s===l){o=12;break}else if(s<l){let u=Oa(a,o);for(o=1;s>u;)s-=u,o++,u=Oa(a,o);break}}return new lt(this,a,o,n-$m(a,o)+1)}}toJulianDay(t){return t.year<gn||t.year>Ni?super.toJulianDay(t):Vl+$m(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<gn||t.year>Ni?super.getDaysInMonth(t):Oa(t.year,t.month)}getDaysInYear(t){return t.year<gn||t.year>Ni?super.getDaysInYear(t):Rm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",fd||(fd=new Uint16Array(Uint8Array.from(atob(hR),t=>t.charCodeAt(0)).buffer)),!ia){ia=new Uint32Array(Ni-gn+1);let t=0;for(let n=gn;n<=Ni;n++){ia[n-gn]=t;for(let r=1;r<=12;r++)t+=Oa(n,r)}}}}const Am=347997,Iv=1080,_v=24*Iv,mR=29,pR=12*Iv+793,bR=mR*_v+pR;function ii(e){return na(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 na(3*(r+1),7)<3&&(r+=1),r}function vR(e){let t=rl(e-1),n=rl(e);return rl(e+1)-n===356?2:n-t===382?1:0}function Ka(e){return rl(e)+vR(e)}function $v(e){return Ka(e+1)-Ka(e)}function yR(e){let t=$v(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Cs(e,t){if(t>=6&&!ii(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yR(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ii(e)?30:0:30}class xR{fromJulianDay(t){let n=t-Am,r=n*_v/bR,i=Math.floor((19*r+234)/235)+1,a=Ka(i),o=Math.floor(n-a);for(;o<1;)i--,a=Ka(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Cs(i,s),s++;s--,l-=Cs(i,s);let u=o-l;return new lt(this,i,s,u)}toJulianDay(t){let n=Ka(t.year);for(let r=1;r<t.month;r++)n+=Cs(t.year,r);return n+t.day+Am}getDaysInMonth(t){return Cs(t.year,t.month)}getMonthsInYear(t){return ii(t.year)?13:12}getDaysInYear(t){return $v(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ii(n.year)&&!ii(t.year)&&n.month>6?t.month--:!ii(n.year)&&ii(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const hd=1723856,Fm=1824665,gd=5500;function Nl(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Xf(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Nl(e,n,1,1))/30),i=t+1-Nl(e,n,r,1);return[n,r,i]}function Rv(e){return Math.floor(e%4/3)}function Av(e,t){return t%13!==0?30:Rv(e)+5}class Yf{fromJulianDay(t){let[n,r,i]=Xf(hd,t),a="AM";return n<=0&&(a="AA",n+=gd),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=gd),Nl(hd,n,t.month,t.day)}getDaysInMonth(t){return Av(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Rv(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class CR extends Yf{fromJulianDay(t){let[n,r,i]=Xf(hd,t);return n+=gd,new lt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class wR extends Yf{fromJulianDay(t){let[n,r,i]=Xf(Fm,t),a="CE";return n<=0&&(a="BCE",n=1-n),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Nl(Fm,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Av(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 Qo(e){switch(e){case"buddhist":return new sR;case"ethiopic":return new Yf;case"ethioaa":return new CR;case"coptic":return new wR;case"hebrew":return new xR;case"indian":return new cR;case"islamic-civil":return new Zf;case"islamic-tbla":return new fR;case"islamic-umalqura":return new gR;case"japanese":return new oR;case"persian":return new uR;case"roc":return new lR;case"gregory":default:return new ln}}let fc=new Map;class Io{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 ER()&&(this.resolvedHourCycle||(this.resolvedHourCycle=IR(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=Fv(t,n),this.options=n}}const DR={true:{ja:"h11"},false:{}};function Fv(e,t={}){if(typeof t.hour12=="boolean"&&SR()){t={...t};let i=DR[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(fc.has(n))return fc.get(n);let r=new Intl.DateTimeFormat(e,t);return fc.set(n,r),r}let hc=null;function SR(){return hc==null&&(hc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),hc}let gc=null;function ER(){return gc==null&&(gc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),gc}function IR(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=Fv(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 $i=typeof document<"u"?x.useLayoutEffect:()=>{};function rr(e){const t=x.useRef(null);return $i(()=>{t.current=e},[e]),x.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function _R(e){let[t,n]=x.useState(e),r=x.useRef(null),i=rr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});$i(()=>{r.current&&i()});let a=rr(o=>{r.current=o(t),i()});return[t,a]}const Ll={prefix:String(Math.round(Math.random()*1e10)),current:0},Pv=x.createContext(Ll),$R=x.createContext(!1);let RR=!!(typeof window<"u"&&window.document&&window.document.createElement),mc=new WeakMap;function AR(e=!1){let t=x.useContext(Pv),n=x.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=x.__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=mc.get(a);o==null?mc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,mc.delete(a))}n.current=++t.current}return n.current}function FR(e){let t=x.useContext(Pv);t===Ll&&!RR&&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=AR(!!e),r=t===Ll&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function PR(e){let t=x.useId(),[n]=x.useState(Tv()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ll.prefix}`;return e||`${r}-${t}`}const TR=typeof x.useId=="function"?PR:FR;function MR(){return!1}function kR(){return!0}function BR(e){return()=>{}}function Tv(){return typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore(BR,MR,kR):x.useContext($R)}let VR=!!(typeof window<"u"&&window.document&&window.document.createElement),jl=new Map;function ga(e){let[t,n]=x.useState(e),r=x.useRef(null),i=TR(t),a=x.useCallback(o=>{r.current=o},[]);return VR&&jl.set(i,a),$i(()=>{let o=i;return()=>{jl.delete(o)}},[i]),x.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function OR(e,t){if(e===t)return e;let n=jl.get(e);if(n)return n(t),t;let r=jl.get(t);return r?(r(e),e):t}function md(e=[]){let t=ga(),[n,r]=_R(t),i=x.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return $i(i,[t,i,...e]),n}function Mv(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $t=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Dn=e=>e&&"window"in e&&e.window===e?e:$t(e).defaultView||window;function Yt(...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]=Mv(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=ar(a,o):i==="id"&&a&&o?t.id=OR(a,o):t[i]=o!==void 0?o:a}}return t}const NR=new Set(["id"]),LR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),HR=/^(data-.*)$/;function Uf(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(NR.has(o)||n&&LR.has(o)||r&&jR.has(o)||i!=null&&i.has(o)||HR.test(o))&&(a[o]=e[o]);return a}function _r(e){if(WR())e.focus({preventScroll:!0});else{let t=zR(e);e.focus(),GR(t)}}let ws=null;function WR(){if(ws==null){ws=!1;try{document.createElement("div").focus({get preventScroll(){return ws=!0,!0}})}catch{}}return ws}function zR(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 GR(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Eu(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 Jf(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 _o(){return Jf(/^Mac/i)}function ZR(){return Jf(/^iPhone/i)}function kv(){return Jf(/^iPad/i)||_o()&&navigator.maxTouchPoints>1}function Bv(){return ZR()||kv()}function XR(){return Eu(/AppleWebKit/i)&&!YR()}function YR(){return Eu(/Chrome/i)}function Vv(){return Eu(/Android/i)}function UR(){return Eu(/Firefox/i)}function $o(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;UR()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(_o()?a=!0:o=!0);let u=XR()&&_o()&&!kv()?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});$o.isOpening=n,_r(e),e.dispatchEvent(u),$o.isOpening=!1}$o.isOpening=!1;let Xi=new Map,pd=new Set;function Pm(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Xi.get(r.target);i||(i=new Set,Xi.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=Xi.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Xi.delete(r.target)),Xi.size===0)){for(let a of pd)a();pd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pm():document.addEventListener("DOMContentLoaded",Pm));function Ov(e){requestAnimationFrame(()=>{Xi.size===0?e():pd.add(e)})}function JR(){let e=x.useRef(new Map),t=x.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=x.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=x.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return x.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Kf(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=ga(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 Tm(e,t){const n=x.useRef(!0),r=x.useRef(null);x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),x.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Nv(e,t){$i(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function bd(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 KR(e,t){let n=e;for(bd(n,t)&&(n=n.parentElement);n&&!bd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function qR(e,t){const n=[];for(;e&&e!==document.documentElement;)bd(e,t)&&n.push(e),e=e.parentElement;return n}let QR=0;const pc=new Map;function Lv(e){let[t,n]=x.useState();return $i(()=>{if(!e)return;let r=pc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${QR++}`;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},pc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),pc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bc(e,t,n,r){let i=rr(n),a=n==null;x.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 eA(e,t){let n=Mm(e,t,"left"),r=Mm(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),f=c+e.clientWidth,h=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>f&&(o+=n+i-f),r<=d?s=r-parseInt(l,10):r+a>h&&(s+=r+a-h),e.scrollLeft=o,e.scrollTop=s}function Mm(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 tA(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=qR(e);for(let u of l)eA(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 vd(e){return e.mozInputSource===0&&e.isTrusted?!0:Vv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nA(e){return!Vv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function jv(e,t){let n=x.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Ro(e,t,n){let[r,i]=x.useState(e||t),a=x.useRef(e!==void 0),o=e!==void 0;x.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=x.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(s,f)||n(f,...h)),o||(s=f)};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((h,...g)=>{let m=u(o?s:h,...g);return d(m,...c),o?h:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let Ui="default",yd="",il=new WeakMap;function km(e){if(Bv()){if(Ui==="default"){const t=$t(e);yd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ui="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(il.set(e,e.style.userSelect),e.style.userSelect="none")}function Ds(e){if(Bv()){if(Ui!=="disabled")return;Ui="restoring",setTimeout(()=>{Ov(()=>{if(Ui==="restoring"){const t=$t(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=yd||""),yd="",Ui="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&il.has(e)){let t=il.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),il.delete(e)}}const Hv=x.createContext({register:()=>{}});Hv.displayName="PressResponderContext";function rA(e,t){return t.get?t.get.call(e):t.value}function Wv(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function iA(e,t){var n=Wv(e,t,"get");return rA(e,n)}function aA(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 Bm(e,t,n){var r=Wv(e,t,"set");return aA(e,r,n),n}function oA(e){let t=x.useContext(Hv);if(t){let{register:n,...r}=t;e=Yt(r,e),n()}return Nv(t,e.ref),e}var Ss=new WeakMap;class Es{continuePropagation(){Bm(this,Ss,!1)}get shouldStopPropagation(){return iA(this,Ss)}constructor(t,n,r){qo(this,Ss,{writable:!0,value:void 0}),Bm(this,Ss,!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 Vm=Symbol("linkClicked");function qf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=oA(e),[h,g]=x.useState(!1),m=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:p,removeAllGlobalListeners:b}=JR(),v=rr((D,$)=>{let R=m.current;if(o||R.didFirePressStart)return!1;let _=!0;if(R.isTriggeringEvent=!0,r){let P=new Es("pressstart",$,D);r(P),_=P.shouldStopPropagation}return n&&n(!0),R.isTriggeringEvent=!1,R.didFirePressStart=!0,g(!0),_}),y=rr((D,$,R=!0)=>{let _=m.current;if(!_.didFirePressStart)return!1;_.ignoreClickAfterPress=!0,_.didFirePressStart=!1,_.isTriggeringEvent=!0;let P=!0;if(i){let M=new Es("pressend",$,D);i(M),P=M.shouldStopPropagation}if(n&&n(!1),g(!1),t&&R&&!o){let M=new Es("press",$,D);t(M),P&&(P=M.shouldStopPropagation)}return _.isTriggeringEvent=!1,P}),w=rr((D,$)=>{let R=m.current;if(o)return!1;if(a){R.isTriggeringEvent=!0;let _=new Es("pressup",$,D);return a(_),R.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),C=rr(D=>{let $=m.current;$.isPressed&&$.target&&($.isOverTarget&&$.pointerType!=null&&y(Xn($.target,D),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,b(),c||Ds($.target))}),S=rr(D=>{u&&C(D)}),I=x.useMemo(()=>{let D=m.current,$={onKeyDown(_){if(vc(_.nativeEvent,_.currentTarget)&&_.currentTarget.contains(_.target)){var P;Nm(_.target,_.key)&&_.preventDefault();let M=!0;if(!D.isPressed&&!_.repeat){D.target=_.currentTarget,D.isPressed=!0,M=v(_,"keyboard");let A=_.currentTarget,B=T=>{vc(T,A)&&!T.repeat&&A.contains(T.target)&&D.target&&w(Xn(D.target,T),"keyboard")};p($t(_.currentTarget),"keyup",Mv(B,R),!0)}M&&_.stopPropagation(),_.metaKey&&_o()&&((P=D.metaKeyEvents)===null||P===void 0||P.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(_){if(!(_&&!_.currentTarget.contains(_.target))&&_&&_.button===0&&!D.isTriggeringEvent&&!$o.isOpening){let P=!0;if(o&&_.preventDefault(),!D.ignoreClickAfterPress&&!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||vd(_.nativeEvent))){!o&&!l&&_r(_.currentTarget);let M=v(_,"virtual"),A=w(_,"virtual"),B=y(_,"virtual");P=M&&A&&B}D.ignoreEmulatedMouseEvents=!1,D.ignoreClickAfterPress=!1,P&&_.stopPropagation()}}},R=_=>{var P;if(D.isPressed&&D.target&&vc(_,D.target)){var M;Nm(_.target,_.key)&&_.preventDefault();let B=_.target;y(Xn(D.target,_),"keyboard",D.target.contains(B)),b(),_.key!=="Enter"&&Qf(D.target)&&D.target.contains(B)&&!_[Vm]&&(_[Vm]=!0,$o(D.target,_,!1)),D.isPressed=!1,(M=D.metaKeyEvents)===null||M===void 0||M.delete(_.key)}else if(_.key==="Meta"&&(!((P=D.metaKeyEvents)===null||P===void 0)&&P.size)){var A;let B=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let T of B.values())(A=D.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){$.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(nA(A.nativeEvent)){D.pointerType="virtual";return}yc(A.currentTarget)&&A.preventDefault(),D.pointerType=A.pointerType;let B=!0;D.isPressed||(D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=A.pointerId,D.target=A.currentTarget,!o&&!l&&_r(A.currentTarget),c||km(D.target),B=v(A,D.pointerType),p($t(A.currentTarget),"pointermove",_,!1),p($t(A.currentTarget),"pointerup",P,!1),p($t(A.currentTarget),"pointercancel",M,!1)),B&&A.stopPropagation()},$.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(yc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},$.onPointerUp=A=>{!A.currentTarget.contains(A.target)||D.pointerType==="virtual"||A.button===0&&Li(A,A.currentTarget)&&w(A,D.pointerType||A.pointerType)};let _=A=>{A.pointerId===D.activePointerId&&(D.target&&Li(A,D.target)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(Xn(D.target,A),D.pointerType)):D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,y(Xn(D.target,A),D.pointerType,!1),S(A)))},P=A=>{A.pointerId===D.activePointerId&&D.isPressed&&A.button===0&&D.target&&(Li(A,D.target)&&D.pointerType!=null?y(Xn(D.target,A),D.pointerType):D.isOverTarget&&D.pointerType!=null&&y(Xn(D.target,A),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,b(),c||Ds(D.target))},M=A=>{C(A)};$.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}else{$.onMouseDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(yc(M.currentTarget)&&M.preventDefault(),D.ignoreEmulatedMouseEvents){M.stopPropagation();return}D.isPressed=!0,D.isOverTarget=!0,D.target=M.currentTarget,D.pointerType=vd(M.nativeEvent)?"virtual":"mouse",!o&&!l&&_r(M.currentTarget),v(M,D.pointerType)&&M.stopPropagation(),p($t(M.currentTarget),"mouseup",_,!1)},$.onMouseEnter=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,A=v(M,D.pointerType)),A&&M.stopPropagation()},$.onMouseLeave=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,A=y(M,D.pointerType,!1),S(M)),A&&M.stopPropagation()},$.onMouseUp=M=>{M.currentTarget.contains(M.target)&&!D.ignoreEmulatedMouseEvents&&M.button===0&&w(M,D.pointerType||"mouse")};let _=M=>{if(M.button===0){if(D.isPressed=!1,b(),D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&Li(M,D.target)&&D.pointerType!=null?y(Xn(D.target,M),D.pointerType):D.target&&D.isOverTarget&&D.pointerType!=null&&y(Xn(D.target,M),D.pointerType,!1),D.isOverTarget=!1}};$.onTouchStart=M=>{if(!M.currentTarget.contains(M.target))return;let A=sA(M.nativeEvent);if(!A)return;D.activePointerId=A.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=M.currentTarget,D.pointerType="touch",!o&&!l&&_r(M.currentTarget),c||km(D.target),v(M,D.pointerType)&&M.stopPropagation(),p(Dn(M.currentTarget),"scroll",P,!0)},$.onTouchMove=M=>{if(!M.currentTarget.contains(M.target))return;if(!D.isPressed){M.stopPropagation();return}let A=Om(M.nativeEvent,D.activePointerId),B=!0;A&&Li(A,M.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,B=v(M,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,B=y(M,D.pointerType,!1),S(M)),B&&M.stopPropagation()},$.onTouchEnd=M=>{if(!M.currentTarget.contains(M.target))return;if(!D.isPressed){M.stopPropagation();return}let A=Om(M.nativeEvent,D.activePointerId),B=!0;A&&Li(A,M.currentTarget)&&D.pointerType!=null?(w(M,D.pointerType),B=y(M,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(B=y(M,D.pointerType,!1)),B&&M.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!c&&Ds(D.target),b()},$.onTouchCancel=M=>{M.currentTarget.contains(M.target)&&(M.stopPropagation(),D.isPressed&&C(M))};let P=M=>{D.isPressed&&M.target.contains(D.target)&&C({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$.onDragStart=M=>{M.currentTarget.contains(M.target)&&C(M)}}return $},[p,o,l,b,c,C,S,y,v,w]);return x.useEffect(()=>()=>{var D;c||Ds((D=m.current.target)!==null&&D!==void 0?D:void 0)},[c]),{isPressed:s||h,pressProps:Yt(f,I)}}function Qf(e){return e.tagName==="A"&&e.hasAttribute("href")}function vc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Dn(i).HTMLInputElement&&!zv(i,n)||i instanceof Dn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Qf(i))&&n!=="Enter")}function sA(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Om(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 Xn(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function lA(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 uA(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Li(e,t){let n=t.getBoundingClientRect(),r=lA(e);return uA(n,r)}function yc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Nm(e,t){return e instanceof HTMLInputElement?!zv(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Qf(e)}const cA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function zv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":cA.has(e.type)}class dA{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 Gv(e){let t=x.useRef({isFocused:!1,observer:null});$i(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=rr(r=>{e==null||e(r)});return x.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 dA("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 Zv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=x.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Gv(a),s=x.useCallback(l=>{const u=$t(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 wa=null,xd=new Set,qa=new Map,Ci=!1,Cd=!1;const fA={Tab:!0,Escape:!0};function eh(e,t){for(let n of xd)n(e,t)}function hA(e){return!(e.metaKey||!_o()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hl(e){Ci=!0,hA(e)&&(wa="keyboard",eh("keyboard",e))}function mn(e){wa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ci=!0,eh("pointer",e))}function Xv(e){vd(e)&&(Ci=!0,wa="virtual")}function Yv(e){e.target===window||e.target===document||(!Ci&&!Cd&&(wa="virtual",eh("virtual",e)),Ci=!1,Cd=!1)}function Uv(){Ci=!1,Cd=!0}function wd(e){if(typeof window>"u"||qa.get(Dn(e)))return;const t=Dn(e),n=$t(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ci=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hl,!0),n.addEventListener("keyup",Hl,!0),n.addEventListener("click",Xv,!0),t.addEventListener("focus",Yv,!0),t.addEventListener("blur",Uv,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",mn,!0),n.addEventListener("pointermove",mn,!0),n.addEventListener("pointerup",mn,!0)):(n.addEventListener("mousedown",mn,!0),n.addEventListener("mousemove",mn,!0),n.addEventListener("mouseup",mn,!0)),t.addEventListener("beforeunload",()=>{Jv(e)},{once:!0}),qa.set(t,{focus:r})}const Jv=(e,t)=>{const n=Dn(e),r=$t(e);t&&r.removeEventListener("DOMContentLoaded",t),qa.has(n)&&(n.HTMLElement.prototype.focus=qa.get(n).focus,r.removeEventListener("keydown",Hl,!0),r.removeEventListener("keyup",Hl,!0),r.removeEventListener("click",Xv,!0),n.removeEventListener("focus",Yv,!0),n.removeEventListener("blur",Uv,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",mn,!0),r.removeEventListener("pointermove",mn,!0),r.removeEventListener("pointerup",mn,!0)):(r.removeEventListener("mousedown",mn,!0),r.removeEventListener("mousemove",mn,!0),r.removeEventListener("mouseup",mn,!0)),qa.delete(n))};function gA(e){const t=$t(e);let n;return t.readyState!=="loading"?wd(e):(n=()=>{wd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Jv(e,n)}typeof document<"u"&&gA();function Kv(){return wa!=="pointer"}function qv(){return wa}const mA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pA(e,t,n){var r;const i=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Dn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!mA.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&&!fA[n.key])}function bA(e,t,n){wd(),x.useEffect(()=>{let r=(i,a)=>{pA(!!(n!=null&&n.isTextInput),i,a)&&e(Kv())};return xd.add(r),()=>{xd.delete(r)}},t)}function Qv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=x.useRef({isFocusWithin:!1}),o=x.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=Gv(o),l=x.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 Lm(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 vA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lm(e.onKeyDown),onKeyUp:Lm(e.onKeyUp)}}}function ey(e){const t=$t(e);if(qv()==="virtual"){let n=t.activeElement;Ov(()=>{t.activeElement===n&&e.isConnected&&_r(e)})}else _r(e)}function yA(e){const t=Dn(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 xA(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 ty(e,t){return e.nodeName!=="#comment"&&yA(e)&&xA(e,t)&&(!e.parentElement||ty(e.parentElement,e))}const th=["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]"],CA=th.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";th.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const wA=th.join(':not([hidden]):not([tabindex="-1"]),');function ny(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ra(e,t=!1){if(e!=null&&!t)try{ey(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Na(e,t,n){let r=t!=null&&t.tabbable?wA:CA,i=$t(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)&&ty(a)&&(!n||ny(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 ry(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||$t(r).activeElement,u=Na(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&&Ra(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||$t(r).activeElement,u=Na(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=xc(u);return d&&Ra(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=xc(u);if(!d)return null;c=d}return c&&Ra(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=Na(r,{tabbable:i,accept:a}).nextNode();return s&&Ra(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=Na(r,{tabbable:i,accept:a}),s=xc(o);return s&&Ra(s,!0),s??null}}}function xc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class nh{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 jm({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&&ny(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 nh;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 jm({scopeRef:null}),this.fastMap.set(null,this.root)}}class jm{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 nh;function iy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=x.useRef({isFocused:!1,isFocusVisible:t||Kv()}),[a,o]=x.useState(!1),[s,l]=x.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=x.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=x.useCallback(h=>{i.current.isFocused=h,o(h),u()},[u]);bA(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=Zv({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Qv({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}let DA=x.createContext(null);function SA(e){let t=x.useContext(DA)||{};Nv(t,e);let{ref:n,...r}=t;return r}function EA(e,t){let{focusProps:n}=Zv(e),{keyboardProps:r}=vA(e),i=Yt(n,r),a=SA(t),o=e.isDisabled?{}:a,s=x.useRef(e.autoFocus);return x.useEffect(()=>{s.current&&t.current&&ey(t.current),s.current=!1},[t]),{focusableProps:Yt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const IA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_A=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ay(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 IA.has(n.script)}let t=e.split("-")[0];return _A.has(t)}const $A=Symbol.for("react-aria.i18n.locale");function oy(){let e=typeof window<"u"&&window[$A]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ay(e)?"rtl":"ltr"}}let Dd=oy(),La=new Set;function Hm(){Dd=oy();for(let e of La)e(Dd)}function sy(){let e=Tv(),[t,n]=x.useState(Dd);return x.useEffect(()=>(La.size===0&&window.addEventListener("languagechange",Hm),La.add(n),()=>{La.delete(n),La.size===0&&window.removeEventListener("languagechange",Hm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ly=x.createContext(null);function rh(e){let{locale:t,children:n}=e,r=sy(),i=x.useMemo(()=>t?{locale:t,direction:ay(t)?"rtl":"ltr"}:r,[r,t]);return x.createElement(ly.Provider,{value:i},n)}function Rn(){let e=sy();return x.useContext(ly)||e}const RA=Symbol.for("react-aria.i18n.locale"),AA=Symbol.for("react-aria.i18n.strings");let ji;class Ri{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=FA(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[RA];if(ji===void 0){let i=window[AA];if(!i)return null;ji={};for(let a in i)ji[a]=new Ri({[n]:i[a]},n)}let r=ji==null?void 0:ji[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 FA(e,t,n="en-US"){if(t[e])return t[e];let r=PA(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function PA(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Wm=new Map,zm=new Map;class uy{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=Wm.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Wm.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=zm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zm.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 Gm=new WeakMap;function TA(e){let t=Gm.get(e);return t||(t=new Ri(e),Gm.set(e,t)),t}function MA(e,t){return t&&Ri.getGlobalDictionaryForPackage(t)||TA(e)}function es(e,t){let{locale:n}=Rn(),r=MA(e,t);return x.useMemo(()=>new uy(n,r),[n,r])}function Br(e){e=jv(e??{},kA);let{locale:t}=Rn();return x.useMemo(()=>new Io(t,e),[t,e])}function kA(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 BA(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:f,target:h,rel:g,type:m="button"}=e,p;n==="button"?p={type:m,disabled:r}:p={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h: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:b,isPressed:v}=qf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:y}=EA(e,t);c&&(y.tabIndex=r?-1:y.tabIndex);let w=Yt(y,b,Uf(e,{labelable:!0}));return{isPressed:v,buttonProps:Yt(p,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:C=>{d&&(d(C),console.warn("onClick is deprecated, please use onPress"))}})}}var cy={};cy={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 dy={};dy={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 fy={};fy={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 hy={};hy={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 gy={};gy={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 my={};my={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 py={};py={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 by={};by={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 vy={};vy={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 yy={};yy={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 xy={};xy={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 Cy={};Cy={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 wy={};wy={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 Dy={};Dy={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 Sy={};Sy={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 Ey={};Ey={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 Iy={};Iy={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 _y={};_y={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 $y={};$y={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 Ry={};Ry={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 Ay={};Ay={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 Fy={};Fy={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 Py={};Py={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 Ty={};Ty={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 My={};My={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 ky={};ky={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 By={};By={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 Vy={};Vy={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 Oy={};Oy={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 Ny={};Ny={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 Ly={};Ly={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 jy={};jy={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 Hy={};Hy={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 Wy={};Wy={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 ts={};ts={"ar-AE":cy,"bg-BG":dy,"cs-CZ":fy,"da-DK":hy,"de-DE":gy,"el-GR":my,"en-US":py,"es-ES":by,"et-EE":vy,"fi-FI":yy,"fr-FR":xy,"he-IL":Cy,"hr-HR":wy,"hu-HU":Dy,"it-IT":Sy,"ja-JP":Ey,"ko-KR":Iy,"lt-LT":_y,"lv-LV":$y,"nb-NO":Ry,"nl-NL":Ay,"pl-PL":Fy,"pt-BR":Py,"pt-PT":Ty,"ro-RO":My,"ru-RU":ky,"sk-SK":By,"sl-SI":Vy,"sr-SP":Oy,"sv-SE":Ny,"tr-TR":Ly,"uk-UA":jy,"zh-CN":Hy,"zh-TW":Wy};function zy(e){return e&&e.__esModule?e.default:e}const ih=new WeakMap;function Ao(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function VA(e){let t=es(zy(ts),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Br({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ao(n)||Ao(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return x.useMemo(()=>{if(!a&&n&&r)if(ht(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Ed(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function Sd(e,t,n,r){let i=es(zy(ts),"@react-aria/calendar"),a=Ao(e)||Ao(t),o=Br({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Br({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return x.useMemo(()=>{if(ht(e,Ko(e))){if(ht(t,ld(e)))return o.format(e.toDate(n));if(ht(t,ld(t)))return r?Ed(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Ed(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function Ed(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 Gy=7e3;let Cc=null;function Zm(e,t="assertive",n=Gy){Cc||(Cc=new OA),Cc.announce(e,t,n)}class OA{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=Gy){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 NA(e){return e&&e.__esModule?e.default:e}function Zy(e,t){let n=es(NA(ts),"@react-aria/calendar"),r=Uf(e),i=Sd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Sd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tm(()=>{t.isFocused||Zm(a)},[a]);let o=VA(t);Tm(()=>{o&&Zm(o,"polite",4e3)},[o]);let s=md([!!e.errorMessage,e.isInvalid,e.validationState]);ih.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=x.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,f]=x.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&d&&(f(!1),t.setFocused(!0));let g=Kf({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Yt(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:h,onFocusChange:f},errorMessageProps:{id:s},title:i}}function Xy(e,t){return Zy(e,t)}function LA(e,t,n){let r=Zy(e,t),i=x.useRef(!1),a=x.useRef(typeof window<"u"?window:null);return bc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),bc(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()},bc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Yy(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Rn(),a=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},o=Sd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=ih.get(t),u=Kf({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Br({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Rn(),f=x.useMemo(()=>{let h=Do(Bf(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let p=h.add({days:g}).toDate(t.timeZone);return c.format(p)})},[d,t.timeZone,c]);return{gridProps:Yt(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:f}}function jA(e){return e&&e.__esModule?e.default:e}function HA(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=ih.get(t),s=es(jA(ts),"@react-aria/calendar"),l=Br({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ao(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),f=!i&&!d,h=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ht(t.value,r));h&&(u=!0),r=jv(r,sd);let g=x.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=M9(r,t.timeZone),p=x.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ht(r,t.value.start)||ht(r,t.value.end))&&(_=o+", "),_+=l.format(g),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&ht(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&ht(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,g,s,u,m,r,t,o]),b="";"anchorDate"in t&&c&&!t.isReadOnly&&f&&(t.anchorDate?b=s.format("finishRangeSelectionPrompt"):b=s.format("startRangeSelectionPrompt"));let v=Lv(b),y=x.useRef(!1),w=x.useRef(!1),C=x.useRef(null),{pressProps:S,isPressed:I}=qf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!h){if(ht(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(ht(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let P=()=>{t.setDragging(!0),C.current=null,t.selectDate(r),t.setFocusedDate(r),y.current=!0};_.pointerType==="touch"?C.current=setTimeout(P,200):P()}},onPressEnd(){w.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!y.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let P=r.add({days:1});t.isInvalid(P)&&(P=r.subtract({days:1})),t.isInvalid(P)||t.setFocusedDate(P)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),D=null;i||(D=ht(r,t.focusedDate)?0:-1),x.useEffect(()=>{c&&n.current&&(_r(n.current),qv()!=="pointer"&&document.activeElement===n.current&&tA(n.current,{containingElement:KR(n.current)}))},[c,n]);let $=Br({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),R=x.useMemo(()=>$.formatToParts(g).find(_=>_.type==="day").value,[$,g]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":u||null,"aria-invalid":h||null},buttonProps:Yt(S,{onFocus(){i||t.setFocusedDate(r)},tabIndex:D,role:"button","aria-disabled":!f||null,"aria-label":p,"aria-invalid":h||null,"aria-describedby":[h?a:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:I,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:R}}const Iu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Uy={...Iu,customError:!0,valid:!1},ai={isInvalid:!1,validationDetails:Iu,validationErrors:[]},WA=x.createContext({}),Wl="__formValidationState"+Date.now();function zA(e){if(e[Wl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Wl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return GA(e)}function GA(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:Uy}:null,u=x.useMemo(()=>Xm(ZA(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=x.useContext(WA),d=x.useMemo(()=>r?Array.isArray(r)?r.flatMap(R=>Id(c[R])):Id(c[r]):[],[c,r]),[f,h]=x.useState(c),[g,m]=x.useState(!1);c!==f&&(h(c),m(!1));let p=x.useMemo(()=>Xm(g?[]:d),[g,d]),b=x.useRef(ai),[v,y]=x.useState(ai),w=x.useRef(ai),C=()=>{if(!S)return;I(!1);let R=u||a||b.current;wc(R,w.current)||(w.current=R,y(R))},[S,I]=x.useState(!1);return x.useEffect(C),{realtimeValidation:l||p||u||a||ai,displayValidation:s==="native"?l||p||v:l||p||u||a||v,updateValidation(R){s==="aria"&&!wc(v,R)?y(R):b.current=R},resetValidation(){let R=ai;wc(R,w.current)||(w.current=R,y(R)),s==="native"&&I(!1),m(!0)},commitValidation(){s==="native"&&I(!0),m(!0)}}}function Id(e){return e?Array.isArray(e)?e:[e]:[]}function ZA(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Id(n)}return[]}function Xm(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Uy}:null}function wc(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 zl(...e){let t=new Set,n=!1,r={...Iu};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 XA(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=ga(t);let o=ga(),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=Kf({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function YA(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=XA(e),s=md([!!t,!!n,r,i]),l=md([!!t,!!n,r,i]);return o=Yt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Jy={};Jy={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 Ky={};Ky={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 qy={};qy={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 Qy={};Qy={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 ex={};ex={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 tx={};tx={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 nx={};nx={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 rx={};rx={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 ix={};ix={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 ax={};ax={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 ox={};ox={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 sx={};sx={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 lx={};lx={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 ux={};ux={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 cx={};cx={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 dx={};dx={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 fx={};fx={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 hx={};hx={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 gx={};gx={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 mx={};mx={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 px={};px={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 bx={};bx={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 vx={};vx={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 yx={};yx={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 xx={};xx={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 Cx={};Cx={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 wx={};wx={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 Dx={};Dx={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 Sx={};Sx={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 Ex={};Ex={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 Ix={};Ix={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 _x={};_x={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 $x={};$x={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 Rx={};Rx={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 Ax={};Ax={"ar-AE":Jy,"bg-BG":Ky,"cs-CZ":qy,"da-DK":Qy,"de-DE":ex,"el-GR":tx,"en-US":nx,"es-ES":rx,"et-EE":ix,"fi-FI":ax,"fr-FR":ox,"he-IL":sx,"hr-HR":lx,"hu-HU":ux,"it-IT":cx,"ja-JP":dx,"ko-KR":fx,"lt-LT":hx,"lv-LV":gx,"nb-NO":mx,"nl-NL":px,"pl-PL":bx,"pt-BR":vx,"pt-PT":yx,"ro-RO":xx,"ru-RU":Cx,"sk-SK":wx,"sl-SI":Dx,"sr-SP":Sx,"sv-SE":Ex,"tr-TR":Ix,"uk-UA":_x,"zh-CN":$x,"zh-TW":Rx};function UA(e,t,n){let{direction:r}=Rn(),i=x.useMemo(()=>ry(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=Na(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}=qf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Yt(s,{onKeyDown:a})}const JA="__role_"+Date.now(),KA="__focusManager_"+Date.now();function qA(e){return e&&e.__esModule?e.default:e}function QA(e,t,n){var r,i;let a=es(qA(Ax),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=YA({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),h=c["aria-labelledby"]||c.id,{locale:g}=Rn(),m=t.formatValue(g,{month:"long"}),p=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",b=Lv(p),v={"aria-label":a.format("startDate"),"aria-labelledby":h},y={"aria-label":a.format("endDate"),"aria-labelledby":h},w=ga(),C=ga(),S=UA(t,n),I=[b["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=x.useMemo(()=>ry(n,{accept:A=>A.id!==w}),[n,w]),$={[KA]:D,[JA]:"presentation","aria-describedby":I,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},R=Uf(e),{focusWithinProps:_}=Qv({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),P=x.useRef(ai),M=x.useRef(ai);return{groupProps:Yt(R,S,c,b,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":I,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{D.focusFirst()}},buttonProps:{...b,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":I,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:C,"aria-labelledby":`${w} ${h}`},startFieldProps:{...v,...$,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(zl(A,M.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,...$,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){M.current=A,t.updateValidation(zl(P.current,A))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:f,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 aa(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function _d(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=ui(e,t,n).subtract(a);return Fo(e,o,t,n,r,i)}function ui(e,t,n,r,i){let a=e;return t.years?a=B9(e):t.months?a=Ko(e):t.weeks&&(a=Do(e,n)),Fo(e,a,t,n,r,i)}function $d(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=ui(e,t,n).subtract(a);return Fo(e,o,t,n,r,i)}function Fo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Of(t,ui(sn(i),n,r))),a&&e.compare(a)<=0&&(t=Vf(t,$d(sn(a),n,r))),t}function Cr(e,t,n){return t&&(e=Of(e,sn(t))),n&&(e=Vf(e,sn(n))),e}function Fx(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 Px(e){let t=x.useMemo(()=>new Io(e.locale),[e.locale]),n=x.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=x.useMemo(()=>i(n.calendar),[i,n.calendar]),[f,h]=Ro(e.value,e.defaultValue,e.onChange),g=x.useMemo(()=>f?bt(sn(f),d):null,[f,d]),m=x.useMemo(()=>f&&"timeZone"in f?f.timeZone:n.timeZone,[f,n.timeZone]),p=x.useMemo(()=>e.focusedValue?Cr(bt(sn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),b=x.useMemo(()=>Cr(e.defaultFocusedValue?bt(sn(e.defaultFocusedValue),d):g||bt(Bf(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[v,y]=Ro(p,b,e.onFocusChange),[w,C]=x.useState(()=>{switch(l){case"start":return ui(v,a,r,o,s);case"end":return $d(v,a,r,o,s);case"center":default:return _d(v,a,r,o,s)}}),[S,I]=x.useState(e.autoFocus||!1),D=x.useMemo(()=>{let F={...a};return F.days?F.days--:F.days=-1,w.add(F)},[w,a]),[$,R]=x.useState(d.identifier);if(d.identifier!==$){let F=bt(v,d);C(_d(F,a,r,o,s)),y(F),R(d.identifier)}aa(v,o,s)?y(Cr(v,o,s)):v.compare(w)<0?C($d(v,a,r,o,s)):v.compare(D)>0&&C(ui(v,a,r,o,s));function _(F){F=Cr(F,o,s),y(F)}function P(F){if(!e.isDisabled&&!e.isReadOnly){if(F===null){h(null);return}if(F=Cr(F,o,s),F=Fx(F,w,u),!F)return;F=bt(F,(f==null?void 0:f.calendar)||new ln),f&&"hour"in f?h(f.set(F)):h(F)}}let M=x.useMemo(()=>g?u&&u(g)?!0:aa(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||M,B=A?"invalid":null,T=x.useMemo(()=>c==="visible"?a:Dc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:P,visibleRange:{start:w,end:D},minValue:o,maxValue:s,focusedDate:v,timeZone:m,validationState:B,isValueInvalid:A,setFocusedDate(F){_(F),I(!0)},focusNextDay(){_(v.add({days:1}))},focusPreviousDay(){_(v.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&_(v.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&_(v.subtract({weeks:1}))},focusNextPage(){let F=w.add(T);y(Cr(v.add(T),o,s)),C(ui(Fo(v,F,T,r,o,s),T,r))},focusPreviousPage(){let F=w.subtract(T);y(Cr(v.subtract(T),o,s)),C(ui(Fo(v,F,T,r,o,s),T,r))},focusSectionStart(){a.days?_(w):a.weeks?_(Do(v,r)):(a.months||a.years)&&_(Ko(v))},focusSectionEnd(){a.days?_(D):a.weeks?_(V9(v,r)):(a.months||a.years)&&_(ld(v))},focusNextSection(F){if(!F&&!a.days){_(v.add(Dc(a)));return}a.days?this.focusNextPage():a.weeks?_(v.add({months:1})):(a.months||a.years)&&_(v.add({years:1}))},focusPreviousSection(F){if(!F&&!a.days){_(v.subtract(Dc(a)));return}a.days?this.focusPreviousPage():a.weeks?_(v.subtract({months:1})):(a.months||a.years)&&_(v.subtract({years:1}))},selectFocusedDate(){P(v)},selectDate(F){P(F)},isFocused:S,setFocused:I,isInvalid(F){return aa(F,o,s)},isSelected(F){return g!=null&&ht(F,g)&&!this.isCellDisabled(F)&&!this.isCellUnavailable(F)},isCellFocused(F){return S&&v&&ht(F,v)},isCellDisabled(F){return e.isDisabled||F.compare(w)<0||F.compare(D)>0||this.isInvalid(F,o,s)},isCellUnavailable(F){return e.isDateUnavailable&&e.isDateUnavailable(F)},isPreviousVisibleRangeInvalid(){let F=w.subtract({days:1});return ht(F,w)||this.isInvalid(F,o,s)},isNextVisibleRangeInvalid(){let F=D.add({days:1});return ht(F,D)||this.isInvalid(F,o,s)},getDatesInWeek(F,V=w){let j=V.add({weeks:F}),N=[];j=Do(j,r);let Z=Du(j,r);for(let z=0;z<Z;z++)N.push(null);for(;N.length<7;){N.push(j);let z=j.add({days:1});if(ht(j,z))break;j=z}for(;N.length<7;)N.push(null);return N}}}function Dc(e){let t={...e};for(let n in e)t[n]=1;return t}function eF(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Ro(t,n||null,r),[f,h]=x.useState(null),g="center";if(c&&c.start&&c.end){let V=_d(sn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(V)>0&&(g="start")}let m=x.useRef(null),[p,b]=x.useState(null),v=x.useMemo(()=>Of(s,p==null?void 0:p.start),[s,p]),y=x.useMemo(()=>Vf(l,p==null?void 0:p.end),[l,p]),w=Px({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:y,selectionAlignment:g}),C=F=>{F&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Um(F,w,-1),end:Um(F,w,1)},b(m.current)):(m.current=null,b(null))},[S,I]=x.useState(w.visibleRange);(!sd(w.visibleRange.start,S.start)||!sd(w.visibleRange.end,S.end))&&(C(f),I(w.visibleRange));let D=F=>{F?(h(F),C(F)):(h(null),C(null))},$=f?Sc(f,w.focusedDate):c&&Sc(c.start,c.end),R=F=>{if(!e.isReadOnly&&(F=Cr(F,v,y),F=Fx(F,w.visibleRange.start,e.isDateUnavailable),!!F))if(!f)D(F);else{let V=Sc(f,F);d({start:Ym(V.start,c==null?void 0:c.start),end:Ym(V.end,c==null?void 0:c.end)}),D(null)}},[_,P]=x.useState(!1),{isDateUnavailable:M}=e,A=x.useMemo(()=>!c||f?!1:M&&(M(c.start)||M(c.end))?!0:aa(c.start,s,l)||aa(c.end,s,l),[M,c,f,s,l]),B=e.isInvalid||e.validationState==="invalid"||A;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:D,highlightedRange:$,validationState:B?"invalid":null,isValueInvalid:B,selectFocusedDate(){R(w.focusedDate)},selectDate:R,highlightDate(F){f&&w.setFocusedDate(F)},isSelected(F){return $&&F.compare($.start)>=0&&F.compare($.end)<=0&&!w.isCellDisabled(F)&&!w.isCellUnavailable(F)},isInvalid(F){var V,j;return w.isInvalid(F)||aa(F,(V=m.current)===null||V===void 0?void 0:V.start,(j=m.current)===null||j===void 0?void 0:j.end)},isDragging:_,setDragging:P}}function Sc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:sn(e),end:sn(t)})}function Ym(e,t){return e=bt(e,(t==null?void 0:t.calendar)||new ln),t&&"hour"in t?t.set(e):e}function Um(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 tF(e){let[t,n]=Ro(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=x.useCallback(()=>{n(!0)},[n]),i=x.useCallback(()=>{n(!1)},[n]),a=x.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Tx={};Tx={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Mx={};Mx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var kx={};kx={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 Bx={};Bx={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 Vx={};Vx={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 Ox={};Ox={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Nx={};Nx={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 Lx={};Lx={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 jx={};jx={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 Hx={};Hx={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 Wx={};Wx={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 zx={};zx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Gx={};Gx={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 Zx={};Zx={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 Xx={};Xx={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 Yx={};Yx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Ux={};Ux={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Jx={};Jx={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 Kx={};Kx={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 qx={};qx={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 Qx={};Qx={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 e4={};e4={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 t4={};t4={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 n4={};n4={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 r4={};r4={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 i4={};i4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var a4={};a4={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 o4={};o4={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 s4={};s4={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 l4={};l4={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 u4={};u4={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 c4={};c4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var d4={};d4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var f4={};f4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var h4={};h4={"ar-AE":Tx,"bg-BG":Mx,"cs-CZ":kx,"da-DK":Bx,"de-DE":Vx,"el-GR":Ox,"en-US":Nx,"es-ES":Lx,"et-EE":jx,"fi-FI":Hx,"fr-FR":Wx,"he-IL":zx,"hr-HR":Gx,"hu-HU":Zx,"it-IT":Xx,"ja-JP":Yx,"ko-KR":Ux,"lt-LT":Jx,"lv-LV":Kx,"nb-NO":qx,"nl-NL":Qx,"pl-PL":e4,"pt-BR":t4,"pt-PT":n4,"ro-RO":r4,"ru-RU":i4,"sk-SK":a4,"sl-SI":o4,"sr-SP":s4,"sv-SE":l4,"tr-TR":u4,"uk-UA":c4,"zh-CN":d4,"zh-TW":f4};function nF(e){return e&&e.__esModule?e.default:e}const g4=new Ri(nF(h4));function m4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Jm(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=m4(),d=Ri.getGlobalDictionaryForPackage("@react-stately/datepicker")||g4,f=new uy(c,d),h=new Io(c,Rd({},i)),g=h.resolvedOptions().timeZone;o&&u.push(f.format("rangeUnderflow",{minValue:h.format(t.toDate(g))})),a&&u.push(f.format("rangeOverflow",{maxValue:h.format(n.toDate(g))})),s&&u.push(f.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 rF(e,t,n,r,i){let a=Jm(e==null?void 0:e.start,t,n,r,i),o=Jm(e==null?void 0:e.end,t,n,r,i),s=zl(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Ri.getGlobalDictionaryForPackage("@react-stately/datepicker")||g4;s=zl(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",m4())],validationDetails:{...Iu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const iF={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},aF={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Rd(e,t){e={...t.shouldForceLeadingZeros?aF:iF,...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 Is(e){return e&&"hour"in e?e:new Gf}function oF(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]=x.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 sF(e){var t,n;let r=tF(e),[i,a]=Ro(e.value,e.defaultValue||null,e.onChange),[o,s]=x.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,f]=oF(c,e.granularity),h=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[p,b]=x.useState(null),[v,y]=x.useState(null);l&&l.start&&l.end&&(p=l,"hour"in l.start&&(v=l));let w=(T,F)=>{u({start:"timeZone"in F.start?F.start.set(sn(T.start)):kr(T.start,F.start),end:"timeZone"in F.end?F.end.set(sn(T.end)):kr(T.end,F.end)}),b(null),y(null),M.commitValidation()},C=T=>{let F=typeof m=="function"?m():m;h?F||T.start&&T.end&&(v!=null&&v.start)&&(v!=null&&v.end)?w(T,{start:(v==null?void 0:v.start)||Is(e.placeholderValue),end:(v==null?void 0:v.end)||Is(e.placeholderValue)}):b(T):T.start&&T.end?(u(T),M.commitValidation()):b(T),F&&r.setOpen(!1)},S=T=>{p!=null&&p.start&&(p!=null&&p.end)&&T.start&&T.end?w(p,T):y(T)},I=(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",D=x.useMemo(()=>({granularity:d,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:I}),[d,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,I]),{minValue:$,maxValue:R,isDateUnavailable:_}=e,P=x.useMemo(()=>rF(l,$,R,_,D),[l,$,R,_,D]),M=zA({...e,value:i,name:x.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:P}),A=M.displayValidation.isInvalid,B=e.validationState||(A?"invalid":null);return{...M,value:l,setValue:u,dateRange:p,timeRange:v,granularity:d,hasTime:h,setDate(T,F){C({...p,[T]:F})},setTime(T,F){S({...v,[T]:F})},setDateTime(T,F){u({...l,[T]:F})},setDateRange:C,setTimeRange:S,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(p!=null&&p.start)&&(p!=null&&p.end)&&h&&w(p,{start:(v==null?void 0:v.start)||Is(e.placeholderValue),end:(v==null?void 0:v.end)||Is(e.placeholderValue)}),r.setOpen(T)},validationState:B,isInvalid:A,formatValue(T,F){if(!l||!l.start||!l.end)return null;let V="timeZone"in l.start?l.start.timeZone:void 0,j=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),N="timeZone"in l.end?l.end.timeZone:void 0,Z=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=Rd(F,{granularity:j,timeZone:V,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"}),q=l.start.toDate(V||"UTC"),W=l.end.toDate(N||"UTC"),H=new Io(T,z),O;if(V===N&&j===Z&&l.start.compare(l.end)!==0){try{let G=H.formatRangeToParts(q,W),J=-1;for(let le=0;le<G.length;le++){let X=G[le];if(X.source==="shared"&&X.type==="literal")J=le;else if(X.source==="endRange")break}let re="",fe="";for(let le=0;le<G.length;le++)le<J?re+=G[le].value:le>J&&(fe+=G[le].value);return{start:re,end:fe}}catch{}O=H}else{let G=Rd(F,{granularity:Z,timeZone:N,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});O=new Io(T,G)}return{start:H.format(q),end:O.format(W)}}}}const p4=e=>{const t=x.useRef(null),{locale:n}=Rn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=HA({date:i},r,t),{focusProps:f}=iy(),h="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.end):null:s,m=Du(i,n),p=s&&(h??m===0??i.day===1),b=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return E.jsx("td",{...a,children:E.jsx("div",{...Yt(o,f),ref:t,className:`${ge["cell-calendar"]} ${p?"1ru-rounded-l-full":""} ${b?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?E.jsx("div",{className:ge["visible-cell-calendar"],children:c}):E.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${h||g?d?ge.error:ge.selected:""} ${s&&!u&&!(h??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},ma=e=>{const t=x.useRef(null),{buttonProps:n}=BA(e,t),{focusProps:r}=iy();return E.jsx("button",{...Yt(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})},b4=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a})=>{const o=new Date().getFullYear(),s=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),l=Br({month:"short",timeZone:n.timeZone}),u=(d,f)=>{const h=n.focusedDate.set({month:d});f?(r("date"),n.setFocusedDate(h)):!f&&typeof i=="function"&&i(h)},c=d=>{const f=n.focusedDate.set({year:d});n.setFocusedDate(f)};return E.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(ma,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>c(n.focusedDate.year-1),children:typeof e=="function"||x.isValidElement(e)?x.isValidElement(e)?e:e():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:`${ge["header-button-calendar"]} ${a.includes("year")?"":ge.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),E.jsx(ma,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>c(n.focusedDate.year+1),children:typeof t=="function"||x.isValidElement(t)?x.isValidElement(t)?t:t():E.jsx(jn,{className:"-1ru-rotate-90"})})]}),E.jsx("div",{className:ge["month-calendar"],children:[...Array(s).keys()].map(d=>{var v,y,w,C;const f=n.focusedDate.set({month:d+1}),h=l.format(f.toDate(n.timeZone)),g=((v=n.value)==null?void 0:v.year)||((w=(y=n.value)==null?void 0:y.start)==null?void 0:w.year)||o,m=n!=null&&n.minValue?f.month<((C=n==null?void 0:n.minValue)==null?void 0:C.month)&&f.year<=n.minValue.year:!1,p=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,b=m||p;return E.jsx("div",{onClick:()=>{b||u(f.month,a.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===f.month&&!b&&f.year===g?ge.selected:""} ${n.focusedDate.month!==f.month&&!b?"hover:1ru-bg-laba-blue-01":""} ${b?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:h},d)})})]})},lF=e=>{const t=cv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Yy({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Xy(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.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(ma,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),E.jsx(ma,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(jn,{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:ge["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(p4,{state:e.state,date:c},d):E.jsx("td",{},d))},u))})]})]})},uF=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,f]=x.useState(!0),h=(b,v,y)=>Array.from({length:(v-b)/y+1},(w,C)=>b+C*y),g=(b,v)=>{typeof i=="function"&&i({hour:b,minut:v,second:r==null?void 0:r.second})},m=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),v=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),y=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");b&&y&&y.scrollTo({behavior:"instant",top:b.offsetTop-75}),v&&w&&w.scrollTo({behavior:"instant",top:v.offsetTop-75})},p=(b,v)=>{let y=!0;if(a&&n){const w=n.year===a.getFullYear(),C=n.month===a.getMonth()+1;n.day===a.getDate()&&C&&w?(v==="hour"&&b<(s??0)||v==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&b<(u??0))&&(y=!1):n.toDate(yi()).getTime()<a.getTime()&&(y=!1)}if(o&&n){const w=n.year===o.getFullYear(),C=n.month===o.getMonth()+1;n.day===o.getDate()&&C&&w?(v==="hour"&&b>(l??0)||v==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&b>(c??0))&&(y=!1):n.toDate(yi()).getTime()>o.getTime()&&(y=!1)}return y};return x.useEffect(()=>{d&&m(),r&&f(!1)},[JSON.stringify(n)]),E.jsxs("div",{className:ge["custom-time-calendar"],children:[E.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),E.jsxs("div",{className:ge["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:ge["container-cell-time"],children:h(0,23,1).map(b=>E.jsx("div",{id:`calendar-hour-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===b?p(b,"hour")?ge.selected:ge.error:""} ${p(b,"hour")&&(r==null?void 0:r.hour)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"hour")&&g(b,r==null?void 0:r.minut)},children:b<10?`0${b}`:b},b))}),E.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:h(0,59,1).map(b=>E.jsx("div",{id:`calendar-minut-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===b?p(b,"minut")?ge.selected:ge.error:""} ${p(b,"minut")&&(r==null?void 0:r.minut)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"minut")&&g(r==null?void 0:r.hour,b)},children:b<10?`0${b}`:b},b))})]})]})},_u=e=>{const t=Px({...e,locale:e.locale,createCalendar:Qo}),{title:n}=Xy(e,t),[r,i]=x.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Yo(()=>{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:ge["container-calendar"],children:[E.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[E.jsx(lF,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&E.jsx(uF,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&E.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):E.jsx(Wn,{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(Wn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&E.jsx(b4,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&E.jsx(b1,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},cF=e=>{const t=x.useRef(null),{locale:n}=Rn(),r=eF({...e,locale:n,createCalendar:Qo}),i=m=>{let p="";switch(m){case 0:p="Min";break;case 1:p="Sen";break;case 2:p="Sel";break;case 3:p="Rab";break;case 4:p="Kam";break;case 5:p="Jum";break;case 6:p="Sab";break}return p},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=LA(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Yy({},r),f=cv(r.visibleRange.start,n),[h,g]=x.useState("date");return E.jsxs("div",{className:"1ru-text-laba-base-sr",children:[h==="date"&&E.jsx(E.Fragment,{children:E.jsx("div",{...a,ref:t,children:E.jsxs("div",{className:ge["container-calendar"],children:[E.jsxs("div",{className:ge["header-calendar"],children:[E.jsx(ma,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():E.jsx(jn,{className:"1ru-rotate-90"})}),E.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),E.jsx(ma,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():E.jsx(jn,{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,p)=>E.jsx("th",{className:ge["days-calendar"],children:i(p)},p))})}),E.jsx("tbody",{children:[...new Array(f).keys()].map(m=>E.jsx("tr",{children:r.getDatesInWeek(m).map((p,b)=>p?E.jsx(p4,{state:r,date:p},b):E.jsx("td",{},b))},m))})]}),e.withConfirm&&E.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?E.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):E.jsx(Wn,{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(Wn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),h==="month"&&E.jsx(b4,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),h==="year"&&E.jsx(b1,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},v4=e=>{const t=sF(e),n=x.useRef(null),{calendarProps:r}=QA(e,t,n);return E.jsx("div",{ref:n,children:E.jsx(cF,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},_s=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},dF=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:f,nextIcon:h,onChange:g,id:m="date-picker",idPopover:p="date-picker-popover",floatingOptions:b={},offsetPopover:v=5,zIndexPopper:y=1}=e,w=Br(),{locale:C}=Rn(),S=_s(t),I=_s(n),D=x.useRef(null),[$,R]=x.useState(),[_,P]=x.useState(),M=V=>{var q;const j=new Date;let N=V.toDate(yi());N.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const Z=t?new Date(t):null,z=n?new Date(n):null;if(o){if(N=new Date(new Date(N).setHours((_==null?void 0:_.hour)??0,_==null?void 0:_.minut,_==null?void 0:_.second)),Z&&(Z==null?void 0:Z.toDateString())===new Date(N).toDateString()&&(Z==null?void 0:Z.toTimeString())>=(N==null?void 0:N.toTimeString())){if(Z&&(Z.getHours()>N.getHours()||Z.getHours()===N.getHours()&&Z.getMinutes()>N.getMinutes()))return;N=new Date(Z.setSeconds(Z.getSeconds()+1))}if(z&&(z==null?void 0:z.toDateString())===new Date(N).toDateString()&&(z==null?void 0:z.toTimeString())<(N==null?void 0:N.toTimeString())){if(z&&(z.getHours()<N.getHours()||z.getHours()===N.getHours()&&z.getMinutes()<N.getMinutes()))return;N=new Date(z.setSeconds(z.getSeconds()-1))}}else Z&&w.format(N)===w.format(Z)&&Z.getTime()>=N.getTime()?N=new Date(Z.setSeconds(Z.getSeconds()+1)):z&&w.format(N)===w.format(z)&&z.getTime()<=N.getTime()&&(N=new Date(z.setSeconds(z.getSeconds()-1)));typeof g=="function"&&(g(N),(q=D.current)==null||q.setShow(!1))},A=(V,j)=>{R(V),(j??(!a&&!o))&&M(V)},B=V=>{P(V)},T=V=>{const j=new Date(r??new Date);if(r&&V){const N=V.focusedDate.set({month:j.getMonth()+1,year:j.getFullYear()});V.setFocusedDate(N)}P({hour:j.getHours(),minut:j.getMinutes(),second:j.getSeconds()}),R(_s(r))},F=()=>{$&&A($,!0)};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:m,onClick:V=>{var j;(j=D.current)==null||j.handlerShow(V),T()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),E.jsx(Ei,{zIndex:y,ref:D,offset:v,id:p,floatingOptions:{placement:"bottom-end",...b},children:E.jsx("div",{className:s??"",children:E.jsx(rh,{locale:"id-ID",children:E.jsx(_u,{minValue:S,maxValue:I,minDate:t,maxDate:n,time:_,locale:C,value:$,buttonReset:c,buttonSubmit:d,prevIcon:f,nextIcon:h,createCalendar:Qo,defaultValue:_s(r),onChange:A,handlerReset:()=>{var V;typeof g=="function"&&(g(i),(V=D.current)==null||V.setShow(!1))},handlerSubmit:F,handlerChangeTime:B,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},Ec=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Km=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 lt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new lt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},y4=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:f}=Rn(),h=Ec(t),g=Ec(n),[m,p]=x.useState(),b=C=>{typeof c=="function"&&c(C)},v=(C,S)=>{const I=C.start.toDate(yi()),D=C.end.toDate(yi());p(C),(S??!i)&&b({startDate:I,endDate:new Date(D.setHours(23,59,59))})},y=C=>{if(typeof d=="function")d();else if(r&&C){const S=new Date(r.endDate??new Date),I=C.focusedDate.set({month:S.getMonth()+1,year:S.getFullYear()});C.setFocusedDate(I)}p(Km(r))},w=()=>{m&&v(m,!0)};return E.jsx("div",{className:"1ru-flex 1ru-flex-col",children:E.jsxs(rh,{locale:"id-ID",children:[u==="RANGE"&&E.jsx(v4,{defaultValue:Km(r),value:m,minValue:h,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:y,handlerSubmit:w}),u==="SINGLE"&&E.jsx(_u,{defaultValue:Ec(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:h,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:f,createCalendar:Qo,onChange:C=>v({start:C,end:C}),handlerReset:y,handlerSubmit:w,type:["date","month","year"]})]})})},fF=({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:f="filter-date",floatingOptions:h={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:p,mountedExecuteChange:b=!1,formatingDate:v})=>{const y=[{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"}],w=x.useRef(null),[C,S]=x.useState(),[I,D]=x.useState(),[$,R]=x.useState(),_=(W,H)=>{const O=new Date(W??new Date);return H==="start"?new Date(O.setHours(0,0,0)):new Date(O.setHours(23,59,59))},P=()=>{const W=new Date;return{startDate:W,endDate:W}},M=()=>{const W=new Date;W.setDate(W.getDate()-W.getDay());const H=new Date;return H.setDate(H.getDate()+(6-H.getDay())),{startDate:W,endDate:H}},A=()=>{const W=new Date,H=new Date(W.getFullYear(),W.getMonth(),1),O=new Date(W.getFullYear(),W.getMonth()+1,0);return{startDate:H,endDate:O}},B=()=>{const W=new Date(new Date().getFullYear(),0,1),H=new Date(new Date().getFullYear(),11,31);return{startDate:W,endDate:H}},T=()=>{const W=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:W,endDate:W}},F=()=>{const W=new Date;W.setDate(W.getDate()-(7+W.getDay()));const H=new Date;return H.setDate(H.getDate()-(H.getDay()+1)),{startDate:W,endDate:H}},V=()=>{const W=new Date,H=new Date(W.getFullYear(),W.getMonth()-1,1),O=new Date(W.getFullYear(),W.getMonth(),0);return{startDate:H,endDate:O}},j=()=>{const W=new Date(new Date().getFullYear()-1,0,1),H=new Date(new Date().getFullYear()-1,11,31);return{startDate:W,endDate:H}},N=(W,H)=>{var O;if(R(W),typeof c=="function"){let G=W;v==="string"&&W?G={startDate:Yi(W.startDate,v),endDate:Yi(W.endDate,v)}:typeof v=="boolean"&&W&&(G={startDate:Yi(W.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:Yi(W.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(O=w.current)==null||O.setShow(!1),c(G,H??"")}},Z=W=>{S(W);let H;if((W==null?void 0:W.key)!=="custom"){switch(D(W),W==null?void 0:W.key){case"thisDay":H=P();break;case"thisWeek":H=M();break;case"thisMonth":H=A();break;case"thisYear":H=B();break;case"yesterday":H=T();break;case"lastWeek":H=F();break;case"lastMonth":H=V();break;case"lastYear":H=j();break}H&&N({startDate:_(H.startDate,"start"),endDate:_(H.endDate,"end")},W==null?void 0:W.value)}},z=(W,H)=>{const O=(l??y).find(G=>G.key===W);!W&&!O?(H||N(),Z(void 0),D(void 0)):typeof W=="object"?(H||N({startDate:_(W.startDate,"start"),endDate:_(W.endDate,"end")},"Kustom"),Z({key:"custom",value:"Kustom"}),D({key:"custom",value:"Kustom"})):(Z(O),D(O))},q=()=>{e?R(e):(S(void 0),D(void 0))};return x.useEffect(()=>{q()},[JSON.stringify(e)]),x.useEffect(()=>{z(p??e,!b)},[]),E.jsxs(E.Fragment,{children:[E.jsxs("div",{onClick:W=>{var H;(H=w.current)==null||H.handlerShow(W),q()},className:o,id:f,children:[x.isValidElement(s)&&s,typeof s=="function"?s($,I):"Pilih Filter"]}),E.jsx(Ei,{zIndex:m,ref:w,offset:g,id:d,floatingOptions:{placement:"bottom-end",...h},children:E.jsxs("div",{className:`${ge["container-filter-date"]} ${a}`,children:[E.jsx("div",{children:(l??y).map((W,H)=>E.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(C==null?void 0:C.key)===W.key?"1ru-text-laba-blue-10":""}`,onClick:()=>Z(W),children:W.value},H))}),(C==null?void 0:C.key)==="custom"&&E.jsx("div",{children:E.jsx(y4,{defaultValue:$,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:W=>{N(W,"Kustom"),D({key:"custom",value:"Kustom"})},onReset:()=>{z(p)},typePicker:u,withConfirm:!0})})]})})]})},hF="_active_1e40z_26",Zr={"button-switch-base":"_button-switch-base_1e40z_1","switch-s":"_switch-s_1e40z_1","switch-r":"_switch-r_1e40z_1","switch-l":"_switch-l_1e40z_1","thumb-switch-base":"_thumb-switch-base_1e40z_7","thumb-switch":"_thumb-switch_1e40z_7","title-switch-base":"_title-switch-base_1e40z_12","description-switch-base":"_description-switch-base_1e40z_16",active:hF},gF=({value:e,disabled:t,title:n="",description:r="",size:i="regular",id:a,className:o,classNameTitle:s,classNameDesc:l,onChange:u})=>{const c={large:Zr["switch-l"],regular:Zr["switch-r"],small:Zr["switch-s"]},d=()=>{!t&&typeof u=="function"&&u(!e)};return E.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${o??""}`,onClick:f=>f.stopPropagation(),children:[E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:e,onChange:d,className:"1ru-hidden"}),E.jsx("span",{className:`${c[i]} ${e?"1ru-bg-payhere-brand-base":"1ru-bg-blue-gray-50"} ${t?"":"1ru-cursor-pointer"} ${!e&&t?"1ru-bg-laba-grey-05":""}`,children:E.jsx("span",{className:`${Zr["thumb-switch"]} ${e?Zr.active:""} ${t?"1ru-bg-gray-300":"1ru-bg-white"}`})})]}),(n||r)&&E.jsxs("div",{children:[n&&E.jsx("div",{className:`${Zr["title-switch-base"]} ${s}`,children:n}),r&&E.jsx("div",{className:`${Zr["description-switch-base"]} ${l}`,children:r})]})]})},mF="_loading_1rugy_10",$e={"button-base":"_button-base_1rugy_6","button-xs":"_button-xs_1rugy_6","button-s":"_button-s_1rugy_6","button-m":"_button-m_1rugy_6","button-l":"_button-l_1rugy_6","button-extra-small":"_button-extra-small_1rugy_6","button-small":"_button-small_1rugy_6","button-reguler":"_button-reguler_1rugy_6","button-large":"_button-large_1rugy_6",loading:mF,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1rugy_18","nude-laba-red-10":"_nude-laba-red-10_1rugy_18","nude-gray-500":"_nude-gray-500_1rugy_18","nude-green-700":"_nude-green-700_1rugy_18","nude-red-700":"_nude-red-700_1rugy_18","nude-laba-blue-10":"_nude-laba-blue-10_1rugy_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1rugy_18","ghost-green-700":"_ghost-green-700_1rugy_18","ghost-red-700":"_ghost-red-700_1rugy_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1rugy_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_1rugy_18","primary-green-700":"_primary-green-700_1rugy_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1rugy_18","primary-laba-blue-10":"_primary-laba-blue-10_1rugy_18","button-disabled-gray-100":"_button-disabled-gray-100_1rugy_18","tertiary-gray-500":"_tertiary-gray-500_1rugy_18","tertiary-red-600":"_tertiary-red-600_1rugy_18","tertiary-red-300":"_tertiary-red-300_1rugy_18","tertiary-blue-700":"_tertiary-blue-700_1rugy_18","secondary-green-600":"_secondary-green-600_1rugy_18","secondary-red-600":"_secondary-red-600_1rugy_18","secondary-blue-700":"_secondary-blue-700_1rugy_18","primary-red-700":"_primary-red-700_1rugy_18","primary-blue-700":"_primary-blue-700_1rugy_18","icon-loading":"_icon-loading_1rugy_80","spin-loading":"_spin-loading_1rugy_1"},pF=({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
|
110
|
+
`]))),t$=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ce({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})},tc=function(t){var n=t.delay,r=t.offset;return ue("span",{css:Tf({animation:"".concat(e$," 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 */")})},n$=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=pr(t,G6);return ue("div",de({},st(ce(ce({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(tc,{delay:0,offset:r}),ue(tc,{delay:160,offset:!0}),ue(tc,{delay:320,offset:!r}))},r$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ce({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}})},i$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ue("div",de({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)},a$=i$,o$=["data"],s$=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},l$=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 ue("div",de({},st(t,"group",{group:!0}),l),ue(o,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),ue("div",null,n))},u$=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ce({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"})},c$=function(t){var n=V1(t);n.data;var r=pr(n,o$);return ue("div",de({},st(t,"groupHeading",{"group-heading":!0}),r))},d$=l$,f$=["innerRef","isDisabled","isHidden","inputClassName"],h$=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},g$),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Z1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},g$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Z1)},m$=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Z1)},p$=function(t){var n=t.cx,r=t.value,i=V1(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=pr(i,f$);return ue("div",de({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",de({className:n({input:!0},l),ref:a,style:m$(s),disabled:o},u)))},b$=p$,v$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},y$=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ce({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})},x$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ce({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}})},X1=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},C$=X1,w$=X1;function D$(e){var t=e.children,n=e.innerProps;return ue("div",de({role:"button"},n),t||ue(Mf,{size:14}))}var S$=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 ue(u,{data:i,innerProps:ce(ce({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ue(c,{data:i,innerProps:ce({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ue(d,{data:i,innerProps:ce(ce({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},E$=S$,I$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ce({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}})},_$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ue("div",de({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},$$=_$,R$=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},A$=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"placeholder",{placeholder:!0}),r),n)},F$=A$,P$=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ce({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})},T$=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ue("div",de({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},M$=T$,Y1={ClearIndicator:K6,Control:a$,DropdownIndicator:U6,DownChevron:z1,CrossIcon:Mf,Group:d$,GroupHeading:c$,IndicatorsContainer:W6,IndicatorSeparator:Q6,Input:b$,LoadingIndicator:n$,Menu:R6,MenuList:F6,MenuPortal:V6,LoadingMessage:k6,NoOptionsMessage:M6,MultiValue:E$,MultiValueContainer:C$,MultiValueLabel:w$,MultiValueRemove:D$,Option:$$,Placeholder:F$,SelectContainer:N6,SingleValue:M$,ValueContainer:j6},k$=function(t){return ce(ce({},Y1),t.components)},tm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function B$(e,t){return!!(e===t||tm(e)&&tm(t))}function V$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!B$(e[n],t[n]))return!1;return!0}function O$(e,t){t===void 0&&(t=V$);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 N$(){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 L$=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:N$},j$=function(t){return ue("span",de({css:L$},t))},nm=j$,H$={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,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var f=l?" disabled":"",h="".concat(u?" selected":"").concat(f);return"".concat(o).concat(h,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},W$=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,f=l.getOptionLabel,h=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,D=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],I=l["aria-live"],w=x.useMemo(function(){return ce(ce({},H$),d||{})},[d]),$=x.useMemo(function(){var B="";if(n&&w.onChange){var T=n.option,F=n.options,V=n.removedValue,j=n.removedValues,N=n.value,Z=function(J){return Array.isArray(J)?null:J},z=V||T||Z(N),q=z?f(z):"",W=F||j||void 0,H=W?W.map(f):[],O=ce({isDisabled:z&&m(z,s),label:q,labels:H},n);B=w.onChange(O)}return B},[n,w,m,s,f]),R=x.useMemo(function(){var B="",T=r||i,F=!!(r&&s&&s.includes(r));if(T&&w.onFocus){var V={focused:T,label:f(T),isDisabled:m(T,s),isSelected:F,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};B=w.onFocus(V)}return B},[r,i,f,m,w,a,s,c]),_=x.useMemo(function(){var B="";if(b&&v.length&&!C&&w.onFilter){var T=y({count:a.length});B=w.onFilter({inputValue:h,resultsMessage:T})}return B},[a,h,b,w,v,y,C]),P=(n==null?void 0:n.action)==="initial-input-focus",M=x.useMemo(function(){var B="";if(w.guidance){var T=i?"value":b?"menu":"input";B=w.guidance({"aria-label":E,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:p,tabSelectsValue:D,isInitialFocus:P})}return B},[E,r,i,g,m,p,b,w,s,D,P]),A=ue(x.Fragment,null,ue("span",{id:"aria-selection"},$),ue("span",{id:"aria-focused"},R),ue("span",{id:"aria-results"},_),ue("span",{id:"aria-guidance"},M));return ue(x.Fragment,null,ue(nm,{id:u},P&&A),ue(nm,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&A))},z$=W$,od=[{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źẑżžẓẕƶȥɀⱬꝣ"}],G$=new RegExp("["+od.map(function(e){return e.letters}).join("")+"]","g"),U1={};for(var nc=0;nc<od.length;nc++)for(var rc=od[nc],ic=0;ic<rc.letters.length;ic++)U1[rc.letters[ic]]=rc.base;var J1=function(t){return t.replace(G$,function(n){return U1[n]})},Z$=O$(J1),rm=function(t){return t.replace(/^\s+|\s+$/g,"")},X$=function(t){return"".concat(t.label," ").concat(t.value)},Y$=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:X$,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?rm(r):r,d=l?rm(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=Z$(c),d=J1(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},U$=["innerRef"];function J$(e){var t=e.innerRef,n=pr(e,U$),r=C6(n,"onExited","in","enter","exit","appear");return ue("input",de({ref:t},r,{css:Tf({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 K$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function q$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(p,b){if(u.current!==null){var v=u.current,y=v.scrollTop,D=v.scrollHeight,C=v.clientHeight,E=u.current,I=b>0,w=D-C-y,$=!1;w>b&&o.current&&(r&&r(p),o.current=!1),I&&s.current&&(a&&a(p),s.current=!1),I&&b>w?(n&&!o.current&&n(p),E.scrollTop=D,$=!0,o.current=!0):!I&&-b>y&&(i&&!s.current&&i(p),E.scrollTop=0,$=!0,s.current=!0),$&&K$(p)}},[n,r,i,a]),d=x.useCallback(function(p){c(p,p.deltaY)},[c]),f=x.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),h=x.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=x.useCallback(function(p){if(p){var b=v6?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",h,b)}},[h,f,d]),m=x.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",h,!1))},[h,f,d]);return x.useEffect(function(){if(t){var p=u.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){u.current=p}}var im=["boxSizing","height","overflow","paddingRight","position"],am={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function om(e){e.preventDefault()}function sm(e){e.stopPropagation()}function lm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function um(){return"ontouchstart"in window||navigator.maxTouchPoints}var cm=!!(typeof window<"u"&&window.document&&window.document.createElement),_a=0,Oi={capture:!1,passive:!1};function Q$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),a=x.useRef(null),o=x.useCallback(function(l){if(cm){var u=document.body,c=u&&u.style;if(r&&im.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&_a<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(am).forEach(function(g){var m=am[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(h,"px"))}u&&um()&&(u.addEventListener("touchmove",om,Oi),l&&(l.addEventListener("touchstart",lm,Oi),l.addEventListener("touchmove",sm,Oi))),_a+=1}},[r]),s=x.useCallback(function(l){if(cm){var u=document.body,c=u&&u.style;_a=Math.max(_a-1,0),r&&_a<1&&im.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),u&&um()&&(u.removeEventListener("touchmove",om,Oi),l&&(l.removeEventListener("touchstart",lm,Oi),l.removeEventListener("touchmove",sm,Oi)))}},[r]);return x.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function e9(){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 t9=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},n9=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:e9};function r9(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=q$({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=Q$({isEnabled:n}),d=function(h){u(h),c(h)};return ue(x.Fragment,null,n&&ue("div",{onClick:t9,css:n9}),t(d))}function i9(){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 a9=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:i9},o9=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:a9,value:"",onChange:function(){}})},s9=o9;function kf(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 l9(){return kf(/^iPhone/i)}function K1(){return kf(/^Mac/i)}function u9(){return kf(/^iPad/i)||K1()&&navigator.maxTouchPoints>1}function c9(){return l9()||u9()}function d9(){return K1()||c9()}var f9=function(t){return t.label},h9=function(t){return t.label},g9=function(t){return t.value},m9=function(t){return!!t.isDisabled},p9={clearIndicator:J6,container:O6,control:r$,dropdownIndicator:Y6,group:s$,groupHeading:u$,indicatorsContainer:H6,indicatorSeparator:q6,input:h$,loadingIndicator:t$,loadingMessage:T6,menu:I6,menuList:A6,menuPortal:B6,multiValue:v$,multiValueLabel:y$,multiValueRemove:x$,noOptionsMessage:P6,option:I$,placeholder:R$,singleValue:P$,valueContainer:L6},b9={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%)"},v9=4,q1=4,y9=38,x9=q1*2,C9={baseUnit:q1,controlHeight:y9,menuGutter:x9},ac={borderRadius:v9,colors:b9,spacing:C9},w9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Qg(),captureMenuScroll:!Qg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Y$(),formatGroupLabel:f9,getOptionLabel:h9,getOptionValue:g9,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:m9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!p6(),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 dm(e,t,n,r){var i=tv(e,t,n),a=nv(e,t,n),o=ev(e,t),s=Ml(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function el(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return dm(e,o,t,s)}).filter(function(o){return hm(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=dm(e,n,t,r);return hm(e,a)?a:void 0}).filter(y6)}function Q1(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,wf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function fm(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,wf(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 D9(e,t){return Q1(el(e,t))}function hm(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!iv(e)||!a)&&rv(e,{label:o,value:s,data:i},r)}function S9(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 E9(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var oc=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},ev=function(t,n){return t.getOptionLabel(n)},Ml=function(t,n){return t.getOptionValue(n)};function tv(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nv(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Ml(e,t);return n.some(function(i){return Ml(e,i)===r})}function rv(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var iv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},I9=1,av=function(e){HI(n,e);var t=GI(n);function n(r){var i;if(LI(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=d9(),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,f=c.name;u.name=f,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),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,f=u.name,h=i.state.selectValue,g=d&&i.isOptionSelected(l,h),m=i.isOptionDisabled(l,h);if(g){var p=i.getOptionValue(l);i.setValue(h.filter(function(b){return i.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(wf(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(g){return i.getOptionValue(g)!==d}),h=ys(u,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ys(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),f=ys(l,d,d[0]||null);i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return oc(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return fm(el(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 d6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return ev(i.props,l)},i.getOptionValue=function(l){return Ml(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=p9[l](u,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(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 k$(i.props)},i.buildCategorizedOptions=function(){return el(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Q1(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({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&&Cu(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),f=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=d>h||f>h}},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 iv(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,f=u.escapeClearsValue,h=u.inputValue,g=u.isClearable,m=u.isDisabled,p=u.menuIsOpen,b=u.onKeyDown,v=u.tabSelectsValue,y=u.openMenuOnFocus,D=i.state,C=D.focusedOption,E=D.focusedValue,I=D.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(E)i.removeValue(E);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!p||!v||!C||y&&i.isOptionSelected(C,I))return;i.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(p){if(!C||i.isComposing)return;i.selectOption(C);break}return;case"Escape":p?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):g&&f&&i.clearValue();break;case" ":if(h)return;if(!p){i.openMenu("first");break}if(!C)return;i.selectOption(C);break;case"ArrowUp":p?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":p?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!p)return;i.focusOption("pageup");break;case"PageDown":if(!p)return;i.focusOption("pagedown");break;case"Home":if(!p)return;i.focusOption("first");break;case"End":if(!p)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++I9),i.state.selectValue=Kg(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=oc(a,o[s])}return i}return jI(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&&qg(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&&(qg(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(ac):ce(ce({},ac),this.props.theme):ac}},{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,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:h,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 tv(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return nv(this.props,i,a)}},{key:"filterOption",value:function(i,a){return rv(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,f=i.required,h=this.getComponents(),g=h.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,v=this.commonProps,y=s||this.getElementId("input"),D=ce(ce(ce({"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?L.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:a,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},D)):L.createElement(J$,de({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},D))}},{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,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,p=h.isMulti,b=h.inputValue,v=h.placeholder,y=this.state,D=y.selectValue,C=y.focusedValue,E=y.isFocused;if(!this.hasValue()||!g)return b?null:L.createElement(d,de({},f,{key:"placeholder",isDisabled:m,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),v);if(p)return D.map(function(w,$){var R=w===C,_="".concat(i.getOptionLabel(w),"-").concat(i.getOptionValue(w));return L.createElement(o,de({},f,{components:{Container:s,Label:l,Remove:u},isFocused:R,isDisabled:m,key:_,index:$,removeProps:{onClick:function(){return i.removeValue(w)},onTouchEnd:function(){return i.removeValue(w)},onMouseDown:function(M){M.preventDefault()}},data:w}),i.formatOptionLabel(w,"value"))});if(b)return null;var I=D[0];return L.createElement(c,de({},f,{data:I,isDisabled:m}),this.formatOptionLabel(I,"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 L.createElement(a,de({},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 L.createElement(a,de({},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 L.createElement(o,de({},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 L.createElement(a,de({},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,f=a.NoOptionsMessage,h=a.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,D=p.loadingMessage,C=p.minMenuHeight,E=p.maxMenuHeight,I=p.menuIsOpen,w=p.menuPlacement,$=p.menuPosition,R=p.menuPortalTarget,_=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,M=p.noOptionsMessage,A=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!I)return null;var T=function(q,W){var H=q.type,O=q.data,G=q.isDisabled,J=q.isSelected,re=q.label,fe=q.value,le=m===O,X=G?void 0:function(){return i.onOptionHover(O)},Ae=G?void 0:function(){return i.selectOption(O)},Me="".concat(i.getElementId("option"),"-").concat(W),Xe={id:Me,onClick:Ae,onMouseMove:X,onMouseOver:X,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:J};return L.createElement(h,de({},g,{innerProps:Xe,data:O,isDisabled:G,isSelected:J,key:Me,label:re,type:H,value:fe,isFocused:le,innerRef:le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(q.data,"menu"))},F;if(this.hasOptions())F=this.getCategorizedOptions().map(function(z){if(z.type==="group"){var q=z.data,W=z.options,H=z.index,O="".concat(i.getElementId("group"),"-").concat(H),G="".concat(O,"-heading");return L.createElement(o,de({},g,{key:O,data:q,options:W,Heading:s,headingProps:{id:G,data:z.data},label:i.formatGroupLabel(z.data)}),z.options.map(function(J){return T(J,"".concat(H,"-").concat(J.index))}))}else if(z.type==="option")return T(z,"".concat(z.index))});else if(y){var V=D({inputValue:v});if(V===null)return null;F=L.createElement(d,g,V)}else{var j=M({inputValue:v});if(j===null)return null;F=L.createElement(f,g,j)}var N={minMenuHeight:C,maxMenuHeight:E,menuPlacement:w,menuPosition:$,menuShouldScrollIntoView:P},Z=L.createElement(_6,de({},g,N),function(z){var q=z.ref,W=z.placerProps,H=W.placement,O=W.maxHeight;return L.createElement(l,de({},g,N,{innerRef:q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:H}),L.createElement(r9,{captureEnabled:b,onTopArrive:A,onBottomArrive:B,lockEnabled:_},function(G){return L.createElement(u,de({},g,{innerRef:function(re){i.getMenuListRef(re),G(re)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:O,focusedOption:m}),F)}))});return R||$==="fixed"?L.createElement(c,de({},g,{appendTo:R,controlElement:this.controlRef,menuPlacement:w,menuPosition:$}),Z):Z}},{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 L.createElement(s9,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var f=d.map(function(m){return i.getOptionValue(m)}).join(o);return L.createElement("input",{name:u,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,p){return L.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:i.getOptionValue(m)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return L.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 L.createElement(z$,de({},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,f=u.isDisabled,h=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return L.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),L.createElement(a,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),L.createElement(l,de({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(o,de({},m,{isDisabled:f}),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,f=a.instancePrefix,h=i.options,g=i.value,m=i.menuIsOpen,p=i.inputValue,b=i.isMulti,v=Kg(g),y={};if(o&&(g!==o.value||h!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var D=m?D9(i,v):[],C=m?fm(el(i,v),"".concat(f,"-option")):[],E=s?S9(a,v):null,I=E9(a,D),w=oc(C,I);y={selectValue:v,focusedOption:I,focusedOptionId:w,focusableOptionsWithIds:C,focusedValue:E,clearFocusValueOnUpdate:!1}}var $=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},R=u,_=c&&d;return c&&!_&&(R={value:ys(b,v,v[0]||null),options:v,action:"initial-input-focus"},_=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),ce(ce(ce({},y),$),{},{prevProps:i,ariaSelection:R,prevWasFocused:_})}}]),n}(x.Component);av.defaultProps=w9;var _9=x.forwardRef(function(e,t){var n=NI(e);return L.createElement(av,de({ref:t},n))}),$9=_9;const R9="_container_26hat_1",sc={container:R9,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},A9={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:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},F9={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:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},ov=x.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:f={},autoClose:h=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:p={},onMenuClose:b=()=>{},zIndexPopper:v=0,id:y="select-dropdown-container",idPopover:D="select-dropdown-container-popover",useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,withSearch:w=!1,floatingOptions:$={},offsetPopover:R=5,selectProps:_={},errorLabel:P="payhere",actionValueChange:M=()=>{},...A}=e,B={error:{laba:sc["error-laba"],payhere:sc["error-payhere"]}},T=x.useRef(null),F=x.useRef(null),[V,j]=x.useState(""),[N,Z]=x.useState(!1),[z,q]=x.useState({}),[W,H]=x.useState(0),O=X=>{var Ae;(Ae=F.current)==null||Ae.setShow(X),Z(X)},G=()=>{if(d)return e.isMulti?f:[f]},J=X=>{var Ae;(Ae=F.current)==null||Ae.handlerShow(X),H(T.current.offsetWidth),Z(Me=>!Me)},re=()=>{var X;m&&((X=F.current)==null||X.setShow(!1))},fe=(X,Ae)=>{var Me;h&&(Z(!1),(Me=F.current)==null||Me.setShow(!1)),q(X),typeof c=="function"&&c(X,Ae)},le=()=>{T.current&&H(T.current.offsetWidth)};return Yo(()=>{d&&q(f),M(f)},[d,f]),x.useEffect(()=>{N?g():N||(b(),j(""))},[N]),x.useImperativeHandle(t,()=>({selectValue:z,setSelectValue:q,handlerClose:re,handlerShow:J,show:N,setShow:O}),[N,Cf(z)]),x.useEffect(()=>(window.addEventListener("resize",le),window.addEventListener("load",le),()=>{window.removeEventListener("resize",le),window.removeEventListener("load",le)}),[T]),S.jsxs("div",{id:y,className:`${sc.container} ${a} ${N?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:z,setSelectValue:q,handlerClose:re,handlerShow:J,show:N,setShow:O}),S.jsx(Ei,{ref:F,offset:R,useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,zIndex:v,styleInnerPopover:p,id:D,width:typeof n=="function"?n(W,z):n??W,className:s,floatingOptions:$,children:S.jsx($9,{className:"1ru-w-full",defaultValue:G(),inputValue:V,onInputChange:(X,{action:Ae})=>{Ae==="input-change"&&j(X)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:w?A9:F9,noOptionsMessage:()=>"Tidak ada data.",onChange:fe,selectProps:{..._,setShowDropdown:O},...A})}),S.jsx("div",{className:`${B.error[P]} ${l}`,children:u})]})});ov.displayName="SelectDropdownContainer";function na(e,t){return e-t*Math.floor(e/t)}const sv=1721426;function li(e,t,n,r){t=Jo(e,t);let i=t-1,a=-2;return n<=2?a=0:Ir(t)&&(a=-1),sv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ir(e){return e%4===0&&(e%100!==0||e%400===0)}function Jo(e,t){return e==="BC"?1-t:t}function wu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const P9={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 ln{fromJulianDay(t){let n=t,r=n-sv,i=Math.floor(r/146097),a=na(r,146097),o=Math.floor(a/36524),s=na(a,36524),l=Math.floor(s/1461),u=na(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[f,h]=wu(d),g=n-li(f,h,1,1),m=2;n<li(f,h,3,1)?m=0:Ir(h)&&(m=1);let p=Math.floor(((g+m)*12+373)/367),b=n-li(f,h,p,1)+1;return new lt(f,h,p,b)}toJulianDay(t){return li(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return P9[Ir(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ir(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 T9={"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 ht(e,t){return t=bt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function sd(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 M9(e,t){return ht(e,Bf(t))}function Du(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-N9(t))%7;return r<0&&(r+=7),r}function k9(e){return sr(Date.now(),e)}function Bf(e){return sn(k9(e))}function lv(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function uv(e,t){return gm(e)-gm(t)}function gm(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let lc=null;function yi(){return lc==null&&(lc=new Intl.DateTimeFormat().resolvedOptions().timeZone),lc}function Ko(e){return e.subtract({days:e.day-1})}function ld(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function B9(e){return Ko(e.subtract({months:e.month-1}))}function Do(e,t){let n=Du(e,t);return e.subtract({days:n})}function V9(e,t){return Do(e,t).add({days:6})}const mm=new Map;function O9(e){if(Intl.Locale){let n=mm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&mm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function N9(e){let t=O9(e);return t&&T9[t]||0}function cv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Du(Ko(e),t)+n)/7)}function Vf(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Of(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ha(e){e=bt(e,new ln);let t=Jo(e.era,e.year);return dv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function dv(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 ud(e,t){if(t==="UTC")return 0;if(e>0&&t===yi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=fv(e,t);return dv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const pm=new Map;function fv(e,t){let n=pm.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"}),pm.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 bm=864e5;function L9(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>j9(e,t,a))}function j9(e,t,n){let r=fv(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 nr(e,t,n="compatible"){let r=kr(e);if(t==="UTC")return ha(r);if(t===yi()&&n==="compatible"){r=bt(r,new ln);let l=new Date,u=Jo(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=ha(r),a=ud(i-bm,t),o=ud(i+bm,t),s=L9(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 hv(e,t,n="compatible"){return new Date(nr(e,t,n))}function sr(e,t){let n=ud(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 Eo(i,a,o,t,n,s,l,u,c)}function sn(e){return new lt(e.calendar,e.era,e.year,e.month,e.day)}function kr(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 kl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function bt(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,xi(r),r}function H9(e,t,n){if(e instanceof Eo)return e.timeZone===t?e:z9(e,t);let r=nr(e,t,n);return sr(r,t)}function W9(e){let t=ha(e)-e.offset;return new Date(t)}function z9(e,t){let n=ha(e)-e.offset;return bt(sr(n,t),e.calendar)}const $a=36e5;function Su(e,t){let n=e.copy(),r="hour"in n?bv(n,t):0;cd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,dd(n),gv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,G9(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 cd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function dd(e){for(;e.month<1;)cd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,cd(e,1)}function G9(e){for(;e.day<1;)e.month--,dd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,dd(e)}function gv(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 xi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gv(e)}function Nf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function mv(e,t){return Su(e,Nf(t))}function Lf(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),xi(n),n}function So(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),pv(n),n}function Z9(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=xs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=xs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=xs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=xs(e.hour,24),t}function pv(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 xs(e,t){let n=e%t;return n<0&&(n+=t),n}function bv(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Z9(e)}function vv(e,t){let n=e.copy();return bv(n,t),n}function X9(e,t){return vv(e,Nf(t))}function jf(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=lr(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],xi(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=lr(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=lr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=lr(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),xi(i),i}function Hf(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=lr(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=lr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=lr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=lr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function lr(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 yv(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=Su(kr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=nr(i,e.timeZone)}else n=ha(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=sr(n,e.timeZone);return bt(r,e.calendar)}function Y9(e,t){return yv(e,Nf(t))}function U9(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=kr(e),s=bt(So(o,{hour:i}),new ln),l=[nr(s,e.timeZone,"earlier"),nr(s,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===s.day)[0],u=bt(So(o,{hour:a}),new ln),c=[nr(u,e.timeZone,"earlier"),nr(u,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===u.day).pop(),d=ha(e)-e.offset,f=Math.floor(d/$a),h=d%$a;return d=lr(f,n,Math.floor(l/$a),Math.floor(c/$a),r==null?void 0:r.round)*$a+h,bt(sr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Hf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=jf(kr(e),t,n,r),a=nr(i,e.timeZone);return bt(sr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function J9(e,t,n){let r=kr(e),i=So(Lf(r,t),t);if(i.compare(r)===0)return e;let a=nr(i,e.timeZone,n);return bt(sr(a,e.timeZone),e.calendar)}const K9=/^(\d{4})-(\d{2})-(\d{2})$/;function Wf(e){let t=e.match(K9);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new lt(uc(t[1],0,9999),uc(t[2],1,12),1);return n.day=uc(t[3],0,n.calendar.getDaysInMonth(n)),n}function uc(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 xv(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 Cv(e){let t=bt(e,new ln);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function wv(e){return`${Cv(e)}T${xv(e)}`}function q9(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 Q9(e){return`${wv(e)}${q9(e.offset)}[${e.timeZone}]`}function eR(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qo(e,t,n){eR(e,t),t.set(e,n)}function zf(e){let t=typeof e[0]=="object"?e.shift():new ln,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 tR=new WeakMap;class lt{copy(){return this.era?new lt(this.calendar,this.era,this.year,this.month,this.day):new lt(this.calendar,this.year,this.month,this.day)}add(t){return Su(this,t)}subtract(t){return mv(this,t)}set(t){return Lf(this,t)}cycle(t,n,r){return jf(this,t,n,r)}toDate(t){return hv(this,t)}toString(){return Cv(this)}compare(t){return lv(this,t)}constructor(...t){qo(this,tR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,xi(this)}}var nR=new WeakMap;class Gf{copy(){return new Gf(this.hour,this.minute,this.second,this.millisecond)}add(t){return vv(this,t)}subtract(t){return X9(this,t)}set(t){return So(this,t)}cycle(t,n,r){return Hf(this,t,n,r)}toString(){return xv(this)}compare(t){return uv(this,t)}constructor(t=0,n=0,r=0,i=0){qo(this,nR,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,pv(this)}}var rR=new WeakMap;class kl{copy(){return this.era?new kl(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kl(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Su(this,t)}subtract(t){return mv(this,t)}set(t){return Lf(So(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return jf(this,t,n,r);default:return Hf(this,t,n,r)}}toDate(t,n){return hv(this,t,n)}toString(){return wv(this)}compare(t){let n=lv(this,t);return n===0?uv(this,kr(t)):n}constructor(...t){qo(this,rR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(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,xi(this)}}var iR=new WeakMap;class Eo{copy(){return this.era?new Eo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Eo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return yv(this,t)}subtract(t){return Y9(this,t)}set(t,n){return J9(this,t,n)}cycle(t,n,r){return U9(this,t,n,r)}toDate(){return W9(this)}toString(){return Q9(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-H9(t,this.timeZone).toDate().getTime()}constructor(...t){qo(this,iR,{writable:!0,value:void 0});let[n,r,i,a,o]=zf(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,xi(this)}}const ra=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],aR=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],tl=[1867,1911,1925,1988,2018],wr=["meiji","taisho","showa","heisei","reiwa"];function vm(e){const t=ra.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?ra.length-1:t===0?0:t-1}function cc(e){let t=tl[wr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new lt(e.year+t,e.month,e.day)}class oR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=vm(n);return new lt(this,wr[r],n.year-tl[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(cc(t))}balanceDate(t){let n=cc(t),r=vm(n);wr[r]!==t.era&&(t.era=wr[r],t.year=n.year-tl[r]),this.constrainDate(t)}constrainDate(t){let n=wr.indexOf(t.era),r=aR[n];if(r!=null){let[i,a,o]=r,s=i-tl[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]=ra[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return wr}getYearsInEra(t){let n=wr.indexOf(t.era),r=ra[n],i=ra[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(cc(t))}getMinimumMonthInYear(t){let n=ym(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ym(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ym(e){if(e.year===1){let t=wr.indexOf(e.era);return ra[t]}}const Dv=-543;class sR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=Jo(n.era,n.year);return new lt(this,r-Dv,n.month,n.day)}toJulianDay(t){return super.toJulianDay(xm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(xm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function xm(e){let[t,n]=wu(e.year+Dv);return new lt(t,n,e.month,e.day)}const Bl=1911;function Sv(e){return e.era==="minguo"?e.year+Bl:1-e.year+Bl}function Cm(e){let t=e-Bl;return t>0?["minguo",t]:["before_minguo",1-t]}class lR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=Jo(n.era,n.year),[i,a]=Cm(r);return new lt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(wm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Cm(Sv(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(wm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Bl}constructor(...t){super(...t),this.identifier="roc"}}function wm(e){let[t,n]=wu(Sv(e));return new lt(t,n,e.month,e.day)}const Dm=1948320,Sm=[0,31,62,93,124,155,186,216,246,276,306,336];class uR{fromJulianDay(t){let n=t-Dm,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-Sm[o]+1;return new lt(this,r,o+1,s)}toJulianDay(t){let n=Dm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Sm[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||na(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const dc=78,Em=80;class cR extends ln{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-dc,i=t-li(n.era,n.year,1,1),a;i<Em?(r--,a=Ir(n.year-1)?31:30,i+=a+155+90+10):(a=Ir(n.year)?31:30,i-=Em);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 lt(this,r,o,s)}toJulianDay(t){let n=t.year+dc,[r,i]=wu(n),a,o;return Ir(i)?(a=31,o=li(r,i,3,21)):(a=30,o=li(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&&Ir(t.year+dc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Vl=1948440,Im=1948439,gn=1300,Ni=1600,dR=460322;function Ol(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ev(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Ol(t,r,1,1)))/29.5)+1),a=n-Ol(t,r,i,1)+1;return new lt(e,r,i,a)}function _m(e){return(14+11*e)%30<11}class Zf{fromJulianDay(t){return Ev(this,Vl,t)}toJulianDay(t){return Ol(Vl,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&_m(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return _m(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class fR extends Zf{fromJulianDay(t){return Ev(this,Im,t)}toJulianDay(t){return Ol(Im,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const hR="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let fd,ia;function nl(e){return dR+ia[e-gn]}function Oa(e,t){let n=e-gn,r=1<<11-(t-1);return fd[n]&r?30:29}function $m(e,t){let n=nl(e);for(let r=1;r<t;r++)n+=Oa(e,r);return n}function Rm(e){return ia[e+1-gn]-ia[e-gn]}class gR extends Zf{fromJulianDay(t){let n=t-Vl,r=nl(gn),i=nl(Ni);if(n<r||n>i)return super.fromJulianDay(t);{let a=gn-1,o=1,s=1;for(;s>0;){a++,s=n-nl(a)+1;let l=Rm(a);if(s===l){o=12;break}else if(s<l){let u=Oa(a,o);for(o=1;s>u;)s-=u,o++,u=Oa(a,o);break}}return new lt(this,a,o,n-$m(a,o)+1)}}toJulianDay(t){return t.year<gn||t.year>Ni?super.toJulianDay(t):Vl+$m(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<gn||t.year>Ni?super.getDaysInMonth(t):Oa(t.year,t.month)}getDaysInYear(t){return t.year<gn||t.year>Ni?super.getDaysInYear(t):Rm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",fd||(fd=new Uint16Array(Uint8Array.from(atob(hR),t=>t.charCodeAt(0)).buffer)),!ia){ia=new Uint32Array(Ni-gn+1);let t=0;for(let n=gn;n<=Ni;n++){ia[n-gn]=t;for(let r=1;r<=12;r++)t+=Oa(n,r)}}}}const Am=347997,Iv=1080,_v=24*Iv,mR=29,pR=12*Iv+793,bR=mR*_v+pR;function ii(e){return na(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 na(3*(r+1),7)<3&&(r+=1),r}function vR(e){let t=rl(e-1),n=rl(e);return rl(e+1)-n===356?2:n-t===382?1:0}function Ka(e){return rl(e)+vR(e)}function $v(e){return Ka(e+1)-Ka(e)}function yR(e){let t=$v(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Cs(e,t){if(t>=6&&!ii(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yR(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ii(e)?30:0:30}class xR{fromJulianDay(t){let n=t-Am,r=n*_v/bR,i=Math.floor((19*r+234)/235)+1,a=Ka(i),o=Math.floor(n-a);for(;o<1;)i--,a=Ka(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Cs(i,s),s++;s--,l-=Cs(i,s);let u=o-l;return new lt(this,i,s,u)}toJulianDay(t){let n=Ka(t.year);for(let r=1;r<t.month;r++)n+=Cs(t.year,r);return n+t.day+Am}getDaysInMonth(t){return Cs(t.year,t.month)}getMonthsInYear(t){return ii(t.year)?13:12}getDaysInYear(t){return $v(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ii(n.year)&&!ii(t.year)&&n.month>6?t.month--:!ii(n.year)&&ii(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const hd=1723856,Fm=1824665,gd=5500;function Nl(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Xf(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Nl(e,n,1,1))/30),i=t+1-Nl(e,n,r,1);return[n,r,i]}function Rv(e){return Math.floor(e%4/3)}function Av(e,t){return t%13!==0?30:Rv(e)+5}class Yf{fromJulianDay(t){let[n,r,i]=Xf(hd,t),a="AM";return n<=0&&(a="AA",n+=gd),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=gd),Nl(hd,n,t.month,t.day)}getDaysInMonth(t){return Av(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Rv(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class CR extends Yf{fromJulianDay(t){let[n,r,i]=Xf(hd,t);return n+=gd,new lt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class wR extends Yf{fromJulianDay(t){let[n,r,i]=Xf(Fm,t),a="CE";return n<=0&&(a="BCE",n=1-n),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Nl(Fm,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Av(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 Qo(e){switch(e){case"buddhist":return new sR;case"ethiopic":return new Yf;case"ethioaa":return new CR;case"coptic":return new wR;case"hebrew":return new xR;case"indian":return new cR;case"islamic-civil":return new Zf;case"islamic-tbla":return new fR;case"islamic-umalqura":return new gR;case"japanese":return new oR;case"persian":return new uR;case"roc":return new lR;case"gregory":default:return new ln}}let fc=new Map;class Io{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 ER()&&(this.resolvedHourCycle||(this.resolvedHourCycle=IR(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=Fv(t,n),this.options=n}}const DR={true:{ja:"h11"},false:{}};function Fv(e,t={}){if(typeof t.hour12=="boolean"&&SR()){t={...t};let i=DR[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(fc.has(n))return fc.get(n);let r=new Intl.DateTimeFormat(e,t);return fc.set(n,r),r}let hc=null;function SR(){return hc==null&&(hc=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),hc}let gc=null;function ER(){return gc==null&&(gc=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),gc}function IR(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=Fv(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 $i=typeof document<"u"?x.useLayoutEffect:()=>{};function rr(e){const t=x.useRef(null);return $i(()=>{t.current=e},[e]),x.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function _R(e){let[t,n]=x.useState(e),r=x.useRef(null),i=rr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});$i(()=>{r.current&&i()});let a=rr(o=>{r.current=o(t),i()});return[t,a]}const Ll={prefix:String(Math.round(Math.random()*1e10)),current:0},Pv=x.createContext(Ll),$R=x.createContext(!1);let RR=!!(typeof window<"u"&&window.document&&window.document.createElement),mc=new WeakMap;function AR(e=!1){let t=x.useContext(Pv),n=x.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=x.__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=mc.get(a);o==null?mc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,mc.delete(a))}n.current=++t.current}return n.current}function FR(e){let t=x.useContext(Pv);t===Ll&&!RR&&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=AR(!!e),r=t===Ll&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function PR(e){let t=x.useId(),[n]=x.useState(Tv()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ll.prefix}`;return e||`${r}-${t}`}const TR=typeof x.useId=="function"?PR:FR;function MR(){return!1}function kR(){return!0}function BR(e){return()=>{}}function Tv(){return typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore(BR,MR,kR):x.useContext($R)}let VR=!!(typeof window<"u"&&window.document&&window.document.createElement),jl=new Map;function ga(e){let[t,n]=x.useState(e),r=x.useRef(null),i=TR(t),a=x.useCallback(o=>{r.current=o},[]);return VR&&jl.set(i,a),$i(()=>{let o=i;return()=>{jl.delete(o)}},[i]),x.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function OR(e,t){if(e===t)return e;let n=jl.get(e);if(n)return n(t),t;let r=jl.get(t);return r?(r(e),e):t}function md(e=[]){let t=ga(),[n,r]=_R(t),i=x.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return $i(i,[t,i,...e]),n}function Mv(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $t=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Dn=e=>e&&"window"in e&&e.window===e?e:$t(e).defaultView||window;function Yt(...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]=Mv(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=ar(a,o):i==="id"&&a&&o?t.id=OR(a,o):t[i]=o!==void 0?o:a}}return t}const NR=new Set(["id"]),LR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),HR=/^(data-.*)$/;function Uf(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(NR.has(o)||n&&LR.has(o)||r&&jR.has(o)||i!=null&&i.has(o)||HR.test(o))&&(a[o]=e[o]);return a}function _r(e){if(WR())e.focus({preventScroll:!0});else{let t=zR(e);e.focus(),GR(t)}}let ws=null;function WR(){if(ws==null){ws=!1;try{document.createElement("div").focus({get preventScroll(){return ws=!0,!0}})}catch{}}return ws}function zR(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 GR(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Eu(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 Jf(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 _o(){return Jf(/^Mac/i)}function ZR(){return Jf(/^iPhone/i)}function kv(){return Jf(/^iPad/i)||_o()&&navigator.maxTouchPoints>1}function Bv(){return ZR()||kv()}function XR(){return Eu(/AppleWebKit/i)&&!YR()}function YR(){return Eu(/Chrome/i)}function Vv(){return Eu(/Android/i)}function UR(){return Eu(/Firefox/i)}function $o(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;UR()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(_o()?a=!0:o=!0);let u=XR()&&_o()&&!kv()?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});$o.isOpening=n,_r(e),e.dispatchEvent(u),$o.isOpening=!1}$o.isOpening=!1;let Xi=new Map,pd=new Set;function Pm(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Xi.get(r.target);i||(i=new Set,Xi.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=Xi.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Xi.delete(r.target)),Xi.size===0)){for(let a of pd)a();pd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pm():document.addEventListener("DOMContentLoaded",Pm));function Ov(e){requestAnimationFrame(()=>{Xi.size===0?e():pd.add(e)})}function JR(){let e=x.useRef(new Map),t=x.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=x.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=x.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return x.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Kf(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=ga(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 Tm(e,t){const n=x.useRef(!0),r=x.useRef(null);x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),x.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Nv(e,t){$i(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function bd(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 KR(e,t){let n=e;for(bd(n,t)&&(n=n.parentElement);n&&!bd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function qR(e,t){const n=[];for(;e&&e!==document.documentElement;)bd(e,t)&&n.push(e),e=e.parentElement;return n}let QR=0;const pc=new Map;function Lv(e){let[t,n]=x.useState();return $i(()=>{if(!e)return;let r=pc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${QR++}`;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},pc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),pc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bc(e,t,n,r){let i=rr(n),a=n==null;x.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 e7(e,t){let n=Mm(e,t,"left"),r=Mm(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),f=c+e.clientWidth,h=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>f&&(o+=n+i-f),r<=d?s=r-parseInt(l,10):r+a>h&&(s+=r+a-h),e.scrollLeft=o,e.scrollTop=s}function Mm(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 t7(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=qR(e);for(let u of l)e7(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 vd(e){return e.mozInputSource===0&&e.isTrusted?!0:Vv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function n7(e){return!Vv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function jv(e,t){let n=x.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Ro(e,t,n){let[r,i]=x.useState(e||t),a=x.useRef(e!==void 0),o=e!==void 0;x.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=x.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(s,f)||n(f,...h)),o||(s=f)};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((h,...g)=>{let m=u(o?s:h,...g);return d(m,...c),o?h:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let Ui="default",yd="",il=new WeakMap;function km(e){if(Bv()){if(Ui==="default"){const t=$t(e);yd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ui="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(il.set(e,e.style.userSelect),e.style.userSelect="none")}function Ds(e){if(Bv()){if(Ui!=="disabled")return;Ui="restoring",setTimeout(()=>{Ov(()=>{if(Ui==="restoring"){const t=$t(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=yd||""),yd="",Ui="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&il.has(e)){let t=il.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),il.delete(e)}}const Hv=x.createContext({register:()=>{}});Hv.displayName="PressResponderContext";function r7(e,t){return t.get?t.get.call(e):t.value}function Wv(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function i7(e,t){var n=Wv(e,t,"get");return r7(e,n)}function a7(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 Bm(e,t,n){var r=Wv(e,t,"set");return a7(e,r,n),n}function o7(e){let t=x.useContext(Hv);if(t){let{register:n,...r}=t;e=Yt(r,e),n()}return Nv(t,e.ref),e}var Ss=new WeakMap;class Es{continuePropagation(){Bm(this,Ss,!1)}get shouldStopPropagation(){return i7(this,Ss)}constructor(t,n,r){qo(this,Ss,{writable:!0,value:void 0}),Bm(this,Ss,!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 Vm=Symbol("linkClicked");function qf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=o7(e),[h,g]=x.useState(!1),m=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:p,removeAllGlobalListeners:b}=JR(),v=rr((w,$)=>{let R=m.current;if(o||R.didFirePressStart)return!1;let _=!0;if(R.isTriggeringEvent=!0,r){let P=new Es("pressstart",$,w);r(P),_=P.shouldStopPropagation}return n&&n(!0),R.isTriggeringEvent=!1,R.didFirePressStart=!0,g(!0),_}),y=rr((w,$,R=!0)=>{let _=m.current;if(!_.didFirePressStart)return!1;_.ignoreClickAfterPress=!0,_.didFirePressStart=!1,_.isTriggeringEvent=!0;let P=!0;if(i){let M=new Es("pressend",$,w);i(M),P=M.shouldStopPropagation}if(n&&n(!1),g(!1),t&&R&&!o){let M=new Es("press",$,w);t(M),P&&(P=M.shouldStopPropagation)}return _.isTriggeringEvent=!1,P}),D=rr((w,$)=>{let R=m.current;if(o)return!1;if(a){R.isTriggeringEvent=!0;let _=new Es("pressup",$,w);return a(_),R.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}),C=rr(w=>{let $=m.current;$.isPressed&&$.target&&($.isOverTarget&&$.pointerType!=null&&y(Xn($.target,w),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,b(),c||Ds($.target))}),E=rr(w=>{u&&C(w)}),I=x.useMemo(()=>{let w=m.current,$={onKeyDown(_){if(vc(_.nativeEvent,_.currentTarget)&&_.currentTarget.contains(_.target)){var P;Nm(_.target,_.key)&&_.preventDefault();let M=!0;if(!w.isPressed&&!_.repeat){w.target=_.currentTarget,w.isPressed=!0,M=v(_,"keyboard");let A=_.currentTarget,B=T=>{vc(T,A)&&!T.repeat&&A.contains(T.target)&&w.target&&D(Xn(w.target,T),"keyboard")};p($t(_.currentTarget),"keyup",Mv(B,R),!0)}M&&_.stopPropagation(),_.metaKey&&_o()&&((P=w.metaKeyEvents)===null||P===void 0||P.set(_.key,_.nativeEvent))}else _.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(_){if(!(_&&!_.currentTarget.contains(_.target))&&_&&_.button===0&&!w.isTriggeringEvent&&!$o.isOpening){let P=!0;if(o&&_.preventDefault(),!w.ignoreClickAfterPress&&!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||vd(_.nativeEvent))){!o&&!l&&_r(_.currentTarget);let M=v(_,"virtual"),A=D(_,"virtual"),B=y(_,"virtual");P=M&&A&&B}w.ignoreEmulatedMouseEvents=!1,w.ignoreClickAfterPress=!1,P&&_.stopPropagation()}}},R=_=>{var P;if(w.isPressed&&w.target&&vc(_,w.target)){var M;Nm(_.target,_.key)&&_.preventDefault();let B=_.target;y(Xn(w.target,_),"keyboard",w.target.contains(B)),b(),_.key!=="Enter"&&Qf(w.target)&&w.target.contains(B)&&!_[Vm]&&(_[Vm]=!0,$o(w.target,_,!1)),w.isPressed=!1,(M=w.metaKeyEvents)===null||M===void 0||M.delete(_.key)}else if(_.key==="Meta"&&(!((P=w.metaKeyEvents)===null||P===void 0)&&P.size)){var A;let B=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let T of B.values())(A=w.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){$.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(n7(A.nativeEvent)){w.pointerType="virtual";return}yc(A.currentTarget)&&A.preventDefault(),w.pointerType=A.pointerType;let B=!0;w.isPressed||(w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=A.pointerId,w.target=A.currentTarget,!o&&!l&&_r(A.currentTarget),c||km(w.target),B=v(A,w.pointerType),p($t(A.currentTarget),"pointermove",_,!1),p($t(A.currentTarget),"pointerup",P,!1),p($t(A.currentTarget),"pointercancel",M,!1)),B&&A.stopPropagation()},$.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(yc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},$.onPointerUp=A=>{!A.currentTarget.contains(A.target)||w.pointerType==="virtual"||A.button===0&&Li(A,A.currentTarget)&&D(A,w.pointerType||A.pointerType)};let _=A=>{A.pointerId===w.activePointerId&&(w.target&&Li(A,w.target)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,v(Xn(w.target,A),w.pointerType)):w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,y(Xn(w.target,A),w.pointerType,!1),E(A)))},P=A=>{A.pointerId===w.activePointerId&&w.isPressed&&A.button===0&&w.target&&(Li(A,w.target)&&w.pointerType!=null?y(Xn(w.target,A),w.pointerType):w.isOverTarget&&w.pointerType!=null&&y(Xn(w.target,A),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,b(),c||Ds(w.target))},M=A=>{C(A)};$.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}else{$.onMouseDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(yc(M.currentTarget)&&M.preventDefault(),w.ignoreEmulatedMouseEvents){M.stopPropagation();return}w.isPressed=!0,w.isOverTarget=!0,w.target=M.currentTarget,w.pointerType=vd(M.nativeEvent)?"virtual":"mouse",!o&&!l&&_r(M.currentTarget),v(M,w.pointerType)&&M.stopPropagation(),p($t(M.currentTarget),"mouseup",_,!1)},$.onMouseEnter=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,A=v(M,w.pointerType)),A&&M.stopPropagation()},$.onMouseLeave=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,A=y(M,w.pointerType,!1),E(M)),A&&M.stopPropagation()},$.onMouseUp=M=>{M.currentTarget.contains(M.target)&&!w.ignoreEmulatedMouseEvents&&M.button===0&&D(M,w.pointerType||"mouse")};let _=M=>{if(M.button===0){if(w.isPressed=!1,b(),w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&Li(M,w.target)&&w.pointerType!=null?y(Xn(w.target,M),w.pointerType):w.target&&w.isOverTarget&&w.pointerType!=null&&y(Xn(w.target,M),w.pointerType,!1),w.isOverTarget=!1}};$.onTouchStart=M=>{if(!M.currentTarget.contains(M.target))return;let A=s7(M.nativeEvent);if(!A)return;w.activePointerId=A.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=M.currentTarget,w.pointerType="touch",!o&&!l&&_r(M.currentTarget),c||km(w.target),v(M,w.pointerType)&&M.stopPropagation(),p(Dn(M.currentTarget),"scroll",P,!0)},$.onTouchMove=M=>{if(!M.currentTarget.contains(M.target))return;if(!w.isPressed){M.stopPropagation();return}let A=Om(M.nativeEvent,w.activePointerId),B=!0;A&&Li(A,M.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,B=v(M,w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,B=y(M,w.pointerType,!1),E(M)),B&&M.stopPropagation()},$.onTouchEnd=M=>{if(!M.currentTarget.contains(M.target))return;if(!w.isPressed){M.stopPropagation();return}let A=Om(M.nativeEvent,w.activePointerId),B=!0;A&&Li(A,M.currentTarget)&&w.pointerType!=null?(D(M,w.pointerType),B=y(M,w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(B=y(M,w.pointerType,!1)),B&&M.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!c&&Ds(w.target),b()},$.onTouchCancel=M=>{M.currentTarget.contains(M.target)&&(M.stopPropagation(),w.isPressed&&C(M))};let P=M=>{w.isPressed&&M.target.contains(w.target)&&C({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$.onDragStart=M=>{M.currentTarget.contains(M.target)&&C(M)}}return $},[p,o,l,b,c,C,E,y,v,D]);return x.useEffect(()=>()=>{var w;c||Ds((w=m.current.target)!==null&&w!==void 0?w:void 0)},[c]),{isPressed:s||h,pressProps:Yt(f,I)}}function Qf(e){return e.tagName==="A"&&e.hasAttribute("href")}function vc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Dn(i).HTMLInputElement&&!zv(i,n)||i instanceof Dn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Qf(i))&&n!=="Enter")}function s7(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Om(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 Xn(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function l7(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 u7(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Li(e,t){let n=t.getBoundingClientRect(),r=l7(e);return u7(n,r)}function yc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Nm(e,t){return e instanceof HTMLInputElement?!zv(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Qf(e)}const c7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function zv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":c7.has(e.type)}class d7{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 Gv(e){let t=x.useRef({isFocused:!1,observer:null});$i(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=rr(r=>{e==null||e(r)});return x.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 d7("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 Zv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=x.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Gv(a),s=x.useCallback(l=>{const u=$t(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 wa=null,xd=new Set,qa=new Map,Ci=!1,Cd=!1;const f7={Tab:!0,Escape:!0};function eh(e,t){for(let n of xd)n(e,t)}function h7(e){return!(e.metaKey||!_o()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hl(e){Ci=!0,h7(e)&&(wa="keyboard",eh("keyboard",e))}function mn(e){wa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ci=!0,eh("pointer",e))}function Xv(e){vd(e)&&(Ci=!0,wa="virtual")}function Yv(e){e.target===window||e.target===document||(!Ci&&!Cd&&(wa="virtual",eh("virtual",e)),Ci=!1,Cd=!1)}function Uv(){Ci=!1,Cd=!0}function wd(e){if(typeof window>"u"||qa.get(Dn(e)))return;const t=Dn(e),n=$t(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ci=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hl,!0),n.addEventListener("keyup",Hl,!0),n.addEventListener("click",Xv,!0),t.addEventListener("focus",Yv,!0),t.addEventListener("blur",Uv,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",mn,!0),n.addEventListener("pointermove",mn,!0),n.addEventListener("pointerup",mn,!0)):(n.addEventListener("mousedown",mn,!0),n.addEventListener("mousemove",mn,!0),n.addEventListener("mouseup",mn,!0)),t.addEventListener("beforeunload",()=>{Jv(e)},{once:!0}),qa.set(t,{focus:r})}const Jv=(e,t)=>{const n=Dn(e),r=$t(e);t&&r.removeEventListener("DOMContentLoaded",t),qa.has(n)&&(n.HTMLElement.prototype.focus=qa.get(n).focus,r.removeEventListener("keydown",Hl,!0),r.removeEventListener("keyup",Hl,!0),r.removeEventListener("click",Xv,!0),n.removeEventListener("focus",Yv,!0),n.removeEventListener("blur",Uv,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",mn,!0),r.removeEventListener("pointermove",mn,!0),r.removeEventListener("pointerup",mn,!0)):(r.removeEventListener("mousedown",mn,!0),r.removeEventListener("mousemove",mn,!0),r.removeEventListener("mouseup",mn,!0)),qa.delete(n))};function g7(e){const t=$t(e);let n;return t.readyState!=="loading"?wd(e):(n=()=>{wd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Jv(e,n)}typeof document<"u"&&g7();function Kv(){return wa!=="pointer"}function qv(){return wa}const m7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function p7(e,t,n){var r;const i=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Dn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Dn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!m7.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&&!f7[n.key])}function b7(e,t,n){wd(),x.useEffect(()=>{let r=(i,a)=>{p7(!!(n!=null&&n.isTextInput),i,a)&&e(Kv())};return xd.add(r),()=>{xd.delete(r)}},t)}function Qv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=x.useRef({isFocusWithin:!1}),o=x.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=Gv(o),l=x.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 Lm(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:Lm(e.onKeyDown),onKeyUp:Lm(e.onKeyUp)}}}function ey(e){const t=$t(e);if(qv()==="virtual"){let n=t.activeElement;Ov(()=>{t.activeElement===n&&e.isConnected&&_r(e)})}else _r(e)}function y7(e){const t=Dn(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 x7(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 ty(e,t){return e.nodeName!=="#comment"&&y7(e)&&x7(e,t)&&(!e.parentElement||ty(e.parentElement,e))}const th=["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]"],C7=th.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";th.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const w7=th.join(':not([hidden]):not([tabindex="-1"]),');function ny(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ra(e,t=!1){if(e!=null&&!t)try{ey(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Na(e,t,n){let r=t!=null&&t.tabbable?w7:C7,i=$t(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)&&ty(a)&&(!n||ny(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 ry(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||$t(r).activeElement,u=Na(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&&Ra(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||$t(r).activeElement,u=Na(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=xc(u);return d&&Ra(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=xc(u);if(!d)return null;c=d}return c&&Ra(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=Na(r,{tabbable:i,accept:a}).nextNode();return s&&Ra(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=Na(r,{tabbable:i,accept:a}),s=xc(o);return s&&Ra(s,!0),s??null}}}function xc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class nh{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 jm({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&&ny(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 nh;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 jm({scopeRef:null}),this.fastMap.set(null,this.root)}}class jm{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 nh;function iy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=x.useRef({isFocused:!1,isFocusVisible:t||Kv()}),[a,o]=x.useState(!1),[s,l]=x.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=x.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=x.useCallback(h=>{i.current.isFocused=h,o(h),u()},[u]);b7(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=Zv({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Qv({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}let D7=x.createContext(null);function S7(e){let t=x.useContext(D7)||{};Nv(t,e);let{ref:n,...r}=t;return r}function E7(e,t){let{focusProps:n}=Zv(e),{keyboardProps:r}=v7(e),i=Yt(n,r),a=S7(t),o=e.isDisabled?{}:a,s=x.useRef(e.autoFocus);return x.useEffect(()=>{s.current&&t.current&&ey(t.current),s.current=!1},[t]),{focusableProps:Yt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const I7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ay(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 I7.has(n.script)}let t=e.split("-")[0];return _7.has(t)}const $7=Symbol.for("react-aria.i18n.locale");function oy(){let e=typeof window<"u"&&window[$7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ay(e)?"rtl":"ltr"}}let Dd=oy(),La=new Set;function Hm(){Dd=oy();for(let e of La)e(Dd)}function sy(){let e=Tv(),[t,n]=x.useState(Dd);return x.useEffect(()=>(La.size===0&&window.addEventListener("languagechange",Hm),La.add(n),()=>{La.delete(n),La.size===0&&window.removeEventListener("languagechange",Hm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ly=x.createContext(null);function rh(e){let{locale:t,children:n}=e,r=sy(),i=x.useMemo(()=>t?{locale:t,direction:ay(t)?"rtl":"ltr"}:r,[r,t]);return x.createElement(ly.Provider,{value:i},n)}function Rn(){let e=sy();return x.useContext(ly)||e}const R7=Symbol.for("react-aria.i18n.locale"),A7=Symbol.for("react-aria.i18n.strings");let ji;class Ri{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=F7(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[R7];if(ji===void 0){let i=window[A7];if(!i)return null;ji={};for(let a in i)ji[a]=new Ri({[n]:i[a]},n)}let r=ji==null?void 0:ji[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 F7(e,t,n="en-US"){if(t[e])return t[e];let r=P7(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function P7(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Wm=new Map,zm=new Map;class uy{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=Wm.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Wm.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=zm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zm.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 Gm=new WeakMap;function T7(e){let t=Gm.get(e);return t||(t=new Ri(e),Gm.set(e,t)),t}function M7(e,t){return t&&Ri.getGlobalDictionaryForPackage(t)||T7(e)}function es(e,t){let{locale:n}=Rn(),r=M7(e,t);return x.useMemo(()=>new uy(n,r),[n,r])}function Br(e){e=jv(e??{},k7);let{locale:t}=Rn();return x.useMemo(()=>new Io(t,e),[t,e])}function k7(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 B7(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:f,target:h,rel:g,type:m="button"}=e,p;n==="button"?p={type:m,disabled:r}:p={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h: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:b,isPressed:v}=qf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:y}=E7(e,t);c&&(y.tabIndex=r?-1:y.tabIndex);let D=Yt(y,b,Uf(e,{labelable:!0}));return{isPressed:v,buttonProps:Yt(p,D,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:C=>{d&&(d(C),console.warn("onClick is deprecated, please use onPress"))}})}}var cy={};cy={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 dy={};dy={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 fy={};fy={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 hy={};hy={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 gy={};gy={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 my={};my={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 py={};py={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 by={};by={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 vy={};vy={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 yy={};yy={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 xy={};xy={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 Cy={};Cy={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 wy={};wy={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 Dy={};Dy={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 Sy={};Sy={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 Ey={};Ey={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 Iy={};Iy={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 _y={};_y={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 $y={};$y={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 Ry={};Ry={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 Ay={};Ay={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 Fy={};Fy={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 Py={};Py={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 Ty={};Ty={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 My={};My={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 ky={};ky={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 By={};By={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 Vy={};Vy={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 Oy={};Oy={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 Ny={};Ny={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 Ly={};Ly={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 jy={};jy={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 Hy={};Hy={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 Wy={};Wy={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 ts={};ts={"ar-AE":cy,"bg-BG":dy,"cs-CZ":fy,"da-DK":hy,"de-DE":gy,"el-GR":my,"en-US":py,"es-ES":by,"et-EE":vy,"fi-FI":yy,"fr-FR":xy,"he-IL":Cy,"hr-HR":wy,"hu-HU":Dy,"it-IT":Sy,"ja-JP":Ey,"ko-KR":Iy,"lt-LT":_y,"lv-LV":$y,"nb-NO":Ry,"nl-NL":Ay,"pl-PL":Fy,"pt-BR":Py,"pt-PT":Ty,"ro-RO":My,"ru-RU":ky,"sk-SK":By,"sl-SI":Vy,"sr-SP":Oy,"sv-SE":Ny,"tr-TR":Ly,"uk-UA":jy,"zh-CN":Hy,"zh-TW":Wy};function zy(e){return e&&e.__esModule?e.default:e}const ih=new WeakMap;function Ao(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function V7(e){let t=es(zy(ts),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Br({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ao(n)||Ao(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return x.useMemo(()=>{if(!a&&n&&r)if(ht(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Ed(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function Sd(e,t,n,r){let i=es(zy(ts),"@react-aria/calendar"),a=Ao(e)||Ao(t),o=Br({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Br({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return x.useMemo(()=>{if(ht(e,Ko(e))){if(ht(t,ld(e)))return o.format(e.toDate(n));if(ht(t,ld(t)))return r?Ed(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Ed(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function Ed(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 Gy=7e3;let Cc=null;function Zm(e,t="assertive",n=Gy){Cc||(Cc=new O7),Cc.announce(e,t,n)}class O7{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=Gy){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 N7(e){return e&&e.__esModule?e.default:e}function Zy(e,t){let n=es(N7(ts),"@react-aria/calendar"),r=Uf(e),i=Sd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Sd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tm(()=>{t.isFocused||Zm(a)},[a]);let o=V7(t);Tm(()=>{o&&Zm(o,"polite",4e3)},[o]);let s=md([!!e.errorMessage,e.isInvalid,e.validationState]);ih.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=x.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,f]=x.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&d&&(f(!1),t.setFocused(!0));let g=Kf({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Yt(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:h,onFocusChange:f},errorMessageProps:{id:s},title:i}}function Xy(e,t){return Zy(e,t)}function L7(e,t,n){let r=Zy(e,t),i=x.useRef(!1),a=x.useRef(typeof window<"u"?window:null);return bc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),bc(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()},bc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Yy(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Rn(),a=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},o=Sd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=ih.get(t),u=Kf({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Br({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Rn(),f=x.useMemo(()=>{let h=Do(Bf(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let p=h.add({days:g}).toDate(t.timeZone);return c.format(p)})},[d,t.timeZone,c]);return{gridProps:Yt(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:f}}function j7(e){return e&&e.__esModule?e.default:e}function H7(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=ih.get(t),s=es(j7(ts),"@react-aria/calendar"),l=Br({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ao(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),f=!i&&!d,h=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ht(t.value,r));h&&(u=!0),r=jv(r,sd);let g=x.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=M9(r,t.timeZone),p=x.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ht(r,t.value.start)||ht(r,t.value.end))&&(_=o+", "),_+=l.format(g),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&ht(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&ht(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,g,s,u,m,r,t,o]),b="";"anchorDate"in t&&c&&!t.isReadOnly&&f&&(t.anchorDate?b=s.format("finishRangeSelectionPrompt"):b=s.format("startRangeSelectionPrompt"));let v=Lv(b),y=x.useRef(!1),D=x.useRef(!1),C=x.useRef(null),{pressProps:E,isPressed:I}=qf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!h){if(ht(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),D.current=!0;return}else if(ht(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),D.current=!0;return}}let P=()=>{t.setDragging(!0),C.current=null,t.selectDate(r),t.setFocusedDate(r),y.current=!0};_.pointerType==="touch"?C.current=setTimeout(P,200):P()}},onPressEnd(){D.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(D.current)t.setAnchorDate(r);else if(t.anchorDate&&!y.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let P=r.add({days:1});t.isInvalid(P)&&(P=r.subtract({days:1})),t.isInvalid(P)||t.setFocusedDate(P)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),w=null;i||(w=ht(r,t.focusedDate)?0:-1),x.useEffect(()=>{c&&n.current&&(_r(n.current),qv()!=="pointer"&&document.activeElement===n.current&&t7(n.current,{containingElement:KR(n.current)}))},[c,n]);let $=Br({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),R=x.useMemo(()=>$.formatToParts(g).find(_=>_.type==="day").value,[$,g]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":u||null,"aria-invalid":h||null},buttonProps:Yt(E,{onFocus(){i||t.setFocusedDate(r)},tabIndex:w,role:"button","aria-disabled":!f||null,"aria-label":p,"aria-invalid":h||null,"aria-describedby":[h?a:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:I,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:R}}const Iu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Uy={...Iu,customError:!0,valid:!1},ai={isInvalid:!1,validationDetails:Iu,validationErrors:[]},W7=x.createContext({}),Wl="__formValidationState"+Date.now();function z7(e){if(e[Wl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Wl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return G7(e)}function G7(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:Uy}:null,u=x.useMemo(()=>Xm(Z7(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=x.useContext(W7),d=x.useMemo(()=>r?Array.isArray(r)?r.flatMap(R=>Id(c[R])):Id(c[r]):[],[c,r]),[f,h]=x.useState(c),[g,m]=x.useState(!1);c!==f&&(h(c),m(!1));let p=x.useMemo(()=>Xm(g?[]:d),[g,d]),b=x.useRef(ai),[v,y]=x.useState(ai),D=x.useRef(ai),C=()=>{if(!E)return;I(!1);let R=u||a||b.current;wc(R,D.current)||(D.current=R,y(R))},[E,I]=x.useState(!1);return x.useEffect(C),{realtimeValidation:l||p||u||a||ai,displayValidation:s==="native"?l||p||v:l||p||u||a||v,updateValidation(R){s==="aria"&&!wc(v,R)?y(R):b.current=R},resetValidation(){let R=ai;wc(R,D.current)||(D.current=R,y(R)),s==="native"&&I(!1),m(!0)},commitValidation(){s==="native"&&I(!0),m(!0)}}}function Id(e){return e?Array.isArray(e)?e:[e]:[]}function Z7(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Id(n)}return[]}function Xm(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Uy}:null}function wc(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 zl(...e){let t=new Set,n=!1,r={...Iu};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 X7(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=ga(t);let o=ga(),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=Kf({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Y7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=X7(e),s=md([!!t,!!n,r,i]),l=md([!!t,!!n,r,i]);return o=Yt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Jy={};Jy={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 Ky={};Ky={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 qy={};qy={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 Qy={};Qy={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 ex={};ex={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 tx={};tx={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 nx={};nx={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 rx={};rx={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 ix={};ix={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 ax={};ax={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 ox={};ox={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 sx={};sx={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 lx={};lx={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 ux={};ux={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 cx={};cx={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 dx={};dx={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 fx={};fx={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 hx={};hx={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 gx={};gx={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 mx={};mx={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 px={};px={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 bx={};bx={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 vx={};vx={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 yx={};yx={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 xx={};xx={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 Cx={};Cx={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 wx={};wx={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 Dx={};Dx={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 Sx={};Sx={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 Ex={};Ex={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 Ix={};Ix={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 _x={};_x={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 $x={};$x={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 Rx={};Rx={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 Ax={};Ax={"ar-AE":Jy,"bg-BG":Ky,"cs-CZ":qy,"da-DK":Qy,"de-DE":ex,"el-GR":tx,"en-US":nx,"es-ES":rx,"et-EE":ix,"fi-FI":ax,"fr-FR":ox,"he-IL":sx,"hr-HR":lx,"hu-HU":ux,"it-IT":cx,"ja-JP":dx,"ko-KR":fx,"lt-LT":hx,"lv-LV":gx,"nb-NO":mx,"nl-NL":px,"pl-PL":bx,"pt-BR":vx,"pt-PT":yx,"ro-RO":xx,"ru-RU":Cx,"sk-SK":wx,"sl-SI":Dx,"sr-SP":Sx,"sv-SE":Ex,"tr-TR":Ix,"uk-UA":_x,"zh-CN":$x,"zh-TW":Rx};function U7(e,t,n){let{direction:r}=Rn(),i=x.useMemo(()=>ry(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=Na(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}=qf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Yt(s,{onKeyDown:a})}const J7="__role_"+Date.now(),K7="__focusManager_"+Date.now();function q7(e){return e&&e.__esModule?e.default:e}function Q7(e,t,n){var r,i;let a=es(q7(Ax),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=Y7({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),h=c["aria-labelledby"]||c.id,{locale:g}=Rn(),m=t.formatValue(g,{month:"long"}),p=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",b=Lv(p),v={"aria-label":a.format("startDate"),"aria-labelledby":h},y={"aria-label":a.format("endDate"),"aria-labelledby":h},D=ga(),C=ga(),E=U7(t,n),I=[b["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=x.useMemo(()=>ry(n,{accept:A=>A.id!==D}),[n,D]),$={[K7]:w,[J7]:"presentation","aria-describedby":I,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},R=Uf(e),{focusWithinProps:_}=Qv({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),P=x.useRef(ai),M=x.useRef(ai);return{groupProps:Yt(R,E,c,b,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":I,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{w.focusFirst()}},buttonProps:{...b,id:D,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${D} ${h}`,"aria-describedby":I,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:C,"aria-labelledby":`${D} ${h}`},startFieldProps:{...v,...$,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(zl(A,M.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,...$,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){M.current=A,t.updateValidation(zl(P.current,A))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:f,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 aa(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function _d(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=ui(e,t,n).subtract(a);return Fo(e,o,t,n,r,i)}function ui(e,t,n,r,i){let a=e;return t.years?a=B9(e):t.months?a=Ko(e):t.weeks&&(a=Do(e,n)),Fo(e,a,t,n,r,i)}function $d(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=ui(e,t,n).subtract(a);return Fo(e,o,t,n,r,i)}function Fo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Of(t,ui(sn(i),n,r))),a&&e.compare(a)<=0&&(t=Vf(t,$d(sn(a),n,r))),t}function Cr(e,t,n){return t&&(e=Of(e,sn(t))),n&&(e=Vf(e,sn(n))),e}function Fx(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 Px(e){let t=x.useMemo(()=>new Io(e.locale),[e.locale]),n=x.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=x.useMemo(()=>i(n.calendar),[i,n.calendar]),[f,h]=Ro(e.value,e.defaultValue,e.onChange),g=x.useMemo(()=>f?bt(sn(f),d):null,[f,d]),m=x.useMemo(()=>f&&"timeZone"in f?f.timeZone:n.timeZone,[f,n.timeZone]),p=x.useMemo(()=>e.focusedValue?Cr(bt(sn(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),b=x.useMemo(()=>Cr(e.defaultFocusedValue?bt(sn(e.defaultFocusedValue),d):g||bt(Bf(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[v,y]=Ro(p,b,e.onFocusChange),[D,C]=x.useState(()=>{switch(l){case"start":return ui(v,a,r,o,s);case"end":return $d(v,a,r,o,s);case"center":default:return _d(v,a,r,o,s)}}),[E,I]=x.useState(e.autoFocus||!1),w=x.useMemo(()=>{let F={...a};return F.days?F.days--:F.days=-1,D.add(F)},[D,a]),[$,R]=x.useState(d.identifier);if(d.identifier!==$){let F=bt(v,d);C(_d(F,a,r,o,s)),y(F),R(d.identifier)}aa(v,o,s)?y(Cr(v,o,s)):v.compare(D)<0?C($d(v,a,r,o,s)):v.compare(w)>0&&C(ui(v,a,r,o,s));function _(F){F=Cr(F,o,s),y(F)}function P(F){if(!e.isDisabled&&!e.isReadOnly){if(F===null){h(null);return}if(F=Cr(F,o,s),F=Fx(F,D,u),!F)return;F=bt(F,(f==null?void 0:f.calendar)||new ln),f&&"hour"in f?h(f.set(F)):h(F)}}let M=x.useMemo(()=>g?u&&u(g)?!0:aa(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||M,B=A?"invalid":null,T=x.useMemo(()=>c==="visible"?a:Dc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:P,visibleRange:{start:D,end:w},minValue:o,maxValue:s,focusedDate:v,timeZone:m,validationState:B,isValueInvalid:A,setFocusedDate(F){_(F),I(!0)},focusNextDay(){_(v.add({days:1}))},focusPreviousDay(){_(v.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&_(v.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&_(v.subtract({weeks:1}))},focusNextPage(){let F=D.add(T);y(Cr(v.add(T),o,s)),C(ui(Fo(v,F,T,r,o,s),T,r))},focusPreviousPage(){let F=D.subtract(T);y(Cr(v.subtract(T),o,s)),C(ui(Fo(v,F,T,r,o,s),T,r))},focusSectionStart(){a.days?_(D):a.weeks?_(Do(v,r)):(a.months||a.years)&&_(Ko(v))},focusSectionEnd(){a.days?_(w):a.weeks?_(V9(v,r)):(a.months||a.years)&&_(ld(v))},focusNextSection(F){if(!F&&!a.days){_(v.add(Dc(a)));return}a.days?this.focusNextPage():a.weeks?_(v.add({months:1})):(a.months||a.years)&&_(v.add({years:1}))},focusPreviousSection(F){if(!F&&!a.days){_(v.subtract(Dc(a)));return}a.days?this.focusPreviousPage():a.weeks?_(v.subtract({months:1})):(a.months||a.years)&&_(v.subtract({years:1}))},selectFocusedDate(){P(v)},selectDate(F){P(F)},isFocused:E,setFocused:I,isInvalid(F){return aa(F,o,s)},isSelected(F){return g!=null&&ht(F,g)&&!this.isCellDisabled(F)&&!this.isCellUnavailable(F)},isCellFocused(F){return E&&v&&ht(F,v)},isCellDisabled(F){return e.isDisabled||F.compare(D)<0||F.compare(w)>0||this.isInvalid(F,o,s)},isCellUnavailable(F){return e.isDateUnavailable&&e.isDateUnavailable(F)},isPreviousVisibleRangeInvalid(){let F=D.subtract({days:1});return ht(F,D)||this.isInvalid(F,o,s)},isNextVisibleRangeInvalid(){let F=w.add({days:1});return ht(F,w)||this.isInvalid(F,o,s)},getDatesInWeek(F,V=D){let j=V.add({weeks:F}),N=[];j=Do(j,r);let Z=Du(j,r);for(let z=0;z<Z;z++)N.push(null);for(;N.length<7;){N.push(j);let z=j.add({days:1});if(ht(j,z))break;j=z}for(;N.length<7;)N.push(null);return N}}}function Dc(e){let t={...e};for(let n in e)t[n]=1;return t}function eA(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Ro(t,n||null,r),[f,h]=x.useState(null),g="center";if(c&&c.start&&c.end){let V=_d(sn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(V)>0&&(g="start")}let m=x.useRef(null),[p,b]=x.useState(null),v=x.useMemo(()=>Of(s,p==null?void 0:p.start),[s,p]),y=x.useMemo(()=>Vf(l,p==null?void 0:p.end),[l,p]),D=Px({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:y,selectionAlignment:g}),C=F=>{F&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Um(F,D,-1),end:Um(F,D,1)},b(m.current)):(m.current=null,b(null))},[E,I]=x.useState(D.visibleRange);(!sd(D.visibleRange.start,E.start)||!sd(D.visibleRange.end,E.end))&&(C(f),I(D.visibleRange));let w=F=>{F?(h(F),C(F)):(h(null),C(null))},$=f?Sc(f,D.focusedDate):c&&Sc(c.start,c.end),R=F=>{if(!e.isReadOnly&&(F=Cr(F,v,y),F=Fx(F,D.visibleRange.start,e.isDateUnavailable),!!F))if(!f)w(F);else{let V=Sc(f,F);d({start:Ym(V.start,c==null?void 0:c.start),end:Ym(V.end,c==null?void 0:c.end)}),w(null)}},[_,P]=x.useState(!1),{isDateUnavailable:M}=e,A=x.useMemo(()=>!c||f?!1:M&&(M(c.start)||M(c.end))?!0:aa(c.start,s,l)||aa(c.end,s,l),[M,c,f,s,l]),B=e.isInvalid||e.validationState==="invalid"||A;return{...D,value:c,setValue:d,anchorDate:f,setAnchorDate:w,highlightedRange:$,validationState:B?"invalid":null,isValueInvalid:B,selectFocusedDate(){R(D.focusedDate)},selectDate:R,highlightDate(F){f&&D.setFocusedDate(F)},isSelected(F){return $&&F.compare($.start)>=0&&F.compare($.end)<=0&&!D.isCellDisabled(F)&&!D.isCellUnavailable(F)},isInvalid(F){var V,j;return D.isInvalid(F)||aa(F,(V=m.current)===null||V===void 0?void 0:V.start,(j=m.current)===null||j===void 0?void 0:j.end)},isDragging:_,setDragging:P}}function Sc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:sn(e),end:sn(t)})}function Ym(e,t){return e=bt(e,(t==null?void 0:t.calendar)||new ln),t&&"hour"in t?t.set(e):e}function Um(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 tA(e){let[t,n]=Ro(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=x.useCallback(()=>{n(!0)},[n]),i=x.useCallback(()=>{n(!1)},[n]),a=x.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Tx={};Tx={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Mx={};Mx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var kx={};kx={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 Bx={};Bx={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 Vx={};Vx={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 Ox={};Ox={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Nx={};Nx={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 Lx={};Lx={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 jx={};jx={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 Hx={};Hx={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 Wx={};Wx={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 zx={};zx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Gx={};Gx={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 Zx={};Zx={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 Xx={};Xx={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 Yx={};Yx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Ux={};Ux={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Jx={};Jx={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 Kx={};Kx={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 qx={};qx={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 Qx={};Qx={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 e4={};e4={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 t4={};t4={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 n4={};n4={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 r4={};r4={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 i4={};i4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var a4={};a4={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 o4={};o4={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 s4={};s4={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 l4={};l4={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 u4={};u4={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 c4={};c4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var d4={};d4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var f4={};f4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var h4={};h4={"ar-AE":Tx,"bg-BG":Mx,"cs-CZ":kx,"da-DK":Bx,"de-DE":Vx,"el-GR":Ox,"en-US":Nx,"es-ES":Lx,"et-EE":jx,"fi-FI":Hx,"fr-FR":Wx,"he-IL":zx,"hr-HR":Gx,"hu-HU":Zx,"it-IT":Xx,"ja-JP":Yx,"ko-KR":Ux,"lt-LT":Jx,"lv-LV":Kx,"nb-NO":qx,"nl-NL":Qx,"pl-PL":e4,"pt-BR":t4,"pt-PT":n4,"ro-RO":r4,"ru-RU":i4,"sk-SK":a4,"sl-SI":o4,"sr-SP":s4,"sv-SE":l4,"tr-TR":u4,"uk-UA":c4,"zh-CN":d4,"zh-TW":f4};function nA(e){return e&&e.__esModule?e.default:e}const g4=new Ri(nA(h4));function m4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Jm(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=m4(),d=Ri.getGlobalDictionaryForPackage("@react-stately/datepicker")||g4,f=new uy(c,d),h=new Io(c,Rd({},i)),g=h.resolvedOptions().timeZone;o&&u.push(f.format("rangeUnderflow",{minValue:h.format(t.toDate(g))})),a&&u.push(f.format("rangeOverflow",{maxValue:h.format(n.toDate(g))})),s&&u.push(f.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 rA(e,t,n,r,i){let a=Jm(e==null?void 0:e.start,t,n,r,i),o=Jm(e==null?void 0:e.end,t,n,r,i),s=zl(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Ri.getGlobalDictionaryForPackage("@react-stately/datepicker")||g4;s=zl(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",m4())],validationDetails:{...Iu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const iA={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},aA={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Rd(e,t){e={...t.shouldForceLeadingZeros?aA:iA,...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 Is(e){return e&&"hour"in e?e:new Gf}function oA(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]=x.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 sA(e){var t,n;let r=tA(e),[i,a]=Ro(e.value,e.defaultValue||null,e.onChange),[o,s]=x.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,f]=oA(c,e.granularity),h=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[p,b]=x.useState(null),[v,y]=x.useState(null);l&&l.start&&l.end&&(p=l,"hour"in l.start&&(v=l));let D=(T,F)=>{u({start:"timeZone"in F.start?F.start.set(sn(T.start)):kr(T.start,F.start),end:"timeZone"in F.end?F.end.set(sn(T.end)):kr(T.end,F.end)}),b(null),y(null),M.commitValidation()},C=T=>{let F=typeof m=="function"?m():m;h?F||T.start&&T.end&&(v!=null&&v.start)&&(v!=null&&v.end)?D(T,{start:(v==null?void 0:v.start)||Is(e.placeholderValue),end:(v==null?void 0:v.end)||Is(e.placeholderValue)}):b(T):T.start&&T.end?(u(T),M.commitValidation()):b(T),F&&r.setOpen(!1)},E=T=>{p!=null&&p.start&&(p!=null&&p.end)&&T.start&&T.end?D(p,T):y(T)},I=(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",w=x.useMemo(()=>({granularity:d,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:I}),[d,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,I]),{minValue:$,maxValue:R,isDateUnavailable:_}=e,P=x.useMemo(()=>rA(l,$,R,_,w),[l,$,R,_,w]),M=z7({...e,value:i,name:x.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:P}),A=M.displayValidation.isInvalid,B=e.validationState||(A?"invalid":null);return{...M,value:l,setValue:u,dateRange:p,timeRange:v,granularity:d,hasTime:h,setDate(T,F){C({...p,[T]:F})},setTime(T,F){E({...v,[T]:F})},setDateTime(T,F){u({...l,[T]:F})},setDateRange:C,setTimeRange:E,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(p!=null&&p.start)&&(p!=null&&p.end)&&h&&D(p,{start:(v==null?void 0:v.start)||Is(e.placeholderValue),end:(v==null?void 0:v.end)||Is(e.placeholderValue)}),r.setOpen(T)},validationState:B,isInvalid:A,formatValue(T,F){if(!l||!l.start||!l.end)return null;let V="timeZone"in l.start?l.start.timeZone:void 0,j=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),N="timeZone"in l.end?l.end.timeZone:void 0,Z=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),z=Rd(F,{granularity:j,timeZone:V,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"}),q=l.start.toDate(V||"UTC"),W=l.end.toDate(N||"UTC"),H=new Io(T,z),O;if(V===N&&j===Z&&l.start.compare(l.end)!==0){try{let G=H.formatRangeToParts(q,W),J=-1;for(let le=0;le<G.length;le++){let X=G[le];if(X.source==="shared"&&X.type==="literal")J=le;else if(X.source==="endRange")break}let re="",fe="";for(let le=0;le<G.length;le++)le<J?re+=G[le].value:le>J&&(fe+=G[le].value);return{start:re,end:fe}}catch{}O=H}else{let G=Rd(F,{granularity:Z,timeZone:N,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});O=new Io(T,G)}return{start:H.format(q),end:O.format(W)}}}}const p4=e=>{const t=x.useRef(null),{locale:n}=Rn(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=H7({date:i},r,t),{focusProps:f}=iy(),h="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.end):null:s,m=Du(i,n),p=s&&(h??m===0??i.day===1),b=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return S.jsx("td",{...a,children:S.jsx("div",{...Yt(o,f),ref:t,className:`${ge["cell-calendar"]} ${p?"1ru-rounded-l-full":""} ${b?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?S.jsx("div",{className:ge["visible-cell-calendar"],children:c}):S.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${h||g?d?ge.error:ge.selected:""} ${s&&!u&&!(h??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},ma=e=>{const t=x.useRef(null),{buttonProps:n}=B7(e,t),{focusProps:r}=iy();return S.jsx("button",{...Yt(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})},b4=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a})=>{const o=new Date().getFullYear(),s=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),l=Br({month:"short",timeZone:n.timeZone}),u=(d,f)=>{const h=n.focusedDate.set({month:d});f?(r("date"),n.setFocusedDate(h)):!f&&typeof i=="function"&&i(h)},c=d=>{const f=n.focusedDate.set({year:d});n.setFocusedDate(f)};return S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ma,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>c(n.focusedDate.year-1),children:typeof e=="function"||x.isValidElement(e)?x.isValidElement(e)?e:e():S.jsx(jn,{className:"1ru-rotate-90"})}),S.jsx("div",{className:`${ge["header-button-calendar"]} ${a.includes("year")?"":ge.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),S.jsx(ma,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>c(n.focusedDate.year+1),children:typeof t=="function"||x.isValidElement(t)?x.isValidElement(t)?t:t():S.jsx(jn,{className:"-1ru-rotate-90"})})]}),S.jsx("div",{className:ge["month-calendar"],children:[...Array(s).keys()].map(d=>{var v,y,D,C;const f=n.focusedDate.set({month:d+1}),h=l.format(f.toDate(n.timeZone)),g=((v=n.value)==null?void 0:v.year)||((D=(y=n.value)==null?void 0:y.start)==null?void 0:D.year)||o,m=n!=null&&n.minValue?f.month<((C=n==null?void 0:n.minValue)==null?void 0:C.month)&&f.year<=n.minValue.year:!1,p=n!=null&&n.maxValue?f.month>n.maxValue.month&&f.year>=n.maxValue.year:!1,b=m||p;return S.jsx("div",{onClick:()=>{b||u(f.month,a.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===f.month&&!b&&f.year===g?ge.selected:""} ${n.focusedDate.month!==f.month&&!b?"hover:1ru-bg-laba-blue-01":""} ${b?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:h},d)})})]})},lA=e=>{const t=cv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Yy({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Xy(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 S.jsxs("div",{children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ma,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(jn,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),S.jsx(ma,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(jn,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...n,children:[S.jsx("thead",{...r,children:S.jsx("tr",{children:i.map((u,c)=>S.jsx("th",{className:ge["days-calendar"],children:l(c)},c))})}),S.jsx("tbody",{children:[...new Array(t).keys()].map(u=>S.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?S.jsx(p4,{state:e.state,date:c},d):S.jsx("td",{},d))},u))})]})]})},uA=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,f]=x.useState(!0),h=(b,v,y)=>Array.from({length:(v-b)/y+1},(D,C)=>b+C*y),g=(b,v)=>{typeof i=="function"&&i({hour:b,minut:v,second:r==null?void 0:r.second})},m=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),v=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),y=document.getElementById("wrapper-calendar-hour"),D=document.getElementById("wrapper-calendar-minut");b&&y&&y.scrollTo({behavior:"instant",top:b.offsetTop-75}),v&&D&&D.scrollTo({behavior:"instant",top:v.offsetTop-75})},p=(b,v)=>{let y=!0;if(a&&n){const D=n.year===a.getFullYear(),C=n.month===a.getMonth()+1;n.day===a.getDate()&&C&&D?(v==="hour"&&b<(s??0)||v==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&b<(u??0))&&(y=!1):n.toDate(yi()).getTime()<a.getTime()&&(y=!1)}if(o&&n){const D=n.year===o.getFullYear(),C=n.month===o.getMonth()+1;n.day===o.getDate()&&C&&D?(v==="hour"&&b>(l??0)||v==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&b>(c??0))&&(y=!1):n.toDate(yi()).getTime()>o.getTime()&&(y=!1)}return y};return x.useEffect(()=>{d&&m(),r&&f(!1)},[JSON.stringify(n)]),S.jsxs("div",{className:ge["custom-time-calendar"],children:[S.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),S.jsxs("div",{className:ge["type-time"],children:[S.jsx("div",{children:"Jam"}),S.jsx("div",{children:"Menit"})]}),S.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[S.jsx("div",{id:"wrapper-calendar-hour",className:ge["container-cell-time"],children:h(0,23,1).map(b=>S.jsx("div",{id:`calendar-hour-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===b?p(b,"hour")?ge.selected:ge.error:""} ${p(b,"hour")&&(r==null?void 0:r.hour)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"hour")&&g(b,r==null?void 0:r.minut)},children:b<10?`0${b}`:b},b))}),S.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:h(0,59,1).map(b=>S.jsx("div",{id:`calendar-minut-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===b?p(b,"minut")?ge.selected:ge.error:""} ${p(b,"minut")&&(r==null?void 0:r.minut)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"minut")&&g(r==null?void 0:r.hour,b)},children:b<10?`0${b}`:b},b))})]})]})},_u=e=>{const t=Px({...e,locale:e.locale,createCalendar:Qo}),{title:n}=Xy(e,t),[r,i]=x.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Yo(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&S.jsx(S.Fragment,{children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[S.jsx(lA,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&S.jsx(uA,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&S.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):S.jsx(Wn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Wn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&S.jsx(b4,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&S.jsx(b1,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},cA=e=>{const t=x.useRef(null),{locale:n}=Rn(),r=eA({...e,locale:n,createCalendar:Qo}),i=m=>{let p="";switch(m){case 0:p="Min";break;case 1:p="Sen";break;case 2:p="Sel";break;case 3:p="Rab";break;case 4:p="Kam";break;case 5:p="Jum";break;case 6:p="Sab";break}return p},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=L7(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Yy({},r),f=cv(r.visibleRange.start,n),[h,g]=x.useState("date");return S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[h==="date"&&S.jsx(S.Fragment,{children:S.jsx("div",{...a,ref:t,children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ma,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(jn,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),S.jsx(ma,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(jn,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[S.jsx("thead",{...c,className:"text-gray-600",children:S.jsx("tr",{children:d.map((m,p)=>S.jsx("th",{className:ge["days-calendar"],children:i(p)},p))})}),S.jsx("tbody",{children:[...new Array(f).keys()].map(m=>S.jsx("tr",{children:r.getDatesInWeek(m).map((p,b)=>p?S.jsx(p4,{state:r,date:p},b):S.jsx("td",{},b))},m))})]}),e.withConfirm&&S.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):S.jsx(Wn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Wn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),h==="month"&&S.jsx(b4,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),h==="year"&&S.jsx(b1,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},v4=e=>{const t=sA(e),n=x.useRef(null),{calendarProps:r}=Q7(e,t,n);return S.jsx("div",{ref:n,children:S.jsx(cA,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},_s=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},dA=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:f,nextIcon:h,onChange:g,id:m="date-picker",idPopover:p="date-picker-popover",floatingOptions:b={},offsetPopover:v=5,zIndexPopper:y=1}=e,D=Br(),{locale:C}=Rn(),E=_s(t),I=_s(n),w=x.useRef(null),[$,R]=x.useState(),[_,P]=x.useState(),M=V=>{var q;const j=new Date;let N=V.toDate(yi());N.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const Z=t?new Date(t):null,z=n?new Date(n):null;if(o){if(N=new Date(new Date(N).setHours((_==null?void 0:_.hour)??0,_==null?void 0:_.minut,_==null?void 0:_.second)),Z&&(Z==null?void 0:Z.toDateString())===new Date(N).toDateString()&&(Z==null?void 0:Z.toTimeString())>=(N==null?void 0:N.toTimeString())){if(Z&&(Z.getHours()>N.getHours()||Z.getHours()===N.getHours()&&Z.getMinutes()>N.getMinutes()))return;N=new Date(Z.setSeconds(Z.getSeconds()+1))}if(z&&(z==null?void 0:z.toDateString())===new Date(N).toDateString()&&(z==null?void 0:z.toTimeString())<(N==null?void 0:N.toTimeString())){if(z&&(z.getHours()<N.getHours()||z.getHours()===N.getHours()&&z.getMinutes()<N.getMinutes()))return;N=new Date(z.setSeconds(z.getSeconds()-1))}}else Z&&D.format(N)===D.format(Z)&&Z.getTime()>=N.getTime()?N=new Date(Z.setSeconds(Z.getSeconds()+1)):z&&D.format(N)===D.format(z)&&z.getTime()<=N.getTime()&&(N=new Date(z.setSeconds(z.getSeconds()-1)));typeof g=="function"&&(g(N),(q=w.current)==null||q.setShow(!1))},A=(V,j)=>{R(V),(j??(!a&&!o))&&M(V)},B=V=>{P(V)},T=V=>{const j=new Date(r??new Date);if(r&&V){const N=V.focusedDate.set({month:j.getMonth()+1,year:j.getFullYear()});V.setFocusedDate(N)}P({hour:j.getHours(),minut:j.getMinutes(),second:j.getSeconds()}),R(_s(r))},F=()=>{$&&A($,!0)};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:m,onClick:V=>{var j;(j=w.current)==null||j.handlerShow(V),T()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),S.jsx(Ei,{zIndex:y,ref:w,offset:v,id:p,floatingOptions:{placement:"bottom-end",...b},children:S.jsx("div",{className:s??"",children:S.jsx(rh,{locale:"id-ID",children:S.jsx(_u,{minValue:E,maxValue:I,minDate:t,maxDate:n,time:_,locale:C,value:$,buttonReset:c,buttonSubmit:d,prevIcon:f,nextIcon:h,createCalendar:Qo,defaultValue:_s(r),onChange:A,handlerReset:()=>{var V;typeof g=="function"&&(g(i),(V=w.current)==null||V.setShow(!1))},handlerSubmit:F,handlerChangeTime:B,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},Ec=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Km=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 lt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new lt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},y4=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:f}=Rn(),h=Ec(t),g=Ec(n),[m,p]=x.useState(),b=C=>{typeof c=="function"&&c(C)},v=(C,E)=>{const I=C.start.toDate(yi()),w=C.end.toDate(yi());p(C),(E??!i)&&b({startDate:I,endDate:new Date(w.setHours(23,59,59))})},y=C=>{if(typeof d=="function")d();else if(r&&C){const E=new Date(r.endDate??new Date),I=C.focusedDate.set({month:E.getMonth()+1,year:E.getFullYear()});C.setFocusedDate(I)}p(Km(r))},D=()=>{m&&v(m,!0)};return S.jsx("div",{className:"1ru-flex 1ru-flex-col",children:S.jsxs(rh,{locale:"id-ID",children:[u==="RANGE"&&S.jsx(v4,{defaultValue:Km(r),value:m,minValue:h,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:y,handlerSubmit:D}),u==="SINGLE"&&S.jsx(_u,{defaultValue:Ec(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:h,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:f,createCalendar:Qo,onChange:C=>v({start:C,end:C}),handlerReset:y,handlerSubmit:D,type:["date","month","year"]})]})})},fA=({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:f="filter-date",floatingOptions:h={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:p,mountedExecuteChange:b=!1,formatingDate:v})=>{const y=[{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"}],D=x.useRef(null),[C,E]=x.useState(),[I,w]=x.useState(),[$,R]=x.useState(),_=(W,H)=>{const O=new Date(W??new Date);return H==="start"?new Date(O.setHours(0,0,0)):new Date(O.setHours(23,59,59))},P=()=>{const W=new Date;return{startDate:W,endDate:W}},M=()=>{const W=new Date;W.setDate(W.getDate()-W.getDay());const H=new Date;return H.setDate(H.getDate()+(6-H.getDay())),{startDate:W,endDate:H}},A=()=>{const W=new Date,H=new Date(W.getFullYear(),W.getMonth(),1),O=new Date(W.getFullYear(),W.getMonth()+1,0);return{startDate:H,endDate:O}},B=()=>{const W=new Date(new Date().getFullYear(),0,1),H=new Date(new Date().getFullYear(),11,31);return{startDate:W,endDate:H}},T=()=>{const W=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:W,endDate:W}},F=()=>{const W=new Date;W.setDate(W.getDate()-(7+W.getDay()));const H=new Date;return H.setDate(H.getDate()-(H.getDay()+1)),{startDate:W,endDate:H}},V=()=>{const W=new Date,H=new Date(W.getFullYear(),W.getMonth()-1,1),O=new Date(W.getFullYear(),W.getMonth(),0);return{startDate:H,endDate:O}},j=()=>{const W=new Date(new Date().getFullYear()-1,0,1),H=new Date(new Date().getFullYear()-1,11,31);return{startDate:W,endDate:H}},N=(W,H)=>{var O;if(R(W),typeof c=="function"){let G=W;v==="string"&&W?G={startDate:Yi(W.startDate,v),endDate:Yi(W.endDate,v)}:typeof v=="boolean"&&W&&(G={startDate:Yi(W.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:Yi(W.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(O=D.current)==null||O.setShow(!1),c(G,H??"")}},Z=W=>{E(W);let H;if((W==null?void 0:W.key)!=="custom"){switch(w(W),W==null?void 0:W.key){case"thisDay":H=P();break;case"thisWeek":H=M();break;case"thisMonth":H=A();break;case"thisYear":H=B();break;case"yesterday":H=T();break;case"lastWeek":H=F();break;case"lastMonth":H=V();break;case"lastYear":H=j();break}H&&N({startDate:_(H.startDate,"start"),endDate:_(H.endDate,"end")},W==null?void 0:W.value)}},z=(W,H)=>{const O=(l??y).find(G=>G.key===W);!W&&!O?(H||N(),Z(void 0),w(void 0)):typeof W=="object"?(H||N({startDate:_(W.startDate,"start"),endDate:_(W.endDate,"end")},"Kustom"),Z({key:"custom",value:"Kustom"}),w({key:"custom",value:"Kustom"})):(Z(O),w(O))},q=()=>{e?R(e):(E(void 0),w(void 0))};return x.useEffect(()=>{q()},[JSON.stringify(e)]),x.useEffect(()=>{z(p??e,!b)},[]),S.jsxs(S.Fragment,{children:[S.jsxs("div",{onClick:W=>{var H;(H=D.current)==null||H.handlerShow(W),q()},className:o,id:f,children:[x.isValidElement(s)&&s,typeof s=="function"?s($,I):"Pilih Filter"]}),S.jsx(Ei,{zIndex:m,ref:D,offset:g,id:d,floatingOptions:{placement:"bottom-end",...h},children:S.jsxs("div",{className:`${ge["container-filter-date"]} ${a}`,children:[S.jsx("div",{children:(l??y).map((W,H)=>S.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(C==null?void 0:C.key)===W.key?"1ru-text-laba-blue-10":""}`,onClick:()=>Z(W),children:W.value},H))}),(C==null?void 0:C.key)==="custom"&&S.jsx("div",{children:S.jsx(y4,{defaultValue:$,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:W=>{N(W,"Kustom"),w({key:"custom",value:"Kustom"})},onReset:()=>{z(p)},typePicker:u,withConfirm:!0})})]})})]})},hA="_active_1e40z_26",Zr={"button-switch-base":"_button-switch-base_1e40z_1","switch-s":"_switch-s_1e40z_1","switch-r":"_switch-r_1e40z_1","switch-l":"_switch-l_1e40z_1","thumb-switch-base":"_thumb-switch-base_1e40z_7","thumb-switch":"_thumb-switch_1e40z_7","title-switch-base":"_title-switch-base_1e40z_12","description-switch-base":"_description-switch-base_1e40z_16",active:hA},gA=({value:e,disabled:t,title:n="",description:r="",size:i="regular",id:a,className:o,classNameTitle:s,classNameDesc:l,onChange:u})=>{const c={large:Zr["switch-l"],regular:Zr["switch-r"],small:Zr["switch-s"]},d=()=>{!t&&typeof u=="function"&&u(!e)};return S.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${o??""}`,onClick:f=>f.stopPropagation(),children:[S.jsxs("label",{children:[S.jsx("input",{type:"checkbox",checked:e,onChange:d,className:"1ru-hidden"}),S.jsx("span",{className:`${c[i]} ${e?"1ru-bg-payhere-brand-base":"1ru-bg-blue-gray-50"} ${t?"":"1ru-cursor-pointer"} ${!e&&t?"1ru-bg-laba-grey-05":""}`,children:S.jsx("span",{className:`${Zr["thumb-switch"]} ${e?Zr.active:""} ${t?"1ru-bg-gray-300":"1ru-bg-white"}`})})]}),(n||r)&&S.jsxs("div",{children:[n&&S.jsx("div",{className:`${Zr["title-switch-base"]} ${s}`,children:n}),r&&S.jsx("div",{className:`${Zr["description-switch-base"]} ${l}`,children:r})]})]})},mA="_loading_m1lmf_10",$e={"button-base":"_button-base_m1lmf_6","button-xs":"_button-xs_m1lmf_6","button-s":"_button-s_m1lmf_6","button-m":"_button-m_m1lmf_6","button-l":"_button-l_m1lmf_6","button-extra-small":"_button-extra-small_m1lmf_6","button-small":"_button-small_m1lmf_6","button-reguler":"_button-reguler_m1lmf_6","button-large":"_button-large_m1lmf_6",loading:mA,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_m1lmf_18","nude-laba-red-10":"_nude-laba-red-10_m1lmf_18","nude-gray-500":"_nude-gray-500_m1lmf_18","nude-green-700":"_nude-green-700_m1lmf_18","nude-red-700":"_nude-red-700_m1lmf_18","nude-laba-blue-10":"_nude-laba-blue-10_m1lmf_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_m1lmf_18","ghost-green-700":"_ghost-green-700_m1lmf_18","ghost-red-700":"_ghost-red-700_m1lmf_18","ghost-laba-blue-10":"_ghost-laba-blue-10_m1lmf_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_m1lmf_18","primary-green-700":"_primary-green-700_m1lmf_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_m1lmf_18","primary-laba-blue-10":"_primary-laba-blue-10_m1lmf_18","button-disabled-gray-100":"_button-disabled-gray-100_m1lmf_18","tertiary-gray-500":"_tertiary-gray-500_m1lmf_18","tertiary-red-600":"_tertiary-red-600_m1lmf_18","tertiary-red-300":"_tertiary-red-300_m1lmf_18","tertiary-blue-700":"_tertiary-blue-700_m1lmf_18","secondary-green-600":"_secondary-green-600_m1lmf_18","secondary-red-700":"_secondary-red-700_m1lmf_18","secondary-red-600":"_secondary-red-600_m1lmf_18","secondary-blue-700":"_secondary-blue-700_m1lmf_18","primary-red-700":"_primary-red-700_m1lmf_18","primary-blue-700":"_primary-blue-700_m1lmf_18","icon-loading":"_icon-loading_m1lmf_80","spin-loading":"_spin-loading_m1lmf_1"},pA=({className:e=""})=>S.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:S.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
|
111
111
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
112
112
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
113
113
|
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
|
@@ -117,20 +117,20 @@ You should wrap it with \`css\` like this:
|
|
117
117
|
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
118
118
|
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
119
119
|
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
120
|
-
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),x4=x.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",children:i,className:a,classNameIconLoading:o,loading:s,onClick:l,type:u="button",disabled:c,...d}=e,f={size:{large:$e["button-large"],reguler:$e["button-reguler"],small:$e["button-small"],"extra-small":$e["button-extra-small"],l:$e["button-l"],m:$e["button-m"],s:$e["button-s"],xs:$e["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":$e["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":$e["primary-red-700-dsb_laba-grey-06"],"primary-green-700":$e["primary-green-700"],"filled-laba-white_laba-blue-10":$e["filled-laba-white_laba-blue-10"],"ghost-laba-blue-10":$e["ghost-laba-blue-10"],"ghost-red-700":$e["ghost-red-700"],"ghost-green-700":$e["ghost-green-700"],"nude-laba-blue-10":$e["nude-laba-blue-10"],"nude-red-700":$e["nude-red-700"],"nude-green-700":$e["nude-green-700"],"nude-gray-500":$e["nude-gray-500"],"primary-blue-700":$e["primary-blue-700"],"secondary-blue-700":$e["secondary-blue-700"],"tertiary-blue-700":$e["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":$e["ghost-blue-gray-100-bg_white"],"secondary-red-600":$e["secondary-red-600"],"tertiary-red-300":$e["tertiary-red-300"],"tertiary-gray-500":$e["tertiary-gray-500"],"tertiary-red-600":$e["tertiary-red-600"],"secondary-green-600":$e["secondary-green-600"],"nude-laba-red-10":$e["nude-laba-red-10"],"primary-red-700":$e["primary-red-700"]}};return
|
121
|
-
${s?$e.loading:""} ${a??""}`,type:u,disabled:c??s,...d,children:[s&&
|
122
|
-
${n.variants[a]} ${r??""}`,ref:t,...l,children:o})});C4.displayName="Badges";const Yn={"chips-reguler":"_chips-reguler_578ma_1","chips-small":"_chips-small_578ma_10","chips-l":"_chips-l_578ma_19","chips-s":"_chips-s_578ma_10","filled-laba-blue-10":"_filled-laba-blue-10_578ma_37","filled-blue-gray-100":"_filled-blue-gray-100_578ma_42","filled-gray-300":"_filled-gray-300_578ma_47","ghost-laba-grey-02":"_ghost-laba-grey-02_578ma_52","nude-laba-grey-10":"_nude-laba-grey-10_578ma_59"},w4=x.forwardRef((e,t)=>{const{className:n,children:r,fonts:i="inter",size:a="reguler",variants:o="filled-laba-blue-10",icon:s=
|
123
|
-
${u.variants[o]} ${n??""}`,ref:t,children:[typeof s=="function"&&s(),x.isValidElement(s)&&s,r,typeof l=="function"&&l(),x.isValidElement(l)&&l]})});w4.displayName="Chips";const Ad={"payhere-h1":"1ru-text-payhere-h1","payhere-h2":"1ru-text-payhere-h2","payhere-h3":"1ru-text-payhere-h3","payhere-h4":"1ru-text-payhere-h4","payhere-h5":"1ru-text-payhere-h5","payhere-h6":"1ru-text-payhere-h6","payhere-body-lr":"1ru-text-payhere-body-lr","payhere-body-lm":"1ru-text-payhere-body-lm","payhere-body-ls":"1ru-text-payhere-body-ls","payhere-body-lb":"1ru-text-payhere-body-lb","payhere-body-mr":"1ru-text-payhere-body-mr","payhere-body-mm":"1ru-text-payhere-body-mm","payhere-body-ms":"1ru-text-payhere-body-ms","payhere-body-mb":"1ru-text-payhere-body-mb","payhere-label-r":"1ru-text-payhere-label-r","payhere-label-m":"1ru-text-payhere-label-m","payhere-body-sr":"1ru-text-payhere-body-sr","payhere-body-sm":"1ru-text-payhere-body-sm","payhere-body-esr":"1ru-text-payhere-body-esr","payhere-body-esm":"1ru-text-payhere-body-esm","laba-h1":"1ru-text-laba-h1","laba-h2":"1ru-text-laba-h2","laba-base-rb":"1ru-text-laba-base-rb","laba-base-rs":"1ru-text-laba-base-rs","laba-base-rr":"1ru-text-laba-base-rr","laba-base-sb":"1ru-text-laba-base-sb","laba-base-ss":"1ru-text-laba-base-ss","laba-base-sr":"1ru-text-laba-base-sr","laba-subtitle-rb":"1ru-text-laba-subtitle-rb","laba-subtitle-rs":"1ru-text-laba-subtitle-rs","laba-subtitle-rr":"1ru-text-laba-subtitle-rr","laba-subtitle-sb":"1ru-text-laba-subtitle-sb","laba-subtitle-ss":"1ru-text-laba-subtitle-ss","laba-subtitle-sr":"1ru-text-laba-subtitle-sr"},
|
124
|
-
${y.borderRadius[u]} ${
|
125
|
-
${Ct.label} ${v.disabled?Ct.disabled:""} ${i??""}`,htmlFor:s??l,children:m})]})});$u.displayName="RadioCheckbox";const
|
120
|
+
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),x4=x.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",children:i,className:a,classNameIconLoading:o,loading:s,onClick:l,type:u="button",disabled:c,...d}=e,f={size:{large:$e["button-large"],reguler:$e["button-reguler"],small:$e["button-small"],"extra-small":$e["button-extra-small"],l:$e["button-l"],m:$e["button-m"],s:$e["button-s"],xs:$e["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":$e["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":$e["primary-red-700-dsb_laba-grey-06"],"primary-green-700":$e["primary-green-700"],"filled-laba-white_laba-blue-10":$e["filled-laba-white_laba-blue-10"],"ghost-laba-blue-10":$e["ghost-laba-blue-10"],"ghost-red-700":$e["ghost-red-700"],"ghost-green-700":$e["ghost-green-700"],"nude-laba-blue-10":$e["nude-laba-blue-10"],"nude-red-700":$e["nude-red-700"],"nude-green-700":$e["nude-green-700"],"nude-gray-500":$e["nude-gray-500"],"primary-blue-700":$e["primary-blue-700"],"secondary-blue-700":$e["secondary-blue-700"],"tertiary-blue-700":$e["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":$e["ghost-blue-gray-100-bg_white"],"secondary-red-600":$e["secondary-red-600"],"tertiary-red-300":$e["tertiary-red-300"],"tertiary-gray-500":$e["tertiary-gray-500"],"tertiary-red-600":$e["tertiary-red-600"],"secondary-green-600":$e["secondary-green-600"],"nude-laba-red-10":$e["nude-laba-red-10"],"primary-red-700":$e["primary-red-700"],"secondary-red-700":$e["secondary-red-700"]}};return S.jsxs("button",{onClick:s?void 0:l,ref:t,className:`${f.size[n]} ${f.variants[r]}
|
121
|
+
${s?$e.loading:""} ${a??""}`,type:u,disabled:c??s,...d,children:[s&&S.jsx(pA,{className:`${f.loadingSize[n]} ${o}`}),i]})});x4.displayName="ButtonIcon";const Ye={"base-badges":"_base-badges_v68qb_1","outline-laba-blue-01":"_outline-laba-blue-01_v68qb_1","outline-amber-800":"_outline-amber-800_v68qb_1","outline-blue-600":"_outline-blue-600_v68qb_1","outline-red-500":"_outline-red-500_v68qb_1","outline-green-600":"_outline-green-600_v68qb_1","outline-gray-600":"_outline-gray-600_v68qb_1","ghost-laba-red-01":"_ghost-laba-red-01_v68qb_1","ghost-laba-grey-05":"_ghost-laba-grey-05_v68qb_1","ghost-laba-blue-02":"_ghost-laba-blue-02_v68qb_1","ghost-laba-green-02":"_ghost-laba-green-02_v68qb_1","ghost-laba-green-01":"_ghost-laba-green-01_v68qb_1","ghost-laba-orange-01":"_ghost-laba-orange-01_v68qb_1","ghost-amber-100":"_ghost-amber-100_v68qb_1","ghost-blue-100":"_ghost-blue-100_v68qb_1","ghost-red-100":"_ghost-red-100_v68qb_1","ghost-green-100":"_ghost-green-100_v68qb_1","ghost-gray-200":"_ghost-gray-200_v68qb_1","filled-red-900":"_filled-red-900_v68qb_1","filled-lime-700":"_filled-lime-700_v68qb_1","filled-amber-800":"_filled-amber-800_v68qb_1","filled-pink-600":"_filled-pink-600_v68qb_1","filled-blue-600":"_filled-blue-600_v68qb_1","filled-red-500":"_filled-red-500_v68qb_1","filled-green-600":"_filled-green-600_v68qb_1","filled-gray-600":"_filled-gray-600_v68qb_1"},C4=x.forwardRef((e,t)=>{const n={variants:{"filled-gray-600":Ye["filled-gray-600"],"filled-green-600":Ye["filled-green-600"],"filled-red-500":Ye["filled-red-500"],"filled-blue-600":Ye["filled-blue-600"],"filled-amber-800":Ye["filled-amber-800"],"filled-pink-600":Ye["filled-pink-600"],"filled-lime-700":Ye["filled-lime-700"],"filled-red-900":Ye["filled-red-900"],"ghost-laba-orange-01":Ye["ghost-laba-orange-01"],"ghost-laba-green-01":Ye["ghost-laba-green-01"],"ghost-laba-green-02":Ye["ghost-laba-green-02"],"ghost-laba-blue-02":Ye["ghost-laba-blue-02"],"ghost-gray-200":Ye["ghost-gray-200"],"ghost-green-100":Ye["ghost-green-100"],"ghost-red-100":Ye["ghost-red-100"],"ghost-blue-100":Ye["ghost-blue-100"],"ghost-amber-100":Ye["ghost-amber-100"],"ghost-laba-grey-05":Ye["ghost-laba-grey-05"],"ghost-laba-red-01":Ye["ghost-laba-red-01"],"outline-gray-600":Ye["outline-gray-600"],"outline-green-600":Ye["outline-green-600"],"outline-red-500":Ye["outline-red-500"],"outline-blue-600":Ye["outline-blue-600"],"outline-amber-800":Ye["outline-amber-800"],"outline-laba-blue-01":Ye["outline-laba-blue-01"]},borderRadius:vo,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"}},{className:r,rounded:i="8px",variants:a="filled-gray-600",children:o,fonts:s="inter",...l}=e;return S.jsx("span",{className:`${vo[i]} ${n.fonts[s]}
|
122
|
+
${n.variants[a]} ${r??""}`,ref:t,...l,children:o})});C4.displayName="Badges";const Yn={"chips-reguler":"_chips-reguler_578ma_1","chips-small":"_chips-small_578ma_10","chips-l":"_chips-l_578ma_19","chips-s":"_chips-s_578ma_10","filled-laba-blue-10":"_filled-laba-blue-10_578ma_37","filled-blue-gray-100":"_filled-blue-gray-100_578ma_42","filled-gray-300":"_filled-gray-300_578ma_47","ghost-laba-grey-02":"_ghost-laba-grey-02_578ma_52","nude-laba-grey-10":"_nude-laba-grey-10_578ma_59"},w4=x.forwardRef((e,t)=>{const{className:n,children:r,fonts:i="inter",size:a="reguler",variants:o="filled-laba-blue-10",icon:s=S.jsx(S.Fragment,{}),removeIcon:l=S.jsx(S.Fragment,{})}=e,u={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},size:{reguler:Yn["chips-reguler"],small:Yn["chips-small"],l:Yn["chips-l"],s:Yn["chips-s"]},variants:{"filled-laba-blue-10":Yn["filled-laba-blue-10"],"filled-gray-300":Yn["filled-gray-300"],"filled-blue-gray-100":Yn["filled-blue-gray-100"],"ghost-laba-grey-02":Yn["ghost-laba-grey-02"],"nude-laba-grey-10":Yn["nude-laba-grey-10"]}};return S.jsxs("span",{className:`${u.fonts[i]} ${u.size[a]}
|
123
|
+
${u.variants[o]} ${n??""}`,ref:t,children:[typeof s=="function"&&s(),x.isValidElement(s)&&s,r,typeof l=="function"&&l(),x.isValidElement(l)&&l]})});w4.displayName="Chips";const Ad={"payhere-h1":"1ru-text-payhere-h1","payhere-h2":"1ru-text-payhere-h2","payhere-h3":"1ru-text-payhere-h3","payhere-h4":"1ru-text-payhere-h4","payhere-h5":"1ru-text-payhere-h5","payhere-h6":"1ru-text-payhere-h6","payhere-body-lr":"1ru-text-payhere-body-lr","payhere-body-lm":"1ru-text-payhere-body-lm","payhere-body-ls":"1ru-text-payhere-body-ls","payhere-body-lb":"1ru-text-payhere-body-lb","payhere-body-mr":"1ru-text-payhere-body-mr","payhere-body-mm":"1ru-text-payhere-body-mm","payhere-body-ms":"1ru-text-payhere-body-ms","payhere-body-mb":"1ru-text-payhere-body-mb","payhere-label-r":"1ru-text-payhere-label-r","payhere-label-m":"1ru-text-payhere-label-m","payhere-body-sr":"1ru-text-payhere-body-sr","payhere-body-sm":"1ru-text-payhere-body-sm","payhere-body-esr":"1ru-text-payhere-body-esr","payhere-body-esm":"1ru-text-payhere-body-esm","laba-h1":"1ru-text-laba-h1","laba-h2":"1ru-text-laba-h2","laba-base-rb":"1ru-text-laba-base-rb","laba-base-rs":"1ru-text-laba-base-rs","laba-base-rr":"1ru-text-laba-base-rr","laba-base-sb":"1ru-text-laba-base-sb","laba-base-ss":"1ru-text-laba-base-ss","laba-base-sr":"1ru-text-laba-base-sr","laba-subtitle-rb":"1ru-text-laba-subtitle-rb","laba-subtitle-rs":"1ru-text-laba-subtitle-rs","laba-subtitle-rr":"1ru-text-laba-subtitle-rr","laba-subtitle-sb":"1ru-text-laba-subtitle-sb","laba-subtitle-ss":"1ru-text-laba-subtitle-ss","laba-subtitle-sr":"1ru-text-laba-subtitle-sr"},bA="_container_pw3xo_1",vA="_label_pw3xo_103",yA="_disabled_pw3xo_106",Ct={"input-radio-checkbox-base":"_input-radio-checkbox-base_pw3xo_1",container:bA,"container-input":"_container-input_pw3xo_1","input-radio-checkbox-s":"_input-radio-checkbox-s_pw3xo_1","input-radio-checkbox-m":"_input-radio-checkbox-m_pw3xo_1","input-radio-checkbox-small":"_input-radio-checkbox-small_pw3xo_1","input-radio-checkbox-reguler":"_input-radio-checkbox-reguler_pw3xo_1","checked-icon":"_checked-icon_pw3xo_4","default-disabled-radio":"_default-disabled-radio_pw3xo_34","default-disabled-checkbox":"_default-disabled-checkbox_pw3xo_44","laba-blue-10":"_laba-blue-10_pw3xo_52","laba-blue-10-hv_bg_transparent":"_laba-blue-10-hv_bg_transparent_pw3xo_64","blue-700":"_blue-700_pw3xo_76","blue-700-hv_bg_transparent":"_blue-700-hv_bg_transparent_pw3xo_88",label:vA,disabled:yA},D4=({className:e})=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-3.5 1ru-w-3.5 1ru-text-white ${e??""}`,viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:S.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),S4=({className:e})=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 16 16",fill:"currentColor",children:S.jsx("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})}),$u=x.forwardRef((e,t)=>{const{variantDisableds:n,classNameContainer:r,classNameLabel:i,classNameCheckedIcon:a,fonts:o="lato",id:s,name:l,borderRadius:u="full",className:c,sizeInput:d="reguler",variants:f="laba-blue-10",type:h="checkbox",checkedIcon:g,label:m,typography:p="payhere-body-mr",classNameContainerCheckedIcon:b,...v}=e,y={size:{reguler:Ct["input-radio-checkbox-reguler"],small:Ct["input-radio-checkbox-small"],m:Ct["input-radio-checkbox-m"],s:Ct["input-radio-checkbox-s"]},variants:{"laba-blue-10":Ct["laba-blue-10"],"laba-blue-10-hv_bg_transparent":Ct["laba-blue-10-hv_bg_transparent"],"blue-700":Ct["blue-700"],"blue-700-hv_bg_transparent":Ct["blue-700-hv_bg_transparent"]},variantDisableds:{"default-disabled-checkbox":Ct["default-disabled-checkbox"],"default-disabled-radio":Ct["default-disabled-radio"]},borderRadius:vo,typography:Ad,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"}},D=()=>n?y.variantDisableds[n]:h==="checkbox"?Ct["default-disabled-checkbox"]:Ct["default-disabled-radio"];return S.jsxs("div",{className:`${Ct.container} ${r??""}`,children:[S.jsxs("div",{className:Ct["container-input"],children:[S.jsx("input",{id:s??l,type:h,name:l,className:`${y.size[d]} ${y.variants[f]}
|
124
|
+
${y.borderRadius[u]} ${D()} ${c??""}`,ref:t,...v}),S.jsx("span",{className:`${Ct["checked-icon"]} ${b??""}`,children:g?S.jsx(S.Fragment,{children:g}):S.jsx(S.Fragment,{children:h==="checkbox"?S.jsx(D4,{className:a}):S.jsx(S4,{className:a})})})]}),m&&S.jsx("label",{className:`${y.fonts[o]} ${y.typography[p]}
|
125
|
+
${Ct.label} ${v.disabled?Ct.disabled:""} ${i??""}`,htmlFor:s??l,children:m})]})});$u.displayName="RadioCheckbox";const xA="_container_l9lii_1",CA="_disabled_l9lii_5",wA="_label_l9lii_9",DA="_desc_l9lii_12",Xr={container:xA,"laba-blue-01":"_laba-blue-01_l9lii_1","blue-50":"_blue-50_l9lii_1",disabled:CA,label:wA,desc:DA,"same-background":"_same-background_l9lii_15","custom-typography":"_custom-typography_l9lii_25"},SA=({radioCheckboxProps:e,name:t,id:n,type:r="checkbox",typographyLabel:i,typographyDesc:a,fonts:o,borderRadius:s="8px",className:l,disabled:u,variants:c,label:d,desc:f,backgroundWithHover:h=!1,...g})=>{const m={borderRadius:vo,typographyLabel:Ad,typographyDesc:Ad,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-01":Xr["laba-blue-01"],"blue-50":Xr["blue-50"]}},p=()=>o?m.fonts[o]:r==="checkbox"?m.fonts.lato:m.fonts.inter,b=()=>c?m.variants[c]:r==="checkbox"?m.variants["laba-blue-01"]:m.variants["blue-50"];return S.jsxs("label",{className:`${Xr.container} ${h?Xr["same-background"]:""}
|
126
126
|
${m.borderRadius[s]}
|
127
|
-
${p()} ${b()} ${u?Xr.disabled:""} ${l??""}`,htmlFor:n??t,children:[
|
128
|
-
${i?`${m.typographyLabel[i]} custom-typography`:""}`,children:d}),
|
129
|
-
${l??""}`,...m,children:[d&&
|
130
|
-
${m||u.subs.length>0&&b?(
|
131
|
-
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[
|
132
|
-
${m||u.subs.length>0&&b?(
|
133
|
-
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[x.isValidElement(u.svgIcon)&&E.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&b||h?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:[x.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??b?"":"-mt-2"}`,children:[d,E.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!b?tt.hidden:""}`,children:u.subs.map(I=>x.createElement(E4,{...I,as:I.manualRoute?"div":I.subs.length>0?e:u.linkComponent,key:I.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,{})},I4=x.forwardRef((e,t)=>{var B;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:f="payhere-brand-base-white",footer:h,withInheritance:g,...m}=e,p=x.useRef(null),b={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":fn["payhere-brand-base-white"],"payhere-brand-base-transparent":fn["payhere-brand-base-transparent"],"laba-white":fn["laba-white"]}},[v,y]=x.useState(null),[w,C]=x.useState(null),[S,I]=x.useState(""),[D,$]=x.useState(),[R,_]=x.useState(0),P=()=>{var V;let T=0;const F=document.getElementById("icon-company-sidebar");(V=F==null?void 0:F.childNodes)==null||V.forEach(j=>{T+=j.getBoundingClientRect().width??0}),$(T+c+"px")},M=()=>{_(window.innerWidth)},A=()=>{y(!w),w?$("auto"):setTimeout(()=>{P()},100)};return x.useEffect(()=>{R>=768?(y(!0),setTimeout(()=>{P()},100)):(y(!1),$("auto"))},[R]),x.useEffect(()=>{typeof v=="boolean"&&C(v)},[v]),x.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:y,handlerClickCollapse:A}),[v,w]),x.useEffect(()=>(i&&i.split("/").length>1&&I(i+"/"),P(),M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)),[]),E.jsxs("div",{className:b.variants[f],...m,ref:p,children:[E.jsxs("div",{id:"1ru-sidebar",className:`${fn.sidebar} ${typeof w=="boolean"&&w?fn["sidebar-open"]:""} ${typeof w=="boolean"&&!w?fn["sidebar-close"]:""}`,children:[x.isValidElement(s)&&E.jsxs("div",{className:fn["button-collaps-sidebar"],onClick:A,children:[v&&s,v?"":x.isValidElement(l)?l:s]}),E.jsx("div",{className:fn["container-icon-company-sidebar"],children:E.jsxs("div",{id:"icon-company-sidebar",className:fn["icon-company-sidebar"],style:{width:D&&b.withCuctomWidthIconCompany.includes(f)?D:"100%"},children:[x.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:w,setOpenSidebar:y})]})}),E.jsx("div",{className:fn["menu-sidebar"],onMouseOver:()=>{v||C(!0)},onMouseOut:()=>{v||C(!1)},children:u.map(T=>x.createElement(E4,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:S,open:w,patch:i,iconSubs:o,variant:f,setShow:I,onClickItems:d}))}),h&&E.jsxs("div",{className:w?"1ru-opacity-[1]":"1ru-opacity-0",children:[x.isValidElement(h)&&E.jsx("div",{children:h}),typeof h=="function"&&E.jsx("div",{children:h()})]})]}),v&&E.jsx("div",{className:fn["splace-screen"],onClick:A}),E.jsxs("div",{className:fn["content-sidebar"],children:[g&&((B=x.Children)==null?void 0:B.map(r,T=>E.jsx(E.Fragment,{children:x.isValidElement(T)&&E.jsx(E.Fragment,{children:x.cloneElement(T,{openSidebar:v,handlerClickCollapse:A})})}))),!g&&E.jsx(E.Fragment,{children:r})]})]})});I4.displayName="Sidebar";const TF="_collapse_gto9s_1",MF={collapse:TF},kF=({children:e,id:t,open:n,className:r,maxCollapsedHeight:i="0px",triggerCalCulateContainer:a,delayTriggerCalculateHeight:o=0})=>{const[s,l]=x.useState("1000vh"),u=()=>{var d;const c=((d=document==null?void 0:document.getElementById(t))==null?void 0:d.offsetHeight)??0;l(c||"1000vh")};return x.useEffect(()=>{const c=setTimeout(u,o);return window==null||window.addEventListener("resize",u),window==null||window.addEventListener("load",u),()=>{clearTimeout(c),window==null||window.removeEventListener("resize",u),window==null||window.removeEventListener("load",u)}},[a]),E.jsx("div",{className:MF.collapse,style:{maxHeight:n?s:i},children:E.jsx("div",{id:t,className:r??"",children:e})})},BF="_modal_9v1mi_1",vr={"center-layout":"_center-layout_9v1mi_1",modal:BF,"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"},VF=({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",f={size:{small:vr["modal-small"],medium:vr["modal-medium"],regular:vr["modal-regular"],large:vr["modal-large"]}},h=()=>{typeof u=="function"&&u()};return E.jsx(E.Fragment,{children:a&&document.getElementById(r)&&Lo.createPortal(E.jsx("div",{id:n,onClick:h,className:`${vr.modal} ${i?vr["with-overlay"]:""} ${a?vr["modal-show"]:""} ${l??""}`,children:E.jsx(d,{onClick:g=>g.stopPropagation(),className:`${vr["modal-content"]} ${f.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},OF="_dot_10oqk_31",Mn={"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:OF,"right-content":"_right-content_10oqk_34"},NF=({children:e,noTime:t=!1})=>E.jsx("div",{className:`${Mn["timeline-container"]} ${t?Mn["no-time"]:""}`,children:e}),LF=({children:e,time:t,clasName:n,noTime:r=!1})=>E.jsxs("div",{className:Mn["timeline-content"],children:[E.jsx("div",{className:`${Mn["left-content"]} ${r?Mn["no-time"]:""}`,children:E.jsxs("div",{className:Mn["time-content"],children:[!r&&E.jsx("time",{className:Mn["text-time"],children:t??""}),E.jsx("div",{className:Mn.dot})]})}),E.jsx("div",{className:`${Mn["right-content"]} ${r?Mn["no-time"]:""} ${n??""}`,children:e})]}),jF=Object.assign(NF,{TimelineContent:LF}),Qm=(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},HF=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber"})=>{const u=s?{[l]:1}:{},[c,d]=x.useState(Qm(i??{},o,"")),[f,h]=x.useState(iw(n,Qm(r??{},o,n))),[g,m]=x.useState(!1),p=(C,S)=>C.map(I=>I[S]).join(","),b=(C,S)=>C.map(I=>I[S]),v=(C,S)=>{const I={};return Object.keys(S).forEach(D=>{I[`${C}${D}`]=S[D]}),I},y=(C,S,I,D)=>{let $=C;const R=v(n,{[S]:C});Array.isArray(C)&&(I==="array-of-object-to-array"?$=b(C,D):I==="array-of-object-to-string"?$=p(C,D):I==="array-to-string"&&($=$.toString())),typeof t=="function"&&t({...c,[S]:$,...u},{...f,...R}),d(_=>({..._,[S]:$})),h(_=>({..._,...R}))},w=(C,S)=>{const D=v(n,{...S??C});typeof t=="function"&&t({...c,...C,...u},{...f,...D}),d($=>({...$,...C})),h($=>({...$,...D}))};return Yo(()=>{!g&&typeof t=="function"&&a&&(t(c,f),m(!0))},[c,f,g,a]),E.jsx(E.Fragment,{children:e({handlerOnChange:y,handlerOnChangeNative:w,value:c,nativeValue:f})})};function ah(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 Po;(function(e){e.event="event",e.props="prop"})(Po||(Po={}));function ir(){}function WF(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 wi(e){return!!(e||"").match(/\d/)}function hi(e){return e==null}function zF(e){return typeof e=="number"&&isNaN(e)}function _4(e){return hi(e)||zF(e)||typeof e=="number"&&!isFinite(e)}function $4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function GF(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 ZF(e,t,n){var r=GF(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 XF(e){var t=x.useRef(e);t.current=e;var n=x.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function oh(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 YF(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 R4(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function ep(e,t){return Array(t+1).join(e)}function A4(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."+ep("0",Math.abs(o))+i:o>=s?i=i+ep("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function tp(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=oh(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,p,b){return m.length>b?(Number(m[0])+Number(p)).toString()+m.substring(1,m.length):p+m},c[0]));var f=R4(c[1]||"",t,n),h=s?"-":"",g=r?".":"";return""+h+d+g+f}function Sr(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 F4=WF(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}}}),UF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function JF(e,t,n){return Math.min(Math.max(e,t),n)}function Ic(e){return Math.max(e.selectionStart,e.selectionEnd)}function KF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function P4(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function T4(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function qF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function QF(e,t,n,r,i,a,o){o===void 0&&(o=qF);var s=i.findIndex(function(w){return w}),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={},f=new Array(u),h=0;h<u;h++){f[h]=-1;for(var g=0,m=c;g<m;g++){var p=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:g});if(p&&d[g]!==!0){f[h]=g,d[g]=!0;break}}}for(var b=r;b<u&&(f[b]===-1||!a(n[b]));)b++;var v=b===u||f[b]===-1?c:f[b];for(b=r-1;b>0&&f[b]===-1;)b--;var y=b===-1||f[b]===-1?0:f[b]+1;return y>v?v:r-y<v-r?y:v}function Gl(e,t,n,r){var i=e.length;if(t=JF(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 e7(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(wi(e[n])||wi(e[n-1]));return t}function M4(e,t,n,r,i,a){a===void 0&&(a=ir);var o=XF(function(g,m){var p,b;return _4(g)?(b="",p=""):typeof g=="number"||m?(b=typeof g=="number"?A4(g):g,p=r(b)):(b=i(g,void 0),p=r(b)),{formattedValue:p,numAsString:b}}),s=x.useState(function(){return o(hi(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,f=n;hi(e)&&(d=l.numAsString,f=!0);var h=o(d,f);return x.useMemo(function(){u(h)},[h.formattedValue]),[l,c]}function t7(e){return e.replace(/[^0-9]/g,"")}function n7(e){return e}function k4(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=n7);var s=e.removeFormatting;s===void 0&&(s=t7);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=ir);var h=e.onKeyDown;h===void 0&&(h=ir);var g=e.onMouseUp;g===void 0&&(g=ir);var m=e.onFocus;m===void 0&&(m=ir);var p=e.onBlur;p===void 0&&(p=ir);var b=e.value,v=e.getCaretBoundary;v===void 0&&(v=e7);var y=e.isValidInputCharacter;y===void 0&&(y=wi);var w=e.isCharacterSame,C=ah(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=M4(b,l,!!u,o,s,c),I=S[0],D=I.formattedValue,$=I.numAsString,R=S[1],_=x.useRef(),P=x.useRef({formattedValue:D,numAsString:$}),M=function(ee,ne){P.current={formattedValue:ee.formattedValue,numAsString:ee.value},R(ee,ne)},A=x.useState(!1),B=A[0],T=A[1],F=x.useRef(null),V=x.useRef({setCaretTimeout:null,focusTimeout:null});x.useEffect(function(){return T(!0),function(){clearTimeout(V.current.setCaretTimeout),clearTimeout(V.current.focusTimeout)}},[]);var j=o,N=function(ee,ne){var he=parseFloat(ne);return{formattedValue:ee,value:ne,floatValue:isNaN(he)?void 0:he}},Z=function(ee,ne,he){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Sr(ee,ne),V.current.setCaretTimeout=setTimeout(function(){ee.value===he&&ee.selectionStart!==ne&&Sr(ee,ne)},0))},z=function(ee,ne,he){return Gl(ee,ne,v(ee),he)},q=function(ee,ne,he){var Oe=v(ne),ut=QF(ne,D,ee,he,Oe,y,w);return ut=Gl(ne,ut,Oe),ut},W=function(ee){var ne=ee.formattedValue;ne===void 0&&(ne="");var he=ee.input,Oe=ee.source,ut=ee.event,Se=ee.numAsString,xe;if(he){var Ot=ee.inputValue||he.value,Nt=Ic(he);he.value=ne,xe=q(Ot,ne,Nt),xe!==void 0&&Z(he,xe,ne)}ne!==D&&M(N(ne,Se),{event:ut,source:Oe})};x.useEffect(function(){var ee=P.current,ne=ee.formattedValue,he=ee.numAsString;(D!==ne||$!==he)&&M(N(D,$),{event:void 0,source:Po.props})},[D,$]);var H=F.current?Ic(F.current):void 0,O=typeof window<"u"?x.useLayoutEffect:x.useEffect;O(function(){var ee=F.current;if(D!==P.current.formattedValue&&ee){var ne=q(P.current.formattedValue,D,H);ee.value=D,Z(ee,ne,D)}},[D]);var G=function(ee,ne,he){var Oe=ne.target,ut=_.current?UF(_.current,Oe.selectionEnd):F4(D,ee),Se=Object.assign(Object.assign({},ut),{lastValue:D}),xe=s(ee,Se),Ot=j(xe);if(xe=s(Ot,void 0),d&&!d(N(Ot,xe))){var Nt=ne.target,Lt=Ic(Nt),un=q(ee,D,Lt);return Nt.value=D,Z(Nt,un,D),!1}return W({formattedValue:Ot,numAsString:xe,inputValue:ee,event:ne,source:he,input:ne.target}),!0},J=function(ee,ne){ne===void 0&&(ne=0);var he=ee.selectionStart,Oe=ee.selectionEnd;_.current={selectionStart:he,selectionEnd:Oe+ne}},re=function(ee){var ne=ee.target,he=ne.value,Oe=G(he,ee,Po.event);Oe&&f(ee),_.current=void 0},fe=function(ee){var ne=ee.target,he=ee.key,Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe;he==="ArrowLeft"||he==="Backspace"?xe=Math.max(Oe-1,0):he==="ArrowRight"?xe=Math.min(Oe+1,Se.length):he==="Delete"&&(xe=Oe);var Ot=0;he==="Delete"&&Oe===ut&&(Ot=1);var Nt=he==="ArrowLeft"||he==="ArrowRight";if(xe===void 0||Oe!==ut&&!Nt){h(ee),J(ne,Ot);return}var Lt=xe;if(Nt){var un=he==="ArrowLeft"?"left":"right";Lt=z(Se,xe,un),Lt!==xe&&ee.preventDefault()}else he==="Delete"&&!y(Se[xe])?Lt=z(Se,xe,"right"):he==="Backspace"&&!y(Se[xe])&&(Lt=z(Se,xe,"left"));Lt!==xe&&Z(ne,Lt,Se),h(ee),J(ne,Ot)},le=function(ee){var ne=ee.target,he=function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;if(Se===void 0&&(Se=""),Oe===ut){var xe=z(Se,Oe);xe!==Oe&&Z(ne,xe,Se)}};he(),requestAnimationFrame(function(){he()}),g(ee),J(ne)},X=function(ee){ee.persist&&ee.persist();var ne=ee.target,he=ee.currentTarget;F.current=ne,V.current.focusTimeout=setTimeout(function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe=z(Se,Oe);xe!==Oe&&!(Oe===0&&ut===Se.length)&&Z(ne,xe,Se),m(Object.assign(Object.assign({},ee),{currentTarget:he}))},0)},Ae=function(ee){F.current=null,clearTimeout(V.current.focusTimeout),clearTimeout(V.current.setCaretTimeout),p(ee)},Me=B&&KF()?"numeric":void 0,Xe=Object.assign({inputMode:Me},C,{type:t,value:D,onChange:re,onKeyDown:fe,onMouseUp:le,onFocus:X,onBlur:Ae});if(n==="text")return i?x.createElement(x.Fragment,null,i(D,C)||null):x.createElement("span",Object.assign({},C,{ref:a}),D);if(r){var et=r;return x.createElement(et,Object.assign({},Xe,{ref:a}))}return x.createElement("input",Object.assign({},Xe,{ref:a}))}function np(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=Ru(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=oh(e,o),h=f.beforeDecimal,g=f.afterDecimal,m=f.addNegation;return n!==void 0&&(g=R4(g,n,!!r)),u&&(h=ZF(h,u,s)),i&&(h=i+h),a&&(g=g+a),m&&(h="-"+h),e=h+(d&&c||"")+g,e}function Ru(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 r7(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 i7(e,t){return new RegExp("(^-)|[0-9]|"+$4(e),"g")}function a7(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function o7(e,t,n){var r;t===void 0&&(t=P4(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,f=Ru(n),h=f.allowedDecimalSeparators,g=f.decimalSeparator,m=e[d]===g;if(wi(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&h.indexOf(e[c])!==-1){var p=s===0?"":g;e=e.substring(0,c)+p+e.substring(c+1,e.length)}var b=function(F,V,j){var N=!1,Z=!1;a.startsWith("-")?N=!1:F.startsWith("--")?(N=!1,Z=!0):o.startsWith("-")&&F.length===o.length?N=!1:F[0]==="-"&&(N=!0);var z=N?1:0;return Z&&(z=2),z&&(F=F.substring(z),V-=z,j-=z),{value:F,start:V,end:j,hasNegation:N}},v=b(e,c,d),y=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var w=b(t.lastValue,l.start,l.end),C=w.start,S=w.end,I=w.value,D=e.substring(c,d);e.length&&I.length&&(C>I.length-o.length||S<a.length)&&!(D&&o.startsWith(D))&&(e=I);var $=0;e.startsWith(a)?$+=a.length:c<a.length&&($=c),e=e.substring($),d-=$;var R=e.length,_=e.length-o.length;e.endsWith(o)?R=_:(d>_||d>e.length-o.length)&&(R=d),e=e.substring(0,R),e=r7(y?"-"+e:e,i),e=(e.match(i7(g))||[]).join("");var P=e.indexOf(g);e=e.replace(new RegExp($4(g),"g"),function(F,V){return V===P?".":""});var M=oh(e,i),A=M.beforeDecimal,B=M.afterDecimal,T=M.addNegation;return u.end-u.start<l.end-l.start&&A===""&&m&&!parseFloat(B)&&(e=T?"-":""),e}function s7(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 l7(e){var t=Ru(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(`
|
127
|
+
${p()} ${b()} ${u?Xr.disabled:""} ${l??""}`,htmlFor:n??t,children:[S.jsx($u,{id:n,name:t,type:r,disabled:u,...e,...g}),S.jsxs("div",{children:[S.jsx("p",{className:`${Xr.label}
|
128
|
+
${i?`${m.typographyLabel[i]} custom-typography`:""}`,children:d}),S.jsx("p",{className:`${Xr.desc} ${a?`${m.typographyDesc[a]} custom-typography`:""}`,children:f})]})]})},qm={"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"},EA="_container_fqogk_1",IA="_action_fqogk_8",_A="_urls_fqogk_20",$A="_url_fqogk_20",RA="_active_fqogk_32",Hi={container:EA,"laba-blue-10":"_laba-blue-10_fqogk_1","blue-700":"_blue-700_fqogk_1",action:IA,urls:_A,url:$A,active:RA},AA=({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:f,separator:h=">",propsLink:g,...m})=>{const p=e??"div",b={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-10":Hi["laba-blue-10"],"blue-700":Hi["blue-700"]},gapAction:qm,gapUrls:qm},v=y=>!!(Array.isArray(r)&&r.length>0&&r.length-1===y);return S.jsxs("div",{className:`${b.fonts[n]} ${b.variants[t]}
|
129
|
+
${l??""}`,...m,children:[d&&S.jsxs("div",{onClick:d,className:`${Hi.action} ${o?b.gapAction[o]:""}`,children:[c,u]}),S.jsx("div",{className:`${Hi.urls} ${s?b.gapUrls[s]:""}`,children:r==null?void 0:r.map((y,D)=>S.jsxs(x.Fragment,{children:[S.jsx(p,{className:`${Hi.url} ${v(D)?Hi.active:""}`,onClick:()=>{(a==null?void 0:a[D])!==void 0&&typeof a[D]=="function"?a[D]():typeof f=="function"&&f(y)},...g?g(y,D,r):{},children:i[D]}),!v(D)&&S.jsx(S.Fragment,{children:h})]},D))})]})},FA="_sidebar_mnqdg_9",fn={"splace-screen":"_splace-screen_mnqdg_1","payhere-brand-base-white":"_payhere-brand-base-white_mnqdg_6",sidebar:FA,"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"},PA="_hidden_1j95c_62",tt={"base-icon-sidebar":"_base-icon-sidebar_1j95c_1","base-item-sidebar":"_base-item-sidebar_1j95c_1","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-icon-subs-active":"_item-icon-subs-active_1j95c_53","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:PA,"divider-item-sidebar":"_divider-item-sidebar_1j95c_67","hover-sidebar-payhere":"_hover-sidebar-payhere_1j95c_87","hover-sidebar-laba":"_hover-sidebar-laba_1j95c_96"},E4=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var y,D,C,E;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=S.jsx(S.Fragment,{});const f=e??"div",[h,g]=x.useState(!1),m=r===u.slug,p=t.split("/"),b=p.includes(u.name),v=()=>{if(u.subs.length>0)if(b){const I=p.splice(0,p.indexOf(u.name));I.length>0?o(`${I.join("/")}/`):o("")}else o(`${t}${u.name}/`);else typeof s=="function"&&s(u)};return u.isShow?((u.parent===1||u.parent===3)&&(d=S.jsxs(S.Fragment,{children:[S.jsxs(f,{id:u.name,className:`${tt["item-sidebar-1"]} ${(y=c.hoverColor)==null?void 0:y[a]}
|
130
|
+
${m||u.subs.length>0&&b?(D=c.activeColor)==null?void 0:D[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
131
|
+
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[S.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[x.isValidElement(u.svgIcon)&&S.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&b||h?u.svgIconActive:u.svgIcon}),S.jsx("div",{className:tt["item-label"],children:u.label})]}),u.subs.length>0&&n&&S.jsxs("div",{className:tt["item-icon-subs"],children:[x.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&S.jsx("div",{className:tt["divider-item-sidebar"]})]})),(u.parent===2||u.parent===4)&&(d=S.jsxs(S.Fragment,{children:[S.jsxs(f,{id:u.name,className:`${tt["item-sidebar-2"]} ${(C=c.hoverColor)==null?void 0:C[a]}
|
132
|
+
${m||u.subs.length>0&&b?(E=c.activeColor)==null?void 0:E[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
133
|
+
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[x.isValidElement(u.svgIcon)&&S.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&b||h?u.svgIconActive:u.svgIcon}),S.jsx("div",{className:tt["item-label"],children:u.label}),u.subs.length>0&&n&&S.jsxs("div",{className:tt["item-icon-subs"],children:[x.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&S.jsx("div",{className:tt["divider-item-sidebar"]})]})),u.subs.length>0?S.jsxs("div",{className:`${n??b?"":"-mt-2"}`,children:[d,S.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!b?tt.hidden:""}`,children:u.subs.map(I=>x.createElement(E4,{...I,as:I.manualRoute?"div":I.subs.length>0?e:u.linkComponent,key:I.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&S.jsx("div",{className:tt["divider-item-sidebar"]})]}):d):S.jsx(S.Fragment,{})},I4=x.forwardRef((e,t)=>{var B;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:f="payhere-brand-base-white",footer:h,withInheritance:g,...m}=e,p=x.useRef(null),b={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":fn["payhere-brand-base-white"],"payhere-brand-base-transparent":fn["payhere-brand-base-transparent"],"laba-white":fn["laba-white"]}},[v,y]=x.useState(null),[D,C]=x.useState(null),[E,I]=x.useState(""),[w,$]=x.useState(),[R,_]=x.useState(0),P=()=>{var V;let T=0;const F=document.getElementById("icon-company-sidebar");(V=F==null?void 0:F.childNodes)==null||V.forEach(j=>{T+=j.getBoundingClientRect().width??0}),$(T+c+"px")},M=()=>{_(window.innerWidth)},A=()=>{y(!D),D?$("auto"):setTimeout(()=>{P()},100)};return x.useEffect(()=>{R>=768?(y(!0),setTimeout(()=>{P()},100)):(y(!1),$("auto"))},[R]),x.useEffect(()=>{typeof v=="boolean"&&C(v)},[v]),x.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:y,handlerClickCollapse:A}),[v,D]),x.useEffect(()=>(i&&i.split("/").length>1&&I(i+"/"),P(),M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)),[]),S.jsxs("div",{className:b.variants[f],...m,ref:p,children:[S.jsxs("div",{id:"1ru-sidebar",className:`${fn.sidebar} ${typeof D=="boolean"&&D?fn["sidebar-open"]:""} ${typeof D=="boolean"&&!D?fn["sidebar-close"]:""}`,children:[x.isValidElement(s)&&S.jsxs("div",{className:fn["button-collaps-sidebar"],onClick:A,children:[v&&s,v?"":x.isValidElement(l)?l:s]}),S.jsx("div",{className:fn["container-icon-company-sidebar"],children:S.jsxs("div",{id:"icon-company-sidebar",className:fn["icon-company-sidebar"],style:{width:w&&b.withCuctomWidthIconCompany.includes(f)?w:"100%"},children:[x.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:D,setOpenSidebar:y})]})}),S.jsx("div",{className:fn["menu-sidebar"],onMouseOver:()=>{v||C(!0)},onMouseOut:()=>{v||C(!1)},children:u.map(T=>x.createElement(E4,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:E,open:D,patch:i,iconSubs:o,variant:f,setShow:I,onClickItems:d}))}),h&&S.jsxs("div",{className:D?"1ru-opacity-[1]":"1ru-opacity-0",children:[x.isValidElement(h)&&S.jsx("div",{children:h}),typeof h=="function"&&S.jsx("div",{children:h()})]})]}),v&&S.jsx("div",{className:fn["splace-screen"],onClick:A}),S.jsxs("div",{className:fn["content-sidebar"],children:[g&&((B=x.Children)==null?void 0:B.map(r,T=>S.jsx(S.Fragment,{children:x.isValidElement(T)&&S.jsx(S.Fragment,{children:x.cloneElement(T,{openSidebar:v,handlerClickCollapse:A})})}))),!g&&S.jsx(S.Fragment,{children:r})]})]})});I4.displayName="Sidebar";const TA="_collapse_gto9s_1",MA={collapse:TA},kA=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,delayTriggerCalculateHeight:s=0})=>{const[l,u]=x.useState("1000vh"),c=()=>{var f;const d=((f=document==null?void 0:document.getElementById(t))==null?void 0:f.offsetHeight)??0;u(d||"1000vh")};return x.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]),S.jsx("div",{className:`${MA.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:S.jsx("div",{id:t,className:r??"",children:e})})},BA="_modal_9v1mi_1",vr={"center-layout":"_center-layout_9v1mi_1",modal:BA,"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"},VA=({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",f={size:{small:vr["modal-small"],medium:vr["modal-medium"],regular:vr["modal-regular"],large:vr["modal-large"]}},h=()=>{typeof u=="function"&&u()};return S.jsx(S.Fragment,{children:a&&document.getElementById(r)&&Lo.createPortal(S.jsx("div",{id:n,onClick:h,className:`${vr.modal} ${i?vr["with-overlay"]:""} ${a?vr["modal-show"]:""} ${l??""}`,children:S.jsx(d,{onClick:g=>g.stopPropagation(),className:`${vr["modal-content"]} ${f.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},OA="_dot_10oqk_31",Mn={"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:OA,"right-content":"_right-content_10oqk_34"},NA=({children:e,noTime:t=!1})=>S.jsx("div",{className:`${Mn["timeline-container"]} ${t?Mn["no-time"]:""}`,children:e}),LA=({children:e,time:t,clasName:n,noTime:r=!1})=>S.jsxs("div",{className:Mn["timeline-content"],children:[S.jsx("div",{className:`${Mn["left-content"]} ${r?Mn["no-time"]:""}`,children:S.jsxs("div",{className:Mn["time-content"],children:[!r&&S.jsx("time",{className:Mn["text-time"],children:t??""}),S.jsx("div",{className:Mn.dot})]})}),S.jsx("div",{className:`${Mn["right-content"]} ${r?Mn["no-time"]:""} ${n??""}`,children:e})]}),jA=Object.assign(NA,{TimelineContent:LA}),Qm=(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},HA=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber"})=>{const u=s?{[l]:1}:{},[c,d]=x.useState(Qm(i??{},o,"")),[f,h]=x.useState(iw(n,Qm(r??{},o,n))),[g,m]=x.useState(!1),p=(C,E)=>C.map(I=>I[E]).join(","),b=(C,E)=>C.map(I=>I[E]),v=(C,E)=>{const I={};return Object.keys(E).forEach(w=>{I[`${C}${w}`]=E[w]}),I},y=(C,E,I,w)=>{let $=C;const R=v(n,{[E]:C});Array.isArray(C)&&(I==="array-of-object-to-array"?$=b(C,w):I==="array-of-object-to-string"?$=p(C,w):I==="array-to-string"&&($=$.toString())),typeof t=="function"&&t({...c,[E]:$,...u},{...f,...R}),d(_=>({..._,[E]:$})),h(_=>({..._,...R}))},D=(C,E)=>{const w=v(n,{...E??C});typeof t=="function"&&t({...c,...C,...u},{...f,...w}),d($=>({...$,...C})),h($=>({...$,...w}))};return Yo(()=>{!g&&typeof t=="function"&&a&&(t(c,f),m(!0))},[c,f,g,a]),S.jsx(S.Fragment,{children:e({handlerOnChange:y,handlerOnChangeNative:D,value:c,nativeValue:f})})};function ah(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 Po;(function(e){e.event="event",e.props="prop"})(Po||(Po={}));function ir(){}function WA(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 wi(e){return!!(e||"").match(/\d/)}function hi(e){return e==null}function zA(e){return typeof e=="number"&&isNaN(e)}function _4(e){return hi(e)||zA(e)||typeof e=="number"&&!isFinite(e)}function $4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function GA(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 ZA(e,t,n){var r=GA(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 XA(e){var t=x.useRef(e);t.current=e;var n=x.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function oh(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 YA(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 R4(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function ep(e,t){return Array(t+1).join(e)}function A4(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."+ep("0",Math.abs(o))+i:o>=s?i=i+ep("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function tp(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=oh(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,p,b){return m.length>b?(Number(m[0])+Number(p)).toString()+m.substring(1,m.length):p+m},c[0]));var f=R4(c[1]||"",t,n),h=s?"-":"",g=r?".":"";return""+h+d+g+f}function Sr(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 F4=WA(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}}}),UA=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function JA(e,t,n){return Math.min(Math.max(e,t),n)}function Ic(e){return Math.max(e.selectionStart,e.selectionEnd)}function KA(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function P4(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function T4(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function qA(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function QA(e,t,n,r,i,a,o){o===void 0&&(o=qA);var s=i.findIndex(function(D){return D}),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={},f=new Array(u),h=0;h<u;h++){f[h]=-1;for(var g=0,m=c;g<m;g++){var p=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:g});if(p&&d[g]!==!0){f[h]=g,d[g]=!0;break}}}for(var b=r;b<u&&(f[b]===-1||!a(n[b]));)b++;var v=b===u||f[b]===-1?c:f[b];for(b=r-1;b>0&&f[b]===-1;)b--;var y=b===-1||f[b]===-1?0:f[b]+1;return y>v?v:r-y<v-r?y:v}function Gl(e,t,n,r){var i=e.length;if(t=JA(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 eF(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(wi(e[n])||wi(e[n-1]));return t}function M4(e,t,n,r,i,a){a===void 0&&(a=ir);var o=XA(function(g,m){var p,b;return _4(g)?(b="",p=""):typeof g=="number"||m?(b=typeof g=="number"?A4(g):g,p=r(b)):(b=i(g,void 0),p=r(b)),{formattedValue:p,numAsString:b}}),s=x.useState(function(){return o(hi(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,f=n;hi(e)&&(d=l.numAsString,f=!0);var h=o(d,f);return x.useMemo(function(){u(h)},[h.formattedValue]),[l,c]}function tF(e){return e.replace(/[^0-9]/g,"")}function nF(e){return e}function k4(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=nF);var s=e.removeFormatting;s===void 0&&(s=tF);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=ir);var h=e.onKeyDown;h===void 0&&(h=ir);var g=e.onMouseUp;g===void 0&&(g=ir);var m=e.onFocus;m===void 0&&(m=ir);var p=e.onBlur;p===void 0&&(p=ir);var b=e.value,v=e.getCaretBoundary;v===void 0&&(v=eF);var y=e.isValidInputCharacter;y===void 0&&(y=wi);var D=e.isCharacterSame,C=ah(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=M4(b,l,!!u,o,s,c),I=E[0],w=I.formattedValue,$=I.numAsString,R=E[1],_=x.useRef(),P=x.useRef({formattedValue:w,numAsString:$}),M=function(ee,ne){P.current={formattedValue:ee.formattedValue,numAsString:ee.value},R(ee,ne)},A=x.useState(!1),B=A[0],T=A[1],F=x.useRef(null),V=x.useRef({setCaretTimeout:null,focusTimeout:null});x.useEffect(function(){return T(!0),function(){clearTimeout(V.current.setCaretTimeout),clearTimeout(V.current.focusTimeout)}},[]);var j=o,N=function(ee,ne){var he=parseFloat(ne);return{formattedValue:ee,value:ne,floatValue:isNaN(he)?void 0:he}},Z=function(ee,ne,he){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Sr(ee,ne),V.current.setCaretTimeout=setTimeout(function(){ee.value===he&&ee.selectionStart!==ne&&Sr(ee,ne)},0))},z=function(ee,ne,he){return Gl(ee,ne,v(ee),he)},q=function(ee,ne,he){var Oe=v(ne),ut=QA(ne,w,ee,he,Oe,y,D);return ut=Gl(ne,ut,Oe),ut},W=function(ee){var ne=ee.formattedValue;ne===void 0&&(ne="");var he=ee.input,Oe=ee.source,ut=ee.event,Se=ee.numAsString,xe;if(he){var Ot=ee.inputValue||he.value,Nt=Ic(he);he.value=ne,xe=q(Ot,ne,Nt),xe!==void 0&&Z(he,xe,ne)}ne!==w&&M(N(ne,Se),{event:ut,source:Oe})};x.useEffect(function(){var ee=P.current,ne=ee.formattedValue,he=ee.numAsString;(w!==ne||$!==he)&&M(N(w,$),{event:void 0,source:Po.props})},[w,$]);var H=F.current?Ic(F.current):void 0,O=typeof window<"u"?x.useLayoutEffect:x.useEffect;O(function(){var ee=F.current;if(w!==P.current.formattedValue&&ee){var ne=q(P.current.formattedValue,w,H);ee.value=w,Z(ee,ne,w)}},[w]);var G=function(ee,ne,he){var Oe=ne.target,ut=_.current?UA(_.current,Oe.selectionEnd):F4(w,ee),Se=Object.assign(Object.assign({},ut),{lastValue:w}),xe=s(ee,Se),Ot=j(xe);if(xe=s(Ot,void 0),d&&!d(N(Ot,xe))){var Nt=ne.target,Lt=Ic(Nt),un=q(ee,w,Lt);return Nt.value=w,Z(Nt,un,w),!1}return W({formattedValue:Ot,numAsString:xe,inputValue:ee,event:ne,source:he,input:ne.target}),!0},J=function(ee,ne){ne===void 0&&(ne=0);var he=ee.selectionStart,Oe=ee.selectionEnd;_.current={selectionStart:he,selectionEnd:Oe+ne}},re=function(ee){var ne=ee.target,he=ne.value,Oe=G(he,ee,Po.event);Oe&&f(ee),_.current=void 0},fe=function(ee){var ne=ee.target,he=ee.key,Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe;he==="ArrowLeft"||he==="Backspace"?xe=Math.max(Oe-1,0):he==="ArrowRight"?xe=Math.min(Oe+1,Se.length):he==="Delete"&&(xe=Oe);var Ot=0;he==="Delete"&&Oe===ut&&(Ot=1);var Nt=he==="ArrowLeft"||he==="ArrowRight";if(xe===void 0||Oe!==ut&&!Nt){h(ee),J(ne,Ot);return}var Lt=xe;if(Nt){var un=he==="ArrowLeft"?"left":"right";Lt=z(Se,xe,un),Lt!==xe&&ee.preventDefault()}else he==="Delete"&&!y(Se[xe])?Lt=z(Se,xe,"right"):he==="Backspace"&&!y(Se[xe])&&(Lt=z(Se,xe,"left"));Lt!==xe&&Z(ne,Lt,Se),h(ee),J(ne,Ot)},le=function(ee){var ne=ee.target,he=function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;if(Se===void 0&&(Se=""),Oe===ut){var xe=z(Se,Oe);xe!==Oe&&Z(ne,xe,Se)}};he(),requestAnimationFrame(function(){he()}),g(ee),J(ne)},X=function(ee){ee.persist&&ee.persist();var ne=ee.target,he=ee.currentTarget;F.current=ne,V.current.focusTimeout=setTimeout(function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe=z(Se,Oe);xe!==Oe&&!(Oe===0&&ut===Se.length)&&Z(ne,xe,Se),m(Object.assign(Object.assign({},ee),{currentTarget:he}))},0)},Ae=function(ee){F.current=null,clearTimeout(V.current.focusTimeout),clearTimeout(V.current.setCaretTimeout),p(ee)},Me=B&&KA()?"numeric":void 0,Xe=Object.assign({inputMode:Me},C,{type:t,value:w,onChange:re,onKeyDown:fe,onMouseUp:le,onFocus:X,onBlur:Ae});if(n==="text")return i?x.createElement(x.Fragment,null,i(w,C)||null):x.createElement("span",Object.assign({},C,{ref:a}),w);if(r){var et=r;return x.createElement(et,Object.assign({},Xe,{ref:a}))}return x.createElement("input",Object.assign({},Xe,{ref:a}))}function np(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=Ru(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=oh(e,o),h=f.beforeDecimal,g=f.afterDecimal,m=f.addNegation;return n!==void 0&&(g=R4(g,n,!!r)),u&&(h=ZA(h,u,s)),i&&(h=i+h),a&&(g=g+a),m&&(h="-"+h),e=h+(d&&c||"")+g,e}function Ru(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 rF(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 iF(e,t){return new RegExp("(^-)|[0-9]|"+$4(e),"g")}function aF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function oF(e,t,n){var r;t===void 0&&(t=P4(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,f=Ru(n),h=f.allowedDecimalSeparators,g=f.decimalSeparator,m=e[d]===g;if(wi(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&h.indexOf(e[c])!==-1){var p=s===0?"":g;e=e.substring(0,c)+p+e.substring(c+1,e.length)}var b=function(F,V,j){var N=!1,Z=!1;a.startsWith("-")?N=!1:F.startsWith("--")?(N=!1,Z=!0):o.startsWith("-")&&F.length===o.length?N=!1:F[0]==="-"&&(N=!0);var z=N?1:0;return Z&&(z=2),z&&(F=F.substring(z),V-=z,j-=z),{value:F,start:V,end:j,hasNegation:N}},v=b(e,c,d),y=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var D=b(t.lastValue,l.start,l.end),C=D.start,E=D.end,I=D.value,w=e.substring(c,d);e.length&&I.length&&(C>I.length-o.length||E<a.length)&&!(w&&o.startsWith(w))&&(e=I);var $=0;e.startsWith(a)?$+=a.length:c<a.length&&($=c),e=e.substring($),d-=$;var R=e.length,_=e.length-o.length;e.endsWith(o)?R=_:(d>_||d>e.length-o.length)&&(R=d),e=e.substring(0,R),e=rF(y?"-"+e:e,i),e=(e.match(iF(g))||[]).join("");var P=e.indexOf(g);e=e.replace(new RegExp($4(g),"g"),function(F,V){return V===P?".":""});var M=oh(e,i),A=M.beforeDecimal,B=M.afterDecimal,T=M.addNegation;return u.end-u.start<l.end-l.start&&A===""&&m&&!parseFloat(B)&&(e=T?"-":""),e}function sF(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 lF(e){var t=Ru(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(`
|
134
134
|
Decimal separator can't be same as thousand separator.
|
135
135
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
136
136
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
@@ -138,7 +138,7 @@ You should wrap it with \`css\` like this:
|
|
138
138
|
Prefix can't start with '-' when allowNegative is true.
|
139
139
|
prefix: `+i+`
|
140
140
|
allowNegative: `+a+`
|
141
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function u7(e){e=l7(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ir);var a=e.onBlur;a===void 0&&(a=ir);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,g=ah(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Ru(e),p=m.decimalSeparator,b=m.allowedDecimalSeparators,v=function(T){return np(T,e)},y=function(T,F){return o7(T,F,e)},w=hi(d)?c:d,C=f??a7(w,u,t);hi(d)?hi(c)||(C=C||typeof c=="number"):C=C||typeof d=="number";var S=function(T){return _4(T)?T:(typeof T=="number"&&(T=A4(T)),C&&typeof s=="number"?tp(T,s,!!l):T)},I=M4(S(d),S(c),!!C,v,y,h),D=I[0],$=D.numAsString,R=D.formattedValue,_=I[1],P=function(T){var F=T.target,V=T.key,j=F.selectionStart,N=F.selectionEnd,Z=F.value;if(Z===void 0&&(Z=""),(V==="Backspace"||V==="Delete")&&N<u.length){T.preventDefault();return}if(j!==N){i(T);return}V==="Backspace"&&Z[0]==="-"&&j===u.length+1&&n&&Sr(F,1),s&&l&&(V==="Backspace"&&Z[j-1]===p?(Sr(F,j-1),T.preventDefault()):V==="Delete"&&Z[j]===p&&T.preventDefault()),b!=null&&b.includes(V)&&Z[j]===p&&Sr(F,j+1);var z=o===!0?",":o;V==="Backspace"&&Z[j-1]===z&&Sr(F,j-1),V==="Delete"&&Z[j]===z&&Sr(F,j+1),i(T)},M=function(T){var F=$;if(F.match(/\d/g)||(F=""),r||(F=YF(F)),l&&s&&(F=tp(F,s,l)),F!==$){var V=np(F,e);_({formattedValue:V,value:F,floatValue:parseFloat(F)},{event:T,source:Po.event})}a(T)},A=function(T){return T===p?!0:wi(T)},B=function(T){var F=T.currentValue,V=T.lastValue,j=T.formattedValue,N=T.currentValueIndex,Z=T.formattedValueIndex,z=F[N],q=j[Z],W=F4(V,F),H=W.to;return N>=H.start&&N<H.end&&b&&b.includes(z)&&q===p?!0:z===q};return Object.assign(Object.assign({},g),{value:R,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:B,onValueChange:_,format:v,removeFormatting:y,getCaretBoundary:function(T){return s7(T,e)},onKeyDown:P,onBlur:M})}function c7(e){var t=u7(e);return x.createElement(k4,Object.assign({},t))}function d7(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]||T4(i,o),o+=1);return s.join("")}function f7(e,t,n){t===void 0&&(t=P4(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(p){return r[p]===i},u=function(p,b){for(var v="",y=0;y<p.length;y++)l(b+y)&&wi(p[y])&&(v+=p[y]);return v},c=function(p){return p.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="",f=0;f<e.length;f++)if(l(f))wi(e[f])&&(d+=e[f]);else if(e[f]!==r[f])return c(e);return d}var h=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(h,0)+c(g)+u(m,a.end)}function h7(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(f,h){var g=void 0;f===i&&(o++,g=T4(r,o-1),s===-1&&e[h]===g&&(s=h)),l[h]=g});for(var u=function(f){return n[f]===i&&e[f]!==l[f]},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 g7(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 m7(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function p7(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=ir);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=ah(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);g7(e);var u=function(g){return h7(g,e)},c=function(g){var m=g.key,p=g.target,b=p.selectionStart,v=p.selectionEnd,y=p.value;if(b!==v){r(g);return}var w=b;if(m==="Backspace"||m==="Delete"){var C="right";if(m==="Backspace"){for(;w>0&&t[w-1]!==i;)w--;C="left"}else{for(var S=t.length;w<S&&t[w]!==i;)w++;C="right"}w=Gl(y,w,u(y),C)}else t[w]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(w=Gl(y,w+1,u(y),"right"));w!==b&&Sr(p,w),r(g)},d=hi(a)?o:a,f=s??m7(d,t),h=Object.assign(Object.assign({},e),{valueIsNumericString:f});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:f,inputMode:n,format:function(g){return d7(g,h)},removeFormatting:function(g,m){return f7(g,m,h)},getCaretBoundary:u,onKeyDown:c})}function b7(e){var t=p7(e);return x.createElement(k4,Object.assign({},t))}const v7=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>E.jsx(c7,{isAllowed:o=>e!==void 0&&cl(e)&&Number(o.value)>e?(typeof r=="function"&&r({target:{value:e.toString()}}),!1):t!==void 0&&cl(t)&&Number(o.value)<t?(typeof r=="function"&&r({target:{value: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}),y7=({children:e,containerId:t="portal-root"})=>{const[n,r]=x.useState(null);return x.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?Lo.createPortal(e,n):null},x7={"button-remove":"_button-remove_1o2yg_1"},C7=()=>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"})}),w7=()=>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"})}),B4=e=>{const t=x.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external"}=e,d=o||["image/png","image/jpeg","image/jpg"],[f,h]=x.useState(""),g={internal:f||s,external:s||f},m=v=>{if(v!=null&&v.length){const y=v[0],w=y.size/1024/1024;if(!d.some(C=>{var S;return(S=v[0].type)==null?void 0:S.includes(C)}))h("Berkas tidak didukung, silahkan pilih file kembali.");else if(w>a){const C=`${v.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`;h(C)}else{if(!(t!=null&&t.current))return;h(""),r(y),t.current.value=""}}},p=v=>{var y;v.preventDefault(),t!=null&&t.current&&((y=t.current)==null||y.click())},b=v=>{v.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return E.jsxs(E.Fragment,{children:[E.jsx("input",{accept:d==null?void 0:d.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:v=>{m(v.target.files)}}),E.jsx(Jd,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:v=>p(v),startIcon:E.jsx(w7,{}),endIcon:n&&E.jsx("div",{className:x7["button-remove"],onClick:v=>b(v),children:E.jsx(C7,{})}),error:g[c],...u})]})};B4.displayName="UploadFile";const D7=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,...l})=>{const[u,c]=x.useState(e),[d,f]=x.useState(0),h=x.useRef(new Array(t).fill(null)),g=x.useRef(null),m=x.useCallback(()=>{var C;const v=((C=g.current)==null?void 0:C.offsetWidth)??0;let y=0,w=0;h.current.forEach((S,I)=>{S&&(y+=S.offsetWidth,I>0&&(y+=o),y<=v&&w++)}),c(x.Children.toArray(e).slice(0,w)),f(x.Children.count(e)-w)},[e,o]);x.useEffect(()=>(m(),window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)}),[m]);const p=x.useMemo(()=>x.Children.map(u,(v,y)=>x.cloneElement(v,{ref:w=>h.current[y]=w,key:`child-${y}`})),[u]),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:g,style:b,className:a??"",...l,children:p}),d>0&&E.jsx(E.Fragment,{children:r(d)})]})},S7="_container_1wopr_1",E7="_image_1wopr_5",Un={container:S7,"image-content":"_image-content_1wopr_5",image:E7,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},I7=({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
|
141
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function uF(e){e=lF(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ir);var a=e.onBlur;a===void 0&&(a=ir);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,g=ah(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Ru(e),p=m.decimalSeparator,b=m.allowedDecimalSeparators,v=function(T){return np(T,e)},y=function(T,F){return oF(T,F,e)},D=hi(d)?c:d,C=f??aF(D,u,t);hi(d)?hi(c)||(C=C||typeof c=="number"):C=C||typeof d=="number";var E=function(T){return _4(T)?T:(typeof T=="number"&&(T=A4(T)),C&&typeof s=="number"?tp(T,s,!!l):T)},I=M4(E(d),E(c),!!C,v,y,h),w=I[0],$=w.numAsString,R=w.formattedValue,_=I[1],P=function(T){var F=T.target,V=T.key,j=F.selectionStart,N=F.selectionEnd,Z=F.value;if(Z===void 0&&(Z=""),(V==="Backspace"||V==="Delete")&&N<u.length){T.preventDefault();return}if(j!==N){i(T);return}V==="Backspace"&&Z[0]==="-"&&j===u.length+1&&n&&Sr(F,1),s&&l&&(V==="Backspace"&&Z[j-1]===p?(Sr(F,j-1),T.preventDefault()):V==="Delete"&&Z[j]===p&&T.preventDefault()),b!=null&&b.includes(V)&&Z[j]===p&&Sr(F,j+1);var z=o===!0?",":o;V==="Backspace"&&Z[j-1]===z&&Sr(F,j-1),V==="Delete"&&Z[j]===z&&Sr(F,j+1),i(T)},M=function(T){var F=$;if(F.match(/\d/g)||(F=""),r||(F=YA(F)),l&&s&&(F=tp(F,s,l)),F!==$){var V=np(F,e);_({formattedValue:V,value:F,floatValue:parseFloat(F)},{event:T,source:Po.event})}a(T)},A=function(T){return T===p?!0:wi(T)},B=function(T){var F=T.currentValue,V=T.lastValue,j=T.formattedValue,N=T.currentValueIndex,Z=T.formattedValueIndex,z=F[N],q=j[Z],W=F4(V,F),H=W.to;return N>=H.start&&N<H.end&&b&&b.includes(z)&&q===p?!0:z===q};return Object.assign(Object.assign({},g),{value:R,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:B,onValueChange:_,format:v,removeFormatting:y,getCaretBoundary:function(T){return sF(T,e)},onKeyDown:P,onBlur:M})}function cF(e){var t=uF(e);return x.createElement(k4,Object.assign({},t))}function dF(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]||T4(i,o),o+=1);return s.join("")}function fF(e,t,n){t===void 0&&(t=P4(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(p){return r[p]===i},u=function(p,b){for(var v="",y=0;y<p.length;y++)l(b+y)&&wi(p[y])&&(v+=p[y]);return v},c=function(p){return p.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="",f=0;f<e.length;f++)if(l(f))wi(e[f])&&(d+=e[f]);else if(e[f]!==r[f])return c(e);return d}var h=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(h,0)+c(g)+u(m,a.end)}function hF(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(f,h){var g=void 0;f===i&&(o++,g=T4(r,o-1),s===-1&&e[h]===g&&(s=h)),l[h]=g});for(var u=function(f){return n[f]===i&&e[f]!==l[f]},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 gF(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 mF(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function pF(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=ir);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=ah(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);gF(e);var u=function(g){return hF(g,e)},c=function(g){var m=g.key,p=g.target,b=p.selectionStart,v=p.selectionEnd,y=p.value;if(b!==v){r(g);return}var D=b;if(m==="Backspace"||m==="Delete"){var C="right";if(m==="Backspace"){for(;D>0&&t[D-1]!==i;)D--;C="left"}else{for(var E=t.length;D<E&&t[D]!==i;)D++;C="right"}D=Gl(y,D,u(y),C)}else t[D]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(D=Gl(y,D+1,u(y),"right"));D!==b&&Sr(p,D),r(g)},d=hi(a)?o:a,f=s??mF(d,t),h=Object.assign(Object.assign({},e),{valueIsNumericString:f});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:f,inputMode:n,format:function(g){return dF(g,h)},removeFormatting:function(g,m){return fF(g,m,h)},getCaretBoundary:u,onKeyDown:c})}function bF(e){var t=pF(e);return x.createElement(k4,Object.assign({},t))}const vF=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>S.jsx(cF,{isAllowed:o=>e!==void 0&&cl(e)&&Number(o.value)>e?(typeof r=="function"&&r({target:{value:e.toString()}}),!1):t!==void 0&&cl(t)&&Number(o.value)<t?(typeof r=="function"&&r({target:{value: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}),yF=({children:e,containerId:t="portal-root"})=>{const[n,r]=x.useState(null);return x.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?Lo.createPortal(e,n):null},xF={"button-remove":"_button-remove_1o2yg_1"},CF=()=>S.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.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"})}),wF=()=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.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"})}),B4=e=>{const t=x.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,f=o||["image/png","image/jpeg","image/jpg"],[h,g]=x.useState(""),m={internal:h||s,external:s||h},p=y=>{if(y!=null&&y.length){const D=y[0],C=D.size/1024/1024;let E="";if(f.some(I=>{var w;return(w=y[0].type)==null?void 0:w.includes(I)})?C>a?E=`${y.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(D):E="Berkas tidak didukung, silahkan pilih file kembali.",g(E),d==null||d(E),!(t!=null&&t.current))return;t.current.value=""}},b=y=>{var D;y.preventDefault(),t!=null&&t.current&&((D=t.current)==null||D.click())},v=y=>{y.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return S.jsxs(S.Fragment,{children:[S.jsx("input",{accept:f==null?void 0:f.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:y=>{p(y.target.files)}}),S.jsx(Jd,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:y=>b(y),startIcon:S.jsx(wF,{}),endIcon:n&&S.jsx("div",{className:xF["button-remove"],onClick:y=>v(y),children:S.jsx(CF,{})}),error:m[c],...u})]})};B4.displayName="UploadFile";const DF=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,...l})=>{const[u,c]=x.useState(e),[d,f]=x.useState(0),h=x.useRef(new Array(t).fill(null)),g=x.useRef(null),m=x.useCallback(()=>{var C;const v=((C=g.current)==null?void 0:C.offsetWidth)??0;let y=0,D=0;h.current.forEach((E,I)=>{E&&(y+=E.offsetWidth,I>0&&(y+=o),y<=v&&D++)}),c(x.Children.toArray(e).slice(0,D)),f(x.Children.count(e)-D)},[e,o]);x.useEffect(()=>(m(),window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)}),[m]);const p=x.useMemo(()=>x.Children.map(u,(v,y)=>x.cloneElement(v,{ref:D=>h.current[y]=D,key:`child-${y}`})),[u]),b={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(b.maxWidth=n),S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:g,style:b,className:a??"",...l,children:p}),d>0&&S.jsx(S.Fragment,{children:r(d)})]})},SF="_container_1wopr_1",EF="_image_1wopr_5",Un={container:SF,"image-content":"_image-content_1wopr_5",image:EF,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},IF=({className:e})=>S.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:S.jsx("g",{id:"x",children:S.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
|
142
142
|
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
|
143
143
|
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
|
144
144
|
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
|
@@ -147,43 +147,43 @@ You should wrap it with \`css\` like this:
|
|
147
147
|
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 \r
|
148
148
|
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 \r
|
149
149
|
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
|
150
|
-
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),
|
150
|
+
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),_F=({className:e})=>S.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:S.jsx("g",{id:"upload",children:S.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
|
151
151
|
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
152
|
-
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"})})}),$
|
152
|
+
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"})})}),$F=({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=x.useRef(null),d=n||["image/png","image/jpeg","image/jpg"],[f,h]=x.useState(""),[g,m]=x.useState(""),p=y=>{if(y!=null&&y.length){const D=y[0],C=D.size/1024/1024;if(!d.some(E=>{var I;return(I=y[0].type)==null?void 0:I.includes(E)}))m("Berkas tidak didukung, silahkan pilih file kembali.");else if(C>i){const E=`${y.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${i}MB.`;m(E)}else{if(!(c!=null&&c.current))return;m(""),e(D),h(URL.createObjectURL(D)),c.current.value=""}}},b=y=>{y.preventDefault(),p(y.dataTransfer.files)},v=y=>{y.preventDefault(),c!=null&&c.current&&(typeof e=="function"&&e(null),h(""),c.current.value="")};return S.jsxs("div",{className:`${Un.container} ${s}`,children:[S.jsx("input",{accept:d==null?void 0:d.join(", "),ref:c,hidden:!0,type:"file",multiple:!1,onChange:y=>{y.target.files&&p(y.target.files)}}),f||t?S.jsx("div",{className:`${Un["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:S.jsx("img",{src:f||t,alt:"upload-image",className:`${Un.image} ${l}`})}):S.jsxs("div",{className:`${Un["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:[a,S.jsx("div",{className:Un["text-desc"],children:typeof o=="function"?o():o})]}),S.jsxs("div",{className:Un["action-content"],children:[S.jsxs("div",{className:`${Un["button-content"]} ${u}`,children:[(f||t)&&S.jsx(Wn,{variants:"tertiary-red-600",size:"xs",startIcon:S.jsx(IF,{}),onClick:y=>v(y),children:"Hapus"}),S.jsxs(Wn,{variants:"tertiary-blue-700",size:"xs",onClick:()=>{var y;return(y=c.current)==null?void 0:y.click()},startIcon:S.jsx(_F,{}),children:[f||t?"Ganti":"Pilih"," Gambar"]})]}),S.jsx("p",{className:Un["text-desc"],children:r}),g&&S.jsx("p",{className:Un["text-error"],children:g})]})]})},RF="_container_qyhmv_1",AF="_label_qyhmv_4",FF="_disabled_qyhmv_9",PF="_textarea_qyhmv_15",TF="_error_qyhmv_41",Et={container:RF,"size-medium":"_size-medium_qyhmv_1",label:AF,disabled:FF,"container-textarea":"_container-textarea_qyhmv_12",textarea:PF,error:TF,"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"},V4=x.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:f=94,maxHeight:h=150,style:g,sizeInput:m="m",variant:p="solid-blue-300",...b}=e,v=x.useRef(null),y=xf(v,t),D={...g??{},maxHeight:h,height:d??f,minHeight:f},[C,E]=x.useState(!1),I={size:{m:Et["size-m"],medium:Et["size-medium"],"medium-border-bottom":Et["size-medium-border-bottom"]},variant:{"solid-blue-300":{border:0,style:Et["solid-blue-300"]},"dashed-blue-300":{border:3.7,style:Et["dashed-blue-300"]},"solid-laba-blue-10":{border:0,style:Et["solid-laba-blue-10"]},"dashed-laba-blue-10":{border:3.7,style:Et["dashed-laba-blue-10"]},"border-bottom-laba-blue-08":{border:1,style:Et["border-bottom-laba-blue-08"]}}},w=function(_){var P;E(!0),(P=e.onFocus)==null||P.call(e,_)},$=function(_){var P;E(!1),(P=e.onBlur)==null||P.call(e,_)},R=function(_){const P=(_==null?void 0:_.target)??v.current;P.style.height="0px",P.style.height=P.scrollHeight+I.variant[p].border+"px"};return yf(()=>(C&&v.current?v.current.addEventListener("input",R):R(),()=>{var _;(_=v.current)==null||_.removeEventListener("input",R)}),[C]),S.jsxs("div",{className:`${Et.container}
|
153
153
|
${I.size[m]}
|
154
154
|
${I.variant[p].style}
|
155
|
-
${r??""}`,children:[u&&
|
155
|
+
${r??""}`,children:[u&&S.jsxs("label",{htmlFor:l??s,className:`${Et.label} ${b.disabled?Et.disabled:""} ${a??""}`,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),S.jsx("div",{className:`${Et["container-textarea"]}`,children:S.jsx("textarea",{id:l??s,className:` ${c?Et.error:""}
|
156
156
|
${Et.textarea}
|
157
|
-
${i??""}`,ref:y,style:
|
157
|
+
${i??""}`,ref:y,style:D,...b,onFocus:w,onBlur:$})}),c&&S.jsx("label",{className:`${Et["label-error"]}
|
158
158
|
${b.disabled?Et.disabled:""} ${o??""}`,children:c})]})});V4.displayName="Textarea";/*!
|
159
159
|
* @kurkle/color v0.3.2
|
160
160
|
* https://github.com/kurkle/color#readme
|
161
161
|
* (c) 2023 Jukka Kurkela
|
162
162
|
* Released under the MIT License
|
163
|
-
*/function ns(e){return e+.5|0}const $r=(e,t,n)=>Math.max(Math.min(e,n),t);function ja(e){return $r(ns(e*2.55),0,255)}function Fr(e){return $r(ns(e*255),0,255)}function tr(e){return $r(ns(e/2.55)/100,0,1)}function rp(e){return $r(ns(e*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Fd=[..."0123456789ABCDEF"],
|
163
|
+
*/function ns(e){return e+.5|0}const $r=(e,t,n)=>Math.max(Math.min(e,n),t);function ja(e){return $r(ns(e*2.55),0,255)}function Fr(e){return $r(ns(e*255),0,255)}function tr(e){return $r(ns(e/2.55)/100,0,1)}function rp(e){return $r(ns(e*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Fd=[..."0123456789ABCDEF"],MF=e=>Fd[e&15],kF=e=>Fd[(e&240)>>4]+Fd[e&15],$s=e=>(e&240)>>4===(e&15),BF=e=>$s(e.r)&&$s(e.g)&&$s(e.b)&&$s(e.a);function VF(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&hn[e[1]]*17,g:255&hn[e[2]]*17,b:255&hn[e[3]]*17,a:t===5?hn[e[4]]*17:255}:(t===7||t===9)&&(n={r:hn[e[1]]<<4|hn[e[2]],g:hn[e[3]]<<4|hn[e[4]],b:hn[e[5]]<<4|hn[e[6]],a:t===9?hn[e[7]]<<4|hn[e[8]]:255})),n}const OF=(e,t)=>e<255?t(e):"";function NF(e){var t=BF(e)?MF:kF;return e?"#"+t(e.r)+t(e.g)+t(e.b)+OF(e.a,t):void 0}const LF=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function O4(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function jF(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function HF(e,t,n){const r=O4(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function WF(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function sh(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,u,c;return a!==o&&(c=a-o,u=s>.5?c/(2-a-o):c/(a+o),l=WF(n,r,i,c,a),l=l*60+.5),[l|0,u||0,s]}function lh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Fr)}function uh(e,t,n){return lh(O4,e,t,n)}function zF(e,t,n){return lh(HF,e,t,n)}function GF(e,t,n){return lh(jF,e,t,n)}function N4(e){return(e%360+360)%360}function ZF(e){const t=LF.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ja(+t[5]):Fr(+t[5]));const i=N4(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=zF(i,a,o):t[1]==="hsv"?r=GF(i,a,o):r=uh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function XF(e,t){var n=sh(e);n[0]=N4(n[0]+t),n=uh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function YF(e){if(!e)return;const t=sh(e),n=t[0],r=rp(t[1]),i=rp(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${tr(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const ip={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ap={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function UF(){const e={},t=Object.keys(ap),n=Object.keys(ip);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,ip[a]);a=parseInt(ap[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let Rs;function JF(e){Rs||(Rs=UF(),Rs.transparent=[0,0,0,0]);const t=Rs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const KF=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function qF(e){const t=KF.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?ja(o):$r(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ja(r):$r(r,0,255)),i=255&(t[4]?ja(i):$r(i,0,255)),a=255&(t[6]?ja(a):$r(a,0,255)),{r,g:i,b:a,a:n}}}function QF(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${tr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const _c=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Wi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function eP(e,t,n){const r=Wi(tr(e.r)),i=Wi(tr(e.g)),a=Wi(tr(e.b));return{r:Fr(_c(r+n*(Wi(tr(t.r))-r))),g:Fr(_c(i+n*(Wi(tr(t.g))-i))),b:Fr(_c(a+n*(Wi(tr(t.b))-a))),a:e.a+n*(t.a-e.a)}}function As(e,t,n){if(e){let r=sh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=uh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function L4(e,t){return e&&Object.assign(t||{},e)}function op(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Fr(e[3]))):(t=L4(e,{r:0,g:0,b:0,a:1}),t.a=Fr(t.a)),t}function tP(e){return e.charAt(0)==="r"?qF(e):ZF(e)}class To{constructor(t){if(t instanceof To)return t;const n=typeof t;let r;n==="object"?r=op(t):n==="string"&&(r=VF(t)||JF(t)||tP(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=L4(this._rgb);return t&&(t.a=tr(t.a)),t}set rgb(t){this._rgb=op(t)}rgbString(){return this._valid?QF(this._rgb):void 0}hexString(){return this._valid?NF(this._rgb):void 0}hslString(){return this._valid?YF(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=eP(this._rgb,t._rgb,n)),this}clone(){return new To(this.rgb)}alpha(t){return this._rgb.a=Fr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ns(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return As(this._rgb,2,t),this}darken(t){return As(this._rgb,2,-t),this}saturate(t){return As(this._rgb,1,t),this}desaturate(t){return As(this._rgb,1,-t),this}rotate(t){return XF(this._rgb,t),this}}/*!
|
164
164
|
* Chart.js v4.4.3
|
165
165
|
* https://www.chartjs.org
|
166
166
|
* (c) 2024 Chart.js Contributors
|
167
167
|
* Released under the MIT License
|
168
|
-
*/function Jn(){}const nP=(()=>{let e=0;return()=>e++})();function Je(e){return e===null||typeof e>"u"}function at(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 Re(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function xt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Qt(e,t){return xt(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const rP=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,j4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ze(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function He(e,t,n,r){let i,a,o;if(at(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Re(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Zl(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 Xl(e){if(at(e))return e.map(Xl);if(Re(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Xl(e[n[i]]);return t}return e}function H4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function iP(e,t,n,r){if(!H4(e))return;const i=t[e],a=n[e];Re(i)&&Re(a)?Mo(i,a,r):t[e]=Xl(a)}function Mo(e,t,n){const r=at(t)?t:[t],i=r.length;if(!Re(e))return e;n=n||{};const a=n.merger||iP;let o;for(let s=0;s<i;++s){if(o=r[s],!Re(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 Qa(e,t){return Mo(e,t,{merger:aP})}function aP(e,t,n){if(!H4(e))return;const r=t[e],i=n[e];Re(r)&&Re(i)?Qa(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Xl(i))}const sp={"":e=>e,x:e=>e.x,y:e=>e.y};function oP(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 sP(e){const t=oP(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ko(e,t){return(sp[t]||(sp[t]=sP(t)))(e)}function ch(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yl=e=>typeof e<"u",Vr=e=>typeof e=="function",lp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function lP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Qe=Math.PI,qe=2*Qe,uP=qe+Qe,Ul=Number.POSITIVE_INFINITY,cP=Qe/180,dt=Qe/2,Yr=Qe/4,up=Qe*2/3,Rr=Math.log10,pa=Math.sign;function eo(e,t,n){return Math.abs(e-t)<n}function cp(e){const t=Math.round(e);e=eo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Rr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function dP(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 Bo(e){return!isNaN(parseFloat(e))&&isFinite(e)}function fP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function W4(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 Ln(e){return e*(Qe/180)}function dh(e){return e*(180/Qe)}function dp(e){if(!xt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function z4(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*Qe&&(a+=qe),{angle:a,distance:i}}function Pd(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function hP(e,t){return(e-t+uP)%qe-Qe}function Cn(e){return(e%qe+qe)%qe}function Vo(e,t,n,r){const i=Cn(e),a=Cn(t),o=Cn(n),s=Cn(a-i),l=Cn(o-i),u=Cn(i-a),c=Cn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Bt(e,t,n){return Math.max(t,Math.min(n,e))}function gP(e){return Bt(e,-32768,32767)}function Ji(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function fh(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 ci=(e,t,n,r)=>fh(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),mP=(e,t,n)=>fh(e,n,r=>e[r][t]>=n);function pP(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 G4=["push","pop","shift","splice","unshift"];function bP(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),G4.forEach(n=>{const r="_onData"+ch(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 fp(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)&&(G4.forEach(a=>{delete e[a]}),delete e._chartjs)}function vP(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Z4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function X4(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Z4.call(window,()=>{r=!1,e.apply(t,n)}))}}function yP(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const hh=e=>e==="start"?"left":e==="end"?"right":"center",_t=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,xP=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function CP(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:f}=o.getUserBounds();d&&(i=Bt(Math.min(ci(s,l,u).lo,n?r:ci(t,l,o.getPixelForValue(u)).lo),0,r-1)),f?a=Bt(Math.max(ci(s,o.axis,c,!0).hi+1,n?0:ci(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function wP(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 Fs=e=>e===0||e===1,hp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*qe/n)),gp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*qe/n)+1,to={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*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(Qe*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=>Fs(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=>Fs(e)?e:hp(e,.075,.3),easeOutElastic:e=>Fs(e)?e:gp(e,.075,.3),easeInOutElastic(e){return Fs(e)?e:e<.5?.5*hp(e*2,.1125,.45):.5+.5*gp(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-to.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?to.easeInBounce(e*2)*.5:to.easeOutBounce(e*2-1)*.5+.5};function gh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function mp(e){return gh(e)?e:new To(e)}function $c(e){return gh(e)?e:new To(e).saturate(.5).darken(.1).hexString()}const DP=["x","y","borderWidth","radius","tension"],SP=["color","borderColor","backgroundColor"];function EP(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:SP},numbers:{type:"number",properties:DP}}),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 IP(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const pp=new Map;function _P(e,t){t=t||{};const n=e+JSON.stringify(t);let r=pp.get(n);return r||(r=new Intl.NumberFormat(e,t),pp.set(n,r)),r}function Au(e,t,n){return _P(t,n).format(e)}const Y4={values(e){return at(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=$P(e,n)}const o=Rr(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),Au(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Rr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Y4.numeric.call(this,e,t,n):""}};function $P(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 Fu={formatters:Y4};function RP(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:Fu.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 Di=Object.create(null),Td=Object.create(null);function no(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 Rc(e,t,n){return typeof t=="string"?Mo(no(e,t),n):Mo(no(e,""),t)}class AP{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)=>$c(i.backgroundColor),this.hoverBorderColor=(r,i)=>$c(i.borderColor),this.hoverColor=(r,i)=>$c(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 Rc(this,t,n)}get(t){return no(this,t)}describe(t,n){return Rc(Td,t,n)}override(t,n){return Rc(Di,t,n)}route(t,n,r,i){const a=no(this,t),o=no(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 Re(l)?Object.assign({},u,l):Ce(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new AP({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[EP,IP,RP]);function FP(e){return!e||Je(e.size)||Je(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Jl(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 PP(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,u,c,d,f;for(l=0;l<s;l++)if(d=n[l],d!=null&&!at(d))o=Jl(e,i,a,o,d);else if(at(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!at(f)&&(o=Jl(e,i,a,o,f));e.restore();const h=a.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[a[l]];a.splice(0,h)}return o}function Ur(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 bp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Md(e,t,n,r){U4(e,t,n,r,null)}function U4(e,t,n,r,i){let a,o,s,l,u,c,d,f;const h=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*cP;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(p),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,qe):e.arc(n,r,m,0,qe),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=up,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=up,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(p+Yr)*l,d=Math.cos(p+Yr)*(i?i/2-u:l),s=Math.sin(p+Yr)*l,f=Math.sin(p+Yr)*(i?i/2-u:l),e.arc(n-d,r-s,u,p-Qe,p-dt),e.arc(n+f,r-o,u,p-dt,p),e.arc(n+d,r+s,u,p,p+dt),e.arc(n-f,r+o,u,p+dt,p+Qe),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}p+=Yr;case"rectRot":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case"crossRot":p+=Yr;case"cross":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"star":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),p+=Yr,d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"line":o=i?i/2:Math.cos(p)*m,s=Math.sin(p)*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(p)*(i?i/2:m),r+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ur(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 mh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ph(e){e.restore()}function TP(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 MP(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 kP(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Je(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 BP(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 VP(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Si(e,t,n,r,i,a={}){const o=at(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,kP(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&VP(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Je(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),BP(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Kl(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*Qe,Qe,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Qe,dt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,dt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-dt,!0),e.lineTo(n+o.topLeft,r)}const OP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,NP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function LP(e,t){const n=(""+e).match(OP);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 jP=e=>+e||0;function bh(e,t){const n={},r=Re(t),i=r?Object.keys(t):t,a=Re(e)?r?o=>Ce(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=jP(a(o));return n}function HP(e){return bh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function oa(e){return bh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(e){const t=HP(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function pt(e,t){e=e||{},t=t||ot.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ce(e.style,t.style);r&&!(""+r).match(NP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ce(e.family,t.family),lineHeight:LP(Ce(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ce(e.weight,t.weight),string:""};return i.string=FP(i),i}function Ps(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 WP(e,t,n){const{min:r,max:i}=e,a=j4(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 Hr(e,t){return Object.assign(Object.create(e),t)}function vh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=Q4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>vh([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 K4(s,l,()=>KP(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return yp(s).includes(l)},ownKeys(s){return yp(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function ba(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:J4(e,r),setContext:a=>ba(e,a,n,r),override:a=>ba(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 K4(a,o,()=>GP(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 J4(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:Vr(n)?n:()=>n,isIndexable:Vr(r)?r:()=>r}}const zP=(e,t)=>e?e+ch(t):t,yh=(e,t)=>Re(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function K4(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function GP(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Vr(s)&&o.isScriptable(t)&&(s=ZP(t,s,e,n)),at(s)&&s.length&&(s=XP(t,s,e,o.isIndexable)),yh(t,s)&&(s=ba(s,i,a&&a[t],o)),s}function ZP(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),yh(e,l)&&(l=xh(i._scopes,i,e,l)),l}function XP(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(Re(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=xh(u,i,e,c);t.push(ba(d,a,o&&o[e],s))}}return t}function q4(e,t,n){return Vr(e)?e(t,n):e}const YP=(e,t)=>e===!0?t:typeof e=="string"?ko(t,e):void 0;function UP(e,t,n,r,i){for(const a of t){const o=YP(n,a);if(o){e.add(o);const s=q4(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 xh(e,t,n,r){const i=t._rootScopes,a=q4(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=vp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=vp(s,o,a,l,r),l===null)?!1:vh(Array.from(s),[""],i,a,()=>JP(t,n,r))}function vp(e,t,n,r,i){for(;n;)n=UP(e,t,n,r,i);return n}function JP(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return at(i)&&Re(n)?n:i||{}}function KP(e,t,n,r){let i;for(const a of t)if(i=Q4(zP(a,e),n),typeof i<"u")return yh(e,i)?xh(n,r,e,i):i}function Q4(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function yp(e){let t=e._keys;return t||(t=e._keys=qP(e._scopes)),t}function qP(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 QP=Number.EPSILON||1e-14,va=(e,t)=>t<e.length&&!e[t].skip&&e[t],e3=e=>e==="x"?"y":"x";function eT(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Pd(a,i),l=Pd(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,f=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function tT(e,t,n){const r=e.length;let i,a,o,s,l,u=va(e,0);for(let c=0;c<r-1;++c)if(l=u,u=va(e,c+1),!(!l||!u)){if(eo(t[c],0,QP)){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 nT(e,t,n="x"){const r=e3(n),i=e.length;let a,o,s,l=va(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=va(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 rT(e,t="x"){const n=e3(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=va(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=va(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?pa(i[o-1])!==pa(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}tT(e,i,a),nT(e,a,t)}function Ts(e,t,n){return Math.max(Math.min(e,n),t)}function iT(e,t){let n,r,i,a,o,s=ur(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ur(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Ts(i.cp1x,t.left,t.right),i.cp1y=Ts(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Ts(i.cp2x,t.left,t.right),i.cp2y=Ts(i.cp2y,t.top,t.bottom)))}function aT(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")rT(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=eT(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&&iT(e,n)}function Ch(){return typeof window<"u"&&typeof document<"u"}function wh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ql(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 Pu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function oT(e,t){return Pu(e).getPropertyValue(t)}const sT=["top","right","bottom","left"];function gi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=sT[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const lT=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function uT(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(lT(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 ti(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Pu(n),a=i.boxSizing==="border-box",o=gi(i,"padding"),s=gi(i,"border","width"),{x:l,y:u,box:c}=uT(e,n),d=o.left+(c&&s.left),f=o.top+(c&&s.top);let{width:h,height:g}=t;return a&&(h-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/g*n.height/r)}}function cT(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&wh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=Pu(a),l=gi(s,"border","width"),u=gi(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=ql(s.maxWidth,a,"clientWidth"),i=ql(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Ul,maxHeight:i||Ul}}const Ms=e=>Math.round(e*10)/10;function dT(e,t,n,r){const i=Pu(e),a=gi(i,"margin"),o=ql(i.maxWidth,e,"clientWidth")||Ul,s=ql(i.maxHeight,e,"clientHeight")||Ul,l=cT(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=gi(i,"border","width"),h=gi(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Ms(Math.min(u,o,l.maxWidth)),c=Ms(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Ms(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Ms(Math.floor(c*r))),{width:u,height:c}}function xp(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 fT=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Ch()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Cp(e,t){const n=oT(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ni(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function hT(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 gT(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=ni(e,i,n),s=ni(i,a,n),l=ni(a,t,n),u=ni(o,s,n),c=ni(s,l,n);return ni(u,c,n)}const mT=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}}},pT=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?mT(t,n):pT()}function t3(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 n3(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function r3(e){return e==="angle"?{between:Vo,compare:hP,normalize:Cn}:{between:Ji,compare:(t,n)=>t-n,normalize:t=>t}}function wp({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 bT(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=r3(r),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&o(s(t[u%l][r]),i,a);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function vT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=r3(r),{start:c,end:d,loop:f,style:h}=bT(e,t,n),g=[];let m=!1,p=null,b,v,y;const w=()=>l(i,y,b)&&s(i,y)!==0,C=()=>s(a,b)===0||l(a,y,b),S=()=>m||w(),I=()=>!m||C();for(let D=c,$=c;D<=d;++D)v=t[D%o],!v.skip&&(b=u(v[r]),b!==y&&(m=l(b,i,a),p===null&&S()&&(p=s(b,i)===0?D:$),p!==null&&I()&&(g.push(wp({start:p,end:D,loop:f,count:o,style:h})),p=null),$=D,y=b));return p!==null&&g.push(wp({start:p,end:d,loop:f,count:o,style:h})),g}function yT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=vT(r[i],e.points,t);a.length&&n.push(...a)}return n}function xT(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 CT(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 wT(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=xT(n,i,a,r);if(r===!0)return Dp(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 Dp(e,CT(n,o,l,u),n,t)}function Dp(e,t,n,r){return!r||!r.setContext||!n?t:DT(e,t,n,r)}function DT(e,t,n,r){const i=e._chart.getContext(),a=Sp(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,f=d;function h(g,m,p,b){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:p,style:b}),c=b,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],p;for(f=d+1;f<=g.end;f++){const b=n[f%l];p=Sp(r.setContext(Hr(i,{type:"segment",p0:m,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),ST(p,c)&&h(d,f-1,g.loop,c),m=b,c=p}d<f-1&&h(d,f-1,g.loop,c)}return u}function Sp(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ST(e,t){if(!t)return!1;const n=[],r=function(i,a){return gh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
168
|
+
*/function Jn(){}const nP=(()=>{let e=0;return()=>e++})();function Je(e){return e===null||typeof e>"u"}function at(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 Re(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function xt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Qt(e,t){return xt(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const rP=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,j4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ze(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function He(e,t,n,r){let i,a,o;if(at(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Re(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Zl(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 Xl(e){if(at(e))return e.map(Xl);if(Re(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Xl(e[n[i]]);return t}return e}function H4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function iP(e,t,n,r){if(!H4(e))return;const i=t[e],a=n[e];Re(i)&&Re(a)?Mo(i,a,r):t[e]=Xl(a)}function Mo(e,t,n){const r=at(t)?t:[t],i=r.length;if(!Re(e))return e;n=n||{};const a=n.merger||iP;let o;for(let s=0;s<i;++s){if(o=r[s],!Re(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 Qa(e,t){return Mo(e,t,{merger:aP})}function aP(e,t,n){if(!H4(e))return;const r=t[e],i=n[e];Re(r)&&Re(i)?Qa(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Xl(i))}const sp={"":e=>e,x:e=>e.x,y:e=>e.y};function oP(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 sP(e){const t=oP(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ko(e,t){return(sp[t]||(sp[t]=sP(t)))(e)}function ch(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yl=e=>typeof e<"u",Vr=e=>typeof e=="function",lp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function lP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Qe=Math.PI,qe=2*Qe,uP=qe+Qe,Ul=Number.POSITIVE_INFINITY,cP=Qe/180,dt=Qe/2,Yr=Qe/4,up=Qe*2/3,Rr=Math.log10,pa=Math.sign;function eo(e,t,n){return Math.abs(e-t)<n}function cp(e){const t=Math.round(e);e=eo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Rr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function dP(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 Bo(e){return!isNaN(parseFloat(e))&&isFinite(e)}function fP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function W4(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 Ln(e){return e*(Qe/180)}function dh(e){return e*(180/Qe)}function dp(e){if(!xt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function z4(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*Qe&&(a+=qe),{angle:a,distance:i}}function Pd(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function hP(e,t){return(e-t+uP)%qe-Qe}function Cn(e){return(e%qe+qe)%qe}function Vo(e,t,n,r){const i=Cn(e),a=Cn(t),o=Cn(n),s=Cn(a-i),l=Cn(o-i),u=Cn(i-a),c=Cn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function Bt(e,t,n){return Math.max(t,Math.min(n,e))}function gP(e){return Bt(e,-32768,32767)}function Ji(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function fh(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 ci=(e,t,n,r)=>fh(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),mP=(e,t,n)=>fh(e,n,r=>e[r][t]>=n);function pP(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 G4=["push","pop","shift","splice","unshift"];function bP(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),G4.forEach(n=>{const r="_onData"+ch(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 fp(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)&&(G4.forEach(a=>{delete e[a]}),delete e._chartjs)}function vP(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Z4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function X4(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Z4.call(window,()=>{r=!1,e.apply(t,n)}))}}function yP(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const hh=e=>e==="start"?"left":e==="end"?"right":"center",_t=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,xP=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function CP(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:f}=o.getUserBounds();d&&(i=Bt(Math.min(ci(s,l,u).lo,n?r:ci(t,l,o.getPixelForValue(u)).lo),0,r-1)),f?a=Bt(Math.max(ci(s,o.axis,c,!0).hi+1,n?0:ci(t,l,o.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function wP(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 Fs=e=>e===0||e===1,hp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*qe/n)),gp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*qe/n)+1,to={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*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(Qe*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=>Fs(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=>Fs(e)?e:hp(e,.075,.3),easeOutElastic:e=>Fs(e)?e:gp(e,.075,.3),easeInOutElastic(e){return Fs(e)?e:e<.5?.5*hp(e*2,.1125,.45):.5+.5*gp(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-to.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?to.easeInBounce(e*2)*.5:to.easeOutBounce(e*2-1)*.5+.5};function gh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function mp(e){return gh(e)?e:new To(e)}function $c(e){return gh(e)?e:new To(e).saturate(.5).darken(.1).hexString()}const DP=["x","y","borderWidth","radius","tension"],SP=["color","borderColor","backgroundColor"];function EP(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:SP},numbers:{type:"number",properties:DP}}),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 IP(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const pp=new Map;function _P(e,t){t=t||{};const n=e+JSON.stringify(t);let r=pp.get(n);return r||(r=new Intl.NumberFormat(e,t),pp.set(n,r)),r}function Au(e,t,n){return _P(t,n).format(e)}const Y4={values(e){return at(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=$P(e,n)}const o=Rr(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),Au(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Rr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Y4.numeric.call(this,e,t,n):""}};function $P(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 Fu={formatters:Y4};function RP(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:Fu.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 Di=Object.create(null),Td=Object.create(null);function no(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 Rc(e,t,n){return typeof t=="string"?Mo(no(e,t),n):Mo(no(e,""),t)}class AP{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)=>$c(i.backgroundColor),this.hoverBorderColor=(r,i)=>$c(i.borderColor),this.hoverColor=(r,i)=>$c(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 Rc(this,t,n)}get(t){return no(this,t)}describe(t,n){return Rc(Td,t,n)}override(t,n){return Rc(Di,t,n)}route(t,n,r,i){const a=no(this,t),o=no(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 Re(l)?Object.assign({},u,l):Ce(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new AP({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[EP,IP,RP]);function FP(e){return!e||Je(e.size)||Je(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Jl(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 PP(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,u,c,d,f;for(l=0;l<s;l++)if(d=n[l],d!=null&&!at(d))o=Jl(e,i,a,o,d);else if(at(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!at(f)&&(o=Jl(e,i,a,o,f));e.restore();const h=a.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[a[l]];a.splice(0,h)}return o}function Ur(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 bp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Md(e,t,n,r){U4(e,t,n,r,null)}function U4(e,t,n,r,i){let a,o,s,l,u,c,d,f;const h=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*cP;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(p),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,qe):e.arc(n,r,m,0,qe),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=up,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=up,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(p+Yr)*l,d=Math.cos(p+Yr)*(i?i/2-u:l),s=Math.sin(p+Yr)*l,f=Math.sin(p+Yr)*(i?i/2-u:l),e.arc(n-d,r-s,u,p-Qe,p-dt),e.arc(n+f,r-o,u,p-dt,p),e.arc(n+d,r+s,u,p,p+dt),e.arc(n-f,r+o,u,p+dt,p+Qe),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}p+=Yr;case"rectRot":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case"crossRot":p+=Yr;case"cross":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"star":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),p+=Yr,d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,f=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"line":o=i?i/2:Math.cos(p)*m,s=Math.sin(p)*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(p)*(i?i/2:m),r+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function ur(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 mh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ph(e){e.restore()}function TP(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 MP(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 kP(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Je(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 BP(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 VP(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Si(e,t,n,r,i,a={}){const o=at(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,kP(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&VP(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Je(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),BP(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Kl(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*Qe,Qe,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Qe,dt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,dt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-dt,!0),e.lineTo(n+o.topLeft,r)}const OP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,NP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function LP(e,t){const n=(""+e).match(OP);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 jP=e=>+e||0;function bh(e,t){const n={},r=Re(t),i=r?Object.keys(t):t,a=Re(e)?r?o=>Ce(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=jP(a(o));return n}function HP(e){return bh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function oa(e){return bh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(e){const t=HP(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function pt(e,t){e=e||{},t=t||ot.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ce(e.style,t.style);r&&!(""+r).match(NP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ce(e.family,t.family),lineHeight:LP(Ce(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ce(e.weight,t.weight),string:""};return i.string=FP(i),i}function Ps(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 WP(e,t,n){const{min:r,max:i}=e,a=j4(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 Hr(e,t){return Object.assign(Object.create(e),t)}function vh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=Q4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>vh([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 K4(s,l,()=>KP(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return yp(s).includes(l)},ownKeys(s){return yp(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function ba(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:J4(e,r),setContext:a=>ba(e,a,n,r),override:a=>ba(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 K4(a,o,()=>GP(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 J4(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:Vr(n)?n:()=>n,isIndexable:Vr(r)?r:()=>r}}const zP=(e,t)=>e?e+ch(t):t,yh=(e,t)=>Re(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function K4(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function GP(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Vr(s)&&o.isScriptable(t)&&(s=ZP(t,s,e,n)),at(s)&&s.length&&(s=XP(t,s,e,o.isIndexable)),yh(t,s)&&(s=ba(s,i,a&&a[t],o)),s}function ZP(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),yh(e,l)&&(l=xh(i._scopes,i,e,l)),l}function XP(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(Re(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=xh(u,i,e,c);t.push(ba(d,a,o&&o[e],s))}}return t}function q4(e,t,n){return Vr(e)?e(t,n):e}const YP=(e,t)=>e===!0?t:typeof e=="string"?ko(t,e):void 0;function UP(e,t,n,r,i){for(const a of t){const o=YP(n,a);if(o){e.add(o);const s=q4(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 xh(e,t,n,r){const i=t._rootScopes,a=q4(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=vp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=vp(s,o,a,l,r),l===null)?!1:vh(Array.from(s),[""],i,a,()=>JP(t,n,r))}function vp(e,t,n,r,i){for(;n;)n=UP(e,t,n,r,i);return n}function JP(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return at(i)&&Re(n)?n:i||{}}function KP(e,t,n,r){let i;for(const a of t)if(i=Q4(zP(a,e),n),typeof i<"u")return yh(e,i)?xh(n,r,e,i):i}function Q4(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function yp(e){let t=e._keys;return t||(t=e._keys=qP(e._scopes)),t}function qP(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 QP=Number.EPSILON||1e-14,va=(e,t)=>t<e.length&&!e[t].skip&&e[t],e3=e=>e==="x"?"y":"x";function eT(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Pd(a,i),l=Pd(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,f=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function tT(e,t,n){const r=e.length;let i,a,o,s,l,u=va(e,0);for(let c=0;c<r-1;++c)if(l=u,u=va(e,c+1),!(!l||!u)){if(eo(t[c],0,QP)){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 nT(e,t,n="x"){const r=e3(n),i=e.length;let a,o,s,l=va(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=va(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 rT(e,t="x"){const n=e3(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=va(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=va(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?pa(i[o-1])!==pa(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}tT(e,i,a),nT(e,a,t)}function Ts(e,t,n){return Math.max(Math.min(e,n),t)}function iT(e,t){let n,r,i,a,o,s=ur(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ur(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Ts(i.cp1x,t.left,t.right),i.cp1y=Ts(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Ts(i.cp2x,t.left,t.right),i.cp2y=Ts(i.cp2y,t.top,t.bottom)))}function aT(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")rT(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=eT(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&&iT(e,n)}function Ch(){return typeof window<"u"&&typeof document<"u"}function wh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ql(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 Pu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function oT(e,t){return Pu(e).getPropertyValue(t)}const sT=["top","right","bottom","left"];function gi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=sT[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const lT=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function uT(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(lT(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 ti(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Pu(n),a=i.boxSizing==="border-box",o=gi(i,"padding"),s=gi(i,"border","width"),{x:l,y:u,box:c}=uT(e,n),d=o.left+(c&&s.left),f=o.top+(c&&s.top);let{width:h,height:g}=t;return a&&(h-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/g*n.height/r)}}function cT(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&wh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=Pu(a),l=gi(s,"border","width"),u=gi(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=ql(s.maxWidth,a,"clientWidth"),i=ql(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Ul,maxHeight:i||Ul}}const Ms=e=>Math.round(e*10)/10;function dT(e,t,n,r){const i=Pu(e),a=gi(i,"margin"),o=ql(i.maxWidth,e,"clientWidth")||Ul,s=ql(i.maxHeight,e,"clientHeight")||Ul,l=cT(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=gi(i,"border","width"),h=gi(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Ms(Math.min(u,o,l.maxWidth)),c=Ms(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Ms(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Ms(Math.floor(c*r))),{width:u,height:c}}function xp(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 fT=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Ch()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Cp(e,t){const n=oT(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ni(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function hT(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 gT(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=ni(e,i,n),s=ni(i,a,n),l=ni(a,t,n),u=ni(o,s,n),c=ni(s,l,n);return ni(u,c,n)}const mT=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}}},pT=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?mT(t,n):pT()}function t3(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 n3(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function r3(e){return e==="angle"?{between:Vo,compare:hP,normalize:Cn}:{between:Ji,compare:(t,n)=>t-n,normalize:t=>t}}function wp({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 bT(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=r3(r),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&o(s(t[u%l][r]),i,a);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function vT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=r3(r),{start:c,end:d,loop:f,style:h}=bT(e,t,n),g=[];let m=!1,p=null,b,v,y;const D=()=>l(i,y,b)&&s(i,y)!==0,C=()=>s(a,b)===0||l(a,y,b),E=()=>m||D(),I=()=>!m||C();for(let w=c,$=c;w<=d;++w)v=t[w%o],!v.skip&&(b=u(v[r]),b!==y&&(m=l(b,i,a),p===null&&E()&&(p=s(b,i)===0?w:$),p!==null&&I()&&(g.push(wp({start:p,end:w,loop:f,count:o,style:h})),p=null),$=w,y=b));return p!==null&&g.push(wp({start:p,end:d,loop:f,count:o,style:h})),g}function yT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=vT(r[i],e.points,t);a.length&&n.push(...a)}return n}function xT(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 CT(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 wT(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=xT(n,i,a,r);if(r===!0)return Dp(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 Dp(e,CT(n,o,l,u),n,t)}function Dp(e,t,n,r){return!r||!r.setContext||!n?t:DT(e,t,n,r)}function DT(e,t,n,r){const i=e._chart.getContext(),a=Sp(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,f=d;function h(g,m,p,b){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:p,style:b}),c=b,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],p;for(f=d+1;f<=g.end;f++){const b=n[f%l];p=Sp(r.setContext(Hr(i,{type:"segment",p0:m,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),ST(p,c)&&h(d,f-1,g.loop,c),m=b,c=p}d<f-1&&h(d,f-1,g.loop,c)}return u}function Sp(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ST(e,t){if(!t)return!1;const n=[],r=function(i,a){return gh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
169
169
|
* Chart.js v4.4.3
|
170
170
|
* https://www.chartjs.org
|
171
171
|
* (c) 2024 Chart.js Contributors
|
172
172
|
* Released under the MIT License
|
173
|
-
*/class ET{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=Z4.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 qn=new ET;const Ep="transparent",IT={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=mp(e||Ep),i=r.valid&&mp(t||Ep);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class _T{constructor(t,n,r,i){const a=n[r];i=Ps([t.to,i,a,t.from]);const o=Ps([t.from,a,i]);this._active=!0,this._fn=t.fn||IT[t.type||typeof o],this._easing=to[t.easing]||to.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=Ps([t.to,n,i,t.from]),this._from=Ps([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 i3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Re(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Re(a))return;const o={};for(const s of n)o[s]=a[s];(at(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=RT(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&$T(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 f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,s);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}a[u]=d=new _T(f,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 qn.add(this._chart,r),!0}}function $T(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 RT(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 Ip(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 AT(e,t,n){if(n===!1)return!1;const r=Ip(e,n),i=Ip(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function FT(e){let t,n,r,i;return Re(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 a3(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 _p(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],xt(u)&&(a||t===0||pa(t)===pa(u))&&(t+=u)}return t}}function PT(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 $p(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function TT(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function MT(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 kT(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Rp(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 Ap(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=TT(a,o,r),d=t.length;let f;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[u]:p}=g,b=g._stacks||(g._stacks={});f=b[u]=kT(i,c,m),f[s]=p,f._top=Rp(f,o,!0,r.type),f._bottom=Rp(f,o,!1,r.type);const v=f._visualValues||(f._visualValues={});v[s]=p}}function Ac(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function BT(e,t){return Hr(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VT(e,t,n){return Hr(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Aa(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 Fc=e=>e==="reset"||e==="none",Fp=(e,t)=>t?e:Object.assign({},e),OT=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:a3(n,!0),values:null};class la{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=$p(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&&Aa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,a=n.xAxisID=Ce(r.xAxisID,Ac(t,"x")),o=n.yAxisID=Ce(r.yAxisID,Ac(t,"y")),s=n.rAxisID=Ce(r.rAxisID,Ac(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&&fp(this._data,this),t._stacked&&Aa(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Re(n)){const i=this._cachedMeta;this._data=PT(n,i)}else if(r!==n){if(r){fp(r,this);const i=this._cachedMeta;Aa(i),i._parsed=[]}n&&Object.isExtensible(n)&&bP(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=$p(n.vScale,n),n.stack!==r.stack&&(i=!0,Aa(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&Ap(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,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{at(i[t])?f=this.parseArrayData(r,i,t,n):Re(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);r._sorted=l}o&&Ap(this,f)}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 f,h,g;for(f=0,h=i;f<h;++f)g=f+r,d[f]={[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,f,h;for(c=0,d=i;c<d;++c)f=c+r,h=n[f],u[c]={x:a.parse(ko(h,s),f),y:o.parse(ko(h,l),f)};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:a3(i,!0),values:n._stacks[t.axis]._visualValues};return _p(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=_p(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=OT(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=MT(s);let f,h;function g(){h=i[f];const m=h[s.axis];return!xt(h[t.axis])||c>m||d<m}for(f=0;f<o&&!(!g()&&(this.updateRangeFromParsed(u,t,h,l),a));++f);if(a){for(f=o-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(u,t,h,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],xt(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=FT(Ce(this.options.clip,AT(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=VT(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=BT(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&&Yl(r);if(s)return Fp(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(ot.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(f,h,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Fp(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),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new i3(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||Fc(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){Fc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Fc(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&&Aa(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])}}ie(la,"defaults",{}),ie(la,"datasetElementType",null),ie(la,"dataElementType",null);function NT(e,t,n){let r=1,i=1,a=0,o=0;if(t<qe){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),f=Math.sin(l),h=(y,w,C)=>Vo(y,s,l,!0)?1:Math.max(w,w*n,C,C*n),g=(y,w,C)=>Vo(y,s,l,!0)?-1:Math.min(w,w*n,C,C*n),m=h(0,u,d),p=h(dt,c,f),b=g(Qe,u,d),v=g(Qe+dt,c,f);r=(m-b)/2,i=(p-v)/2,a=-(m+b)/2,o=-(p+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Ha extends la{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(Re(r[t])){const{key:l="value"}=this._parsing;a=u=>+ko(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Ln(this.options.rotation-90)}_getCircumference(){return Ln(this.options.circumference)}_getRotationExtents(){let t=qe,n=-qe;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(rP(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=NT(d,c,l),p=(r.width-o)/f,b=(r.height-o)/h,v=Math.max(Math.min(p,b)/2,0),y=j4(this.options.radius,v),w=Math.max(y*l,0),C=(y-w)/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*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/qe)}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,f=a&&u.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:p}=this._getSharedOptions(n,i);let b=this._getRotation(),v;for(v=0;v<n;++v)b+=this._circumference(v,a);for(v=n;v<n+r;++v){const y=this._circumference(v,a),w=t[v],C={x:c+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:g,innerRadius:h};p&&(C.options=m||this.resolveDataElementOptions(v,w.active?"active":i)),b+=y,this.updateElement(w,v,C,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)?qe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Au(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(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ie(Ha,"id","doughnut"),ie(Ha,"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"}),ie(Ha,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(Ha,"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 al extends la{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}=CP(n,i,o);this._drawStart=s,this._drawCount=l,wP(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),f=o.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,p=Bo(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||a||i==="none",v=n+r,y=t.length;let w=n>0&&this.getParsed(n-1);for(let C=0;C<y;++C){const S=t[C],I=b?S:{};if(C<n||C>=v){I.skip=!0;continue}const D=this.getParsed(C),$=Je(D[h]),R=I[f]=o.getPixelForValue(D[f],C),_=I[h]=a||$?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,D,l):D[h],C);I.skip=isNaN(R)||isNaN(_)||$,I.stop=C>0&&Math.abs(D[f]-w[f])>p,m&&(I.parsed=D,I.raw=u.data[C]),d&&(I.options=c||this.resolveDataElementOptions(C,S.active?"active":i)),b||this.updateElement(S,C,I,i),w=D}}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()}}ie(al,"id","line"),ie(al,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ie(al,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Jr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Dh{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(Dh.prototype,t)}init(){}formats(){return Jr()}parse(){return Jr()}format(){return Jr()}add(){return Jr()}diff(){return Jr()}startOf(){return Jr()}endOf(){return Jr()}}var LT={_date:Dh};function jT(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?mP:ci;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),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function rs(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:f}=jT(a[s],t,o,i);for(let h=d;h<=f;++h){const g=c[h];g.skip||r(g,u,h)}}}function HT(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 Pc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||rs(e,n,t,function(s,l,u){!i&&!ur(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function WT(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=z4(o,{x:t.x,y:t.y});Vo(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return rs(e,n,t,a),i}function zT(e,t,n,r,i,a){let o=[];const s=HT(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,i);if(r&&!h)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!h)return;const p=s(t,g);p<l?(o=[{element:c,datasetIndex:d,index:f}],l=p):p===l&&o.push({element:c,datasetIndex:d,index:f})}return rs(e,n,t,u),o}function Tc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?WT(e,t,n,i):zT(e,t,n,r,i,a)}function Pp(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return rs(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 GT={evaluateInteractionItems:rs,modes:{index(e,t,n,r){const i=ti(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Pc(e,i,a,r,o):Tc(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=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Pc(e,i,a,r,o):Tc(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=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Pc(e,i,a,r,o)},nearest(e,t,n,r){const i=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Tc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=ti(t,e);return Pp(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ti(t,e);return Pp(e,i,"y",n.intersect,r)}}};const o3=["left","top","right","bottom"];function Fa(e,t){return e.filter(n=>n.pos===t)}function Tp(e,t){return e.filter(n=>o3.indexOf(n.pos)===-1&&n.box.axis===t)}function Pa(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 ZT(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 XT(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!o3.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 YT(e,t){const n=XT(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 UT(e){const t=ZT(e),n=Pa(t.filter(u=>u.box.fullSize),!0),r=Pa(Fa(t,"left"),!0),i=Pa(Fa(t,"right")),a=Pa(Fa(t,"top"),!0),o=Pa(Fa(t,"bottom")),s=Tp(t,"x"),l=Tp(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Fa(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function Mp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function s3(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 JT(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Re(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&&s3(o,a.getPadding());const s=Math.max(0,t.outerWidth-Mp(o,e,"left","right")),l=Math.max(0,t.outerHeight-Mp(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 KT(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 qT(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 Wa(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,qT(s.horizontal,t));const{same:d,other:f}=JT(t,n,s,r);u|=d&&i.length,c=c||f,l.fullSize||i.push(s)}return u&&Wa(i,t,n,r)||c}function ks(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 kp(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]||{count:1,placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,f=u.size||l.height;Yl(u.start)&&(o=u.start),l.fullSize?ks(l,i.left,o,n.outerWidth-i.right-i.left,f):ks(l,t.left+u.placed,o,d,f),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,f=u.size||l.width;Yl(u.start)&&(a=u.start),l.fullSize?ks(l,a,i.top,f,n.outerHeight-i.bottom-i.top):ks(l,a,t.top+u.placed,f,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var bn={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=Ft(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=UT(e.boxes),l=s.vertical,u=s.horizontal;He(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,p)=>p.box.options&&p.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}),f=Object.assign({},i);s3(f,Ft(r));const h=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),g=YT(l.concat(u),d);Wa(s.fullSize,h,d,g),Wa(l,h,d,g),Wa(u,h,d,g)&&Wa(l,h,d,g),KT(h),kp(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,kp(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},He(s.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class l3{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 QT extends l3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ol="$chartjs",eM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bp=e=>e===null||e==="";function tM(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ol]={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",Bp(i)){const a=Cp(e,"width");a!==void 0&&(e.width=a)}if(Bp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=Cp(e,"height");a!==void 0&&(e.height=a)}return e}const u3=fT?{passive:!0}:!1;function nM(e,t,n){e&&e.addEventListener(t,n,u3)}function rM(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,u3)}function iM(e,t){const n=eM[e.type]||e.type,{x:r,y:i}=ti(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Ql(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function aM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ql(s.addedNodes,r),o=o&&!Ql(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function oM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ql(s.removedNodes,r),o=o&&!Ql(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Oo=new Map;let Vp=0;function c3(){const e=window.devicePixelRatio;e!==Vp&&(Vp=e,Oo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function sM(e,t){Oo.size||window.addEventListener("resize",c3),Oo.set(e,t)}function lM(e){Oo.delete(e),Oo.size||window.removeEventListener("resize",c3)}function uM(e,t,n){const r=e.canvas,i=r&&wh(r);if(!i)return;const a=X4((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),sM(e,a),o}function Mc(e,t,n){n&&n.disconnect(),t==="resize"&&lM(e)}function cM(e,t,n){const r=e.canvas,i=X4(a=>{e.ctx!==null&&n(iM(a,e))},e);return nM(r,t,i),i}class dM extends l3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(tM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ol])return!1;const r=n[ol].initial;["height","width"].forEach(a=>{const o=r[a];Je(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[ol],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:aM,detach:oM,resize:uM}[n]||cM;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Mc,detach:Mc,resize:Mc}[n]||rM)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return dT(t,n,r,i)}isAttached(t){const n=t&&wh(t);return!!(n&&n.isConnected)}}function fM(e){return!Ch()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?QT:dM}var zs;let Wr=(zs=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Bo(this.x)&&Bo(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}},ie(zs,"defaults",{}),ie(zs,"defaultRoutes"),zs);function hM(e,t){const n=e.options.ticks,r=gM(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?pM(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return bM(t,u,a,o/i),u;const c=mM(a,t,i);if(o>0){let d,f;const h=o>1?Math.round((l-s)/(o-1)):null;for(Bs(t,u,c,Je(h)?0:s-h,s),d=0,f=o-1;d<f;d++)Bs(t,u,c,a[d],a[d+1]);return Bs(t,u,c,l,Je(h)?t.length:l+h),u}return Bs(t,u,c),u}function gM(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 mM(e,t,n){const r=vM(e),i=t.length/n;if(!r)return Math.max(i,1);const a=dP(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 pM(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function bM(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 Bs(e,t,n,r,i){const a=Ce(r,0),o=Math.min(Ce(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 vM(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 yM=e=>e==="left"?"right":e==="right"?"left":e,Op=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Np=(e,t)=>Math.min(t||e,e);function Lp(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 xM(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 CM(e,t){He(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 Ta(e){return e.drawTicks?e.tickLength:0}function jp(e,t){if(!e.display)return 0;const n=pt(e.font,t),r=Ft(e.padding);return(at(e.text)?e.text.length:1)*n.lineHeight+r.height}function wM(e,t){return Hr(e,{scale:t,type:"scale"})}function DM(e,t,n){return Hr(e,{tick:n,index:t,type:"tick"})}function SM(e,t,n){let r=hh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=yM(r)),r}function EM(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,g;const m=o-i,p=s-a;if(e.isHorizontal()){if(h=_t(r,a,s),Re(n)){const b=Object.keys(n)[0],v=n[b];g=c[b].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=Op(e,n,t);f=s-a}else{if(Re(n)){const b=Object.keys(n)[0],v=n[b];h=c[b].getPixelForValue(v)-p+t}else n==="center"?h=(u.left+u.right)/2-p+t:h=Op(e,n,t);g=_t(r,o,i),d=n==="left"?-dt:dt}return{titleX:h,titleY:g,maxWidth:f,rotation:d}}class Ai extends Wr{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=Qt(t,Number.POSITIVE_INFINITY),n=Qt(n,Number.NEGATIVE_INFINITY),r=Qt(r,Number.POSITIVE_INFINITY),i=Qt(i,Number.NEGATIVE_INFINITY),{min:Qt(t,r),max:Qt(n,i),minDefined:xt(t),maxDefined:xt(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:Qt(n,Qt(r,n)),max:Qt(r,Qt(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(){Ze(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=WP(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Lp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=hM(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(){Ze(this.options.afterUpdate,[this])}beforeSetDimensions(){Ze(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(){Ze(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ze(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ze(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=Ze(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ze(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ze(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Np(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,f=c.highest.height,h=Bt(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-Ta(t.grid)-n.padding-jp(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),o=dh(Math.min(Math.asin(Bt((c.highest.height+6)/s,-1,1)),Math.asin(Bt(l/u,-1,1))-Math.asin(Bt(f/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ze(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ze(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=jp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Ta(a)+l):(t.height=this.maxHeight,t.width=Ta(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,g=Ln(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(s){const b=r.mirror?0:p*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+b+h)}else{const b=r.mirror?0:m*d.width+p*f.height;t.width=Math.min(this.maxWidth,t.width+b+h)}this._calculatePadding(u,c,p,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 f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):a==="start"?h=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-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(){Ze(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++)Je(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=Lp(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/Np(n,r));let u=0,c=0,d,f,h,g,m,p,b,v,y,w,C;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=p=m.string,b=a[p]=a[p]||{data:{},gc:[]},v=m.lineHeight,y=w=0,!Je(g)&&!at(g))y=Jl(i,b.data,b.gc,y,g),w=v;else if(at(g))for(f=0,h=g.length;f<h;++f)C=g[f],!Je(C)&&!at(C)&&(y=Jl(i,b.data,b.gc,y,C),w+=v);o.push(y),s.push(w),u=Math.max(y,u),c=Math.max(w,c)}CM(a,n);const S=o.indexOf(u),I=s.indexOf(c),D=$=>({width:o[$]||0,height:s[$]||0});return{first:D(0),last:D(n-1),widest:D(S),highest:D(I),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 gP(this._alignToPixels?Ur(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=DM(this.getContext(),t,r))}return this.$context||(this.$context=wM(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Ln(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),f=Ta(a),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(T){return Ur(r,T,m)};let v,y,w,C,S,I,D,$,R,_,P,M;if(o==="top")v=b(this.bottom),I=this.bottom-f,$=v-p,_=b(t.top)+p,M=t.bottom;else if(o==="bottom")v=b(this.top),_=t.top,M=b(t.bottom)-p,I=v+p,$=this.top+f;else if(o==="left")v=b(this.right),S=this.right-f,D=v-p,R=b(t.left)+p,P=t.right;else if(o==="right")v=b(this.left),R=t.left,P=b(t.right)-p,S=v+p,D=this.left+f;else if(n==="x"){if(o==="center")v=b((t.top+t.bottom)/2+.5);else if(Re(o)){const T=Object.keys(o)[0],F=o[T];v=b(this.chart.scales[T].getPixelForValue(F))}_=t.top,M=t.bottom,I=v+p,$=I+f}else if(n==="y"){if(o==="center")v=b((t.left+t.right)/2);else if(Re(o)){const T=Object.keys(o)[0],F=o[T];v=b(this.chart.scales[T].getPixelForValue(F))}S=v-p,D=S-f,R=t.left,P=t.right}const A=Ce(i.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/A));for(y=0;y<d;y+=B){const T=this.getContext(y),F=a.setContext(T),V=s.setContext(T),j=F.lineWidth,N=F.color,Z=V.dash||[],z=V.dashOffset,q=F.tickWidth,W=F.tickColor,H=F.tickBorderDash||[],O=F.tickBorderDashOffset;w=xM(this,y,l),w!==void 0&&(C=Ur(r,w,j),u?S=D=R=P=C:I=$=_=M=C,h.push({tx1:S,ty1:I,tx2:D,ty2:$,x1:R,y1:_,x2:P,y2:M,width:j,color:N,borderDash:Z,borderDashOffset:z,tickWidth:q,tickColor:W,tickBorderDash:H,tickBorderDashOffset:O}))}return this._ticksLength=d,this._borderValue=v,h}_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,f=Ta(r.grid),h=f+c,g=d?-c:h,m=-Ln(this.labelRotation),p=[];let b,v,y,w,C,S,I,D,$,R,_,P,M="middle";if(i==="top")S=this.bottom-g,I=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+g,I=this._getXAxisLabelAlignment();else if(i==="left"){const B=this._getYAxisLabelAlignment(f);I=B.textAlign,C=B.x}else if(i==="right"){const B=this._getYAxisLabelAlignment(f);I=B.textAlign,C=B.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];S=this.chart.scales[B].getPixelForValue(T)+h}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")C=(t.left+t.right)/2-h;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];C=this.chart.scales[B].getPixelForValue(T)}I=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?M="top":l==="end"&&(M="bottom"));const A=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],w=y.label;const B=a.setContext(this.getContext(b));D=this.getPixelForTick(b)+a.labelOffset,$=this._resolveTickFontOptions(b),R=$.lineHeight,_=at(w)?w.length:1;const T=_/2,F=B.color,V=B.textStrokeColor,j=B.textStrokeWidth;let N=I;o?(C=D,I==="inner"&&(b===v-1?N=this.options.reverse?"left":"right":b===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?u==="near"||m!==0?P=-_*R+R/2:u==="center"?P=-A.highest.height/2-T*R+R:P=-A.highest.height+R/2:u==="near"||m!==0?P=R/2:u==="center"?P=A.highest.height/2-T*R:P=A.highest.height-_*R,d&&(P*=-1),m!==0&&!B.showLabelBackdrop&&(C+=R/2*Math.sin(m))):(S=D,P=(1-_)*R/2);let Z;if(B.showLabelBackdrop){const z=Ft(B.backdropPadding),q=A.heights[b],W=A.widths[b];let H=P-z.top,O=0-z.left;switch(M){case"middle":H-=q/2;break;case"bottom":H-=q;break}switch(I){case"center":O-=W/2;break;case"right":O-=W;break;case"inner":b===v-1?O-=W:b>0&&(O-=W/2);break}Z={left:O,top:H,width:W+z.width,height:q+z.height,color:B.backdropColor}}p.push({label:w,font:$,textOffset:P,options:{rotation:m,color:F,strokeColor:V,strokeWidth:j,textAlign:N,textBaseline:M,translation:[C,S],backdrop:Z}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ln(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,f;this.isHorizontal()?(u=Ur(t,this.left,o)-o/2,c=Ur(t,this.right,s)+s/2,d=f=l):(d=Ur(t,this.top,o)-o/2,f=Ur(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,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&mh(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;Si(r,u,0,c,l,s)}i&&ph(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=pt(r.font),o=Ft(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Re(n)?(l+=o.bottom,at(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=EM(this,l,n,s);Si(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:SM(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=Ce(t.grid&&t.grid.z,-1),i=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ai.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 pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Vs{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;$M(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,IM(t,o,r),this.override&&ot.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 ot[i]&&(delete ot[i][r],this.override&&delete Di[r])}}function IM(e,t,n){const r=Mo(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&_M(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function _M(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(".");ot.route(a,i,l,s)})}function $M(e){return"id"in e&&"defaults"in e}class RM{constructor(){this.controllers=new Vs(la,"datasets",!0),this.elements=new Vs(Wr,"elements"),this.plugins=new Vs(Object,"plugins"),this.scales=new Vs(Ai,"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):He(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=ch(t);Ze(r["before"+i],[],r),n[t](r),Ze(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 kn=new RM;class AM{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(Ze(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Je(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=Ce(r.options&&r.options.plugins,{}),a=FM(r);return i===!1&&!n?[]:TM(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 FM(e){const t={},n=[],r=Object.keys(kn.plugins.items);for(let a=0;a<r.length;a++)n.push(kn.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 PM(e,t){return!t&&e===!1?null:e===!0?{}:e}function TM(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=PM(r[l],i);u!==null&&a.push({plugin:s,options:MM(e.config,{plugin:s,local:n[l]},u,o)})}return a}function MM(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 kd(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function kM(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function BM(e,t){return e===t?"_index_":"_value_"}function Hp(e){if(e==="x"||e==="y"||e==="r")return e}function VM(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Bd(e,...t){if(Hp(e))return e;for(const n of t){const r=n.axis||VM(n.position)||e.length>1&&Hp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Wp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function OM(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 Wp(e,"x",n[0])||Wp(e,"y",n[0])}return{}}function NM(e,t){const n=Di[e.type]||{scales:{}},r=t.scales||{},i=kd(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Re(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=Bd(o,s,OM(o,e),ot.scales[s.type]),u=BM(l,i),c=n.scales||{};a[o]=Qa(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||kd(s,t),c=(Di[s]||{}).scales||{};Object.keys(c).forEach(d=>{const f=kM(d,l),h=o[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),Qa(a[h],[{axis:f},r[h],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];Qa(s,[ot.scales[s.type],ot.scale])}),a}function d3(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=NM(e,t)}function f3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function LM(e){return e=e||{},e.data=f3(e.data),d3(e),e}const zp=new Map,h3=new Set;function Os(e,t){let n=zp.get(e);return n||(n=t(),zp.set(e,n),h3.add(n)),n}const Ma=(e,t,n)=>{const r=ko(t,n);r!==void 0&&e.add(r)};class jM{constructor(t){this._config=LM(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=f3(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(),d3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Os(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Os(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Os(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Os(`${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=>Ma(l,t,d))),c.forEach(d=>Ma(l,i,d)),c.forEach(d=>Ma(l,Di[a]||{},d)),c.forEach(d=>Ma(l,ot,d)),c.forEach(d=>Ma(l,Td,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),h3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Di[n]||{},ot.datasets[n]||{},{type:n},ot,Td]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Gp(this._resolverCache,t,i);let l=o;if(WM(o,n)){a.$shared=!1,r=Vr(r)?r():r;const u=this.createResolver(t,r,s);l=ba(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Gp(this._resolverCache,t,r);return Re(n)?ba(a,n,void 0,i):a}}function Gp(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:vh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const HM=e=>Re(e)&&Object.getOwnPropertyNames(e).some(t=>Vr(e[t]));function WM(e,t){const{isScriptable:n,isIndexable:r}=J4(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Vr(s)||HM(s))||o&&at(s))return!0}return!1}var zM="4.4.3";const GM=["top","bottom","left","right","chartArea"];function Zp(e,t){return e==="top"||e==="bottom"||GM.indexOf(e)===-1&&t==="x"}function Xp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Yp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ze(n&&n.onComplete,[e],t)}function ZM(e){const t=e.chart,n=t.options.animation;Ze(n&&n.onProgress,[e],t)}function g3(e){return Ch()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sl={},Up=e=>{const t=g3(e);return Object.values(sl).filter(n=>n.canvas===t).pop()};function XM(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 YM(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Ns(e,t,n){return e.options.clip?e[n]:t[n]}function UM(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Ns(n,t,"left"),right:Ns(n,t,"right"),top:Ns(r,t,"top"),bottom:Ns(r,t,"bottom")}:t}var yr;let is=(yr=class{static register(...t){kn.add(...t),Jp()}static unregister(...t){kn.remove(...t),Jp()}constructor(t,n){const r=this.config=new jM(n),i=g3(t),a=Up(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||fM(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=nP(),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 AM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=yP(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],sl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}qn.listen(this,"complete",Yp),qn.listen(this,"progress",ZM),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Je(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 kn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bp(this.canvas,this.ctx),this}stop(){return qn.stop(this),this}resize(t,n){qn.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,xp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ze(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};He(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=Bd(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),He(a,o=>{const s=o.options,l=s.id,u=Bd(l,s),c=Ce(s.type,o.dtype);(s.position===void 0||Zp(s.position,u)!==Zp(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 f=kn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),He(i,(o,s)=>{o||delete r[s]}),He(r,o=>{bn.configure(this,o,o.options),bn.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(Xp("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||kd(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=kn.getController(s),{datasetElementType:u,dataElementType:c}=ot.datasets[s];Object.assign(l,{dataElementType:kn.getElement(c),datasetElementType:u&&kn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){He(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),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||He(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Xp("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){He(this.scales,t=>{bn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!lp(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;XM(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(!lp(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;bn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],He(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,Vr(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&&(qn.has(this)?this.attached&&!qn.running(this)&&qn.start(this):(this.draw(),Yp({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=UM(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&mh(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&&ph(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return ur(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=GT.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=Hr(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);Yl(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(),qn.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(),bp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete sl[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)};He(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(){He(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},He(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}});!Zl(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=lP(t),u=YM(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ze(a.onHover,[t,s,this],this),l&&Ze(a.onClick,[t,s,this],this));const c=!Zl(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)}},ie(yr,"defaults",ot),ie(yr,"instances",sl),ie(yr,"overrides",Di),ie(yr,"registry",kn),ie(yr,"version",zM),ie(yr,"getChart",Up),yr);function Jp(){return He(is.instances,e=>e._plugins.invalidate())}function JM(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+dt,r-dt),e.closePath(),e.clip()}function KM(e){return bh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function qM(e,t,n,r){const i=KM(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 Bt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Bt(i.innerStart,0,o),innerEnd:Bt(i.innerEnd,0,o)}}function zi(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),f=c>0?c+r+n+u:0;let h=0;const g=i-l;if(r){const B=c>0?c-r:0,T=d>0?d-r:0,F=(B+T)/2,V=F!==0?g*F/(F+r):g;h=(g-V)/2}const m=Math.max(.001,g*d-n/Qe)/d,p=(g-m)/2,b=l+p+h,v=i-p-h,{outerStart:y,outerEnd:w,innerStart:C,innerEnd:S}=qM(t,f,d,v-b),I=d-y,D=d-w,$=b+y/I,R=v-w/D,_=f+C,P=f+S,M=b+C/_,A=v-S/P;if(e.beginPath(),a){const B=($+R)/2;if(e.arc(o,s,d,$,B),e.arc(o,s,d,B,R),w>0){const j=zi(D,R,o,s);e.arc(j.x,j.y,w,R,v+dt)}const T=zi(P,v,o,s);if(e.lineTo(T.x,T.y),S>0){const j=zi(P,A,o,s);e.arc(j.x,j.y,S,v+dt,A+Math.PI)}const F=(v-S/f+(b+C/f))/2;if(e.arc(o,s,f,v-S/f,F,!0),e.arc(o,s,f,F,b+C/f,!0),C>0){const j=zi(_,M,o,s);e.arc(j.x,j.y,C,M+Math.PI,b-dt)}const V=zi(I,b,o,s);if(e.lineTo(V.x,V.y),y>0){const j=zi(I,$,o,s);e.arc(j.x,j.y,y,b-dt,$)}}else{e.moveTo(o,s);const B=Math.cos($)*d+o,T=Math.sin($)*d+s;e.lineTo(B,T);const F=Math.cos(R)*d+o,V=Math.sin(R)*d+s;e.lineTo(F,V)}e.closePath()}function QM(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%qe||qe))}return eu(e,t,n,r,l,i),e.fill(),l}function ek(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(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%qe||qe))}h&&JM(e,t,g),a||(eu(e,t,n,r,g,i),e.stroke())}class za extends Wr{constructor(n){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(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}=z4(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,m=Ce(f,u-l)>=qe||Vo(o,l,u),p=Ji(s,c+h,d+h);return m&&p}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,f=(s+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}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>qe?Math.floor(i/qe):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(Qe,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,QM(n,this,c,o,s),ek(n,this,c,o,s),n.restore()}}ie(za,"id","arc"),ie(za,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(za,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(za,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function m3(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function tk(e,t,n){e.lineTo(n.x,n.y)}function nk(e){return e.stepped?TP:e.tension||e.cubicInterpolationMode==="monotone"?MP:tk}function p3(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 rk(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=p3(i,n,r),c=nk(a);let{move:d=!0,reverse:f}=r||{},h,g,m;for(h=0;h<=u;++h)g=i[(s+(f?u-h:h))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,f,a.stepped),m=g);return l&&(g=i[(s+(f?u:0))%o],c(e,m,g,f,a.stepped)),!!l}function ik(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=p3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,f,h,g,m,p,b;const v=w=>(o+(u?s-w:w))%a,y=()=>{m!==p&&(e.lineTo(c,p),e.lineTo(c,m),e.lineTo(c,b))};for(l&&(h=i[v(0)],e.moveTo(h.x,h.y)),f=0;f<=s;++f){if(h=i[v(f)],h.skip)continue;const w=h.x,C=h.y,S=w|0;S===g?(C<m?m=C:C>p&&(p=C),c=(d*c+w)/++d):(y(),e.lineTo(w,C),g=S,d=0,m=p=C),b=C}y()}function Vd(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?ik:rk}function ak(e){return e.stepped?hT:e.tension||e.cubicInterpolationMode==="monotone"?gT:ni}function ok(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),m3(e,t.options),e.stroke(i)}function sk(e,t,n,r){const{segments:i,options:a}=t,o=Vd(t);for(const s of i)m3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const lk=typeof Path2D=="function";function uk(e,t,n,r){lk&&!t.options.segment?ok(e,t,n,r):sk(e,t,n,r)}class Ki extends Wr{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;aT(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=wT(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=yT(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=ak(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:f}=o[u],h=a[d],g=a[f];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),p=l(h,g,m,r.stepped);p[n]=t[n],s.push(p)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Vd(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Vd(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(),uk(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ie(Ki,"id","line"),ie(Ki,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(Ki,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(Ki,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Kp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class ro extends Wr{constructor(n){super();ie(this,"parsed");ie(this,"skip");ie(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 Kp(this,n,"x",r)}inYRange(n,r){return Kp(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||!ur(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Md(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ie(ro,"id","point"),ie(ro,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(ro,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const qp=(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)}},ck=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Qp extends Wr{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=Ze(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=pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=qp(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 f=-1,h=-c;return this.legendItems.forEach((g,m)=>{const p=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+p+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,h+=c,f++),l[m]={left:0,top:h,row:f,width:p,height:i},u[u.length-1]+=p+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,f=0,h=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:v,itemHeight:y}=dk(r,n,a,p,i);b>0&&h+y+2*s>c&&(d+=f+s,u.push({width:f,height:h}),g+=f+s,m++,f=h=0),l[b]={left:g,top:h,col:m,width:v,height:y},f=Math.max(f,v),h+=y+s}),d+=f,u.push({width:f,height:h}),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=_t(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=_t(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=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=_t(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;mh(t,this),this._draw(),ph(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ot.color,l=sa(t.rtl,this.left,this.width),u=pt(o.font),{padding:c}=o,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=qp(o,d),b=function(S,I,D){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const $=Ce(D.lineWidth,1);if(i.fillStyle=Ce(D.fillStyle,s),i.lineCap=Ce(D.lineCap,"butt"),i.lineDashOffset=Ce(D.lineDashOffset,0),i.lineJoin=Ce(D.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Ce(D.strokeStyle,s),i.setLineDash(Ce(D.lineDash,[])),o.usePointStyle){const R={radius:m*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:$},_=l.xPlus(S,g/2),P=I+f;U4(i,R,_,P,o.pointStyleWidth&&g)}else{const R=I+Math.max((d-m)/2,0),_=l.leftForLtr(S,g),P=oa(D.borderRadius);i.beginPath(),Object.values(P).some(M=>M!==0)?Kl(i,{x:_,y:R,w:g,h:m,radius:P}):i.rect(_,R,g,m),i.fill(),$!==0&&i.stroke()}i.restore()},v=function(S,I,D){Si(i,D.text,S,I+p/2,u,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},y=this.isHorizontal(),w=this._computeTitleHeight();y?h={x:_t(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:h={x:this.left+c,y:_t(a,this.top+w+c,this.bottom-n[0].height),line:0},t3(this.ctx,t.textDirection);const C=p+c;this.legendItems.forEach((S,I)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const D=i.measureText(S.text).width,$=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),R=g+f+D;let _=h.x,P=h.y;l.setWidth(this.width),y?I>0&&_+R+c>this.right&&(P=h.y+=C,h.line++,_=h.x=_t(a,this.left+c,this.right-r[h.line])):I>0&&P+C>this.bottom&&(_=h.x=_+n[h.line].width+c,h.line++,P=h.y=_t(a,this.top+w+c,this.bottom-n[h.line].height));const M=l.x(_);if(b(M,P,S),_=xP($,_+g+f,y?_+R:this.right,t.rtl),v(l.x(_),P,S),y)h.x+=R+c;else if(typeof S.text!="string"){const A=u.lineHeight;h.y+=b3(S,A)+c}else h.y+=C}),n3(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=pt(n.font),i=Ft(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,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=_t(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);c=u+_t(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=_t(s,d,d+f);o.textAlign=a.textAlign(hh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Si(o,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=pt(t.font),r=Ft(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Ji(t,this.left,this.right)&&Ji(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Ji(t,i.left,i.left+i.width)&&Ji(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!gk(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=ck(i,r);i&&!a&&Ze(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ze(n.onHover,[t,r,this],this)}else r&&Ze(n.onClick,[t,r,this],this)}}function dk(e,t,n,r,i){const a=fk(r,e,t,n),o=hk(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function fk(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 hk(e,t,n){let r=e;return typeof t.text!="string"&&(r=b3(t,n)),r}function b3(e,t){const n=e.text?e.text.length:0;return t*n}function gk(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var v3={id:"legend",_element:Qp,start(e,t,n){const r=e.legend=new Qp({ctx:e.ctx,options:n,chart:e});bn.configure(e,r,n),bn.addBox(e,r)},stop(e){bn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;bn.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=Ft(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 y3 extends Wr{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=at(r.text)?r.text.length:1;this._padding=Ft(r.padding);const a=i*pt(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=_t(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=_t(s,i,n),l=Qe*-.5):(c=a-t,d=_t(s,n,i),l=Qe*.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=pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);Si(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:hh(n.align),textBaseline:"middle",translation:[o,s]})}}function mk(e,t){const n=new y3({ctx:e.ctx,options:t,chart:e});bn.configure(e,n,t),bn.addBox(e,n),e.titleBlock=n}var x3={id:"title",_element:y3,start(e,t,n){mk(e,n)},stop(e){const t=e.titleBlock;bn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;bn.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 Ga={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=Pd(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 Tn(e,t){return t&&(at(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Qn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
173
|
+
*/class ET{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=Z4.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 qn=new ET;const Ep="transparent",IT={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=mp(e||Ep),i=r.valid&&mp(t||Ep);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class _T{constructor(t,n,r,i){const a=n[r];i=Ps([t.to,i,a,t.from]);const o=Ps([t.from,a,i]);this._active=!0,this._fn=t.fn||IT[t.type||typeof o],this._easing=to[t.easing]||to.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=Ps([t.to,n,i,t.from]),this._from=Ps([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 i3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Re(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Re(a))return;const o={};for(const s of n)o[s]=a[s];(at(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=RT(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&$T(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 f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,s);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}a[u]=d=new _T(f,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 qn.add(this._chart,r),!0}}function $T(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 RT(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 Ip(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 AT(e,t,n){if(n===!1)return!1;const r=Ip(e,n),i=Ip(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function FT(e){let t,n,r,i;return Re(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 a3(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 _p(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],xt(u)&&(a||t===0||pa(t)===pa(u))&&(t+=u)}return t}}function PT(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 $p(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function TT(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function MT(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 kT(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Rp(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 Ap(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=TT(a,o,r),d=t.length;let f;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[u]:p}=g,b=g._stacks||(g._stacks={});f=b[u]=kT(i,c,m),f[s]=p,f._top=Rp(f,o,!0,r.type),f._bottom=Rp(f,o,!1,r.type);const v=f._visualValues||(f._visualValues={});v[s]=p}}function Ac(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function BT(e,t){return Hr(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function VT(e,t,n){return Hr(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Aa(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 Fc=e=>e==="reset"||e==="none",Fp=(e,t)=>t?e:Object.assign({},e),OT=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:a3(n,!0),values:null};class la{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=$p(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&&Aa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,a=n.xAxisID=Ce(r.xAxisID,Ac(t,"x")),o=n.yAxisID=Ce(r.yAxisID,Ac(t,"y")),s=n.rAxisID=Ce(r.rAxisID,Ac(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&&fp(this._data,this),t._stacked&&Aa(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Re(n)){const i=this._cachedMeta;this._data=PT(n,i)}else if(r!==n){if(r){fp(r,this);const i=this._cachedMeta;Aa(i),i._parsed=[]}n&&Object.isExtensible(n)&&bP(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=$p(n.vScale,n),n.stack!==r.stack&&(i=!0,Aa(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&Ap(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,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{at(i[t])?f=this.parseArrayData(r,i,t,n):Re(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);r._sorted=l}o&&Ap(this,f)}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 f,h,g;for(f=0,h=i;f<h;++f)g=f+r,d[f]={[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,f,h;for(c=0,d=i;c<d;++c)f=c+r,h=n[f],u[c]={x:a.parse(ko(h,s),f),y:o.parse(ko(h,l),f)};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:a3(i,!0),values:n._stacks[t.axis]._visualValues};return _p(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=_p(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=OT(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=MT(s);let f,h;function g(){h=i[f];const m=h[s.axis];return!xt(h[t.axis])||c>m||d<m}for(f=0;f<o&&!(!g()&&(this.updateRangeFromParsed(u,t,h,l),a));++f);if(a){for(f=o-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(u,t,h,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],xt(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=FT(Ce(this.options.clip,AT(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=VT(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=BT(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&&Yl(r);if(s)return Fp(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(ot.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(f,h,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Fp(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),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new i3(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||Fc(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){Fc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Fc(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&&Aa(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])}}ie(la,"defaults",{}),ie(la,"datasetElementType",null),ie(la,"dataElementType",null);function NT(e,t,n){let r=1,i=1,a=0,o=0;if(t<qe){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),f=Math.sin(l),h=(y,D,C)=>Vo(y,s,l,!0)?1:Math.max(D,D*n,C,C*n),g=(y,D,C)=>Vo(y,s,l,!0)?-1:Math.min(D,D*n,C,C*n),m=h(0,u,d),p=h(dt,c,f),b=g(Qe,u,d),v=g(Qe+dt,c,f);r=(m-b)/2,i=(p-v)/2,a=-(m+b)/2,o=-(p+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Ha extends la{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(Re(r[t])){const{key:l="value"}=this._parsing;a=u=>+ko(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Ln(this.options.rotation-90)}_getCircumference(){return Ln(this.options.circumference)}_getRotationExtents(){let t=qe,n=-qe;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(rP(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=NT(d,c,l),p=(r.width-o)/f,b=(r.height-o)/h,v=Math.max(Math.min(p,b)/2,0),y=j4(this.options.radius,v),D=Math.max(y*l,0),C=(y-D)/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*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/qe)}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,f=a&&u.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:p}=this._getSharedOptions(n,i);let b=this._getRotation(),v;for(v=0;v<n;++v)b+=this._circumference(v,a);for(v=n;v<n+r;++v){const y=this._circumference(v,a),D=t[v],C={x:c+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:g,innerRadius:h};p&&(C.options=m||this.resolveDataElementOptions(v,D.active?"active":i)),b+=y,this.updateElement(D,v,C,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)?qe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Au(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(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ie(Ha,"id","doughnut"),ie(Ha,"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"}),ie(Ha,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(Ha,"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 al extends la{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}=CP(n,i,o);this._drawStart=s,this._drawCount=l,wP(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),f=o.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,p=Bo(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||a||i==="none",v=n+r,y=t.length;let D=n>0&&this.getParsed(n-1);for(let C=0;C<y;++C){const E=t[C],I=b?E:{};if(C<n||C>=v){I.skip=!0;continue}const w=this.getParsed(C),$=Je(w[h]),R=I[f]=o.getPixelForValue(w[f],C),_=I[h]=a||$?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,w,l):w[h],C);I.skip=isNaN(R)||isNaN(_)||$,I.stop=C>0&&Math.abs(w[f]-D[f])>p,m&&(I.parsed=w,I.raw=u.data[C]),d&&(I.options=c||this.resolveDataElementOptions(C,E.active?"active":i)),b||this.updateElement(E,C,I,i),D=w}}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()}}ie(al,"id","line"),ie(al,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ie(al,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Jr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Dh{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(Dh.prototype,t)}init(){}formats(){return Jr()}parse(){return Jr()}format(){return Jr()}add(){return Jr()}diff(){return Jr()}startOf(){return Jr()}endOf(){return Jr()}}var LT={_date:Dh};function jT(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?mP:ci;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),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function rs(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:f}=jT(a[s],t,o,i);for(let h=d;h<=f;++h){const g=c[h];g.skip||r(g,u,h)}}}function HT(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 Pc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||rs(e,n,t,function(s,l,u){!i&&!ur(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function WT(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=z4(o,{x:t.x,y:t.y});Vo(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return rs(e,n,t,a),i}function zT(e,t,n,r,i,a){let o=[];const s=HT(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,i);if(r&&!h)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!h)return;const p=s(t,g);p<l?(o=[{element:c,datasetIndex:d,index:f}],l=p):p===l&&o.push({element:c,datasetIndex:d,index:f})}return rs(e,n,t,u),o}function Tc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?WT(e,t,n,i):zT(e,t,n,r,i,a)}function Pp(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return rs(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 GT={evaluateInteractionItems:rs,modes:{index(e,t,n,r){const i=ti(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Pc(e,i,a,r,o):Tc(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=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Pc(e,i,a,r,o):Tc(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=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Pc(e,i,a,r,o)},nearest(e,t,n,r){const i=ti(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Tc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=ti(t,e);return Pp(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ti(t,e);return Pp(e,i,"y",n.intersect,r)}}};const o3=["left","top","right","bottom"];function Fa(e,t){return e.filter(n=>n.pos===t)}function Tp(e,t){return e.filter(n=>o3.indexOf(n.pos)===-1&&n.box.axis===t)}function Pa(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 ZT(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 XT(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!o3.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 YT(e,t){const n=XT(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 UT(e){const t=ZT(e),n=Pa(t.filter(u=>u.box.fullSize),!0),r=Pa(Fa(t,"left"),!0),i=Pa(Fa(t,"right")),a=Pa(Fa(t,"top"),!0),o=Pa(Fa(t,"bottom")),s=Tp(t,"x"),l=Tp(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Fa(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function Mp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function s3(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 JT(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Re(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&&s3(o,a.getPadding());const s=Math.max(0,t.outerWidth-Mp(o,e,"left","right")),l=Math.max(0,t.outerHeight-Mp(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 KT(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 qT(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 Wa(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,qT(s.horizontal,t));const{same:d,other:f}=JT(t,n,s,r);u|=d&&i.length,c=c||f,l.fullSize||i.push(s)}return u&&Wa(i,t,n,r)||c}function ks(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 kp(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]||{count:1,placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,f=u.size||l.height;Yl(u.start)&&(o=u.start),l.fullSize?ks(l,i.left,o,n.outerWidth-i.right-i.left,f):ks(l,t.left+u.placed,o,d,f),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,f=u.size||l.width;Yl(u.start)&&(a=u.start),l.fullSize?ks(l,a,i.top,f,n.outerHeight-i.bottom-i.top):ks(l,a,t.top+u.placed,f,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var bn={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=Ft(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=UT(e.boxes),l=s.vertical,u=s.horizontal;He(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,p)=>p.box.options&&p.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}),f=Object.assign({},i);s3(f,Ft(r));const h=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),g=YT(l.concat(u),d);Wa(s.fullSize,h,d,g),Wa(l,h,d,g),Wa(u,h,d,g)&&Wa(l,h,d,g),KT(h),kp(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,kp(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},He(s.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class l3{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 QT extends l3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ol="$chartjs",eM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bp=e=>e===null||e==="";function tM(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ol]={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",Bp(i)){const a=Cp(e,"width");a!==void 0&&(e.width=a)}if(Bp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=Cp(e,"height");a!==void 0&&(e.height=a)}return e}const u3=fT?{passive:!0}:!1;function nM(e,t,n){e&&e.addEventListener(t,n,u3)}function rM(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,u3)}function iM(e,t){const n=eM[e.type]||e.type,{x:r,y:i}=ti(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Ql(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function aM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ql(s.addedNodes,r),o=o&&!Ql(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function oM(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ql(s.removedNodes,r),o=o&&!Ql(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Oo=new Map;let Vp=0;function c3(){const e=window.devicePixelRatio;e!==Vp&&(Vp=e,Oo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function sM(e,t){Oo.size||window.addEventListener("resize",c3),Oo.set(e,t)}function lM(e){Oo.delete(e),Oo.size||window.removeEventListener("resize",c3)}function uM(e,t,n){const r=e.canvas,i=r&&wh(r);if(!i)return;const a=X4((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),sM(e,a),o}function Mc(e,t,n){n&&n.disconnect(),t==="resize"&&lM(e)}function cM(e,t,n){const r=e.canvas,i=X4(a=>{e.ctx!==null&&n(iM(a,e))},e);return nM(r,t,i),i}class dM extends l3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(tM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ol])return!1;const r=n[ol].initial;["height","width"].forEach(a=>{const o=r[a];Je(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[ol],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:aM,detach:oM,resize:uM}[n]||cM;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Mc,detach:Mc,resize:Mc}[n]||rM)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return dT(t,n,r,i)}isAttached(t){const n=t&&wh(t);return!!(n&&n.isConnected)}}function fM(e){return!Ch()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?QT:dM}var zs;let Wr=(zs=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Bo(this.x)&&Bo(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}},ie(zs,"defaults",{}),ie(zs,"defaultRoutes"),zs);function hM(e,t){const n=e.options.ticks,r=gM(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?pM(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return bM(t,u,a,o/i),u;const c=mM(a,t,i);if(o>0){let d,f;const h=o>1?Math.round((l-s)/(o-1)):null;for(Bs(t,u,c,Je(h)?0:s-h,s),d=0,f=o-1;d<f;d++)Bs(t,u,c,a[d],a[d+1]);return Bs(t,u,c,l,Je(h)?t.length:l+h),u}return Bs(t,u,c),u}function gM(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 mM(e,t,n){const r=vM(e),i=t.length/n;if(!r)return Math.max(i,1);const a=dP(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 pM(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function bM(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 Bs(e,t,n,r,i){const a=Ce(r,0),o=Math.min(Ce(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 vM(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 yM=e=>e==="left"?"right":e==="right"?"left":e,Op=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Np=(e,t)=>Math.min(t||e,e);function Lp(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 xM(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 CM(e,t){He(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 Ta(e){return e.drawTicks?e.tickLength:0}function jp(e,t){if(!e.display)return 0;const n=pt(e.font,t),r=Ft(e.padding);return(at(e.text)?e.text.length:1)*n.lineHeight+r.height}function wM(e,t){return Hr(e,{scale:t,type:"scale"})}function DM(e,t,n){return Hr(e,{tick:n,index:t,type:"tick"})}function SM(e,t,n){let r=hh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=yM(r)),r}function EM(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,g;const m=o-i,p=s-a;if(e.isHorizontal()){if(h=_t(r,a,s),Re(n)){const b=Object.keys(n)[0],v=n[b];g=c[b].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=Op(e,n,t);f=s-a}else{if(Re(n)){const b=Object.keys(n)[0],v=n[b];h=c[b].getPixelForValue(v)-p+t}else n==="center"?h=(u.left+u.right)/2-p+t:h=Op(e,n,t);g=_t(r,o,i),d=n==="left"?-dt:dt}return{titleX:h,titleY:g,maxWidth:f,rotation:d}}class Ai extends Wr{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=Qt(t,Number.POSITIVE_INFINITY),n=Qt(n,Number.NEGATIVE_INFINITY),r=Qt(r,Number.POSITIVE_INFINITY),i=Qt(i,Number.NEGATIVE_INFINITY),{min:Qt(t,r),max:Qt(n,i),minDefined:xt(t),maxDefined:xt(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:Qt(n,Qt(r,n)),max:Qt(r,Qt(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(){Ze(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=WP(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Lp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=hM(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(){Ze(this.options.afterUpdate,[this])}beforeSetDimensions(){Ze(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(){Ze(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ze(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ze(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=Ze(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ze(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ze(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Np(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,f=c.highest.height,h=Bt(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-Ta(t.grid)-n.padding-jp(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),o=dh(Math.min(Math.asin(Bt((c.highest.height+6)/s,-1,1)),Math.asin(Bt(l/u,-1,1))-Math.asin(Bt(f/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ze(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ze(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=jp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Ta(a)+l):(t.height=this.maxHeight,t.width=Ta(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,g=Ln(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(s){const b=r.mirror?0:p*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+b+h)}else{const b=r.mirror?0:m*d.width+p*f.height;t.width=Math.min(this.maxWidth,t.width+b+h)}this._calculatePadding(u,c,p,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 f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):a==="start"?h=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-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(){Ze(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++)Je(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=Lp(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/Np(n,r));let u=0,c=0,d,f,h,g,m,p,b,v,y,D,C;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=p=m.string,b=a[p]=a[p]||{data:{},gc:[]},v=m.lineHeight,y=D=0,!Je(g)&&!at(g))y=Jl(i,b.data,b.gc,y,g),D=v;else if(at(g))for(f=0,h=g.length;f<h;++f)C=g[f],!Je(C)&&!at(C)&&(y=Jl(i,b.data,b.gc,y,C),D+=v);o.push(y),s.push(D),u=Math.max(y,u),c=Math.max(D,c)}CM(a,n);const E=o.indexOf(u),I=s.indexOf(c),w=$=>({width:o[$]||0,height:s[$]||0});return{first:w(0),last:w(n-1),widest:w(E),highest:w(I),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 gP(this._alignToPixels?Ur(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=DM(this.getContext(),t,r))}return this.$context||(this.$context=wM(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Ln(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),f=Ta(a),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(T){return Ur(r,T,m)};let v,y,D,C,E,I,w,$,R,_,P,M;if(o==="top")v=b(this.bottom),I=this.bottom-f,$=v-p,_=b(t.top)+p,M=t.bottom;else if(o==="bottom")v=b(this.top),_=t.top,M=b(t.bottom)-p,I=v+p,$=this.top+f;else if(o==="left")v=b(this.right),E=this.right-f,w=v-p,R=b(t.left)+p,P=t.right;else if(o==="right")v=b(this.left),R=t.left,P=b(t.right)-p,E=v+p,w=this.left+f;else if(n==="x"){if(o==="center")v=b((t.top+t.bottom)/2+.5);else if(Re(o)){const T=Object.keys(o)[0],F=o[T];v=b(this.chart.scales[T].getPixelForValue(F))}_=t.top,M=t.bottom,I=v+p,$=I+f}else if(n==="y"){if(o==="center")v=b((t.left+t.right)/2);else if(Re(o)){const T=Object.keys(o)[0],F=o[T];v=b(this.chart.scales[T].getPixelForValue(F))}E=v-p,w=E-f,R=t.left,P=t.right}const A=Ce(i.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/A));for(y=0;y<d;y+=B){const T=this.getContext(y),F=a.setContext(T),V=s.setContext(T),j=F.lineWidth,N=F.color,Z=V.dash||[],z=V.dashOffset,q=F.tickWidth,W=F.tickColor,H=F.tickBorderDash||[],O=F.tickBorderDashOffset;D=xM(this,y,l),D!==void 0&&(C=Ur(r,D,j),u?E=w=R=P=C:I=$=_=M=C,h.push({tx1:E,ty1:I,tx2:w,ty2:$,x1:R,y1:_,x2:P,y2:M,width:j,color:N,borderDash:Z,borderDashOffset:z,tickWidth:q,tickColor:W,tickBorderDash:H,tickBorderDashOffset:O}))}return this._ticksLength=d,this._borderValue=v,h}_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,f=Ta(r.grid),h=f+c,g=d?-c:h,m=-Ln(this.labelRotation),p=[];let b,v,y,D,C,E,I,w,$,R,_,P,M="middle";if(i==="top")E=this.bottom-g,I=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+g,I=this._getXAxisLabelAlignment();else if(i==="left"){const B=this._getYAxisLabelAlignment(f);I=B.textAlign,C=B.x}else if(i==="right"){const B=this._getYAxisLabelAlignment(f);I=B.textAlign,C=B.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+h;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];E=this.chart.scales[B].getPixelForValue(T)+h}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")C=(t.left+t.right)/2-h;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];C=this.chart.scales[B].getPixelForValue(T)}I=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?M="top":l==="end"&&(M="bottom"));const A=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],D=y.label;const B=a.setContext(this.getContext(b));w=this.getPixelForTick(b)+a.labelOffset,$=this._resolveTickFontOptions(b),R=$.lineHeight,_=at(D)?D.length:1;const T=_/2,F=B.color,V=B.textStrokeColor,j=B.textStrokeWidth;let N=I;o?(C=w,I==="inner"&&(b===v-1?N=this.options.reverse?"left":"right":b===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?u==="near"||m!==0?P=-_*R+R/2:u==="center"?P=-A.highest.height/2-T*R+R:P=-A.highest.height+R/2:u==="near"||m!==0?P=R/2:u==="center"?P=A.highest.height/2-T*R:P=A.highest.height-_*R,d&&(P*=-1),m!==0&&!B.showLabelBackdrop&&(C+=R/2*Math.sin(m))):(E=w,P=(1-_)*R/2);let Z;if(B.showLabelBackdrop){const z=Ft(B.backdropPadding),q=A.heights[b],W=A.widths[b];let H=P-z.top,O=0-z.left;switch(M){case"middle":H-=q/2;break;case"bottom":H-=q;break}switch(I){case"center":O-=W/2;break;case"right":O-=W;break;case"inner":b===v-1?O-=W:b>0&&(O-=W/2);break}Z={left:O,top:H,width:W+z.width,height:q+z.height,color:B.backdropColor}}p.push({label:D,font:$,textOffset:P,options:{rotation:m,color:F,strokeColor:V,strokeWidth:j,textAlign:N,textBaseline:M,translation:[C,E],backdrop:Z}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ln(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,f;this.isHorizontal()?(u=Ur(t,this.left,o)-o/2,c=Ur(t,this.right,s)+s/2,d=f=l):(d=Ur(t,this.top,o)-o/2,f=Ur(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,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&mh(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;Si(r,u,0,c,l,s)}i&&ph(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=pt(r.font),o=Ft(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Re(n)?(l+=o.bottom,at(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=EM(this,l,n,s);Si(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:SM(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=Ce(t.grid&&t.grid.z,-1),i=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ai.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 pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Vs{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;$M(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,IM(t,o,r),this.override&&ot.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 ot[i]&&(delete ot[i][r],this.override&&delete Di[r])}}function IM(e,t,n){const r=Mo(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&_M(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function _M(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(".");ot.route(a,i,l,s)})}function $M(e){return"id"in e&&"defaults"in e}class RM{constructor(){this.controllers=new Vs(la,"datasets",!0),this.elements=new Vs(Wr,"elements"),this.plugins=new Vs(Object,"plugins"),this.scales=new Vs(Ai,"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):He(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=ch(t);Ze(r["before"+i],[],r),n[t](r),Ze(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 kn=new RM;class AM{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(Ze(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Je(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=Ce(r.options&&r.options.plugins,{}),a=FM(r);return i===!1&&!n?[]:TM(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 FM(e){const t={},n=[],r=Object.keys(kn.plugins.items);for(let a=0;a<r.length;a++)n.push(kn.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 PM(e,t){return!t&&e===!1?null:e===!0?{}:e}function TM(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=PM(r[l],i);u!==null&&a.push({plugin:s,options:MM(e.config,{plugin:s,local:n[l]},u,o)})}return a}function MM(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 kd(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function kM(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function BM(e,t){return e===t?"_index_":"_value_"}function Hp(e){if(e==="x"||e==="y"||e==="r")return e}function VM(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Bd(e,...t){if(Hp(e))return e;for(const n of t){const r=n.axis||VM(n.position)||e.length>1&&Hp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Wp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function OM(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 Wp(e,"x",n[0])||Wp(e,"y",n[0])}return{}}function NM(e,t){const n=Di[e.type]||{scales:{}},r=t.scales||{},i=kd(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Re(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=Bd(o,s,OM(o,e),ot.scales[s.type]),u=BM(l,i),c=n.scales||{};a[o]=Qa(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||kd(s,t),c=(Di[s]||{}).scales||{};Object.keys(c).forEach(d=>{const f=kM(d,l),h=o[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),Qa(a[h],[{axis:f},r[h],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];Qa(s,[ot.scales[s.type],ot.scale])}),a}function d3(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=NM(e,t)}function f3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function LM(e){return e=e||{},e.data=f3(e.data),d3(e),e}const zp=new Map,h3=new Set;function Os(e,t){let n=zp.get(e);return n||(n=t(),zp.set(e,n),h3.add(n)),n}const Ma=(e,t,n)=>{const r=ko(t,n);r!==void 0&&e.add(r)};class jM{constructor(t){this._config=LM(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=f3(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(),d3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Os(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Os(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Os(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Os(`${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=>Ma(l,t,d))),c.forEach(d=>Ma(l,i,d)),c.forEach(d=>Ma(l,Di[a]||{},d)),c.forEach(d=>Ma(l,ot,d)),c.forEach(d=>Ma(l,Td,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),h3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Di[n]||{},ot.datasets[n]||{},{type:n},ot,Td]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Gp(this._resolverCache,t,i);let l=o;if(WM(o,n)){a.$shared=!1,r=Vr(r)?r():r;const u=this.createResolver(t,r,s);l=ba(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Gp(this._resolverCache,t,r);return Re(n)?ba(a,n,void 0,i):a}}function Gp(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:vh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const HM=e=>Re(e)&&Object.getOwnPropertyNames(e).some(t=>Vr(e[t]));function WM(e,t){const{isScriptable:n,isIndexable:r}=J4(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Vr(s)||HM(s))||o&&at(s))return!0}return!1}var zM="4.4.3";const GM=["top","bottom","left","right","chartArea"];function Zp(e,t){return e==="top"||e==="bottom"||GM.indexOf(e)===-1&&t==="x"}function Xp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Yp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ze(n&&n.onComplete,[e],t)}function ZM(e){const t=e.chart,n=t.options.animation;Ze(n&&n.onProgress,[e],t)}function g3(e){return Ch()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sl={},Up=e=>{const t=g3(e);return Object.values(sl).filter(n=>n.canvas===t).pop()};function XM(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 YM(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Ns(e,t,n){return e.options.clip?e[n]:t[n]}function UM(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Ns(n,t,"left"),right:Ns(n,t,"right"),top:Ns(r,t,"top"),bottom:Ns(r,t,"bottom")}:t}var yr;let is=(yr=class{static register(...t){kn.add(...t),Jp()}static unregister(...t){kn.remove(...t),Jp()}constructor(t,n){const r=this.config=new jM(n),i=g3(t),a=Up(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||fM(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=nP(),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 AM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=yP(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],sl[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}qn.listen(this,"complete",Yp),qn.listen(this,"progress",ZM),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Je(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 kn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bp(this.canvas,this.ctx),this}stop(){return qn.stop(this),this}resize(t,n){qn.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,xp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ze(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};He(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=Bd(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),He(a,o=>{const s=o.options,l=s.id,u=Bd(l,s),c=Ce(s.type,o.dtype);(s.position===void 0||Zp(s.position,u)!==Zp(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 f=kn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),He(i,(o,s)=>{o||delete r[s]}),He(r,o=>{bn.configure(this,o,o.options),bn.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(Xp("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||kd(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=kn.getController(s),{datasetElementType:u,dataElementType:c}=ot.datasets[s];Object.assign(l,{dataElementType:kn.getElement(c),datasetElementType:u&&kn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){He(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),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||He(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Xp("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){He(this.scales,t=>{bn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!lp(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;XM(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(!lp(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;bn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],He(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,Vr(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&&(qn.has(this)?this.attached&&!qn.running(this)&&qn.start(this):(this.draw(),Yp({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=UM(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&mh(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&&ph(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return ur(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=GT.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=Hr(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);Yl(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(),qn.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(),bp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete sl[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)};He(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(){He(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},He(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}});!Zl(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=lP(t),u=YM(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ze(a.onHover,[t,s,this],this),l&&Ze(a.onClick,[t,s,this],this));const c=!Zl(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)}},ie(yr,"defaults",ot),ie(yr,"instances",sl),ie(yr,"overrides",Di),ie(yr,"registry",kn),ie(yr,"version",zM),ie(yr,"getChart",Up),yr);function Jp(){return He(is.instances,e=>e._plugins.invalidate())}function JM(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+dt,r-dt),e.closePath(),e.clip()}function KM(e){return bh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function qM(e,t,n,r){const i=KM(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 Bt(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Bt(i.innerStart,0,o),innerEnd:Bt(i.innerEnd,0,o)}}function zi(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),f=c>0?c+r+n+u:0;let h=0;const g=i-l;if(r){const B=c>0?c-r:0,T=d>0?d-r:0,F=(B+T)/2,V=F!==0?g*F/(F+r):g;h=(g-V)/2}const m=Math.max(.001,g*d-n/Qe)/d,p=(g-m)/2,b=l+p+h,v=i-p-h,{outerStart:y,outerEnd:D,innerStart:C,innerEnd:E}=qM(t,f,d,v-b),I=d-y,w=d-D,$=b+y/I,R=v-D/w,_=f+C,P=f+E,M=b+C/_,A=v-E/P;if(e.beginPath(),a){const B=($+R)/2;if(e.arc(o,s,d,$,B),e.arc(o,s,d,B,R),D>0){const j=zi(w,R,o,s);e.arc(j.x,j.y,D,R,v+dt)}const T=zi(P,v,o,s);if(e.lineTo(T.x,T.y),E>0){const j=zi(P,A,o,s);e.arc(j.x,j.y,E,v+dt,A+Math.PI)}const F=(v-E/f+(b+C/f))/2;if(e.arc(o,s,f,v-E/f,F,!0),e.arc(o,s,f,F,b+C/f,!0),C>0){const j=zi(_,M,o,s);e.arc(j.x,j.y,C,M+Math.PI,b-dt)}const V=zi(I,b,o,s);if(e.lineTo(V.x,V.y),y>0){const j=zi(I,$,o,s);e.arc(j.x,j.y,y,b-dt,$)}}else{e.moveTo(o,s);const B=Math.cos($)*d+o,T=Math.sin($)*d+s;e.lineTo(B,T);const F=Math.cos(R)*d+o,V=Math.sin(R)*d+s;e.lineTo(F,V)}e.closePath()}function QM(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%qe||qe))}return eu(e,t,n,r,l,i),e.fill(),l}function ek(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(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%qe||qe))}h&&JM(e,t,g),a||(eu(e,t,n,r,g,i),e.stroke())}class za extends Wr{constructor(n){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(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}=z4(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,m=Ce(f,u-l)>=qe||Vo(o,l,u),p=Ji(s,c+h,d+h);return m&&p}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,f=(s+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}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>qe?Math.floor(i/qe):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(Qe,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,QM(n,this,c,o,s),ek(n,this,c,o,s),n.restore()}}ie(za,"id","arc"),ie(za,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(za,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(za,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function m3(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function tk(e,t,n){e.lineTo(n.x,n.y)}function nk(e){return e.stepped?TP:e.tension||e.cubicInterpolationMode==="monotone"?MP:tk}function p3(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 rk(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=p3(i,n,r),c=nk(a);let{move:d=!0,reverse:f}=r||{},h,g,m;for(h=0;h<=u;++h)g=i[(s+(f?u-h:h))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,f,a.stepped),m=g);return l&&(g=i[(s+(f?u:0))%o],c(e,m,g,f,a.stepped)),!!l}function ik(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=p3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,f,h,g,m,p,b;const v=D=>(o+(u?s-D:D))%a,y=()=>{m!==p&&(e.lineTo(c,p),e.lineTo(c,m),e.lineTo(c,b))};for(l&&(h=i[v(0)],e.moveTo(h.x,h.y)),f=0;f<=s;++f){if(h=i[v(f)],h.skip)continue;const D=h.x,C=h.y,E=D|0;E===g?(C<m?m=C:C>p&&(p=C),c=(d*c+D)/++d):(y(),e.lineTo(D,C),g=E,d=0,m=p=C),b=C}y()}function Vd(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?ik:rk}function ak(e){return e.stepped?hT:e.tension||e.cubicInterpolationMode==="monotone"?gT:ni}function ok(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),m3(e,t.options),e.stroke(i)}function sk(e,t,n,r){const{segments:i,options:a}=t,o=Vd(t);for(const s of i)m3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const lk=typeof Path2D=="function";function uk(e,t,n,r){lk&&!t.options.segment?ok(e,t,n,r):sk(e,t,n,r)}class Ki extends Wr{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;aT(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=wT(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=yT(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=ak(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:f}=o[u],h=a[d],g=a[f];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),p=l(h,g,m,r.stepped);p[n]=t[n],s.push(p)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Vd(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Vd(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(),uk(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ie(Ki,"id","line"),ie(Ki,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(Ki,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(Ki,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Kp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class ro extends Wr{constructor(n){super();ie(this,"parsed");ie(this,"skip");ie(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 Kp(this,n,"x",r)}inYRange(n,r){return Kp(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||!ur(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Md(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ie(ro,"id","point"),ie(ro,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(ro,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const qp=(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)}},ck=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Qp extends Wr{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=Ze(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=pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=qp(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 f=-1,h=-c;return this.legendItems.forEach((g,m)=>{const p=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+p+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,h+=c,f++),l[m]={left:0,top:h,row:f,width:p,height:i},u[u.length-1]+=p+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,f=0,h=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:v,itemHeight:y}=dk(r,n,a,p,i);b>0&&h+y+2*s>c&&(d+=f+s,u.push({width:f,height:h}),g+=f+s,m++,f=h=0),l[b]={left:g,top:h,col:m,width:v,height:y},f=Math.max(f,v),h+=y+s}),d+=f,u.push({width:f,height:h}),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=_t(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=_t(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=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=_t(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;mh(t,this),this._draw(),ph(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ot.color,l=sa(t.rtl,this.left,this.width),u=pt(o.font),{padding:c}=o,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=qp(o,d),b=function(E,I,w){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const $=Ce(w.lineWidth,1);if(i.fillStyle=Ce(w.fillStyle,s),i.lineCap=Ce(w.lineCap,"butt"),i.lineDashOffset=Ce(w.lineDashOffset,0),i.lineJoin=Ce(w.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Ce(w.strokeStyle,s),i.setLineDash(Ce(w.lineDash,[])),o.usePointStyle){const R={radius:m*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:$},_=l.xPlus(E,g/2),P=I+f;U4(i,R,_,P,o.pointStyleWidth&&g)}else{const R=I+Math.max((d-m)/2,0),_=l.leftForLtr(E,g),P=oa(w.borderRadius);i.beginPath(),Object.values(P).some(M=>M!==0)?Kl(i,{x:_,y:R,w:g,h:m,radius:P}):i.rect(_,R,g,m),i.fill(),$!==0&&i.stroke()}i.restore()},v=function(E,I,w){Si(i,w.text,E,I+p/2,u,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},y=this.isHorizontal(),D=this._computeTitleHeight();y?h={x:_t(a,this.left+c,this.right-r[0]),y:this.top+c+D,line:0}:h={x:this.left+c,y:_t(a,this.top+D+c,this.bottom-n[0].height),line:0},t3(this.ctx,t.textDirection);const C=p+c;this.legendItems.forEach((E,I)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const w=i.measureText(E.text).width,$=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),R=g+f+w;let _=h.x,P=h.y;l.setWidth(this.width),y?I>0&&_+R+c>this.right&&(P=h.y+=C,h.line++,_=h.x=_t(a,this.left+c,this.right-r[h.line])):I>0&&P+C>this.bottom&&(_=h.x=_+n[h.line].width+c,h.line++,P=h.y=_t(a,this.top+D+c,this.bottom-n[h.line].height));const M=l.x(_);if(b(M,P,E),_=xP($,_+g+f,y?_+R:this.right,t.rtl),v(l.x(_),P,E),y)h.x+=R+c;else if(typeof E.text!="string"){const A=u.lineHeight;h.y+=b3(E,A)+c}else h.y+=C}),n3(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=pt(n.font),i=Ft(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,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=_t(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);c=u+_t(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=_t(s,d,d+f);o.textAlign=a.textAlign(hh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Si(o,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=pt(t.font),r=Ft(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Ji(t,this.left,this.right)&&Ji(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Ji(t,i.left,i.left+i.width)&&Ji(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!gk(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=ck(i,r);i&&!a&&Ze(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ze(n.onHover,[t,r,this],this)}else r&&Ze(n.onClick,[t,r,this],this)}}function dk(e,t,n,r,i){const a=fk(r,e,t,n),o=hk(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function fk(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 hk(e,t,n){let r=e;return typeof t.text!="string"&&(r=b3(t,n)),r}function b3(e,t){const n=e.text?e.text.length:0;return t*n}function gk(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var v3={id:"legend",_element:Qp,start(e,t,n){const r=e.legend=new Qp({ctx:e.ctx,options:n,chart:e});bn.configure(e,r,n),bn.addBox(e,r)},stop(e){bn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;bn.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=Ft(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 y3 extends Wr{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=at(r.text)?r.text.length:1;this._padding=Ft(r.padding);const a=i*pt(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=_t(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=_t(s,i,n),l=Qe*-.5):(c=a-t,d=_t(s,n,i),l=Qe*.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=pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);Si(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:hh(n.align),textBaseline:"middle",translation:[o,s]})}}function mk(e,t){const n=new y3({ctx:e.ctx,options:t,chart:e});bn.configure(e,n,t),bn.addBox(e,n),e.titleBlock=n}var x3={id:"title",_element:y3,start(e,t,n){mk(e,n)},stop(e){const t=e.titleBlock;bn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;bn.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 Ga={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=Pd(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 Tn(e,t){return t&&(at(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Qn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
174
174
|
`)>-1?e.split(`
|
175
|
-
`):e}function pk(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 e0(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=pt(t.bodyFont),u=pt(t.titleFont),c=pt(t.footerFont),d=a.length,f=i.length,h=r.length,g=Ft(t.padding);let m=g.height,p=0,b=r.reduce((w,C)=>w+C.before.length+C.lines.length+C.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*w+(b-h)*l.lineHeight+(b-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let v=0;const y=function(w){p=Math.max(p,n.measureText(w).width+v)};return n.save(),n.font=u.string,He(e.title,y),n.font=l.string,He(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,He(r,w=>{He(w.before,y),He(w.lines,y),He(w.after,y)}),v=0,n.font=c.string,He(e.footer,y),n.restore(),p+=g.width,{width:p,height:m}}function bk(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function vk(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 yk(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"),vk(u,e,t,n)&&(u="center"),u}function t0(e,t,n){const r=n.yAlign||t.yAlign||bk(e,n);return{xAlign:n.xAlign||t.xAlign||yk(e,t,n,r),yAlign:r}}function xk(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Ck(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function n0(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:f,bottomRight:h}=oa(o);let g=xk(t,s);const m=Ck(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,f)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:Bt(g,0,r.width-t.width),y:Bt(m,0,r.height-t.height)}}function Ls(e,t,n){const r=Ft(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function r0(e){return Tn([],Qn(e))}function wk(e,t,n){return Hr(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function i0(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const C3={beforeTitle:Jn,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:Jn,beforeBody:Jn,beforeLabel:Jn,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 Je(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:Jn,afterBody:Jn,beforeFooter:Jn,footer:Jn,afterFooter:Jn};function Wt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?C3[t].call(n,r):i}class Od extends Wr{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 i3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=wk(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Wt(r,"beforeTitle",this,t),a=Wt(r,"title",this,t),o=Wt(r,"afterTitle",this,t);let s=[];return s=Tn(s,Qn(i)),s=Tn(s,Qn(a)),s=Tn(s,Qn(o)),s}getBeforeBody(t,n){return r0(Wt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return He(t,a=>{const o={before:[],lines:[],after:[]},s=i0(r,a);Tn(o.before,Qn(Wt(s,"beforeLabel",this,a))),Tn(o.lines,Wt(s,"label",this,a)),Tn(o.after,Qn(Wt(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return r0(Wt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Wt(r,"beforeFooter",this,t),a=Wt(r,"footer",this,t),o=Wt(r,"afterFooter",this,t);let s=[];return s=Tn(s,Qn(i)),s=Tn(s,Qn(a)),s=Tn(s,Qn(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(pk(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,f)=>t.filter(c,d,f,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),He(s,c=>{const d=i0(t.callbacks,c);i.push(Wt(d,"labelColor",this,c)),a.push(Wt(d,"labelPointStyle",this,c)),o.push(Wt(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=Ga[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=e0(this,r),u=Object.assign({},s,l),c=t0(this.chart,r,u),d=n0(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}=oa(s),{x:f,y:h}=t,{width:g,height:m}=n;let p,b,v,y,w,C;return a==="center"?(w=h+m/2,i==="left"?(p=f,b=p-o,y=w+o,C=w-o):(p=f+g,b=p+o,y=w-o,C=w+o),v=p):(i==="left"?b=f+Math.max(l,c)+o:i==="right"?b=f+g-Math.max(u,d)-o:b=this.caretX,a==="top"?(y=h,w=y-o,p=b-o,v=b+o):(y=h+m,w=y+o,p=b+o,v=b-o),C=y),{x1:p,x2:b,x3:v,y1:y,y2:w,y3:C}}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=Ls(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(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=pt(a.bodyFont),d=Ls(this,"left",a),f=i.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+h;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=i.leftForLtr(f,u)+u/2,b=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Md(t,m,p,b),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Md(t,m,p,b)}else{t.lineWidth=Re(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(f,u),p=i.leftForLtr(i.xPlus(f,1),u-2),b=oa(o.borderRadius);Object.values(b).some(v=>v!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Kl(t,{x:m,y:g,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Kl(t,{x:p,y:g+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(p,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=pt(r.bodyFont);let f=d.lineHeight,h=0;const g=sa(r.rtl,this.x,this.width),m=function(D){n.fillText(D,g.x(t.x+h),t.y+f/2),t.y+=f+a},p=g.textAlign(o);let b,v,y,w,C,S,I;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=Ls(this,p,r),n.fillStyle=r.bodyColor,He(this.beforeBody,m),h=s&&p!=="right"?o==="center"?u/2+c:u+2+c:0,w=0,S=i.length;w<S;++w){for(b=i[w],v=this.labelTextColors[w],n.fillStyle=v,He(b.before,m),y=b.lines,s&&y.length&&(this._drawColorBox(n,t,w,g,r),f=Math.max(d.lineHeight,l)),C=0,I=y.length;C<I;++C)m(y[C]),f=d.lineHeight;He(b.after,m)}h=0,f=d.lineHeight,He(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=Ls(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(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:f,bottomLeft:h,bottomRight:g}=oa(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-f,l),n.quadraticCurveTo(s+u,l,s+u,l+f),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+h,l+c),n.quadraticCurveTo(s,l+c,s,l+c-h),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=Ga[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=e0(this,t),l=Object.assign({},o,this._size),u=t0(n,t,l),c=n0(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=Ft(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),t3(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),n3(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=!Zl(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||!Zl(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=Ga[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}ie(Od,"positioners",Ga);var w3={id:"tooltip",_element:Od,positioners:Ga,afterInit(e,t,n){n&&(e.tooltip=new Od({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:C3},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 Dk=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Sk(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Dk(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const Ek=(e,t)=>e===null?null:Bt(Math.round(e),0,t);function a0(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class tu extends Ai{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(Je(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Sk(r,t,Ce(n,t),this._addedLabels),Ek(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 a0.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}}ie(tu,"id","category"),ie(tu,"defaults",{ticks:{callback:a0}});function Ik(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=a||1,g=c-1,{min:m,max:p}=t,b=!Je(o),v=!Je(s),y=!Je(u),w=(p-m)/(d+1);let C=cp((p-m)/g/h)*h,S,I,D,$;if(C<1e-14&&!b&&!v)return[{value:m},{value:p}];$=Math.ceil(p/C)-Math.floor(m/C),$>g&&(C=cp($*C/g/h)*h),Je(l)||(S=Math.pow(10,l),C=Math.ceil(C*S)/S),i==="ticks"?(I=Math.floor(m/C)*C,D=Math.ceil(p/C)*C):(I=m,D=p),b&&v&&a&&fP((s-o)/a,C/1e3)?($=Math.round(Math.min((s-o)/C,c)),C=(s-o)/$,I=o,D=s):y?(I=b?o:I,D=v?s:D,$=u-1,C=(D-I)/$):($=(D-I)/C,eo($,Math.round($),C/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(dp(C),dp(I));S=Math.pow(10,Je(l)?R:l),I=Math.round(I*S)/S,D=Math.round(D*S)/S;let _=0;for(b&&(f&&I!==o?(n.push({value:o}),I<o&&_++,eo(Math.round((I+_*C)*S)/S,o,o0(o,w,e))&&_++):I<o&&_++);_<$;++_){const P=Math.round((I+_*C)*S)/S;if(v&&P>s)break;n.push({value:P})}return v&&f&&D!==s?n.length&&eo(n[n.length-1].value,s,o0(s,w,e))?n[n.length-1].value=s:n.push({value:s}):(!v||D===s)&&n.push({value:D}),n}function o0(e,t,{horizontal:n,minRotation:r}){const i=Ln(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class nu extends Ai{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 Je(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=pa(i),u=pa(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=Ik(i,a);return t.bounds==="ticks"&&W4(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 Au(t,this.chart.options.locale,this.options.ticks.format)}}class ru extends nu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?t:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ln(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}}ie(ru,"id","linear"),ie(ru,"defaults",{ticks:{callback:Fu.formatters.numeric}});const No=e=>Math.floor(Rr(e)),Kr=(e,t)=>Math.pow(10,No(e)+t);function s0(e){return e/Math.pow(10,No(e))===1}function l0(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function _k(e,t){const n=t-e;let r=No(n);for(;l0(e,t,r)>10;)r++;for(;l0(e,t,r)<10;)r--;return Math.min(r,No(e))}function $k(e,{min:t,max:n}){t=Qt(e.min,t);const r=[],i=No(t);let a=_k(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*o)/o,c=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((u-c)/Math.pow(10,a)),f=Qt(e.min,Math.round((l+c+d*Math.pow(10,a))*o)/o);for(;f<n;)r.push({value:f,major:s0(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((l+c+d*Math.pow(10,a))*o)/o;const h=Qt(e.max,f);return r.push({value:h,major:s0(h),significand:d}),r}class u0 extends Ai{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=nu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return xt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?Math.max(0,t):null,this.max=xt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!xt(this._userMin)&&(this.min=t===Kr(this.min,0)?Kr(this.min,-1):Kr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Kr(r,-1)),o(Kr(i,1)))),r<=0&&a(Kr(i,-1)),i<=0&&o(Kr(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=$k(n,this);return t.bounds==="ticks"&&W4(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Au(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Rr(t),this._valueRange=Rr(this.max)-Rr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Rr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ie(u0,"id","logarithmic"),ie(u0,"defaults",{ticks:{callback:Fu.formatters.logarithmic,major:{enabled:!0}}});function Nd(e){const t=e.ticks;if(t.display&&e.display){const n=Ft(t.backdropPadding);return Ce(t.font&&t.font.size,ot.font.size)+n.height}return 0}function Rk(e,t,n){return n=at(n)?n:[n],{w:PP(e,t.string,n),h:n.length*t.lineHeight}}function c0(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Ak(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Qe/a:0;for(let l=0;l<a;l++){const u=o.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],s),d=pt(u.font),f=Rk(e.ctx,d,e._pointLabels[l]);r[l]=f;const h=Cn(e.getIndexAngle(l)+s),g=Math.round(dh(h)),m=c0(g,c.x,f.w,0,180),p=c0(g,c.y,f.h,90,270);Fk(n,t,h,m,p)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Mk(e,r,i)}function Fk(e,t,n,r,i){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function Pk(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),u=Math.round(dh(Cn(l.angle+dt))),c=Vk(l.y,s.h,u),d=kk(u),f=Bk(l.x,s.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+s.w,bottom:c+s.h}}function Tk(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(ur({x:n,y:r},t)||ur({x:n,y:a},t)||ur({x:i,y:r},t)||ur({x:i,y:a},t))}function Mk(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Nd(a)/2,additionalAngle:o?Qe/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=Pk(e,c,l);r.push(d),s==="auto"&&(d.visible=Tk(d,u),d.visible&&(u=d))}return r}function kk(e){return e===0||e===180?"center":e<180?"left":"right"}function Bk(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Vk(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Ok(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!Je(s)){const l=oa(t.borderRadius),u=Ft(t.backdropPadding);e.fillStyle=s;const c=r-u.left,d=i-u.top,f=a-r+u.width,h=o-i+u.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Kl(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function Nk(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));Ok(n,o,a);const s=pt(o.font),{x:l,y:u,textAlign:c}=a;Si(n,e._pointLabels[i],l,u+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function D3(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,qe);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function Lk(e,t,n,r,i){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),D3(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function jk(e,t,n){return Hr(e,{label:n,index:t,type:"pointLabel"})}class js extends nu{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ft(Nd(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=xt(t)&&!isNaN(t)?t:0,this.max=xt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Nd(this.options))}generateTickLabels(t){nu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Ze(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ak(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=qe/(this._pointLabels.length||1),r=this.options.startAngle||0;return Cn(t*n+Ln(r))}getDistanceFromCenterForValue(t){if(Je(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Je(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return jk(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-dt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),D3(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,o=this._pointLabels.length;let s,l,u;if(n.pointLabels.display&&Nk(this,o),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=i.setContext(f),g=a.setContext(f);Lk(this,h,l,o,g)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const c=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=pt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,o=t.measureText(s.label).width,t.fillStyle=u.backdropColor;const d=Ft(u.backdropPadding);t.fillRect(-o/2-d.left,-a-c.size/2-d.top,o+d.width,c.size+d.height)}Si(t,s.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}ie(js,"id","radialLinear"),ie(js,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ie(js,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(js,"descriptors",{angleLines:{_fallback:"grid"}});const Tu={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}},zt=Object.keys(Tu);function d0(e,t){return e-t}function f0(e,t){if(Je(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)),xt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Bo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function h0(e,t,n,r){const i=zt.length;for(let a=zt.indexOf(e);a<i-1;++a){const o=Tu[zt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return zt[a]}return zt[i-1]}function Hk(e,t,n,r,i){for(let a=zt.length-1;a>=zt.indexOf(n);a--){const o=zt[a];if(Tu[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return zt[n?zt.indexOf(n):0]}function Wk(e){for(let t=zt.indexOf(e)+1,n=zt.length;t<n;++t)if(Tu[zt[t]].common)return zt[t]}function g0(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=fh(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function zk(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 m0(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:zk(e,r,i,n)}class iu extends Ai{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 LT._date(t.adapters.date);i.init(n),Qa(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:f0(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=xt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=xt(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=pP(i,a,o);return this._unit=n.unit||(r.autoSkip?h0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Hk(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Wk(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),m0(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=Bt(n,0,o),r=Bt(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||h0(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ce(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=Bo(l)||l===!0,c={};let d=n,f,h;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(f=d,h=0;f<r;f=+t.add(f,s,o),h++)g0(c,f,g);return(f===r||i.bounds==="ticks"||h===1)&&g0(c,f,g),Object.keys(c).sort(d0).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 Ze(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?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=Ln(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,m0(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(f0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vP(t.sort(d0))}}ie(iu,"id","time"),ie(iu,"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 Hs(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}=ci(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}=ci(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 p0 extends iu{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=Hs(n,this.min),this._tableRange=Hs(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(Hs(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Hs(this._table,r*this._tableRange+this._minPos,!0)}}ie(p0,"id","timeseries"),ie(p0,"defaults",iu.defaults);const S3="label";function b0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Gk(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function E3(e,t){e.labels=t}function I3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S3;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 Zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S3;const n={labels:[],datasets:[]};return E3(n,e.labels),I3(n,e.datasets,t),n}function Xk(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,...f}=e,h=x.useRef(null),g=x.useRef(),m=()=>{h.current&&(g.current=new is(h.current,{type:o,data:Zk(s,a),options:l&&{...l},plugins:u}),b0(t,g.current))},p=()=>{b0(t,null),g.current&&(g.current.destroy(),g.current=null)};return x.useEffect(()=>{!i&&g.current&&l&&Gk(g.current,l)},[i,l]),x.useEffect(()=>{!i&&g.current&&E3(g.current.config.data,s.labels)},[i,s.labels]),x.useEffect(()=>{!i&&g.current&&s.datasets&&I3(g.current.config.data,s.datasets,a)},[i,s.datasets]),x.useEffect(()=>{g.current&&(i?(p(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),x.useEffect(()=>{g.current&&(p(),setTimeout(m))},[o]),x.useEffect(()=>(m(),()=>p()),[]),x.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),c)}const Yk=x.forwardRef(Xk);function _3(e,t){return is.register(t),x.forwardRef((n,r)=>x.createElement(Yk,Object.assign({},n,{ref:r,type:e})))}const Uk=_3("line",al),v0=_3("doughnut",Ha);is.register(tu,ru,ro,Ki,za,x3,w3,v3);const y0=(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 w=[].concat(t),C=w.length,S=u.font;let I=0,D=0,$;for($=0;$<C;++$)u.font=w[$].font,I=Math.max(u.measureText(w[$].text).width,I),D+=(_=w[$].font)==null?void 0:_.lineHeight;return u.font=S,{height:D,width:I}},d=(w,C)=>{let S=document.createElement("div");document.body.appendChild(S),S.style.fontSize=`${C}px`,S.style.position="absolute",S.style.left="-10",S.style.top="-10",S.textContent=w;const I={width:S.clientWidth,height:S.clientHeight};return document.body.removeChild(S),S=null,I},f=c(),h=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,p=(e.chartArea.top+e.chartArea.bottom)/2-f.height/2;let b;const v=t.length;let y=0;for(b=0;b<v;++b){let w=(i=t[b].font)==null?void 0:i.size,C=(a=t[b].font)==null?void 0:a.lineHeight;const S=typeof t[b].text=="number"?t[b].text.toString():t[b].text;for(;d(S,w).width>h+(t[b].id==="value"?50:0);)w-=1,C=d(S,w).height;S.length>22&&C<14&&(C=18);const I=p+C/2+y,D=typeof t[b].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[b].text):t[b].text;let $=t[b].urlIconDesc?" ":"";if(t[b].percentage!==void 0?$+=`${t[b].percentage}% ${t[b].text}`:$+=D,u.fillStyle=t[b].color,u.font=`${w<10?10:w}px sans-serif`,y+=C,t[b].percentage!==void 0&&t[b].urlIconDesc){const R=((s=(o=t[b])==null?void 0:o.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[b].urlIconDesc,u.drawImage(_,45-(R>6?R+2:R-2.5),I-8,16,14)}u.fillText($,g,I)}u.restore(),u.save()}},Jk=({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:f})=>{const h={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 p=document.getElementById("chartjs-tooltip");p||(p=document.createElement("div"),p.id="chartjs-tooltip",p.innerHTML="<table></table>",document.body.appendChild(p));const b=m.tooltip;if(b.opacity===0){p.style.opacity="0";return}p.classList.remove("above","below","no-transform"),b.yAlign?p.classList.add(b.yAlign):p.classList.add("no-transform");const v=t.filter(I=>!I[u]),y=t.filter(I=>I[c]>0&&I[c]<1);if(v.length===1&&y.length===1)return;function w(I){return I.lines}if(b.body){const I=b.title||[];let D=b.body.map(w),$="<thead>";I.forEach(_=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; font-weight: 600",P+="; font-size: 12px",P+="; padding: 0px 14px",$+=`<tr><span style="${P}">${_}</span></tr>`}),$+="</thead><tbody>",D.length>1&&D[0][0]===D[1][0]&&(D=[D[0]]),D.forEach(_=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; color: #0163C8",P+="; padding: 0px 14px",P+="; font-size: 12px";const M=`<span style="${P}">${_}</span>`;$+=`<tr><td>${M}</td></tr>`}),$+="</tbody>";const R=p.querySelector("table");R&&(R.innerHTML=$)}const C=m.chart.canvas.getBoundingClientRect(),S=C.top+window.pageYOffset+b.caretY;p.style.opacity="1",p.style.border="solid 1px #0163C8",p.style.background="white",p.style.height="fit-content",p.style.borderRadius="10px",p.style.position="absolute",p.style.zIndex="10",p.style.padding="4px 0",p.style.left=`${C.left+window.pageXOffset+b.caretX-80}px`,p.style.top=`${S>300&&!s?280:S}px`,p.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const p=t[m[0].dataIndex];return p==null?void 0:p[u]},label(m){const p=t==null?void 0:t[m.dataIndex];let b="Nilai: ";return p&&(b+=p.value),b}}}},elements:{arc:{borderWidth:0}}};return E.jsxs("div",{className:f??"",children:[!s&&E.jsx(v0,{data:h,redraw:i,plugins:[{id:"draw",beforeDraw(m){y0(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&E.jsx(v0,{data:h,redraw:i,plugins:[{id:"draw",beforeDraw(m){y0(m,o.filter(p=>p.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},Ws=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Kk=({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:f={},offsetPopover:h=5,zIndexPopper:g=1})=>{const{locale:m}=Rn(),p=x.useRef(null),b=Ws(i),v=Ws(a),y=w=>{var C;typeof l=="function"&&(l({month:w.month,year:w.year}),(C=p.current)==null||C.setShow(!1))};return E.jsxs(E.Fragment,{children:[E.jsx("div",{id:c,onClick:w=>{var C;w.stopPropagation(),(C=p.current)==null||C.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),E.jsx("div",{className:o??"",children:E.jsx(Ei,{zIndex:g,ref:p,offset:h,id:d,floatingOptions:{placement:"bottom-end",...f},onClick:w=>w.stopPropagation(),children:E.jsx(rh,{locale:"id-ID",children:E.jsx(_u,{minValue:b,maxValue:v,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:m,value:Ws(`${t}/${e}/1`),createCalendar:Qo,defaultValue:Ws(`${t}/${e}/1`),onChange:y,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},qk=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=x.useRef(null);return x.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($u,{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"})})},Qk="_input_ezltz_7",eB="_error_ezltz_32",yn={"container-xs":"_container-xs_ezltz_1","container-input":"_container-input_ezltz_4",input:Qk,error:eB,"isset-right-icon":"_isset-right-icon_ezltz_41","isset-left-icon":"_isset-left-icon_ezltz_45","start-icon":"_start-icon_ezltz_49","end-icon":"_end-icon_ezltz_52","label-error":"_label-error_ezltz_55","container-s":"_container-s_ezltz_61"},Sh=x.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 f={size:{s:yn["container-s"],xs:yn["container-xs"]},variant:{}},h=()=>typeof i=="function"||x.isValidElement(i),g=()=>typeof a=="function"||x.isValidElement(a);return E.jsxs("div",{className:`${f.size[s]} ${t}`,children:[E.jsxs("div",{className:`${yn["container-input"]}`,children:[E.jsxs("div",{className:yn["start-icon"],children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),E.jsx("input",{id:n??e,className:`${yn.input} ${o?yn.error:""}
|
175
|
+
`):e}function pk(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 e0(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=pt(t.bodyFont),u=pt(t.titleFont),c=pt(t.footerFont),d=a.length,f=i.length,h=r.length,g=Ft(t.padding);let m=g.height,p=0,b=r.reduce((D,C)=>D+C.before.length+C.lines.length+C.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const D=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*D+(b-h)*l.lineHeight+(b-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let v=0;const y=function(D){p=Math.max(p,n.measureText(D).width+v)};return n.save(),n.font=u.string,He(e.title,y),n.font=l.string,He(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,He(r,D=>{He(D.before,y),He(D.lines,y),He(D.after,y)}),v=0,n.font=c.string,He(e.footer,y),n.restore(),p+=g.width,{width:p,height:m}}function bk(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function vk(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 yk(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"),vk(u,e,t,n)&&(u="center"),u}function t0(e,t,n){const r=n.yAlign||t.yAlign||bk(e,n);return{xAlign:n.xAlign||t.xAlign||yk(e,t,n,r),yAlign:r}}function xk(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Ck(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function n0(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:f,bottomRight:h}=oa(o);let g=xk(t,s);const m=Ck(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,f)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:Bt(g,0,r.width-t.width),y:Bt(m,0,r.height-t.height)}}function Ls(e,t,n){const r=Ft(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function r0(e){return Tn([],Qn(e))}function wk(e,t,n){return Hr(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function i0(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const C3={beforeTitle:Jn,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:Jn,beforeBody:Jn,beforeLabel:Jn,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 Je(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:Jn,afterBody:Jn,beforeFooter:Jn,footer:Jn,afterFooter:Jn};function Wt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?C3[t].call(n,r):i}class Od extends Wr{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 i3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=wk(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Wt(r,"beforeTitle",this,t),a=Wt(r,"title",this,t),o=Wt(r,"afterTitle",this,t);let s=[];return s=Tn(s,Qn(i)),s=Tn(s,Qn(a)),s=Tn(s,Qn(o)),s}getBeforeBody(t,n){return r0(Wt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return He(t,a=>{const o={before:[],lines:[],after:[]},s=i0(r,a);Tn(o.before,Qn(Wt(s,"beforeLabel",this,a))),Tn(o.lines,Wt(s,"label",this,a)),Tn(o.after,Qn(Wt(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return r0(Wt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Wt(r,"beforeFooter",this,t),a=Wt(r,"footer",this,t),o=Wt(r,"afterFooter",this,t);let s=[];return s=Tn(s,Qn(i)),s=Tn(s,Qn(a)),s=Tn(s,Qn(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(pk(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,f)=>t.filter(c,d,f,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),He(s,c=>{const d=i0(t.callbacks,c);i.push(Wt(d,"labelColor",this,c)),a.push(Wt(d,"labelPointStyle",this,c)),o.push(Wt(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=Ga[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=e0(this,r),u=Object.assign({},s,l),c=t0(this.chart,r,u),d=n0(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}=oa(s),{x:f,y:h}=t,{width:g,height:m}=n;let p,b,v,y,D,C;return a==="center"?(D=h+m/2,i==="left"?(p=f,b=p-o,y=D+o,C=D-o):(p=f+g,b=p+o,y=D-o,C=D+o),v=p):(i==="left"?b=f+Math.max(l,c)+o:i==="right"?b=f+g-Math.max(u,d)-o:b=this.caretX,a==="top"?(y=h,D=y-o,p=b-o,v=b+o):(y=h+m,D=y+o,p=b+o,v=b-o),C=y),{x1:p,x2:b,x3:v,y1:y,y2:D,y3:C}}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=Ls(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(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=pt(a.bodyFont),d=Ls(this,"left",a),f=i.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+h;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=i.leftForLtr(f,u)+u/2,b=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Md(t,m,p,b),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Md(t,m,p,b)}else{t.lineWidth=Re(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(f,u),p=i.leftForLtr(i.xPlus(f,1),u-2),b=oa(o.borderRadius);Object.values(b).some(v=>v!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Kl(t,{x:m,y:g,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Kl(t,{x:p,y:g+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(p,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=pt(r.bodyFont);let f=d.lineHeight,h=0;const g=sa(r.rtl,this.x,this.width),m=function(w){n.fillText(w,g.x(t.x+h),t.y+f/2),t.y+=f+a},p=g.textAlign(o);let b,v,y,D,C,E,I;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=Ls(this,p,r),n.fillStyle=r.bodyColor,He(this.beforeBody,m),h=s&&p!=="right"?o==="center"?u/2+c:u+2+c:0,D=0,E=i.length;D<E;++D){for(b=i[D],v=this.labelTextColors[D],n.fillStyle=v,He(b.before,m),y=b.lines,s&&y.length&&(this._drawColorBox(n,t,D,g,r),f=Math.max(d.lineHeight,l)),C=0,I=y.length;C<I;++C)m(y[C]),f=d.lineHeight;He(b.after,m)}h=0,f=d.lineHeight,He(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=Ls(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(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:f,bottomLeft:h,bottomRight:g}=oa(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-f,l),n.quadraticCurveTo(s+u,l,s+u,l+f),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+h,l+c),n.quadraticCurveTo(s,l+c,s,l+c-h),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=Ga[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=e0(this,t),l=Object.assign({},o,this._size),u=t0(n,t,l),c=n0(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=Ft(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),t3(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),n3(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=!Zl(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||!Zl(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=Ga[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}ie(Od,"positioners",Ga);var w3={id:"tooltip",_element:Od,positioners:Ga,afterInit(e,t,n){n&&(e.tooltip=new Od({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:C3},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 Dk=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Sk(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Dk(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const Ek=(e,t)=>e===null?null:Bt(Math.round(e),0,t);function a0(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class tu extends Ai{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(Je(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Sk(r,t,Ce(n,t),this._addedLabels),Ek(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 a0.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}}ie(tu,"id","category"),ie(tu,"defaults",{ticks:{callback:a0}});function Ik(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=a||1,g=c-1,{min:m,max:p}=t,b=!Je(o),v=!Je(s),y=!Je(u),D=(p-m)/(d+1);let C=cp((p-m)/g/h)*h,E,I,w,$;if(C<1e-14&&!b&&!v)return[{value:m},{value:p}];$=Math.ceil(p/C)-Math.floor(m/C),$>g&&(C=cp($*C/g/h)*h),Je(l)||(E=Math.pow(10,l),C=Math.ceil(C*E)/E),i==="ticks"?(I=Math.floor(m/C)*C,w=Math.ceil(p/C)*C):(I=m,w=p),b&&v&&a&&fP((s-o)/a,C/1e3)?($=Math.round(Math.min((s-o)/C,c)),C=(s-o)/$,I=o,w=s):y?(I=b?o:I,w=v?s:w,$=u-1,C=(w-I)/$):($=(w-I)/C,eo($,Math.round($),C/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(dp(C),dp(I));E=Math.pow(10,Je(l)?R:l),I=Math.round(I*E)/E,w=Math.round(w*E)/E;let _=0;for(b&&(f&&I!==o?(n.push({value:o}),I<o&&_++,eo(Math.round((I+_*C)*E)/E,o,o0(o,D,e))&&_++):I<o&&_++);_<$;++_){const P=Math.round((I+_*C)*E)/E;if(v&&P>s)break;n.push({value:P})}return v&&f&&w!==s?n.length&&eo(n[n.length-1].value,s,o0(s,D,e))?n[n.length-1].value=s:n.push({value:s}):(!v||w===s)&&n.push({value:w}),n}function o0(e,t,{horizontal:n,minRotation:r}){const i=Ln(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class nu extends Ai{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 Je(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=pa(i),u=pa(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=Ik(i,a);return t.bounds==="ticks"&&W4(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 Au(t,this.chart.options.locale,this.options.ticks.format)}}class ru extends nu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?t:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ln(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}}ie(ru,"id","linear"),ie(ru,"defaults",{ticks:{callback:Fu.formatters.numeric}});const No=e=>Math.floor(Rr(e)),Kr=(e,t)=>Math.pow(10,No(e)+t);function s0(e){return e/Math.pow(10,No(e))===1}function l0(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function _k(e,t){const n=t-e;let r=No(n);for(;l0(e,t,r)>10;)r++;for(;l0(e,t,r)<10;)r--;return Math.min(r,No(e))}function $k(e,{min:t,max:n}){t=Qt(e.min,t);const r=[],i=No(t);let a=_k(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*o)/o,c=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((u-c)/Math.pow(10,a)),f=Qt(e.min,Math.round((l+c+d*Math.pow(10,a))*o)/o);for(;f<n;)r.push({value:f,major:s0(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((l+c+d*Math.pow(10,a))*o)/o;const h=Qt(e.max,f);return r.push({value:h,major:s0(h),significand:d}),r}class u0 extends Ai{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=nu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return xt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?Math.max(0,t):null,this.max=xt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!xt(this._userMin)&&(this.min=t===Kr(this.min,0)?Kr(this.min,-1):Kr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Kr(r,-1)),o(Kr(i,1)))),r<=0&&a(Kr(i,-1)),i<=0&&o(Kr(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=$k(n,this);return t.bounds==="ticks"&&W4(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Au(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Rr(t),this._valueRange=Rr(this.max)-Rr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Rr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ie(u0,"id","logarithmic"),ie(u0,"defaults",{ticks:{callback:Fu.formatters.logarithmic,major:{enabled:!0}}});function Nd(e){const t=e.ticks;if(t.display&&e.display){const n=Ft(t.backdropPadding);return Ce(t.font&&t.font.size,ot.font.size)+n.height}return 0}function Rk(e,t,n){return n=at(n)?n:[n],{w:PP(e,t.string,n),h:n.length*t.lineHeight}}function c0(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Ak(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Qe/a:0;for(let l=0;l<a;l++){const u=o.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],s),d=pt(u.font),f=Rk(e.ctx,d,e._pointLabels[l]);r[l]=f;const h=Cn(e.getIndexAngle(l)+s),g=Math.round(dh(h)),m=c0(g,c.x,f.w,0,180),p=c0(g,c.y,f.h,90,270);Fk(n,t,h,m,p)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Mk(e,r,i)}function Fk(e,t,n,r,i){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function Pk(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),u=Math.round(dh(Cn(l.angle+dt))),c=Vk(l.y,s.h,u),d=kk(u),f=Bk(l.x,s.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+s.w,bottom:c+s.h}}function Tk(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(ur({x:n,y:r},t)||ur({x:n,y:a},t)||ur({x:i,y:r},t)||ur({x:i,y:a},t))}function Mk(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Nd(a)/2,additionalAngle:o?Qe/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=Pk(e,c,l);r.push(d),s==="auto"&&(d.visible=Tk(d,u),d.visible&&(u=d))}return r}function kk(e){return e===0||e===180?"center":e<180?"left":"right"}function Bk(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Vk(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Ok(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!Je(s)){const l=oa(t.borderRadius),u=Ft(t.backdropPadding);e.fillStyle=s;const c=r-u.left,d=i-u.top,f=a-r+u.width,h=o-i+u.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Kl(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function Nk(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));Ok(n,o,a);const s=pt(o.font),{x:l,y:u,textAlign:c}=a;Si(n,e._pointLabels[i],l,u+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function D3(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,qe);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function Lk(e,t,n,r,i){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),D3(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function jk(e,t,n){return Hr(e,{label:n,index:t,type:"pointLabel"})}class js extends nu{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ft(Nd(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=xt(t)&&!isNaN(t)?t:0,this.max=xt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Nd(this.options))}generateTickLabels(t){nu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Ze(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ak(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=qe/(this._pointLabels.length||1),r=this.options.startAngle||0;return Cn(t*n+Ln(r))}getDistanceFromCenterForValue(t){if(Je(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Je(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return jk(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-dt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),D3(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,o=this._pointLabels.length;let s,l,u;if(n.pointLabels.display&&Nk(this,o),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=i.setContext(f),g=a.setContext(f);Lk(this,h,l,o,g)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const c=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=pt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,o=t.measureText(s.label).width,t.fillStyle=u.backdropColor;const d=Ft(u.backdropPadding);t.fillRect(-o/2-d.left,-a-c.size/2-d.top,o+d.width,c.size+d.height)}Si(t,s.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}ie(js,"id","radialLinear"),ie(js,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ie(js,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(js,"descriptors",{angleLines:{_fallback:"grid"}});const Tu={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}},zt=Object.keys(Tu);function d0(e,t){return e-t}function f0(e,t){if(Je(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)),xt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Bo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function h0(e,t,n,r){const i=zt.length;for(let a=zt.indexOf(e);a<i-1;++a){const o=Tu[zt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return zt[a]}return zt[i-1]}function Hk(e,t,n,r,i){for(let a=zt.length-1;a>=zt.indexOf(n);a--){const o=zt[a];if(Tu[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return zt[n?zt.indexOf(n):0]}function Wk(e){for(let t=zt.indexOf(e)+1,n=zt.length;t<n;++t)if(Tu[zt[t]].common)return zt[t]}function g0(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=fh(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function zk(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 m0(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:zk(e,r,i,n)}class iu extends Ai{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 LT._date(t.adapters.date);i.init(n),Qa(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:f0(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=xt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=xt(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=pP(i,a,o);return this._unit=n.unit||(r.autoSkip?h0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Hk(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Wk(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),m0(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=Bt(n,0,o),r=Bt(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||h0(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ce(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=Bo(l)||l===!0,c={};let d=n,f,h;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(f=d,h=0;f<r;f=+t.add(f,s,o),h++)g0(c,f,g);return(f===r||i.bounds==="ticks"||h===1)&&g0(c,f,g),Object.keys(c).sort(d0).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 Ze(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?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=Ln(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,m0(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(f0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vP(t.sort(d0))}}ie(iu,"id","time"),ie(iu,"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 Hs(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}=ci(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}=ci(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 p0 extends iu{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=Hs(n,this.min),this._tableRange=Hs(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(Hs(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Hs(this._table,r*this._tableRange+this._minPos,!0)}}ie(p0,"id","timeseries"),ie(p0,"defaults",iu.defaults);const S3="label";function b0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Gk(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function E3(e,t){e.labels=t}function I3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S3;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 Zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S3;const n={labels:[],datasets:[]};return E3(n,e.labels),I3(n,e.datasets,t),n}function Xk(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,...f}=e,h=x.useRef(null),g=x.useRef(),m=()=>{h.current&&(g.current=new is(h.current,{type:o,data:Zk(s,a),options:l&&{...l},plugins:u}),b0(t,g.current))},p=()=>{b0(t,null),g.current&&(g.current.destroy(),g.current=null)};return x.useEffect(()=>{!i&&g.current&&l&&Gk(g.current,l)},[i,l]),x.useEffect(()=>{!i&&g.current&&E3(g.current.config.data,s.labels)},[i,s.labels]),x.useEffect(()=>{!i&&g.current&&s.datasets&&I3(g.current.config.data,s.datasets,a)},[i,s.datasets]),x.useEffect(()=>{g.current&&(i?(p(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),x.useEffect(()=>{g.current&&(p(),setTimeout(m))},[o]),x.useEffect(()=>(m(),()=>p()),[]),x.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),c)}const Yk=x.forwardRef(Xk);function _3(e,t){return is.register(t),x.forwardRef((n,r)=>x.createElement(Yk,Object.assign({},n,{ref:r,type:e})))}const Uk=_3("line",al),v0=_3("doughnut",Ha);is.register(tu,ru,ro,Ki,za,x3,w3,v3);const y0=(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 D=[].concat(t),C=D.length,E=u.font;let I=0,w=0,$;for($=0;$<C;++$)u.font=D[$].font,I=Math.max(u.measureText(D[$].text).width,I),w+=(_=D[$].font)==null?void 0:_.lineHeight;return u.font=E,{height:w,width:I}},d=(D,C)=>{let E=document.createElement("div");document.body.appendChild(E),E.style.fontSize=`${C}px`,E.style.position="absolute",E.style.left="-10",E.style.top="-10",E.textContent=D;const I={width:E.clientWidth,height:E.clientHeight};return document.body.removeChild(E),E=null,I},f=c(),h=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,p=(e.chartArea.top+e.chartArea.bottom)/2-f.height/2;let b;const v=t.length;let y=0;for(b=0;b<v;++b){let D=(i=t[b].font)==null?void 0:i.size,C=(a=t[b].font)==null?void 0:a.lineHeight;const E=typeof t[b].text=="number"?t[b].text.toString():t[b].text;for(;d(E,D).width>h+(t[b].id==="value"?50:0);)D-=1,C=d(E,D).height;E.length>22&&C<14&&(C=18);const I=p+C/2+y,w=typeof t[b].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[b].text):t[b].text;let $=t[b].urlIconDesc?" ":"";if(t[b].percentage!==void 0?$+=`${t[b].percentage}% ${t[b].text}`:$+=w,u.fillStyle=t[b].color,u.font=`${D<10?10:D}px sans-serif`,y+=C,t[b].percentage!==void 0&&t[b].urlIconDesc){const R=((s=(o=t[b])==null?void 0:o.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[b].urlIconDesc,u.drawImage(_,45-(R>6?R+2:R-2.5),I-8,16,14)}u.fillText($,g,I)}u.restore(),u.save()}},Jk=({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:f})=>{const h={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 p=document.getElementById("chartjs-tooltip");p||(p=document.createElement("div"),p.id="chartjs-tooltip",p.innerHTML="<table></table>",document.body.appendChild(p));const b=m.tooltip;if(b.opacity===0){p.style.opacity="0";return}p.classList.remove("above","below","no-transform"),b.yAlign?p.classList.add(b.yAlign):p.classList.add("no-transform");const v=t.filter(I=>!I[u]),y=t.filter(I=>I[c]>0&&I[c]<1);if(v.length===1&&y.length===1)return;function D(I){return I.lines}if(b.body){const I=b.title||[];let w=b.body.map(D),$="<thead>";I.forEach(_=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; font-weight: 600",P+="; font-size: 12px",P+="; padding: 0px 14px",$+=`<tr><span style="${P}">${_}</span></tr>`}),$+="</thead><tbody>",w.length>1&&w[0][0]===w[1][0]&&(w=[w[0]]),w.forEach(_=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; color: #0163C8",P+="; padding: 0px 14px",P+="; font-size: 12px";const M=`<span style="${P}">${_}</span>`;$+=`<tr><td>${M}</td></tr>`}),$+="</tbody>";const R=p.querySelector("table");R&&(R.innerHTML=$)}const C=m.chart.canvas.getBoundingClientRect(),E=C.top+window.pageYOffset+b.caretY;p.style.opacity="1",p.style.border="solid 1px #0163C8",p.style.background="white",p.style.height="fit-content",p.style.borderRadius="10px",p.style.position="absolute",p.style.zIndex="10",p.style.padding="4px 0",p.style.left=`${C.left+window.pageXOffset+b.caretX-80}px`,p.style.top=`${E>300&&!s?280:E}px`,p.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const p=t[m[0].dataIndex];return p==null?void 0:p[u]},label(m){const p=t==null?void 0:t[m.dataIndex];let b="Nilai: ";return p&&(b+=p.value),b}}}},elements:{arc:{borderWidth:0}}};return S.jsxs("div",{className:f??"",children:[!s&&S.jsx(v0,{data:h,redraw:i,plugins:[{id:"draw",beforeDraw(m){y0(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&S.jsx(v0,{data:h,redraw:i,plugins:[{id:"draw",beforeDraw(m){y0(m,o.filter(p=>p.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},Ws=e=>{let t;const n=new Date(e??new Date);return e&&(t=Wf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Kk=({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:f={},offsetPopover:h=5,zIndexPopper:g=1})=>{const{locale:m}=Rn(),p=x.useRef(null),b=Ws(i),v=Ws(a),y=D=>{var C;typeof l=="function"&&(l({month:D.month,year:D.year}),(C=p.current)==null||C.setShow(!1))};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:c,onClick:D=>{var C;D.stopPropagation(),(C=p.current)==null||C.handlerShow(D)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),S.jsx("div",{className:o??"",children:S.jsx(Ei,{zIndex:g,ref:p,offset:h,id:d,floatingOptions:{placement:"bottom-end",...f},onClick:D=>D.stopPropagation(),children:S.jsx(rh,{locale:"id-ID",children:S.jsx(_u,{minValue:b,maxValue:v,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:m,value:Ws(`${t}/${e}/1`),createCalendar:Qo,defaultValue:Ws(`${t}/${e}/1`),onChange:y,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},qk=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=x.useRef(null);return x.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),S.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:S.jsx($u,{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"})})},Qk="_input_ezltz_7",eB="_error_ezltz_32",yn={"container-xs":"_container-xs_ezltz_1","container-input":"_container-input_ezltz_4",input:Qk,error:eB,"isset-right-icon":"_isset-right-icon_ezltz_41","isset-left-icon":"_isset-left-icon_ezltz_45","start-icon":"_start-icon_ezltz_49","end-icon":"_end-icon_ezltz_52","label-error":"_label-error_ezltz_55","container-s":"_container-s_ezltz_61"},Sh=x.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 f={size:{s:yn["container-s"],xs:yn["container-xs"]},variant:{}},h=()=>typeof i=="function"||x.isValidElement(i),g=()=>typeof a=="function"||x.isValidElement(a);return S.jsxs("div",{className:`${f.size[s]} ${t}`,children:[S.jsxs("div",{className:`${yn["container-input"]}`,children:[S.jsxs("div",{className:yn["start-icon"],children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),S.jsx("input",{id:n??e,className:`${yn.input} ${o?yn.error:""}
|
176
176
|
${h()?yn["isset-left-icon"]:""}
|
177
177
|
${g()?yn["isset-right-icon"]:""}
|
178
|
-
${u??""}`,ref:d,type:r,...c}),
|
179
|
-
${c.disabled?yn.disabled:""} ${l??""}`,children:o})]})});Sh.displayName="InputNative";const tB="_container_1szxn_1",nB="_files_1szxn_4",rB="_file_1szxn_4",Gi={container:tB,files:nB,file:rB,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},iB=({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:f="external"})=>{const
|
178
|
+
${u??""}`,ref:d,type:r,...c}),S.jsxs("div",{className:yn["end-icon"],children:[typeof a=="function"&&a(),x.isValidElement(a)&&a]})]}),o&&S.jsx("label",{className:`${yn["label-error"]}
|
179
|
+
${c.disabled?yn.disabled:""} ${l??""}`,children:o})]})});Sh.displayName="InputNative";const tB="_container_1szxn_1",nB="_files_1szxn_4",rB="_file_1szxn_4",Gi={container:tB,files:nB,file:rB,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},iB=({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:f="external",eventError:h})=>{const g={variants:"ghost-laba-blue-10",size:"small"},m=x.useRef(null),p=t||["image/png","image/jpeg","image/jpg"],[b,v]=x.useState(""),y={internal:b||l,external:l||b},D=I=>{if(I!=null&&I.length){const w=Array.from(I).slice(0,o),$=w==null?void 0:w.filter(P=>!p.includes(P.type)),R=(w==null?void 0:w.reduce((P,M)=>P+M.size,0))/1024/1024;let _="";if($.length>0?_="Berkas tidak didukung, silahkan pilih file kembali.":R>s?_=`${I.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`:typeof c=="function"&&c(w),v(_),h==null||h(_),!(m!=null&&m.current))return;m.current.value=""}},C=I=>{var w;I.preventDefault(),m!=null&&m.current&&((w=m.current)==null||w.click())};function E(I){if(typeof I!="string")throw new Error("Input harus berupa string");const w=I.split(".");if(w.length===1)return{filename:I,extension:""};const $="."+w[w.length-1];return{filename:w.slice(0,-1).join("."),extension:$}}return S.jsxs("div",{className:`${Gi.container} ${n??""}`,children:[S.jsx(Wn,{...g,...a,className:r??"",onClick:I=>C(I),children:i}),S.jsx(Sh,{accept:p==null?void 0:p.join(", "),ref:m,type:"file",onChange:I=>D(I.target.files),error:y[f],multiple:o>1,hidden:!0}),S.jsx("div",{className:Gi.files,children:e==null?void 0:e.map((I,w)=>S.jsxs("div",{className:Gi.file,onClick:$=>{$.stopPropagation(),typeof d=="function"&&d(I)},children:[S.jsxs("div",{className:Gi["file-name-wrapper"],children:[S.jsx("span",{className:Gi["file-name"],children:E((I==null?void 0:I.originalName)??(I==null?void 0:I.name)??(I==null?void 0:I.fileName)??"").filename}),S.jsx("span",{className:Gi["file-extension"],children:E((I==null?void 0:I.originalName)??(I==null?void 0:I.name)??(I==null?void 0:I.fileName)??"").extension})]}),typeof u=="function"&&S.jsx(S.Fragment,{children:u(I)})]},w))})]})},x0={"error-payhere":"_error-payhere_1hkqz_1","error-laba":"_error-laba_1hkqz_5"},aB=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:x0["error-laba"],payhere:x0["error-payhere"]}};return S.jsx(S.Fragment,{children:n?S.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):S.jsx(S.Fragment,{})})},oB="_container_5yc5a_1",sB="_textarea_5yc5a_7",lB="_label_5yc5a_36",uB="_error_5yc5a_44",Kn={container:oB,"size-medium":"_size-medium_5yc5a_1","container-textarea":"_container-textarea_5yc5a_4",textarea:sB,"placeholder-shown":"_placeholder-shown_5yc5a_24",label:lB,error:uB,"label-error":"_label-error_5yc5a_60"},$3=x.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:f=94,maxHeight:h=150,style:g,sizeInput:m="medium",translateLabel:p=20,autoTranslateLabel:b=!1,...v}=e,y=x.useRef(null),D=xf(y,t),C=x.useRef(null),E={...g??{},maxHeight:h,height:d??f,minHeight:f},[I,w]=x.useState(!1),[$,R]=x.useState(!1),[_,P]=x.useState(p),M={size:{medium:Kn["size-medium"]}},A=()=>{var V;v.value===""||((V=y.current)==null?void 0:V.value)===""?(R(!1),b&&setTimeout(()=>{var z,q;const j=((z=y.current)==null?void 0:z.offsetHeight)??0,N=((q=C.current)==null?void 0:q.offsetHeight)??0,Z=(j-N)/2;P(Z)},100)):R(!0)},B=function(V){var j;w(!0),A(),(j=e.onFocus)==null||j.call(e,V)},T=function(V){var j;w(!1),(j=e.onBlur)==null||j.call(e,V)},F=function(V){A();const j=(V==null?void 0:V.target)??y.current;j.style.height="0px",j.style.height=j.scrollHeight+"px"};return yf(()=>(I&&y.current?y.current.addEventListener("input",F):F(),()=>{var V;(V=y.current)==null||V.removeEventListener("input",F)}),[I]),S.jsxs("div",{className:`${Kn.container}
|
180
180
|
${M.size[m]}
|
181
|
-
${r??""}`,children:[
|
181
|
+
${r??""}`,children:[S.jsxs("div",{className:`${Kn["container-textarea"]}`,children:[S.jsx("textarea",{id:l??s,className:`${$?"":Kn["placeholder-shown"]} ${c?Kn.error:""}
|
182
182
|
${Kn.textarea}
|
183
|
-
${i??""}`,ref:
|
184
|
-
${v.disabled?Kn.disabled:""} ${o??""}`,children:c})]})});$3.displayName="TextareaFloatingInner";const cB="_container_1gvog_1",dB="_passed_1gvog_17",fB="_active_1gvog_20",Pn={container:cB,"content-section":"_content-section_1gvog_4","content-step":"_content-step_1gvog_7","number-step":"_number-step_1gvog_11",passed:dB,active:fB,"content-line-dashed":"_content-line-dashed_1gvog_24","content-line-active":"_content-line-active_1gvog_27","content-description":"_content-description_1gvog_31"},hB=({activeStep:e,stepList:t,widthLine:n=250,classNameContainer:r,classNameContent:i,classNameDesc:a,onChange:o})=>
|
183
|
+
${i??""}`,ref:D,style:E,...v,onFocus:B,onBlur:T}),u&&S.jsxs("label",{htmlFor:l??s,ref:C,style:{transform:`translateY(${_}px)`},className:`${Kn.label} ${a??""}`,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]})]}),c&&S.jsx("label",{className:`${Kn["label-error"]}
|
184
|
+
${v.disabled?Kn.disabled:""} ${o??""}`,children:c})]})});$3.displayName="TextareaFloatingInner";const cB="_container_1gvog_1",dB="_passed_1gvog_17",fB="_active_1gvog_20",Pn={container:cB,"content-section":"_content-section_1gvog_4","content-step":"_content-step_1gvog_7","number-step":"_number-step_1gvog_11",passed:dB,active:fB,"content-line-dashed":"_content-line-dashed_1gvog_24","content-line-active":"_content-line-active_1gvog_27","content-description":"_content-description_1gvog_31"},hB=({activeStep:e,stepList:t,widthLine:n=250,classNameContainer:r,classNameContent:i,classNameDesc:a,onChange:o})=>S.jsx("div",{className:`${Pn.container} ${r??""}`,children:t.map((s,l)=>{const u=l+1;return S.jsxs("div",{className:`${Pn["content-section"]} ${i??""}`,onClick:()=>{typeof o=="function"&&o(s)},children:[S.jsxs("div",{className:Pn["content-step"],children:[u<t.length&&S.jsxs(S.Fragment,{children:[(s.step??u)>=e&&S.jsx("svg",{height:"5",xmlns:"http://www.w3.org/2000/svg",className:Pn["content-line-dashed"],width:n+10,style:{left:n/2+30},children:S.jsx("g",{fill:"none",stroke:"#D6D6D6",strokeWidth:"11",children:S.jsx("path",{strokeDasharray:"12,4",d:`M0 0 ${n+20} 0`})})}),(s.step??u)<e&&S.jsx("hr",{className:Pn["content-line-active"],style:{width:n+10,left:n/2+30}})]}),S.jsx("div",{style:{width:n/2}}),S.jsx("div",{className:`${Pn["number-step"]}
|
185
185
|
${(s.step??u)<e?Pn.passed:""}
|
186
186
|
${(s.step??u)===e?Pn.active:""}
|
187
|
-
${s.className??""}`,children:s.value?s.value:u}),
|
188
|
-
${(s.step??u)<=e?Pn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});is.register(tu,ru,ro,Ki,x3,w3,v3);const gB=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}`:null},mB=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},pB=({data:e,className:t,height:n=65})=>{const r=x.useRef(null),i=e.map(f=>ao(mB(1,f.label,f.year),"MMM yy",{locale:ul}))||[],[a,o]=x.useState(""),[s,l]=x.useState(""),u=f=>{const h=[],g=[];let m=!f.find(p=>p.isCurrent);return f.forEach(p=>{m?(g.push(p.value),h.push(null)):(h.push(p.value),p.isCurrent?(m=!0,g.push(p.value)):g.push(null))}),{passed:h,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(f){const h=e[f.dataIndex];let g=s;return h.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(f){let h=document.getElementById("chartjs-tooltip");h||(h=document.createElement("div"),h.id="chartjs-tooltip",h.innerHTML="<table></table>",document.body.appendChild(h));const g=f.tooltip;if(g.opacity===0){h.style.opacity="0";return}h.classList.remove("above","below","no-transform"),g.yAlign?h.classList.add(g.yAlign):h.classList.add("no-transform");function m(b){return b.lines}if(g.body){const b=g.title||[];let v=g.body.map(m),y="<thead>";b.forEach(C=>{let
|
187
|
+
${s.className??""}`,children:s.value?s.value:u}),S.jsx("div",{style:{width:n/2}})]}),s.desc&&S.jsx("div",{className:`${Pn["content-description"]} ${a??""}
|
188
|
+
${(s.step??u)<=e?Pn.active:""}`,style:{maxWidth:n-30},children:s.desc})]},l)})});is.register(tu,ru,ro,Ki,x3,w3,v3);const gB=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}`:null},mB=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},pB=({data:e,className:t,height:n=65})=>{const r=x.useRef(null),i=e.map(f=>ao(mB(1,f.label,f.year),"MMM yy",{locale:ul}))||[],[a,o]=x.useState(""),[s,l]=x.useState(""),u=f=>{const h=[],g=[];let m=!f.find(p=>p.isCurrent);return f.forEach(p=>{m?(g.push(p.value),h.push(null)):(h.push(p.value),p.isCurrent?(m=!0,g.push(p.value)):g.push(null))}),{passed:h,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(f){const h=e[f.dataIndex];let g=s;return h.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(f){let h=document.getElementById("chartjs-tooltip");h||(h=document.createElement("div"),h.id="chartjs-tooltip",h.innerHTML="<table></table>",document.body.appendChild(h));const g=f.tooltip;if(g.opacity===0){h.style.opacity="0";return}h.classList.remove("above","below","no-transform"),g.yAlign?h.classList.add(g.yAlign):h.classList.add("no-transform");function m(b){return b.lines}if(g.body){const b=g.title||[];let v=g.body.map(m),y="<thead>";b.forEach(C=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; font-weight: 600",E+="; font-size: 12px",E+="; padding: 0px 14px",y+=`<tr><span style="${E}">${C}</span></tr>`}),y+="</thead><tbody>",v.length>1&&v[0][0]===v[1][0]&&(v=[v[0]]),v.forEach(C=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; color: #0163C8",E+="; padding: 0px 14px",E+="; font-size: 12px";const I=`<span style="${E}">${C}</span>`;y+=`<tr><td>${I}</td></tr>`}),y+="</tbody>";const D=h.querySelector("table");D&&(D.innerHTML=y)}const p=f.chart.canvas.getBoundingClientRect();h.style.opacity="1",h.style.border="solid 1px #0163C8",h.style.background="white",h.style.height="fit-content",h.style.borderRadius="10px",h.style.position="absolute",h.style.zIndex="10",h.style.padding="4px 0",h.style.left=p.left+window.pageXOffset+g.caretX-30+"px",h.style.top=p.top+window.pageYOffset+g.caretY-60+"px",h.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(f){const h=e[f[0].dataIndex];return ao(new Date(`1/${h.label}/${h.year}`),"MMMM yyyy",{locale:ul})},label:function(f){let h=f.dataset.label??"";return h&&(h+=": "),f.parsed.y!==null&&(h+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(f.parsed.y)),h}}}},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(f){return gB(f)??0}}}}};return x.useEffect(()=>{if(r.current){const f=r.current.getContext("2d"),h=f==null?void 0:f.createLinearGradient(0,100,500,-500);h==null||h.addColorStop(0,"rgba(237, 0, 25, 0)"),h==null||h.addColorStop(1,"rgba(237, 0, 25, 20)");const g=f.fillStyle="rgba(255, 255, 255, 0)";l(g),o(h)}},[]),S.jsxs("div",{className:t??"",children:[S.jsx(Uk,{options:d,data:c,height:n}),S.jsx("div",{className:"1ru-h-5",children:S.jsx("canvas",{ref:r})})]})};exports.AlertContainer=Cw;exports.Badges=C4;exports.Breadcrumbs=AA;exports.Button=Wn;exports.ButtonIcon=x4;exports.Calendar=_u;exports.CalendarRange=v4;exports.CheckboxTable=qk;exports.Chips=w4;exports.Collapse=kA;exports.ConfigColors=Fw;exports.ConfigTable=Kt;exports.DatePicker=dA;exports.DateRangePicker=y4;exports.DefaultCheckedChecboxIcon=D4;exports.DefaultRadioChecboxIcon=S4;exports.DoughnutChart=Jk;exports.ErrorMessage=aB;exports.FilterContainer=HA;exports.FilterDate=fA;exports.InputFloatingInner=cb;exports.InputNative=Sh;exports.InputReguler=Jd;exports.LineChart=pB;exports.ListVirtualization=p1;exports.ModalDialog=VA;exports.MonthYearPicker=Kk;exports.NumberFormat=vF;exports.Pagination=PI;exports.PatternFormat=bF;exports.Popover=Ei;exports.PortalComponent=yF;exports.RadioCheckbox=$u;exports.RadioCheckboxLabel=SA;exports.SelectDropdownContainer=ov;exports.SelectDropdownContainerComponents=Y1;exports.Sidebar=I4;exports.Step=hB;exports.Switch=gA;exports.TPublish=Mw;exports.TabPanel=SI;exports.Table=vI;exports.TableVirtualization=vf;exports.Tabs=DI;exports.Textarea=V4;exports.TextareaFloatingInner=$3;exports.Timeline=jA;exports.TruncateComponent=DF;exports.UploadFile=B4;exports.UploadImage=$F;exports.UploadMultipleFile=iB;exports.configScreens=Tw;exports.configTypography=Pw;exports.configTypographyLabaBisnis=B0;exports.configTypographyPayhere=k0;exports.cookieStorage=sw;exports.deepCompareEquals=Hd;exports.formatDate=Yi;exports.formatDateRange=ew;exports.formatNumber=xr;exports.groupByKey=$0;exports.isAccurateNumber=cl;exports.openAlert=ww;exports.parseDecimal=R0;exports.removeKeyObjectEmptyValue=nw;exports.transformDataHistory=tw;exports.transformLatLong=rw;exports.transformSecondTime=aw;exports.useAsyncDebounce=lI;exports.useCombinedResizeObserver=uI;exports.useCountdown=sI;exports.useDeepCompareEffect=Yo;exports.useDeepCompareMemoize=Cf;exports.useElementOrWindowMediaQuery=oI;exports.useEventListener=hI;exports.useMergeRefs=xf;exports.useStateRef=cI;exports.utilTable=xS;
|
189
189
|
//# sourceMappingURL=index.cjs.map
|