diff --git a/404.html b/404.html index b2449fd..2d5b495 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/_next/static/M8Tp6yKRgsWQlQ5DPu8Ro/_buildManifest.js b/_next/static/M8Tp6yKRgsWQlQ5DPu8Ro/_buildManifest.js deleted file mode 100644 index 5c5a8c4..0000000 --- a/_next/static/M8Tp6yKRgsWQlQ5DPu8Ro/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,e,c,t,r,d,i,n){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/sso-requests-preview/app/:path*"}],fallback:[]},"/":["static/chunks/pages/index-b96eb2adda78e53b.js"],"/_error":["static/chunks/pages/_error-f80591a523a75251.js"],"/admin-dashboard":[s,a,c,e,t,"static/chunks/pages/admin-dashboard-8e2d7d86d7267aad.js"],"/admin-reports":["static/chunks/674a26a7-2bd362fa1142fae7.js",s,"static/chunks/pages/admin-reports-e9a0ea6a9f050faa.js"],"/application-error":[d,"static/chunks/pages/application-error-fb8607d884ddd007.js"],"/faq":["static/chunks/pages/faq-cfafbf730ed7834b.js"],"/my-dashboard":["static/chunks/pages/my-dashboard-f9c93d4808f61351.js"],"/my-dashboard/integrations":["static/chunks/29107295-8ab47bb7d9547e26.js",s,a,c,r,"static/css/02409508432e1dfb.css","static/chunks/184-a9cd34ba08a0f8bb.js",t,"static/chunks/pages/my-dashboard/integrations-fc4939caf8d3457a.js"],"/my-dashboard/s2g":["static/chunks/pages/my-dashboard/s2g-5ea744013761d59d.js"],"/my-dashboard/teams":[s,a,c,"static/chunks/760-689396cb8a7e501d.js",e,t,"static/chunks/pages/my-dashboard/teams-3d95e0c6a0edbb66.js"],"/request":[s,a,r,i,e,n,"static/chunks/pages/request-85a6b2cca7d72ca0.js"],"/request/[rid]":[s,a,r,i,e,n,"static/chunks/pages/request/[rid]-09e43921bc3904cf.js"],"/terms-conditions":["static/chunks/pages/terms-conditions-812fb4ce29438555.js"],"/verify-user":[d,"static/chunks/pages/verify-user-b199b3cac0c034a4.js"],sortedPages:["/","/_app","/_error","/admin-dashboard","/admin-reports","/application-error","/faq","/my-dashboard","/my-dashboard/integrations","/my-dashboard/s2g","/my-dashboard/teams","/request","/request/[rid]","/terms-conditions","/verify-user"]}}("static/chunks/528-bf626dfff0c39193.js","static/chunks/591-51dbdc11ecd7d395.js","static/chunks/974-6825820c00a4562a.js","static/chunks/442-db7ad3c62adb1293.js","static/chunks/954-714ab8b16dafedbf.js","static/chunks/759-bc0158665481e525.js","static/chunks/9-1495f392282e36d5.js","static/chunks/274-c580d6ab401f56ab.js","static/chunks/225-41640f12f7b5f023.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/chunks/184-a9cd34ba08a0f8bb.js b/_next/static/chunks/184-a9cd34ba08a0f8bb.js deleted file mode 100644 index 92375b5..0000000 --- a/_next/static/chunks/184-a9cd34ba08a0f8bb.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[184],{94184:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function c(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=r&&r.width?String(r.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,u=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[u]||e.values[i]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var u=i[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,t){for(var r=0;r0?"in "+n:n+" ago":n},formatLong:i,formatRelative:function(e,t,r,n){return u[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:c({values:{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"]},defaultWidth:"wide"}),day:c({values:{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"]},defaultWidth:"wide"}),dayPeriod:c({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(n={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var o=r[0],a=e.match(n.parsePattern);if(!a)return null;var i=n.valueCallback?n.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n={};function o(){return n}},97621:function(e,t){"use strict";var r=function(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"});default:return t.date({width:"full"})}},n=function(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"});default:return t.time({width:"full"})}};t.Z={p:n,P:function(e,t){var o,a=e.match(/(P+)(p+)?/)||[],i=a[1],u=a[2];if(!u)return r(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",r(i,t)).replace("{{time}}",n(u,t))}}},24262:function(e,t,r){"use strict";function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}r.d(t,{Z:function(){return n}})},33276:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(19013),o=r(66979),a=r(7032),i=r(13882);function u(e){(0,i.Z)(1,arguments);var t=(0,n.default)(e);return Math.round(((0,o.Z)(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=(0,a.Z)(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),(0,o.Z)(r)})(t).getTime())/6048e5)+1}},7032:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(19013),o=r(13882),a=r(66979);function i(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e),r=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(r+1,0,4),i.setUTCHours(0,0,0,0);var u=(0,a.Z)(i),c=new Date(0);c.setUTCFullYear(r,0,4),c.setUTCHours(0,0,0,0);var s=(0,a.Z)(c);return t.getTime()>=u.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}},5230:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19013),o=r(59025),a=r(7651),i=r(13882),u=r(83946),c=r(84314);function s(e,t){(0,i.Z)(1,arguments);var r=(0,n.default)(e);return Math.round(((0,o.Z)(r,t).getTime()-(function(e,t){(0,i.Z)(1,arguments);var r,n,s,l,f,p,d,h,y=(0,c.j)(),v=(0,u.Z)(null!==(r=null!==(n=null!==(s=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(f=t.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:y.firstWeekContainsDate)&&void 0!==n?n:null===(d=y.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==r?r:1),m=(0,a.Z)(e,t),g=new Date(0);return g.setUTCFullYear(m,0,v),g.setUTCHours(0,0,0,0),(0,o.Z)(g,t)})(r,t).getTime())/6048e5)+1}},7651:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(19013),o=r(13882),a=r(59025),i=r(83946),u=r(84314);function c(e,t){(0,o.Z)(1,arguments);var r,c,s,l,f,p,d,h,y=(0,n.default)(e),v=y.getUTCFullYear(),m=(0,u.j)(),g=(0,i.Z)(null!==(r=null!==(c=null!==(s=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(f=t.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:m.firstWeekContainsDate)&&void 0!==c?c:null===(d=m.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==r?r:1);if(!(g>=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,g),b.setUTCHours(0,0,0,0);var w=(0,a.Z)(b,t),x=new Date(0);x.setUTCFullYear(v,0,g),x.setUTCHours(0,0,0,0);var O=(0,a.Z)(x,t);return y.getTime()>=w.getTime()?v+1:y.getTime()>=O.getTime()?v:v-1}},5267:function(e,t,r){"use strict";r.d(t,{Do:function(){return i},Iu:function(){return a},qp:function(){return u}});var n=["D","DD"],o=["YY","YYYY"];function a(e){return -1!==n.indexOf(e)}function i(e){return -1!==o.indexOf(e)}function u(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},13882:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},66979:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((r<1?7:0)+r-1)),t.setUTCHours(0,0,0,0),t}},59025:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(19013),o=r(13882),a=r(83946),i=r(84314);function u(e,t){(0,o.Z)(1,arguments);var r,u,c,s,l,f,p,d,h=(0,i.j)(),y=(0,a.Z)(null!==(r=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,n.default)(e),m=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((m=c.getDate())?c:(r.setFullYear(c.getFullYear(),c.getMonth(),u),r)}},8791:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(11640),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,n.Z)(t);return(0,o.default)(e,3*r)}},63500:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(77349),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,n.Z)(t);return(0,o.default)(e,7*r)}},21593:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(11640),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,n.Z)(t);return(0,o.default)(e,12*r)}},36948:function(e,t,r){"use strict";r.d(t,{qk:function(){return a},vh:function(){return o},yJ:function(){return n}});var n=6e4,o=36e5,a=1e3},92300:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(24262),o=r(69119),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,o.default)(t);return Math.round((r.getTime()-(0,n.Z)(r)-(i.getTime()-(0,n.Z)(i)))/864e5)}},84129:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e,t){(0,o.Z)(2,arguments);var r=(0,n.default)(e),a=(0,n.default)(t);return 12*(r.getFullYear()-a.getFullYear())+(r.getMonth()-a.getMonth())}},91857:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e,t){(0,o.Z)(2,arguments);var r=(0,n.default)(e),a=(0,n.default)(t);return r.getFullYear()-a.getFullYear()}},83894:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e);return t.setHours(23,59,59,999),t}},4135:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},67090:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(84314),o=r(19013),a=r(83946),i=r(13882);function u(e,t){(0,i.Z)(1,arguments);var r,u,c,s,l,f,p,d,h=(0,n.j)(),y=(0,a.Z)(null!==(r=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.default)(e),m=v.getDay();return v.setDate(v.getDate()+((m0?r:1-r;return f("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):f(r+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}},d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function h(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;return 0===a?r+String(o):r+String(o)+(t||"")+f(a,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e,t){var r=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(r/60),2)+(t||"")+f(r%60,2)}var m={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return p.y(e,t)},Y:function(e,t,r,n){var o=(0,l.Z)(e,n),a=o>0?o:1-o;return"YY"===t?f(a%100,2):"Yo"===t?r.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,c.Z)(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return f(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return f(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return f(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=(0,s.Z)(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,r){var n=(0,u.Z)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):f(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,r){var n=function(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):f(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,o=e.getUTCHours();switch(n=12===o?d.noon:0===o?d.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,o=e.getUTCHours();switch(n=o>=17?d.evening:o>=12?d.afternoon:o>=4?d.morning:d.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return p.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return y(o);case"XXXX":case"XX":return v(o);default:return v(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(o);case"xxxx":case"xx":return v(o);default:return v(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+h(o,":");default:return"GMT"+v(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+h(o,":");default:return"GMT"+v(o,":")}},t:function(e,t,r,n){return f(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return f((n._originalDate||e).getTime(),t.length)}},g=r(97621),b=r(24262),w=r(5267),x=r(83946),O=r(84314),k=r(86559),S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,_=/''/g,E=/[a-zA-Z]/;function P(e,t,r){(0,i.Z)(2,arguments);var u,c,s,l,f,p,d,h,y,v,P,M,T,C,A,N,I,R,L=String(t),Y=(0,O.j)(),B=null!==(u=null!==(c=null==r?void 0:r.locale)&&void 0!==c?c:Y.locale)&&void 0!==u?u:k.Z,F=(0,x.Z)(null!==(s=null!==(l=null!==(f=null!==(p=null==r?void 0:r.firstWeekContainsDate)&&void 0!==p?p:null==r?void 0:null===(d=r.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:Y.firstWeekContainsDate)&&void 0!==l?l:null===(y=Y.locale)||void 0===y?void 0:null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==s?s:1);if(!(F>=1&&F<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=(0,x.Z)(null!==(P=null!==(M=null!==(T=null!==(C=null==r?void 0:r.weekStartsOn)&&void 0!==C?C:null==r?void 0:null===(A=r.locale)||void 0===A?void 0:null===(N=A.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==T?T:Y.weekStartsOn)&&void 0!==M?M:null===(I=Y.locale)||void 0===I?void 0:null===(R=I.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==P?P:0);if(!(U>=0&&U<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw RangeError("locale must contain localize property");if(!B.formatLong)throw RangeError("locale must contain formatLong property");var Z=(0,a.default)(e);if(!(0,n.default)(Z))throw RangeError("Invalid time value");var W=(0,b.Z)(Z),H=(0,o.Z)(Z,W),z={firstWeekContainsDate:F,weekStartsOn:U,locale:B,_originalDate:Z};return L.match(D).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,g.Z[t])(e,B.formatLong):e}).join("").match(S).map(function(n){if("''"===n)return"'";var o,a=n[0];if("'"===a)return(o=n.match(j))?o[1].replace(_,"'"):n;var i=m[a];if(i)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,w.Do)(n)&&(0,w.qp)(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,w.Iu)(n)&&(0,w.qp)(n,t,String(e)),i(H,n,B.localize,z);if(a.match(E))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n}).join("")}},55855:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getDate()}},20466:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getDay()}},85817:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getHours()}},90259:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(19013),o=r(584),a=r(13882);function i(e){return(0,a.Z)(1,arguments),(0,o.default)(e,{weekStartsOn:1})}function u(e){(0,a.Z)(1,arguments);var t=(0,n.default)(e);return Math.round((i(t).getTime()-(function(e){(0,a.Z)(1,arguments);var t=function(e){(0,a.Z)(1,arguments);var t=(0,n.default)(e),r=t.getFullYear(),o=new Date(0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);var u=i(o),c=new Date(0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);var s=i(c);return t.getTime()>=u.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}(e),r=new Date(0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),i(r)})(t).getTime())/6048e5)+1}},39159:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getMinutes()}},78966:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getMonth()}},56605:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),Math.floor((0,n.default)(e).getMonth()/3)+1}},77881:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getSeconds()}},28789:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getTime()}},95570:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){return(0,o.Z)(1,arguments),(0,n.default)(e).getFullYear()}},42699:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e,t){(0,o.Z)(2,arguments);var r=(0,n.default)(e),a=(0,n.default)(t);return r.getTime()>a.getTime()}},313:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e,t){(0,o.Z)(2,arguments);var r=(0,n.default)(e),a=(0,n.default)(t);return r.getTime()=a&&r<=i}},99890:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(86),o=r(19013),a=r(13882);function i(e){var t,r;if((0,a.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,n.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,o.default)(e);(void 0===r||rt||isNaN(t.getDate()))&&(r=t)}),r||new Date(NaN)}},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return eA}});var n=r(86);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}var i=r(86559),u=r(91218),c=r(19013),s=r(97621),l=r(24262),f=r(5267),p=r(83946),d=r(13882);function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw 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&&y(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,r)}}function b(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function w(e){var t=function(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.Z)(t)?t:String(t)}function x(e,t){for(var r=0;r0,o=n?t:1-t;if(o<=50)r=e||100;else{var a=o+50;r=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return n?r:1-r}function F(e){return e%400==0||e%4==0&&e%100!=0}var U=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a0}},{key:"set",value:function(e,t,r){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var o=B(r.year,n);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(_),Z=r(7651),W=r(59025),H=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a0}},{key:"set",value:function(e,t,r,n){var o=(0,Z.Z)(e,n);if(r.isTwoDigitYear){var a=B(r.year,o);return e.setUTCFullYear(a,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,W.Z)(e,n)}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,W.Z)(e,n)}}]),r}(_),z=r(66979),$=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(_),V=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(_),G=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}]),r}(_),X=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}]),r}(_),Q=r(5230),J=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,r,n){return(0,W.Z)(function(e,t,r){(0,d.Z)(2,arguments);var n=(0,c.default)(e),o=(0,p.Z)(t),a=(0,Q.Z)(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,r,n),n)}}]),r}(_),ee=r(33276),et=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,r){return(0,z.Z)(function(e,t){(0,d.Z)(2,arguments);var r=(0,c.default)(e),n=(0,p.Z)(t),o=(0,ee.Z)(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,r))}}]),r}(_),er=[31,28,31,30,31,30,31,31,30,31,30,31],en=[31,29,31,30,31,30,31,31,30,31,30,31],eo=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=en[n]:t>=1&&t<=er[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}]),r}(_),ea=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,r){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e}}]),r}(_),ei=r(84314);function eu(e,t,r){(0,d.Z)(2,arguments);var n,o,a,i,u,s,l,f,h=(0,ei.j)(),y=(0,p.Z)(null!==(n=null!==(o=null!==(a=null!==(i=null==r?void 0:r.weekStartsOn)&&void 0!==i?i:null==r?void 0:null===(u=r.locale)||void 0===u?void 0:null===(s=u.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:h.weekStartsOn)&&void 0!==o?o:null===(l=h.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,c.default)(e),m=(0,p.Z)(t),g=v.getUTCDay();return v.setUTCDate(v.getUTCDate()+(((m%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=eu(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(_),es=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=eu(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(_),el=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=eu(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(_),ef=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=7}},{key:"set",value:function(e,t,r){return(e=function(e,t){(0,d.Z)(2,arguments);var r=(0,p.Z)(t);r%7==0&&(r-=7);var n=(0,c.default)(e),o=((r%7+7)%7<1?7:0)+r-n.getUTCDay();return n.setUTCDate(n.getUTCDate()+o),n}(e,r)).setUTCHours(0,0,0,0),e}}]),r}(_),ep=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=12}},{key:"set",value:function(e,t,r){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e}}]),r}(_),ev=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=23}},{key:"set",value:function(e,t,r){return e.setUTCHours(r,0,0,0),e}}]),r}(_),em=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,r){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e}}]),r}(_),eg=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&t<=24}},{key:"set",value:function(e,t,r){return e.setUTCHours(r<=24?r%24:r,0,0,0),e}}]),r}(_),eb=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCMinutes(r,0,0),e}}]),r}(_),ew=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCSeconds(r,0),e}}]),r}(_),ex=function(e){v(r,e);var t=g(r);function r(){var e;b(this,r);for(var n=arguments.length,o=Array(n),a=0;a=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=(0,p.Z)(null!==(T=null!==(C=null!==(A=null!==(N=null==o?void 0:o.weekStartsOn)&&void 0!==N?N:null==o?void 0:null===(I=o.locale)||void 0===I?void 0:null===(R=I.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==A?A:v.weekStartsOn)&&void 0!==C?C:null===(L=v.locale)||void 0===L?void 0:null===(Y=L.options)||void 0===Y?void 0:Y.weekStartsOn)&&void 0!==T?T:0);if(!(b>=0&&b<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===y)return""===h?(0,c.default)(r):new Date(NaN);var w,x,O,k,S,D,_,E,P,M,T,C,A,N,I,R,L,Y,B,F={firstWeekContainsDate:g,weekStartsOn:b,locale:m},U=[new j],Z=y.match(eE).map(function(e){var t=e[0];return t in s.Z?(0,s.Z[t])(e,m.formatLong):e}).join("").match(e_),W=[],H=a(Z);try{for(H.s();!(B=H.n()).done;){var z=function(){var t=B.value;!(null!=o&&o.useAdditionalWeekYearTokens)&&(0,f.Do)(t)&&(0,f.qp)(t,y,e),!(null!=o&&o.useAdditionalDayOfYearTokens)&&(0,f.Iu)(t)&&(0,f.qp)(t,y,e);var r=t[0],n=ej[r];if(n){var a=n.incompatibleTokens;if(Array.isArray(a)){var i=W.find(function(e){return a.includes(e.token)||e.token===r});if(i)throw RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===n.incompatibleTokens&&W.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));W.push({token:r,fullToken:t});var u=n.run(h,t,m.match,F);if(!u)return{v:new Date(NaN)};U.push(u.setter),h=u.rest}else{if(r.match(eC))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===t?t="'":"'"===r&&(t=t.match(eP)[1].replace(eM,"'")),0!==h.indexOf(t))return{v:new Date(NaN)};h=h.slice(t.length)}}();if("object"===(0,n.Z)(z))return z.v}}catch(e){H.e(e)}finally{H.f()}if(h.length>0&&eT.test(h))return new Date(NaN);var $=U.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,r){return r.indexOf(e)===t}).map(function(e){return U.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),q=(0,c.default)(r);if(isNaN(q.getTime()))return new Date(NaN);var K,V=(0,u.Z)(q,(0,l.Z)(q)),G={},X=a($);try{for(X.s();!(K=X.n()).done;){var Q=K.value;if(!Q.validate(V,F))return new Date(NaN);var J=Q.set(V,G,F);Array.isArray(J)?(V=J[0],function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}(G,J[1])):V=J}}catch(e){X.e(e)}finally{X.f()}return V}},23855:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(36948),o=r(13882),a=r(83946);function i(e,t){(0,o.Z)(1,arguments);var r,i,y,v=(0,a.Z)(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==v&&1!==v&&0!==v)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var m=function(e){var t,r={},n=e.split(u.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],u.timeZoneDelimiter.test(r.date)&&(r.date=e.split(u.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var o=u.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}(e);if(m.date){var g=function(e,t){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(m.date,v);i=function(e,t){if(null===t)return new Date(NaN);var r,n,o=e.match(c);if(!o)return new Date(NaN);var a=!!o[4],i=f(o[1]),u=f(o[2])-1,s=f(o[3]),l=f(o[4]),p=f(o[5])-1;if(a)return l>=1&&l<=53&&p>=0&&p<=6?((r=new Date(0)).setUTCFullYear(t,0,4),n=r.getUTCDay()||7,r.setUTCDate(r.getUTCDate()+((l-1)*7+p+1-n)),r):new Date(NaN);var y=new Date(0);return u>=0&&u<=11&&s>=1&&s<=(d[u]||(h(t)?29:28))&&i>=1&&i<=(h(t)?366:365)?(y.setUTCFullYear(t,u,Math.max(i,s)),y):new Date(NaN)}(g.restDateString,g.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var b=i.getTime(),w=0;if(m.time&&isNaN(w=function(e){var t=e.match(s);if(!t)return NaN;var r=p(t[1]),o=p(t[2]),a=p(t[3]);return(24===r?0===o&&0===a:a>=0&&a<60&&o>=0&&o<60&&r>=0&&r<25)?r*n.vh+o*n.yJ+1e3*a:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(y=function(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var r="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return a>=0&&a<=59?r*(o*n.vh+a*n.yJ):NaN}(m.timezone)))return new Date(NaN)}else{var x=new Date(b+w),O=new Date(0);return O.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),O.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),O}return new Date(b+w+y)}var u={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var d=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},92311:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(86),o=r(19013),a=r(16218),i=r(83946),u=r(13882);function c(e,t){if((0,u.Z)(2,arguments),"object"!==(0,n.Z)(t)||null===t)throw RangeError("values parameter must be an object");var r=(0,o.default)(e);return isNaN(r.getTime())?new Date(NaN):(null!=t.year&&r.setFullYear(t.year),null!=t.month&&(r=(0,a.default)(r,t.month)),null!=t.date&&r.setDate((0,i.Z)(t.date)),null!=t.hours&&r.setHours((0,i.Z)(t.hours)),null!=t.minutes&&r.setMinutes((0,i.Z)(t.minutes)),null!=t.seconds&&r.setSeconds((0,i.Z)(t.seconds)),null!=t.milliseconds&&r.setMilliseconds((0,i.Z)(t.milliseconds)),r)}},37042:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(19013),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t);return r.setHours(i),r}},4543:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(19013),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t);return r.setMinutes(i),r}},16218:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(19013),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t),u=r.getFullYear(),c=r.getDate(),s=new Date(0);s.setFullYear(u,i,15),s.setHours(0,0,0,0);var l=function(e){(0,a.Z)(1,arguments);var t=(0,o.default)(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}(s);return r.setMonth(i,Math.min(c,l)),r}},11503:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(83946),o=r(19013),a=r(16218),i=r(13882);function u(e,t){(0,i.Z)(2,arguments);var r=(0,o.default)(e),u=(0,n.Z)(t),c=Math.floor(r.getMonth()/3)+1;return(0,a.default)(r,r.getMonth()+3*(u-c))}},39880:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(19013),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t);return r.setSeconds(i),r}},44749:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r(83946),o=r(19013),a=r(13882);function i(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}},69119:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e);return t.setHours(0,0,0,0),t}},43703:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},94431:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r(19013),o=r(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,n.default)(e),r=t.getMonth();return t.setMonth(r-r%3,1),t.setHours(0,0,0,0),t}},584:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(19013),o=r(83946),a=r(13882),i=r(84314);function u(e,t){(0,a.Z)(1,arguments);var r,u,c,s,l,f,p,d,h=(0,i.j)(),y=(0,o.Z)(null!==(r=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,n.default)(e),m=v.getDay();return v.setDate(v.getDate()-((m(c=(i=Math.ceil(p/7))>c?i+1:c+1)&&(a=c,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((c=s.length)-(a=l.length)<0&&(a=c,n=l,l=s,s=n),r=0;a;)r=(s[--a]=s[a]+l[a]+r)/1e7|0,s[a]%=1e7;for(r&&(s.unshift(r),++o),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=o,u?j(t,p):t}function m(e,t,r){if(e!==~~e||er)throw Error(s+e)}function g(e){var t,r,n,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,r=(n=this.d.length)<(o=e.d.length)?n:o;te.d[t]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return j(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return x(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,r=this.constructor,n=r.precision,o=n+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(a))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(a)?new r(0):(u=!1,t=b(S(this,o),S(e,o),o),u=!0,j(t,n))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?_(this,e):v(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,r=this.constructor,n=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return this.s?(u=!1,t=b(this,e,0,1).times(e),u=!0,this.minus(t)):j(new r(this),n)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?v(this,e):_(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,r,n;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=x(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},y.squareRoot=y.sqrt=function(){var e,t,r,n,o,a,i,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(c+"NaN")}for(e=x(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=g(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e,n=new s(t)):n=new s(o.toString()),o=i=(r=s.precision)+3;;)if(n=(a=n).plus(b(this,a,i+2)).times(.5),g(a.d).slice(0,i)===(t=g(n.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(j(a,r+1,0),a.times(a).eq(this)){n=a;break}}else if("9999"!=t)break;i+=4}return u=!0,j(n,r)},y.times=y.mul=function(e){var t,r,n,o,a,i,c,s,l,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,r=this.e+e.e,(s=p.length)<(l=d.length)&&(a=p,p=d,d=a,i=s,s=l,l=i),a=[],n=i=s+l;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,o=s+n;o>n;)c=a[o]+d[n]*p[o-n-1]+t,a[o--]=c%1e7|0,t=c/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,u?j(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(m(e,0,1e9),void 0===t?t=n.rounding:m(t,0,8),j(r,e+x(r)+1,t))},y.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=E(n,!0):(m(e,0,1e9),void 0===t?t=o.rounding:m(t,0,8),r=E(n=j(new o(n),e+1,t),!0,e+1)),r},y.toFixed=function(e,t){var r,n,o=this.constructor;return void 0===e?E(this):(m(e,0,1e9),void 0===t?t=o.rounding:m(t,0,8),r=E((n=j(new o(this),e+x(this)+1,t)).abs(),!1,e+x(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var e=this.constructor;return j(new e(this),x(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,r,n,o,i,s,l=this,p=l.constructor,d=+(e=new p(e));if(!e.s)return new p(a);if(!(l=new p(l)).s){if(e.s<1)throw Error(c+"Infinity");return l}if(l.eq(a))return l;if(n=p.precision,e.eq(a))return j(l,n);if(s=(t=e.e)>=(r=e.d.length-1),i=l.s,s){if((r=d<0?-d:d)<=9007199254740991){for(o=new p(a),t=Math.ceil(n/7+4),u=!1;r%2&&P((o=o.times(l)).d,t),0!==(r=f(r/2));)P((l=l.times(l)).d,t);return u=!0,e.s<0?new p(a).div(o):j(o,n)}}else if(i<0)throw Error(c+"NaN");return i=i<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,u=!1,o=e.times(S(l,n+12)),u=!0,(o=w(o)).s=i,o},y.toPrecision=function(e,t){var r,n,o=this,a=o.constructor;return void 0===e?(r=x(o),n=E(o,r<=a.toExpNeg||r>=a.toExpPos)):(m(e,1,1e9),void 0===t?t=a.rounding:m(t,0,8),r=x(o=j(new a(o),e,t)),n=E(o,e<=r||r<=a.toExpNeg,e)),n},y.toSignificantDigits=y.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(m(e,1,1e9),void 0===t?t=r.rounding:m(t,0,8)),j(new r(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=x(this),t=this.constructor;return E(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%1e7|0,n=r/1e7|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,a;if(r!=n)a=r>n?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]1;)e.shift()}return function(n,o,a,i){var u,s,l,f,p,d,h,y,v,m,g,b,w,O,k,S,D,_,E=n.constructor,P=n.s==o.s?1:-1,M=n.d,T=o.d;if(!n.s)return new E(n);if(!o.s)throw Error(c+"Division by zero");for(l=0,s=n.e-o.e,D=T.length,k=M.length,y=(h=new E(P)).d=[];T[l]==(M[l]||0);)++l;if(T[l]>(M[l]||0)&&--s,(b=null==a?a=E.precision:i?a+(x(n)-x(o))+1:a)<0)return new E(0);if(b=b/7+2|0,l=0,1==D)for(f=0,T=T[0],b++;(l1&&(T=e(T,f),M=e(M,f),D=T.length,k=M.length),O=D,m=(v=M.slice(0,D)).length;m=1e7/2&&++S;do f=0,(u=t(T,v,D,m))<0?(g=v[0],D!=m&&(g=1e7*g+(v[1]||0)),(f=g/S|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(T,f)).length,m=v.length,1==(u=t(p,v,d,m))&&(f--,r(p,D16)throw Error(l+x(e));if(!e.s)return new d(a);for(null==t?(u=!1,c=h):c=t,i=new d(.03125);e.abs().gte(.1);)e=e.times(i),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new d(a),d.precision=c;;){if(n=j(n.times(e),c),r=r.times(++s),g((i=o.plus(b(n,r,c))).d).slice(0,c)===g(o.d).slice(0,c)){for(;f--;)o=j(o.times(o),c);return d.precision=h,null==t?(u=!0,j(o,h)):o}o=i}}function x(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function O(e,t,r){if(t>e.LN10.sd())throw u=!0,r&&(e.precision=r),Error(c+"LN10 precision limit exceeded");return j(new e(e.LN10),t)}function k(e){for(var t="";e--;)t+="0";return t}function S(e,t){var r,n,o,i,s,l,f,p,d,h=1,y=e,v=y.d,m=y.constructor,w=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(a))return new m(0);if(null==t?(u=!1,p=w):p=t,y.eq(10))return null==t&&(u=!0),O(m,p);if(p+=10,m.precision=p,n=(r=g(v)).charAt(0),!(15e14>Math.abs(i=x(y))))return f=O(m,p+2,w).times(i+""),y=S(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=w,null==t?(u=!0,j(y,w)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=g((y=y.times(e)).d)).charAt(0),h++;for(i=x(y),n>1?(y=new m("0."+r),i++):y=new m(n+"."+r.slice(1)),l=s=y=b(y.minus(a),y.plus(a),p),d=j(y.times(y),p),o=3;;){if(s=j(s.times(d),p),g((f=l.plus(b(s,new m(o),p))).d).slice(0,p)===g(l.d).slice(0,p))return l=l.times(2),0!==i&&(l=l.plus(O(m,p+2,w).times(i+""))),l=b(l,new m(h),p),m.precision=w,null==t?(u=!0,j(l,w)):l;l=f,o+=2}}function D(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(n,o)){if(o-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),nh||e.e<-h))throw Error(l+r)}else e.s=0,e.e=0,e.d=[0];return e}function j(e,t,r){var n,o,a,i,c,s,d,y,v=e.d;for(i=1,a=v[0];a>=10;a/=10)i++;if((n=t-i)<0)n+=7,o=t,d=v[y=0];else{if(y=Math.ceil((n+1)/7),a=v.length,y>=a)return e;for(i=1,d=a=v[y];a>=10;a/=10)i++;n%=7,o=n-7+i}if(void 0!==r&&(c=d/(a=p(10,i-o-1))%10|0,s=t<0||void 0!==v[y+1]||d%a,s=r<4?(c||s)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||s||6==r&&(n>0?o>0?d/p(10,i-o):0:v[y-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(a=x(e),v.length=1,t=t-a-1,v[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=y,a=1,y--):(v.length=y+1,a=p(10,7-n),v[y]=o>0?(d/p(10,i-o)%p(10,o)|0)*a:0),s)for(;;){if(0==y){1e7==(v[0]+=a)&&(v[0]=1,++e.e);break}if(v[y]+=a,1e7!=v[y])break;v[y--]=0,a=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(e.e>h||e.e<-h))throw Error(l+x(e));return e}function _(e,t){var r,n,o,a,i,c,s,l,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?j(t,h):t;if(s=e.d,p=t.d,n=t.e,l=e.e,s=s.slice(),i=l-n){for((f=i<0)?(r=s,i=-i,c=p.length):(r=p,n=l,c=s.length),o=Math.max(Math.ceil(h/7),c)+2,i>o&&(i=o,r.length=1),r.reverse(),o=i;o--;)r.push(0);r.reverse()}else{for((f=(o=s.length)<(c=p.length))&&(c=o),o=0;o0;--o)s[c++]=0;for(o=p.length;o>i;){if(s[--o]0?a=a.charAt(0)+"."+a.slice(1)+k(n):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+k(-o-1)+a,r&&(n=r-i)>0&&(a+=k(n))):o>=i?(a+=k(o+1-i),r&&(n=r-o-1)>0&&(a=a+"."+k(n))):((n=o+1)0&&(o+1===i&&(a+="."),a+=k(n))),e.s<0?"-"+a:a}function P(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(s+r+": "+n)}if(void 0!==(n=e[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(s+r+": "+n)}return this}(i=function e(t){var r,n,o;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return D(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,d.test(e))D(t,e);else throw Error(s+e)}if(a.prototype=y,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=M,void 0===t&&(t={}),t)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r-1&&t%1==0&&t<=9007199254740991&&!("[object Function]"==(r=typeof e,n=e&&("object"==r||"function"==r)?c.call(e):"")||"[object GeneratorFunction]"==n)}function y(e){return h(e)?function(e,t){var r,n,a=d(e)||e&&"object"==typeof e&&h(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))?function(e,t){for(var r=-1,n=Array(e);++r-1&&r%1==0&&r-1&&t%1==0&&t<=9007199254740991&&!q(e)}var $=E||function(){return!1};function q(e){var t=K(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(z(e)&&(H(e)||"string"==typeof e||"function"==typeof e.splice||$(e)||e&&"object"==typeof e&&z(e)&&k.call(e,"callee")&&(!_.call(e,"callee")||"[object Arguments]"==S.call(e))))return!e.length;var t,r,n=Z(e);if(n==i||n==c)return!e.size;if(I||(r="function"==typeof(t=e&&e.constructor)&&t.prototype||b,e===r))return!P(e).length;for(var o in e)if(k.call(e,o))return!1;return!0}},80820:function(e,t,r){e=r.nmd(e);var n,o,a,i,u="__lodash_hash_undefined__",c=1/0,s="[object Arguments]",l="[object Array]",f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",y="[object Map]",v="[object Number]",m="[object Object]",g="[object Promise]",b="[object RegExp]",w="[object Set]",x="[object String]",O="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",D="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/,E=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/\\(\\)?/g,T=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[l]=A[S]=A[f]=A[D]=A[p]=A[d]=A[h]=A[y]=A[v]=A[m]=A[b]=A[w]=A[x]=A[k]=!1;var N="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,R=N||I||Function("return this")(),L=t&&!t.nodeType&&t,Y=L&&e&&!e.nodeType&&e,B=Y&&Y.exports===L&&N.process,F=function(){try{return B&&B.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function Z(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r-1},ex.prototype.set=function(e,t){var r=this.__data__,n=eD(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},eO.prototype.clear=function(){this.__data__={hash:new ew,map:new(eu||ex),string:new ew}},eO.prototype.delete=function(e){return eA(this,e).delete(e)},eO.prototype.get=function(e){return eA(this,e).get(e)},eO.prototype.has=function(e){return eA(this,e).has(e)},eO.prototype.set=function(e,t){return eA(this,e).set(e,t),this},ek.prototype.add=ek.prototype.push=function(e){return this.__data__.set(e,u),this},ek.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.clear=function(){this.__data__=new ex},eS.prototype.delete=function(e){return this.__data__.delete(e)},eS.prototype.get=function(e){return this.__data__.get(e)},eS.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ex){var n=r.__data__;if(!eu||n.length<199)return n.push([e,t]),this;r=this.__data__=new eO(n)}return r.set(e,t),this};var ej=function(e,t){if(null==e)return e;if(!e$(e)){var r,o;return r=e,o=t,r&&e_(r,o,eJ)}for(var a=e.length,i=n?a:-1,u=Object(e);(n?i--:++iu))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new ek:void 0;for(a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eV(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eX(e){return"symbol"==typeof e||eG(e)&&J.call(e)==O}var eQ=U?function(e){return U(e)}:function(e){return eG(e)&&eK(e.length)&&!!A[J.call(e)]};function eJ(e){return e$(e)?function(e,t){var r=ez(e)||eH(e)?function(e,t){for(var r=-1,n=Array(e);++ru))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new eS:void 0;for(a.set(e,t),a.set(t,e);++l-1},eO.prototype.set=function(e,t){var r=this.__data__,n=e_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ek.prototype.clear=function(){this.__data__={hash:new ex,map:new(ec||eO),string:new ex}},ek.prototype.delete=function(e){return eA(this,e).delete(e)},ek.prototype.get=function(e){return eA(this,e).get(e)},ek.prototype.has=function(e){return eA(this,e).has(e)},ek.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,a),this},eS.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.clear=function(){this.__data__=new eO},eD.prototype.delete=function(e){return this.__data__.delete(e)},eD.prototype.get=function(e){return this.__data__.get(e)},eD.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eO){var n=r.__data__;if(!ec||n.length<199)return n.push([e,t]),this;r=this.__data__=new ek(n)}return r.set(e,t),this};var eI=ea?W(ea,Object):e4,eR=ea?function(e){for(var t=[];e;)F(t,eI(e)),e=er(e);return t}:e4,eL=function(e){return Q.call(e)};function eY(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eQ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eJ(e){return!!e&&"object"==typeof e}function e0(e){return"symbol"==typeof e||eJ(e)&&Q.call(e)==w}var e1=B?function(e){return B(e)}:function(e){return eJ(e)&&eX(e.length)&&!!T[Q.call(e)]};function e2(e){return eV(e)?ej(e):function(e){if(!eF(e))return ei(e);var t=[];for(var r in Object(e))X.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}function e3(e){return e}function e4(){return[]}e.exports=function(e,t){var r,n,a,i;return r=e,n=function(e){if("function"!=typeof e)throw TypeError(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}(eT(t)),null==r?{}:function(e,t,r){for(var n=-1,o=t.length,a={};++n-1},eO.prototype.set=function(e,t){var r=this.__data__,n=ej(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ek.prototype.clear=function(){this.__data__={hash:new ex,map:new(ec||eO),string:new ex}},ek.prototype.delete=function(e){return eA(this,e).delete(e)},ek.prototype.get=function(e){return eA(this,e).get(e)},ek.prototype.has=function(e){return eA(this,e).has(e)},ek.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,u),this},eS.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.clear=function(){this.__data__=new eO},eD.prototype.delete=function(e){return this.__data__.delete(e)},eD.prototype.get=function(e){return this.__data__.get(e)},eD.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eO){var n=r.__data__;if(!ec||n.length<199)return n.push([e,t]),this;r=this.__data__=new ek(n)}return r.set(e,t),this};var e_=function(e,t){if(null==e)return e;if(!e$(e)){var r,o;return r=e,o=t,r&&eE(r,o,eJ)}for(var a=e.length,i=n?a:-1,u=Object(e);(n?i--:++iu))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new eS:void 0;for(a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eV(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eX(e){return"symbol"==typeof e||eG(e)&&ee.call(e)==O}var eQ=U?function(e){return U(e)}:function(e){return eG(e)&&eK(e.length)&&!!A[ee.call(e)]};function eJ(e){return e$(e)?function(e,t){var r=ez(e)||eH(e)?function(e,t){for(var r=-1,n=Array(e);++rt}},70433:function(e){e.exports=function(e,t){return eo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n=o?e:n(e,t,r)}},98805:function(e,t,r){var n=r(40180),o=r(52036),a=r(83140),i=r(79833);e.exports=function(e){return function(t){var r=o(t=i(t))?a(t):void 0,u=r?r[0]:t.charAt(0),c=r?n(r,1).join(""):t.slice(1);return u[e]()+c}}},67740:function(e,t,r){var n=r(11243),o=r(98612),a=r(3674);e.exports=function(e){return function(t,r,i){var u=Object(t);if(!o(t)){var c=n(r,3);t=a(t),r=function(e){return c(u[e],e,u)}}var s=e(t,r,i);return s>-1?u[c?t[s]:s]:void 0}}},47445:function(e,t,r){var n=r(40098),o=r(16612),a=r(18601);e.exports=function(e){return function(t,r,i){return i&&"number"!=typeof i&&o(t,r,i)&&(r=i=void 0),t=a(t),void 0===r?(r=t,t=0):r=a(r),i=void 0===i?t=t||r<0||v&&n>=l}function w(){var e,r,n,a=o();if(b(a))return x(a);p=setTimeout(w,(e=a-d,r=a-h,n=t-e,v?u(n,l-r):n))}function x(e){return(p=void 0,m&&c)?g(e):(c=s=void 0,f)}function O(){var e,r=o(),n=b(r);if(c=arguments,s=this,d=r,n){if(void 0===p)return h=e=d,p=setTimeout(w,t),y?g(e):f;if(v)return clearTimeout(p),p=setTimeout(w,t),g(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=a(t)||0,n(r)&&(y=!!r.leading,l=(v="maxWait"in r)?i(a(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=d=s=p=void 0},O.flush=function(){return void 0===p?f:x(o())},O}},711:function(e,t,r){var n=r(66193),o=r(93239),a=r(11243),i=r(1469),u=r(16612);e.exports=function(e,t,r){var c=i(e)?n:o;return r&&u(e,t,r)&&(t=void 0),c(e,a(t,3))}},13311:function(e,t,r){var n=r(67740)(r(30998));e.exports=n},30998:function(e,t,r){var n=r(41848),o=r(11243),a=r(40554),i=Math.max;e.exports=function(e,t,r){var u=null==e?0:e.length;if(!u)return -1;var c=null==r?0:a(r);return c<0&&(c=i(u+c,0)),n(e,o(t,3),c)}},94654:function(e,t,r){var n=r(21078),o=r(35161);e.exports=function(e,t){return n(o(e,t),1)}},7654:function(e,t,r){var n=r(81763);e.exports=function(e){return n(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},35161:function(e,t,r){var n=r(29932),o=r(11243),a=r(69199),i=r(1469);e.exports=function(e,t){return(i(e)?n:a)(e,o(t,3))}},6162:function(e,t,r){var n=r(56029),o=r(53325),a=r(6557);e.exports=function(e){return e&&e.length?n(e,a,o):void 0}},53632:function(e,t,r){var n=r(56029),o=r(70433),a=r(6557);e.exports=function(e){return e&&e.length?n(e,a,o):void 0}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},96026:function(e,t,r){var n=r(47445)();e.exports=n},59704:function(e,t,r){var n=r(82908),o=r(11243),a=r(5076),i=r(1469),u=r(16612);e.exports=function(e,t,r){var c=i(e)?n:a;return r&&u(e,t,r)&&(t=void 0),c(e,o(t,3))}},23493:function(e,t,r){var n=r(23279),o=r(13218);e.exports=function(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),n(e,t,{leading:a,maxWait:t,trailing:i})}},18601:function(e,t,r){var n=r(14841),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},40554:function(e,t,r){var n=r(18601);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},14841:function(e,t,r){var n=r(27561),o=r(13218),a=r(33448),i=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=c.test(e);return r||s.test(e)?l(e.slice(2),r?2:8):u.test(e)?i:+e}},45578:function(e,t,r){var n=r(11243),o=r(45652);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},11700:function(e,t,r){var n=r(98805)("toUpperCase");e.exports=n},24394:function(){},31879:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(44036),o=r.n(n),a=r(67294);r(42473);var i=r(76792),u=r(85893);let c=a.forwardRef((e,t)=>{let[{className:r,...n},{as:a="div",bsPrefix:c,spans:s}]=function({as:e,bsPrefix:t,className:r,...n}){t=(0,i.vE)(t,"col");let a=(0,i.pi)(),u=(0,i.zG)(),c=[],s=[];return a.forEach(e=>{let r,o,a;let i=n[e];delete n[e],"object"==typeof i&&null!=i?{span:r,offset:o,order:a}=i:r=i;let l=e!==u?`-${e}`:"";r&&c.push(!0===r?`${t}${l}`:`${t}${l}-${r}`),null!=a&&s.push(`order${l}-${a}`),null!=o&&s.push(`offset${l}-${o}`)}),[{...n,className:o()(r,...c,...s)},{as:e,bsPrefix:t,spans:c}]}(e);return(0,u.jsx)(a,{...n,ref:t,className:o()(r,!s.length&&c)})});c.displayName="Col";let s=a.createContext({}),l=a.forwardRef(({as:e="label",bsPrefix:t,column:r,visuallyHidden:n,className:l,htmlFor:f,...p},d)=>{let{controlId:h}=(0,a.useContext)(s);t=(0,i.vE)(t,"form-label");let y="col-form-label";"string"==typeof r&&(y=`${y} ${y}-${r}`);let v=o()(l,t,n&&"visually-hidden",r&&y);return(f=f||h,r)?(0,u.jsx)(c,{ref:d,as:"label",className:v,htmlFor:f,...p}):(0,u.jsx)(e,{ref:d,className:v,htmlFor:f,...p})});l.displayName="FormLabel",l.defaultProps={column:!1,visuallyHidden:!1};var f=l},42050:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(44036),o=r.n(n),a=r(67294),i=r(76792),u=r(85893);function c({min:e,now:t,max:r,label:n,visuallyHidden:a,striped:i,animated:c,className:s,style:l,variant:f,bsPrefix:p,...d},h){return(0,u.jsx)("div",{ref:h,...d,role:"progressbar",className:o()(s,`${p}-bar`,{[`bg-${f}`]:f,[`${p}-bar-animated`]:c,[`${p}-bar-striped`]:c||i}),style:{width:`${Math.round((t-e)/(r-e)*1e5)/1e3}%`,...l},"aria-valuenow":t,"aria-valuemin":e,"aria-valuemax":r,children:a?(0,u.jsx)("span",{className:"visually-hidden",children:n}):n})}let s=a.forwardRef(({isChild:e,...t},r)=>{var n;let s;if(t.bsPrefix=(0,i.vE)(t.bsPrefix,"progress"),e)return c(t,r);let{min:l,now:f,max:p,label:d,visuallyHidden:h,striped:y,animated:v,bsPrefix:m,variant:g,className:b,children:w,...x}=t;return(0,u.jsx)("div",{ref:r,...x,className:o()(b,m),children:w?(n=e=>(0,a.cloneElement)(e,{isChild:!0}),s=0,a.Children.map(w,e=>a.isValidElement(e)?n(e,s++):e)):c({min:l,now:f,max:p,label:d,visuallyHidden:h,striped:y,animated:v,bsPrefix:m,variant:g},r)})});s.displayName="ProgressBar",s.defaultProps={min:0,max:100,animated:!1,isChild:!1,visuallyHidden:!1,striped:!1};var l=s},9198:function(e,t,r){!function(e,t,r,n,o,a,i,u,c,s,l,f,p,d,h,y,v,m,g,b,w,x,O,k,S,D,j,_,E,P,M,T,C,A,N,I,R,L,Y,B,F,U,Z,W,H,z,$,q,K,V,G,X,Q,J,ee,et,er,en,eo,ea,ei,eu,ec,es){"use strict";function el(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ef=el(t),ep=el(n),ed=el(o),eh=el(a),ey=el(i),ev=el(u),em=el(c),eg=el(s),eb=el(l),ew=el(f),ex=el(p),eO=el(d),ek=el(h),eS=el(y),eD=el(v),ej=el(m),e_=el(g),eE=el(b),eP=el(w),eM=el(x),eT=el(O),eC=el(k),eA=el(S),eN=el(D),eI=el(j),eR=el(_),eL=el(E),eY=el(P),eB=el(M),eF=el(T),eU=el(C),eZ=el(A),eW=el(N),eH=el(I),ez=el(R),e$=el(L),eq=el(Y),eK=el(B),eV=el(F),eG=el(U),eX=el(Z),eQ=el(W),eJ=el(H),e0=el(z),e1=el(q),e2=el(K),e3=el(V),e4=el(G),e6=el(X),e8=el(Q),e5=el(J),e9=el(ee),e7=el(et),te=el(er),tt=el(en),tr=el(eo),tn=el(ea),to=el(ei),ta=el(eu),ti=el(es);function tu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.maxDate,o=t.excludeDates,a=t.excludeDateIntervals,i=t.includeDates,u=t.includeDateIntervals,c=t.filterDate;return t0(e,{minDate:r,maxDate:n})||o&&o.some(function(t){return tF(e,t)})||a&&a.some(function(t){var r=t.start,n=t.end;return te.default(e,{start:r,end:n})})||i&&!i.some(function(t){return tF(e,t)})||u&&!u.some(function(t){var r=t.start,n=t.end;return te.default(e,{start:r,end:n})})||c&&!c(t_(e))||!1}function tK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeDates,n=t.excludeDateIntervals;return n&&n.length>0?n.some(function(t){var r=t.start,n=t.end;return te.default(e,{start:r,end:n})}):r&&r.some(function(t){return tF(e,t)})||!1}function tV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return t0(e,{minDate:eX.default(r),maxDate:e1.default(n)})||o&&o.some(function(t){return tY(e,t)})||a&&!a.some(function(t){return tY(e,t)})||i&&!i(t_(e))||!1}function tG(e,t,r,n){var o=eR.default(e),a=eN.default(e),i=eR.default(t),u=eN.default(t),c=eR.default(n);return o===i&&o===c?a<=r&&r<=u:o=r||co:void 0}function tX(e,t,r){if(!eh.default(t)||!eh.default(r))return!1;var n=eR.default(t),o=eR.default(r);return n<=e&&o>=e}function tQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate,u=new Date(e,0,1);return t0(u,{minDate:eJ.default(r),maxDate:e2.default(n)})||o&&o.some(function(e){return tL(u,e)})||a&&!a.some(function(e){return tL(u,e)})||i&&!i(t_(u))||!1}function tJ(e,t,r,n){var o=eR.default(e),a=eI.default(e),i=eR.default(t),u=eI.default(t),c=eR.default(n);return o===i&&o===c?a<=r&&r<=u:o=r||co:void 0}function t0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.maxDate;return r&&0>e$.default(e,r)||n&&e$.default(e,n)>0}function t1(e,t){return t.some(function(t){return eM.default(t)===eM.default(e)&&eP.default(t)===eP.default(e)})}function t2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeTimes,n=t.includeTimes,o=t.filterTime;return r&&t1(e,r)||n&&!t1(e,n)||o&&!o(e)||!1}function t3(e,t){var r=t.minTime,n=t.maxTime;if(!r||!n)throw Error("Both minTime and maxTime props required");var o,a=t_(),i=eF.default(eB.default(a,eP.default(e)),eM.default(e)),u=eF.default(eB.default(a,eP.default(r)),eM.default(r)),c=eF.default(eB.default(a,eP.default(n)),eM.default(n));try{o=!te.default(i,{start:u,end:c})}catch(e){o=!1}return o}function t4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.includeDates,o=eD.default(e,1);return r&&eq.default(r,o)>0||n&&n.every(function(e){return eq.default(e,o)>0})||!1}function t6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxDate,n=t.includeDates,o=ew.default(e,1);return r&&eq.default(o,r)>0||n&&n.every(function(e){return eq.default(o,e)>0})||!1}function t8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.includeDates,o=e_.default(e,1);return r&&eK.default(r,o)>0||n&&n.every(function(e){return eK.default(e,o)>0})||!1}function t5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxDate,n=t.includeDates,o=eO.default(e,1);return r&&eK.default(o,r)>0||n&&n.every(function(e){return eK.default(o,e)>0})||!1}function t9(e){var t=e.minDate,r=e.includeDates;if(r&&t){var n=r.filter(function(e){return e$.default(e,t)>=0});return eH.default(n)}return r?eH.default(r):t}function t7(e){var t=e.maxDate,r=e.includeDates;if(r&&t){var n=r.filter(function(e){return 0>=e$.default(e,t)});return ez.default(n)}return r?ez.default(r):t}function re(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",r=new Map,n=0,o=e.length;n1&&void 0!==arguments[1]?arguments[1]:12,r=Math.ceil(eR.default(e)/t)*t;return{startPeriod:r-(t-1),endPeriod:r}}function rn(e){var t=e.getSeconds(),r=e.getMilliseconds();return tt.default(e.getTime()-1e3*t-r)}var ro=function(e){ty(n,e);var r=tb(n);function n(e){tl(this,n),td(tg(o=r.call(this,e)),"renderOptions",function(){var e=o.props.year,t=o.state.yearsList.map(function(t){return ef.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:o.onChange.bind(tg(o),t),"aria-selected":e===t?"true":void 0},e===t?ef.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),r=o.props.minDate?eR.default(o.props.minDate):null,n=o.props.maxDate?eR.default(o.props.maxDate):null;return n&&o.state.yearsList.find(function(e){return e===n})||t.unshift(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),r&&o.state.yearsList.find(function(e){return e===r})||t.push(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t}),td(tg(o),"onChange",function(e){o.props.onChange(e)}),td(tg(o),"handleClickOutside",function(){o.props.onCancel()}),td(tg(o),"shiftYears",function(e){var t=o.state.yearsList.map(function(t){return t+e});o.setState({yearsList:t})}),td(tg(o),"incrementYears",function(){return o.shiftYears(1)}),td(tg(o),"decrementYears",function(){return o.shiftYears(-1)});var o,a=e.yearDropdownItemNumber,i=e.scrollableYearDropdown;return o.state={yearsList:function(e,t,r,n){for(var o=[],a=0;a<2*t+1;a++){var i=e+t-a,u=!0;r&&(u=eR.default(r)<=i),n&&u&&(u=eR.default(n)>=i),u&&o.push(i)}return o}(o.props.year,a||(i?10:5),o.props.minDate,o.props.maxDate)},o.dropdownRef=t.createRef(),o}return tp(n,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,r=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=r?r.offsetTop+(r.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=ep.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ef.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),n}(ef.default.Component),ra=to.default(ro),ri=function(e){ty(r,e);var t=tb(r);function r(){var e;tl(this,r);for(var n=arguments.length,o=Array(n),a=0;a0?o.get(a).holidayNames.join(", "):""}),td(tg(e),"getTabIndex",function(t,r){var n=t||e.props.selected,o=r||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(n)&&tF(o,n))?0:-1}),td(tg(e),"handleFocusDay",function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!r.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(n=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(n=!1)),n&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))}),td(tg(e),"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(eC.default(e.props.day),e.props.day):eC.default(e.props.day)}),td(tg(e),"render",function(){return ef.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&ef.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))}),e}return tp(r,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),r}(ef.default.Component),rh=function(e){ty(r,e);var t=tb(r);function r(){var e;tl(this,r);for(var n=arguments.length,o=Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!t.isInputFocused&&tF(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(r=!0)),r&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})}),e}return tp(r,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,r=e.ariaLabelPrefix,n={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":tF(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ef.default.createElement("div",{ref:this.weekNumberEl,className:ep.default(n),"aria-label":"".concat(void 0===r?"week ":r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),r}(ef.default.Component),ry=function(e){ty(r,e);var t=tb(r);function r(){var e;tl(this,r);for(var n=arguments.length,o=Array(n),a=0;a=6,u=!r&&!e.isWeekInMonth(a);if(i||u){if(!e.props.peekNextMonth)break;o=!0}}return t}),td(tg(e),"onMonthClick",function(t,r){e.handleDayClick(tA(eU.default(e.props.day,r)),t)}),td(tg(e),"onMonthMouseEnter",function(t){e.handleDayMouseEnter(tA(eU.default(e.props.day,t)))}),td(tg(e),"handleMonthNavigation",function(t,r){e.isDisabled(r)||e.isExcluded(r)||(e.props.setPreSelection(r),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())}),td(tg(e),"onMonthKeyDown",function(t,r){var n=e.props,o=n.selected,a=n.preSelection,i=n.disabledKeyboardNavigation,u=n.showTwoColumnMonthYearPicker,c=n.showFourColumnMonthYearPicker,s=n.setPreSelection,l=t.key;if("Tab"!==l&&t.preventDefault(),!i){var f=c?rg:u?rv:rm,p=rb[f].verticalNavigationOffset,d=rb[f].grid;switch(l){case"Enter":e.onMonthClick(t,r),s(o);break;case"ArrowRight":e.handleMonthNavigation(11===r?0:r+1,ew.default(a,1));break;case"ArrowLeft":e.handleMonthNavigation(0===r?11:r-1,eD.default(a,1));break;case"ArrowUp":e.handleMonthNavigation(d[0].includes(r)?r+12-p:r-p,eD.default(a,p));break;case"ArrowDown":e.handleMonthNavigation(d[d.length-1].includes(r)?r-12+p:r+p,ew.default(a,p))}}}),td(tg(e),"onQuarterClick",function(t,r){e.handleDayClick(tI(eZ.default(e.props.day,r)),t)}),td(tg(e),"onQuarterMouseEnter",function(t){e.handleDayMouseEnter(tI(eZ.default(e.props.day,t)))}),td(tg(e),"handleQuarterNavigation",function(t,r){e.isDisabled(r)||e.isExcluded(r)||(e.props.setPreSelection(r),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())}),td(tg(e),"onQuarterKeyDown",function(t,r){var n=t.key;if(!e.props.disabledKeyboardNavigation)switch(n){case"Enter":e.onQuarterClick(t,r),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===r?1:r+1,ex.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===r?4:r-1,ej.default(e.props.preSelection,1))}}),td(tg(e),"getMonthClassNames",function(t){var r=e.props,n=r.day,o=r.startDate,a=r.endDate,i=r.selected,u=r.minDate,c=r.maxDate,s=r.preSelection,l=r.monthClassName,f=r.excludeDates,p=r.includeDates,d=l?l(eU.default(n,t)):void 0,h=eU.default(n,t);return ep.default("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month-text--disabled":(u||c||f||p)&&tV(h,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(n,t,i),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&eN.default(s)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":tG(o,a,t,n),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(n,t)})}),td(tg(e),"getTabIndex",function(t){var r=eN.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==r?"-1":"0"}),td(tg(e),"getQuarterTabIndex",function(t){var r=eI.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==r?"-1":"0"}),td(tg(e),"getAriaLabel",function(t){var r=e.props,n=r.chooseDayAriaLabelPrefix,o=r.disabledDayAriaLabelPrefix,a=r.day,i=eU.default(a,t),u=e.isDisabled(i)||e.isExcluded(i)?void 0===o?"Not available":o:void 0===n?"Choose":n;return"".concat(u," ").concat(tP(i,"MMMM yyyy"))}),td(tg(e),"getQuarterClassNames",function(t){var r=e.props,n=r.day,o=r.startDate,a=r.endDate,i=r.selected,u=r.minDate,c=r.maxDate,s=r.preSelection,l=r.disabledKeyboardNavigation;return ep.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(u||c)&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return t0(e,{minDate:r,maxDate:n})||o&&o.some(function(t){return tB(e,t)})||a&&!a.some(function(t){return tB(e,t)})||i&&!i(t_(e))||!1}(eZ.default(n,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(n,t,i),"react-datepicker__quarter-text--keyboard-selected":!l&&eI.default(s)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":tJ(o,a,t,n),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})}),td(tg(e),"getMonthContent",function(t){var r=e.props,n=r.showFullMonthYearPicker,o=r.renderMonthContent,a=r.locale,i=t$(t,a),u=tz(t,a);return o?o(t,i,u):n?u:i}),td(tg(e),"getQuarterContent",function(t){var r,n=e.props,o=n.renderQuarterContent,a=(r=n.locale,tP(eZ.default(t_(),t),"QQQ",r));return o?o(t,a):a}),td(tg(e),"renderMonths",function(){var t=e.props,r=t.showTwoColumnMonthYearPicker,n=t.showFourColumnMonthYearPicker,o=t.day,a=t.selected;return rb[n?rg:r?rv:rm].grid.map(function(t,r){return ef.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map(function(t,r){return ef.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(r){e.onMonthClick(r,t)},onKeyDown:function(r){e.onMonthKeyDown(r,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,a)},e.getMonthContent(t))}))})}),td(tg(e),"renderQuarters",function(){var t=e.props,r=t.day,n=t.selected;return ef.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(t,o){return ef.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(r){e.onQuarterClick(r,t)},onKeyDown:function(r){e.onQuarterKeyDown(r,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(r,t,n),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(r,t)?"date":void 0},e.getQuarterContent(t))}))}),td(tg(e),"getClassNames",function(){var t=e.props,r=t.selectingDate,n=t.selectsStart,o=t.selectsEnd,a=t.showMonthYearPicker,i=t.showQuarterYearPicker,u=t.showWeekPicker;return ep.default("react-datepicker__month",{"react-datepicker__month--selecting-range":r&&(n||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":i},{"react-datepicker__weekPicker":u})}),e}return tp(r,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,r=e.showQuarterYearPicker,n=e.day,o=e.ariaLabelPrefix;return ef.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(void 0===o?"month ":o," ").concat(tP(n,"yyyy-MM")),role:"listbox"},t?this.renderMonths():r?this.renderQuarters():this.renderWeeks())}}]),r}(ef.default.Component),rx=function(e){ty(r,e);var t=tb(r);function r(){var e;tl(this,r);for(var n=arguments.length,o=Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return rD.some(function(t){return e.indexOf(t)>=0})})(e.target)&&n.props.onDropdownFocus()}),td(tg(n),"getDateInView",function(){var e=n.props,t=e.preSelection,r=e.selected,o=e.openToDate,a=t9(n.props),i=t7(n.props),u=t_();return o||r||t||(a&&e7.default(u,a)?a:i&&e9.default(u,i)?i:u)}),td(tg(n),"increaseMonth",function(){n.setState(function(e){var t=e.date;return{date:ew.default(t,1)}},function(){return n.handleMonthChange(n.state.date)})}),td(tg(n),"decreaseMonth",function(){n.setState(function(e){var t=e.date;return{date:eD.default(t,1)}},function(){return n.handleMonthChange(n.state.date)})}),td(tg(n),"handleDayClick",function(e,t,r){n.props.onSelect(e,t,r),n.props.setPreSelection&&n.props.setPreSelection(e)}),td(tg(n),"handleDayMouseEnter",function(e){n.setState({selectingDate:e}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)}),td(tg(n),"handleMonthMouseLeave",function(){n.setState({selectingDate:null}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()}),td(tg(n),"handleYearMouseEnter",function(e,t){n.setState({selectingDate:eW.default(t_(),t)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(e,t)}),td(tg(n),"handleYearMouseLeave",function(e,t){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(e,t)}),td(tg(n),"handleYearChange",function(e){n.props.onYearChange&&(n.props.onYearChange(e),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)}),td(tg(n),"handleMonthChange",function(e){n.handleCustomMonthChange(e),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)}),td(tg(n),"handleCustomMonthChange",function(e){n.props.onMonthChange&&(n.props.onMonthChange(e),n.setState({isRenderAriaLiveMessage:!0}))}),td(tg(n),"handleMonthYearChange",function(e){n.handleYearChange(e),n.handleMonthChange(e)}),td(tg(n),"changeYear",function(e){n.setState(function(t){var r=t.date;return{date:eW.default(r,e)}},function(){return n.handleYearChange(n.state.date)})}),td(tg(n),"changeMonth",function(e){n.setState(function(t){var r=t.date;return{date:eU.default(r,e)}},function(){return n.handleMonthChange(n.state.date)})}),td(tg(n),"changeMonthYear",function(e){n.setState(function(t){var r=t.date;return{date:eW.default(eU.default(r,eN.default(e)),eR.default(e))}},function(){return n.handleMonthYearChange(n.state.date)})}),td(tg(n),"header",function(){var e=tC(arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.date,n.props.locale,n.props.calendarStartDay),t=[];return n.props.showWeekNumbers&&t.push(ef.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map(function(t){var r=eg.default(e,t),o=n.formatWeekday(r,n.props.locale),a=n.props.weekDayClassName?n.props.weekDayClassName(r):void 0;return ef.default.createElement("div",{key:t,className:ep.default("react-datepicker__day-name",a)},o)}))}),td(tg(n),"formatWeekday",function(e,t){return n.props.formatWeekDay?(0,n.props.formatWeekDay)(tP(e,"EEEE",t)):n.props.useWeekdaysShort?tP(e,"EEE",t):tP(e,"EEEEEE",t)}),td(tg(n),"decreaseYear",function(){n.setState(function(e){var t=e.date;return{date:e_.default(t,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),td(tg(n),"clearSelectingDate",function(){n.setState({selectingDate:null})}),td(tg(n),"renderPreviousButton",function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=t8(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minDate,n=t.yearItemNumber,o=void 0===n?12:n,a=rr(tN(e_.default(e,o)),o).endPeriod,i=r&&eR.default(r);return i&&i>a||!1}(n.state.date,n.props);break;default:e=t4(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!e)&&!n.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],r=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(r=n.decreaseYear),e&&n.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),r=null);var o=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,a=n.props,i=a.previousMonthButtonLabel,u=a.previousYearButtonLabel,c=n.props,s=c.previousMonthAriaLabel,l=c.previousYearAriaLabel;return ef.default.createElement("button",{type:"button",className:t.join(" "),onClick:r,onKeyDown:n.props.handleOnKeyDown,"aria-label":o?void 0===l?"string"==typeof u?u:"Previous Year":l:void 0===s?"string"==typeof i?i:"Previous Month":s},ef.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},o?n.props.previousYearButtonLabel:n.props.previousMonthButtonLabel))}}}),td(tg(n),"increaseYear",function(){n.setState(function(e){var t=e.date;return{date:eO.default(t,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),td(tg(n),"renderNextButton",function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=t5(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxDate,n=t.yearItemNumber,o=void 0===n?12:n,a=rr(eO.default(e,o),o).startPeriod,i=r&&eR.default(r);return i&&i0&&void 0!==arguments[0]?arguments[0]:n.state.date,t=["react-datepicker__current-month"];return n.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ef.default.createElement("div",{className:t.join(" ")},tP(e,n.props.dateFormat,n.props.locale))}),td(tg(n),"renderYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showYearDropdown&&!e)return ef.default.createElement(ri,{adjustDateOnChange:n.props.adjustDateOnChange,date:n.state.date,onSelect:n.props.onSelect,setOpen:n.props.setOpen,dropdownMode:n.props.dropdownMode,onChange:n.changeYear,minDate:n.props.minDate,maxDate:n.props.maxDate,year:eR.default(n.state.date),scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})}),td(tg(n),"renderMonthDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthDropdown&&!e)return ef.default.createElement(rs,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,onChange:n.changeMonth,month:eN.default(n.state.date),useShortMonthInDropdown:n.props.useShortMonthInDropdown})}),td(tg(n),"renderMonthYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthYearDropdown&&!e)return ef.default.createElement(rp,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,dateFormat:n.props.dateFormat,onChange:n.changeMonthYear,minDate:n.props.minDate,maxDate:n.props.maxDate,date:n.state.date,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown})}),td(tg(n),"handleTodayButtonClick",function(e){n.props.onSelect(tR(),e),n.props.setPreSelection&&n.props.setPreSelection(tR())}),td(tg(n),"renderTodayButton",function(){if(n.props.todayButton&&!n.props.showTimeSelectOnly)return ef.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return n.handleTodayButtonClick(e)}},n.props.todayButton)}),td(tg(n),"renderDefaultHeader",function(e){var t=e.monthDate,r=e.i;return ef.default.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(t),ef.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(0!==r),n.renderMonthYearDropdown(0!==r),n.renderYearDropdown(0!==r)),ef.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))}),td(tg(n),"renderCustomHeader",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,r=e.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var o=t4(n.state.date,n.props),a=t6(n.state.date,n.props),i=t8(n.state.date,n.props),u=t5(n.state.date,n.props),c=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},n.props.renderCustomHeader(tc(tc({},n.state),{},{customHeaderCount:r,monthDate:t,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:a,prevYearButtonDisabled:i,nextYearButtonDisabled:u})),c&&ef.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))}),td(tg(n),"renderYearHeader",function(){var e=n.state.date,t=n.props,r=t.showYearPicker,o=rr(e,t.yearItemNumber),a=o.startPeriod,i=o.endPeriod;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},r?"".concat(a," - ").concat(i):eR.default(e))}),td(tg(n),"renderHeader",function(e){switch(!0){case void 0!==n.props.renderCustomHeader:return n.renderCustomHeader(e);case n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker:return n.renderYearHeader(e);default:return n.renderDefaultHeader(e)}}),td(tg(n),"renderMonths",function(){var e;if(!n.props.showTimeSelectOnly&&!n.props.showYearPicker){for(var t=[],r=n.props.showPreviousMonths?n.props.monthsShown-1:0,o=eD.default(n.state.date,r),a=null!==(e=n.props.monthSelectedIn)&&void 0!==e?e:r,i=0;i0;t.push(ef.default.createElement("div",{key:s,ref:function(e){n.monthContainer=e},className:"react-datepicker__month-container"},n.renderHeader({monthDate:c,i:i}),ef.default.createElement(rw,{chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,ariaLabelPrefix:n.props.monthAriaLabelPrefix,onChange:n.changeMonthYear,day:c,dayClassName:n.props.dayClassName,calendarStartDay:n.props.calendarStartDay,monthClassName:n.props.monthClassName,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,onWeekSelect:n.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.state.selectingDate,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,fixedHeight:n.props.fixedHeight,filterDate:n.props.filterDate,preSelection:n.props.preSelection,setPreSelection:n.props.setPreSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showWeekNumbers:n.props.showWeekNumbers,startDate:n.props.startDate,endDate:n.props.endDate,peekNextMonth:n.props.peekNextMonth,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,isInputFocused:n.props.isInputFocused,containerRef:n.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:f})))}return t}}),td(tg(n),"renderYears",function(){if(!n.props.showTimeSelectOnly)return n.props.showYearPicker?ef.default.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader(),ef.default.createElement(rO,th({onDayClick:n.handleDayClick,selectingDate:n.state.selectingDate,clearSelectingDate:n.clearSelectingDate,date:n.state.date},n.props,{onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave}))):void 0}),td(tg(n),"renderTimeSection",function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return ef.default.createElement(rx,{selected:n.props.selected,openToDate:n.props.openToDate,onChange:n.props.onTimeChange,timeClassName:n.props.timeClassName,format:n.props.timeFormat,includeTimes:n.props.includeTimes,intervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,todayButton:n.props.todayButton,showMonthDropdown:n.props.showMonthDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,monthRef:n.state.monthContainer,injectTimes:n.props.injectTimes,locale:n.props.locale,handleOnKeyDown:n.props.handleOnKeyDown,showTimeSelectOnly:n.props.showTimeSelectOnly})}),td(tg(n),"renderInputTimeSection",function(){var e=new Date(n.props.selected),t=tE(e)&&Boolean(n.props.selected)?"".concat(rt(e.getHours()),":").concat(rt(e.getMinutes())):"";if(n.props.showTimeInput)return ef.default.createElement(rk,{date:e,timeString:t,timeInputLabel:n.props.timeInputLabel,onChange:n.props.onTimeChange,customTimeInput:n.props.customTimeInput})}),td(tg(n),"renderAriaLiveRegion",function(){var e,t=rr(n.state.date,n.props.yearItemNumber),r=t.startPeriod,o=t.endPeriod;return e=n.props.showYearPicker?"".concat(r," - ").concat(o):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?eR.default(n.state.date):"".concat(tz(eN.default(n.state.date),n.props.locale)," ").concat(eR.default(n.state.date)),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&e)}),td(tg(n),"renderChildren",function(){if(n.props.children)return ef.default.createElement("div",{className:"react-datepicker__children-container"},n.props.children)}),n.containerRef=ef.default.createRef(),n.state={date:n.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},n}return tp(r,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||tF(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!tF(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var r=!tY(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return r&&t.handleCustomMonthChange(t.state.date)})}}},{key:"render",value:function(){var e=this.props.container||rS;return ef.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},ef.default.createElement(e,{className:ep.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),r}(ef.default.Component),r_=function(e){var t=e.icon,r=e.className,n=void 0===r?"":r,o="react-datepicker__calendar-icon";return ef.default.isValidElement(t)?ef.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(n)}):"string"==typeof t?ef.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(n),"aria-hidden":"true"}):ef.default.createElement("svg",{className:"".concat(o," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},ef.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},rE=function(e){ty(r,e);var t=tb(r);function r(e){var n;return tl(this,r),(n=t.call(this,e)).el=document.createElement("div"),n}return tp(r,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ta.default.createPortal(this.props.children,this.el)}}]),r}(ef.default.Component),rP=function(e){return!e.disabled&&-1!==e.tabIndex},rM=function(e){ty(r,e);var t=tb(r);function r(e){var n;return tl(this,r),td(tg(n=t.call(this,e)),"getTabChildren",function(){return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(rP)}),td(tg(n),"handleFocusStart",function(){var e=n.getTabChildren();e&&e.length>1&&e[e.length-1].focus()}),td(tg(n),"handleFocusEnd",function(){var e=n.getTabChildren();e&&e.length>1&&e[0].focus()}),n.tabLoopRef=ef.default.createRef(),n}return tp(r,[{key:"render",value:function(){return this.props.enableTabLoop?ef.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ef.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ef.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),r}(ef.default.Component),rT=function(e){ty(r,e);var t=tb(r);function r(){return tl(this,r),t.apply(this,arguments)}return tp(r,[{key:"render",value:function(){var e,t=this.props,r=t.className,n=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,i=t.popperModifiers,u=t.popperPlacement,c=t.popperProps,s=t.targetComponent,l=t.enableTabLoop,f=t.popperOnKeyDown,p=t.portalId,d=t.portalHost;if(!o){var h=ep.default("react-datepicker-popper",r);e=ef.default.createElement(ec.Popper,th({modifiers:i,placement:u},c),function(e){var t=e.ref,r=e.style,n=e.placement,o=e.arrowProps;return ef.default.createElement(rM,{enableTabLoop:l},ef.default.createElement("div",{ref:t,style:r,className:h,"data-placement":n,onKeyDown:f},ef.default.cloneElement(a,{arrowProps:o})))})}this.props.popperContainer&&(e=ef.default.createElement(this.props.popperContainer,{},e)),p&&!o&&(e=ef.default.createElement(rE,{portalId:p,portalHost:d},e));var y=ep.default("react-datepicker-wrapper",n);return ef.default.createElement(ec.Manager,{className:"react-datepicker-manager"},ef.default.createElement(ec.Reference,null,function(e){var t=e.ref;return ef.default.createElement("div",{ref:t,className:y},s)}),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),r}(ef.default.Component),rC="react-datepicker-ignore-onclickoutside",rA=to.default(rj),rN="Date input not valid.",rI=function(e){ty(r,e);var t=tb(r);function r(e){var n;return tl(this,r),td(tg(n=t.call(this,e)),"getPreSelection",function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:t_()}),td(tg(n),"modifyHolidays",function(){var e;return null===(e=n.props.holidays)||void 0===e?void 0:e.reduce(function(e,t){var r=new Date(t.date);return eh.default(r)?[].concat(tw(e),[tc(tc({},t),{},{date:r})]):e},[])}),td(tg(n),"calcInitialState",function(){var e,t=n.getPreSelection(),r=t9(n.props),o=t7(n.props),a=r&&e7.default(t,eV.default(r))?r:o&&e9.default(t,e0.default(o))?o:t;return{open:n.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=n.props.selectsRange?n.props.startDate:n.props.selected)&&void 0!==e?e:a,highlightDates:re(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),td(tg(n),"clearPreventFocusTimeout",function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)}),td(tg(n),"setFocus",function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})}),td(tg(n),"setBlur",function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()}),td(tg(n),"setOpen",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.setState({open:e,preSelection:e&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:rL},function(){e||n.setState(function(e){return{focused:!!t&&e.focused}},function(){t||n.setBlur(),n.setState({inputValue:null})})})}),td(tg(n),"inputOk",function(){return ed.default(n.state.preSelection)}),td(tg(n),"isCalendarOpen",function(){return void 0===n.props.open?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open}),td(tg(n),"handleFocus",function(e){n.state.preventFocus||(n.props.onFocus(e),n.props.preventOpenOnFocus||n.props.readOnly||n.setOpen(!0)),n.setState({focused:!0})}),td(tg(n),"sendFocusBackToInput",function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})}),td(tg(n),"cancelFocusInput",function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=null}),td(tg(n),"deferFocusInput",function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)}),td(tg(n),"handleDropdownFocus",function(){n.cancelFocusInput()}),td(tg(n),"handleBlur",function(e){(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&n.props.onBlur(e),n.setState({focused:!1})}),td(tg(n),"handleCalendarClickOutside",function(e){n.props.inline||n.setOpen(!1),n.props.onClickOutside(e),n.props.withPortal&&e.preventDefault()}),td(tg(n),"handleChange",function(){for(var e=arguments.length,t=Array(e),r=0;r0&&(l=tr.default(a,i.slice(0,a.length),new Date)),tE(l)||(l=new Date(a))),tE(l)&&p?l:null));n.props.showTimeSelectOnly&&n.props.selected&&d&&!tF(d,n.props.selected)&&(d=ti.default(n.props.selected,{hours:eM.default(d),minutes:eP.default(d),seconds:eE.default(d)})),!d&&o.target.value||(n.props.showWeekPicker&&(d=tC(d,n.props.locale,n.props.calendarStartDay)),n.setSelected(d,o,!0))}}),td(tg(n),"handleSelect",function(e,t,r){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(t),n.props.showWeekPicker&&(e=tC(e,n.props.locale,n.props.calendarStartDay)),n.setSelected(e,t,!1,r),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(e);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var o=n.props,a=o.startDate,i=o.endDate;!a||i||e7.default(e,a)||n.setOpen(!1)}}),td(tg(n),"setSelected",function(e,t,r,o){var a=e;if(n.props.showYearPicker){if(null!==a&&tQ(eR.default(a),n.props))return}else if(n.props.showMonthYearPicker){if(null!==a&&tV(a,n.props))return}else if(null!==a&&tq(a,n.props))return;var i=n.props,u=i.onChange,c=i.selectsRange,s=i.startDate,l=i.endDate;(!tU(n.props.selected,a)||n.props.allowSameDay||c)&&((null!==a&&(!n.props.selected||r&&(n.props.showTimeSelect||n.props.showTimeSelectOnly||n.props.showTimeInput)||(a=tT(a,{hour:eM.default(n.props.selected),minute:eP.default(n.props.selected),second:eE.default(n.props.selected)})),n.props.inline||n.setState({preSelection:a}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:o})),c)?(s||l?s&&!l&&u(e7.default(a,s)?[a,null]:[s,a],t):u([a,null],t),s&&l&&u([a,null],t)):u(a,t)),r||(n.props.onSelect(a,t),n.setState({inputValue:null}))}),td(tg(n),"setPreSelection",function(e){var t=void 0!==n.props.minDate,r=void 0!==n.props.maxDate,o=!0;if(e){n.props.showWeekPicker&&(e=tC(e,n.props.locale,n.props.calendarStartDay));var a=eV.default(e);if(t&&r)o=tZ(e,n.props.minDate,n.props.maxDate);else if(t){var i=eV.default(n.props.minDate);o=e9.default(e,i)||tU(a,i)}else if(r){var u=e0.default(n.props.maxDate);o=e7.default(e,u)||tU(a,u)}}o&&n.setState({preSelection:e})}),td(tg(n),"handleTimeChange",function(e){var t=n.props.selected?n.props.selected:n.getPreSelection(),r=n.props.selected?e:tT(t,{hour:eM.default(e),minute:eP.default(e)});n.setState({preSelection:r}),n.props.onChange(r),n.props.shouldCloseOnSelect&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}),td(tg(n),"onInputClick",function(){n.props.disabled||n.props.readOnly||n.setOpen(!0),n.props.onInputClick()}),td(tg(n),"onInputKeyDown",function(e){n.props.onKeyDown(e);var t=e.key;if(n.state.open||n.props.inline||n.props.preventOpenOnFocus){if(n.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var r=n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=n.calendar.componentNode&&n.calendar.componentNode.querySelector(r);return void(o&&o.focus({preventScroll:!0}))}var a=t_(n.state.preSelection);"Enter"===t?(e.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===rL?(n.handleSelect(a,e),n.props.shouldCloseOnSelect||n.setPreSelection(a)):n.setOpen(!1)):"Escape"===t?(e.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):"Tab"===t&&n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:rN})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||n.onInputClick()}),td(tg(n),"onPortalKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))}),td(tg(n),"onDayKeyDown",function(e){n.props.onKeyDown(e);var t,r=e.key,o=t_(n.state.preSelection);if("Enter"===r)e.preventDefault(),n.handleSelect(o,e),n.props.shouldCloseOnSelect||n.setPreSelection(o);else if("Escape"===r)e.preventDefault(),n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:rN});else if(!n.props.disabledKeyboardNavigation){switch(r){case"ArrowLeft":t=n.props.showWeekPicker?eS.default(o,1):ek.default(o,1);break;case"ArrowRight":t=n.props.showWeekPicker?eb.default(o,1):eg.default(o,1);break;case"ArrowUp":t=eS.default(o,1);break;case"ArrowDown":t=eb.default(o,1);break;case"PageUp":t=eD.default(o,1);break;case"PageDown":t=ew.default(o,1);break;case"Home":t=e_.default(o,1);break;case"End":t=eO.default(o,1);break;default:t=null}if(!t)return void(n.props.onInputError&&n.props.onInputError({code:1,msg:rN}));if(e.preventDefault(),n.setState({lastPreSelectChange:rL}),n.props.adjustDateOnChange&&n.setSelected(t),n.setPreSelection(t),n.props.inline){var a=eN.default(o),i=eN.default(t),u=eR.default(o),c=eR.default(t);a!==i||u!==c?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}}),td(tg(n),"onPopperKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),n.sendFocusBackToInput())}),td(tg(n),"onClearClick",function(e){e&&e.preventDefault&&e.preventDefault(),n.sendFocusBackToInput(),n.props.selectsRange?n.props.onChange([null,null],e):n.props.onChange(null,e),n.setState({inputValue:null})}),td(tg(n),"clear",function(){n.onClearClick()}),td(tg(n),"onScroll",function(e){"boolean"==typeof n.props.closeOnScroll&&n.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||n.setOpen(!1):"function"==typeof n.props.closeOnScroll&&n.props.closeOnScroll(e)&&n.setOpen(!1)}),td(tg(n),"renderCalendar",function(){return n.props.inline||n.isCalendarOpen()?ef.default.createElement(rA,{ref:function(e){n.calendar=e},locale:n.props.locale,calendarStartDay:n.props.calendarStartDay,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,monthAriaLabelPrefix:n.props.monthAriaLabelPrefix,adjustDateOnChange:n.props.adjustDateOnChange,setOpen:n.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,dateFormat:n.props.dateFormatCalendar,useWeekdaysShort:n.props.useWeekdaysShort,formatWeekDay:n.props.formatWeekDay,dropdownMode:n.props.dropdownMode,selected:n.props.selected,preSelection:n.state.preSelection,onSelect:n.handleSelect,onWeekSelect:n.props.onWeekSelect,openToDate:n.props.openToDate,minDate:n.props.minDate,maxDate:n.props.maxDate,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,startDate:n.props.startDate,endDate:n.props.endDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,filterDate:n.props.filterDate,onClickOutside:n.handleCalendarClickOutside,formatWeekNumber:n.props.formatWeekNumber,highlightDates:n.state.highlightDates,holidays:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",r=new Map;return e.forEach(function(e){var n=e.date,o=e.holidayName;if(ed.default(n)){var a=tP(n,"MM.dd.yyyy"),i=r.get(a)||{};if(!("className"in i)||i.className!==t||(u=i.holidayNames,c=[o],u.length!==c.length||!u.every(function(e,t){return e===c[t]}))){i.className=t;var u,c,s=i.holidayNames;i.holidayNames=s?[].concat(tw(s),[o]):[o],r.set(a,i)}}}),r}(n.modifyHolidays()),includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,includeTimes:n.props.includeTimes,injectTimes:n.props.injectTimes,inline:n.props.inline,shouldFocusDayInline:n.state.shouldFocusDayInline,peekNextMonth:n.props.peekNextMonth,showMonthDropdown:n.props.showMonthDropdown,showPreviousMonths:n.props.showPreviousMonths,useShortMonthInDropdown:n.props.useShortMonthInDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showWeekNumbers:n.props.showWeekNumbers,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,forceShowMonthNavigation:n.props.forceShowMonthNavigation,showDisabledMonthNavigation:n.props.showDisabledMonthNavigation,scrollableYearDropdown:n.props.scrollableYearDropdown,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,todayButton:n.props.todayButton,weekLabel:n.props.weekLabel,outsideClickIgnoreClass:rC,fixedHeight:n.props.fixedHeight,monthsShown:n.props.monthsShown,monthSelectedIn:n.state.monthSelectedIn,onDropdownFocus:n.handleDropdownFocus,onMonthChange:n.props.onMonthChange,onYearChange:n.props.onYearChange,dayClassName:n.props.dayClassName,weekDayClassName:n.props.weekDayClassName,monthClassName:n.props.monthClassName,timeClassName:n.props.timeClassName,showDateSelect:n.props.showDateSelect,showTimeSelect:n.props.showTimeSelect,showTimeSelectOnly:n.props.showTimeSelectOnly,onTimeChange:n.handleTimeChange,timeFormat:n.props.timeFormat,timeIntervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,className:n.props.calendarClassName,container:n.props.calendarContainer,yearItemNumber:n.props.yearItemNumber,yearDropdownItemNumber:n.props.yearDropdownItemNumber,previousMonthAriaLabel:n.props.previousMonthAriaLabel,previousMonthButtonLabel:n.props.previousMonthButtonLabel,nextMonthAriaLabel:n.props.nextMonthAriaLabel,nextMonthButtonLabel:n.props.nextMonthButtonLabel,previousYearAriaLabel:n.props.previousYearAriaLabel,previousYearButtonLabel:n.props.previousYearButtonLabel,nextYearAriaLabel:n.props.nextYearAriaLabel,nextYearButtonLabel:n.props.nextYearButtonLabel,timeInputLabel:n.props.timeInputLabel,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderCustomHeader:n.props.renderCustomHeader,popperProps:n.props.popperProps,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,onDayMouseEnter:n.props.onDayMouseEnter,onMonthMouseLeave:n.props.onMonthMouseLeave,onYearMouseEnter:n.props.onYearMouseEnter,onYearMouseLeave:n.props.onYearMouseLeave,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showTimeInput:n.props.showTimeInput,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,showPopperArrow:n.props.showPopperArrow,excludeScrollbar:n.props.excludeScrollbar,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,isInputFocused:n.state.focused,customTimeInput:n.props.customTimeInput,setPreSelection:n.setPreSelection},n.props.children):null}),td(tg(n),"renderAriaLiveRegion",function(){var e,t=n.props,r=t.dateFormat,o=t.locale,a=n.props.showTimeInput||n.props.showTimeSelect?"PPPPp":"PPPP";return e=n.props.selectsRange?"Selected start date: ".concat(tM(n.props.startDate,{dateFormat:a,locale:o}),". ").concat(n.props.endDate?"End date: "+tM(n.props.endDate,{dateFormat:a,locale:o}):""):n.props.showTimeSelectOnly?"Selected time: ".concat(tM(n.props.selected,{dateFormat:r,locale:o})):n.props.showYearPicker?"Selected year: ".concat(tM(n.props.selected,{dateFormat:"yyyy",locale:o})):n.props.showMonthYearPicker?"Selected month: ".concat(tM(n.props.selected,{dateFormat:"MMMM yyyy",locale:o})):n.props.showQuarterYearPicker?"Selected quarter: ".concat(tM(n.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(tM(n.props.selected,{dateFormat:a,locale:o})),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)}),td(tg(n),"renderDateInput",function(){var e,t=ep.default(n.props.className,td({},rC,n.state.open)),r=n.props.customInput||ef.default.createElement("input",{type:"text"}),o=n.props.customInputRef||"ref",a="string"==typeof n.props.value?n.props.value:"string"==typeof n.state.inputValue?n.state.inputValue:n.props.selectsRange?function(e,t,r){if(!e)return"";var n=tM(e,r),o=t?tM(t,r):"";return"".concat(n," - ").concat(o)}(n.props.startDate,n.props.endDate,n.props):tM(n.props.selected,n.props);return ef.default.cloneElement(r,(td(td(td(td(td(td(td(td(td(td(e={},o,function(e){n.input=e}),"value",a),"onBlur",n.handleBlur),"onChange",n.handleChange),"onClick",n.onInputClick),"onFocus",n.handleFocus),"onKeyDown",n.onInputKeyDown),"id",n.props.id),"name",n.props.name),"form",n.props.form),td(td(td(td(td(td(td(td(td(td(e,"autoFocus",n.props.autoFocus),"placeholder",n.props.placeholderText),"disabled",n.props.disabled),"autoComplete",n.props.autoComplete),"className",ep.default(r.props.className,t)),"title",n.props.title),"readOnly",n.props.readOnly),"required",n.props.required),"tabIndex",n.props.tabIndex),"aria-describedby",n.props.ariaDescribedBy),td(td(td(e,"aria-invalid",n.props.ariaInvalid),"aria-labelledby",n.props.ariaLabelledBy),"aria-required",n.props.ariaRequired)))}),td(tg(n),"renderClearButton",function(){var e=n.props,t=e.isClearable,r=e.disabled,o=e.selected,a=e.startDate,i=e.endDate,u=e.clearButtonTitle,c=e.clearButtonClassName,s=e.ariaLabelClose;return t&&(null!=o||null!=a||null!=i)?ef.default.createElement("button",{type:"button",className:ep.default("react-datepicker__close-icon",void 0===c?"":c,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":void 0===s?"Close":s,onClick:n.onClearClick,title:u,tabIndex:-1}):null}),n.state=n.calcInitialState(),n.preventFocusTimeout=null,n}return tp(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var r,n;e.inline&&(r=e.selected,n=this.props.selected,r&&n?eN.default(r)!==eN.default(n)||eR.default(r)!==eR.default(n):r!==n)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:re(this.props.highlightDates)}),t.focused||tU(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,r=e.icon,n=e.calendarIconClassname;return ef.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&ef.default.createElement(r_,{icon:r,className:n}),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ef.default.createElement(rM,{enableTabLoop:this.props.enableTabLoop},ef.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=ef.default.createElement(rE,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ef.default.createElement("div",null,this.renderInputContainer(),t)}return ef.default.createElement(rT,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),r}(ef.default.Component),rR="input",rL="navigate";e.CalendarContainer=rS,e.default=rI,e.getDefaultLocale=tW,e.registerLocale=function(e,t){var r="undefined"!=typeof window?window:globalThis;r.__localeData__||(r.__localeData__={}),r.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,r(67294),r(45697),r(94184),r(71381),r(12274),r(42298),r(58545),r(78343),r(77349),r(63500),r(11640),r(8791),r(21593),r(7069),r(77982),r(54559),r(58793),r(59319),r(77881),r(39159),r(85817),r(20466),r(55855),r(90259),r(78966),r(56605),r(95570),r(28789),r(39880),r(4543),r(37042),r(16218),r(11503),r(44749),r(37950),r(99890),r(92300),r(84129),r(91857),r(69119),r(584),r(43703),r(94431),r(38148),r(83894),r(67090),r(4135),r(10876),r(96843),r(3151),r(49160),r(60792),r(86117),r(42699),r(313),r(24257),r(19013),r(9068),r(23855),r(58949),r(73935),r(36829),r(92311))},69590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,i){if(a===i)return!0;if(a&&i&&"object"==typeof a&&"object"==typeof i){var u,c,s,l;if(a.constructor!==i.constructor)return!1;if(Array.isArray(a)){if((u=a.length)!=i.length)return!1;for(c=u;0!=c--;)if(!e(a[c],i[c]))return!1;return!0}if(r&&a instanceof Map&&i instanceof Map){if(a.size!==i.size)return!1;for(l=a.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;for(l=a.entries();!(c=l.next()).done;)if(!e(c.value[1],i.get(c.value[0])))return!1;return!0}if(n&&a instanceof Set&&i instanceof Set){if(a.size!==i.size)return!1;for(l=a.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(i)){if((u=a.length)!=i.length)return!1;for(c=u;0!=c--;)if(a[c]!==i[c])return!1;return!0}if(a.constructor===RegExp)return a.source===i.source&&a.flags===i.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof i.valueOf)return a.valueOf()===i.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof i.toString)return a.toString()===i.toString();if((u=(s=Object.keys(a)).length)!==Object.keys(i).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(i,s[c]))return!1;if(t&&a instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!a.$$typeof)&&!e(a[s[c]],i[s[c]]))return!1;return!0}return a!=a&&i!=i}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},58949:function(e,t,r){"use strict";r.r(t),r.d(t,{IGNORE_CLASS_NAME:function(){return h}});var n,o,a=r(67294),i=r(73935);function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t),e}},l=(void 0===n&&(n=0),function(){return++n}),f={},p={},d=["touchstart","touchmove"],h="ignore-react-onclickoutside";function y(e,t){var r={};return -1!==d.indexOf(t)&&o&&(r.passive=!e.props.preventDefault),r}t.default=function(e,t){var r,n,d=e.displayName||e.name||"Component";return n=r=function(r){function n(e){var n;return(n=r.call(this,e)||this).__outsideClickHandler=function(e){if("function"==typeof n.__clickOutsideHandlerProp){n.__clickOutsideHandlerProp(e);return}var t=n.getInstance();if("function"==typeof t.props.handleClickOutside){t.props.handleClickOutside(e);return}if("function"==typeof t.handleClickOutside){t.handleClickOutside(e);return}throw Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.")},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[n._uid]){void 0===o&&(o=s()),p[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),f[n._uid]=function(e){null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),!(n.props.excludeScrollbar&&(document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)))&&function(e,t,r){if(e===t)return!0;for(;e.parentNode||e.host;){var n;if(e.parentNode&&((n=e)===t||(n.correspondingElement?n.correspondingElement.classList.contains(r):n.classList.contains(r))))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e)},e.forEach(function(e){document.addEventListener(e,f[n._uid],y(c(n),e))})}},n.disableOnClickOutside=function(){delete p[n._uid];var e=f[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,y(c(n),t))}),delete f[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=l(),n}(h=n).prototype=Object.create(r.prototype),h.prototype.constructor=h,u(h,r);var h,v=n.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw Error("WrappedComponent: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var r=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?r.ref=this.getRef:r.wrappedRef=this.getRef,r.disableOnClickOutside=this.disableOnClickOutside,r.enableOnClickOutside=this.enableOnClickOutside,(0,a.createElement)(e,r)},n}(a.Component),r.displayName="OnClickOutside("+d+")",r.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},r.getClass=function(){return e.getClass?e.getClass():e},n}},36829:function(e,t,r){"use strict";r.r(t),r.d(t,{Manager:function(){return f},Popper:function(){return e_},Reference:function(){return eM},usePopper:function(){return ek}});var n,o,a,i,u,c=r(67294),s=c.createContext(),l=c.createContext();function f(e){var t=e.children,r=c.useState(null),n=r[0],o=r[1],a=c.useRef(!1);c.useEffect(function(){return function(){a.current=!0}},[]);var i=c.useCallback(function(e){a.current||o(e)},[]);return c.createElement(s.Provider,{value:n},c.createElement(l.Provider,{value:i},t))}var p=function(e){return Array.isArray(e)?e[0]:e},d=function(e){if("function"==typeof e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n0&&S(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&S(n.height)/e.offsetHeight||1);var i=(b(e)?g(e):window).visualViewport,u=!j()&&r,c=(n.left+(u&&i?i.offsetLeft:0))/o,s=(n.top+(u&&i?i.offsetTop:0))/a,l=n.width/o,f=n.height/a;return{width:l,height:f,top:s,right:c+l,bottom:s+f,left:c,x:c,y:s}}function E(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function P(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return _(M(e)).left+E(e).scrollLeft}function C(e){return g(e).getComputedStyle(e)}function A(e){var t=C(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function N(e){var t=_(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function I(e){return"html"===P(e)?e:e.assignedSlot||e.parentNode||(x(e)?e.host:null)||M(e)}function R(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(P(t))>=0?t.ownerDocument.body:w(t)&&A(t)?t:e(I(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=g(n),i=o?[a].concat(a.visualViewport||[],A(n)?n:[]):n,u=t.concat(i);return o?u:u.concat(R(I(i)))}function L(e){return w(e)&&"fixed"!==C(e).position?e.offsetParent:null}function Y(e){for(var t=g(e),r=L(e);r&&["table","td","th"].indexOf(P(r))>=0&&"static"===C(r).position;)r=L(r);return r&&("html"===P(r)||"body"===P(r)&&"static"===C(r).position)?t:r||function(e){var t=/firefox/i.test(D());if(/Trident/i.test(D())&&w(e)&&"fixed"===C(e).position)return null;var r=I(e);for(x(r)&&(r=r.host);w(r)&&0>["html","body"].indexOf(P(r));){var n=C(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var B="bottom",F="right",U="left",Z="auto",W=["top",B,F,U],H="start",z="viewport",$="popper",q=W.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),K=[].concat(W,[Z]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],G={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=Array(e),r=0;r=0?"x":"y"}function er(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?J(o):null,i=o?ee(o):null,u=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(a){case"top":t={x:u,y:r.y-n.height};break;case B:t={x:u,y:r.y+r.height};break;case F:t={x:r.x+r.width,y:c};break;case U:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var s=a?et(a):null;if(null!=s){var l="y"===s?"height":"width";switch(i){case H:t[s]=t[s]-(r[l]/2-n[l]/2);break;case"end":t[s]=t[s]+(r[l]/2-n[l]/2)}}return t}var en={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eo(e){var t,r,n,o,a,i,u,c=e.popper,s=e.popperRect,l=e.placement,f=e.variation,p=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,m=e.isFixed,b=p.x,w=void 0===b?0:b,x=p.y,O=void 0===x?0:x,k="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=k.x,O=k.y;var D=p.hasOwnProperty("x"),j=p.hasOwnProperty("y"),_=U,E="top",P=window;if(y){var T=Y(c),A="clientHeight",N="clientWidth";T===g(c)&&"static"!==C(T=M(c)).position&&"absolute"===d&&(A="scrollHeight",N="scrollWidth"),("top"===l||(l===U||l===F)&&"end"===f)&&(E=B,O-=(m&&T===P&&P.visualViewport?P.visualViewport.height:T[A])-s.height,O*=h?1:-1),(l===U||("top"===l||l===B)&&"end"===f)&&(_=F,w-=(m&&T===P&&P.visualViewport?P.visualViewport.width:T[N])-s.width,w*=h?1:-1)}var I=Object.assign({position:d},y&&en),R=!0===v?(t={x:w,y:O},r=g(c),n=t.x,o=t.y,{x:S(n*(a=r.devicePixelRatio||1))/a||0,y:S(o*a)/a||0}):{x:w,y:O};return(w=R.x,O=R.y,h)?Object.assign({},I,((u={})[E]=j?"0":"",u[_]=D?"0":"",u.transform=1>=(P.devicePixelRatio||1)?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",u)):Object.assign({},I,((i={})[E]=j?O+"px":"",i[_]=D?w+"px":"",i.transform="",i))}var ea={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return ea[e]})}var eu={start:"end",end:"start"};function ec(e){return e.replace(/start|end/g,function(e){return eu[e]})}function es(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&x(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function el(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ef(e,t,r){var n,o,a,i,u,c,s,l,f,p;return t===z?el(function(e,t){var r=g(e),n=M(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,u=0,c=0;if(o){a=o.width,i=o.height;var s=j();(s||!s&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:u+T(e),y:c}}(e,r)):b(t)?((n=_(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):el((o=M(e),i=M(o),u=E(o),c=null==(a=o.ownerDocument)?void 0:a.body,s=O(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=O(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),f=-u.scrollLeft+T(o),p=-u.scrollTop,"rtl"===C(c||i).direction&&(f+=O(i.clientWidth,c?c.clientWidth:0)-s),{width:s,height:l,x:f,y:p}))}function ep(){return{top:0,right:0,bottom:0,left:0}}function ed(e){return Object.assign({},ep(),e)}function eh(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ey(e,t){void 0===t&&(t={});var r,n,o,a,i,u,c,s=t,l=s.placement,f=void 0===l?e.placement:l,p=s.strategy,d=void 0===p?e.strategy:p,h=s.boundary,y=s.rootBoundary,v=s.elementContext,m=void 0===v?$:v,g=s.altBoundary,x=s.padding,S=void 0===x?0:x,D=ed("number"!=typeof S?S:eh(S,W)),j=e.rects.popper,E=e.elements[void 0!==g&&g?m===$?"reference":$:m],T=(r=b(E)?E:E.contextElement||M(e.elements.popper),u=(i=[].concat("clippingParents"===(n=void 0===h?"clippingParents":h)?(o=R(I(r)),b(a=["absolute","fixed"].indexOf(C(r).position)>=0&&w(r)?Y(r):r)?o.filter(function(e){return b(e)&&es(e,a)&&"body"!==P(e)}):[]):[].concat(n),[void 0===y?z:y]))[0],(c=i.reduce(function(e,t){var n=ef(r,t,d);return e.top=O(n.top,e.top),e.right=k(n.right,e.right),e.bottom=k(n.bottom,e.bottom),e.left=O(n.left,e.left),e},ef(r,u,d))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),A=_(e.elements.reference),N=er({reference:A,element:j,strategy:"absolute",placement:f}),L=el(Object.assign({},j,N)),U=m===$?L:A,Z={top:T.top-U.top+D.top,bottom:U.bottom-T.bottom+D.bottom,left:T.left-U.left+D.left,right:U.right-T.right+D.right},H=e.modifiersData.offset;if(m===$&&H){var q=H[f];Object.keys(Z).forEach(function(e){var t=[F,B].indexOf(e)>=0?1:-1,r=["top",B].indexOf(e)>=0?"y":"x";Z[e]+=q[r]*t})}return Z}function ev(e,t,r){return O(e,k(t,r))}function em(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eg(e){return["top",F,B,U].some(function(t){return e[t]>=0})}var eb=(a=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,u=void 0===i||i,c=g(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach(function(e){e.addEventListener("scroll",r.update,Q)}),u&&c.addEventListener("resize",r.update,Q),function(){a&&s.forEach(function(e){e.removeEventListener("scroll",r.update,Q)}),u&&c.removeEventListener("resize",r.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=er({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=r.adaptive,a=r.roundOffsets,i=void 0===a||a,u={placement:J(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,eo(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,eo(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];w(o)&&P(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});w(n)&&P(n)&&(Object.assign(n.style,a),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=K.reduce(function(e,r){var n,o,i,u,c,s;return e[r]=(n=t.rects,i=[U,"top"].indexOf(o=J(r))>=0?-1:1,c=(u="function"==typeof a?a(Object.assign({},n,{placement:r})):a)[0],s=u[1],c=c||0,s=(s||0)*i,[U,F].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}),e},{}),u=i[t.placement],c=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,u=void 0===i||i,c=r.fallbackPlacements,s=r.padding,l=r.boundary,f=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,h=void 0===d||d,y=r.allowedAutoPlacements,v=t.options.placement,m=J(v),g=[v].concat(c||(m!==v&&h?function(e){if(J(e)===Z)return[];var t=ei(e);return[ec(e),t,ec(t)]}(v):[ei(v)])).reduce(function(e,r){var n,o,a,i,u,c,p,d,v,m,g,b;return e.concat(J(r)===Z?(o=(n={placement:r,boundary:l,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:y}).placement,a=n.boundary,i=n.rootBoundary,u=n.padding,c=n.flipVariations,d=void 0===(p=n.allowedAutoPlacements)?K:p,0===(g=(m=(v=ee(o))?c?q:q.filter(function(e){return ee(e)===v}):W).filter(function(e){return d.indexOf(e)>=0})).length&&(g=m),Object.keys(b=g.reduce(function(e,r){return e[r]=ey(t,{placement:r,boundary:a,rootBoundary:i,padding:u})[J(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),b=t.rects.reference,w=t.rects.popper,x=new Map,O=!0,k=g[0],S=0;S=0,P=E?"width":"height",M=ey(t,{placement:D,boundary:l,rootBoundary:f,altBoundary:p,padding:s}),T=E?_?F:U:_?B:"top";b[P]>w[P]&&(T=ei(T));var C=ei(T),A=[];if(a&&A.push(M[j]<=0),u&&A.push(M[T]<=0,M[C]<=0),A.every(function(e){return e})){k=D,O=!1;break}x.set(D,A)}if(O)for(var N=h?3:1,I=function(e){var t=g.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},R=N;R>0&&"break"!==I(R);R--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=r.altAxis,i=r.boundary,u=r.rootBoundary,c=r.altBoundary,s=r.padding,l=r.tether,f=void 0===l||l,p=r.tetherOffset,d=void 0===p?0:p,h=ey(t,{boundary:i,rootBoundary:u,padding:s,altBoundary:c}),y=J(t.placement),v=ee(t.placement),m=!v,g=et(y),b="x"===g?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,D="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,j="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(void 0===o||o){var P,M="y"===g?"top":U,T="y"===g?B:F,C="y"===g?"height":"width",A=w[g],I=A+h[M],R=A-h[T],L=f?-S[C]/2:0,Z=v===H?x[C]:S[C],W=v===H?-S[C]:-x[C],z=t.elements.arrow,$=f&&z?N(z):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ep(),K=q[M],V=q[T],G=ev(0,x[C],$[C]),X=m?x[C]/2-L-G-K-j.mainAxis:Z-G-K-j.mainAxis,Q=m?-x[C]/2+L+G+V+j.mainAxis:W+G+V+j.mainAxis,er=t.elements.arrow&&Y(t.elements.arrow),en=er?"y"===g?er.clientTop||0:er.clientLeft||0:0,eo=null!=(P=null==_?void 0:_[g])?P:0,ea=ev(f?k(I,A+X-eo-en):I,A,f?O(R,A+Q-eo):R);w[g]=ea,E[g]=ea-A}if(void 0!==a&&a){var ei,eu,ec=w[b],es="y"===b?"height":"width",el=ec+h["x"===g?"top":U],ef=ec-h["x"===g?B:F],ed=-1!==["top",U].indexOf(y),eh=null!=(ei=null==_?void 0:_[b])?ei:0,em=ed?el:ec-x[es]-S[es]-eh+j.altAxis,eg=ed?ec+x[es]+S[es]-eh-j.altAxis:ef,eb=f&&ed?(eu=ev(em,ec,eg))>eg?eg:eu:ev(f?em:el,ec,f?eg:ef);w[b]=eb,E[b]=eb-ec}t.modifiersData[n]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,a=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,c=J(n.placement),s=et(c),l=[U,F].indexOf(c)>=0?"height":"width";if(i&&u){var f=ed("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eh(t,W)),p=N(i),d=n.rects.reference[l]+n.rects.reference[s]-u[s]-n.rects.popper[l],h=u[s]-n.rects.reference[s],y=Y(i),v=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,m=f["y"===s?"top":U],g=v-p[l]-f["y"===s?B:F],b=v/2-p[l]/2+(d/2-h/2),w=ev(m,b,g);n.modifiersData[o]=((r={})[s]=w,r.centerOffset=w-b,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&es(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ey(t,{elementContext:"reference"}),u=ey(t,{altBoundary:!0}),c=em(i,n),s=em(u,o,a),l=eg(c),f=eg(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,u=void 0===(i=n.defaultOptions)?G:i,function(e,t,r){void 0===r&&(r=u);var n,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],c=!1,s={state:o,setOptions:function(r){var n,c,f,p,d,h="function"==typeof r?r(o.options):r;l(),o.options=Object.assign({},u,o.options,h),o.scrollParents={reference:b(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var y=(c=Object.keys(n=[].concat(a,o.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,p=new Set,d=[],c.forEach(function(e){f.set(e.name,e)}),c.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var r=f.get(t);r&&e(r)}}),d.push(t)}(e)}),V.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=y.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var a=n({state:o,name:t,instance:s,options:void 0===r?{}:r});i.push(a||function(){})}}),s.update()},forceUpdate:function(){if(!c){var e,t,r,n,a,i,u,l,f,p,d,h,y=o.elements,v=y.reference,m=y.popper;if(X(v,m)){o.rects={reference:(t=Y(m),r="fixed"===o.options.strategy,n=w(t),l=w(t)&&(i=S((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=S(a.height)/t.offsetHeight||1,1!==i||1!==u),f=M(t),p=_(v,l,r),d={scrollLeft:0,scrollTop:0},h={x:0,y:0},(n||!n&&!r)&&(("body"!==P(t)||A(f))&&(d=(e=t)!==g(e)&&w(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),w(t)?(h=_(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):f&&(h.x=T(f))),{x:p.left+d.scrollLeft-h.x,y:p.top+d.scrollTop-h.y,width:p.width,height:p.height}),popper:N(m)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function g(e,t){return d(e.getTime(),t.getTime())}function b(e,t,r){if(e.size!==t.size)return!1;for(var n,o,a={},i=e.entries(),u=0;(n=i.next())&&!n.done;){for(var c=t.entries(),s=!1,l=0;(o=c.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];!s&&!a[l]&&(s=r.equals(p,y,u,l,e,t,r)&&r.equals(d,v,p,y,e,t,r))&&(a[l]=!0),l++}if(!s)return!1;u++}return!0}function w(e,t,r){var n,o=v(e),a=o.length;if(v(t).length!==a)return!1;for(;a-- >0;)if((n=o[a])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function x(e,t,r){var n,o,a,i=f(e),u=i.length;if(f(t).length!==u)return!1;for(;u-- >0;)if((n=i[u])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,n)||!r.equals(e[n],t[n],n,n,e,t,r)||(o=y(e,n),a=y(t,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function k(e,t){return e.source===t.source&&e.flags===t.flags}function S(e,t,r){if(e.size!==t.size)return!1;for(var n,o,a={},i=e.values();(n=i.next())&&!n.done;){for(var u=t.values(),c=!1,s=0;(o=u.next())&&!o.done;)!c&&!a[s]&&(c=r.equals(n.value,o.value,n.value,o.value,e,t,r))&&(a[s]=!0),s++;if(!c)return!1}return!0}function D(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var j=Array.isArray,_="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,E=Object.assign,P=Object.prototype.toString.call.bind(Object.prototype.toString),M=T();function T(e){void 0===e&&(e={});var t,r,n,o,a,i,u,c,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,v=(r=(t=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?x:m,areDatesEqual:g,areMapsEqual:n?s(b,x):b,areObjectsEqual:n?x:w,arePrimitiveWrappersEqual:O,areRegExpsEqual:k,areSetsEqual:n?s(S,x):S,areTypedArraysEqual:n?x:D};if(r&&(o=E({},o,r(o))),t){var a=l(o.areArraysEqual),i=l(o.areMapsEqual),u=l(o.areObjectsEqual),c=l(o.areSetsEqual);o=E({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:u,areSetsEqual:c})}return o}(e)).areArraysEqual,n=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,u=t.areRegExpsEqual,c=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var l=e.constructor;if(l!==t.constructor)return!1;if(l===Object)return a(e,t,s);if(j(e))return r(e,t,s);if(null!=_&&_(e))return f(e,t,s);if(l===Date)return n(e,t,s);if(l===RegExp)return u(e,t,s);if(l===Map)return o(e,t,s);if(l===Set)return c(e,t,s);var p=P(e);return"[object Date]"===p?n(e,t,s):"[object RegExp]"===p?u(e,t,s):"[object Map]"===p?o(e,t,s):"[object Set]"===p?c(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,s):"[object Arguments]"===p?a(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,s)}),M=d?d(v):function(e,t,r,n,o,a,i){return v(e,t,i)};return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,a=e.strict;if(n)return function(e,i){var u=n(),c=u.cache;return r(e,i,{cache:void 0===c?t?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:a})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return r(e,t,i)}}({circular:void 0!==p&&p,comparator:v,createState:h,equals:M,strict:void 0!==y&&y})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>t)e(o),r=-1;else{var a;a=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=Q(a,u),d=Q(i,c),h=(e=a,t=u,function(r){var n;return X([].concat(function(e){if(Array.isArray(e))return V(e)}(n=G(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||K(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var o,a=p(r)-t,i=h(r);if(1e-4>Math.abs(a-t)||i<1e-4)break;r=(o=r-a/i)>1?1:o<0?0:o}return d(r)};return y.isStepper=!1,y},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,a=e.dt,i=void 0===a?17:a,u=function(e,t,n){var a=n+(-(e-t)*r-n*o)*i/1e3,u=n*i/1e3+e;return 1e-4>Math.abs(u-t)&&1e-4>Math.abs(a)?[t,0]:[u,a]};return u.isStepper=!0,u.dt=i,u},et=function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?r[o-1]:n,p=s||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ey(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:a,easing:u}),a]);var d=$(p,a,u),h=eg(eg(eg({},f.style),c),{},{transition:d});return[].concat(ey(e),[h,a,l]).filter(Z)},[i,Math.max(void 0===u?0:u,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,r,n;this.manager=(t=function(){return null},r=!1,n=function e(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(e){if(Array.isArray(e))return e}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,t)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){C(e.bind(null,i),a);return}e(a),C(e.bind(null,i));return}"object"===A(n)&&t(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(e){r=!1,n(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,u=e.to,c=e.easing,s=e.onAnimationStart,l=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(e);return}if(f.length>1){this.runStepAnimation(e);return}var h=i?eb({},i,u):u,y=$(Object.keys(h),a,c);d.start([s,o,eg(eg({},h),{},{transition:y}),a,l])}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),a=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,eh)),i=n.Children.count(t),u=z(this.state.style);if("function"==typeof t)return t(u);if(!o||0===i||r<=0)return t;var c=function(e){var t=e.props,r=t.style,o=t.className;return(0,n.cloneElement)(e,eg(eg({},a),{},{style:eg(eg({},void 0===r?{}:r),u),className:o}))};return 1===i?c(n.Children.only(t)):n.createElement("div",null,n.Children.map(t,function(e){return c(e)}))}}],ew(i.prototype,r),o&&ew(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);ej.displayName="Animate",ej.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ej.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func};var e_=r(29469),eE=["children","appearOptions","enterOptions","leaveOptions"];function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(){return(eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(r)?r:0},eF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&eN(e,t)}(i,e);var t,r,o,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=eR(i);if(t){var n=eR(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===eP(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eI(e)}(this,e)});function i(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),eL(eI(e=a.call(this)),"handleEnter",function(t,r){var n=e.props,o=n.appearOptions,a=n.enterOptions;e.handleStyleActive(r?o:a)}),eL(eI(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(eC(eC({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,r=e.enterOptions,n=e.leaveOptions;return eB(t)+eB(r)+eB(n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,o=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,eE));return n.createElement(e_.Transition,eM({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return n.createElement(ej,e.state,n.Children.only(r))})}}],eA(i.prototype,r),o&&eA(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.Component);function eU(e){var t=e.component,r=e.children,o=e.appear,a=e.enter,i=e.leave;return n.createElement(e_.TransitionGroup,{component:t},n.Children.map(r,function(e,t){return n.createElement(eF,{appearOptions:o,enterOptions:a,leaveOptions:i,key:"child-".concat(t)},e)}))}eF.propTypes={appearOptions:a().object,enterOptions:a().object,leaveOptions:a().object,children:a().element},eU.propTypes={appear:a().object,enter:a().object,leave:a().object,children:a().oneOfType([a().array,a().element]),component:a().any},eU.defaultProps={component:"span"};var eZ=ej},88292:function(e,t,r){"use strict";var n=r(5631);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=n(r(85312));e.exports=t.default},85312:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},80294:function(e){"use strict";function t(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},58818:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0,function(e){if(!e||!e.__esModule){var t={};if(null!=e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}}t.default=e}}(r(45697));var n=u(r(88292)),o=u(r(80294)),a=u(r(67294)),i=u(r(32096));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,["children","in"]),i=n.default.Children.toArray(t),u=i[0],c=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,n.default.createElement(a.default,o,r?n.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(n.default.Component);u.propTypes={},t.default=u,e.exports=t.default},32096:function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}}return t.default=e,t}(r(45697)),o=u(r(67294)),a=u(r(73935)),i=r(46871);function u(e){return e&&e.__esModule?e:{default:e}}r(29806);var c="unmounted";t.UNMOUNTED=c;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var d=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,o,a=r.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=s,n.appearStatus=l):o=f:o=t.unmountOnExit||t.mountOnEnter?c:s,n.state={status:o},n.nextCallback=null,n}(r=t).prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e;var r,n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:s}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==l&&r!==f&&(t=l):(r===l||r===f)&&(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=a.default.findDOMNode(this);t===l?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},n.performEnter=function(e,t){var r=this,n=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;if(!t&&!n){this.safeSetState({status:f},function(){r.props.onEntered(e)});return}this.props.onEnter(e,o),this.safeSetState({status:l},function(){r.props.onEntering(e,o),r.onTransitionEnd(e,i,function(){r.safeSetState({status:f},function(){r.props.onEntered(e,o)})})})},n.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();if(!r){this.safeSetState({status:s},function(){t.props.onExited(e)});return}this.props.onExit(e),this.safeSetState({status:p},function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,function(){t.safeSetState({status:s},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;if(!e||n){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=o.default.Children.only(r);return o.default.cloneElement(a,n)},t}(o.default.Component);function h(){}d.contextTypes={transitionGroup:n.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var y=(0,i.polyfill)(d);t.default=y},57114:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(45697)),o=u(r(67294)),a=r(46871),i=r(4474);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,["component","childFactory"]),a=l(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===t)?a:o.default.createElement(t,n,a)},t}(o.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(f);t.default=p,e.exports=t.default},29469:function(e,t,r){"use strict";var n=u(r(58818)),o=u(r(17557)),a=u(r(57114)),i=u(r(32096));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:n.default}},4474:function(e,t,r){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=a,t.getInitialChildMapping=function(e,t){return o(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:i(r,"appear",e),enter:i(r,"enter",e),exit:i(r,"exit",e)})})},t.getNextChildMapping=function(e,t,r){var u=o(e.children),c=a(t,u);return Object.keys(c).forEach(function(o){var a=c[o];if((0,n.isValidElement)(a)){var s=o in t,l=o in u,f=t[o],p=(0,n.isValidElement)(f)&&!f.props.in;l&&(!s||p)?c[o]=(0,n.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:i(a,"exit",e),enter:i(a,"enter",e)}):l||!s||p?l&&s&&(0,n.isValidElement)(f)&&(c[o]=(0,n.cloneElement)(a,{onExited:r.bind(null,a),in:f.props.in,exit:i(a,"exit",e),enter:i(a,"enter",e)})):c[o]=(0,n.cloneElement)(a,{in:!1})}}),c};var n=r(67294);function o(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,n.isValidElement)(e)?t(e):e}),r}function a(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var u={};for(var c in t){if(o[c])for(n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var M=function(e){return Array.isArray(e.value)?g()(e.value):e.value};function T(e){var t=e.valueAccessor,r=void 0===t?M:t,o=P(e,k),a=o.data,i=o.dataKey,u=o.clockWise,c=o.id,f=o.textBreakAll,p=P(o,S);return a&&a.length?n.createElement(l.m,{className:"recharts-label-list"},a.map(function(e,t){var o=s()(i)?r(e,t):(0,x.F$)(e&&e.payload,i),a=s()(c)?{}:{id:"".concat(c,"-").concat(t)};return n.createElement(b._,j({},(0,w.L6)(e,!0),p,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:f,viewBox:b._.parseViewBox(s()(u)?e:E(E({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}T.displayName="LabelList",T.renderCallByParent=function(e,t){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=(0,w.NN)(a,T).map(function(e,r){return(0,n.cloneElement)(e,{data:t,key:"labelList-".concat(r)})});return o?[(r=e.label)?!0===r?n.createElement(T,{key:"labelList-implicit",data:t}):n.isValidElement(r)||v()(r)?n.createElement(T,{key:"labelList-implicit",data:t,content:r}):h()(r)?n.createElement(T,j({data:t},r,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return D(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i};var C=r(69055),A=r(47523),N=r(79896),I=r(49465);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var L=["x","y"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,L),a=parseInt("".concat(r),10),i=parseInt("".concat(n),10),u=parseInt("".concat(t.height||o.height),10),c=parseInt("".concat(t.width||o.width),10);return F(F(F(F(F({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:u,width:c,name:t.name,radius:t.radius})}function Z(e){return n.createElement(I.bn,Y({shapeType:"rectangle",propTransformer:U,activeClassName:"recharts-active-bar"},e))}var W=["value","background"];function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,W);if(!u)return null;var s=q(q(q(q(q({},c),{},{fill:"#eee"},u),i),(0,N.bw)(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return n.createElement(Z,z({option:e.props.background,isActive:r===a},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,a=r.xAxis,i=r.yAxis,u=r.layout,c=r.children,s=(0,w.NN)(c,f.W);if(!s)return null;var p="vertical"===u?o[0].height/2:o[0].width/2,d=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:(0,x.F$)(e,t)}};return n.createElement(l.m,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return n.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:a,yAxis:i,layout:u,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,a=e.className,i=e.xAxis,u=e.yAxis,c=e.left,f=e.top,p=e.width,d=e.height,h=e.isAnimationActive,y=e.background,v=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,g=(0,o.Z)("recharts-bar",a),b=i&&i.allowDataOverflow,w=u&&u.allowDataOverflow,x=b||w,O=s()(v)?this.id:v;return n.createElement(l.m,{className:g},b||w?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(O)},n.createElement("rect",{x:b?c:c-p/2,y:w?f:f-d/2,width:b?p:2*p,height:w?d:2*d}))):null,n.createElement(l.m,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!h||m)&&T.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&K(p.prototype,r),i&&K(p,i),Object.defineProperty(p,"prototype",{writable:!1}),p}(n.PureComponent);Q(ee,"displayName","Bar"),Q(ee,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!A.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Q(ee,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,a=e.xAxis,i=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=(0,x.Bu)(n,r);if(!h)return null;var y=t.layout,v=r.props,m=v.dataKey,g=v.children,b=v.minPointSize,O="horizontal"===y?i:a,k=s?O.scale.domain():null,S=(0,x.Yj)({numericAxis:O}),D=(0,w.NN)(g,p),j=f.map(function(e,t){var n,f,p,d,v,g;if(s?n=(0,x.Vv)(s[l+t],k):Array.isArray(n=(0,x.F$)(e,m))||(n=[S,n]),"horizontal"===y){var w,O=[i.scale(n[0]),i.scale(n[1])],j=O[0],_=O[1];f=(0,x.Fy)({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:e,index:t}),p=null!==(w=null!=_?_:j)&&void 0!==w?w:void 0,d=h.size;var E=j-_;if(v=Number.isNaN(E)?0:E,g={x:f,y:i.y,width:d,height:i.height},Math.abs(b)>0&&Math.abs(v)0&&Math.abs(d)=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),v=(0,a.L6)(y),m=f.map(function(e){var a,i,f=p(e,l),y=f.x,m=f.y,g=f.value,b=f.errorVal;if(!b)return null;var w=[];if(Array.isArray(b)){var x=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(b,2)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=x[0],i=x[1]}else a=i=b;if("vertical"===r){var O=d.scale,k=m+t,S=k+s,D=k-s,j=O(g-a),_=O(g+i);w.push({x1:_,y1:S,x2:_,y2:D}),w.push({x1:j,y1:k,x2:_,y2:k}),w.push({x1:j,y1:S,x2:j,y2:D})}else if("horizontal"===r){var E=h.scale,P=y+t,M=P-s,T=P+s,C=E(g-a),A=E(g+i);w.push({x1:M,y1:A,x2:T,y2:A}),w.push({x1:P,y1:C,x2:P,y2:A}),w.push({x1:M,y1:C,x2:T,y2:C})}return n.createElement(o.m,u({className:"recharts-errorBar",key:"bar-".concat(w.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),w.map(function(e){return n.createElement("line",u({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return n.createElement(o.m,{className:"recharts-errorBars"},m)}s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s.displayName="ErrorBar"},3023:function(e,t,r){"use strict";r.d(t,{K:function(){return n}});var n=function(){return null};n.displayName="XAxis",n.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},75358:function(e,t,r){"use strict";r.d(t,{B:function(){return n}});var n=function(){return null};n.displayName="YAxis",n.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},41087:function(e,t,r){"use strict";r.d(t,{v:function(){return rY}});var n,o,a,i,u,c,s,l,f,p,d,h,y,v,m=r(67294),g=r(14293),b=r.n(g),w=r(23560),x=r.n(w),O=r(96026),k=r.n(O),S=r(27361),D=r.n(S),j=r(89734),_=r.n(j),E=r(23493),P=r.n(E),M=r(13311),T=r.n(M),C=r(711),A=r.n(C),N=r(83231),I=r(40048);function R(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,a=e.endAngle;return{points:[(0,I.op)(t,r,n,o),(0,I.op)(t,r,n,a)],cx:t,cy:r,radius:n,startAngle:o,endAngle:a}}var L=r(69055),Y=r(41209),B=r(47523),F=r(66604),U=r.n(F),Z=r(75471),W=r(52017),H=r(18242);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(r){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],t=[{key:"create",value:function(e){return new r(e)}}],e&&$(r.prototype,e),t&&$(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}();V(Q,"EPS",1e-4);var J=function(e){var t=Object.keys(e).reduce(function(t,r){return K(K({},t),{},V({},r,Q.create(e[r])))},{});return K(K({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return U()(e,function(e,r){return t[r].apply(e,{bandAware:n,position:o})})},isInRange:function(e){return A()(e,function(e,r){return t[r].isInRange(e)})}})},ee=function(e){var t=e.width,r=e.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,a=Math.atan(r/t);return Math.abs(o>a&&oe*o)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-o)<=0}function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t=2?(0,L.uY)(s[1].coordinate-s[0].coordinate):1,O=(n="width"===m,o=l.x,a=l.y,i=l.width,u=l.height,1===w?{start:n?o:a,end:n?o+i:a+u}:{start:n?o+i:a+u,end:n?o:a});return"equidistantPreserveStart"===d?function(e,t,r,n,o){for(var a,i=(n||[]).slice(),u=t.start,c=t.end,s=0,l=1,f=u;l<=i.length;)if(a=function(){var t,a=null==n?void 0:n[s];if(void 0===a)return{v:et(n,l)};var i=s,p=function(){return void 0===t&&(t=r(a,i)),t},d=a.coordinate,h=0===s||er(e,d,p,f,c);h||(s=0,f=u,l+=1),h&&(f=d+e*(p()/2+o),s+=l)}())return a.v;return[]}(w,O,b,s,f):("preserveStart"===d||"preserveStartEnd"===d?function(e,t,r,n,o,a){var i=(n||[]).slice(),u=i.length,c=t.start,s=t.end;if(a){var l=n[u-1],f=r(l,u-1),p=e*(l.coordinate+e*f/2-s);i[u-1]=l=ea(ea({},l),{},{tickCoord:p>0?l.coordinate-p*e:l.coordinate}),er(e,l.tickCoord,function(){return f},c,s)&&(s=l.tickCoord-e*(f/2+o),i[u-1]=ea(ea({},l),{},{isShow:!0}))}for(var d=a?u-1:u,h=function(t){var n,a=i[t],u=function(){return void 0===n&&(n=r(a,t)),n};if(0===t){var l=e*(a.coordinate-e*u()/2-c);i[t]=a=ea(ea({},a),{},{tickCoord:l<0?a.coordinate-l*e:a.coordinate})}else i[t]=a=ea(ea({},a),{},{tickCoord:a.coordinate});er(e,a.tickCoord,u,c,s)&&(c=a.tickCoord+e*(u()/2+o),i[t]=ea(ea({},a),{},{isShow:!0}))},y=0;y0?s.coordinate-f*e:s.coordinate})}else a[t]=s=ea(ea({},s),{},{tickCoord:s.coordinate});er(e,s.tickCoord,l,u,c)&&(c=s.tickCoord-e*(l()/2+o),a[t]=ea(ea({},s),{},{isShow:!0}))},l=i-1;l>=0;l--)s(l);return a}(w,O,b,s,f)).filter(function(e){return e.isShow})}var eu=r(20514),ec=r(48710),es=r(26050),el=r(33558);function ef(){}function ep(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ed(e){this._context=e}function eh(e){this._context=e}function ey(e){this._context=e}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ep(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},eh.prototype={areaStart:ef,areaEnd:ef,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ey.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class ev{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function em(e){this._context=e}function eg(e){this._context=e}function eb(e){return new eg(e)}function ew(e,t,r){var n=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(n||o<0&&-0),i=(r-e._y1)/(o||n<0&&-0);return((a<0?-1:1)+(i<0?-1:1))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs((a*o+i*n)/(n+o)))||0}function ex(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function eO(e,t,r){var n=e._x0,o=e._y0,a=e._x1,i=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,o+u*t,a-u,i-u*r,a,i)}function ek(e){this._context=e}function eS(e){this._context=new eD(e)}function eD(e){this._context=e}function ej(e){this._context=e}function e_(e){var t,r,n=e.length-1,o=Array(n),a=Array(n),i=Array(n);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[n-1]=(e[n]+o[n-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var eP=r(94788),eM=r(20309),eT=r(52882);function eC(e){return e[0]}function eA(e){return e[1]}function eN(e,t){var r=(0,eM.Z)(!0),n=null,o=eb,a=null,i=(0,eT.d)(u);function u(u){var c,s,l,f=(u=(0,eP.Z)(u)).length,p=!1;for(null==n&&(a=o(l=i())),c=0;c<=f;++c)!(c=f;--p)u.point(m[p],g[p]);u.lineEnd(),u.areaEnd()}}v&&(m[l]=+e(d,l,s),g[l]=+t(d,l,s),u.point(n?+n(d,l,s):m[l],r?+r(d,l,s):g[l]))}if(h)return u=null,h+""||null}function l(){return eN().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?eC:(0,eM.Z)(+e),t="function"==typeof t?t:void 0===t?(0,eM.Z)(0):(0,eM.Z)(+t),r="function"==typeof r?r:void 0===r?eA:(0,eM.Z)(+r),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,eM.Z)(+t),n=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,eM.Z)(+t),s):e},s.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,eM.Z)(+e),s):n},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,eM.Z)(+e),r=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,eM.Z)(+e),s):t},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,eM.Z)(+e),s):r},s.lineX0=s.lineY0=function(){return l().x(e).y(t)},s.lineY1=function(){return l().x(e).y(r)},s.lineX1=function(){return l().x(n).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,eM.Z)(!!e),s):o},s.curve=function(e){return arguments.length?(i=e,null!=a&&(u=i(a)),s):i},s.context=function(e){return arguments.length?(null==e?a=u=null:u=i(a=e),s):a},s}var eR=r(11700),eL=r.n(eR),eY=r(79896);function eB(e){return(eB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,eX));return(0,L.hj)(r)&&(0,L.hj)(o)&&(0,L.hj)(l)&&(0,L.hj)(p)&&(0,L.hj)(i)&&(0,L.hj)(c)?m.createElement("path",eQ({},(0,W.L6)(h,!0),{className:(0,N.Z)("recharts-cross",d),d:"M".concat(r,",").concat(i,"v").concat(p,"M").concat(c,",").concat(o,"h").concat(l)})):null},e1=r(45108);function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ti(e,t){for(var r=0;r0?this.props:s)),n<=0||o<=0||!l||!l.length)?null:m.createElement(ec.m,{className:(0,N.Z)("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(l,this.state.fontSize,this.state.letterSpacing),e5._.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,r){return m.isValidElement(e)?m.cloneElement(e,t):x()(e)?e(t):m.createElement(e8.x,tr({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&ti(a.prototype,r),n&&ti(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(m.Component);ts(tf,"displayName","CartesianAxis"),ts(tf,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var tp=r(175);function td(e){return(td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ty(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),t_(tD(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,o=e.startIndex;null==n||n({endIndex:r,startIndex:o})}),t.detachDragEndListener()}),t_(tD(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),t_(tD(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),t_(tD(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),t_(tD(t),"handleSlideDragStart",function(e){var r=tM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(tD(t),"startX"),endX:t.handleTravellerDragStart.bind(tD(t),"endX")},t.state={},t}return r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,o=this.props,i=o.gap,u=o.data.length-1,c=a.getIndexInRange(n,Math.min(t,r)),s=a.getIndexInRange(n,Math.max(t,r));return{startIndex:c-c%i,endIndex:s===u?u:s-s%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,a=(0,Z.F$)(r[e],o,e);return x()(n)?n(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,a=this.props,i=a.x,u=a.width,c=a.travellerWidth,s=a.startIndex,l=a.endIndex,f=a.onChange,p=e.pageX-r;p>0?p=Math.min(p,i+u-c-o,i+u-c-n):p<0&&(p=Math.max(p,i-n,i-o));var d=this.getIndex({startX:n+p,endX:o+p});(d.startIndex!==s||d.endIndex!==l)&&f&&f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=tM(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,a=r.endX,i=r.startX,u=this.state[o],c=this.props,s=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,y={startX:this.state.startX,endX:this.state.endX},v=e.pageX-n;v>0?v=Math.min(v,s+l-f-u):v<0&&(v=Math.max(v,s-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex,w=function(){var e=h.length-1;return"startX"===o&&(a>i?g%d==0:b%d==0)||ai?b%d==0:g%d==0)||a>i&&b===e};this.setState((t_(t={},o,u+v),t_(t,"brushMoveStartX",e.pageX),t),function(){p&&w()&&p(m)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,a=n.startX,i=n.endX,u=this.state[t],c=o.indexOf(u);if(-1!==c){var s=c+e;if(-1!==s&&!(s>=o.length)){var l=o[s];"startX"===t&&l>=i||"endX"===t&&l<=a||this.setState(t_({},t,l),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.fill,i=e.stroke;return m.createElement("rect",{stroke:i,fill:a,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.data,i=e.children,u=e.padding,c=m.Children.only(i);return c?m.cloneElement(c,{x:t,y:r,width:n,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this,n=this.props,o=n.y,i=n.travellerWidth,u=n.height,c=n.traveller,s=n.ariaLabel,l=n.data,f=n.startIndex,p=n.endIndex,d=Math.max(e,this.props.x),h=tO(tO({},(0,W.L6)(this.props)),{},{x:d,y:o,width:i,height:u}),y=s||"Min value: ".concat(l[f].name,", Max value: ").concat(l[p].name);return m.createElement(ec.m,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(c,h))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,a=r.stroke,i=r.travellerWidth;return m.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:n,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,u=this.state,c=u.startX,s=u.endX,l={pointerEvents:"none",fill:i};return m.createElement(ec.m,{className:"recharts-brush-texts"},m.createElement(e8.x,tw({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,s)-5,y:n+o/2},l),this.getTextOfTick(t)),m.createElement(e8.x,tw({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,s)+a+5,y:n+o/2},l),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,a=e.y,i=e.width,u=e.height,c=e.alwaysShowText,s=this.state,l=s.startX,f=s.endX,p=s.isTextActive,d=s.isSlideMoving,h=s.isTravellerMoving,y=s.isTravellerFocused;if(!t||!t.length||!(0,L.hj)(o)||!(0,L.hj)(a)||!(0,L.hj)(i)||!(0,L.hj)(u)||i<=0||u<=0)return null;var v=(0,N.Z)("recharts-brush",r),g=1===m.Children.count(n),b=tg("userSelect","none");return m.createElement(ec.m,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(l,f),this.renderTravellerLayer(l,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||c)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=e.stroke,i=Math.floor(r+o/2)-1;return m.createElement(m.Fragment,null,m.createElement("rect",{x:t,y:r,width:n,height:o,fill:a,stroke:"none"}),m.createElement("line",{x1:t+1,y1:i,x2:t+n-1,y2:i,fill:"none",stroke:"#fff"}),m.createElement("line",{x1:t+1,y1:i+2,x2:t+n-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return m.isValidElement(e)?m.cloneElement(e,t):x()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,u=e.startIndex,c=e.endIndex;if(r!==t.prevData||i!==t.prevUpdateId)return tO({prevData:r,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:n},r&&r.length?tP({data:r,width:n,x:o,travellerWidth:a,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+n-a]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:r,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=e.length,n=0,o=r-1;o-n>1;){var a=Math.floor((n+o)/2);e[a]>t?o=a:n=a}return t>=e[o]?o:n}}],r&&tk(a.prototype,r),n&&tk(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(m.PureComponent);t_(tT,"displayName","Brush"),t_(tT,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var tC=r(20430),tA=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},tN=r(6213);function tI(e){return(tI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tR(){return(tR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rl(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?a:e&&e.length&&(0,L.hj)(n)&&(0,L.hj)(o)?e.slice(n,o+1):[]};function rj(e){return"number"===e?[0,"auto"]:void 0}var r_=function(e,t,r,n){var o=e.graphicalItems,a=e.tooltipAxis,i=rD(t,e);return r<0||!o||!o.length||r>=i.length?null:o.reduce(function(o,u){if(u.props.hide)return o;var c,s,l=null!==(c=u.props.data)&&void 0!==c?c:t;if(l&&e.dataStartIndex+e.dataEndIndex!==0&&(l=l.slice(e.dataStartIndex,e.dataEndIndex+1)),a.dataKey&&!a.allowDuplicatedCategory){var f=void 0===l?i:l;s=(0,L.Ap)(f,a.dataKey,n)}else s=l&&l[r]||i[r];return s?[].concat(rh(o),[(0,Z.Qo)(u,s)]):o},[])},rE=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},a="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,i=e.orderedTooltipTicks,u=e.tooltipAxis,c=e.tooltipTicks,s=(0,Z.VO)(a,i,c,u);if(s>=0&&c){var l=c[s]&&c[s].value,f=r_(e,t,s,l),p=rS(r,i,s,o);return{activeTooltipIndex:s,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},rP=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,l=e.children,f=e.stackOffset,p=(0,Z.NA)(s,o);return r.reduce(function(t,r){var d=r.props,h=d.type,y=d.dataKey,v=d.allowDataOverflow,m=d.allowDuplicatedCategory,g=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[a];if(t[O])return t;var S=rD(e.data,{graphicalItems:n.filter(function(e){return e.props[a]===O}),dataStartIndex:u,dataEndIndex:c}),D=S.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&(0,L.hj)(n)&&(0,L.hj)(o))return!0}return!1})(r.props.domain,v,h)&&(E=(0,Z.LG)(r.props.domain,null,v),p&&("number"===h||"auto"!==g)&&(M=(0,Z.gF)(S,y,"category")));var j=rj(h);if(!E||0===E.length){var _,E,P,M,T,C=null!==(T=r.props.domain)&&void 0!==T?T:j;if(y){if(E=(0,Z.gF)(S,y,h),"category"===h&&p){var A=(0,L.bv)(E);m&&A?(P=E,E=k()(0,D)):m||(E=(0,Z.ko)(C,E,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(rh(e),[t])},[]))}else if("category"===h)E=m?E.filter(function(e){return""!==e&&!b()(e)}):(0,Z.ko)(C,E,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(rh(e),[t])},[]);else if("number"===h){var N=(0,Z.ZI)(S,n.filter(function(e){return e.props[a]===O&&(x||!e.props.hide)}),y,o,s);N&&(E=N)}p&&("number"===h||"auto"!==g)&&(M=(0,Z.gF)(S,y,"category"))}else E=p?k()(0,D):i&&i[O]&&i[O].hasStack&&"number"===h?"expand"===f?[0,1]:(0,Z.EB)(i[O].stackGroups,u,c):(0,Z.s6)(S,n.filter(function(e){return e.props[a]===O&&(x||!e.props.hide)}),h,s,!0);"number"===h?(E=t4(l,E,O,o,w),C&&(E=(0,Z.LG)(C,E,v))):"category"===h&&C&&E.every(function(e){return C.indexOf(e)>=0})&&(E=C)}return rg(rg({},t),{},rb({},O,rg(rg({},r.props),{},{axisType:o,domain:E,categoricalDomain:M,duplicateDomain:P,originalDomain:null!==(_=r.props.domain)&&void 0!==_?_:j,isCategorical:p,layout:s})))},{})},rM=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,l=e.children,f=rD(e.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,d=(0,Z.NA)(s,o),h=-1;return r.reduce(function(e,t){var y,v=t.props[a],m=rj("number");return e[v]?e:(h++,y=d?k()(0,p):i&&i[v]&&i[v].hasStack?t4(l,y=(0,Z.EB)(i[v].stackGroups,u,c),v,o):t4(l,y=(0,Z.LG)(m,(0,Z.s6)(f,r.filter(function(e){return e.props[a]===v&&!e.props.hide}),"number",s),n.defaultProps.allowDataOverflow),v,o),rg(rg({},e),{},rb({},v,rg(rg({axisType:o},n.defaultProps),{},{hide:!0,orientation:D()(rx,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:s}))))},{})},rT=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.children,l="".concat(n,"Id"),f=(0,W.NN)(s,o),p={};return f&&f.length?p=rP(e,{axes:f,graphicalItems:a,axisType:n,axisIdKey:l,stackGroups:i,dataStartIndex:u,dataEndIndex:c}):a&&a.length&&(p=rM(e,{Axis:o,graphicalItems:a,axisType:n,axisIdKey:l,stackGroups:i,dataStartIndex:u,dataEndIndex:c})),p},rC=function(e){var t=(0,L.Kt)(e),r=(0,Z.uY)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:_()(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,Z.zT)(t,r)}},rA=function(e){var t=e.children,r=e.defaultShowTooltip,n=(0,W.sP)(t,tT),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(a=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},rN=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rI=function(e,t){var r=e.props,n=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,u=void 0===i?{}:i,c=r.width,s=r.height,l=r.children,f=r.margin||{},p=(0,W.sP)(l,tT),d=(0,W.sP)(l,el.D),h=Object.keys(u).reduce(function(e,t){var r=u[t],n=r.orientation;return r.mirror||r.hide?e:rg(rg({},e),{},rb({},n,e[n]+r.width))},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:rg(rg({},e),{},rb({},n,D()(e,"".concat(n))+r.height))},{top:f.top||0,bottom:f.bottom||0}),v=rg(rg({},y),h),m=v.bottom;p&&(v.bottom+=p.props.height||tT.defaultProps.height),d&&t&&(v=(0,Z.By)(v,n,r,t));var g=c-v.left-v.right,b=s-v.top-v.bottom;return rg(rg({brushBottom:m},v),{},{width:Math.max(g,0),height:Math.max(b,0)})},rR=r(3023),rL=r(75358),rY=(a=(n={chartName:"BarChart",GraphicalChild:H.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:rR.K},{axisType:"yAxis",AxisComp:rL.B}],formatAxisMap:function(e,t,r,n,o){var a=e.width,i=e.height,u=e.layout,c=e.children,s=Object.keys(t),l={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:i-r.bottom,bottomMirror:i-r.bottom},f=!!(0,W.sP)(c,H.$);return s.reduce(function(a,i){var c,s,p,d,h,y=t[i],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var k=m[1]-m[0],S=1/0,D=y.categoricalDomain.sort();D.forEach(function(e,t){t>0&&(S=Math.min((e||0)-(D[t-1]||0),S))});var j=S/k,_="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(c=j*_/2),"no-gap"===y.padding){var E=(0,L.h1)(e.barCategoryGap,j*_),P=j*_/2;c=P-E-(P-E)/_*E}}s="xAxis"===n?[r.left+(b.left||0)+(c||0),r.left+r.width-(b.right||0)-(c||0)]:"yAxis"===n?"horizontal"===u?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(c||0),r.top+r.height-(b.bottom||0)-(c||0)]:y.range,x&&(s=[s[1],s[0]]);var M=(0,Z.Hq)(y,o,f),T=M.scale,C=M.realScaleType;T.domain(m).range(s),(0,Z.zF)(T);var A=(0,Z.g$)(T,K(K({},y),{},{realScaleType:C}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=l[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=l[O]-h*y.width,d=r.top);var N=K(K(K({},y),A),{},{realScaleType:C,x:p,y:d,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return N.bandSize=(0,Z.zT)(N,A),y.hide||"xAxis"!==n?y.hide||(l[O]+=(h?-1:1)*N.width):l[O]+=(h?-1:1)*N.height,K(K({},a),{},V({},i,N))},{})}}).chartName,i=n.GraphicalChild,c=void 0===(u=n.defaultTooltipEventType)?"axis":u,l=void 0===(s=n.validateTooltipEventTypes)?["axis"]:s,f=n.axisComponents,p=n.legendContent,d=n.formatAxisMap,h=n.defaultProps,y=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,u=t.dataEndIndex,c=e.barSize,s=e.layout,l=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=rN(s),y=h.numericAxisName,v=h.cateAxisName,m=!!r&&!!r.length&&r.some(function(e){var t=(0,W.Gf)(e&&e.type);return t&&t.indexOf("Bar")>=0})&&(0,Z.pt)({barSize:c,stackGroups:n}),g=[];return r.forEach(function(r,c){var h,w=rD(e.data,{graphicalItems:[r],dataStartIndex:i,dataEndIndex:u}),x=r.props,O=x.dataKey,k=x.maxBarSize,S=r.props["".concat(y,"Id")],D=r.props["".concat(v,"Id")],j=f.reduce(function(e,n){var o,a=t["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")];a&&a[i]||"zAxis"===n.axisType||function(e,t){if(!e)throw Error("Invariant failed")}(!1);var u=a[i];return rg(rg({},e),{},(rb(o={},n.axisType,u),rb(o,"".concat(n.axisType,"Ticks"),(0,Z.uY)(u)),o))},{}),_=j[v],E=j["".concat(v,"Ticks")],P=n&&n[S]&&n[S].hasStack&&(0,Z.O3)(r,n[S].stackGroups),M=(0,W.Gf)(r.type).indexOf("Bar")>=0,T=(0,Z.zT)(_,E),C=[];if(M){var A,N,I=b()(k)?d:k,R=null!==(A=null!==(N=(0,Z.zT)(_,E,!0))&&void 0!==N?N:I)&&void 0!==A?A:0;C=(0,Z.qz)({barGap:l,barCategoryGap:p,bandSize:R!==T?R:T,sizeList:m[D],maxBarSize:I}),R!==T&&(C=C.map(function(e){return rg(rg({},e),{},{position:rg(rg({},e.position),{},{offset:e.position.offset-R/2})})}))}var L=r&&r.type&&r.type.getComposedData;L&&g.push({props:rg(rg({},L(rg(rg({},j),{},{displayedData:w,props:e,dataKey:O,item:r,bandSize:T,barPosition:C,offset:o,stackedData:P,layout:s,dataStartIndex:i,dataEndIndex:u}))),{},(rb(h={key:r.key||"item-".concat(c)},y,j[y]),rb(h,v,j[v]),rb(h,"animationId",a),h)),childIndex:(0,W.$R)(r,e.children),item:r})}),g},v=function(e,t){var r=e.props,n=e.dataStartIndex,o=e.dataEndIndex,u=e.updateId;if(!(0,W.TT)({props:r}))return null;var c=r.children,s=r.layout,l=r.stackOffset,p=r.data,h=r.reverseStackOrder,v=rN(s),m=v.numericAxisName,g=v.cateAxisName,b=(0,W.NN)(c,i),w=(0,Z.wh)(p,b,"".concat(m,"Id"),"".concat(g,"Id"),l,h),x=f.reduce(function(e,t){var a="".concat(t.axisType,"Map");return rg(rg({},e),{},rb({},a,rT(r,rg(rg({},t),{},{graphicalItems:b,stackGroups:t.axisType===m&&w,dataStartIndex:n,dataEndIndex:o}))))},{}),O=rI(rg(rg({},x),{},{props:r,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach(function(e){x[e]=d(r,x[e],O,e.replace("Map",""),a)});var k=rC(x["".concat(g,"Map")]),S=y(r,rg(rg({},x),{},{dataStartIndex:n,dataEndIndex:o,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return rg(rg({formattedGraphicalItems:S,graphicalItems:b,offset:O,stackGroups:w},k),x)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw 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&&rf(e,t)})(i,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=rd(i);if(t){var n=rd(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ri(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return rp(e)}(this,e)});function i(e){var t,r,n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),rb(rp(n=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),rb(rp(n),"accessibilityManager",new rr),rb(rp(n),"handleLegendBBoxUpdate",function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;n.setState(rg({legendBBox:e},v({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:a},rg(rg({},n.state),{},{legendBBox:e}))))}}),rb(rp(n),"handleReceiveSyncEvent",function(e,t,r){n.props.syncId===e&&(r!==n.eventEmitterSymbol||"function"==typeof n.props.syncMethod)&&n.applySyncEvent(t)}),rb(rp(n),"handleBrushChange",function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState(function(){return rg({dataStartIndex:t,dataEndIndex:r},v({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))}),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}}),rb(rp(n),"handleMouseEnter",function(e){var t=n.getMouseInfo(e);if(t){var r=rg(rg({},t),{},{isTooltipActive:!0});n.setState(r),n.triggerSyncEvent(r);var o=n.props.onMouseEnter;x()(o)&&o(r,e)}}),rb(rp(n),"triggeredAfterMouseMove",function(e){var t=n.getMouseInfo(e),r=t?rg(rg({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r);var o=n.props.onMouseMove;x()(o)&&o(r,e)}),rb(rp(n),"handleItemMouseEnter",function(e){n.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),rb(rp(n),"handleItemMouseLeave",function(){n.setState(function(){return{isTooltipActive:!1}})}),rb(rp(n),"handleMouseMove",function(e){e.persist(),n.throttleTriggeredAfterMouseMove(e)}),rb(rp(n),"handleMouseLeave",function(e){var t={isTooltipActive:!1};n.setState(t),n.triggerSyncEvent(t);var r=n.props.onMouseLeave;x()(r)&&r(t,e)}),rb(rp(n),"handleOuterEvent",function(e){var t,r=(0,W.Bh)(e),o=D()(n.props,"".concat(r));r&&x()(o)&&o(null!==(t=/.*touch.*/i.test(r)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e))&&void 0!==t?t:{},e)}),rb(rp(n),"handleClick",function(e){var t=n.getMouseInfo(e);if(t){var r=rg(rg({},t),{},{isTooltipActive:!0});n.setState(r),n.triggerSyncEvent(r);var o=n.props.onClick;x()(o)&&o(r,e)}}),rb(rp(n),"handleMouseDown",function(e){var t=n.props.onMouseDown;x()(t)&&t(n.getMouseInfo(e),e)}),rb(rp(n),"handleMouseUp",function(e){var t=n.props.onMouseUp;x()(t)&&t(n.getMouseInfo(e),e)}),rb(rp(n),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),rb(rp(n),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])}),rb(rp(n),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])}),rb(rp(n),"triggerSyncEvent",function(e){void 0!==n.props.syncId&&t8.emit(t5,n.props.syncId,e,n.eventEmitterSymbol)}),rb(rp(n),"applySyncEvent",function(e){var t=n.props,r=t.layout,o=t.syncMethod,a=n.state.updateId,i=e.dataStartIndex,u=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)n.setState(rg({dataStartIndex:i,dataEndIndex:u},v({props:n.props,dataStartIndex:i,dataEndIndex:u,updateId:a},n.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,f=n.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof o)l=o(d,e);else if("value"===o){l=-1;for(var h=0;h=0){if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());P=(0,L.Ap)(h,_,l),M=y&&v&&(0,L.Ap)(v,_,l)}else P=null==h?void 0:h[s],M=y&&v&&v[s];if(k||O){var E=void 0!==e.props.activeIndex?e.props.activeIndex:s;return[(0,m.cloneElement)(e,rg(rg(rg({},o.props),D),{},{activeIndex:E})),null,null]}if(!b()(P))return[j].concat(rh(n.renderActivePoints({item:o,activePoint:P,basePoint:M,childIndex:s,isRange:y})))}else{var P,M,T,C=(null!==(T=n.getItemByXY(n.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:j}).graphicalItem,A=C.item,N=C.childIndex,I=rg(rg(rg({},o.props),D),{},{activeIndex:N});return[(0,m.cloneElement)(void 0===A?e:A,I),null,null]}}return y?[j,null,null]:[j,null]}),rb(rp(n),"renderCustomized",function(e,t,r){return(0,m.cloneElement)(e,rg(rg({key:"recharts-customized-".concat(r)},n.props),n.state))}),rb(rp(n),"renderMap",{CartesianGrid:{handler:n.renderGrid,once:!0},ReferenceArea:{handler:n.renderReferenceElement},ReferenceLine:{handler:n.renderReferenceElement},ReferenceDot:{handler:n.renderReferenceElement},XAxis:{handler:n.renderXAxis},YAxis:{handler:n.renderYAxis},Brush:{handler:n.renderBrush,once:!0},Bar:{handler:n.renderGraphicChild},Line:{handler:n.renderGraphicChild},Area:{handler:n.renderGraphicChild},Radar:{handler:n.renderGraphicChild},RadialBar:{handler:n.renderGraphicChild},Scatter:{handler:n.renderGraphicChild},Pie:{handler:n.renderGraphicChild},Funnel:{handler:n.renderGraphicChild},Tooltip:{handler:n.renderCursor,once:!0},PolarGrid:{handler:n.renderPolarGrid,once:!0},PolarAngleAxis:{handler:n.renderPolarAxis},PolarRadiusAxis:{handler:n.renderPolarAxis},Customized:{handler:n.renderCustomized}}),n.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:(0,L.EL)("recharts"),"-clip"),n.throttleTriggeredAfterMouseMove=P()(n.triggeredAfterMouseMove,null!==(r=e.throttleDelay)&&void 0!==r?r:1e3/60),n.state={},n}return r=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,W.sP)(this.props.children,es.u);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,r=t.getBoundingClientRect(),n=(0,Y.os)(r),o={chartX:Math.round(e.pageX-n.left),chartY:Math.round(e.pageY-n.top)},a=r.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var u=this.state,c=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&s){var l=(0,L.Kt)(c).scale,f=(0,L.Kt)(s).scale,p=l&&l.invert?l.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return rg(rg({},o),{},{xValue:p,yValue:d})}var h=rE(this.state,this.props.data,this.props.layout,i);return h?rg(rg({},o),h):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,a=t/r;if("horizontal"===n||"vertical"===n){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var u=this.state,c=u.angleAxisMap,s=u.radiusAxisMap;if(c&&s){var l=(0,L.Kt)(c);return(0,I.z3)({x:o,y:a},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,W.sP)(e,es.u),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),rg(rg({},(0,eY.Ym)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){t8.on(t5,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){t8.removeListener(t5,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,a=n.length;oe.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?1:-1;"insideStart"===u?(o=g+S*s,i=x):"insideEnd"===u?(o=b-S*s,i=!x):"end"===u&&(o=b+S*s,i=x),i=k<=0?i:!i;var D=(0,h.op)(p,y,O,o),j=(0,h.op)(p,y,O,o+(i?1:-1)*359),_="M".concat(D.x,",").concat(D.y,"\n A").concat(O,",").concat(O,",0,1,").concat(i?0:1,",\n ").concat(j.x,",").concat(j.y),E=a()(e.id)?(0,d.EL)("recharts-radial-line-"):e.id;return n.createElement("text",w({},r,{dominantBaseline:"central",className:(0,l.Z)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:E,d:_})),n.createElement("textPath",{xlinkHref:"#".concat(E)},t))},k=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t.cx,a=t.cy,i=t.innerRadius,u=t.outerRadius,c=(t.startAngle+t.endAngle)/2;if("outside"===n){var s=(0,h.op)(o,a,u+r,c),l=s.x;return{x:l,y:s.y,textAnchor:l>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.op)(o,a,(i+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,a=t.x,i=t.y,u=t.width,c=t.height,l=c>=0?1:-1,f=l*n,p=l>0?"end":"start",h=l>0?"start":"end",y=u>=0?1:-1,v=y*n,m=y>0?"end":"start",g=y>0?"start":"end";if("top"===o)return b(b({},{x:a+u/2,y:i-l*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(i-r.y,0),width:u}:{});if("bottom"===o)return b(b({},{x:a+u/2,y:i+c+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(i+c),0),width:u}:{});if("left"===o){var w={x:a-v,y:i+c/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),r?{width:Math.max(w.x-r.x,0),height:c}:{})}if("right"===o){var x={x:a+u+v,y:i+c/2,textAnchor:g,verticalAnchor:"middle"};return b(b({},x),r?{width:Math.max(r.x+r.width-x.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return"insideLeft"===o?b({x:a+v,y:i+c/2,textAnchor:g,verticalAnchor:"middle"},O):"insideRight"===o?b({x:a+u-v,y:i+c/2,textAnchor:m,verticalAnchor:"middle"},O):"insideTop"===o?b({x:a+u/2,y:i+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:a+u/2,y:i+c-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:a+v,y:i+f,textAnchor:g,verticalAnchor:h},O):"insideTopRight"===o?b({x:a+u-v,y:i+f,textAnchor:m,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:a+v,y:i+c-f,textAnchor:g,verticalAnchor:p},O):"insideBottomRight"===o?b({x:a+u-v,y:i+c-f,textAnchor:m,verticalAnchor:p},O):s()(o)&&((0,d.hj)(o.x)||(0,d.hU)(o.x))&&((0,d.hj)(o.y)||(0,d.hU)(o.y))?b({x:a+(0,d.h1)(o.x,u),y:i+(0,d.h1)(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):b({x:a+u/2,y:i+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function D(e){var t,r=e.offset,o=b({offset:void 0===r?5:r},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,v)),i=o.viewBox,c=o.position,s=o.value,h=o.children,y=o.content,m=o.className,g=o.textBreakAll;if(!i||a()(s)&&a()(h)&&!(0,n.isValidElement)(y)&&!u()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(u()(y)){if(t=(0,n.createElement)(y,o),(0,n.isValidElement)(t))return t}else t=x(o);var D="cx"in i&&(0,d.hj)(i.cx),j=(0,p.L6)(o,!0);if(D&&("insideStart"===c||"insideEnd"===c||"end"===c))return O(o,t,j);var _=D?k(o):S(o);return n.createElement(f.x,w({className:(0,l.Z)("recharts-label",void 0===m?"":m)},j,_,{breakAll:g}),t)}D.displayName="Label";var j=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,u=e.radius,c=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,h=e.left,y=e.width,v=e.height,m=e.clockWise,g=e.labelViewBox;if(g)return g;if((0,d.hj)(y)&&(0,d.hj)(v)){if((0,d.hj)(l)&&(0,d.hj)(f))return{x:l,y:f,width:y,height:v};if((0,d.hj)(p)&&(0,d.hj)(h))return{x:p,y:h,width:y,height:v}}return(0,d.hj)(l)&&(0,d.hj)(f)?{x:l,y:f,width:0,height:0}:(0,d.hj)(t)&&(0,d.hj)(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:a||n||0,innerRadius:c||0,outerRadius:s||u||i||0,clockWise:m}:e.viewBox?e.viewBox:{}};D.parseViewBox=j,D.renderCallByParent=function(e,t){var r,o,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&a&&!e.label)return null;var i=e.children,c=j(e),l=(0,p.NN)(i,D).map(function(e,r){return(0,n.cloneElement)(e,{viewBox:t||c,key:"label-".concat(r)})});return a?[(r=e.label,o=t||c,r?!0===r?n.createElement(D,{key:"label-implicit",viewBox:o}):(0,d.P2)(r)?n.createElement(D,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===D?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(D,{key:"label-implicit",content:r,viewBox:o}):u()(r)?n.createElement(D,{key:"label-implicit",content:r,viewBox:o}):s()(r)?n.createElement(D,w({viewBox:o},r,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return m(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l}},33558:function(e,t,r){"use strict";r.d(t,{D:function(){return A}});var n=r(67294),o=r(23560),a=r.n(o),i=r(83231),u=r(6213),c=r(20514),s=r(21138),l=r(79896);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return n.createElement("li",p({className:b,style:y,key:"legend-item-".concat(r)},(0,l.bw)(e.props,t,r)),n.createElement(c.T,{width:o,height:o,viewBox:h,style:v},e.renderIcon(t)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(w,t,r):w))})}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,o=e.align;return t&&t.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],h(b.prototype,r),o&&h(b,o),Object.defineProperty(b,"prototype",{writable:!1}),b}(n.PureComponent);m(b,"displayName","Legend"),m(b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var w=r(69055),x=r(78817);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var k=["ref"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?D({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,a=n.align,i=n.verticalAlign,u=n.margin,c=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===i?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),D(D({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,o=t.width,a=t.height,i=t.wrapperStyle,u=t.payloadUniqBy,c=t.payload,s=D(D({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(i)),i);return n.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(n.isValidElement(e))return n.cloneElement(e,t);if("function"==typeof e)return n.createElement(e,t);t.ref;var r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,k);return n.createElement(b,r)}(r,D(D({},this.props),{},{payload:(0,x.z)(c,u,C)})))}}],o=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&(0,w.hj)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],r&&j(i.prototype,r),o&&j(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);M(A,"displayName","Legend"),M(A,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},29009:function(e,t,r){"use strict";r.d(t,{h:function(){return y}});var n=r(83231),o=r(67294),a=r(23493),i=r.n(a),u=r(59864),c=r(69055),s=r(6213),l=r(52017);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(e=i()(e,D,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=M.current.getBoundingClientRect();return I(r.width,r.height),t.observe(M.current),function(){t.disconnect()}},[I,D]);var R=(0,o.useMemo)(function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;(0,s.Z)((0,c.hU)(v)||(0,c.hU)(g),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,g),(0,s.Z)(!a||a>0,"The aspect(%s) must be greater than zero.",a);var r=(0,c.hU)(v)?e:v,n=(0,c.hU)(g)?t:g;a&&a>0&&(r?n=r/a:n&&(r=n*a),O&&n>O&&(n=O)),(0,s.Z)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,v,g,w,x,a);var i=!Array.isArray(k)&&(0,u.isElement)(k)&&(0,l.Gf)(k.type).endsWith("Chart");return o.Children.map(k,function(e){return(0,u.isElement)(e)?(0,o.cloneElement)(e,d({width:r,height:n},i?{style:d({height:"100%",width:"100%",maxHeight:n,maxWidth:r},e.props.style)}:{})):e})},[a,k,g,O,x,w,A,v]);return o.createElement("div",{id:j?"".concat(j):void 0,className:(0,n.Z)("recharts-responsive-container",_),style:d(d({},void 0===P?{}:P),{},{width:v,height:g,minWidth:w,minHeight:x,maxHeight:O}),ref:M},R)})},84642:function(e,t,r){"use strict";r.d(t,{x:function(){return L}});var n=r(67294),o=r(14293),a=r.n(o),i=r(83231),u=r(69055),c=r(47523),s=r(52017),l=r(41209);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,u=e[e.length-1];return u&&(null==n||o||u.width+i+ri||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(n),t]},y=0,v=c.length-1,m=0;y<=v&&m<=c.length-1;){var g=Math.floor((y+v)/2),b=P(h(g-1),2),w=b[0],x=b[1],O=P(h(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){a=x;break}m++}return a||d},N=function(e){return[{words:a()(e)?[]:e.toString().split(T)}]},I=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||r)&&!c.x.isSsr){var u=C({breakAll:a,children:n,style:o});if(!u)return N(n);var s=u.wordsWithComputedWidth,l=u.spaceWidth;return A({breakAll:a,children:n,maxLines:i,style:o},s,l,t,r)}return N(n)},R="#808080",L=function(e){var t,r=e.x,o=void 0===r?0:r,a=e.y,c=void 0===a?0:a,l=e.lineHeight,f=void 0===l?"1em":l,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,v=e.textAnchor,m=e.verticalAnchor,g=e.fill,b=void 0===g?R:g,w=E(e,D),x=(0,n.useMemo)(function(){return I({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:y,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,y,w.style,w.width]),O=w.dx,k=w.dy,P=w.angle,M=w.className,T=w.breakAll,C=E(w,j);if(!(0,u.P2)(o)||!(0,u.P2)(c))return null;var A=o+((0,u.hj)(O)?O:0),N=c+((0,u.hj)(k)?k:0);switch(void 0===m?"end":m){case"start":t=S("calc(".concat(d,")"));break;case"middle":t=S("calc(".concat((x.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=S("calc(".concat(x.length-1," * -").concat(f,")"))}var L=[];if(y){var Y=x[0].width,B=w.width;L.push("scale(".concat(((0,u.hj)(B)?B/Y:1)/Y,")"))}return P&&L.push("rotate(".concat(P,", ").concat(A,", ").concat(N,")")),L.length&&(C.transform=L.join(" ")),n.createElement("text",_({},(0,s.L6)(C,!0),{x:A,y:N,className:(0,i.Z)("recharts-text",M),textAnchor:void 0===v?"start":v,fill:b.includes("url")?R:b}),x.map(function(e,r){var o=e.words.join(T?"":" ");return n.createElement("tspan",{x:A,dy:0===r?t:f,key:o},o)}))}},26050:function(e,t,r){"use strict";r.d(t,{u:function(){return W}});var n=r(67294),o=r(89734),a=r.n(o),i=r(14293),u=r.n(i),c=r(83231),s=r(69055);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rc[n]+l?Math.max(f,c[n]):Math.max(p,c[n])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,r,o,a,i,u,l,f,p,d,h,y,m,O,k,D,j,_,E,P,M=this,T=this.props,C=T.active,A=T.allowEscapeViewBox,N=T.animationDuration,I=T.animationEasing,R=T.children,L=T.coordinate,Y=T.hasPayload,B=T.isAnimationActive,F=T.offset,U=T.position,Z=T.reverseDirection,W=T.useTranslate3d,H=T.viewBox,z=T.wrapperStyle,$=(m=(e={allowEscapeViewBox:A,coordinate:L,offsetTopLeft:F,position:U,reverseDirection:Z,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:W,viewBox:H}).allowEscapeViewBox,O=e.coordinate,k=e.offsetTopLeft,D=e.position,j=e.reverseDirection,_=e.tooltipBox,E=e.useTranslate3d,P=e.viewBox,_.height>0&&_.width>0&&O?(r=(t={translateX:h=x({allowEscapeViewBox:m,coordinate:O,key:"x",offsetTopLeft:k,position:D,reverseDirection:j,tooltipDimension:_.width,viewBox:P,viewBoxDimension:P.width}),translateY:y=x({allowEscapeViewBox:m,coordinate:O,key:"y",offsetTopLeft:k,position:D,reverseDirection:j,tooltipDimension:_.height,viewBox:P,viewBoxDimension:P.height}),useTranslate3d:E}).translateX,o=t.translateY,a=t.useTranslate3d,d=(0,v.bO)({transform:a?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")})):d=w,{cssProperties:d,cssClasses:(l=(i={translateX:h,translateY:y,coordinate:O}).coordinate,f=i.translateX,p=i.translateY,(0,c.Z)(b,(g(u={},"".concat(b,"-right"),(0,s.hj)(f)&&l&&(0,s.hj)(l.x)&&f>=l.x),g(u,"".concat(b,"-left"),(0,s.hj)(f)&&l&&(0,s.hj)(l.x)&&f=l.y),g(u,"".concat(b,"-top"),(0,s.hj)(p)&&l&&(0,s.hj)(l.y)&&p0;return n.createElement(T,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:l,active:r,coordinate:c,hasPayload:x,offset:f,position:h,reverseDirection:v,useTranslate3d:m,viewBox:g,wrapperStyle:b},(e=R(R({},this.props),{},{payload:w}),n.isValidElement(u)?n.cloneElement(u,e):"function"==typeof u?n.createElement(u,e):n.createElement(y,e)))}}],L(i.prototype,r),o&&L(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);F(W,"displayName","Tooltip"),F(W,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!C.x.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},48710:function(e,t,r){"use strict";r.d(t,{m:function(){return c}});var n=r(67294),o=r(83231),a=r(52017),i=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),l=(0,o.Z)("recharts-layer",c);return n.createElement("g",u({className:l},(0,a.L6)(s,!0),{ref:t}),r)})},20514:function(e,t,r){"use strict";r.d(t,{T:function(){return c}});var n=r(67294),o=r(83231),a=r(52017),i=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),y=s||{width:r,height:c,x:0,y:0},v=(0,o.Z)("recharts-surface",l);return n.createElement("svg",u({},(0,a.L6)(h,!0,"svg"),{className:v,width:r,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,d),t)}},13481:function(e,t,r){"use strict";r.d(t,{A:function(){return y},X:function(){return d}});var n=r(67294),o=r(83231),a=r(93801),i=r(52017);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?1:-1,c=r>=0?1:-1,s=n>=0&&r>=0||n<0&&r<0?1:0;if(i>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>i?i:o[f];a="M".concat(e,",").concat(t+u*l[0]),l[0]>0&&(a+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+c*l[0],",").concat(t)),a+="L ".concat(e+r-c*l[1],",").concat(t),l[1]>0&&(a+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(e+r,",").concat(t+u*l[1])),a+="L ".concat(e+r,",").concat(t+n-u*l[2]),l[2]>0&&(a+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(e+r-c*l[2],",").concat(t+n)),a+="L ".concat(e+c*l[3],",").concat(t+n),l[3]>0&&(a+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+n-u*l[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+r-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r,",").concat(t+u*p,"\n L ").concat(e+r,",").concat(t+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r-c*p,",").concat(t+n,"\n L ").concat(e+c*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+n-u*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return a},d=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,a=t.y,i=t.width,u=t.height;return!!(Math.abs(i)>0&&Math.abs(u)>0)&&r>=Math.min(o,o+i)&&r<=Math.max(o,o+i)&&n>=Math.min(a,a+u)&&n<=Math.max(a,a+u)},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,r=f(f({},h),e),u=(0,n.useRef)(),l=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(-1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=l[0],y=l[1];(0,n.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var e=u.current.getTotalLength();e&&y(e)}catch(e){}},[]);var v=r.x,m=r.y,g=r.width,b=r.height,w=r.radius,x=r.className,O=r.animationEasing,k=r.animationDuration,S=r.animationBegin,D=r.isAnimationActive,j=r.isUpdateAnimationActive;if(v!==+v||m!==+m||g!==+g||b!==+b||0===g||0===b)return null;var _=(0,o.Z)("recharts-rectangle",x);return j?n.createElement(a.ZP,{canBegin:d>0,from:{width:g,height:b,x:v,y:m},to:{width:g,height:b,x:v,y:m},duration:k,animationEasing:O,isActive:j},function(e){var t=e.width,o=e.height,s=e.x,l=e.y;return n.createElement(a.ZP,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:k,isActive:D,easing:O},n.createElement("path",c({},(0,i.L6)(r,!0),{className:_,d:p(s,l,t,o,w),ref:u})))}):n.createElement("path",c({},(0,i.L6)(r,!0),{className:_,d:p(v,m,g,b,w)}))}},45108:function(e,t,r){"use strict";r.d(t,{L:function(){return v}});var n=r(67294),o=r(83231),a=r(52017),i=r(40048),u=r(69055);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(c>l),",\n ").concat(p.x,",").concat(p.y,"\n ");if(o>0){var h=(0,i.op)(r,n,o,c),y=(0,i.op)(r,n,o,l);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(c<=l),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},h=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=(0,u.uY)(l-s),h=p({cx:t,cy:r,radius:o,angle:s,sign:f,cornerRadius:a,cornerIsExternal:c}),y=h.circleTangency,v=h.lineTangency,m=h.theta,g=p({cx:t,cy:r,radius:o,angle:l,sign:-f,cornerRadius:a,cornerIsExternal:c}),b=g.circleTangency,w=g.lineTangency,x=g.theta,O=c?Math.abs(s-l):Math.abs(s-l)-m-x;if(O<0)return i?"M ".concat(v.x,",").concat(v.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):d({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:s,endAngle:l});var k="M ".concat(v.x,",").concat(v.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,"\n ");if(n>0){var S=p({cx:t,cy:r,radius:n,angle:s,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),D=S.circleTangency,j=S.lineTangency,_=S.theta,E=p({cx:t,cy:r,radius:n,angle:l,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),P=E.circleTangency,M=E.lineTangency,T=E.theta,C=c?Math.abs(s-l):Math.abs(s-l)-_-T;if(C<0&&0===a)return"".concat(k,"L").concat(t,",").concat(r,"Z");k+="L".concat(M.x,",").concat(M.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(D.x,",").concat(D.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,"Z")}else k+="L".concat(t,",").concat(r,"Z");return k},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(e){var t,r=f(f({},y),e),i=r.cx,c=r.cy,l=r.innerRadius,p=r.outerRadius,v=r.cornerRadius,m=r.forceCornerRadius,g=r.cornerIsExternal,b=r.startAngle,w=r.endAngle,x=r.className;if(p0&&360>Math.abs(b-w)?h({cx:i,cy:c,innerRadius:l,outerRadius:p,cornerRadius:Math.min(S,k/2),forceCornerRadius:m,cornerIsExternal:g,startAngle:b,endAngle:w}):d({cx:i,cy:c,innerRadius:l,outerRadius:p,startAngle:b,endAngle:w}),n.createElement("path",s({},(0,a.L6)(r,!0),{className:O,d:t,role:"img"}))}},21138:function(e,t,r){"use strict";r.d(t,{v:function(){return A}});var n=r(67294),o=r(11700),a=r.n(o);let i=Math.cos,u=Math.sin,c=Math.sqrt,s=Math.PI,l=2*s;var f={draw(e,t){let r=c(t/s);e.moveTo(r,0),e.arc(0,0,r,0,l)}};let p=c(1/3),d=2*p,h=u(s/10)/u(7*s/10),y=u(l/10)*h,v=-i(l/10)*h,m=c(3),g=c(3)/2,b=1/c(12),w=(b/2+1)*3;var x=r(20309),O=r(52882);c(3),c(3);var k=r(83231),S=r(52017);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var j=["type","size","sizeType"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,j)),{},{type:o,size:u,sizeType:s}),p=l.className,d=l.cx,h=l.cy,y=(0,S.L6)(l,!0);return d===+d&&h===+h&&u===+u?n.createElement("path",_({},y,{className:(0,k.Z)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=M["symbol".concat(a()(o))]||f,(function(e,t){let r=null,n=(0,O.d)(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:(0,x.Z)(e||f),t="function"==typeof t?t:(0,x.Z)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,x.Z)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,x.Z)(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o})().type(t).size(C(u,s,o))())})):null};A.registerSymbol=function(e,t){M["symbol".concat(a()(e))]=t}},49465:function(e,t,r){"use strict";r.d(t,{bn:function(){return A},a3:function(){return F},lT:function(){return N},V$:function(){return I},w7:function(){return R}});var n=r(67294),o=r(23560),a=r.n(o),i=r(68630),u=r.n(i),c=r(51584),s=r.n(c),l=r(18446),f=r.n(l),p=r(13481),d=r(83231),h=r(93801),y=r(52017);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:l,lowerWidth:f,height:p,x:c,y:s},duration:k,animationEasing:b,isActive:D},function(e){var t=e.upperWidth,a=e.lowerWidth,u=e.height,c=e.x,s=e.y;return n.createElement(h.ZP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:k,easing:b},n.createElement("path",m({},(0,y.L6)(r,!0),{className:j,d:x(c,s,t,a,u),ref:o})))}):n.createElement("g",null,n.createElement("path",m({},(0,y.L6)(r,!0),{className:j,d:x(c,s,l,f,p)})))},S=r(45108),D=r(48710),j=r(21138),_=["option","shapeType","propTransformer","activeClassName","isActive"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,_);if((0,n.isValidElement)(r))t=(0,n.cloneElement)(r,M(M({},f),(0,n.isValidElement)(r)?r.props:r));else if(a()(r))t=r(f);else if(u()(r)&&!s()(r)){var p=(void 0===i?T:i)(r,f);t=n.createElement(C,{shapeType:o,elementProps:p})}else t=n.createElement(C,{shapeType:o,elementProps:f});return l?n.createElement(D.m,{className:void 0===c?"recharts-active-shape":c},t):t}function N(e,t){return null!=t&&"trapezoids"in e.props}function I(e,t){return null!=t&&"sectors"in e.props}function R(e,t){return null!=t&&"points"in e.props}function L(e,t){var r,n,o=e.x===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,a=e.y===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return o&&a}function Y(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function B(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function F(e){var t,r,n,o=e.activeTooltipItem,a=e.graphicalItem,i=e.itemData,u=(N(a,o)?t="trapezoids":I(a,o)?t="sectors":R(a,o)&&(t="points"),t),c=N(a,o)?null===(r=o.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:I(a,o)?null===(n=o.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:R(a,o)?o.payload:{},s=i.filter(function(e,t){var r=f()(c,e),n=a.props[u].filter(function(e){var t;return(N(a,o)?t=L:I(a,o)?t=Y:R(a,o)&&(t=B),t)(e,o)}),i=a.props[u].indexOf(n[n.length-1]);return r&&t===i});return i.indexOf(s[s.length-1])}},75471:function(e,t,r){"use strict";r.d(t,{By:function(){return on},VO:function(){return n7},zF:function(){return od},DO:function(){return of},Bu:function(){return oh},zT:function(){return o_},qz:function(){return or},pt:function(){return ot},Yj:function(){return ox},Fy:function(){return ow},Rf:function(){return oc},gF:function(){return n9},s6:function(){return oi},EB:function(){return ok},fk:function(){return oe},wh:function(){return og},O3:function(){return oO},uY:function(){return os},g$:function(){return ob},Qo:function(){return oP},F$:function(){return n5},NA:function(){return ou},ko:function(){return oE},ZI:function(){return oa},Hq:function(){return op},LG:function(){return oj},Vv:function(){return oy}});var n,o,a,i,u,c,s,l={};r.r(l),r.d(l,{scaleBand:function(){return f.Z},scaleDiverging:function(){return function e(){var t=eF(r5()(ex));return t.copy=function(){return r4(t,e())},eE.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=eV(r5()).domain([.1,1,10]);return t.copy=function(){return r4(t,e()).base(t.base())},eE.O.apply(t,arguments)}},scaleDivergingPow:function(){return r9},scaleDivergingSqrt:function(){return r7},scaleDivergingSymlog:function(){return function e(){var t=eQ(r5());return t.copy=function(){return r4(t,e()).constant(t.constant())},eE.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,eb),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,eb):[0,1],eF(n)}},scaleImplicit:function(){return eJ.O},scaleLinear:function(){return eU},scaleLog:function(){return function e(){let t=eV(ej()).domain([1,10]);return t.copy=()=>eD(t,e()).base(t.base()),eE.o.apply(t,arguments),t}},scaleOrdinal:function(){return eJ.Z},scalePoint:function(){return f.x},scalePow:function(){return e4},scaleQuantile:function(){return function e(){var t,r=[],n=[],o=[];function a(){var e=0,t=Math.max(1,n.length);for(o=Array(t-1);++e=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,a=Math.floor(o),i=+r(e[a],a,e);return i+(+r(e[a+1],a+1,e)-i)*(o-a)}}(r,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:n[D(o,e)]}return i.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t=o?[a[o-1],n]:[a[t-1],a[t]]},u.unknown=function(e){return arguments.length&&(t=e),u},u.thresholds=function(){return a.slice()},u.copy=function(){return e().domain([r,n]).range(i).unknown(t)},eE.o.apply(eF(u),arguments)}},scaleRadial:function(){return function e(){var t,r=e_(),n=[0,1],o=!1;function a(e){var n,a=Math.sign(n=r(e))*Math.sqrt(Math.abs(n));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return r.invert(e8(e))},a.domain=function(e){return arguments.length?(r.domain(e),a):r.domain()},a.range=function(e){return arguments.length?(r.range((n=Array.from(e,eb)).map(e8)),a):n.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(r.clamp(e),a):r.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(r.domain(),n).round(o).clamp(r.clamp()).unknown(t)},eE.o.apply(a,arguments),eF(a)}},scaleSequential:function(){return function e(){var t=eF(r3()(ex));return t.copy=function(){return r4(t,e())},eE.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=eV(r3()).domain([1,10]);return t.copy=function(){return r4(t,e()).base(t.base())},eE.O.apply(t,arguments)}},scaleSequentialPow:function(){return r6},scaleSequentialQuantile:function(){return function e(){var t=[],r=ex;function n(e){if(null!=e&&!isNaN(e=+e))return r((D(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r=+r)||t.push(r);return t.sort(b),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(e,t,r){if(!(!(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||n<2)return e9(e);if(t>=1)return e5(e);var n,o=(n-1)*t,a=Math.floor(o),i=e5((function e(t,r,n=0,o=1/0,a){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(t.length-1,o)),!(n<=r&&r<=o))return t;for(a=void 0===a?e7:function(e=b){if(e===b)return e7;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(a);o>n;){if(o-n>600){let i=o-n+1,u=r-n+1,c=Math.log(i),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(i-s)/i)*(u-i/2<0?-1:1),f=Math.max(n,Math.floor(r-u*s/i+l)),p=Math.min(o,Math.floor(r+(i-u)*s/i+l));e(t,r,f,p,a)}let i=t[r],u=n,c=o;for(te(t,n,r),a(t[o],i)>0&&te(t,n,o);ua(t[u],i);)++u;for(;a(t[c],i)>0;)--c}0===a(t[n],i)?te(t,n,c):te(t,++c,o),c<=r&&(n=c+1),r<=c&&(o=c-1)}return t})(e,a).subarray(0,a+1));return i+(e9(e.subarray(a+1))-i)*(o-a)}})(t,n/e))},n.copy=function(){return e(r).domain(t)},eE.O.apply(n,arguments)}},scaleSequentialSqrt:function(){return r8},scaleSequentialSymlog:function(){return function e(){var t=eQ(r3());return t.copy=function(){return r4(t,e()).constant(t.constant())},eE.O.apply(t,arguments)}},scaleSqrt:function(){return e6},scaleSymlog:function(){return function e(){var t=eQ(ej());return t.copy=function(){return eD(t,e()).constant(t.constant())},eE.o.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,r=[.5],n=[0,1],o=1;function a(e){return null!=e&&e<=e?n[D(r,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((r=Array.from(e)).length,n.length-1),a):r.slice()},a.range=function(e){return arguments.length?(n=Array.from(e),o=Math.min(r.length,n.length-1),a):n.slice()},a.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(r).range(n).unknown(t)},eE.o.apply(a,arguments)}},scaleTime:function(){return r1},scaleUtc:function(){return r2},tickFormat:function(){return eB}});var f=r(175);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,r){let n,o,a;let i=(t-e)/Math.max(0,r),u=Math.floor(Math.log10(i)),c=i/Math.pow(10,u),s=c>=p?10:c>=d?5:c>=h?2:1;return(u<0?(n=Math.round(e*(a=Math.pow(10,-u)/s)),o=Math.round(t*a),n/at&&--o,a=-a):(n=Math.round(e/(a=Math.pow(10,u)*s)),o=Math.round(t/a),n*at&&--o),o0))return[];if(e===t)return[e];let n=t=o))return[];let u=a-o+1,c=Array(u);if(n){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function w(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function x(e){let t,r,n;function o(e,n,o=0,a=e.length){if(o>>1;0>r(e[t],n)?o=t+1:a=t}while(ob(e(t),r),n=(t,r)=>e(t)-r):(t=e===b||e===w?e:O,r=e,n=e),{left:o,center:function(e,t,r=0,a=e.length){let i=o(e,t,r,a-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i},right:function(e,n,o=0,a=e.length){if(o>>1;0>=r(e[t],n)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?H(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?H(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=A.exec(e))?new $(t[1],t[2],t[3],1):(t=N.exec(e))?new $(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=I.exec(e))?H(t[1],t[2],t[3],t[4]):(t=R.exec(e))?H(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=L.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=Y.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):B.hasOwnProperty(e)?W(B[e]):"transparent"===e?new $(NaN,NaN,NaN,0):null}function W(e){return new $(e>>16&255,e>>8&255,255&e,1)}function H(e,t,r,n){return n<=0&&(e=t=r=NaN),new $(e,t,r,n)}function z(e,t,r,n){var o;return 1==arguments.length?((o=e)instanceof E||(o=Z(o)),o)?(o=o.rgb(),new $(o.r,o.g,o.b,o.opacity)):new $:new $(e,t,r,null==n?1:n)}function $(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function q(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function K(){let e=V(this.opacity);return`${1===e?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${1===e?")":`, ${e})`}`}function V(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function G(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=G(e))<16?"0":"")+e.toString(16)}function Q(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ee(e,t,r,n)}function J(e){if(e instanceof ee)return new ee(e.h,e.s,e.l,e.opacity);if(e instanceof E||(e=Z(e)),!e)return new ee;if(e instanceof ee)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,u=a-o,c=(a+o)/2;return u?(i=t===a?(r-n)/u+(r0&&c<1?0:i,new ee(i,u,c,e.opacity)}function ee(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function et(e){return(e=(e||0)%360)<0?e+360:e}function er(e){return Math.max(0,Math.min(1,e||0))}function en(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function eo(e,t,r,n,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*r+(1+3*e+3*a-3*i)*n+i*o)/6}j(E,Z,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:U,toString:U}),j($,z,_(E,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new $(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $(G(this.r),G(this.g),G(this.b),V(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q,formatHex:q,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:K,toString:K})),j(ee,function(e,t,r,n){return 1==arguments.length?J(e):new ee(e,t,r,null==n?1:n)},_(E,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ee(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ee(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $(en(e>=240?e-240:e+120,o,n),en(e,o,n),en(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ee(et(this.h),er(this.s),er(this.l),V(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=V(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*er(this.s)}%, ${100*er(this.l)}%${1===e?")":`, ${e})`}`}}));var ea=e=>()=>e;function ei(e,t){var r=t-e;return r?function(t){return e+t*r}:ea(isNaN(e)?t:e)}var eu=function e(t){var r,n=1==(r=+(r=t))?ei:function(e,t){var n,o,a;return t-e?(n=e,o=t,n=Math.pow(n,a=r),o=Math.pow(o,a)-n,a=1/a,function(e){return Math.pow(n+e*o,a)}):ea(isNaN(e)?t:e)};function o(e,t){var r=n((e=z(e)).r,(t=z(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=ei(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function ec(e){return function(t){var r,n,o=t.length,a=Array(o),i=Array(o),u=Array(o);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),o=e[n],a=e[n+1],i=n>0?e[n-1]:2*o-a,u=nu&&(i=t.slice(u,i),s[c]?s[c]+=i:s[++c]=i),(o=o[0])===(a=a[0])?s[c]?s[c]+=a:s[++c]=a:(s[++c]=null,l.push({i:c,x:ef(o,a)})),u=eh.lastIndex;return u(t=i[c-1])&&(r=e,e=t,t=r),s=function(r){return Math.max(e,Math.min(t,r))}),n=c>2?eS:ek,o=a=null,f}function f(t){return null==t||isNaN(t=+t)?r:(o||(o=n(i.map(e),u,c)))(e(s(t)))}return f.invert=function(r){return s(t((a||(a=n(u,i.map(e),ef)))(r)))},f.domain=function(e){return arguments.length?(i=Array.from(e,eb),l()):i.slice()},f.range=function(e){return arguments.length?(u=Array.from(e),l()):u.slice()},f.rangeRound=function(e){return u=Array.from(e),c=eg,l()},f.clamp=function(e){return arguments.length?(s=!!e||ex,l()):s!==ex},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,l()}}function e_(){return ej()(ex,ex)}var eE=r(94182),eP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eM(e){var t;if(!(t=eP.exec(e)))throw Error("invalid format: "+e);return new eT({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function eT(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function eC(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function eA(e){return(e=eC(Math.abs(e)))?e[1]:NaN}function eN(e,t){var r=eC(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}eM.prototype=eT.prototype,eT.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var eI={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>eN(100*e,t),r:eN,s:function(e,t){var r=eC(e,t);if(!r)return e+"";var o=r[0],a=r[1],i=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=o.length;return i===u?o:i>u?o+Array(i-u+1).join("0"):i>0?o.slice(0,i)+"."+o.slice(i):"0."+Array(1-i).join("0")+eC(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eR(e){return e}var eL=Array.prototype.map,eY=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eB(e,t,r,n){var o,u,c=g(e,t,r);switch((n=eM(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eA(s)/3)))-eA(Math.abs(c))))||(n.precision=u),i(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN((o=c,u=Math.max(0,eA(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o)))-eA(o))+1))||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-eA(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return a(n)}function eF(e){var t=e.domain;return e.ticks=function(e){var r=t();return v(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return eB(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,a=t(),i=0,u=a.length-1,c=a[i],s=a[u],l=10;for(s0;){if((o=m(c,s,r))===n)return a[i]=c,a[u]=s,t(a);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else if(o<0)c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o;else break;n=o}return e},e}function eU(){var e=e_();return e.copy=function(){return eD(e,eU())},eE.o.apply(e,arguments),eF(e)}function eZ(e,t){e=e.slice();var r,n=0,o=e.length-1,a=e[n],i=e[o];return i-e(-t,r)}function eV(e){let t,r;let n=e(eW,eH),o=n.domain,i=10;function u(){var a,u;return t=(a=i)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),e=>Math.log(e)/a),r=10===(u=i)?eq:u===Math.E?Math.exp:e=>Math.pow(u,e),o()[0]<0?(t=eK(t),r=eK(r),e(ez,e$)):e(eW,eH),n}return n.base=function(e){return arguments.length?(i=+e,u()):i},n.domain=function(e){return arguments.length?(o(e),u()):o()},n.ticks=e=>{let n,a;let u=o(),c=u[0],s=u[u.length-1],l=s0){for(;f<=p;++f)for(n=1;ns)break;h.push(a)}}else for(;f<=p;++f)for(n=i-1;n>=1;--n)if(!((a=f>0?n/r(-f):n*r(f))s)break;h.push(a)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===i?"s":","),"function"!=typeof o&&(i%1||null!=(o=eM(o)).precision||(o.trim=!0),o=a(o)),e===1/0)return o;let u=Math.max(1,i*e/n.ticks().length);return e=>{let n=e/r(Math.round(t(e)));return n*io(eZ(o(),{floor:e=>r(Math.floor(t(e))),ceil:e=>r(Math.ceil(t(e)))})),n}function eG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eX(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eQ(e){var t=1,r=e(eG(1),eX(t));return r.constant=function(r){return arguments.length?e(eG(t=+r),eX(t)):t},eF(r)}a=(o=function(e){var t,r,o,a=void 0===e.grouping||void 0===e.thousands?eR:(t=eL.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var o=e.length,a=[],i=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(e.substring(o-=u,o+u)),!((c+=u+1)>n));)u=t[i=(i+1)%t.length];return a.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?eR:(o=eL.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),l=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=eM(e)).fill,r=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,v=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(v=!0,b="g"):eI[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var w="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===d?u:/[%p]/.test(b)?l:"",O=eI[b],k=/[defgprs%]/.test(b);function S(e){var i,u,l,d=w,S=x;if("c"===b)S=O(e)+S,e="";else{var D=(e=+e)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),D&&0==+e&&"+"!==o&&(D=!1),d=(D?"("===o?o:f:"-"===o||"("===o?"":o)+d,S=("s"===b?eY[8+n/3]:"")+S+(D&&"("===o?")":""),k){for(i=-1,u=e.length;++i(l=e.charCodeAt(i))||l>57){S=(46===l?c+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}}v&&!h&&(e=a(e,1/0));var j=d.length+e.length+S.length,_=j>1)+d+e+S+_.slice(j);break;default:e=_+d+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var r=d(((e=eM(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(eA(t)/3))),o=Math.pow(10,-n),a=eY[8+n/3];return function(e){return r(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,i=o.formatPrefix;var eJ=r(46244);function e0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function e1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function e2(e){return e<0?-e*e:e*e}function e3(e){var t=e(ex,ex),r=1;return t.exponent=function(t){return arguments.length?1==(r=+t)?e(ex,ex):.5===r?e(e1,e2):e(e0(r),e0(1/r)):r},eF(t)}function e4(){var e=e3(ej());return e.copy=function(){return eD(e,e4()).exponent(e.exponent())},eE.o.apply(e,arguments),e}function e6(){return e4.apply(null,arguments).exponent(.5)}function e8(e){return Math.sign(e)*e*e}function e5(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r=o)&&(r=o)}return r}function e9(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function e7(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function te(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}let tt=864e5,tr=7*tt,tn=30*tt,to=365*tt,ta=new Date,ti=new Date;function tu(e,t,r,n){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),o.round=e=>{let t=o(e),r=o.ceil(e);return e-t(t(e=new Date(+e),null==r?1:Math.floor(r)),e),o.range=(r,n,a)=>{let i;let u=[];if(r=o.ceil(r),a=null==a?1:Math.floor(a),!(r0))return u;do u.push(i=new Date(+r)),t(r,a),e(r);while(itu(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}}),r&&(o.count=(t,n)=>(ta.setTime(+t),ti.setTime(+n),e(ta),e(ti),Math.floor(r(ta,ti))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(n?t=>n(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let tc=tu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);tc.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?tu(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):tc:null,tc.range;let ts=tu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ts.range;let tl=tu(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());tl.range;let tf=tu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());tf.range;let tp=tu(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());tp.range;let td=tu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());td.range;let th=tu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/tt,e=>e.getDate()-1);th.range;let ty=tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tt,e=>e.getUTCDate()-1);ty.range;let tv=tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tt,e=>Math.floor(e/tt));function tm(e){return tu(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/tr)}tv.range;let tg=tm(0),tb=tm(1),tw=tm(2),tx=tm(3),tO=tm(4),tk=tm(5),tS=tm(6);function tD(e){return tu(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/tr)}tg.range,tb.range,tw.range,tx.range,tO.range,tk.range,tS.range;let tj=tD(0),t_=tD(1),tE=tD(2),tP=tD(3),tM=tD(4),tT=tD(5),tC=tD(6);tj.range,t_.range,tE.range,tP.range,tM.range,tT.range,tC.range;let tA=tu(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tA.range;let tN=tu(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());tN.range;let tI=tu(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());tI.every=e=>isFinite(e=Math.floor(e))&&e>0?tu(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,tI.range;let tR=tu(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function tL(e,t,r,n,o,a){let i=[[ts,1,1e3],[ts,5,5e3],[ts,15,15e3],[ts,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,tt],[n,2,2*tt],[r,1,tr],[t,1,tn],[t,3,3*tn],[e,1,to]];function u(t,r,n){let o=Math.abs(r-t)/n,a=x(([,,e])=>e).right(i,o);if(a===i.length)return e.every(g(t/to,r/to,n));if(0===a)return tc.every(Math.max(g(t,r,n),1));let[u,c]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?tu(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,tR.range;let[tY,tB]=tL(tR,tN,tj,tv,td,tf),[tF,tU]=tL(tI,tA,tg,th,tp,tl);function tZ(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tW(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tH(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var tz={"-":"",_:" ",0:"0"},t$=/^\s*\d+/,tq=/^%/,tK=/[\\^$*+?|[\]().{}]/g;function tV(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",a=o.length;return n+(a[e.toLowerCase(),t]))}function tJ(e,t,r){var n=t$.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function t0(e,t,r){var n=t$.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function t1(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function t2(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function t3(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function t4(e,t,r){var n=t$.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function t6(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function t8(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function t5(e,t,r){var n=t$.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function t9(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function t7(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function re(e,t,r){var n=t$.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function rt(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function rr(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function rn(e,t,r){var n=t$.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ro(e,t,r){var n=t$.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ra(e,t,r){var n=t$.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ri(e,t,r){var n=tq.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ru(e,t,r){var n=t$.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rc(e,t,r){var n=t$.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function rs(e,t){return tV(e.getDate(),t,2)}function rl(e,t){return tV(e.getHours(),t,2)}function rf(e,t){return tV(e.getHours()%12||12,t,2)}function rp(e,t){return tV(1+th.count(tI(e),e),t,3)}function rd(e,t){return tV(e.getMilliseconds(),t,3)}function rh(e,t){return rd(e,t)+"000"}function ry(e,t){return tV(e.getMonth()+1,t,2)}function rv(e,t){return tV(e.getMinutes(),t,2)}function rm(e,t){return tV(e.getSeconds(),t,2)}function rg(e){var t=e.getDay();return 0===t?7:t}function rb(e,t){return tV(tg.count(tI(e)-1,e),t,2)}function rw(e){var t=e.getDay();return t>=4||0===t?tO(e):tO.ceil(e)}function rx(e,t){return e=rw(e),tV(tO.count(tI(e),e)+(4===tI(e).getDay()),t,2)}function rO(e){return e.getDay()}function rk(e,t){return tV(tb.count(tI(e)-1,e),t,2)}function rS(e,t){return tV(e.getFullYear()%100,t,2)}function rD(e,t){return tV((e=rw(e)).getFullYear()%100,t,2)}function rj(e,t){return tV(e.getFullYear()%1e4,t,4)}function r_(e,t){var r=e.getDay();return tV((e=r>=4||0===r?tO(e):tO.ceil(e)).getFullYear()%1e4,t,4)}function rE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tV(t/60|0,"0",2)+tV(t%60,"0",2)}function rP(e,t){return tV(e.getUTCDate(),t,2)}function rM(e,t){return tV(e.getUTCHours(),t,2)}function rT(e,t){return tV(e.getUTCHours()%12||12,t,2)}function rC(e,t){return tV(1+ty.count(tR(e),e),t,3)}function rA(e,t){return tV(e.getUTCMilliseconds(),t,3)}function rN(e,t){return rA(e,t)+"000"}function rI(e,t){return tV(e.getUTCMonth()+1,t,2)}function rR(e,t){return tV(e.getUTCMinutes(),t,2)}function rL(e,t){return tV(e.getUTCSeconds(),t,2)}function rY(e){var t=e.getUTCDay();return 0===t?7:t}function rB(e,t){return tV(tj.count(tR(e)-1,e),t,2)}function rF(e){var t=e.getUTCDay();return t>=4||0===t?tM(e):tM.ceil(e)}function rU(e,t){return e=rF(e),tV(tM.count(tR(e),e)+(4===tR(e).getUTCDay()),t,2)}function rZ(e){return e.getUTCDay()}function rW(e,t){return tV(t_.count(tR(e)-1,e),t,2)}function rH(e,t){return tV(e.getUTCFullYear()%100,t,2)}function rz(e,t){return tV((e=rF(e)).getUTCFullYear()%100,t,2)}function r$(e,t){return tV(e.getUTCFullYear()%1e4,t,4)}function rq(e,t){var r=e.getUTCDay();return tV((e=r>=4||0===r?tM(e):tM.ceil(e)).getUTCFullYear()%1e4,t,4)}function rK(){return"+0000"}function rV(){return"%"}function rG(e){return+e}function rX(e){return Math.floor(+e/1e3)}function rQ(e){return new Date(e)}function rJ(e){return e instanceof Date?+e:+new Date(+e)}function r0(e,t,r,n,o,a,i,u,c,s){var l=e_(),f=l.invert,p=l.domain,d=s(".%L"),h=s(":%S"),y=s("%I:%M"),v=s("%I %p"),m=s("%a %d"),g=s("%b %d"),b=s("%B"),w=s("%Y");function x(e){return(c(e)1)for(var r,n,o,a=1,i=e[t[0]],u=i.length;a=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rG,s:rX,S:rm,u:rg,U:rb,V:rx,w:rO,W:rk,x:null,X:null,y:rS,Y:rj,Z:rE,"%":rV},w={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:rP,e:rP,f:rN,g:rz,G:rq,H:rM,I:rT,j:rC,L:rA,m:rI,M:rR,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rG,s:rX,S:rL,u:rY,U:rB,V:rU,w:rZ,W:rW,x:null,X:null,y:rH,Y:r$,Z:rK,"%":rV},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:t7,e:t7,f:ra,g:t6,G:t4,H:rt,I:rt,j:re,L:ro,m:t9,M:rr,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=l.get(n[0].toLowerCase()),r+n[0].length):-1},q:t5,Q:ru,s:rc,S:rn,u:t0,U:t1,V:t2,w:tJ,W:t3,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:t6,Y:t4,Z:t8,"%":ri};function O(e,t){return function(r){var n,o,a,i=[],u=-1,c=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++u53)return null;"w"in a||(a.w=1),"Z"in a?(n=(o=(n=tW(tH(a.y,0,1))).getUTCDay())>4||0===o?t_.ceil(n):t_(n),n=ty.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(o=(n=tZ(tH(a.y,0,1))).getDay())>4||0===o?tb.ceil(n):tb(n),n=th.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?tW(tH(a.y,0,1)).getUTCDay():tZ(tH(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,tW(a)):tZ(a)}}function S(e,t,r,n){for(var o,a,i=0,u=t.length,c=r.length;i=c)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=x[(o=t.charAt(i++))in tz?t.charAt(i++):o])||(n=a(e,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,s=u.utcFormat,u.utcParse;var nt=r(94788),nr=r(20309);function nn(e){for(var t=e.length,r=Array(t);--t>=0;)r[t]=t;return r}function no(e,t){return e[t]}function na(e){let t=[];return t.key=e,t}var ni=r(6162),nu=r.n(ni),nc=r(53632),ns=r.n(nc),nl=r(14293),nf=r.n(nl),np=r(23560),nd=r.n(np),nh=r(47037),ny=r.n(nh),nv=r(27361),nm=r.n(nv),ng=r(94654),nb=r.n(ng),nw=r(7654),nx=r.n(nw),nO=r(11700),nk=r.n(nO),nS=r(18446),nD=r.n(nS),nj=r(89734),n_=r.n(nj),nE=r(64364),nP=r.n(nE);function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=t?r.apply(void 0,o):e(t-i,nN(function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);rn&&(o=n,a=r),[o,a]}function nq(e,t,r){if(e.lte(0))return new(nP())(0);var n=nU.getDigitCount(e.toNumber()),o=new(nP())(10).pow(n),a=e.div(o),i=1!==n?.05:.1,u=new(nP())(Math.ceil(a.div(i).toNumber())).add(r).mul(i).mul(o);return t?u:new(nP())(Math.ceil(u))}function nK(e,t,r){var n=1,o=new(nP())(e);if(!o.isint()&&r){var a=Math.abs(e);a<1?(n=new(nP())(10).pow(nU.getDigitCount(e)-1),o=new(nP())(Math.floor(o.div(n).toNumber())).mul(n)):a>1&&(o=new(nP())(Math.floor(e)))}else 0===e?o=new(nP())(Math.floor((t-1)/2)):r||(o=new(nP())(Math.floor(e)));var i=Math.floor((t-1)/2);return nY(nL(function(e){return o.add(new(nP())(e-i).mul(n)).toNumber()}),nR)(0,t)}var nV=nF(function(e){var t=nW(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=nW(n$([r,n]),2),u=i[0],c=i[1];if(u===-1/0||c===1/0){var s=c===1/0?[u].concat(nZ(nR(0,o-1).map(function(){return 1/0}))):[].concat(nZ(nR(0,o-1).map(function(){return-1/0})),[c]);return r>n?nB(s):s}if(u===c)return nK(u,o,a);var l=function e(t,r,n,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new(nP())(0),tickMin:new(nP())(0),tickMax:new(nP())(0)};var u=nq(new(nP())(r).sub(t).div(n-1),o,i),c=Math.ceil((a=t<=0&&r>=0?new(nP())(0):(a=new(nP())(t).add(r).div(2)).sub(new(nP())(a).mod(u))).sub(t).div(u).toNumber()),s=Math.ceil(new(nP())(r).sub(a).div(u).toNumber()),l=c+s+1;return l>n?e(t,r,n,o,i+1):(l0?s+(n-l):s,c=r>0?c:c+(n-l)),{step:u,tickMin:a.sub(new(nP())(c).mul(u)),tickMax:a.add(new(nP())(s).mul(u))})}(u,c,Math.max(o,2),a),f=l.step,p=l.tickMin,d=l.tickMax,h=nU.rangeStep(p,d.add(new(nP())(.1).mul(f)),f);return r>n?nB(h):h});nF(function(e){var t=nW(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),u=nW(n$([r,n]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[r,n];if(c===s)return nK(c,o,a);var l=nq(new(nP())(s).sub(c).div(i-1),a,0),f=nY(nL(function(e){return new(nP())(c).add(new(nP())(e).mul(l)).toNumber()}),nR)(0,i).filter(function(e){return e>=c&&e<=s});return r>n?nB(f):f});var nG=nF(function(e,t){var r=nW(e,2),n=r[0],o=r[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=nW(n$([n,o]),2),u=i[0],c=i[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var s=nq(new(nP())(c).sub(u).div(Math.max(t,2)-1),a,0),l=[].concat(nZ(nU.rangeStep(new(nP())(u),new(nP())(c).sub(new(nP())(.99).mul(s)),s)),[c]);return n>o?nB(l):l}),nX=r(86641),nQ=r(69055),nJ=r(52017),n0=r(20430);function n1(e){return(n1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n3(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?n[c-1].coordinate:n[i-1].coordinate,l=n[c].coordinate,f=c>=i-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if((0,nQ.uY)(l-s)!==(0,nQ.uY)(f-l)){var d=[];if((0,nQ.uY)(f-l)===(0,nQ.uY)(u[1]-u[0])){p=f;var h=l+u[1]-u[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var y=f+u[1]-u[0];d[0]=Math.min(l,(y+l)/2),d[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){a=n[c].index;break}}else{var m=Math.min(s,f),g=Math.max(s,f);if(e>(m+l)/2&&e<=(g+l)/2){a=n[c].index;break}}}else for(var b=0;b0&&b(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===i-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){a=r[b].index;break}return a},oe=function(e){var t,r=e.type.displayName,n=e.props,o=n.stroke,a=n.fill;switch(r){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ot=function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},a=Object.keys(n),i=0,u=a.length;i=0});if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[h];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:nf()(v)?t:v})}}return o},or=function(e){var t,r=e.barGap,n=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,u=e.maxBarSize,c=i.length;if(c<1)return null;var s=(0,nQ.h1)(r,o,0,!0),l=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=o/c,d=i.reduce(function(e,t){return e+t.barSize||0},0);(d+=(c-1)*s)>=o&&(d-=(c-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=c*p);var h={offset:((o-d)/2>>0)-s,size:0};t=i.reduce(function(e,t){var r={item:t.item,position:{offset:h.offset+h.size+s,size:f?p:t.barSize}},n=[].concat(n6(e),[r]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:h})}),n},l)}else{var y=(0,nQ.h1)(n,o,0,!0);o-2*y-(c-1)*s<=0&&(s=0);var v=(o-2*y-(c-1)*s)/c;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;t=i.reduce(function(e,t,r){var n=[].concat(n6(e),[{item:t.item,position:{offset:y+(v+s)*r+(v-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:n[n.length-1].position})}),n},l)}return t},on=function(e,t,r,n){var o=r.children,a=r.width,i=r.margin,u=a-(i.left||0)-(i.right||0),c=(0,n0.z)({children:o,legendWidth:u});if(c){var s=n||{},l=s.width,f=s.height,p=c.align,d=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,nQ.hj)(e[p]))return n3(n3({},e),{},n4({},p,e[p]+(l||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,nQ.hj)(e[d]))return n3(n3({},e),{},n4({},d,e[d]+(f||0)))}return e},oo=function(e,t,r,n,o){var a=t.props.children,i=(0,nJ.NN)(a,nX.W).filter(function(e){var t;return t=e.props.direction,!!nf()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(i&&i.length){var u=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=n5(t,r,0),o=Array.isArray(n)?[ns()(n),nu()(n)]:[n,n],a=u.reduce(function(e,r){var n=n5(t,r,0),a=o[0]-Math.abs(Array.isArray(n)?n[0]:n),i=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},oa=function(e,t,r,n,o){var a=t.map(function(t){return oo(e,t,r,o,n)}).filter(function(e){return!nf()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},oi=function(e,t,r,n,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===r&&a&&oo(e,t,a,n)||n9(e,a,r,o)});if("number"===r)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var r=0,n=t.length;r=2?2*(0,nQ.uY)(i[0]-i[1])*c:c,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:n(o?o.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!nx()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:n(e)+c,value:e,index:t,offset:c}}):n.ticks&&!r?n.ticks(e.tickCount).map(function(e){return{coordinate:n(e)+c,value:e,offset:c}}):n.domain().map(function(e,t){return{coordinate:n(e)+c,value:o?o[e]:e,index:t,offset:c}})},ol=new WeakMap,of=function(e,t){if("function"!=typeof t)return e;ol.has(e)||ol.set(e,new WeakMap);var r=ol.get(e);if(r.has(t))return r.get(t);var n=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,n),n},op=function(e,t,r){var n=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===i?{scale:f.Z(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:eU(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:f.x(),realScaleType:"point"}:"category"===o?{scale:f.Z(),realScaleType:"band"}:{scale:eU(),realScaleType:"linear"};if(ny()(n)){var u="scale".concat(nk()(n));return{scale:(l[u]||f.x)(),realScaleType:l[u]?u:"point"}}return nd()(n)?{scale:n}:{scale:f.x(),realScaleType:"point"}},od=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-1e-4,a=Math.max(n[0],n[1])+1e-4,i=e(t[0]),u=e(t[r-1]);(ia||ua)&&e.domain([t[0],t[r-1]])}},oh=function(e,t){if(!e)return null;for(var r=0,n=e.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(e[i][r][0]=o,e[i][r][1]=o+u,o=e[i][r][1]):(e[i][r][0]=a,e[i][r][1]=a+u,a=e[i][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,a=0,i=e[0].length;a0){for(var r,n=0,o=e[t[0]],a=o.length;n0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,a=0,i=1;i=0?(e[a][r][0]=o,e[a][r][1]=o+i,o=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}}},om=function(e,t,r){var n=t.map(function(e){return e.props.dataKey}),o=ov[r];return(function(){var e=(0,nr.Z)([]),t=nn,r=ne,n=no;function o(o){var a,i,u=Array.from(e.apply(this,arguments),na),c=u.length,s=-1;for(let e of o)for(a=0,++s;a=0?0:o<0?o:n}return r[0]},oO=function(e,t){var r=e.props.stackId;if((0,nQ.P2)(r)){var n=t[r];if(n){var o=n.items.indexOf(e);return o>=0?n.stackedData[o]:null}}return null},ok=function(e,t,r){return Object.keys(e).reduce(function(n,o){var a=e[o].stackedData.reduce(function(e,n){var o=n.slice(t,r+1).reduce(function(e,t){return[ns()(t.concat([e[0]]).filter(nQ.hj)),nu()(t.concat([e[1]]).filter(nQ.hj))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],n[0]),Math.max(a[1],n[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oj=function(e,t,r){if(nd()(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if((0,nQ.hj)(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var o=+oS.exec(e[0])[1];n[0]=t[0]-o}else nd()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if((0,nQ.hj)(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(oD.test(e[1])){var a=+oD.exec(e[1])[1];n[1]=t[1]+a}else nd()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},o_=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=n_()(t,function(e){return e.coordinate}),a=1/0,i=1,u=o.length;i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.x.isSsr)return{width:0,height:0};var o=(Object.keys(t=i({},r)).forEach(function(e){t[e]||delete t[e]}),t),a=JSON.stringify({text:e,copyStyle:o});if(u.widthCache[a])return u.widthCache[a];try{var l=document.getElementById(s);l||((l=document.createElement("span")).setAttribute("id",s),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var f=i(i({},c),o);Object.assign(l.style,f),l.textContent="".concat(e);var p=l.getBoundingClientRect(),d={width:p.width,height:p.height};return u.widthCache[a]=d,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},69055:function(e,t,r){"use strict";r.d(t,{Ap:function(){return x},EL:function(){return v},Kt:function(){return g},P2:function(){return h},bv:function(){return b},h1:function(){return m},hU:function(){return p},hj:function(){return d},k4:function(){return w},uY:function(){return f}});var n=r(47037),o=r.n(n),a=r(7654),i=r.n(a),u=r(27361),c=r.n(u),s=r(81763),l=r.n(s),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return l()(e)&&!i()(e)},h=function(e){return d(e)||o()(e)},y=0,v=function(e){var t=++y;return"".concat(e||"").concat(t)},m=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return n;if(p(e)){var u=e.indexOf("%");r=t*parseFloat(e.slice(0,u))/100}else r=+e;return i()(r)&&(r=n),a&&r>t&&(r=t),r},g=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n2?r-2:0),o=2;oa&&(u=2*Math.PI-u),{radius:i,angle:180*u/Math.PI,angleInRadian:u}},l=function(e){var t=e.startAngle,r=e.endAngle,n=Math.min(Math.floor(t/360),Math.floor(r/360));return{startAngle:t-360*n,endAngle:r-360*n}},f=function(e,t){var r,n=s({x:e.x,y:e.y},t),o=n.radius,i=n.angle,u=t.innerRadius,c=t.outerRadius;if(oc)return!1;if(0===o)return!0;var f=l(t),p=f.startAngle,d=f.endAngle,h=i;if(p<=d){for(;h>d;)h-=360;for(;h=p&&h<=d}else{for(;h>p;)h-=360;for(;h=d&&h<=p}return r?a(a({},t),{},{radius:o,angle:h+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null}},52017:function(e,t,r){"use strict";r.d(t,{$R:function(){return R},Bh:function(){return I},Gf:function(){return O},L6:function(){return T},NN:function(){return j},TT:function(){return E},eu:function(){return N},rL:function(){return C},sP:function(){return _}});var n=r(27361),o=r.n(n),a=r(14293),i=r.n(a),u=r(47037),c=r.n(u),s=r(23560),l=r.n(s),f=r(13218),p=r.n(f),d=r(67294),h=r(59864),y=r(69055),v=r(30791),m=r(79896),g=["children"],b=["children"];function w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var x={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},O=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},k=null,S=null,D=function e(t){if(t===k&&Array.isArray(S))return S;var r=[];return d.Children.forEach(t,function(t){i()(t)||((0,h.isFragment)(t)?r=r.concat(e(t.props.children)):r.push(t))}),S=r,k=t,r};function j(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(function(e){return O(e)}):[O(t)],D(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)}),r}function _(e,t){var r=j(e,t);return r&&r[0]}var E=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!!(0,y.hj)(r)&&!(r<=0)&&!!(0,y.hj)(n)&&!(n<=0)},P=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],M=function(e,t,r,n){var o,a=null!==(o=null===m.ry||void 0===m.ry?void 0:m.ry[n])&&void 0!==o?o:[];return!l()(e)&&(n&&a.includes(t)||m.Yh.includes(t))||r&&m.nv.includes(t)},T=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,d.isValidElement)(e)&&(n=e.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(e){var a;M(null===(a=n)||void 0===a?void 0:a[e],e,t,r)&&(o[e]=n[e])}),o},C=function e(t,r){if(t===r)return!0;var n=d.Children.count(t);if(n!==d.Children.count(r))return!1;if(0===n)return!0;if(1===n)return A(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(e);else if(e){var a=O(e.type),i=t[a]||{},u=i.handler,s=i.once;if(u&&(!s||!n[a])){var l=u(e,a,o);r.push(l),n[a]=!0}}}),r},I=function(e){var t=e&&e.type;return t&&x[t]?x[t]:null},R=function(e,t){return D(t).indexOf(e)}},30791:function(e,t,r){"use strict";function n(e,t){for(var r in e)if(({}).hasOwnProperty.call(e,r)&&(!({}).hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if(({}).hasOwnProperty.call(t,n)&&!({}).hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{w:function(){return n}})},20430:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(33558),o=r(75471),a=r(52017);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(f*c-s*l)>1e-6&&a){let d=r-i,h=o-u,y=c*c+s*s,v=Math.sqrt(y),m=Math.sqrt(p),g=a*Math.tan((n-Math.acos((y+p-(d*d+h*h))/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>1e-6&&this._append`L${e+b*l},${t+b*f}`,this._append`A${a},${a},0,0,${+(f*d>l*h)},${this._x1=e+w*c},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,r,i,u,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),f=e+s,p=t+l,d=1^c,h=c?i-u:u-i;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(h<0&&(h=h%o+o),h>a?this._append`A${r},${r},0,1,${d},${e-s},${t-l}A${r},${r},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=n)},${d},${this._x1=e+r*Math.cos(u)},${this._y1=t+r*Math.sin(u)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new u(t)}u.prototype},86:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},83231:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="";r td {\n border: none;\n padding: 0 5px 0 0;\n }\n }\n"]))),p=s.ZP.span(i||(i=(0,a.Z)(["\n font-weight: 600;\n"]))),h=s.ZP.ul(o||(o=(0,a.Z)(["\n list-style: none;\n margin: 0;\n & li {\n margin: 0;\n }\n"]))),f=function(e){var t=e.list,n=e.title,r=e.inline,i=void 0!==r&&r,o=e.testid;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:n}),((null==t?void 0:t.length)===1||i)&&(0,d.jsx)(p,{"data-testid":o,children:null==t?void 0:t.map(function(e,n){return(0,d.jsxs)("span",{children:[e,n!==t.length-1&&", "," "]},e)})})]}),!i&&((null==t?void 0:t.length)||0)>1&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{children:(0,d.jsx)(p,{children:(0,d.jsx)(h,{children:null==t?void 0:t.map(function(e){return(0,d.jsx)("li",{children:e},e)})})})})})]})};t.Z=function(e){var t,n,r,i,o,a,s,h,m=e.children,b=e.request,g=e.teams;if(!b)return null;var v=null!==(i=b.devIdps)&&void 0!==i?i:[],x="saml"!==b.protocol,j=v.map(function(e){return c.S[e]}),y="";b.usesTeam&&(y=(null===(h=(void 0===g?[]:g).find(function(e){return String(e.id)===String(b.teamId)}))||void 0===h?void 0:h.name)||b.team&&b.team.name);var O=(t=b.primaryEndUsers,n=b.primaryEndUsersOther,null==t?void 0:t.map(function(e){switch(e){case"livingInBC":return"People living in BC";case"businessInBC":return"People doing business/travel in BC";case"bcGovEmployees":return"BC Gov Employees";case"other":return"Other: ".concat(null!=n?n:"");default:return""}}));return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(u,{children:(0,d.jsxs)("tbody",{children:[y?(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Associated Team:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"associated-team",children:y})})]}):(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Are you accountable for this project?"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"you-accountable",children:void 0===(r=b.projectLead)?"":r?"Yes":"No"})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Client Protocol:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"client-protocol",children:x?"OpenID Connect":"SAML"})})]}),x&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Client Type:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"client-type-team",children:b.publicAccess?"Public":"Confidential"})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Usecase:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"use-case",children:l.F[b.authType||"browser-login"]})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Project Name:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"project-name",children:b.projectName})})]}),O&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Primary End Users:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"project-name",children:O.join(", ")})})]}),b.additionalRoleAttribute&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Additional Role Attribute:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"add-role-attrib",children:b.additionalRoleAttribute})})]}),(0,d.jsx)(f,{list:j,title:"Identity Providers Required:",inline:!0,testid:"idp-required"}),(null===(o=b.environments)||void 0===o?void 0:o.includes("dev"))&&(0,d.jsx)(f,{list:b.devValidRedirectUris,title:"Dev Redirect URIs:",testid:"dev-uri"}),(null===(a=b.environments)||void 0===a?void 0:a.includes("test"))&&(0,d.jsx)(f,{list:b.testValidRedirectUris,title:"Test Redirect URIs:",testid:"test-uri"}),(null===(s=b.environments)||void 0===s?void 0:s.includes("prod"))&&(0,d.jsx)(f,{list:b.prodValidRedirectUris,title:"Prod Redirect URIs:",testid:"prod-uri"}),m]})})})}},9225:function(e,t,n){n.d(t,{Z:function(){return nq}});var r,i,o,a,s,l,c,d,u,p,h,f,m,b,g,v,x,j,y,O,w,P,S,C,Z,k,D,I,T,A,E,F,N,L,R,U,q,B,M=n(16835),z=n(50029),W=n(59499),H=n(71383),G=n(87794),_=n.n(G),V=n(67294),Y=n(11163),K=n(71893),J=n(59722),$=n.n(J),Q=n(93096),X=n.n(Q),ee=n(71431),et=n.n(ee),en=n(61478),er=n.n(en),ei=n(70100),eo=n.n(ei),ea=n(85893),es=K.ZP.h1(r||(r=(0,H.Z)(["\n font-weight: lighter;\n color: #003366;\n margin: 0;\n"])));function el(e){var t=e.schema,n=e.requestId,r=e.editing,i=et()(String(n),8,"0"),o="".concat($()(n)?"":"Req ID: ".concat(i," - ")).concat(t.headerText);return(0,ea.jsx)(es,{children:(r?"Editing ":"")+o})}var ec=n(64735),ed=n(99603),eu=n(59417),ep=n(35683),eh=n.n(ep),ef=K.ZP.div(i||(i=(0,H.Z)(["\n height: 60px;\n width: 200px;\n background-color: #ebf7ff;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border-radius: 5px;\n padding: 15px;\n cursor: pointer;\n margin: 3px 0;\n ","\n"])),function(e){var t=e.color,n=e.backgroundColor,r=e.fontWeight,i=e.border;return"\n color: ".concat(t,";\n background-color: ").concat(n,";\n font-weight: ").concat(r,";\n border: ").concat(i,";\n ")}),em=K.ZP.div(o||(o=(0,H.Z)(["\n height: 40px;\n width: 40px;\n min-width: 40px;\n text-align: center;\n line-height: 40px;\n border-radius: 40px;\n border: 1px solid #b9d8f0;\n background-color: white;\n font-weight: bold;\n color: #31393f;\n"]))),eb=K.ZP.p(a||(a=(0,H.Z)(["\n margin: 0 0 0 5px;\n"])));function eg(e){var t=e.stageNumber,n=e.title,r=e.active,i=e.visited,o=e.handleClick,a=e.hasError,s="#999999",l="#F0F8FE",c="400",d="1px solid #999999";return r?a?(s="#FFFFFF",l="#D75757",c="700",d="2px solid #313131"):(s="#FFFFFF",l="#2A6FBE",c="700",d="2px solid #313131"):i&&(a?(s="#1A1A1A",l="#F1C0C0",c="700",d="1px solid #313131"):(s="#31393F",l="#C3E3FC",c="400",d="1px solid #313131")),(0,ea.jsxs)(ef,{color:s,backgroundColor:l,fontWeight:c,border:d,onClick:o,"data-testid":"stage-".concat(eh()(n)),children:[(0,ea.jsx)(em,{children:a?(0,ea.jsx)(ed.G,{icon:eu.eHv,color:"red",title:"Some additional fields require your attention."}):t}),(0,ea.jsx)(eb,{children:n})]})}var ev=K.ZP.div(s||(s=(0,H.Z)(["\n width: 824px;\n max-width: 100%;\n"])));function ex(e){var t=e.currentStage,n=e.setFormStage,r=e.errors,i=e.isNew,o=e.visited,a=e.schemas,s=function(e){i||n(e)};return(0,ea.jsx)(ev,{children:(0,ea.jsx)(ec.ZP,{cols:4,children:(0,ea.jsx)(ec.ZP.Row,{collapse:"992",gutter:[],children:null==a?void 0:a.map(function(e,n){return(0,ea.jsx)(ec.ZP.Col,{children:(0,ea.jsx)(eg,{title:e.stepText,stageNumber:n+1,active:n===t,hasError:!!r[n],visited:o[n],handleClick:function(){return s(n)}},n)},e.stepText)})})})})}var ej=n(56483),ey=n(76427),eO=n.n(ey),ew=n(11915),eP=n(30996),eS=n(35611);function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eZ(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=function(e){switch(e){case"checkbox":return"checked";case"file":return"files";default:return"value"}}(t);return function(r){var i=r.value,o=r.onChange,a=r.label,s=r.schema,l=r.options,c=r.required,d=r.disabled,u=r.onBlur,p=r.id,h=void 0===p?"":p,f=r.readonly,m=s.pattern,b=s.minLength,g=s.maxLength,v=s.placeholder,x=s.fullWidth,j=s.rows,y=l.enumOptions,O=void 0===y?[]:y,w={onChange:function(e){var t=e.target[n];""===t&&(t=void 0),"true"===t&&(t=!0),"false"===t&&(t=!1),o(t)},label:a,name:name,maxLength:g,id:h,required:c,disabled:d,minLength:b,type:t,pattern:m,onBlur:u,fullWidth:x,rows:j,readOnly:f,value:i||"",placeholder:v,checked:void 0!==i&&i};return("file"===t&&delete w.value,"checkbox"===t&&(w.value=!0),"radio"===t)?(0,ea.jsxs)("div",{children:[(0,ea.jsx)("label",{children:a}),O.map(function(t){return(0,ea.jsx)(e,eZ(eZ({},w),{},{label:t.label,value:t.value,checked:t.value===i,style:{padding:"2px 0"},size:"small",readOnly:f,onBlur:u}),t.value)})]}):(0,ea.jsx)(e,eZ(eZ({},w),{},{onBlur:u&&function(e){return u(h,e.target.value)},children:O&&O.map(function(e){var t=e.value,n=e.label;return(0,ea.jsx)("option",{value:t,children:n},t)})}))}},eD=n(31513);function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t=u&&(0,ea.jsx)(e9,{onClick:e.onDropIndexClick(e.index),children:(0,ea.jsx)(ed.G,{style:{color:"red"},icon:eu.uMC,title:"Remove Item"})})]})},e.index)}),"prod"===d?(0,ea.jsxs)(e7,{children:["*Note: wildcard* redirect URIs are ",(0,ea.jsx)("strong",{children:"not"})," allowed in Prod for security reasons."]}):(0,ea.jsx)(e7,{children:"*Note: Wildcards* are only permitted for domains or paths, not for the scheme in development and test environments."}),e.canAdd&&(0,ea.jsxs)(e5,{onClick:e.onAddClick,children:[(0,ea.jsx)(ed.G,{style:{color:"#006fc4"},icon:eu.KtF,onClick:e.onAddClick,title:"Add Item","data-testid":"add-uri"}),(0,ea.jsx)(e4,{children:c})]})]})}var te=n(61165),tt=n(91073),tn=n(99154),tr=n(15812),ti=n(3016),to=n(97644),ta=n.n(to),ts=n(39772),tl=n(90352);function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function td(e){for(var t=1;t input {\n margin-right: 5px;\n }\n"]))),tZ=function(e){var t=e.id,n=e.value,r=e.onChange,i=e.onBlur,o=e.schema;e.formContext;var a=o.enum,s=o.enumNames,l=(0,V.useState)(!1),c=l[0],d=l[1];return(0,ea.jsxs)("div",{children:[s.map(function(e,o){return(0,ea.jsxs)(tC,{children:[(0,ea.jsx)("input",{type:"radio",id:"".concat(t,"-").concat(e),name:t,value:e,checked:a[o]===n,onChange:function(){return r(a[o])},onBlur:function(){return i(t,n)}}),(0,ea.jsx)("label",{htmlFor:"".concat(t,"-").concat(e),children:e})]},e)}),(0,ea.jsxs)("div",{children:[(0,ea.jsx)(tj.default,{onClick:function(){return d(!0)},style:{cursor:"pointer"},children:"Click here"})," ","to get help deciding which client type to use."]}),(0,ea.jsx)(tS,{id:"client-helper",open:c,onChange:function(e){d(!1),"cancel"!==e&&r("public"===e)}})]})},tk=K.ZP.span(k||(k=(0,H.Z)(["\n display: inline-block;\n width: 200px;\n\n & label {\n font-weight: 700;\n font-size: 0.8rem;\n }\n"]))),tD=K.ZP.span(D||(D=(0,H.Z)(["\n display: inline-block;\n margin-right: 0.3rem;\n margin-bottom: 0.5rem;\n\n & input {\n height: 1.94rem;\n max-width: 3.125rem;\n }\n"]))),tI=K.ZP.span(I||(I=(0,H.Z)(["\n display: inline-block;\n\n & select {\n width: 100px;\n }\n\n & select:disabled {\n margin: 0;\n }\n"]))),tT=function(e){var t=e.id,n=e.value,r=void 0===n?0:n,i=e.label,o=e.readonly,a=e.onChange,s=(e.onBlur,e.schema);e.formContext,o&&(a=eR());var l=s.tooltipContent,c=(0,V.useState)(0),d=c[0],u=c[1],p=(0,V.useState)("Minutes"),h=p[0],f=p[1],m=function(e){if(0===e){u(0),f("Minutes");return}var t=e,n="Seconds";t%60==0&&(n="Minutes",t/=60),t%60==0&&(n="Hours",t/=60),t%24==0&&(n="Days",t/=24),u(t),f(n)};return(0,V.useEffect)(function(){m(r)},[r]),(0,ea.jsxs)("div",{children:[(0,ea.jsxs)(tk,{children:[(0,ea.jsx)("label",{htmlFor:t,children:i}),"\xa0",(0,ea.jsx)(eV.Z,{content:void 0===l?"":l})]}),(0,ea.jsx)(tD,{children:(0,ea.jsx)(ew.default,{type:"text",size:"small",id:t,name:i,value:d.toString(),onChange:function(e){var t=parseInt(e.target.value);isNaN(t)&&(t=0);var n=t;"Minutes"===h?n*=60:"Hours"===h?n*=3600:n*=86400,n>31536e3&&(n=31536e3),a(n),u(t)},disabled:o})}),(0,ea.jsx)(tI,{children:(0,ea.jsxs)(eS.default,{size:"small",onChange:function(e){var t=e.target.value,n=0;(n="Minutes"===t?60*d:"Hours"===t?3600*d:86400*d)>31536e3&&(n=31536e3),a(n),f(t)},value:h,disabled:o,children:[(0,ea.jsx)("option",{children:"Minutes"}),(0,ea.jsx)("option",{children:"Hours"}),(0,ea.jsx)("option",{children:"Days"})]})})]})};function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var tE=function(e){var t=e.options,n=e.value,r=e.required,i=e.disabled,o=e.readonly,a=e.autofocus,s=void 0!==a&&a,l=e.onBlur,c=e.onFocus,d=e.onChange,u=e.id,p=e.schema,h=Math.random().toString(),f=t.enumOptions,m=t.enumDisabled,b=t.inline,g=p.tooltips,v=Array.isArray(f)?f:[],x=Array.isArray(m)?m:[];return(0,ea.jsx)("div",{className:"field-radio-group",id:u,children:v.map(function(e,t){var a=e.value===n,p=-1!==x.indexOf(e.value),f=i||p||o?"disabled":"",m=(0,ea.jsxs)("span",{children:[(0,ea.jsx)("input",{type:"radio",checked:a,name:h,required:r,value:e.value,disabled:i||p||o,autoFocus:s&&0===t,onChange:function(t){return d(e.value)},onBlur:l&&function(e){return l(u,e.target.value)},onFocus:c&&function(e){return c(u,e.target.value)}}),(0,ea.jsx)("span",{children:e.label}),"\xa0",g[t]&&(0,ea.jsx)(eV.Z,function(e){for(var t=1;t\n Only the person who is responsible for this project should be submitting the integration request.\xa0\n If you are not the one accountable, please refer this request to a team member who will be accountable for this project.\n

"}},t9={type:"array",items:{type:"string",enum:["livingInBC","businessInBC","bcGovEmployees","other"],enumNames:["People living in BC","People doing business/travel in BC","BC Gov Employees","Other"]},uniqueItems:!0,title:"Who are the primary end users of your project/application? (select all that apply)"};function t4(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=t.map(function(e){return e.name});r.unshift("Select...");var i=t.map(function(e){return String(e.id)});i.unshift("");var o=t.length>0;return{type:"object",customValidation:["createTeam","projectName","projectLead"],headerText:"Enter requester information",stepText:"Requester Info",properties:t2(t2({projectName:{type:"string",title:"Project Name",maxLength:50},primaryEndUsers:t9},(null===(e=n.primaryEndUsers)||void 0===e?void 0:e.includes("other"))&&{primaryEndUsersOther:{type:"string",title:"Project Name",maxLength:100,placeholder:"Enter Details",rows:3}}),{},{usesTeam:{type:"boolean",title:"Project Team",description:"Would you like to allow multiple members to manage this integration?"}}),required:["projectName"],dependencies:{usesTeam:{oneOf:[{properties:{usesTeam:{enum:[!1]},projectLead:t5}},{properties:t2(t2({usesTeam:{enum:[!0]}},o&&{teamId:{type:"string",title:"Project Team",enum:i,enumNames:r}}),{},{createTeam:{type:"string"}})}]},projectLead:{oneOf:[{properties:{projectLead:{enum:[!0]}},required:["projectLead"]},{properties:{projectLead:{enum:[!1]}}}]}}}}var t6={type:"object",required:["agreeWithTerms"],headerText:"Terms and Conditions",stepText:"Terms and Conditions",properties:{agreeWithTerms:{type:"boolean",title:"I agree to the Terms and Conditions",default:null,enum:[null,!0]}}},t7=n(63005),t8=n(11752),ne=n.n(t8),nt=n(34155),nn=(ne()()||{}).publicRuntimeConfig,nr=(void 0===nn?{}:nn).include_digital_credential;function ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isAdmin:!0},n=e.protocol,r=e.authType,i=e.status,o={protocol:{type:"string",title:"Select Client Protocol",enum:["oidc","saml"],enumNames:["OpenID Connect","SAML"],tooltip:{content:"The OpenID Connect (OIDC) client protocol is recommended."}}},a=[];if("oidc"===n&&(o.authType={type:"string",title:"Select Usecase",enum:["browser-login","service-account","both"],enumNames:["Browser Login","Service Account","Browser Login and Service Account"],tooltip:"applied"===i?null:{content:"Note that once this is submitted, you will not be able to update and rather will need to create a new integration."},tooltips:[{content:"This enables standard OpenID Connect redirect based authentication with authorization code. In terms of OpenID Connect or OAuth2 specifications, this enables support of 'Authorization Code Flow' for this client."},{content:"This allows you to authenticate this client to Keycloak and retrieve access token dedicated to this client. In terms of OAuth2 specification, this enables support of 'Client Credentials Grant' for this client."},{content:"This enables 'Browser Login' and 'Service Account' both."}]},"browser-login"===r&&(o.publicAccess={type:"boolean",title:"Select Client Type",enum:[!0,!1],enumNames:["Public","Confidential"]}),a.push("publicAccess")),"service-account"!==r){var s=["idir","azureidir","bceidbasic","bceidbusiness","bceidboth","githubpublic","githubbcgov"];("true"===nr||"true"===nt.env.INCLUDE_DIGITAL_CREDENTIAL)&&s.push("digitalcredential");var l=s.map(function(e){return t7.S[e]});o.devIdps={type:"array",minItems:1,title:"Choose Identity Provider(s)",items:{type:"string",enum:s,enumNames:l},tooltips:s.map(function(e){return"azureidir"===e?{content:'\n To learn the difference between IDIR and IDIR with MFA,\n \n please visit our GitHub page about choosing an Identity Provider\n \n '),hide:3e3}:"digitalcredential"===e?{content:'To learn more about using the Digital Credential option visit our additional information.'),hide:3e3,alpha:!0}:null}),uniqueItems:!0,tooltip:{content:"The identity providers you add will let your users authenticate with those services."}}}return o.environments={type:"array",minItems:1,title:"Choose Environment(s)",items:{type:"string",enum:["dev","test","prod"],enumNames:["Development","Test","Production"]},uniqueItems:!0,tooltip:{content:"We will provide a separate client for each environment you can select. Select the environments required for your project."}},"saml"!==n&&(o.additionalRoleAttribute={type:"string",title:"Additional Role Attribute(optional)",tooltip:{content:'by default "client_roles" is the default attribute key name to include roles info, if you wish to include same info in another attribute, then use this\'\n }'},maxLength:50}),"saml"===n&&t.isAdmin&&(o.clientId={type:"string",title:"As SSO Admin. you can override the client id",tooltip:{content:"The client id should be a string without any spaces"},maxLength:250}),{type:"object",customValidation:["additionalRoleAttribute","clientId","devIdps","authType"],headerText:"Choose providers",stepText:"Basic Info",properties:o,required:a}}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t1?0:1},default:[""],addItemText:"Add another URI"};na(na({},nl),{},{title:"Test Redirect URIs"}),na(na({},nl),{},{title:"Prod Redirect URIs"});var nc='valid URI '),nd=na(na({},nl),{},{description:"You can use any ".concat(nc,' for your redirect URIs. We recommend only using your client for one application.'),title:"Dev Redirect URIs",tooltip:{content:"At least one redirect URI is required for each of DEV, TEST and PROD. If you don't know the redirect URI for one or\n more of these environments, you may provide any valid URI for now and change it later. We suggest something like\n 'http://localhost:1000'."}});function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function np(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"oidc";if(e.length===t.length)return t;var o=e.length1&&void 0!==arguments[1]&&arguments[1];if(!e||0===e.length)return[];var n=e.map(eo());return t&&(n=n.filter(function(e){return e})),0===n.length&&n.push(""),n},nU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.dropEmptyRedirectUris,r=void 0!==n&&n,i=nR(e.devValidRedirectUris,r),o=nR(e.testValidRedirectUris,r),a=nR(e.prodValidRedirectUris,r);return nA(nA({},e),{},{devValidRedirectUris:i,testValidRedirectUris:o,prodValidRedirectUris:a})},nq=(0,tr.hU)(function(e){var t,n,r,i,o,a,s=e.currentUser,l=e.request,c=e.alert,d=(0,Y.useRouter)(),u=d.query.step,p=u?Number(u):0,h=(0,V.useState)(l||{}),f=h[0],m=h[1],b=(0,V.useState)(p),g=b[0],v=b[1],x=(0,V.useState)(!1),j=x[0],y=x[1],O=(0,V.useState)(""),w=O[0],P=O[1],S=(0,V.useState)(!1),C=S[0],Z=S[1],k=(0,V.useState)({}),D=k[0],I=k[1],T=(0,V.useState)(l?{0:!0}:{}),A=T[0],E=T[1],F=(0,V.useState)([]),N=F[0],L=F[1],R=(0,V.useState)([]),U=R[0],q=R[1],B=(0,V.useContext)(nI.SurveyContext),W=$()(null==l?void 0:l.id),H=(null==l?void 0:l.status)==="applied",G=s.isAdmin||!1,K=0!==g||f.usesTeam||f.projectLead,J=g===U.length-1,Q=U[g]||{},ee=(0,V.useCallback)(X()((t=(0,z.Z)(_().mark(function e(t){var n;return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(W||H)){e.next=2;break}return e.abrupt("return");case 2:if(!l){e.next=11;break}return Z(!0),e.next=6,(0,nD.WN)(nA(nA({},t),{},{id:l.id}));case 6:n=e.sent,(0,M.Z)(n,2)[1]||P("Last saved at ".concat(new Date().toLocaleString())),Z(!1);case 11:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),2e3,{trailing:!0}),[null==l?void 0:l.id]),en=(n=(0,z.Z)(_().mark(function e(){var t,n,r,i;return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=W?ti.Dc:ti.l8,e.next=3,t();case 3:n=e.sent,i=(r=(0,M.Z)(n,2))[0],r[1]?c.show({variant:"danger",content:"Failed to load teams. Please refresh."}):L(i||[]);case 8:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),er=function(){q(nh({integration:l,formData:f,teams:N,isAdmin:G}))};(0,V.useEffect)(function(){en()},[]),(0,V.useEffect)(function(){f.primaryEndUsers&&!f.primaryEndUsers.includes("other")&&m(nA(nA({},f),{},{primaryEndUsersOther:""}))},[JSON.stringify(f.primaryEndUsers)]),(0,V.useEffect)(function(){er()},[f,g,N]);var ei=function(e){if(A[g]=!0,e===U.length-1)for(var t=0;t0?(c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"There were errors with your submission. Please see the navigation tabs above for the form pages with errors."}),I(e)):window.location.hash="confirmation-modal"},eh=H?(0,ea.jsx)(nk,{onConfirm:eo}):null,ef={continue:"",back:""},em=null===(a=f.devIdps)||void 0===a?void 0:a.includes("digitalcredential");return(J?(ef.continue=H?"Update":"Submit",ef.back=H?"Cancel":"Save and Close"):0===g&&W?(ef.continue="Next",ef.back=H?"Cancel":"Close"):(ef.continue="Next",ef.back=H?"Cancel":"Save and Close"),0===U.length)?null:(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)(nF,{children:[(0,ea.jsx)(el,{schema:Q,requestId:f.id,editing:H}),(0,ea.jsx)(ex,{currentStage:g,setFormStage:ei,errors:D,isNew:W,visited:A,schemas:U}),(0,ea.jsxs)(nE,{children:["If new to SSO, please"," ",(0,ea.jsx)(tj.default,{external:!0,href:"".concat(tl.UN,"/category/integrating-your-application"),children:"click to learn more on our wiki page"}),"."]})]}),(0,ea.jsx)(eF,{schema:Q,uiSchema:es,onChange:function(e){var t=nU(e.formData),n=nN((null==f?void 0:f.devIdps)||[],t.devIdps||[],"applied"===f.status,f.bceidApproved,f.protocol),r=!1===t.projectLead&&!1===t.usesTeam,i=!f.usesTeam&&!0===t.usesTeam,o=!0===t.bceidApproved&&nL(t.devIdps);f.protocol!==t.protocol&&n.length>1&&(n=[]);var a=nA(nA({},t),{},{devIdps:n});"saml"!==t.protocol&&(f.protocol!==t.protocol&&(a.clientId=""),a.devSamlLogoutPostBindingUri="",a.testSamlLogoutPostBindingUri="",a.prodSamlLogoutPostBindingUri=""),"saml"===t.protocol&&(0,tn.S3)(t)&&(a.devIdps=[]),"browser-login"!==t.authType&&(a.publicAccess=!1),i&&!0===a.projectLead&&!W&&(a.projectLead=!1),o&&(a.bceidApproved=!1),m(a),r&&(window.location.hash="info-modal"),ee(a)},onSubmit:ec,formData:f,formContext:{isAdmin:G,teams:N,formData:f,setFormData:m,loadTeams:en},FieldTemplate:e$,ArrayFieldTemplate:e8,liveValidate:A[g]||H,validate:tt.Mr,children:K?(0,ea.jsx)(eG,{formSubmission:W&&0===g,backButton:eh,text:ef,loading:j,handleSubmit:eu,handleBackClick:eo,savingStatus:{saving:C,content:w}}):(0,ea.jsx)(ea.Fragment,{})}),(0,ea.jsx)(te.Z,{id:"confirmation-modal",content:(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("p",{children:"Are you sure you're ready to submit your request?"}),em&&(0,ea.jsxs)("p",{children:["You will need to engage with DIT to learn about the Digital Credential Configuration ID. You can contact them at ",(0,ea.jsx)(tj.default,{href:"mailto:ditp.support@gov.bc.ca",children:"ditp.support@gov.bc.ca"}),"."]}),!G&&(0,ea.jsxs)("p",{children:["If you need to change anything after submitting your request, please contact our"," ",(0,ea.jsx)(tj.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel"})," ","or email ",(0,ea.jsx)(tj.default,{href:"mailto:bcgov.sso@gov.bc.ca",children:"bcgov.sso@gov.bc.ca"})]})]}),title:"Submitting Request",onConfirm:ed})]})})},39772:function(e,t,n){var r,i=n(16835),o=n(50029),a=n(71383),s=n(87794),l=n.n(s),c=n(67294),d=n(11915),u=n(71893),p=n(85330),h=n(3016),f=n(42894),m=n(15812),b=n(36575),g=n(91679),v=n(24444),x=n(85893),j=u.ZP.div(r||(r=(0,a.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"]))),y={idirEmail:"",role:"member",id:new Date().getTime()};t.Z=(0,m.hU)(function(e){var t,n=e.onSubmit,r=e.alert,a=((0,c.useContext)(v.SessionContext)||{}).session,s=(0,c.useState)([y]),u=s[0],m=s[1],O=(0,c.useState)(""),w=O[0],P=O[1],S=(0,c.useState)(!1),C=S[0],Z=S[1],k=(0,c.useState)(null),D=k[0],I=k[1],T=(t=(0,o.Z)(l().mark(function e(){var t,o,s,c,d,p,f,b;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t={name:w,members:u},o=(0,g.p)(t,a.email),c=(s=(0,i.Z)(o,2))[0],d=s[1],!c){e.next=5;break}return e.abrupt("return",I(d));case 5:return Z(!0),e.next=8,(0,h.Cm)(t);case 8:if(p=e.sent,b=(f=(0,i.Z)(p,2))[0],f[1]?r.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to create team. Please try again."}):r.show({variant:"success",fadeOut:1e4,closable:!0,content:"Team ".concat(w," successfully created")}),!b){e.next=16;break}return e.next=16,n(b.id);case 16:m([y]),P(""),Z(!1),I(null),window.location.hash="#";case 21:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,x.jsxs)("div",{children:[(0,x.jsx)(d.default,{label:"Team Name",onChange:function(e){P(e.target.value)},maxLength:"255","data-testid":"team-name",value:w}),D&&D.name&&(0,x.jsx)(b.Z,{children:null==D?void 0:D.name}),(0,x.jsx)("br",{}),(0,x.jsx)("strong",{children:"Team Members"}),(0,x.jsx)(g.Z,{errors:D,members:u,setMembers:m,currentUser:a}),(0,x.jsxs)(j,{children:[(0,x.jsx)(p.zx,{variant:"secondary",onClick:function(){m([y]),P(""),Z(!1),I(null),window.location.hash="#"},children:"Cancel"}),(0,x.jsx)(p.zx,{type:"button",onClick:T,"data-testid":"send-invitation",children:C?(0,x.jsx)(f.rj,{color:"#FFF",height:18,width:50,visible:C}):"Send Invitation"})]})]})})},91679:function(e,t,n){n.d(t,{p:function(){return M}});var r,i,o,a,s,l,c,d,u,p,h=n(59499),f=n(27812),m=n(71383);n(67294);var b=n(11915),g=n(35611),v=n(71893),x=n(48966),j=n.n(x),y=n(99603),O=n(59417),w=n(36575),P=n(74150),S=n(90352),C=n(35685),Z=n(67888),k=n(85893);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t .select-inner__control {\n padding: 0.13em 0;\n border: 2px solid #606060;\n visibility: inherit;\n\n &:focus-within {\n outline: 4px solid #3b99fc !important;\n outline-offset: 2px !important;\n }\n }\n"]))),R=(0,v.ZP)(y.G)(c||(c=(0,m.Z)(["\n align-self: center;\n color: red;\n cursor: pointer;\n"]))),U=(0,v.ZP)(y.G)(d||(d=(0,m.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n"]))),q=(0,v.ZP)(y.G)(u||(u=(0,m.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n color: white;\n background-color: black;\n"]))),B=v.ZP.p(p||(p=(0,m.Z)(["\n font-style: italic;\n font-size: 0.95em;\n"]))),M=function(e,t){var n={name:null,members:[]};return e.name||(n.name="Please enter a name"),e.members.forEach(function(r,i){r.idirEmail?j().isEmail(r.idirEmail)?(e.members.filter(function(e){return e.idirEmail===r.idirEmail}).length>1||r.idirEmail===t)&&(n.members[i]="Please use unique email"):n.members[i]="Please enter a valid email":n.members[i]="Please enter an email"}),[n.name||n.members.length>0,n]};t.Z=function(e){var t=e.errors,n=e.members,r=e.setMembers,i=e.allowDelete,o=void 0===i||i,a=e.currentUser,s=void 0===a?null:a,l=function(e,t){var i=I({},n[t]);i.idirEmail=(null==e?void 0:e.label.toLowerCase())||"";var o=(0,f.Z)(n);o[t]=i,r(o)},c=function(e,t){var i=I({},n[e]);i.role=t.target.value;var o=(0,f.Z)(n);o[e]=i,r(o)},d=function(e){r(n.filter(function(t,n){return n!==e}))};return(0,k.jsxs)("div",{children:[(0,k.jsxs)("p",{children:["Enter your team member’s government email address and they will be sent an invitation to join the project. Once they accept the invitation, they will have access to your project. Their invitation will expire in"," ",(0,k.jsx)("strong",{children:"2 business days"}),"."]}),(0,k.jsxs)("p",{children:[(0,k.jsx)("span",{className:"strong",children:"Roles:"}),(0,k.jsx)("br",{}),(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:(0,k.jsx)(q,{icon:O.Tab})}),"\xa0\xa0",(0,k.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Admins"}),(0,k.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,k.jsx)("b",{children:"managing"})," powers"]})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:(0,k.jsx)(U,{icon:O.Tab})}),"\xa0\xa0",(0,k.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Members"}),(0,k.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,k.jsx)("b",{children:"viewing"})," powers"]})]}),(0,k.jsx)("br",{}),(0,k.jsx)("div",{children:(0,k.jsx)("span",{className:"underline",children:(0,k.jsx)(P.default,{external:!0,href:(0,S.eO)("CSS-App-My-Teams#ive-created-a-team-now-what"),children:"View a detailed breakdown of roles on our wiki page"})})})]}),(0,k.jsxs)(N,{children:[(0,k.jsxs)(T,{children:[(0,k.jsx)("strong",{children:"Member"}),(0,k.jsx)("strong",{children:"Role"}),(0,k.jsx)(E,{})]}),(0,k.jsx)(B,{children:"*Please enter email address tied to an IDIR to allow your user to login"}),s&&(0,k.jsxs)(L,{children:[(0,k.jsx)(b.default,{value:(null==s?void 0:s.email)||"",readOnly:!0,fullWidth:!0}),(0,k.jsx)(A,{label:"Role",disabled:!0,value:"admin",readOnlyRole:!0,children:(0,k.jsx)("option",{value:"admin",children:"Admin"})})]}),n.map(function(e,n){return(0,k.jsxs)(L,{children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(C.Z,{loadOptions:Z.c,onChange:function(e){return l(e,n)},noOptionsMessage:function(){return"Start typing email..."},className:"email-select",menuPlacement:"top",maxMenuHeight:120,classNamePrefix:"select-inner",placeholder:"Enter email address"}),t&&t.members&&t.members[n]&&(0,k.jsx)(w.Z,{children:t.members[n]})]}),(0,k.jsxs)(A,{label:"Role",onChange:function(e){return c(n,e)},value:e.role,"data-testid":"user-role",children:[(0,k.jsx)("option",{value:"member",children:"Member"}),(0,k.jsx)("option",{value:"admin",children:"Admin"})]}),n>=0&&o&&(0,k.jsx)(R,{icon:O.uMC,onClick:function(){return d(n)},title:"Delete","data-testid":"delete-user-role"})]},e.id)}),(0,k.jsxs)(F,{onClick:function(){r([].concat((0,f.Z)(n),[{idirEmail:"",role:"member",id:new Date().getTime(),pending:!0}]))},children:[(0,k.jsx)(y.G,{style:{color:"#006fc4"},icon:O.KtF,title:"Add Item","data-testid":"add-user-role"}),(0,k.jsx)("span",{children:"Add another team member"})]})]})]})}},63005:function(e,t,n){n.d(t,{S:function(){return r}});var r={idir:"IDIR",azureidir:"IDIR - MFA",bceidbasic:"Basic BCeID",bceidbusiness:"Business BCeID",bceidboth:"Basic or Business BCeID",githubbcgov:"GitHub BC Gov",githubpublic:"GitHub",digitalcredential:"Digital Credential"}},77740:function(e,t,n){n.d(t,{F:function(){return r}});var r={"browser-login":"Browser Login","service-account":"Service Account",both:"Browser Login & Service Account"}},26700:function(e,t,n){n.d(t,{Z:function(){return g}});var r,i,o,a,s=n(71383);n(67294);var l=n(71893),c=n(74150),d=n(63055),u=n(90352),p=n(85893),h=l.ZP.h2(r||(r=(0,s.Z)(["\n text-transform: uppercase;\n margin-bottom: 0;\n font-size: ",";\n"])),d.CA),f=l.ZP.ul(i||(i=(0,s.Z)(["\n & li {\n margin: 0;\n }\n"]))),m=l.ZP.li(o||(o=(0,s.Z)(["\n &&& {\n margin-left: 20px;\n }\n"]))),b=l.ZP.div(a||(a=(0,s.Z)(["\n margin-top: ",";\n"])),d.SI);function g(){return(0,p.jsxs)(b,{children:[(0,p.jsx)(h,{children:"Requirements"}),(0,p.jsxs)(f,{children:[(0,p.jsx)("li",{children:"Keep your email address active, and if you are not using your integration, clean it up"}),(0,p.jsxs)("li",{children:["If you are not using your client app configuration,"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"ask us at rocketchat"})," ","for the detailed info"]})]}),(0,p.jsx)(h,{children:"We're a Community"}),(0,p.jsxs)(f,{children:[(0,p.jsxs)("li",{children:["As part of a community, we can solve things together and quickly. Please join the"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel on Rocket.Chat"})]}),(0,p.jsxs)("li",{children:["Please follow the",(0,p.jsx)(c.default,{external:!0,href:"https://digital.gov.bc.ca/resources/digital-principles",target:"_blank",rel:"noreferrer",children:"BC Government digital standards"})]}),(0,p.jsx)("li",{children:"Coordinate load testing with the Pathfinder SSO Team, and please only use the Test environment"}),(0,p.jsxs)("li",{children:["The SSO Service is multitenancy; meaning you share with others, so please coordinate with us (",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel on Rocket.Chat"})," ","or email at ",(0,p.jsx)(c.default,{href:"mailto:bcgov.sso@gov.bc.ca",children:"bcgov.sso@gov.bc.ca"}),") :",(0,p.jsxs)("ul",{children:[(0,p.jsxs)(m,{children:["if you predict moderate or high loads",(0,p.jsx)("br",{}),"OR",(0,p.jsx)("br",{})]}),(0,p.jsx)(m,{children:"if you need to conduct load testing or security scans please do in TEST only"})]})]})]}),(0,p.jsx)(h,{children:"What's included in the service"}),(0,p.jsx)(f,{children:(0,p.jsx)("li",{children:"The Standard realm is configured to meet the general needs of the community. Currently, custom configurations, such as scopes or flows, are not available"})}),(0,p.jsx)(h,{children:"Understanding the service level"}),(0,p.jsxs)(f,{children:[(0,p.jsxs)("li",{children:["Our service is available 24/7, except during planned outages within the Kamloops and Calgary data centres. Planned outages are communicated through"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"RocketChat"}),"."]}),(0,p.jsx)("li",{children:"Our regular business hours are weekdays from 9:00 am to 5:00 pm Pacific Time, excluding statutory holidays. Client provisioning questions and requests will be reviewed and handled during normal business hours. After hours support is provided by the Pathfinder SSO team, and is only available for service outages and other incidents that impact the service."}),(0,p.jsxs)("li",{children:["To learn more about our service uptime monitoring, please visit our"," ",(0,p.jsx)(c.default,{external:!0,href:(0,u.eO)("Pathfinder-Uptime-Monitoring/"),children:"uptime page on our wiki"})," ","and join our"," ",(0,p.jsx)(c.default,{external:!0,href:"https://subscribe.developer.gov.bc.ca/",children:"newsletter"})," ","to receive important updates on the service and any outages."]})]}),(0,p.jsx)(h,{children:"Contact Us"}),(0,p.jsx)(f,{children:(0,p.jsxs)("li",{children:["If you have any questions, please reach out to us on"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca",children:"Rocket.Chat"})," ","or"," ",(0,p.jsx)(c.default,{external:!0,href:"mailto:bcgov.sso@gov.bc.ca",children:"Email"})," ","the Pathfinder SSO Product Owner."]})})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/225-41640f12f7b5f023.js b/_next/static/chunks/225-41640f12f7b5f023.js deleted file mode 100644 index e1af7b5..0000000 --- a/_next/static/chunks/225-41640f12f7b5f023.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[225],{36575:function(e,t,n){var r,i=n(71383),o=n(71893).ZP.span(r||(r=(0,i.Z)(["\n color: #dc3545;\n margin: 0;\n padding: 0;\n"])));t.Z=o},19344:function(e,t,n){var r,i,o,a=n(71383),s=n(71893),l=n(77740),c=n(63005),d=n(85893),u=s.ZP.table(r||(r=(0,a.Z)(["\n font-size: unset;\n & tr {\n display: flex;\n margin-bottom: 5px;\n & > td {\n border: none;\n padding: 0 5px 0 0;\n }\n }\n"]))),p=s.ZP.span(i||(i=(0,a.Z)(["\n font-weight: 600;\n"]))),h=s.ZP.ul(o||(o=(0,a.Z)(["\n list-style: none;\n margin: 0;\n & li {\n margin: 0;\n }\n"]))),f=function(e){var t=e.list,n=e.title,r=e.inline,i=void 0!==r&&r,o=e.testid;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:n}),((null==t?void 0:t.length)===1||i)&&(0,d.jsx)(p,{"data-testid":o,children:null==t?void 0:t.map(function(e,n){return(0,d.jsxs)("span",{children:[e,n!==t.length-1&&", "," "]},e)})})]}),!i&&((null==t?void 0:t.length)||0)>1&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{children:(0,d.jsx)(p,{children:(0,d.jsx)(h,{children:null==t?void 0:t.map(function(e){return(0,d.jsx)("li",{children:e},e)})})})})})]})};t.Z=function(e){var t,n,r,i,o,a,s,h,m=e.children,b=e.request,g=e.teams;if(!b)return null;var v=null!==(i=b.devIdps)&&void 0!==i?i:[],x="saml"!==b.protocol,j=v.map(function(e){return c.S[e]}),y="";b.usesTeam&&(y=(null===(h=(void 0===g?[]:g).find(function(e){return String(e.id)===String(b.teamId)}))||void 0===h?void 0:h.name)||b.team&&b.team.name);var O=(t=b.primaryEndUsers,n=b.primaryEndUsersOther,null==t?void 0:t.map(function(e){switch(e){case"livingInBC":return"People living in BC";case"businessInBC":return"People doing business/travel in BC";case"bcGovEmployees":return"BC Gov Employees";case"other":return"Other: ".concat(null!=n?n:"");default:return""}}));return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(u,{children:(0,d.jsxs)("tbody",{children:[y?(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Associated Team:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"associated-team",children:y})})]}):(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Are you accountable for this project?"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"you-accountable",children:void 0===(r=b.projectLead)?"":r?"Yes":"No"})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Client Protocol:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"client-protocol",children:x?"OpenID Connect":"SAML"})})]}),x&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Client Type:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"client-type-team",children:b.publicAccess?"Public":"Confidential"})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Usecase:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"use-case",children:l.F[b.authType||"browser-login"]})})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Project Name:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"project-name",children:b.projectName})})]}),O&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Primary End Users:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"project-name",children:O.join(", ")})})]}),b.additionalRoleAttribute&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{children:"Additional Role Attribute:"}),(0,d.jsx)("td",{children:(0,d.jsx)(p,{"data-testid":"add-role-attrib",children:b.additionalRoleAttribute})})]}),(0,d.jsx)(f,{list:j,title:"Identity Providers Required:",inline:!0,testid:"idp-required"}),(null===(o=b.environments)||void 0===o?void 0:o.includes("dev"))&&(0,d.jsx)(f,{list:b.devValidRedirectUris,title:"Dev Redirect URIs:",testid:"dev-uri"}),(null===(a=b.environments)||void 0===a?void 0:a.includes("test"))&&(0,d.jsx)(f,{list:b.testValidRedirectUris,title:"Test Redirect URIs:",testid:"test-uri"}),(null===(s=b.environments)||void 0===s?void 0:s.includes("prod"))&&(0,d.jsx)(f,{list:b.prodValidRedirectUris,title:"Prod Redirect URIs:",testid:"prod-uri"}),m]})})})}},9225:function(e,t,n){n.d(t,{Z:function(){return nB}});var r,i,o,a,s,l,c,d,u,p,h,f,m,b,g,v,x,j,y,O,w,P,S,C,Z,k,D,I,T,A,E,F,N,L,R,U,q,B,M=n(16835),z=n(50029),W=n(59499),H=n(71383),G=n(87794),_=n.n(G),V=n(67294),Y=n(11163),K=n(71893),J=n(59722),$=n.n(J),Q=n(93096),X=n.n(Q),ee=n(71431),et=n.n(ee),en=n(61478),er=n.n(en),ei=n(70100),eo=n.n(ei),ea=n(85893),es=K.ZP.h1(r||(r=(0,H.Z)(["\n font-weight: lighter;\n color: #003366;\n margin: 0;\n"])));function el(e){var t=e.schema,n=e.requestId,r=e.editing,i=et()(String(n),8,"0"),o="".concat($()(n)?"":"Req ID: ".concat(i," - ")).concat(t.headerText);return(0,ea.jsx)(es,{children:(r?"Editing ":"")+o})}var ec=n(64735),ed=n(99603),eu=n(59417),ep=n(35683),eh=n.n(ep),ef=K.ZP.div(i||(i=(0,H.Z)(["\n height: 60px;\n width: 200px;\n background-color: #ebf7ff;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border-radius: 5px;\n padding: 15px;\n cursor: pointer;\n margin: 3px 0;\n ","\n"])),function(e){var t=e.color,n=e.backgroundColor,r=e.fontWeight,i=e.border;return"\n color: ".concat(t,";\n background-color: ").concat(n,";\n font-weight: ").concat(r,";\n border: ").concat(i,";\n ")}),em=K.ZP.div(o||(o=(0,H.Z)(["\n height: 40px;\n width: 40px;\n min-width: 40px;\n text-align: center;\n line-height: 40px;\n border-radius: 40px;\n border: 1px solid #b9d8f0;\n background-color: white;\n font-weight: bold;\n color: #31393f;\n"]))),eb=K.ZP.p(a||(a=(0,H.Z)(["\n margin: 0 0 0 5px;\n"])));function eg(e){var t=e.stageNumber,n=e.title,r=e.active,i=e.visited,o=e.handleClick,a=e.hasError,s="#999999",l="#F0F8FE",c="400",d="1px solid #999999";return r?a?(s="#FFFFFF",l="#D75757",c="700",d="2px solid #313131"):(s="#FFFFFF",l="#2A6FBE",c="700",d="2px solid #313131"):i&&(a?(s="#1A1A1A",l="#F1C0C0",c="700",d="1px solid #313131"):(s="#31393F",l="#C3E3FC",c="400",d="1px solid #313131")),(0,ea.jsxs)(ef,{color:s,backgroundColor:l,fontWeight:c,border:d,onClick:o,"data-testid":"stage-".concat(eh()(n)),children:[(0,ea.jsx)(em,{children:a?(0,ea.jsx)(ed.G,{icon:eu.eHv,color:"red",title:"Some additional fields require your attention."}):t}),(0,ea.jsx)(eb,{children:n})]})}var ev=K.ZP.div(s||(s=(0,H.Z)(["\n width: 824px;\n max-width: 100%;\n"])));function ex(e){var t=e.currentStage,n=e.setFormStage,r=e.errors,i=e.isNew,o=e.visited,a=e.schemas,s=function(e){i||n(e)};return(0,ea.jsx)(ev,{children:(0,ea.jsx)(ec.ZP,{cols:4,children:(0,ea.jsx)(ec.ZP.Row,{collapse:"992",gutter:[],children:null==a?void 0:a.map(function(e,n){return(0,ea.jsx)(ec.ZP.Col,{children:(0,ea.jsx)(eg,{title:e.stepText,stageNumber:n+1,active:n===t,hasError:!!r[n],visited:o[n],handleClick:function(){return s(n)}},n)},e.stepText)})})})})}var ej=n(56483),ey=n(76427),eO=n.n(ey),ew=n(11915),eP=n(30996),eS=n(35611);function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eZ(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=function(e){switch(e){case"checkbox":return"checked";case"file":return"files";default:return"value"}}(t);return function(r){var i=r.value,o=r.onChange,a=r.label,s=r.schema,l=r.options,c=r.required,d=r.disabled,u=r.onBlur,p=r.id,h=void 0===p?"":p,f=r.readonly,m=s.pattern,b=s.minLength,g=s.maxLength,v=s.placeholder,x=s.fullWidth,j=s.rows,y=l.enumOptions,O=void 0===y?[]:y,w={onChange:function(e){var t=e.target[n];""===t&&(t=void 0),"true"===t&&(t=!0),"false"===t&&(t=!1),o(t)},label:a,name:name,maxLength:g,id:h,required:c,disabled:d,minLength:b,type:t,pattern:m,onBlur:u,fullWidth:x,rows:j,readOnly:f,value:i||"",placeholder:v,checked:void 0!==i&&i};return("file"===t&&delete w.value,"checkbox"===t&&(w.value=!0),"radio"===t)?(0,ea.jsxs)("div",{children:[(0,ea.jsx)("label",{children:a}),O.map(function(t){return(0,ea.jsx)(e,eZ(eZ({},w),{},{label:t.label,value:t.value,checked:t.value===i,style:{padding:"2px 0"},size:"small",readOnly:f,onBlur:u}),t.value)})]}):(0,ea.jsx)(e,eZ(eZ({},w),{},{onBlur:u&&function(e){return u(h,e.target.value)},children:O&&O.map(function(e){var t=e.value,n=e.label;return(0,ea.jsx)("option",{value:t,children:n},t)})}))}},eD=n(31513);function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t=d&&(0,ea.jsx)(e4,{onClick:e.onDropIndexClick(e.index),children:(0,ea.jsx)(ed.G,{style:{color:"red"},icon:eu.uMC,title:"Remove Item"})})]})},e.index)}),(0,ea.jsxs)(e8,{children:["*Note: wildcard* redirect URIs are not allowed. Learn more"," ",(0,ea.jsx)(e0.rU,{href:"https://bcgov.github.io/sso-docs/integrating-your-application/redirects#wildcards-and-web-origins",external:!0,children:"here"})," ","and reach out to us if you have questions."]}),e.canAdd&&(0,ea.jsxs)(e9,{onClick:e.onAddClick,children:[(0,ea.jsx)(ed.G,{style:{color:"#006fc4"},icon:eu.KtF,onClick:e.onAddClick,title:"Add Item","data-testid":"add-uri"}),(0,ea.jsx)(e6,{children:c})]})]})}var tt=n(61165),tn=n(91073),tr=n(99154),ti=n(15812),to=n(3016),ta=n(97644),ts=n.n(ta),tl=n(39772),tc=n(90352);function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t input {\n margin-right: 5px;\n }\n"]))),tk=function(e){var t=e.id,n=e.value,r=e.onChange,i=e.onBlur,o=e.schema;e.formContext;var a=o.enum,s=o.enumNames,l=(0,V.useState)(!1),c=l[0],d=l[1];return(0,ea.jsxs)("div",{children:[s.map(function(e,o){return(0,ea.jsxs)(tZ,{children:[(0,ea.jsx)("input",{type:"radio",id:"".concat(t,"-").concat(e),name:t,value:e,checked:a[o]===n,onChange:function(){return r(a[o])},onBlur:function(){return i(t,n)}}),(0,ea.jsx)("label",{htmlFor:"".concat(t,"-").concat(e),children:e})]},e)}),(0,ea.jsxs)("div",{children:[(0,ea.jsx)(ty.default,{onClick:function(){return d(!0)},style:{cursor:"pointer"},children:"Click here"})," ","to get help deciding which client type to use."]}),(0,ea.jsx)(tC,{id:"client-helper",open:c,onChange:function(e){d(!1),"cancel"!==e&&r("public"===e)}})]})},tD=K.ZP.span(k||(k=(0,H.Z)(["\n display: inline-block;\n width: 200px;\n\n & label {\n font-weight: 700;\n font-size: 0.8rem;\n }\n"]))),tI=K.ZP.span(D||(D=(0,H.Z)(["\n display: inline-block;\n margin-right: 0.3rem;\n margin-bottom: 0.5rem;\n\n & input {\n height: 1.94rem;\n max-width: 3.125rem;\n }\n"]))),tT=K.ZP.span(I||(I=(0,H.Z)(["\n display: inline-block;\n\n & select {\n width: 100px;\n }\n\n & select:disabled {\n margin: 0;\n }\n"]))),tA=function(e){var t=e.id,n=e.value,r=void 0===n?0:n,i=e.label,o=e.readonly,a=e.onChange,s=(e.onBlur,e.schema);e.formContext,o&&(a=eR());var l=s.tooltipContent,c=(0,V.useState)(0),d=c[0],u=c[1],p=(0,V.useState)("Minutes"),h=p[0],f=p[1],m=function(e){if(0===e){u(0),f("Minutes");return}var t=e,n="Seconds";t%60==0&&(n="Minutes",t/=60),t%60==0&&(n="Hours",t/=60),t%24==0&&(n="Days",t/=24),u(t),f(n)};return(0,V.useEffect)(function(){m(r)},[r]),(0,ea.jsxs)("div",{children:[(0,ea.jsxs)(tD,{children:[(0,ea.jsx)("label",{htmlFor:t,children:i}),"\xa0",(0,ea.jsx)(eV.Z,{content:void 0===l?"":l})]}),(0,ea.jsx)(tI,{children:(0,ea.jsx)(ew.default,{type:"text",size:"small",id:t,name:i,value:d.toString(),onChange:function(e){var t=parseInt(e.target.value);isNaN(t)&&(t=0);var n=t;"Minutes"===h?n*=60:"Hours"===h?n*=3600:n*=86400,n>31536e3&&(n=31536e3),a(n),u(t)},disabled:o})}),(0,ea.jsx)(tT,{children:(0,ea.jsxs)(eS.default,{size:"small",onChange:function(e){var t=e.target.value,n=0;(n="Minutes"===t?60*d:"Hours"===t?3600*d:86400*d)>31536e3&&(n=31536e3),a(n),f(t)},value:h,disabled:o,children:[(0,ea.jsx)("option",{children:"Minutes"}),(0,ea.jsx)("option",{children:"Hours"}),(0,ea.jsx)("option",{children:"Days"})]})})]})};function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var tF=function(e){var t=e.options,n=e.value,r=e.required,i=e.disabled,o=e.readonly,a=e.autofocus,s=void 0!==a&&a,l=e.onBlur,c=e.onFocus,d=e.onChange,u=e.id,p=e.schema,h=Math.random().toString(),f=t.enumOptions,m=t.enumDisabled,b=t.inline,g=p.tooltips,v=Array.isArray(f)?f:[],x=Array.isArray(m)?m:[];return(0,ea.jsx)("div",{className:"field-radio-group",id:u,children:v.map(function(e,t){var a=e.value===n,p=-1!==x.indexOf(e.value),f=i||p||o?"disabled":"",m=(0,ea.jsxs)("span",{children:[(0,ea.jsx)("input",{type:"radio",checked:a,name:h,required:r,value:e.value,disabled:i||p||o,autoFocus:s&&0===t,onChange:function(t){return d(e.value)},onBlur:l&&function(e){return l(u,e.target.value)},onFocus:c&&function(e){return c(u,e.target.value)}}),(0,ea.jsx)("span",{children:e.label}),"\xa0",g[t]&&(0,ea.jsx)(eV.Z,function(e){for(var t=1;t\n Only the person who is responsible for this project should be submitting the integration request.\xa0\n If you are not the one accountable, please refer this request to a team member who will be accountable for this project.\n

"}},t4={type:"array",items:{type:"string",enum:["livingInBC","businessInBC","bcGovEmployees","other"],enumNames:["People living in BC","People doing business/travel in BC","BC Gov Employees","Other"]},uniqueItems:!0,title:"Who are the primary end users of your project/application? (select all that apply)"};function t6(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=t.map(function(e){return e.name});r.unshift("Select...");var i=t.map(function(e){return String(e.id)});i.unshift("");var o=t.length>0;return{type:"object",customValidation:["createTeam","projectName","projectLead"],headerText:"Enter requester information",stepText:"Requester Info",properties:t5(t5({projectName:{type:"string",title:"Project Name",maxLength:50},primaryEndUsers:t4},(null===(e=n.primaryEndUsers)||void 0===e?void 0:e.includes("other"))&&{primaryEndUsersOther:{type:"string",title:"Project Name",maxLength:100,placeholder:"Enter Details",rows:3}}),{},{usesTeam:{type:"boolean",title:"Project Team",description:"Would you like to allow multiple members to manage this integration?"}}),required:["projectName"],dependencies:{usesTeam:{oneOf:[{properties:{usesTeam:{enum:[!1]},projectLead:t9}},{properties:t5(t5({usesTeam:{enum:[!0]}},o&&{teamId:{type:"string",title:"Project Team",enum:i,enumNames:r}}),{},{createTeam:{type:"string"}})}]},projectLead:{oneOf:[{properties:{projectLead:{enum:[!0]}},required:["projectLead"]},{properties:{projectLead:{enum:[!1]}}}]}}}}var t7={type:"object",required:["agreeWithTerms"],headerText:"Terms and Conditions",stepText:"Terms and Conditions",properties:{agreeWithTerms:{type:"boolean",title:"I agree to the Terms and Conditions",default:null,enum:[null,!0]}}},t8=n(63005),ne=n(11752),nt=n.n(ne),nn=n(34155),nr=(nt()()||{}).publicRuntimeConfig,ni=(void 0===nr?{}:nr).include_digital_credential;function no(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isAdmin:!0},n=e.protocol,r=e.authType,i=e.status,o={protocol:{type:"string",title:"Select Client Protocol",enum:["oidc","saml"],enumNames:["OpenID Connect","SAML"],tooltip:{content:"The OpenID Connect (OIDC) client protocol is recommended."}}},a=[];if("oidc"===n&&(o.authType={type:"string",title:"Select Usecase",enum:["browser-login","service-account","both"],enumNames:["Browser Login","Service Account","Browser Login and Service Account"],tooltip:"applied"===i?null:{content:"Note that once this is submitted, you will not be able to update and rather will need to create a new integration."},tooltips:[{content:"This enables standard OpenID Connect redirect based authentication with authorization code. In terms of OpenID Connect or OAuth2 specifications, this enables support of 'Authorization Code Flow' for this client."},{content:"This allows you to authenticate this client to Keycloak and retrieve access token dedicated to this client. In terms of OAuth2 specification, this enables support of 'Client Credentials Grant' for this client."},{content:"This enables 'Browser Login' and 'Service Account' both."}]},"browser-login"===r&&(o.publicAccess={type:"boolean",title:"Select Client Type",enum:[!0,!1],enumNames:["Public","Confidential"]}),a.push("publicAccess")),"service-account"!==r){var s=["idir","azureidir","bceidbasic","bceidbusiness","bceidboth","githubpublic","githubbcgov"];("true"===ni||"true"===nn.env.INCLUDE_DIGITAL_CREDENTIAL)&&s.push("digitalcredential");var l=s.map(function(e){return t8.S[e]});o.devIdps={type:"array",minItems:1,title:"Choose Identity Provider(s)",items:{type:"string",enum:s,enumNames:l},tooltips:s.map(function(e){return"azureidir"===e?{content:'\n To learn the difference between IDIR and IDIR with MFA,\n \n please visit our GitHub page about choosing an Identity Provider\n \n '),hide:3e3}:"digitalcredential"===e?{content:'To learn more about using the Digital Credential option visit our additional information.'),hide:3e3,alpha:!0}:null}),uniqueItems:!0,tooltip:{content:"The identity providers you add will let your users authenticate with those services."}}}return o.environments={type:"array",minItems:1,title:"Choose Environment(s)",items:{type:"string",enum:["dev","test","prod"],enumNames:["Development","Test","Production"]},uniqueItems:!0,tooltip:{content:"We will provide a separate client for each environment you can select. Select the environments required for your project."}},"saml"!==n&&(o.additionalRoleAttribute={type:"string",title:"Additional Role Attribute(optional)",tooltip:{content:'by default "client_roles" is the default attribute key name to include roles info, if you wish to include same info in another attribute, then use this\'\n }'},maxLength:50}),"saml"===n&&t.isAdmin&&(o.clientId={type:"string",title:"As SSO Admin. you can override the client id",tooltip:{content:"The client id should be a string without any spaces"},maxLength:250}),{type:"object",customValidation:["additionalRoleAttribute","clientId","devIdps","authType"],headerText:"Choose providers",stepText:"Basic Info",properties:o,required:a}}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t1?0:1},default:[""],addItemText:"Add another URI"};ns(ns({},nc),{},{title:"Test Redirect URIs"}),ns(ns({},nc),{},{title:"Prod Redirect URIs"});var nd='valid URI '),nu=ns(ns({},nc),{},{description:"You can use any ".concat(nd,' for your redirect URIs. We recommend only using your client for one application.'),title:"Dev Redirect URIs",tooltip:{content:"At least one redirect URI is required for each of DEV, TEST and PROD. If you don't know the redirect URI for one or\n more of these environments, you may provide any valid URI for now and change it later. We suggest something like\n 'http://localhost:1000'."}});function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"oidc";if(e.length===t.length)return t;var o=e.length1&&void 0!==arguments[1]&&arguments[1];if(!e||0===e.length)return[];var n=e.map(eo());return t&&(n=n.filter(function(e){return e})),0===n.length&&n.push(""),n},nq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.dropEmptyRedirectUris,r=void 0!==n&&n,i=nU(e.devValidRedirectUris,r),o=nU(e.testValidRedirectUris,r),a=nU(e.prodValidRedirectUris,r);return nE(nE({},e),{},{devValidRedirectUris:i,testValidRedirectUris:o,prodValidRedirectUris:a})},nB=(0,ti.hU)(function(e){var t,n,r,i,o,a,s=e.currentUser,l=e.request,c=e.alert,d=(0,Y.useRouter)(),u=d.query.step,p=u?Number(u):0,h=(0,V.useState)(l||{}),f=h[0],m=h[1],b=(0,V.useState)(p),g=b[0],v=b[1],x=(0,V.useState)(!1),j=x[0],y=x[1],O=(0,V.useState)(""),w=O[0],P=O[1],S=(0,V.useState)(!1),C=S[0],Z=S[1],k=(0,V.useState)({}),D=k[0],I=k[1],T=(0,V.useState)(l?{0:!0}:{}),A=T[0],E=T[1],F=(0,V.useState)([]),N=F[0],L=F[1],R=(0,V.useState)([]),U=R[0],q=R[1],B=(0,V.useContext)(nT.SurveyContext),W=$()(null==l?void 0:l.id),H=(null==l?void 0:l.status)==="applied",G=s.isAdmin||!1,K=0!==g||f.usesTeam||f.projectLead,J=g===U.length-1,Q=U[g]||{},ee=(0,V.useCallback)(X()((t=(0,z.Z)(_().mark(function e(t){var n;return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(W||H)){e.next=2;break}return e.abrupt("return");case 2:if(!l){e.next=11;break}return Z(!0),e.next=6,(0,nI.WN)(nE(nE({},t),{},{id:l.id}));case 6:n=e.sent,(0,M.Z)(n,2)[1]||P("Last saved at ".concat(new Date().toLocaleString())),Z(!1);case 11:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),2e3,{trailing:!0}),[null==l?void 0:l.id]),en=(n=(0,z.Z)(_().mark(function e(){var t,n,r,i;return _().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=W?to.Dc:to.l8,e.next=3,t();case 3:n=e.sent,i=(r=(0,M.Z)(n,2))[0],r[1]?c.show({variant:"danger",content:"Failed to load teams. Please refresh."}):L(i||[]);case 8:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),er=function(){q(nf({integration:l,formData:f,teams:N,isAdmin:G}))};(0,V.useEffect)(function(){en()},[]),(0,V.useEffect)(function(){f.primaryEndUsers&&!f.primaryEndUsers.includes("other")&&m(nE(nE({},f),{},{primaryEndUsersOther:""}))},[JSON.stringify(f.primaryEndUsers)]),(0,V.useEffect)(function(){er()},[f,g,N]);var ei=function(e){if(A[g]=!0,e===U.length-1)for(var t=0;t0?(c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"There were errors with your submission. Please see the navigation tabs above for the form pages with errors."}),I(e)):window.location.hash="confirmation-modal"},eh=H?(0,ea.jsx)(nD,{onConfirm:eo}):null,ef={continue:"",back:""},em=null===(a=f.devIdps)||void 0===a?void 0:a.includes("digitalcredential");return(J?(ef.continue=H?"Update":"Submit",ef.back=H?"Cancel":"Save and Close"):0===g&&W?(ef.continue="Next",ef.back=H?"Cancel":"Close"):(ef.continue="Next",ef.back=H?"Cancel":"Save and Close"),0===U.length)?null:(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)(nN,{children:[(0,ea.jsx)(el,{schema:Q,requestId:f.id,editing:H}),(0,ea.jsx)(ex,{currentStage:g,setFormStage:ei,errors:D,isNew:W,visited:A,schemas:U}),(0,ea.jsxs)(nF,{children:["If new to SSO, please"," ",(0,ea.jsx)(ty.default,{external:!0,href:"".concat(tc.UN,"/category/integrating-your-application"),children:"click to learn more on our wiki page"}),"."]})]}),(0,ea.jsx)(eF,{schema:Q,uiSchema:es,onChange:function(e){var t=nq(e.formData),n=nL((null==f?void 0:f.devIdps)||[],t.devIdps||[],"applied"===f.status,f.bceidApproved,f.protocol),r=!1===t.projectLead&&!1===t.usesTeam,i=!f.usesTeam&&!0===t.usesTeam,o=!0===t.bceidApproved&&nR(t.devIdps);f.protocol!==t.protocol&&n.length>1&&(n=[]);var a=nE(nE({},t),{},{devIdps:n});"saml"!==t.protocol&&(f.protocol!==t.protocol&&(a.clientId=""),a.devSamlLogoutPostBindingUri="",a.testSamlLogoutPostBindingUri="",a.prodSamlLogoutPostBindingUri=""),"saml"===t.protocol&&(0,tr.S3)(t)&&(a.devIdps=[]),"browser-login"!==t.authType&&(a.publicAccess=!1),i&&!0===a.projectLead&&!W&&(a.projectLead=!1),o&&(a.bceidApproved=!1),m(a),r&&(window.location.hash="info-modal"),ee(a)},onSubmit:ec,formData:f,formContext:{isAdmin:G,teams:N,formData:f,setFormData:m,loadTeams:en},FieldTemplate:e$,ArrayFieldTemplate:te,liveValidate:A[g]||H,validate:tn.Mr,children:K?(0,ea.jsx)(eG,{formSubmission:W&&0===g,backButton:eh,text:ef,loading:j,handleSubmit:eu,handleBackClick:eo,savingStatus:{saving:C,content:w}}):(0,ea.jsx)(ea.Fragment,{})}),(0,ea.jsx)(tt.Z,{id:"confirmation-modal",content:(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)("p",{children:"Are you sure you're ready to submit your request?"}),em&&(0,ea.jsxs)("p",{children:["You will need to engage with DIT to learn about the Digital Credential Configuration ID. You can contact them at ",(0,ea.jsx)(ty.default,{href:"mailto:ditp.support@gov.bc.ca",children:"ditp.support@gov.bc.ca"}),"."]}),!G&&(0,ea.jsxs)("p",{children:["If you need to change anything after submitting your request, please contact our"," ",(0,ea.jsx)(ty.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel"})," ","or email ",(0,ea.jsx)(ty.default,{href:"mailto:bcgov.sso@gov.bc.ca",children:"bcgov.sso@gov.bc.ca"})]})]}),title:"Submitting Request",onConfirm:ed})]})})},39772:function(e,t,n){var r,i=n(16835),o=n(50029),a=n(71383),s=n(87794),l=n.n(s),c=n(67294),d=n(11915),u=n(71893),p=n(85330),h=n(3016),f=n(42894),m=n(15812),b=n(36575),g=n(91679),v=n(24444),x=n(85893),j=u.ZP.div(r||(r=(0,a.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"]))),y={idirEmail:"",role:"member",id:new Date().getTime()};t.Z=(0,m.hU)(function(e){var t,n=e.onSubmit,r=e.alert,a=((0,c.useContext)(v.SessionContext)||{}).session,s=(0,c.useState)([y]),u=s[0],m=s[1],O=(0,c.useState)(""),w=O[0],P=O[1],S=(0,c.useState)(!1),C=S[0],Z=S[1],k=(0,c.useState)(null),D=k[0],I=k[1],T=(t=(0,o.Z)(l().mark(function e(){var t,o,s,c,d,p,f,b;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t={name:w,members:u},o=(0,g.p)(t,a.email),c=(s=(0,i.Z)(o,2))[0],d=s[1],!c){e.next=5;break}return e.abrupt("return",I(d));case 5:return Z(!0),e.next=8,(0,h.Cm)(t);case 8:if(p=e.sent,b=(f=(0,i.Z)(p,2))[0],f[1]?r.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to create team. Please try again."}):r.show({variant:"success",fadeOut:1e4,closable:!0,content:"Team ".concat(w," successfully created")}),!b){e.next=16;break}return e.next=16,n(b.id);case 16:m([y]),P(""),Z(!1),I(null),window.location.hash="#";case 21:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,x.jsxs)("div",{children:[(0,x.jsx)(d.default,{label:"Team Name",onChange:function(e){P(e.target.value)},maxLength:"255","data-testid":"team-name",value:w}),D&&D.name&&(0,x.jsx)(b.Z,{children:null==D?void 0:D.name}),(0,x.jsx)("br",{}),(0,x.jsx)("strong",{children:"Team Members"}),(0,x.jsx)(g.Z,{errors:D,members:u,setMembers:m,currentUser:a}),(0,x.jsxs)(j,{children:[(0,x.jsx)(p.zx,{variant:"secondary",onClick:function(){m([y]),P(""),Z(!1),I(null),window.location.hash="#"},children:"Cancel"}),(0,x.jsx)(p.zx,{type:"button",onClick:T,"data-testid":"send-invitation",children:C?(0,x.jsx)(f.rj,{color:"#FFF",height:18,width:50,visible:C}):"Send Invitation"})]})]})})},91679:function(e,t,n){n.d(t,{p:function(){return M}});var r,i,o,a,s,l,c,d,u,p,h=n(59499),f=n(27812),m=n(71383);n(67294);var b=n(11915),g=n(35611),v=n(71893),x=n(48966),j=n.n(x),y=n(99603),O=n(59417),w=n(36575),P=n(74150),S=n(90352),C=n(35685),Z=n(67888),k=n(85893);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t .select-inner__control {\n padding: 0.13em 0;\n border: 2px solid #606060;\n visibility: inherit;\n\n &:focus-within {\n outline: 4px solid #3b99fc !important;\n outline-offset: 2px !important;\n }\n }\n"]))),R=(0,v.ZP)(y.G)(c||(c=(0,m.Z)(["\n align-self: center;\n color: red;\n cursor: pointer;\n"]))),U=(0,v.ZP)(y.G)(d||(d=(0,m.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n"]))),q=(0,v.ZP)(y.G)(u||(u=(0,m.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n color: white;\n background-color: black;\n"]))),B=v.ZP.p(p||(p=(0,m.Z)(["\n font-style: italic;\n font-size: 0.95em;\n"]))),M=function(e,t){var n={name:null,members:[]};return e.name||(n.name="Please enter a name"),e.members.forEach(function(r,i){r.idirEmail?j().isEmail(r.idirEmail)?(e.members.filter(function(e){return e.idirEmail===r.idirEmail}).length>1||r.idirEmail===t)&&(n.members[i]="Please use unique email"):n.members[i]="Please enter a valid email":n.members[i]="Please enter an email"}),[n.name||n.members.length>0,n]};t.Z=function(e){var t=e.errors,n=e.members,r=e.setMembers,i=e.allowDelete,o=void 0===i||i,a=e.currentUser,s=void 0===a?null:a,l=function(e,t){var i=I({},n[t]);i.idirEmail=(null==e?void 0:e.label.toLowerCase())||"";var o=(0,f.Z)(n);o[t]=i,r(o)},c=function(e,t){var i=I({},n[e]);i.role=t.target.value;var o=(0,f.Z)(n);o[e]=i,r(o)},d=function(e){r(n.filter(function(t,n){return n!==e}))};return(0,k.jsxs)("div",{children:[(0,k.jsxs)("p",{children:["Enter your team member’s government email address and they will be sent an invitation to join the project. Once they accept the invitation, they will have access to your project. Their invitation will expire in"," ",(0,k.jsx)("strong",{children:"2 business days"}),"."]}),(0,k.jsxs)("p",{children:[(0,k.jsx)("span",{className:"strong",children:"Roles:"}),(0,k.jsx)("br",{}),(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:(0,k.jsx)(q,{icon:O.Tab})}),"\xa0\xa0",(0,k.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Admins"}),(0,k.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,k.jsx)("b",{children:"managing"})," powers"]})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:(0,k.jsx)(U,{icon:O.Tab})}),"\xa0\xa0",(0,k.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Members"}),(0,k.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,k.jsx)("b",{children:"viewing"})," powers"]})]}),(0,k.jsx)("br",{}),(0,k.jsx)("div",{children:(0,k.jsx)("span",{className:"underline",children:(0,k.jsx)(P.default,{external:!0,href:(0,S.eO)("CSS-App-My-Teams#ive-created-a-team-now-what"),children:"View a detailed breakdown of roles on our wiki page"})})})]}),(0,k.jsxs)(N,{children:[(0,k.jsxs)(T,{children:[(0,k.jsx)("strong",{children:"Member"}),(0,k.jsx)("strong",{children:"Role"}),(0,k.jsx)(E,{})]}),(0,k.jsx)(B,{children:"*Please enter email address tied to an IDIR to allow your user to login"}),s&&(0,k.jsxs)(L,{children:[(0,k.jsx)(b.default,{value:(null==s?void 0:s.email)||"",readOnly:!0,fullWidth:!0}),(0,k.jsx)(A,{label:"Role",disabled:!0,value:"admin",readOnlyRole:!0,children:(0,k.jsx)("option",{value:"admin",children:"Admin"})})]}),n.map(function(e,n){return(0,k.jsxs)(L,{children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(C.Z,{loadOptions:Z.c,onChange:function(e){return l(e,n)},noOptionsMessage:function(){return"Start typing email..."},className:"email-select",menuPlacement:"top",maxMenuHeight:120,classNamePrefix:"select-inner",placeholder:"Enter email address"}),t&&t.members&&t.members[n]&&(0,k.jsx)(w.Z,{children:t.members[n]})]}),(0,k.jsxs)(A,{label:"Role",onChange:function(e){return c(n,e)},value:e.role,"data-testid":"user-role",children:[(0,k.jsx)("option",{value:"member",children:"Member"}),(0,k.jsx)("option",{value:"admin",children:"Admin"})]}),n>=0&&o&&(0,k.jsx)(R,{icon:O.uMC,onClick:function(){return d(n)},title:"Delete","data-testid":"delete-user-role"})]},e.id)}),(0,k.jsxs)(F,{onClick:function(){r([].concat((0,f.Z)(n),[{idirEmail:"",role:"member",id:new Date().getTime(),pending:!0}]))},children:[(0,k.jsx)(y.G,{style:{color:"#006fc4"},icon:O.KtF,title:"Add Item","data-testid":"add-user-role"}),(0,k.jsx)("span",{children:"Add another team member"})]})]})]})}},63005:function(e,t,n){n.d(t,{S:function(){return r}});var r={idir:"IDIR",azureidir:"IDIR - MFA",bceidbasic:"Basic BCeID",bceidbusiness:"Business BCeID",bceidboth:"Basic or Business BCeID",githubbcgov:"GitHub BC Gov",githubpublic:"GitHub",digitalcredential:"Digital Credential"}},77740:function(e,t,n){n.d(t,{F:function(){return r}});var r={"browser-login":"Browser Login","service-account":"Service Account",both:"Browser Login & Service Account"}},26700:function(e,t,n){n.d(t,{Z:function(){return g}});var r,i,o,a,s=n(71383);n(67294);var l=n(71893),c=n(74150),d=n(63055),u=n(90352),p=n(85893),h=l.ZP.h2(r||(r=(0,s.Z)(["\n text-transform: uppercase;\n margin-bottom: 0;\n font-size: ",";\n"])),d.CA),f=l.ZP.ul(i||(i=(0,s.Z)(["\n & li {\n margin: 0;\n }\n"]))),m=l.ZP.li(o||(o=(0,s.Z)(["\n &&& {\n margin-left: 20px;\n }\n"]))),b=l.ZP.div(a||(a=(0,s.Z)(["\n margin-top: ",";\n"])),d.SI);function g(){return(0,p.jsxs)(b,{children:[(0,p.jsx)(h,{children:"Requirements"}),(0,p.jsxs)(f,{children:[(0,p.jsx)("li",{children:"Keep your email address active, and if you are not using your integration, clean it up"}),(0,p.jsxs)("li",{children:["If you are not using your client app configuration,"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"ask us at rocketchat"})," ","for the detailed info"]})]}),(0,p.jsx)(h,{children:"We're a Community"}),(0,p.jsxs)(f,{children:[(0,p.jsxs)("li",{children:["As part of a community, we can solve things together and quickly. Please join the"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel on Rocket.Chat"})]}),(0,p.jsxs)("li",{children:["Please follow the",(0,p.jsx)(c.default,{external:!0,href:"https://digital.gov.bc.ca/resources/digital-principles",target:"_blank",rel:"noreferrer",children:"BC Government digital standards"})]}),(0,p.jsx)("li",{children:"Coordinate load testing with the Pathfinder SSO Team, and please only use the Test environment"}),(0,p.jsxs)("li",{children:["The SSO Service is multitenancy; meaning you share with others, so please coordinate with us (",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"#SSO channel on Rocket.Chat"})," ","or email at ",(0,p.jsx)(c.default,{href:"mailto:bcgov.sso@gov.bc.ca",children:"bcgov.sso@gov.bc.ca"}),") :",(0,p.jsxs)("ul",{children:[(0,p.jsxs)(m,{children:["if you predict moderate or high loads",(0,p.jsx)("br",{}),"OR",(0,p.jsx)("br",{})]}),(0,p.jsx)(m,{children:"if you need to conduct load testing or security scans please do in TEST only"})]})]})]}),(0,p.jsx)(h,{children:"What's included in the service"}),(0,p.jsx)(f,{children:(0,p.jsx)("li",{children:"The Standard realm is configured to meet the general needs of the community. Currently, custom configurations, such as scopes or flows, are not available"})}),(0,p.jsx)(h,{children:"Understanding the service level"}),(0,p.jsxs)(f,{children:[(0,p.jsxs)("li",{children:["Our service is available 24/7, except during planned outages within the Kamloops and Calgary data centres. Planned outages are communicated through"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca/channel/sso/",children:"RocketChat"}),"."]}),(0,p.jsx)("li",{children:"Our regular business hours are weekdays from 9:00 am to 5:00 pm Pacific Time, excluding statutory holidays. Client provisioning questions and requests will be reviewed and handled during normal business hours. After hours support is provided by the Pathfinder SSO team, and is only available for service outages and other incidents that impact the service."}),(0,p.jsxs)("li",{children:["To learn more about our service uptime monitoring, please visit our"," ",(0,p.jsx)(c.default,{external:!0,href:(0,u.eO)("Pathfinder-Uptime-Monitoring/"),children:"uptime page on our wiki"})," ","and join our"," ",(0,p.jsx)(c.default,{external:!0,href:"https://subscribe.developer.gov.bc.ca/",children:"newsletter"})," ","to receive important updates on the service and any outages."]})]}),(0,p.jsx)(h,{children:"Contact Us"}),(0,p.jsx)(f,{children:(0,p.jsxs)("li",{children:["If you have any questions, please reach out to us on"," ",(0,p.jsx)(c.default,{external:!0,href:"https://chat.developer.gov.bc.ca",children:"Rocket.Chat"})," ","or"," ",(0,p.jsx)(c.default,{external:!0,href:"mailto:bcgov.sso@gov.bc.ca",children:"Email"})," ","the Pathfinder SSO Product Owner."]})})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/254-dbd475d1aa747176.js b/_next/static/chunks/254-dbd475d1aa747176.js new file mode 100644 index 0000000..8063e20 --- /dev/null +++ b/_next/static/chunks/254-dbd475d1aa747176.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[254],{35611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(96282),o=n(69829),a={shared:{label:"\n display: block;\n margin-bottom: 0.2777em;\n ",wrapper:"\n position: relative;\n display: flex;\n background: #fff;\n overflow: hidden;\n border: 2px solid #606060;\n border-radius: 0;\n padding: 0.3em 0;\n\n &:after {\n content: ' ';\n background-image: "+(0,o.toSvgUrl)(o.ChevronDown)+";\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 0.2em;\n width: 1.2em;\n height: 100%;\n text-align: center;\n cursor: pointer;\n pointer-events: none;\n -webkit-transition: .25s all ease;\n -o-transition: .25s all ease;\n transition: .25s all ease;\n }\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n\n &:hover::after {}\n ",input:"\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background: #fff;\n background-image: none;\n display: inline-block;\n flex: 1;\n padding: 0 .5em;\n color: #000;\n cursor: pointer;\n\n &::-ms-expand {\n display: none;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},rounded:{wrapper:"\n border-radius: 0.25em;\n "}};t.styles=a;var i=(0,r.applyTheme)(a,{defaultProps:{size:"medium",rounded:!0,required:!1},staticProps:["fullWidth"],includeWrapper:!0});t.default=i},64735:function(e,t,n){"use strict";t.ZP=void 0;var r=(0,n(70623).applyTheme)({},{defaultProps:{},staticProps:[],cols:20,gutter:[5,2]});t.ZP=r},74150:function(e,t,n){"use strict";var r,o=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.content,n=e.external,r=e.children,o=(0,i.default)(e,["content","external","children"]);return c.default.createElement(p,(0,a.default)({target:n?"_blank":"_self"},o),t||r,n&&c.default.createElement(c.default.Fragment,null,"\xa0",c.default.createElement(l.FaSVG,null,c.default.createElement("path",{fill:"currentColor",d:l.ExternalLinkAlt}))))},t.sizes=void 0;var a=o(n(87462)),i=o(n(63366)),u=o(n(81880)),c=o(n(67294)),s=o(n(8557)),l=n(69829),f={small:"0.8rem",medium:"1rem",large:"1.2rem"};t.sizes=f;var p=s.default.a(r||(r=(0,u.default)(["\n font-size: ",";\n color: #1a5a96;\n\n &:hover {\n text-decoration: none;\n color: blue;\n }\n\n &:focus {\n outline: 4px solid #3b99fc;\n outline-offset: 1px;\n }\n"])),function(e){return f[e.size||"medium"]})},74857:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(63236),o={shared:{label:"\n display: block;\n position: relative;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n height: 1em;\n line-height: 1em;\n padding-left: 1.5em;\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n ",input:"\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .dot {\n background-color: #ffffff;\n }\n\n &:checked ~ .dot:after {\n display: block;\n }\n ",dot:'\n position: absolute;\n top: 0;\n left: 0;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n box-shadow: 0px 0px 0px 2px #606060 inset;\n\n &:after {\n content: "";\n position: absolute;\n display: none;\n top: 50%;\n left: 50%;\n width: 0.5em;\n height: 0.5em;\n border-radius: 50%;\n background: #606060;\n transform: translate(-50%, -50%);\n }\n '},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};t.styles=o;var a=(0,r.applyTheme)(o,{defaultProps:{size:"medium"},staticProps:[]});t.default=a},70623:function(e,t,n){"use strict";var r,o,a=n(64836),i=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var u=a(n(63366)),c=a(n(87462)),s=a(n(81880)),l=i(n(67294)),f=a(n(86010)),p=a(n(78096)),d=n(80927),h="pg-grid-col",y={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around"},v={top:"flex-start",center:"center",bottom:"flex-end"},m=l.default.createContext({styleProps:{},Srow:null,Scol:null,cols:16,gutter:0,gutterUnit:"px",justify:"start",align:"start"}),g=function(e,t){var n,a,i=(0,d.processStyle)(e),g=(0,d.createStyleBuilder)(i,t),b=t.as||{},w=g(b.container||"div","container"),x=g((n=b.row||"div",p.default[n](r||(r=(0,s.default)(["\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: inherit;\n -ms-flex-pack: inherit;\n justify-content: inherit;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n ","\n "])),function(e){return"\n margin-left: -"+e.gutterHorizontal+e.gutterUnit+";\n margin-right: -"+e.gutterHorizontal+e.gutterUnit+";\n row-gap: "+e.gutterVertical+e.gutterUnit+";\n & > ."+h+" {\n padding: "+e.gutterVertical+e.gutterUnit+" "+e.gutterHorizontal+e.gutterUnit+";\n }\n justify-content: "+y[e.justify]+";\n align-items: "+v[e.align]+";\n "+(e.collapse?"@media (max-width: "+e.collapse+"px) {\n -webkit-box-orient: vertical;\n -ms-flex-direction: column;\n flex-direction: column;\n & > ."+h+" {\n width: 100% !important;\n }\n }\n ":"")+"\n "})),"row"),O=g((a=b.col||"div",p.default[a](o||(o=(0,s.default)(["\n width: ","%;\n "])),function(e){return e.width})),"col"),k=t.cols,S=void 0===k?16:k,D=t.gutter,j=t.gutterUnit,_=t.justify,E=t.align,P=(0,d.createBootstrap)(i,"grid"),M=function(e){var t=P(e),n=(t.id,t.name,t.label,t.ariaLabel,t.styleProps),r=t.children,o=t.className,a=t.rest,i=a.cols;return l.default.createElement(m.Provider,{value:{styleProps:n,Srow:x,Scol:O,cols:i||S,gutter:D,gutterUnit:j,justify:_,align:E}},l.default.createElement(w,(0,c.default)({},a,{className:(0,f.default)("pg-grid-container",o)}),r))};return M.Row=function(e){var t=(0,l.useContext)(m),n=t.Srow,r=t.styleProps,o=t.gutter,a=t.gutterUnit,i=t.justify,s=t.align,p=e.children,d=e.className,h=e.gutter,y=void 0===h?o:h,v=e.gutterUnit,g=e.justify,b=e.align,w=e.collapse,x=(0,u.default)(e,["children","className","gutter","gutterUnit","justify","align","collapse"]),O=(0,f.default)("pg-grid-row",d),k=0,S=0;if(Array.isArray(y))k=y[0]||0,S=y[1]||0;else{var D=y||0;k=D,S=D}return l.default.createElement(n,(0,c.default)({className:O},r,x,{collapse:w||"",gutterHorizontal:k,gutterVertical:S,gutterUnit:(void 0===v?a:v)||"px",justify:(void 0===g?i:g)||"start",align:(void 0===b?s:b)||"start"}),p)},M.Col=function(e){var t=e.children,n=e.className,r=e.span,o=(0,u.default)(e,["children","className","span"]),a=(0,f.default)(h,n),i=(0,l.useContext)(m),s=i.Scol,p=i.cols,d=i.styleProps;return l.default.createElement(s,(0,c.default)({className:a},d,o,{width:(void 0===r?1:r)/p*100}),t)},M};t.applyTheme=g;var b=g({},{});t.default=b},63236:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=r(n(87462)),a=r(n(63366)),i=r(n(67294)),u=r(n(86010)),c=n(80927),s=function(e,t){var n=(0,c.processStyle)(e),r=(0,c.createStyleBuilder)(n,t),s=r((t.as||{}).container||"div","container"),l=r("label","label"),f=r("input","input"),p=r("span","dot"),d=(0,c.createBootstrap)(n,"radio");return function(e){var t=d(e),n=t.id,r=t.name,c=t.label,h=t.ariaLabel,y=t.styleProps,v=t.className,m=t.rest,g=m.style,b=m.labelStyle,w=m.inputStyle,x=m.dotStyle,O=(0,a.default)(m,["style","labelStyle","inputStyle","dotStyle"]);return i.default.createElement(s,(0,o.default)({},y,{style:g,className:(0,u.default)("pg-radio",v)}),i.default.createElement(l,(0,o.default)({},y,{htmlFor:n,style:b,className:"pg-radio-label"}),i.default.createElement(f,(0,o.default)({"aria-label":h},O,{type:"radio",id:n,name:r,style:w,className:"pg-radio-input"})),i.default.createElement(p,(0,o.default)({},y,{style:x,className:"dot"})),c))}};t.applyTheme=s;var l=s({},{});t.default=l},96282:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=r(n(87462)),a=r(n(63366)),i=r(n(67294)),u=r(n(86010)),c=n(80927),s=function(e,t){var n=(0,c.processStyle)(e),r=(0,c.createStyleBuilder)(n,t),s=t.as||{},l=r(s.container||"div","container"),f=r("label","label"),p=t.includeWrapper?r(s.wrapper||"div","wrapper"):null,d=r("select","input"),h=(0,c.createBootstrap)(n,"select");return function(e){var t=h(e),n=t.id,r=t.name,c=t.label,s=t.ariaLabel,y=t.styleProps,v=t.children,m=t.className,g=t.rest,b=g.style,w=g.labelStyle,x=g.inputStyle,O=g.wrapperStyle,k=(0,a.default)(g,["style","labelStyle","inputStyle","wrapperStyle"]),S=i.default.createElement(d,(0,o.default)({"aria-label":s},k,{id:n,name:r,style:x,className:"pg-select-input"}),v);return i.default.createElement(l,(0,o.default)({},y,{style:b,className:(0,u.default)("pg-select",m)}),c&&i.default.createElement(f,(0,o.default)({htmlFor:n},y,{style:w,className:"pg-select-label"}),c),p?i.default.createElement(p,(0,o.default)({},y,{style:O,className:"pg-select-wrapper"}),S):S)}};t.applyTheme=s;var l=s({},{staticProps:["fullWidth"]});t.default=l},94184:function(e,t){var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function c(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,u=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var u=i[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:i,formatRelative:function(e,t,n,r){return u[e]},localize:{ordinalNumber:function(e,t){var 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"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:c({values:{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"]},defaultWidth:"wide"}),day:c({values:{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"]},defaultWidth:"wide"}),dayPeriod:c({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var o=n[0],a=e.match(r.parsePattern);if(!a)return null;var i=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:s({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r={};function o(){return r}},97621:function(e,t){"use strict";var n=function(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"});default:return t.date({width:"full"})}},r=function(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"});default:return t.time({width:"full"})}};t.Z={p:r,P:function(e,t){var o,a=e.match(/(P+)(p+)?/)||[],i=a[1],u=a[2];if(!u)return n(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(i,t)).replace("{{time}}",r(u,t))}}},24262:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},33276:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(19013),o=n(66979),a=n(7032),i=n(13882);function u(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return Math.round(((0,o.Z)(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=(0,a.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.Z)(n)})(t).getTime())/6048e5)+1}},7032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19013),o=n(13882),a=n(66979);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var u=(0,a.Z)(i),c=new Date(0);c.setUTCFullYear(n,0,4),c.setUTCHours(0,0,0,0);var s=(0,a.Z)(c);return t.getTime()>=u.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}},5230:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19013),o=n(59025),a=n(7651),i=n(13882),u=n(83946),c=n(84314);function s(e,t){(0,i.Z)(1,arguments);var n=(0,r.default)(e);return Math.round(((0,o.Z)(n,t).getTime()-(function(e,t){(0,i.Z)(1,arguments);var n,r,s,l,f,p,d,h,y=(0,c.j)(),v=(0,u.Z)(null!==(n=null!==(r=null!==(s=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(f=t.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:y.firstWeekContainsDate)&&void 0!==r?r:null===(d=y.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),m=(0,a.Z)(e,t),g=new Date(0);return g.setUTCFullYear(m,0,v),g.setUTCHours(0,0,0,0),(0,o.Z)(g,t)})(n,t).getTime())/6048e5)+1}},7651:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(19013),o=n(13882),a=n(59025),i=n(83946),u=n(84314);function c(e,t){(0,o.Z)(1,arguments);var n,c,s,l,f,p,d,h,y=(0,r.default)(e),v=y.getUTCFullYear(),m=(0,u.j)(),g=(0,i.Z)(null!==(n=null!==(c=null!==(s=null!==(l=null==t?void 0:t.firstWeekContainsDate)&&void 0!==l?l:null==t?void 0:null===(f=t.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:m.firstWeekContainsDate)&&void 0!==c?c:null===(d=m.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(g>=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,g),b.setUTCHours(0,0,0,0);var w=(0,a.Z)(b,t),x=new Date(0);x.setUTCFullYear(v,0,g),x.setUTCHours(0,0,0,0);var O=(0,a.Z)(x,t);return y.getTime()>=w.getTime()?v+1:y.getTime()>=O.getTime()?v:v-1}},5267:function(e,t,n){"use strict";n.d(t,{Do:function(){return i},Iu:function(){return a},qp:function(){return u}});var r=["D","DD"],o=["YY","YYYY"];function a(e){return -1!==r.indexOf(e)}function i(e){return -1!==o.indexOf(e)}function u(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},13882:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},66979:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},59025:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(19013),o=n(13882),a=n(83946),i=n(84314);function u(e,t){(0,o.Z)(1,arguments);var n,u,c,s,l,f,p,d,h=(0,i.j)(),y=(0,a.Z)(null!==(n=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),m=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((m=c.getDate())?c:(n.setFullYear(c.getFullYear(),c.getMonth(),u),n)}},8791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(11640),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,3*n)}},63500:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(77349),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,7*n)}},21593:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(11640),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,12*n)}},36948:function(e,t,n){"use strict";n.d(t,{qk:function(){return a},vh:function(){return o},yJ:function(){return r}});var r=6e4,o=36e5,a=1e3},92300:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24262),o=n(69119),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,o.default)(t);return Math.round((n.getTime()-(0,r.Z)(n)-(i.getTime()-(0,r.Z)(i)))/864e5)}},84129:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}},91857:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()-a.getFullYear()}},83894:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4135:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},67090:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(84314),o=n(19013),a=n(83946),i=n(13882);function u(e,t){(0,i.Z)(1,arguments);var n,u,c,s,l,f,p,d,h=(0,r.j)(),y=(0,a.Z)(null!==(n=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.default)(e),m=v.getDay();return v.setDate(v.getDate()+((m0?n:1-n;return f("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function h(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+(t||"")+f(a,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(n/60),2)+(t||"")+f(n%60,2)}var m={G:function(e,t,n){var r=e.getUTCFullYear()>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"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var o=(0,l.Z)(e,r),a=o>0?o:1-o;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,c.Z)(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(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"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(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"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.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"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return f(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,s.Z)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?d.noon:0===o?d.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?d.evening:o>=12?d.afternoon:o>=4?d.morning:d.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return y(o);case"XXXX":case"XX":return v(o);default:return v(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(o);case"xxxx":case"xx":return v(o);default:return v(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+h(o,":");default:return"GMT"+v(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+h(o,":");default:return"GMT"+v(o,":")}},t:function(e,t,n,r){return f(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}},g=n(97621),b=n(24262),w=n(5267),x=n(83946),O=n(84314),k=n(86559),S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,_=/''/g,E=/[a-zA-Z]/;function P(e,t,n){(0,i.Z)(2,arguments);var u,c,s,l,f,p,d,h,y,v,P,M,T,C,A,N,I,R,L=String(t),B=(0,O.j)(),Y=null!==(u=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:B.locale)&&void 0!==u?u:k.Z,F=(0,x.Z)(null!==(s=null!==(l=null!==(f=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:B.firstWeekContainsDate)&&void 0!==l?l:null===(y=B.locale)||void 0===y?void 0:null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==s?s:1);if(!(F>=1&&F<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=(0,x.Z)(null!==(P=null!==(M=null!==(T=null!==(C=null==n?void 0:n.weekStartsOn)&&void 0!==C?C:null==n?void 0:null===(A=n.locale)||void 0===A?void 0:null===(N=A.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==T?T:B.weekStartsOn)&&void 0!==M?M:null===(I=B.locale)||void 0===I?void 0:null===(R=I.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==P?P:0);if(!(U>=0&&U<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw RangeError("locale must contain localize property");if(!Y.formatLong)throw RangeError("locale must contain formatLong property");var W=(0,a.default)(e);if(!(0,r.default)(W))throw RangeError("Invalid time value");var Z=(0,b.Z)(W),H=(0,o.Z)(W,Z),z={firstWeekContainsDate:F,weekStartsOn:U,locale:Y,_originalDate:W};return L.match(D).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,g.Z[t])(e,Y.formatLong):e}).join("").match(S).map(function(r){if("''"===r)return"'";var o,a=r[0];if("'"===a)return(o=r.match(j))?o[1].replace(_,"'"):r;var i=m[a];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,w.Do)(r)&&(0,w.qp)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,w.Iu)(r)&&(0,w.qp)(r,t,String(e)),i(H,r,Y.localize,z);if(a.match(E))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}},55855:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDate()}},20466:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDay()}},85817:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getHours()}},90259:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(19013),o=n(584),a=n(13882);function i(e){return(0,a.Z)(1,arguments),(0,o.default)(e,{weekStartsOn:1})}function u(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e);return Math.round((i(t).getTime()-(function(e){(0,a.Z)(1,arguments);var t=function(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var u=i(o),c=new Date(0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);var s=i(c);return t.getTime()>=u.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),i(n)})(t).getTime())/6048e5)+1}},39159:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMinutes()}},78966:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMonth()}},56605:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),Math.floor((0,r.default)(e).getMonth()/3)+1}},77881:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getSeconds()}},28789:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getTime()}},95570:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getFullYear()}},42699:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()>a.getTime()}},313:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()=a&&n<=i}},99890:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(86),o=n(19013),a=n(13882);function i(e){var t,n;if((0,a.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,o.default)(e);(void 0===n||nt||isNaN(t.getDate()))&&(n=t)}),n||new Date(NaN)}},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eA}});var r=n(86);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}var i=n(86559),u=n(91218),c=n(19013),s=n(97621),l=n(24262),f=n(5267),p=n(83946),d=n(13882);function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw 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&&y(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function b(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function w(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}function x(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function F(e){return e%400==0||e%4==0&&e%100!=0}var U=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Y(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),W=n(7651),Z=n(59025),H=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a0}},{key:"set",value:function(e,t,n,r){var o=(0,W.Z)(e,r);if(n.isTwoDigitYear){var a=Y(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Z.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Z.Z)(e,r)}}]),n}(_),z=n(66979),$=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),V=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),G=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),X=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_),Q=n(5230),J=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Z.Z)(function(e,t,n){(0,d.Z)(2,arguments);var r=(0,c.default)(e),o=(0,p.Z)(t),a=(0,Q.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(_),ee=n(33276),et=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,z.Z)(function(e,t){(0,d.Z)(2,arguments);var n=(0,c.default)(e),r=(0,p.Z)(t),o=(0,ee.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(_),en=[31,28,31,30,31,30,31,31,30,31,30,31],er=[31,29,31,30,31,30,31,31,30,31,30,31],eo=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=er[r]:t>=1&&t<=en[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(_),ea=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(_),ei=n(84314);function eu(e,t,n){(0,d.Z)(2,arguments);var r,o,a,i,u,s,l,f,h=(0,ei.j)(),y=(0,p.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n?void 0:null===(u=n.locale)||void 0===u?void 0:null===(s=u.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:h.weekStartsOn)&&void 0!==o?o:null===(l=h.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,c.default)(e),m=(0,p.Z)(t),g=v.getUTCDay();return v.setUTCDate(v.getUTCDate()+(((m%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_),es=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_),el=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_),ef=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,d.Z)(2,arguments);var n=(0,p.Z)(t);n%7==0&&(n-=7);var r=(0,c.default)(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(_),ep=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(_),ev=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(_),em=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(_),eg=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&t<=24}},{key:"set",value:function(e,t,n){return e.setUTCHours(n<=24?n%24:n,0,0,0),e}}]),n}(_),eb=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(_),ew=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(_),ex=function(e){v(n,e);var t=g(n);function n(){var e;b(this,n);for(var r=arguments.length,o=Array(r),a=0;a=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=(0,p.Z)(null!==(T=null!==(C=null!==(A=null!==(N=null==o?void 0:o.weekStartsOn)&&void 0!==N?N:null==o?void 0:null===(I=o.locale)||void 0===I?void 0:null===(R=I.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==A?A:v.weekStartsOn)&&void 0!==C?C:null===(L=v.locale)||void 0===L?void 0:null===(B=L.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==T?T:0);if(!(b>=0&&b<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===y)return""===h?(0,c.default)(n):new Date(NaN);var w,x,O,k,S,D,_,E,P,M,T,C,A,N,I,R,L,B,Y,F={firstWeekContainsDate:g,weekStartsOn:b,locale:m},U=[new j],W=y.match(eE).map(function(e){var t=e[0];return t in s.Z?(0,s.Z[t])(e,m.formatLong):e}).join("").match(e_),Z=[],H=a(W);try{for(H.s();!(Y=H.n()).done;){var z=function(){var t=Y.value;!(null!=o&&o.useAdditionalWeekYearTokens)&&(0,f.Do)(t)&&(0,f.qp)(t,y,e),!(null!=o&&o.useAdditionalDayOfYearTokens)&&(0,f.Iu)(t)&&(0,f.qp)(t,y,e);var n=t[0],r=ej[n];if(r){var a=r.incompatibleTokens;if(Array.isArray(a)){var i=Z.find(function(e){return a.includes(e.token)||e.token===n});if(i)throw RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&Z.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));Z.push({token:n,fullToken:t});var u=r.run(h,t,m.match,F);if(!u)return{v:new Date(NaN)};U.push(u.setter),h=u.rest}else{if(n.match(eC))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(eP)[1].replace(eM,"'")),0!==h.indexOf(t))return{v:new Date(NaN)};h=h.slice(t.length)}}();if("object"===(0,r.Z)(z))return z.v}}catch(e){H.e(e)}finally{H.f()}if(h.length>0&&eT.test(h))return new Date(NaN);var $=U.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return U.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),q=(0,c.default)(n);if(isNaN(q.getTime()))return new Date(NaN);var K,V=(0,u.Z)(q,(0,l.Z)(q)),G={},X=a($);try{for(X.s();!(K=X.n()).done;){var Q=K.value;if(!Q.validate(V,F))return new Date(NaN);var J=Q.set(V,G,F);Array.isArray(J)?(V=J[0],function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(G,J[1])):V=J}}catch(e){X.e(e)}finally{X.f()}return V}},23855:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(36948),o=n(13882),a=n(83946);function i(e,t){(0,o.Z)(1,arguments);var n,i,y,v=(0,a.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==v&&1!==v&&0!==v)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var m=function(e){var t,n={},r=e.split(u.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],u.timeZoneDelimiter.test(n.date)&&(n.date=e.split(u.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=u.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(m.date){var g=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(m.date,v);i=function(e,t){if(null===t)return new Date(NaN);var n,r,o=e.match(c);if(!o)return new Date(NaN);var a=!!o[4],i=f(o[1]),u=f(o[2])-1,s=f(o[3]),l=f(o[4]),p=f(o[5])-1;if(a)return l>=1&&l<=53&&p>=0&&p<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((l-1)*7+p+1-r)),n):new Date(NaN);var y=new Date(0);return u>=0&&u<=11&&s>=1&&s<=(d[u]||(h(t)?29:28))&&i>=1&&i<=(h(t)?366:365)?(y.setUTCFullYear(t,u,Math.max(i,s)),y):new Date(NaN)}(g.restDateString,g.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var b=i.getTime(),w=0;if(m.time&&isNaN(w=function(e){var t=e.match(s);if(!t)return NaN;var n=p(t[1]),o=p(t[2]),a=p(t[3]);return(24===n?0===o&&0===a:a>=0&&a<60&&o>=0&&o<60&&n>=0&&n<25)?n*r.vh+o*r.yJ+1e3*a:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(y=function(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return a>=0&&a<=59?n*(o*r.vh+a*r.yJ):NaN}(m.timezone)))return new Date(NaN)}else{var x=new Date(b+w),O=new Date(0);return O.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),O.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),O}return new Date(b+w+y)}var u={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var d=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},92311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(86),o=n(19013),a=n(16218),i=n(83946),u=n(13882);function c(e,t){if((0,u.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw RangeError("values parameter must be an object");var n=(0,o.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,a.default)(n,t.month)),null!=t.date&&n.setDate((0,i.Z)(t.date)),null!=t.hours&&n.setHours((0,i.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,i.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,i.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,i.Z)(t.milliseconds)),n)}},37042:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setHours(i),n}},4543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setMinutes(i),n}},16218:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t),u=n.getFullYear(),c=n.getDate(),s=new Date(0);s.setFullYear(u,i,15),s.setHours(0,0,0,0);var l=function(e){(0,a.Z)(1,arguments);var t=(0,o.default)(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(s);return n.setMonth(i,Math.min(c,l)),n}},11503:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(83946),o=n(19013),a=n(16218),i=n(13882);function u(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),u=(0,r.Z)(t),c=Math.floor(n.getMonth()/3)+1;return(0,a.default)(n,n.getMonth()+3*(u-c))}},39880:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setSeconds(i),n}},44749:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(83946),o=n(19013),a=n(13882);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}},69119:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},43703:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},94431:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(19013),o=n(13882);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setMonth(n-n%3,1),t.setHours(0,0,0,0),t}},584:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(19013),o=n(83946),a=n(13882),i=n(84314);function u(e,t){(0,a.Z)(1,arguments);var n,u,c,s,l,f,p,d,h=(0,i.j)(),y=(0,o.Z)(null!==(n=null!==(u=null!==(c=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(l=t.locale)||void 0===l?void 0:null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:h.weekStartsOn)&&void 0!==u?u:null===(p=h.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),m=v.getDay();return v.setDate(v.getDate()-((m(c=(i=Math.ceil(p/7))>c?i+1:c+1)&&(a=c,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((c=s.length)-(a=l.length)<0&&(a=c,r=l,l=s,s=r),n=0;a;)n=(s[--a]=s[a]+l[a]+n)/1e7|0,s[a]%=1e7;for(n&&(s.unshift(n),++o),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=o,u?j(t,p):t}function m(e,t,n){if(e!==~~e||en)throw Error(s+e)}function g(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return j(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return x(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(a))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(a)?new n(0):(u=!1,t=b(S(this,o),S(e,o),o),u=!0,j(t,r))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?_(this,e):v(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(c+"NaN");return this.s?(u=!1,t=b(this,e,0,1).times(e),u=!0,this.minus(t)):j(new n(this),r)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?v(this,e):_(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=x(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,a,i,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(c+"NaN")}for(e=x(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=g(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e,r=new s(t)):r=new s(o.toString()),o=i=(n=s.precision)+3;;)if(r=(a=r).plus(b(this,a,i+2)).times(.5),g(a.d).slice(0,i)===(t=g(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(j(a,n+1,0),a.times(a).eq(this)){r=a;break}}else if("9999"!=t)break;i+=4}return u=!0,j(r,n)},y.times=y.mul=function(e){var t,n,r,o,a,i,c,s,l,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,n=this.e+e.e,(s=p.length)<(l=d.length)&&(a=p,p=d,d=a,i=s,s=l,l=i),a=[],r=i=s+l;r--;)a.push(0);for(r=l;--r>=0;){for(t=0,o=s+r;o>r;)c=a[o]+d[r]*p[o-r-1]+t,a[o--]=c%1e7|0,t=c/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,u?j(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(m(e,0,1e9),void 0===t?t=r.rounding:m(t,0,8),j(n,e+x(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=E(r,!0):(m(e,0,1e9),void 0===t?t=o.rounding:m(t,0,8),n=E(r=j(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?E(this):(m(e,0,1e9),void 0===t?t=o.rounding:m(t,0,8),n=E((r=j(new o(this),e+x(this)+1,t)).abs(),!1,e+x(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this.constructor;return j(new e(this),x(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,i,s,l=this,p=l.constructor,d=+(e=new p(e));if(!e.s)return new p(a);if(!(l=new p(l)).s){if(e.s<1)throw Error(c+"Infinity");return l}if(l.eq(a))return l;if(r=p.precision,e.eq(a))return j(l,r);if(s=(t=e.e)>=(n=e.d.length-1),i=l.s,s){if((n=d<0?-d:d)<=9007199254740991){for(o=new p(a),t=Math.ceil(r/7+4),u=!1;n%2&&P((o=o.times(l)).d,t),0!==(n=f(n/2));)P((l=l.times(l)).d,t);return u=!0,e.s<0?new p(a).div(o):j(o,r)}}else if(i<0)throw Error(c+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,u=!1,o=e.times(S(l,r+12)),u=!0,(o=w(o)).s=i,o},y.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?(n=x(o),r=E(o,n<=a.toExpNeg||n>=a.toExpPos)):(m(e,1,1e9),void 0===t?t=a.rounding:m(t,0,8),n=x(o=j(new a(o),e,t)),r=E(o,e<=n||n<=a.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(m(e,1,1e9),void 0===t?t=n.rounding:m(t,0,8)),j(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=x(this),t=this.constructor;return E(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,a,i){var u,s,l,f,p,d,h,y,v,m,g,b,w,O,k,S,D,_,E=r.constructor,P=r.s==o.s?1:-1,M=r.d,T=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(c+"Division by zero");for(l=0,s=r.e-o.e,D=T.length,k=M.length,y=(h=new E(P)).d=[];T[l]==(M[l]||0);)++l;if(T[l]>(M[l]||0)&&--s,(b=null==a?a=E.precision:i?a+(x(r)-x(o))+1:a)<0)return new E(0);if(b=b/7+2|0,l=0,1==D)for(f=0,T=T[0],b++;(l1&&(T=e(T,f),M=e(M,f),D=T.length,k=M.length),O=D,m=(v=M.slice(0,D)).length;m=1e7/2&&++S;do f=0,(u=t(T,v,D,m))<0?(g=v[0],D!=m&&(g=1e7*g+(v[1]||0)),(f=g/S|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(T,f)).length,m=v.length,1==(u=t(p,v,d,m))&&(f--,n(p,D16)throw Error(l+x(e));if(!e.s)return new d(a);for(null==t?(u=!1,c=h):c=t,i=new d(.03125);e.abs().gte(.1);)e=e.times(i),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new d(a),d.precision=c;;){if(r=j(r.times(e),c),n=n.times(++s),g((i=o.plus(b(r,n,c))).d).slice(0,c)===g(o.d).slice(0,c)){for(;f--;)o=j(o.times(o),c);return d.precision=h,null==t?(u=!0,j(o,h)):o}o=i}}function x(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw u=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return j(new e(e.LN10),t)}function k(e){for(var t="";e--;)t+="0";return t}function S(e,t){var n,r,o,i,s,l,f,p,d,h=1,y=e,v=y.d,m=y.constructor,w=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(a))return new m(0);if(null==t?(u=!1,p=w):p=t,y.eq(10))return null==t&&(u=!0),O(m,p);if(p+=10,m.precision=p,r=(n=g(v)).charAt(0),!(15e14>Math.abs(i=x(y))))return f=O(m,p+2,w).times(i+""),y=S(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=w,null==t?(u=!0,j(y,w)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=g((y=y.times(e)).d)).charAt(0),h++;for(i=x(y),r>1?(y=new m("0."+n),i++):y=new m(r+"."+n.slice(1)),l=s=y=b(y.minus(a),y.plus(a),p),d=j(y.times(y),p),o=3;;){if(s=j(s.times(d),p),g((f=l.plus(b(s,new m(o),p))).d).slice(0,p)===g(l.d).slice(0,p))return l=l.times(2),0!==i&&(l=l.plus(O(m,p+2,w).times(i+""))),l=b(l,new m(h),p),m.precision=w,null==t?(u=!0,j(l,w)):l;l=f,o+=2}}function D(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=f(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rh||e.e<-h))throw Error(l+n)}else e.s=0,e.e=0,e.d=[0];return e}function j(e,t,n){var r,o,a,i,c,s,d,y,v=e.d;for(i=1,a=v[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,d=v[y=0];else{if(y=Math.ceil((r+1)/7),a=v.length,y>=a)return e;for(i=1,d=a=v[y];a>=10;a/=10)i++;r%=7,o=r-7+i}if(void 0!==n&&(c=d/(a=p(10,i-o-1))%10|0,s=t<0||void 0!==v[y+1]||d%a,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?o>0?d/p(10,i-o):0:v[y-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return s?(a=x(e),v.length=1,t=t-a-1,v[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=y,a=1,y--):(v.length=y+1,a=p(10,7-r),v[y]=o>0?(d/p(10,i-o)%p(10,o)|0)*a:0),s)for(;;){if(0==y){1e7==(v[0]+=a)&&(v[0]=1,++e.e);break}if(v[y]+=a,1e7!=v[y])break;v[y--]=0,a=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(e.e>h||e.e<-h))throw Error(l+x(e));return e}function _(e,t){var n,r,o,a,i,c,s,l,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?j(t,h):t;if(s=e.d,p=t.d,r=t.e,l=e.e,s=s.slice(),i=l-r){for((f=i<0)?(n=s,i=-i,c=p.length):(n=p,r=l,c=s.length),o=Math.max(Math.ceil(h/7),c)+2,i>o&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(c=p.length))&&(c=o),o=0;o0;--o)s[c++]=0;for(o=p.length;o>i;){if(s[--o]0?a=a.charAt(0)+"."+a.slice(1)+k(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+k(-o-1)+a,n&&(r=n-i)>0&&(a+=k(r))):o>=i?(a+=k(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+k(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=k(r))),e.s<0?"-"+a:a}function P(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(s+n+": "+r)}if(void 0!==(r=e[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(s+n+": "+r)}return this}(i=function e(t){var n,r,o;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return D(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,d.test(e))D(t,e);else throw Error(s+e)}if(a.prototype=y,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=M,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n-1&&t%1==0&&t<=9007199254740991&&!("[object Function]"==(n=typeof e,r=e&&("object"==n||"function"==n)?c.call(e):"")||"[object GeneratorFunction]"==r)}function y(e){return h(e)?function(e,t){var n,r,a=d(e)||e&&"object"==typeof e&&h(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))?function(e,t){for(var n=-1,r=Array(e);++n-1&&n%1==0&&n-1&&t%1==0&&t<=9007199254740991&&!q(e)}var $=E||function(){return!1};function q(e){var t=K(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(z(e)&&(H(e)||"string"==typeof e||"function"==typeof e.splice||$(e)||e&&"object"==typeof e&&z(e)&&k.call(e,"callee")&&(!_.call(e,"callee")||"[object Arguments]"==S.call(e))))return!e.length;var t,n,r=W(e);if(r==i||r==c)return!e.size;if(I||(n="function"==typeof(t=e&&e.constructor)&&t.prototype||b,e===n))return!P(e).length;for(var o in e)if(k.call(e,o))return!1;return!0}},80820:function(e,t,n){e=n.nmd(e);var r,o,a,i,u="__lodash_hash_undefined__",c=1/0,s="[object Arguments]",l="[object Array]",f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",y="[object Map]",v="[object Number]",m="[object Object]",g="[object Promise]",b="[object RegExp]",w="[object Set]",x="[object String]",O="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",D="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/,E=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/\\(\\)?/g,T=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[l]=A[S]=A[f]=A[D]=A[p]=A[d]=A[h]=A[y]=A[v]=A[m]=A[b]=A[w]=A[x]=A[k]=!1;var N="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,R=N||I||Function("return this")(),L=t&&!t.nodeType&&t,B=L&&e&&!e.nodeType&&e,Y=B&&B.exports===L&&N.process,F=function(){try{return Y&&Y.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function W(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n-1},ex.prototype.set=function(e,t){var n=this.__data__,r=eD(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eO.prototype.clear=function(){this.__data__={hash:new ew,map:new(eu||ex),string:new ew}},eO.prototype.delete=function(e){return eA(this,e).delete(e)},eO.prototype.get=function(e){return eA(this,e).get(e)},eO.prototype.has=function(e){return eA(this,e).has(e)},eO.prototype.set=function(e,t){return eA(this,e).set(e,t),this},ek.prototype.add=ek.prototype.push=function(e){return this.__data__.set(e,u),this},ek.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.clear=function(){this.__data__=new ex},eS.prototype.delete=function(e){return this.__data__.delete(e)},eS.prototype.get=function(e){return this.__data__.get(e)},eS.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ex){var r=n.__data__;if(!eu||r.length<199)return r.push([e,t]),this;n=this.__data__=new eO(r)}return n.set(e,t),this};var ej=function(e,t){if(null==e)return e;if(!e$(e)){var n,o;return n=e,o=t,n&&e_(n,o,eJ)}for(var a=e.length,i=r?a:-1,u=Object(e);(r?i--:++iu))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new ek:void 0;for(a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eV(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eX(e){return"symbol"==typeof e||eG(e)&&J.call(e)==O}var eQ=U?function(e){return U(e)}:function(e){return eG(e)&&eK(e.length)&&!!A[J.call(e)]};function eJ(e){return e$(e)?function(e,t){var n=ez(e)||eH(e)?function(e,t){for(var n=-1,r=Array(e);++nu))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new eS:void 0;for(a.set(e,t),a.set(t,e);++l-1},eO.prototype.set=function(e,t){var n=this.__data__,r=e_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ek.prototype.clear=function(){this.__data__={hash:new ex,map:new(ec||eO),string:new ex}},ek.prototype.delete=function(e){return eA(this,e).delete(e)},ek.prototype.get=function(e){return eA(this,e).get(e)},ek.prototype.has=function(e){return eA(this,e).has(e)},ek.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,a),this},eS.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.clear=function(){this.__data__=new eO},eD.prototype.delete=function(e){return this.__data__.delete(e)},eD.prototype.get=function(e){return this.__data__.get(e)},eD.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eO){var r=n.__data__;if(!ec||r.length<199)return r.push([e,t]),this;n=this.__data__=new ek(r)}return n.set(e,t),this};var eI=ea?Z(ea,Object):e6,eR=ea?function(e){for(var t=[];e;)F(t,eI(e)),e=en(e);return t}:e6,eL=function(e){return Q.call(e)};function eB(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eQ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eJ(e){return!!e&&"object"==typeof e}function e0(e){return"symbol"==typeof e||eJ(e)&&Q.call(e)==w}var e1=Y?function(e){return Y(e)}:function(e){return eJ(e)&&eX(e.length)&&!!T[Q.call(e)]};function e2(e){return eV(e)?ej(e):function(e){if(!eF(e))return ei(e);var t=[];for(var n in Object(e))X.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function e3(e){return e}function e6(){return[]}e.exports=function(e,t){var n,r,a,i;return n=e,r=function(e){if("function"!=typeof e)throw TypeError(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}(eT(t)),null==n?{}:function(e,t,n){for(var r=-1,o=t.length,a={};++r-1},eO.prototype.set=function(e,t){var n=this.__data__,r=ej(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ek.prototype.clear=function(){this.__data__={hash:new ex,map:new(ec||eO),string:new ex}},ek.prototype.delete=function(e){return eA(this,e).delete(e)},ek.prototype.get=function(e){return eA(this,e).get(e)},ek.prototype.has=function(e){return eA(this,e).has(e)},ek.prototype.set=function(e,t){return eA(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,u),this},eS.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.clear=function(){this.__data__=new eO},eD.prototype.delete=function(e){return this.__data__.delete(e)},eD.prototype.get=function(e){return this.__data__.get(e)},eD.prototype.has=function(e){return this.__data__.has(e)},eD.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eO){var r=n.__data__;if(!ec||r.length<199)return r.push([e,t]),this;n=this.__data__=new ek(r)}return n.set(e,t),this};var e_=function(e,t){if(null==e)return e;if(!e$(e)){var n,o;return n=e,o=t,n&&eE(n,o,eJ)}for(var a=e.length,i=r?a:-1,u=Object(e);(r?i--:++iu))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var l=-1,f=!0,p=1&o?new eS:void 0;for(a.set(e,t),a.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eV(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eX(e){return"symbol"==typeof e||eG(e)&&ee.call(e)==O}var eQ=U?function(e){return U(e)}:function(e){return eG(e)&&eK(e.length)&&!!A[ee.call(e)]};function eJ(e){return e$(e)?function(e,t){var n=ez(e)||eH(e)?function(e,t){for(var n=-1,r=Array(e);++nt}},70433:function(e){e.exports=function(e,t){return eo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=o?e:r(e,t,n)}},98805:function(e,t,n){var r=n(40180),o=n(52036),a=n(83140),i=n(79833);e.exports=function(e){return function(t){var n=o(t=i(t))?a(t):void 0,u=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return u[e]()+c}}},67740:function(e,t,n){var r=n(11243),o=n(98612),a=n(3674);e.exports=function(e){return function(t,n,i){var u=Object(t);if(!o(t)){var c=r(n,3);t=a(t),n=function(e){return c(u[e],e,u)}}var s=e(t,n,i);return s>-1?u[c?t[s]:s]:void 0}}},47445:function(e,t,n){var r=n(40098),o=n(16612),a=n(18601);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t=t||n<0||v&&r>=l}function w(){var e,n,r,a=o();if(b(a))return x(a);p=setTimeout(w,(e=a-d,n=a-h,r=t-e,v?u(r,l-n):r))}function x(e){return(p=void 0,m&&c)?g(e):(c=s=void 0,f)}function O(){var e,n=o(),r=b(n);if(c=arguments,s=this,d=n,r){if(void 0===p)return h=e=d,p=setTimeout(w,t),y?g(e):f;if(v)return clearTimeout(p),p=setTimeout(w,t),g(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=a(t)||0,r(n)&&(y=!!n.leading,l=(v="maxWait"in n)?i(a(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=d=s=p=void 0},O.flush=function(){return void 0===p?f:x(o())},O}},711:function(e,t,n){var r=n(66193),o=n(93239),a=n(11243),i=n(1469),u=n(16612);e.exports=function(e,t,n){var c=i(e)?r:o;return n&&u(e,t,n)&&(t=void 0),c(e,a(t,3))}},13311:function(e,t,n){var r=n(67740)(n(30998));e.exports=r},30998:function(e,t,n){var r=n(41848),o=n(11243),a=n(40554),i=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return -1;var c=null==n?0:a(n);return c<0&&(c=i(u+c,0)),r(e,o(t,3),c)}},94654:function(e,t,n){var r=n(21078),o=n(35161);e.exports=function(e,t){return r(o(e,t),1)}},7654:function(e,t,n){var r=n(81763);e.exports=function(e){return r(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},35161:function(e,t,n){var r=n(29932),o=n(11243),a=n(69199),i=n(1469);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},6162:function(e,t,n){var r=n(56029),o=n(53325),a=n(6557);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},53632:function(e,t,n){var r=n(56029),o=n(70433),a=n(6557);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},96026:function(e,t,n){var r=n(47445)();e.exports=r},59704:function(e,t,n){var r=n(82908),o=n(11243),a=n(5076),i=n(1469),u=n(16612);e.exports=function(e,t,n){var c=i(e)?r:a;return n&&u(e,t,n)&&(t=void 0),c(e,o(t,3))}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},18601:function(e,t,n){var r=n(14841),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},40554:function(e,t,n){var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:function(e,t,n){var r=n(27561),o=n(13218),a=n(33448),i=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):u.test(e)?i:+e}},45578:function(e,t,n){var r=n(11243),o=n(45652);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},11700:function(e,t,n){var r=n(98805)("toUpperCase");e.exports=r},24394:function(){},31879:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(44036),o=n.n(r),a=n(67294);n(42473);var i=n(76792),u=n(85893);let c=a.forwardRef((e,t)=>{let[{className:n,...r},{as:a="div",bsPrefix:c,spans:s}]=function({as:e,bsPrefix:t,className:n,...r}){t=(0,i.vE)(t,"col");let a=(0,i.pi)(),u=(0,i.zG)(),c=[],s=[];return a.forEach(e=>{let n,o,a;let i=r[e];delete r[e],"object"==typeof i&&null!=i?{span:n,offset:o,order:a}=i:n=i;let l=e!==u?`-${e}`:"";n&&c.push(!0===n?`${t}${l}`:`${t}${l}-${n}`),null!=a&&s.push(`order${l}-${a}`),null!=o&&s.push(`offset${l}-${o}`)}),[{...r,className:o()(n,...c,...s)},{as:e,bsPrefix:t,spans:c}]}(e);return(0,u.jsx)(a,{...r,ref:t,className:o()(n,!s.length&&c)})});c.displayName="Col";let s=a.createContext({}),l=a.forwardRef(({as:e="label",bsPrefix:t,column:n,visuallyHidden:r,className:l,htmlFor:f,...p},d)=>{let{controlId:h}=(0,a.useContext)(s);t=(0,i.vE)(t,"form-label");let y="col-form-label";"string"==typeof n&&(y=`${y} ${y}-${n}`);let v=o()(l,t,r&&"visually-hidden",n&&y);return(f=f||h,n)?(0,u.jsx)(c,{ref:d,as:"label",className:v,htmlFor:f,...p}):(0,u.jsx)(e,{ref:d,className:v,htmlFor:f,...p})});l.displayName="FormLabel",l.defaultProps={column:!1,visuallyHidden:!1};var f=l},42050:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(44036),o=n.n(r),a=n(67294),i=n(76792),u=n(85893);function c({min:e,now:t,max:n,label:r,visuallyHidden:a,striped:i,animated:c,className:s,style:l,variant:f,bsPrefix:p,...d},h){return(0,u.jsx)("div",{ref:h,...d,role:"progressbar",className:o()(s,`${p}-bar`,{[`bg-${f}`]:f,[`${p}-bar-animated`]:c,[`${p}-bar-striped`]:c||i}),style:{width:`${Math.round((t-e)/(n-e)*1e5)/1e3}%`,...l},"aria-valuenow":t,"aria-valuemin":e,"aria-valuemax":n,children:a?(0,u.jsx)("span",{className:"visually-hidden",children:r}):r})}let s=a.forwardRef(({isChild:e,...t},n)=>{var r;let s;if(t.bsPrefix=(0,i.vE)(t.bsPrefix,"progress"),e)return c(t,n);let{min:l,now:f,max:p,label:d,visuallyHidden:h,striped:y,animated:v,bsPrefix:m,variant:g,className:b,children:w,...x}=t;return(0,u.jsx)("div",{ref:n,...x,className:o()(b,m),children:w?(r=e=>(0,a.cloneElement)(e,{isChild:!0}),s=0,a.Children.map(w,e=>a.isValidElement(e)?r(e,s++):e)):c({min:l,now:f,max:p,label:d,visuallyHidden:h,striped:y,animated:v,bsPrefix:m,variant:g},n)})});s.displayName="ProgressBar",s.defaultProps={min:0,max:100,animated:!1,isChild:!1,visuallyHidden:!1,striped:!1};var l=s},9198:function(e,t,n){!function(e,t,n,r,o,a,i,u,c,s,l,f,p,d,h,y,v,m,g,b,w,x,O,k,S,D,j,_,E,P,M,T,C,A,N,I,R,L,B,Y,F,U,W,Z,H,z,$,q,K,V,G,X,Q,J,ee,et,en,er,eo,ea,ei,eu,ec,es){"use strict";function el(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ef=el(t),ep=el(r),ed=el(o),eh=el(a),ey=el(i),ev=el(u),em=el(c),eg=el(s),eb=el(l),ew=el(f),ex=el(p),eO=el(d),ek=el(h),eS=el(y),eD=el(v),ej=el(m),e_=el(g),eE=el(b),eP=el(w),eM=el(x),eT=el(O),eC=el(k),eA=el(S),eN=el(D),eI=el(j),eR=el(_),eL=el(E),eB=el(P),eY=el(M),eF=el(T),eU=el(C),eW=el(A),eZ=el(N),eH=el(I),ez=el(R),e$=el(L),eq=el(B),eK=el(Y),eV=el(F),eG=el(U),eX=el(W),eQ=el(Z),eJ=el(H),e0=el(z),e1=el(q),e2=el(K),e3=el(V),e6=el(G),e4=el(X),e8=el(Q),e5=el(J),e9=el(ee),e7=el(et),te=el(en),tt=el(er),tn=el(eo),tr=el(ea),to=el(ei),ta=el(eu),ti=el(es);function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.excludeDateIntervals,i=t.includeDates,u=t.includeDateIntervals,c=t.filterDate;return t0(e,{minDate:n,maxDate:r})||o&&o.some(function(t){return tF(e,t)})||a&&a.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})})||i&&!i.some(function(t){return tF(e,t)})||u&&!u.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})})||c&&!c(t_(e))||!1}function tK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})}):n&&n.some(function(t){return tF(e,t)})||!1}function tV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return t0(e,{minDate:eX.default(n),maxDate:e1.default(r)})||o&&o.some(function(t){return tB(e,t)})||a&&!a.some(function(t){return tB(e,t)})||i&&!i(t_(e))||!1}function tG(e,t,n,r){var o=eR.default(e),a=eN.default(e),i=eR.default(t),u=eN.default(t),c=eR.default(r);return o===i&&o===c?a<=n&&n<=u:o=n||co:void 0}function tX(e,t,n){if(!eh.default(t)||!eh.default(n))return!1;var r=eR.default(t),o=eR.default(n);return r<=e&&o>=e}function tQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate,u=new Date(e,0,1);return t0(u,{minDate:eJ.default(n),maxDate:e2.default(r)})||o&&o.some(function(e){return tL(u,e)})||a&&!a.some(function(e){return tL(u,e)})||i&&!i(t_(u))||!1}function tJ(e,t,n,r){var o=eR.default(e),a=eI.default(e),i=eR.default(t),u=eI.default(t),c=eR.default(r);return o===i&&o===c?a<=n&&n<=u:o=n||co:void 0}function t0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&0>e$.default(e,n)||r&&e$.default(e,r)>0}function t1(e,t){return t.some(function(t){return eM.default(t)===eM.default(e)&&eP.default(t)===eP.default(e)})}function t2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&t1(e,n)||r&&!t1(e,r)||o&&!o(e)||!1}function t3(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw Error("Both minTime and maxTime props required");var o,a=t_(),i=eF.default(eY.default(a,eP.default(e)),eM.default(e)),u=eF.default(eY.default(a,eP.default(n)),eM.default(n)),c=eF.default(eY.default(a,eP.default(r)),eM.default(r));try{o=!te.default(i,{start:u,end:c})}catch(e){o=!1}return o}function t6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=eD.default(e,1);return n&&eq.default(n,o)>0||r&&r.every(function(e){return eq.default(e,o)>0})||!1}function t4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=ew.default(e,1);return n&&eq.default(o,n)>0||r&&r.every(function(e){return eq.default(o,e)>0})||!1}function t8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=e_.default(e,1);return n&&eK.default(n,o)>0||r&&r.every(function(e){return eK.default(e,o)>0})||!1}function t5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=eO.default(e,1);return n&&eK.default(o,n)>0||r&&r.every(function(e){return eK.default(o,e)>0})||!1}function t9(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return e$.default(e,t)>=0});return eH.default(r)}return n?eH.default(n):t}function t7(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return 0>=e$.default(e,t)});return ez.default(r)}return n?ez.default(n):t}function ne(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(eR.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function nr(e){var t=e.getSeconds(),n=e.getMilliseconds();return tt.default(e.getTime()-1e3*t-n)}var no=function(e){ty(r,e);var n=tb(r);function r(e){tl(this,r),td(tg(o=n.call(this,e)),"renderOptions",function(){var e=o.props.year,t=o.state.yearsList.map(function(t){return ef.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:o.onChange.bind(tg(o),t),"aria-selected":e===t?"true":void 0},e===t?ef.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=o.props.minDate?eR.default(o.props.minDate):null,r=o.props.maxDate?eR.default(o.props.maxDate):null;return r&&o.state.yearsList.find(function(e){return e===r})||t.unshift(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&o.state.yearsList.find(function(e){return e===n})||t.push(ef.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},ef.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t}),td(tg(o),"onChange",function(e){o.props.onChange(e)}),td(tg(o),"handleClickOutside",function(){o.props.onCancel()}),td(tg(o),"shiftYears",function(e){var t=o.state.yearsList.map(function(t){return t+e});o.setState({yearsList:t})}),td(tg(o),"incrementYears",function(){return o.shiftYears(1)}),td(tg(o),"decrementYears",function(){return o.shiftYears(-1)});var o,a=e.yearDropdownItemNumber,i=e.scrollableYearDropdown;return o.state={yearsList:function(e,t,n,r){for(var o=[],a=0;a<2*t+1;a++){var i=e+t-a,u=!0;n&&(u=eR.default(n)<=i),r&&u&&(u=eR.default(r)>=i),u&&o.push(i)}return o}(o.props.year,a||(i?10:5),o.props.minDate,o.props.maxDate)},o.dropdownRef=t.createRef(),o}return tp(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=ep.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ef.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ef.default.Component),na=to.default(no),ni=function(e){ty(n,e);var t=tb(n);function n(){var e;tl(this,n);for(var r=arguments.length,o=Array(r),a=0;a0?o.get(a).holidayNames.join(", "):""}),td(tg(e),"getTabIndex",function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(r)&&tF(o,r))?0:-1}),td(tg(e),"handleFocusDay",function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))}),td(tg(e),"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(eC.default(e.props.day),e.props.day):eC.default(e.props.day)}),td(tg(e),"render",function(){return ef.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&ef.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))}),e}return tp(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ef.default.Component),nh=function(e){ty(n,e);var t=tb(n);function n(){var e;tl(this,n);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&tF(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})}),e}return tp(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":tF(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ef.default.createElement("div",{ref:this.weekNumberEl,className:ep.default(r),"aria-label":"".concat(void 0===n?"week ":n," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(ef.default.Component),ny=function(e){ty(n,e);var t=tb(n);function n(){var e;tl(this,n);for(var r=arguments.length,o=Array(r),a=0;a=6,u=!n&&!e.isWeekInMonth(a);if(i||u){if(!e.props.peekNextMonth)break;o=!0}}return t}),td(tg(e),"onMonthClick",function(t,n){e.handleDayClick(tA(eU.default(e.props.day,n)),t)}),td(tg(e),"onMonthMouseEnter",function(t){e.handleDayMouseEnter(tA(eU.default(e.props.day,t)))}),td(tg(e),"handleMonthNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())}),td(tg(e),"onMonthKeyDown",function(t,n){var r=e.props,o=r.selected,a=r.preSelection,i=r.disabledKeyboardNavigation,u=r.showTwoColumnMonthYearPicker,c=r.showFourColumnMonthYearPicker,s=r.setPreSelection,l=t.key;if("Tab"!==l&&t.preventDefault(),!i){var f=c?ng:u?nv:nm,p=nb[f].verticalNavigationOffset,d=nb[f].grid;switch(l){case"Enter":e.onMonthClick(t,n),s(o);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,ew.default(a,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,eD.default(a,1));break;case"ArrowUp":e.handleMonthNavigation(d[0].includes(n)?n+12-p:n-p,eD.default(a,p));break;case"ArrowDown":e.handleMonthNavigation(d[d.length-1].includes(n)?n-12+p:n+p,ew.default(a,p))}}}),td(tg(e),"onQuarterClick",function(t,n){e.handleDayClick(tI(eW.default(e.props.day,n)),t)}),td(tg(e),"onQuarterMouseEnter",function(t){e.handleDayMouseEnter(tI(eW.default(e.props.day,t)))}),td(tg(e),"handleQuarterNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())}),td(tg(e),"onQuarterKeyDown",function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,ex.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,ej.default(e.props.preSelection,1))}}),td(tg(e),"getMonthClassNames",function(t){var n=e.props,r=n.day,o=n.startDate,a=n.endDate,i=n.selected,u=n.minDate,c=n.maxDate,s=n.preSelection,l=n.monthClassName,f=n.excludeDates,p=n.includeDates,d=l?l(eU.default(r,t)):void 0,h=eU.default(r,t);return ep.default("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month-text--disabled":(u||c||f||p)&&tV(h,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,i),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&eN.default(s)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":tG(o,a,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})}),td(tg(e),"getTabIndex",function(t){var n=eN.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),td(tg(e),"getQuarterTabIndex",function(t){var n=eI.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),td(tg(e),"getAriaLabel",function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=n.disabledDayAriaLabelPrefix,a=n.day,i=eU.default(a,t),u=e.isDisabled(i)||e.isExcluded(i)?void 0===o?"Not available":o:void 0===r?"Choose":r;return"".concat(u," ").concat(tP(i,"MMMM yyyy"))}),td(tg(e),"getQuarterClassNames",function(t){var n=e.props,r=n.day,o=n.startDate,a=n.endDate,i=n.selected,u=n.minDate,c=n.maxDate,s=n.preSelection,l=n.disabledKeyboardNavigation;return ep.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(u||c)&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return t0(e,{minDate:n,maxDate:r})||o&&o.some(function(t){return tY(e,t)})||a&&!a.some(function(t){return tY(e,t)})||i&&!i(t_(e))||!1}(eW.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,i),"react-datepicker__quarter-text--keyboard-selected":!l&&eI.default(s)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":tJ(o,a,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})}),td(tg(e),"getMonthContent",function(t){var n=e.props,r=n.showFullMonthYearPicker,o=n.renderMonthContent,a=n.locale,i=t$(t,a),u=tz(t,a);return o?o(t,i,u):r?u:i}),td(tg(e),"getQuarterContent",function(t){var n,r=e.props,o=r.renderQuarterContent,a=(n=r.locale,tP(eW.default(t_(),t),"QQQ",n));return o?o(t,a):a}),td(tg(e),"renderMonths",function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,o=t.day,a=t.selected;return nb[r?ng:n?nv:nm].grid.map(function(t,n){return ef.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map(function(t,n){return ef.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,a)},e.getMonthContent(t))}))})}),td(tg(e),"renderQuarters",function(){var t=e.props,n=t.day,r=t.selected;return ef.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(t,o){return ef.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))}))}),td(tg(e),"getClassNames",function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,a=t.showMonthYearPicker,i=t.showQuarterYearPicker,u=t.showWeekPicker;return ep.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":i},{"react-datepicker__weekPicker":u})}),e}return tp(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix;return ef.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(void 0===o?"month ":o," ").concat(tP(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ef.default.Component),nx=function(e){ty(n,e);var t=tb(n);function n(){var e;tl(this,n);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return nD.some(function(t){return e.indexOf(t)>=0})})(e.target)&&r.props.onDropdownFocus()}),td(tg(r),"getDateInView",function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,a=t9(r.props),i=t7(r.props),u=t_();return o||n||t||(a&&e7.default(u,a)?a:i&&e9.default(u,i)?i:u)}),td(tg(r),"increaseMonth",function(){r.setState(function(e){var t=e.date;return{date:ew.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),td(tg(r),"decreaseMonth",function(){r.setState(function(e){var t=e.date;return{date:eD.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),td(tg(r),"handleDayClick",function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)}),td(tg(r),"handleDayMouseEnter",function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)}),td(tg(r),"handleMonthMouseLeave",function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()}),td(tg(r),"handleYearMouseEnter",function(e,t){r.setState({selectingDate:eZ.default(t_(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)}),td(tg(r),"handleYearMouseLeave",function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)}),td(tg(r),"handleYearChange",function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),td(tg(r),"handleMonthChange",function(e){r.handleCustomMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),td(tg(r),"handleCustomMonthChange",function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0}))}),td(tg(r),"handleMonthYearChange",function(e){r.handleYearChange(e),r.handleMonthChange(e)}),td(tg(r),"changeYear",function(e){r.setState(function(t){var n=t.date;return{date:eZ.default(n,e)}},function(){return r.handleYearChange(r.state.date)})}),td(tg(r),"changeMonth",function(e){r.setState(function(t){var n=t.date;return{date:eU.default(n,e)}},function(){return r.handleMonthChange(r.state.date)})}),td(tg(r),"changeMonthYear",function(e){r.setState(function(t){var n=t.date;return{date:eZ.default(eU.default(n,eN.default(e)),eR.default(e))}},function(){return r.handleMonthYearChange(r.state.date)})}),td(tg(r),"header",function(){var e=tC(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ef.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map(function(t){var n=eg.default(e,t),o=r.formatWeekday(n,r.props.locale),a=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ef.default.createElement("div",{key:t,className:ep.default("react-datepicker__day-name",a)},o)}))}),td(tg(r),"formatWeekday",function(e,t){return r.props.formatWeekDay?(0,r.props.formatWeekDay)(tP(e,"EEEE",t)):r.props.useWeekdaysShort?tP(e,"EEE",t):tP(e,"EEEEEE",t)}),td(tg(r),"decreaseYear",function(){r.setState(function(e){var t=e.date;return{date:e_.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),td(tg(r),"clearSelectingDate",function(){r.setState({selectingDate:null})}),td(tg(r),"renderPreviousButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t8(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?12:r,a=nn(tN(e_.default(e,o)),o).endPeriod,i=n&&eR.default(n);return i&&i>a||!1}(r.state.date,r.props);break;default:e=t6(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,a=r.props,i=a.previousMonthButtonLabel,u=a.previousYearButtonLabel,c=r.props,s=c.previousMonthAriaLabel,l=c.previousYearAriaLabel;return ef.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":o?void 0===l?"string"==typeof u?u:"Previous Year":l:void 0===s?"string"==typeof i?i:"Previous Month":s},ef.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}}),td(tg(r),"increaseYear",function(){r.setState(function(e){var t=e.date;return{date:eO.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),td(tg(r),"renderNextButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t5(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?12:r,a=nn(eO.default(e,o),o).startPeriod,i=n&&eR.default(n);return i&&i0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ef.default.createElement("div",{className:t.join(" ")},tP(e,r.props.dateFormat,r.props.locale))}),td(tg(r),"renderYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ef.default.createElement(ni,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:eR.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),td(tg(r),"renderMonthDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ef.default.createElement(ns,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:eN.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})}),td(tg(r),"renderMonthYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ef.default.createElement(np,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})}),td(tg(r),"handleTodayButtonClick",function(e){r.props.onSelect(tR(),e),r.props.setPreSelection&&r.props.setPreSelection(tR())}),td(tg(r),"renderTodayButton",function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ef.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)}),td(tg(r),"renderDefaultHeader",function(e){var t=e.monthDate,n=e.i;return ef.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ef.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ef.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),td(tg(r),"renderCustomHeader",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=t6(r.state.date,r.props),a=t4(r.state.date,r.props),i=t8(r.state.date,r.props),u=t5(r.state.date,r.props),c=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(tc(tc({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:a,prevYearButtonDisabled:i,nextYearButtonDisabled:u})),c&&ef.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),td(tg(r),"renderYearHeader",function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=nn(e,t.yearItemNumber),a=o.startPeriod,i=o.endPeriod;return ef.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(a," - ").concat(i):eR.default(e))}),td(tg(r),"renderHeader",function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}}),td(tg(r),"renderMonths",function(){var e;if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var t=[],n=r.props.showPreviousMonths?r.props.monthsShown-1:0,o=eD.default(r.state.date,n),a=null!==(e=r.props.monthSelectedIn)&&void 0!==e?e:n,i=0;i0;t.push(ef.default.createElement("div",{key:s,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:c,i:i}),ef.default.createElement(nw,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:c,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:f})))}return t}}),td(tg(r),"renderYears",function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ef.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ef.default.createElement(nO,th({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave}))):void 0}),td(tg(r),"renderTimeSection",function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ef.default.createElement(nx,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})}),td(tg(r),"renderInputTimeSection",function(){var e=new Date(r.props.selected),t=tE(e)&&Boolean(r.props.selected)?"".concat(nt(e.getHours()),":").concat(nt(e.getMinutes())):"";if(r.props.showTimeInput)return ef.default.createElement(nk,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})}),td(tg(r),"renderAriaLiveRegion",function(){var e,t=nn(r.state.date,r.props.yearItemNumber),n=t.startPeriod,o=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?eR.default(r.state.date):"".concat(tz(eN.default(r.state.date),r.props.locale)," ").concat(eR.default(r.state.date)),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)}),td(tg(r),"renderChildren",function(){if(r.props.children)return ef.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)}),r.containerRef=ef.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return tp(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||tF(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!tF(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!tB(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}}},{key:"render",value:function(){var e=this.props.container||nS;return ef.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},ef.default.createElement(e,{className:ep.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(ef.default.Component),n_=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o="react-datepicker__calendar-icon";return ef.default.isValidElement(t)?ef.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r)}):"string"==typeof t?ef.default.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true"}):ef.default.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},ef.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},nE=function(e){ty(n,e);var t=tb(n);function n(e){var r;return tl(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return tp(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ta.default.createPortal(this.props.children,this.el)}}]),n}(ef.default.Component),nP=function(e){return!e.disabled&&-1!==e.tabIndex},nM=function(e){ty(n,e);var t=tb(n);function n(e){var r;return tl(this,n),td(tg(r=t.call(this,e)),"getTabChildren",function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(nP)}),td(tg(r),"handleFocusStart",function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()}),td(tg(r),"handleFocusEnd",function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()}),r.tabLoopRef=ef.default.createRef(),r}return tp(n,[{key:"render",value:function(){return this.props.enableTabLoop?ef.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ef.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ef.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ef.default.Component),nT=function(e){ty(n,e);var t=tb(n);function n(){return tl(this,n),t.apply(this,arguments)}return tp(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,i=t.popperModifiers,u=t.popperPlacement,c=t.popperProps,s=t.targetComponent,l=t.enableTabLoop,f=t.popperOnKeyDown,p=t.portalId,d=t.portalHost;if(!o){var h=ep.default("react-datepicker-popper",n);e=ef.default.createElement(ec.Popper,th({modifiers:i,placement:u},c),function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return ef.default.createElement(nM,{enableTabLoop:l},ef.default.createElement("div",{ref:t,style:n,className:h,"data-placement":r,onKeyDown:f},ef.default.cloneElement(a,{arrowProps:o})))})}this.props.popperContainer&&(e=ef.default.createElement(this.props.popperContainer,{},e)),p&&!o&&(e=ef.default.createElement(nE,{portalId:p,portalHost:d},e));var y=ep.default("react-datepicker-wrapper",r);return ef.default.createElement(ec.Manager,{className:"react-datepicker-manager"},ef.default.createElement(ec.Reference,null,function(e){var t=e.ref;return ef.default.createElement("div",{ref:t,className:y},s)}),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ef.default.Component),nC="react-datepicker-ignore-onclickoutside",nA=to.default(nj),nN="Date input not valid.",nI=function(e){ty(n,e);var t=tb(n);function n(e){var r;return tl(this,n),td(tg(r=t.call(this,e)),"getPreSelection",function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:t_()}),td(tg(r),"modifyHolidays",function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce(function(e,t){var n=new Date(t.date);return eh.default(n)?[].concat(tw(e),[tc(tc({},t),{},{date:n})]):e},[])}),td(tg(r),"calcInitialState",function(){var e,t=r.getPreSelection(),n=t9(r.props),o=t7(r.props),a=n&&e7.default(t,eV.default(n))?n:o&&e9.default(t,e0.default(o))?o:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:a,highlightDates:ne(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),td(tg(r),"clearPreventFocusTimeout",function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)}),td(tg(r),"setFocus",function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})}),td(tg(r),"setBlur",function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()}),td(tg(r),"setOpen",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:nL},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){t||r.setBlur(),r.setState({inputValue:null})})})}),td(tg(r),"inputOk",function(){return ed.default(r.state.preSelection)}),td(tg(r),"isCalendarOpen",function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open}),td(tg(r),"handleFocus",function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})}),td(tg(r),"sendFocusBackToInput",function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})}),td(tg(r),"cancelFocusInput",function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null}),td(tg(r),"deferFocusInput",function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)}),td(tg(r),"handleDropdownFocus",function(){r.cancelFocusInput()}),td(tg(r),"handleBlur",function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})}),td(tg(r),"handleCalendarClickOutside",function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()}),td(tg(r),"handleChange",function(){for(var e=arguments.length,t=Array(e),n=0;n0&&(l=tn.default(a,i.slice(0,a.length),new Date)),tE(l)||(l=new Date(a))),tE(l)&&p?l:null));r.props.showTimeSelectOnly&&r.props.selected&&d&&!tF(d,r.props.selected)&&(d=ti.default(r.props.selected,{hours:eM.default(d),minutes:eP.default(d),seconds:eE.default(d)})),!d&&o.target.value||(r.props.showWeekPicker&&(d=tC(d,r.props.locale,r.props.calendarStartDay)),r.setSelected(d,o,!0))}}),td(tg(r),"handleSelect",function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.props.showWeekPicker&&(e=tC(e,r.props.locale,r.props.calendarStartDay)),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var o=r.props,a=o.startDate,i=o.endDate;!a||i||e7.default(e,a)||r.setOpen(!1)}}),td(tg(r),"setSelected",function(e,t,n,o){var a=e;if(r.props.showYearPicker){if(null!==a&&tQ(eR.default(a),r.props))return}else if(r.props.showMonthYearPicker){if(null!==a&&tV(a,r.props))return}else if(null!==a&&tq(a,r.props))return;var i=r.props,u=i.onChange,c=i.selectsRange,s=i.startDate,l=i.endDate;(!tU(r.props.selected,a)||r.props.allowSameDay||c)&&((null!==a&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(a=tT(a,{hour:eM.default(r.props.selected),minute:eP.default(r.props.selected),second:eE.default(r.props.selected)})),r.props.inline||r.setState({preSelection:a}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),c)?(s||l?s&&!l&&u(e7.default(a,s)?[a,null]:[s,a],t):u([a,null],t),s&&l&&u([a,null],t)):u(a,t)),n||(r.props.onSelect(a,t),r.setState({inputValue:null}))}),td(tg(r),"setPreSelection",function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,o=!0;if(e){r.props.showWeekPicker&&(e=tC(e,r.props.locale,r.props.calendarStartDay));var a=eV.default(e);if(t&&n)o=tW(e,r.props.minDate,r.props.maxDate);else if(t){var i=eV.default(r.props.minDate);o=e9.default(e,i)||tU(a,i)}else if(n){var u=e0.default(r.props.maxDate);o=e7.default(e,u)||tU(a,u)}}o&&r.setState({preSelection:e})}),td(tg(r),"handleTimeChange",function(e){var t=r.props.selected?r.props.selected:r.getPreSelection(),n=r.props.selected?e:tT(t,{hour:eM.default(e),minute:eP.default(e)});r.setState({preSelection:n}),r.props.onChange(n),r.props.shouldCloseOnSelect&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}),td(tg(r),"onInputClick",function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()}),td(tg(r),"onInputKeyDown",function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=r.calendar.componentNode&&r.calendar.componentNode.querySelector(n);return void(o&&o.focus({preventScroll:!0}))}var a=t_(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===nL?(r.handleSelect(a,e),r.props.shouldCloseOnSelect||r.setPreSelection(a)):r.setOpen(!1)):"Escape"===t?(e.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):"Tab"===t&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:nN})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()}),td(tg(r),"onPortalKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),td(tg(r),"onDayKeyDown",function(e){r.props.onKeyDown(e);var t,n=e.key,o=t_(r.state.preSelection);if("Enter"===n)e.preventDefault(),r.handleSelect(o,e),r.props.shouldCloseOnSelect||r.setPreSelection(o);else if("Escape"===n)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:nN});else if(!r.props.disabledKeyboardNavigation){switch(n){case"ArrowLeft":t=r.props.showWeekPicker?eS.default(o,1):ek.default(o,1);break;case"ArrowRight":t=r.props.showWeekPicker?eb.default(o,1):eg.default(o,1);break;case"ArrowUp":t=eS.default(o,1);break;case"ArrowDown":t=eb.default(o,1);break;case"PageUp":t=eD.default(o,1);break;case"PageDown":t=ew.default(o,1);break;case"Home":t=e_.default(o,1);break;case"End":t=eO.default(o,1);break;default:t=null}if(!t)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:nN}));if(e.preventDefault(),r.setState({lastPreSelectChange:nL}),r.props.adjustDateOnChange&&r.setSelected(t),r.setPreSelection(t),r.props.inline){var a=eN.default(o),i=eN.default(t),u=eR.default(o),c=eR.default(t);a!==i||u!==c?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}}),td(tg(r),"onPopperKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.sendFocusBackToInput())}),td(tg(r),"onClearClick",function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})}),td(tg(r),"clear",function(){r.onClearClick()}),td(tg(r),"onScroll",function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)}),td(tg(r),"renderCalendar",function(){return r.props.inline||r.isCalendarOpen()?ef.default.createElement(nA,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,holidays:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(e){var r=e.date,o=e.holidayName;if(ed.default(r)){var a=tP(r,"MM.dd.yyyy"),i=n.get(a)||{};if(!("className"in i)||i.className!==t||(u=i.holidayNames,c=[o],u.length!==c.length||!u.every(function(e,t){return e===c[t]}))){i.className=t;var u,c,s=i.holidayNames;i.holidayNames=s?[].concat(tw(s),[o]):[o],n.set(a,i)}}}),n}(r.modifyHolidays()),includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:nC,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showWeekPicker:r.props.showWeekPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null}),td(tg(r),"renderAriaLiveRegion",function(){var e,t=r.props,n=t.dateFormat,o=t.locale,a=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(tM(r.props.startDate,{dateFormat:a,locale:o}),". ").concat(r.props.endDate?"End date: "+tM(r.props.endDate,{dateFormat:a,locale:o}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(tM(r.props.selected,{dateFormat:n,locale:o})):r.props.showYearPicker?"Selected year: ".concat(tM(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?"Selected month: ".concat(tM(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(tM(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(tM(r.props.selected,{dateFormat:a,locale:o})),ef.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)}),td(tg(r),"renderDateInput",function(){var e,t=ep.default(r.props.className,td({},nC,r.state.open)),n=r.props.customInput||ef.default.createElement("input",{type:"text"}),o=r.props.customInputRef||"ref",a="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=tM(e,n),o=t?tM(t,n):"";return"".concat(r," - ").concat(o)}(r.props.startDate,r.props.endDate,r.props):tM(r.props.selected,r.props);return ef.default.cloneElement(n,(td(td(td(td(td(td(td(td(td(td(e={},o,function(e){r.input=e}),"value",a),"onBlur",r.handleBlur),"onChange",r.handleChange),"onClick",r.onInputClick),"onFocus",r.handleFocus),"onKeyDown",r.onInputKeyDown),"id",r.props.id),"name",r.props.name),"form",r.props.form),td(td(td(td(td(td(td(td(td(td(e,"autoFocus",r.props.autoFocus),"placeholder",r.props.placeholderText),"disabled",r.props.disabled),"autoComplete",r.props.autoComplete),"className",ep.default(n.props.className,t)),"title",r.props.title),"readOnly",r.props.readOnly),"required",r.props.required),"tabIndex",r.props.tabIndex),"aria-describedby",r.props.ariaDescribedBy),td(td(td(e,"aria-invalid",r.props.ariaInvalid),"aria-labelledby",r.props.ariaLabelledBy),"aria-required",r.props.ariaRequired)))}),td(tg(r),"renderClearButton",function(){var e=r.props,t=e.isClearable,n=e.disabled,o=e.selected,a=e.startDate,i=e.endDate,u=e.clearButtonTitle,c=e.clearButtonClassName,s=e.ariaLabelClose;return t&&(null!=o||null!=a||null!=i)?ef.default.createElement("button",{type:"button",className:ep.default("react-datepicker__close-icon",void 0===c?"":c,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":void 0===s?"Close":s,onClick:r.onClearClick,title:u,tabIndex:-1}):null}),r.state=r.calcInitialState(),r.preventFocusTimeout=null,r}return tp(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?eN.default(n)!==eN.default(r)||eR.default(n)!==eR.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ne(this.props.highlightDates)}),t.focused||tU(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname;return ef.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&ef.default.createElement(n_,{icon:n,className:r}),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ef.default.createElement(nM,{enableTabLoop:this.props.enableTabLoop},ef.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=ef.default.createElement(nE,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ef.default.createElement("div",null,this.renderInputContainer(),t)}return ef.default.createElement(nT,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(ef.default.Component),nR="input",nL="navigate";e.CalendarContainer=nS,e.default=nI,e.getDefaultLocale=tZ,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(67294),n(45697),n(94184),n(71381),n(12274),n(42298),n(58545),n(78343),n(77349),n(63500),n(11640),n(8791),n(21593),n(7069),n(77982),n(54559),n(58793),n(59319),n(77881),n(39159),n(85817),n(20466),n(55855),n(90259),n(78966),n(56605),n(95570),n(28789),n(39880),n(4543),n(37042),n(16218),n(11503),n(44749),n(37950),n(99890),n(92300),n(84129),n(91857),n(69119),n(584),n(43703),n(94431),n(38148),n(83894),n(67090),n(4135),n(10876),n(96843),n(3151),n(49160),n(60792),n(86117),n(42699),n(313),n(24257),n(19013),n(9068),n(23855),n(58949),n(73935),n(36829),n(92311))},69590:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,i){if(a===i)return!0;if(a&&i&&"object"==typeof a&&"object"==typeof i){var u,c,s,l;if(a.constructor!==i.constructor)return!1;if(Array.isArray(a)){if((u=a.length)!=i.length)return!1;for(c=u;0!=c--;)if(!e(a[c],i[c]))return!1;return!0}if(n&&a instanceof Map&&i instanceof Map){if(a.size!==i.size)return!1;for(l=a.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;for(l=a.entries();!(c=l.next()).done;)if(!e(c.value[1],i.get(c.value[0])))return!1;return!0}if(r&&a instanceof Set&&i instanceof Set){if(a.size!==i.size)return!1;for(l=a.entries();!(c=l.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(i)){if((u=a.length)!=i.length)return!1;for(c=u;0!=c--;)if(a[c]!==i[c])return!1;return!0}if(a.constructor===RegExp)return a.source===i.source&&a.flags===i.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof i.valueOf)return a.valueOf()===i.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof i.toString)return a.toString()===i.toString();if((u=(s=Object.keys(a)).length)!==Object.keys(i).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(i,s[c]))return!1;if(t&&a instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!a.$$typeof)&&!e(a[s[c]],i[s[c]]))return!1;return!0}return a!=a&&i!=i}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},58949:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return h}});var r,o,a=n(67294),i=n(73935);function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}},l=(void 0===r&&(r=0),function(){return++r}),f={},p={},d=["touchstart","touchmove"],h="ignore-react-onclickoutside";function y(e,t){var n={};return -1!==d.indexOf(t)&&o&&(n.passive=!e.props.preventDefault),n}t.default=function(e,t){var n,r,d=e.displayName||e.name||"Component";return r=n=function(n){function r(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"==typeof r.__clickOutsideHandlerProp){r.__clickOutsideHandlerProp(e);return}var t=r.getInstance();if("function"==typeof t.props.handleClickOutside){t.props.handleClickOutside(e);return}if("function"==typeof t.handleClickOutside){t.handleClickOutside(e);return}throw Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[r._uid]){void 0===o&&(o=s()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),f[r._uid]=function(e){null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),!(r.props.excludeScrollbar&&(document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)))&&function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){var r;if(e.parentNode&&((r=e)===t||(r.correspondingElement?r.correspondingElement.classList.contains(n):r.classList.contains(n))))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)},e.forEach(function(e){document.addEventListener(e,f[r._uid],y(c(r),e))})}},r.disableOnClickOutside=function(){delete p[r._uid];var e=f[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,y(c(r),t))}),delete f[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}(h=r).prototype=Object.create(n.prototype),h.prototype.constructor=h,u(h,n);var h,v=r.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw Error("WrappedComponent: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,a.createElement)(e,n)},r}(a.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}},36829:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return f},Popper:function(){return e_},Reference:function(){return eM},usePopper:function(){return ek}});var r,o,a,i,u,c=n(67294),s=c.createContext(),l=c.createContext();function f(e){var t=e.children,n=c.useState(null),r=n[0],o=n[1],a=c.useRef(!1);c.useEffect(function(){return function(){a.current=!0}},[]);var i=c.useCallback(function(e){a.current||o(e)},[]);return c.createElement(s.Provider,{value:r},c.createElement(l.Provider,{value:i},t))}var p=function(e){return Array.isArray(e)?e[0]:e},d=function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&S(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&S(r.height)/e.offsetHeight||1);var i=(b(e)?g(e):window).visualViewport,u=!j()&&n,c=(r.left+(u&&i?i.offsetLeft:0))/o,s=(r.top+(u&&i?i.offsetTop:0))/a,l=r.width/o,f=r.height/a;return{width:l,height:f,top:s,right:c+l,bottom:s+f,left:c,x:c,y:s}}function E(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function P(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return _(M(e)).left+E(e).scrollLeft}function C(e){return g(e).getComputedStyle(e)}function A(e){var t=C(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function N(e){var t=_(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function I(e){return"html"===P(e)?e:e.assignedSlot||e.parentNode||(x(e)?e.host:null)||M(e)}function R(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(P(t))>=0?t.ownerDocument.body:w(t)&&A(t)?t:e(I(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=g(r),i=o?[a].concat(a.visualViewport||[],A(r)?r:[]):r,u=t.concat(i);return o?u:u.concat(R(I(i)))}function L(e){return w(e)&&"fixed"!==C(e).position?e.offsetParent:null}function B(e){for(var t=g(e),n=L(e);n&&["table","td","th"].indexOf(P(n))>=0&&"static"===C(n).position;)n=L(n);return n&&("html"===P(n)||"body"===P(n)&&"static"===C(n).position)?t:n||function(e){var t=/firefox/i.test(D());if(/Trident/i.test(D())&&w(e)&&"fixed"===C(e).position)return null;var n=I(e);for(x(n)&&(n=n.host);w(n)&&0>["html","body"].indexOf(P(n));){var r=C(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Y="bottom",F="right",U="left",W="auto",Z=["top",Y,F,U],H="start",z="viewport",$="popper",q=Z.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),K=[].concat(Z,[W]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],G={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function en(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?J(o):null,i=o?ee(o):null,u=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:u,y:n.y-r.height};break;case Y:t={x:u,y:n.y+n.height};break;case F:t={x:n.x+n.width,y:c};break;case U:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var s=a?et(a):null;if(null!=s){var l="y"===s?"height":"width";switch(i){case H:t[s]=t[s]-(n[l]/2-r[l]/2);break;case"end":t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var er={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eo(e){var t,n,r,o,a,i,u,c=e.popper,s=e.popperRect,l=e.placement,f=e.variation,p=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,m=e.isFixed,b=p.x,w=void 0===b?0:b,x=p.y,O=void 0===x?0:x,k="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=k.x,O=k.y;var D=p.hasOwnProperty("x"),j=p.hasOwnProperty("y"),_=U,E="top",P=window;if(y){var T=B(c),A="clientHeight",N="clientWidth";T===g(c)&&"static"!==C(T=M(c)).position&&"absolute"===d&&(A="scrollHeight",N="scrollWidth"),("top"===l||(l===U||l===F)&&"end"===f)&&(E=Y,O-=(m&&T===P&&P.visualViewport?P.visualViewport.height:T[A])-s.height,O*=h?1:-1),(l===U||("top"===l||l===Y)&&"end"===f)&&(_=F,w-=(m&&T===P&&P.visualViewport?P.visualViewport.width:T[N])-s.width,w*=h?1:-1)}var I=Object.assign({position:d},y&&er),R=!0===v?(t={x:w,y:O},n=g(c),r=t.x,o=t.y,{x:S(r*(a=n.devicePixelRatio||1))/a||0,y:S(o*a)/a||0}):{x:w,y:O};return(w=R.x,O=R.y,h)?Object.assign({},I,((u={})[E]=j?"0":"",u[_]=D?"0":"",u.transform=1>=(P.devicePixelRatio||1)?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",u)):Object.assign({},I,((i={})[E]=j?O+"px":"",i[_]=D?w+"px":"",i.transform="",i))}var ea={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return ea[e]})}var eu={start:"end",end:"start"};function ec(e){return e.replace(/start|end/g,function(e){return eu[e]})}function es(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&x(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function el(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ef(e,t,n){var r,o,a,i,u,c,s,l,f,p;return t===z?el(function(e,t){var n=g(e),r=M(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,u=0,c=0;if(o){a=o.width,i=o.height;var s=j();(s||!s&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:u+T(e),y:c}}(e,n)):b(t)?((r=_(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):el((o=M(e),i=M(o),u=E(o),c=null==(a=o.ownerDocument)?void 0:a.body,s=O(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=O(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),f=-u.scrollLeft+T(o),p=-u.scrollTop,"rtl"===C(c||i).direction&&(f+=O(i.clientWidth,c?c.clientWidth:0)-s),{width:s,height:l,x:f,y:p}))}function ep(){return{top:0,right:0,bottom:0,left:0}}function ed(e){return Object.assign({},ep(),e)}function eh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ey(e,t){void 0===t&&(t={});var n,r,o,a,i,u,c,s=t,l=s.placement,f=void 0===l?e.placement:l,p=s.strategy,d=void 0===p?e.strategy:p,h=s.boundary,y=s.rootBoundary,v=s.elementContext,m=void 0===v?$:v,g=s.altBoundary,x=s.padding,S=void 0===x?0:x,D=ed("number"!=typeof S?S:eh(S,Z)),j=e.rects.popper,E=e.elements[void 0!==g&&g?m===$?"reference":$:m],T=(n=b(E)?E:E.contextElement||M(e.elements.popper),u=(i=[].concat("clippingParents"===(r=void 0===h?"clippingParents":h)?(o=R(I(n)),b(a=["absolute","fixed"].indexOf(C(n).position)>=0&&w(n)?B(n):n)?o.filter(function(e){return b(e)&&es(e,a)&&"body"!==P(e)}):[]):[].concat(r),[void 0===y?z:y]))[0],(c=i.reduce(function(e,t){var r=ef(n,t,d);return e.top=O(r.top,e.top),e.right=k(r.right,e.right),e.bottom=k(r.bottom,e.bottom),e.left=O(r.left,e.left),e},ef(n,u,d))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),A=_(e.elements.reference),N=en({reference:A,element:j,strategy:"absolute",placement:f}),L=el(Object.assign({},j,N)),U=m===$?L:A,W={top:T.top-U.top+D.top,bottom:U.bottom-T.bottom+D.bottom,left:T.left-U.left+D.left,right:U.right-T.right+D.right},H=e.modifiersData.offset;if(m===$&&H){var q=H[f];Object.keys(W).forEach(function(e){var t=[F,Y].indexOf(e)>=0?1:-1,n=["top",Y].indexOf(e)>=0?"y":"x";W[e]+=q[n]*t})}return W}function ev(e,t,n){return O(e,k(t,n))}function em(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eg(e){return["top",F,Y,U].some(function(t){return e[t]>=0})}var eb=(a=void 0===(o=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,u=void 0===i||i,c=g(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach(function(e){e.addEventListener("scroll",n.update,Q)}),u&&c.addEventListener("resize",n.update,Q),function(){a&&s.forEach(function(e){e.removeEventListener("scroll",n.update,Q)}),u&&c.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=en({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=n.adaptive,a=n.roundOffsets,i=void 0===a||a,u={placement:J(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,eo(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,eo(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];w(o)&&P(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});w(r)&&P(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=K.reduce(function(e,n){var r,o,i,u,c,s;return e[n]=(r=t.rects,i=[U,"top"].indexOf(o=J(n))>=0?-1:1,c=(u="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],s=u[1],c=c||0,s=(s||0)*i,[U,F].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}),e},{}),u=i[t.placement],c=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,u=void 0===i||i,c=n.fallbackPlacements,s=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,y=n.allowedAutoPlacements,v=t.options.placement,m=J(v),g=[v].concat(c||(m!==v&&h?function(e){if(J(e)===W)return[];var t=ei(e);return[ec(e),t,ec(t)]}(v):[ei(v)])).reduce(function(e,n){var r,o,a,i,u,c,p,d,v,m,g,b;return e.concat(J(n)===W?(o=(r={placement:n,boundary:l,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:y}).placement,a=r.boundary,i=r.rootBoundary,u=r.padding,c=r.flipVariations,d=void 0===(p=r.allowedAutoPlacements)?K:p,0===(g=(m=(v=ee(o))?c?q:q.filter(function(e){return ee(e)===v}):Z).filter(function(e){return d.indexOf(e)>=0})).length&&(g=m),Object.keys(b=g.reduce(function(e,n){return e[n]=ey(t,{placement:n,boundary:a,rootBoundary:i,padding:u})[J(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),b=t.rects.reference,w=t.rects.popper,x=new Map,O=!0,k=g[0],S=0;S=0,P=E?"width":"height",M=ey(t,{placement:D,boundary:l,rootBoundary:f,altBoundary:p,padding:s}),T=E?_?F:U:_?Y:"top";b[P]>w[P]&&(T=ei(T));var C=ei(T),A=[];if(a&&A.push(M[j]<=0),u&&A.push(M[T]<=0,M[C]<=0),A.every(function(e){return e})){k=D,O=!1;break}x.set(D,A)}if(O)for(var N=h?3:1,I=function(e){var t=g.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},R=N;R>0&&"break"!==I(R);R--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=n.altAxis,i=n.boundary,u=n.rootBoundary,c=n.altBoundary,s=n.padding,l=n.tether,f=void 0===l||l,p=n.tetherOffset,d=void 0===p?0:p,h=ey(t,{boundary:i,rootBoundary:u,padding:s,altBoundary:c}),y=J(t.placement),v=ee(t.placement),m=!v,g=et(y),b="x"===g?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,D="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,j="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(void 0===o||o){var P,M="y"===g?"top":U,T="y"===g?Y:F,C="y"===g?"height":"width",A=w[g],I=A+h[M],R=A-h[T],L=f?-S[C]/2:0,W=v===H?x[C]:S[C],Z=v===H?-S[C]:-x[C],z=t.elements.arrow,$=f&&z?N(z):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ep(),K=q[M],V=q[T],G=ev(0,x[C],$[C]),X=m?x[C]/2-L-G-K-j.mainAxis:W-G-K-j.mainAxis,Q=m?-x[C]/2+L+G+V+j.mainAxis:Z+G+V+j.mainAxis,en=t.elements.arrow&&B(t.elements.arrow),er=en?"y"===g?en.clientTop||0:en.clientLeft||0:0,eo=null!=(P=null==_?void 0:_[g])?P:0,ea=ev(f?k(I,A+X-eo-er):I,A,f?O(R,A+Q-eo):R);w[g]=ea,E[g]=ea-A}if(void 0!==a&&a){var ei,eu,ec=w[b],es="y"===b?"height":"width",el=ec+h["x"===g?"top":U],ef=ec-h["x"===g?Y:F],ed=-1!==["top",U].indexOf(y),eh=null!=(ei=null==_?void 0:_[b])?ei:0,em=ed?el:ec-x[es]-S[es]-eh+j.altAxis,eg=ed?ec+x[es]+S[es]-eh-j.altAxis:ef,eb=f&&ed?(eu=ev(em,ec,eg))>eg?eg:eu:ev(f?em:el,ec,f?eg:ef);w[b]=eb,E[b]=eb-ec}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,o=e.name,a=e.options,i=r.elements.arrow,u=r.modifiersData.popperOffsets,c=J(r.placement),s=et(c),l=[U,F].indexOf(c)>=0?"height":"width";if(i&&u){var f=ed("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eh(t,Z)),p=N(i),d=r.rects.reference[l]+r.rects.reference[s]-u[s]-r.rects.popper[l],h=u[s]-r.rects.reference[s],y=B(i),v=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,m=f["y"===s?"top":U],g=v-p[l]-f["y"===s?Y:F],b=v/2-p[l]/2+(d/2-h/2),w=ev(m,b,g);r.modifiersData[o]=((n={})[s]=w,n.centerOffset=w-b,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&es(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ey(t,{elementContext:"reference"}),u=ey(t,{altBoundary:!0}),c=em(i,r),s=em(u,o,a),l=eg(c),f=eg(s);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,u=void 0===(i=r.defaultOptions)?G:i,function(e,t,n){void 0===n&&(n=u);var r,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],c=!1,s={state:o,setOptions:function(n){var r,c,f,p,d,h="function"==typeof n?n(o.options):n;l(),o.options=Object.assign({},u,o.options,h),o.scrollParents={reference:b(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var y=(c=Object.keys(r=[].concat(a,o.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),f=new Map,p=new Set,d=[],c.forEach(function(e){f.set(e.name,e)}),c.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var n=f.get(t);n&&e(n)}}),d.push(t)}(e)}),V.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=y.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:s,options:void 0===n?{}:n});i.push(a||function(){})}}),s.update()},forceUpdate:function(){if(!c){var e,t,n,r,a,i,u,l,f,p,d,h,y=o.elements,v=y.reference,m=y.popper;if(X(v,m)){o.rects={reference:(t=B(m),n="fixed"===o.options.strategy,r=w(t),l=w(t)&&(i=S((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=S(a.height)/t.offsetHeight||1,1!==i||1!==u),f=M(t),p=_(v,l,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0},(r||!r&&!n)&&(("body"!==P(t)||A(f))&&(d=(e=t)!==g(e)&&w(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),w(t)?(h=_(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):f&&(h.x=T(f))),{x:p.left+d.scrollLeft-h.x,y:p.top+d.scrollTop-h.y,width:p.width,height:p.height}),popper:N(m)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function g(e,t){return d(e.getTime(),t.getTime())}function b(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),u=0;(r=i.next())&&!r.done;){for(var c=t.entries(),s=!1,l=0;(o=c.next())&&!o.done;){var f=r.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];!s&&!a[l]&&(s=n.equals(p,y,u,l,e,t,n)&&n.equals(d,v,p,y,e,t,n))&&(a[l]=!0),l++}if(!s)return!1;u++}return!0}function w(e,t,n){var r,o=v(e),a=o.length;if(v(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function x(e,t,n){var r,o,a,i=f(e),u=i.length;if(f(t).length!==u)return!1;for(;u-- >0;)if((r=i[u])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=y(e,r),a=y(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function k(e,t){return e.source===t.source&&e.flags===t.flags}function S(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var u=t.values(),c=!1,s=0;(o=u.next())&&!o.done;)!c&&!a[s]&&(c=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[s]=!0),s++;if(!c)return!1}return!0}function D(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var j=Array.isArray,_="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,E=Object.assign,P=Object.prototype.toString.call.bind(Object.prototype.toString),M=T();function T(e){void 0===e&&(e={});var t,n,r,o,a,i,u,c,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,v=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?x:m,areDatesEqual:g,areMapsEqual:r?s(b,x):b,areObjectsEqual:r?x:w,arePrimitiveWrappersEqual:O,areRegExpsEqual:k,areSetsEqual:r?s(S,x):S,areTypedArraysEqual:r?x:D};if(n&&(o=E({},o,n(o))),t){var a=l(o.areArraysEqual),i=l(o.areMapsEqual),u=l(o.areObjectsEqual),c=l(o.areSetsEqual);o=E({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:u,areSetsEqual:c})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,u=t.areRegExpsEqual,c=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var l=e.constructor;if(l!==t.constructor)return!1;if(l===Object)return a(e,t,s);if(j(e))return n(e,t,s);if(null!=_&&_(e))return f(e,t,s);if(l===Date)return r(e,t,s);if(l===RegExp)return u(e,t,s);if(l===Map)return o(e,t,s);if(l===Set)return c(e,t,s);var p=P(e);return"[object Date]"===p?r(e,t,s):"[object RegExp]"===p?u(e,t,s):"[object Map]"===p?o(e,t,s):"[object Set]"===p?c(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,s):"[object Arguments]"===p?a(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,s)}),M=d?d(v):function(e,t,n,r,o,a,i){return v(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var u=r(),c=u.cache;return n(e,i,{cache:void 0===c?t?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==p&&p,comparator:v,createState:h,equals:M,strict:void 0!==y&&y})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=Q(a,u),d=Q(i,c),h=(e=a,t=u,function(n){var r;return X([].concat(function(e){if(Array.isArray(e))return V(e)}(r=G(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||K(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=h(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return d(n)};return y.isStepper=!1,y},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,u=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,u=r*i/1e3+e;return 1e-4>Math.abs(u-t)&&1e-4>Math.abs(a)?[t,0]:[u,a]};return u.isStepper=!0,u.dt=i,u},et=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=s||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ey(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:a,easing:u}),a]);var d=$(p,a,u),h=eg(eg(eg({},f.style),c),{},{transition:d});return[].concat(ey(e),[h,a,l]).filter(W)},[i,Math.max(void 0===u?0:u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){C(e.bind(null,i),a);return}e(a),C(e.bind(null,i));return}"object"===A(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,u=e.to,c=e.easing,s=e.onAnimationStart,l=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(e);return}if(f.length>1){this.runStepAnimation(e);return}var h=i?eb({},i,u):u,y=$(Object.keys(h),a,c);d.start([s,o,eg(eg({},h),{},{transition:y}),a,l])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),a=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eh)),i=r.Children.count(t),u=z(this.state.style);if("function"==typeof t)return t(u);if(!o||0===i||n<=0)return t;var c=function(e){var t=e.props,n=t.style,o=t.className;return(0,r.cloneElement)(e,eg(eg({},a),{},{style:eg(eg({},void 0===n?{}:n),u),className:o}))};return 1===i?c(r.Children.only(t)):r.createElement("div",null,r.Children.map(t,function(e){return c(e)}))}}],ew(i.prototype,n),o&&ew(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);ej.displayName="Animate",ej.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ej.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func};var e_=n(29469),eE=["children","appearOptions","enterOptions","leaveOptions"];function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(){return(eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},eF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&eN(e,t)}(i,e);var t,n,o,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=eR(i);if(t){var r=eR(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===eP(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eI(e)}(this,e)});function i(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),eL(eI(e=a.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),eL(eI(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(eC(eC({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return eY(t)+eY(n)+eY(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,eE));return r.createElement(e_.Transition,eM({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(ej,e.state,r.Children.only(n))})}}],eA(i.prototype,n),o&&eA(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.Component);function eU(e){var t=e.component,n=e.children,o=e.appear,a=e.enter,i=e.leave;return r.createElement(e_.TransitionGroup,{component:t},r.Children.map(n,function(e,t){return r.createElement(eF,{appearOptions:o,enterOptions:a,leaveOptions:i,key:"child-".concat(t)},e)}))}eF.propTypes={appearOptions:a().object,enterOptions:a().object,leaveOptions:a().object,children:a().element},eU.propTypes={appear:a().object,enter:a().object,leave:a().object,children:a().oneOfType([a().array,a().element]),component:a().any},eU.defaultProps={component:"span"};var eW=ej},88292:function(e,t,n){"use strict";var r=n(5631);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(85312));e.exports=t.default},85312:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},80294:function(e){"use strict";function t(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},58818:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,function(e){if(!e||!e.__esModule){var t={};if(null!=e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}t.default=e}}(n(45697));var r=u(n(88292)),o=u(n(80294)),a=u(n(67294)),i=u(n(32096));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),u=i[0],c=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(a.default,o,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(r.default.Component);u.propTypes={},t.default=u,e.exports=t.default},32096:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}(n(45697)),o=u(n(67294)),a=u(n(73935)),i=n(46871);function u(e){return e&&e.__esModule?e:{default:e}}n(29806);var c="unmounted";t.UNMOUNTED=c;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var d=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=s,r.appearStatus=l):o=f:o=t.unmountOnExit||t.mountOnEnter?c:s,r.state={status:o},r.nextCallback=null,r}(n=t).prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var n,r=t.prototype;return r.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:s}:null},r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(t=l):(n===l||n===f)&&(t=p)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},r.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;if(!t&&!r){this.safeSetState({status:f},function(){n.props.onEntered(e)});return}this.props.onEnter(e,o),this.safeSetState({status:l},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,o)})})})},r.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n){this.safeSetState({status:s},function(){t.props.onExited(e)});return}this.props.onExit(e),this.safeSetState({status:p},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:s},function(){t.props.onExited(e)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;if(!e||r){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},r.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},t}(o.default.Component);function h(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var y=(0,i.polyfill)(d);t.default=y},57114:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(45697)),o=u(n(67294)),a=n(46871),i=n(4474);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),a=l(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?a:o.default.createElement(t,r,a)},t}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(f);t.default=p,e.exports=t.default},29469:function(e,t,n){"use strict";var r=u(n(58818)),o=u(n(17557)),a=u(n(57114)),i=u(n(32096));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:r.default}},4474:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=a,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var u=o(e.children),c=a(t,u);return Object.keys(c).forEach(function(o){var a=c[o];if((0,r.isValidElement)(a)){var s=o in t,l=o in u,f=t[o],p=(0,r.isValidElement)(f)&&!f.props.in;l&&(!s||p)?c[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:i(a,"exit",e),enter:i(a,"enter",e)}):l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(c[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:f.props.in,exit:i(a,"exit",e),enter:i(a,"enter",e)})):c[o]=(0,r.cloneElement)(a,{in:!1})}}),c};var r=n(67294);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,r.isValidElement)(e)?t(e):e}),n}function a(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var u={};for(var c in t){if(o[c])for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var M=function(e){return Array.isArray(e.value)?g()(e.value):e.value};function T(e){var t=e.valueAccessor,n=void 0===t?M:t,o=P(e,k),a=o.data,i=o.dataKey,u=o.clockWise,c=o.id,f=o.textBreakAll,p=P(o,S);return a&&a.length?r.createElement(l.m,{className:"recharts-label-list"},a.map(function(e,t){var o=s()(i)?n(e,t):(0,x.F$)(e&&e.payload,i),a=s()(c)?{}:{id:"".concat(c,"-").concat(t)};return r.createElement(b._,j({},(0,w.L6)(e,!0),p,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:f,viewBox:b._.parseViewBox(s()(u)?e:E(E({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}T.displayName="LabelList",T.renderCallByParent=function(e,t){var n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=(0,w.NN)(a,T).map(function(e,n){return(0,r.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return o?[(n=e.label)?!0===n?r.createElement(T,{key:"labelList-implicit",data:t}):r.isValidElement(n)||v()(n)?r.createElement(T,{key:"labelList-implicit",data:t,content:n}):h()(n)?r.createElement(T,j({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return D(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i};var C=n(69055),A=n(47523),N=n(79896),I=n(49465);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var L=["x","y"];function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,L),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),u=parseInt("".concat(t.height||o.height),10),c=parseInt("".concat(t.width||o.width),10);return F(F(F(F(F({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:u,width:c,name:t.name,radius:t.radius})}function W(e){return r.createElement(I.bn,B({shapeType:"rectangle",propTransformer:U,activeClassName:"recharts-active-bar"},e))}var Z=["value","background"];function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Z);if(!u)return null;var s=q(q(q(q(q({},c),{},{fill:"#eee"},u),i),(0,N.bw)(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return r.createElement(W,z({option:e.props.background,isActive:n===a},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,a=n.xAxis,i=n.yAxis,u=n.layout,c=n.children,s=(0,w.NN)(c,f.W);if(!s)return null;var p="vertical"===u?o[0].height/2:o[0].width/2,d=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:(0,x.F$)(e,t)}};return r.createElement(l.m,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return r.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:a,yAxis:i,layout:u,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,a=e.className,i=e.xAxis,u=e.yAxis,c=e.left,f=e.top,p=e.width,d=e.height,h=e.isAnimationActive,y=e.background,v=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,g=(0,o.Z)("recharts-bar",a),b=i&&i.allowDataOverflow,w=u&&u.allowDataOverflow,x=b||w,O=s()(v)?this.id:v;return r.createElement(l.m,{className:g},b||w?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(O)},r.createElement("rect",{x:b?c:c-p/2,y:w?f:f-d/2,width:b?p:2*p,height:w?d:2*d}))):null,r.createElement(l.m,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!h||m)&&T.renderCallByParent(this.props,n))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&K(p.prototype,n),i&&K(p,i),Object.defineProperty(p,"prototype",{writable:!1}),p}(r.PureComponent);Q(ee,"displayName","Bar"),Q(ee,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!A.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Q(ee,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,a=e.xAxis,i=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=(0,x.Bu)(r,n);if(!h)return null;var y=t.layout,v=n.props,m=v.dataKey,g=v.children,b=v.minPointSize,O="horizontal"===y?i:a,k=s?O.scale.domain():null,S=(0,x.Yj)({numericAxis:O}),D=(0,w.NN)(g,p),j=f.map(function(e,t){var r,f,p,d,v,g;if(s?r=(0,x.Vv)(s[l+t],k):Array.isArray(r=(0,x.F$)(e,m))||(r=[S,r]),"horizontal"===y){var w,O=[i.scale(r[0]),i.scale(r[1])],j=O[0],_=O[1];f=(0,x.Fy)({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:e,index:t}),p=null!==(w=null!=_?_:j)&&void 0!==w?w:void 0,d=h.size;var E=j-_;if(v=Number.isNaN(E)?0:E,g={x:f,y:i.y,width:d,height:i.height},Math.abs(b)>0&&Math.abs(v)0&&Math.abs(d)=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),v=(0,a.L6)(y),m=f.map(function(e){var a,i,f=p(e,l),y=f.x,m=f.y,g=f.value,b=f.errorVal;if(!b)return null;var w=[];if(Array.isArray(b)){var x=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(b,2)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=x[0],i=x[1]}else a=i=b;if("vertical"===n){var O=d.scale,k=m+t,S=k+s,D=k-s,j=O(g-a),_=O(g+i);w.push({x1:_,y1:S,x2:_,y2:D}),w.push({x1:j,y1:k,x2:_,y2:k}),w.push({x1:j,y1:S,x2:j,y2:D})}else if("horizontal"===n){var E=h.scale,P=y+t,M=P-s,T=P+s,C=E(g-a),A=E(g+i);w.push({x1:M,y1:A,x2:T,y2:A}),w.push({x1:P,y1:C,x2:P,y2:A}),w.push({x1:M,y1:C,x2:T,y2:C})}return r.createElement(o.m,u({className:"recharts-errorBar",key:"bar-".concat(w.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),w.map(function(e){return r.createElement("line",u({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return r.createElement(o.m,{className:"recharts-errorBars"},m)}s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s.displayName="ErrorBar"},3023:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},75358:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},41087:function(e,t,n){"use strict";n.d(t,{v:function(){return nB}});var r,o,a,i,u,c,s,l,f,p,d,h,y,v,m=n(67294),g=n(14293),b=n.n(g),w=n(23560),x=n.n(w),O=n(96026),k=n.n(O),S=n(27361),D=n.n(S),j=n(89734),_=n.n(j),E=n(23493),P=n.n(E),M=n(13311),T=n.n(M),C=n(711),A=n.n(C),N=n(83231),I=n(40048);function R(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[(0,I.op)(t,n,r,o),(0,I.op)(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}var L=n(69055),B=n(41209),Y=n(47523),F=n(66604),U=n.n(F),W=n(75471),Z=n(52017),H=n(18242);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&$(n.prototype,e),t&&$(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();V(Q,"EPS",1e-4);var J=function(e){var t=Object.keys(e).reduce(function(t,n){return K(K({},t),{},V({},n,Q.create(e[n])))},{});return K(K({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return U()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return A()(e,function(e,n){return t[n].isInRange(e)})}})},ee=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function er(e){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t=2?(0,L.uY)(s[1].coordinate-s[0].coordinate):1,O=(r="width"===m,o=l.x,a=l.y,i=l.width,u=l.height,1===w?{start:r?o:a,end:r?o+i:a+u}:{start:r?o+i:a+u,end:r?o:a});return"equidistantPreserveStart"===d?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),u=t.start,c=t.end,s=0,l=1,f=u;l<=i.length;)if(a=function(){var t,a=null==r?void 0:r[s];if(void 0===a)return{v:et(r,l)};var i=s,p=function(){return void 0===t&&(t=n(a,i)),t},d=a.coordinate,h=0===s||en(e,d,p,f,c);h||(s=0,f=u,l+=1),h&&(f=d+e*(p()/2+o),s+=l)}())return a.v;return[]}(w,O,b,s,f):("preserveStart"===d||"preserveStartEnd"===d?function(e,t,n,r,o,a){var i=(r||[]).slice(),u=i.length,c=t.start,s=t.end;if(a){var l=r[u-1],f=n(l,u-1),p=e*(l.coordinate+e*f/2-s);i[u-1]=l=ea(ea({},l),{},{tickCoord:p>0?l.coordinate-p*e:l.coordinate}),en(e,l.tickCoord,function(){return f},c,s)&&(s=l.tickCoord-e*(f/2+o),i[u-1]=ea(ea({},l),{},{isShow:!0}))}for(var d=a?u-1:u,h=function(t){var r,a=i[t],u=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var l=e*(a.coordinate-e*u()/2-c);i[t]=a=ea(ea({},a),{},{tickCoord:l<0?a.coordinate-l*e:a.coordinate})}else i[t]=a=ea(ea({},a),{},{tickCoord:a.coordinate});en(e,a.tickCoord,u,c,s)&&(c=a.tickCoord+e*(u()/2+o),i[t]=ea(ea({},a),{},{isShow:!0}))},y=0;y0?s.coordinate-f*e:s.coordinate})}else a[t]=s=ea(ea({},s),{},{tickCoord:s.coordinate});en(e,s.tickCoord,l,u,c)&&(c=s.tickCoord-e*(l()/2+o),a[t]=ea(ea({},s),{},{isShow:!0}))},l=i-1;l>=0;l--)s(l);return a}(w,O,b,s,f)).filter(function(e){return e.isShow})}var eu=n(20514),ec=n(48710),es=n(26050),el=n(33558);function ef(){}function ep(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ed(e){this._context=e}function eh(e){this._context=e}function ey(e){this._context=e}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ep(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},eh.prototype={areaStart:ef,areaEnd:ef,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ey.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ep(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class ev{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function em(e){this._context=e}function eg(e){this._context=e}function eb(e){return new eg(e)}function ew(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0);return((a<0?-1:1)+(i<0?-1:1))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs((a*o+i*r)/(r+o)))||0}function ex(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function eO(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,o+u*t,a-u,i-u*n,a,i)}function ek(e){this._context=e}function eS(e){this._context=new eD(e)}function eD(e){this._context=e}function ej(e){this._context=e}function e_(e){var t,n,r=e.length-1,o=Array(r),a=Array(r),i=Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var eP=n(94788),eM=n(20309),eT=n(52882);function eC(e){return e[0]}function eA(e){return e[1]}function eN(e,t){var n=(0,eM.Z)(!0),r=null,o=eb,a=null,i=(0,eT.d)(u);function u(u){var c,s,l,f=(u=(0,eP.Z)(u)).length,p=!1;for(null==r&&(a=o(l=i())),c=0;c<=f;++c)!(c=f;--p)u.point(m[p],g[p]);u.lineEnd(),u.areaEnd()}}v&&(m[l]=+e(d,l,s),g[l]=+t(d,l,s),u.point(r?+r(d,l,s):m[l],n?+n(d,l,s):g[l]))}if(h)return u=null,h+""||null}function l(){return eN().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?eC:(0,eM.Z)(+e),t="function"==typeof t?t:void 0===t?(0,eM.Z)(0):(0,eM.Z)(+t),n="function"==typeof n?n:void 0===n?eA:(0,eM.Z)(+n),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,eM.Z)(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,eM.Z)(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,eM.Z)(+e),s):r},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,eM.Z)(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,eM.Z)(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,eM.Z)(+e),s):n},s.lineX0=s.lineY0=function(){return l().x(e).y(t)},s.lineY1=function(){return l().x(e).y(n)},s.lineX1=function(){return l().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,eM.Z)(!!e),s):o},s.curve=function(e){return arguments.length?(i=e,null!=a&&(u=i(a)),s):i},s.context=function(e){return arguments.length?(null==e?a=u=null:u=i(a=e),s):a},s}var eR=n(11700),eL=n.n(eR),eB=n(79896);function eY(e){return(eY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eX));return(0,L.hj)(n)&&(0,L.hj)(o)&&(0,L.hj)(l)&&(0,L.hj)(p)&&(0,L.hj)(i)&&(0,L.hj)(c)?m.createElement("path",eQ({},(0,Z.L6)(h,!0),{className:(0,N.Z)("recharts-cross",d),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(c,",").concat(o,"h").concat(l)})):null},e1=n(45108);function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ti(e,t){for(var n=0;n0?this.props:s)),r<=0||o<=0||!l||!l.length)?null:m.createElement(ec.m,{className:(0,N.Z)("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(l,this.state.fontSize,this.state.letterSpacing),e5._.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return m.isValidElement(e)?m.cloneElement(e,t):x()(e)?e(t):m.createElement(e8.x,tn({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&ti(a.prototype,n),r&&ti(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(m.Component);ts(tf,"displayName","CartesianAxis"),ts(tf,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var tp=n(175);function td(e){return(td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ty(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),t_(tD(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),t_(tD(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),t_(tD(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),t_(tD(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),t_(tD(t),"handleSlideDragStart",function(e){var n=tM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(tD(t),"startX"),endX:t.handleTravellerDragStart.bind(tD(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,u=o.data.length-1,c=a.getIndexInRange(r,Math.min(t,n)),s=a.getIndexInRange(r,Math.max(t,n));return{startIndex:c-c%i,endIndex:s===u?u:s-s%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=(0,W.F$)(n[e],o,e);return x()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,u=a.width,c=a.travellerWidth,s=a.startIndex,l=a.endIndex,f=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+u-c-o,i+u-c-r):p<0&&(p=Math.max(p,i-r,i-o));var d=this.getIndex({startX:r+p,endX:o+p});(d.startIndex!==s||d.endIndex!==l)&&f&&f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=tM(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,u=this.state[o],c=this.props,s=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,y={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,s+l-f-u):v<0&&(v=Math.max(v,s-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex,w=function(){var e=h.length-1;return"startX"===o&&(a>i?g%d==0:b%d==0)||ai?b%d==0:g%d==0)||a>i&&b===e};this.setState((t_(t={},o,u+v),t_(t,"brushMoveStartX",e.pageX),t),function(){p&&w()&&p(m)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,u=this.state[t],c=o.indexOf(u);if(-1!==c){var s=c+e;if(-1!==s&&!(s>=o.length)){var l=o[s];"startX"===t&&l>=i||"endX"===t&&l<=a||this.setState(t_({},t,l),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return m.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,u=e.padding,c=m.Children.only(i);return c?m.cloneElement(c,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,u=r.height,c=r.traveller,s=r.ariaLabel,l=r.data,f=r.startIndex,p=r.endIndex,d=Math.max(e,this.props.x),h=tO(tO({},(0,Z.L6)(this.props)),{},{x:d,y:o,width:i,height:u}),y=s||"Min value: ".concat(l[f].name,", Max value: ").concat(l[p].name);return m.createElement(ec.m,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(c,h))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return m.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,u=this.state,c=u.startX,s=u.endX,l={pointerEvents:"none",fill:i};return m.createElement(ec.m,{className:"recharts-brush-texts"},m.createElement(e8.x,tw({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,s)-5,y:r+o/2},l),this.getTextOfTick(t)),m.createElement(e8.x,tw({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,s)+a+5,y:r+o/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,u=e.height,c=e.alwaysShowText,s=this.state,l=s.startX,f=s.endX,p=s.isTextActive,d=s.isSlideMoving,h=s.isTravellerMoving,y=s.isTravellerFocused;if(!t||!t.length||!(0,L.hj)(o)||!(0,L.hj)(a)||!(0,L.hj)(i)||!(0,L.hj)(u)||i<=0||u<=0)return null;var v=(0,N.Z)("recharts-brush",n),g=1===m.Children.count(r),b=tg("userSelect","none");return m.createElement(ec.m,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(l,f),this.renderTravellerLayer(l,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||c)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return m.createElement(m.Fragment,null,m.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),m.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),m.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return m.isValidElement(e)?m.cloneElement(e,t):x()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,u=e.startIndex,c=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return tO({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?tP({data:n,width:r,x:o,travellerWidth:a,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&tk(a.prototype,n),r&&tk(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(m.PureComponent);t_(tT,"displayName","Brush"),t_(tT,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var tC=n(20430),tA=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},tN=n(6213);function tI(e){return(tI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tR(){return(tR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nl(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&(0,L.hj)(r)&&(0,L.hj)(o)?e.slice(r,o+1):[]};function nj(e){return"number"===e?[0,"auto"]:void 0}var n_=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=nD(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,u){if(u.props.hide)return o;var c,s,l=null!==(c=u.props.data)&&void 0!==c?c:t;if(l&&e.dataStartIndex+e.dataEndIndex!==0&&(l=l.slice(e.dataStartIndex,e.dataEndIndex+1)),a.dataKey&&!a.allowDuplicatedCategory){var f=void 0===l?i:l;s=(0,L.Ap)(f,a.dataKey,r)}else s=l&&l[n]||i[n];return s?[].concat(nh(o),[(0,W.Qo)(u,s)]):o},[])},nE=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,u=e.tooltipAxis,c=e.tooltipTicks,s=(0,W.VO)(a,i,c,u);if(s>=0&&c){var l=c[s]&&c[s].value,f=n_(e,t,s,l),p=nS(n,i,s,o);return{activeTooltipIndex:s,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},nP=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,l=e.children,f=e.stackOffset,p=(0,W.NA)(s,o);return n.reduce(function(t,n){var d=n.props,h=d.type,y=d.dataKey,v=d.allowDataOverflow,m=d.allowDuplicatedCategory,g=d.scale,w=d.ticks,x=d.includeHidden,O=n.props[a];if(t[O])return t;var S=nD(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===O}),dataStartIndex:u,dataEndIndex:c}),D=S.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&(0,L.hj)(r)&&(0,L.hj)(o))return!0}return!1})(n.props.domain,v,h)&&(E=(0,W.LG)(n.props.domain,null,v),p&&("number"===h||"auto"!==g)&&(M=(0,W.gF)(S,y,"category")));var j=nj(h);if(!E||0===E.length){var _,E,P,M,T,C=null!==(T=n.props.domain)&&void 0!==T?T:j;if(y){if(E=(0,W.gF)(S,y,h),"category"===h&&p){var A=(0,L.bv)(E);m&&A?(P=E,E=k()(0,D)):m||(E=(0,W.ko)(C,E,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(nh(e),[t])},[]))}else if("category"===h)E=m?E.filter(function(e){return""!==e&&!b()(e)}):(0,W.ko)(C,E,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(nh(e),[t])},[]);else if("number"===h){var N=(0,W.ZI)(S,r.filter(function(e){return e.props[a]===O&&(x||!e.props.hide)}),y,o,s);N&&(E=N)}p&&("number"===h||"auto"!==g)&&(M=(0,W.gF)(S,y,"category"))}else E=p?k()(0,D):i&&i[O]&&i[O].hasStack&&"number"===h?"expand"===f?[0,1]:(0,W.EB)(i[O].stackGroups,u,c):(0,W.s6)(S,r.filter(function(e){return e.props[a]===O&&(x||!e.props.hide)}),h,s,!0);"number"===h?(E=t6(l,E,O,o,w),C&&(E=(0,W.LG)(C,E,v))):"category"===h&&C&&E.every(function(e){return C.indexOf(e)>=0})&&(E=C)}return ng(ng({},t),{},nb({},O,ng(ng({},n.props),{},{axisType:o,domain:E,categoricalDomain:M,duplicateDomain:P,originalDomain:null!==(_=n.props.domain)&&void 0!==_?_:j,isCategorical:p,layout:s})))},{})},nM=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,l=e.children,f=nD(e.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),p=f.length,d=(0,W.NA)(s,o),h=-1;return n.reduce(function(e,t){var y,v=t.props[a],m=nj("number");return e[v]?e:(h++,y=d?k()(0,p):i&&i[v]&&i[v].hasStack?t6(l,y=(0,W.EB)(i[v].stackGroups,u,c),v,o):t6(l,y=(0,W.LG)(m,(0,W.s6)(f,n.filter(function(e){return e.props[a]===v&&!e.props.hide}),"number",s),r.defaultProps.allowDataOverflow),v,o),ng(ng({},e),{},nb({},v,ng(ng({axisType:o},r.defaultProps),{},{hide:!0,orientation:D()(nx,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:s}))))},{})},nT=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.children,l="".concat(r,"Id"),f=(0,Z.NN)(s,o),p={};return f&&f.length?p=nP(e,{axes:f,graphicalItems:a,axisType:r,axisIdKey:l,stackGroups:i,dataStartIndex:u,dataEndIndex:c}):a&&a.length&&(p=nM(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:l,stackGroups:i,dataStartIndex:u,dataEndIndex:c})),p},nC=function(e){var t=(0,L.Kt)(e),n=(0,W.uY)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:_()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,W.zT)(t,n)}},nA=function(e){var t=e.children,n=e.defaultShowTooltip,r=(0,Z.sP)(t,tT),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},nN=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},nI=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,u=void 0===i?{}:i,c=n.width,s=n.height,l=n.children,f=n.margin||{},p=(0,Z.sP)(l,tT),d=(0,Z.sP)(l,el.D),h=Object.keys(u).reduce(function(e,t){var n=u[t],r=n.orientation;return n.mirror||n.hide?e:ng(ng({},e),{},nb({},r,e[r]+n.width))},{left:f.left||0,right:f.right||0}),y=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:ng(ng({},e),{},nb({},r,D()(e,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=ng(ng({},y),h),m=v.bottom;p&&(v.bottom+=p.props.height||tT.defaultProps.height),d&&t&&(v=(0,W.By)(v,r,n,t));var g=c-v.left-v.right,b=s-v.top-v.bottom;return ng(ng({brushBottom:m},v),{},{width:Math.max(g,0),height:Math.max(b,0)})},nR=n(3023),nL=n(75358),nB=(a=(r={chartName:"BarChart",GraphicalChild:H.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:nR.K},{axisType:"yAxis",AxisComp:nL.B}],formatAxisMap:function(e,t,n,r,o){var a=e.width,i=e.height,u=e.layout,c=e.children,s=Object.keys(t),l={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:i-n.bottom,bottomMirror:i-n.bottom},f=!!(0,Z.sP)(c,H.$);return s.reduce(function(a,i){var c,s,p,d,h,y=t[i],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var k=m[1]-m[0],S=1/0,D=y.categoricalDomain.sort();D.forEach(function(e,t){t>0&&(S=Math.min((e||0)-(D[t-1]||0),S))});var j=S/k,_="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(c=j*_/2),"no-gap"===y.padding){var E=(0,L.h1)(e.barCategoryGap,j*_),P=j*_/2;c=P-E-(P-E)/_*E}}s="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:y.range,x&&(s=[s[1],s[0]]);var M=(0,W.Hq)(y,o,f),T=M.scale,C=M.realScaleType;T.domain(m).range(s),(0,W.zF)(T);var A=(0,W.g$)(T,K(K({},y),{},{realScaleType:C}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,p=n.left,d=l[O]-h*y.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,p=l[O]-h*y.width,d=n.top);var N=K(K(K({},y),A),{},{realScaleType:C,x:p,y:d,scale:T,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return N.bandSize=(0,W.zT)(N,A),y.hide||"xAxis"!==r?y.hide||(l[O]+=(h?-1:1)*N.width):l[O]+=(h?-1:1)*N.height,K(K({},a),{},V({},i,N))},{})}}).chartName,i=r.GraphicalChild,c=void 0===(u=r.defaultTooltipEventType)?"axis":u,l=void 0===(s=r.validateTooltipEventTypes)?["axis"]:s,f=r.axisComponents,p=r.legendContent,d=r.formatAxisMap,h=r.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,u=t.dataEndIndex,c=e.barSize,s=e.layout,l=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=nN(s),y=h.numericAxisName,v=h.cateAxisName,m=!!n&&!!n.length&&n.some(function(e){var t=(0,Z.Gf)(e&&e.type);return t&&t.indexOf("Bar")>=0})&&(0,W.pt)({barSize:c,stackGroups:r}),g=[];return n.forEach(function(n,c){var h,w=nD(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:u}),x=n.props,O=x.dataKey,k=x.maxBarSize,S=n.props["".concat(y,"Id")],D=n.props["".concat(v,"Id")],j=f.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||function(e,t){if(!e)throw Error("Invariant failed")}(!1);var u=a[i];return ng(ng({},e),{},(nb(o={},r.axisType,u),nb(o,"".concat(r.axisType,"Ticks"),(0,W.uY)(u)),o))},{}),_=j[v],E=j["".concat(v,"Ticks")],P=r&&r[S]&&r[S].hasStack&&(0,W.O3)(n,r[S].stackGroups),M=(0,Z.Gf)(n.type).indexOf("Bar")>=0,T=(0,W.zT)(_,E),C=[];if(M){var A,N,I=b()(k)?d:k,R=null!==(A=null!==(N=(0,W.zT)(_,E,!0))&&void 0!==N?N:I)&&void 0!==A?A:0;C=(0,W.qz)({barGap:l,barCategoryGap:p,bandSize:R!==T?R:T,sizeList:m[D],maxBarSize:I}),R!==T&&(C=C.map(function(e){return ng(ng({},e),{},{position:ng(ng({},e.position),{},{offset:e.position.offset-R/2})})}))}var L=n&&n.type&&n.type.getComposedData;L&&g.push({props:ng(ng({},L(ng(ng({},j),{},{displayedData:w,props:e,dataKey:O,item:n,bandSize:T,barPosition:C,offset:o,stackedData:P,layout:s,dataStartIndex:i,dataEndIndex:u}))),{},(nb(h={key:n.key||"item-".concat(c)},y,j[y]),nb(h,v,j[v]),nb(h,"animationId",a),h)),childIndex:(0,Z.$R)(n,e.children),item:n})}),g},v=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,u=e.updateId;if(!(0,Z.TT)({props:n}))return null;var c=n.children,s=n.layout,l=n.stackOffset,p=n.data,h=n.reverseStackOrder,v=nN(s),m=v.numericAxisName,g=v.cateAxisName,b=(0,Z.NN)(c,i),w=(0,W.wh)(p,b,"".concat(m,"Id"),"".concat(g,"Id"),l,h),x=f.reduce(function(e,t){var a="".concat(t.axisType,"Map");return ng(ng({},e),{},nb({},a,nT(n,ng(ng({},t),{},{graphicalItems:b,stackGroups:t.axisType===m&&w,dataStartIndex:r,dataEndIndex:o}))))},{}),O=nI(ng(ng({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach(function(e){x[e]=d(n,x[e],O,e.replace("Map",""),a)});var k=nC(x["".concat(g,"Map")]),S=y(n,ng(ng({},x),{},{dataStartIndex:r,dataEndIndex:o,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return ng(ng({formattedGraphicalItems:S,graphicalItems:b,offset:O,stackGroups:w},k),x)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw 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&&nf(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nd(i);if(t){var r=nd(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===ni(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return np(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),nb(np(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),nb(np(r),"accessibilityManager",new nn),nb(np(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(ng({legendBBox:e},v({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},ng(ng({},r.state),{},{legendBBox:e}))))}}),nb(np(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),nb(np(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return ng({dataStartIndex:t,dataEndIndex:n},v({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),nb(np(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=ng(ng({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;x()(o)&&o(n,e)}}),nb(np(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?ng(ng({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;x()(o)&&o(n,e)}),nb(np(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),nb(np(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),nb(np(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),nb(np(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;x()(n)&&n(t,e)}),nb(np(r),"handleOuterEvent",function(e){var t,n=(0,Z.Bh)(e),o=D()(r.props,"".concat(n));n&&x()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),nb(np(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=ng(ng({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;x()(o)&&o(n,e)}}),nb(np(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;x()(t)&&t(r.getMouseInfo(e),e)}),nb(np(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;x()(t)&&t(r.getMouseInfo(e),e)}),nb(np(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),nb(np(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),nb(np(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),nb(np(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&t8.emit(t5,r.props.syncId,e,r.eventEmitterSymbol)}),nb(np(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,u=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(ng({dataStartIndex:i,dataEndIndex:u},v({props:r.props,dataStartIndex:i,dataEndIndex:u,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,f=r.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof o)l=o(d,e);else if("value"===o){l=-1;for(var h=0;h=0){if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());P=(0,L.Ap)(h,_,l),M=y&&v&&(0,L.Ap)(v,_,l)}else P=null==h?void 0:h[s],M=y&&v&&v[s];if(k||O){var E=void 0!==e.props.activeIndex?e.props.activeIndex:s;return[(0,m.cloneElement)(e,ng(ng(ng({},o.props),D),{},{activeIndex:E})),null,null]}if(!b()(P))return[j].concat(nh(r.renderActivePoints({item:o,activePoint:P,basePoint:M,childIndex:s,isRange:y})))}else{var P,M,T,C=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:j}).graphicalItem,A=C.item,N=C.childIndex,I=ng(ng(ng({},o.props),D),{},{activeIndex:N});return[(0,m.cloneElement)(void 0===A?e:A,I),null,null]}}return y?[j,null,null]:[j,null]}),nb(np(r),"renderCustomized",function(e,t,n){return(0,m.cloneElement)(e,ng(ng({key:"recharts-customized-".concat(n)},r.props),r.state))}),nb(np(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:r.renderReferenceElement},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:r.renderXAxis},YAxis:{handler:r.renderYAxis},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:(0,L.EL)("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,Z.sP)(this.props.children,es.u);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=(0,B.os)(n),o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var u=this.state,c=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&s){var l=(0,L.Kt)(c).scale,f=(0,L.Kt)(s).scale,p=l&&l.invert?l.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return ng(ng({},o),{},{xValue:p,yValue:d})}var h=nE(this.state,this.props.data,this.props.layout,i);return h?ng(ng({},o),h):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var u=this.state,c=u.angleAxisMap,s=u.radiusAxisMap;if(c&&s){var l=(0,L.Kt)(c);return(0,I.z3)({x:o,y:a},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=(0,Z.sP)(e,es.u),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),ng(ng({},(0,eB.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){t8.on(t5,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){t8.removeListener(t5,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;oe.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===u?(o=g+S*s,i=x):"insideEnd"===u?(o=b-S*s,i=!x):"end"===u&&(o=b+S*s,i=x),i=k<=0?i:!i;var D=(0,h.op)(p,y,O,o),j=(0,h.op)(p,y,O,o+(i?1:-1)*359),_="M".concat(D.x,",").concat(D.y,"\n A").concat(O,",").concat(O,",0,1,").concat(i?0:1,",\n ").concat(j.x,",").concat(j.y),E=a()(e.id)?(0,d.EL)("recharts-radial-line-"):e.id;return r.createElement("text",w({},n,{dominantBaseline:"central",className:(0,l.Z)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:E,d:_})),r.createElement("textPath",{xlinkHref:"#".concat(E)},t))},k=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,u=t.outerRadius,c=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=(0,h.op)(o,a,u+n,c),l=s.x;return{x:l,y:s.y,textAnchor:l>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.op)(o,a,(i+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,u=t.width,c=t.height,l=c>=0?1:-1,f=l*r,p=l>0?"end":"start",h=l>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",g=y>0?"start":"end";if("top"===o)return b(b({},{x:a+u/2,y:i-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(i-n.y,0),width:u}:{});if("bottom"===o)return b(b({},{x:a+u/2,y:i+c+f,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(i+c),0),width:u}:{});if("left"===o){var w={x:a-v,y:i+c/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),n?{width:Math.max(w.x-n.x,0),height:c}:{})}if("right"===o){var x={x:a+u+v,y:i+c/2,textAnchor:g,verticalAnchor:"middle"};return b(b({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:c}:{})}var O=n?{width:u,height:c}:{};return"insideLeft"===o?b({x:a+v,y:i+c/2,textAnchor:g,verticalAnchor:"middle"},O):"insideRight"===o?b({x:a+u-v,y:i+c/2,textAnchor:m,verticalAnchor:"middle"},O):"insideTop"===o?b({x:a+u/2,y:i+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:a+u/2,y:i+c-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:a+v,y:i+f,textAnchor:g,verticalAnchor:h},O):"insideTopRight"===o?b({x:a+u-v,y:i+f,textAnchor:m,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:a+v,y:i+c-f,textAnchor:g,verticalAnchor:p},O):"insideBottomRight"===o?b({x:a+u-v,y:i+c-f,textAnchor:m,verticalAnchor:p},O):s()(o)&&((0,d.hj)(o.x)||(0,d.hU)(o.x))&&((0,d.hj)(o.y)||(0,d.hU)(o.y))?b({x:a+(0,d.h1)(o.x,u),y:i+(0,d.h1)(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):b({x:a+u/2,y:i+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function D(e){var t,n=e.offset,o=b({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v)),i=o.viewBox,c=o.position,s=o.value,h=o.children,y=o.content,m=o.className,g=o.textBreakAll;if(!i||a()(s)&&a()(h)&&!(0,r.isValidElement)(y)&&!u()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,o);if(u()(y)){if(t=(0,r.createElement)(y,o),(0,r.isValidElement)(t))return t}else t=x(o);var D="cx"in i&&(0,d.hj)(i.cx),j=(0,p.L6)(o,!0);if(D&&("insideStart"===c||"insideEnd"===c||"end"===c))return O(o,t,j);var _=D?k(o):S(o);return r.createElement(f.x,w({className:(0,l.Z)("recharts-label",void 0===m?"":m)},j,_,{breakAll:g}),t)}D.displayName="Label";var j=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,u=e.radius,c=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,h=e.left,y=e.width,v=e.height,m=e.clockWise,g=e.labelViewBox;if(g)return g;if((0,d.hj)(y)&&(0,d.hj)(v)){if((0,d.hj)(l)&&(0,d.hj)(f))return{x:l,y:f,width:y,height:v};if((0,d.hj)(p)&&(0,d.hj)(h))return{x:p,y:h,width:y,height:v}}return(0,d.hj)(l)&&(0,d.hj)(f)?{x:l,y:f,width:0,height:0}:(0,d.hj)(t)&&(0,d.hj)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:c||0,outerRadius:s||u||i||0,clockWise:m}:e.viewBox?e.viewBox:{}};D.parseViewBox=j,D.renderCallByParent=function(e,t){var n,o,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&a&&!e.label)return null;var i=e.children,c=j(e),l=(0,p.NN)(i,D).map(function(e,n){return(0,r.cloneElement)(e,{viewBox:t||c,key:"label-".concat(n)})});return a?[(n=e.label,o=t||c,n?!0===n?r.createElement(D,{key:"label-implicit",viewBox:o}):(0,d.P2)(n)?r.createElement(D,{key:"label-implicit",viewBox:o,value:n}):(0,r.isValidElement)(n)?n.type===D?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:o}):r.createElement(D,{key:"label-implicit",content:n,viewBox:o}):u()(n)?r.createElement(D,{key:"label-implicit",content:n,viewBox:o}):s()(n)?r.createElement(D,w({viewBox:o},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return m(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l}},33558:function(e,t,n){"use strict";n.d(t,{D:function(){return A}});var r=n(67294),o=n(23560),a=n.n(o),i=n(83231),u=n(6213),c=n(20514),s=n(21138),l=n(79896);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return r.createElement("li",p({className:b,style:y,key:"legend-item-".concat(n)},(0,l.bw)(e.props,t,n)),r.createElement(c.T,{width:o,height:o,viewBox:h,style:v},e.renderIcon(t)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(w,t,n):w))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,o=e.align;return t&&t.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?o:"left"}},this.renderItems()):null}}],h(b.prototype,n),o&&h(b,o),Object.defineProperty(b,"prototype",{writable:!1}),b}(r.PureComponent);m(b,"displayName","Legend"),m(b,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var w=n(69055),x=n(78817);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var k=["ref"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?D({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,u=r.margin,c=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),D(D({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,a=t.height,i=t.wrapperStyle,u=t.payloadUniqBy,c=t.payload,s=D(D({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(i)),i);return r.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(r.isValidElement(e))return r.cloneElement(e,t);if("function"==typeof e)return r.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,k);return r.createElement(b,n)}(n,D(D({},this.props),{},{payload:(0,x.z)(c,u,C)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&(0,w.hj)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&j(i.prototype,n),o&&j(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);M(A,"displayName","Legend"),M(A,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},29009:function(e,t,n){"use strict";n.d(t,{h:function(){return y}});var r=n(83231),o=n(67294),a=n(23493),i=n.n(a),u=n(59864),c=n(69055),s=n(6213),l=n(52017);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=i()(e,D,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=M.current.getBoundingClientRect();return I(n.width,n.height),t.observe(M.current),function(){t.disconnect()}},[I,D]);var R=(0,o.useMemo)(function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;(0,s.Z)((0,c.hU)(v)||(0,c.hU)(g),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,g),(0,s.Z)(!a||a>0,"The aspect(%s) must be greater than zero.",a);var n=(0,c.hU)(v)?e:v,r=(0,c.hU)(g)?t:g;a&&a>0&&(n?r=n/a:r&&(n=r*a),O&&r>O&&(r=O)),(0,s.Z)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,v,g,w,x,a);var i=!Array.isArray(k)&&(0,u.isElement)(k)&&(0,l.Gf)(k.type).endsWith("Chart");return o.Children.map(k,function(e){return(0,u.isElement)(e)?(0,o.cloneElement)(e,d({width:n,height:r},i?{style:d({height:"100%",width:"100%",maxHeight:r,maxWidth:n},e.props.style)}:{})):e})},[a,k,g,O,x,w,A,v]);return o.createElement("div",{id:j?"".concat(j):void 0,className:(0,r.Z)("recharts-responsive-container",_),style:d(d({},void 0===P?{}:P),{},{width:v,height:g,minWidth:w,minHeight:x,maxHeight:O}),ref:M},R)})},84642:function(e,t,n){"use strict";n.d(t,{x:function(){return L}});var r=n(67294),o=n(14293),a=n.n(o),i=n(83231),u=n(69055),c=n(47523),s=n(52017),l=n(41209);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,u=e[e.length-1];return u&&(null==r||o||u.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},y=0,v=c.length-1,m=0;y<=v&&m<=c.length-1;){var g=Math.floor((y+v)/2),b=P(h(g-1),2),w=b[0],x=b[1],O=P(h(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){a=x;break}m++}return a||d},N=function(e){return[{words:a()(e)?[]:e.toString().split(T)}]},I=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!c.x.isSsr){var u=C({breakAll:a,children:r,style:o});if(!u)return N(r);var s=u.wordsWithComputedWidth,l=u.spaceWidth;return A({breakAll:a,children:r,maxLines:i,style:o},s,l,t,n)}return N(r)},R="#808080",L=function(e){var t,n=e.x,o=void 0===n?0:n,a=e.y,c=void 0===a?0:a,l=e.lineHeight,f=void 0===l?"1em":l,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,v=e.textAnchor,m=e.verticalAnchor,g=e.fill,b=void 0===g?R:g,w=E(e,D),x=(0,r.useMemo)(function(){return I({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:y,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,y,w.style,w.width]),O=w.dx,k=w.dy,P=w.angle,M=w.className,T=w.breakAll,C=E(w,j);if(!(0,u.P2)(o)||!(0,u.P2)(c))return null;var A=o+((0,u.hj)(O)?O:0),N=c+((0,u.hj)(k)?k:0);switch(void 0===m?"end":m){case"start":t=S("calc(".concat(d,")"));break;case"middle":t=S("calc(".concat((x.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=S("calc(".concat(x.length-1," * -").concat(f,")"))}var L=[];if(y){var B=x[0].width,Y=w.width;L.push("scale(".concat(((0,u.hj)(Y)?Y/B:1)/B,")"))}return P&&L.push("rotate(".concat(P,", ").concat(A,", ").concat(N,")")),L.length&&(C.transform=L.join(" ")),r.createElement("text",_({},(0,s.L6)(C,!0),{x:A,y:N,className:(0,i.Z)("recharts-text",M),textAnchor:void 0===v?"start":v,fill:b.includes("url")?R:b}),x.map(function(e,n){var o=e.words.join(T?"":" ");return r.createElement("tspan",{x:A,dy:0===n?t:f,key:o},o)}))}},26050:function(e,t,n){"use strict";n.d(t,{u:function(){return Z}});var r=n(67294),o=n(89734),a=n.n(o),i=n(14293),u=n.n(i),c=n(83231),s=n(69055);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nc[r]+l?Math.max(f,c[r]):Math.max(p,c[r])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,o,a,i,u,l,f,p,d,h,y,m,O,k,D,j,_,E,P,M=this,T=this.props,C=T.active,A=T.allowEscapeViewBox,N=T.animationDuration,I=T.animationEasing,R=T.children,L=T.coordinate,B=T.hasPayload,Y=T.isAnimationActive,F=T.offset,U=T.position,W=T.reverseDirection,Z=T.useTranslate3d,H=T.viewBox,z=T.wrapperStyle,$=(m=(e={allowEscapeViewBox:A,coordinate:L,offsetTopLeft:F,position:U,reverseDirection:W,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:Z,viewBox:H}).allowEscapeViewBox,O=e.coordinate,k=e.offsetTopLeft,D=e.position,j=e.reverseDirection,_=e.tooltipBox,E=e.useTranslate3d,P=e.viewBox,_.height>0&&_.width>0&&O?(n=(t={translateX:h=x({allowEscapeViewBox:m,coordinate:O,key:"x",offsetTopLeft:k,position:D,reverseDirection:j,tooltipDimension:_.width,viewBox:P,viewBoxDimension:P.width}),translateY:y=x({allowEscapeViewBox:m,coordinate:O,key:"y",offsetTopLeft:k,position:D,reverseDirection:j,tooltipDimension:_.height,viewBox:P,viewBoxDimension:P.height}),useTranslate3d:E}).translateX,o=t.translateY,a=t.useTranslate3d,d=(0,v.bO)({transform:a?"translate3d(".concat(n,"px, ").concat(o,"px, 0)"):"translate(".concat(n,"px, ").concat(o,"px)")})):d=w,{cssProperties:d,cssClasses:(l=(i={translateX:h,translateY:y,coordinate:O}).coordinate,f=i.translateX,p=i.translateY,(0,c.Z)(b,(g(u={},"".concat(b,"-right"),(0,s.hj)(f)&&l&&(0,s.hj)(l.x)&&f>=l.x),g(u,"".concat(b,"-left"),(0,s.hj)(f)&&l&&(0,s.hj)(l.x)&&f=l.y),g(u,"".concat(b,"-top"),(0,s.hj)(p)&&l&&(0,s.hj)(l.y)&&p0;return r.createElement(T,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:l,active:n,coordinate:c,hasPayload:x,offset:f,position:h,reverseDirection:v,useTranslate3d:m,viewBox:g,wrapperStyle:b},(e=R(R({},this.props),{},{payload:w}),r.isValidElement(u)?r.cloneElement(u,e):"function"==typeof u?r.createElement(u,e):r.createElement(y,e)))}}],L(i.prototype,n),o&&L(i,o),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);F(Z,"displayName","Tooltip"),F(Z,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!C.x.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},48710:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(67294),o=n(83231),a=n(52017),i=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),l=(0,o.Z)("recharts-layer",c);return r.createElement("g",u({className:l},(0,a.L6)(s,!0),{ref:t}),n)})},20514:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var r=n(67294),o=n(83231),a=n(52017),i=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),y=s||{width:n,height:c,x:0,y:0},v=(0,o.Z)("recharts-surface",l);return r.createElement("svg",u({},(0,a.L6)(h,!0,"svg"),{className:v,width:n,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,d),t)}},13481:function(e,t,n){"use strict";n.d(t,{A:function(){return y},X:function(){return d}});var r=n(67294),o=n(83231),a=n(93801),i=n(52017);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,c=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>i?i:o[f];a="M".concat(e,",").concat(t+u*l[0]),l[0]>0&&(a+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+c*l[0],",").concat(t)),a+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(a+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+u*l[1])),a+="L ".concat(e+n,",").concat(t+r-u*l[2]),l[2]>0&&(a+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(e+n-c*l[2],",").concat(t+r)),a+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(a+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-u*l[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n,",").concat(t+u*p,"\n L ").concat(e+n,",").concat(t+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+r-u*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},d=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,u=t.height;return!!(Math.abs(i)>0&&Math.abs(u)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+u)&&r<=Math.max(a,a+u)},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,n=f(f({},h),e),u=(0,r.useRef)(),l=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=l[0],y=l[1];(0,r.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var e=u.current.getTotalLength();e&&y(e)}catch(e){}},[]);var v=n.x,m=n.y,g=n.width,b=n.height,w=n.radius,x=n.className,O=n.animationEasing,k=n.animationDuration,S=n.animationBegin,D=n.isAnimationActive,j=n.isUpdateAnimationActive;if(v!==+v||m!==+m||g!==+g||b!==+b||0===g||0===b)return null;var _=(0,o.Z)("recharts-rectangle",x);return j?r.createElement(a.ZP,{canBegin:d>0,from:{width:g,height:b,x:v,y:m},to:{width:g,height:b,x:v,y:m},duration:k,animationEasing:O,isActive:j},function(e){var t=e.width,o=e.height,s=e.x,l=e.y;return r.createElement(a.ZP,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:k,isActive:D,easing:O},r.createElement("path",c({},(0,i.L6)(n,!0),{className:_,d:p(s,l,t,o,w),ref:u})))}):r.createElement("path",c({},(0,i.L6)(n,!0),{className:_,d:p(v,m,g,b,w)}))}},45108:function(e,t,n){"use strict";n.d(t,{L:function(){return v}});var r=n(67294),o=n(83231),a=n(52017),i=n(40048),u=n(69055);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(c>l),",\n ").concat(p.x,",").concat(p.y,"\n ");if(o>0){var h=(0,i.op)(n,r,o,c),y=(0,i.op)(n,r,o,l);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(c<=l),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},h=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=(0,u.uY)(l-s),h=p({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:a,cornerIsExternal:c}),y=h.circleTangency,v=h.lineTangency,m=h.theta,g=p({cx:t,cy:n,radius:o,angle:l,sign:-f,cornerRadius:a,cornerIsExternal:c}),b=g.circleTangency,w=g.lineTangency,x=g.theta,O=c?Math.abs(s-l):Math.abs(s-l)-m-x;if(O<0)return i?"M ".concat(v.x,",").concat(v.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):d({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:l});var k="M ".concat(v.x,",").concat(v.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,"\n ");if(r>0){var S=p({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),D=S.circleTangency,j=S.lineTangency,_=S.theta,E=p({cx:t,cy:n,radius:r,angle:l,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),P=E.circleTangency,M=E.lineTangency,T=E.theta,C=c?Math.abs(s-l):Math.abs(s-l)-_-T;if(C<0&&0===a)return"".concat(k,"L").concat(t,",").concat(n,"Z");k+="L".concat(M.x,",").concat(M.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"\n A").concat(r,",").concat(r,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(D.x,",").concat(D.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,"Z")}else k+="L".concat(t,",").concat(n,"Z");return k},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(e){var t,n=f(f({},y),e),i=n.cx,c=n.cy,l=n.innerRadius,p=n.outerRadius,v=n.cornerRadius,m=n.forceCornerRadius,g=n.cornerIsExternal,b=n.startAngle,w=n.endAngle,x=n.className;if(p0&&360>Math.abs(b-w)?h({cx:i,cy:c,innerRadius:l,outerRadius:p,cornerRadius:Math.min(S,k/2),forceCornerRadius:m,cornerIsExternal:g,startAngle:b,endAngle:w}):d({cx:i,cy:c,innerRadius:l,outerRadius:p,startAngle:b,endAngle:w}),r.createElement("path",s({},(0,a.L6)(n,!0),{className:O,d:t,role:"img"}))}},21138:function(e,t,n){"use strict";n.d(t,{v:function(){return A}});var r=n(67294),o=n(11700),a=n.n(o);let i=Math.cos,u=Math.sin,c=Math.sqrt,s=Math.PI,l=2*s;var f={draw(e,t){let n=c(t/s);e.moveTo(n,0),e.arc(0,0,n,0,l)}};let p=c(1/3),d=2*p,h=u(s/10)/u(7*s/10),y=u(l/10)*h,v=-i(l/10)*h,m=c(3),g=c(3)/2,b=1/c(12),w=(b/2+1)*3;var x=n(20309),O=n(52882);c(3),c(3);var k=n(83231),S=n(52017);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var j=["type","size","sizeType"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,j)),{},{type:o,size:u,sizeType:s}),p=l.className,d=l.cx,h=l.cy,y=(0,S.L6)(l,!0);return d===+d&&h===+h&&u===+u?r.createElement("path",_({},y,{className:(0,k.Z)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=M["symbol".concat(a()(o))]||f,(function(e,t){let n=null,r=(0,O.d)(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:(0,x.Z)(e||f),t="function"==typeof t?t:(0,x.Z)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,x.Z)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,x.Z)(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(C(u,s,o))())})):null};A.registerSymbol=function(e,t){M["symbol".concat(a()(e))]=t}},49465:function(e,t,n){"use strict";n.d(t,{bn:function(){return A},a3:function(){return F},lT:function(){return N},V$:function(){return I},w7:function(){return R}});var r=n(67294),o=n(23560),a=n.n(o),i=n(68630),u=n.n(i),c=n(51584),s=n.n(c),l=n(18446),f=n.n(l),p=n(13481),d=n(83231),h=n(93801),y=n(52017);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:l,lowerWidth:f,height:p,x:c,y:s},duration:k,animationEasing:b,isActive:D},function(e){var t=e.upperWidth,a=e.lowerWidth,u=e.height,c=e.x,s=e.y;return r.createElement(h.ZP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:k,easing:b},r.createElement("path",m({},(0,y.L6)(n,!0),{className:j,d:x(c,s,t,a,u),ref:o})))}):r.createElement("g",null,r.createElement("path",m({},(0,y.L6)(n,!0),{className:j,d:x(c,s,l,f,p)})))},S=n(45108),D=n(48710),j=n(21138),_=["option","shapeType","propTransformer","activeClassName","isActive"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,_);if((0,r.isValidElement)(n))t=(0,r.cloneElement)(n,M(M({},f),(0,r.isValidElement)(n)?n.props:n));else if(a()(n))t=n(f);else if(u()(n)&&!s()(n)){var p=(void 0===i?T:i)(n,f);t=r.createElement(C,{shapeType:o,elementProps:p})}else t=r.createElement(C,{shapeType:o,elementProps:f});return l?r.createElement(D.m,{className:void 0===c?"recharts-active-shape":c},t):t}function N(e,t){return null!=t&&"trapezoids"in e.props}function I(e,t){return null!=t&&"sectors"in e.props}function R(e,t){return null!=t&&"points"in e.props}function L(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function B(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Y(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function F(e){var t,n,r,o=e.activeTooltipItem,a=e.graphicalItem,i=e.itemData,u=(N(a,o)?t="trapezoids":I(a,o)?t="sectors":R(a,o)&&(t="points"),t),c=N(a,o)?null===(n=o.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:I(a,o)?null===(r=o.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:R(a,o)?o.payload:{},s=i.filter(function(e,t){var n=f()(c,e),r=a.props[u].filter(function(e){var t;return(N(a,o)?t=L:I(a,o)?t=B:R(a,o)&&(t=Y),t)(e,o)}),i=a.props[u].indexOf(r[r.length-1]);return n&&t===i});return i.indexOf(s[s.length-1])}},75471:function(e,t,n){"use strict";n.d(t,{By:function(){return or},VO:function(){return r7},zF:function(){return od},DO:function(){return of},Bu:function(){return oh},zT:function(){return o_},qz:function(){return on},pt:function(){return ot},Yj:function(){return ox},Fy:function(){return ow},Rf:function(){return oc},gF:function(){return r9},s6:function(){return oi},EB:function(){return ok},fk:function(){return oe},wh:function(){return og},O3:function(){return oO},uY:function(){return os},g$:function(){return ob},Qo:function(){return oP},F$:function(){return r5},NA:function(){return ou},ko:function(){return oE},ZI:function(){return oa},Hq:function(){return op},LG:function(){return oj},Vv:function(){return oy}});var r,o,a,i,u,c,s,l={};n.r(l),n.d(l,{scaleBand:function(){return f.Z},scaleDiverging:function(){return function e(){var t=eF(n5()(ex));return t.copy=function(){return n6(t,e())},eE.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=eV(n5()).domain([.1,1,10]);return t.copy=function(){return n6(t,e()).base(t.base())},eE.O.apply(t,arguments)}},scaleDivergingPow:function(){return n9},scaleDivergingSqrt:function(){return n7},scaleDivergingSymlog:function(){return function e(){var t=eQ(n5());return t.copy=function(){return n6(t,e()).constant(t.constant())},eE.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,eb),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,eb):[0,1],eF(r)}},scaleImplicit:function(){return eJ.O},scaleLinear:function(){return eU},scaleLog:function(){return function e(){let t=eV(ej()).domain([1,10]);return t.copy=()=>eD(t,e()).base(t.base()),eE.o.apply(t,arguments),t}},scaleOrdinal:function(){return eJ.Z},scalePoint:function(){return f.x},scalePow:function(){return e6},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[D(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},u.unknown=function(e){return arguments.length&&(t=e),u},u.thresholds=function(){return a.slice()},u.copy=function(){return e().domain([n,r]).range(i).unknown(t)},eE.o.apply(eF(u),arguments)}},scaleRadial:function(){return function e(){var t,n=e_(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(e8(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,eb)).map(e8)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},eE.o.apply(a,arguments),eF(a)}},scaleSequential:function(){return function e(){var t=eF(n3()(ex));return t.copy=function(){return n6(t,e())},eE.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=eV(n3()).domain([1,10]);return t.copy=function(){return n6(t,e()).base(t.base())},eE.O.apply(t,arguments)}},scaleSequentialPow:function(){return n4},scaleSequentialQuantile:function(){return function e(){var t=[],n=ex;function r(e){if(null!=e&&!isNaN(e=+e))return n((D(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(b),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return e9(e);if(t>=1)return e5(e);var r,o=(r-1)*t,a=Math.floor(o),i=e5((function e(t,n,r=0,o=1/0,a){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?e7:function(e=b){if(e===b)return e7;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,u=n-r+1,c=Math.log(i),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(i-s)/i)*(u-i/2<0?-1:1),f=Math.max(r,Math.floor(n-u*s/i+l)),p=Math.min(o,Math.floor(n+(i-u)*s/i+l));e(t,n,f,p,a)}let i=t[n],u=r,c=o;for(te(t,r,n),a(t[o],i)>0&&te(t,r,o);ua(t[u],i);)++u;for(;a(t[c],i)>0;)--c}0===a(t[r],i)?te(t,r,c):te(t,++c,o),c<=n&&(r=c+1),n<=c&&(o=c-1)}return t})(e,a).subarray(0,a+1));return i+(e9(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},eE.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return n8},scaleSequentialSymlog:function(){return function e(){var t=eQ(n3());return t.copy=function(){return n6(t,e()).constant(t.constant())},eE.O.apply(t,arguments)}},scaleSqrt:function(){return e4},scaleSymlog:function(){return function e(){var t=eQ(ej());return t.copy=function(){return eD(t,e()).constant(t.constant())},eE.o.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[D(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},eE.o.apply(a,arguments)}},scaleTime:function(){return n1},scaleUtc:function(){return n2},tickFormat:function(){return eY}});var f=n(175);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),u=Math.floor(Math.log10(i)),c=i/Math.pow(10,u),s=c>=p?10:c>=d?5:c>=h?2:1;return(u<0?(r=Math.round(e*(a=Math.pow(10,-u)/s)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,u)*s)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let u=a-o+1,c=Array(u);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function w(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function x(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ob(e(t),n),r=(t,n)=>e(t)-n):(t=e===b||e===w?e:O,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){let i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?H(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?H(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=A.exec(e))?new $(t[1],t[2],t[3],1):(t=N.exec(e))?new $(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=I.exec(e))?H(t[1],t[2],t[3],t[4]):(t=R.exec(e))?H(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=L.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=B.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):Y.hasOwnProperty(e)?Z(Y[e]):"transparent"===e?new $(NaN,NaN,NaN,0):null}function Z(e){return new $(e>>16&255,e>>8&255,255&e,1)}function H(e,t,n,r){return r<=0&&(e=t=n=NaN),new $(e,t,n,r)}function z(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof E||(o=W(o)),o)?(o=o.rgb(),new $(o.r,o.g,o.b,o.opacity)):new $:new $(e,t,n,null==r?1:r)}function $(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function q(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function K(){let e=V(this.opacity);return`${1===e?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${1===e?")":`, ${e})`}`}function V(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function G(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=G(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ee(e,t,n,r)}function J(e){if(e instanceof ee)return new ee(e.h,e.s,e.l,e.opacity);if(e instanceof E||(e=W(e)),!e)return new ee;if(e instanceof ee)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,u=a-o,c=(a+o)/2;return u?(i=t===a?(n-r)/u+(n0&&c<1?0:i,new ee(i,u,c,e.opacity)}function ee(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function et(e){return(e=(e||0)%360)<0?e+360:e}function en(e){return Math.max(0,Math.min(1,e||0))}function er(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eo(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}j(E,W,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:U,toString:U}),j($,z,_(E,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new $(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $(G(this.r),G(this.g),G(this.b),V(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q,formatHex:q,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:K,toString:K})),j(ee,function(e,t,n,r){return 1==arguments.length?J(e):new ee(e,t,n,null==r?1:r)},_(E,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ee(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ee(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $(er(e>=240?e-240:e+120,o,r),er(e,o,r),er(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ee(et(this.h),en(this.s),en(this.l),V(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=V(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*en(this.s)}%, ${100*en(this.l)}%${1===e?")":`, ${e})`}`}}));var ea=e=>()=>e;function ei(e,t){var n=t-e;return n?function(t){return e+t*n}:ea(isNaN(e)?t:e)}var eu=function e(t){var n,r=1==(n=+(n=t))?ei:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):ea(isNaN(e)?t:e)};function o(e,t){var n=r((e=z(e)).r,(t=z(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=ei(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function ec(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),u=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,u=ru&&(i=t.slice(u,i),s[c]?s[c]+=i:s[++c]=i),(o=o[0])===(a=a[0])?s[c]?s[c]+=a:s[++c]=a:(s[++c]=null,l.push({i:c,x:ef(o,a)})),u=eh.lastIndex;return u(t=i[c-1])&&(n=e,e=t,t=n),s=function(n){return Math.max(e,Math.min(t,n))}),r=c>2?eS:ek,o=a=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),u,c)))(e(s(t)))}return f.invert=function(n){return s(t((a||(a=r(u,i.map(e),ef)))(n)))},f.domain=function(e){return arguments.length?(i=Array.from(e,eb),l()):i.slice()},f.range=function(e){return arguments.length?(u=Array.from(e),l()):u.slice()},f.rangeRound=function(e){return u=Array.from(e),c=eg,l()},f.clamp=function(e){return arguments.length?(s=!!e||ex,l()):s!==ex},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function e_(){return ej()(ex,ex)}var eE=n(94182),eP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eM(e){var t;if(!(t=eP.exec(e)))throw Error("invalid format: "+e);return new eT({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function eT(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function eC(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function eA(e){return(e=eC(Math.abs(e)))?e[1]:NaN}function eN(e,t){var n=eC(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}eM.prototype=eT.prototype,eT.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var eI={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>eN(100*e,t),r:eN,s:function(e,t){var n=eC(e,t);if(!n)return e+"";var o=n[0],a=n[1],i=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=o.length;return i===u?o:i>u?o+Array(i-u+1).join("0"):i>0?o.slice(0,i)+"."+o.slice(i):"0."+Array(1-i).join("0")+eC(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eR(e){return e}var eL=Array.prototype.map,eB=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eY(e,t,n,r){var o,u,c=g(e,t,n);switch((r=eM(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eA(s)/3)))-eA(Math.abs(c))))||(r.precision=u),i(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN((o=c,u=Math.max(0,eA(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o)))-eA(o))+1))||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=Math.max(0,-eA(Math.abs(c))))||(r.precision=u-("%"===r.type)*2)}return a(r)}function eF(e){var t=e.domain;return e.ticks=function(e){var n=t();return v(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return eY(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,u=a.length-1,c=a[i],s=a[u],l=10;for(s0;){if((o=m(c,s,n))===r)return a[i]=c,a[u]=s,t(a);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else if(o<0)c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o;else break;r=o}return e},e}function eU(){var e=e_();return e.copy=function(){return eD(e,eU())},eE.o.apply(e,arguments),eF(e)}function eW(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function eV(e){let t,n;let r=e(eZ,eH),o=r.domain,i=10;function u(){var a,u;return t=(a=i)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),e=>Math.log(e)/a),n=10===(u=i)?eq:u===Math.E?Math.exp:e=>Math.pow(u,e),o()[0]<0?(t=eK(t),n=eK(n),e(ez,e$)):e(eZ,eH),r}return r.base=function(e){return arguments.length?(i=+e,u()):i},r.domain=function(e){return arguments.length?(o(e),u()):o()},r.ticks=e=>{let r,a;let u=o(),c=u[0],s=u[u.length-1],l=s0){for(;f<=p;++f)for(r=1;rs)break;h.push(a)}}else for(;f<=p;++f)for(r=i-1;r>=1;--r)if(!((a=f>0?r/n(-f):r*n(f))s)break;h.push(a)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===i?"s":","),"function"!=typeof o&&(i%1||null!=(o=eM(o)).precision||(o.trim=!0),o=a(o)),e===1/0)return o;let u=Math.max(1,i*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*io(eW(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function eG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eX(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eQ(e){var t=1,n=e(eG(1),eX(t));return n.constant=function(n){return arguments.length?e(eG(t=+n),eX(t)):t},eF(n)}a=(o=function(e){var t,n,o,a=void 0===e.grouping||void 0===e.thousands?eR:(t=eL.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(e.substring(o-=u,o+u)),!((c+=u+1)>r));)u=t[i=(i+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?eR:(o=eL.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),l=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=eM(e)).fill,n=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,v=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(v=!0,b="g"):eI[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var w="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===d?u:/[%p]/.test(b)?l:"",O=eI[b],k=/[defgprs%]/.test(b);function S(e){var i,u,l,d=w,S=x;if("c"===b)S=O(e)+S,e="";else{var D=(e=+e)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),D&&0==+e&&"+"!==o&&(D=!1),d=(D?"("===o?o:f:"-"===o||"("===o?"":o)+d,S=("s"===b?eB[8+r/3]:"")+S+(D&&"("===o?")":""),k){for(i=-1,u=e.length;++i(l=e.charCodeAt(i))||l>57){S=(46===l?c+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}}v&&!h&&(e=a(e,1/0));var j=d.length+e.length+S.length,_=j>1)+d+e+S+_.slice(j);break;default:e=_+d+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=eM(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(eA(t)/3))),o=Math.pow(10,-r),a=eB[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,i=o.formatPrefix;var eJ=n(46244);function e0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function e1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function e2(e){return e<0?-e*e:e*e}function e3(e){var t=e(ex,ex),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(ex,ex):.5===n?e(e1,e2):e(e0(n),e0(1/n)):n},eF(t)}function e6(){var e=e3(ej());return e.copy=function(){return eD(e,e6()).exponent(e.exponent())},eE.o.apply(e,arguments),e}function e4(){return e6.apply(null,arguments).exponent(.5)}function e8(e){return Math.sign(e)*e*e}function e5(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function e9(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function e7(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function te(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}let tt=864e5,tn=7*tt,tr=30*tt,to=365*tt,ta=new Date,ti=new Date;function tu(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let u=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return u;do u.push(i=new Date(+n)),t(n,a),e(n);while(itu(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(ta.setTime(+t),ti.setTime(+r),e(ta),e(ti),Math.floor(n(ta,ti))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let tc=tu(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);tc.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?tu(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):tc:null,tc.range;let ts=tu(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ts.range;let tl=tu(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());tl.range;let tf=tu(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());tf.range;let tp=tu(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());tp.range;let td=tu(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());td.range;let th=tu(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/tt,e=>e.getDate()-1);th.range;let ty=tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tt,e=>e.getUTCDate()-1);ty.range;let tv=tu(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tt,e=>Math.floor(e/tt));function tm(e){return tu(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/tn)}tv.range;let tg=tm(0),tb=tm(1),tw=tm(2),tx=tm(3),tO=tm(4),tk=tm(5),tS=tm(6);function tD(e){return tu(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/tn)}tg.range,tb.range,tw.range,tx.range,tO.range,tk.range,tS.range;let tj=tD(0),t_=tD(1),tE=tD(2),tP=tD(3),tM=tD(4),tT=tD(5),tC=tD(6);tj.range,t_.range,tE.range,tP.range,tM.range,tT.range,tC.range;let tA=tu(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tA.range;let tN=tu(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());tN.range;let tI=tu(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());tI.every=e=>isFinite(e=Math.floor(e))&&e>0?tu(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,tI.range;let tR=tu(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function tL(e,t,n,r,o,a){let i=[[ts,1,1e3],[ts,5,5e3],[ts,15,15e3],[ts,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,tt],[r,2,2*tt],[n,1,tn],[t,1,tr],[t,3,3*tr],[e,1,to]];function u(t,n,r){let o=Math.abs(n-t)/r,a=x(([,,e])=>e).right(i,o);if(a===i.length)return e.every(g(t/to,n/to,r));if(0===a)return tc.every(Math.max(g(t,n,r),1));let[u,c]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?tu(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,tR.range;let[tB,tY]=tL(tR,tN,tj,tv,td,tf),[tF,tU]=tL(tI,tA,tg,th,tp,tl);function tW(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tZ(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tH(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var tz={"-":"",_:" ",0:"0"},t$=/^\s*\d+/,tq=/^%/,tK=/[\\^$*+?|[\]().{}]/g;function tV(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function tJ(e,t,n){var r=t$.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function t0(e,t,n){var r=t$.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function t1(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function t2(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function t3(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function t6(e,t,n){var r=t$.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function t4(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function t8(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function t5(e,t,n){var r=t$.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function t9(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function t7(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ne(e,t,n){var r=t$.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nt(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nn(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nr(e,t,n){var r=t$.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function no(e,t,n){var r=t$.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function na(e,t,n){var r=t$.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ni(e,t,n){var r=tq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nu(e,t,n){var r=t$.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nc(e,t,n){var r=t$.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ns(e,t){return tV(e.getDate(),t,2)}function nl(e,t){return tV(e.getHours(),t,2)}function nf(e,t){return tV(e.getHours()%12||12,t,2)}function np(e,t){return tV(1+th.count(tI(e),e),t,3)}function nd(e,t){return tV(e.getMilliseconds(),t,3)}function nh(e,t){return nd(e,t)+"000"}function ny(e,t){return tV(e.getMonth()+1,t,2)}function nv(e,t){return tV(e.getMinutes(),t,2)}function nm(e,t){return tV(e.getSeconds(),t,2)}function ng(e){var t=e.getDay();return 0===t?7:t}function nb(e,t){return tV(tg.count(tI(e)-1,e),t,2)}function nw(e){var t=e.getDay();return t>=4||0===t?tO(e):tO.ceil(e)}function nx(e,t){return e=nw(e),tV(tO.count(tI(e),e)+(4===tI(e).getDay()),t,2)}function nO(e){return e.getDay()}function nk(e,t){return tV(tb.count(tI(e)-1,e),t,2)}function nS(e,t){return tV(e.getFullYear()%100,t,2)}function nD(e,t){return tV((e=nw(e)).getFullYear()%100,t,2)}function nj(e,t){return tV(e.getFullYear()%1e4,t,4)}function n_(e,t){var n=e.getDay();return tV((e=n>=4||0===n?tO(e):tO.ceil(e)).getFullYear()%1e4,t,4)}function nE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tV(t/60|0,"0",2)+tV(t%60,"0",2)}function nP(e,t){return tV(e.getUTCDate(),t,2)}function nM(e,t){return tV(e.getUTCHours(),t,2)}function nT(e,t){return tV(e.getUTCHours()%12||12,t,2)}function nC(e,t){return tV(1+ty.count(tR(e),e),t,3)}function nA(e,t){return tV(e.getUTCMilliseconds(),t,3)}function nN(e,t){return nA(e,t)+"000"}function nI(e,t){return tV(e.getUTCMonth()+1,t,2)}function nR(e,t){return tV(e.getUTCMinutes(),t,2)}function nL(e,t){return tV(e.getUTCSeconds(),t,2)}function nB(e){var t=e.getUTCDay();return 0===t?7:t}function nY(e,t){return tV(tj.count(tR(e)-1,e),t,2)}function nF(e){var t=e.getUTCDay();return t>=4||0===t?tM(e):tM.ceil(e)}function nU(e,t){return e=nF(e),tV(tM.count(tR(e),e)+(4===tR(e).getUTCDay()),t,2)}function nW(e){return e.getUTCDay()}function nZ(e,t){return tV(t_.count(tR(e)-1,e),t,2)}function nH(e,t){return tV(e.getUTCFullYear()%100,t,2)}function nz(e,t){return tV((e=nF(e)).getUTCFullYear()%100,t,2)}function n$(e,t){return tV(e.getUTCFullYear()%1e4,t,4)}function nq(e,t){var n=e.getUTCDay();return tV((e=n>=4||0===n?tM(e):tM.ceil(e)).getUTCFullYear()%1e4,t,4)}function nK(){return"+0000"}function nV(){return"%"}function nG(e){return+e}function nX(e){return Math.floor(+e/1e3)}function nQ(e){return new Date(e)}function nJ(e){return e instanceof Date?+e:+new Date(+e)}function n0(e,t,n,r,o,a,i,u,c,s){var l=e_(),f=l.invert,p=l.domain,d=s(".%L"),h=s(":%S"),y=s("%I:%M"),v=s("%I %p"),m=s("%a %d"),g=s("%b %d"),b=s("%B"),w=s("%Y");function x(e){return(c(e)1)for(var n,r,o,a=1,i=e[t[0]],u=i.length;a=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nG,s:nX,S:nm,u:ng,U:nb,V:nx,w:nO,W:nk,x:null,X:null,y:nS,Y:nj,Z:nE,"%":nV},w={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:nP,e:nP,f:nN,g:nz,G:nq,H:nM,I:nT,j:nC,L:nA,m:nI,M:nR,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nG,s:nX,S:nL,u:nB,U:nY,V:nU,w:nW,W:nZ,x:null,X:null,y:nH,Y:n$,Z:nK,"%":nV},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:t7,e:t7,f:na,g:t4,G:t6,H:nt,I:nt,j:ne,L:no,m:t9,M:nn,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:t5,Q:nu,s:nc,S:nr,u:t0,U:t1,V:t2,w:tJ,W:t3,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:t4,Y:t6,Z:t8,"%":ni};function O(e,t){return function(n){var r,o,a,i=[],u=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=tZ(tH(a.y,0,1))).getUTCDay())>4||0===o?t_.ceil(r):t_(r),r=ty.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=tW(tH(a.y,0,1))).getDay())>4||0===o?tb.ceil(r):tb(r),r=th.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?tZ(tH(a.y,0,1)).getUTCDay():tW(tH(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,tZ(a)):tW(a)}}function S(e,t,n,r){for(var o,a,i=0,u=t.length,c=n.length;i=c)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=x[(o=t.charAt(i++))in tz?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,s=u.utcFormat,u.utcParse;var rt=n(94788),rn=n(20309);function rr(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function ro(e,t){return e[t]}function ra(e){let t=[];return t.key=e,t}var ri=n(6162),ru=n.n(ri),rc=n(53632),rs=n.n(rc),rl=n(14293),rf=n.n(rl),rp=n(23560),rd=n.n(rp),rh=n(47037),ry=n.n(rh),rv=n(27361),rm=n.n(rv),rg=n(94654),rb=n.n(rg),rw=n(7654),rx=n.n(rw),rO=n(11700),rk=n.n(rO),rS=n(18446),rD=n.n(rS),rj=n(89734),r_=n.n(rj),rE=n(64364),rP=n.n(rE);function rM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,rN(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function rq(e,t,n){if(e.lte(0))return new(rP())(0);var r=rU.getDigitCount(e.toNumber()),o=new(rP())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,u=new(rP())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?u:new(rP())(Math.ceil(u))}function rK(e,t,n){var r=1,o=new(rP())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(rP())(10).pow(rU.getDigitCount(e)-1),o=new(rP())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(rP())(Math.floor(e)))}else 0===e?o=new(rP())(Math.floor((t-1)/2)):n||(o=new(rP())(Math.floor(e)));var i=Math.floor((t-1)/2);return rB(rL(function(e){return o.add(new(rP())(e-i).mul(r)).toNumber()}),rR)(0,t)}var rV=rF(function(e){var t=rZ(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=rZ(r$([n,r]),2),u=i[0],c=i[1];if(u===-1/0||c===1/0){var s=c===1/0?[u].concat(rW(rR(0,o-1).map(function(){return 1/0}))):[].concat(rW(rR(0,o-1).map(function(){return-1/0})),[c]);return n>r?rY(s):s}if(u===c)return rK(u,o,a);var l=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(rP())(0),tickMin:new(rP())(0),tickMax:new(rP())(0)};var u=rq(new(rP())(n).sub(t).div(r-1),o,i),c=Math.ceil((a=t<=0&&n>=0?new(rP())(0):(a=new(rP())(t).add(n).div(2)).sub(new(rP())(a).mod(u))).sub(t).div(u).toNumber()),s=Math.ceil(new(rP())(n).sub(a).div(u).toNumber()),l=c+s+1;return l>r?e(t,n,r,o,i+1):(l0?s+(r-l):s,c=n>0?c:c+(r-l)),{step:u,tickMin:a.sub(new(rP())(c).mul(u)),tickMax:a.add(new(rP())(s).mul(u))})}(u,c,Math.max(o,2),a),f=l.step,p=l.tickMin,d=l.tickMax,h=rU.rangeStep(p,d.add(new(rP())(.1).mul(f)),f);return n>r?rY(h):h});rF(function(e){var t=rZ(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),u=rZ(r$([n,r]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,r];if(c===s)return rK(c,o,a);var l=rq(new(rP())(s).sub(c).div(i-1),a,0),f=rB(rL(function(e){return new(rP())(c).add(new(rP())(e).mul(l)).toNumber()}),rR)(0,i).filter(function(e){return e>=c&&e<=s});return n>r?rY(f):f});var rG=rF(function(e,t){var n=rZ(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=rZ(r$([r,o]),2),u=i[0],c=i[1];if(u===-1/0||c===1/0)return[r,o];if(u===c)return[u];var s=rq(new(rP())(c).sub(u).div(Math.max(t,2)-1),a,0),l=[].concat(rW(rU.rangeStep(new(rP())(u),new(rP())(c).sub(new(rP())(.99).mul(s)),s)),[c]);return r>o?rY(l):l}),rX=n(86641),rQ=n(69055),rJ=n(52017),r0=n(20430);function r1(e){return(r1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?r[c-1].coordinate:r[i-1].coordinate,l=r[c].coordinate,f=c>=i-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if((0,rQ.uY)(l-s)!==(0,rQ.uY)(f-l)){var d=[];if((0,rQ.uY)(f-l)===(0,rQ.uY)(u[1]-u[0])){p=f;var h=l+u[1]-u[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var y=f+u[1]-u[0];d[0]=Math.min(l,(y+l)/2),d[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){a=r[c].index;break}}else{var m=Math.min(s,f),g=Math.max(s,f);if(e>(m+l)/2&&e<=(g+l)/2){a=r[c].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===i-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){a=n[b].index;break}return a},oe=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ot=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,u=a.length;i=0});if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[h];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:rf()(v)?t:v})}}return o},on=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,u=e.maxBarSize,c=i.length;if(c<1)return null;var s=(0,rQ.h1)(n,o,0,!0),l=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=o/c,d=i.reduce(function(e,t){return e+t.barSize||0},0);(d+=(c-1)*s)>=o&&(d-=(c-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=c*p);var h={offset:((o-d)/2>>0)-s,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+s,size:f?p:t.barSize}},r=[].concat(r4(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:h})}),r},l)}else{var y=(0,rQ.h1)(r,o,0,!0);o-2*y-(c-1)*s<=0&&(s=0);var v=(o-2*y-(c-1)*s)/c;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;t=i.reduce(function(e,t,n){var r=[].concat(r4(e),[{item:t.item,position:{offset:y+(v+s)*n+(v-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},l)}return t},or=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,u=a-(i.left||0)-(i.right||0),c=(0,r0.z)({children:o,legendWidth:u});if(c){var s=r||{},l=s.width,f=s.height,p=c.align,d=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,rQ.hj)(e[p]))return r3(r3({},e),{},r6({},p,e[p]+(l||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,rQ.hj)(e[d]))return r3(r3({},e),{},r6({},d,e[d]+(f||0)))}return e},oo=function(e,t,n,r,o){var a=t.props.children,i=(0,rJ.NN)(a,rX.W).filter(function(e){var t;return t=e.props.direction,!!rf()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(i&&i.length){var u=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=r5(t,n,0),o=Array.isArray(r)?[rs()(r),ru()(r)]:[r,r],a=u.reduce(function(e,n){var r=r5(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},oa=function(e,t,n,r,o){var a=t.map(function(t){return oo(e,t,n,o,r)}).filter(function(e){return!rf()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},oi=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&oo(e,t,a,r)||r9(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*(0,rQ.uY)(i[0]-i[1])*c:c,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!rx()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}})},ol=new WeakMap,of=function(e,t){if("function"!=typeof t)return e;ol.has(e)||ol.set(e,new WeakMap);var n=ol.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},op=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:f.Z(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:eU(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:f.x(),realScaleType:"point"}:"category"===o?{scale:f.Z(),realScaleType:"band"}:{scale:eU(),realScaleType:"linear"};if(ry()(r)){var u="scale".concat(rk()(r));return{scale:(l[u]||f.x)(),realScaleType:l[u]?u:"point"}}return rd()(r)?{scale:r}:{scale:f.x(),realScaleType:"point"}},od=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),u=e(t[n-1]);(ia||ua)&&e.domain([t[0],t[n-1]])}},oh=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+u,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+u,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},om=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=ov[n];return(function(){var e=(0,rn.Z)([]),t=rr,n=re,r=ro;function o(o){var a,i,u=Array.from(e.apply(this,arguments),ra),c=u.length,s=-1;for(let e of o)for(a=0,++s;a=0?0:o<0?o:r}return n[0]},oO=function(e,t){var n=e.props.stackId;if((0,rQ.P2)(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},ok=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[rs()(t.concat([e[0]]).filter(rQ.hj)),ru()(t.concat([e[1]]).filter(rQ.hj))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oj=function(e,t,n){if(rd()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if((0,rQ.hj)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var o=+oS.exec(e[0])[1];r[0]=t[0]-o}else rd()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,rQ.hj)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(oD.test(e[1])){var a=+oD.exec(e[1])[1];r[1]=t[1]+a}else rd()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},o_=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=r_()(t,function(e){return e.coordinate}),a=1/0,i=1,u=o.length;i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||r.x.isSsr)return{width:0,height:0};var o=(Object.keys(t=i({},n)).forEach(function(e){t[e]||delete t[e]}),t),a=JSON.stringify({text:e,copyStyle:o});if(u.widthCache[a])return u.widthCache[a];try{var l=document.getElementById(s);l||((l=document.createElement("span")).setAttribute("id",s),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var f=i(i({},c),o);Object.assign(l.style,f),l.textContent="".concat(e);var p=l.getBoundingClientRect(),d={width:p.width,height:p.height};return u.widthCache[a]=d,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},69055:function(e,t,n){"use strict";n.d(t,{Ap:function(){return x},EL:function(){return v},Kt:function(){return g},P2:function(){return h},bv:function(){return b},h1:function(){return m},hU:function(){return p},hj:function(){return d},k4:function(){return w},uY:function(){return f}});var r=n(47037),o=n.n(r),a=n(7654),i=n.n(a),u=n(27361),c=n.n(u),s=n(81763),l=n.n(s),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return l()(e)&&!i()(e)},h=function(e){return d(e)||o()(e)},y=0,v=function(e){var t=++y;return"".concat(e||"").concat(t)},m=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return r;if(p(e)){var u=e.indexOf("%");n=t*parseFloat(e.slice(0,u))/100}else n=+e;return i()(n)&&(n=r),a&&n>t&&(n=t),n},g=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;oa&&(u=2*Math.PI-u),{radius:i,angle:180*u/Math.PI,angleInRadian:u}},l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},f=function(e,t){var n,r=s({x:e.x,y:e.y},t),o=r.radius,i=r.angle,u=t.innerRadius,c=t.outerRadius;if(oc)return!1;if(0===o)return!0;var f=l(t),p=f.startAngle,d=f.endAngle,h=i;if(p<=d){for(;h>d;)h-=360;for(;h=p&&h<=d}else{for(;h>p;)h-=360;for(;h=d&&h<=p}return n?a(a({},t),{},{radius:o,angle:h+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null}},52017:function(e,t,n){"use strict";n.d(t,{$R:function(){return R},Bh:function(){return I},Gf:function(){return O},L6:function(){return T},NN:function(){return j},TT:function(){return E},eu:function(){return N},rL:function(){return C},sP:function(){return _}});var r=n(27361),o=n.n(r),a=n(14293),i=n.n(a),u=n(47037),c=n.n(u),s=n(23560),l=n.n(s),f=n(13218),p=n.n(f),d=n(67294),h=n(59864),y=n(69055),v=n(30791),m=n(79896),g=["children"],b=["children"];function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var x={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},O=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},k=null,S=null,D=function e(t){if(t===k&&Array.isArray(S))return S;var n=[];return d.Children.forEach(t,function(t){i()(t)||((0,h.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),S=n,k=t,n};function j(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return O(e)}):[O(t)],D(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function _(e,t){var n=j(e,t);return n&&n[0]}var E=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!(0,y.hj)(n)&&!(n<=0)&&!!(0,y.hj)(r)&&!(r<=0)},P=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],M=function(e,t,n,r){var o,a=null!==(o=null===m.ry||void 0===m.ry?void 0:m.ry[r])&&void 0!==o?o:[];return!l()(e)&&(r&&a.includes(t)||m.Yh.includes(t))||n&&m.nv.includes(t)},T=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,d.isValidElement)(e)&&(r=e.props),!p()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;M(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},C=function e(t,n){if(t===n)return!0;var r=d.Children.count(t);if(r!==d.Children.count(n))return!1;if(0===r)return!0;if(1===r)return A(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=O(e.type),i=t[a]||{},u=i.handler,s=i.once;if(u&&(!s||!r[a])){var l=u(e,a,o);n.push(l),r[a]=!0}}}),n},I=function(e){var t=e&&e.type;return t&&x[t]?x[t]:null},R=function(e,t){return D(t).indexOf(e)}},30791:function(e,t,n){"use strict";function r(e,t){for(var n in e)if(({}).hasOwnProperty.call(e,n)&&(!({}).hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if(({}).hasOwnProperty.call(t,r)&&!({}).hasOwnProperty.call(e,r))return!1;return!0}n.d(t,{w:function(){return r}})},20430:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(33558),o=n(75471),a=n(52017);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6){if(Math.abs(f*c-s*l)>1e-6&&a){let d=n-i,h=o-u,y=c*c+s*s,v=Math.sqrt(y),m=Math.sqrt(p),g=a*Math.tan((r-Math.acos((y+p-(d*d+h*h))/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>1e-6&&this._append`L${e+b*l},${t+b*f}`,this._append`A${a},${a},0,0,${+(f*d>l*h)},${this._x1=e+w*c},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,n,i,u,c){if(e=+e,t=+t,c=!!c,(n=+n)<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),f=e+s,p=t+l,d=1^c,h=c?i-u:u-i;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(h<0&&(h=h%o+o),h>a?this._append`A${n},${n},0,1,${d},${e-s},${t-l}A${n},${n},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=r)},${d},${this._x1=e+n*Math.cos(u)},${this._y1=t+n*Math.sin(u)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new u(t)}u.prototype},86:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},83231:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="";n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["type","icon","className"]);return n.createElement("button",b({type:"button",className:"btn btn-".concat(void 0===t?"default":t," ").concat(o)},i),n.createElement("i",{className:"glyphicon glyphicon-".concat(r)}))}function O(e){var t=e.className,r=e.onClick,o=e.disabled;return n.createElement("div",{className:"row"},n.createElement("p",{className:"col-xs-3 col-xs-offset-9 text-right ".concat(t)},n.createElement(g,{type:"info",icon:"plus",className:"btn-add col-xs-12","aria-label":"Add",tabIndex:"0",onClick:r,disabled:o})))}var S=r(34219),w=r.n(S),j=r(45697),E=r.n(j),x=E().shape({ArrayFieldTemplate:E().elementType,FieldTemplate:E().elementType,ObjectFieldTemplate:E().elementType,definitions:E().object.isRequired,rootSchema:E().object,fields:E().objectOf(E().elementType).isRequired,formContext:E().object.isRequired,widgets:E().objectOf(E().oneOfType([E().func,E().object])).isRequired});E().bool,E().bool,E().object,E().any,E().object,E().func,E().func.isRequired,E().func,E().arrayOf(E().string),E().bool,x.isRequired,E().bool,E().object.isRequired,E().shape({"ui:options":E().shape({addable:E().bool,orderable:E().bool,removable:E().bool})});let _=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e){for(var t=1;te&&(n[u-1]=a[u])}var c=i.filter(function(t,r){return r!==e});r.setState({keyedFormData:c,updatedKeyedFormData:!0},function(){return o(U(c),n)})}}),T(N(r),"onReorderClick",function(e,t){return function(n){n&&(n.preventDefault(),n.target.blur());var o,i,a=r.props.onChange;if(r.props.errorSchema){i={};var u=r.props.errorSchema;for(var c in u)c==e?i[t]=u[e]:c==t?i[e]=u[t]:i[c]=u[c]}var s=r.state.keyedFormData,l=((o=s.slice()).splice(e,1),o.splice(t,0,s[e]),o);r.setState({keyedFormData:l},function(){return a(U(l),i)})}}),T(N(r),"onChangeForIndex",function(e){return function(t,n){var o=r.props,i=o.formData;(0,o.onChange)(i.map(function(r,n){return e===n?void 0===t?null:t:r}),n&&r.props.errorSchema&&A({},r.props.errorSchema,T({},e,n)))}}),T(N(r),"onSelectChange",function(e){r.props.onChange(e)});var t,r,n=q(e.formData);return r.state={keyedFormData:n,updatedKeyedFormData:!1},r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(o,e),t=[{key:"isItemRequired",value:function(e){return Array.isArray(e.type)?!w()(e.type,"null"):"null"!==e.type}},{key:"canAddItem",value:function(e){var t=this.props,r=t.schema,n=tB(t.uiSchema).addable;return!1!==n&&(n=void 0===r.maxItems||e.length0,canMoveDown:n=k.length,p=f?t1(r.additionalItems,E,c):k[n],d=t6(p,l.$id+s+n,E,c,u,s),h=f?o.additionalItems||{}:Array.isArray(o.items)?o.items[n]:o.items||{},y=a?a[n]:void 0;return e.renderArrayFieldItem({key:i,index:n,canRemove:f,canMoveUp:n>=k.length+1,canMoveDown:f&&n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(w,["widget"]),x=tR(r,void 0===j?"checkbox":j,g);return t=Array.isArray(r.oneOf)?tY({oneOf:r.oneOf.map(function(e){return L({},e,{title:e.title||(!0===e.const?"Yes":"No")})})}):tY({enum:r.enum||[!0,!1],enumNames:r.enumNames||(r.enum&&!1===r.enum[0]?["No","Yes"]:["Yes","No"])}),n.createElement(x,{options:L({},E,{enumOptions:t}),schema:r,uiSchema:i,id:a&&a.$id,onChange:h,onFocus:m,onBlur:y,label:void 0===b?o:b,value:u,required:l,disabled:f,readonly:p,registry:s,formContext:O,autofocus:d,rawErrors:v,DescriptionField:S.DescriptionField})}function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(w,["widget"]),x=tR({type:"number"},void 0===j?"select":j,O),_=m[S]||null;_&&(e=_.type?_:Object.assign({},_,{type:r}));var P=m.map(function(e,t){return{label:e.title||"Option ".concat(t+1),value:t}});return n.createElement("div",{className:"panel panel-default panel-body"},n.createElement("div",{className:"form-group"},n.createElement(x,z({id:"".concat(f.$id).concat(b.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:p,onFocus:h,value:S,options:{enumOptions:P}},E))),null!==_&&n.createElement(g,{schema:e,uiSchema:v,errorSchema:u,idSchema:f,idPrefix:s,idSeparator:l,formData:c,onChange:d,onBlur:p,onFocus:h,registry:y,disabled:o,readonly:i,hideError:a}))}}],Z(o.prototype,t),r&&Z(o,r),o}(n.Component);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(){return(ee=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["formData"]),i=this.state.lastValue,a=r;if("string"==typeof i&&"number"==typeof a){var u=RegExp("".concat(a).replace(".","\\.")+"\\.?0*$");i.match(u)&&(a=i)}return n.createElement(e,ee({},o,{formData:a,onChange:this.handleChange}))}}],et(o.prototype,t),r&&et(o,r),o}(n.Component);function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function es(){return(es=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return function(n,o){void 0===n&&t&&(n="");var i=el({},r.props.formData,em({},e,n));r.props.onChange(i,o&&r.props.errorSchema&&el({},r.props.errorSchema,em({},e,o)))}}),em(ed(r),"onDropPropertyClick",function(e){return function(t){t.preventDefault();var n=r.props,o=n.onChange,i=el({},n.formData);delete i[e],o(i)}}),em(ed(r),"getAvailableKey",function(e,t){for(var r=0,n=e;t.hasOwnProperty(n);)n="".concat(e,"-").concat(++r);return n}),em(ed(r),"onKeyChange",function(e){return function(t,n){if(e!==t){t=r.getAvailableKey(t,r.props.formData);var o=el({},r.props.formData),i=em({},e,t),a=Object.keys(o).map(function(e){return em({},i[e]||e,o[e])}),u=Object.assign.apply(Object,[{}].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1?"properties '".concat(a.join("', '"),"'"):"property '".concat(a[0],"'")));return o}if(u!==o.lastIndexOf("*"))throw Error("uiSchema order list contains more than one wildcard item");var c=tk(o);return c.splice.apply(c,[u,1].concat(tk(a))),c}(k,o["ui:order"])}catch(e){return n.createElement("div",null,n.createElement("p",{className:"config-error",style:{color:"red"}},"Invalid ",c||"root"," object field configuration:",n.createElement("em",null,e.message),"."),n.createElement("pre",null,JSON.stringify(x)))}var A=o["ui:ObjectFieldTemplate"]||b.ObjectFieldTemplate||ey,C={title:o["ui:title"]||_,description:P,TitleField:j,DescriptionField:E,properties:e.map(function(e){var r=x.properties[e].hasOwnProperty(tI),c=r?o.additionalProperties:o[e],v=c&&"hidden"===c["ui:widget"];return{content:n.createElement(w,{key:e,name:e,required:t.isRequired(e),schema:x.properties[e],uiSchema:c,errorSchema:a[e],idSchema:u[e],idPrefix:d,idSeparator:h,formData:(i||{})[e],wasPropertyKeyModified:t.state.wasPropertyKeyModified,onKeyChange:t.onKeyChange(e),onChange:t.onPropertyChange(e,r),onBlur:m,onFocus:y,registry:b,disabled:l,readonly:f,hideError:p,onDropPropertyClick:t.onDropPropertyClick}),name:e,readonly:f,disabled:l,required:s,hidden:v}}),readonly:f,disabled:l,required:s,idSchema:u,uiSchema:o,schema:x,formData:i,formContext:S,registry:b};return n.createElement(A,es({},C,{onAddClick:this.handleAddClick}))}}],ef(o.prototype,t),r&&ef(o,r),o}(n.Component);function eb(e){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eg(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(c,["__errors"]),T=n.createElement(x,ew({},e,{idSchema:j,schema:E,uiSchema:function(e){for(var t=1;t0&&B.push("field-error has-error has-danger"),B.push(a.classNames),B=B.join(" ").trim();var q={description:n.createElement(_,{id:M+"__description",description:W,formContext:S}),rawDescription:W,help:n.createElement(e_,{id:M+"__help",help:R}),rawHelp:"string"==typeof R?R:void 0,errors:C?void 0:n.createElement(eP,{errors:N}),rawErrors:C?void 0:N,id:M,label:i,hidden:$,onChange:p,onKeyChange:d,onDropPropertyClick:h,required:m,disabled:P,readonly:k,hideError:C,displayLabel:F,classNames:B,formContext:S,formData:u,fields:O,schema:E,uiSchema:a,registry:v},U=v.fields.AnyOfField,V=v.fields.OneOfField;return n.createElement(w,q,n.createElement(n.Fragment,null,T,E.anyOf&&!tL(E)&&n.createElement(U,{disabled:P,readonly:k,hideError:C,errorSchema:c,formData:u,idPrefix:s,idSchema:j,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.anyOf.map(function(e){return t1(e,g,u)}),baseType:E.type,registry:v,schema:E,uiSchema:a}),E.oneOf&&!tL(E)&&n.createElement(V,{disabled:P,readonly:k,hideError:C,errorSchema:c,formData:u,idPrefix:s,idSchema:j,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.oneOf.map(function(e){return t1(e,g,u)}),baseType:E.type,registry:v,schema:E,uiSchema:a})))}(this.props)}}],eg(o.prototype,t),r&&eg(o,r),o}(n.Component);function eD(e){var t=e.schema,r=e.name,o=e.uiSchema,i=e.idSchema,a=e.formData,u=e.required,c=e.disabled,s=e.readonly,l=e.autofocus,f=e.onChange,p=e.onBlur,d=e.onFocus,h=e.registry,m=void 0===h?tM():h,y=e.rawErrors,v=t.title,b=t.format,g=m.widgets,O=m.formContext,S=tL(t)&&tY(t),w=S?"select":"text";b&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return tR(e,t,r),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}(t,b,g)&&(w=b);var j=tB(o),E=j.widget,x=void 0===E?w:E,_=j.placeholder,P=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(j,["widget","placeholder"]),k=tR(t,x,g);return n.createElement(k,{options:function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","uiSchema","formContext","registry","rawErrors"]));return s.inputType?f.type=s.inputType:f.type||("number"===l.type?(f.type="number",f.step="any"):"integer"===l.type?(f.type="number",f.step="1"):f.type="text"),s.autocomplete&&(f.autoComplete=s.autocomplete),l.multipleOf&&(f.step=l.multipleOf),void 0!==l.minimum&&(f.min=l.minimum),void 0!==l.maximum&&(f.max=l.maximum),[n.createElement("input",eZ({key:f.id,className:"form-control",readOnly:o,disabled:i,autoFocus:a,value:null==r?"":r},f,{list:l.examples?"examples_".concat(f.id):null,onChange:function(t){var r=t.target.value;return e.onChange(""===r?s.emptyValue:r)},onBlur:u&&function(e){return u(f.id,e.target.value)},onFocus:c&&function(e){return c(f.id,e.target.value)}})),l.examples?n.createElement("datalist",{key:"datalist_".concat(f.id),id:"examples_".concat(f.id)},((function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);ta.indexOf(t)}))):c((o=e.value,i.filter(function(e){return e!==o})))}}),n.createElement("span",null,e.label));return f?n.createElement("label",{key:o,className:"checkbox-inline ".concat(h)},m):n.createElement("div",{key:o,className:"checkbox ".concat(h)},n.createElement("label",null,m))}))}function eG(){return(eG=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"root",r=[];return"__errors"in e&&(r=r.concat(e.__errors.map(function(e){return{stack:"".concat(t,": ").concat(e)}}))),Object.keys(e).reduce(function(t,r){return"__errors"!==r&&(t=t.concat(tE(e[r],r))),t},r)}function tx(e,t,r,n){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};e=t$(t,e,t,!0);var u=!t3(tS,i),c=!t3(tO,a);(u||c)&&(tg=tj()),i&&u&&Array.isArray(i)&&(tg.addMetaSchema(i),tS=i),a&&c&&tq(a)&&(Object.keys(a).forEach(function(e){tg.addFormat(e,a[e])}),tO=a);var s=null;try{tg.validate(t,e)}catch(e){s=e}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null===e?[]:e.map(function(e){var t=e.dataPath,r=e.keyword,n=e.message,o=e.params,i=e.schemaPath,a="".concat(t);return{name:r,property:a,message:n,params:o,stack:"".concat(a," ").concat(n).trim(),schemaPath:i}})}(tg.errors);tg.errors=null;var f=s&&s.message&&"string"==typeof s.message&&s.message.includes("no schema with key or ref ");f&&(l=[].concat(ty(l),[{stack:s.message}])),"function"==typeof n&&(l=n(l));var p=(o=l).length?o.reduce(function(e,t){var r=t.property,n=t.message,o=td()(r),i=e;o.length>0&&""===o[0]&&o.splice(0,1);var a=!0,u=!1,c=void 0;try{for(var s,l=o.slice(0)[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var f=s.value;f in i||(i[f]={}),i=i[f]}}catch(e){u=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(u)throw c}}return Array.isArray(i.__errors)?i.__errors=i.__errors.concat(n):n&&(i.__errors=[n]),e},{}):{};if(f&&(p=tv({},p,{$schema:{__errors:[s.message]}})),"function"!=typeof r)return{errors:l,errorSchema:p};var d=tU(p,function e(t){return Object.keys(t).reduce(function(r,n){return"addError"===n?r:"__errors"===n?tv({},r,tb({},n,t[n])):tv({},r,tb({},n,e(t[n])))},{})}(r(e,function e(t){var r={__errors:[],addError:function(e){this.__errors.push(e)}};return tq(t)?Object.keys(t).reduce(function(r,n){return tv({},r,tb({},n,e(t[n])))},r):Array.isArray(t)?t.reduce(function(t,r,n){return tv({},t,tb({},n,e(r)))},r):r}(e))),!0);return{errors:tE(d),errorSchema:d}}function t_(e,t,r){try{return tg.addSchema(r,tw).validate(function e(t){var r=t;if(t.constructor===Object)for(var n in r=tv({},t)){var o=r[n];"$ref"===n&&"string"==typeof o&&o.startsWith("#")?r[n]=tw+o:r[n]=e(o)}else if(Array.isArray(t)){r=ty(t);for(var i=0;i=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var tI="__additional_property",tT={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function tM(){return{fields:eM,widgets:tf,definitions:{},rootSchema:{},formContext:{}}}function tW(e){var t=e.type;return!t&&e.const?tG(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":t instanceof Array&&2===t.length&&t.includes("null")?t.find(function(e){return"null"!==e}):t}function tR(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=tW(e);if("function"==typeof t||l.isForwardRef(n.createElement(t))||l.isMemo(t))return function(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(r){var o=r.options,i=tN(r,["options"]);return n.createElement(e,tC({options:tD({},t,void 0===o?{}:o)},i))}}return e.MergedWidget}(t);if("string"!=typeof t)throw Error("Unsupported widget definition: ".concat(tA(t)));if(r.hasOwnProperty(t))return tR(e,r[t],r);if(!tT.hasOwnProperty(o))throw Error('No widget for type "'.concat(o,'"'));if(tT[o].hasOwnProperty(t)){var i=r[tT[o][t]];return tR(e,i,r)}throw Error('No widget "'.concat(t,'" for type "').concat(o,'"'))}function t$(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tq(e))throw Error("Invalid schema: "+e);var o=function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=tq(t)?t:{},u=tq(o)?o:{},c=r;if(tq(c)&&tq(a.default))c=tU(c,a.default);else if("default"in a)c=a.default;else{if("$ref"in a)return e(tX(a.$ref,n),c,n,u,i);if("dependencies"in a)return e(t2(a,n,u),c,n,u,i);tz(a)?c=a.items.map(function(t,o){return e(t,Array.isArray(r)?r[o]:void 0,n,u,i)}):"oneOf"in a?a=a.oneOf[rn(void 0,a.oneOf,n)]:"anyOf"in a&&(a=a.anyOf[rn(void 0,a.anyOf,n)])}switch(void 0===c&&(c=a.default),tW(a)){case"object":return Object.keys(a.properties||{}).reduce(function(t,r){var o=e(a.properties[r],(c||{})[r],n,(u||{})[r],i);return(i||void 0!==o)&&(t[r]=o),t},{});case"array":if(Array.isArray(c)&&(c=c.map(function(t,r){return e(a.items[r]||a.additionalItems||{},t,n)})),Array.isArray(o)&&(c=o.map(function(t,r){return e(a.items,(c||{})[r],n,t)})),a.minItems){if(tH(a,n))return c||[];var s=c?c.length:0;if(a.minItems>s){var l=c||[],f=Array.isArray(a.items)?a.additionalItems:a.items,p=h()(Array(a.minItems-s),e(f,f.defaults,n));return l.concat(p)}}}return c}(t1(e,r,t),e.default,r,t,n);return void 0===t?o:tq(t)||Array.isArray(t)?function e(t,r){if(Array.isArray(r))return Array.isArray(t)||(t=[]),r.map(function(r,n){return t[n]?e(t[n],r):r});if(!tq(r))return r;var n=Object.assign({},t);return Object.keys(r).reduce(function(n,o){return n[o]=e(t?t[o]:{},r[o]),n},n)}(o,t):0===t||!1===t||""===t?t:t||o}function tB(e){return Object.keys(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,r){var n=e[r];return"ui:widget"===r&&tq(n)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),tD({},t,n.options||{},{widget:n.component})):"ui:options"===r&&tq(n)?tD({},t,n):tD({},t,tF({},r.substring(3),n))},{})}function tq(e){return!("undefined"!=typeof File&&e instanceof File)&&"object"===tA(e)&&null!==e&&!Array.isArray(e)}function tU(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.assign({},e);return Object.keys(t).reduce(function(n,o){var i=e?e[o]:{},a=t[o];return e&&e.hasOwnProperty(o)&&tq(a)?n[o]=tU(i,a,r):r&&Array.isArray(i)&&Array.isArray(a)?n[o]=i.concat(a):n[o]=a,n},n)}function tV(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e)||/\.0$/.test(e))return e;var t=Number(e),r="number"==typeof t&&!Number.isNaN(t);return/\.\d*0$/.test(e)?e:r?t:e}}function tL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t1(e,t),n=r.oneOf||r.anyOf;return!!Array.isArray(r.enum)||!!Array.isArray(n)&&n.every(function(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")})}function tH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e.uniqueItems&&!!e.items&&tL(e.items,t)}function tK(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var n=t1(e.items,r);return"string"===n.type&&"data-url"===n.format}return!1}function tz(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(function(e){return tq(e)})}function tZ(e){return"widget"in tB(e)&&"hidden"!==tB(e).widget}function tJ(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),tq(e.additionalItems)}function tY(e){return e.enum?e.enum.map(function(t,r){return{label:e.enumNames&&e.enumNames[r]||String(t),value:t}}):(e.oneOf||e.anyOf).map(function(e){var t=function(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw Error("schema cannot be inferred as a constant")}(e),r=e.title||String(t);return{schema:e,label:r,value:t}})}function tX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(e.startsWith("#"))e=decodeURIComponent(e.substring(1));else throw Error("Could not find a definition for ".concat(r,"."));var n=v.get(t,e);if(void 0===n)throw Error("Could not find a definition for ".concat(r,"."));return n.hasOwnProperty("$ref")?tX(n.$ref,t):n}var tG=function(e){if(Array.isArray(e))return"array";if("string"==typeof e);else if(null==e)return"null";else if("boolean"==typeof e)return"boolean";else if(!isNaN(e))return"number";else if("object"===tA(e))return"object";return"string"},tQ=function(e,t,r){var n=e.if,o=e.then,i=e.else,a=tN(e,["if","then","else"]),u=t_(n,r,t)?o:i;return u?t1(t5(a,t1(u,t,r)),t,r):t1(a,t,r)};function t0(e,t,r){var n=tX(e.$ref,t);return e.$ref,t1(tD({},n,tN(e,["$ref"])),t,r)}function t1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!tq(e))return{};var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.hasOwnProperty("$ref")?t0(e,t,r):e.hasOwnProperty("dependencies")?t1(t2(e,t,r),t,r):e.hasOwnProperty("allOf")?tD({},e,{allOf:e.allOf.map(function(e){return t1(e,t,r)})}):e}(e,t,r);if(e.hasOwnProperty("if"))return tQ(e,t,r);if(n.properties){var o={};Object.entries(n.properties).forEach(function(e){var i=e[0],a=e[1],u=r&&r[i],c=t1(a,t,tq(u)?u:{});o[i]=c,a!==c&&n.properties!==o&&(n=tD({},n,{properties:o}))})}if("allOf"in e)try{n=p()(tD({},n,{allOf:n.allOf}))}catch(e){console.warn("could not merge subschemas in allOf:\n"+e);var i=n;return i.allOf,tN(i,["allOf"])}return n.hasOwnProperty("additionalProperties")&&!1!==n.additionalProperties?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=tD({},e,{properties:tD({},e.properties)}),Object.keys(r=tq(r)?r:{}).forEach(function(n){var o;e.properties.hasOwnProperty(n)||(o=e.additionalProperties.hasOwnProperty("$ref")?t1({$ref:e.additionalProperties.$ref},t,r):e.additionalProperties.hasOwnProperty("type")?tD({},e.additionalProperties):{type:tG(r[n])},e.properties[n]=o,e.properties[n][tI]=!0)}),e}(n,t,r):n}function t2(e,t,r){var n=e.dependencies,o=tN(e,["dependencies"]);return"oneOf"in o?o=o.oneOf[rn(r,o.oneOf,t)]:"anyOf"in o&&(o=o.anyOf[rn(r,o.anyOf,t)]),function e(t,r,n,o){for(var i in t)if(void 0!==o[i]&&(!r.properties||i in r.properties)){var a=t[i],u=tN(t,[i].map(tP));return Array.isArray(a)?r=function(e,t){if(!t)return e;var r=Array.isArray(e.required)?Array.from(new Set([].concat(tk(e.required),tk(t)))):t;return tD({},e,{required:r})}(r,a):tq(a)&&(r=function(e,t,r,n,o){var i=t1(o,t,r),a=i.oneOf;if(e=t5(e,tN(i,["oneOf"])),void 0===a)return e;if(!Array.isArray(a))throw Error("invalid: it is some ".concat(tA(a)," instead of an array"));var u=a.map(function(e){return e.hasOwnProperty("$ref")?t0(e,t,r):e});return function(e,t,r,n,o){var i=o.filter(function(e){if(!e.properties)return!1;var t=e.properties[n];if(t)return 0===tx(r,{type:"object",properties:tF({},n,t)}).errors.length});if(1!==i.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var a=i[0],u=a.properties;return t5(e,t1(tD({},a,{properties:(u[n],tN(u,[n].map(tP)))}),t,r))}(e,t,r,n,u)}(r,n,o,i,a)),e(u,r,n,o)}return r}(void 0===n?{}:n,o,t,r)}function t5(e,t){var r=Object.assign({},e);return Object.keys(t).reduce(function(r,n){var o=e?e[n]:{},i=t[n];return e&&e.hasOwnProperty(n)&&tq(i)?r[n]=t5(o,i):e&&t&&("object"===tW(e)||"object"===tW(t))&&"required"===n&&Array.isArray(o)&&Array.isArray(i)?r[n]=y()(o,i):r[n]=i,r},r)}function t4(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function t3(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t||"function"==typeof e||"function"==typeof t)return!0;if("object"!==tA(e)||"object"!==tA(t)||null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(t4(e)||t4(t)){if(!(t4(e)&&t4(t)))return!1;var o=Array.prototype.slice;return t3(o.call(e),o.call(t),r,n)}else{if(e.constructor!==t.constructor)return!1;var i,a=Object.keys(e),u=Object.keys(t);if(0===a.length&&0===u.length)return!0;if(a.length!==u.length)return!1;for(var c=r.length;c--;)if(r[c]===e)return n[c]===t;r.push(e),n.push(t),a.sort(),u.sort();for(var s=a.length-1;s>=0;s--)if(a[s]!==u[s])return!1;for(var l=a.length-1;l>=0;l--)if(!t3(e[i=a[l]],t[i],r,n))return!1;return r.pop(),n.pop(),!0}}function t9(e,t,r){var n=e.props,o=e.state;return!t3(n,t)||!t3(o,r)}function t6(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"_",a={$id:t||o};if("$ref"in e||"dependencies"in e||"allOf"in e)return t6(t1(e,r,n),t,r,n,o,i);if("items"in e&&!e.items.$ref)return t6(e.items,t,r,n,o,i);if("object"!==e.type)return a;for(var u in e.properties||{}){var c=e.properties[u],s=a.$id+i+u;a[u]=t6(tq(c)?c:{},s,r,(n||{})[u],o,i)}return a}function t8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={$name:t.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e)return t8(t1(e,r,n),t,r,n);if(e.hasOwnProperty("additionalProperties")&&(o.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&Array.isArray(n))n.forEach(function(n,i){o[i]=t8(e.items,"".concat(t,".").concat(i),r,n)});else if(e.hasOwnProperty("properties"))for(var i in e.properties)o[i]=t8(e.properties[i],"".concat(t,".").concat(i),r,(n||{})[i]);return o}function t7(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var r=new Date(e);if(Number.isNaN(r.getTime()))throw Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function re(e){var t=e.year,r=e.month,n=e.day,o=e.hour,i=e.minute,a=e.second,u=!(arguments.length>1)||void 0===arguments[1]||arguments[1],c=Date.UTC(t,r-1,n,void 0===o?0:o,void 0===i?0:i,void 0===a?0:a),s=new Date(c).toJSON();return u?s:s.slice(0,10)}function rt(e,t){for(var r=String(e);r.length1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""];return Object.keys(r).forEach(function(i){if("object"===ri(r[i])){var a=o.map(function(e){return"".concat(e,".").concat(i)});r[i].__rjsf_additionalProperties&&""!==r[i].$name?n.push(r[i].$name):e(r[i],n,a)}else"$name"===i&&""!==r[i]&&o.forEach(function(e){e=e.replace(/^\./,"");var r=u()(t,e);("object"!==ri(r)||s()(r))&&n.push(e)})}),n}(e)}),rl(rc(t),"onChange",function(e,r){(tq(e)||Array.isArray(e))&&(e=t.getStateFromProps(t.props,e).formData);var n=!t.props.noValidate&&t.props.liveValidate,o={formData:e},i=e;if(!0===t.props.omitExtraData&&!0===t.props.liveOmit){var a=t8(t1(t.state.schema,t.state.schema,e),"",t.state.schema,e),u=t.getFieldNames(a,e);o={formData:i=t.getUsedFormData(e,u)}}if(n){var c=t.validate(i),s=c.errors,l=c.errorSchema,f=s,p=l;t.props.extraErrors&&(s=tE(l=tU(l,t.props.extraErrors,!0))),o={formData:i,errors:s,errorSchema:l,schemaValidationErrors:f,schemaValidationErrorSchema:p}}else if(!t.props.noValidate&&r){var d=t.props.extraErrors?tU(r,t.props.extraErrors,!0):r;o={formData:i,errorSchema:d,errors:tE(d)}}t.setState(o,function(){return t.props.onChange&&t.props.onChange(t.state)})}),rl(rc(t),"onBlur",function(){if(t.props.onBlur){var e;(e=t.props).onBlur.apply(e,arguments)}}),rl(rc(t),"onFocus",function(){if(t.props.onFocus){var e;(e=t.props).onFocus.apply(e,arguments)}}),rl(rc(t),"onSubmit",function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var r,n,o=t.state.formData;if(!0===t.props.omitExtraData){var i=t8(t1(t.state.schema,t.state.schema,o),"",t.state.schema,o),a=t.getFieldNames(i,o);o=t.getUsedFormData(o,a)}if(!t.props.noValidate){var u=t.validate(o),c=u.errors,s=u.errorSchema,l=c,f=s;if(Object.keys(c).length>0){t.props.extraErrors&&(c=tE(s=tU(s,t.props.extraErrors,!0))),t.setState({errors:c,errorSchema:s,schemaValidationErrors:l,schemaValidationErrorSchema:f},function(){t.props.onError?t.props.onError(c):console.error("Form validation failed",c)});return}}t.props.extraErrors?n=tE(r=t.props.extraErrors):(r={},n=[]),t.setState({formData:o,errors:n,errorSchema:r,schemaValidationErrors:[],schemaValidationErrorSchema:{}},function(){t.props.onSubmit&&t.props.onSubmit(ro({},t.state,{formData:o,status:"submitted"}),e)})}}),t.state=t.getStateFromProps(e,e.formData),t.props.onChange&&!t3(t.state.formData,t.props.formData)&&t.props.onChange(t.state),t.formElement=null,t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rs(e,t)}(o,e),t=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.getStateFromProps(e,e.formData);t3(t.formData,e.formData)||t3(t.formData,this.state.formData)||!this.props.onChange||this.props.onChange(t),this.setState(t)}},{key:"getStateFromProps",value:function(e,t){var r,n,o,i,a=this.state||{},u="schema"in e?e.schema:this.props.schema,c="uiSchema"in e?e.uiSchema:this.props.uiSchema,s=void 0!==t,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,f=s&&!e.noValidate&&l,p=t$(u,t,u),d=t1(u,u,p),h=e.customFormats,m=e.additionalMetaSchemas;if(f){var y=this.validate(p,u,m,h);r=y.errors,n=y.errorSchema,o=r,i=n}else{var v=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};r=v.errors,n=v.errorSchema,o=a.schemaValidationErrors,i=a.schemaValidationErrorSchema}e.extraErrors&&(r=tE(n=tU(n,e.extraErrors,!0)));var b=t6(d,c["ui:rootFieldId"],u,p,e.idPrefix,e.idSeparator),g={schema:u,uiSchema:c,idSchema:b,formData:p,edit:s,errors:r,errorSchema:n,additionalMetaSchemas:m};return o&&(g.schemaValidationErrors=o,g.schemaValidationErrorSchema=i),g}},{key:"shouldComponentUpdate",value:function(e,t){return t9(this,e,t)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.additionalMetaSchemas,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.customFormats,o=this.props,i=o.validate,a=o.transformErrors,u=t1(t,this.getRegistry().rootSchema,e);return tx(e,u,i,a,r,n)}},{key:"renderErrors",value:function(){var e=this.state,t=e.errors,r=e.errorSchema,o=e.schema,i=e.uiSchema,a=this.props,u=a.ErrorList,c=a.showErrorList,s=a.formContext;return t.length&&!1!=c?n.createElement(u,{errors:t,errorSchema:r,schema:o,uiSchema:i,formContext:s}):null}},{key:"getRegistry",value:function(){var e=tM(),t=e.fields,r=e.widgets;return{fields:ro({},t,this.props.fields),widgets:ro({},r,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},rootSchema:this.props.schema,formContext:this.props.formContext||{}}}},{key:"submit",value:function(){this.formElement&&this.formElement.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,o=t.id,i=t.idPrefix,a=t.idSeparator,u=t.className,c=t.tagName,s=t.name,l=t.method,f=t.target,p=t.action,d=t.autocomplete,h=t.autoComplete,m=t.enctype,y=t.acceptcharset,v=t.noHtml5Validate,b=t.disabled,g=t.readonly,O=t.formContext,S=t._internalFormWrapper,w=this.state,j=w.schema,E=w.uiSchema,x=w.formData,_=w.errorSchema,P=w.idSchema,k=this.getRegistry(),A=k.fields.SchemaField,C=k.widgets.SubmitButton;return d&&console.warn("Using autocomplete property of Form is deprecated, use autoComplete instead."),n.createElement(S||c||"form",{className:u||"rjsf",id:o,name:s,method:l,target:f,action:p,autoComplete:h||d,encType:m,acceptCharset:y,noValidate:v,onSubmit:this.onSubmit,as:S?c:void 0,ref:function(t){e.formElement=t}},this.renderErrors(),n.createElement(A,{schema:j,uiSchema:E,errorSchema:_,idSchema:P,idPrefix:i,idSeparator:a,formContext:O,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:b,readonly:g}),r||n.createElement(C,{uiSchema:E}))}}],ra(o.prototype,t),r&&ra(o,r),o}(n.Component);rl(rf,"defaultProps",{uiSchema:{},noValidate:!1,liveValidate:!1,disabled:!1,readonly:!1,noHtml5Validate:!1,ErrorList:function(e){var t=e.errors;return n.createElement("div",{className:"panel panel-danger errors"},n.createElement("div",{className:"panel-heading"},n.createElement("h3",{className:"panel-title"},"Errors")),n.createElement("ul",{className:"list-group"},t.map(function(e,t){return n.createElement("li",{key:t,className:"list-group-item text-danger"},e.stack)})))},omitExtraData:!1}),E().object,E().object;var rp=rf},21252:function(e,t,r){"use strict";var n=r(14653),o=r(59158),i=r(79882);function a(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function u(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;(1&e)==0&&(1&t)==0;)e>>>=1,t>>>=1,n++;for(;(1&e)==0;)e>>>=1;for(;t;){for(;(1&t)==0;)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<1){if(r=e[0],!i(t=e[1]))throw TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}else throw TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if((c=r.length)<2)return null;if(t){for(f=0,s=Array(c);f1){if(r=e[0],!a(t=e[1]))throw TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}else throw TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if((u=r.length)<2)return null;if(t){for(l=0,c=Array(u);lArray.isArray(e)?e:[e],p=e=>void 0===e,d=e=>s(e)||Array.isArray(e)?Object.keys(e):[],h=(e,t)=>e.hasOwnProperty(t),m=e=>o(i(e)),y=e=>p(e)||Array.isArray(e)&&0===e.length,v=(e,t,r,n)=>t&&h(t,r)&&e&&h(e,r)&&n(e[r],t[r]),b=(e,t)=>p(e)&&0===t||p(t)&&0===e||n(e,t),g=(e,t)=>p(e)&&!1===t||p(t)&&!1===e||n(e,t),O=e=>p(e)||n(e,{})||!0===e,S=e=>p(e)||n(e,{}),w=e=>p(e)||s(e)||!0===e||!1===e;function j(e,t){return!!(y(e)&&y(t))||n(m(e),m(t))}function E(e,t,r,o){var a=i(d(e).concat(d(t)));return!!(S(e)&&S(t))||!(S(e)&&d(t).length||S(t)&&d(e).length)&&a.every(function(r){var i=e[r],a=t[r];return Array.isArray(i)&&Array.isArray(a)?n(m(e),m(t)):!(Array.isArray(i)&&!Array.isArray(a)||Array.isArray(a)&&!Array.isArray(i))&&v(e,t,r,o)})}function x(e,t,r,n){var o=a(e,n),i=a(t,n);return c(o,i,n).length===Math.max(o.length,i.length)}var _={title:n,uniqueItems:g,minLength:b,minItems:b,minProperties:b,required:j,enum:j,type:function(e,t){return e=f(e),t=f(t),n(m(e),m(t))},items:function(e,t,r,o){return s(e)&&s(t)?o(e,t):Array.isArray(e)&&Array.isArray(t)?E(e,t,r,o):n(e,t)},anyOf:x,allOf:x,oneOf:x,properties:E,patternProperties:E,dependencies:E},P=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],k=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,r,o){if(o=u(o,{ignore:[]}),O(t)&&O(r))return!0;if(!w(t)||!w(r))throw Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(l(t)&&l(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t||p(t)&&!p(r)||!p(t)&&p(r))return!1;var a=i(Object.keys(t).concat(Object.keys(r)));if(o.ignore.length&&(a=a.filter(e=>-1===o.ignore.indexOf(e))),!a.length)return!0;function c(t,r){return e(t,r,o)}return a.every(function(i){var a=t[i],u=r[i];if(-1!==k.indexOf(i))return e(a,u,o);var s=_[i];if(s||(s=n),n(a,u))return!0;if(-1===P.indexOf(i)&&(!h(t,i)&&h(r,i)||h(t,i)&&!h(r,i)))return a===u;var f=s(a,u,i,c);if(!l(f))throw Error("Comparer must return true or false");return f})}},19830:function(e,t,r){var n=r(50361),o=r(36602),i=r(61735),a=r(66913),u=r(85564),c=r(42348),s=r(25325),l=r(33856),f=r(18446),p=r(68630),d=r(45604),h=r(89734),m=r(84486),y=r(44908),v=r(87185),b=r(13997),g=(e,...t)=>b.apply(null,[e].concat(u(t))),O=e=>w(H,e),S=e=>w(K,e),w=(e,t)=>-1!==e.indexOf(t),j=e=>!$(e).length&&!1!==e&&!0!==e,E=e=>p(e)||!0===e||!1===e,x=e=>!1===e,_=e=>!0===e,P=(e,t,r)=>r(e),k=e=>h(y(c(e))),A=e=>void 0!==e,C=e=>y(c(e.map($))),D=e=>e[0],F=e=>k(e),N=e=>Math.max.apply(Math,e),I=e=>Math.min.apply(Math,e),T=e=>e.some(_),M=e=>v(u(e),f);function W(e,t){return e.map(function(e){return e&&e[t]})}function R(e,t){return e.map(function(e){if(e){if(!Array.isArray(e.items))return e.items;var r=e.items[t];if(E(r))return r;if(e.hasOwnProperty("additionalItems"))return e.additionalItems}})}function $(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function B(e,t){var r;try{r=e.map(function(e){return JSON.stringify(e,null,2)}).join("\n")}catch(t){r=e.join(", ")}throw Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function q(e,t,r){return function(n,o){if(void 0===o)throw Error("You need to call merger with a key for the property name or index if array.");return o=String(o),e(n,null,r.concat(t,o))}}function U(e,t,r,n,i,a){if(e.length){var u=i.resolvers[t];if(!u)throw Error("No resolver found for "+t);var c=v(r.map(function(t){return e.reduce(function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e},{})}).filter(A),o),s=("properties"===t?H:K).reduce(function(e,t){return w(z,t)?e[t]=q(n,t,a):e[t]=function(e){return n(e,null,a.concat(t))},e},{});"items"===t&&(s.itemsArray=q(n,"items",a),s.items=function(e){return n(e,null,a.concat("items"))});var l=u(c,a.concat(t),s,i);return p(l)||B(c,a.concat(t)),function(e){for(var t in e)e.hasOwnProperty(t)&&j(e[t])&&delete e[t];return e}(l)}}function V(e,t,r){var n=C(r||e),i=r?R:W;return n.reduce(function(r,n){var a=v(i(e,n).filter(A),o);return r[n]=t(a,n),r},r?[]:{})}function L(e){return{required:e}}var H=["properties","patternProperties","additionalProperties"],K=["items","additionalItems"],z=["properties","patternProperties","definitions","dependencies"],Z=["anyOf","oneOf"],J=["additionalProperties","additionalItems","contains","propertyNames","not","items"],Y={type(e){if(e.some(Array.isArray)){var t=e.map(function(e){return Array.isArray(e)?e:[e]}),r=s.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return y(r)}},properties(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(t){var n=e.filter(e=>e!==t),o=$(t.properties),i=$(t.patternProperties).map(e=>RegExp(e));n.forEach(function(e){var n=$(e.properties),a=n.filter(e=>i.some(t=>t.test(e)));g(n,o,a).forEach(function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)})})}),e.forEach(function(t){var r=e.filter(e=>e!==t),n=$(t.patternProperties);!1===t.additionalProperties&&r.forEach(function(e){g($(e.patternProperties),n).forEach(t=>delete e.patternProperties[t])})}));var o,i={additionalProperties:r.additionalProperties(e.map(e=>e.additionalProperties)),patternProperties:V(e.map(e=>e.patternProperties),r.patternProperties),properties:V(e.map(e=>e.properties),r.properties)};return!1===i.additionalProperties&&m(o=i.properties,function(e,t){!1===e&&delete o[t]}),i},dependencies:(e,t,r)=>C(e).reduce(function(t,n){var i=v(W(e,n).filter(A),f),a=i.filter(Array.isArray);if(a.length){if(a.length===i.length)t[n]=k(i);else{var u=i.filter(E),c=a.map(L);t[n]=r(u.concat(c),n)}return t}return i=v(i,o),t[n]=r(i,n),t},{}),items(e,t,r){var n,o,i=e.map(e=>e.items),a=i.filter(A),u={};return(a.every(E)?u.items=r.items(i):u.items=V(e,r.itemsArray,i),a.every(Array.isArray))?o=e.map(e=>e.additionalItems):a.some(Array.isArray)&&(o=e.map(function(e){return e?Array.isArray(e.items)?e.additionalItems:e.items:void 0})),o&&(u.additionalItems=r.additionalItems(o)),!1===u.additionalItems&&Array.isArray(u.items)&&m(n=u.items,function(e,t){!1===e&&n.splice(t,1)}),u},oneOf(e,t,r){var i=v((function e(t,r){if(r=r||[],!t.length)return r;var n=t.slice(0).shift(),o=t.slice(1);return r.length?e(o,u(r.map(e=>n.map(t=>[t].concat(e))))):e(o,n.map(e=>e))})(n(e)).map(function(e,t){try{return r(e,t)}catch(e){return}}).filter(A),o);if(i.length)return i},not:e=>({anyOf:e}),pattern(e,t,r,n,o){var i=t.pop();o(e.map(function(e){return{[i]:e}}))},multipleOf(e){for(var t=e.slice(0),r=1;t.some(e=>!Number.isInteger(e));)t=t.map(e=>10*e),r*=10;return i(t)/r},enum(e){var t=l.apply(null,e.concat(f));if(t.length)return h(t)}};function X(e,t,r){return r=r||[],t=a(t,{ignoreAdditionalProperties:!1,resolvers:Y}),function e(i,a,u){i=n(i.filter(A)),u=u||[];var c=p(a)?a:{};if(i.length){if(i.some(x))return!1;if(i.every(_))return!0;var s=C(i=i.filter(p));if(w(s,"allOf"))return X({allOf:i},t,r);var l=s.filter(O);d(s,l);var f=s.filter(S);return d(s,f),s.forEach(function(r){var n=v(W(i,r).filter(A),function(e,t){return o({[r]:e},{[r]:t})});if(1===n.length&&w(Z,r))c[r]=n[0].map(function(t){return e([t],t)});else if(1!==n.length||w(z,r)||w(J,r)){var a,s=t.resolvers[r]||t.resolvers.defaultResolver;if(!s)throw Error("No resolver found for key "+r+". You can provide a resolver for this keyword in the options, or provide a default resolver.");a=w(z,r)||w(Z,r)?q(e,r,u):function(t){return e(t,null,u.concat(r))};var l=!1;c[r]=s(n,u.concat(r),a,t,function(e){var t,r;return l=Array.isArray(e),t=e,void(c.allOf=Array.isArray(r=c.allOf)?(r.splice.apply(r,[0,0].concat(t)),r):t)}),void 0!==c[r]||l?void 0===c[r]&&delete c[r]:B(n,u.concat(r))}else c[r]=n[0]}),Object.assign(c,U(l,"properties",i,e,t,u)),Object.assign(c,U(f,"items",i,e,t,u)),c}}(c(function e(t){if(!Array.isArray(t.allOf))return[t];var r=t.allOf;return delete t.allOf,[t].concat(r.map(function(t){return e(t)}))}(e)),e)}Y.$id=D,Y.$ref=D,Y.$schema=D,Y.additionalItems=P,Y.additionalProperties=P,Y.anyOf=Y.oneOf,Y.contains=P,Y.default=D,Y.definitions=Y.dependencies,Y.description=D,Y.examples=M,Y.exclusiveMaximum=I,Y.exclusiveMinimum=N,Y.maximum=I,Y.maxItems=I,Y.maxLength=I,Y.maxProperties=I,Y.minimum=N,Y.minItems=N,Y.minLength=N,Y.minProperties=N,Y.propertyNames=P,Y.required=F,Y.title=D,Y.uniqueItems=T,X.options={resolvers:Y},e.exports=X},89038:function(e,t){var r=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw Error("Invalid tilde escape: "+e)}function i(e){return r.test(e)?e.replace(n,o):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e}else if(Array.isArray(e)){for(let t of e)if("string"!=typeof t&&"number"!=typeof t)throw Error("Invalid JSON pointer. Must be of type string or number.");return e}throw Error("Invalid JSON pointer.")}function u(e,t){if("object"!=typeof e)throw Error("Invalid input object.");var r=(t=a(t)).length;if(1===r)return e;for(var n=1;na,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var c=e[n];return void 0===r?delete e[n]:e[n]=r,c}(e,t,r)}t.get=u,t.set=c,t.compile=function(e){var t=a(e);return{get:function(e){return u(e,t)},set:function(e,r){return c(e,t,r)}}}},91296:function(e,t,r){var n=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=s||l||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,m=function(){return f.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return n;if(y(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=y(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var s=a.test(e);return s||u.test(e)?c(e.slice(2),s?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,o,i,a,u,c,s=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=n,i=o;return n=o=void 0,s=t,a=e.apply(i,r)}function g(e){var r=e-c,n=e-s;return void 0===c||r>=t||r<0||f&&n>=i}function O(){var e,r,n,o=m();if(g(o))return S(o);u=setTimeout(O,(e=o-c,r=o-s,n=t-e,f?h(n,i-r):n))}function S(e){return(u=void 0,p&&n)?b(e):(n=o=void 0,a)}function w(){var e,r=m(),i=g(r);if(n=arguments,o=this,c=r,i){if(void 0===u)return s=e=c,u=setTimeout(O,t),l?b(e):a;if(f)return u=setTimeout(O,t),b(c)}return void 0===u&&(u=setTimeout(O,t)),a}return t=v(t)||0,y(r)&&(l=!!r.leading,i=(f="maxWait"in r)?d(v(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),w.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=c=o=u=void 0},w.flush=function(){return void 0===u?a:S(m())},w}},61478:function(e,t,r){var n,o,i,a="__lodash_hash_undefined__",u=/^\[object .+?Constructor\]$/,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=c||s||Function("return this")();function f(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i-1}function p(e,t,r){for(var n=-1,o=e?e.length:0;++n-1},F.prototype.set=function(e,t){var r=this.__data__,n=T(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new D,map:new(A||F),string:new D}},N.prototype.delete=function(e){return M(this,e).delete(e)},N.prototype.get=function(e){return M(this,e).get(e)},N.prototype.has=function(e){return M(this,e).has(e)},N.prototype.set=function(e,t){return M(this,e).set(e,t),this},I.prototype.add=I.prototype.push=function(e){return this.__data__.set(e,a),this},I.prototype.has=function(e){return this.__data__.has(e)};var $=(o=function(e,t){return q(e)?function(e,t,r,n){var o=-1,i=f,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;r&&(t=function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r=200&&(i=h,a=!1,t=new I(t));e:for(;++o0&&n(c)?r>1?e(c,r-1,n,o,i):function(e,t){for(var r=-1,n=t.length,o=e.length;++r-1&&r%1==0&&r<=9007199254740991&&!U(t)}function U(e){var t=V(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=$},59722:function(e){e.exports=function(e){return null==e}},97644:function(e,t,r){var n,o="__lodash_hash_undefined__",i=/^\[object .+?Constructor\]$/,a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=a||u||Function("return this")();function s(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i-1}function l(e,t,r){for(var n=-1,o=e?e.length:0;++n-1},k.prototype.set=function(e,t){var r=this.__data__,n=D(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new P,map:new(E||k),string:new P}},A.prototype.delete=function(e){return N(this,e).delete(e)},A.prototype.get=function(e){return N(this,e).get(e)},A.prototype.has=function(e){return N(this,e).has(e)},A.prototype.set=function(e,t){return N(this,e).set(e,t),this},C.prototype.add=C.prototype.push=function(e){return this.__data__.set(e,o),this},C.prototype.has=function(e){return this.__data__.has(e)};var F=x&&1/d(new x([,-0]))[1]==1/0?function(e){return new x(e)}:function(){};function N(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function I(e,t){var r,n=null==e?void 0:e[t];return!(!T(n)||b&&b in n)&&("[object Function]"==(r=T(n)?S.call(n):"")||"[object GeneratorFunction]"==r||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?w:i).test(function(e){if(null!=e){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,r){var n=-1,o=s,i=e.length,a=!0,u=[],c=u;if(r)a=!1,o=l;else if(i>=200){var f=t?null:F(e);if(f)return d(f);a=!1,o=p,c=new C}else c=t?[]:u;e:for(;++n=200&&(f=c,p=!1,t=new n(t));e:for(;++l=120&&v.length>=120)?new n(d&&v):void 0}v=e[0];var b=-1,g=h[0];e:for(;++b-1;)d!==e&&c.call(d,h,1),c.call(e,h,1);return e}},24387:function(e,t,r){var n=r(29246);e.exports=function(e){return n(e)?e:[]}},57157:function(e,t,r){var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},40419:function(e,t,r){var n=r(62705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},18805:function(e,t,r){var n=r(98363),o=r(99551);e.exports=function(e,t){return n(e,o(e),t)}},1911:function(e,t,r){var n=r(98363),o=r(51442);e.exports=function(e,t){return n(e,o(e),t)}},92052:function(e,t,r){var n=r(42980),o=r(13218);e.exports=function e(t,r,i,a,u,c){return o(t)&&o(r)&&(c.set(r,t),n(t,r,void 0,e,c),c.delete(r)),t}},99021:function(e,t,r){var n=r(85564),o=r(45357),i=r(30061);e.exports=function(e){return i(o(e,void 0,n),e+"")}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},29148:function(e,t,r){var n=r(74318),o=r(57157),i=r(93147),a=r(40419),u=r(77133);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},50361:function(e,t,r){var n=r(85990);e.exports=function(e){return n(e,5)}},91747:function(e,t,r){var n=r(5976),o=r(77813),i=r(16612),a=r(81704),u=Object.prototype,c=u.hasOwnProperty,s=n(function(e,t){e=Object(e);var r=-1,n=t.length,s=n>2?t[2]:void 0;for(s&&i(t[0],t[1],s)&&(n=1);++r1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)t[u++]=e;return t}},78520:function(e,t,r){"use strict";var n=r(73747),o=r(58100),i=r(37165),a=function(e){return function(t,r,a){var u,c=n(t),s=i(c),l=o(a,s);if(e&&r!=r){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},44650:function(e,t,r){"use strict";var n=r(72537),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},7151:function(e,t,r){"use strict";var n=r(43794),o=r(81890),i=r(51567);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},51567:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},20543:function(e,t,r){"use strict";var n=r(5685),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},43794:function(e,t,r){"use strict";var n=r(49353);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9945:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},23729:function(e,t,r){"use strict";var n=r(5685),o=r(39611),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},13642:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},15131:function(e,t,r){"use strict";var n,o,i=r(5685),a=r(13642),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},3305:function(e,t,r){"use strict";var n=r(87192);e.exports=n},74715:function(e,t,r){"use strict";var n=r(5685),o=r(10145),i=r(77531),a=r(9934),u=r(45396).f,c=r(35703),s=r(29068),l=r(29605),f=r(7151),p=r(31620),d=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,o,h,m,y,v,b,g,O,S=e.target,w=e.global,j=e.stat,E=e.proto,x=w?n:j?n[S]:(n[S]||{}).prototype,_=w?s:s[S]||f(s,S,{})[S],P=_.prototype;for(m in t)o=!(r=c(w?m:S+(j?".":"#")+m,e.forced))&&x&&p(x,m),v=_[m],o&&(b=e.dontCallGetSet?(O=u(x,m))&&O.value:x[m]),y=o&&b?b:t[m],(!o||typeof v!=typeof y)&&(g=e.bind&&o?l(y,n):e.wrap&&o?d(y):E&&a(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(_,m,g),E&&(p(s,h=S+"Prototype")||f(s,h,{}),f(s[h],m,y),e.real&&P&&(r||!P[m])&&f(P,m,y)))}},49353:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},10145:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},29605:function(e,t,r){"use strict";var n=r(77531),o=r(45935),i=r(6229),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},6229:function(e,t,r){"use strict";var n=r(49353);e.exports=!n(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},83417:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},77531:function(e,t,r){"use strict";var n=r(44650),o=r(72537);e.exports=function(e){if("Function"===n(e))return o(e)}},72537:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},87192:function(e,t,r){"use strict";var n=r(29068),o=r(5685),i=r(9934),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},45752:function(e,t,r){"use strict";var n=r(45935),o=r(44133);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},5685:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},31620:function(e,t,r){"use strict";var n=r(72537),o=r(42962),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},59548:function(e,t,r){"use strict";var n=r(43794),o=r(49353),i=r(23729);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},108:function(e,t,r){"use strict";var n=r(72537),o=r(49353),i=r(44650),a=Object,u=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?u(e,""):a(e)}:a},9934:function(e,t,r){"use strict";var n=r(9945),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},35703:function(e,t,r){"use strict";var n=r(49353),o=r(9934),i=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===l||r!==s&&(o(t)?n(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},44133:function(e){"use strict";e.exports=function(e){return null==e}},39611:function(e,t,r){"use strict";var n=r(9934),o=r(9945),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},14081:function(e){"use strict";e.exports=!0},40205:function(e,t,r){"use strict";var n=r(87192),o=r(9934),i=r(61727),a=r(80016),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,u(e))}},37165:function(e,t,r){"use strict";var n=r(71904);e.exports=function(e){return n(e.length)}},88836:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},81890:function(e,t,r){"use strict";var n=r(43794),o=r(59548),i=r(77956),a=r(18879),u=r(91525),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=n?i?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return s(e,t,r)}:s:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},45396:function(e,t,r){"use strict";var n=r(43794),o=r(83417),i=r(99106),a=r(51567),u=r(73747),c=r(91525),s=r(31620),l=r(59548),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=c(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},61727:function(e,t,r){"use strict";var n=r(72537);e.exports=n({}.isPrototypeOf)},99106:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},58733:function(e,t,r){"use strict";var n=r(83417),o=r(9934),i=r(39611),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!i(u=n(r,e))||o(r=e.valueOf)&&!i(u=n(r,e))||"string"!==t&&o(r=e.toString)&&!i(u=n(r,e)))return u;throw new a("Can't convert object to primitive value")}},29068:function(e){"use strict";e.exports={}},89823:function(e,t,r){"use strict";var n=r(44133),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},35509:function(e,t,r){"use strict";var n=r(5685),o=r(20543),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},73921:function(e,t,r){"use strict";var n=r(14081),o=r(35509);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.2",mode:n?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},34086:function(e,t,r){"use strict";var n=r(15131),o=r(49353),i=r(5685).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&n&&n<41})},58100:function(e,t,r){"use strict";var n=r(96169),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},73747:function(e,t,r){"use strict";var n=r(108),o=r(89823);e.exports=function(e){return n(o(e))}},96169:function(e,t,r){"use strict";var n=r(88836);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},71904:function(e,t,r){"use strict";var n=r(96169),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},42962:function(e,t,r){"use strict";var n=r(89823),o=Object;e.exports=function(e){return o(n(e))}},50681:function(e,t,r){"use strict";var n=r(83417),o=r(39611),i=r(40205),a=r(45752),u=r(58733),c=r(52442),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),!o(r=n(c,e,t))||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},91525:function(e,t,r){"use strict";var n=r(50681),o=r(40205);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1028:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},23440:function(e,t,r){"use strict";var n=r(72537),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},80016:function(e,t,r){"use strict";var n=r(34086);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},77956:function(e,t,r){"use strict";var n=r(43794),o=r(49353);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},52442:function(e,t,r){"use strict";var n=r(5685),o=r(73921),i=r(31620),a=r(23440),u=r(34086),c=r(80016),s=n.Symbol,l=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=u&&i(s,e)?s[e]:f("Symbol."+e)),l[e]}},28668:function(e,t,r){"use strict";var n=r(74715),o=r(57015),i=r(66888);n({target:"Array",proto:!0},{fill:o}),i("fill")},37464:function(e,t,r){"use strict";var n=r(74715),o=r(78520).includes,i=r(49353),a=r(66888);n({target:"Array",proto:!0,forced:i(function(){return![,].includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54876:function(e,t,r){"use strict";var n=r(49638);e.exports=n},45810:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a)&&this.A(e),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},t.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},t.prototype.m=function(e){this.L(e.touches[0].clientX)},t.prototype.M=function(e){e.preventDefault(),this.U(e)},t.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(e){this.H=e},t.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({j:!1})},t.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,i=e.className,a=e.offColor,u=e.onColor,s=e.offHandleColor,l=e.onHandleColor,f=e.checkedIcon,p=e.uncheckedIcon,d=e.checkedHandleIcon,h=e.uncheckedHandleIcon,m=e.boxShadow,y=e.activeBoxShadow,v=e.height,b=e.width,g=e.borderRadius,O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),S=this.state,w=S.h,j=S.N,E=S.j,x={height:v,width:b,margin:Math.max(0,(this.t-v)/2),position:"relative",background:c(w,this.i,this.o,a,u),borderRadius:"number"==typeof g?g:v/2,cursor:r?"default":"pointer",WebkitTransition:j?null:"background 0.25s",MozTransition:j?null:"background 0.25s",transition:j?null:"background 0.25s"},_={height:v,width:Math.min(1.5*v,b-(this.t+v)/2+1),position:"relative",opacity:(w-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},P={height:v,width:Math.min(1.5*v,b-(this.t+v)/2+1),position:"absolute",opacity:1-(w-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},k={height:this.t,width:this.t,background:c(w,this.i,this.o,s,l),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof g?g-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:E?y:m,border:0,WebkitTransition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},A={height:this.t,width:this.t,opacity:Math.max(2*(1-(w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},C={height:this.t,width:this.t,opacity:Math.max(2*((w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"};return n.createElement("div",{className:i,style:{position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"}},n.createElement("div",{className:"react-switch-bg",style:x,onClick:r?null:this.T,onMouseDown:function(e){return e.preventDefault()}},f&&n.createElement("div",{style:_},f),p&&n.createElement("div",{style:P},p)),n.createElement("div",{className:"react-switch-handle",style:k,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.p,onTouchStart:r?null:this.k,onTouchMove:r?null:this.m,onTouchEnd:r?null:this.M,onTouchCancel:r?null:this.O},h&&n.createElement("div",{style:A},h),d&&n.createElement("div",{style:C},d)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},O,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(n.Component);s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:i,checkedIcon:a,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{56483:function(e,t,r){"use strict";r.d(t,{ZP:function(){return rp}});var n=r(67294),o=r(78718),i=r.n(o),a=r(27361),u=r.n(a),c=r(41609),s=r.n(c),l=r(59864),f=r(19830),p=r.n(f),d=r(41828),h=r.n(d),m=r(93386),y=r.n(m),v=r(89038);function b(){return(b=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["type","icon","className"]);return n.createElement("button",b({type:"button",className:"btn btn-".concat(void 0===t?"default":t," ").concat(o)},i),n.createElement("i",{className:"glyphicon glyphicon-".concat(r)}))}function O(e){var t=e.className,r=e.onClick,o=e.disabled;return n.createElement("div",{className:"row"},n.createElement("p",{className:"col-xs-3 col-xs-offset-9 text-right ".concat(t)},n.createElement(g,{type:"info",icon:"plus",className:"btn-add col-xs-12","aria-label":"Add",tabIndex:"0",onClick:r,disabled:o})))}var w=r(34219),S=r.n(w),j=r(45697),E=r.n(j),x=E().shape({ArrayFieldTemplate:E().elementType,FieldTemplate:E().elementType,ObjectFieldTemplate:E().elementType,definitions:E().object.isRequired,rootSchema:E().object,fields:E().objectOf(E().elementType).isRequired,formContext:E().object.isRequired,widgets:E().objectOf(E().oneOfType([E().func,E().object])).isRequired});E().bool,E().bool,E().object,E().any,E().object,E().func,E().func.isRequired,E().func,E().arrayOf(E().string),E().bool,x.isRequired,E().bool,E().object.isRequired,E().shape({"ui:options":E().shape({addable:E().bool,orderable:E().bool,removable:E().bool})});let _=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e){for(var t=1;te&&(n[u-1]=a[u])}var c=i.filter(function(t,r){return r!==e});r.setState({keyedFormData:c,updatedKeyedFormData:!0},function(){return o(U(c),n)})}}),T(N(r),"onReorderClick",function(e,t){return function(n){n&&(n.preventDefault(),n.target.blur());var o,i,a=r.props.onChange;if(r.props.errorSchema){i={};var u=r.props.errorSchema;for(var c in u)c==e?i[t]=u[e]:c==t?i[e]=u[t]:i[c]=u[c]}var s=r.state.keyedFormData,l=((o=s.slice()).splice(e,1),o.splice(t,0,s[e]),o);r.setState({keyedFormData:l},function(){return a(U(l),i)})}}),T(N(r),"onChangeForIndex",function(e){return function(t,n){var o=r.props,i=o.formData;(0,o.onChange)(i.map(function(r,n){return e===n?void 0===t?null:t:r}),n&&r.props.errorSchema&&A({},r.props.errorSchema,T({},e,n)))}}),T(N(r),"onSelectChange",function(e){r.props.onChange(e)});var t,r,n=q(e.formData);return r.state={keyedFormData:n,updatedKeyedFormData:!1},r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(o,e),t=[{key:"isItemRequired",value:function(e){return Array.isArray(e.type)?!S()(e.type,"null"):"null"!==e.type}},{key:"canAddItem",value:function(e){var t=this.props,r=t.schema,n=t$(t.uiSchema).addable;return!1!==n&&(n=void 0===r.maxItems||e.length0,canMoveDown:n=k.length,p=f?t1(r.additionalItems,E,c):k[n],d=t6(p,l.$id+s+n,E,c,u,s),h=f?o.additionalItems||{}:Array.isArray(o.items)?o.items[n]:o.items||{},y=a?a[n]:void 0;return e.renderArrayFieldItem({key:i,index:n,canRemove:f,canMoveUp:n>=k.length+1,canMoveDown:f&&n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(S,["widget"]),x=tB(r,void 0===j?"checkbox":j,g);return t=Array.isArray(r.oneOf)?tX({oneOf:r.oneOf.map(function(e){return L({},e,{title:e.title||(!0===e.const?"Yes":"No")})})}):tX({enum:r.enum||[!0,!1],enumNames:r.enumNames||(r.enum&&!1===r.enum[0]?["No","Yes"]:["Yes","No"])}),n.createElement(x,{options:L({},E,{enumOptions:t}),schema:r,uiSchema:i,id:a&&a.$id,onChange:h,onFocus:m,onBlur:y,label:void 0===b?o:b,value:u,required:l,disabled:f,readonly:p,registry:s,formContext:O,autofocus:d,rawErrors:v,DescriptionField:w.DescriptionField})}function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(S,["widget"]),x=tB({type:"number"},void 0===j?"select":j,O),_=m[w]||null;_&&(e=_.type?_:Object.assign({},_,{type:r}));var P=m.map(function(e,t){return{label:e.title||"Option ".concat(t+1),value:t}});return n.createElement("div",{className:"panel panel-default panel-body"},n.createElement("div",{className:"form-group"},n.createElement(x,z({id:"".concat(f.$id).concat(b.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:p,onFocus:h,value:w,options:{enumOptions:P}},E))),null!==_&&n.createElement(g,{schema:e,uiSchema:v,errorSchema:u,idSchema:f,idPrefix:s,idSeparator:l,formData:c,onChange:d,onBlur:p,onFocus:h,registry:y,disabled:o,readonly:i,hideError:a}))}}],J(o.prototype,t),r&&J(o,r),o}(n.Component);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(){return(ee=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["formData"]),i=this.state.lastValue,a=r;if("string"==typeof i&&"number"==typeof a){var u=RegExp("".concat(a).replace(".","\\.")+"\\.?0*$");i.match(u)&&(a=i)}return n.createElement(e,ee({},o,{formData:a,onChange:this.handleChange}))}}],et(o.prototype,t),r&&et(o,r),o}(n.Component);function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function es(){return(es=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return function(n,o){void 0===n&&t&&(n="");var i=el({},r.props.formData,em({},e,n));r.props.onChange(i,o&&r.props.errorSchema&&el({},r.props.errorSchema,em({},e,o)))}}),em(ed(r),"onDropPropertyClick",function(e){return function(t){t.preventDefault();var n=r.props,o=n.onChange,i=el({},n.formData);delete i[e],o(i)}}),em(ed(r),"getAvailableKey",function(e,t){for(var r=0,n=e;t.hasOwnProperty(n);)n="".concat(e,"-").concat(++r);return n}),em(ed(r),"onKeyChange",function(e){return function(t,n){if(e!==t){t=r.getAvailableKey(t,r.props.formData);var o=el({},r.props.formData),i=em({},e,t),a=Object.keys(o).map(function(e){return em({},i[e]||e,o[e])}),u=Object.assign.apply(Object,[{}].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1?"properties '".concat(a.join("', '"),"'"):"property '".concat(a[0],"'")));return o}if(u!==o.lastIndexOf("*"))throw Error("uiSchema order list contains more than one wildcard item");var c=tk(o);return c.splice.apply(c,[u,1].concat(tk(a))),c}(k,o["ui:order"])}catch(e){return n.createElement("div",null,n.createElement("p",{className:"config-error",style:{color:"red"}},"Invalid ",c||"root"," object field configuration:",n.createElement("em",null,e.message),"."),n.createElement("pre",null,JSON.stringify(x)))}var A=o["ui:ObjectFieldTemplate"]||b.ObjectFieldTemplate||ey,C={title:o["ui:title"]||_,description:P,TitleField:j,DescriptionField:E,properties:e.map(function(e){var r=x.properties[e].hasOwnProperty(tI),c=r?o.additionalProperties:o[e],v=c&&"hidden"===c["ui:widget"];return{content:n.createElement(S,{key:e,name:e,required:t.isRequired(e),schema:x.properties[e],uiSchema:c,errorSchema:a[e],idSchema:u[e],idPrefix:d,idSeparator:h,formData:(i||{})[e],wasPropertyKeyModified:t.state.wasPropertyKeyModified,onKeyChange:t.onKeyChange(e),onChange:t.onPropertyChange(e,r),onBlur:m,onFocus:y,registry:b,disabled:l,readonly:f,hideError:p,onDropPropertyClick:t.onDropPropertyClick}),name:e,readonly:f,disabled:l,required:s,hidden:v}}),readonly:f,disabled:l,required:s,idSchema:u,uiSchema:o,schema:x,formData:i,formContext:w,registry:b};return n.createElement(A,es({},C,{onAddClick:this.handleAddClick}))}}],ef(o.prototype,t),r&&ef(o,r),o}(n.Component);function eb(e){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eg(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(c,["__errors"]),T=n.createElement(x,eS({},e,{idSchema:j,schema:E,uiSchema:function(e){for(var t=1;t0&&$.push("field-error has-error has-danger"),$.push(a.classNames),$=$.join(" ").trim();var q={description:n.createElement(_,{id:M+"__description",description:W,formContext:w}),rawDescription:W,help:n.createElement(e_,{id:M+"__help",help:B}),rawHelp:"string"==typeof B?B:void 0,errors:C?void 0:n.createElement(eP,{errors:N}),rawErrors:C?void 0:N,id:M,label:i,hidden:R,onChange:p,onKeyChange:d,onDropPropertyClick:h,required:m,disabled:P,readonly:k,hideError:C,displayLabel:F,classNames:$,formContext:w,formData:u,fields:O,schema:E,uiSchema:a,registry:v},U=v.fields.AnyOfField,V=v.fields.OneOfField;return n.createElement(S,q,n.createElement(n.Fragment,null,T,E.anyOf&&!tL(E)&&n.createElement(U,{disabled:P,readonly:k,hideError:C,errorSchema:c,formData:u,idPrefix:s,idSchema:j,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.anyOf.map(function(e){return t1(e,g,u)}),baseType:E.type,registry:v,schema:E,uiSchema:a}),E.oneOf&&!tL(E)&&n.createElement(V,{disabled:P,readonly:k,hideError:C,errorSchema:c,formData:u,idPrefix:s,idSchema:j,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:E.oneOf.map(function(e){return t1(e,g,u)}),baseType:E.type,registry:v,schema:E,uiSchema:a})))}(this.props)}}],eg(o.prototype,t),r&&eg(o,r),o}(n.Component);function eD(e){var t=e.schema,r=e.name,o=e.uiSchema,i=e.idSchema,a=e.formData,u=e.required,c=e.disabled,s=e.readonly,l=e.autofocus,f=e.onChange,p=e.onBlur,d=e.onFocus,h=e.registry,m=void 0===h?tM():h,y=e.rawErrors,v=t.title,b=t.format,g=m.widgets,O=m.formContext,w=tL(t)&&tX(t),S=w?"select":"text";b&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return tB(e,t,r),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}(t,b,g)&&(S=b);var j=t$(o),E=j.widget,x=void 0===E?S:E,_=j.placeholder,P=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(j,["widget","placeholder"]),k=tB(t,x,g);return n.createElement(k,{options:function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","uiSchema","formContext","registry","rawErrors"]));return s.inputType?f.type=s.inputType:f.type||("number"===l.type?(f.type="number",f.step="any"):"integer"===l.type?(f.type="number",f.step="1"):f.type="text"),s.autocomplete&&(f.autoComplete=s.autocomplete),l.multipleOf&&(f.step=l.multipleOf),void 0!==l.minimum&&(f.min=l.minimum),void 0!==l.maximum&&(f.max=l.maximum),[n.createElement("input",eJ({key:f.id,className:"form-control",readOnly:o,disabled:i,autoFocus:a,value:null==r?"":r},f,{list:l.examples?"examples_".concat(f.id):null,onChange:function(t){var r=t.target.value;return e.onChange(""===r?s.emptyValue:r)},onBlur:u&&function(e){return u(f.id,e.target.value)},onFocus:c&&function(e){return c(f.id,e.target.value)}})),l.examples?n.createElement("datalist",{key:"datalist_".concat(f.id),id:"examples_".concat(f.id)},((function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);ta.indexOf(t)}))):c((o=e.value,i.filter(function(e){return e!==o})))}}),n.createElement("span",null,e.label));return f?n.createElement("label",{key:o,className:"checkbox-inline ".concat(h)},m):n.createElement("div",{key:o,className:"checkbox ".concat(h)},n.createElement("label",null,m))}))}function eZ(){return(eZ=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"root",r=[];return"__errors"in e&&(r=r.concat(e.__errors.map(function(e){return{stack:"".concat(t,": ").concat(e)}}))),Object.keys(e).reduce(function(t,r){return"__errors"!==r&&(t=t.concat(tE(e[r],r))),t},r)}function tx(e,t,r,n){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};e=tR(t,e,t,!0);var u=!t3(tw,i),c=!t3(tO,a);(u||c)&&(tg=tj()),i&&u&&Array.isArray(i)&&(tg.addMetaSchema(i),tw=i),a&&c&&tq(a)&&(Object.keys(a).forEach(function(e){tg.addFormat(e,a[e])}),tO=a);var s=null;try{tg.validate(t,e)}catch(e){s=e}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null===e?[]:e.map(function(e){var t=e.dataPath,r=e.keyword,n=e.message,o=e.params,i=e.schemaPath,a="".concat(t);return{name:r,property:a,message:n,params:o,stack:"".concat(a," ").concat(n).trim(),schemaPath:i}})}(tg.errors);tg.errors=null;var f=s&&s.message&&"string"==typeof s.message&&s.message.includes("no schema with key or ref ");f&&(l=[].concat(ty(l),[{stack:s.message}])),"function"==typeof n&&(l=n(l));var p=(o=l).length?o.reduce(function(e,t){var r=t.property,n=t.message,o=td()(r),i=e;o.length>0&&""===o[0]&&o.splice(0,1);var a=!0,u=!1,c=void 0;try{for(var s,l=o.slice(0)[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var f=s.value;f in i||(i[f]={}),i=i[f]}}catch(e){u=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(u)throw c}}return Array.isArray(i.__errors)?i.__errors=i.__errors.concat(n):n&&(i.__errors=[n]),e},{}):{};if(f&&(p=tv({},p,{$schema:{__errors:[s.message]}})),"function"!=typeof r)return{errors:l,errorSchema:p};var d=tU(p,function e(t){return Object.keys(t).reduce(function(r,n){return"addError"===n?r:"__errors"===n?tv({},r,tb({},n,t[n])):tv({},r,tb({},n,e(t[n])))},{})}(r(e,function e(t){var r={__errors:[],addError:function(e){this.__errors.push(e)}};return tq(t)?Object.keys(t).reduce(function(r,n){return tv({},r,tb({},n,e(t[n])))},r):Array.isArray(t)?t.reduce(function(t,r,n){return tv({},t,tb({},n,e(r)))},r):r}(e))),!0);return{errors:tE(d),errorSchema:d}}function t_(e,t,r){try{return tg.addSchema(r,tS).validate(function e(t){var r=t;if(t.constructor===Object)for(var n in r=tv({},t)){var o=r[n];"$ref"===n&&"string"==typeof o&&o.startsWith("#")?r[n]=tS+o:r[n]=e(o)}else if(Array.isArray(t)){r=ty(t);for(var i=0;i=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var tI="__additional_property",tT={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function tM(){return{fields:eM,widgets:tf,definitions:{},rootSchema:{},formContext:{}}}function tW(e){var t=e.type;return!t&&e.const?tZ(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":t instanceof Array&&2===t.length&&t.includes("null")?t.find(function(e){return"null"!==e}):t}function tB(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=tW(e);if("function"==typeof t||l.isForwardRef(n.createElement(t))||l.isMemo(t))return function(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(r){var o=r.options,i=tN(r,["options"]);return n.createElement(e,tC({options:tD({},t,void 0===o?{}:o)},i))}}return e.MergedWidget}(t);if("string"!=typeof t)throw Error("Unsupported widget definition: ".concat(tA(t)));if(r.hasOwnProperty(t))return tB(e,r[t],r);if(!tT.hasOwnProperty(o))throw Error('No widget for type "'.concat(o,'"'));if(tT[o].hasOwnProperty(t)){var i=r[tT[o][t]];return tB(e,i,r)}throw Error('No widget "'.concat(t,'" for type "').concat(o,'"'))}function tR(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tq(e))throw Error("Invalid schema: "+e);var o=function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=tq(t)?t:{},u=tq(o)?o:{},c=r;if(tq(c)&&tq(a.default))c=tU(c,a.default);else if("default"in a)c=a.default;else{if("$ref"in a)return e(tG(a.$ref,n),c,n,u,i);if("dependencies"in a)return e(t2(a,n,u),c,n,u,i);tz(a)?c=a.items.map(function(t,o){return e(t,Array.isArray(r)?r[o]:void 0,n,u,i)}):"oneOf"in a?a=a.oneOf[rn(void 0,a.oneOf,n)]:"anyOf"in a&&(a=a.anyOf[rn(void 0,a.anyOf,n)])}switch(void 0===c&&(c=a.default),tW(a)){case"object":return Object.keys(a.properties||{}).reduce(function(t,r){var o=e(a.properties[r],(c||{})[r],n,(u||{})[r],i);return(i||void 0!==o)&&(t[r]=o),t},{});case"array":if(Array.isArray(c)&&(c=c.map(function(t,r){return e(a.items[r]||a.additionalItems||{},t,n)})),Array.isArray(o)&&(c=o.map(function(t,r){return e(a.items,(c||{})[r],n,t)})),a.minItems){if(tH(a,n))return c||[];var s=c?c.length:0;if(a.minItems>s){var l=c||[],f=Array.isArray(a.items)?a.additionalItems:a.items,p=h()(Array(a.minItems-s),e(f,f.defaults,n));return l.concat(p)}}}return c}(t1(e,r,t),e.default,r,t,n);return void 0===t?o:tq(t)||Array.isArray(t)?function e(t,r){if(Array.isArray(r))return Array.isArray(t)||(t=[]),r.map(function(r,n){return t[n]?e(t[n],r):r});if(!tq(r))return r;var n=Object.assign({},t);return Object.keys(r).reduce(function(n,o){return n[o]=e(t?t[o]:{},r[o]),n},n)}(o,t):0===t||!1===t||""===t?t:t||o}function t$(e){return Object.keys(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,r){var n=e[r];return"ui:widget"===r&&tq(n)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),tD({},t,n.options||{},{widget:n.component})):"ui:options"===r&&tq(n)?tD({},t,n):tD({},t,tF({},r.substring(3),n))},{})}function tq(e){return!("undefined"!=typeof File&&e instanceof File)&&"object"===tA(e)&&null!==e&&!Array.isArray(e)}function tU(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.assign({},e);return Object.keys(t).reduce(function(n,o){var i=e?e[o]:{},a=t[o];return e&&e.hasOwnProperty(o)&&tq(a)?n[o]=tU(i,a,r):r&&Array.isArray(i)&&Array.isArray(a)?n[o]=i.concat(a):n[o]=a,n},n)}function tV(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e)||/\.0$/.test(e))return e;var t=Number(e),r="number"==typeof t&&!Number.isNaN(t);return/\.\d*0$/.test(e)?e:r?t:e}}function tL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t1(e,t),n=r.oneOf||r.anyOf;return!!Array.isArray(r.enum)||!!Array.isArray(n)&&n.every(function(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")})}function tH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e.uniqueItems&&!!e.items&&tL(e.items,t)}function tK(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var n=t1(e.items,r);return"string"===n.type&&"data-url"===n.format}return!1}function tz(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(function(e){return tq(e)})}function tJ(e){return"widget"in t$(e)&&"hidden"!==t$(e).widget}function tY(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),tq(e.additionalItems)}function tX(e){return e.enum?e.enum.map(function(t,r){return{label:e.enumNames&&e.enumNames[r]||String(t),value:t}}):(e.oneOf||e.anyOf).map(function(e){var t=function(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw Error("schema cannot be inferred as a constant")}(e),r=e.title||String(t);return{schema:e,label:r,value:t}})}function tG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(e.startsWith("#"))e=decodeURIComponent(e.substring(1));else throw Error("Could not find a definition for ".concat(r,"."));var n=v.get(t,e);if(void 0===n)throw Error("Could not find a definition for ".concat(r,"."));return n.hasOwnProperty("$ref")?tG(n.$ref,t):n}var tZ=function(e){if(Array.isArray(e))return"array";if("string"==typeof e);else if(null==e)return"null";else if("boolean"==typeof e)return"boolean";else if(!isNaN(e))return"number";else if("object"===tA(e))return"object";return"string"},tQ=function(e,t,r){var n=e.if,o=e.then,i=e.else,a=tN(e,["if","then","else"]),u=t_(n,r,t)?o:i;return u?t1(t5(a,t1(u,t,r)),t,r):t1(a,t,r)};function t0(e,t,r){var n=tG(e.$ref,t);return e.$ref,t1(tD({},n,tN(e,["$ref"])),t,r)}function t1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!tq(e))return{};var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.hasOwnProperty("$ref")?t0(e,t,r):e.hasOwnProperty("dependencies")?t1(t2(e,t,r),t,r):e.hasOwnProperty("allOf")?tD({},e,{allOf:e.allOf.map(function(e){return t1(e,t,r)})}):e}(e,t,r);if(e.hasOwnProperty("if"))return tQ(e,t,r);if(n.properties){var o={};Object.entries(n.properties).forEach(function(e){var i=e[0],a=e[1],u=r&&r[i],c=t1(a,t,tq(u)?u:{});o[i]=c,a!==c&&n.properties!==o&&(n=tD({},n,{properties:o}))})}if("allOf"in e)try{n=p()(tD({},n,{allOf:n.allOf}))}catch(e){console.warn("could not merge subschemas in allOf:\n"+e);var i=n;return i.allOf,tN(i,["allOf"])}return n.hasOwnProperty("additionalProperties")&&!1!==n.additionalProperties?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=tD({},e,{properties:tD({},e.properties)}),Object.keys(r=tq(r)?r:{}).forEach(function(n){var o;e.properties.hasOwnProperty(n)||(o=e.additionalProperties.hasOwnProperty("$ref")?t1({$ref:e.additionalProperties.$ref},t,r):e.additionalProperties.hasOwnProperty("type")?tD({},e.additionalProperties):{type:tZ(r[n])},e.properties[n]=o,e.properties[n][tI]=!0)}),e}(n,t,r):n}function t2(e,t,r){var n=e.dependencies,o=tN(e,["dependencies"]);return"oneOf"in o?o=o.oneOf[rn(r,o.oneOf,t)]:"anyOf"in o&&(o=o.anyOf[rn(r,o.anyOf,t)]),function e(t,r,n,o){for(var i in t)if(void 0!==o[i]&&(!r.properties||i in r.properties)){var a=t[i],u=tN(t,[i].map(tP));return Array.isArray(a)?r=function(e,t){if(!t)return e;var r=Array.isArray(e.required)?Array.from(new Set([].concat(tk(e.required),tk(t)))):t;return tD({},e,{required:r})}(r,a):tq(a)&&(r=function(e,t,r,n,o){var i=t1(o,t,r),a=i.oneOf;if(e=t5(e,tN(i,["oneOf"])),void 0===a)return e;if(!Array.isArray(a))throw Error("invalid: it is some ".concat(tA(a)," instead of an array"));var u=a.map(function(e){return e.hasOwnProperty("$ref")?t0(e,t,r):e});return function(e,t,r,n,o){var i=o.filter(function(e){if(!e.properties)return!1;var t=e.properties[n];if(t)return 0===tx(r,{type:"object",properties:tF({},n,t)}).errors.length});if(1!==i.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var a=i[0],u=a.properties;return t5(e,t1(tD({},a,{properties:(u[n],tN(u,[n].map(tP)))}),t,r))}(e,t,r,n,u)}(r,n,o,i,a)),e(u,r,n,o)}return r}(void 0===n?{}:n,o,t,r)}function t5(e,t){var r=Object.assign({},e);return Object.keys(t).reduce(function(r,n){var o=e?e[n]:{},i=t[n];return e&&e.hasOwnProperty(n)&&tq(i)?r[n]=t5(o,i):e&&t&&("object"===tW(e)||"object"===tW(t))&&"required"===n&&Array.isArray(o)&&Array.isArray(i)?r[n]=y()(o,i):r[n]=i,r},r)}function t4(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function t3(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t||"function"==typeof e||"function"==typeof t)return!0;if("object"!==tA(e)||"object"!==tA(t)||null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(t4(e)||t4(t)){if(!(t4(e)&&t4(t)))return!1;var o=Array.prototype.slice;return t3(o.call(e),o.call(t),r,n)}else{if(e.constructor!==t.constructor)return!1;var i,a=Object.keys(e),u=Object.keys(t);if(0===a.length&&0===u.length)return!0;if(a.length!==u.length)return!1;for(var c=r.length;c--;)if(r[c]===e)return n[c]===t;r.push(e),n.push(t),a.sort(),u.sort();for(var s=a.length-1;s>=0;s--)if(a[s]!==u[s])return!1;for(var l=a.length-1;l>=0;l--)if(!t3(e[i=a[l]],t[i],r,n))return!1;return r.pop(),n.pop(),!0}}function t9(e,t,r){var n=e.props,o=e.state;return!t3(n,t)||!t3(o,r)}function t6(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"_",a={$id:t||o};if("$ref"in e||"dependencies"in e||"allOf"in e)return t6(t1(e,r,n),t,r,n,o,i);if("items"in e&&!e.items.$ref)return t6(e.items,t,r,n,o,i);if("object"!==e.type)return a;for(var u in e.properties||{}){var c=e.properties[u],s=a.$id+i+u;a[u]=t6(tq(c)?c:{},s,r,(n||{})[u],o,i)}return a}function t8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={$name:t.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e)return t8(t1(e,r,n),t,r,n);if(e.hasOwnProperty("additionalProperties")&&(o.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&Array.isArray(n))n.forEach(function(n,i){o[i]=t8(e.items,"".concat(t,".").concat(i),r,n)});else if(e.hasOwnProperty("properties"))for(var i in e.properties)o[i]=t8(e.properties[i],"".concat(t,".").concat(i),r,(n||{})[i]);return o}function t7(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var r=new Date(e);if(Number.isNaN(r.getTime()))throw Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function re(e){var t=e.year,r=e.month,n=e.day,o=e.hour,i=e.minute,a=e.second,u=!(arguments.length>1)||void 0===arguments[1]||arguments[1],c=Date.UTC(t,r-1,n,void 0===o?0:o,void 0===i?0:i,void 0===a?0:a),s=new Date(c).toJSON();return u?s:s.slice(0,10)}function rt(e,t){for(var r=String(e);r.length1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""];return Object.keys(r).forEach(function(i){if("object"===ri(r[i])){var a=o.map(function(e){return"".concat(e,".").concat(i)});r[i].__rjsf_additionalProperties&&""!==r[i].$name?n.push(r[i].$name):e(r[i],n,a)}else"$name"===i&&""!==r[i]&&o.forEach(function(e){e=e.replace(/^\./,"");var r=u()(t,e);("object"!==ri(r)||s()(r))&&n.push(e)})}),n}(e)}),rl(rc(t),"onChange",function(e,r){(tq(e)||Array.isArray(e))&&(e=t.getStateFromProps(t.props,e).formData);var n=!t.props.noValidate&&t.props.liveValidate,o={formData:e},i=e;if(!0===t.props.omitExtraData&&!0===t.props.liveOmit){var a=t8(t1(t.state.schema,t.state.schema,e),"",t.state.schema,e),u=t.getFieldNames(a,e);o={formData:i=t.getUsedFormData(e,u)}}if(n){var c=t.validate(i),s=c.errors,l=c.errorSchema,f=s,p=l;t.props.extraErrors&&(s=tE(l=tU(l,t.props.extraErrors,!0))),o={formData:i,errors:s,errorSchema:l,schemaValidationErrors:f,schemaValidationErrorSchema:p}}else if(!t.props.noValidate&&r){var d=t.props.extraErrors?tU(r,t.props.extraErrors,!0):r;o={formData:i,errorSchema:d,errors:tE(d)}}t.setState(o,function(){return t.props.onChange&&t.props.onChange(t.state)})}),rl(rc(t),"onBlur",function(){if(t.props.onBlur){var e;(e=t.props).onBlur.apply(e,arguments)}}),rl(rc(t),"onFocus",function(){if(t.props.onFocus){var e;(e=t.props).onFocus.apply(e,arguments)}}),rl(rc(t),"onSubmit",function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var r,n,o=t.state.formData;if(!0===t.props.omitExtraData){var i=t8(t1(t.state.schema,t.state.schema,o),"",t.state.schema,o),a=t.getFieldNames(i,o);o=t.getUsedFormData(o,a)}if(!t.props.noValidate){var u=t.validate(o),c=u.errors,s=u.errorSchema,l=c,f=s;if(Object.keys(c).length>0){t.props.extraErrors&&(c=tE(s=tU(s,t.props.extraErrors,!0))),t.setState({errors:c,errorSchema:s,schemaValidationErrors:l,schemaValidationErrorSchema:f},function(){t.props.onError?t.props.onError(c):console.error("Form validation failed",c)});return}}t.props.extraErrors?n=tE(r=t.props.extraErrors):(r={},n=[]),t.setState({formData:o,errors:n,errorSchema:r,schemaValidationErrors:[],schemaValidationErrorSchema:{}},function(){t.props.onSubmit&&t.props.onSubmit(ro({},t.state,{formData:o,status:"submitted"}),e)})}}),t.state=t.getStateFromProps(e,e.formData),t.props.onChange&&!t3(t.state.formData,t.props.formData)&&t.props.onChange(t.state),t.formElement=null,t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rs(e,t)}(o,e),t=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.getStateFromProps(e,e.formData);t3(t.formData,e.formData)||t3(t.formData,this.state.formData)||!this.props.onChange||this.props.onChange(t),this.setState(t)}},{key:"getStateFromProps",value:function(e,t){var r,n,o,i,a=this.state||{},u="schema"in e?e.schema:this.props.schema,c="uiSchema"in e?e.uiSchema:this.props.uiSchema,s=void 0!==t,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,f=s&&!e.noValidate&&l,p=tR(u,t,u),d=t1(u,u,p),h=e.customFormats,m=e.additionalMetaSchemas;if(f){var y=this.validate(p,u,m,h);r=y.errors,n=y.errorSchema,o=r,i=n}else{var v=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};r=v.errors,n=v.errorSchema,o=a.schemaValidationErrors,i=a.schemaValidationErrorSchema}e.extraErrors&&(r=tE(n=tU(n,e.extraErrors,!0)));var b=t6(d,c["ui:rootFieldId"],u,p,e.idPrefix,e.idSeparator),g={schema:u,uiSchema:c,idSchema:b,formData:p,edit:s,errors:r,errorSchema:n,additionalMetaSchemas:m};return o&&(g.schemaValidationErrors=o,g.schemaValidationErrorSchema=i),g}},{key:"shouldComponentUpdate",value:function(e,t){return t9(this,e,t)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.additionalMetaSchemas,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.customFormats,o=this.props,i=o.validate,a=o.transformErrors,u=t1(t,this.getRegistry().rootSchema,e);return tx(e,u,i,a,r,n)}},{key:"renderErrors",value:function(){var e=this.state,t=e.errors,r=e.errorSchema,o=e.schema,i=e.uiSchema,a=this.props,u=a.ErrorList,c=a.showErrorList,s=a.formContext;return t.length&&!1!=c?n.createElement(u,{errors:t,errorSchema:r,schema:o,uiSchema:i,formContext:s}):null}},{key:"getRegistry",value:function(){var e=tM(),t=e.fields,r=e.widgets;return{fields:ro({},t,this.props.fields),widgets:ro({},r,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},rootSchema:this.props.schema,formContext:this.props.formContext||{}}}},{key:"submit",value:function(){this.formElement&&this.formElement.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,o=t.id,i=t.idPrefix,a=t.idSeparator,u=t.className,c=t.tagName,s=t.name,l=t.method,f=t.target,p=t.action,d=t.autocomplete,h=t.autoComplete,m=t.enctype,y=t.acceptcharset,v=t.noHtml5Validate,b=t.disabled,g=t.readonly,O=t.formContext,w=t._internalFormWrapper,S=this.state,j=S.schema,E=S.uiSchema,x=S.formData,_=S.errorSchema,P=S.idSchema,k=this.getRegistry(),A=k.fields.SchemaField,C=k.widgets.SubmitButton;return d&&console.warn("Using autocomplete property of Form is deprecated, use autoComplete instead."),n.createElement(w||c||"form",{className:u||"rjsf",id:o,name:s,method:l,target:f,action:p,autoComplete:h||d,encType:m,acceptCharset:y,noValidate:v,onSubmit:this.onSubmit,as:w?c:void 0,ref:function(t){e.formElement=t}},this.renderErrors(),n.createElement(A,{schema:j,uiSchema:E,errorSchema:_,idSchema:P,idPrefix:i,idSeparator:a,formContext:O,formData:x,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:b,readonly:g}),r||n.createElement(C,{uiSchema:E}))}}],ra(o.prototype,t),r&&ra(o,r),o}(n.Component);rl(rf,"defaultProps",{uiSchema:{},noValidate:!1,liveValidate:!1,disabled:!1,readonly:!1,noHtml5Validate:!1,ErrorList:function(e){var t=e.errors;return n.createElement("div",{className:"panel panel-danger errors"},n.createElement("div",{className:"panel-heading"},n.createElement("h3",{className:"panel-title"},"Errors")),n.createElement("ul",{className:"list-group"},t.map(function(e,t){return n.createElement("li",{key:t,className:"list-group-item text-danger"},e.stack)})))},omitExtraData:!1}),E().object,E().object;var rp=rf},21252:function(e,t,r){"use strict";var n=r(14653),o=r(59158),i=r(79882);function a(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function u(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;(1&e)==0&&(1&t)==0;)e>>>=1,t>>>=1,n++;for(;(1&e)==0;)e>>>=1;for(;t;){for(;(1&t)==0;)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<1){if(r=e[0],!i(t=e[1]))throw TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}else throw TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if((c=r.length)<2)return null;if(t){for(f=0,s=Array(c);f1){if(r=e[0],!a(t=e[1]))throw TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}else throw TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if((u=r.length)<2)return null;if(t){for(l=0,c=Array(u);lArray.isArray(e)?e:[e],p=e=>void 0===e,d=e=>s(e)||Array.isArray(e)?Object.keys(e):[],h=(e,t)=>e.hasOwnProperty(t),m=e=>o(i(e)),y=e=>p(e)||Array.isArray(e)&&0===e.length,v=(e,t,r,n)=>t&&h(t,r)&&e&&h(e,r)&&n(e[r],t[r]),b=(e,t)=>p(e)&&0===t||p(t)&&0===e||n(e,t),g=(e,t)=>p(e)&&!1===t||p(t)&&!1===e||n(e,t),O=e=>p(e)||n(e,{})||!0===e,w=e=>p(e)||n(e,{}),S=e=>p(e)||s(e)||!0===e||!1===e;function j(e,t){return!!(y(e)&&y(t))||n(m(e),m(t))}function E(e,t,r,o){var a=i(d(e).concat(d(t)));return!!(w(e)&&w(t))||!(w(e)&&d(t).length||w(t)&&d(e).length)&&a.every(function(r){var i=e[r],a=t[r];return Array.isArray(i)&&Array.isArray(a)?n(m(e),m(t)):!(Array.isArray(i)&&!Array.isArray(a)||Array.isArray(a)&&!Array.isArray(i))&&v(e,t,r,o)})}function x(e,t,r,n){var o=a(e,n),i=a(t,n);return c(o,i,n).length===Math.max(o.length,i.length)}var _={title:n,uniqueItems:g,minLength:b,minItems:b,minProperties:b,required:j,enum:j,type:function(e,t){return e=f(e),t=f(t),n(m(e),m(t))},items:function(e,t,r,o){return s(e)&&s(t)?o(e,t):Array.isArray(e)&&Array.isArray(t)?E(e,t,r,o):n(e,t)},anyOf:x,allOf:x,oneOf:x,properties:E,patternProperties:E,dependencies:E},P=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],k=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,r,o){if(o=u(o,{ignore:[]}),O(t)&&O(r))return!0;if(!S(t)||!S(r))throw Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(l(t)&&l(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t||p(t)&&!p(r)||!p(t)&&p(r))return!1;var a=i(Object.keys(t).concat(Object.keys(r)));if(o.ignore.length&&(a=a.filter(e=>-1===o.ignore.indexOf(e))),!a.length)return!0;function c(t,r){return e(t,r,o)}return a.every(function(i){var a=t[i],u=r[i];if(-1!==k.indexOf(i))return e(a,u,o);var s=_[i];if(s||(s=n),n(a,u))return!0;if(-1===P.indexOf(i)&&(!h(t,i)&&h(r,i)||h(t,i)&&!h(r,i)))return a===u;var f=s(a,u,i,c);if(!l(f))throw Error("Comparer must return true or false");return f})}},19830:function(e,t,r){var n=r(50361),o=r(36602),i=r(61735),a=r(66913),u=r(85564),c=r(42348),s=r(25325),l=r(33856),f=r(18446),p=r(68630),d=r(45604),h=r(89734),m=r(84486),y=r(44908),v=r(87185),b=r(13997),g=(e,...t)=>b.apply(null,[e].concat(u(t))),O=e=>S(H,e),w=e=>S(K,e),S=(e,t)=>-1!==e.indexOf(t),j=e=>!R(e).length&&!1!==e&&!0!==e,E=e=>p(e)||!0===e||!1===e,x=e=>!1===e,_=e=>!0===e,P=(e,t,r)=>r(e),k=e=>h(y(c(e))),A=e=>void 0!==e,C=e=>y(c(e.map(R))),D=e=>e[0],F=e=>k(e),N=e=>Math.max.apply(Math,e),I=e=>Math.min.apply(Math,e),T=e=>e.some(_),M=e=>v(u(e),f);function W(e,t){return e.map(function(e){return e&&e[t]})}function B(e,t){return e.map(function(e){if(e){if(!Array.isArray(e.items))return e.items;var r=e.items[t];if(E(r))return r;if(e.hasOwnProperty("additionalItems"))return e.additionalItems}})}function R(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function $(e,t){var r;try{r=e.map(function(e){return JSON.stringify(e,null,2)}).join("\n")}catch(t){r=e.join(", ")}throw Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function q(e,t,r){return function(n,o){if(void 0===o)throw Error("You need to call merger with a key for the property name or index if array.");return o=String(o),e(n,null,r.concat(t,o))}}function U(e,t,r,n,i,a){if(e.length){var u=i.resolvers[t];if(!u)throw Error("No resolver found for "+t);var c=v(r.map(function(t){return e.reduce(function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e},{})}).filter(A),o),s=("properties"===t?H:K).reduce(function(e,t){return S(z,t)?e[t]=q(n,t,a):e[t]=function(e){return n(e,null,a.concat(t))},e},{});"items"===t&&(s.itemsArray=q(n,"items",a),s.items=function(e){return n(e,null,a.concat("items"))});var l=u(c,a.concat(t),s,i);return p(l)||$(c,a.concat(t)),function(e){for(var t in e)e.hasOwnProperty(t)&&j(e[t])&&delete e[t];return e}(l)}}function V(e,t,r){var n=C(r||e),i=r?B:W;return n.reduce(function(r,n){var a=v(i(e,n).filter(A),o);return r[n]=t(a,n),r},r?[]:{})}function L(e){return{required:e}}var H=["properties","patternProperties","additionalProperties"],K=["items","additionalItems"],z=["properties","patternProperties","definitions","dependencies"],J=["anyOf","oneOf"],Y=["additionalProperties","additionalItems","contains","propertyNames","not","items"],X={type(e){if(e.some(Array.isArray)){var t=e.map(function(e){return Array.isArray(e)?e:[e]}),r=s.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return y(r)}},properties(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(t){var n=e.filter(e=>e!==t),o=R(t.properties),i=R(t.patternProperties).map(e=>RegExp(e));n.forEach(function(e){var n=R(e.properties),a=n.filter(e=>i.some(t=>t.test(e)));g(n,o,a).forEach(function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)})})}),e.forEach(function(t){var r=e.filter(e=>e!==t),n=R(t.patternProperties);!1===t.additionalProperties&&r.forEach(function(e){g(R(e.patternProperties),n).forEach(t=>delete e.patternProperties[t])})}));var o,i={additionalProperties:r.additionalProperties(e.map(e=>e.additionalProperties)),patternProperties:V(e.map(e=>e.patternProperties),r.patternProperties),properties:V(e.map(e=>e.properties),r.properties)};return!1===i.additionalProperties&&m(o=i.properties,function(e,t){!1===e&&delete o[t]}),i},dependencies:(e,t,r)=>C(e).reduce(function(t,n){var i=v(W(e,n).filter(A),f),a=i.filter(Array.isArray);if(a.length){if(a.length===i.length)t[n]=k(i);else{var u=i.filter(E),c=a.map(L);t[n]=r(u.concat(c),n)}return t}return i=v(i,o),t[n]=r(i,n),t},{}),items(e,t,r){var n,o,i=e.map(e=>e.items),a=i.filter(A),u={};return(a.every(E)?u.items=r.items(i):u.items=V(e,r.itemsArray,i),a.every(Array.isArray))?o=e.map(e=>e.additionalItems):a.some(Array.isArray)&&(o=e.map(function(e){return e?Array.isArray(e.items)?e.additionalItems:e.items:void 0})),o&&(u.additionalItems=r.additionalItems(o)),!1===u.additionalItems&&Array.isArray(u.items)&&m(n=u.items,function(e,t){!1===e&&n.splice(t,1)}),u},oneOf(e,t,r){var i=v((function e(t,r){if(r=r||[],!t.length)return r;var n=t.slice(0).shift(),o=t.slice(1);return r.length?e(o,u(r.map(e=>n.map(t=>[t].concat(e))))):e(o,n.map(e=>e))})(n(e)).map(function(e,t){try{return r(e,t)}catch(e){return}}).filter(A),o);if(i.length)return i},not:e=>({anyOf:e}),pattern(e,t,r,n,o){var i=t.pop();o(e.map(function(e){return{[i]:e}}))},multipleOf(e){for(var t=e.slice(0),r=1;t.some(e=>!Number.isInteger(e));)t=t.map(e=>10*e),r*=10;return i(t)/r},enum(e){var t=l.apply(null,e.concat(f));if(t.length)return h(t)}};function G(e,t,r){return r=r||[],t=a(t,{ignoreAdditionalProperties:!1,resolvers:X}),function e(i,a,u){i=n(i.filter(A)),u=u||[];var c=p(a)?a:{};if(i.length){if(i.some(x))return!1;if(i.every(_))return!0;var s=C(i=i.filter(p));if(S(s,"allOf"))return G({allOf:i},t,r);var l=s.filter(O);d(s,l);var f=s.filter(w);return d(s,f),s.forEach(function(r){var n=v(W(i,r).filter(A),function(e,t){return o({[r]:e},{[r]:t})});if(1===n.length&&S(J,r))c[r]=n[0].map(function(t){return e([t],t)});else if(1!==n.length||S(z,r)||S(Y,r)){var a,s=t.resolvers[r]||t.resolvers.defaultResolver;if(!s)throw Error("No resolver found for key "+r+". You can provide a resolver for this keyword in the options, or provide a default resolver.");a=S(z,r)||S(J,r)?q(e,r,u):function(t){return e(t,null,u.concat(r))};var l=!1;c[r]=s(n,u.concat(r),a,t,function(e){var t,r;return l=Array.isArray(e),t=e,void(c.allOf=Array.isArray(r=c.allOf)?(r.splice.apply(r,[0,0].concat(t)),r):t)}),void 0!==c[r]||l?void 0===c[r]&&delete c[r]:$(n,u.concat(r))}else c[r]=n[0]}),Object.assign(c,U(l,"properties",i,e,t,u)),Object.assign(c,U(f,"items",i,e,t,u)),c}}(c(function e(t){if(!Array.isArray(t.allOf))return[t];var r=t.allOf;return delete t.allOf,[t].concat(r.map(function(t){return e(t)}))}(e)),e)}X.$id=D,X.$ref=D,X.$schema=D,X.additionalItems=P,X.additionalProperties=P,X.anyOf=X.oneOf,X.contains=P,X.default=D,X.definitions=X.dependencies,X.description=D,X.examples=M,X.exclusiveMaximum=I,X.exclusiveMinimum=N,X.maximum=I,X.maxItems=I,X.maxLength=I,X.maxProperties=I,X.minimum=N,X.minItems=N,X.minLength=N,X.minProperties=N,X.propertyNames=P,X.required=F,X.title=D,X.uniqueItems=T,G.options={resolvers:X},e.exports=G},89038:function(e,t){var r=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw Error("Invalid tilde escape: "+e)}function i(e){return r.test(e)?e.replace(n,o):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e}else if(Array.isArray(e)){for(let t of e)if("string"!=typeof t&&"number"!=typeof t)throw Error("Invalid JSON pointer. Must be of type string or number.");return e}throw Error("Invalid JSON pointer.")}function u(e,t){if("object"!=typeof e)throw Error("Invalid input object.");var r=(t=a(t)).length;if(1===r)return e;for(var n=1;na,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var c=e[n];return void 0===r?delete e[n]:e[n]=r,c}(e,t,r)}t.get=u,t.set=c,t.compile=function(e){var t=a(e);return{get:function(e){return u(e,t)},set:function(e,r){return c(e,t,r)}}}},61478:function(e,t,r){var n,o,i,a="__lodash_hash_undefined__",u=/^\[object .+?Constructor\]$/,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=c||s||Function("return this")();function f(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i-1}function p(e,t,r){for(var n=-1,o=e?e.length:0;++n-1},F.prototype.set=function(e,t){var r=this.__data__,n=T(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new D,map:new(A||F),string:new D}},N.prototype.delete=function(e){return M(this,e).delete(e)},N.prototype.get=function(e){return M(this,e).get(e)},N.prototype.has=function(e){return M(this,e).has(e)},N.prototype.set=function(e,t){return M(this,e).set(e,t),this},I.prototype.add=I.prototype.push=function(e){return this.__data__.set(e,a),this},I.prototype.has=function(e){return this.__data__.has(e)};var R=(o=function(e,t){return q(e)?function(e,t,r,n){var o=-1,i=f,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;r&&(t=function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r=200&&(i=h,a=!1,t=new I(t));e:for(;++o0&&n(c)?r>1?e(c,r-1,n,o,i):function(e,t){for(var r=-1,n=t.length,o=e.length;++r-1&&r%1==0&&r<=9007199254740991&&!U(t)}function U(e){var t=V(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=R},59722:function(e){e.exports=function(e){return null==e}},97644:function(e,t,r){var n,o="__lodash_hash_undefined__",i=/^\[object .+?Constructor\]$/,a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=a||u||Function("return this")();function s(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i-1}function l(e,t,r){for(var n=-1,o=e?e.length:0;++n-1},k.prototype.set=function(e,t){var r=this.__data__,n=D(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new P,map:new(E||k),string:new P}},A.prototype.delete=function(e){return N(this,e).delete(e)},A.prototype.get=function(e){return N(this,e).get(e)},A.prototype.has=function(e){return N(this,e).has(e)},A.prototype.set=function(e,t){return N(this,e).set(e,t),this},C.prototype.add=C.prototype.push=function(e){return this.__data__.set(e,o),this},C.prototype.has=function(e){return this.__data__.has(e)};var F=x&&1/d(new x([,-0]))[1]==1/0?function(e){return new x(e)}:function(){};function N(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function I(e,t){var r,n=null==e?void 0:e[t];return!(!T(n)||b&&b in n)&&("[object Function]"==(r=T(n)?w.call(n):"")||"[object GeneratorFunction]"==r||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?S:i).test(function(e){if(null!=e){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,r){var n=-1,o=s,i=e.length,a=!0,u=[],c=u;if(r)a=!1,o=l;else if(i>=200){var f=t?null:F(e);if(f)return d(f);a=!1,o=p,c=new C}else c=t?[]:u;e:for(;++n=200&&(f=c,p=!1,t=new n(t));e:for(;++l=120&&v.length>=120)?new n(d&&v):void 0}v=e[0];var b=-1,g=h[0];e:for(;++b-1;)d!==e&&c.call(d,h,1),c.call(e,h,1);return e}},24387:function(e,t,r){var n=r(29246);e.exports=function(e){return n(e)?e:[]}},57157:function(e,t,r){var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},40419:function(e,t,r){var n=r(62705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},18805:function(e,t,r){var n=r(98363),o=r(99551);e.exports=function(e,t){return n(e,o(e),t)}},1911:function(e,t,r){var n=r(98363),o=r(51442);e.exports=function(e,t){return n(e,o(e),t)}},92052:function(e,t,r){var n=r(42980),o=r(13218);e.exports=function e(t,r,i,a,u,c){return o(t)&&o(r)&&(c.set(r,t),n(t,r,void 0,e,c),c.delete(r)),t}},99021:function(e,t,r){var n=r(85564),o=r(45357),i=r(30061);e.exports=function(e){return i(o(e,void 0,n),e+"")}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},29148:function(e,t,r){var n=r(74318),o=r(57157),i=r(93147),a=r(40419),u=r(77133);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},50361:function(e,t,r){var n=r(85990);e.exports=function(e){return n(e,5)}},91747:function(e,t,r){var n=r(5976),o=r(77813),i=r(16612),a=r(81704),u=Object.prototype,c=u.hasOwnProperty,s=n(function(e,t){e=Object(e);var r=-1,n=t.length,s=n>2?t[2]:void 0;for(s&&i(t[0],t[1],s)&&(n=1);++r1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)t[u++]=e;return t}},78520:function(e,t,r){"use strict";var n=r(73747),o=r(58100),i=r(37165),a=function(e){return function(t,r,a){var u,c=n(t),s=i(c),l=o(a,s);if(e&&r!=r){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},44650:function(e,t,r){"use strict";var n=r(72537),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},7151:function(e,t,r){"use strict";var n=r(43794),o=r(81890),i=r(51567);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},51567:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},20543:function(e,t,r){"use strict";var n=r(5685),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},43794:function(e,t,r){"use strict";var n=r(49353);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9945:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},23729:function(e,t,r){"use strict";var n=r(5685),o=r(39611),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},13642:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},15131:function(e,t,r){"use strict";var n,o,i=r(5685),a=r(13642),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},3305:function(e,t,r){"use strict";var n=r(87192);e.exports=n},74715:function(e,t,r){"use strict";var n=r(5685),o=r(10145),i=r(77531),a=r(9934),u=r(45396).f,c=r(35703),s=r(29068),l=r(29605),f=r(7151),p=r(31620),d=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,o,h,m,y,v,b,g,O,w=e.target,S=e.global,j=e.stat,E=e.proto,x=S?n:j?n[w]:(n[w]||{}).prototype,_=S?s:s[w]||f(s,w,{})[w],P=_.prototype;for(m in t)o=!(r=c(S?m:w+(j?".":"#")+m,e.forced))&&x&&p(x,m),v=_[m],o&&(b=e.dontCallGetSet?(O=u(x,m))&&O.value:x[m]),y=o&&b?b:t[m],(!o||typeof v!=typeof y)&&(g=e.bind&&o?l(y,n):e.wrap&&o?d(y):E&&a(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(_,m,g),E&&(p(s,h=w+"Prototype")||f(s,h,{}),f(s[h],m,y),e.real&&P&&(r||!P[m])&&f(P,m,y)))}},49353:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},10145:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},29605:function(e,t,r){"use strict";var n=r(77531),o=r(45935),i=r(6229),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},6229:function(e,t,r){"use strict";var n=r(49353);e.exports=!n(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},83417:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},77531:function(e,t,r){"use strict";var n=r(44650),o=r(72537);e.exports=function(e){if("Function"===n(e))return o(e)}},72537:function(e,t,r){"use strict";var n=r(6229),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},87192:function(e,t,r){"use strict";var n=r(29068),o=r(5685),i=r(9934),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},45752:function(e,t,r){"use strict";var n=r(45935),o=r(44133);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},5685:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},31620:function(e,t,r){"use strict";var n=r(72537),o=r(42962),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},59548:function(e,t,r){"use strict";var n=r(43794),o=r(49353),i=r(23729);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},108:function(e,t,r){"use strict";var n=r(72537),o=r(49353),i=r(44650),a=Object,u=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?u(e,""):a(e)}:a},9934:function(e,t,r){"use strict";var n=r(9945),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},35703:function(e,t,r){"use strict";var n=r(49353),o=r(9934),i=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r===l||r!==s&&(o(t)?n(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},44133:function(e){"use strict";e.exports=function(e){return null==e}},39611:function(e,t,r){"use strict";var n=r(9934),o=r(9945),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},14081:function(e){"use strict";e.exports=!0},40205:function(e,t,r){"use strict";var n=r(87192),o=r(9934),i=r(61727),a=r(80016),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,u(e))}},37165:function(e,t,r){"use strict";var n=r(71904);e.exports=function(e){return n(e.length)}},88836:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},81890:function(e,t,r){"use strict";var n=r(43794),o=r(59548),i=r(77956),a=r(18879),u=r(91525),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=n?i?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return s(e,t,r)}:s:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},45396:function(e,t,r){"use strict";var n=r(43794),o=r(83417),i=r(99106),a=r(51567),u=r(73747),c=r(91525),s=r(31620),l=r(59548),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=c(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},61727:function(e,t,r){"use strict";var n=r(72537);e.exports=n({}.isPrototypeOf)},99106:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},58733:function(e,t,r){"use strict";var n=r(83417),o=r(9934),i=r(39611),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!i(u=n(r,e))||o(r=e.valueOf)&&!i(u=n(r,e))||"string"!==t&&o(r=e.toString)&&!i(u=n(r,e)))return u;throw new a("Can't convert object to primitive value")}},29068:function(e){"use strict";e.exports={}},89823:function(e,t,r){"use strict";var n=r(44133),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},35509:function(e,t,r){"use strict";var n=r(5685),o=r(20543),i="__core-js_shared__",a=n[i]||o(i,{});e.exports=a},73921:function(e,t,r){"use strict";var n=r(14081),o=r(35509);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.2",mode:n?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},34086:function(e,t,r){"use strict";var n=r(15131),o=r(49353),i=r(5685).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&n&&n<41})},58100:function(e,t,r){"use strict";var n=r(96169),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},73747:function(e,t,r){"use strict";var n=r(108),o=r(89823);e.exports=function(e){return n(o(e))}},96169:function(e,t,r){"use strict";var n=r(88836);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},71904:function(e,t,r){"use strict";var n=r(96169),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},42962:function(e,t,r){"use strict";var n=r(89823),o=Object;e.exports=function(e){return o(n(e))}},50681:function(e,t,r){"use strict";var n=r(83417),o=r(39611),i=r(40205),a=r(45752),u=r(58733),c=r(52442),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),!o(r=n(c,e,t))||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},91525:function(e,t,r){"use strict";var n=r(50681),o=r(40205);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1028:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},23440:function(e,t,r){"use strict";var n=r(72537),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},80016:function(e,t,r){"use strict";var n=r(34086);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},77956:function(e,t,r){"use strict";var n=r(43794),o=r(49353);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},52442:function(e,t,r){"use strict";var n=r(5685),o=r(73921),i=r(31620),a=r(23440),u=r(34086),c=r(80016),s=n.Symbol,l=o("wks"),f=c?s.for||s:s&&s.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=u&&i(s,e)?s[e]:f("Symbol."+e)),l[e]}},28668:function(e,t,r){"use strict";var n=r(74715),o=r(57015),i=r(66888);n({target:"Array",proto:!0},{fill:o}),i("fill")},37464:function(e,t,r){"use strict";var n=r(74715),o=r(78520).includes,i=r(49353),a=r(66888);n({target:"Array",proto:!0,forced:i(function(){return![,].includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54876:function(e,t,r){"use strict";var n=r(49638);e.exports=n},45810:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a)&&this.A(e),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},t.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},t.prototype.m=function(e){this.L(e.touches[0].clientX)},t.prototype.M=function(e){e.preventDefault(),this.U(e)},t.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(e){this.H=e},t.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({j:!1})},t.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,i=e.className,a=e.offColor,u=e.onColor,s=e.offHandleColor,l=e.onHandleColor,f=e.checkedIcon,p=e.uncheckedIcon,d=e.checkedHandleIcon,h=e.uncheckedHandleIcon,m=e.boxShadow,y=e.activeBoxShadow,v=e.height,b=e.width,g=e.borderRadius,O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),w=this.state,S=w.h,j=w.N,E=w.j,x={height:v,width:b,margin:Math.max(0,(this.t-v)/2),position:"relative",background:c(S,this.i,this.o,a,u),borderRadius:"number"==typeof g?g:v/2,cursor:r?"default":"pointer",WebkitTransition:j?null:"background 0.25s",MozTransition:j?null:"background 0.25s",transition:j?null:"background 0.25s"},_={height:v,width:Math.min(1.5*v,b-(this.t+v)/2+1),position:"relative",opacity:(S-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},P={height:v,width:Math.min(1.5*v,b-(this.t+v)/2+1),position:"absolute",opacity:1-(S-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},k={height:this.t,width:this.t,background:c(S,this.i,this.o,s,l),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof g?g-1:"50%",position:"absolute",transform:"translateX("+S+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:E?y:m,border:0,WebkitTransition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:j?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},A={height:this.t,width:this.t,opacity:Math.max(2*(1-(S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"},C={height:this.t,width:this.t,opacity:Math.max(2*((S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:j?null:"opacity 0.25s",MozTransition:j?null:"opacity 0.25s",transition:j?null:"opacity 0.25s"};return n.createElement("div",{className:i,style:{position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"}},n.createElement("div",{className:"react-switch-bg",style:x,onClick:r?null:this.T,onMouseDown:function(e){return e.preventDefault()}},f&&n.createElement("div",{style:_},f),p&&n.createElement("div",{style:P},p)),n.createElement("div",{className:"react-switch-handle",style:k,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.p,onTouchStart:r?null:this.k,onTouchMove:r?null:this.m,onTouchEnd:r?null:this.M,onTouchCancel:r?null:this.O},h&&n.createElement("div",{style:A},h),d&&n.createElement("div",{style:C},d)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},O,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(n.Component);s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:i,checkedIcon:a,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56}}}]); \ No newline at end of file diff --git a/_next/static/chunks/442-db7ad3c62adb1293.js b/_next/static/chunks/442-db7ad3c62adb1293.js deleted file mode 100644 index 6104f76..0000000 --- a/_next/static/chunks/442-db7ad3c62adb1293.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[442],{46312:function(e,t,n){"use strict";n.d(t,{e:function(){return z}});var o,r,i=n(67294),s=n(73935),a=(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{var r;if(!t&&("a"!==e||(r=n)&&"#"!==r.trim())||o.preventDefault(),t){o.stopPropagation();return}null==s||s(o)},d=e=>{" "===e.key&&(e.preventDefault(),c(e))};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?o:void 0,"aria-disabled":t||void 0,rel:"a"===e?r:void 0,onClick:c,onKeyDown:d},l]}let d=i.forwardRef((e,t)=>{let{as:n,disabled:o}=e,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,l),[i,{tagName:s}]=c(Object.assign({tagName:n,disabled:o},r));return(0,u.jsx)(s,Object.assign({},r,i,{ref:t}))});d.displayName="Button";let p=["onKeyDown"],f=i.forwardRef((e,t)=>{var n;let{onKeyDown:o}=e,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,p),[i]=c(Object.assign({tagName:"a"},r)),s=(0,a.Z)(e=>{i.onKeyDown(e),null==o||o(e)});return(n=r.href)&&"#"!==n.trim()&&"button"!==r.role?(0,u.jsx)("a",Object.assign({ref:t},r,{onKeyDown:o})):(0,u.jsx)("a",Object.assign({ref:t},r,i,{onKeyDown:s}))});f.displayName="Anchor";let h=i.forwardRef(({active:e,disabled:t,className:n,style:o,activeLabel:i,children:s,...a},l)=>{let c=e||t?"span":f;return(0,u.jsx)("li",{ref:l,style:o,className:r()(n,"page-item",{active:e,disabled:t}),children:(0,u.jsxs)(c,{className:"page-link",disabled:t,...a,children:[s,e&&i&&(0,u.jsx)("span",{className:"visually-hidden",children:i})]})})});function g(e,t,n=e){let o=i.forwardRef(({children:e,...o},r)=>(0,u.jsxs)(h,{...o,ref:r,children:[(0,u.jsx)("span",{"aria-hidden":"true",children:e||t}),(0,u.jsx)("span",{className:"visually-hidden",children:n})]}));return o.displayName=e,o}h.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},h.displayName="PageItem";let v=g("First","\xab"),m=g("Prev","‹","Previous"),y=g("Ellipsis","…","More"),w=g("Next","›"),b=g("Last","\xbb"),R=i.forwardRef(({bsPrefix:e,className:t,size:n,...o},i)=>{let a=(0,s.vE)(e,"pagination");return(0,u.jsx)("ul",{ref:i,...o,className:r()(t,a,n&&`${a}-${n}`)})});R.displayName="Pagination";var S=Object.assign(R,{First:v,Prev:m,Ellipsis:y,Item:h,Next:w,Last:b})},57761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,u&&u(t)};var c=[n];return r&&(a?s?c.unshift(a):c.push(a):this.defaultLoader&&(s?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),i.default.createElement(o,l,c)}}]),t}(r.Component);u.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},u.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=u,e.exports=t.default},246:function(e,t,n){e.exports=n(57761)},41070:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;nt.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};t.__esModule=!0;var i=n(67294),s=n(65837),a=n(64643);t.default=function(e){var t=e.delay,n=void 0===t?0:t,u=e.type,l=void 0===u?"text":u,c=e.color,d=void 0===c?"#CDCDCD":c,p=e.rows,f=void 0===p?3:p,h=e.ready,g=e.firstLaunchOnly,v=e.children,m=e.className,y=e.showLoadingAnimation,w=e.customPlaceholder,b=r(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),R=i.useState(h),S=R[0],x=R[1],C=i.useRef(null);return i.useEffect(function(){g||!S||h?h&&(C.current&&window.clearTimeout(C.current),S||x(!0)):n&&n>0?C.current=window.setTimeout(function(){x(!1)},n):x(!1)},[g,S,h,n]),i.useEffect(function(){return function(){C.current&&window.clearTimeout(C.current)}},[]),S?v:function(){var e=y?a.joinClassNames("show-loading-animation",m):m;if(w&&i.isValidElement(w)){var t=a.joinClassNames(w.props.className,e);return i.cloneElement(w,{className:t})}if(w)return w;var n=s[l];return i.createElement(n,o({},b,{color:d,rows:f,className:e}))}()}},76457:function(e,t,n){"use strict";var o=n(41070);t.Z=o.default},41985:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0||(r[n]=e[n]);return r}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var a={init:"init"},u=function(e){var t=e.value;return void 0===t?"":t},l=function(){return t.createElement(t.Fragment,null,"\xa0")},c={Cell:u,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=Array(e),n=0;n(i="number"==typeof i?i:1/0)){var s=r;r=i,i=s}return e.filter(function(e){return t.some(function(t){var n=e.values[t];return n>=r&&n<=i})})};ey.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var ew=Object.freeze({__proto__:null,text:el,exactText:ec,exactTextCase:ed,includes:ep,includesAll:ef,includesSome:eh,includesValue:eg,exact:ev,equals:em,between:ey});a.resetFilters="resetFilters",a.setFilter="setFilter",a.setAllFilters="setAllFilters";var eb=function(e){e.stateReducers.push(eR),e.useInstance.push(eS)};function eR(e,t,n,o){if(t.type===a.init)return r({filters:[]},e);if(t.type===a.resetFilters)return r({},e,{filters:o.initialState.filters||[]});if(t.type===a.setFilter){var i=t.columnId,s=t.filterValue,u=o.allColumns,l=o.filterTypes,c=u.find(function(e){return e.id===i});if(!c)throw Error("React-Table: Could not find a column with id: "+i);var d=W(c.filter,l||{},ew),p=e.filters.find(function(e){return e.id===i}),f=v(s,p&&p.value);return k(d.autoRemove,f,c)?r({},e,{filters:e.filters.filter(function(e){return e.id!==i})}):r({},e,p?{filters:e.filters.map(function(e){return e.id===i?{id:i,value:f}:e})}:{filters:[].concat(e.filters,[{id:i,value:f}])})}if(t.type===a.setAllFilters){var h=t.filters,g=o.allColumns,m=o.filterTypes;return r({},e,{filters:v(h,e.filters).filter(function(e){var t=g.find(function(t){return t.id===e.id});return!k(W(t.filter,m||{},ew).autoRemove,e.value,t)})})}}function eS(e){var n=e.data,o=e.rows,r=e.flatRows,i=e.rowsById,s=e.allColumns,u=e.filterTypes,l=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,p=e.disableFilters,f=e.state.filters,h=e.dispatch,g=e.autoResetFilters,v=t.useCallback(function(e,t){h({type:a.setFilter,columnId:e,filterValue:t})},[h]),y=t.useCallback(function(e){h({type:a.setAllFilters,filters:e})},[h]);s.forEach(function(e){var t=e.id,n=e.accessor,o=e.defaultCanFilter,r=e.disableFilters;e.canFilter=n?z(!0!==r&&void 0,!0!==p&&void 0,!0):z(o,d,!1),e.setFilter=function(t){return v(e.id,t)};var i=f.find(function(e){return e.id===t});e.filterValue=i&&i.value});var b=t.useMemo(function(){if(l||!f.length)return[o,r,i];var e=[],t={};return[function n(o,r){void 0===r&&(r=0);var i=o;return(i=f.reduce(function(e,t){var n=t.id,o=t.value,i=s.find(function(e){return e.id===n});if(!i)return e;0===r&&(i.preFilteredRows=e);var a=W(i.filter,u||{},ew);return a?(i.filteredRows=a(e,[n],o),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)},o)).forEach(function(o){e.push(o),t[o.id]=o,o.subRows&&(o.subRows=o.subRows&&o.subRows.length>0?n(o.subRows,r+1):o.subRows)}),i}(o),e,t]},[l,f,o,r,i,s,u]),R=b[0],S=b[1],x=b[2];t.useMemo(function(){s.filter(function(e){return!f.find(function(t){return t.id===e.id})}).forEach(function(e){e.preFilteredRows=R,e.filteredRows=R})},[R,f,s]);var C=m(void 0===g||g);w(function(){C()&&h({type:a.resetFilters})},[h,l?null:n]),Object.assign(e,{preFilteredRows:o,preFilteredFlatRows:r,preFilteredRowsById:i,filteredRows:R,filteredFlatRows:S,filteredRowsById:x,rows:R,flatRows:S,rowsById:x,setFilter:v,setAllFilters:y})}eb.pluginName="useFilters",a.resetGlobalFilter="resetGlobalFilter",a.setGlobalFilter="setGlobalFilter";var ex=function(e){e.stateReducers.push(eC),e.useInstance.push(eP)};function eC(e,t,n,o){if(t.type===a.resetGlobalFilter)return r({},e,{globalFilter:o.initialState.globalFilter||void 0});if(t.type===a.setGlobalFilter){var s=t.filterValue,u=o.userFilterTypes,l=W(o.globalFilter,u||{},ew),c=v(s,e.globalFilter);return k(l.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):r({},e,{globalFilter:c})}}function eP(e){var n=e.data,o=e.rows,r=e.flatRows,i=e.rowsById,s=e.allColumns,u=e.filterTypes,l=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,p=e.dispatch,f=e.autoResetGlobalFilter,h=e.disableGlobalFilter,g=t.useCallback(function(e){p({type:a.setGlobalFilter,filterValue:e})},[p]),v=t.useMemo(function(){if(c||void 0===d)return[o,r,i];var e=[],t={},n=W(l,u||{},ew);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),o;s.forEach(function(e){var t=e.disableGlobalFilter;e.canFilter=z(!0!==t&&void 0,!0!==h&&void 0,!0)});var a=s.filter(function(e){return!0===e.canFilter});return[function o(r){return(r=n(r,a.map(function(e){return e.id}),d)).forEach(function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?o(n.subRows):n.subRows}),r}(o),e,t]},[c,d,l,u,s,o,r,i,h]),y=v[0],b=v[1],R=v[2],S=m(void 0===f||f);w(function(){S()&&p({type:a.resetGlobalFilter})},[p,c?null:n]),Object.assign(e,{preGlobalFilteredRows:o,preGlobalFilteredFlatRows:r,preGlobalFilteredRowsById:i,globalFilteredRows:y,globalFilteredFlatRows:b,globalFilteredRowsById:R,rows:y,flatRows:b,rowsById:R,setGlobalFilter:g,disableGlobalFilter:h})}function ez(e,t){return t.reduce(function(e,t){return e+("number"==typeof t?t:0)},0)}ex.pluginName="useGlobalFilter";var eE=Object.freeze({__proto__:null,sum:ez,min:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e))}),t},max:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.max(t,e))}),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))}),t+".."+n},average:function(e){return ez(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort(function(e,t){return e-t});return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),eB=[],eO={};a.resetGroupBy="resetGroupBy",a.setGroupBy="setGroupBy",a.toggleGroupBy="toggleGroupBy";var eW=function(e){e.getGroupByToggleProps=[ek],e.stateReducers.push(eI),e.visibleColumnsDeps.push(function(e,t){return[].concat(e,[t.instance.state.groupBy])}),e.visibleColumns.push(eH),e.useInstance.push(eM),e.prepareRow.push(eL)};eW.pluginName="useGroupBy";var ek=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function eI(e,t,n,o){if(t.type===a.init)return r({groupBy:[]},e);if(t.type===a.resetGroupBy)return r({},e,{groupBy:o.initialState.groupBy||[]});if(t.type===a.setGroupBy)return r({},e,{groupBy:t.value});if(t.type===a.toggleGroupBy){var i=t.columnId,s=t.value,u=void 0!==s?s:!e.groupBy.includes(i);return r({},e,u?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter(function(e){return e!==i})})}}function eH(e,t){var n=t.instance.state.groupBy,o=n.map(function(t){return e.find(function(e){return e.id===t})}).filter(Boolean),r=e.filter(function(e){return!n.includes(e.id)});return(e=[].concat(o,r)).forEach(function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)}),e}var eF={};function eM(e){var n=e.data,o=e.rows,i=e.flatRows,s=e.rowsById,u=e.allColumns,l=e.flatHeaders,c=e.groupByFn,d=void 0===c?ej:c,f=e.manualGroupBy,h=e.aggregations,v=void 0===h?eF:h,y=e.plugins,b=e.state.groupBy,R=e.dispatch,S=e.autoResetGroupBy,x=e.disableGroupBy,C=e.defaultCanGroupBy,P=e.getHooks;g(y,["useColumnOrder","useFilters"],"useGroupBy");var E=m(e);u.forEach(function(t){var n=t.accessor,o=t.defaultGroupBy,r=t.disableGroupBy;t.canGroupBy=n?z(t.canGroupBy,!0!==r&&void 0,!0!==x&&void 0,!0):z(t.canGroupBy,o,C,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell});var O=t.useCallback(function(e,t){R({type:a.toggleGroupBy,columnId:e,value:t})},[R]),W=t.useCallback(function(e){R({type:a.setGroupBy,value:e})},[R]);l.forEach(function(e){e.getGroupByToggleProps=p(P().getGroupByToggleProps,{instance:E(),header:e})});var k=t.useMemo(function(){if(f||!b.length)return[o,i,s,eB,eO,i,s];var e=b.filter(function(e){return u.find(function(t){return t.id===e})}),t=[],n={},a=[],l={},c=[],p={},h=function o(i,s,f){if(void 0===s&&(s=0),s===e.length)return i.map(function(e){return r({},e,{depth:s})});var h=e[s];return Object.entries(d(i,h)).map(function(r,i){var d,g,m=r[0],y=r[1],w=h+":"+m,b=o(y,s+1,w=f?f+">"+w:w),R=s?B(y,"leafRows"):y,S={id:w,isGrouped:!0,groupByID:h,groupByVal:m,values:(d=s,g={},u.forEach(function(t){if(e.includes(t.id))g[t.id]=y[0]?y[0].values[t.id]:null;else{var n="function"==typeof t.aggregate?t.aggregate:v[t.aggregate]||eE[t.aggregate];if(n){var o=y.map(function(e){return e.values[t.id]}),r=R.map(function(e){var n=e.values[t.id];if(!d&&t.aggregateValue){var o="function"==typeof t.aggregateValue?t.aggregateValue:v[t.aggregateValue]||eE[t.aggregateValue];if(!o)throw console.info({column:t}),Error("React Table: Invalid column.aggregateValue option for column listed above");n=o(n,e,t)}return n});g[t.id]=n(r,o)}else{if(t.aggregate)throw console.info({column:t}),Error("React Table: Invalid column.aggregate option for column listed above");g[t.id]=null}}}),g),subRows:b,leafRows:R,depth:s,index:i};return b.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),l[e.id]=e):(c.push(e),p[e.id]=e)}),S})}(o);return h.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),l[e.id]=e):(c.push(e),p[e.id]=e)}),[h,t,n,a,l,c,p]},[f,b,o,i,s,u,v,d]),I=k[0],H=k[1],F=k[2],M=k[3],L=k[4],j=k[5],G=k[6],N=m(void 0===S||S);w(function(){N()&&R({type:a.resetGroupBy})},[R,f?null:n]),Object.assign(e,{preGroupedRows:o,preGroupedFlatRow:i,preGroupedRowsById:s,groupedRows:I,groupedFlatRows:H,groupedRowsById:F,onlyGroupedFlatRows:M,onlyGroupedRowsById:L,nonGroupedFlatRows:j,nonGroupedRowsById:G,rows:I,flatRows:H,rowsById:F,toggleGroupBy:O,setGroupBy:W})}function eL(e){e.allCells.forEach(function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)})}function ej(e,t){return e.reduce(function(e,n,o){var r=""+n.values[t];return e[r]=Array.isArray(e[r])?e[r]:[],e[r].push(n),e},{})}var eG=/([0-9]+)/gm;function eN(e,t){return e===t?0:e>t?1:-1}function eA(e,t,n){return[e.values[n],t.values[n]]}function eT(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var e_=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var o=eA(e,t,n),r=o[0],i=o[1];for(r=eT(r),i=eT(i),r=r.split(eG).filter(Boolean),i=i.split(eG).filter(Boolean);r.length&&i.length;){var s=r.shift(),a=i.shift(),u=parseInt(s,10),l=parseInt(a,10),c=[u,l].sort();if(isNaN(c[0])){if(s>a)return 1;if(a>s)return -1}else{if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return -1}}return r.length-i.length},datetime:function(e,t,n){var o=eA(e,t,n),r=o[0],i=o[1];return eN(r=r.getTime(),i=i.getTime())},basic:function(e,t,n){var o=eA(e,t,n);return eN(o[0],o[1])},string:function(e,t,n){var o=eA(e,t,n),r=o[0],i=o[1];for(r=r.split("").filter(Boolean),i=i.split("").filter(Boolean);r.length&&i.length;){var s=r.shift(),a=i.shift(),u=s.toLowerCase(),l=a.toLowerCase();if(u>l)return 1;if(l>u)return -1;if(s>a)return 1;if(a>s)return -1}return r.length-i.length},number:function(e,t,n){var o=eA(e,t,n),r=o[0],i=o[1],s=/[^0-9.]/gi;return eN(r=Number(String(r).replace(s,"")),i=Number(String(i).replace(s,"")))}});a.resetSortBy="resetSortBy",a.setSortBy="setSortBy",a.toggleSortBy="toggleSortBy",a.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var eD=function(e){e.getSortByToggleProps=[eV],e.stateReducers.push(eX),e.useInstance.push(eU)};eD.pluginName="useSortBy";var eV=function(e,t){var n=t.instance,o=t.column,r=n.isMultiSortEvent,i=void 0===r?function(e){return e.shiftKey}:r;return[e,{onClick:o.canSort?function(e){e.persist(),o.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:o.canSort?"pointer":void 0},title:o.canSort?"Toggle SortBy":void 0}]};function eX(e,t,n,o){if(t.type===a.init)return r({sortBy:[]},e);if(t.type===a.resetSortBy)return r({},e,{sortBy:o.initialState.sortBy||[]});if(t.type===a.clearSortBy)return r({},e,{sortBy:e.sortBy.filter(function(e){return e.id!==t.columnId})});if(t.type===a.setSortBy)return r({},e,{sortBy:t.sortBy});if(t.type===a.toggleSortBy){var i,s=t.columnId,u=t.desc,l=t.multi,c=o.allColumns,d=o.disableMultiSort,p=o.disableSortRemove,f=o.disableMultiRemove,h=o.maxMultiSortColCount,g=void 0===h?Number.MAX_SAFE_INTEGER:h,v=e.sortBy,m=c.find(function(e){return e.id===s}).sortDescFirst,y=v.find(function(e){return e.id===s}),w=v.findIndex(function(e){return e.id===s}),b=null!=u,R=[];return"toggle"!=(i=!d&&l?y?"toggle":"add":w!==v.length-1||1!==v.length?"replace":y?"toggle":"replace")||p||b||l&&f||!(y&&y.desc&&!m||!y.desc&&m)||(i="remove"),"replace"===i?R=[{id:s,desc:b?u:m}]:"add"===i?(R=[].concat(v,[{id:s,desc:b?u:m}])).splice(0,R.length-g):"toggle"===i?R=v.map(function(e){return e.id===s?r({},e,{desc:b?u:!y.desc}):e}):"remove"===i&&(R=v.filter(function(e){return e.id!==s})),r({},e,{sortBy:R})}}function eU(e){var n=e.data,o=e.rows,r=e.flatRows,i=e.allColumns,s=e.orderByFn,u=void 0===s?eq:s,l=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,f=e.disableSortBy,h=e.flatHeaders,v=e.state.sortBy,y=e.dispatch,b=e.plugins,R=e.getHooks,S=e.autoResetSortBy;g(b,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var x=t.useCallback(function(e){y({type:a.setSortBy,sortBy:e})},[y]),C=t.useCallback(function(e,t,n){y({type:a.toggleSortBy,columnId:e,desc:t,multi:n})},[y]),P=m(e);h.forEach(function(e){var t=e.accessor,n=e.canSort,o=e.disableSortBy,r=e.id,i=t?z(!0!==o&&void 0,!0!==f&&void 0,!0):z(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return C(e.id,t,n)},e.clearSortBy=function(){y({type:a.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=p(R().getSortByToggleProps,{instance:P(),column:e});var s=v.find(function(e){return e.id===r});e.isSorted=!!s,e.sortedIndex=v.findIndex(function(e){return e.id===r}),e.isSortedDesc=e.isSorted?s.desc:void 0});var B=t.useMemo(function(){if(c||!v.length)return[o,r];var e=[],t=v.filter(function(e){return i.find(function(t){return t.id===e.id})});return[function n(o){var r=u(o,t.map(function(e){var t=i.find(function(t){return t.id===e.id});if(!t)throw Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,o=E(n)||(l||{})[n]||e_[n];if(!o)throw Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return o(t,n,e.id,e.desc)}}),t.map(function(e){var t=i.find(function(t){return t.id===e.id});return t&&t.sortInverted?e.desc:!e.desc}));return r.forEach(function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))}),r}(o),e]},[c,v,o,r,i,u,l]),O=B[0],W=B[1],k=m(void 0===S||S);w(function(){k()&&y({type:a.resetSortBy})},[c?null:n]),Object.assign(e,{preSortedRows:o,preSortedFlatRows:r,sortedRows:O,sortedFlatRows:W,rows:O,flatRows:W,setSortBy:x,toggleSortBy:C})}function eq(e,t,n){return[].concat(e).sort(function(e,o){for(var r=0;re.pageIndex?l=-1===i?s.length>=e.pageSize:u-1),l?r({},e,{pageIndex:u}):e}if(t.type===a.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return r({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function eZ(e){var n=e.rows,o=e.autoResetPage,r=e.manualExpandedKey,i=void 0===r?"expanded":r,s=e.plugins,u=e.pageCount,l=e.paginateExpandedRows,c=void 0===l||l,d=e.expandSubRows,p=void 0===d||d,f=e.state,h=f.pageSize,v=f.pageIndex,y=f.expanded,b=f.globalFilter,R=f.filters,S=f.groupBy,x=f.sortBy,C=e.dispatch,P=e.data,z=e.manualPagination;g(s,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var E=m(void 0===o||o);w(function(){E()&&C({type:a.resetPage})},[C,z?null:P,b,R,S,x]);var B=z?u:Math.ceil(n.length/h),W=t.useMemo(function(){return B>0?[].concat(Array(B)).fill(null).map(function(e,t){return t}):[]},[B]),k=t.useMemo(function(){var e;if(z)e=n;else{var t=h*v;e=n.slice(t,t+h)}return c?e:O(e,{manualExpandedKey:i,expanded:y,expandSubRows:p})},[p,y,i,z,v,h,c,n]),I=-1===B?k.length>=h:v0,canNextPage:I,gotoPage:H,previousPage:F,nextPage:M,setPageSize:t.useCallback(function(e){C({type:a.setPageSize,pageSize:e})},[C])})}eK.pluginName="usePagination",a.resetPivot="resetPivot",a.togglePivot="togglePivot";var e$=function(e){e.getPivotToggleProps=[eQ],e.stateReducers.push(e0),e.useInstanceAfterData.push(e1),e.allColumns.push(e2),e.accessValue.push(e7),e.materializedColumns.push(e9),e.materializedColumnsDeps.push(e4),e.visibleColumns.push(e5),e.visibleColumnsDeps.push(e6),e.useInstance.push(e3),e.prepareRow.push(e8)};e$.pluginName="usePivotColumns";var eJ=[],eQ=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function e0(e,t,n,o){if(t.type===a.init)return r({pivotColumns:eJ},e);if(t.type===a.resetPivot)return r({},e,{pivotColumns:o.initialState.pivotColumns||eJ});if(t.type===a.togglePivot){var i=t.columnId,s=t.value,u=void 0!==s?s:!e.pivotColumns.includes(i);return r({},e,u?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter(function(e){return e!==i})})}}function e1(e){e.allColumns.forEach(function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)})}function e2(e,t){var n=t.instance;return e.forEach(function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set}),e}function e7(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function e9(e,t){var n=t.instance,o=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var s=i.pivotColumns.map(function(e){return o.find(function(t){return t.id===e})}).filter(Boolean),a=o.filter(function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)});return[].concat(e,S(function e(t,n,o){void 0===t&&(t=0),void 0===o&&(o=[]);var i=s[t];return i?Array.from(i.uniqueValues).sort().map(function(s){var a=r({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+s:s,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+s:i.id+"."+s,pivotValue:s});return a.columns=e(t+1,a,[].concat(o,[function(e){return e.values[i.id]===s}])),a}):a.map(function(e){return r({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,r){if(o.every(function(e){return e(r)}))return r.values[e.id]}})})}()))}function e4(e,t){var n=t.instance.state;return[].concat(e,[n.pivotColumns,n.groupBy])}function e5(e,t){var n=t.instance.state;return e=e.filter(function(e){return!e.isPivotSource}),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter(function(e){return e.isGrouped||e.isPivoted})),e}function e6(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function e3(e){var t=e.columns,n=e.allColumns,o=e.flatHeaders,r=e.getHooks,i=e.plugins,s=e.dispatch,u=e.autoResetPivot,l=e.manaulPivot,c=e.disablePivot,d=e.defaultCanPivot;g(i,["useGroupBy"],"usePivotColumns");var f=m(e);n.forEach(function(t){var n=t.accessor,o=t.defaultPivot,r=t.disablePivot;t.canPivot=n?z(t.canPivot,!0!==r&&void 0,!0!==c&&void 0,!0):z(t.canPivot,o,d,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell}),o.forEach(function(e){e.getPivotToggleProps=p(r().getPivotToggleProps,{instance:f(),header:e})});var h=m(void 0===u||u);w(function(){h()&&s({type:a.resetPivot})},[s,l?null:t]),Object.assign(e,{togglePivot:function(e,t){s({type:a.togglePivot,columnId:e,value:t})}})}function e8(e){e.allCells.forEach(function(e){e.isPivoted=e.column.isPivoted})}a.resetSelectedRows="resetSelectedRows",a.toggleAllRowsSelected="toggleAllRowsSelected",a.toggleRowSelected="toggleRowSelected",a.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var te=function(e){e.getToggleRowSelectedProps=[tt],e.getToggleAllRowsSelectedProps=[tn],e.getToggleAllPageRowsSelectedProps=[to],e.stateReducers.push(tr),e.useInstance.push(ti),e.prepareRow.push(ts)};te.pluginName="useRowSelect";var tt=function(e,t){var n=t.instance,o=t.row,r=n.manualRowSelectedKey;return[e,{onChange:function(e){o.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!o.original||!o.original[void 0===r?"isSelected":r])||o.isSelected,title:"Toggle Row Selected",indeterminate:o.isSomeSelected}]},tn=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},to=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some(function(e){var t=e.id;return n.state.selectedRowIds[t]}))}]};function tr(e,t,n,o){if(t.type===a.init)return r({selectedRowIds:{}},e);if(t.type===a.resetSelectedRows)return r({},e,{selectedRowIds:o.initialState.selectedRowIds||{}});if(t.type===a.toggleAllRowsSelected){var i=t.value,s=o.isAllRowsSelected,u=o.rowsById,l=o.nonGroupedRowsById,c=void 0===l?u:l,d=Object.assign({},e.selectedRowIds);return(void 0!==i?i:!s)?Object.keys(c).forEach(function(e){d[e]=!0}):Object.keys(c).forEach(function(e){delete d[e]}),r({},e,{selectedRowIds:d})}if(t.type===a.toggleRowSelected){var p=t.id,f=t.value,h=o.rowsById,g=o.selectSubRows,v=void 0===g||g,m=o.getSubRows,y=e.selectedRowIds[p],w=void 0!==f?f:!y;if(y===w)return e;var b=r({},e.selectedRowIds);return function e(t){var n=h[t];if(n&&(n.isGrouped||(w?b[t]=!0:delete b[t]),v&&m(n)))return m(n).forEach(function(t){return e(t.id)})}(p),r({},e,{selectedRowIds:b})}if(t.type===a.toggleAllPageRowsSelected){var R=t.value,S=o.page,x=o.rowsById,C=o.selectSubRows,P=void 0===C||C,z=o.isAllPageRowsSelected,E=o.getSubRows,B=void 0!==R?R:!z,O=r({},e.selectedRowIds);return S.forEach(function(e){return function e(t){var n=x[t];if(n.isGrouped||(B?O[t]=!0:delete O[t]),P&&E(n))return E(n).forEach(function(t){return e(t.id)})}(e.id)}),r({},e,{selectedRowIds:O})}return e}function ti(e){var n=e.data,o=e.rows,r=e.getHooks,i=e.plugins,s=e.rowsById,u=e.nonGroupedRowsById,l=void 0===u?s:u,c=e.autoResetSelectedRows,d=e.state.selectedRowIds,f=e.selectSubRows,h=void 0===f||f,v=e.dispatch,y=e.page,b=e.getSubRows;g(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var R=t.useMemo(function(){var e=[];return o.forEach(function(t){var n=h?function e(t,n,o){if(n[t.id])return!0;var r=o(t);if(r&&r.length){var i=!0,s=!1;return r.forEach(function(t){s&&!i||(e(t,n,o)?s=!0:i=!1)}),!!i||!!s&&null}return!1}(t,d,b):!!d[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)}),e},[o,h,d,b]),S=Boolean(Object.keys(l).length&&Object.keys(d).length),x=S;S&&Object.keys(l).some(function(e){return!d[e]})&&(S=!1),S||y&&y.length&&y.some(function(e){return!d[e.id]})&&(x=!1);var C=m(void 0===c||c);w(function(){C()&&v({type:a.resetSelectedRows})},[v,n]);var P=t.useCallback(function(e){return v({type:a.toggleAllRowsSelected,value:e})},[v]),z=t.useCallback(function(e){return v({type:a.toggleAllPageRowsSelected,value:e})},[v]),E=t.useCallback(function(e,t){return v({type:a.toggleRowSelected,id:e,value:t})},[v]),B=m(e),O=p(r().getToggleAllRowsSelectedProps,{instance:B()}),W=p(r().getToggleAllPageRowsSelectedProps,{instance:B()});Object.assign(e,{selectedFlatRows:R,isAllRowsSelected:S,isAllPageRowsSelected:x,toggleRowSelected:E,toggleAllRowsSelected:P,getToggleAllRowsSelectedProps:O,getToggleAllPageRowsSelectedProps:W,toggleAllPageRowsSelected:z})}function ts(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=p(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var ta=function(e){return{}},tu=function(e){return{}};a.setRowState="setRowState",a.setCellState="setCellState",a.resetRowState="resetRowState";var tl=function(e){e.stateReducers.push(tc),e.useInstance.push(td),e.prepareRow.push(tp)};function tc(e,t,n,o){var i=o.initialRowStateAccessor,s=void 0===i?ta:i,u=o.initialCellStateAccessor,l=o.rowsById;if(t.type===a.init)return r({rowState:{}},e);if(t.type===a.resetRowState)return r({},e,{rowState:o.initialState.rowState||{}});if(t.type===a.setRowState){var c,d=t.rowId,p=t.value,f=void 0!==e.rowState[d]?e.rowState[d]:s(l[d]);return r({},e,{rowState:r({},e.rowState,((c={})[d]=v(p,f),c))})}if(t.type===a.setCellState){var h,g,m,y,w,b=t.rowId,R=t.columnId,S=t.value,x=void 0!==e.rowState[b]?e.rowState[b]:s(l[b]),C=void 0!==(null==x?void 0:null==(h=x.cellState)?void 0:h[R])?x.cellState[R]:(void 0===u?tu:u)(null==(g=l[b])?void 0:null==(m=g.cells)?void 0:m.find(function(e){return e.column.id===R}));return r({},e,{rowState:r({},e.rowState,((w={})[b]=r({},x,{cellState:r({},x.cellState||{},((y={})[R]=v(S,C),y))}),w))})}}function td(e){var n=e.autoResetRowState,o=e.data,r=e.dispatch,i=t.useCallback(function(e,t){return r({type:a.setRowState,rowId:e,value:t})},[r]),s=t.useCallback(function(e,t,n){return r({type:a.setCellState,rowId:e,columnId:t,value:n})},[r]),u=m(void 0===n||n);w(function(){u()&&r({type:a.resetRowState})},[o]),Object.assign(e,{setRowState:i,setCellState:s})}function tp(e,t){var n=t.instance,o=n.initialRowStateAccessor,r=n.initialCellStateAccessor,i=void 0===r?tu:r,s=n.state.rowState;e&&(e.state=void 0!==s[e.id]?s[e.id]:(void 0===o?ta:o)(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach(function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:i(t),t.setState=function(o){return n.setCellState(e.id,t.column.id,o)}}))}tl.pluginName="useRowState",a.resetColumnOrder="resetColumnOrder",a.setColumnOrder="setColumnOrder";var tf=function(e){e.stateReducers.push(th),e.visibleColumnsDeps.push(function(e,t){return[].concat(e,[t.instance.state.columnOrder])}),e.visibleColumns.push(tg),e.useInstance.push(tv)};function th(e,t,n,o){return t.type===a.init?r({columnOrder:[]},e):t.type===a.resetColumnOrder?r({},e,{columnOrder:o.initialState.columnOrder||[]}):t.type===a.setColumnOrder?r({},e,{columnOrder:v(t.columnOrder,e.columnOrder)}):void 0}function tg(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var o=[].concat(n),r=[].concat(e),i=[];r.length&&o.length;)!function(){var e=o.shift(),t=r.findIndex(function(t){return t.id===e});t>-1&&i.push(r.splice(t,1)[0])}();return[].concat(i,r)}function tv(e){var n=e.dispatch;e.setColumnOrder=t.useCallback(function(e){return n({type:a.setColumnOrder,columnOrder:e})},[n])}tf.pluginName="useColumnOrder",c.canResize=!0,a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize";var tm=function(e){e.getResizerProps=[ty],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(tw),e.useInstance.push(tR),e.useInstanceBeforeDimensions.push(tb)},ty=function(e,t){var n=t.instance,o=t.header,r=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var o,i,s,u=(o=[],function e(t){t.columns&&t.columns.length&&t.columns.map(e),o.push(t)}(t),o).map(function(e){return[e.id,e.totalWidth]}),l=n?Math.round(e.touches[0].clientX):e.clientX,c=function(){window.cancelAnimationFrame(i),i=null,r({type:a.columnDoneResizing})},d=function(){window.cancelAnimationFrame(i),i=null,r({type:a.columnResizing,clientX:s})},p=function(e){s=e,i||(i=window.requestAnimationFrame(d))},f={mouse:{moveEvent:"mousemove",moveHandler:function(e){return p(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",f.mouse.moveHandler),document.removeEventListener("mouseup",f.mouse.upHandler),c()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(f.touch.moveEvent,f.touch.moveHandler),document.removeEventListener(f.touch.upEvent,f.touch.moveHandler),c()}}},h=n?f.touch:f.mouse,g=!!function(){if("boolean"==typeof H)return H;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return H=e}()&&{passive:!1};document.addEventListener(h.moveEvent,h.moveHandler,g),document.addEventListener(h.upEvent,h.upHandler,g),r({type:a.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:u,clientX:l})};return[e,{onMouseDown:function(e){return e.persist()||i(e,o)},onTouchStart:function(e){return e.persist()||i(e,o)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function tw(e,t){if(t.type===a.init)return r({columnResizing:{columnWidths:{}}},e);if(t.type===a.resetResize)return r({},e,{columnResizing:{columnWidths:{}}});if(t.type===a.columnStartResizing){var n=t.clientX,o=t.columnId,i=t.columnWidth,s=t.headerIdWidths;return r({},e,{columnResizing:r({},e.columnResizing,{startX:n,headerIdWidths:s,columnWidth:i,isResizingColumn:o})})}if(t.type===a.columnResizing){var u=t.clientX,l=e.columnResizing,c=l.startX,d=l.columnWidth,p=l.headerIdWidths,f=(u-c)/d,h={};return(void 0===p?[]:p).forEach(function(e){var t=e[0],n=e[1];h[t]=Math.max(n+n*f,0)}),r({},e,{columnResizing:r({},e.columnResizing,{columnWidths:r({},e.columnResizing.columnWidths,{},h)})})}return t.type===a.columnDoneResizing?r({},e,{columnResizing:r({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}tm.pluginName="useResizeColumns";var tb=function(e){var t=e.flatHeaders,n=e.disableResizing,o=e.getHooks,r=e.state.columnResizing,i=m(e);t.forEach(function(e){var t=z(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=r.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=r.isResizingColumn===e.id,t&&(e.getResizerProps=p(o().getResizerProps,{instance:i(),header:e}))})};function tR(e){var n=e.plugins,o=e.dispatch,r=e.autoResetResize,i=e.columns;g(n,["useAbsoluteLayout"],"useResizeColumns");var s=m(void 0===r||r);w(function(){s()&&o({type:a.resetResize})},[i]),Object.assign(e,{resetResizing:t.useCallback(function(){return o({type:a.resetResize})},[o])})}var tS={position:"absolute",top:0},tx=function(e){e.getTableBodyProps.push(tC),e.getRowProps.push(tC),e.getHeaderGroupProps.push(tC),e.getFooterGroupProps.push(tC),e.getHeaderProps.push(function(e,t){var n=t.column;return[e,{style:r({},tS,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){var n=t.cell;return[e,{style:r({},tS,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){var n=t.column;return[e,{style:r({},tS,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})};tx.pluginName="useAbsoluteLayout";var tC=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},tP={display:"inline-block",boxSizing:"border-box"},tz=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},tE=function(e){e.getRowProps.push(tz),e.getHeaderGroupProps.push(tz),e.getFooterGroupProps.push(tz),e.getHeaderProps.push(function(e,t){return[e,{style:r({},tP,{width:t.column.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){return[e,{style:r({},tP,{width:t.cell.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){return[e,{style:r({},tP,{width:t.column.totalWidth+"px"})}]})};function tB(e){e.getTableProps.push(tO),e.getRowProps.push(tW),e.getHeaderGroupProps.push(tW),e.getFooterGroupProps.push(tW),e.getHeaderProps.push(tk),e.getCellProps.push(tI),e.getFooterProps.push(tH)}tE.pluginName="useBlockLayout",tB.pluginName="useFlexLayout";var tO=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tW=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tk=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},tI=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},tH=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function tF(e){e.stateReducers.push(tG),e.getTableProps.push(tM),e.getHeaderProps.push(tL),e.getRowProps.push(tj)}a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize",tF.pluginName="useGridLayout";var tM=function(e,t){var n=t.instance;return[e,{style:{display:"grid",gridTemplateColumns:n.visibleColumns.map(function(e){var t;return n.state.gridLayout.columnWidths[e.id]?n.state.gridLayout.columnWidths[e.id]+"px":(null==(t=n.state.columnResizing)?void 0:t.isResizingColumn)?n.state.gridLayout.startWidths[e.id]+"px":"number"==typeof e.width?e.width+"px":e.width}).join(" ")}}]},tL=function(e,t){var n=t.column;return[e,{id:"header-cell-"+n.id,style:{position:"sticky",gridColumn:"span "+n.totalVisibleHeaderCount}}]},tj=function(e,t){var n=t.row;return n.isExpanded?[e,{style:{gridColumn:"1 / "+(n.cells.length+1)}}]:[e,{}]};function tG(e,t,n,o){if(t.type===a.init)return r({gridLayout:{columnWidths:{}}},e);if(t.type===a.resetResize)return r({},e,{gridLayout:{columnWidths:{}}});if(t.type===a.columnStartResizing){var i=t.columnId,s=t.headerIdWidths,u=tN(i);if(void 0!==u){var l=o.visibleColumns.reduce(function(e,t){var n;return r({},e,((n={})[t.id]=tN(t.id),n))},{}),c=o.visibleColumns.reduce(function(e,t){var n;return r({},e,((n={})[t.id]=t.minWidth,n))},{}),d=o.visibleColumns.reduce(function(e,t){var n;return r({},e,((n={})[t.id]=t.maxWidth,n))},{}),p=s.map(function(e){var t=e[0];return[t,tN(t)]});return r({},e,{gridLayout:r({},e.gridLayout,{startWidths:l,minWidths:c,maxWidths:d,headerIdGridWidths:p,columnWidth:u})})}return e}if(t.type===a.columnResizing){var f=t.clientX,h=e.columnResizing.startX,g=e.gridLayout,v=g.columnWidth,m=g.minWidths,y=g.maxWidths,w=g.headerIdGridWidths,b=(f-h)/v,R={};return(void 0===w?[]:w).forEach(function(e){var t=e[0],n=e[1];R[t]=Math.min(Math.max(m[t],n+n*b),y[t])}),r({},e,{gridLayout:r({},e.gridLayout,{columnWidths:r({},e.gridLayout.columnWidths,{},R)})})}return t.type===a.columnDoneResizing?r({},e,{gridLayout:r({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function tN(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}e._UNSTABLE_usePivotColumns=e$,e.actions=a,e.defaultColumn=c,e.defaultGroupByFn=ej,e.defaultOrderByFn=eq,e.defaultRenderer=u,e.emptyRenderer=l,e.ensurePluginOrder=g,e.flexRender=R,e.functionalUpdate=v,e.loopHooks=h,e.makePropGetter=p,e.makeRenderer=b,e.reduceHooks=f,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=tx,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var r,i=t.useRef({}),s=m(e),a=m(n);return t.useCallback((r=o(regeneratorRuntime.mark(function e(){var t,n,r,u=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Array(t=u.length),r=0;r1?n-1:0),i=1;i=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{Z:function(){return o}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/591-51dbdc11ecd7d395.js b/_next/static/chunks/591-51dbdc11ecd7d395.js deleted file mode 100644 index 44674f2..0000000 --- a/_next/static/chunks/591-51dbdc11ecd7d395.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[591],{97415:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return l.default.createElement(s,e,l.default.createElement(s.Group,null,l.default.createElement(o.FaSVG,null,l.default.createElement("path",{fill:"currentColor",d:c(e.variant)}))),l.default.createElement(s.Content,null,e.content?e.content:e.children),e.closable&&l.default.createElement(s.Group,{align:"right"},l.default.createElement(s.Close,null,"close")))},n.BaseAlert=n.styles=void 0;var l=a(t(67294)),r=t(16530),o=t(69829),i={shared:{container:"\n line-height: 1.5em;\n border: 1px solid transparent;\n border-radius: 0.2222em;\n font-weight: 700;\n padding: 1em 0.5em;\n\n & a {\n text-decoration: underline;\n }\n\n & .pg-notification-content>svg {\n overflow: initial;\n }\n ",close:"\n cursor: pointer !important;\n text-align: center;\n text-decoration: none;\n border-radius: 0.2222em;\n padding: 0.4em 0.5em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{success:{container:"\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #2d4821;\n\n & a {\n color: #2b542c;\n }\n ",content:"\n color: #2d4821;\n ",close:"\n color: #2d4821;\n border: 1px solid #2d4821;\n\n &:hover {\n background: #2d4821;\n color: #fff;\n }\n ",group:"\n color: #2d4821;\n "},info:{container:"\n background-color: #d9eaf7;\n border-color: #afd3ee;\n color: #313132;\n\n & a {\n color: #1a5a96;\n }\n ",content:"\n color: #313132;\n ",close:"\n color: #313132;\n border: 1px solid #313132;\n\n &:hover {\n background: #313132;\n color: #fff;\n }\n ",group:"\n color: #313132;\n "},warning:{container:"\n background-color: #f9f1c6;\n border-color: #faebcc;\n color: #6c4a00;\n\n & a {\n color: #66512c;\n }\n ",content:"\n color: #66512c;\n ",close:"\n color: #66512c;\n border: 1px solid #66512c;\n\n &:hover {\n background: #66512c;\n color: #fff;\n }\n ",group:"\n color: #66512c;\n "},danger:{container:"\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a12622;\n\n & a {\n color: #843534;\n }\n ",content:"\n color: #a12622;\n ",close:"\n color: #a12622;\n border: 1px solid #a12622;\n\n &:hover {\n background: #a12622;\n color: #fff;\n }\n ",group:"\n color: #a12622;\n "}},flex:{container:"\n display: flex;\n ",group:"\n margin: auto 0.5rem;\n "}};n.styles=i;var s=(0,r.applyTheme)(i,{defaultProps:{variant:"info",size:"medium",flex:!0},staticProps:[]},{group:{align:{left:"\n margin-right: auto;\n ",right:"\n margin-left: auto;\n "}}});n.BaseAlert=s;var c=function(e){switch(e){case"success":return o.CheckCircle;case"info":return o.InfoCircle;case"warning":return o.ExclamationTriangle;default:return o.ExclamationCircle}}},30180:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.content,t=e.children,a=(0,l.default)(e,["content","children"]);return r.default.createElement(s,a,n?r.default.createElement("p",null,n):t)},n.BaseCallout=n.styles=void 0;var l=a(t(63366)),r=a(t(67294)),o=t(16530),i={shared:{container:"\n border-left-style: solid;\n padding: 1.4em;\n border-left-width: 0.7em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{primary:{container:"\n background-color: #f2f2f2;\n border-left-color: #38598a;\n "}}};n.styles=i;var s=(0,o.applyTheme)(i,{defaultProps:{variant:"primary",size:"medium"},staticProps:[]});n.BaseCallout=s},81092:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.styles=void 0;var a=t(32408),l=t(69829),r={shared:{label:"\n display: block;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n height: 1em;\n line-height: 1em;\n padding-left: 1.5em;\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n ",input:"\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: #606060;\n }\n ",checkmark:"\n position: absolute;\n top: 0;\n left: 0;\n height: 1em;\n width: 1em;\n outline: 2px solid #606060;\n\n &:after {\n content: ' ';\n background-image: "+(0,l.toSvgUrl)(l.Check,"white")+";\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n width: 35px;\n height: 100%;\n text-align: center;\n cursor: pointer;\n pointer-events: none;\n -webkit-transition: .25s all ease;\n -o-transition: .25s all ease;\n transition: .25s all ease;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};n.styles=r;var o=(0,a.applyTheme)(r,{defaultProps:{size:"medium"},staticProps:[]});n.default=o},4290:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.styles=void 0;var a=t(21857),l={shared:{label:"\n display: block;\n margin-bottom: 0.2777em;\n ",input:"\n display: block;\n border: 2px solid #606060;\n border-radius: 0;\n padding: 0.5em 0.6em;\n\n &:focus {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},rounded:{input:"\n border-radius: 0.25em;\n "}};n.styles=l;var r=(0,a.applyTheme)(l,{defaultProps:{size:"medium",rounded:!0},staticProps:["fullWidth"]});n.default=r},35611:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.styles=void 0;var a=t(96282),l=t(69829),r={shared:{label:"\n display: block;\n margin-bottom: 0.2777em;\n ",wrapper:"\n position: relative;\n display: flex;\n background: #fff;\n overflow: hidden;\n border: 2px solid #606060;\n border-radius: 0;\n padding: 0.3em 0;\n\n &:after {\n content: ' ';\n background-image: "+(0,l.toSvgUrl)(l.ChevronDown)+";\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 0.2em;\n width: 1.2em;\n height: 100%;\n text-align: center;\n cursor: pointer;\n pointer-events: none;\n -webkit-transition: .25s all ease;\n -o-transition: .25s all ease;\n transition: .25s all ease;\n }\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n\n &:hover::after {}\n ",input:"\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background: #fff;\n background-image: none;\n display: inline-block;\n flex: 1;\n padding: 0 .5em;\n color: #000;\n cursor: pointer;\n\n &::-ms-expand {\n display: none;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},rounded:{wrapper:"\n border-radius: 0.25em;\n "}};n.styles=r;var o=(0,a.applyTheme)(r,{defaultProps:{size:"medium",rounded:!0,required:!1},staticProps:["fullWidth"],includeWrapper:!0});n.default=o},93635:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.styles=void 0;var a=t(70591),l={shared:{container:"\n border: none;\n ",legend:"\n color: #38598A;\n font-weight: 600;\n font-size: 1.5em;\n margin-bottom: 1em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};n.styles=l;var r=(0,a.applyTheme)(l,{defaultProps:{size:"medium"},staticProps:["fullWidth"],forwardProps:["size","variant","disabled","required"]});n.default=r},51758:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.children,t=(0,l.default)(e,["children"]),a=t.size,o=t.disabled;return r.default.createElement(d,t,r.default.createElement(i.default,{size:a,disabled:o,tabIndex:-1},r.default.createElement(s.FaSVG,null,r.default.createElement("path",{fill:"currentColor",d:s.Upload})),"\xa0",n))},n.BaseFilePicker=n.styles=void 0;var l=a(t(63366)),r=a(t(67294)),o=t(33871),i=a(t(4826)),s=t(69829),c={shared:{label:"\n display: block;\n font-weight: 600;\n margin-bottom: 0.2777em;\n "},size:{small:{label:"\n font-size: 0.8rem;\n "},medium:{label:"\n font-size: 1rem;\n "},large:{label:"\n font-size: 1.2rem;\n "}}};n.styles=c;var d=(0,o.applyTheme)(c,{defaultProps:{size:"medium"},staticProps:["fullWidth"],wrapperExtraStyle:"\n &:hover > button {\n text-decoration: underline;\n opacity: 0.80;\n }\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n "});n.BaseFilePicker=d},64735:function(e,n,t){n.ZP=void 0;var a=(0,t(70623).applyTheme)({},{defaultProps:{},staticProps:[],cols:20,gutter:[5,2]});n.ZP=a},74150:function(e,n,t){var a,l=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e.content,t=e.external,a=e.children,l=(0,o.default)(e,["content","external","children"]);return s.default.createElement(f,(0,r.default)({target:t?"_blank":"_self"},l),n||a,t&&s.default.createElement(s.default.Fragment,null,"\xa0",s.default.createElement(d.FaSVG,null,s.default.createElement("path",{fill:"currentColor",d:d.ExternalLinkAlt}))))},n.sizes=void 0;var r=l(t(87462)),o=l(t(63366)),i=l(t(81880)),s=l(t(67294)),c=l(t(8557)),d=t(69829),u={small:"0.8rem",medium:"1rem",large:"1.2rem"};n.sizes=u;var f=c.default.a(a||(a=(0,i.default)(["\n font-size: ",";\n color: #1a5a96;\n\n &:hover {\n text-decoration: none;\n color: blue;\n }\n\n &:focus {\n outline: 4px solid #3b99fc;\n outline-offset: 1px;\n }\n"])),function(e){return u[e.size||"medium"]})},74857:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.styles=void 0;var a=t(63236),l={shared:{label:"\n display: block;\n position: relative;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n height: 1em;\n line-height: 1em;\n padding-left: 1.5em;\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n ",input:"\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .dot {\n background-color: #ffffff;\n }\n\n &:checked ~ .dot:after {\n display: block;\n }\n ",dot:'\n position: absolute;\n top: 0;\n left: 0;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n box-shadow: 0px 0px 0px 2px #606060 inset;\n\n &:after {\n content: "";\n position: absolute;\n display: none;\n top: 50%;\n left: 50%;\n width: 0.5em;\n height: 0.5em;\n border-radius: 50%;\n background: #606060;\n transform: translate(-50%, -50%);\n }\n '},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};n.styles=l;var r=(0,a.applyTheme)(l,{defaultProps:{size:"medium"},staticProps:[]});n.default=r},9206:function(e,n,t){var a=t(64836);Object.defineProperty(n,"rU",{enumerable:!0,get:function(){return l.default}}),a(t(97415)),a(t(4826)),a(t(30180)),a(t(81092)),a(t(4290)),a(t(35611)),a(t(93635)),a(t(51758)),a(t(26056)),a(t(7282)),a(t(11915));var l=a(t(74150));a(t(89155)),a(t(74857)),a(t(30996)),a(t(56675))},32408:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var l=a(t(87462)),r=a(t(63366)),o=a(t(67294)),i=a(t(86010)),s=t(80927),c=function(e,n){var t=(0,s.processStyle)(e),a=(0,s.createStyleBuilder)(t,n),c=a((n.as||{}).container||"div","container"),d=a("label","label"),u=a("input","input"),f=a("span","checkmark"),p=(0,s.createBootstrap)(t,"checkbox");return function(e){var n=p(e),t=n.id,a=n.name,s=n.label,m=n.ariaLabel,y=n.styleProps,b=n.className,h=n.rest,g=h.style,v=h.labelStyle,x=h.inputStyle,k=h.checkmarkStyle,w=(0,r.default)(h,["style","labelStyle","inputStyle","checkmarkStyle"]);return o.default.createElement(c,(0,l.default)({},y,{style:g,className:(0,i.default)("pg-checkbox",b)}),o.default.createElement(d,(0,l.default)({},y,{htmlFor:t,style:v,className:"pg-checkbox-label"}),o.default.createElement(u,(0,l.default)({"aria-label":m},w,{type:"checkbox",id:t,name:a,style:x,className:"pg-checkbox-input"})),o.default.createElement(f,(0,l.default)({},y,{style:k,className:"checkmark"})),s))}};n.applyTheme=c;var d=c({},{});n.default=d},21857:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var l=a(t(87462)),r=a(t(63366)),o=a(t(67294)),i=a(t(86010)),s=t(80927),c=function(e,n){var t=(0,s.processStyle)(e),a=(0,s.createStyleBuilder)(t,n),c=n.as||{},d=a(c.container||"div","container"),u=a("label","label"),f=n.includeWrapper?a(c.wrapper||"div","wrapper"):null,p=a("input","input"),m=(0,s.createBootstrap)(t,"datepicker");return function(e){var n=m(e),t=n.id,a=n.name,s=n.label,c=n.ariaLabel,y=n.styleProps,b=n.className,h=n.rest,g=h.style,v=h.labelStyle,x=h.inputStyle,k=h.wrapperStyle,w=(0,r.default)(h,["style","labelStyle","inputStyle","wrapperStyle"]),S=o.default.createElement(p,(0,l.default)({"aria-label":c},w,{type:"date",id:t,name:a,style:x,className:"pg-datepicker-input"}));return o.default.createElement(d,(0,l.default)({},y,{style:g,className:(0,i.default)("pg-datepicker",b)}),s&&o.default.createElement(u,(0,l.default)({htmlFor:t},y,{style:v,className:"pg-datepicker-label"}),s),f?o.default.createElement(f,(0,l.default)({},y,{style:k,className:"pg-datepicker-wrapper"}),S):S)}};n.applyTheme=c;var d=c({},{});n.default=d},70591:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var l=a(t(63366)),r=a(t(87462)),o=a(t(67294)),i=a(t(86010)),s=a(t(54061)),c=t(80927),d=function(e,n){var t=(0,c.processStyle)(e),a=(0,c.createStyleBuilder)(t,n),d=a("fieldset","container"),u=a("legend","legend"),f=(0,c.createBootstrap)(t,"fieldset"),p=n.forwardProps||[];return function(e){var n=f(e),t=n.id,a=(n.name,n.ariaLabel,n.styleProps),c=n.children,m=n.className,y=n.rest,b=y.style,h=y.legendStyle,g=y.title,v=(y.disabled,(0,l.default)(y,["style","legendStyle","title","disabled"])),x=(0,s.default)(p,function(n,t){return n[t]=e[t],n},{});return o.default.createElement(d,(0,r.default)({},a,v,{id:t,style:b,className:(0,i.default)("pg-fieldset",m)}),g&&o.default.createElement(u,(0,r.default)({},a,{style:h,className:"pg-fieldset-legend"}),g),function e(n,t){return o.default.Children.map(n,function(n){var a;return o.default.isValidElement(n)?null!==(a=n.props)&&void 0!==a&&a.children?e(n.props.children,t):o.default.cloneElement(n,(0,r.default)({},t,n.props||{})):n})}(c,x))}};n.applyTheme=d;var u=d({},{staticProps:["fullWidth","fullHeight"],forwardProps:["size","variant","disabled","required"]});n.default=u},33871:function(e,n,t){var a,l,r=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var o=r(t(87462)),i=r(t(63366)),s=r(t(81880)),c=r(t(67294)),d=r(t(86010)),u=r(t(78096)),f=t(80927),p="pg-filepicker-input",m=u.default.div(a||(a=(0,s.default)(["\n position: relative;\n overflow: hidden;\n display: inline-block;\n\n ","\n"])),function(e){return e.wrapperExtraStyle}),y=u.default.input.attrs({type:"file"})(l||(l=(0,s.default)(["\n position: absolute;\n left: 0;\n top: 0;\n opacity: 0;\n font-size: 0px;\n width: 100%;\n height: 100%;\n"]))),b=function(e,n){var t=(0,f.processStyle)(e),a=(0,f.createStyleBuilder)(t,n),l=a((n.as||{}).container||"div","container"),r=a("label","label"),s=a("input","input"),u=(0,f.createBootstrap)(t,"filepicker");return function(e){var t=u(e),a=t.id,f=t.name,b=t.label,h=t.ariaLabel,g=t.styleProps,v=t.children,x=t.className,k=t.rest,w=k.style,S=k.labelStyle,P=k.inputStyle,E=k.role,z=k.wrapperStyle,N=(0,i.default)(k,["style","labelStyle","inputStyle","role","wrapperStyle"]);return c.default.createElement(l,(0,o.default)({},g,{style:w,className:(0,d.default)("pg-filepicker",x)}),b&&c.default.createElement(r,(0,o.default)({htmlFor:a},g,{style:S,className:"pg-filepicker-label"}),b),v?c.default.createElement(m,{style:z,className:"pg-filepicker-wrapper",wrapperExtraStyle:n.wrapperExtraStyle||"",role:E},v,c.default.createElement(y,(0,o.default)({"aria-label":h},N,{id:a,name:f,style:P,className:p}))):c.default.createElement(s,(0,o.default)({"aria-label":h},N,{type:"file",id:a,name:f,style:P,className:p})))}};n.applyTheme=b;var h=b({},{});n.default=h},70623:function(e,n,t){var a,l,r=t(64836),o=t(75263);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var i=r(t(63366)),s=r(t(87462)),c=r(t(81880)),d=o(t(67294)),u=r(t(86010)),f=r(t(78096)),p=t(80927),m="pg-grid-col",y={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around"},b={top:"flex-start",center:"center",bottom:"flex-end"},h=d.default.createContext({styleProps:{},Srow:null,Scol:null,cols:16,gutter:0,gutterUnit:"px",justify:"start",align:"start"}),g=function(e,n){var t,r,o=(0,p.processStyle)(e),g=(0,p.createStyleBuilder)(o,n),v=n.as||{},x=g(v.container||"div","container"),k=g((t=v.row||"div",f.default[t](a||(a=(0,c.default)(["\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: inherit;\n -ms-flex-pack: inherit;\n justify-content: inherit;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n ","\n "])),function(e){return"\n margin-left: -"+e.gutterHorizontal+e.gutterUnit+";\n margin-right: -"+e.gutterHorizontal+e.gutterUnit+";\n row-gap: "+e.gutterVertical+e.gutterUnit+";\n & > ."+m+" {\n padding: "+e.gutterVertical+e.gutterUnit+" "+e.gutterHorizontal+e.gutterUnit+";\n }\n justify-content: "+y[e.justify]+";\n align-items: "+b[e.align]+";\n "+(e.collapse?"@media (max-width: "+e.collapse+"px) {\n -webkit-box-orient: vertical;\n -ms-flex-direction: column;\n flex-direction: column;\n & > ."+m+" {\n width: 100% !important;\n }\n }\n ":"")+"\n "})),"row"),w=g((r=v.col||"div",f.default[r](l||(l=(0,c.default)(["\n width: ","%;\n "])),function(e){return e.width})),"col"),S=n.cols,P=void 0===S?16:S,E=n.gutter,z=n.gutterUnit,N=n.justify,_=n.align,C=(0,p.createBootstrap)(o,"grid"),j=function(e){var n=C(e),t=(n.id,n.name,n.label,n.ariaLabel,n.styleProps),a=n.children,l=n.className,r=n.rest,o=r.cols;return d.default.createElement(h.Provider,{value:{styleProps:t,Srow:k,Scol:w,cols:o||P,gutter:E,gutterUnit:z,justify:N,align:_}},d.default.createElement(x,(0,s.default)({},r,{className:(0,u.default)("pg-grid-container",l)}),a))};return j.Row=function(e){var n=(0,d.useContext)(h),t=n.Srow,a=n.styleProps,l=n.gutter,r=n.gutterUnit,o=n.justify,c=n.align,f=e.children,p=e.className,m=e.gutter,y=void 0===m?l:m,b=e.gutterUnit,g=e.justify,v=e.align,x=e.collapse,k=(0,i.default)(e,["children","className","gutter","gutterUnit","justify","align","collapse"]),w=(0,u.default)("pg-grid-row",p),S=0,P=0;if(Array.isArray(y))S=y[0]||0,P=y[1]||0;else{var E=y||0;S=E,P=E}return d.default.createElement(t,(0,s.default)({className:w},a,k,{collapse:x||"",gutterHorizontal:S,gutterVertical:P,gutterUnit:(void 0===b?r:b)||"px",justify:(void 0===g?o:g)||"start",align:(void 0===v?c:v)||"start"}),f)},j.Col=function(e){var n=e.children,t=e.className,a=e.span,l=(0,i.default)(e,["children","className","span"]),r=(0,u.default)(m,t),o=(0,d.useContext)(h),c=o.Scol,f=o.cols,p=o.styleProps;return d.default.createElement(c,(0,s.default)({className:r},p,l,{width:(void 0===a?1:a)/f*100}),n)},j};n.applyTheme=g;var v=g({},{});n.default=v},16530:function(e,n,t){var a,l=t(64836),r=t(75263);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var o=l(t(87462)),i=l(t(63366)),s=l(t(81880)),c=r(t(67294)),d=l(t(86010)),u=l(t(78096)),f=t(80927),p="pg-notification",m="pg-notification-content",y=u.default.input.attrs({type:"checkbox"})(a||(a=(0,s.default)(["\n position: absolute;\n left: -100vw;\n\n &:checked + ."," {\n display: none;\n }\n"])),p),b=c.default.createContext({checkboxId:"",styleProps:{},Sheader:null,Scontent:null,Sgroup:null,Sclose:null}),h=function(e,n,t){void 0===t&&(t={});var a=(0,f.processStyle)(e),l=(0,f.processStyle)(t),r=(0,f.createStyleBuilder)(a,n,l),s=n.as||{},u=r(s.container||"aside","container"),h=r(s.header||"header","header"),g=r(s.content||"div","content"),v=r(s.group||"div","group"),x=r("label","close"),k=(0,f.createBootstrap)(a,"notification"),w=function(e){var n=k(e),t=n.id,a=(n.name,n.label,n.ariaLabel,n.styleProps),l=n.children,r=n.className,s=n.rest,f=s.closable,m=(0,i.default)(s,["closable"]),w=t+"-toggle";return c.default.createElement(b.Provider,{value:{checkboxId:w,styleProps:a,Sheader:h,Scontent:g,Sgroup:v,Sclose:x}},f&&c.default.createElement(y,{id:w}),c.default.createElement(u,(0,o.default)({},a,m,{className:(0,d.default)(p,r)}),l))};return w.Header=function(e){var n=e.children,t=e.className,a=(0,i.default)(e,["children","className"]),l=(0,d.default)("pg-notification-header",t),r=(0,c.useContext)(b),s=r.Sheader,u=r.styleProps;return c.default.createElement(s,(0,o.default)({className:l},u,a),n)},w.Content=function(e){var n=e.children,t=e.className,a=(0,i.default)(e,["children","className"]),l=(0,d.default)(m,t),r=(0,c.useContext)(b),s=r.Scontent,u=r.styleProps;return c.default.createElement(s,(0,o.default)({className:l},u,a),n)},w.Group=function(e){var n=e.children,t=e.className,a=(0,i.default)(e,["children","className"]),l=(0,d.default)(m,t),r=(0,c.useContext)(b),s=r.Sgroup,u=r.styleProps;return c.default.createElement(s,(0,o.default)({className:l},u,a),n)},w.Close=function(e){var n=e.children,t=e.className,a=(0,i.default)(e,["children","className"]),l=(0,d.default)("pg-notification-close",t),r=(0,c.useContext)(b),s=r.Sclose,u=r.checkboxId,f=r.styleProps;return c.default.createElement(s,(0,o.default)({className:l,htmlFor:u},f,{role:"button","aria-label":"close"},a),n)},w};n.applyTheme=h;var g=h({},{},{});n.default=g},63236:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var l=a(t(87462)),r=a(t(63366)),o=a(t(67294)),i=a(t(86010)),s=t(80927),c=function(e,n){var t=(0,s.processStyle)(e),a=(0,s.createStyleBuilder)(t,n),c=a((n.as||{}).container||"div","container"),d=a("label","label"),u=a("input","input"),f=a("span","dot"),p=(0,s.createBootstrap)(t,"radio");return function(e){var n=p(e),t=n.id,a=n.name,s=n.label,m=n.ariaLabel,y=n.styleProps,b=n.className,h=n.rest,g=h.style,v=h.labelStyle,x=h.inputStyle,k=h.dotStyle,w=(0,r.default)(h,["style","labelStyle","inputStyle","dotStyle"]);return o.default.createElement(c,(0,l.default)({},y,{style:g,className:(0,i.default)("pg-radio",b)}),o.default.createElement(d,(0,l.default)({},y,{htmlFor:t,style:v,className:"pg-radio-label"}),o.default.createElement(u,(0,l.default)({"aria-label":m},w,{type:"radio",id:t,name:a,style:x,className:"pg-radio-input"})),o.default.createElement(f,(0,l.default)({},y,{style:k,className:"dot"})),s))}};n.applyTheme=c;var d=c({},{});n.default=d},96282:function(e,n,t){var a=t(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.applyTheme=void 0;var l=a(t(87462)),r=a(t(63366)),o=a(t(67294)),i=a(t(86010)),s=t(80927),c=function(e,n){var t=(0,s.processStyle)(e),a=(0,s.createStyleBuilder)(t,n),c=n.as||{},d=a(c.container||"div","container"),u=a("label","label"),f=n.includeWrapper?a(c.wrapper||"div","wrapper"):null,p=a("select","input"),m=(0,s.createBootstrap)(t,"select");return function(e){var n=m(e),t=n.id,a=n.name,s=n.label,c=n.ariaLabel,y=n.styleProps,b=n.children,h=n.className,g=n.rest,v=g.style,x=g.labelStyle,k=g.inputStyle,w=g.wrapperStyle,S=(0,r.default)(g,["style","labelStyle","inputStyle","wrapperStyle"]),P=o.default.createElement(p,(0,l.default)({"aria-label":c},S,{id:t,name:a,style:k,className:"pg-select-input"}),b);return o.default.createElement(d,(0,l.default)({},y,{style:v,className:(0,i.default)("pg-select",h)}),s&&o.default.createElement(u,(0,l.default)({htmlFor:t},y,{style:x,className:"pg-select-label"}),s),f?o.default.createElement(f,(0,l.default)({},y,{style:w,className:"pg-select-wrapper"}),P):P)}};n.applyTheme=c;var d=c({},{staticProps:["fullWidth"]});n.default=d}}]); \ No newline at end of file diff --git a/_next/static/chunks/760-689396cb8a7e501d.js b/_next/static/chunks/760-689396cb8a7e501d.js deleted file mode 100644 index d6ae2ce..0000000 --- a/_next/static/chunks/760-689396cb8a7e501d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[760],{91296:function(t,e,n){var r=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=f||s||Function("return this")(),p=Object.prototype.toString,v=Math.max,y=Math.min,b=function(){return l.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==p.call(e))return r;if(d(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=d(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var f=u.test(t);return f||c.test(t)?a(t.slice(2),f?2:8):i.test(t)?r:+t}t.exports=function(t,e,n){var r,o,i,u,c,a,f=0,s=!1,l=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function g(e){var n=r,i=o;return r=o=void 0,f=e,u=t.apply(i,n)}function h(t){var n=t-a,r=t-f;return void 0===a||n>=e||n<0||l&&r>=i}function O(){var t,n,r,o=b();if(h(o))return m(o);c=setTimeout(O,(t=o-a,n=o-f,r=e-t,l?y(r,i-n):r))}function m(t){return(c=void 0,p&&r)?g(t):(r=o=void 0,u)}function S(){var t,n=b(),i=h(n);if(r=arguments,o=this,a=n,i){if(void 0===c)return f=t=a,c=setTimeout(O,e),s?g(t):u;if(l)return c=setTimeout(O,e),g(a)}return void 0===c&&(c=setTimeout(O,e)),u}return e=j(e)||0,d(n)&&(s=!!n.leading,i=(l="maxWait"in n)?v(j(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),S.cancel=function(){void 0!==c&&clearTimeout(c),f=0,r=a=o=c=void 0},S.flush=function(){return void 0===c?u:m(b())},S}},99245:function(t,e,n){t=n.nmd(t);var r,o,i,u="[object Map]",c="[object Promise]",a="[object Set]",f="[object WeakMap]",s="[object DataView]",l=/^\[object .+?Constructor\]$/,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=p||v||Function("return this")(),b=e&&!e.nodeType&&e,d=b&&t&&!t.nodeType&&t,j=d&&d.exports===b,g=Function.prototype,h=Object.prototype,O=y["__core-js_shared__"],m=(r=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",S=g.toString,Z=h.hasOwnProperty,w=h.toString,k=RegExp("^"+S.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=j?y.Buffer:void 0,E=h.propertyIsEnumerable,_=A?A.isBuffer:void 0,x=(o=Object.keys,i=Object,function(t){return o(i(t))}),T=D(y,"DataView"),$=D(y,"Map"),C=D(y,"Promise"),I=D(y,"Set"),M=D(y,"WeakMap"),F=!E.call({valueOf:1},"valueOf"),P=N(T),R=N($),L=N(C),W=N(I),B=N(M);function D(t,e){var n=null==t?void 0:t[e];return!(!J(n)||m&&m in n)&&(H(n)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(n)?k:l).test(N(n))?n:void 0}var V=function(t){return w.call(t)};function N(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(T&&V(new T(new ArrayBuffer(1)))!=s||$&&V(new $)!=u||C&&V(C.resolve())!=c||I&&V(new I)!=a||M&&V(new M)!=f)&&(V=function(t){var e=w.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?N(n):void 0;if(r)switch(r){case P:return s;case R:return u;case L:return c;case W:return a;case B:return f}return e});var z=Array.isArray;function G(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=9007199254740991&&!H(t)}var q=_||function(){return!1};function H(t){var e=J(t)?w.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function J(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){if(G(t)&&(z(t)||"string"==typeof t||"function"==typeof t.splice||q(t)||t&&"object"==typeof t&&G(t)&&Z.call(t,"callee")&&(!E.call(t,"callee")||"[object Arguments]"==w.call(t))))return!t.length;var e,n,r=V(t);if(r==u||r==a)return!t.size;if(F||(n="function"==typeof(e=t&&t.constructor)&&e.prototype||h,t===n))return!x(t).length;for(var o in t)if(Z.call(t,o))return!1;return!0}},35685:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r=n(2717),o=n(67294),i=n(28648),u=n(65342),c=n(28549),a=n(33417),f=n(70292),s=n(30138),l=n(17609),p=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];n(73935),n(73469);var v=(0,o.forwardRef)(function(t,e){var n,v,y,b,d,j,g,h,O,m,S,Z,w,k,A,E,_,x,T,$,C,I,M,F,P,R,L,W,B,D,V,N,z,G,q,H,J,K,Q,U,X,Y,tt,te,tn,tr,to,ti,tu,tc,ta=(v=void 0!==(n=t.defaultOptions)&&n,b=void 0!==(y=t.cacheOptions)&&y,d=t.loadOptions,t.options,j=t.isLoading,g=t.onInputChange,h=t.filterOption,m=(O=(0,s.Z)(t,p)).inputValue,S=(0,o.useRef)(void 0),Z=(0,o.useRef)(!1),w=(0,o.useState)(Array.isArray(v)?v:void 0),A=(k=(0,f.Z)(w,2))[0],E=k[1],_=(0,o.useState)(void 0!==m?m:""),T=(x=(0,f.Z)(_,2))[0],$=x[1],C=(0,o.useState)(!0===v),M=(I=(0,f.Z)(C,2))[0],F=I[1],P=(0,o.useState)(void 0),L=(R=(0,f.Z)(P,2))[0],W=R[1],B=(0,o.useState)([]),V=(D=(0,f.Z)(B,2))[0],N=D[1],z=(0,o.useState)(!1),q=(G=(0,f.Z)(z,2))[0],H=G[1],J=(0,o.useState)({}),Q=(K=(0,f.Z)(J,2))[0],U=K[1],X=(0,o.useState)(void 0),tt=(Y=(0,f.Z)(X,2))[0],te=Y[1],tn=(0,o.useState)(void 0),to=(tr=(0,f.Z)(tn,2))[0],ti=tr[1],b!==to&&(U({}),ti(b)),v!==tt&&(E(Array.isArray(v)?v:void 0),te(v)),(0,o.useEffect)(function(){return Z.current=!0,function(){Z.current=!1}},[]),tu=(0,o.useCallback)(function(t,e){if(!d)return e();var n=d(t,e);n&&"function"==typeof n.then&&n.then(e,function(){return e()})},[d]),(0,o.useEffect)(function(){!0===v&&tu(T,function(t){Z.current&&(E(t||[]),F(!!S.current))})},[]),tc=(0,o.useCallback)(function(t,e){var n=(0,l.L)(t,e,g);if(!n){S.current=void 0,$(""),W(""),N([]),F(!1),H(!1);return}if(b&&Q[n])$(n),W(n),N(Q[n]),F(!1),H(!1);else{var r=S.current={};$(n),F(!0),H(!L),tu(n,function(t){Z&&r===S.current&&(S.current=void 0,F(!1),W(n),N(t||[]),H(!1),U(t?(0,a.Z)((0,a.Z)({},Q),{},(0,c.Z)({},n,t)):Q))})}},[b,tu,L,Q,g]),(0,a.Z)((0,a.Z)({},O),{},{options:q?[]:T&&L?V:A||[],isLoading:M||void 0!==j&&j,onInputChange:tc,filterOption:void 0===h?null:h})),tf=(0,u.u)(ta);return o.createElement(i.S,(0,r.Z)({ref:e},tf))})},27812:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(52587),o=n(2937);function i(t){return function(t){if(Array.isArray(t))return(0,r.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.Z)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]); \ No newline at end of file diff --git a/_next/static/chunks/830-65d2a33cc746e328.js b/_next/static/chunks/830-65d2a33cc746e328.js new file mode 100644 index 0000000..7172576 --- /dev/null +++ b/_next/static/chunks/830-65d2a33cc746e328.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[830],{35611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(96282),a=n(69829),i={shared:{label:"\n display: block;\n margin-bottom: 0.2777em;\n ",wrapper:"\n position: relative;\n display: flex;\n background: #fff;\n overflow: hidden;\n border: 2px solid #606060;\n border-radius: 0;\n padding: 0.3em 0;\n\n &:after {\n content: ' ';\n background-image: "+(0,a.toSvgUrl)(a.ChevronDown)+";\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 0.2em;\n width: 1.2em;\n height: 100%;\n text-align: center;\n cursor: pointer;\n pointer-events: none;\n -webkit-transition: .25s all ease;\n -o-transition: .25s all ease;\n transition: .25s all ease;\n }\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n\n &:hover::after {}\n ",input:"\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background: #fff;\n background-image: none;\n display: inline-block;\n flex: 1;\n padding: 0 .5em;\n color: #000;\n cursor: pointer;\n\n &::-ms-expand {\n display: none;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},rounded:{wrapper:"\n border-radius: 0.25em;\n "}};t.styles=i;var l=(0,r.applyTheme)(i,{defaultProps:{size:"medium",rounded:!0,required:!1},staticProps:["fullWidth"],includeWrapper:!0});t.default=l},64735:function(e,t,n){"use strict";t.ZP=void 0;var r=(0,n(70623).applyTheme)({},{defaultProps:{},staticProps:[],cols:20,gutter:[5,2]});t.ZP=r},74150:function(e,t,n){"use strict";var r,a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.content,n=e.external,r=e.children,a=(0,l.default)(e,["content","external","children"]);return u.default.createElement(f,(0,i.default)({target:n?"_blank":"_self"},a),t||r,n&&u.default.createElement(u.default.Fragment,null,"\xa0",u.default.createElement(c.FaSVG,null,u.default.createElement("path",{fill:"currentColor",d:c.ExternalLinkAlt}))))},t.sizes=void 0;var i=a(n(87462)),l=a(n(63366)),o=a(n(81880)),u=a(n(67294)),s=a(n(8557)),c=n(69829),d={small:"0.8rem",medium:"1rem",large:"1.2rem"};t.sizes=d;var f=s.default.a(r||(r=(0,o.default)(["\n font-size: ",";\n color: #1a5a96;\n\n &:hover {\n text-decoration: none;\n color: blue;\n }\n\n &:focus {\n outline: 4px solid #3b99fc;\n outline-offset: 1px;\n }\n"])),function(e){return d[e.size||"medium"]})},74857:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(63236),a={shared:{label:"\n display: block;\n position: relative;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n height: 1em;\n line-height: 1em;\n padding-left: 1.5em;\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n ",input:"\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n\n &:checked ~ .dot {\n background-color: #ffffff;\n }\n\n &:checked ~ .dot:after {\n display: block;\n }\n ",dot:'\n position: absolute;\n top: 0;\n left: 0;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n box-shadow: 0px 0px 0px 2px #606060 inset;\n\n &:after {\n content: "";\n position: absolute;\n display: none;\n top: 50%;\n left: 50%;\n width: 0.5em;\n height: 0.5em;\n border-radius: 50%;\n background: #606060;\n transform: translate(-50%, -50%);\n }\n '},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};t.styles=a;var i=(0,r.applyTheme)(a,{defaultProps:{size:"medium"},staticProps:[]});t.default=i},70623:function(e,t,n){"use strict";var r,a,i=n(64836),l=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=i(n(63366)),u=i(n(87462)),s=i(n(81880)),c=l(n(67294)),d=i(n(86010)),f=i(n(78096)),p=n(80927),m="pg-grid-col",v={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around"},g={top:"flex-start",center:"center",bottom:"flex-end"},y=c.default.createContext({styleProps:{},Srow:null,Scol:null,cols:16,gutter:0,gutterUnit:"px",justify:"start",align:"start"}),b=function(e,t){var n,i,l=(0,p.processStyle)(e),b=(0,p.createStyleBuilder)(l,t),h=t.as||{},x=b(h.container||"div","container"),w=b((n=h.row||"div",f.default[n](r||(r=(0,s.default)(["\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-pack: inherit;\n -ms-flex-pack: inherit;\n justify-content: inherit;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n ","\n "])),function(e){return"\n margin-left: -"+e.gutterHorizontal+e.gutterUnit+";\n margin-right: -"+e.gutterHorizontal+e.gutterUnit+";\n row-gap: "+e.gutterVertical+e.gutterUnit+";\n & > ."+m+" {\n padding: "+e.gutterVertical+e.gutterUnit+" "+e.gutterHorizontal+e.gutterUnit+";\n }\n justify-content: "+v[e.justify]+";\n align-items: "+g[e.align]+";\n "+(e.collapse?"@media (max-width: "+e.collapse+"px) {\n -webkit-box-orient: vertical;\n -ms-flex-direction: column;\n flex-direction: column;\n & > ."+m+" {\n width: 100% !important;\n }\n }\n ":"")+"\n "})),"row"),S=b((i=h.col||"div",f.default[i](a||(a=(0,s.default)(["\n width: ","%;\n "])),function(e){return e.width})),"col"),k=t.cols,j=void 0===k?16:k,E=t.gutter,P=t.gutterUnit,z=t.justify,O=t.align,N=(0,p.createBootstrap)(l,"grid"),Z=function(e){var t=N(e),n=(t.id,t.name,t.label,t.ariaLabel,t.styleProps),r=t.children,a=t.className,i=t.rest,l=i.cols;return c.default.createElement(y.Provider,{value:{styleProps:n,Srow:w,Scol:S,cols:l||j,gutter:E,gutterUnit:P,justify:z,align:O}},c.default.createElement(x,(0,u.default)({},i,{className:(0,d.default)("pg-grid-container",a)}),r))};return Z.Row=function(e){var t=(0,c.useContext)(y),n=t.Srow,r=t.styleProps,a=t.gutter,i=t.gutterUnit,l=t.justify,s=t.align,f=e.children,p=e.className,m=e.gutter,v=void 0===m?a:m,g=e.gutterUnit,b=e.justify,h=e.align,x=e.collapse,w=(0,o.default)(e,["children","className","gutter","gutterUnit","justify","align","collapse"]),S=(0,d.default)("pg-grid-row",p),k=0,j=0;if(Array.isArray(v))k=v[0]||0,j=v[1]||0;else{var E=v||0;k=E,j=E}return c.default.createElement(n,(0,u.default)({className:S},r,w,{collapse:x||"",gutterHorizontal:k,gutterVertical:j,gutterUnit:(void 0===g?i:g)||"px",justify:(void 0===b?l:b)||"start",align:(void 0===h?s:h)||"start"}),f)},Z.Col=function(e){var t=e.children,n=e.className,r=e.span,a=(0,o.default)(e,["children","className","span"]),i=(0,d.default)(m,n),l=(0,c.useContext)(y),s=l.Scol,f=l.cols,p=l.styleProps;return c.default.createElement(s,(0,u.default)({className:i},p,a,{width:(void 0===r?1:r)/f*100}),t)},Z};t.applyTheme=b;var h=b({},{});t.default=h},63236:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var a=r(n(87462)),i=r(n(63366)),l=r(n(67294)),o=r(n(86010)),u=n(80927),s=function(e,t){var n=(0,u.processStyle)(e),r=(0,u.createStyleBuilder)(n,t),s=r((t.as||{}).container||"div","container"),c=r("label","label"),d=r("input","input"),f=r("span","dot"),p=(0,u.createBootstrap)(n,"radio");return function(e){var t=p(e),n=t.id,r=t.name,u=t.label,m=t.ariaLabel,v=t.styleProps,g=t.className,y=t.rest,b=y.style,h=y.labelStyle,x=y.inputStyle,w=y.dotStyle,S=(0,i.default)(y,["style","labelStyle","inputStyle","dotStyle"]);return l.default.createElement(s,(0,a.default)({},v,{style:b,className:(0,o.default)("pg-radio",g)}),l.default.createElement(c,(0,a.default)({},v,{htmlFor:n,style:h,className:"pg-radio-label"}),l.default.createElement(d,(0,a.default)({"aria-label":m},S,{type:"radio",id:n,name:r,style:x,className:"pg-radio-input"})),l.default.createElement(f,(0,a.default)({},v,{style:w,className:"dot"})),u))}};t.applyTheme=s;var c=s({},{});t.default=c},96282:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var a=r(n(87462)),i=r(n(63366)),l=r(n(67294)),o=r(n(86010)),u=n(80927),s=function(e,t){var n=(0,u.processStyle)(e),r=(0,u.createStyleBuilder)(n,t),s=t.as||{},c=r(s.container||"div","container"),d=r("label","label"),f=t.includeWrapper?r(s.wrapper||"div","wrapper"):null,p=r("select","input"),m=(0,u.createBootstrap)(n,"select");return function(e){var t=m(e),n=t.id,r=t.name,u=t.label,s=t.ariaLabel,v=t.styleProps,g=t.children,y=t.className,b=t.rest,h=b.style,x=b.labelStyle,w=b.inputStyle,S=b.wrapperStyle,k=(0,i.default)(b,["style","labelStyle","inputStyle","wrapperStyle"]),j=l.default.createElement(p,(0,a.default)({"aria-label":s},k,{id:n,name:r,style:w,className:"pg-select-input"}),g);return l.default.createElement(c,(0,a.default)({},v,{style:h,className:(0,o.default)("pg-select",y)}),u&&l.default.createElement(d,(0,a.default)({htmlFor:n},v,{style:x,className:"pg-select-label"}),u),f?l.default.createElement(f,(0,a.default)({},v,{style:S,className:"pg-select-wrapper"}),j):j)}};t.applyTheme=s;var c=s({},{staticProps:["fullWidth"]});t.default=c},91296:function(e,t,n){var r=0/0,a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=s||c||Function("return this")(),f=Object.prototype.toString,p=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var s=l.test(e);return s||o.test(e)?u(e.slice(2),s?2:8):i.test(e)?r:+e}e.exports=function(e,t,n){var r,a,i,l,o,u,s=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=r,i=a;return r=a=void 0,s=t,l=e.apply(i,n)}function h(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||d&&r>=i}function x(){var e,n,r,a=v();if(h(a))return w(a);o=setTimeout(x,(e=a-u,n=a-s,r=t-e,d?m(r,i-n):r))}function w(e){return(o=void 0,f&&r)?b(e):(r=a=void 0,l)}function S(){var e,n=v(),i=h(n);if(r=arguments,a=this,u=n,i){if(void 0===o)return s=e=u,o=setTimeout(x,t),c?b(e):l;if(d)return o=setTimeout(x,t),b(u)}return void 0===o&&(o=setTimeout(x,t)),l}return t=y(t)||0,g(n)&&(c=!!n.leading,i=(d="maxWait"in n)?p(y(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==o&&clearTimeout(o),s=0,r=u=a=o=void 0},S.flush=function(){return void 0===o?l:w(v())},S}},35685:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(2717),a=n(67294),i=n(28648),l=n(65342),o=n(28549),u=n(33417),s=n(70292),c=n(30138),d=n(17609),f=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];n(73935),n(73469);var p=(0,a.forwardRef)(function(e,t){var n,p,m,v,g,y,b,h,x,w,S,k,j,E,P,z,O,N,Z,_,C,T,U,B,L,M,A,F,W,V,H,I,R,$,D,q,G,J,K,Q,X,Y,ee,et,en,er,ea,ei,el,eo,eu=(p=void 0!==(n=e.defaultOptions)&&n,v=void 0!==(m=e.cacheOptions)&&m,g=e.loadOptions,e.options,y=e.isLoading,b=e.onInputChange,h=e.filterOption,w=(x=(0,c.Z)(e,f)).inputValue,S=(0,a.useRef)(void 0),k=(0,a.useRef)(!1),j=(0,a.useState)(Array.isArray(p)?p:void 0),P=(E=(0,s.Z)(j,2))[0],z=E[1],O=(0,a.useState)(void 0!==w?w:""),Z=(N=(0,s.Z)(O,2))[0],_=N[1],C=(0,a.useState)(!0===p),U=(T=(0,s.Z)(C,2))[0],B=T[1],L=(0,a.useState)(void 0),A=(M=(0,s.Z)(L,2))[0],F=M[1],W=(0,a.useState)([]),H=(V=(0,s.Z)(W,2))[0],I=V[1],R=(0,a.useState)(!1),D=($=(0,s.Z)(R,2))[0],q=$[1],G=(0,a.useState)({}),K=(J=(0,s.Z)(G,2))[0],Q=J[1],X=(0,a.useState)(void 0),ee=(Y=(0,s.Z)(X,2))[0],et=Y[1],en=(0,a.useState)(void 0),ea=(er=(0,s.Z)(en,2))[0],ei=er[1],v!==ea&&(Q({}),ei(v)),p!==ee&&(z(Array.isArray(p)?p:void 0),et(p)),(0,a.useEffect)(function(){return k.current=!0,function(){k.current=!1}},[]),el=(0,a.useCallback)(function(e,t){if(!g)return t();var n=g(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[g]),(0,a.useEffect)(function(){!0===p&&el(Z,function(e){k.current&&(z(e||[]),B(!!S.current))})},[]),eo=(0,a.useCallback)(function(e,t){var n=(0,d.L)(e,t,b);if(!n){S.current=void 0,_(""),F(""),I([]),B(!1),q(!1);return}if(v&&K[n])_(n),F(n),I(K[n]),B(!1),q(!1);else{var r=S.current={};_(n),B(!0),q(!A),el(n,function(e){k&&r===S.current&&(S.current=void 0,B(!1),F(n),I(e||[]),q(!1),Q(e?(0,u.Z)((0,u.Z)({},K),{},(0,o.Z)({},n,e)):K))})}},[v,el,A,K,b]),(0,u.Z)((0,u.Z)({},x),{},{options:D?[]:Z&&A?H:P||[],isLoading:U||void 0!==y&&y,onInputChange:eo,filterOption:void 0===h?null:h})),es=(0,l.u)(eu);return a.createElement(i.S,(0,r.Z)({ref:t},es))})}}]); \ No newline at end of file diff --git a/_next/static/chunks/908-3110db19f4b5dcda.js b/_next/static/chunks/908-3110db19f4b5dcda.js new file mode 100644 index 0000000..2f3eeab --- /dev/null +++ b/_next/static/chunks/908-3110db19f4b5dcda.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[908],{97415:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return o.default.createElement(l,e,o.default.createElement(l.Group,null,o.default.createElement(s.FaSVG,null,o.default.createElement("path",{fill:"currentColor",d:u(e.variant)}))),o.default.createElement(l.Content,null,e.content?e.content:e.children),e.closable&&o.default.createElement(l.Group,{align:"right"},o.default.createElement(l.Close,null,"close")))},t.BaseAlert=t.styles=void 0;var o=r(n(67294)),i=n(16530),s=n(69829),a={shared:{container:"\n line-height: 1.5em;\n border: 1px solid transparent;\n border-radius: 0.2222em;\n font-weight: 700;\n padding: 1em 0.5em;\n\n & a {\n text-decoration: underline;\n }\n\n & .pg-notification-content>svg {\n overflow: initial;\n }\n ",close:"\n cursor: pointer !important;\n text-align: center;\n text-decoration: none;\n border-radius: 0.2222em;\n padding: 0.4em 0.5em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{success:{container:"\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #2d4821;\n\n & a {\n color: #2b542c;\n }\n ",content:"\n color: #2d4821;\n ",close:"\n color: #2d4821;\n border: 1px solid #2d4821;\n\n &:hover {\n background: #2d4821;\n color: #fff;\n }\n ",group:"\n color: #2d4821;\n "},info:{container:"\n background-color: #d9eaf7;\n border-color: #afd3ee;\n color: #313132;\n\n & a {\n color: #1a5a96;\n }\n ",content:"\n color: #313132;\n ",close:"\n color: #313132;\n border: 1px solid #313132;\n\n &:hover {\n background: #313132;\n color: #fff;\n }\n ",group:"\n color: #313132;\n "},warning:{container:"\n background-color: #f9f1c6;\n border-color: #faebcc;\n color: #6c4a00;\n\n & a {\n color: #66512c;\n }\n ",content:"\n color: #66512c;\n ",close:"\n color: #66512c;\n border: 1px solid #66512c;\n\n &:hover {\n background: #66512c;\n color: #fff;\n }\n ",group:"\n color: #66512c;\n "},danger:{container:"\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a12622;\n\n & a {\n color: #843534;\n }\n ",content:"\n color: #a12622;\n ",close:"\n color: #a12622;\n border: 1px solid #a12622;\n\n &:hover {\n background: #a12622;\n color: #fff;\n }\n ",group:"\n color: #a12622;\n "}},flex:{container:"\n display: flex;\n ",group:"\n margin: auto 0.5rem;\n "}};t.styles=a;var l=(0,i.applyTheme)(a,{defaultProps:{variant:"info",size:"medium",flex:!0},staticProps:[]},{group:{align:{left:"\n margin-right: auto;\n ",right:"\n margin-left: auto;\n "}}});t.BaseAlert=l;var u=function(e){switch(e){case"success":return s.CheckCircle;case"info":return s.InfoCircle;case"warning":return s.ExclamationTriangle;default:return s.ExclamationCircle}}},30180:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.content,n=e.children,r=(0,o.default)(e,["content","children"]);return i.default.createElement(l,r,t?i.default.createElement("p",null,t):n)},t.BaseCallout=t.styles=void 0;var o=r(n(63366)),i=r(n(67294)),s=n(16530),a={shared:{container:"\n border-left-style: solid;\n padding: 1.4em;\n border-left-width: 0.7em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{primary:{container:"\n background-color: #f2f2f2;\n border-left-color: #38598a;\n "}}};t.styles=a;var l=(0,s.applyTheme)(a,{defaultProps:{variant:"primary",size:"medium"},staticProps:[]});t.BaseCallout=l},81092:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(32408),o=n(69829),i={shared:{label:"\n display: block;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n height: 1em;\n line-height: 1em;\n padding-left: 1.5em;\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n ",input:"\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n\n &:checked ~ .checkmark {\n background-color: #606060;\n }\n ",checkmark:"\n position: absolute;\n top: 0;\n left: 0;\n height: 1em;\n width: 1em;\n outline: 2px solid #606060;\n\n &:after {\n content: ' ';\n background-image: "+(0,o.toSvgUrl)(o.Check,"white")+";\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n width: 35px;\n height: 100%;\n text-align: center;\n cursor: pointer;\n pointer-events: none;\n -webkit-transition: .25s all ease;\n -o-transition: .25s all ease;\n transition: .25s all ease;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};t.styles=i;var s=(0,r.applyTheme)(i,{defaultProps:{size:"medium"},staticProps:[]});t.default=s},4290:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(21857),o={shared:{label:"\n display: block;\n margin-bottom: 0.2777em;\n ",input:"\n display: block;\n border: 2px solid #606060;\n border-radius: 0;\n padding: 0.5em 0.6em;\n\n &:focus {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},rounded:{input:"\n border-radius: 0.25em;\n "}};t.styles=o;var i=(0,r.applyTheme)(o,{defaultProps:{size:"medium",rounded:!0},staticProps:["fullWidth"]});t.default=i},93635:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(70591),o={shared:{container:"\n border: none;\n ",legend:"\n color: #38598A;\n font-weight: 600;\n font-size: 1.5em;\n margin-bottom: 1em;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}}};t.styles=o;var i=(0,r.applyTheme)(o,{defaultProps:{size:"medium"},staticProps:["fullWidth"],forwardProps:["size","variant","disabled","required"]});t.default=i},51758:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.children,n=(0,o.default)(e,["children"]),r=n.size,s=n.disabled;return i.default.createElement(c,n,i.default.createElement(a.default,{size:r,disabled:s,tabIndex:-1},i.default.createElement(l.FaSVG,null,i.default.createElement("path",{fill:"currentColor",d:l.Upload})),"\xa0",t))},t.BaseFilePicker=t.styles=void 0;var o=r(n(63366)),i=r(n(67294)),s=n(33871),a=r(n(4826)),l=n(69829),u={shared:{label:"\n display: block;\n font-weight: 600;\n margin-bottom: 0.2777em;\n "},size:{small:{label:"\n font-size: 0.8rem;\n "},medium:{label:"\n font-size: 1rem;\n "},large:{label:"\n font-size: 1.2rem;\n "}}};t.styles=u;var c=(0,s.applyTheme)(u,{defaultProps:{size:"medium"},staticProps:["fullWidth"],wrapperExtraStyle:"\n &:hover > button {\n text-decoration: underline;\n opacity: 0.80;\n }\n\n &:focus-within {\n outline: 4px solid #3B99FC;\n outline-offset: 1px;\n }\n "});t.BaseFilePicker=c},9206:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"rU",{enumerable:!0,get:function(){return o.default}}),r(n(97415)),r(n(4826)),r(n(30180)),r(n(81092)),r(n(4290)),r(n(35611)),r(n(93635)),r(n(51758)),r(n(26056)),r(n(7282)),r(n(11915));var o=r(n(74150));r(n(89155)),r(n(74857)),r(n(30996)),r(n(56675))},32408:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=r(n(87462)),i=r(n(63366)),s=r(n(67294)),a=r(n(86010)),l=n(80927),u=function(e,t){var n=(0,l.processStyle)(e),r=(0,l.createStyleBuilder)(n,t),u=r((t.as||{}).container||"div","container"),c=r("label","label"),d=r("input","input"),p=r("span","checkmark"),f=(0,l.createBootstrap)(n,"checkbox");return function(e){var t=f(e),n=t.id,r=t.name,l=t.label,h=t.ariaLabel,g=t.styleProps,v=t.className,m=t.rest,y=m.style,w=m.labelStyle,b=m.inputStyle,R=m.checkmarkStyle,S=(0,i.default)(m,["style","labelStyle","inputStyle","checkmarkStyle"]);return s.default.createElement(u,(0,o.default)({},g,{style:y,className:(0,a.default)("pg-checkbox",v)}),s.default.createElement(c,(0,o.default)({},g,{htmlFor:n,style:w,className:"pg-checkbox-label"}),s.default.createElement(d,(0,o.default)({"aria-label":h},S,{type:"checkbox",id:n,name:r,style:b,className:"pg-checkbox-input"})),s.default.createElement(p,(0,o.default)({},g,{style:R,className:"checkmark"})),l))}};t.applyTheme=u;var c=u({},{});t.default=c},21857:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=r(n(87462)),i=r(n(63366)),s=r(n(67294)),a=r(n(86010)),l=n(80927),u=function(e,t){var n=(0,l.processStyle)(e),r=(0,l.createStyleBuilder)(n,t),u=t.as||{},c=r(u.container||"div","container"),d=r("label","label"),p=t.includeWrapper?r(u.wrapper||"div","wrapper"):null,f=r("input","input"),h=(0,l.createBootstrap)(n,"datepicker");return function(e){var t=h(e),n=t.id,r=t.name,l=t.label,u=t.ariaLabel,g=t.styleProps,v=t.className,m=t.rest,y=m.style,w=m.labelStyle,b=m.inputStyle,R=m.wrapperStyle,S=(0,i.default)(m,["style","labelStyle","inputStyle","wrapperStyle"]),x=s.default.createElement(f,(0,o.default)({"aria-label":u},S,{type:"date",id:n,name:r,style:b,className:"pg-datepicker-input"}));return s.default.createElement(c,(0,o.default)({},g,{style:y,className:(0,a.default)("pg-datepicker",v)}),l&&s.default.createElement(d,(0,o.default)({htmlFor:n},g,{style:w,className:"pg-datepicker-label"}),l),p?s.default.createElement(p,(0,o.default)({},g,{style:R,className:"pg-datepicker-wrapper"}),x):x)}};t.applyTheme=u;var c=u({},{});t.default=c},70591:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var o=r(n(63366)),i=r(n(87462)),s=r(n(67294)),a=r(n(86010)),l=r(n(54061)),u=n(80927),c=function(e,t){var n=(0,u.processStyle)(e),r=(0,u.createStyleBuilder)(n,t),c=r("fieldset","container"),d=r("legend","legend"),p=(0,u.createBootstrap)(n,"fieldset"),f=t.forwardProps||[];return function(e){var t=p(e),n=t.id,r=(t.name,t.ariaLabel,t.styleProps),u=t.children,h=t.className,g=t.rest,v=g.style,m=g.legendStyle,y=g.title,w=(g.disabled,(0,o.default)(g,["style","legendStyle","title","disabled"])),b=(0,l.default)(f,function(t,n){return t[n]=e[n],t},{});return s.default.createElement(c,(0,i.default)({},r,w,{id:n,style:v,className:(0,a.default)("pg-fieldset",h)}),y&&s.default.createElement(d,(0,i.default)({},r,{style:m,className:"pg-fieldset-legend"}),y),function e(t,n){return s.default.Children.map(t,function(t){var r;return s.default.isValidElement(t)?null!==(r=t.props)&&void 0!==r&&r.children?e(t.props.children,n):s.default.cloneElement(t,(0,i.default)({},n,t.props||{})):t})}(u,b))}};t.applyTheme=c;var d=c({},{staticProps:["fullWidth","fullHeight"],forwardProps:["size","variant","disabled","required"]});t.default=d},33871:function(e,t,n){"use strict";var r,o,i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var s=i(n(87462)),a=i(n(63366)),l=i(n(81880)),u=i(n(67294)),c=i(n(86010)),d=i(n(78096)),p=n(80927),f="pg-filepicker-input",h=d.default.div(r||(r=(0,l.default)(["\n position: relative;\n overflow: hidden;\n display: inline-block;\n\n ","\n"])),function(e){return e.wrapperExtraStyle}),g=d.default.input.attrs({type:"file"})(o||(o=(0,l.default)(["\n position: absolute;\n left: 0;\n top: 0;\n opacity: 0;\n font-size: 0px;\n width: 100%;\n height: 100%;\n"]))),v=function(e,t){var n=(0,p.processStyle)(e),r=(0,p.createStyleBuilder)(n,t),o=r((t.as||{}).container||"div","container"),i=r("label","label"),l=r("input","input"),d=(0,p.createBootstrap)(n,"filepicker");return function(e){var n=d(e),r=n.id,p=n.name,v=n.label,m=n.ariaLabel,y=n.styleProps,w=n.children,b=n.className,R=n.rest,S=R.style,x=R.labelStyle,C=R.inputStyle,P=R.role,z=R.wrapperStyle,E=(0,a.default)(R,["style","labelStyle","inputStyle","role","wrapperStyle"]);return u.default.createElement(o,(0,s.default)({},y,{style:S,className:(0,c.default)("pg-filepicker",b)}),v&&u.default.createElement(i,(0,s.default)({htmlFor:r},y,{style:x,className:"pg-filepicker-label"}),v),w?u.default.createElement(h,{style:z,className:"pg-filepicker-wrapper",wrapperExtraStyle:t.wrapperExtraStyle||"",role:P},w,u.default.createElement(g,(0,s.default)({"aria-label":m},E,{id:r,name:p,style:C,className:f}))):u.default.createElement(l,(0,s.default)({"aria-label":m},E,{type:"file",id:r,name:p,style:C,className:f})))}};t.applyTheme=v;var m=v({},{});t.default=m},16530:function(e,t,n){"use strict";var r,o=n(64836),i=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.applyTheme=void 0;var s=o(n(87462)),a=o(n(63366)),l=o(n(81880)),u=i(n(67294)),c=o(n(86010)),d=o(n(78096)),p=n(80927),f="pg-notification",h="pg-notification-content",g=d.default.input.attrs({type:"checkbox"})(r||(r=(0,l.default)(["\n position: absolute;\n left: -100vw;\n\n &:checked + ."," {\n display: none;\n }\n"])),f),v=u.default.createContext({checkboxId:"",styleProps:{},Sheader:null,Scontent:null,Sgroup:null,Sclose:null}),m=function(e,t,n){void 0===n&&(n={});var r=(0,p.processStyle)(e),o=(0,p.processStyle)(n),i=(0,p.createStyleBuilder)(r,t,o),l=t.as||{},d=i(l.container||"aside","container"),m=i(l.header||"header","header"),y=i(l.content||"div","content"),w=i(l.group||"div","group"),b=i("label","close"),R=(0,p.createBootstrap)(r,"notification"),S=function(e){var t=R(e),n=t.id,r=(t.name,t.label,t.ariaLabel,t.styleProps),o=t.children,i=t.className,l=t.rest,p=l.closable,h=(0,a.default)(l,["closable"]),S=n+"-toggle";return u.default.createElement(v.Provider,{value:{checkboxId:S,styleProps:r,Sheader:m,Scontent:y,Sgroup:w,Sclose:b}},p&&u.default.createElement(g,{id:S}),u.default.createElement(d,(0,s.default)({},r,h,{className:(0,c.default)(f,i)}),o))};return S.Header=function(e){var t=e.children,n=e.className,r=(0,a.default)(e,["children","className"]),o=(0,c.default)("pg-notification-header",n),i=(0,u.useContext)(v),l=i.Sheader,d=i.styleProps;return u.default.createElement(l,(0,s.default)({className:o},d,r),t)},S.Content=function(e){var t=e.children,n=e.className,r=(0,a.default)(e,["children","className"]),o=(0,c.default)(h,n),i=(0,u.useContext)(v),l=i.Scontent,d=i.styleProps;return u.default.createElement(l,(0,s.default)({className:o},d,r),t)},S.Group=function(e){var t=e.children,n=e.className,r=(0,a.default)(e,["children","className"]),o=(0,c.default)(h,n),i=(0,u.useContext)(v),l=i.Sgroup,d=i.styleProps;return u.default.createElement(l,(0,s.default)({className:o},d,r),t)},S.Close=function(e){var t=e.children,n=e.className,r=(0,a.default)(e,["children","className"]),o=(0,c.default)("pg-notification-close",n),i=(0,u.useContext)(v),l=i.Sclose,d=i.checkboxId,p=i.styleProps;return u.default.createElement(l,(0,s.default)({className:o,htmlFor:d},p,{role:"button","aria-label":"close"},r),t)},S};t.applyTheme=m;var y=m({},{},{});t.default=y},46312:function(e,t,n){"use strict";n.d(t,{e:function(){return z}});var r,o,i=n(67294),s=n(73935),a=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var o;if(!t&&("a"!==e||(o=n)&&"#"!==o.trim())||r.preventDefault(),t){r.stopPropagation();return}null==s||s(r)},d=e=>{" "===e.key&&(e.preventDefault(),c(e))};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:d},u]}let d=i.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,u),[i,{tagName:s}]=c(Object.assign({tagName:n,disabled:r},o));return(0,l.jsx)(s,Object.assign({},o,i,{ref:t}))});d.displayName="Button";let p=["onKeyDown"],f=i.forwardRef((e,t)=>{var n;let{onKeyDown:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,p),[i]=c(Object.assign({tagName:"a"},o)),s=(0,a.Z)(e=>{i.onKeyDown(e),null==r||r(e)});return(n=o.href)&&"#"!==n.trim()&&"button"!==o.role?(0,l.jsx)("a",Object.assign({ref:t},o,{onKeyDown:r})):(0,l.jsx)("a",Object.assign({ref:t},o,i,{onKeyDown:s}))});f.displayName="Anchor";let h=i.forwardRef(({active:e,disabled:t,className:n,style:r,activeLabel:i,children:s,...a},u)=>{let c=e||t?"span":f;return(0,l.jsx)("li",{ref:u,style:r,className:o()(n,"page-item",{active:e,disabled:t}),children:(0,l.jsxs)(c,{className:"page-link",disabled:t,...a,children:[s,e&&i&&(0,l.jsx)("span",{className:"visually-hidden",children:i})]})})});function g(e,t,n=e){let r=i.forwardRef(({children:e,...r},o)=>(0,l.jsxs)(h,{...r,ref:o,children:[(0,l.jsx)("span",{"aria-hidden":"true",children:e||t}),(0,l.jsx)("span",{className:"visually-hidden",children:n})]}));return r.displayName=e,r}h.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},h.displayName="PageItem";let v=g("First","\xab"),m=g("Prev","‹","Previous"),y=g("Ellipsis","…","More"),w=g("Next","›"),b=g("Last","\xbb"),R=i.forwardRef(({bsPrefix:e,className:t,size:n,...r},i)=>{let a=(0,s.vE)(e,"pagination");return(0,l.jsx)("ul",{ref:i,...r,className:o()(t,a,n&&`${a}-${n}`)})});R.displayName="Pagination";var S=Object.assign(R,{First:v,Prev:m,Ellipsis:y,Item:h,Next:w,Last:b})},57761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));u.ref=function(t){e.scrollComponent=t,l&&l(t)};var c=[n];return o&&(a?s?c.unshift(a):c.push(a):this.defaultLoader&&(s?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),i.default.createElement(r,u,c)}}]),t}(o.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},246:function(e,t,n){e.exports=n(57761)},41070:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};t.__esModule=!0;var i=n(67294),s=n(65837),a=n(64643);t.default=function(e){var t=e.delay,n=void 0===t?0:t,l=e.type,u=void 0===l?"text":l,c=e.color,d=void 0===c?"#CDCDCD":c,p=e.rows,f=void 0===p?3:p,h=e.ready,g=e.firstLaunchOnly,v=e.children,m=e.className,y=e.showLoadingAnimation,w=e.customPlaceholder,b=o(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),R=i.useState(h),S=R[0],x=R[1],C=i.useRef(null);return i.useEffect(function(){g||!S||h?h&&(C.current&&window.clearTimeout(C.current),S||x(!0)):n&&n>0?C.current=window.setTimeout(function(){x(!1)},n):x(!1)},[g,S,h,n]),i.useEffect(function(){return function(){C.current&&window.clearTimeout(C.current)}},[]),S?v:function(){var e=y?a.joinClassNames("show-loading-animation",m):m;if(w&&i.isValidElement(w)){var t=a.joinClassNames(w.props.className,e);return i.cloneElement(w,{className:t})}if(w)return w;var n=s[u];return i.createElement(n,r({},b,{color:d,rows:f,className:e}))}()}},76457:function(e,t,n){"use strict";var r=n(41070);t.Z=r.default},41985:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||(o[n]=e[n]);return o}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var a={init:"init"},l=function(e){var t=e.value;return void 0===t?"":t},u=function(){return t.createElement(t.Fragment,null,"\xa0")},c={Cell:l,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=Array(e),n=0;n(i="number"==typeof i?i:1/0)){var s=o;o=i,i=s}return e.filter(function(e){return t.some(function(t){var n=e.values[t];return n>=o&&n<=i})})};ey.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var ew=Object.freeze({__proto__:null,text:eu,exactText:ec,exactTextCase:ed,includes:ep,includesAll:ef,includesSome:eh,includesValue:eg,exact:ev,equals:em,between:ey});a.resetFilters="resetFilters",a.setFilter="setFilter",a.setAllFilters="setAllFilters";var eb=function(e){e.stateReducers.push(eR),e.useInstance.push(eS)};function eR(e,t,n,r){if(t.type===a.init)return o({filters:[]},e);if(t.type===a.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===a.setFilter){var i=t.columnId,s=t.filterValue,l=r.allColumns,u=r.filterTypes,c=l.find(function(e){return e.id===i});if(!c)throw Error("React-Table: Could not find a column with id: "+i);var d=O(c.filter,u||{},ew),p=e.filters.find(function(e){return e.id===i}),f=v(s,p&&p.value);return W(d.autoRemove,f,c)?o({},e,{filters:e.filters.filter(function(e){return e.id!==i})}):o({},e,p?{filters:e.filters.map(function(e){return e.id===i?{id:i,value:f}:e})}:{filters:[].concat(e.filters,[{id:i,value:f}])})}if(t.type===a.setAllFilters){var h=t.filters,g=r.allColumns,m=r.filterTypes;return o({},e,{filters:v(h,e.filters).filter(function(e){var t=g.find(function(t){return t.id===e.id});return!W(O(t.filter,m||{},ew).autoRemove,e.value,t)})})}}function eS(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,s=e.allColumns,l=e.filterTypes,u=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,p=e.disableFilters,f=e.state.filters,h=e.dispatch,g=e.autoResetFilters,v=t.useCallback(function(e,t){h({type:a.setFilter,columnId:e,filterValue:t})},[h]),y=t.useCallback(function(e){h({type:a.setAllFilters,filters:e})},[h]);s.forEach(function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?z(!0!==o&&void 0,!0!==p&&void 0,!0):z(r,d,!1),e.setFilter=function(t){return v(e.id,t)};var i=f.find(function(e){return e.id===t});e.filterValue=i&&i.value});var b=t.useMemo(function(){if(u||!f.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=f.reduce(function(e,t){var n=t.id,r=t.value,i=s.find(function(e){return e.id===n});if(!i)return e;0===o&&(i.preFilteredRows=e);var a=O(i.filter,l||{},ew);return a?(i.filteredRows=a(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)},r)).forEach(function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)}),i}(r),e,t]},[u,f,r,o,i,s,l]),R=b[0],S=b[1],x=b[2];t.useMemo(function(){s.filter(function(e){return!f.find(function(t){return t.id===e.id})}).forEach(function(e){e.preFilteredRows=R,e.filteredRows=R})},[R,f,s]);var C=m(void 0===g||g);w(function(){C()&&h({type:a.resetFilters})},[h,u?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:R,filteredFlatRows:S,filteredRowsById:x,rows:R,flatRows:S,rowsById:x,setFilter:v,setAllFilters:y})}eb.pluginName="useFilters",a.resetGlobalFilter="resetGlobalFilter",a.setGlobalFilter="setGlobalFilter";var ex=function(e){e.stateReducers.push(eC),e.useInstance.push(eP)};function eC(e,t,n,r){if(t.type===a.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===a.setGlobalFilter){var s=t.filterValue,l=r.userFilterTypes,u=O(r.globalFilter,l||{},ew),c=v(s,e.globalFilter);return W(u.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function eP(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,s=e.allColumns,l=e.filterTypes,u=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,p=e.dispatch,f=e.autoResetGlobalFilter,h=e.disableGlobalFilter,g=t.useCallback(function(e){p({type:a.setGlobalFilter,filterValue:e})},[p]),v=t.useMemo(function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=O(u,l||{},ew);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;s.forEach(function(e){var t=e.disableGlobalFilter;e.canFilter=z(!0!==t&&void 0,!0!==h&&void 0,!0)});var a=s.filter(function(e){return!0===e.canFilter});return[function r(o){return(o=n(o,a.map(function(e){return e.id}),d)).forEach(function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows}),o}(r),e,t]},[c,d,u,l,s,r,o,i,h]),y=v[0],b=v[1],R=v[2],S=m(void 0===f||f);w(function(){S()&&p({type:a.resetGlobalFilter})},[p,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:y,globalFilteredFlatRows:b,globalFilteredRowsById:R,rows:y,flatRows:b,rowsById:R,setGlobalFilter:g,disableGlobalFilter:h})}function ez(e,t){return t.reduce(function(e,t){return e+("number"==typeof t?t:0)},0)}ex.pluginName="useGlobalFilter";var eE=Object.freeze({__proto__:null,sum:ez,min:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e))}),t},max:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.max(t,e))}),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))}),t+".."+n},average:function(e){return ez(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort(function(e,t){return e-t});return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),eB=[],ek={};a.resetGroupBy="resetGroupBy",a.setGroupBy="setGroupBy",a.toggleGroupBy="toggleGroupBy";var eO=function(e){e.getGroupByToggleProps=[eW],e.stateReducers.push(eN),e.visibleColumnsDeps.push(function(e,t){return[].concat(e,[t.instance.state.groupBy])}),e.visibleColumns.push(eI),e.useInstance.push(eM),e.prepareRow.push(ej)};eO.pluginName="useGroupBy";var eW=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function eN(e,t,n,r){if(t.type===a.init)return o({groupBy:[]},e);if(t.type===a.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===a.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===a.toggleGroupBy){var i=t.columnId,s=t.value,l=void 0!==s?s:!e.groupBy.includes(i);return o({},e,l?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter(function(e){return e!==i})})}}function eI(e,t){var n=t.instance.state.groupBy,r=n.map(function(t){return e.find(function(e){return e.id===t})}).filter(Boolean),o=e.filter(function(e){return!n.includes(e.id)});return(e=[].concat(r,o)).forEach(function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)}),e}var eF={};function eM(e){var n=e.data,r=e.rows,i=e.flatRows,s=e.rowsById,l=e.allColumns,u=e.flatHeaders,c=e.groupByFn,d=void 0===c?eH:c,f=e.manualGroupBy,h=e.aggregations,v=void 0===h?eF:h,y=e.plugins,b=e.state.groupBy,R=e.dispatch,S=e.autoResetGroupBy,x=e.disableGroupBy,C=e.defaultCanGroupBy,P=e.getHooks;g(y,["useColumnOrder","useFilters"],"useGroupBy");var E=m(e);l.forEach(function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?z(t.canGroupBy,!0!==o&&void 0,!0!==x&&void 0,!0):z(t.canGroupBy,r,C,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell});var k=t.useCallback(function(e,t){R({type:a.toggleGroupBy,columnId:e,value:t})},[R]),O=t.useCallback(function(e){R({type:a.setGroupBy,value:e})},[R]);u.forEach(function(e){e.getGroupByToggleProps=p(P().getGroupByToggleProps,{instance:E(),header:e})});var W=t.useMemo(function(){if(f||!b.length)return[r,i,s,eB,ek,i,s];var e=b.filter(function(e){return l.find(function(t){return t.id===e})}),t=[],n={},a=[],u={},c=[],p={},h=function r(i,s,f){if(void 0===s&&(s=0),s===e.length)return i.map(function(e){return o({},e,{depth:s})});var h=e[s];return Object.entries(d(i,h)).map(function(o,i){var d,g,m=o[0],y=o[1],w=h+":"+m,b=r(y,s+1,w=f?f+">"+w:w),R=s?B(y,"leafRows"):y,S={id:w,isGrouped:!0,groupByID:h,groupByVal:m,values:(d=s,g={},l.forEach(function(t){if(e.includes(t.id))g[t.id]=y[0]?y[0].values[t.id]:null;else{var n="function"==typeof t.aggregate?t.aggregate:v[t.aggregate]||eE[t.aggregate];if(n){var r=y.map(function(e){return e.values[t.id]}),o=R.map(function(e){var n=e.values[t.id];if(!d&&t.aggregateValue){var r="function"==typeof t.aggregateValue?t.aggregateValue:v[t.aggregateValue]||eE[t.aggregateValue];if(!r)throw console.info({column:t}),Error("React Table: Invalid column.aggregateValue option for column listed above");n=r(n,e,t)}return n});g[t.id]=n(o,r)}else{if(t.aggregate)throw console.info({column:t}),Error("React Table: Invalid column.aggregate option for column listed above");g[t.id]=null}}}),g),subRows:b,leafRows:R,depth:s,index:i};return b.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),u[e.id]=e):(c.push(e),p[e.id]=e)}),S})}(r);return h.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),u[e.id]=e):(c.push(e),p[e.id]=e)}),[h,t,n,a,u,c,p]},[f,b,r,i,s,l,v,d]),N=W[0],I=W[1],F=W[2],M=W[3],j=W[4],H=W[5],T=W[6],L=m(void 0===S||S);w(function(){L()&&R({type:a.resetGroupBy})},[R,f?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:i,preGroupedRowsById:s,groupedRows:N,groupedFlatRows:I,groupedRowsById:F,onlyGroupedFlatRows:M,onlyGroupedRowsById:j,nonGroupedFlatRows:H,nonGroupedRowsById:T,rows:N,flatRows:I,rowsById:F,toggleGroupBy:k,setGroupBy:O})}function ej(e){e.allCells.forEach(function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)})}function eH(e,t){return e.reduce(function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e},{})}var eT=/([0-9]+)/gm;function eL(e,t){return e===t?0:e>t?1:-1}function eG(e,t,n){return[e.values[n],t.values[n]]}function eA(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var e_=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=eG(e,t,n),o=r[0],i=r[1];for(o=eA(o),i=eA(i),o=o.split(eT).filter(Boolean),i=i.split(eT).filter(Boolean);o.length&&i.length;){var s=o.shift(),a=i.shift(),l=parseInt(s,10),u=parseInt(a,10),c=[l,u].sort();if(isNaN(c[0])){if(s>a)return 1;if(a>s)return -1}else{if(isNaN(c[1]))return isNaN(l)?-1:1;if(l>u)return 1;if(u>l)return -1}}return o.length-i.length},datetime:function(e,t,n){var r=eG(e,t,n),o=r[0],i=r[1];return eL(o=o.getTime(),i=i.getTime())},basic:function(e,t,n){var r=eG(e,t,n);return eL(r[0],r[1])},string:function(e,t,n){var r=eG(e,t,n),o=r[0],i=r[1];for(o=o.split("").filter(Boolean),i=i.split("").filter(Boolean);o.length&&i.length;){var s=o.shift(),a=i.shift(),l=s.toLowerCase(),u=a.toLowerCase();if(l>u)return 1;if(u>l)return -1;if(s>a)return 1;if(a>s)return -1}return o.length-i.length},number:function(e,t,n){var r=eG(e,t,n),o=r[0],i=r[1],s=/[^0-9.]/gi;return eL(o=Number(String(o).replace(s,"")),i=Number(String(i).replace(s,"")))}});a.resetSortBy="resetSortBy",a.setSortBy="setSortBy",a.toggleSortBy="toggleSortBy",a.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var eD=function(e){e.getSortByToggleProps=[eV],e.stateReducers.push(eX),e.useInstance.push(eU)};eD.pluginName="useSortBy";var eV=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function eX(e,t,n,r){if(t.type===a.init)return o({sortBy:[]},e);if(t.type===a.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===a.clearSortBy)return o({},e,{sortBy:e.sortBy.filter(function(e){return e.id!==t.columnId})});if(t.type===a.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===a.toggleSortBy){var i,s=t.columnId,l=t.desc,u=t.multi,c=r.allColumns,d=r.disableMultiSort,p=r.disableSortRemove,f=r.disableMultiRemove,h=r.maxMultiSortColCount,g=void 0===h?Number.MAX_SAFE_INTEGER:h,v=e.sortBy,m=c.find(function(e){return e.id===s}).sortDescFirst,y=v.find(function(e){return e.id===s}),w=v.findIndex(function(e){return e.id===s}),b=null!=l,R=[];return"toggle"!=(i=!d&&u?y?"toggle":"add":w!==v.length-1||1!==v.length?"replace":y?"toggle":"replace")||p||b||u&&f||!(y&&y.desc&&!m||!y.desc&&m)||(i="remove"),"replace"===i?R=[{id:s,desc:b?l:m}]:"add"===i?(R=[].concat(v,[{id:s,desc:b?l:m}])).splice(0,R.length-g):"toggle"===i?R=v.map(function(e){return e.id===s?o({},e,{desc:b?l:!y.desc}):e}):"remove"===i&&(R=v.filter(function(e){return e.id!==s})),o({},e,{sortBy:R})}}function eU(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,s=e.orderByFn,l=void 0===s?eq:s,u=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,f=e.disableSortBy,h=e.flatHeaders,v=e.state.sortBy,y=e.dispatch,b=e.plugins,R=e.getHooks,S=e.autoResetSortBy;g(b,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var x=t.useCallback(function(e){y({type:a.setSortBy,sortBy:e})},[y]),C=t.useCallback(function(e,t,n){y({type:a.toggleSortBy,columnId:e,desc:t,multi:n})},[y]),P=m(e);h.forEach(function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?z(!0!==r&&void 0,!0!==f&&void 0,!0):z(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return C(e.id,t,n)},e.clearSortBy=function(){y({type:a.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=p(R().getSortByToggleProps,{instance:P(),column:e});var s=v.find(function(e){return e.id===o});e.isSorted=!!s,e.sortedIndex=v.findIndex(function(e){return e.id===o}),e.isSortedDesc=e.isSorted?s.desc:void 0});var B=t.useMemo(function(){if(c||!v.length)return[r,o];var e=[],t=v.filter(function(e){return i.find(function(t){return t.id===e.id})});return[function n(r){var o=l(r,t.map(function(e){var t=i.find(function(t){return t.id===e.id});if(!t)throw Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=E(n)||(u||{})[n]||e_[n];if(!r)throw Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}}),t.map(function(e){var t=i.find(function(t){return t.id===e.id});return t&&t.sortInverted?e.desc:!e.desc}));return o.forEach(function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))}),o}(r),e]},[c,v,r,o,i,l,u]),k=B[0],O=B[1],W=m(void 0===S||S);w(function(){W()&&y({type:a.resetSortBy})},[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:k,sortedFlatRows:O,rows:k,flatRows:O,setSortBy:x,toggleSortBy:C})}function eq(e,t,n){return[].concat(e).sort(function(e,r){for(var o=0;oe.pageIndex?u=-1===i?s.length>=e.pageSize:l-1),u?o({},e,{pageIndex:l}):e}if(t.type===a.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function eZ(e){var n=e.rows,r=e.autoResetPage,o=e.manualExpandedKey,i=void 0===o?"expanded":o,s=e.plugins,l=e.pageCount,u=e.paginateExpandedRows,c=void 0===u||u,d=e.expandSubRows,p=void 0===d||d,f=e.state,h=f.pageSize,v=f.pageIndex,y=f.expanded,b=f.globalFilter,R=f.filters,S=f.groupBy,x=f.sortBy,C=e.dispatch,P=e.data,z=e.manualPagination;g(s,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var E=m(void 0===r||r);w(function(){E()&&C({type:a.resetPage})},[C,z?null:P,b,R,S,x]);var B=z?l:Math.ceil(n.length/h),O=t.useMemo(function(){return B>0?[].concat(Array(B)).fill(null).map(function(e,t){return t}):[]},[B]),W=t.useMemo(function(){var e;if(z)e=n;else{var t=h*v;e=n.slice(t,t+h)}return c?e:k(e,{manualExpandedKey:i,expanded:y,expandSubRows:p})},[p,y,i,z,v,h,c,n]),N=-1===B?W.length>=h:v0,canNextPage:N,gotoPage:I,previousPage:F,nextPage:M,setPageSize:t.useCallback(function(e){C({type:a.setPageSize,pageSize:e})},[C])})}eK.pluginName="usePagination",a.resetPivot="resetPivot",a.togglePivot="togglePivot";var e$=function(e){e.getPivotToggleProps=[eQ],e.stateReducers.push(e0),e.useInstanceAfterData.push(e1),e.allColumns.push(e2),e.accessValue.push(e6),e.materializedColumns.push(e9),e.materializedColumnsDeps.push(e3),e.visibleColumns.push(e4),e.visibleColumnsDeps.push(e7),e.useInstance.push(e8),e.prepareRow.push(e5)};e$.pluginName="usePivotColumns";var eJ=[],eQ=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function e0(e,t,n,r){if(t.type===a.init)return o({pivotColumns:eJ},e);if(t.type===a.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||eJ});if(t.type===a.togglePivot){var i=t.columnId,s=t.value,l=void 0!==s?s:!e.pivotColumns.includes(i);return o({},e,l?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter(function(e){return e!==i})})}}function e1(e){e.allColumns.forEach(function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)})}function e2(e,t){var n=t.instance;return e.forEach(function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set}),e}function e6(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function e9(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var s=i.pivotColumns.map(function(e){return r.find(function(t){return t.id===e})}).filter(Boolean),a=r.filter(function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)});return[].concat(e,S(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=s[t];return i?Array.from(i.uniqueValues).sort().map(function(s){var a=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+s:s,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+s:i.id+"."+s,pivotValue:s});return a.columns=e(t+1,a,[].concat(r,[function(e){return e.values[i.id]===s}])),a}):a.map(function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every(function(e){return e(o)}))return o.values[e.id]}})})}()))}function e3(e,t){var n=t.instance.state;return[].concat(e,[n.pivotColumns,n.groupBy])}function e4(e,t){var n=t.instance.state;return e=e.filter(function(e){return!e.isPivotSource}),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter(function(e){return e.isGrouped||e.isPivoted})),e}function e7(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function e8(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,s=e.dispatch,l=e.autoResetPivot,u=e.manaulPivot,c=e.disablePivot,d=e.defaultCanPivot;g(i,["useGroupBy"],"usePivotColumns");var f=m(e);n.forEach(function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?z(t.canPivot,!0!==o&&void 0,!0!==c&&void 0,!0):z(t.canPivot,r,d,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell}),r.forEach(function(e){e.getPivotToggleProps=p(o().getPivotToggleProps,{instance:f(),header:e})});var h=m(void 0===l||l);w(function(){h()&&s({type:a.resetPivot})},[s,u?null:t]),Object.assign(e,{togglePivot:function(e,t){s({type:a.togglePivot,columnId:e,value:t})}})}function e5(e){e.allCells.forEach(function(e){e.isPivoted=e.column.isPivoted})}a.resetSelectedRows="resetSelectedRows",a.toggleAllRowsSelected="toggleAllRowsSelected",a.toggleRowSelected="toggleRowSelected",a.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var te=function(e){e.getToggleRowSelectedProps=[tt],e.getToggleAllRowsSelectedProps=[tn],e.getToggleAllPageRowsSelectedProps=[tr],e.stateReducers.push(to),e.useInstance.push(ti),e.prepareRow.push(ts)};te.pluginName="useRowSelect";var tt=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[void 0===o?"isSelected":o])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},tn=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},tr=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some(function(e){var t=e.id;return n.state.selectedRowIds[t]}))}]};function to(e,t,n,r){if(t.type===a.init)return o({selectedRowIds:{}},e);if(t.type===a.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===a.toggleAllRowsSelected){var i=t.value,s=r.isAllRowsSelected,l=r.rowsById,u=r.nonGroupedRowsById,c=void 0===u?l:u,d=Object.assign({},e.selectedRowIds);return(void 0!==i?i:!s)?Object.keys(c).forEach(function(e){d[e]=!0}):Object.keys(c).forEach(function(e){delete d[e]}),o({},e,{selectedRowIds:d})}if(t.type===a.toggleRowSelected){var p=t.id,f=t.value,h=r.rowsById,g=r.selectSubRows,v=void 0===g||g,m=r.getSubRows,y=e.selectedRowIds[p],w=void 0!==f?f:!y;if(y===w)return e;var b=o({},e.selectedRowIds);return function e(t){var n=h[t];if(n&&(n.isGrouped||(w?b[t]=!0:delete b[t]),v&&m(n)))return m(n).forEach(function(t){return e(t.id)})}(p),o({},e,{selectedRowIds:b})}if(t.type===a.toggleAllPageRowsSelected){var R=t.value,S=r.page,x=r.rowsById,C=r.selectSubRows,P=void 0===C||C,z=r.isAllPageRowsSelected,E=r.getSubRows,B=void 0!==R?R:!z,k=o({},e.selectedRowIds);return S.forEach(function(e){return function e(t){var n=x[t];if(n.isGrouped||(B?k[t]=!0:delete k[t]),P&&E(n))return E(n).forEach(function(t){return e(t.id)})}(e.id)}),o({},e,{selectedRowIds:k})}return e}function ti(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,s=e.rowsById,l=e.nonGroupedRowsById,u=void 0===l?s:l,c=e.autoResetSelectedRows,d=e.state.selectedRowIds,f=e.selectSubRows,h=void 0===f||f,v=e.dispatch,y=e.page,b=e.getSubRows;g(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var R=t.useMemo(function(){var e=[];return r.forEach(function(t){var n=h?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,s=!1;return o.forEach(function(t){s&&!i||(e(t,n,r)?s=!0:i=!1)}),!!i||!!s&&null}return!1}(t,d,b):!!d[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)}),e},[r,h,d,b]),S=Boolean(Object.keys(u).length&&Object.keys(d).length),x=S;S&&Object.keys(u).some(function(e){return!d[e]})&&(S=!1),S||y&&y.length&&y.some(function(e){return!d[e.id]})&&(x=!1);var C=m(void 0===c||c);w(function(){C()&&v({type:a.resetSelectedRows})},[v,n]);var P=t.useCallback(function(e){return v({type:a.toggleAllRowsSelected,value:e})},[v]),z=t.useCallback(function(e){return v({type:a.toggleAllPageRowsSelected,value:e})},[v]),E=t.useCallback(function(e,t){return v({type:a.toggleRowSelected,id:e,value:t})},[v]),B=m(e),k=p(o().getToggleAllRowsSelectedProps,{instance:B()}),O=p(o().getToggleAllPageRowsSelectedProps,{instance:B()});Object.assign(e,{selectedFlatRows:R,isAllRowsSelected:S,isAllPageRowsSelected:x,toggleRowSelected:E,toggleAllRowsSelected:P,getToggleAllRowsSelectedProps:k,getToggleAllPageRowsSelectedProps:O,toggleAllPageRowsSelected:z})}function ts(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=p(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var ta=function(e){return{}},tl=function(e){return{}};a.setRowState="setRowState",a.setCellState="setCellState",a.resetRowState="resetRowState";var tu=function(e){e.stateReducers.push(tc),e.useInstance.push(td),e.prepareRow.push(tp)};function tc(e,t,n,r){var i=r.initialRowStateAccessor,s=void 0===i?ta:i,l=r.initialCellStateAccessor,u=r.rowsById;if(t.type===a.init)return o({rowState:{}},e);if(t.type===a.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===a.setRowState){var c,d=t.rowId,p=t.value,f=void 0!==e.rowState[d]?e.rowState[d]:s(u[d]);return o({},e,{rowState:o({},e.rowState,((c={})[d]=v(p,f),c))})}if(t.type===a.setCellState){var h,g,m,y,w,b=t.rowId,R=t.columnId,S=t.value,x=void 0!==e.rowState[b]?e.rowState[b]:s(u[b]),C=void 0!==(null==x?void 0:null==(h=x.cellState)?void 0:h[R])?x.cellState[R]:(void 0===l?tl:l)(null==(g=u[b])?void 0:null==(m=g.cells)?void 0:m.find(function(e){return e.column.id===R}));return o({},e,{rowState:o({},e.rowState,((w={})[b]=o({},x,{cellState:o({},x.cellState||{},((y={})[R]=v(S,C),y))}),w))})}}function td(e){var n=e.autoResetRowState,r=e.data,o=e.dispatch,i=t.useCallback(function(e,t){return o({type:a.setRowState,rowId:e,value:t})},[o]),s=t.useCallback(function(e,t,n){return o({type:a.setCellState,rowId:e,columnId:t,value:n})},[o]),l=m(void 0===n||n);w(function(){l()&&o({type:a.resetRowState})},[r]),Object.assign(e,{setRowState:i,setCellState:s})}function tp(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=n.initialCellStateAccessor,i=void 0===o?tl:o,s=n.state.rowState;e&&(e.state=void 0!==s[e.id]?s[e.id]:(void 0===r?ta:r)(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach(function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:i(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}}))}tu.pluginName="useRowState",a.resetColumnOrder="resetColumnOrder",a.setColumnOrder="setColumnOrder";var tf=function(e){e.stateReducers.push(th),e.visibleColumnsDeps.push(function(e,t){return[].concat(e,[t.instance.state.columnOrder])}),e.visibleColumns.push(tg),e.useInstance.push(tv)};function th(e,t,n,r){return t.type===a.init?o({columnOrder:[]},e):t.type===a.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===a.setColumnOrder?o({},e,{columnOrder:v(t.columnOrder,e.columnOrder)}):void 0}function tg(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[];o.length&&r.length;)!function(){var e=r.shift(),t=o.findIndex(function(t){return t.id===e});t>-1&&i.push(o.splice(t,1)[0])}();return[].concat(i,o)}function tv(e){var n=e.dispatch;e.setColumnOrder=t.useCallback(function(e){return n({type:a.setColumnOrder,columnOrder:e})},[n])}tf.pluginName="useColumnOrder",c.canResize=!0,a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize";var tm=function(e){e.getResizerProps=[ty],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(tw),e.useInstance.push(tR),e.useInstanceBeforeDimensions.push(tb)},ty=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r,i,s,l=(r=[],function e(t){t.columns&&t.columns.length&&t.columns.map(e),r.push(t)}(t),r).map(function(e){return[e.id,e.totalWidth]}),u=n?Math.round(e.touches[0].clientX):e.clientX,c=function(){window.cancelAnimationFrame(i),i=null,o({type:a.columnDoneResizing})},d=function(){window.cancelAnimationFrame(i),i=null,o({type:a.columnResizing,clientX:s})},p=function(e){s=e,i||(i=window.requestAnimationFrame(d))},f={mouse:{moveEvent:"mousemove",moveHandler:function(e){return p(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",f.mouse.moveHandler),document.removeEventListener("mouseup",f.mouse.upHandler),c()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(f.touch.moveEvent,f.touch.moveHandler),document.removeEventListener(f.touch.upEvent,f.touch.moveHandler),c()}}},h=n?f.touch:f.mouse,g=!!function(){if("boolean"==typeof I)return I;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return I=e}()&&{passive:!1};document.addEventListener(h.moveEvent,h.moveHandler,g),document.addEventListener(h.upEvent,h.upHandler,g),o({type:a.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:l,clientX:u})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function tw(e,t){if(t.type===a.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===a.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===a.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,s=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:s,columnWidth:i,isResizingColumn:r})})}if(t.type===a.columnResizing){var l=t.clientX,u=e.columnResizing,c=u.startX,d=u.columnWidth,p=u.headerIdWidths,f=(l-c)/d,h={};return(void 0===p?[]:p).forEach(function(e){var t=e[0],n=e[1];h[t]=Math.max(n+n*f,0)}),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},h)})})}return t.type===a.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}tm.pluginName="useResizeColumns";var tb=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=m(e);t.forEach(function(e){var t=z(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=p(r().getResizerProps,{instance:i(),header:e}))})};function tR(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=e.columns;g(n,["useAbsoluteLayout"],"useResizeColumns");var s=m(void 0===o||o);w(function(){s()&&r({type:a.resetResize})},[i]),Object.assign(e,{resetResizing:t.useCallback(function(){return r({type:a.resetResize})},[r])})}var tS={position:"absolute",top:0},tx=function(e){e.getTableBodyProps.push(tC),e.getRowProps.push(tC),e.getHeaderGroupProps.push(tC),e.getFooterGroupProps.push(tC),e.getHeaderProps.push(function(e,t){var n=t.column;return[e,{style:o({},tS,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){var n=t.cell;return[e,{style:o({},tS,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){var n=t.column;return[e,{style:o({},tS,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})};tx.pluginName="useAbsoluteLayout";var tC=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},tP={display:"inline-block",boxSizing:"border-box"},tz=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},tE=function(e){e.getRowProps.push(tz),e.getHeaderGroupProps.push(tz),e.getFooterGroupProps.push(tz),e.getHeaderProps.push(function(e,t){return[e,{style:o({},tP,{width:t.column.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){return[e,{style:o({},tP,{width:t.cell.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){return[e,{style:o({},tP,{width:t.column.totalWidth+"px"})}]})};function tB(e){e.getTableProps.push(tk),e.getRowProps.push(tO),e.getHeaderGroupProps.push(tO),e.getFooterGroupProps.push(tO),e.getHeaderProps.push(tW),e.getCellProps.push(tN),e.getFooterProps.push(tI)}tE.pluginName="useBlockLayout",tB.pluginName="useFlexLayout";var tk=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tO=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tW=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},tN=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},tI=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function tF(e){e.stateReducers.push(tT),e.getTableProps.push(tM),e.getHeaderProps.push(tj),e.getRowProps.push(tH)}a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize",tF.pluginName="useGridLayout";var tM=function(e,t){var n=t.instance;return[e,{style:{display:"grid",gridTemplateColumns:n.visibleColumns.map(function(e){var t;return n.state.gridLayout.columnWidths[e.id]?n.state.gridLayout.columnWidths[e.id]+"px":(null==(t=n.state.columnResizing)?void 0:t.isResizingColumn)?n.state.gridLayout.startWidths[e.id]+"px":"number"==typeof e.width?e.width+"px":e.width}).join(" ")}}]},tj=function(e,t){var n=t.column;return[e,{id:"header-cell-"+n.id,style:{position:"sticky",gridColumn:"span "+n.totalVisibleHeaderCount}}]},tH=function(e,t){var n=t.row;return n.isExpanded?[e,{style:{gridColumn:"1 / "+(n.cells.length+1)}}]:[e,{}]};function tT(e,t,n,r){if(t.type===a.init)return o({gridLayout:{columnWidths:{}}},e);if(t.type===a.resetResize)return o({},e,{gridLayout:{columnWidths:{}}});if(t.type===a.columnStartResizing){var i=t.columnId,s=t.headerIdWidths,l=tL(i);if(void 0!==l){var u=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=tL(t.id),n))},{}),c=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=t.minWidth,n))},{}),d=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=t.maxWidth,n))},{}),p=s.map(function(e){var t=e[0];return[t,tL(t)]});return o({},e,{gridLayout:o({},e.gridLayout,{startWidths:u,minWidths:c,maxWidths:d,headerIdGridWidths:p,columnWidth:l})})}return e}if(t.type===a.columnResizing){var f=t.clientX,h=e.columnResizing.startX,g=e.gridLayout,v=g.columnWidth,m=g.minWidths,y=g.maxWidths,w=g.headerIdGridWidths,b=(f-h)/v,R={};return(void 0===w?[]:w).forEach(function(e){var t=e[0],n=e[1];R[t]=Math.min(Math.max(m[t],n+n*b),y[t])}),o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:o({},e.gridLayout.columnWidths,{},R)})})}return t.type===a.columnDoneResizing?o({},e,{gridLayout:o({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function tL(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}e._UNSTABLE_usePivotColumns=e$,e.actions=a,e.defaultColumn=c,e.defaultGroupByFn=eH,e.defaultOrderByFn=eq,e.defaultRenderer=l,e.emptyRenderer=u,e.ensurePluginOrder=g,e.flexRender=R,e.functionalUpdate=v,e.loopHooks=h,e.makePropGetter=p,e.makeRenderer=b,e.reduceHooks=f,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=tx,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o,i=t.useRef({}),s=m(e),a=m(n);return t.useCallback((o=r(regeneratorRuntime.mark(function e(){var t,n,o,l=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Array(t=l.length),o=0;o1?n-1:0),i=1;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-1adbec8db6b3dc49.js b/_next/static/chunks/pages/_app-0ead8488119195b4.js similarity index 99% rename from _next/static/chunks/pages/_app-1adbec8db6b3dc49.js rename to _next/static/chunks/pages/_app-0ead8488119195b4.js index 0c7f4b4..69fe5c1 100644 --- a/_next/static/chunks/pages/_app-1adbec8db6b3dc49.js +++ b/_next/static/chunks/pages/_app-0ead8488119195b4.js @@ -295,7 +295,7 @@ */function tn(e,t){this.x=t,this.q=e}function ti(e,t,r,n){this.curve=e,this.x=t,this.y=r,null==n?this.z=E.ONE:this.z=n,this.zinv=null}function ta(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new ti(this,null,null)}e9.prototype.nextBytes=function(e){var t;for(t=0;t0&&t.length>0)this.n=e7(e,16),this.e=parseInt(t,16);else throw"Invalid RSA public key"},tt.prototype.encrypt=function(e){var t=function(e,t){if(t=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=63&i|128,r[--t]=i>>6|192):(r[--t]=63&i|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var a=new e9,o=[];t>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new E(r)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var r=this.doPublic(t);if(null==r)return null;var n=r.toString(16);return(1&n.length)==0?n:"0"+n},tt.prototype.encryptOAEP=function(e,t,r){var n=function(e,t,r,n){var i=d.crypto.MessageDigest,a=d.crypto.Util,o=null;if(r||(r="sha1"),"string"==typeof r&&(o=i.getCanonicalAlgName(r),n=i.getHashLength(o),r=function(e){return tv(a.hashHex(tg(e),o))}),e.length+2*n+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s>3,t,r);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;var a=i.toString(16);return(1&a.length)==0?a:"0"+a},tt.prototype.type="RSA",tt.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);0>t.compareTo(r);)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},tt.prototype.setPrivate=function(e,t,r){if(this.isPrivate=!0,"string"!=typeof e)this.n=e,this.e=t,this.d=r;else if(null!=e&&null!=t&&e.length>0&&t.length>0)this.n=e7(e,16),this.e=parseInt(t,16),this.d=e7(r,16);else throw"Invalid RSA private key"},tt.prototype.setPrivateEx=function(e,t,r,n,i,a,o,s){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(null!=e&&null!=t&&e.length>0&&t.length>0)this.n=e7(e,16),this.e=parseInt(t,16),this.d=e7(r,16),this.p=e7(n,16),this.q=e7(i,16),this.dmp1=e7(a,16),this.dmq1=e7(o,16),this.coeff=e7(s,16);else throw"Invalid RSA private key in RSASetPrivateEx"},tt.prototype.generate=function(e,t){var r=new e9,n=e>>1;this.e=parseInt(t,16);for(var i=new E(t,16),a=e/2-100,o=E.ONE.shiftLeft(a);;){for(;this.p=new E(e-n,1,r),!(0==this.p.subtract(E.ONE).gcd(i).compareTo(E.ONE)&&this.p.isProbablePrime(10)););for(;this.q=new E(n,1,r),!(0==this.q.subtract(E.ONE).gcd(i).compareTo(E.ONE)&&this.q.isProbablePrime(10)););if(0>=this.p.compareTo(this.q)){var s=this.p;this.p=this.q,this.q=s}var u=this.q.subtract(this.p).abs();if(!(u.bitLength()=u.compareTo(o))){var c=this.p.subtract(E.ONE),l=this.q.subtract(E.ONE),f=c.multiply(l);if(0==f.gcd(i).compareTo(E.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(f),this.dmp1=this.d.mod(c),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0},tt.prototype.decrypt=function(e){if(e.length!=Math.ceil(this.n.bitLength()/4))throw Error("wrong ctext length");var t=e7(e,16),r=this.doPrivate(t);return null==r?null:/*! (c) Tom Wu, Kenji Urushima | http://www-cs-students.stanford.edu/~tjw/jsbn/ */function(e,t){for(var r=e.toByteArray(),n=0;n=r.length)return null;for(var i="";++n191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&a)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i}(r,this.n.bitLength()+7>>3)},tt.prototype.decryptOAEP=function(e,t,r){if(e.length!=Math.ceil(this.n.bitLength()/4))throw Error("wrong ctext length");var n=e7(e,16),i=this.doPrivate(n);return null==i?null:function(e,t,r,n){var i=d.crypto.MessageDigest,a=d.crypto.Util,o=null;for(r||(r="sha1"),"string"==typeof r&&(o=i.getCanonicalAlgName(r),n=i.getHashLength(o),r=function(e){return tv(a.hashHex(tg(e),o))}),e=e.toByteArray(),s=0;s>3,t,r)},tn.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},tn.prototype.toBigInteger=function(){return this.x},tn.prototype.negate=function(){return new tn(this.q,this.x.negate().mod(this.q))},tn.prototype.add=function(e){return new tn(this.q,this.x.add(e.toBigInteger()).mod(this.q))},tn.prototype.subtract=function(e){return new tn(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},tn.prototype.multiply=function(e){return new tn(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},tn.prototype.square=function(){return new tn(this.q,this.x.square().mod(this.q))},tn.prototype.divide=function(e){return new tn(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},tn.prototype.sqrt=function(){return new tn(this.q,this.x.sqrt().mod(this.q))},ti.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ti.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ti.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(E.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(E.ZERO))},ti.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(E.ZERO)&&!this.y.toBigInteger().equals(E.ZERO)},ti.prototype.negate=function(){return new ti(this.curve,this.x,this.y.negate(),this.z)},ti.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(E.ZERO.equals(r))return E.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new E("3"),i=this.x.toBigInteger(),a=this.y.toBigInteger();e.x.toBigInteger(),e.y.toBigInteger();var o=r.square(),s=o.multiply(r),u=i.multiply(o),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(r).mod(this.curve.q),f=u.multiply(n).multiply(t).subtract(a.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ti(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(f),d)},ti.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new E("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),a=this.curve.a.toBigInteger(),o=t.square().multiply(e);E.ZERO.equals(a)||(o=o.add(this.z.square().multiply(a)));var s=(o=o.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),u=o.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ti(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),c)},ti.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e.multiply(new E("3")),n=this.negate(),i=this,a=this.curve.q.subtract(e),o=a.multiply(new E("3")),s=new ti(this.curve,this.x,this.y),u=s.negate();for(t=r.bitLength()-2;t>0;--t){i=i.twice();var c=r.testBit(t);c!=e.testBit(t)&&(i=i.add(c?this:n))}for(t=o.bitLength()-2;t>0;--t){s=s.twice();var l=o.testBit(t);l!=a.testBit(t)&&(s=s.add(l?s:u))}return i},ti.prototype.multiplyTwo=function(e,t,r){n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var n,i=this.curve.getInfinity(),a=this.add(t);n>=0;)i=i.twice(),e.testBit(n)?i=r.testBit(n)?i.add(a):i.add(this):r.testBit(n)&&(i=i.add(t)),--n;return i},ta.prototype.getQ=function(){return this.q},ta.prototype.getA=function(){return this.a},ta.prototype.getB=function(){return this.b},ta.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},ta.prototype.getInfinity=function(){return this.infinity},ta.prototype.fromBigInteger=function(e){return new tn(this.q,e)},ta.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2);e.substr(2);var r=this.fromBigInteger(new E(s,16)),n=this.getA(),i=this.getB(),a=r.square().add(n).multiply(r).add(i).sqrt();return"03"==t&&(a=a.negate()),new ti(this,r,a);case 4:case 6:case 7:var o=(e.length-2)/2,s=e.substr(2,o),u=e.substr(o+2,o);return new ti(this,this.fromBigInteger(new E(s,16)),this.fromBigInteger(new E(u,16)));default:return null}},/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib */tn.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ti.prototype.getEncoded=function(e){var t=function(e,t){var r=e.toByteArrayUnsigned();if(tr.length;)r.unshift(0);return r},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),i=t(r,32);return e?n.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(n,32))),i},ti.decodeFrom=function(e,t){t[0];var r=t.length-1,n=t.slice(1,1+r/2),i=t.slice(1+r/2,1+r);n.unshift(0),i.unshift(0);var a=new E(n),o=new E(i);return new ti(e,e.fromBigInteger(a),e.fromBigInteger(o))},ti.decodeFromHex=function(e,t){t.substr(0,2);var r=t.length-2,n=t.substr(2,r/2),i=t.substr(2+r/2,r/2),a=new E(n,16),o=new E(i,16);return new ti(e,e.fromBigInteger(a),e.fromBigInteger(o))},ti.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),r=e.y.subtract(this.y).divide(t),n=r.square().subtract(this.x).subtract(e.x),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new ti(this.curve,n,i)},ti.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(E.valueOf(2)),t=this.curve.fromBigInteger(E.valueOf(3)),r=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=r.square().subtract(this.x.multiply(e)),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new ti(this.curve,n,i)},ti.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e.multiply(new E("3")),n=this.negate(),i=this;for(t=r.bitLength()-2;t>0;--t){i=i.twice();var a=r.testBit(t);a!=e.testBit(t)&&(i=i.add2D(a?this:n))}return i},ti.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),r=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),i=this.curve.getQ(),a=t.multiply(t).mod(i),o=e.multiply(e).multiply(e).add(r.multiply(e)).add(n).mod(i);return a.equals(o)},ti.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ti.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw Error("Point is at infinity.");var t=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(0>t.compareTo(E.ONE)||t.compareTo(e.subtract(E.ONE))>0)throw Error("x coordinate out of bounds");if(0>r.compareTo(E.ONE)||r.compareTo(e.subtract(E.ONE))>0)throw Error("y coordinate out of bounds");if(!this.isOnCurve())throw Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw Error("Point is not a scalar multiple of G.");return!0};/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval - */var to=function(){var e=RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=RegExp("\\\\(?:([^u])|u(.{4}))","g"),r={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function n(e,t,n){return t?r[t]:String.fromCharCode(parseInt(n,16))}var i=new String(""),a=Object.hasOwnProperty;return function(r,o){var s,u,c,l=r.match(e),f=l[0],d=!1;"{"===f?s={}:"["===f?s=[]:(s=[],d=!0);for(var h=[s],p=1-d,m=l.length;p=0;)delete r[n[u]]}return o.call(e,t,r)};s=g({"":s},"")}return s}}();void 0!==d&&d||(d={}),void 0!==d.asn1&&d.asn1||(d.asn1={}),d.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i15)throw Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));return(128+r).toString(16)+t},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},d.asn1.DERAbstractString=function(e){d.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=tp(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},tD(d.asn1.DERAbstractString,d.asn1.ASN1Object),d.asn1.DERAbstractTime=function(e){d.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,r){var n=this.zeroPadding,i=this.localDateToUTC(e),a=String(i.getFullYear());"utc"==t&&(a=a.substr(2,2));var o=a+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var s=i.getMilliseconds();if(0!=s){var u=n(String(s),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,r,n,i,a){var o=new Date(Date.UTC(e,t-1,r,n,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},tD(d.asn1.DERAbstractTime,d.asn1.ASN1Object),d.asn1.DERAbstractStructured=function(e){d.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=[],void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},tD(d.asn1.DERAbstractStructured,d.asn1.ASN1Object),d.asn1.DERBoolean=function(e){d.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",!1==e?this.hTLV="010100":this.hTLV="0101ff"},tD(d.asn1.DERBoolean,d.asn1.ASN1Object),d.asn1.DERInteger=function(e){d.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=d.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new E(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},tD(d.asn1.DERInteger,d.asn1.ASN1Object),d.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=d.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}d.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>6,i=128|63&r;return tm(n.toString(16)+i.toString(16))}var n=224|(240&t)>>4,i=128|(15&t)<<2|(192&r)>>6;return tm(n.toString(16)+i.toString(16)+(128|63&r).toString(16))}).join("")}function tk(e){for(var t=encodeURIComponent(e),r="",n=0;n"7"?"00"+e:e}function tR(e){if(!t_(e))return null;try{var t=[],r=e.substr(0,2),n=parseInt(r,16);t[0]=new String(Math.floor(n/40)),t[1]=new String(n%40);for(var i=e.substr(2),a=[],o=0;o0&&(c=c+"."+s.join(".")),c}catch(e){return null}}ts.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var r=parseInt(e.substr(t+3,1));return 0==r?-1:0=n)break}return a},ts.getNthChildIdx=function(e,t,r){return ts.getChildIdx(e,t)[r]},ts.getIdxbyList=function(e,t,r,n){var i,a;return 0==r.length?void 0!==n&&e.substr(t,2)!==n?-1:t:(i=r.shift())>=(a=ts.getChildIdx(e,t)).length?-1:ts.getIdxbyList(e,a[i],r,n)},ts.getIdxbyListEx=function(e,t,r,n){if(0==r.length)return void 0!==n&&e.substr(t,2)!==n?-1:t;i=r.shift(),a=ts.getChildIdx(e,t);for(var i,a,o=0,s=0;s=e.length?null:ts.getTLV(e,i)},ts.getTLVbyListEx=function(e,t,r,n){var i=ts.getIdxbyListEx(e,t,r,n);return -1==i?null:ts.getTLV(e,i)},ts.getVbyList=function(e,t,r,n,i){var a,o;return -1==(a=ts.getIdxbyList(e,t,r,n))||a>=e.length?null:(o=ts.getV(e,a),!0===i&&(o=o.substr(2)),o)},ts.getVbyListEx=function(e,t,r,n,i){var a,o;return -1==(a=ts.getIdxbyListEx(e,t,r,n))?null:(o=ts.getV(e,a),"03"==e.substr(a,2)&&!1!==i&&(o=o.substr(2)),o)},ts.getInt=function(e,t,r){void 0==r&&(r=-1);try{var n=e.substr(t,2);if("02"!=n&&"03"!=n)return r;var i=ts.getV(e,t);if("02"==n)return parseInt(i,16);return function(e){if(e.length%2!=0||null==(e=e.toLowerCase()).match(/^[0-9a-f]+$/))return -1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var r=parseInt(t,16);if(r>7)return -1;var n=e.substr(2),i=parseInt(n,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-r);var a=parseInt(i,2);if(a==NaN)return -1;return a}catch(e){return -1}}(i)}catch(e){return r}},ts.getOID=function(e,t,r){void 0==r&&(r=null);try{if("06"!=e.substr(t,2))return r;var n=ts.getV(e,t);return tR(n)}catch(e){return r}},ts.getOIDName=function(e,t,r){void 0==r&&(r=null);try{var n=ts.getOID(e,t,r);if(n==r)return r;var i=d.asn1.x509.OID.oid2name(n);if(""==i)return n;return i}catch(e){return r}},ts.getString=function(e,t,r){void 0==r&&(r=null);try{var n=ts.getV(e,t);return tv(n)}catch(e){return r}},ts.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:Array(t-e.length+1).join("0")+e},r=[],n=parseInt(e.substr(0,2),16);r[0]=new String(Math.floor(n/40)),r[1]=new String(n%40);for(var i=e.substr(2),a=[],o=0;o0&&(c=c+"."+s.join(".")),c},ts.dump=function(e,t,r,n){var i=ts.getV,a=ts.dump,o=ts.getChildIdx,s=e;e instanceof d.asn1.ASN1Object&&(s=e.tohex());var u=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===r&&(r=0),void 0===n&&(n="");var c=t.ommit_long_octet,l=s.substr(r,2);if("01"==l){var f=i(s,r);return"00"==f?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n"}if("02"==l){var f=i(s,r);return n+"INTEGER "+u(f,c)+"\n"}if("03"==l){var f=i(s,r);if(!ts.isASN1HEX(f.substr(2)))return n+"BITSTRING "+u(f,c)+"\n";var h=n+"BITSTRING, encapsulates\n";return h+a(f.substr(2),t,0,n+" ")}if("04"==l){var f=i(s,r);if(!ts.isASN1HEX(f))return n+"OCTETSTRING "+u(f,c)+"\n";var h=n+"OCTETSTRING, encapsulates\n";return h+a(f,t,0,n+" ")}if("05"==l)return n+"NULL\n";if("06"==l){var p=i(s,r),m=d.asn1.ASN1Util.oidHexToInt(p),g=d.asn1.x509.OID.oid2name(m),y=m.replace(/\./g," ");return""!=g?n+"ObjectIdentifier "+g+" ("+y+")\n":n+"ObjectIdentifier ("+y+")\n"}if("0a"==l)return n+"ENUMERATED "+parseInt(i(s,r))+"\n";if("0c"==l)return n+"UTF8String '"+tm(i(s,r))+"'\n";if("13"==l)return n+"PrintableString '"+tm(i(s,r))+"'\n";if("14"==l)return n+"TeletexString '"+tm(i(s,r))+"'\n";if("16"==l)return n+"IA5String '"+tm(i(s,r))+"'\n";if("17"==l)return n+"UTCTime "+tm(i(s,r))+"\n";if("18"==l)return n+"GeneralizedTime "+tm(i(s,r))+"\n";if("1a"==l)return n+"VisualString '"+tm(i(s,r))+"'\n";if("1e"==l)return n+"BMPString '"+tO(i(s,r))+"'\n";if("30"==l){if("3000"==s.substr(r,4))return n+"SEQUENCE {}\n";var h=n+"SEQUENCE\n",b=o(s,r),x=t;if((2==b.length||3==b.length)&&"06"==s.substr(b[0],2)&&"04"==s.substr(b[b.length-1],2)){var g=ts.oidname(i(s,b[0])),S=JSON.parse(JSON.stringify(t));S.x509ExtName=g,x=S}for(var w=0;w4?{enum:{hex:h}}:{enum:parseInt(h,16)};if("30"==l||"31"==l)return f[c[l]]=function(e){for(var r=[],n=a(e,0),o=0;o31)return!1;if((192&r)==128&&(31&r)==n)return!0;return!1}catch(e){return!1}},ts.isASN1HEX=function(e){if(e.length%2==1)return!1;var t=ts.getVblen(e,0),r=e.substr(0,2),n=ts.getL(e,0);return e.length-r.length-n.length==2*t},ts.checkStrictDER=function(e,t,r,n,i){if(void 0===r){if("string"!=typeof e||(e=e.toLowerCase(),!d.lang.String.isHex(e)))throw Error("not hex string");r=e.length,i=(n=e.length/2)<128?1:Math.ceil(n.toString(16))+1}if(ts.getL(e,t).length>2*i)throw Error("L of TLV too long: idx="+t);var a=ts.getVblen(e,t);if(a>n)throw Error("value of L too long than hex: idx="+t);var o=ts.getTLV(e,t),s=o.length-2-ts.getL(e,t).length;if(s!==2*a)throw Error("V string length and L's value not the same:"+s+"/"+2*a);if(0===t&&e.length!=o.length)throw Error("total length and TLV length unmatch:"+e.length+"!="+o.length);var u=e.substr(t,2);if("02"===u){var c=ts.getVidx(e,t);if("00"==e.substr(c,2)&&56>e.charCodeAt(c+2))throw Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var l=ts.getVblen(e,t),f=0,h=ts.getChildIdx(e,t),p=0;p0&&e.push(new n({tag:"a3",obj:new c(t.ext)})),new d.asn1.DERSequence({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.TBSCertificate,d.asn1.ASN1Object),d.asn1.x509.Extensions=function(e){d.asn1.x509.Extensions.superclass.constructor.call(this);var t=d.asn1,r=t.DERSequence,n=t.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t-1&&e.push(new n({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},tD(d.asn1.x509.BasicConstraints,d.asn1.x509.Extension),d.asn1.x509.CRLDistributionPoints=function(e){d.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=d.asn1,r=t.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var n=[],i=0;i0&&e.push(new r({array:t}))}return new r({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.PolicyInformation,d.asn1.ASN1Object),d.asn1.x509.PolicyQualifierInfo=function(e){d.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=d.asn1,r=t.DERSequence,n=t.DERIA5String,i=t.DERObjectIdentifier,a=t.x509.UserNotice;this.params=null,this.tohex=function(){if(void 0!==this.params.cps){var e=new r({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new n({str:this.params.cps})]});return e.tohex()}if(void 0!=this.params.unotice){var e=new r({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new a(this.params.unotice)]});return e.tohex()}},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.PolicyQualifierInfo,d.asn1.ASN1Object),d.asn1.x509.UserNotice=function(e){d.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=d.asn1.DERSequence,r=(d.asn1.DERInteger,d.asn1.x509.DisplayText),n=d.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];return void 0!==this.params.noticeref&&e.push(new n(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new r(this.params.exptext)),new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.UserNotice,d.asn1.ASN1Object),d.asn1.x509.NoticeReference=function(e){d.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=d.asn1.DERSequence,r=d.asn1.DERInteger,n=d.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new n(this.params.org)),void 0!==this.params.noticenum){for(var i=[],a=this.params.noticenum,o=0;o0)for(var e=0;e0;i++){var a=t.shift();if(!0===r){var o=(n.pop()+","+a).replace(/\\,/g,",");n.push(o),r=!1}else n.push(a);"\\"===a.substr(-1,1)&&(r=!0)}return(n=n.map(function(e){return e.replace("/","\\/")})).reverse(),"/"+n.join("/")},d.asn1.x509.X500Name.ldapToOneline=function(e){return d.asn1.x509.X500Name.ldapToCompat(e)},d.asn1.x509.RDN=function(e){d.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=d.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new d.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=d.asn1.x509.RDN.parseString(e),r=0;r0)for(var e=0;e0;i++){var a=t.shift();if(!0===r){var o=(n.pop()+"+"+a).replace(/\\\+/g,"+");n.push(o),r=!1}else n.push(a);"\\"===a.substr(-1,1)&&(r=!0)}for(var s=!1,u=[],i=0;n.length>0;i++){var a=n.shift();if(!0===s){var c=u.pop();if(a.match(/"$/)){var o=(c+"+"+a).replace(/^([^=]+)="(.*)"$/,"$1=$2");u.push(o),s=!1}else u.push(c+"+"+a)}else u.push(a);a.match(/^[^=]+="/)&&(s=!0)}return u},d.asn1.x509.AttributeTypeAndValue=function(e){d.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=d,r=t.asn1,n=r.DERSequence,i=r.DERUTF8String,a=r.DERPrintableString,o=r.DERTeletexString,s=r.DERIA5String,u=r.DERVisibleString,c=r.DERBMPString,l=t.lang.String.isMail,f=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str.match(/^([^=]+)=(.+)$/);if(t)this.sType=t[1],this.sValue=t[2];else throw Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var r=e.match(/^([^=]+)=(.+)$/);if(r)this.setByAttrTypeAndValueStr(r[1],r[2]);else throw Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)},this._getDsType=function(){var e=this.sType,t=this.sValue,r=this.sRule;if("prn"===r){if("CN"==e&&l(t))return"ia5";if(f(t))return"prn"}else if("utf8"===r){if("CN"==e&&l(t))return"ia5";if("C"==e)return"prn"}return"utf8"},this.setByAttrTypeAndValueStr=function(e,t,r){void 0!==r&&(this.sRule=r),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new a({str:t});if("tel"==e)return new o({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new u({str:t});if("bmp"==e)return new c({str:t});throw Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=d.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),r=new n({array:[e,t]});return this.TLV=r.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.AttributeTypeAndValue,d.asn1.ASN1Object),d.asn1.x509.SubjectPublicKeyInfo=function(e){d.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=d,r=t.asn1,n=r.DERInteger,i=r.DERBitString,a=r.DERObjectIdentifier,o=r.DERSequence,s=r.ASN1Util.newObject,u=r.x509.AlgorithmIdentifier,c=t.crypto;c.ECDSA,c.DSA,this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new o({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof tt){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}).tohex();this.asn1AlgId=new u({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+t})}}catch(e){}try{if(e instanceof d.crypto.ECDSA){var r=new a({name:e.curveName});this.asn1AlgId=new u({name:"ecPublicKey",asn1params:r}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(e){}try{if(e instanceof d.crypto.DSA){var r=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new u({name:"dsa",asn1params:r});var o=new n({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+o.tohex()})}}catch(e){}},void 0!==e&&this.setPubKey(e)},tD(d.asn1.x509.SubjectPublicKeyInfo,d.asn1.ASN1Object),d.asn1.x509.Time=function(e){d.asn1.x509.Time.superclass.constructor.call(this);var t=d.asn1,r=t.DERUTCTime,n=t.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null!=e&&e.str&&(null==e.type||void 0==e.type)&&(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new r(e.str)),"gen"==e.type&&(t=new n(e.str))):t="gen"==this.type?new n:new r,null==t)throw Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},d.asn1.x509.Time_bak=function(e){d.asn1.x509.Time_bak.superclass.constructor.call(this);var t=d.asn1,r=t.DERUTCTime,n=t.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new r(this.timeParams):new n(this.timeParams):"utc"==this.type?new r:new n,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},tD(d.asn1.x509.Time,d.asn1.ASN1Object),d.asn1.x509.AlgorithmIdentifier=function(e){d.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=d.asn1,r=t.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var n in r)n===this.nameAlg&&(e=r[n]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=t.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var a=new t.DERSequence({array:i});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var n=this.nameAlg.toLowerCase();"withdsa"!==n.substr(-7,7)&&"withecdsa"!==n.substr(-9,9)&&(this.asn1Params=new t.DERNull)}},tD(d.asn1.x509.AlgorithmIdentifier,d.asn1.ASN1Object),d.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},d.asn1.x509.GeneralName=function(e){d.asn1.x509.GeneralName.superclass.constructor.call(this);var t=d.asn1,r=t.x509,n=r.X500Name,i=r.OtherName,a=t.DERIA5String,o=(t.DERPrintableString,t.DEROctetString),s=t.DERTaggedObject,u=t.ASN1Object,c=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=!1;if(void 0!==e.other)r="a0",l=new i(e.other);else if(void 0!==e.rfc822)r="81",l=new a({str:e.rfc822});else if(void 0!==e.dns)r="82",l=new a({str:e.dns});else if(void 0!==e.dn)r="a4",t=!0,l="string"==typeof e.dn?new n({str:e.dn}):e.dn instanceof d.asn1.x509.X500Name?e.dn:new n(e.dn);else if(void 0!==e.ldapdn)r="a4",t=!0,l=new n({ldapstr:e.ldapdn});else if(void 0!==e.certissuer||void 0!==e.certsubj){r="a4",t=!0;var r,t,l,f,h,p,m=null;if(void 0!==e.certsubj?(f=!1,h=e.certsubj):(f=!0,h=e.certissuer),h.match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(m=tb(h)),null==m)throw Error("certsubj/certissuer not cert");var g=new tH;g.hex=m,p=f?g.getIssuerHex():g.getSubjectHex(),(l=new u).hTLV=p}else if(void 0!==e.uri)r="86",l=new a({str:e.uri});else if(void 0!==e.ip){r="87";var y,b=e.ip;try{if(b.match(/^[0-9a-f]+$/)){var x=b.length;if(8==x||16==x||32==x||64==x)y=b;else throw"err"}else y=function e(t){var r=Error("malformed IP address");if(!(t=t.toLowerCase(t)).match(/^[0-9a-f.:/]+$/))throw r;if(t.match(/^[0-9.]+$/)){var n=t.split(".");if(4!==n.length)throw r;var i="";try{for(var a=0;a<4;a++){var o=parseInt(n[a]);i+=("0"+o.toString(16)).slice(-2)}return i}catch(e){throw r}}else{if(t.match(/^[0-9.]+\/[0-9]+$/)){var s=t.split("/");return e(s[0])+tP(parseInt(s[1]),32)}if(t.match(/^[0-9a-f:]+$/)&&-1!==t.indexOf(":"))return tw(t);if(t.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==t.indexOf(":")){var s=t.split("/");return tw(s[0])+tP(parseInt(s[1]),128)}throw r}}(b)}catch(t){throw new c("malformed IP address: "+e.ip+":"+t.message)}l=new o({hex:y})}else throw new c("improper params");return new s({tag:r,explicit:t,obj:l}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.GeneralName,d.asn1.ASN1Object),d.asn1.x509.GeneralNames=function(e){d.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=d.asn1;this.setByParamArray=function(e){for(var r=0;r0){for(var r=n(e.valhex,t[0]),i=u(r,0),a=[],o=0;o1){var l=n(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var t=u(e.valhex,0);if(t.length>0){var i=ts.getOID(e.valhex,t[0]);e.oid=i}if(t.length>1){var a=new tH,o=u(e.valhex,t[1]),s=n(e.valhex,o[0]),c=a.getAlgorithmIdentifierName(s);e.alg=c;var l=r(e.valhex,o[1]);e.hash=l}delete e.valhex},this.setSigningCertificateV2=function(e){var t=u(e.valhex,0);if(t.length>0){for(var r=n(e.valhex,t[0]),i=u(r,0),a=[],o=0;o1){var l=n(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.getESSCertID=function(e){var t={},i=u(e,0);if(i.length>0){var a=r(e,i[0]);t.hash=a}if(i.length>1){var o=n(e,i[1]),s=this.getIssuerSerial(o);void 0!=s.serial&&(t.serial=s.serial),void 0!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(i){var a={},o=u(i,0);if(o.length<1||3s+1){var f=n(i,o[s+1]),d=this.getIssuerSerial(f);a.issuer=d.issuer,a.serial=d.serial}return a},this.getIssuerSerial=function(e){var i={},a=u(e,0),o=n(e,a[0]),s=t.getGeneralNames(o)[0].dn;i.issuer=s;var c=r(e,a[1]);return i.serial={hex:c},i},this.getCertificateSet=function(e){for(var t=u(e,0),r=[],i=0;i=0;o--)i+=n[o];return i}if("string"==typeof e&&void 0!=a[e])return tT([e],a);if("object"==typeof e&&void 0!=e.length)return tT(e,a);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new n({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},tD(d.asn1.tsp.PKIFailureInfo,d.asn1.ASN1Object),d.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},d.asn1.tsp.SimpleTSAAdapter=function(e){var t=d,r=t.asn1.tsp,n=t.crypto.Util.hashHex;r.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var i=n(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},this.params.econtent.content.serial={int:this.serial++},this.params.econtent.content.nonce={int:Math.floor(1e9*Math.random())},new r.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},tD(d.asn1.tsp.SimpleTSAAdapter,d.asn1.tsp.AbstractTSAAdapter),d.asn1.tsp.FixedTSAAdapter=function(e){var t=d,r=t.asn1.tsp,n=t.crypto.Util.hashHex;r.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var i=n(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},new r.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},tD(d.asn1.tsp.FixedTSAAdapter,d.asn1.tsp.AbstractTSAAdapter),d.asn1.tsp.TSPUtil=new function(){},d.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new d.asn1.tsp.TimeStampToken(e)},d.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){return new d.asn1.tsp.TSPParser().getTimeStampReq(e)},d.asn1.tsp.TSPUtil.parseMessageImprint=function(e){return new d.asn1.tsp.TSPParser().getMessageImprint(e)},d.asn1.tsp.TSPParser=function(){var e=new tH,t=ts.getV,r=ts.getTLV,n=ts.getIdxbyList,i=(ts.getTLVbyListEx,ts.getChildIdx),a=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],o={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=i(e,0);if(1==t.length)return this.getPKIStatusInfo(r(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(r(e,t[0])),a=r(e,t[1]),o=this.getToken(a);return o.statusinfo=n,o}},this.getToken=function(e){var t=(new d.asn1.cms.CMSParser).getCMSSignedData(e);return this.setTSTInfo(t),t},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var r=t.content.hex,n=this.getTSTInfo(r);t.content=n}},this.getTSTInfo=function(n){var a={},o=i(n,0),s=t(n,o[1]);a.policy=tR(s);var u=r(n,o[2]);a.messageImprint=this.getMessageImprint(u);var c=t(n,o[3]);a.serial={hex:c};var l=t(n,o[4]);a.genTime={str:tm(l)};var f=0;if(o.length>5&&"30"==n.substr(o[5],2)){var d=r(n,o[5]);a.accuracy=this.getAccuracy(d),f++}if(o.length>5+f&&"01"==n.substr(o[5+f],2)&&("ff"==t(n,o[5+f])&&(a.ordering=!0),f++),o.length>5+f&&"02"==n.substr(o[5+f],2)){var h=t(n,o[5+f]);a.nonce={hex:h},f++}if(o.length>5+f&&"a0"==n.substr(o[5+f],2)){var p=r(n,o[5+f]);p="30"+p.substr(2);var m=(pGeneralNames=e.getGeneralNames(p))[0].dn;a.tsa=m,f++}if(o.length>5+f&&"a1"==n.substr(o[5+f],2)){var g=r(n,o[5+f]);g="30"+g.substr(2);var y=e.getExtParamArray(g);a.ext=y,f++}return a},this.getAccuracy=function(e){for(var r={},n=i(e,0),a=0;a1&&"30"==e.substr(o[1],2)){var l=r(e,o[1]);n.statusstr=this.getPKIFreeText(l),s++}if(o.length>s&&"03"==e.substr(o[1+s],2)){var f=r(e,o[1+s]);n.failinfo=this.getPKIFailureInfo(f)}return n},this.getPKIFreeText=function(e){for(var t=[],r=i(e,0),n=0;n=t)?e:Array(t-e.length+1).join(r)+e};function tT(e,t){for(var r=0,n=0;n=0;n--)a+=i[n];return a}function tD(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}void 0!==d&&d||(d={}),void 0!==d.crypto&&d.crypto||(d.crypto={}),d.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:b.algo.MD5,sha1:b.algo.SHA1,sha224:b.algo.SHA224,sha256:b.algo.SHA256,sha384:b.algo.SHA384,sha512:b.algo.SHA512,ripemd160:b.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,r){var n=this.getDigestInfoHex(e,t),i=r/4;if(n.length+22>i)throw"key is too short for SigAlg: keylen="+r+","+t;for(var a="0001",o="00"+n,s="",u=i-a.length-o.length,c=0;c=s.compareTo(E.ZERO));var u=o.modInverse(i).multiply(a.add(n.multiply(s))).mod(i);return r.biRSSigToASN1Sig(s,u)},this.sign=function(e,t){var r=this.ecparams.n,n=E.fromByteArrayUnsigned(e);do var i=this.getBigRandom(r),a=this.ecparams.G.multiply(i).getX().toBigInteger().mod(r);while(0>=a.compareTo(E.ZERO));var o=i.modInverse(r).multiply(n.add(t.multiply(a))).mod(r);return this.serializeSig(a,o)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var i,a,o=r.parseSigHex(t);i=o.r,a=o.s;var s=ti.decodeFromHex(this.ecparams.curve,n),u=new E(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(u,i,a,s)}catch(e){return!1}},this.verify=function(e,t,r){if(Bitcoin.Util.isArray(t)){var n,i,a,o=this.parseSig(t);n=o.r,i=o.s}else if("object"==typeof t&&t.r&&t.s)n=t.r,i=t.s;else throw"Invalid value for signature";if(r instanceof ti)a=r;else if(Bitcoin.Util.isArray(r))a=ti.decodeFrom(this.ecparams.curve,r);else throw"Invalid format for pubkey value, must be byte array or ECPointFp";var s=E.fromByteArrayUnsigned(e);return this.verifyRaw(s,n,i,a)},this.verifyRaw=function(e,t,r,n){var i=this.ecparams.n,a=this.ecparams.G;if(0>t.compareTo(E.ONE)||t.compareTo(i)>=0||0>r.compareTo(E.ONE)||r.compareTo(i)>=0)return!1;var o=r.modInverse(i),s=e.multiply(o).mod(i),u=t.multiply(o).mod(i);return a.multiply(s).add(n.multiply(u)).getX().toBigInteger().mod(i).equals(t)},this.serializeSig=function(e,t){var r=e.toByteArraySigned(),n=t.toByteArraySigned(),i=[];return i.push(2),i.push(r.length),(i=i.concat(r)).push(2),i.push(n.length),(i=i.concat(n)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){if(48!=e[0])throw Error("Signature not a valid DERSequence");if(2!=e[t=2])throw Error("First element in signature must be a DERInteger");var t,r=e.slice(t+2,t+2+e[t+1]);if(t+=2+e[t+1],2!=e[t])throw Error("Second element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:E.fromByteArrayUnsigned(r),s:E.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:E.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:E.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){var t,r,n;if(!1===o(e))throw Error("not ASN.1 hex string");try{t=a(e,0,["[0]",0],"06"),r=a(e,0,[1],"04");try{n=a(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=i(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){var r,n,s;if(!1===o(e))throw new t("not ASN.1 hex string");try{a(e,0,[1,0],"06"),r=a(e,0,[1,1],"06"),n=a(e,0,[2,0,1],"04");try{s=a(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=i(r),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){var r,n;if(!1===o(e))throw new t("not ASN.1 hex string");try{a(e,0,[0,0],"06"),r=a(e,0,[0,1],"06"),n=a(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=i(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(e,r){var n,s;if(!1===o(e))throw new t("not ASN.1 hex string");try{n=a(e,0,[0,5,0,1],"06"),s=a(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=i(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},d.crypto.ECDSA.parseSigHex=function(e){var t=d.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new E(t.r,16),s:new E(t.s,16)}},d.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=ts.getChildIdx,r=ts.getV;if(ts.checkStrictDER(e,0),"30"!=e.substr(0,2))throw Error("signature is not a ASN.1 sequence");var n=t(e,0);if(2!=n.length)throw Error("signature shall have two elements");var i=n[0],a=n[1];if("02"!=e.substr(i,2))throw Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw Error("2nd item not ASN.1 integer");return{r:r(e,i),s:r(e,a)}},d.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=d.crypto.ECDSA.parseSigHexInHexRS(e),r=t.r,n=t.s;if(r.length>=130&&r.length<=134){if(r.length%2!=0)throw Error("unknown ECDSA sig r length error");if(n.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==r.substr(0,2)&&(r=r.substr(2)),"00"==n.substr(0,2)&&(n=n.substr(2));var i=Math.max(r.length,n.length);return(r=("000000"+r).slice(-i))+(n=("000000"+n).slice(-i))}if("00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r="00"+r),n.length%32==30&&(n="00"+n),r.length%32!=0)throw Error("unknown ECDSA sig r length error");if(n.length%32!=0)throw Error("unknown ECDSA sig s length error");return r+n},d.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),r=e.substr(e.length/2);return d.crypto.ECDSA.hexRSSigToASN1Sig(t,r)},d.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var r=new E(e,16),n=new E(t,16);return d.crypto.ECDSA.biRSSigToASN1Sig(r,n)},d.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var r=d.asn1,n=new r.DERInteger({bigint:e}),i=new r.DERInteger({bigint:t});return new r.DERSequence({array:[n,i]}).tohex()},d.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},void 0!==d&&d||(d={}),void 0!==d.crypto&&d.crypto||(d.crypto={}),d.crypto.ECParameterDB=new function(){var e={},t={};function r(e){return new E(e,16)}this.getByName=function(r){var n=r;if(void 0!==t[n]&&(n=t[r]),void 0!==e[n])return e[n];throw"unregistered EC curve name: "+n},this.regist=function(n,i,a,o,s,u,c,l,f,d,h,p){e[n]={};var m=r(a),g=r(o),y=r(s),b=r(u),x=r(c),S=new ta(m,g,y),w=S.decodePointHex("04"+l+f);e[n].name=n,e[n].keylen=i,e[n].keycharlen=2*Math.ceil(i/8),e[n].curve=S,e[n].G=w,e[n].n=b,e[n].h=x,e[n].oid=h,e[n].info=p;for(var E=0;E1?new E(n,16):null,c=new E(i,16),this.setPrivate(a,o,s,u,c)},this.setPublic=function(e,t,r,n){this.isPublic=!0,this.p=e,this.q=t,this.g=r,this.y=n,this.x=null},this.setPublicHex=function(e,t,r,n){var i,a,o,s;i=new E(e,16),a=new E(t,16),o=new E(r,16),s=new E(n,16),this.setPublic(i,a,o,s)},this.signWithMessageHash=function(e){var t=this.p,r=this.q,n=this.g;this.y;var i=this.x,a=d.crypto.Util.getRandomBigIntegerMinToMax(E.ONE.add(E.ONE),r.subtract(E.ONE)),o=e.substr(0,r.bitLength()/4),s=new E(o,16),u=n.modPow(a,t).mod(r),c=a.modInverse(r).multiply(s.add(i.multiply(u))).mod(r);return d.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:u}},{int:{bigint:c}}]})},this.verifyWithMessageHash=function(e,t){var r=this.p,n=this.q,i=this.g,a=this.y,o=this.parseASN1Signature(t),s=o[0],u=o[1],c=e.substr(0,n.bitLength()/4),l=new E(c,16);if(E.ZERO.compareTo(s)>0||s.compareTo(n)>0||E.ZERO.compareTo(u)>=0||u.compareTo(n)>0)throw"invalid DSA signature";var f=u.modInverse(n),d=l.multiply(f).mod(n),h=s.multiply(f).mod(n);return 0==i.modPow(d,r).multiply(a.modPow(h,r)).mod(r).mod(n).compareTo(s)},this.parseASN1Signature=function(t){try{var r=new E(e(t,0,[0],"02"),16),n=new E(e(t,0,[1],"02"),16);return[r,n]}catch(e){throw Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(r){var n,i,a,o,s;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[1],"02"),i=e(r,0,[2],"02"),a=e(r,0,[3],"02"),o=e(r,0,[4],"02"),s=e(r,0,[5],"02")}catch(e){throw Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(n,i,a,o,s)},this.readPKCS8PrvKeyHex=function(r){var n,i,a,o;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[1,1,0],"02"),i=e(r,0,[1,1,1],"02"),a=e(r,0,[1,1,2],"02"),o=e(r,0,[2,0],"02")}catch(e){throw Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(n,i,a,null,o)},this.readPKCS8PubKeyHex=function(r){var n,i,a,o;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[0,1,0],"02"),i=e(r,0,[0,1,1],"02"),a=e(r,0,[0,1,2],"02"),o=e(r,0,[1,0],"02")}catch(e){throw Error("malformed PKCS#8 DSA public key")}this.setPublicHex(n,i,a,o)},this.readCertPubKeyHex=function(r,n){var i,a,o,s;if(!1===t(r))throw Error("not ASN.1 hex string");try{i=e(r,0,[0,5,0,1,0],"02"),a=e(r,0,[0,5,0,1,1],"02"),o=e(r,0,[0,5,0,1,2],"02"),s=e(r,0,[0,5,1,0],"02")}catch(e){throw Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,a,o,s)}};var tN=(n=function(e,t,r){return i(b.AES,e,t,r)},i=function(e,t,r,n){var i=b.enc.Hex.parse(t),a=b.enc.Hex.parse(r),o=b.enc.Hex.parse(n),s={};s.key=a,s.iv=o,s.ciphertext=i;var u=e.decrypt(s,a,{iv:o});return b.enc.Hex.stringify(u)},a=function(e,t,r){return o(b.AES,e,t,r)},o=function(e,t,r,n){var i=b.enc.Hex.parse(t),a=b.enc.Hex.parse(r),o=b.enc.Hex.parse(n),s=e.encrypt(i,a,{iv:o}),u=b.enc.Hex.parse(s.toString());return b.enc.Base64.stringify(u)},s={"AES-256-CBC":{proc:n,eproc:a,keylen:32,ivlen:16},"AES-192-CBC":{proc:n,eproc:a,keylen:24,ivlen:16},"AES-128-CBC":{proc:n,eproc:a,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(e,t,r){return i(b.TripleDES,e,t,r)},eproc:function(e,t,r){return o(b.TripleDES,e,t,r)},keylen:24,ivlen:8},"DES-CBC":{proc:function(e,t,r){return i(b.DES,e,t,r)},eproc:function(e,t,r){return o(b.DES,e,t,r)},keylen:8,ivlen:8}},u=function(e){var t=b.lib.WordArray.random(e);return b.enc.Hex.stringify(t)},c=function(e){var t={},r=e.match(RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));r&&(t.cipher=r[1],t.ivsalt=r[2]);var n=e.match(RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));n&&(t.type=n[1]);var i=-1,a=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),a=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),a=1);var o=e.indexOf("-----END");if(-1!=i&&-1!=o){var s=e.substring(i+2*a,o-a);s=s.replace(/\s+/g,""),t.data=s}return t},l=function(e,t,r){for(var n=r.substring(0,16),i=b.enc.Hex.parse(n),a=b.enc.Utf8.parse(t),o=s[e].keylen+s[e].ivlen,u="",c=null;;){var l=b.algo.MD5.create();if(null!=c&&l.update(c),l.update(a),l.update(i),c=l.finalize(),(u+=b.enc.Hex.stringify(c)).length>=2*o)break}var f={};return f.keyhex=u.substr(0,2*s[e].keylen),f.ivhex=u.substr(2*s[e].keylen,2*s[e].ivlen),f},f=function(e,t,r,n){var i=b.enc.Base64.parse(e),a=b.enc.Hex.stringify(i);return(0,s[t].proc)(a,r,n)},{version:"1.0.0",parsePKCS5PEM:function(e){return c(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,r){return l(e,t,r)},decryptKeyB64:function(e,t,r,n){return f(e,t,r,n)},getDecryptedKeyHex:function(e,t){var r=c(e);r.type;var n=r.cipher,i=r.ivsalt,a=r.data,o=l(n,t,i).keyhex;return f(a,n,o,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,r,n,i){var a,o,c="";if((void 0===n||null==n)&&(n="AES-256-CBC"),void 0===s[n])throw Error("KEYUTIL unsupported algorithm: "+n);(void 0===i||null==i)&&(i=u(s[n].ivlen).toUpperCase());var f=l(n,r,i).keyhex,d=(a=n,o=i,(0,s[a].eproc)(t,f,o)).replace(/(.{64})/g,"$1\r\n"),c="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return c+("Proc-Type: 4,ENCRYPTED\r\n"+("DEK-Info: "+n+",")+i+"\r\n\r\n"+d+"\r\n-----END "+e)+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var t=ts.getChildIdx,r=ts.getV,n={},i=t(e,0);if(2!=i.length)throw Error("malformed format: SEQUENCE(0).items != 2: "+i.length);n.ciphertext=r(e,i[1]);var a=t(e,i[0]);if(2!=a.length)throw Error("malformed format: SEQUENCE(0.0).items != 2: "+a.length);if("2a864886f70d01050d"!=r(e,a[0]))throw Error("this only supports pkcs5PBES2");var o=t(e,a[1]);if(2!=a.length)throw Error("malformed format: SEQUENCE(0.0.1).items != 2: "+o.length);var s=t(e,o[1]);if(2!=s.length)throw Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+s.length);if("2a864886f70d0307"!=r(e,s[0]))throw"this only supports TripleDES";n.encryptionSchemeAlg="TripleDES",n.encryptionSchemeIV=r(e,s[1]);var u=t(e,o[0]);if(2!=u.length)throw Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length);if("2a864886f70d01050c"!=r(e,u[0]))throw Error("this only supports pkcs5PBKDF2");var c=t(e,u[1]);if(c.length<2)throw Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length);n.pbkdf2Salt=r(e,c[0]);var l=r(e,c[1]);try{n.pbkdf2Iter=parseInt(l,16)}catch(e){throw Error("malformed format pbkdf2Iter: "+l)}return n},getPBKDF2KeyHexFromParam:function(e,t){var r=b.enc.Hex.parse(e.pbkdf2Salt),n=e.pbkdf2Iter,i=b.PBKDF2(t,r,{keySize:6,iterations:n});return b.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var r=tb(e,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(r),i=tN.getPBKDF2KeyHexFromParam(n,t),a={};a.ciphertext=b.enc.Hex.parse(n.ciphertext);var o=b.enc.Hex.parse(i),s=b.enc.Hex.parse(n.encryptionSchemeIV),u=b.TripleDES.decrypt(a,o,{iv:s});return b.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var r=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(r)},parsePlainPrivatePKCS8Hex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};if(n.algparam=null,"30"!=e.substr(0,2))throw Error("malformed plain PKCS8 private key(code:001)");var i=t(e,0);if(i.length<3)throw Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(i[1],2))throw Error("malformed PKCS8 private key(code:003)");var a=t(e,i[1]);if(2!=a.length)throw Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(a[0],2))throw Error("malformed PKCS8 private key(code:005)");if(n.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(n.algparam=r(e,a[1])),"04"!=e.substr(i[2],2))throw Error("malformed PKCS8 private key(code:006)");return n.keyidx=ts.getVidx(e,i[2]),n},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=tb(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,r=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==r.algoid)t=new tt;else if("2a8648ce380401"==r.algoid)t=new d.crypto.DSA;else if("2a8648ce3d0201"==r.algoid)t=new d.crypto.ECDSA;else throw Error("unsupported private key algorithm");return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,r=ts.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===r)t=new tt;else if("2a8648ce380401"===r)t=new d.crypto.DSA;else if("2a8648ce3d0201"===r)t=new d.crypto.ECDSA;else throw Error("unsupported PKCS#8 public key hex");return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};if("30"!=e.substr(0,2))throw Error("malformed RSA key(code:001)");var i=t(e,0);if(2!=i.length)throw Error("malformed RSA key(code:002)");if("02"!=e.substr(i[0],2))throw Error("malformed RSA key(code:003)");if(n.n=r(e,i[0]),"02"!=e.substr(i[1],2))throw Error("malformed RSA key(code:004)");return n.e=r(e,i[1]),n},parsePublicPKCS8Hex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};n.algparam=null;var i=t(e,0);if(2!=i.length)throw Error("outer DERSequence shall have 2 elements: "+i.length);var a=i[0];if("30"!=e.substr(a,2))throw Error("malformed PKCS8 public key(code:001)");var o=t(e,a);if(2!=o.length)throw Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(o[0],2))throw Error("malformed PKCS8 public key(code:003)");if(n.algoid=r(e,o[0]),"06"==e.substr(o[1],2)?n.algparam=r(e,o[1]):"30"==e.substr(o[1],2)&&(n.algparam={},n.algparam.p=ts.getVbyList(e,o[1],[0],"02"),n.algparam.q=ts.getVbyList(e,o[1],[1],"02"),n.algparam.g=ts.getVbyList(e,o[1],[2],"02")),"03"!=e.substr(i[1],2))throw Error("malformed PKCS8 public key(code:004)");return n.key=r(e,i[1]).substr(2),n}});function tM(e,t){for(var r="",n=t/4-e.length,i=0;i>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return n}function tB(e){for(var t in d.crypto.Util.DIGESTINFOHEAD){var r=d.crypto.Util.DIGESTINFOHEAD[t],n=r.length;if(e.substring(0,n)==r)return[t,e.substring(n)]}return[]}function tH(e){var t,r=ts.getChildIdx,n=ts.getV,i=(ts.dump,ts.parse),a=ts.getTLV,o=ts.getVbyList,s=ts.getVbyListEx,u=ts.getTLVbyList,c=ts.getTLVbyListEx,l=ts.getIdxbyList,f=ts.getIdxbyListEx,h=ts.getVidx,p=ts.getInt,m=ts.oidname,g=ts.hextooidstr;try{t=d.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=u(this.hex,0,[0,0]);if("a0"!=e.substr(0,2))return this.version=1,this.foffset=-1,1;var t=p(u(e,0,[0]),0);if(t<0||21){var s=a(e,o[1]),u=this.getGeneralName(s);void 0!=u.uri&&(i.uri=u.uri)}if(o.length>2){var c=a(e,o[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i};var y=function(e){var t={};try{var r=e.seq[0].oid,n=d.asn1.x509.OID.name2oid(r);t.type=d.asn1.x509.OID.oid2atype(n);var i=e.seq[1];if(void 0!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(void 0!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(void 0!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(void 0!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(void 0!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(void 0!=i.visstr)t.ds="vis",t.value=i.visstr.str;else if(void 0!=i.bmpstr)t.ds="bmp",t.value=i.bmpstr.str;else throw"error";return t}catch(e){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},b=function(e){try{return e.set.map(function(e){return y(e)})}catch(e){throw Error("improper ASN.1 parsed RDN: "+e)}},x=function(e){try{return e.seq.map(function(e){return b(e)})}catch(e){throw Error("improper ASN.1 parsed X500Name: "+e)}};this.getX500NameRule=function(e){for(var t=null,r=[],n=0;n0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),"object"==typeof e&&(!0==e.tbshex&&(t.tbshex=u(this.hex,0,[0])),!0==e.nodnarray&&(delete t.issuer.array,delete t.subject.array)),t},this.getExtParamArray=function(e){void 0==e&&-1!=f(this.hex,0,[0,"[3]"])&&(e=c(this.hex,0,[0,"[3]",0],"30"));for(var t=[],n=r(e,0),i=0;i2&&"04"===e.substr(b[1],2))(l=new s).readPKCS5PrvKeyHex(e);else throw Error("unsupported PKCS#1/5 hexadecimal key");return l}if("pkcs8prv"===r){var l=tN.getKeyFromPlainPrivatePKCS8Hex(e);return l}if("pkcs8pub"===r)return tN._getKeyFromPublicPKCS8Hex(e);if("x509pub"===r)return tH.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return tH.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var x=tb(e,"PUBLIC KEY");return tN._getKeyFromPublicPKCS8Hex(x)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=c(e,"RSA PRIVATE KEY");return tN.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var w=c(e,"DSA PRIVATE KEY"),A=a(w,0,[1],"02"),C=a(w,0,[2],"02"),P=a(w,0,[3],"02"),O=a(w,0,[4],"02"),k=a(w,0,[5],"02"),l=new u;return l.setPrivate(new E(A,16),new E(C,16),new E(P,16),new E(O,16),new E(k,16)),l}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=c(e,"EC PRIVATE KEY");return tN.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return tN.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var _=tN.getDecryptedKeyHex(e,t),F=new tt;return F.readPKCS5PrvKeyHex(_),F}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var w=tN.getDecryptedKeyHex(e,t),l=a(w,0,[1],"04"),j=a(w,0,[2,0],"06"),R=a(w,0,[3,0],"03").substr(2),I="";if(void 0!==d.crypto.OID.oidhex2name[j])I=d.crypto.OID.oidhex2name[j];else throw Error("undefined OID(hex) in KJUR.crypto.OID: "+j);var f=new s({curve:I});return f.setPublicKeyHex(R),f.setPrivateKeyHex(l),f.isPublic=!1,f}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var w=tN.getDecryptedKeyHex(e,t),A=a(w,0,[1],"02"),C=a(w,0,[2],"02"),P=a(w,0,[3],"02"),O=a(w,0,[4],"02"),k=a(w,0,[5],"02"),l=new u;return l.setPrivate(new E(A,16),new E(C,16),new E(P,16),new E(O,16),new E(k,16)),l}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return tN.getKeyFromEncryptedPKCS8PEM(e,t);throw Error("not supported argument")},tN.generateKeypair=function(e,t){if("RSA"==e){var r=new tt;r.generate(t,"10001"),r.isPrivate=!0,r.isPublic=!0;var n=new tt,i=r.n.toString(16),a=r.e.toString(16);n.setPublic(i,a),n.isPrivate=!1,n.isPublic=!0;var o={};return o.prvKeyObj=r,o.pubKeyObj=n,o}if("EC"==e){var s=new d.crypto.ECDSA({curve:t}).generateKeyPairHex(),r=new d.crypto.ECDSA({curve:t});r.setPublicKeyHex(s.ecpubhex),r.setPrivateKeyHex(s.ecprvhex),r.isPrivate=!0,r.isPublic=!1;var n=new d.crypto.ECDSA({curve:t});n.setPublicKeyHex(s.ecpubhex),n.isPrivate=!1,n.isPublic=!0;var o={};return o.prvKeyObj=r,o.pubKeyObj=n,o}throw Error("unknown algorithm: "+e)},tN.getPEM=function(e,t,r,n,i,a){var o=d,s=o.asn1,u=s.DERObjectIdentifier,c=s.DERInteger,l=s.ASN1Util.newObject,f=s.x509.SubjectPublicKeyInfo,h=o.crypto,p=h.DSA,m=h.ECDSA;function g(e){return l({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function y(e){return l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function x(e){return l({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==tt&&e instanceof tt||void 0!==p&&e instanceof p||void 0!==m&&e instanceof m)&&!0==e.isPublic&&(void 0===t||"PKCS8PUB"==t)){var S=new f(e),w=S.tohex();return ty(w,"PUBLIC KEY")}if("PKCS1PRV"==t&&void 0!==tt&&e instanceof tt&&(void 0===r||null==r)&&!0==e.isPrivate){var S=g(e),w=S.tohex();return ty(w,"RSA PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===r||null==r)&&!0==e.isPrivate){var E=new u({name:e.curveName}).tohex(),A=y(e).tohex();return""+(ty(E,"EC PARAMETERS")+ty(A,"EC PRIVATE KEY"))}if("PKCS1PRV"==t&&void 0!==p&&e instanceof p&&(void 0===r||null==r)&&!0==e.isPrivate){var S=x(e),w=S.tohex();return ty(w,"DSA PRIVATE KEY")}if("PKCS5PRV"==t&&void 0!==tt&&e instanceof tt&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=g(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,r,n,a)}if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=y(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,r,n,a)}if("PKCS5PRV"==t&&void 0!==p&&e instanceof p&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=x(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,r,n,a)}var C=function(e,t){var r=P(e,t);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:r.pbkdf2Salt}},{int:r.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:r.encryptionSchemeIV}}]}]}]},{octstr:{hex:r.ciphertext}}]}).tohex()},P=function(e,t){var r=b.lib.WordArray.random(8),n=b.lib.WordArray.random(8),i=b.PBKDF2(t,r,{keySize:6,iterations:100}),a=b.enc.Hex.parse(e),o=b.TripleDES.encrypt(a,i,{iv:n})+"",s={};return s.ciphertext=o,s.pbkdf2Salt=b.enc.Hex.stringify(r),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=b.enc.Hex.stringify(n),s};if("PKCS8PRV"==t&&void 0!=tt&&e instanceof tt&&!0==e.isPrivate){var O=g(e),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==m&&e instanceof m&&!0==e.isPrivate){var _={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&_.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});var O=new l(_),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==p&&e instanceof p&&!0==e.isPrivate){var O=new c({bigint:e.x}),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}throw Error("unsupported object nor format")},tN.getKeyFromCSRPEM=function(e){var t=tb(e,"CERTIFICATE REQUEST");return tN.getKeyFromCSRHex(t)},tN.getKeyFromCSRHex=function(e){var t=tN.parseCSRHex(e);return tN.getKey(t.p8pubkeyhex,null,"pkcs8pub")},tN.parseCSRHex=function(e){var t=ts.getChildIdx,r=ts.getTLV,n={};if("30"!=e.substr(0,2))throw Error("malformed CSR(code:001)");var i=t(e,0);if(i.length<1)throw Error("malformed CSR(code:002)");if("30"!=e.substr(i[0],2))throw Error("malformed CSR(code:003)");var a=t(e,i[0]);if(a.length<3)throw Error("malformed CSR(code:004)");return n.p8pubkeyhex=r(e,a[2]),n},tN.getKeyID=function(e){"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=tN.getKey(e));var t=tb(tN.getPEM(e)),r=ts.getIdxbyList(t,0,[1]),n=ts.getV(t,r).substring(2);return d.crypto.Util.hashHex(n,"sha1")},tN.getJWK=function(e,t,r,n,i){var a,o,s={},u=d.crypto.Util.hashHex;if("string"==typeof e)a=tN.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(o=tb(e));else if("object"==typeof e)e instanceof tH?(a=e.getPublicKey(),o=e.hex):a=e;else throw Error("unsupported keyinfo type");if(a instanceof tt&&a.isPrivate)s.kty="RSA",s.n=td(a.n.toString(16)),s.e=td(a.e.toString(16)),s.d=td(a.d.toString(16)),s.p=td(a.p.toString(16)),s.q=td(a.q.toString(16)),s.dp=td(a.dmp1.toString(16)),s.dq=td(a.dmq1.toString(16)),s.qi=td(a.coeff.toString(16));else if(a instanceof tt&&a.isPublic)s.kty="RSA",s.n=td(a.n.toString(16)),s.e=td(a.e.toString(16));else if(a instanceof d.crypto.ECDSA&&a.isPrivate){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw Error("unsupported curve name for JWT: "+c);var l=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=td(l.x),s.y=td(l.y),s.d=td(a.prvKeyHex)}else if(a instanceof d.crypto.ECDSA&&a.isPublic){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw Error("unsupported curve name for JWT: "+c);var l=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=td(l.x),s.y=td(l.y)}if(void 0==s.kty)throw Error("unsupported keyinfo");return a.isPrivate||!0==t||(s.kid=d.jws.JWS.getJWKthumbprint(s)),void 0!=o&&!0!=r&&(s.x5c=[S(o)]),void 0!=o&&!0!=n&&(s.x5t=tl(S(u(o,"sha1")))),void 0!=o&&!0!=i&&(s["x5t#S256"]=tl(S(u(o,"sha256")))),s},tN.getJWKFromKey=function(e){return tN.getJWK(e,!0,!0,!0,!0)},tt.getPosArrayOfChildrenFromHex=function(e){return ts.getChildIdx(e,0)},tt.getHexValueArrayOfChildrenFromHex=function(e){var t=ts.getV,r=tt.getPosArrayOfChildrenFromHex(e),n=t(e,r[0]),i=t(e,r[1]),a=t(e,r[2]),o=t(e,r[3]),s=t(e,r[4]),u=t(e,r[5]),c=t(e,r[6]),l=t(e,r[7]),f=t(e,r[8]),r=[];return r.push(n,i,a,o,s,u,c,l,f),r},tt.prototype.readPrivateKeyFromPEMString=function(e){var t=tb(e),r=tt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},tt.prototype.readPKCS5PrvKeyHex=function(e){var t=tt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},tt.prototype.readPKCS8PrvKeyHex=function(e){var t,r,n,i,a,o,s,u,c=ts.getVbyListEx;if(!1===ts.isASN1HEX(e))throw Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),r=c(e,0,[2,0,2],"02"),n=c(e,0,[2,0,3],"02"),i=c(e,0,[2,0,4],"02"),a=c(e,0,[2,0,5],"02"),o=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,r,n,i,a,o,s,u)},tt.prototype.readPKCS5PubKeyHex=function(e){var t=ts.getV;if(!1===ts.isASN1HEX(e))throw Error("keyHex is not ASN.1 hex string");var r=ts.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw Error("wrong hex for PKCS#5 public key");var n=t(e,r[0]),i=t(e,r[1]);this.setPublic(n,i)},tt.prototype.readPKCS8PubKeyHex=function(e){if(!1===ts.isASN1HEX(e))throw Error("not ASN.1 hex string");if("06092a864886f70d010101"!==ts.getTLVbyListEx(e,0,[0,0]))throw Error("not PKCS8 RSA public key");var t=ts.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(t)},tt.prototype.readCertPubKeyHex=function(e,t){var r,n;(r=new tH).readCertHex(e),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)},tt.prototype.sign=function(e,t){var r=d.crypto.Util.hashString(e,t);return this.signWithMessageHash(r,t)},tt.prototype.signWithMessageHash=function(e,t){var r=d.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),n=e7(r,16);return tM(this.doPrivate(n).toString(16),this.n.bitLength())},tt.prototype.signPSS=function(e,t,r){var n,i=(n=tg(e),d.crypto.Util.hashHex(n,t));return void 0===r&&(r=-1),this.signWithMessageHashPSS(i,t,r)},tt.prototype.signWithMessageHashPSS=function(e,t,r){var n,i=tv(e),a=i.length,o=this.n.bitLength()-1,s=Math.ceil(o/8),u=function(e){return d.crypto.Util.hashHex(e,t)};if(-1===r||void 0===r)r=a;else if(-2===r)r=s-a-2;else if(r<-2)throw Error("invalid salt length");if(s0&&(c=Array(r),new e9().nextBytes(c),c=String.fromCharCode.apply(String,c));var l=tv(u(tg("\x00\x00\x00\x00\x00\x00\x00\x00"+i+c))),f=[];for(n=0;n>8*s-o&255),n=0;nn)return!1;var i=this.doPublic(r).toString(16);if(i.length+3!=n/4)return!1;var a=tB(i.replace(/^1f+00/,""));if(0==a.length)return!1;var o=a[0],s=a[1],u=d.crypto.Util.hashString(e,o);return s==u},tt.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=e7(t,16);if(r.bitLength()>this.n.bitLength())return 0;var n=tB(this.doPublic(r).toString(16).replace(/^1f+00/,""));return 0!=n.length&&(n[0],n[1]==e)},tt.prototype.verifyPSS=function(e,t,r,n){var i,a=(i=tg(e),d.crypto.Util.hashHex(i,r));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(a,t,r,n)},tt.prototype.verifyWithMessageHashPSS=function(e,t,r,n){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,a=new E(t,16),o=function(e){return d.crypto.Util.hashHex(e,r)},s=tv(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw Error("invalid salt length");if(l>8*l-c&255;if((h.charCodeAt(0)&m)!=0)throw Error("bits beyond keysize not zero");var g=tL(p,h.length,o),y=[];for(i=0;i0&&-1==(":"+r.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=tN.getKey(t)),("RS"==y||"PS"==y)&&!(t instanceof tt))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==y&&!(t instanceof s))throw"key shall be a ECDSA obj for ES* algs";var b=null;if(void 0===i.jwsalg2sigalg[m.alg])throw"unsupported alg name: "+g;if("none"==(b=i.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==b.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var x=new u({alg:b,pass:t});return x.updateString(f),h==x.doFinal()}if(-1!=b.indexOf("withECDSA")){var S=null;try{S=s.concatSigToASN1Sig(h)}catch(e){return!1}var w=new c({alg:b});return w.init(t),w.updateString(f),w.verify(S)}var w=new c({alg:b});return w.init(t),w.updateString(f),w.verify(h)},d.jws.JWS.parse=function(e){var t,r,n,i=e.split("."),a={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],r=i[1],3==i.length&&(n=i[2]),a.headerObj=d.jws.JWS.readSafeJSONString(p(t)),a.payloadObj=d.jws.JWS.readSafeJSONString(p(r)),a.headerPP=JSON.stringify(a.headerObj,null," "),null==a.payloadObj?a.payloadPP=p(r):a.payloadPP=JSON.stringify(a.payloadObj,null," "),void 0!==n&&(a.sigHex=th(n)),a},d.jws.JWS.verifyJWT=function(e,t,r){var n=d.jws,i=n.JWS,a=i.readSafeJSONString,o=i.inArray,s=i.includedArray;if(!tF(e))return!1;var u=e.split(".");if(3!=u.length)return!1;var c=u[0],l=u[1];th(u[2]);var f=a(p(c)),h=a(p(l));if(void 0===f.alg)return!1;if(void 0===r.alg)throw"acceptField.alg shall be specified";if(!o(f.alg,r.alg)||void 0!==h.iss&&"object"==typeof r.iss&&!o(h.iss,r.iss)||void 0!==h.sub&&"object"==typeof r.sub&&!o(h.sub,r.sub))return!1;if(void 0!==h.aud&&"object"==typeof r.aud){if("string"==typeof h.aud){if(!o(h.aud,r.aud))return!1}else if("object"==typeof h.aud&&!s(h.aud,r.aud))return!1}var m=n.IntDate.getNow();return void 0!==r.verifyAt&&"number"==typeof r.verifyAt&&(m=r.verifyAt),(void 0===r.gracePeriod||"number"!=typeof r.gracePeriod)&&(r.gracePeriod=0),(void 0===h.exp||"number"!=typeof h.exp||!(h.exp+r.gracePeriodi&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+e}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t0)this.aHeader=e.headers;else throw"malformed header";if("string"==typeof e.payload)this.sPayload=e.payload;else throw"malformed signatures";if(e.signatures.length>0)this.aSignature=e.signatures;else throw"malformed signatures"}catch(e){throw"malformed JWS-JS JSON object: "+e}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},d.crypto.ECDSA,d.crypto.DSA,d.crypto.Signature,d.crypto.MessageDigest,d.crypto.Mac,d.crypto.Cipher,t.KZ=tN,t.fs=d,d.crypto,d.asn1,d.jws,d.lang},48094:function(e){var t=Object.prototype.toString;e.exports=function(e){return!0===e||!1===e||!!e&&"object"==typeof e&&"[object Boolean]"==t.call(e)}},98423:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,u=o.toString,c=a.Symbol,l=c?c.toStringTag:void 0;e.exports=function(e){if(t=typeof e,null==e||"object"!=t&&"function"!=t)return!1;var t,r=null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=s.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var i=u.call(e);return n&&(t?e[l]=r:delete e[l]),i}(e):u.call(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},23126:function(e){var t=Object.prototype.toString;e.exports=function(e){return"number"==typeof e||!!e&&"object"==typeof e&&"[object Number]"==t.call(e)}},25751:function(e){var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){var n;return"string"==typeof e||!r(e)&&!!(n=e)&&"object"==typeof n&&"[object String]"==t.call(e)}},35683:function(e,t,r){var n,i,a=1/0,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\ud800-\udfff",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="['’]",p="["+d+"]",m="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="["+l+"]",y="[^"+u+d+"\\d+"+c+l+f+"]",b="(?:\ud83c[\udde6-\uddff]){2}",x="[\ud800-\udbff][\udc00-\udfff]",S="["+f+"]",w="(?:"+g+"|"+y+")",E="(?:"+h+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+h+"(?:D|LL|M|RE|S|T|VE))?",C="(?:"+m+"|\ud83c[\udffb-\udfff])?",P="[\\ufe0e\\ufe0f]?",O="(?:\\u200d(?:"+["[^"+u+"]",b,x].join("|")+")"+P+C+")*",k="(?:"+["["+c+"]",b,x].join("|")+")"+(P+C+O),_=RegExp(h,"g"),F=RegExp(m,"g"),j=RegExp([S+"?"+g+"+"+E+"(?="+[p,S,"$"].join("|")+")","(?:"+S+"|"+y+")+"+A+"(?="+[p,S+w,"$"].join("|")+")",S+"?"+w+"+"+E,S+"+"+A,"\\d+",k].join("|"),"g"),R=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,T="object"==typeof self&&self&&self.Object===Object&&self,D=I||T||Function("return this")(),N=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),M=Object.prototype.toString,L=D.Symbol,B=L?L.prototype:void 0,H=B?B.toString:void 0;function $(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==M.call(t))return H?H.call(e):"";var t,r=e+"";return"0"==r&&1/e==-a?"-0":r}(e)}var U=(i=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){var t;return function(e,t,r,n){for(var i=-1,a=e?e.length:0;++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++nl))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var p=-1,m=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++p-1&&e%1==0&&e-1}},54705:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),a=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},42634:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},24523:function(e,t,r){var n=r(88306);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},45357:function(e,t,r){var n=r(96874),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),a=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(e,t),this.size=r.size,this}},55514:function(e,t,r){var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(a,"$1"):r||e)}),t});e.exports=o},40327:function(e,t,r){var n=r(33448),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},75703:function(e){e.exports=function(e){return function(){return e}}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},84486:function(e,t,r){var n=r(77412),i=r(89881),a=r(54290),o=r(1469);e.exports=function(e,t){return(o(e)?n:i)(e,a(t))}},27361:function(e,t,r){var n=r(97786);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},79095:function(e,t,r){var n=r(13),i=r(222);e.exports=function(e,t){return null!=e&&i(e,t,n)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,r){var n=r(9454),i=r(37005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},29246:function(e,t,r){var n=r(98612),i=r(37005);e.exports=function(e){return i(e)&&n(e)}},51584:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},81763:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,r){var n=r(44239),i=r(85924),a=r(37005),o=Object.prototype,s=Function.prototype.toString,u=o.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},47037:function(e,t,r){var n=r(44239),i=r(1469),a=r(37005);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==n(e)}},33448:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},36719:function(e,t,r){var n=r(38749),i=r(7518),a=r(31167),o=a&&a.isTypedArray,s=o?i(o):n;e.exports=s},3674:function(e,t,r){var n=r(14636),i=r(280),a=r(98612);e.exports=function(e){return a(e)?n(e):i(e)}},81704:function(e,t,r){var n=r(14636),i=r(10313),a=r(98612);e.exports=function(e){return a(e)?n(e,!0):i(e)}},66604:function(e,t,r){var n=r(89465),i=r(47816),a=r(11243);e.exports=function(e,t){var r={};return t=a(t,3),i(e,function(e,i,a){n(r,i,t(e,i,a))}),r}},88306:function(e,t,r){var n=r(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},82492:function(e,t,r){var n=r(42980),i=r(21463)(function(e,t,r){n(e,t,r)});e.exports=i},35937:function(e,t,r){var n=r(29932),i=r(11243),a=r(63012),o=r(46904);e.exports=function(e,t){if(null==e)return{};var r=n(o(e),function(e){return[e]});return t=i(t),a(e,r,function(e,r){return t(e,r[0])})}},39601:function(e,t,r){var n=r(40371),i=r(79152),a=r(15403),o=r(40327);e.exports=function(e){return a(e)?n(o(e)):i(e)}},54061:function(e,t,r){var n=r(62663),i=r(89881),a=r(11243),o=r(10107),s=r(1469);e.exports=function(e,t,r){var u=s(e)?n:o,c=arguments.length<3;return u(e,a(t,4),r,c,i)}},36968:function(e,t,r){var n=r(10611);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},30084:function(e,t,r){var n=r(29932),i=r(278),a=r(1469),o=r(33448),s=r(55514),u=r(40327),c=r(79833);e.exports=function(e){return a(e)?n(e,u):o(e)?[e]:i(s(c(e)))}},59881:function(e,t,r){var n=r(98363),i=r(81704);e.exports=function(e){return n(e,i(e))}},79833:function(e,t,r){var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},63947:function(e,t,r){var n,i;n=r(23126),i={"minor second":16/15,"major second":9/8,"minor third":1.2,"major third":4/3,"diminished fourth":Math.sqrt(2),"perfect fifth":1.5,"minor sixth":1.6,golden:1.61803398875,phi:1.61803398875,"major sixth":5/3,"minor seventh":16/9,"major seventh":15/8,octave:2,"major tenth":2.5,"major eleventh":8/3,"major twelfth":3,"double octave":4},e.exports=function(e,t){return null==e&&(e=0),null==t&&(t="golden"),Math.pow(n(t)?t:null!=i[t]?i[t]:i.golden,e)}},11752:function(e,t,r){e.exports=r(62156)},61165:function(e,t,r){"use strict";var n,i,a,o,s,u=r(50029),c=r(71383),l=r(87794),f=r.n(l),d=r(67294),h=r(69696),p=r(99603),m=r(71893),g=r(42894),y=r(59417),b=r(85330),x=r(35683),S=r.n(x),w=r(85893),E=(0,m.ZP)(h.ZP)(n||(n=(0,c.Z)(["\n display: flex;\n align-items: center;\n text-align: left !important;\n\n & .pg-modal-main {\n max-width: 700px;\n margin: auto;\n box-shadow: 5px 5px 10px black;\n }\n"]))),A=(0,m.ZP)(h.ZP.Header)(i||(i=(0,c.Z)(["\n font-size: 1.5em;\n padding: 0.75em;\n background: #38598a;\n color: #fff;\n & a {\n float: right;\n }\n"]))),C=(0,m.ZP)(p.G)(a||(a=(0,c.Z)(["\n margin-right: 5px;\n height: 30px;\n"]))),P=m.ZP.div(o||(o=(0,c.Z)(["\n color: #000;\n cursor: default;\n font-weight: 400;\n"]))),O=m.ZP.div(s||(s=(0,c.Z)(["\n margin-top: 20px;\n display: flex;\n justify-content: "," & button {\n min-width: 150px;\n margin-right: 20px;\n display: inline-block;\n\n &:disabled {\n cursor: not-allowed;\n }\n }\n"])),function(e){return"center"===e.buttonAlign?"center;":"space-between;"});t.Z=function(e){var t,r,n=e.onConfirm,i=e.onClose,a=e.content,o=e.id,s=e.title,c=e.closable,l=e.icon,m=void 0===l?y.eHv:l,x=e.confirmText,k=e.showCancel,_=void 0===k||k,F=e.showConfirm,j=void 0===F||F,R=e.buttonStyle,I=e.buttonAlign,T=e.skipCloseOnConfirm,D=void 0!==T&&T,N=e.style,M=e.disableConfirm,L=(0,d.useState)(!1),B=L[0],H=L[1],$="bcSecondary",U="bcPrimary",z="confirm-delete-"+S()(s),V="cancel-"+S()(s);switch(void 0===R?"bcgov":R){case"bcgov":break;case"custom":$="secondary",U="primary";break;case"danger":$="secondary",U="danger"}var K=(t=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(H(!0),!n){e.next=4;break}return e.next=4,n();case 4:H(!1),D||(window.location.hash="#");case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),W=(r=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i&&i(),window.location.hash="#";case 2:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)});return(0,w.jsxs)(E,{id:o,children:[(0,w.jsxs)(A,{title:s,as:"div",children:[m&&(0,w.jsx)(C,{icon:m,title:"Information",size:"2x",style:{paddingRight:"10px"}}),s,c&&(0,w.jsx)(h.ZP.Close,{onClick:W,title:"exit",children:(0,w.jsx)(p.G,{icon:y.NBC,size:"lg"})})]}),(0,w.jsxs)(h.ZP.Content,{style:void 0===N?{}:N,children:[(0,w.jsx)(P,{children:a}),(_||j)&&(0,w.jsxs)(O,{buttonAlign:void 0===I?"default":I,children:[_&&(0,w.jsx)(b.zx,{variant:$,onClick:W,type:"button","data-testid":V,children:"Cancel"}),j&&(0,w.jsx)(b.zx,{"data-testid":z,onClick:K,variant:U,type:"button",className:"text-center",disabled:void 0!==M&&M,children:B?(0,w.jsx)(g.rj,{color:"#FFF",height:18,width:50,wrapperClass:"d-block",visible:B}):void 0===x?"Confirm":x})]})]})]})}},30233:function(e,t,r){"use strict";r.d(t,{V:function(){return j}});var n,i,a,o,s=r(50029),u=r(59499),c=r(71383),l=r(87794),f=r.n(l),d=r(67294),h=r(69696),p=r(99603),m=r(34798),g=r.n(m),y=r(71893),b=r(42894),x=r(59417),S=r(85330),w=r(35683),E=r.n(w),A=r(85893);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t0&&(n=I(r.width)/o||1),a>0&&(i=I(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function D(e){var t=T(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function N(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&F(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function M(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return O(e).getComputedStyle(e)}function B(e){return((k(e)?e.ownerDocument:e.document)||window.document).documentElement}function H(e){return"html"===M(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||B(e)}function $(e){return _(e)&&"fixed"!==L(e).position?e.offsetParent:null}function U(e){for(var t=O(e),r=$(e);r&&["table","td","th"].indexOf(M(r))>=0&&"static"===L(r).position;)r=$(r);return r&&("html"===M(r)||"body"===M(r)&&"static"===L(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_(e)&&"fixed"===L(e).position)return null;var r=H(e);for(F(r)&&(r=r.host);_(r)&&0>["html","body"].indexOf(M(r));){var n=L(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V(e,t,r){return j(e,R(t,r))}function K(){return{top:0,right:0,bottom:0,left:0}}function W(e){return Object.assign({},K(),e)}function q(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var Z="bottom",G="right",Y="left",J="auto",X=["top",Z,G,Y],Q="start",ee="viewport",et="popper",er=X.reduce(function(e,t){return e.concat([t+"-"+Q,t+"-end"])},[]),en=[].concat(X,[J]).reduce(function(e,t){return e.concat([t,t+"-"+Q,t+"-end"])},[]),ei=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ea(e){return e.split("-")[1]}var eo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function es(e){var t,r,n,i,a,o,s=e.popper,u=e.popperRect,c=e.placement,l=e.variation,f=e.offsets,d=e.position,h=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,g=e.isFixed,y=f.x,b=void 0===y?0:y,x=f.y,S=void 0===x?0:x,w="function"==typeof m?m({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var E=f.hasOwnProperty("x"),A=f.hasOwnProperty("y"),C=Y,P="top",k=window;if(p){var _=U(s),F="clientHeight",j="clientWidth";_===O(s)&&"static"!==L(_=B(s)).position&&"absolute"===d&&(F="scrollHeight",j="scrollWidth"),("top"===c||(c===Y||c===G)&&"end"===l)&&(P=Z,S-=(g&&_===k&&k.visualViewport?k.visualViewport.height:_[F])-u.height,S*=h?1:-1),(c===Y||("top"===c||c===Z)&&"end"===l)&&(C=G,b-=(g&&_===k&&k.visualViewport?k.visualViewport.width:_[j])-u.width,b*=h?1:-1)}var R=Object.assign({position:d},p&&eo),T=!0===m?(r=(t={x:b,y:S}).x,n=t.y,{x:I(r*(i=window.devicePixelRatio||1))/i||0,y:I(n*i)/i||0}):{x:b,y:S};return(b=T.x,S=T.y,h)?Object.assign({},R,((o={})[P]=A?"0":"",o[C]=E?"0":"",o.transform=1>=(k.devicePixelRatio||1)?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",o)):Object.assign({},R,((a={})[P]=A?S+"px":"",a[C]=E?b+"px":"",a.transform="",a))}var eu={passive:!0},ec={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(e){return ec[e]})}var ef={start:"end",end:"start"};function ed(e){return e.replace(/start|end/g,function(e){return ef[e]})}function eh(e){var t=O(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ep(e){return T(B(e)).left+eh(e).scrollLeft}function em(e){var t=L(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function ev(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(M(t))>=0?t.ownerDocument.body:_(t)&&em(t)?t:e(H(t))}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=O(n),o=i?[a].concat(a.visualViewport||[],em(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(ev(H(o)))}function eg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ey(e,t){var r,n,i,a,o,s,u,c,l,f,d,h,p,m,g,y,b;return t===ee?eg((r=O(e),n=B(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0,i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,u=i.offsetTop)),{width:a,height:o,x:s+ep(e),y:u})):k(t)?((c=T(t)).top=c.top+t.clientTop,c.left=c.left+t.clientLeft,c.bottom=c.top+t.clientHeight,c.right=c.left+t.clientWidth,c.width=t.clientWidth,c.height=t.clientHeight,c.x=c.left,c.y=c.top,c):eg((l=B(e),d=B(l),h=eh(l),p=null==(f=l.ownerDocument)?void 0:f.body,m=j(d.scrollWidth,d.clientWidth,p?p.scrollWidth:0,p?p.clientWidth:0),g=j(d.scrollHeight,d.clientHeight,p?p.scrollHeight:0,p?p.clientHeight:0),y=-h.scrollLeft+ep(l),b=-h.scrollTop,"rtl"===L(p||d).direction&&(y+=j(d.clientWidth,p?p.clientWidth:0)-m),{width:m,height:g,x:y,y:b}))}function eb(e){var t,r=e.reference,n=e.element,i=e.placement,a=i?P(i):null,o=i?ea(i):null,s=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2;switch(a){case"top":t={x:s,y:r.y-n.height};break;case Z:t={x:s,y:r.y+r.height};break;case G:t={x:r.x+r.width,y:u};break;case Y:t={x:r.x-n.width,y:u};break;default:t={x:r.x,y:r.y}}var c=a?z(a):null;if(null!=c){var l="y"===c?"height":"width";switch(o){case Q:t[c]=t[c]-(r[l]/2-n[l]/2);break;case"end":t[c]=t[c]+(r[l]/2-n[l]/2)}}return t}function ex(e,t){void 0===t&&(t={});var r,n,i,a,o,s,u,c=t,l=c.placement,f=void 0===l?e.placement:l,d=c.boundary,h=c.rootBoundary,p=c.elementContext,m=void 0===p?et:p,g=c.altBoundary,y=c.padding,b=void 0===y?0:y,x=W("number"!=typeof b?b:q(b,X)),S=e.rects.popper,w=e.elements[void 0!==g&&g?m===et?"reference":et:m],E=(r=k(w)?w:w.contextElement||B(e.elements.popper),s=(o=[].concat("clippingParents"===(n=void 0===d?"clippingParents":d)?(i=ev(H(r)),k(a=["absolute","fixed"].indexOf(L(r).position)>=0&&_(r)?U(r):r)?i.filter(function(e){return k(e)&&N(e,a)&&"body"!==M(e)}):[]):[].concat(n),[void 0===h?ee:h]))[0],(u=o.reduce(function(e,t){var n=ey(r,t);return e.top=j(n.top,e.top),e.right=R(n.right,e.right),e.bottom=R(n.bottom,e.bottom),e.left=j(n.left,e.left),e},ey(r,s))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),A=T(e.elements.reference),C=eb({reference:A,element:S,strategy:"absolute",placement:f}),P=eg(Object.assign({},S,C)),O=m===et?P:A,F={top:E.top-O.top+x.top,bottom:O.bottom-E.bottom+x.bottom,left:E.left-O.left+x.left,right:O.right-E.right+x.right},I=e.modifiersData.offset;if(m===et&&I){var D=I[f];Object.keys(F).forEach(function(e){var t=[G,Z].indexOf(e)>=0?1:-1,r=["top",Z].indexOf(e)>=0?"y":"x";F[e]+=D[r]*t})}return F}function eS(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ew(e){return["top",G,Z,Y].some(function(t){return e[t]>=0})}var eE={placement:"bottom",modifiers:[],strategy:"absolute"};function eA(){for(var e=arguments.length,t=Array(e),r=0;r=0?-1:1,u=(s="function"==typeof a?a(Object.assign({},n,{placement:r})):a)[0],c=s[1],u=u||0,c=(c||0)*o,[Y,G].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}),e},{}),s=o[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=void 0===i||i,o=r.altAxis,s=void 0===o||o,u=r.fallbackPlacements,c=r.padding,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,y=P(g),b=[g].concat(u||(y!==g&&p?function(e){if(P(e)===J)return[];var t=el(e);return[ed(e),t,ed(t)]}(g):[el(g)])).reduce(function(e,r){var n,i,a,o,s,u,d,h,g,y,b,x;return e.concat(P(r)===J?(i=(n={placement:r,boundary:l,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:m}).placement,a=n.boundary,o=n.rootBoundary,s=n.padding,u=n.flipVariations,h=void 0===(d=n.allowedAutoPlacements)?en:d,0===(b=(y=(g=ea(i))?u?er:er.filter(function(e){return ea(e)===g}):X).filter(function(e){return h.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,r){return e[r]=ex(t,{placement:r,boundary:a,rootBoundary:o,padding:s})[P(r)],e},{})).sort(function(e,t){return x[e]-x[t]})):r)},[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,A=b[0],C=0;C=0,j=F?"width":"height",R=ex(t,{placement:O,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),I=F?_?G:Y:_?Z:"top";x[j]>S[j]&&(I=el(I));var T=el(I),D=[];if(a&&D.push(R[k]<=0),s&&D.push(R[I]<=0,R[T]<=0),D.every(function(e){return e})){A=O,E=!1;break}w.set(O,D)}if(E)for(var N=p?3:1,M=function(e){var t=b.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},L=N;L>0&&"break"!==M(L);L--);t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=r.altAxis,o=r.boundary,s=r.rootBoundary,u=r.altBoundary,c=r.padding,l=r.tether,f=void 0===l||l,d=r.tetherOffset,h=void 0===d?0:d,p=ex(t,{boundary:o,rootBoundary:s,padding:c,altBoundary:u}),m=P(t.placement),g=ea(t.placement),y=!g,b=z(m),x="x"===b?"y":"x",S=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,A="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(void 0===i||i){var _,F="y"===b?"top":Y,I="y"===b?Z:G,T="y"===b?"height":"width",N=S[b],M=N+p[F],L=N-p[I],B=f?-E[T]/2:0,H=g===Q?w[T]:E[T],$=g===Q?-E[T]:-w[T],W=t.elements.arrow,q=f&&W?D(W):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K(),X=J[F],ee=J[I],et=V(0,w[T],q[T]),er=y?w[T]/2-B-et-X-C.mainAxis:H-et-X-C.mainAxis,en=y?-w[T]/2+B+et+ee+C.mainAxis:$+et+ee+C.mainAxis,ei=t.elements.arrow&&U(t.elements.arrow),eo=ei?"y"===b?ei.clientTop||0:ei.clientLeft||0:0,es=null!=(_=null==O?void 0:O[b])?_:0,eu=V(f?R(M,N+er-es-eo):M,N,f?j(L,N+en-es):L);S[b]=eu,k[b]=eu-N}if(void 0!==a&&a){var ec,el,ef=S[x],ed="y"===x?"height":"width",eh=ef+p["x"===b?"top":Y],ep=ef-p["x"===b?Z:G],em=-1!==["top",Y].indexOf(m),ev=null!=(ec=null==O?void 0:O[x])?ec:0,eg=em?eh:ef-w[ed]-E[ed]-ev+C.altAxis,ey=em?ef+w[ed]+E[ed]-ev-C.altAxis:ep,eb=f&&em?(el=V(eg,ef,ey))>ey?ey:el:V(f?eg:eh,ef,f?ey:ep);S[x]=eb,k[x]=eb-ef}t.modifiersData[n]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,u=P(n.placement),c=z(u),l=[Y,G].indexOf(u)>=0?"height":"width";if(o&&s){var f=W("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:q(t,X)),d=D(o),h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],p=s[c]-n.rects.reference[c],m=U(o),g=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=f["y"===c?"top":Y],b=g-d[l]-f["y"===c?Z:G],x=g/2-d[l]/2+(h/2-p/2),S=V(y,x,b);n.modifiersData[i]=((r={})[c]=S,r.centerOffset=S-x,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&N(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,s=void 0===(o=n.defaultOptions)?eE:o,function(e,t,r){void 0===r&&(r=s);var n,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},eE,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],u=!1,c={state:i,setOptions:function(r){var n,u,f,d,h,p="function"==typeof r?r(i.options):r;l(),i.options=Object.assign({},s,i.options,p),i.scrollParents={reference:k(e)?ev(e):e.contextElement?ev(e.contextElement):[],popper:ev(t)};var m=(u=Object.keys(n=[].concat(a,i.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,d=new Set,h=[],u.forEach(function(e){f.set(e.name,e)}),u.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=f.get(t);r&&e(r)}}),h.push(t)}(e)}),ei.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var a=n({state:i,name:t,instance:c,options:void 0===r?{}:r});o.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,r,n,a,o,s,l,f,d,h,p,m=i.elements,g=m.reference,y=m.popper;if(eA(g,y)){i.rects={reference:(t=U(y),r="fixed"===i.options.strategy,n=_(t),l=_(t)&&(o=I((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=I(a.height)/t.offsetHeight||1,1!==o||1!==s),f=B(t),d=T(g,l),h={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!r)&&(("body"!==M(t)||em(f))&&(h=(e=t)!==O(e)&&_(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:eh(e)),_(t)?(p=T(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):f&&(p.x=ep(f))),{x:d.left+h.scrollLeft-p.x,y:d.top+h.scrollTop-p.y,width:d.width,height:d.height}),popper:D(y)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;bvoid 0},ek={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:r}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==r.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:r,reference:n}=e.elements,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in n){let e=n.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",e?`${e},${r.id}`:r.id)}}},e_=[];var eF=function(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=e_}=r,s=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,eP),u=(0,l.useRef)(o),c=(0,l.useRef)(),f=(0,l.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),d=(0,l.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[h,p]=C((0,l.useState)({placement:i,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,l.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},r={};Object.keys(e.elements).forEach(n=>{t[n]=e.styles[n],r[n]=e.attributes[n]}),p({state:e,styles:t,attributes:r,update:f,forceUpdate:d,placement:e.placement})}}),[f,d,p]),g=(0,l.useMemo)(()=>(A(u.current,o)||(u.current=o),u.current),[o]);return(0,l.useEffect)(()=>{c.current&&n&&c.current.setOptions({placement:i,strategy:a,modifiers:[...g,m,eO]})},[a,i,m,n,g]),(0,l.useEffect)(()=>{if(n&&null!=e&&null!=t)return c.current=eC(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...g,ek,m]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h},ej=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eR=!1,eI=!1;try{var eT={get passive(){return eR=!0},get once(){return eI=eR=!0}};ej&&(window.addEventListener("test",eT,eT),window.removeEventListener("test",eT,!0))}catch(e){}var eD=function(e,t,r,n){if(n&&"boolean"!=typeof n&&!eI){var i=n.once,a=n.capture,o=r;!eI&&i&&(o=r.__once||function e(n){this.removeEventListener(t,e,a),r.call(this,n)},r.__once=o),e.addEventListener(t,o,eR?n:a)}e.addEventListener(t,r,n)},eN=function(e,t,r,n){var i=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)},eM=function(e,t,r,n){return eD(e,t,r,n),function(){eN(e,t,r,n)}};function eL(e){return e&&e.ownerDocument||document}var eB=r(78146);let eH=()=>{},e$=e=>e&&("current"in e?e.current:e),eU={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var ez=function(e,t=eH,{disabled:r,clickTrigger:n="click"}={}){let i=(0,l.useRef)(!1),a=(0,l.useRef)(!1),o=(0,l.useCallback)(t=>{let r=e$(e);p()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!r||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!f(r,t.target)||a.current,a.current=!1},[e]),s=(0,eB.Z)(t=>{let r=e$(e);r&&f(r,t.target)&&(a.current=!0)}),u=(0,eB.Z)(e=>{i.current||t(e)});(0,l.useEffect)(()=>{if(r||null==e)return;let t=eL(e$(e)),i=(t.defaultView||window).event,a=null;eU[n]&&(a=eM(t,eU[n],s,!0));let c=eM(t,n,o,!0),l=eM(t,n,e=>{if(e===i){i=void 0;return}u(e)}),f=[];return"ontouchstart"in t.documentElement&&(f=[].slice.call(t.body.children).map(e=>eM(e,"mousemove",eH))),()=>{null==a||a(),c(),l(),f.forEach(e=>e())}},[e,r,n,o,s,u])};let eV=()=>{};var eK=function(e,t,{disabled:r,clickTrigger:n}={}){let i=t||eV;ez(e,i,{disabled:r,clickTrigger:n});let a=(0,eB.Z)(e=>{27===e.keyCode&&i(e)});(0,l.useEffect)(()=>{if(r||null==e)return;let t=eL(e$(e)),n=(t.defaultView||window).event,i=eM(t,"keyup",e=>{if(e===n){n=void 0;return}a(e)});return()=>{i()}},[e,r,a])};let eW=(0,l.createContext)(ej?window:void 0);eW.Provider;let eq=(e,t)=>ej?null==e?(t||eL()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function eZ(e,t){let r=(0,l.useContext)(eW),[n,i]=(0,l.useState)(()=>eq(e,null==r?void 0:r.document));if(!n){let t=eq(e);t&&i(t)}return(0,l.useEffect)(()=>{t&&n&&t(n)},[t,n]),(0,l.useEffect)(()=>{let t=eq(e);t!==n&&i(t)},[e,n]),n}var eG=r(85893);let eY=l.forwardRef((e,t)=>{let{flip:r,offset:n,placement:i,containerPadding:a,popperConfig:o={},transition:s}=e,[u,c]=(0,S.Z)(),[f,d]=(0,S.Z)(),h=g(c,t),p=eZ(e.container),m=eZ(e.target),[y,b]=(0,l.useState)(!e.show),w=eF(m,u,function({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:u={}}){var c,l,f,d;let h=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(u.modifiers);return Object.assign({},u,{placement:r,enabled:e,strategy:a?"fixed":u.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},h,{eventListeners:{enabled:t},preventOverflow:Object.assign({},h.preventOverflow,{options:o?Object.assign({padding:o},null==(c=h.preventOverflow)?void 0:c.options):null==(l=h.preventOverflow)?void 0:l.options}),offset:{options:Object.assign({offset:i},null==(f=h.offset)?void 0:f.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},null==(d=h.arrow)?void 0:d.options,{element:s})}),flip:Object.assign({enabled:!!n},h.flip)}))})}({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:r,offset:n,arrowElement:f,popperConfig:o}));e.show?y&&b(!1):e.transition||y||b(!0);let E=(...t)=>{b(!0),e.onExited&&e.onExited(...t)},A=e.show||s&&!y;if(eK(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!A)return null;let C=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:h}),{popper:w,placement:i,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:d})});if(s){let{onExit:t,onExiting:r,onEnter:n,onEntering:i,onEntered:a}=e;C=(0,eG.jsx)(s,{in:e.show,appear:!0,onExit:t,onExiting:r,onExited:E,onEnter:n,onEntering:i,onEntered:a,children:C})}return p?x.createPortal(C,p):null});eY.displayName="Overlay";var eJ=r(99585),eX=r(76792),eQ=/-(.)/g;let e0=e=>e[0].toUpperCase()+e.replace(eQ,function(e,t){return t.toUpperCase()}).slice(1);function e1(e,{displayName:t=e0(e),Component:r,defaultProps:n}={}){let i=l.forwardRef(({className:t,bsPrefix:n,as:i=r||"div",...a},o)=>{let s=(0,eX.vE)(n,e);return(0,eG.jsx)(i,{ref:o,className:b()(t,s),...a})});return i.defaultProps=n,i.displayName=t,i}var e2=e1("popover-header"),e4=e1("popover-body");let e3=l.forwardRef(({bsPrefix:e,placement:t,className:r,style:n,children:i,body:a,arrowProps:o,popper:s,show:u,...c},l)=>{let f;let d=(0,eX.vE)(e,"popover"),h=(0,eX.SC)(),[p]=(null==t?void 0:t.split("-"))||[],m=(f=p,"left"===p?f=h?"end":"start":"right"===p&&(f=h?"start":"end"),f);return(0,eG.jsxs)("div",{ref:l,role:"tooltip",style:n,"x-placement":p,className:b()(r,d,p&&`bs-popover-${m}`),...c,children:[(0,eG.jsx)("div",{className:"popover-arrow",...o}),a?(0,eG.jsx)(e4,{children:i}):i]})});e3.defaultProps={placement:"right"};var e6=Object.assign(e3,{Header:e2,Body:e4,POPPER_OFFSET:[0,8]});function e5(e,t){return(e5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var e8={disabled:!1},e9=l.createContext(null),e7="unmounted",te="exited",tt="entering",tr="entered",tn="exiting",ti=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=te,n.appearStatus=tt):i=tr:i=t.unmountOnExit||t.mountOnEnter?e7:te,n.state={status:i},n.nextCallback=null,n}(r=t).prototype=Object.create(e.prototype),r.prototype.constructor=r,e5(r,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===e7?{status:te}:null};var r,n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==tt&&r!==tr&&(t=tt):(r===tt||r===tr)&&(t=tn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===te&&this.setState({status:e7})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[x.findDOMNode(this),n],a=i[0],o=i[1],s=this.getTimeouts(),u=n?s.appear:s.enter;if(!e&&!r||e8.disabled){this.safeSetState({status:tr},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:tt},function(){t.props.onEntering(a,o),t.onTransitionEnd(u,function(){t.safeSetState({status:tr},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:x.findDOMNode(this);if(!t||e8.disabled){this.safeSetState({status:te},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:tn},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:te},function(){e.props.onExited(n)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===e7)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(e9.Provider,{value:null},"function"==typeof r?r(e,n):l.cloneElement(l.Children.only(r),n))},t}(l.Component);function ta(){}ti.contextType=e9,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ta,onEntering:ta,onEntered:ta,onExit:ta,onExiting:ta,onExited:ta},ti.UNMOUNTED=e7,ti.EXITED=te,ti.ENTERING=tt,ti.ENTERED=tr,ti.EXITING=tn;var to=/([A-Z])/g,ts=/^ms-/;function tu(e){return e.replace(to,"-$1").toLowerCase().replace(ts,"-ms-")}var tc=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,tl=function(e,t){var r,n="",i="";if("string"==typeof t)return e.style.getPropertyValue(tu(t))||((r=eL(e))&&r.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(tu(t));Object.keys(t).forEach(function(r){var a=t[r];a||0===a?r&&tc.test(r)?i+=r+"("+a+") ":n+=tu(r)+": "+a+";":e.style.removeProperty(tu(r))}),i&&(n+="transform: "+i+";"),e.style.cssText+=";"+n};function tf(e,t){let r=tl(e,t)||"",n=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*n}function td(e,t){var r,n,i,a,o,s,u,c,l,f,d,h;let p=tf(e,"transitionDuration"),m=tf(e,"transitionDelay"),g=(r=e,n=r=>{r.target===e&&(g(),t(r))},null==(i=p+m)&&(s=-1===(o=tl(r,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(o)*s||0),d=(c=!1,l=setTimeout(function(){c||function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,r,n),e.dispatchEvent(i)}}(r,"transitionend",!0)},i+5),f=eM(r,"transitionend",function(){c=!0},{once:!0}),function(){clearTimeout(l),f()}),h=eM(r,"transitionend",n),function(){d(),h()})}function th(e){return e&&"setState"in e?x.findDOMNode(e):null!=e?e:null}let tp=l.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:u,...c},f)=>{let d=(0,l.useRef)(null),h=g(d,u),p=e=>{h(th(e))},m=e=>t=>{e&&d.current&&e(d.current,t)},y=(0,l.useCallback)(m(e),[e]),b=(0,l.useCallback)(m(t),[t]),x=(0,l.useCallback)(m(r),[r]),S=(0,l.useCallback)(m(n),[n]),w=(0,l.useCallback)(m(i),[i]),E=(0,l.useCallback)(m(a),[a]),A=(0,l.useCallback)(m(o),[o]);return(0,eG.jsx)(ti,{ref:f,...c,onEnter:y,onEntered:x,onEntering:b,onExit:S,onExited:E,onExiting:w,addEndListener:A,nodeRef:d,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:p}):l.cloneElement(s,{ref:p})})}),tm={[tt]:"show",[tr]:"show"},tv=l.forwardRef(({className:e,children:t,transitionClasses:r={},...n},i)=>{let a=(0,l.useCallback)((e,t)=>{e.offsetHeight,null==n.onEnter||n.onEnter(e,t)},[n]);return(0,eG.jsx)(tp,{ref:i,addEndListener:td,...n,onEnter:a,childRef:t.ref,children:(n,i)=>l.cloneElement(t,{...i,className:b()("fade",e,t.props.className,tm[n],r[n])})})});tv.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},tv.displayName="Fade";let tg=l.forwardRef(({children:e,transition:t,popperConfig:r={},...n},i)=>{let a=(0,l.useRef)({}),[o,s]=(0,S.Z)(),[u,c]=function(e){let t=(0,l.useRef)(null),r=(0,eX.vE)(void 0,"popover"),n=(0,l.useMemo)(()=>({name:"offset",options:{offset:()=>{var n;return t.current&&((n=t.current).classList?!!r&&n.classList.contains(r):-1!==(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" "))?e||e6.POPPER_OFFSET:e||[0,0]}}}),[e,r]);return[t,[n]]}(n.offset),f=g(i,u),d=!0===t?tv:t||void 0,h=(0,eB.Z)(e=>{s(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)});return(0,eJ.Z)(()=>{o&&(null==a.current.scheduleUpdate||a.current.scheduleUpdate())},[o]),(0,eG.jsx)(eY,{...n,ref:f,popperConfig:{...r,modifiers:c.concat(r.modifiers||[]),onFirstUpdate:h},transition:d,children:(r,{arrowProps:n,popper:i,show:o})=>{var s,u;!function(e,t){let{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=e=>r(th(e))),t.ref=n.__wrapped||(n.__wrapped=e=>n(th(e)))}(r,n);let c=null==i?void 0:i.placement,f=Object.assign(a.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:c,outOfBoundaries:(null==i?void 0:null==(s=i.state)?void 0:null==(u=s.modifiersData.hide)?void 0:u.isReferenceHidden)||!1});return"function"==typeof e?e({...r,placement:c,show:o,...!t&&o&&{className:"show"},popper:f,arrowProps:n}):l.cloneElement(e,{...r,placement:c,arrowProps:n,popper:f,className:b()(e.props.className,!t&&o&&"show"),style:{...e.props.style,...r.style}})}})});function ty(e,t,r){let[n]=t,i=n.currentTarget,a=n.relatedTarget||n.nativeEvent[r];a&&a===i||f(i,a)||e(...t)}function tb({trigger:e,overlay:t,children:r,popperConfig:n={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:u,flip:c=u&&-1!==u.indexOf("auto"),...f}){var h,p,m,y,b,x,S,w,E,A;let C=(0,l.useRef)(null),P=g(C,r.ref),O=(E=(0,d.Z)(),A=(0,l.useRef)(),S=function(){return clearTimeout(A.current)},(w=(0,l.useRef)(S)).current=S,(0,l.useEffect)(function(){return function(){return w.current()}},[]),(0,l.useMemo)(function(){var e=function(){return clearTimeout(A.current)};return{set:function(t,r){void 0===r&&(r=0),E()&&(e(),r<=2147483647?A.current=setTimeout(t,r):function e(t,r,n){var i=n-Date.now();t.current=i<=2147483647?setTimeout(r,i):setTimeout(function(){return e(t,r,n)},2147483647)}(A,t,Date.now()+r))},clear:e}},[])),k=(0,l.useRef)(""),[_,F]=(h=(0,l.useRef)(void 0!==i),m=(p=(0,l.useState)(a))[0],y=p[1],b=void 0!==i,x=h.current,h.current=b,!b&&x&&m!==a&&y(a),[b?i:m,(0,l.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{P(th(e))},N=(0,l.useCallback)(()=>{if(O.clear(),k.current="show",!j.show){F(!0);return}O.set(()=>{"show"===k.current&&F(!0)},j.show)},[j.show,F,O]),M=(0,l.useCallback)(()=>{if(O.clear(),k.current="hide",!j.hide){F(!1);return}O.set(()=>{"hide"===k.current&&F(!1)},j.hide)},[j.hide,F,O]),L=(0,l.useCallback)((...e)=>{N(),null==R||R(...e)},[N,R]),B=(0,l.useCallback)((...e)=>{M(),null==I||I(...e)},[M,I]),H=(0,l.useCallback)((...e)=>{F(!_),null==T||T(...e)},[T,F,_]),$=(0,l.useCallback)((...e)=>{ty(N,e,"fromElement")},[N]),U=(0,l.useCallback)((...e)=>{ty(M,e,"toElement")},[M]),z=null==e?[]:[].concat(e),V={ref:D};return -1!==z.indexOf("click")&&(V.onClick=H),-1!==z.indexOf("focus")&&(V.onFocus=L,V.onBlur=B),-1!==z.indexOf("hover")&&(V.onMouseOver=$,V.onMouseOut=U),(0,eG.jsxs)(eG.Fragment,{children:["function"==typeof r?r(V):(0,l.cloneElement)(r,V),(0,eG.jsx)(tg,{...f,show:_,onHide:M,flip:c,placement:u,popperConfig:n,target:C.current,children:t})]})}tg.displayName="Overlay",tg.defaultProps={transition:tv,rootClose:!1,show:!1,placement:"top"},tb.defaultProps={defaultShow:!1,trigger:["hover","focus"]};var tx=r(71893),tS=r(34798),tw=r.n(tS),tE=r(99603),tA=r(59417),tC=r(63055);function tP(e){var t=e.title,r=e.content,n=e.show,i=e.hide,a=e.icon,o=void 0===a?tA.sqG:a,s=e.onClick,u=void 0===s?tw():s,c=e.trigger,l=e.style,f=e.children,d=(0,eG.jsxs)(e6,{id:"popover-basic",style:l,children:[t&&(0,eG.jsx)(e2,{children:t}),r&&(0,eG.jsx)(e4,{dangerouslySetInnerHTML:{__html:r}})]});return(0,eG.jsx)(tb,{trigger:void 0===c?["hover","focus","click"]:c,placement:"right-start",overlay:d,delay:{show:void 0===n?150:n,hide:void 0===i?250:i},children:(0,eG.jsx)("span",{children:f||(0,eG.jsx)(tE.G,{color:"#777777",icon:o,onClick:u})})})}(0,tx.ZP)(e6)(u||(u=(0,c.Z)(["\n font-size: "," !important;\n font-family: "," !important;\n"])),tC.n5,tC.rk)},31637:function(e,t,r){"use strict";var n,i=r(71383),a=r(42894),o=r(71893),s=r(63055),u=r(85893),c=o.ZP.div(n||(n=(0,i.Z)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n margin-top: ",";\n\n & p {\n margin-top: 10px;\n }\n"])),s.SI);t.Z=function(){return(0,u.jsxs)(c,{children:[(0,u.jsx)(a.rj,{color:"#000",height:45,width:45,visible:!0}),(0,u.jsx)("p",{children:"Loading information..."})]})}},59912:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n,i=r(71383),a=r(71893),o=[{maxWidth:767,marginTop:10},{maxWidth:991,width:723,marginTop:20},{maxWidth:1199,width:933,marginTop:50},{width:1127,marginTop:80}],s=function(e,t,r,n){if("left"===e)return"\n margin-right: auto !important;\n ";if("right"===e)return"\n margin-left: auto !important;\n ";if("center"===e)return"\n margin-left: auto !important;\n margin-right: auto !important;\n ";var i="";return t&&(i+="margin-left: ".concat(t).concat(n," !important;")),r&&(i+="margin-right: ".concat(r).concat(n," !important;")),i},u=a.ZP.div(n||(n=(0,i.Z)(["\n display: block;\n max-width: 100% !important;\n\n ","\n"])),function(e){return e.rules.map(function(t,r){return 0===r?"@media only screen and (max-width: ".concat(t.maxWidth,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: auto !important;\n ").concat(s(t.horizontalAlign||"none",1,1,"em"),"\n }\n }"):r===e.rules.length-1?"@media only screen and (min-width: ".concat((e.rules[r-1].maxWidth||0)+1,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: ").concat(t.width,"px;\n ").concat(s(t.horizontalAlign||"center",t.marginLeft,t.marginRight,t.marginUnit),"\n }\n }"):"@media only screen and (min-width: ".concat((e.rules[r-1].maxWidth||0)+1,"px) and (max-width: ").concat(t.maxWidth,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: ").concat(t.width,"px;\n ").concat(s(t.horizontalAlign||"center",t.marginLeft,t.marginRight,t.marginUnit),"\n }\n }")})});t.Z=u},19287:function(e,t,r){"use strict";var n,i=r(71383),a=r(71893);t.Z=a.ZP.div(n||(n=(0,i.Z)(["\n width: 100%;\n\n & .pg-notification-close {\n padding: 0 0.5rem;\n }\n"])))},99154:function(e,t,r){"use strict";r.d(t,{DK:function(){return h},Es:function(){return c},JK:function(){return s},Jx:function(){return p},Qf:function(){return d},S3:function(){return g},TW:function(){return l},YC:function(){return f},dV:function(){return m},ne:function(){return u},rp:function(){return o},uA:function(){return n}});var n=function(e){return"bceidboth"===e},i=function(e){return"digitalcredential"===e},a=function(e){return["idir","azureidir"].includes(e)},o=function(e){return e.startsWith("bceid")},s=function(e){return!o(e)},u=function(e){return["bceidbasic","bceidbusiness"].includes(e)},c=function(e){return a(e)||"bceidboth"!==e},l=function(e){return a(e)||!u(e)},f=function(e){return["githubpublic","githubbcgov"].includes(e)},d=function(e){return!f(e)},h=function(e){return!i(e)},p=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(o)},m=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(f)},g=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(i)}},15812:function(e,t,r){"use strict";r.d(t,{bD:function(){return x},ZP:function(){return b},hU:function(){return S}});var n,i=r(59499),a=r(67294),o=r(48094),s=r.n(o),u=r(85330),c=r(85893),l=function(e){var t=e.children,r=e.variant,n=e.size,i=e.closable,o=e.content,s=e.fadeOut,l=(0,a.useState)(!1),f=l[0],d=l[1];return((0,a.useEffect)(function(){var e=s?setTimeout(function(){d(!0)},s):null;return function(){e&&clearTimeout(e)}},[]),f)?null:(0,c.jsx)(u.bZ,{variant:r,size:n,closable:i,content:o,children:t})},f=r(19287),d=r(71383),h=r(71893).ZP.div(n||(n=(0,d.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 2000;\n"])));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t0;t&&r&&t(r)})},e),elements:i},u.push(r),s.set(r,t),t}({root:null==t?void 0:t.current,rootMargin:r})).id,i=e.observer,(l=e.elements).set(p,function(e){return e&&d(e)}),i.observe(p),function(){if(l.delete(p),i.unobserve(p),0===l.size){i.disconnect(),s.delete(n);var e=u.findIndex(function(e){return e.root===n.root&&e.margin===n.margin});e>-1&&u.splice(e,1)}}}}else if(!f){var m=a.requestIdleCallback(function(){return d(!0)});return function(){return a.cancelIdleCallback(m)}}},[c,r,t,f,h.current]),[p,f,i.useCallback(function(){d(!1)},[])]};var i=r(67294),a=r(98065),o="function"==typeof IntersectionObserver,s=new Map,u=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext({});t.AmpStateContext=n},80354:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=e.hybrid,n=e.hasQuery;return void 0!==t&&t||void 0!==r&&r&&void 0!==n&&n}},16505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=l,t.default=void 0;var n=r(6495).Z,i=r(92648).Z,a=(0,r(91598).Z)(r(67294)),o=i(r(70148)),s=r(17285),u=r(60523),c=r(80354);function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"==typeof t||"number"==typeof t?e:e.concat(t)},[])):e.concat(t)}r(92783);var d=["name","httpEquiv","charSet","itemProp"];function h(e,t){var r,i,o,s,u=t.inAmpMode;return e.reduce(f,[]).reverse().concat(l(u).reverse()).filter((r=new Set,i=new Set,o=new Set,s={},function(e){var t=!0,n=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){n=!0;var a=e.key.slice(e.key.indexOf("$")+1);r.has(a)?t=!1:r.add(a)}switch(e.type){case"title":case"base":i.has(e.type)?t=!1:i.add(e.type);break;case"meta":for(var u=0,c=d.length;u0&&!eb().isEmail(f))){e.next=3;break}return s("Please provide a valid email address"),e.abrupt("return");case 3:return e.next=5,(0,B.ck)({additionalEmail:f});case 5:t=e.sent,n=(r=(0,P.Z)(t,2))[0],(a=r[1])?(console.error(a),p(a)):n&&i.show({variant:"success",fadeOut:2500,closable:!0,content:"Your additional email has successfully been updated"}),window.location.hash="#";case 11:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),y="".concat(null==c?void 0:c.given_name," ").concat(null==c?void 0:c.family_name),b=(0,et.jsxs)(ex,{children:[(0,et.jsx)(em.default,{label:"Name",fullWidth:!0,value:y,disabled:!0}),(0,et.jsx)("br",{}),(0,et.jsx)(em.default,{label:"Default Email",fullWidth:!0,value:null==c?void 0:c.email,disabled:!0}),(0,et.jsx)("br",{}),(0,et.jsxs)("div",{children:[(0,et.jsx)("span",{className:"strong",children:"Additional Email"})," \xa0",(0,et.jsx)(eg.Z,{title:"",content:"You can add a work email address in addition to your @gov.bc.ca to keep you informed of your integration progress. Note IDIR login/authentication is required to access the CSS App.",hide:200})]}),(0,et.jsx)(em.default,{"data-testid":"addi-email",type:"email",fullWidth:!0,maxLength:"100",value:f,onChange:function(e){eb().isEmail(e.target.value)&&s(""),d(e.target.value)}}),o&&(0,et.jsx)(eS,{children:o})]});return(0,et.jsxs)(et.Fragment,{children:[n(h,function(){return window.location.hash=h}),(0,et.jsx)(ev.Z,{id:h,content:b,onConfirm:g,icon:K.m08,title:"My Profile",confirmText:"Save",skipCloseOnConfirm:!0,closable:!0})]})}),eE=r(85330),eA=Z.ZP.div(d||(d=(0,$.Z)(["\n font-size: 1.2rem;\n display: flex;\n\n & > div:first-child {\n color: red;\n font-size: 2rem;\n width: 120px;\n }\n\n & > div:nth-child(2) {\n & > p:first-child {\n color: red;\n font-weight: bold;\n }\n }\n"]))),eC="gold-notification",eP=function(){var e,t,r=(0,j.useContext)(tA)||{},n=r.user,i=r.session,a=(e=(0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!i||!n)){e.next=2;break}return e.abrupt("return");case 2:!i.isAdmin&&!n.hasReadGoldNotification&&null!==(t=n.integrations)&&void 0!==t&&t.find(function(e){return"gold"!==e.serviceType})&&(window.location.hash=eC);case 3:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});(0,j.useEffect)(function(){i&&n&&a()},[n]);var o=(t=(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.ck)({hasReadGoldNotification:!0});case 2:window.location.hash="#";case 3:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),s=(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(eA,{children:[(0,et.jsx)("div",{children:(0,et.jsx)(V.G,{icon:K.RLE,size:"lg"})}),(0,et.jsxs)("div",{children:[(0,et.jsx)("p",{children:"At this time, the Silver realms are being retired on Jan. 30 2023*. Projects on these realms will no longer be supported by the SSO team."}),(0,et.jsxs)("p",{children:["Please complete a ",(0,et.jsx)("span",{className:"strong",children:"Change Impact Assessment"}),", for each of your projects in the Silver realms."]})]})]}),(0,et.jsx)("div",{className:"text-center",children:(0,et.jsx)(eE.zx,{variant:"primary",type:"button",onClick:function(){return window.open("https://docs.google.com/forms/d/1MMPeMB0A2076xkXIZRaErAwZe9QDsSwSAWqe-uvm3ys","_blank")},children:"Complete Change Impact Assessment"})})]});return(0,et.jsx)(et.Fragment,{children:(0,et.jsx)(ev.Z,{id:eC,content:s,showCancel:!1,showConfirm:!1,onClose:o,icon:K.RLE,title:"Please upgrade from Silver to Gold",closable:!0})})},eO=r(90352),ek=Z.ZP.span(h||(h=(0,$.Z)(["\n font-weight: 600;\n font-size: 1.3em;\n display: flex;\n align-items: end;\n"]))),e_=Z.ZP.div(p||(p=(0,$.Z)(["\n padding: 1rem 0;\n min-height: calc(100vh - ",");\n"])),"152px"),eF=Z.ZP.ul(m||(m=(0,$.Z)(["\n padding-left: 2rem;\n padding-right: 2rem;\n\n li a {\n display: inline-block !important;\n font-size: unset !important;\n padding: 0 !important;\n border-right: none !important;\n }\n"]))),ej=Z.ZP.div(g||(g=(0,$.Z)(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n padding-left: 2rem;\n padding-right: 2rem;\n"]))),eR=Z.ZP.ul(y||(y=(0,$.Z)(["\n & a {\n font-size: 1rem !important;\n }\n\n & a.current {\n font-weight: bold;\n }\n\n & li.current {\n padding-bottom: 6px;\n border-bottom: none;\n background: linear-gradient(orange, orange) bottom /* left or right or else */ no-repeat;\n background-size: calc(100% - 2rem) 4px;\n }\n"]))),eI=Z.ZP.ul(b||(b=(0,$.Z)(["\n padding-right: 2rem;\n"]))),eT=Z.ZP.div(x||(x=(0,$.Z)(["\n padding-left: 2rem;\n padding-right: 2rem;\n"]))),eD=Z.ZP.li(S||(S=(0,$.Z)(["\n &:hover {\n opacity: 0.8;\n }\n"]))),eN=Z.ZP.div(w||(w=(0,$.Z)(["\n height: 100%;\n"]))),eM=[{path:"/",label:"Home",roles:["guest","user","sso-admin"]},{path:"/terms-conditions",label:"Terms and Conditions",roles:["guest"]},{path:"/my-dashboard",label:"My Dashboard",roles:["user","sso-admin"]},{path:"/admin-dashboard",label:"SSO Dashboard",roles:["sso-admin"]},{path:"/admin-reports",label:"SSO Reports",roles:["sso-admin"]},{path:"/request",label:"Request Details",roles:["user","sso-admin"],hide:!0},{path:"/faq",label:"FAQ",roles:["guest","user","sso-admin"]}],eL=function(e){var t,r=e.session,n=e.currentPath,i=e.query,a=["guest"];r&&(a=(null==r?void 0:null===(t=r.client_roles)||void 0===t?void 0:t.length)>0?r.client_roles:["user"]);var o=function(e){return n===e||n.startsWith("".concat(e,"/"))};return(0,et.jsx)(et.Fragment,{children:eM.filter(function(e){return e.roles.some(function(e){return a.includes(e)})&&(!e.hide||o(e.path))}).map(function(e){return(0,et.jsx)("li",{className:o(e.path)?"current":"",children:(0,et.jsx)(z(),{href:e.path,children:X()(e.label)?e.label(i):e.label})},e.path)})})},eB=function(){return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(ew,{children:function(e,t){return(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"#".concat(e),title:"My Profile",children:(0,et.jsx)(V.G,{size:"2x",icon:K.U6l})})})}}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"https://chat.developer.gov.bc.ca/channel/sso",target:"_blank",title:"Rocket Chat",children:(0,et.jsx)(V.G,{size:"2x",icon:K.Z6I})})}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"Pathfinder SSO",children:(0,et.jsx)(V.G,{size:"2x",icon:K.FU$})})}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:(0,eO.eO)(),target:"_blank",title:"Documentation",children:(0,et.jsx)(V.G,{size:"2x",icon:K.cwv})})})]})},eH=function(e){var t=e.children,r=e.session,n=(e.user,e.onLoginClick),i=e.onLogoutClick,a=(0,R.useRouter)(),o=a.pathname,s=r?(0,et.jsxs)(ek,{children:[(0,et.jsxs)("div",{className:"welcome",children:["Welcome ","".concat(r.given_name," ").concat(r.family_name),"\xa0",(null==r?void 0:r.client_roles)&&(0,et.jsxs)("span",{className:"small",children:["(",Y()(null==r?void 0:r.client_roles[0]),")"]})]}),"\xa0\xa0",(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"medium",onClick:i,children:"Log out"})]}):(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"medium",onClick:n,children:"Log in"});return(0,et.jsxs)(ep.ZP,{children:[(0,et.jsx)(er,{}),(0,et.jsx)(eh,{title:function(){return(0,et.jsx)(eN,{children:"Common Hosted Single Sign-on (CSS)"})},rightSide:s,mobileMenu:function(){return(0,et.jsxs)(eF,{children:[(0,et.jsx)(eL,{session:r,currentPath:o,query:a.query}),(0,et.jsxs)("li",{children:["Need help?\xa0\xa0",(0,et.jsx)("a",{href:"https://chat.developer.gov.bc.ca/",target:"_blank",title:"Rocket Chat",children:(0,et.jsx)(V.G,{size:"2x",icon:K.Z6I})}),"\xa0\xa0",(0,et.jsx)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"SSO Team",children:(0,et.jsx)(V.G,{size:"2x",icon:K.FU$})}),"\xa0\xa0",(0,et.jsx)("a",{href:(0,eO.eO)(),target:"_blank",title:"Wiki",children:(0,et.jsx)(V.G,{size:"2x",icon:K.cwv})})]}),(0,et.jsx)("li",{children:r?(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"small",onClick:i,children:"Logout"}):(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"small",onClick:n,children:"Login with IDIR"})})]})},onBannerClick:console.log,children:(0,et.jsxs)(ej,{children:[(0,et.jsx)(eR,{children:(0,et.jsx)(eL,{session:r,currentPath:o,query:a.query})}),(0,et.jsx)(eI,{children:(0,et.jsx)(eB,{})})]})}),(0,et.jsx)(e_,{children:(0,et.jsx)(ep.bD,{children:t})}),(0,et.jsx)(q.default,{children:(0,et.jsx)(eT,{children:(0,et.jsxs)("ul",{children:[(0,et.jsx)("li",{children:(0,et.jsx)(z(),{href:"/",children:"Home"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/disclaimer",target:"_blank",rel:"noreferrer",children:"Disclaimer"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/privacy",target:"_blank",rel:"noreferrer",children:"Privacy"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/accessible-government",target:"_blank",rel:"noreferrer",children:"Accessibility"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/copyright",target:"_blank",rel:"noreferrer",children:"Copyright"})})]})})}),(0,et.jsx)(eP,{})]})},e$=r(31637),eU=r(9008),ez=r.n(eU);r(87266),r(90458);var eV=Object.create,eK=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,eq=Object.getOwnPropertyNames,eZ=Object.getPrototypeOf,eG=Object.prototype.hasOwnProperty,eY=(s=null!=(o=(i=(e,t)=>{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=2*536870912,i=new WeakMap,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:ar)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*r);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(a||i((a={exports:{}}).exports,a),a.exports))())?eV(eZ(o)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of eq(t))eG.call(e,r)||void 0===r||eK(e,r,{get:()=>t[r],enumerable:!(n=eW(t,r))||n.enumerable});return e})(o&&o.__esModule?s:eK(s,"default",{value:o,enumerable:!0}),o)),eJ=e=>void 0!==e.method&&"call"===e.method,eX=e=>null===e.error&&"number"==typeof e.id,eQ=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(eJ(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===a){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(eX(e)){let{id:i}=e,a=n.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:s}=a;n.delete(i),"interval"===s?t.delete(o):r.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,eY.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,eY.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,eY.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,eY.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}};n=null,()=>{if(null!==n)return n;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return n=eQ(t),setTimeout(()=>URL.revokeObjectURL(t)),n};var e0=(typeof window>"u"?"undefined":typeof window)=="object",e1={setTimeout:e0?setTimeout.bind(window):setTimeout,clearTimeout:e0?clearTimeout.bind(window):clearTimeout,setInterval:e0?setInterval.bind(window):setInterval,clearInterval:e0?clearInterval.bind(window):clearInterval},e2={},e4=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,e2[e]=e2[e]||[],e2[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),e1.setTimeout(()=>{window.localStorage.removeItem(r)},500),e2[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=e2[this.name].indexOf(this);e2[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},e3=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:e4;function e6(){return Math.random().toString(36).substring(2)}var e5=class{options;channel;token=e6();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>e1.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{e1.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=e1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>e1.clearInterval(e))}catch{}}}},e8=class{channel;options;elector;token=e6();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new e3(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new e5(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},e9=e0?document:null,e7=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function te(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();(0,j.createContext)(null).Consumer;var tr=r(30233),tn=r(31513),ti=r(63055),ta=r(30996);function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t0){e.next=3;break}return e.abrupt("return",m("Please select a rating."));case 3:o&&(0,B.xc)({triggerEvent:o,message:f,rating:u.filter(function(e){return e.selected}).length}),n(!1),r(!1);case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),b="".concat(i?"open":"closed"," ").concat(!a&&"hidden");return(0,et.jsx)(tc,{children:(0,et.jsxs)(tl,{className:b,children:[(0,et.jsxs)("div",{className:"header",onClick:function(){r(!i)},children:[(0,et.jsx)("p",{children:"We'd love to hear from you"}),(0,et.jsx)(V.G,{icon:i?K.Qbq:K.K96})]}),(0,et.jsxs)("div",{className:"body",children:[(0,et.jsx)("p",{className:"title",children:(0,et.jsx)("strong",{children:"Rate our service"})}),(0,et.jsx)("p",{children:"How was your experience with the CSS app?"}),(0,et.jsxs)(tf,{children:[(0,et.jsx)("div",{className:"stars-box",children:u.map(function(e,t){return(0,et.jsx)(V.G,{style:{cursor:"pointer"},role:"button",size:"3x",icon:K.Tab,color:e.selected?"gold":"grey",onClick:function(){return g(t)}},e.id)})}),(0,et.jsxs)("div",{className:"stars-text",children:[(0,et.jsx)("span",{children:"Bad"}),(0,et.jsx)("span",{children:"Great"})]})]}),(0,et.jsx)(ta.default,{fullWidth:!0,placeholder:"Leave a message...",rows:4,value:f,onChange:function(e){m(""),e.target.value.length<=700?d(e.target.value):m("Messages are at most ".concat(700," characters."))}}),p&&(0,et.jsx)("p",{className:"error-message",children:p}),(0,et.jsxs)("div",{className:"button-container",children:[(0,et.jsx)(W.default,{variant:"secondary",onClick:function(){return n(!1)},children:"Close"}),(0,et.jsx)(W.default,{onClick:y,children:"Rate now"})]})]})]})})};function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t{},onPrompt:u=()=>{},onIdle:c=()=>{},onActive:l=()=>{},onAction:f=()=>{},onMessage:d=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:b=!1,crossTab:x=!1,name:S="idle-timer",syncTimers:w=0,leaderElection:E=!1,disabled:A=!1}={}){let C=(0,j.useRef)(tt()),P=(0,j.useRef)(tt()),O=(0,j.useRef)(null),k=(0,j.useRef)(null),_=(0,j.useRef)(0),F=(0,j.useRef)(0),R=(0,j.useRef)(0),I=(0,j.useRef)(0),T=(0,j.useRef)(!1),D=(0,j.useRef)(!1),N=(0,j.useRef)(!1),M=(0,j.useRef)(!0),L=(0,j.useRef)(!1),B=(0,j.useRef)(null),H=(0,j.useRef)(null),$=(0,j.useRef)(e),U=(0,j.useRef)(0);(0,j.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?($.current=e-r,U.current=r):($.current=e,U.current=t),!M.current){if(y||A)return;T.current&&(J.current(null,eR),H.current&&H.current.active()),ed()}},[e,t,r,y,A]);let z=(0,j.useRef)(b);(0,j.useEffect)(()=>{z.current=b},[b]);let V=(0,j.useRef)(o),K=(0,j.useRef)(n),W=(0,j.useRef)([...new Set([...i,...o]).values()]),q=(0,j.useRef)(A);(0,j.useEffect)(()=>{q.current=A,!M.current&&(A?em():y||ed())},[A]);let Z=(0,j.useRef)(s);(0,j.useEffect)(()=>{Z.current=s},[s]);let G=(0,j.useRef)(u);(0,j.useEffect)(()=>{G.current=u},[u]);let Y=(0,j.useRef)(c);(0,j.useEffect)(()=>{Y.current=c},[c]);let J=(0,j.useRef)(l);(0,j.useEffect)(()=>{J.current=l},[l]);let X=(0,j.useRef)(f);(0,j.useEffect)(()=>{X.current=f},[f]);let Q=(0,j.useRef)(d);(0,j.useEffect)(()=>{Q.current=d},[d]);let ee=(0,j.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,h):p>0?te(e,p):e},[p,h]),et=(0,j.useRef)();(0,j.useEffect)(()=>{x&&w&&(et.current=te(()=>{H.current.active()},w))},[x,w]);let er=()=>{null!==B.current&&(e1.clearTimeout(B.current),B.current=null)},en=(e,t=!0)=>{er(),B.current=e1.setTimeout(es,e||$.current),t&&(k.current=tt())},ei=e=>{D.current||T.current||(G.current(e,eR),Z.current({type:"active",prompted:!0},eR)),I.current=0,R.current=tt(),D.current=!0,en(U.current,!1)},ea=()=>{er(),T.current||(Y.current(null,eR),Z.current({type:"idle"},eR)),T.current=!0,O.current=tt(),z.current?ef():D.current&&(R.current=0,D.current=!1)},eo=e=>{er(),(T.current||D.current)&&(J.current(e,eR),Z.current({type:"active",prompted:!1},eR)),D.current=!1,R.current=0,T.current=!1,_.current+=tt()-O.current,F.current+=tt()-O.current,el(),en()},es=e=>{if(!T.current){ee.cancel&&ee.cancel();let t=tt()-k.current;if(!($.current+U.current0&&!D.current){H.current?H.current.prompt():ei(e);return}H.current?H.current.idle():ea();return}H.current?H.current.active():eo(e)},eu=e=>{if(g||k.current||(k.current=tt(),J.current(null,eR)),ee(e,eR),D.current)return;if(er(),!T.current&&V.current.includes(e.type)){es(e);return}let t=tt()-k.current;if(T.current&&!b||!T.current&&t>=$.current){es(e);return}N.current=!1,I.current=0,R.current=0,en(),x&&w&&et.current()},ec=(0,j.useRef)(eu);(0,j.useEffect)(()=>{let e=L.current;e&&ef(),m>0?ec.current=te(eu,m):ec.current=eu,e&&el()},[m,p,h,X,x,w]);let el=()=>{e0&&K.current&&(L.current||(W.current.forEach(e=>{K.current.addEventListener(e,ec.current,{capture:!0,passive:!0})}),L.current=!0))},ef=(e=!1)=>{e0&&K.current&&(L.current||e)&&(W.current.forEach(e=>{K.current.removeEventListener(e,ec.current,{capture:!0})}),L.current=!1)},ed=(0,j.useCallback)(e=>!q.current&&(er(),el(),T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,H.current&&!e&&H.current.start(),en(),!0),[B,T,q,$,H]),eh=(0,j.useCallback)(e=>!q.current&&(er(),el(),P.current=tt(),_.current+=tt()-O.current,F.current+=tt()-O.current,_.current=0,T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,H.current&&!e&&H.current.reset(),y||en(),!0),[B,T,$,y,q,H]),ep=(0,j.useCallback)(e=>!q.current&&(er(),el(),(T.current||D.current)&&eo(),T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,P.current=tt(),H.current&&!e&&H.current.activate(),en(),!0),[B,T,D,q,$,H]),em=(0,j.useCallback)((e=!1)=>!q.current&&!N.current&&(I.current=eE(),N.current=!0,ef(),er(),H.current&&!e&&H.current.pause(),!0),[B,q,H]),ev=(0,j.useCallback)((e=!1)=>!q.current&&!!N.current&&(N.current=!1,D.current||el(),T.current||en(I.current),R.current&&(R.current=tt()),H.current&&!e&&H.current.resume(),!0),[B,$,q,I,H]),eg=(0,j.useCallback)((e,t)=>(H.current?(t&&Q.current(e,eR),H.current.message(e)):t&&Q.current(e,eR),!0),[d]),ey=(0,j.useCallback)(()=>T.current,[T]),eb=(0,j.useCallback)(()=>D.current,[D]),ex=(0,j.useCallback)(()=>H.current?H.current.isLeader:null,[H]),eS=(0,j.useCallback)(()=>H.current?H.current.isLastActive:null,[H]),ew=(0,j.useCallback)(()=>H.current?H.current.token:null,[H]),eE=(0,j.useCallback)(()=>{if(N.current)return I.current;let e=Math.floor((I.current?I.current:U.current+$.current)-(k.current?tt()-k.current:0));return e<0?0:Math.abs(e)},[$,U,D,I,k]),eA=(0,j.useCallback)(()=>Math.round(tt()-P.current),[P]),eC=(0,j.useCallback)(()=>Math.round(tt()-C.current),[C]),eP=(0,j.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,j.useCallback)(()=>k.current?new Date(k.current):null,[k]),ek=(0,j.useCallback)(()=>T.current?Math.round(tt()-O.current+_.current):Math.round(_.current),[O,_]),e_=(0,j.useCallback)(()=>T.current?Math.round(tt()-O.current+F.current):Math.round(F.current),[O,F]),eF=(0,j.useCallback)(()=>{let e=Math.round(eA()-ek());return e>=0?e:0},[O,_]),ej=(0,j.useCallback)(()=>{let e=Math.round(eC()-e_());return e>=0?e:0},[O,_]);(0,j.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(e1.setTimeout=a.setTimeout,e1.clearTimeout=a.clearTimeout,e1.setInterval=a.setInterval,e1.clearInterval=a.clearInterval);let e=()=>{H.current&&H.current.close(),ee.cancel&&ee.cancel(),er(),ef(!0)};return e0&&window.addEventListener("beforeunload",e),()=>{e0&&window.removeEventListener("beforeunload",e),H.current&&H.current.close(),ee.cancel&&ee.cancel(),er(),ef(!0)}},[]),(0,j.useEffect)(()=>{H.current&&H.current.close(),x?H.current=new e8({channelName:S,leaderElection:E,onPrompt:()=>{ei()},onIdle:()=>{ea()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eR)},start:ed,reset:eh,activate:ep,pause:em,resume:ev}):H.current=null},[x,S,E,G,Y,J,Q,ed,eh,em,ev]),(0,j.useEffect)(()=>{M.current||(er(),ef(!0)),y||A||(g?ed():el())},[y,g,A,M]),(0,j.useEffect)(()=>{if(!M.current){let e=[...new Set([...i,...o]).values()];ef(),W.current=e,K.current=n,V.current=o,y||A||(g?ed():el())}},[n,JSON.stringify(i),JSON.stringify(o),M,A,y,g]),(0,j.useEffect)(()=>{M.current&&(M.current=!1)},[M]);let eR={message:eg,start:ed,reset:eh,activate:ep,pause:em,resume:ev,isIdle:ey,isPrompted:eb,isLeader:ex,isLastActiveTab:eS,getTabId:ew,getRemainingTime:eE,getElapsedTime:eA,getTotalElapsedTime:eC,getLastIdleTime:eP,getLastActiveTime:eO,getIdleTime:ek,getTotalIdleTime:e_,getActiveTime:eF,getTotalActiveTime:ej,setOnPresenceChange:e=>{s=e,Z.current=e},setOnPrompt:e=>{u=e,G.current=e},setOnIdle:e=>{c=e,Y.current=e},setOnActive:e=>{l=e,J.current=e},setOnAction:e=>{f=e,X.current=e},setOnMessage:e=>{d=e,Q.current=e}}}({onPrompt:function(){"expired"!==S&&o.current.open()},timeout:3e5,promptBeforeIdle:1e4,throttle:500,disabled:null===l}),(0,j.useEffect)(function(){function e(e,r){return t.apply(this,arguments)}function t(){return(t=(0,k.Z)(F().mark(function e(t,r){var n,i,a,o;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.W)(t.id_token);case 2:if(n=e.sent,a=(i=(0,P.Z)(n,2))[0],o=i[1],!a){e.next=14;break}if(!r){e.next=11;break}return(0,H.d0)(t),e.next=11,u.push("/my-dashboard");case 11:f(tw(a)),e.next=17;break;case 14:(0,H.Zz)(),f(tw(null)),r&&u.push({pathname:"/application-error",query:{error:o}});case 17:y(!1);case 18:case"end":return e.stop()}},e)}))).apply(this,arguments)}function r(){return(r=(0,k.Z)(F().mark(function t(){var r,n,i,a,o;return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return y(!0),t.prev=1,t.next=4,(0,D.M)();case 4:if(n=(r=(0,N.rg)()).code,i=r.state,!n){t.next=13;break}return t.next=8,(0,N.hP)({code:n,state:i});case 8:return a=t.sent,t.next=11,e(a,!0);case 11:t.next=16;break;case 13:return o=(0,H.lz)(),t.next=16,e(o,!1);case 16:t.next=25;break;case 18:t.prev=18,t.t0=t.catch(1),console.log(t.t0),(0,H.Zz)(),f(tw(null)),y(!1),b(t.t0);case 25:case"end":return t.stop()}},t,null,[[1,18]])}))).apply(this,arguments)}console.log("app started..."),tx&&"true"===tx&&u.push({pathname:"/application-error",query:{error:"maintenance"}}),(0,L.Nu)(),function(){r.apply(this,arguments)}()},[]),(0,j.useEffect)(function(){var e,t=(e=(0,k.Z)(F().mark(function e(){var t,r,n;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:t=e.sent,n=(r=(0,P.Z)(t,2))[0],r[1],p(n);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});l&&t()},[l]),(0,j.useEffect)(function(){if(l){var e=setInterval((0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,tn.QE)((0,H.lz)().refresh_token),Date.now()>=(null==t?void 0:t.exp)*1e3?(w("expired"),o.current.close(),s.current.open()):w("");case 2:case"end":return e.stop()}},e)})),5e3);return function(){clearInterval(e)}}});var W=(r=(0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.iq)({kc_idp_hint:tb});case 2:t=e.sent,window.location.href=t;case 4:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),q=(n=(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(0,H.Zz)(),window.location.href=(0,N.kG)();case 2:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),Z=(0,j.useMemo)(function(){return{setShowSurvey:V}},[h]);return g?(0,et.jsx)(e$.Z,{}):tS.some(function(e){return window.location.pathname.startsWith(e)})&&!l?(u.push("/"),null):(0,et.jsx)(tA.Provider,{value:{session:l,user:h},children:(0,et.jsx)(tC.Provider,{value:Z,children:tx&&"true"===tx?(0,et.jsx)(i,tm({},a)):(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(eH,{session:l,user:h,onLoginClick:W,onLogoutClick:q,children:[(0,et.jsxs)(ez(),{children:[(0,et.jsx)("html",{lang:"en"}),(0,et.jsx)("title",{children:"Common Hosted Single Sign-on (CSS)"}),(0,et.jsx)("link",{rel:"icon",href:"/bootstrap-theme/dist/images/bcid-favicon-32x32.png"})]}),(0,et.jsx)(i,tm(tm({},a),{},{session:l,onLoginClick:W,onLogoutClick:q}))]}),(0,et.jsx)(tr.Z,{ref:o,style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},title:"Session expiring",icon:K.eHv,onConfirm:(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),onCancel:function(){q()},confirmButtonText:"Confirm",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",showConfirmButton:!0,showCancelButton:!0,children:(0,et.jsxs)("div",{children:[(0,et.jsx)("div",{children:"Your session will expire soon and you will be signed out automatically."}),(0,et.jsx)("br",{}),(0,et.jsx)("div",{children:"Do you want to stay signed in?"})," "]})}),(0,et.jsx)(tr.Z,{ref:s,style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},title:"Session expired",icon:K.eHv,onConfirm:function(){return W()},onCancel:(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),confirmButtonText:"Login",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",showConfirmButton:!0,showCancelButton:!0,children:(0,et.jsxs)("div",{children:[(0,et.jsx)("div",{children:"Your session has expired."}),(0,et.jsx)("br",{}),(0,et.jsx)("div",{children:"Please login again."})," "]})}),h&&(0,et.jsx)(th,{setOpenSurvey:z,open:U,display:I,setDisplaySurvey:T,triggerEvent:A})]})})})}},64730:function(e,t,r){"use strict";r.d(t,{Ek:function(){return y},Nu:function(){return b}});var n,i,a,o=r(16835),s=r(50029),u=r(87794),c=r.n(u),l=r(21963),f=r(54494),d=r(88757),h=r(84595),p=r(11752),m=(r.n(p)()()||{}).publicRuntimeConfig,g=(void 0===m?{}:m).base_path,y=(n=(0,s.Z)(c().mark(function e(){var t;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w();case 2:return t=(0,f.lz)(),e.abrupt("return","Bearer ".concat(t.id_token));case 4:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});function b(){return x.apply(this,arguments)}function x(){return(x=(0,s.Z)(c().mark(function e(){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",l.e.get("heartbeat",{headers:{skipAuth:!0}}).then(function(e){return e.data}));case 4:return e.prev=4,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",null);case 8:case"end":return e.stop()}},e,null,[[0,4]])}))).apply(this,arguments)}var S=(i=(0,s.Z)(c().mark(function e(t){var r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.dx)({refreshToken:t.refresh_token});case 2:return r=e.sent,e.next=5,(0,h.W)(null==r?void 0:r.id_token);case 5:n=e.sent,(0,o.Z)(n,1)[0]?(0,f.d0)(r):((0,f.Zz)(),console.error("failed to refresh the token"),window.location.href="".concat(g));case 9:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}),w=(a=(0,s.Z)(c().mark(function e(){var t,r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,f.lz)(),e.next=3,(0,h.W)(t.id_token);case 3:r=e.sent,(n=(0,o.Z)(r,1)[0])?1e3*n.exp-Date.now()<12e4&&S(t):S(t);case 7:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},21963:function(e,t,r){"use strict";r.d(t,{e:function(){return x},z:function(){return S}});var n,i=r(59499),a=r(50029),o=r(87794),s=r.n(o),u=r(11752),c=r.n(u),l=r(9669),f=r.n(l),d=r(64730),h=r(11163),p=r.n(h);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t0?i:null,a=a.length>0?a:null;var o=t.map(function(e){return e.value});return[a,i,o=o.length>0?o:null]},g=function(e){var t=e.bceidApproved,r=e.githubApproved,n=e.digitalCredentialApproved,i=e.environments,a=void 0===i?[]:i,o=e.serviceType,s=(0,f.Jx)(e),u=(0,f.dV)(e),l=(0,f.S3)(e),d=c.TJ.map(function(t){var r=e.devIdps;return p(p({},t),{},{idps:r||[]})});if("gold"===o){var h=j(e),m=R(e),g=I(e),y=d.filter(function(e){return a.includes(e.name)});return s&&(!t||h)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.JK)),e})),u&&(!r||m)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.Qf)),e})),l&&(!n||g)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.DK)),e})),y}var b=a.concat()||[];return s&&!t&&(b=b.filter(function(e){return"prod"!==e})),d.filter(function(e){return b.includes(e.name)})},y=function(e){return e?JSON.parse(decodeURIComponent(Array.from(atob(e.replace(/-/g,"+").replace(/_/g,"/"))).reduce(function(e,t){var r=("00"+t.charCodeAt(0).toString(16)).slice(-2);return"".concat(e,"%").concat(r)},""))):null},b=function(e){if(!e)return null;var t=e.split(".");return y((0,a.Z)(t,2)[1])},x=function(e){if(!e)return null;var t=e.split(".");return y((0,a.Z)(t,1)[0])},S=function(){var e=new Uint32Array(28);crypto.getRandomValues(e);var t=[];return e.forEach(function(e){return t.push("0".concat(e.toString(16).substr(-2)))}),t.reduce(function(e,t){return"".concat(e).concat(t)},"")},w=(n=(0,i.Z)(u().mark(function e(t){var r;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new TextEncoder().encode(t),e.abrupt("return",crypto.subtle.digest("SHA-256",r));case 4:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),E=function(e){return btoa(new Uint8Array(e).reduce(function(e,t){return"".concat(e).concat(String.fromCharCode(t))},"")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},A=function(e){var t;return e.devValidRedirectUris&&0!==e.devValidRedirectUris.length||(e.devValidRedirectUris=[""]),e.testValidRedirectUris&&0!==e.testValidRedirectUris.length||(e.testValidRedirectUris=[""]),e.prodValidRedirectUris&&0!==e.prodValidRedirectUris.length||(e.prodValidRedirectUris=[""]),e.teamId?e.teamId=String(e.teamId):e.usesTeam=!1,Object.entries(t=e).forEach(function(e){var r=(0,a.Z)(e,2),n=r[0];null===r[1]&&delete t[n]}),t},C=function(e){return e.map(function(e){if(Object.keys(c.Qj).map(function(e){return".".concat(e)}).includes(e.property)){var t=e.property.slice(1);e.message=c.Qj[t]||e.message}else(e.property.includes("ValidRedirectUris")||e.property.includes("SamlLogoutPostBindingUri"))&&("should be string"===e.message?e.message="":e.message=c.Qj.redirectUris);return e})},P=function(e){if(!e||0===e.length)return(0,d.jsx)("div",{children:"No changes"});var t=e.map(function(e){var t=e.kind,r=e.lhs,n=e.rhs,i=e.path,a=e.item,o=i[0];switch(t){case"E":return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Edited ",o,": "]}),"Changed ",(0,d.jsx)("code",{children:String(r)})," to ",(0,d.jsx)("code",{children:String(n)})]});case"A":if((null==a?void 0:a.kind)==="D")return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Deleted ",(0,d.jsxs)("code",{children:[" ",null==a?void 0:a.lhs]})]});if((null==a?void 0:a.kind)==="N")return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Added ",(0,d.jsx)("code",{children:null==a?void 0:a.rhs})]});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Edited"," ",(0,d.jsxs)("code",{children:[null==a?void 0:a.lhs," to ",null==a?void 0:a.rhs]})]});case"N":return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Added ",o,": "]}),(0,d.jsx)("code",{children:a})]});case"D":return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("strong",{children:["Deleted ",o," "]})});default:return(0,d.jsx)("code",{children:JSON.stringify(e,null,2)})}});return(0,d.jsx)("ul",{children:t.map(function(e,t){return(0,d.jsx)("li",{children:e},t)})})},O=function(e){return e.some(function(e){return["submitted","pr","prFailed","planned","planFailed","approved","applyFailed"].includes(e.status||"")})};function k(e,t){if(1===e.length)return!1;var r=e.find(function(e){return e.id===t});return 1!==e.filter(function(e){return"admin"===e.role}).length||(null==r?void 0:r.role)!=="admin"}var _=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},F=function(e,t){return"Submitted"===(0,l.n)(e.status||"draft")&&!!e.lastChanges&&0!==e.lastChanges.length&&e.lastChanges.some(function(e){return e.path[0]===t&&!1===e.lhs&&!0===e.rhs})},j=function(e){return F(e,"bceidApproved")},R=function(e){return F(e,"githubApproved")},I=function(e){return F(e,"digitalCredentialApproved")},T=function(e){var t=new Date;return t.setDate(t.getDate()-e),t}},84595:function(e,t,r){"use strict";r.d(t,{W:function(){return p}});var n,i=r(50029),a=r(87794),o=r.n(a),s=r(31166),u=r(11752),c=r.n(u),l=r(16689),f=r(31513),d=(c()()||{}).publicRuntimeConfig,h=(void 0===d?{}:d).sso_client_id,p=(n=(0,i.Z)(o().mark(function e(t){var r,n,i,a,u;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[,"e02"]);case 2:if(r=l.$.keys,n=(0,f.ob)(t),void 0!==(i=null==r?void 0:r.find(function(e){return e.kid===n.kid}))){e.next=8;break}return console.error("public key not found in JWK jwks.json"),e.abrupt("return",[,"e02"]);case 8:if(a=(0,f.QE)(t),!(Date.now()>=1e3*a.exp)){e.next=12;break}return console.log("token has expired"),e.abrupt("return",[,"e02"]);case 12:if(u=s.KZ.getKey(i),s.fs.jws.JWS.verifyJWT(t,u,{alg:["RS256"],gracePeriod:28800})){e.next=17;break}return console.error("signature verification failed"),e.abrupt("return",[,"e02"]);case 17:if(!(0!==a.aud.localeCompare(h))){e.next=21;break}return console.error("token was not issued for this audience"),e.abrupt("return",[,"e02"]);case 21:if(["idir","azureidir"].includes(a.identity_provider)){e.next=24;break}return console.error("invalid identity provider ".concat(a.identity_provider)),e.abrupt("return",[,"e03"]);case 24:if(!(!a.idir_user_guid||!a.email)){e.next=27;break}return console.error("invalid user account"),e.abrupt("return",[,"e03"]);case 27:return e.abrupt("return",[a]);case 28:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},88757:function(e,t,r){"use strict";r.d(t,{dx:function(){return j},hP:function(){return _},iq:function(){return k},kG:function(){return F},rg:function(){return R}});var n,i,a,o=r(59499),s=r(50029),u=r(87794),c=r.n(u),l=r(9669),f=r.n(l),d=r(80129),h=r.n(d),p=r(11752),m=r.n(p),g=r(16689),y=r(31513);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var x=(m()()||{}).publicRuntimeConfig,S=void 0===x?{}:x,w=S.sso_client_id,E=S.sso_authorization_scope,A=S.sso_authorization_response_mode,C=S.sso_authorization_response_type,P=S.sso_redirect_uri,O=S.sso_token_grant_type,k=(n=(0,s.Z)(c().mark(function e(t){var r,n,i,a,s,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,y.zO)(),n=(0,y.zO)(),sessionStorage.setItem("oauth_state",r),sessionStorage.setItem("oidc_nonce",n),i=(0,y.zO)(),sessionStorage.setItem("code_verifier",i),e.next=8,(0,y.qu)(i);case 8:return a=e.sent,s=(0,y.z9)(a),sessionStorage.setItem("code_challenge",s),u=function(e){for(var t=1;tc&&t[r].addError("Must be ".concat(c/60," minutes or fewer."))}},q=function(e,r){return function(){e>l&&t[r].addError("Must be ".concat(l/60," minutes or fewer."))}},Z={projectName:function(){/^\d/.test(i)&&t.projectName.addError("Please have your project name start with a letter")},authType:function(){"browser-login"!==V&&K&&t.authType.addError("Ensure your access is confidential when using a service account.")},devSessionIdleTimeout:W(L,"devSessionIdleTimeout"),testSessionIdleTimeout:W(B,"testSessionIdleTimeout"),prodSessionIdleTimeout:W(H,"prodSessionIdleTimeout"),devSessionMaxLifespan:q($,"devSessionMaxLifespan"),testSessionMaxLifespan:q(U,"testSessionMaxLifespan"),prodSessionMaxLifespan:q(z,"prodSessionMaxLifespan"),devValidRedirectUris:function(){h.every(s)||d(h,t,"devValidRedirectUris",s)},testValidRedirectUris:function(){x.includes("test")&&!m.every(s)&&d(m,t,"testValidRedirectUris",s)},prodValidRedirectUris:function(){x.includes("prod")&&!y.every(s)&&d(y,t,"prodValidRedirectUris",s)},createTeam:function(){if(S&&(!w||""==w)){var e;null===(e=t.createTeam)||void 0===e||e.addError("Please select or create a team")}},additionalRoleAttribute:function(){a.hL.includes(A.trim())&&t.additionalRoleAttribute.addError("Please use a different name as existing claim '".concat(A.trim(),"' cannot be overwritten"))},devSamlLogoutPostBindingUri:function(){""===P||null===P||s(P)||t.devSamlLogoutPostBindingUri.addError(u)},testSamlLogoutPostBindingUri:function(){""===k||null===k||s(k)||t.testSamlLogoutPostBindingUri.addError(u)},prodSamlLogoutPostBindingUri:function(){""===F||null===F||s(F)||t.prodSamlLogoutPostBindingUri.addError(u)},clientId:function(){""!==R&&null!==R&&(R!==R.trim()||R.match(/\s/))&&t.clientId.addError("Client id is not valid")},devIdps:function(){"saml"===N&&T.length>1&&t.devIdps.addError("Only one identity provider is allowed for saml integrations"),"saml"===N&&(0,o.S3)(e)&&t.devIdps.addError("Digital Credential is not allowed for saml integrations")},projectLead:function(){!1===S&&!1===M&&t.projectLead.addError("")}};r||(r=Object.keys(Z));for(var G=0;G0,u=i()(e,t,s?(o=t.customValidation,function(e,t){return f(e,t,o)}):void 0).errors;u.length>0&&(n[a]=u)}}),n}},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(24444)}])},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=u(e),o=a[0],s=a[1],c=new i((o+s)*3/4-s),l=0,f=s>0?o-4:o;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! + */var to=function(){var e=RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=RegExp("\\\\(?:([^u])|u(.{4}))","g"),r={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function n(e,t,n){return t?r[t]:String.fromCharCode(parseInt(n,16))}var i=new String(""),a=Object.hasOwnProperty;return function(r,o){var s,u,c,l=r.match(e),f=l[0],d=!1;"{"===f?s={}:"["===f?s=[]:(s=[],d=!0);for(var h=[s],p=1-d,m=l.length;p=0;)delete r[n[u]]}return o.call(e,t,r)};s=g({"":s},"")}return s}}();void 0!==d&&d||(d={}),void 0!==d.asn1&&d.asn1||(d.asn1={}),d.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i15)throw Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));return(128+r).toString(16)+t},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},d.asn1.DERAbstractString=function(e){d.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=tp(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},tD(d.asn1.DERAbstractString,d.asn1.ASN1Object),d.asn1.DERAbstractTime=function(e){d.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,r){var n=this.zeroPadding,i=this.localDateToUTC(e),a=String(i.getFullYear());"utc"==t&&(a=a.substr(2,2));var o=a+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var s=i.getMilliseconds();if(0!=s){var u=n(String(s),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,r,n,i,a){var o=new Date(Date.UTC(e,t-1,r,n,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},tD(d.asn1.DERAbstractTime,d.asn1.ASN1Object),d.asn1.DERAbstractStructured=function(e){d.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=[],void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},tD(d.asn1.DERAbstractStructured,d.asn1.ASN1Object),d.asn1.DERBoolean=function(e){d.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",!1==e?this.hTLV="010100":this.hTLV="0101ff"},tD(d.asn1.DERBoolean,d.asn1.ASN1Object),d.asn1.DERInteger=function(e){d.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=d.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new E(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},tD(d.asn1.DERInteger,d.asn1.ASN1Object),d.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=d.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}d.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>6,i=128|63&r;return tm(n.toString(16)+i.toString(16))}var n=224|(240&t)>>4,i=128|(15&t)<<2|(192&r)>>6;return tm(n.toString(16)+i.toString(16)+(128|63&r).toString(16))}).join("")}function tk(e){for(var t=encodeURIComponent(e),r="",n=0;n"7"?"00"+e:e}function tR(e){if(!t_(e))return null;try{var t=[],r=e.substr(0,2),n=parseInt(r,16);t[0]=new String(Math.floor(n/40)),t[1]=new String(n%40);for(var i=e.substr(2),a=[],o=0;o0&&(c=c+"."+s.join(".")),c}catch(e){return null}}ts.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var r=parseInt(e.substr(t+3,1));return 0==r?-1:0=n)break}return a},ts.getNthChildIdx=function(e,t,r){return ts.getChildIdx(e,t)[r]},ts.getIdxbyList=function(e,t,r,n){var i,a;return 0==r.length?void 0!==n&&e.substr(t,2)!==n?-1:t:(i=r.shift())>=(a=ts.getChildIdx(e,t)).length?-1:ts.getIdxbyList(e,a[i],r,n)},ts.getIdxbyListEx=function(e,t,r,n){if(0==r.length)return void 0!==n&&e.substr(t,2)!==n?-1:t;i=r.shift(),a=ts.getChildIdx(e,t);for(var i,a,o=0,s=0;s=e.length?null:ts.getTLV(e,i)},ts.getTLVbyListEx=function(e,t,r,n){var i=ts.getIdxbyListEx(e,t,r,n);return -1==i?null:ts.getTLV(e,i)},ts.getVbyList=function(e,t,r,n,i){var a,o;return -1==(a=ts.getIdxbyList(e,t,r,n))||a>=e.length?null:(o=ts.getV(e,a),!0===i&&(o=o.substr(2)),o)},ts.getVbyListEx=function(e,t,r,n,i){var a,o;return -1==(a=ts.getIdxbyListEx(e,t,r,n))?null:(o=ts.getV(e,a),"03"==e.substr(a,2)&&!1!==i&&(o=o.substr(2)),o)},ts.getInt=function(e,t,r){void 0==r&&(r=-1);try{var n=e.substr(t,2);if("02"!=n&&"03"!=n)return r;var i=ts.getV(e,t);if("02"==n)return parseInt(i,16);return function(e){if(e.length%2!=0||null==(e=e.toLowerCase()).match(/^[0-9a-f]+$/))return -1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var r=parseInt(t,16);if(r>7)return -1;var n=e.substr(2),i=parseInt(n,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-r);var a=parseInt(i,2);if(a==NaN)return -1;return a}catch(e){return -1}}(i)}catch(e){return r}},ts.getOID=function(e,t,r){void 0==r&&(r=null);try{if("06"!=e.substr(t,2))return r;var n=ts.getV(e,t);return tR(n)}catch(e){return r}},ts.getOIDName=function(e,t,r){void 0==r&&(r=null);try{var n=ts.getOID(e,t,r);if(n==r)return r;var i=d.asn1.x509.OID.oid2name(n);if(""==i)return n;return i}catch(e){return r}},ts.getString=function(e,t,r){void 0==r&&(r=null);try{var n=ts.getV(e,t);return tv(n)}catch(e){return r}},ts.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:Array(t-e.length+1).join("0")+e},r=[],n=parseInt(e.substr(0,2),16);r[0]=new String(Math.floor(n/40)),r[1]=new String(n%40);for(var i=e.substr(2),a=[],o=0;o0&&(c=c+"."+s.join(".")),c},ts.dump=function(e,t,r,n){var i=ts.getV,a=ts.dump,o=ts.getChildIdx,s=e;e instanceof d.asn1.ASN1Object&&(s=e.tohex());var u=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===r&&(r=0),void 0===n&&(n="");var c=t.ommit_long_octet,l=s.substr(r,2);if("01"==l){var f=i(s,r);return"00"==f?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n"}if("02"==l){var f=i(s,r);return n+"INTEGER "+u(f,c)+"\n"}if("03"==l){var f=i(s,r);if(!ts.isASN1HEX(f.substr(2)))return n+"BITSTRING "+u(f,c)+"\n";var h=n+"BITSTRING, encapsulates\n";return h+a(f.substr(2),t,0,n+" ")}if("04"==l){var f=i(s,r);if(!ts.isASN1HEX(f))return n+"OCTETSTRING "+u(f,c)+"\n";var h=n+"OCTETSTRING, encapsulates\n";return h+a(f,t,0,n+" ")}if("05"==l)return n+"NULL\n";if("06"==l){var p=i(s,r),m=d.asn1.ASN1Util.oidHexToInt(p),g=d.asn1.x509.OID.oid2name(m),y=m.replace(/\./g," ");return""!=g?n+"ObjectIdentifier "+g+" ("+y+")\n":n+"ObjectIdentifier ("+y+")\n"}if("0a"==l)return n+"ENUMERATED "+parseInt(i(s,r))+"\n";if("0c"==l)return n+"UTF8String '"+tm(i(s,r))+"'\n";if("13"==l)return n+"PrintableString '"+tm(i(s,r))+"'\n";if("14"==l)return n+"TeletexString '"+tm(i(s,r))+"'\n";if("16"==l)return n+"IA5String '"+tm(i(s,r))+"'\n";if("17"==l)return n+"UTCTime "+tm(i(s,r))+"\n";if("18"==l)return n+"GeneralizedTime "+tm(i(s,r))+"\n";if("1a"==l)return n+"VisualString '"+tm(i(s,r))+"'\n";if("1e"==l)return n+"BMPString '"+tO(i(s,r))+"'\n";if("30"==l){if("3000"==s.substr(r,4))return n+"SEQUENCE {}\n";var h=n+"SEQUENCE\n",b=o(s,r),x=t;if((2==b.length||3==b.length)&&"06"==s.substr(b[0],2)&&"04"==s.substr(b[b.length-1],2)){var g=ts.oidname(i(s,b[0])),S=JSON.parse(JSON.stringify(t));S.x509ExtName=g,x=S}for(var w=0;w4?{enum:{hex:h}}:{enum:parseInt(h,16)};if("30"==l||"31"==l)return f[c[l]]=function(e){for(var r=[],n=a(e,0),o=0;o31)return!1;if((192&r)==128&&(31&r)==n)return!0;return!1}catch(e){return!1}},ts.isASN1HEX=function(e){if(e.length%2==1)return!1;var t=ts.getVblen(e,0),r=e.substr(0,2),n=ts.getL(e,0);return e.length-r.length-n.length==2*t},ts.checkStrictDER=function(e,t,r,n,i){if(void 0===r){if("string"!=typeof e||(e=e.toLowerCase(),!d.lang.String.isHex(e)))throw Error("not hex string");r=e.length,i=(n=e.length/2)<128?1:Math.ceil(n.toString(16))+1}if(ts.getL(e,t).length>2*i)throw Error("L of TLV too long: idx="+t);var a=ts.getVblen(e,t);if(a>n)throw Error("value of L too long than hex: idx="+t);var o=ts.getTLV(e,t),s=o.length-2-ts.getL(e,t).length;if(s!==2*a)throw Error("V string length and L's value not the same:"+s+"/"+2*a);if(0===t&&e.length!=o.length)throw Error("total length and TLV length unmatch:"+e.length+"!="+o.length);var u=e.substr(t,2);if("02"===u){var c=ts.getVidx(e,t);if("00"==e.substr(c,2)&&56>e.charCodeAt(c+2))throw Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var l=ts.getVblen(e,t),f=0,h=ts.getChildIdx(e,t),p=0;p0&&e.push(new n({tag:"a3",obj:new c(t.ext)})),new d.asn1.DERSequence({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.TBSCertificate,d.asn1.ASN1Object),d.asn1.x509.Extensions=function(e){d.asn1.x509.Extensions.superclass.constructor.call(this);var t=d.asn1,r=t.DERSequence,n=t.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t-1&&e.push(new n({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},tD(d.asn1.x509.BasicConstraints,d.asn1.x509.Extension),d.asn1.x509.CRLDistributionPoints=function(e){d.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=d.asn1,r=t.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var n=[],i=0;i0&&e.push(new r({array:t}))}return new r({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.PolicyInformation,d.asn1.ASN1Object),d.asn1.x509.PolicyQualifierInfo=function(e){d.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=d.asn1,r=t.DERSequence,n=t.DERIA5String,i=t.DERObjectIdentifier,a=t.x509.UserNotice;this.params=null,this.tohex=function(){if(void 0!==this.params.cps){var e=new r({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new n({str:this.params.cps})]});return e.tohex()}if(void 0!=this.params.unotice){var e=new r({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new a(this.params.unotice)]});return e.tohex()}},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.PolicyQualifierInfo,d.asn1.ASN1Object),d.asn1.x509.UserNotice=function(e){d.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=d.asn1.DERSequence,r=(d.asn1.DERInteger,d.asn1.x509.DisplayText),n=d.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];return void 0!==this.params.noticeref&&e.push(new n(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new r(this.params.exptext)),new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},tD(d.asn1.x509.UserNotice,d.asn1.ASN1Object),d.asn1.x509.NoticeReference=function(e){d.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=d.asn1.DERSequence,r=d.asn1.DERInteger,n=d.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new n(this.params.org)),void 0!==this.params.noticenum){for(var i=[],a=this.params.noticenum,o=0;o0)for(var e=0;e0;i++){var a=t.shift();if(!0===r){var o=(n.pop()+","+a).replace(/\\,/g,",");n.push(o),r=!1}else n.push(a);"\\"===a.substr(-1,1)&&(r=!0)}return(n=n.map(function(e){return e.replace("/","\\/")})).reverse(),"/"+n.join("/")},d.asn1.x509.X500Name.ldapToOneline=function(e){return d.asn1.x509.X500Name.ldapToCompat(e)},d.asn1.x509.RDN=function(e){d.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=d.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new d.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=d.asn1.x509.RDN.parseString(e),r=0;r0)for(var e=0;e0;i++){var a=t.shift();if(!0===r){var o=(n.pop()+"+"+a).replace(/\\\+/g,"+");n.push(o),r=!1}else n.push(a);"\\"===a.substr(-1,1)&&(r=!0)}for(var s=!1,u=[],i=0;n.length>0;i++){var a=n.shift();if(!0===s){var c=u.pop();if(a.match(/"$/)){var o=(c+"+"+a).replace(/^([^=]+)="(.*)"$/,"$1=$2");u.push(o),s=!1}else u.push(c+"+"+a)}else u.push(a);a.match(/^[^=]+="/)&&(s=!0)}return u},d.asn1.x509.AttributeTypeAndValue=function(e){d.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=d,r=t.asn1,n=r.DERSequence,i=r.DERUTF8String,a=r.DERPrintableString,o=r.DERTeletexString,s=r.DERIA5String,u=r.DERVisibleString,c=r.DERBMPString,l=t.lang.String.isMail,f=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str.match(/^([^=]+)=(.+)$/);if(t)this.sType=t[1],this.sValue=t[2];else throw Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var r=e.match(/^([^=]+)=(.+)$/);if(r)this.setByAttrTypeAndValueStr(r[1],r[2]);else throw Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)},this._getDsType=function(){var e=this.sType,t=this.sValue,r=this.sRule;if("prn"===r){if("CN"==e&&l(t))return"ia5";if(f(t))return"prn"}else if("utf8"===r){if("CN"==e&&l(t))return"ia5";if("C"==e)return"prn"}return"utf8"},this.setByAttrTypeAndValueStr=function(e,t,r){void 0!==r&&(this.sRule=r),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new a({str:t});if("tel"==e)return new o({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new u({str:t});if("bmp"==e)return new c({str:t});throw Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=d.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),r=new n({array:[e,t]});return this.TLV=r.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.AttributeTypeAndValue,d.asn1.ASN1Object),d.asn1.x509.SubjectPublicKeyInfo=function(e){d.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=d,r=t.asn1,n=r.DERInteger,i=r.DERBitString,a=r.DERObjectIdentifier,o=r.DERSequence,s=r.ASN1Util.newObject,u=r.x509.AlgorithmIdentifier,c=t.crypto;c.ECDSA,c.DSA,this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new o({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof tt){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}).tohex();this.asn1AlgId=new u({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+t})}}catch(e){}try{if(e instanceof d.crypto.ECDSA){var r=new a({name:e.curveName});this.asn1AlgId=new u({name:"ecPublicKey",asn1params:r}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(e){}try{if(e instanceof d.crypto.DSA){var r=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new u({name:"dsa",asn1params:r});var o=new n({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+o.tohex()})}}catch(e){}},void 0!==e&&this.setPubKey(e)},tD(d.asn1.x509.SubjectPublicKeyInfo,d.asn1.ASN1Object),d.asn1.x509.Time=function(e){d.asn1.x509.Time.superclass.constructor.call(this);var t=d.asn1,r=t.DERUTCTime,n=t.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null!=e&&e.str&&(null==e.type||void 0==e.type)&&(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new r(e.str)),"gen"==e.type&&(t=new n(e.str))):t="gen"==this.type?new n:new r,null==t)throw Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},d.asn1.x509.Time_bak=function(e){d.asn1.x509.Time_bak.superclass.constructor.call(this);var t=d.asn1,r=t.DERUTCTime,n=t.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new r(this.timeParams):new n(this.timeParams):"utc"==this.type?new r:new n,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},tD(d.asn1.x509.Time,d.asn1.ASN1Object),d.asn1.x509.AlgorithmIdentifier=function(e){d.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=d.asn1,r=t.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var n in r)n===this.nameAlg&&(e=r[n]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=t.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var a=new t.DERSequence({array:i});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var n=this.nameAlg.toLowerCase();"withdsa"!==n.substr(-7,7)&&"withecdsa"!==n.substr(-9,9)&&(this.asn1Params=new t.DERNull)}},tD(d.asn1.x509.AlgorithmIdentifier,d.asn1.ASN1Object),d.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},d.asn1.x509.GeneralName=function(e){d.asn1.x509.GeneralName.superclass.constructor.call(this);var t=d.asn1,r=t.x509,n=r.X500Name,i=r.OtherName,a=t.DERIA5String,o=(t.DERPrintableString,t.DEROctetString),s=t.DERTaggedObject,u=t.ASN1Object,c=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=!1;if(void 0!==e.other)r="a0",l=new i(e.other);else if(void 0!==e.rfc822)r="81",l=new a({str:e.rfc822});else if(void 0!==e.dns)r="82",l=new a({str:e.dns});else if(void 0!==e.dn)r="a4",t=!0,l="string"==typeof e.dn?new n({str:e.dn}):e.dn instanceof d.asn1.x509.X500Name?e.dn:new n(e.dn);else if(void 0!==e.ldapdn)r="a4",t=!0,l=new n({ldapstr:e.ldapdn});else if(void 0!==e.certissuer||void 0!==e.certsubj){r="a4",t=!0;var r,t,l,f,h,p,m=null;if(void 0!==e.certsubj?(f=!1,h=e.certsubj):(f=!0,h=e.certissuer),h.match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(m=tb(h)),null==m)throw Error("certsubj/certissuer not cert");var g=new tH;g.hex=m,p=f?g.getIssuerHex():g.getSubjectHex(),(l=new u).hTLV=p}else if(void 0!==e.uri)r="86",l=new a({str:e.uri});else if(void 0!==e.ip){r="87";var y,b=e.ip;try{if(b.match(/^[0-9a-f]+$/)){var x=b.length;if(8==x||16==x||32==x||64==x)y=b;else throw"err"}else y=function e(t){var r=Error("malformed IP address");if(!(t=t.toLowerCase(t)).match(/^[0-9a-f.:/]+$/))throw r;if(t.match(/^[0-9.]+$/)){var n=t.split(".");if(4!==n.length)throw r;var i="";try{for(var a=0;a<4;a++){var o=parseInt(n[a]);i+=("0"+o.toString(16)).slice(-2)}return i}catch(e){throw r}}else{if(t.match(/^[0-9.]+\/[0-9]+$/)){var s=t.split("/");return e(s[0])+tP(parseInt(s[1]),32)}if(t.match(/^[0-9a-f:]+$/)&&-1!==t.indexOf(":"))return tw(t);if(t.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==t.indexOf(":")){var s=t.split("/");return tw(s[0])+tP(parseInt(s[1]),128)}throw r}}(b)}catch(t){throw new c("malformed IP address: "+e.ip+":"+t.message)}l=new o({hex:y})}else throw new c("improper params");return new s({tag:r,explicit:t,obj:l}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},tD(d.asn1.x509.GeneralName,d.asn1.ASN1Object),d.asn1.x509.GeneralNames=function(e){d.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=d.asn1;this.setByParamArray=function(e){for(var r=0;r0){for(var r=n(e.valhex,t[0]),i=u(r,0),a=[],o=0;o1){var l=n(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var t=u(e.valhex,0);if(t.length>0){var i=ts.getOID(e.valhex,t[0]);e.oid=i}if(t.length>1){var a=new tH,o=u(e.valhex,t[1]),s=n(e.valhex,o[0]),c=a.getAlgorithmIdentifierName(s);e.alg=c;var l=r(e.valhex,o[1]);e.hash=l}delete e.valhex},this.setSigningCertificateV2=function(e){var t=u(e.valhex,0);if(t.length>0){for(var r=n(e.valhex,t[0]),i=u(r,0),a=[],o=0;o1){var l=n(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.getESSCertID=function(e){var t={},i=u(e,0);if(i.length>0){var a=r(e,i[0]);t.hash=a}if(i.length>1){var o=n(e,i[1]),s=this.getIssuerSerial(o);void 0!=s.serial&&(t.serial=s.serial),void 0!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(i){var a={},o=u(i,0);if(o.length<1||3s+1){var f=n(i,o[s+1]),d=this.getIssuerSerial(f);a.issuer=d.issuer,a.serial=d.serial}return a},this.getIssuerSerial=function(e){var i={},a=u(e,0),o=n(e,a[0]),s=t.getGeneralNames(o)[0].dn;i.issuer=s;var c=r(e,a[1]);return i.serial={hex:c},i},this.getCertificateSet=function(e){for(var t=u(e,0),r=[],i=0;i=0;o--)i+=n[o];return i}if("string"==typeof e&&void 0!=a[e])return tT([e],a);if("object"==typeof e&&void 0!=e.length)return tT(e,a);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new n({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},tD(d.asn1.tsp.PKIFailureInfo,d.asn1.ASN1Object),d.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},d.asn1.tsp.SimpleTSAAdapter=function(e){var t=d,r=t.asn1.tsp,n=t.crypto.Util.hashHex;r.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var i=n(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},this.params.econtent.content.serial={int:this.serial++},this.params.econtent.content.nonce={int:Math.floor(1e9*Math.random())},new r.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},tD(d.asn1.tsp.SimpleTSAAdapter,d.asn1.tsp.AbstractTSAAdapter),d.asn1.tsp.FixedTSAAdapter=function(e){var t=d,r=t.asn1.tsp,n=t.crypto.Util.hashHex;r.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var i=n(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},new r.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},tD(d.asn1.tsp.FixedTSAAdapter,d.asn1.tsp.AbstractTSAAdapter),d.asn1.tsp.TSPUtil=new function(){},d.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new d.asn1.tsp.TimeStampToken(e)},d.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){return new d.asn1.tsp.TSPParser().getTimeStampReq(e)},d.asn1.tsp.TSPUtil.parseMessageImprint=function(e){return new d.asn1.tsp.TSPParser().getMessageImprint(e)},d.asn1.tsp.TSPParser=function(){var e=new tH,t=ts.getV,r=ts.getTLV,n=ts.getIdxbyList,i=(ts.getTLVbyListEx,ts.getChildIdx),a=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],o={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=i(e,0);if(1==t.length)return this.getPKIStatusInfo(r(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(r(e,t[0])),a=r(e,t[1]),o=this.getToken(a);return o.statusinfo=n,o}},this.getToken=function(e){var t=(new d.asn1.cms.CMSParser).getCMSSignedData(e);return this.setTSTInfo(t),t},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var r=t.content.hex,n=this.getTSTInfo(r);t.content=n}},this.getTSTInfo=function(n){var a={},o=i(n,0),s=t(n,o[1]);a.policy=tR(s);var u=r(n,o[2]);a.messageImprint=this.getMessageImprint(u);var c=t(n,o[3]);a.serial={hex:c};var l=t(n,o[4]);a.genTime={str:tm(l)};var f=0;if(o.length>5&&"30"==n.substr(o[5],2)){var d=r(n,o[5]);a.accuracy=this.getAccuracy(d),f++}if(o.length>5+f&&"01"==n.substr(o[5+f],2)&&("ff"==t(n,o[5+f])&&(a.ordering=!0),f++),o.length>5+f&&"02"==n.substr(o[5+f],2)){var h=t(n,o[5+f]);a.nonce={hex:h},f++}if(o.length>5+f&&"a0"==n.substr(o[5+f],2)){var p=r(n,o[5+f]);p="30"+p.substr(2);var m=(pGeneralNames=e.getGeneralNames(p))[0].dn;a.tsa=m,f++}if(o.length>5+f&&"a1"==n.substr(o[5+f],2)){var g=r(n,o[5+f]);g="30"+g.substr(2);var y=e.getExtParamArray(g);a.ext=y,f++}return a},this.getAccuracy=function(e){for(var r={},n=i(e,0),a=0;a1&&"30"==e.substr(o[1],2)){var l=r(e,o[1]);n.statusstr=this.getPKIFreeText(l),s++}if(o.length>s&&"03"==e.substr(o[1+s],2)){var f=r(e,o[1+s]);n.failinfo=this.getPKIFailureInfo(f)}return n},this.getPKIFreeText=function(e){for(var t=[],r=i(e,0),n=0;n=t)?e:Array(t-e.length+1).join(r)+e};function tT(e,t){for(var r=0,n=0;n=0;n--)a+=i[n];return a}function tD(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}void 0!==d&&d||(d={}),void 0!==d.crypto&&d.crypto||(d.crypto={}),d.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:b.algo.MD5,sha1:b.algo.SHA1,sha224:b.algo.SHA224,sha256:b.algo.SHA256,sha384:b.algo.SHA384,sha512:b.algo.SHA512,ripemd160:b.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,r){var n=this.getDigestInfoHex(e,t),i=r/4;if(n.length+22>i)throw"key is too short for SigAlg: keylen="+r+","+t;for(var a="0001",o="00"+n,s="",u=i-a.length-o.length,c=0;c=s.compareTo(E.ZERO));var u=o.modInverse(i).multiply(a.add(n.multiply(s))).mod(i);return r.biRSSigToASN1Sig(s,u)},this.sign=function(e,t){var r=this.ecparams.n,n=E.fromByteArrayUnsigned(e);do var i=this.getBigRandom(r),a=this.ecparams.G.multiply(i).getX().toBigInteger().mod(r);while(0>=a.compareTo(E.ZERO));var o=i.modInverse(r).multiply(n.add(t.multiply(a))).mod(r);return this.serializeSig(a,o)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var i,a,o=r.parseSigHex(t);i=o.r,a=o.s;var s=ti.decodeFromHex(this.ecparams.curve,n),u=new E(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(u,i,a,s)}catch(e){return!1}},this.verify=function(e,t,r){if(Bitcoin.Util.isArray(t)){var n,i,a,o=this.parseSig(t);n=o.r,i=o.s}else if("object"==typeof t&&t.r&&t.s)n=t.r,i=t.s;else throw"Invalid value for signature";if(r instanceof ti)a=r;else if(Bitcoin.Util.isArray(r))a=ti.decodeFrom(this.ecparams.curve,r);else throw"Invalid format for pubkey value, must be byte array or ECPointFp";var s=E.fromByteArrayUnsigned(e);return this.verifyRaw(s,n,i,a)},this.verifyRaw=function(e,t,r,n){var i=this.ecparams.n,a=this.ecparams.G;if(0>t.compareTo(E.ONE)||t.compareTo(i)>=0||0>r.compareTo(E.ONE)||r.compareTo(i)>=0)return!1;var o=r.modInverse(i),s=e.multiply(o).mod(i),u=t.multiply(o).mod(i);return a.multiply(s).add(n.multiply(u)).getX().toBigInteger().mod(i).equals(t)},this.serializeSig=function(e,t){var r=e.toByteArraySigned(),n=t.toByteArraySigned(),i=[];return i.push(2),i.push(r.length),(i=i.concat(r)).push(2),i.push(n.length),(i=i.concat(n)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){if(48!=e[0])throw Error("Signature not a valid DERSequence");if(2!=e[t=2])throw Error("First element in signature must be a DERInteger");var t,r=e.slice(t+2,t+2+e[t+1]);if(t+=2+e[t+1],2!=e[t])throw Error("Second element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:E.fromByteArrayUnsigned(r),s:E.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:E.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:E.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){var t,r,n;if(!1===o(e))throw Error("not ASN.1 hex string");try{t=a(e,0,["[0]",0],"06"),r=a(e,0,[1],"04");try{n=a(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=i(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){var r,n,s;if(!1===o(e))throw new t("not ASN.1 hex string");try{a(e,0,[1,0],"06"),r=a(e,0,[1,1],"06"),n=a(e,0,[2,0,1],"04");try{s=a(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=i(r),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){var r,n;if(!1===o(e))throw new t("not ASN.1 hex string");try{a(e,0,[0,0],"06"),r=a(e,0,[0,1],"06"),n=a(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=i(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(e,r){var n,s;if(!1===o(e))throw new t("not ASN.1 hex string");try{n=a(e,0,[0,5,0,1],"06"),s=a(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=i(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},d.crypto.ECDSA.parseSigHex=function(e){var t=d.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new E(t.r,16),s:new E(t.s,16)}},d.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=ts.getChildIdx,r=ts.getV;if(ts.checkStrictDER(e,0),"30"!=e.substr(0,2))throw Error("signature is not a ASN.1 sequence");var n=t(e,0);if(2!=n.length)throw Error("signature shall have two elements");var i=n[0],a=n[1];if("02"!=e.substr(i,2))throw Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw Error("2nd item not ASN.1 integer");return{r:r(e,i),s:r(e,a)}},d.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=d.crypto.ECDSA.parseSigHexInHexRS(e),r=t.r,n=t.s;if(r.length>=130&&r.length<=134){if(r.length%2!=0)throw Error("unknown ECDSA sig r length error");if(n.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==r.substr(0,2)&&(r=r.substr(2)),"00"==n.substr(0,2)&&(n=n.substr(2));var i=Math.max(r.length,n.length);return(r=("000000"+r).slice(-i))+(n=("000000"+n).slice(-i))}if("00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r="00"+r),n.length%32==30&&(n="00"+n),r.length%32!=0)throw Error("unknown ECDSA sig r length error");if(n.length%32!=0)throw Error("unknown ECDSA sig s length error");return r+n},d.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),r=e.substr(e.length/2);return d.crypto.ECDSA.hexRSSigToASN1Sig(t,r)},d.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var r=new E(e,16),n=new E(t,16);return d.crypto.ECDSA.biRSSigToASN1Sig(r,n)},d.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var r=d.asn1,n=new r.DERInteger({bigint:e}),i=new r.DERInteger({bigint:t});return new r.DERSequence({array:[n,i]}).tohex()},d.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},void 0!==d&&d||(d={}),void 0!==d.crypto&&d.crypto||(d.crypto={}),d.crypto.ECParameterDB=new function(){var e={},t={};function r(e){return new E(e,16)}this.getByName=function(r){var n=r;if(void 0!==t[n]&&(n=t[r]),void 0!==e[n])return e[n];throw"unregistered EC curve name: "+n},this.regist=function(n,i,a,o,s,u,c,l,f,d,h,p){e[n]={};var m=r(a),g=r(o),y=r(s),b=r(u),x=r(c),S=new ta(m,g,y),w=S.decodePointHex("04"+l+f);e[n].name=n,e[n].keylen=i,e[n].keycharlen=2*Math.ceil(i/8),e[n].curve=S,e[n].G=w,e[n].n=b,e[n].h=x,e[n].oid=h,e[n].info=p;for(var E=0;E1?new E(n,16):null,c=new E(i,16),this.setPrivate(a,o,s,u,c)},this.setPublic=function(e,t,r,n){this.isPublic=!0,this.p=e,this.q=t,this.g=r,this.y=n,this.x=null},this.setPublicHex=function(e,t,r,n){var i,a,o,s;i=new E(e,16),a=new E(t,16),o=new E(r,16),s=new E(n,16),this.setPublic(i,a,o,s)},this.signWithMessageHash=function(e){var t=this.p,r=this.q,n=this.g;this.y;var i=this.x,a=d.crypto.Util.getRandomBigIntegerMinToMax(E.ONE.add(E.ONE),r.subtract(E.ONE)),o=e.substr(0,r.bitLength()/4),s=new E(o,16),u=n.modPow(a,t).mod(r),c=a.modInverse(r).multiply(s.add(i.multiply(u))).mod(r);return d.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:u}},{int:{bigint:c}}]})},this.verifyWithMessageHash=function(e,t){var r=this.p,n=this.q,i=this.g,a=this.y,o=this.parseASN1Signature(t),s=o[0],u=o[1],c=e.substr(0,n.bitLength()/4),l=new E(c,16);if(E.ZERO.compareTo(s)>0||s.compareTo(n)>0||E.ZERO.compareTo(u)>=0||u.compareTo(n)>0)throw"invalid DSA signature";var f=u.modInverse(n),d=l.multiply(f).mod(n),h=s.multiply(f).mod(n);return 0==i.modPow(d,r).multiply(a.modPow(h,r)).mod(r).mod(n).compareTo(s)},this.parseASN1Signature=function(t){try{var r=new E(e(t,0,[0],"02"),16),n=new E(e(t,0,[1],"02"),16);return[r,n]}catch(e){throw Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(r){var n,i,a,o,s;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[1],"02"),i=e(r,0,[2],"02"),a=e(r,0,[3],"02"),o=e(r,0,[4],"02"),s=e(r,0,[5],"02")}catch(e){throw Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(n,i,a,o,s)},this.readPKCS8PrvKeyHex=function(r){var n,i,a,o;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[1,1,0],"02"),i=e(r,0,[1,1,1],"02"),a=e(r,0,[1,1,2],"02"),o=e(r,0,[2,0],"02")}catch(e){throw Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(n,i,a,null,o)},this.readPKCS8PubKeyHex=function(r){var n,i,a,o;if(!1===t(r))throw Error("not ASN.1 hex string");try{n=e(r,0,[0,1,0],"02"),i=e(r,0,[0,1,1],"02"),a=e(r,0,[0,1,2],"02"),o=e(r,0,[1,0],"02")}catch(e){throw Error("malformed PKCS#8 DSA public key")}this.setPublicHex(n,i,a,o)},this.readCertPubKeyHex=function(r,n){var i,a,o,s;if(!1===t(r))throw Error("not ASN.1 hex string");try{i=e(r,0,[0,5,0,1,0],"02"),a=e(r,0,[0,5,0,1,1],"02"),o=e(r,0,[0,5,0,1,2],"02"),s=e(r,0,[0,5,1,0],"02")}catch(e){throw Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,a,o,s)}};var tN=(n=function(e,t,r){return i(b.AES,e,t,r)},i=function(e,t,r,n){var i=b.enc.Hex.parse(t),a=b.enc.Hex.parse(r),o=b.enc.Hex.parse(n),s={};s.key=a,s.iv=o,s.ciphertext=i;var u=e.decrypt(s,a,{iv:o});return b.enc.Hex.stringify(u)},a=function(e,t,r){return o(b.AES,e,t,r)},o=function(e,t,r,n){var i=b.enc.Hex.parse(t),a=b.enc.Hex.parse(r),o=b.enc.Hex.parse(n),s=e.encrypt(i,a,{iv:o}),u=b.enc.Hex.parse(s.toString());return b.enc.Base64.stringify(u)},s={"AES-256-CBC":{proc:n,eproc:a,keylen:32,ivlen:16},"AES-192-CBC":{proc:n,eproc:a,keylen:24,ivlen:16},"AES-128-CBC":{proc:n,eproc:a,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(e,t,r){return i(b.TripleDES,e,t,r)},eproc:function(e,t,r){return o(b.TripleDES,e,t,r)},keylen:24,ivlen:8},"DES-CBC":{proc:function(e,t,r){return i(b.DES,e,t,r)},eproc:function(e,t,r){return o(b.DES,e,t,r)},keylen:8,ivlen:8}},u=function(e){var t=b.lib.WordArray.random(e);return b.enc.Hex.stringify(t)},c=function(e){var t={},r=e.match(RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));r&&(t.cipher=r[1],t.ivsalt=r[2]);var n=e.match(RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));n&&(t.type=n[1]);var i=-1,a=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),a=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),a=1);var o=e.indexOf("-----END");if(-1!=i&&-1!=o){var s=e.substring(i+2*a,o-a);s=s.replace(/\s+/g,""),t.data=s}return t},l=function(e,t,r){for(var n=r.substring(0,16),i=b.enc.Hex.parse(n),a=b.enc.Utf8.parse(t),o=s[e].keylen+s[e].ivlen,u="",c=null;;){var l=b.algo.MD5.create();if(null!=c&&l.update(c),l.update(a),l.update(i),c=l.finalize(),(u+=b.enc.Hex.stringify(c)).length>=2*o)break}var f={};return f.keyhex=u.substr(0,2*s[e].keylen),f.ivhex=u.substr(2*s[e].keylen,2*s[e].ivlen),f},f=function(e,t,r,n){var i=b.enc.Base64.parse(e),a=b.enc.Hex.stringify(i);return(0,s[t].proc)(a,r,n)},{version:"1.0.0",parsePKCS5PEM:function(e){return c(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,r){return l(e,t,r)},decryptKeyB64:function(e,t,r,n){return f(e,t,r,n)},getDecryptedKeyHex:function(e,t){var r=c(e);r.type;var n=r.cipher,i=r.ivsalt,a=r.data,o=l(n,t,i).keyhex;return f(a,n,o,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,r,n,i){var a,o,c="";if((void 0===n||null==n)&&(n="AES-256-CBC"),void 0===s[n])throw Error("KEYUTIL unsupported algorithm: "+n);(void 0===i||null==i)&&(i=u(s[n].ivlen).toUpperCase());var f=l(n,r,i).keyhex,d=(a=n,o=i,(0,s[a].eproc)(t,f,o)).replace(/(.{64})/g,"$1\r\n"),c="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return c+("Proc-Type: 4,ENCRYPTED\r\n"+("DEK-Info: "+n+",")+i+"\r\n\r\n"+d+"\r\n-----END "+e)+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(e){var t=ts.getChildIdx,r=ts.getV,n={},i=t(e,0);if(2!=i.length)throw Error("malformed format: SEQUENCE(0).items != 2: "+i.length);n.ciphertext=r(e,i[1]);var a=t(e,i[0]);if(2!=a.length)throw Error("malformed format: SEQUENCE(0.0).items != 2: "+a.length);if("2a864886f70d01050d"!=r(e,a[0]))throw Error("this only supports pkcs5PBES2");var o=t(e,a[1]);if(2!=a.length)throw Error("malformed format: SEQUENCE(0.0.1).items != 2: "+o.length);var s=t(e,o[1]);if(2!=s.length)throw Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+s.length);if("2a864886f70d0307"!=r(e,s[0]))throw"this only supports TripleDES";n.encryptionSchemeAlg="TripleDES",n.encryptionSchemeIV=r(e,s[1]);var u=t(e,o[0]);if(2!=u.length)throw Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length);if("2a864886f70d01050c"!=r(e,u[0]))throw Error("this only supports pkcs5PBKDF2");var c=t(e,u[1]);if(c.length<2)throw Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length);n.pbkdf2Salt=r(e,c[0]);var l=r(e,c[1]);try{n.pbkdf2Iter=parseInt(l,16)}catch(e){throw Error("malformed format pbkdf2Iter: "+l)}return n},getPBKDF2KeyHexFromParam:function(e,t){var r=b.enc.Hex.parse(e.pbkdf2Salt),n=e.pbkdf2Iter,i=b.PBKDF2(t,r,{keySize:6,iterations:n});return b.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var r=tb(e,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(r),i=tN.getPBKDF2KeyHexFromParam(n,t),a={};a.ciphertext=b.enc.Hex.parse(n.ciphertext);var o=b.enc.Hex.parse(i),s=b.enc.Hex.parse(n.encryptionSchemeIV),u=b.TripleDES.decrypt(a,o,{iv:s});return b.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var r=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(r)},parsePlainPrivatePKCS8Hex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};if(n.algparam=null,"30"!=e.substr(0,2))throw Error("malformed plain PKCS8 private key(code:001)");var i=t(e,0);if(i.length<3)throw Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(i[1],2))throw Error("malformed PKCS8 private key(code:003)");var a=t(e,i[1]);if(2!=a.length)throw Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(a[0],2))throw Error("malformed PKCS8 private key(code:005)");if(n.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(n.algparam=r(e,a[1])),"04"!=e.substr(i[2],2))throw Error("malformed PKCS8 private key(code:006)");return n.keyidx=ts.getVidx(e,i[2]),n},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=tb(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,r=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==r.algoid)t=new tt;else if("2a8648ce380401"==r.algoid)t=new d.crypto.DSA;else if("2a8648ce3d0201"==r.algoid)t=new d.crypto.ECDSA;else throw Error("unsupported private key algorithm");return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,r=ts.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===r)t=new tt;else if("2a8648ce380401"===r)t=new d.crypto.DSA;else if("2a8648ce3d0201"===r)t=new d.crypto.ECDSA;else throw Error("unsupported PKCS#8 public key hex");return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};if("30"!=e.substr(0,2))throw Error("malformed RSA key(code:001)");var i=t(e,0);if(2!=i.length)throw Error("malformed RSA key(code:002)");if("02"!=e.substr(i[0],2))throw Error("malformed RSA key(code:003)");if(n.n=r(e,i[0]),"02"!=e.substr(i[1],2))throw Error("malformed RSA key(code:004)");return n.e=r(e,i[1]),n},parsePublicPKCS8Hex:function(e){var t=ts.getChildIdx,r=ts.getV,n={};n.algparam=null;var i=t(e,0);if(2!=i.length)throw Error("outer DERSequence shall have 2 elements: "+i.length);var a=i[0];if("30"!=e.substr(a,2))throw Error("malformed PKCS8 public key(code:001)");var o=t(e,a);if(2!=o.length)throw Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(o[0],2))throw Error("malformed PKCS8 public key(code:003)");if(n.algoid=r(e,o[0]),"06"==e.substr(o[1],2)?n.algparam=r(e,o[1]):"30"==e.substr(o[1],2)&&(n.algparam={},n.algparam.p=ts.getVbyList(e,o[1],[0],"02"),n.algparam.q=ts.getVbyList(e,o[1],[1],"02"),n.algparam.g=ts.getVbyList(e,o[1],[2],"02")),"03"!=e.substr(i[1],2))throw Error("malformed PKCS8 public key(code:004)");return n.key=r(e,i[1]).substr(2),n}});function tM(e,t){for(var r="",n=t/4-e.length,i=0;i>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return n}function tB(e){for(var t in d.crypto.Util.DIGESTINFOHEAD){var r=d.crypto.Util.DIGESTINFOHEAD[t],n=r.length;if(e.substring(0,n)==r)return[t,e.substring(n)]}return[]}function tH(e){var t,r=ts.getChildIdx,n=ts.getV,i=(ts.dump,ts.parse),a=ts.getTLV,o=ts.getVbyList,s=ts.getVbyListEx,u=ts.getTLVbyList,c=ts.getTLVbyListEx,l=ts.getIdxbyList,f=ts.getIdxbyListEx,h=ts.getVidx,p=ts.getInt,m=ts.oidname,g=ts.hextooidstr;try{t=d.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=u(this.hex,0,[0,0]);if("a0"!=e.substr(0,2))return this.version=1,this.foffset=-1,1;var t=p(u(e,0,[0]),0);if(t<0||21){var s=a(e,o[1]),u=this.getGeneralName(s);void 0!=u.uri&&(i.uri=u.uri)}if(o.length>2){var c=a(e,o[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i};var y=function(e){var t={};try{var r=e.seq[0].oid,n=d.asn1.x509.OID.name2oid(r);t.type=d.asn1.x509.OID.oid2atype(n);var i=e.seq[1];if(void 0!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(void 0!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(void 0!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(void 0!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(void 0!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(void 0!=i.visstr)t.ds="vis",t.value=i.visstr.str;else if(void 0!=i.bmpstr)t.ds="bmp",t.value=i.bmpstr.str;else throw"error";return t}catch(e){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},b=function(e){try{return e.set.map(function(e){return y(e)})}catch(e){throw Error("improper ASN.1 parsed RDN: "+e)}},x=function(e){try{return e.seq.map(function(e){return b(e)})}catch(e){throw Error("improper ASN.1 parsed X500Name: "+e)}};this.getX500NameRule=function(e){for(var t=null,r=[],n=0;n0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),"object"==typeof e&&(!0==e.tbshex&&(t.tbshex=u(this.hex,0,[0])),!0==e.nodnarray&&(delete t.issuer.array,delete t.subject.array)),t},this.getExtParamArray=function(e){void 0==e&&-1!=f(this.hex,0,[0,"[3]"])&&(e=c(this.hex,0,[0,"[3]",0],"30"));for(var t=[],n=r(e,0),i=0;i2&&"04"===e.substr(b[1],2))(l=new s).readPKCS5PrvKeyHex(e);else throw Error("unsupported PKCS#1/5 hexadecimal key");return l}if("pkcs8prv"===r){var l=tN.getKeyFromPlainPrivatePKCS8Hex(e);return l}if("pkcs8pub"===r)return tN._getKeyFromPublicPKCS8Hex(e);if("x509pub"===r)return tH.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return tH.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var x=tb(e,"PUBLIC KEY");return tN._getKeyFromPublicPKCS8Hex(x)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=c(e,"RSA PRIVATE KEY");return tN.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var w=c(e,"DSA PRIVATE KEY"),A=a(w,0,[1],"02"),C=a(w,0,[2],"02"),P=a(w,0,[3],"02"),O=a(w,0,[4],"02"),k=a(w,0,[5],"02"),l=new u;return l.setPrivate(new E(A,16),new E(C,16),new E(P,16),new E(O,16),new E(k,16)),l}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=c(e,"EC PRIVATE KEY");return tN.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return tN.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var _=tN.getDecryptedKeyHex(e,t),F=new tt;return F.readPKCS5PrvKeyHex(_),F}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var w=tN.getDecryptedKeyHex(e,t),l=a(w,0,[1],"04"),j=a(w,0,[2,0],"06"),R=a(w,0,[3,0],"03").substr(2),I="";if(void 0!==d.crypto.OID.oidhex2name[j])I=d.crypto.OID.oidhex2name[j];else throw Error("undefined OID(hex) in KJUR.crypto.OID: "+j);var f=new s({curve:I});return f.setPublicKeyHex(R),f.setPrivateKeyHex(l),f.isPublic=!1,f}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var w=tN.getDecryptedKeyHex(e,t),A=a(w,0,[1],"02"),C=a(w,0,[2],"02"),P=a(w,0,[3],"02"),O=a(w,0,[4],"02"),k=a(w,0,[5],"02"),l=new u;return l.setPrivate(new E(A,16),new E(C,16),new E(P,16),new E(O,16),new E(k,16)),l}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return tN.getKeyFromEncryptedPKCS8PEM(e,t);throw Error("not supported argument")},tN.generateKeypair=function(e,t){if("RSA"==e){var r=new tt;r.generate(t,"10001"),r.isPrivate=!0,r.isPublic=!0;var n=new tt,i=r.n.toString(16),a=r.e.toString(16);n.setPublic(i,a),n.isPrivate=!1,n.isPublic=!0;var o={};return o.prvKeyObj=r,o.pubKeyObj=n,o}if("EC"==e){var s=new d.crypto.ECDSA({curve:t}).generateKeyPairHex(),r=new d.crypto.ECDSA({curve:t});r.setPublicKeyHex(s.ecpubhex),r.setPrivateKeyHex(s.ecprvhex),r.isPrivate=!0,r.isPublic=!1;var n=new d.crypto.ECDSA({curve:t});n.setPublicKeyHex(s.ecpubhex),n.isPrivate=!1,n.isPublic=!0;var o={};return o.prvKeyObj=r,o.pubKeyObj=n,o}throw Error("unknown algorithm: "+e)},tN.getPEM=function(e,t,r,n,i,a){var o=d,s=o.asn1,u=s.DERObjectIdentifier,c=s.DERInteger,l=s.ASN1Util.newObject,f=s.x509.SubjectPublicKeyInfo,h=o.crypto,p=h.DSA,m=h.ECDSA;function g(e){return l({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function y(e){return l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function x(e){return l({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==tt&&e instanceof tt||void 0!==p&&e instanceof p||void 0!==m&&e instanceof m)&&!0==e.isPublic&&(void 0===t||"PKCS8PUB"==t)){var S=new f(e),w=S.tohex();return ty(w,"PUBLIC KEY")}if("PKCS1PRV"==t&&void 0!==tt&&e instanceof tt&&(void 0===r||null==r)&&!0==e.isPrivate){var S=g(e),w=S.tohex();return ty(w,"RSA PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===r||null==r)&&!0==e.isPrivate){var E=new u({name:e.curveName}).tohex(),A=y(e).tohex();return""+(ty(E,"EC PARAMETERS")+ty(A,"EC PRIVATE KEY"))}if("PKCS1PRV"==t&&void 0!==p&&e instanceof p&&(void 0===r||null==r)&&!0==e.isPrivate){var S=x(e),w=S.tohex();return ty(w,"DSA PRIVATE KEY")}if("PKCS5PRV"==t&&void 0!==tt&&e instanceof tt&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=g(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,r,n,a)}if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=y(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,r,n,a)}if("PKCS5PRV"==t&&void 0!==p&&e instanceof p&&void 0!==r&&null!=r&&!0==e.isPrivate){var S=x(e),w=S.tohex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,r,n,a)}var C=function(e,t){var r=P(e,t);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:r.pbkdf2Salt}},{int:r.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:r.encryptionSchemeIV}}]}]}]},{octstr:{hex:r.ciphertext}}]}).tohex()},P=function(e,t){var r=b.lib.WordArray.random(8),n=b.lib.WordArray.random(8),i=b.PBKDF2(t,r,{keySize:6,iterations:100}),a=b.enc.Hex.parse(e),o=b.TripleDES.encrypt(a,i,{iv:n})+"",s={};return s.ciphertext=o,s.pbkdf2Salt=b.enc.Hex.stringify(r),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=b.enc.Hex.stringify(n),s};if("PKCS8PRV"==t&&void 0!=tt&&e instanceof tt&&!0==e.isPrivate){var O=g(e),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==m&&e instanceof m&&!0==e.isPrivate){var _={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&_.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});var O=new l(_),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==p&&e instanceof p&&!0==e.isPrivate){var O=new c({bigint:e.x}),k=O.tohex(),S=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:k}}]}),w=S.tohex();if(void 0===r||null==r)return ty(w,"PRIVATE KEY");var A=C(w,r);return ty(A,"ENCRYPTED PRIVATE KEY")}throw Error("unsupported object nor format")},tN.getKeyFromCSRPEM=function(e){var t=tb(e,"CERTIFICATE REQUEST");return tN.getKeyFromCSRHex(t)},tN.getKeyFromCSRHex=function(e){var t=tN.parseCSRHex(e);return tN.getKey(t.p8pubkeyhex,null,"pkcs8pub")},tN.parseCSRHex=function(e){var t=ts.getChildIdx,r=ts.getTLV,n={};if("30"!=e.substr(0,2))throw Error("malformed CSR(code:001)");var i=t(e,0);if(i.length<1)throw Error("malformed CSR(code:002)");if("30"!=e.substr(i[0],2))throw Error("malformed CSR(code:003)");var a=t(e,i[0]);if(a.length<3)throw Error("malformed CSR(code:004)");return n.p8pubkeyhex=r(e,a[2]),n},tN.getKeyID=function(e){"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=tN.getKey(e));var t=tb(tN.getPEM(e)),r=ts.getIdxbyList(t,0,[1]),n=ts.getV(t,r).substring(2);return d.crypto.Util.hashHex(n,"sha1")},tN.getJWK=function(e,t,r,n,i){var a,o,s={},u=d.crypto.Util.hashHex;if("string"==typeof e)a=tN.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(o=tb(e));else if("object"==typeof e)e instanceof tH?(a=e.getPublicKey(),o=e.hex):a=e;else throw Error("unsupported keyinfo type");if(a instanceof tt&&a.isPrivate)s.kty="RSA",s.n=td(a.n.toString(16)),s.e=td(a.e.toString(16)),s.d=td(a.d.toString(16)),s.p=td(a.p.toString(16)),s.q=td(a.q.toString(16)),s.dp=td(a.dmp1.toString(16)),s.dq=td(a.dmq1.toString(16)),s.qi=td(a.coeff.toString(16));else if(a instanceof tt&&a.isPublic)s.kty="RSA",s.n=td(a.n.toString(16)),s.e=td(a.e.toString(16));else if(a instanceof d.crypto.ECDSA&&a.isPrivate){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw Error("unsupported curve name for JWT: "+c);var l=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=td(l.x),s.y=td(l.y),s.d=td(a.prvKeyHex)}else if(a instanceof d.crypto.ECDSA&&a.isPublic){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw Error("unsupported curve name for JWT: "+c);var l=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=td(l.x),s.y=td(l.y)}if(void 0==s.kty)throw Error("unsupported keyinfo");return a.isPrivate||!0==t||(s.kid=d.jws.JWS.getJWKthumbprint(s)),void 0!=o&&!0!=r&&(s.x5c=[S(o)]),void 0!=o&&!0!=n&&(s.x5t=tl(S(u(o,"sha1")))),void 0!=o&&!0!=i&&(s["x5t#S256"]=tl(S(u(o,"sha256")))),s},tN.getJWKFromKey=function(e){return tN.getJWK(e,!0,!0,!0,!0)},tt.getPosArrayOfChildrenFromHex=function(e){return ts.getChildIdx(e,0)},tt.getHexValueArrayOfChildrenFromHex=function(e){var t=ts.getV,r=tt.getPosArrayOfChildrenFromHex(e),n=t(e,r[0]),i=t(e,r[1]),a=t(e,r[2]),o=t(e,r[3]),s=t(e,r[4]),u=t(e,r[5]),c=t(e,r[6]),l=t(e,r[7]),f=t(e,r[8]),r=[];return r.push(n,i,a,o,s,u,c,l,f),r},tt.prototype.readPrivateKeyFromPEMString=function(e){var t=tb(e),r=tt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},tt.prototype.readPKCS5PrvKeyHex=function(e){var t=tt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},tt.prototype.readPKCS8PrvKeyHex=function(e){var t,r,n,i,a,o,s,u,c=ts.getVbyListEx;if(!1===ts.isASN1HEX(e))throw Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),r=c(e,0,[2,0,2],"02"),n=c(e,0,[2,0,3],"02"),i=c(e,0,[2,0,4],"02"),a=c(e,0,[2,0,5],"02"),o=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,r,n,i,a,o,s,u)},tt.prototype.readPKCS5PubKeyHex=function(e){var t=ts.getV;if(!1===ts.isASN1HEX(e))throw Error("keyHex is not ASN.1 hex string");var r=ts.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw Error("wrong hex for PKCS#5 public key");var n=t(e,r[0]),i=t(e,r[1]);this.setPublic(n,i)},tt.prototype.readPKCS8PubKeyHex=function(e){if(!1===ts.isASN1HEX(e))throw Error("not ASN.1 hex string");if("06092a864886f70d010101"!==ts.getTLVbyListEx(e,0,[0,0]))throw Error("not PKCS8 RSA public key");var t=ts.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(t)},tt.prototype.readCertPubKeyHex=function(e,t){var r,n;(r=new tH).readCertHex(e),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)},tt.prototype.sign=function(e,t){var r=d.crypto.Util.hashString(e,t);return this.signWithMessageHash(r,t)},tt.prototype.signWithMessageHash=function(e,t){var r=d.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),n=e7(r,16);return tM(this.doPrivate(n).toString(16),this.n.bitLength())},tt.prototype.signPSS=function(e,t,r){var n,i=(n=tg(e),d.crypto.Util.hashHex(n,t));return void 0===r&&(r=-1),this.signWithMessageHashPSS(i,t,r)},tt.prototype.signWithMessageHashPSS=function(e,t,r){var n,i=tv(e),a=i.length,o=this.n.bitLength()-1,s=Math.ceil(o/8),u=function(e){return d.crypto.Util.hashHex(e,t)};if(-1===r||void 0===r)r=a;else if(-2===r)r=s-a-2;else if(r<-2)throw Error("invalid salt length");if(s0&&(c=Array(r),new e9().nextBytes(c),c=String.fromCharCode.apply(String,c));var l=tv(u(tg("\x00\x00\x00\x00\x00\x00\x00\x00"+i+c))),f=[];for(n=0;n>8*s-o&255),n=0;nn)return!1;var i=this.doPublic(r).toString(16);if(i.length+3!=n/4)return!1;var a=tB(i.replace(/^1f+00/,""));if(0==a.length)return!1;var o=a[0],s=a[1],u=d.crypto.Util.hashString(e,o);return s==u},tt.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=e7(t,16);if(r.bitLength()>this.n.bitLength())return 0;var n=tB(this.doPublic(r).toString(16).replace(/^1f+00/,""));return 0!=n.length&&(n[0],n[1]==e)},tt.prototype.verifyPSS=function(e,t,r,n){var i,a=(i=tg(e),d.crypto.Util.hashHex(i,r));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(a,t,r,n)},tt.prototype.verifyWithMessageHashPSS=function(e,t,r,n){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,a=new E(t,16),o=function(e){return d.crypto.Util.hashHex(e,r)},s=tv(e),u=s.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw Error("invalid salt length");if(l>8*l-c&255;if((h.charCodeAt(0)&m)!=0)throw Error("bits beyond keysize not zero");var g=tL(p,h.length,o),y=[];for(i=0;i0&&-1==(":"+r.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=tN.getKey(t)),("RS"==y||"PS"==y)&&!(t instanceof tt))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==y&&!(t instanceof s))throw"key shall be a ECDSA obj for ES* algs";var b=null;if(void 0===i.jwsalg2sigalg[m.alg])throw"unsupported alg name: "+g;if("none"==(b=i.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==b.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var x=new u({alg:b,pass:t});return x.updateString(f),h==x.doFinal()}if(-1!=b.indexOf("withECDSA")){var S=null;try{S=s.concatSigToASN1Sig(h)}catch(e){return!1}var w=new c({alg:b});return w.init(t),w.updateString(f),w.verify(S)}var w=new c({alg:b});return w.init(t),w.updateString(f),w.verify(h)},d.jws.JWS.parse=function(e){var t,r,n,i=e.split("."),a={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],r=i[1],3==i.length&&(n=i[2]),a.headerObj=d.jws.JWS.readSafeJSONString(p(t)),a.payloadObj=d.jws.JWS.readSafeJSONString(p(r)),a.headerPP=JSON.stringify(a.headerObj,null," "),null==a.payloadObj?a.payloadPP=p(r):a.payloadPP=JSON.stringify(a.payloadObj,null," "),void 0!==n&&(a.sigHex=th(n)),a},d.jws.JWS.verifyJWT=function(e,t,r){var n=d.jws,i=n.JWS,a=i.readSafeJSONString,o=i.inArray,s=i.includedArray;if(!tF(e))return!1;var u=e.split(".");if(3!=u.length)return!1;var c=u[0],l=u[1];th(u[2]);var f=a(p(c)),h=a(p(l));if(void 0===f.alg)return!1;if(void 0===r.alg)throw"acceptField.alg shall be specified";if(!o(f.alg,r.alg)||void 0!==h.iss&&"object"==typeof r.iss&&!o(h.iss,r.iss)||void 0!==h.sub&&"object"==typeof r.sub&&!o(h.sub,r.sub))return!1;if(void 0!==h.aud&&"object"==typeof r.aud){if("string"==typeof h.aud){if(!o(h.aud,r.aud))return!1}else if("object"==typeof h.aud&&!s(h.aud,r.aud))return!1}var m=n.IntDate.getNow();return void 0!==r.verifyAt&&"number"==typeof r.verifyAt&&(m=r.verifyAt),(void 0===r.gracePeriod||"number"!=typeof r.gracePeriod)&&(r.gracePeriod=0),(void 0===h.exp||"number"!=typeof h.exp||!(h.exp+r.gracePeriodi&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+e}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t0)this.aHeader=e.headers;else throw"malformed header";if("string"==typeof e.payload)this.sPayload=e.payload;else throw"malformed signatures";if(e.signatures.length>0)this.aSignature=e.signatures;else throw"malformed signatures"}catch(e){throw"malformed JWS-JS JSON object: "+e}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},d.crypto.ECDSA,d.crypto.DSA,d.crypto.Signature,d.crypto.MessageDigest,d.crypto.Mac,d.crypto.Cipher,t.KZ=tN,t.fs=d,d.crypto,d.asn1,d.jws,d.lang},48094:function(e){var t=Object.prototype.toString;e.exports=function(e){return!0===e||!1===e||!!e&&"object"==typeof e&&"[object Boolean]"==t.call(e)}},98423:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,u=o.toString,c=a.Symbol,l=c?c.toStringTag:void 0;e.exports=function(e){if(t=typeof e,null==e||"object"!=t&&"function"!=t)return!1;var t,r=null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=s.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var i=u.call(e);return n&&(t?e[l]=r:delete e[l]),i}(e):u.call(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},23126:function(e){var t=Object.prototype.toString;e.exports=function(e){return"number"==typeof e||!!e&&"object"==typeof e&&"[object Number]"==t.call(e)}},25751:function(e){var t=Object.prototype.toString,r=Array.isArray;e.exports=function(e){var n;return"string"==typeof e||!r(e)&&!!(n=e)&&"object"==typeof n&&"[object String]"==t.call(e)}},35683:function(e,t,r){var n,i,a=1/0,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\ud800-\udfff",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="['’]",p="["+d+"]",m="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="["+l+"]",y="[^"+u+d+"\\d+"+c+l+f+"]",b="(?:\ud83c[\udde6-\uddff]){2}",x="[\ud800-\udbff][\udc00-\udfff]",S="["+f+"]",w="(?:"+g+"|"+y+")",E="(?:"+h+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+h+"(?:D|LL|M|RE|S|T|VE))?",C="(?:"+m+"|\ud83c[\udffb-\udfff])?",P="[\\ufe0e\\ufe0f]?",O="(?:\\u200d(?:"+["[^"+u+"]",b,x].join("|")+")"+P+C+")*",k="(?:"+["["+c+"]",b,x].join("|")+")"+(P+C+O),_=RegExp(h,"g"),F=RegExp(m,"g"),j=RegExp([S+"?"+g+"+"+E+"(?="+[p,S,"$"].join("|")+")","(?:"+S+"|"+y+")+"+A+"(?="+[p,S+w,"$"].join("|")+")",S+"?"+w+"+"+E,S+"+"+A,"\\d+",k].join("|"),"g"),R=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,T="object"==typeof self&&self&&self.Object===Object&&self,D=I||T||Function("return this")(),N=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),M=Object.prototype.toString,L=D.Symbol,B=L?L.prototype:void 0,H=B?B.toString:void 0;function $(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==M.call(t))return H?H.call(e):"";var t,r=e+"";return"0"==r&&1/e==-a?"-0":r}(e)}var U=(i=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){var t;return function(e,t,r,n){for(var i=-1,a=e?e.length:0;++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++nl))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var p=-1,m=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++p-1&&e%1==0&&e-1}},54705:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),a=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},42634:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},24523:function(e,t,r){var n=r(88306);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},45357:function(e,t,r){var n=r(96874),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),a=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(e,t),this.size=r.size,this}},55514:function(e,t,r){var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(a,"$1"):r||e)}),t});e.exports=o},40327:function(e,t,r){var n=r(33448),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},75703:function(e){e.exports=function(e){return function(){return e}}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},84486:function(e,t,r){var n=r(77412),i=r(89881),a=r(54290),o=r(1469);e.exports=function(e,t){return(o(e)?n:i)(e,a(t))}},27361:function(e,t,r){var n=r(97786);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},79095:function(e,t,r){var n=r(13),i=r(222);e.exports=function(e,t){return null!=e&&i(e,t,n)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,r){var n=r(9454),i=r(37005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},29246:function(e,t,r){var n=r(98612),i=r(37005);e.exports=function(e){return i(e)&&n(e)}},51584:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},81763:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,r){var n=r(44239),i=r(85924),a=r(37005),o=Object.prototype,s=Function.prototype.toString,u=o.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},47037:function(e,t,r){var n=r(44239),i=r(1469),a=r(37005);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==n(e)}},33448:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},36719:function(e,t,r){var n=r(38749),i=r(7518),a=r(31167),o=a&&a.isTypedArray,s=o?i(o):n;e.exports=s},3674:function(e,t,r){var n=r(14636),i=r(280),a=r(98612);e.exports=function(e){return a(e)?n(e):i(e)}},81704:function(e,t,r){var n=r(14636),i=r(10313),a=r(98612);e.exports=function(e){return a(e)?n(e,!0):i(e)}},66604:function(e,t,r){var n=r(89465),i=r(47816),a=r(11243);e.exports=function(e,t){var r={};return t=a(t,3),i(e,function(e,i,a){n(r,i,t(e,i,a))}),r}},88306:function(e,t,r){var n=r(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},82492:function(e,t,r){var n=r(42980),i=r(21463)(function(e,t,r){n(e,t,r)});e.exports=i},35937:function(e,t,r){var n=r(29932),i=r(11243),a=r(63012),o=r(46904);e.exports=function(e,t){if(null==e)return{};var r=n(o(e),function(e){return[e]});return t=i(t),a(e,r,function(e,r){return t(e,r[0])})}},39601:function(e,t,r){var n=r(40371),i=r(79152),a=r(15403),o=r(40327);e.exports=function(e){return a(e)?n(o(e)):i(e)}},54061:function(e,t,r){var n=r(62663),i=r(89881),a=r(11243),o=r(10107),s=r(1469);e.exports=function(e,t,r){var u=s(e)?n:o,c=arguments.length<3;return u(e,a(t,4),r,c,i)}},36968:function(e,t,r){var n=r(10611);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},30084:function(e,t,r){var n=r(29932),i=r(278),a=r(1469),o=r(33448),s=r(55514),u=r(40327),c=r(79833);e.exports=function(e){return a(e)?n(e,u):o(e)?[e]:i(s(c(e)))}},59881:function(e,t,r){var n=r(98363),i=r(81704);e.exports=function(e){return n(e,i(e))}},79833:function(e,t,r){var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},63947:function(e,t,r){var n,i;n=r(23126),i={"minor second":16/15,"major second":9/8,"minor third":1.2,"major third":4/3,"diminished fourth":Math.sqrt(2),"perfect fifth":1.5,"minor sixth":1.6,golden:1.61803398875,phi:1.61803398875,"major sixth":5/3,"minor seventh":16/9,"major seventh":15/8,octave:2,"major tenth":2.5,"major eleventh":8/3,"major twelfth":3,"double octave":4},e.exports=function(e,t){return null==e&&(e=0),null==t&&(t="golden"),Math.pow(n(t)?t:null!=i[t]?i[t]:i.golden,e)}},11752:function(e,t,r){e.exports=r(62156)},61165:function(e,t,r){"use strict";var n,i,a,o,s,u=r(50029),c=r(71383),l=r(87794),f=r.n(l),d=r(67294),h=r(69696),p=r(99603),m=r(71893),g=r(42894),y=r(59417),b=r(85330),x=r(35683),S=r.n(x),w=r(85893),E=(0,m.ZP)(h.ZP)(n||(n=(0,c.Z)(["\n display: flex;\n align-items: center;\n text-align: left !important;\n\n & .pg-modal-main {\n max-width: 700px;\n margin: auto;\n box-shadow: 5px 5px 10px black;\n }\n"]))),A=(0,m.ZP)(h.ZP.Header)(i||(i=(0,c.Z)(["\n font-size: 1.5em;\n padding: 0.75em;\n background: #38598a;\n color: #fff;\n & a {\n float: right;\n }\n"]))),C=(0,m.ZP)(p.G)(a||(a=(0,c.Z)(["\n margin-right: 5px;\n height: 30px;\n"]))),P=m.ZP.div(o||(o=(0,c.Z)(["\n color: #000;\n cursor: default;\n font-weight: 400;\n"]))),O=m.ZP.div(s||(s=(0,c.Z)(["\n margin-top: 20px;\n display: flex;\n justify-content: "," & button {\n min-width: 150px;\n margin-right: 20px;\n display: inline-block;\n\n &:disabled {\n cursor: not-allowed;\n }\n }\n"])),function(e){return"center"===e.buttonAlign?"center;":"space-between;"});t.Z=function(e){var t,r,n=e.onConfirm,i=e.onClose,a=e.content,o=e.id,s=e.title,c=e.closable,l=e.icon,m=void 0===l?y.eHv:l,x=e.confirmText,k=e.showCancel,_=void 0===k||k,F=e.showConfirm,j=void 0===F||F,R=e.buttonStyle,I=e.buttonAlign,T=e.skipCloseOnConfirm,D=void 0!==T&&T,N=e.style,M=e.disableConfirm,L=(0,d.useState)(!1),B=L[0],H=L[1],$="bcSecondary",U="bcPrimary",z="confirm-delete-"+S()(s),V="cancel-"+S()(s);switch(void 0===R?"bcgov":R){case"bcgov":break;case"custom":$="secondary",U="primary";break;case"danger":$="secondary",U="danger"}var K=(t=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(H(!0),!n){e.next=4;break}return e.next=4,n();case 4:H(!1),D||(window.location.hash="#");case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),W=(r=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i&&i(),window.location.hash="#";case 2:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)});return(0,w.jsxs)(E,{id:o,children:[(0,w.jsxs)(A,{title:s,as:"div",children:[m&&(0,w.jsx)(C,{icon:m,title:"Information",size:"2x",style:{paddingRight:"10px"}}),s,c&&(0,w.jsx)(h.ZP.Close,{onClick:W,title:"exit",children:(0,w.jsx)(p.G,{icon:y.NBC,size:"lg"})})]}),(0,w.jsxs)(h.ZP.Content,{style:void 0===N?{}:N,children:[(0,w.jsx)(P,{children:a}),(_||j)&&(0,w.jsxs)(O,{buttonAlign:void 0===I?"default":I,children:[_&&(0,w.jsx)(b.zx,{variant:$,onClick:W,type:"button","data-testid":V,children:"Cancel"}),j&&(0,w.jsx)(b.zx,{"data-testid":z,onClick:K,variant:U,type:"button",className:"text-center",disabled:void 0!==M&&M,children:B?(0,w.jsx)(g.rj,{color:"#FFF",height:18,width:50,wrapperClass:"d-block",visible:B}):void 0===x?"Confirm":x})]})]})]})}},30233:function(e,t,r){"use strict";r.d(t,{V:function(){return j}});var n,i,a,o,s=r(50029),u=r(59499),c=r(71383),l=r(87794),f=r.n(l),d=r(67294),h=r(69696),p=r(99603),m=r(34798),g=r.n(m),y=r(71893),b=r(42894),x=r(59417),S=r(85330),w=r(35683),E=r.n(w),A=r(85893);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t0&&(n=I(r.width)/o||1),a>0&&(i=I(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function D(e){var t=T(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function N(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&F(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function M(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return O(e).getComputedStyle(e)}function B(e){return((k(e)?e.ownerDocument:e.document)||window.document).documentElement}function H(e){return"html"===M(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||B(e)}function $(e){return _(e)&&"fixed"!==L(e).position?e.offsetParent:null}function U(e){for(var t=O(e),r=$(e);r&&["table","td","th"].indexOf(M(r))>=0&&"static"===L(r).position;)r=$(r);return r&&("html"===M(r)||"body"===M(r)&&"static"===L(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_(e)&&"fixed"===L(e).position)return null;var r=H(e);for(F(r)&&(r=r.host);_(r)&&0>["html","body"].indexOf(M(r));){var n=L(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V(e,t,r){return j(e,R(t,r))}function K(){return{top:0,right:0,bottom:0,left:0}}function W(e){return Object.assign({},K(),e)}function q(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var Z="bottom",G="right",Y="left",J="auto",X=["top",Z,G,Y],Q="start",ee="viewport",et="popper",er=X.reduce(function(e,t){return e.concat([t+"-"+Q,t+"-end"])},[]),en=[].concat(X,[J]).reduce(function(e,t){return e.concat([t,t+"-"+Q,t+"-end"])},[]),ei=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ea(e){return e.split("-")[1]}var eo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function es(e){var t,r,n,i,a,o,s=e.popper,u=e.popperRect,c=e.placement,l=e.variation,f=e.offsets,d=e.position,h=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,g=e.isFixed,y=f.x,b=void 0===y?0:y,x=f.y,S=void 0===x?0:x,w="function"==typeof m?m({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var E=f.hasOwnProperty("x"),A=f.hasOwnProperty("y"),C=Y,P="top",k=window;if(p){var _=U(s),F="clientHeight",j="clientWidth";_===O(s)&&"static"!==L(_=B(s)).position&&"absolute"===d&&(F="scrollHeight",j="scrollWidth"),("top"===c||(c===Y||c===G)&&"end"===l)&&(P=Z,S-=(g&&_===k&&k.visualViewport?k.visualViewport.height:_[F])-u.height,S*=h?1:-1),(c===Y||("top"===c||c===Z)&&"end"===l)&&(C=G,b-=(g&&_===k&&k.visualViewport?k.visualViewport.width:_[j])-u.width,b*=h?1:-1)}var R=Object.assign({position:d},p&&eo),T=!0===m?(r=(t={x:b,y:S}).x,n=t.y,{x:I(r*(i=window.devicePixelRatio||1))/i||0,y:I(n*i)/i||0}):{x:b,y:S};return(b=T.x,S=T.y,h)?Object.assign({},R,((o={})[P]=A?"0":"",o[C]=E?"0":"",o.transform=1>=(k.devicePixelRatio||1)?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",o)):Object.assign({},R,((a={})[P]=A?S+"px":"",a[C]=E?b+"px":"",a.transform="",a))}var eu={passive:!0},ec={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(e){return ec[e]})}var ef={start:"end",end:"start"};function ed(e){return e.replace(/start|end/g,function(e){return ef[e]})}function eh(e){var t=O(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ep(e){return T(B(e)).left+eh(e).scrollLeft}function em(e){var t=L(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function ev(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(M(t))>=0?t.ownerDocument.body:_(t)&&em(t)?t:e(H(t))}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=O(n),o=i?[a].concat(a.visualViewport||[],em(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(ev(H(o)))}function eg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ey(e,t){var r,n,i,a,o,s,u,c,l,f,d,h,p,m,g,y,b;return t===ee?eg((r=O(e),n=B(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0,i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,u=i.offsetTop)),{width:a,height:o,x:s+ep(e),y:u})):k(t)?((c=T(t)).top=c.top+t.clientTop,c.left=c.left+t.clientLeft,c.bottom=c.top+t.clientHeight,c.right=c.left+t.clientWidth,c.width=t.clientWidth,c.height=t.clientHeight,c.x=c.left,c.y=c.top,c):eg((l=B(e),d=B(l),h=eh(l),p=null==(f=l.ownerDocument)?void 0:f.body,m=j(d.scrollWidth,d.clientWidth,p?p.scrollWidth:0,p?p.clientWidth:0),g=j(d.scrollHeight,d.clientHeight,p?p.scrollHeight:0,p?p.clientHeight:0),y=-h.scrollLeft+ep(l),b=-h.scrollTop,"rtl"===L(p||d).direction&&(y+=j(d.clientWidth,p?p.clientWidth:0)-m),{width:m,height:g,x:y,y:b}))}function eb(e){var t,r=e.reference,n=e.element,i=e.placement,a=i?P(i):null,o=i?ea(i):null,s=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2;switch(a){case"top":t={x:s,y:r.y-n.height};break;case Z:t={x:s,y:r.y+r.height};break;case G:t={x:r.x+r.width,y:u};break;case Y:t={x:r.x-n.width,y:u};break;default:t={x:r.x,y:r.y}}var c=a?z(a):null;if(null!=c){var l="y"===c?"height":"width";switch(o){case Q:t[c]=t[c]-(r[l]/2-n[l]/2);break;case"end":t[c]=t[c]+(r[l]/2-n[l]/2)}}return t}function ex(e,t){void 0===t&&(t={});var r,n,i,a,o,s,u,c=t,l=c.placement,f=void 0===l?e.placement:l,d=c.boundary,h=c.rootBoundary,p=c.elementContext,m=void 0===p?et:p,g=c.altBoundary,y=c.padding,b=void 0===y?0:y,x=W("number"!=typeof b?b:q(b,X)),S=e.rects.popper,w=e.elements[void 0!==g&&g?m===et?"reference":et:m],E=(r=k(w)?w:w.contextElement||B(e.elements.popper),s=(o=[].concat("clippingParents"===(n=void 0===d?"clippingParents":d)?(i=ev(H(r)),k(a=["absolute","fixed"].indexOf(L(r).position)>=0&&_(r)?U(r):r)?i.filter(function(e){return k(e)&&N(e,a)&&"body"!==M(e)}):[]):[].concat(n),[void 0===h?ee:h]))[0],(u=o.reduce(function(e,t){var n=ey(r,t);return e.top=j(n.top,e.top),e.right=R(n.right,e.right),e.bottom=R(n.bottom,e.bottom),e.left=j(n.left,e.left),e},ey(r,s))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),A=T(e.elements.reference),C=eb({reference:A,element:S,strategy:"absolute",placement:f}),P=eg(Object.assign({},S,C)),O=m===et?P:A,F={top:E.top-O.top+x.top,bottom:O.bottom-E.bottom+x.bottom,left:E.left-O.left+x.left,right:O.right-E.right+x.right},I=e.modifiersData.offset;if(m===et&&I){var D=I[f];Object.keys(F).forEach(function(e){var t=[G,Z].indexOf(e)>=0?1:-1,r=["top",Z].indexOf(e)>=0?"y":"x";F[e]+=D[r]*t})}return F}function eS(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ew(e){return["top",G,Z,Y].some(function(t){return e[t]>=0})}var eE={placement:"bottom",modifiers:[],strategy:"absolute"};function eA(){for(var e=arguments.length,t=Array(e),r=0;r=0?-1:1,u=(s="function"==typeof a?a(Object.assign({},n,{placement:r})):a)[0],c=s[1],u=u||0,c=(c||0)*o,[Y,G].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}),e},{}),s=o[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=void 0===i||i,o=r.altAxis,s=void 0===o||o,u=r.fallbackPlacements,c=r.padding,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,y=P(g),b=[g].concat(u||(y!==g&&p?function(e){if(P(e)===J)return[];var t=el(e);return[ed(e),t,ed(t)]}(g):[el(g)])).reduce(function(e,r){var n,i,a,o,s,u,d,h,g,y,b,x;return e.concat(P(r)===J?(i=(n={placement:r,boundary:l,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:m}).placement,a=n.boundary,o=n.rootBoundary,s=n.padding,u=n.flipVariations,h=void 0===(d=n.allowedAutoPlacements)?en:d,0===(b=(y=(g=ea(i))?u?er:er.filter(function(e){return ea(e)===g}):X).filter(function(e){return h.indexOf(e)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(e,r){return e[r]=ex(t,{placement:r,boundary:a,rootBoundary:o,padding:s})[P(r)],e},{})).sort(function(e,t){return x[e]-x[t]})):r)},[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,A=b[0],C=0;C=0,j=F?"width":"height",R=ex(t,{placement:O,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),I=F?_?G:Y:_?Z:"top";x[j]>S[j]&&(I=el(I));var T=el(I),D=[];if(a&&D.push(R[k]<=0),s&&D.push(R[I]<=0,R[T]<=0),D.every(function(e){return e})){A=O,E=!1;break}w.set(O,D)}if(E)for(var N=p?3:1,M=function(e){var t=b.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},L=N;L>0&&"break"!==M(L);L--);t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=r.altAxis,o=r.boundary,s=r.rootBoundary,u=r.altBoundary,c=r.padding,l=r.tether,f=void 0===l||l,d=r.tetherOffset,h=void 0===d?0:d,p=ex(t,{boundary:o,rootBoundary:s,padding:c,altBoundary:u}),m=P(t.placement),g=ea(t.placement),y=!g,b=z(m),x="x"===b?"y":"x",S=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,A="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(void 0===i||i){var _,F="y"===b?"top":Y,I="y"===b?Z:G,T="y"===b?"height":"width",N=S[b],M=N+p[F],L=N-p[I],B=f?-E[T]/2:0,H=g===Q?w[T]:E[T],$=g===Q?-E[T]:-w[T],W=t.elements.arrow,q=f&&W?D(W):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K(),X=J[F],ee=J[I],et=V(0,w[T],q[T]),er=y?w[T]/2-B-et-X-C.mainAxis:H-et-X-C.mainAxis,en=y?-w[T]/2+B+et+ee+C.mainAxis:$+et+ee+C.mainAxis,ei=t.elements.arrow&&U(t.elements.arrow),eo=ei?"y"===b?ei.clientTop||0:ei.clientLeft||0:0,es=null!=(_=null==O?void 0:O[b])?_:0,eu=V(f?R(M,N+er-es-eo):M,N,f?j(L,N+en-es):L);S[b]=eu,k[b]=eu-N}if(void 0!==a&&a){var ec,el,ef=S[x],ed="y"===x?"height":"width",eh=ef+p["x"===b?"top":Y],ep=ef-p["x"===b?Z:G],em=-1!==["top",Y].indexOf(m),ev=null!=(ec=null==O?void 0:O[x])?ec:0,eg=em?eh:ef-w[ed]-E[ed]-ev+C.altAxis,ey=em?ef+w[ed]+E[ed]-ev-C.altAxis:ep,eb=f&&em?(el=V(eg,ef,ey))>ey?ey:el:V(f?eg:eh,ef,f?ey:ep);S[x]=eb,k[x]=eb-ef}t.modifiersData[n]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,u=P(n.placement),c=z(u),l=[Y,G].indexOf(u)>=0?"height":"width";if(o&&s){var f=W("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:q(t,X)),d=D(o),h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],p=s[c]-n.rects.reference[c],m=U(o),g=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=f["y"===c?"top":Y],b=g-d[l]-f["y"===c?Z:G],x=g/2-d[l]/2+(h/2-p/2),S=V(y,x,b);n.modifiersData[i]=((r={})[c]=S,r.centerOffset=S-x,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&N(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,s=void 0===(o=n.defaultOptions)?eE:o,function(e,t,r){void 0===r&&(r=s);var n,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},eE,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],u=!1,c={state:i,setOptions:function(r){var n,u,f,d,h,p="function"==typeof r?r(i.options):r;l(),i.options=Object.assign({},s,i.options,p),i.scrollParents={reference:k(e)?ev(e):e.contextElement?ev(e.contextElement):[],popper:ev(t)};var m=(u=Object.keys(n=[].concat(a,i.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,d=new Set,h=[],u.forEach(function(e){f.set(e.name,e)}),u.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=f.get(t);r&&e(r)}}),h.push(t)}(e)}),ei.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var a=n({state:i,name:t,instance:c,options:void 0===r?{}:r});o.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,r,n,a,o,s,l,f,d,h,p,m=i.elements,g=m.reference,y=m.popper;if(eA(g,y)){i.rects={reference:(t=U(y),r="fixed"===i.options.strategy,n=_(t),l=_(t)&&(o=I((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=I(a.height)/t.offsetHeight||1,1!==o||1!==s),f=B(t),d=T(g,l),h={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!r)&&(("body"!==M(t)||em(f))&&(h=(e=t)!==O(e)&&_(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:eh(e)),_(t)?(p=T(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):f&&(p.x=ep(f))),{x:d.left+h.scrollLeft-p.x,y:d.top+h.scrollTop-p.y,width:d.width,height:d.height}),popper:D(y)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;bvoid 0},ek={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:r}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==r.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:r,reference:n}=e.elements,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in n){let e=n.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",e?`${e},${r.id}`:r.id)}}},e_=[];var eF=function(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=e_}=r,s=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,eP),u=(0,l.useRef)(o),c=(0,l.useRef)(),f=(0,l.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),d=(0,l.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[h,p]=C((0,l.useState)({placement:i,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,l.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},r={};Object.keys(e.elements).forEach(n=>{t[n]=e.styles[n],r[n]=e.attributes[n]}),p({state:e,styles:t,attributes:r,update:f,forceUpdate:d,placement:e.placement})}}),[f,d,p]),g=(0,l.useMemo)(()=>(A(u.current,o)||(u.current=o),u.current),[o]);return(0,l.useEffect)(()=>{c.current&&n&&c.current.setOptions({placement:i,strategy:a,modifiers:[...g,m,eO]})},[a,i,m,n,g]),(0,l.useEffect)(()=>{if(n&&null!=e&&null!=t)return c.current=eC(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...g,ek,m]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h},ej=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eR=!1,eI=!1;try{var eT={get passive(){return eR=!0},get once(){return eI=eR=!0}};ej&&(window.addEventListener("test",eT,eT),window.removeEventListener("test",eT,!0))}catch(e){}var eD=function(e,t,r,n){if(n&&"boolean"!=typeof n&&!eI){var i=n.once,a=n.capture,o=r;!eI&&i&&(o=r.__once||function e(n){this.removeEventListener(t,e,a),r.call(this,n)},r.__once=o),e.addEventListener(t,o,eR?n:a)}e.addEventListener(t,r,n)},eN=function(e,t,r,n){var i=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)},eM=function(e,t,r,n){return eD(e,t,r,n),function(){eN(e,t,r,n)}};function eL(e){return e&&e.ownerDocument||document}var eB=r(78146);let eH=()=>{},e$=e=>e&&("current"in e?e.current:e),eU={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var ez=function(e,t=eH,{disabled:r,clickTrigger:n="click"}={}){let i=(0,l.useRef)(!1),a=(0,l.useRef)(!1),o=(0,l.useCallback)(t=>{let r=e$(e);p()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!r||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!f(r,t.target)||a.current,a.current=!1},[e]),s=(0,eB.Z)(t=>{let r=e$(e);r&&f(r,t.target)&&(a.current=!0)}),u=(0,eB.Z)(e=>{i.current||t(e)});(0,l.useEffect)(()=>{if(r||null==e)return;let t=eL(e$(e)),i=(t.defaultView||window).event,a=null;eU[n]&&(a=eM(t,eU[n],s,!0));let c=eM(t,n,o,!0),l=eM(t,n,e=>{if(e===i){i=void 0;return}u(e)}),f=[];return"ontouchstart"in t.documentElement&&(f=[].slice.call(t.body.children).map(e=>eM(e,"mousemove",eH))),()=>{null==a||a(),c(),l(),f.forEach(e=>e())}},[e,r,n,o,s,u])};let eV=()=>{};var eK=function(e,t,{disabled:r,clickTrigger:n}={}){let i=t||eV;ez(e,i,{disabled:r,clickTrigger:n});let a=(0,eB.Z)(e=>{27===e.keyCode&&i(e)});(0,l.useEffect)(()=>{if(r||null==e)return;let t=eL(e$(e)),n=(t.defaultView||window).event,i=eM(t,"keyup",e=>{if(e===n){n=void 0;return}a(e)});return()=>{i()}},[e,r,a])};let eW=(0,l.createContext)(ej?window:void 0);eW.Provider;let eq=(e,t)=>ej?null==e?(t||eL()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function eZ(e,t){let r=(0,l.useContext)(eW),[n,i]=(0,l.useState)(()=>eq(e,null==r?void 0:r.document));if(!n){let t=eq(e);t&&i(t)}return(0,l.useEffect)(()=>{t&&n&&t(n)},[t,n]),(0,l.useEffect)(()=>{let t=eq(e);t!==n&&i(t)},[e,n]),n}var eG=r(85893);let eY=l.forwardRef((e,t)=>{let{flip:r,offset:n,placement:i,containerPadding:a,popperConfig:o={},transition:s}=e,[u,c]=(0,S.Z)(),[f,d]=(0,S.Z)(),h=g(c,t),p=eZ(e.container),m=eZ(e.target),[y,b]=(0,l.useState)(!e.show),w=eF(m,u,function({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:u={}}){var c,l,f,d;let h=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(u.modifiers);return Object.assign({},u,{placement:r,enabled:e,strategy:a?"fixed":u.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},h,{eventListeners:{enabled:t},preventOverflow:Object.assign({},h.preventOverflow,{options:o?Object.assign({padding:o},null==(c=h.preventOverflow)?void 0:c.options):null==(l=h.preventOverflow)?void 0:l.options}),offset:{options:Object.assign({offset:i},null==(f=h.offset)?void 0:f.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},null==(d=h.arrow)?void 0:d.options,{element:s})}),flip:Object.assign({enabled:!!n},h.flip)}))})}({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:r,offset:n,arrowElement:f,popperConfig:o}));e.show?y&&b(!1):e.transition||y||b(!0);let E=(...t)=>{b(!0),e.onExited&&e.onExited(...t)},A=e.show||s&&!y;if(eK(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!A)return null;let C=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:h}),{popper:w,placement:i,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:d})});if(s){let{onExit:t,onExiting:r,onEnter:n,onEntering:i,onEntered:a}=e;C=(0,eG.jsx)(s,{in:e.show,appear:!0,onExit:t,onExiting:r,onExited:E,onEnter:n,onEntering:i,onEntered:a,children:C})}return p?x.createPortal(C,p):null});eY.displayName="Overlay";var eJ=r(99585),eX=r(76792),eQ=/-(.)/g;let e0=e=>e[0].toUpperCase()+e.replace(eQ,function(e,t){return t.toUpperCase()}).slice(1);function e1(e,{displayName:t=e0(e),Component:r,defaultProps:n}={}){let i=l.forwardRef(({className:t,bsPrefix:n,as:i=r||"div",...a},o)=>{let s=(0,eX.vE)(n,e);return(0,eG.jsx)(i,{ref:o,className:b()(t,s),...a})});return i.defaultProps=n,i.displayName=t,i}var e2=e1("popover-header"),e4=e1("popover-body");let e3=l.forwardRef(({bsPrefix:e,placement:t,className:r,style:n,children:i,body:a,arrowProps:o,popper:s,show:u,...c},l)=>{let f;let d=(0,eX.vE)(e,"popover"),h=(0,eX.SC)(),[p]=(null==t?void 0:t.split("-"))||[],m=(f=p,"left"===p?f=h?"end":"start":"right"===p&&(f=h?"start":"end"),f);return(0,eG.jsxs)("div",{ref:l,role:"tooltip",style:n,"x-placement":p,className:b()(r,d,p&&`bs-popover-${m}`),...c,children:[(0,eG.jsx)("div",{className:"popover-arrow",...o}),a?(0,eG.jsx)(e4,{children:i}):i]})});e3.defaultProps={placement:"right"};var e6=Object.assign(e3,{Header:e2,Body:e4,POPPER_OFFSET:[0,8]});function e5(e,t){return(e5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var e8={disabled:!1},e9=l.createContext(null),e7="unmounted",te="exited",tt="entering",tr="entered",tn="exiting",ti=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=te,n.appearStatus=tt):i=tr:i=t.unmountOnExit||t.mountOnEnter?e7:te,n.state={status:i},n.nextCallback=null,n}(r=t).prototype=Object.create(e.prototype),r.prototype.constructor=r,e5(r,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===e7?{status:te}:null};var r,n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==tt&&r!==tr&&(t=tt):(r===tt||r===tr)&&(t=tn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===te&&this.setState({status:e7})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[x.findDOMNode(this),n],a=i[0],o=i[1],s=this.getTimeouts(),u=n?s.appear:s.enter;if(!e&&!r||e8.disabled){this.safeSetState({status:tr},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:tt},function(){t.props.onEntering(a,o),t.onTransitionEnd(u,function(){t.safeSetState({status:tr},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:x.findDOMNode(this);if(!t||e8.disabled){this.safeSetState({status:te},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:tn},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:te},function(){e.props.onExited(n)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===e7)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(e9.Provider,{value:null},"function"==typeof r?r(e,n):l.cloneElement(l.Children.only(r),n))},t}(l.Component);function ta(){}ti.contextType=e9,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ta,onEntering:ta,onEntered:ta,onExit:ta,onExiting:ta,onExited:ta},ti.UNMOUNTED=e7,ti.EXITED=te,ti.ENTERING=tt,ti.ENTERED=tr,ti.EXITING=tn;var to=/([A-Z])/g,ts=/^ms-/;function tu(e){return e.replace(to,"-$1").toLowerCase().replace(ts,"-ms-")}var tc=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,tl=function(e,t){var r,n="",i="";if("string"==typeof t)return e.style.getPropertyValue(tu(t))||((r=eL(e))&&r.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(tu(t));Object.keys(t).forEach(function(r){var a=t[r];a||0===a?r&&tc.test(r)?i+=r+"("+a+") ":n+=tu(r)+": "+a+";":e.style.removeProperty(tu(r))}),i&&(n+="transform: "+i+";"),e.style.cssText+=";"+n};function tf(e,t){let r=tl(e,t)||"",n=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*n}function td(e,t){var r,n,i,a,o,s,u,c,l,f,d,h;let p=tf(e,"transitionDuration"),m=tf(e,"transitionDelay"),g=(r=e,n=r=>{r.target===e&&(g(),t(r))},null==(i=p+m)&&(s=-1===(o=tl(r,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(o)*s||0),d=(c=!1,l=setTimeout(function(){c||function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,r,n),e.dispatchEvent(i)}}(r,"transitionend",!0)},i+5),f=eM(r,"transitionend",function(){c=!0},{once:!0}),function(){clearTimeout(l),f()}),h=eM(r,"transitionend",n),function(){d(),h()})}function th(e){return e&&"setState"in e?x.findDOMNode(e):null!=e?e:null}let tp=l.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:u,...c},f)=>{let d=(0,l.useRef)(null),h=g(d,u),p=e=>{h(th(e))},m=e=>t=>{e&&d.current&&e(d.current,t)},y=(0,l.useCallback)(m(e),[e]),b=(0,l.useCallback)(m(t),[t]),x=(0,l.useCallback)(m(r),[r]),S=(0,l.useCallback)(m(n),[n]),w=(0,l.useCallback)(m(i),[i]),E=(0,l.useCallback)(m(a),[a]),A=(0,l.useCallback)(m(o),[o]);return(0,eG.jsx)(ti,{ref:f,...c,onEnter:y,onEntered:x,onEntering:b,onExit:S,onExited:E,onExiting:w,addEndListener:A,nodeRef:d,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:p}):l.cloneElement(s,{ref:p})})}),tm={[tt]:"show",[tr]:"show"},tv=l.forwardRef(({className:e,children:t,transitionClasses:r={},...n},i)=>{let a=(0,l.useCallback)((e,t)=>{e.offsetHeight,null==n.onEnter||n.onEnter(e,t)},[n]);return(0,eG.jsx)(tp,{ref:i,addEndListener:td,...n,onEnter:a,childRef:t.ref,children:(n,i)=>l.cloneElement(t,{...i,className:b()("fade",e,t.props.className,tm[n],r[n])})})});tv.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},tv.displayName="Fade";let tg=l.forwardRef(({children:e,transition:t,popperConfig:r={},...n},i)=>{let a=(0,l.useRef)({}),[o,s]=(0,S.Z)(),[u,c]=function(e){let t=(0,l.useRef)(null),r=(0,eX.vE)(void 0,"popover"),n=(0,l.useMemo)(()=>({name:"offset",options:{offset:()=>{var n;return t.current&&((n=t.current).classList?!!r&&n.classList.contains(r):-1!==(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" "))?e||e6.POPPER_OFFSET:e||[0,0]}}}),[e,r]);return[t,[n]]}(n.offset),f=g(i,u),d=!0===t?tv:t||void 0,h=(0,eB.Z)(e=>{s(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)});return(0,eJ.Z)(()=>{o&&(null==a.current.scheduleUpdate||a.current.scheduleUpdate())},[o]),(0,eG.jsx)(eY,{...n,ref:f,popperConfig:{...r,modifiers:c.concat(r.modifiers||[]),onFirstUpdate:h},transition:d,children:(r,{arrowProps:n,popper:i,show:o})=>{var s,u;!function(e,t){let{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=e=>r(th(e))),t.ref=n.__wrapped||(n.__wrapped=e=>n(th(e)))}(r,n);let c=null==i?void 0:i.placement,f=Object.assign(a.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:c,outOfBoundaries:(null==i?void 0:null==(s=i.state)?void 0:null==(u=s.modifiersData.hide)?void 0:u.isReferenceHidden)||!1});return"function"==typeof e?e({...r,placement:c,show:o,...!t&&o&&{className:"show"},popper:f,arrowProps:n}):l.cloneElement(e,{...r,placement:c,arrowProps:n,popper:f,className:b()(e.props.className,!t&&o&&"show"),style:{...e.props.style,...r.style}})}})});function ty(e,t,r){let[n]=t,i=n.currentTarget,a=n.relatedTarget||n.nativeEvent[r];a&&a===i||f(i,a)||e(...t)}function tb({trigger:e,overlay:t,children:r,popperConfig:n={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:u,flip:c=u&&-1!==u.indexOf("auto"),...f}){var h,p,m,y,b,x,S,w,E,A;let C=(0,l.useRef)(null),P=g(C,r.ref),O=(E=(0,d.Z)(),A=(0,l.useRef)(),S=function(){return clearTimeout(A.current)},(w=(0,l.useRef)(S)).current=S,(0,l.useEffect)(function(){return function(){return w.current()}},[]),(0,l.useMemo)(function(){var e=function(){return clearTimeout(A.current)};return{set:function(t,r){void 0===r&&(r=0),E()&&(e(),r<=2147483647?A.current=setTimeout(t,r):function e(t,r,n){var i=n-Date.now();t.current=i<=2147483647?setTimeout(r,i):setTimeout(function(){return e(t,r,n)},2147483647)}(A,t,Date.now()+r))},clear:e}},[])),k=(0,l.useRef)(""),[_,F]=(h=(0,l.useRef)(void 0!==i),m=(p=(0,l.useState)(a))[0],y=p[1],b=void 0!==i,x=h.current,h.current=b,!b&&x&&m!==a&&y(a),[b?i:m,(0,l.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{P(th(e))},N=(0,l.useCallback)(()=>{if(O.clear(),k.current="show",!j.show){F(!0);return}O.set(()=>{"show"===k.current&&F(!0)},j.show)},[j.show,F,O]),M=(0,l.useCallback)(()=>{if(O.clear(),k.current="hide",!j.hide){F(!1);return}O.set(()=>{"hide"===k.current&&F(!1)},j.hide)},[j.hide,F,O]),L=(0,l.useCallback)((...e)=>{N(),null==R||R(...e)},[N,R]),B=(0,l.useCallback)((...e)=>{M(),null==I||I(...e)},[M,I]),H=(0,l.useCallback)((...e)=>{F(!_),null==T||T(...e)},[T,F,_]),$=(0,l.useCallback)((...e)=>{ty(N,e,"fromElement")},[N]),U=(0,l.useCallback)((...e)=>{ty(M,e,"toElement")},[M]),z=null==e?[]:[].concat(e),V={ref:D};return -1!==z.indexOf("click")&&(V.onClick=H),-1!==z.indexOf("focus")&&(V.onFocus=L,V.onBlur=B),-1!==z.indexOf("hover")&&(V.onMouseOver=$,V.onMouseOut=U),(0,eG.jsxs)(eG.Fragment,{children:["function"==typeof r?r(V):(0,l.cloneElement)(r,V),(0,eG.jsx)(tg,{...f,show:_,onHide:M,flip:c,placement:u,popperConfig:n,target:C.current,children:t})]})}tg.displayName="Overlay",tg.defaultProps={transition:tv,rootClose:!1,show:!1,placement:"top"},tb.defaultProps={defaultShow:!1,trigger:["hover","focus"]};var tx=r(71893),tS=r(34798),tw=r.n(tS),tE=r(99603),tA=r(59417),tC=r(63055);function tP(e){var t=e.title,r=e.content,n=e.show,i=e.hide,a=e.icon,o=void 0===a?tA.sqG:a,s=e.onClick,u=void 0===s?tw():s,c=e.trigger,l=e.style,f=e.children,d=(0,eG.jsxs)(e6,{id:"popover-basic",style:l,children:[t&&(0,eG.jsx)(e2,{children:t}),r&&(0,eG.jsx)(e4,{dangerouslySetInnerHTML:{__html:r}})]});return(0,eG.jsx)(tb,{trigger:void 0===c?["hover","focus","click"]:c,placement:"right-start",overlay:d,delay:{show:void 0===n?150:n,hide:void 0===i?250:i},children:(0,eG.jsx)("span",{children:f||(0,eG.jsx)(tE.G,{color:"#777777",icon:o,onClick:u})})})}(0,tx.ZP)(e6)(u||(u=(0,c.Z)(["\n font-size: "," !important;\n font-family: "," !important;\n"])),tC.n5,tC.rk)},31637:function(e,t,r){"use strict";var n,i=r(71383),a=r(42894),o=r(71893),s=r(63055),u=r(85893),c=o.ZP.div(n||(n=(0,i.Z)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n margin-top: ",";\n\n & p {\n margin-top: 10px;\n }\n"])),s.SI);t.Z=function(){return(0,u.jsxs)(c,{children:[(0,u.jsx)(a.rj,{color:"#000",height:45,width:45,visible:!0}),(0,u.jsx)("p",{children:"Loading information..."})]})}},59912:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n,i=r(71383),a=r(71893),o=[{maxWidth:767,marginTop:10},{maxWidth:991,width:723,marginTop:20},{maxWidth:1199,width:933,marginTop:50},{width:1127,marginTop:80}],s=function(e,t,r,n){if("left"===e)return"\n margin-right: auto !important;\n ";if("right"===e)return"\n margin-left: auto !important;\n ";if("center"===e)return"\n margin-left: auto !important;\n margin-right: auto !important;\n ";var i="";return t&&(i+="margin-left: ".concat(t).concat(n," !important;")),r&&(i+="margin-right: ".concat(r).concat(n," !important;")),i},u=a.ZP.div(n||(n=(0,i.Z)(["\n display: block;\n max-width: 100% !important;\n\n ","\n"])),function(e){return e.rules.map(function(t,r){return 0===r?"@media only screen and (max-width: ".concat(t.maxWidth,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: auto !important;\n ").concat(s(t.horizontalAlign||"none",1,1,"em"),"\n }\n }"):r===e.rules.length-1?"@media only screen and (min-width: ".concat((e.rules[r-1].maxWidth||0)+1,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: ").concat(t.width,"px;\n ").concat(s(t.horizontalAlign||"center",t.marginLeft,t.marginRight,t.marginUnit),"\n }\n }"):"@media only screen and (min-width: ".concat((e.rules[r-1].maxWidth||0)+1,"px) and (max-width: ").concat(t.maxWidth,"px) {\n & {\n ").concat(t.marginTop&&"margin-top: ".concat(t.marginTop,"px;"),"\n width: ").concat(t.width,"px;\n ").concat(s(t.horizontalAlign||"center",t.marginLeft,t.marginRight,t.marginUnit),"\n }\n }")})});t.Z=u},19287:function(e,t,r){"use strict";var n,i=r(71383),a=r(71893);t.Z=a.ZP.div(n||(n=(0,i.Z)(["\n width: 100%;\n\n & .pg-notification-close {\n padding: 0 0.5rem;\n }\n"])))},99154:function(e,t,r){"use strict";r.d(t,{DK:function(){return h},Es:function(){return c},JK:function(){return s},Jx:function(){return p},Qf:function(){return d},S3:function(){return g},TW:function(){return l},YC:function(){return f},dV:function(){return m},ne:function(){return u},rp:function(){return o},uA:function(){return n}});var n=function(e){return"bceidboth"===e},i=function(e){return"digitalcredential"===e},a=function(e){return["idir","azureidir"].includes(e)},o=function(e){return e.startsWith("bceid")},s=function(e){return!o(e)},u=function(e){return["bceidbasic","bceidbusiness"].includes(e)},c=function(e){return a(e)||"bceidboth"!==e},l=function(e){return a(e)||!u(e)},f=function(e){return["githubpublic","githubbcgov"].includes(e)},d=function(e){return!f(e)},h=function(e){return!i(e)},p=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(o)},m=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(f)},g=function(e){if(!e)return!1;var t=e.devIdps;return(void 0===t?[]:t).some(i)}},15812:function(e,t,r){"use strict";r.d(t,{bD:function(){return x},ZP:function(){return b},hU:function(){return S}});var n,i=r(59499),a=r(67294),o=r(48094),s=r.n(o),u=r(85330),c=r(85893),l=function(e){var t=e.children,r=e.variant,n=e.size,i=e.closable,o=e.content,s=e.fadeOut,l=(0,a.useState)(!1),f=l[0],d=l[1];return((0,a.useEffect)(function(){var e=s?setTimeout(function(){d(!0)},s):null;return function(){e&&clearTimeout(e)}},[]),f)?null:(0,c.jsx)(u.bZ,{variant:r,size:n,closable:i,content:o,children:t})},f=r(19287),d=r(71383),h=r(71893).ZP.div(n||(n=(0,d.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 2000;\n"])));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t0;t&&r&&t(r)})},e),elements:i},u.push(r),s.set(r,t),t}({root:null==t?void 0:t.current,rootMargin:r})).id,i=e.observer,(l=e.elements).set(p,function(e){return e&&d(e)}),i.observe(p),function(){if(l.delete(p),i.unobserve(p),0===l.size){i.disconnect(),s.delete(n);var e=u.findIndex(function(e){return e.root===n.root&&e.margin===n.margin});e>-1&&u.splice(e,1)}}}}else if(!f){var m=a.requestIdleCallback(function(){return d(!0)});return function(){return a.cancelIdleCallback(m)}}},[c,r,t,f,h.current]),[p,f,i.useCallback(function(){d(!1)},[])]};var i=r(67294),a=r(98065),o="function"==typeof IntersectionObserver,s=new Map,u=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext({});t.AmpStateContext=n},80354:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=e.hybrid,n=e.hasQuery;return void 0!==t&&t||void 0!==r&&r&&void 0!==n&&n}},16505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=l,t.default=void 0;var n=r(6495).Z,i=r(92648).Z,a=(0,r(91598).Z)(r(67294)),o=i(r(70148)),s=r(17285),u=r(60523),c=r(80354);function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"==typeof t||"number"==typeof t?e:e.concat(t)},[])):e.concat(t)}r(92783);var d=["name","httpEquiv","charSet","itemProp"];function h(e,t){var r,i,o,s,u=t.inAmpMode;return e.reduce(f,[]).reverse().concat(l(u).reverse()).filter((r=new Set,i=new Set,o=new Set,s={},function(e){var t=!0,n=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){n=!0;var a=e.key.slice(e.key.indexOf("$")+1);r.has(a)?t=!1:r.add(a)}switch(e.type){case"title":case"base":i.has(e.type)?t=!1:i.add(e.type);break;case"meta":for(var u=0,c=d.length;u0&&!eb().isEmail(f))){e.next=3;break}return s("Please provide a valid email address"),e.abrupt("return");case 3:return e.next=5,(0,B.ck)({additionalEmail:f});case 5:t=e.sent,n=(r=(0,P.Z)(t,2))[0],(a=r[1])?(console.error(a),p(a)):n&&i.show({variant:"success",fadeOut:2500,closable:!0,content:"Your additional email has successfully been updated"}),window.location.hash="#";case 11:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),y="".concat(null==c?void 0:c.given_name," ").concat(null==c?void 0:c.family_name),b=(0,et.jsxs)(ex,{children:[(0,et.jsx)(em.default,{label:"Name",fullWidth:!0,value:y,disabled:!0}),(0,et.jsx)("br",{}),(0,et.jsx)(em.default,{label:"Default Email",fullWidth:!0,value:null==c?void 0:c.email,disabled:!0}),(0,et.jsx)("br",{}),(0,et.jsxs)("div",{children:[(0,et.jsx)("span",{className:"strong",children:"Additional Email"})," \xa0",(0,et.jsx)(eg.Z,{title:"",content:"You can add a work email address in addition to your @gov.bc.ca to keep you informed of your integration progress. Note IDIR login/authentication is required to access the CSS App.",hide:200})]}),(0,et.jsx)(em.default,{"data-testid":"addi-email",type:"email",fullWidth:!0,maxLength:"100",value:f,onChange:function(e){eb().isEmail(e.target.value)&&s(""),d(e.target.value)}}),o&&(0,et.jsx)(eS,{children:o})]});return(0,et.jsxs)(et.Fragment,{children:[n(h,function(){return window.location.hash=h}),(0,et.jsx)(ev.Z,{id:h,content:b,onConfirm:g,icon:K.m08,title:"My Profile",confirmText:"Save",skipCloseOnConfirm:!0,closable:!0})]})}),eE=r(85330),eA=Z.ZP.div(d||(d=(0,$.Z)(["\n font-size: 1.2rem;\n display: flex;\n\n & > div:first-child {\n color: red;\n font-size: 2rem;\n width: 120px;\n }\n\n & > div:nth-child(2) {\n & > p:first-child {\n color: red;\n font-weight: bold;\n }\n }\n"]))),eC="gold-notification",eP=function(){var e,t,r=(0,j.useContext)(tA)||{},n=r.user,i=r.session,a=(e=(0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!i||!n)){e.next=2;break}return e.abrupt("return");case 2:!i.isAdmin&&!n.hasReadGoldNotification&&null!==(t=n.integrations)&&void 0!==t&&t.find(function(e){return"gold"!==e.serviceType})&&(window.location.hash=eC);case 3:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});(0,j.useEffect)(function(){i&&n&&a()},[n]);var o=(t=(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.ck)({hasReadGoldNotification:!0});case 2:window.location.hash="#";case 3:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),s=(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(eA,{children:[(0,et.jsx)("div",{children:(0,et.jsx)(V.G,{icon:K.RLE,size:"lg"})}),(0,et.jsxs)("div",{children:[(0,et.jsx)("p",{children:"At this time, the Silver realms are being retired on Jan. 30 2023*. Projects on these realms will no longer be supported by the SSO team."}),(0,et.jsxs)("p",{children:["Please complete a ",(0,et.jsx)("span",{className:"strong",children:"Change Impact Assessment"}),", for each of your projects in the Silver realms."]})]})]}),(0,et.jsx)("div",{className:"text-center",children:(0,et.jsx)(eE.zx,{variant:"primary",type:"button",onClick:function(){return window.open("https://docs.google.com/forms/d/1MMPeMB0A2076xkXIZRaErAwZe9QDsSwSAWqe-uvm3ys","_blank")},children:"Complete Change Impact Assessment"})})]});return(0,et.jsx)(et.Fragment,{children:(0,et.jsx)(ev.Z,{id:eC,content:s,showCancel:!1,showConfirm:!1,onClose:o,icon:K.RLE,title:"Please upgrade from Silver to Gold",closable:!0})})},eO=r(90352),ek=Z.ZP.span(h||(h=(0,$.Z)(["\n font-weight: 600;\n font-size: 1.3em;\n display: flex;\n align-items: end;\n"]))),e_=Z.ZP.div(p||(p=(0,$.Z)(["\n padding: 1rem 0;\n min-height: calc(100vh - ",");\n"])),"152px"),eF=Z.ZP.ul(m||(m=(0,$.Z)(["\n padding-left: 2rem;\n padding-right: 2rem;\n\n li a {\n display: inline-block !important;\n font-size: unset !important;\n padding: 0 !important;\n border-right: none !important;\n }\n"]))),ej=Z.ZP.div(g||(g=(0,$.Z)(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n padding-left: 2rem;\n padding-right: 2rem;\n"]))),eR=Z.ZP.ul(y||(y=(0,$.Z)(["\n & a {\n font-size: 1rem !important;\n }\n\n & a.current {\n font-weight: bold;\n }\n\n & li.current {\n padding-bottom: 6px;\n border-bottom: none;\n background: linear-gradient(orange, orange) bottom /* left or right or else */ no-repeat;\n background-size: calc(100% - 2rem) 4px;\n }\n"]))),eI=Z.ZP.ul(b||(b=(0,$.Z)(["\n padding-right: 2rem;\n"]))),eT=Z.ZP.div(x||(x=(0,$.Z)(["\n padding-left: 2rem;\n padding-right: 2rem;\n"]))),eD=Z.ZP.li(S||(S=(0,$.Z)(["\n &:hover {\n opacity: 0.8;\n }\n"]))),eN=Z.ZP.div(w||(w=(0,$.Z)(["\n height: 100%;\n"]))),eM=[{path:"/",label:"Home",roles:["guest","user","sso-admin"]},{path:"/terms-conditions",label:"Terms and Conditions",roles:["guest"]},{path:"/my-dashboard",label:"My Dashboard",roles:["user","sso-admin"]},{path:"/admin-dashboard",label:"SSO Dashboard",roles:["sso-admin"]},{path:"/admin-reports",label:"SSO Reports",roles:["sso-admin"]},{path:"/request",label:"Request Details",roles:["user","sso-admin"],hide:!0},{path:"/faq",label:"FAQ",roles:["guest","user","sso-admin"]}],eL=function(e){var t,r=e.session,n=e.currentPath,i=e.query,a=["guest"];r&&(a=(null==r?void 0:null===(t=r.client_roles)||void 0===t?void 0:t.length)>0?r.client_roles:["user"]);var o=function(e){return n===e||n.startsWith("".concat(e,"/"))};return(0,et.jsx)(et.Fragment,{children:eM.filter(function(e){return e.roles.some(function(e){return a.includes(e)})&&(!e.hide||o(e.path))}).map(function(e){return(0,et.jsx)("li",{className:o(e.path)?"current":"",children:(0,et.jsx)(z(),{href:e.path,children:X()(e.label)?e.label(i):e.label})},e.path)})})},eB=function(){return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(ew,{children:function(e,t){return(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"#".concat(e),title:"My Profile",children:(0,et.jsx)(V.G,{size:"2x",icon:K.U6l})})})}}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"https://chat.developer.gov.bc.ca/channel/sso",target:"_blank",title:"Rocket Chat",children:(0,et.jsx)(V.G,{size:"2x",icon:K.Z6I})})}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"Pathfinder SSO",children:(0,et.jsx)(V.G,{size:"2x",icon:K.FU$})})}),(0,et.jsx)(eD,{children:(0,et.jsx)("a",{href:(0,eO.eO)(),target:"_blank",title:"Documentation",children:(0,et.jsx)(V.G,{size:"2x",icon:K.cwv})})})]})},eH=function(e){var t=e.children,r=e.session,n=(e.user,e.onLoginClick),i=e.onLogoutClick,a=(0,R.useRouter)(),o=a.pathname,s=r?(0,et.jsxs)(ek,{children:[(0,et.jsxs)("div",{className:"welcome",children:["Welcome ","".concat(r.given_name," ").concat(r.family_name),"\xa0",(null==r?void 0:r.client_roles)&&(0,et.jsxs)("span",{className:"small",children:["(",Y()(null==r?void 0:r.client_roles[0]),")"]})]}),"\xa0\xa0",(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"medium",onClick:i,children:"Log out"})]}):(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"medium",onClick:n,children:"Log in"});return(0,et.jsxs)(ep.ZP,{children:[(0,et.jsx)(er,{}),(0,et.jsx)(eh,{title:function(){return(0,et.jsx)(eN,{children:"Common Hosted Single Sign-on (CSS)"})},rightSide:s,mobileMenu:function(){return(0,et.jsxs)(eF,{children:[(0,et.jsx)(eL,{session:r,currentPath:o,query:a.query}),(0,et.jsxs)("li",{children:["Need help?\xa0\xa0",(0,et.jsx)("a",{href:"https://chat.developer.gov.bc.ca/",target:"_blank",title:"Rocket Chat",children:(0,et.jsx)(V.G,{size:"2x",icon:K.Z6I})}),"\xa0\xa0",(0,et.jsx)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"SSO Team",children:(0,et.jsx)(V.G,{size:"2x",icon:K.FU$})}),"\xa0\xa0",(0,et.jsx)("a",{href:(0,eO.eO)(),target:"_blank",title:"Wiki",children:(0,et.jsx)(V.G,{size:"2x",icon:K.cwv})})]}),(0,et.jsx)("li",{children:r?(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"small",onClick:i,children:"Logout"}):(0,et.jsx)(W.default,{variant:"secondary-inverse",size:"small",onClick:n,children:"Login with IDIR"})})]})},onBannerClick:console.log,children:(0,et.jsxs)(ej,{children:[(0,et.jsx)(eR,{children:(0,et.jsx)(eL,{session:r,currentPath:o,query:a.query})}),(0,et.jsx)(eI,{children:(0,et.jsx)(eB,{})})]})}),(0,et.jsx)(e_,{children:(0,et.jsx)(ep.bD,{children:t})}),(0,et.jsx)(q.default,{children:(0,et.jsx)(eT,{children:(0,et.jsxs)("ul",{children:[(0,et.jsx)("li",{children:(0,et.jsx)(z(),{href:"/",children:"Home"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/disclaimer",target:"_blank",rel:"noreferrer",children:"Disclaimer"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/privacy",target:"_blank",rel:"noreferrer",children:"Privacy"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/accessible-government",target:"_blank",rel:"noreferrer",children:"Accessibility"})}),(0,et.jsx)("li",{children:(0,et.jsx)("a",{href:"https://www2.gov.bc.ca/gov/content/home/copyright",target:"_blank",rel:"noreferrer",children:"Copyright"})})]})})}),(0,et.jsx)(eP,{})]})},e$=r(31637),eU=r(9008),ez=r.n(eU);r(87266),r(90458);var eV=Object.create,eK=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,eq=Object.getOwnPropertyNames,eZ=Object.getPrototypeOf,eG=Object.prototype.hasOwnProperty,eY=(s=null!=(o=(i=(e,t)=>{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=2*536870912,i=new WeakMap,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:ar)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*r);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(a||i((a={exports:{}}).exports,a),a.exports))())?eV(eZ(o)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of eq(t))eG.call(e,r)||void 0===r||eK(e,r,{get:()=>t[r],enumerable:!(n=eW(t,r))||n.enumerable});return e})(o&&o.__esModule?s:eK(s,"default",{value:o,enumerable:!0}),o)),eJ=e=>void 0!==e.method&&"call"===e.method,eX=e=>null===e.error&&"number"==typeof e.id,eQ=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(eJ(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===a){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(eX(e)){let{id:i}=e,a=n.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:s}=a;n.delete(i),"interval"===s?t.delete(o):r.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,eY.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,eY.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,eY.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,eY.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}};n=null,()=>{if(null!==n)return n;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return n=eQ(t),setTimeout(()=>URL.revokeObjectURL(t)),n};var e0=(typeof window>"u"?"undefined":typeof window)=="object",e1={setTimeout:e0?setTimeout.bind(window):setTimeout,clearTimeout:e0?clearTimeout.bind(window):clearTimeout,setInterval:e0?setInterval.bind(window):setInterval,clearInterval:e0?clearInterval.bind(window):clearInterval},e2={},e4=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,e2[e]=e2[e]||[],e2[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),e1.setTimeout(()=>{window.localStorage.removeItem(r)},500),e2[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=e2[this.name].indexOf(this);e2[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},e3=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:e4;function e6(){return Math.random().toString(36).substring(2)}var e5=class{options;channel;token=e6();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>e1.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{e1.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=e1.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>e1.clearInterval(e))}catch{}}}},e8=class{channel;options;elector;token=e6();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new e3(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new e5(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},e9=e0?document:null,e7=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function te(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();(0,j.createContext)(null).Consumer;var tr=r(30233),tn=r(31513),ti=r(63055),ta=r(30996);function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t0){e.next=3;break}return e.abrupt("return",m("Please select a rating."));case 3:o&&(0,B.xc)({triggerEvent:o,message:f,rating:u.filter(function(e){return e.selected}).length}),n(!1),r(!1);case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),b="".concat(i?"open":"closed"," ").concat(!a&&"hidden");return(0,et.jsx)(tc,{children:(0,et.jsxs)(tl,{className:b,children:[(0,et.jsxs)("div",{className:"header",onClick:function(){r(!i)},children:[(0,et.jsx)("p",{children:"We'd love to hear from you"}),(0,et.jsx)(V.G,{icon:i?K.Qbq:K.K96})]}),(0,et.jsxs)("div",{className:"body",children:[(0,et.jsx)("p",{className:"title",children:(0,et.jsx)("strong",{children:"Rate our service"})}),(0,et.jsx)("p",{children:"How was your experience with the CSS app?"}),(0,et.jsxs)(tf,{children:[(0,et.jsx)("div",{className:"stars-box",children:u.map(function(e,t){return(0,et.jsx)(V.G,{style:{cursor:"pointer"},role:"button",size:"3x",icon:K.Tab,color:e.selected?"gold":"grey",onClick:function(){return g(t)}},e.id)})}),(0,et.jsxs)("div",{className:"stars-text",children:[(0,et.jsx)("span",{children:"Bad"}),(0,et.jsx)("span",{children:"Great"})]})]}),(0,et.jsx)(ta.default,{fullWidth:!0,placeholder:"Leave a message...",rows:4,value:f,onChange:function(e){m(""),e.target.value.length<=700?d(e.target.value):m("Messages are at most ".concat(700," characters."))}}),p&&(0,et.jsx)("p",{className:"error-message",children:p}),(0,et.jsxs)("div",{className:"button-container",children:[(0,et.jsx)(W.default,{variant:"secondary",onClick:function(){return n(!1)},children:"Close"}),(0,et.jsx)(W.default,{onClick:y,children:"Rate now"})]})]})]})})};function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t{},onPrompt:u=()=>{},onIdle:c=()=>{},onActive:l=()=>{},onAction:f=()=>{},onMessage:d=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:b=!1,crossTab:x=!1,name:S="idle-timer",syncTimers:w=0,leaderElection:E=!1,disabled:A=!1}={}){let C=(0,j.useRef)(tt()),P=(0,j.useRef)(tt()),O=(0,j.useRef)(null),k=(0,j.useRef)(null),_=(0,j.useRef)(0),F=(0,j.useRef)(0),R=(0,j.useRef)(0),I=(0,j.useRef)(0),T=(0,j.useRef)(!1),D=(0,j.useRef)(!1),N=(0,j.useRef)(!1),M=(0,j.useRef)(!0),L=(0,j.useRef)(!1),B=(0,j.useRef)(null),H=(0,j.useRef)(null),$=(0,j.useRef)(e),U=(0,j.useRef)(0);(0,j.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?($.current=e-r,U.current=r):($.current=e,U.current=t),!M.current){if(y||A)return;T.current&&(J.current(null,eR),H.current&&H.current.active()),ed()}},[e,t,r,y,A]);let z=(0,j.useRef)(b);(0,j.useEffect)(()=>{z.current=b},[b]);let V=(0,j.useRef)(o),K=(0,j.useRef)(n),W=(0,j.useRef)([...new Set([...i,...o]).values()]),q=(0,j.useRef)(A);(0,j.useEffect)(()=>{q.current=A,!M.current&&(A?em():y||ed())},[A]);let Z=(0,j.useRef)(s);(0,j.useEffect)(()=>{Z.current=s},[s]);let G=(0,j.useRef)(u);(0,j.useEffect)(()=>{G.current=u},[u]);let Y=(0,j.useRef)(c);(0,j.useEffect)(()=>{Y.current=c},[c]);let J=(0,j.useRef)(l);(0,j.useEffect)(()=>{J.current=l},[l]);let X=(0,j.useRef)(f);(0,j.useEffect)(()=>{X.current=f},[f]);let Q=(0,j.useRef)(d);(0,j.useEffect)(()=>{Q.current=d},[d]);let ee=(0,j.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,h):p>0?te(e,p):e},[p,h]),et=(0,j.useRef)();(0,j.useEffect)(()=>{x&&w&&(et.current=te(()=>{H.current.active()},w))},[x,w]);let er=()=>{null!==B.current&&(e1.clearTimeout(B.current),B.current=null)},en=(e,t=!0)=>{er(),B.current=e1.setTimeout(es,e||$.current),t&&(k.current=tt())},ei=e=>{D.current||T.current||(G.current(e,eR),Z.current({type:"active",prompted:!0},eR)),I.current=0,R.current=tt(),D.current=!0,en(U.current,!1)},ea=()=>{er(),T.current||(Y.current(null,eR),Z.current({type:"idle"},eR)),T.current=!0,O.current=tt(),z.current?ef():D.current&&(R.current=0,D.current=!1)},eo=e=>{er(),(T.current||D.current)&&(J.current(e,eR),Z.current({type:"active",prompted:!1},eR)),D.current=!1,R.current=0,T.current=!1,_.current+=tt()-O.current,F.current+=tt()-O.current,el(),en()},es=e=>{if(!T.current){ee.cancel&&ee.cancel();let t=tt()-k.current;if(!($.current+U.current0&&!D.current){H.current?H.current.prompt():ei(e);return}H.current?H.current.idle():ea();return}H.current?H.current.active():eo(e)},eu=e=>{if(g||k.current||(k.current=tt(),J.current(null,eR)),ee(e,eR),D.current)return;if(er(),!T.current&&V.current.includes(e.type)){es(e);return}let t=tt()-k.current;if(T.current&&!b||!T.current&&t>=$.current){es(e);return}N.current=!1,I.current=0,R.current=0,en(),x&&w&&et.current()},ec=(0,j.useRef)(eu);(0,j.useEffect)(()=>{let e=L.current;e&&ef(),m>0?ec.current=te(eu,m):ec.current=eu,e&&el()},[m,p,h,X,x,w]);let el=()=>{e0&&K.current&&(L.current||(W.current.forEach(e=>{K.current.addEventListener(e,ec.current,{capture:!0,passive:!0})}),L.current=!0))},ef=(e=!1)=>{e0&&K.current&&(L.current||e)&&(W.current.forEach(e=>{K.current.removeEventListener(e,ec.current,{capture:!0})}),L.current=!1)},ed=(0,j.useCallback)(e=>!q.current&&(er(),el(),T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,H.current&&!e&&H.current.start(),en(),!0),[B,T,q,$,H]),eh=(0,j.useCallback)(e=>!q.current&&(er(),el(),P.current=tt(),_.current+=tt()-O.current,F.current+=tt()-O.current,_.current=0,T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,H.current&&!e&&H.current.reset(),y||en(),!0),[B,T,$,y,q,H]),ep=(0,j.useCallback)(e=>!q.current&&(er(),el(),(T.current||D.current)&&eo(),T.current=!1,D.current=!1,N.current=!1,I.current=0,R.current=0,P.current=tt(),H.current&&!e&&H.current.activate(),en(),!0),[B,T,D,q,$,H]),em=(0,j.useCallback)((e=!1)=>!q.current&&!N.current&&(I.current=eE(),N.current=!0,ef(),er(),H.current&&!e&&H.current.pause(),!0),[B,q,H]),ev=(0,j.useCallback)((e=!1)=>!q.current&&!!N.current&&(N.current=!1,D.current||el(),T.current||en(I.current),R.current&&(R.current=tt()),H.current&&!e&&H.current.resume(),!0),[B,$,q,I,H]),eg=(0,j.useCallback)((e,t)=>(H.current?(t&&Q.current(e,eR),H.current.message(e)):t&&Q.current(e,eR),!0),[d]),ey=(0,j.useCallback)(()=>T.current,[T]),eb=(0,j.useCallback)(()=>D.current,[D]),ex=(0,j.useCallback)(()=>H.current?H.current.isLeader:null,[H]),eS=(0,j.useCallback)(()=>H.current?H.current.isLastActive:null,[H]),ew=(0,j.useCallback)(()=>H.current?H.current.token:null,[H]),eE=(0,j.useCallback)(()=>{if(N.current)return I.current;let e=Math.floor((I.current?I.current:U.current+$.current)-(k.current?tt()-k.current:0));return e<0?0:Math.abs(e)},[$,U,D,I,k]),eA=(0,j.useCallback)(()=>Math.round(tt()-P.current),[P]),eC=(0,j.useCallback)(()=>Math.round(tt()-C.current),[C]),eP=(0,j.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,j.useCallback)(()=>k.current?new Date(k.current):null,[k]),ek=(0,j.useCallback)(()=>T.current?Math.round(tt()-O.current+_.current):Math.round(_.current),[O,_]),e_=(0,j.useCallback)(()=>T.current?Math.round(tt()-O.current+F.current):Math.round(F.current),[O,F]),eF=(0,j.useCallback)(()=>{let e=Math.round(eA()-ek());return e>=0?e:0},[O,_]),ej=(0,j.useCallback)(()=>{let e=Math.round(eC()-e_());return e>=0?e:0},[O,_]);(0,j.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(e1.setTimeout=a.setTimeout,e1.clearTimeout=a.clearTimeout,e1.setInterval=a.setInterval,e1.clearInterval=a.clearInterval);let e=()=>{H.current&&H.current.close(),ee.cancel&&ee.cancel(),er(),ef(!0)};return e0&&window.addEventListener("beforeunload",e),()=>{e0&&window.removeEventListener("beforeunload",e),H.current&&H.current.close(),ee.cancel&&ee.cancel(),er(),ef(!0)}},[]),(0,j.useEffect)(()=>{H.current&&H.current.close(),x?H.current=new e8({channelName:S,leaderElection:E,onPrompt:()=>{ei()},onIdle:()=>{ea()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eR)},start:ed,reset:eh,activate:ep,pause:em,resume:ev}):H.current=null},[x,S,E,G,Y,J,Q,ed,eh,em,ev]),(0,j.useEffect)(()=>{M.current||(er(),ef(!0)),y||A||(g?ed():el())},[y,g,A,M]),(0,j.useEffect)(()=>{if(!M.current){let e=[...new Set([...i,...o]).values()];ef(),W.current=e,K.current=n,V.current=o,y||A||(g?ed():el())}},[n,JSON.stringify(i),JSON.stringify(o),M,A,y,g]),(0,j.useEffect)(()=>{M.current&&(M.current=!1)},[M]);let eR={message:eg,start:ed,reset:eh,activate:ep,pause:em,resume:ev,isIdle:ey,isPrompted:eb,isLeader:ex,isLastActiveTab:eS,getTabId:ew,getRemainingTime:eE,getElapsedTime:eA,getTotalElapsedTime:eC,getLastIdleTime:eP,getLastActiveTime:eO,getIdleTime:ek,getTotalIdleTime:e_,getActiveTime:eF,getTotalActiveTime:ej,setOnPresenceChange:e=>{s=e,Z.current=e},setOnPrompt:e=>{u=e,G.current=e},setOnIdle:e=>{c=e,Y.current=e},setOnActive:e=>{l=e,J.current=e},setOnAction:e=>{f=e,X.current=e},setOnMessage:e=>{d=e,Q.current=e}}}({onPrompt:function(){"expired"!==S&&o.current.open()},timeout:3e5,promptBeforeIdle:1e4,throttle:500,disabled:null===l}),(0,j.useEffect)(function(){function e(e,r){return t.apply(this,arguments)}function t(){return(t=(0,k.Z)(F().mark(function e(t,r){var n,i,a,o;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.W)(t.id_token);case 2:if(n=e.sent,a=(i=(0,P.Z)(n,2))[0],o=i[1],!a){e.next=14;break}if(!r){e.next=11;break}return(0,H.d0)(t),e.next=11,u.push("/my-dashboard");case 11:f(tw(a)),e.next=17;break;case 14:(0,H.Zz)(),f(tw(null)),r&&u.push({pathname:"/application-error",query:{error:o}});case 17:y(!1);case 18:case"end":return e.stop()}},e)}))).apply(this,arguments)}function r(){return(r=(0,k.Z)(F().mark(function t(){var r,n,i,a,o;return F().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return y(!0),t.prev=1,t.next=4,(0,D.M)();case 4:if(n=(r=(0,N.rg)()).code,i=r.state,!n){t.next=13;break}return t.next=8,(0,N.hP)({code:n,state:i});case 8:return a=t.sent,t.next=11,e(a,!0);case 11:t.next=16;break;case 13:return o=(0,H.lz)(),t.next=16,e(o,!1);case 16:t.next=25;break;case 18:t.prev=18,t.t0=t.catch(1),console.log(t.t0),(0,H.Zz)(),f(tw(null)),y(!1),b(t.t0);case 25:case"end":return t.stop()}},t,null,[[1,18]])}))).apply(this,arguments)}console.log("app started..."),tx&&"true"===tx&&u.push({pathname:"/application-error",query:{error:"maintenance"}}),(0,L.Nu)(),function(){r.apply(this,arguments)}()},[]),(0,j.useEffect)(function(){var e,t=(e=(0,k.Z)(F().mark(function e(){var t,r,n;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:t=e.sent,n=(r=(0,P.Z)(t,2))[0],r[1],p(n);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});l&&t()},[l]),(0,j.useEffect)(function(){if(l){var e=setInterval((0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,tn.QE)((0,H.lz)().refresh_token),Date.now()>=(null==t?void 0:t.exp)*1e3?(w("expired"),o.current.close(),s.current.open()):w("");case 2:case"end":return e.stop()}},e)})),5e3);return function(){clearInterval(e)}}});var W=(r=(0,k.Z)(F().mark(function e(){var t;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.iq)({kc_idp_hint:tb});case 2:t=e.sent,window.location.href=t;case 4:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),q=(n=(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(0,H.Zz)(),window.location.href=(0,N.kG)();case 2:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),Z=(0,j.useMemo)(function(){return{setShowSurvey:V}},[h]);return g?(0,et.jsx)(e$.Z,{}):tS.some(function(e){return window.location.pathname.startsWith(e)})&&!l?(u.push("/"),null):(0,et.jsx)(tA.Provider,{value:{session:l,user:h},children:(0,et.jsx)(tC.Provider,{value:Z,children:tx&&"true"===tx?(0,et.jsx)(i,tm({},a)):(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(eH,{session:l,user:h,onLoginClick:W,onLogoutClick:q,children:[(0,et.jsxs)(ez(),{children:[(0,et.jsx)("html",{lang:"en"}),(0,et.jsx)("title",{children:"Common Hosted Single Sign-on (CSS)"}),(0,et.jsx)("link",{rel:"icon",href:"/bootstrap-theme/dist/images/bcid-favicon-32x32.png"})]}),(0,et.jsx)(i,tm(tm({},a),{},{session:l,onLoginClick:W,onLogoutClick:q}))]}),(0,et.jsx)(tr.Z,{ref:o,style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},title:"Session expiring",icon:K.eHv,onConfirm:(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),onCancel:function(){q()},confirmButtonText:"Confirm",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",showConfirmButton:!0,showCancelButton:!0,children:(0,et.jsxs)("div",{children:[(0,et.jsx)("div",{children:"Your session will expire soon and you will be signed out automatically."}),(0,et.jsx)("br",{}),(0,et.jsx)("div",{children:"Do you want to stay signed in?"})," "]})}),(0,et.jsx)(tr.Z,{ref:s,style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},title:"Session expired",icon:K.eHv,onConfirm:function(){return W()},onCancel:(0,k.Z)(F().mark(function e(){return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.Ai)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),confirmButtonText:"Login",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",showConfirmButton:!0,showCancelButton:!0,children:(0,et.jsxs)("div",{children:[(0,et.jsx)("div",{children:"Your session has expired."}),(0,et.jsx)("br",{}),(0,et.jsx)("div",{children:"Please login again."})," "]})}),h&&(0,et.jsx)(th,{setOpenSurvey:z,open:U,display:I,setDisplaySurvey:T,triggerEvent:A})]})})})}},64730:function(e,t,r){"use strict";r.d(t,{Ek:function(){return y},Nu:function(){return b}});var n,i,a,o=r(16835),s=r(50029),u=r(87794),c=r.n(u),l=r(21963),f=r(54494),d=r(88757),h=r(84595),p=r(11752),m=(r.n(p)()()||{}).publicRuntimeConfig,g=(void 0===m?{}:m).base_path,y=(n=(0,s.Z)(c().mark(function e(){var t;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w();case 2:return t=(0,f.lz)(),e.abrupt("return","Bearer ".concat(t.id_token));case 4:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});function b(){return x.apply(this,arguments)}function x(){return(x=(0,s.Z)(c().mark(function e(){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",l.e.get("heartbeat",{headers:{skipAuth:!0}}).then(function(e){return e.data}));case 4:return e.prev=4,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",null);case 8:case"end":return e.stop()}},e,null,[[0,4]])}))).apply(this,arguments)}var S=(i=(0,s.Z)(c().mark(function e(t){var r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.dx)({refreshToken:t.refresh_token});case 2:return r=e.sent,e.next=5,(0,h.W)(null==r?void 0:r.id_token);case 5:n=e.sent,(0,o.Z)(n,1)[0]?(0,f.d0)(r):((0,f.Zz)(),console.error("failed to refresh the token"),window.location.href="".concat(g));case 9:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}),w=(a=(0,s.Z)(c().mark(function e(){var t,r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,f.lz)(),e.next=3,(0,h.W)(t.id_token);case 3:r=e.sent,(n=(0,o.Z)(r,1)[0])?1e3*n.exp-Date.now()<12e4&&S(t):S(t);case 7:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},21963:function(e,t,r){"use strict";r.d(t,{e:function(){return x},z:function(){return S}});var n,i=r(59499),a=r(50029),o=r(87794),s=r.n(o),u=r(11752),c=r.n(u),l=r(9669),f=r.n(l),d=r(64730),h=r(11163),p=r.n(h);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t0?i:null,a=a.length>0?a:null;var o=t.map(function(e){return e.value});return[a,i,o=o.length>0?o:null]},g=function(e){var t=e.bceidApproved,r=e.githubApproved,n=e.digitalCredentialApproved,i=e.environments,a=void 0===i?[]:i,o=e.serviceType,s=(0,f.Jx)(e),u=(0,f.dV)(e),l=(0,f.S3)(e),d=c.TJ.map(function(t){var r=e.devIdps;return p(p({},t),{},{idps:r||[]})});if("gold"===o){var h=j(e),m=R(e),g=I(e),y=d.filter(function(e){return a.includes(e.name)});return s&&(!t||h)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.JK)),e})),u&&(!r||m)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.Qf)),e})),l&&(!n||g)&&(y=y.map(function(e){return"prod"===e.name&&(e.idps=e.idps.filter(f.DK)),e})),y}var b=a.concat()||[];return s&&!t&&(b=b.filter(function(e){return"prod"!==e})),d.filter(function(e){return b.includes(e.name)})},y=function(e){return e?JSON.parse(decodeURIComponent(Array.from(atob(e.replace(/-/g,"+").replace(/_/g,"/"))).reduce(function(e,t){var r=("00"+t.charCodeAt(0).toString(16)).slice(-2);return"".concat(e,"%").concat(r)},""))):null},b=function(e){if(!e)return null;var t=e.split(".");return y((0,a.Z)(t,2)[1])},x=function(e){if(!e)return null;var t=e.split(".");return y((0,a.Z)(t,1)[0])},S=function(){var e=new Uint32Array(28);crypto.getRandomValues(e);var t=[];return e.forEach(function(e){return t.push("0".concat(e.toString(16).substr(-2)))}),t.reduce(function(e,t){return"".concat(e).concat(t)},"")},w=(n=(0,i.Z)(u().mark(function e(t){var r;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new TextEncoder().encode(t),e.abrupt("return",crypto.subtle.digest("SHA-256",r));case 4:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),E=function(e){return btoa(new Uint8Array(e).reduce(function(e,t){return"".concat(e).concat(String.fromCharCode(t))},"")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},A=function(e){var t;return e.devValidRedirectUris&&0!==e.devValidRedirectUris.length||(e.devValidRedirectUris=[""]),e.testValidRedirectUris&&0!==e.testValidRedirectUris.length||(e.testValidRedirectUris=[""]),e.prodValidRedirectUris&&0!==e.prodValidRedirectUris.length||(e.prodValidRedirectUris=[""]),e.teamId?e.teamId=String(e.teamId):e.usesTeam=!1,Object.entries(t=e).forEach(function(e){var r=(0,a.Z)(e,2),n=r[0];null===r[1]&&delete t[n]}),t},C=function(e){return e.map(function(e){if(Object.keys(c.Qj).map(function(e){return".".concat(e)}).includes(e.property)){var t=e.property.slice(1);e.message=c.Qj[t]||e.message}else(e.property.includes("ValidRedirectUris")||e.property.includes("SamlLogoutPostBindingUri"))&&("should be string"===e.message?e.message="":e.message=c.Qj.redirectUris);return e})},P=function(e){if(!e||0===e.length)return(0,d.jsx)("div",{children:"No changes"});var t=e.map(function(e){var t=e.kind,r=e.lhs,n=e.rhs,i=e.path,a=e.item,o=i[0];switch(t){case"E":return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Edited ",o,": "]}),"Changed ",(0,d.jsx)("code",{children:String(r)})," to ",(0,d.jsx)("code",{children:String(n)})]});case"A":if((null==a?void 0:a.kind)==="D")return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Deleted ",(0,d.jsxs)("code",{children:[" ",null==a?void 0:a.lhs]})]});if((null==a?void 0:a.kind)==="N")return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Added ",(0,d.jsx)("code",{children:null==a?void 0:a.rhs})]});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Changed Array ",o,": "]}),"Edited"," ",(0,d.jsxs)("code",{children:[null==a?void 0:a.lhs," to ",null==a?void 0:a.rhs]})]});case"N":return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("strong",{children:["Added ",o,": "]}),(0,d.jsx)("code",{children:a})]});case"D":return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("strong",{children:["Deleted ",o," "]})});default:return(0,d.jsx)("code",{children:JSON.stringify(e,null,2)})}});return(0,d.jsx)("ul",{children:t.map(function(e,t){return(0,d.jsx)("li",{children:e},t)})})},O=function(e){return e.some(function(e){return["submitted","pr","prFailed","planned","planFailed","approved","applyFailed"].includes(e.status||"")})};function k(e,t){if(1===e.length)return!1;var r=e.find(function(e){return e.id===t});return 1!==e.filter(function(e){return"admin"===e.role}).length||(null==r?void 0:r.role)!=="admin"}var _=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},F=function(e,t){return"Submitted"===(0,l.n)(e.status||"draft")&&!!e.lastChanges&&0!==e.lastChanges.length&&e.lastChanges.some(function(e){return e.path[0]===t&&!1===e.lhs&&!0===e.rhs})},j=function(e){return F(e,"bceidApproved")},R=function(e){return F(e,"githubApproved")},I=function(e){return F(e,"digitalCredentialApproved")},T=function(e){var t=new Date;return t.setDate(t.getDate()-e),t}},84595:function(e,t,r){"use strict";r.d(t,{W:function(){return p}});var n,i=r(50029),a=r(87794),o=r.n(a),s=r(31166),u=r(11752),c=r.n(u),l=r(16689),f=r(31513),d=(c()()||{}).publicRuntimeConfig,h=(void 0===d?{}:d).sso_client_id,p=(n=(0,i.Z)(o().mark(function e(t){var r,n,i,a,u;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[,"e02"]);case 2:if(r=l.$.keys,n=(0,f.ob)(t),void 0!==(i=null==r?void 0:r.find(function(e){return e.kid===n.kid}))){e.next=8;break}return console.error("public key not found in JWK jwks.json"),e.abrupt("return",[,"e02"]);case 8:if(a=(0,f.QE)(t),!(Date.now()>=1e3*a.exp)){e.next=12;break}return console.log("token has expired"),e.abrupt("return",[,"e02"]);case 12:if(u=s.KZ.getKey(i),s.fs.jws.JWS.verifyJWT(t,u,{alg:["RS256"],gracePeriod:28800})){e.next=17;break}return console.error("signature verification failed"),e.abrupt("return",[,"e02"]);case 17:if(!(0!==a.aud.localeCompare(h))){e.next=21;break}return console.error("token was not issued for this audience"),e.abrupt("return",[,"e02"]);case 21:if(["idir","azureidir"].includes(a.identity_provider)){e.next=24;break}return console.error("invalid identity provider ".concat(a.identity_provider)),e.abrupt("return",[,"e03"]);case 24:if(!(!a.idir_user_guid||!a.email)){e.next=27;break}return console.error("invalid user account"),e.abrupt("return",[,"e03"]);case 27:return e.abrupt("return",[a]);case 28:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},88757:function(e,t,r){"use strict";r.d(t,{dx:function(){return j},hP:function(){return _},iq:function(){return k},kG:function(){return F},rg:function(){return R}});var n,i,a,o=r(59499),s=r(50029),u=r(87794),c=r.n(u),l=r(9669),f=r.n(l),d=r(80129),h=r.n(d),p=r(11752),m=r.n(p),g=r(16689),y=r(31513);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var x=(m()()||{}).publicRuntimeConfig,S=void 0===x?{}:x,w=S.sso_client_id,E=S.sso_authorization_scope,A=S.sso_authorization_response_mode,C=S.sso_authorization_response_type,P=S.sso_redirect_uri,O=S.sso_token_grant_type,k=(n=(0,s.Z)(c().mark(function e(t){var r,n,i,a,s,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,y.zO)(),n=(0,y.zO)(),sessionStorage.setItem("oauth_state",r),sessionStorage.setItem("oidc_nonce",n),i=(0,y.zO)(),sessionStorage.setItem("code_verifier",i),e.next=8,(0,y.qu)(i);case 8:return a=e.sent,s=(0,y.z9)(a),sessionStorage.setItem("code_challenge",s),u=function(e){for(var t=1;tf&&t[r].addError("Must be ".concat(f/60," minutes or fewer."))}},Z=function(e,r){return function(){e>d&&t[r].addError("Must be ".concat(d/60," minutes or fewer."))}},G={projectName:function(){/^\d/.test(i)&&t.projectName.addError("Please have your project name start with a letter")},authType:function(){"browser-login"!==K&&W&&t.authType.addError("Ensure your access is confidential when using a service account.")},devSessionIdleTimeout:q(B,"devSessionIdleTimeout"),testSessionIdleTimeout:q(H,"testSessionIdleTimeout"),prodSessionIdleTimeout:q($,"prodSessionIdleTimeout"),devSessionMaxLifespan:Z(U,"devSessionMaxLifespan"),testSessionMaxLifespan:Z(z,"testSessionMaxLifespan"),prodSessionMaxLifespan:Z(V,"prodSessionMaxLifespan"),devValidRedirectUris:function(){h.every(u)||p(h,t,"devValidRedirectUris",u)},testValidRedirectUris:function(){S.includes("test")&&!g.every(u)&&p(g,t,"testValidRedirectUris",u)},prodValidRedirectUris:function(){S.includes("prod")&&!b.every(c)&&p(b,t,"prodValidRedirectUris",c)},createTeam:function(){if(w&&(!E||""==E)){var e;null===(e=t.createTeam)||void 0===e||e.addError("Please select or create a team")}},additionalRoleAttribute:function(){a.hL.includes(C.trim())&&t.additionalRoleAttribute.addError("Please use a different name as existing claim '".concat(C.trim(),"' cannot be overwritten"))},devSamlLogoutPostBindingUri:function(){""===O||null===O||u(O)||t.devSamlLogoutPostBindingUri.addError(l)},testSamlLogoutPostBindingUri:function(){""===_||null===_||u(_)||t.testSamlLogoutPostBindingUri.addError(l)},prodSamlLogoutPostBindingUri:function(){""===j||null===j||c(j)||t.prodSamlLogoutPostBindingUri.addError(l)},clientId:function(){""!==I&&null!==I&&(I!==I.trim()||I.match(/\s/))&&t.clientId.addError("Client id is not valid")},devIdps:function(){"saml"===M&&D.length>1&&t.devIdps.addError("Only one identity provider is allowed for saml integrations"),"saml"===M&&(0,o.S3)(e)&&t.devIdps.addError("Digital Credential is not allowed for saml integrations")},projectLead:function(){!1===w&&!1===L&&t.projectLead.addError("")}};r||(r=Object.keys(G));for(var Y=0;Y0,u=i()(e,t,s?(o=t.customValidation,function(e,t){return h(e,t,o)}):void 0).errors;u.length>0&&(n[a]=u)}}),n}},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(24444)}])},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=u(e),o=a[0],s=a[1],c=new i((o+s)*3/4-s),l=0,f=s>0?o-4:o;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/_next/static/chunks/pages/admin-dashboard-1a672be3f3746797.js b/_next/static/chunks/pages/admin-dashboard-1a672be3f3746797.js new file mode 100644 index 0000000..0ce9acd --- /dev/null +++ b/_next/static/chunks/pages/admin-dashboard-1a672be3f3746797.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[897],{83333:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i=n(71383);n(67294);var a=n(71893),s=n(31513),o=n(85893),l=a.ZP.div(r||(r=(0,i.Z)(["\n margin-top: 20px;\n max-height: calc(100vh - 250px);\n overflow: auto;\n"])));function c(e){var t=e.events;return(0,o.jsx)(l,{children:t&&0!==t.length?t.map(function(e){var t;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Event Code: "}),e.eventCode]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created Time: "}),(t=e.createdAt,new Date(t).toLocaleString())]}),e.idirUserDisplayName&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created By: "}),e.idirUserDisplayName]})}),e.details&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("strong",{children:"Details"})}),"request-update-success"===e.eventCode?(0,o.jsxs)(o.Fragment,{children:[(0,s.Sx)(e.details.changes),(0,o.jsx)("strong",{children:"Comment: "}),(0,o.jsx)("p",{children:e.details.comment})]}):(0,o.jsx)("pre",{children:(0,o.jsx)("code",{children:JSON.stringify(e.details||{},void 0,2)})})]}),(0,o.jsx)("hr",{})]},e.id)}):(0,o.jsx)("div",{children:"No events found"})})}},19344:function(e,t,n){"use strict";var r,i,a,s=n(71383),o=n(71893),l=n(77740),c=n(63005),u=n(85893),d=o.ZP.table(r||(r=(0,s.Z)(["\n font-size: unset;\n & tr {\n display: flex;\n margin-bottom: 5px;\n & > td {\n border: none;\n padding: 0 5px 0 0;\n }\n }\n"]))),p=o.ZP.span(i||(i=(0,s.Z)(["\n font-weight: 600;\n"]))),v=o.ZP.ul(a||(a=(0,s.Z)(["\n list-style: none;\n margin: 0;\n & li {\n margin: 0;\n }\n"]))),h=function(e){var t=e.list,n=e.title,r=e.inline,i=void 0!==r&&r,a=e.testid;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:n}),((null==t?void 0:t.length)===1||i)&&(0,u.jsx)(p,{"data-testid":a,children:null==t?void 0:t.map(function(e,n){return(0,u.jsxs)("span",{children:[e,n!==t.length-1&&", "," "]},e)})})]}),!i&&((null==t?void 0:t.length)||0)>1&&(0,u.jsx)("tr",{children:(0,u.jsx)("td",{children:(0,u.jsx)(p,{children:(0,u.jsx)(v,{children:null==t?void 0:t.map(function(e){return(0,u.jsx)("li",{children:e},e)})})})})})]})};t.Z=function(e){var t,n,r,i,a,s,o,v,f=e.children,x=e.request,b=e.teams;if(!x)return null;var m=null!==(i=x.devIdps)&&void 0!==i?i:[],j="saml"!==x.protocol,g=m.map(function(e){return c.S[e]}),w="";x.usesTeam&&(w=(null===(v=(void 0===b?[]:b).find(function(e){return String(e.id)===String(x.teamId)}))||void 0===v?void 0:v.name)||x.team&&x.team.name);var S=(t=x.primaryEndUsers,n=x.primaryEndUsersOther,null==t?void 0:t.map(function(e){switch(e){case"livingInBC":return"People living in BC";case"businessInBC":return"People doing business/travel in BC";case"bcGovEmployees":return"BC Gov Employees";case"other":return"Other: ".concat(null!=n?n:"");default:return""}}));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(d,{children:(0,u.jsxs)("tbody",{children:[w?(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Associated Team:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"associated-team",children:w})})]}):(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Are you accountable for this project?"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"you-accountable",children:void 0===(r=x.projectLead)?"":r?"Yes":"No"})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Client Protocol:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"client-protocol",children:j?"OpenID Connect":"SAML"})})]}),j&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Client Type:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"client-type-team",children:x.publicAccess?"Public":"Confidential"})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Usecase:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"use-case",children:l.F[x.authType||"browser-login"]})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Project Name:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"project-name",children:x.projectName})})]}),S&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Primary End Users:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"project-name",children:S.join(", ")})})]}),x.additionalRoleAttribute&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Additional Role Attribute:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"add-role-attrib",children:x.additionalRoleAttribute})})]}),(0,u.jsx)(h,{list:g,title:"Identity Providers Required:",inline:!0,testid:"idp-required"}),(null===(a=x.environments)||void 0===a?void 0:a.includes("dev"))&&(0,u.jsx)(h,{list:x.devValidRedirectUris,title:"Dev Redirect URIs:",testid:"dev-uri"}),(null===(s=x.environments)||void 0===s?void 0:s.includes("test"))&&(0,u.jsx)(h,{list:x.testValidRedirectUris,title:"Test Redirect URIs:",testid:"test-uri"}),(null===(o=x.environments)||void 0===o?void 0:o.includes("prod"))&&(0,u.jsx)(h,{list:x.prodValidRedirectUris,title:"Prod Redirect URIs:",testid:"prod-uri"}),f]})})})}},63005:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r={idir:"IDIR",azureidir:"IDIR - MFA",bceidbasic:"Basic BCeID",bceidbusiness:"Business BCeID",bceidboth:"Basic or Business BCeID",githubbcgov:"GitHub BC Gov",githubpublic:"GitHub",digitalcredential:"Digital Credential"}},77740:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r={"browser-login":"Browser Login","service-account":"Service Account",both:"Browser Login & Service Account"}},80877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eS}});var r,i,a,s,o,l,c=n(16835),u=n(50029),d=n(71383),p=n(87794),v=n.n(p),h=n(67294),f=n(11163),x=n(20070),b=n.n(x),m=n(59417),j=n(53442),g=n(37226),w=n(76691),S=n(61165),y=n(63055),C=n(31513),E=n(71893),P=n(85330),A=n(99154),Z=n(19344),U=n(4826),k=n(23157),O=[{value:"draft",label:"Draft"},{value:"submitted",label:"Submitted"},{value:"planned",label:"Planned"},{value:"planFailed",label:"Plan Failed"},{value:"applied",label:"Applied"},{value:"applyFailed",label:"Apply Failed"}],R=n(85893),I=function(e){var t,n=e.request,r=e.onUpdate,i=(0,h.useState)(n.status),a=i[0],s=i[1],o="edit-metadata",l=(t=(0,u.Z)(v().mark(function e(){return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.Uw)({id:n.id,status:a});case 2:if(!r){e.next=5;break}return e.next=5,r();case 5:window.location.hash="#";case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,h.useEffect)(function(){s(n.status)},[n.id]);var c=(0,R.jsxs)("div",{"data-testid":"integration-status",children:[(0,R.jsx)("p",{style:{fontWeight:"bold"},children:"Integration Status"}),(0,R.jsx)(k.ZP,{className:"react-select-container",classNamePrefix:"select",options:O.filter(function(e){return["draft","submitted"].includes(e.value)}),onChange:function(e){return s(e.value)},isSearchable:!0})]});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(U.default,{variant:"bcPrimary",size:"small",onClick:function(){return window.location.hash=o},children:"Edit Metadata"}),(0,R.jsx)(S.Z,{id:o,content:c,onConfirm:l,icon:m.UJf,title:"Edit Metadata",closable:!0})]})},T=E.ZP.div(r||(r=(0,d.Z)(["\n max-height: calc(100vh - 250px);\n overflow: auto;\n"])));function D(e){var t=e.currentUser,n=e.request,r=e.onUpdate;return n?(0,R.jsxs)(T,{children:[(0,R.jsx)("br",{}),(0,R.jsxs)(Z.Z,{request:n,children:[(0,R.jsx)("br",{}),t.isAdmin&&(0,R.jsx)(I,{request:n,onUpdate:r})]})]}):null}var F=n(59499),_=n(42894),q=n(70300),N=n(76944),B=n(83333);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t=t||n<0||d&&r>=a}function g(){var e,n,r,i=h();if(j(i))return y(i);o=setTimeout(g,(e=i-c,n=i-l,r=t-e,d?f(r,a-n):r))}function y(e){return(o=void 0,p&&r)?m(e):(r=i=void 0,s)}function S(){var e,n=h(),a=j(n);if(r=arguments,i=this,c=n,a){if(void 0===o)return l=e=c,o=setTimeout(g,t),u?m(e):s;if(d)return o=setTimeout(g,t),m(c)}return void 0===o&&(o=setTimeout(g,t)),s}return t=b(t)||0,x(n)&&(u=!!n.leading,a=(d="maxWait"in n)?v(b(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),S.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=c=i=o=void 0},S.flush=function(){return void 0===o?s:y(h())},S}},83333:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(71383);n(67294);var a=n(71893),s=n(31513),o=n(85893),c=a.ZP.div(r||(r=(0,i.Z)(["\n margin-top: 20px;\n max-height: calc(100vh - 250px);\n overflow: auto;\n"])));function l(e){var t=e.events;return(0,o.jsx)(c,{children:t&&0!==t.length?t.map(function(e){var t;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Event Code: "}),e.eventCode]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created Time: "}),(t=e.createdAt,new Date(t).toLocaleString())]}),e.idirUserDisplayName&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created By: "}),e.idirUserDisplayName]})}),e.details&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("strong",{children:"Details"})}),"request-update-success"===e.eventCode?(0,o.jsxs)(o.Fragment,{children:[(0,s.Sx)(e.details.changes),(0,o.jsx)("strong",{children:"Comment: "}),(0,o.jsx)("p",{children:e.details.comment})]}):(0,o.jsx)("pre",{children:(0,o.jsx)("code",{children:JSON.stringify(e.details||{},void 0,2)})})]}),(0,o.jsx)("hr",{})]},e.id)}):(0,o.jsx)("div",{children:"No events found"})})}},19344:function(e,t,n){"use strict";var r,i,a,s=n(71383),o=n(71893),c=n(77740),l=n(63005),u=n(85893),d=o.ZP.table(r||(r=(0,s.Z)(["\n font-size: unset;\n & tr {\n display: flex;\n margin-bottom: 5px;\n & > td {\n border: none;\n padding: 0 5px 0 0;\n }\n }\n"]))),p=o.ZP.span(i||(i=(0,s.Z)(["\n font-weight: 600;\n"]))),v=o.ZP.ul(a||(a=(0,s.Z)(["\n list-style: none;\n margin: 0;\n & li {\n margin: 0;\n }\n"]))),f=function(e){var t=e.list,n=e.title,r=e.inline,i=void 0!==r&&r,a=e.testid;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:n}),((null==t?void 0:t.length)===1||i)&&(0,u.jsx)(p,{"data-testid":a,children:null==t?void 0:t.map(function(e,n){return(0,u.jsxs)("span",{children:[e,n!==t.length-1&&", "," "]},e)})})]}),!i&&((null==t?void 0:t.length)||0)>1&&(0,u.jsx)("tr",{children:(0,u.jsx)("td",{children:(0,u.jsx)(p,{children:(0,u.jsx)(v,{children:null==t?void 0:t.map(function(e){return(0,u.jsx)("li",{children:e},e)})})})})})]})};t.Z=function(e){var t,n,r,i,a,s,o,v,h=e.children,x=e.request,b=e.teams;if(!x)return null;var m=null!==(i=x.devIdps)&&void 0!==i?i:[],j="saml"!==x.protocol,g=m.map(function(e){return l.S[e]}),y="";x.usesTeam&&(y=(null===(v=(void 0===b?[]:b).find(function(e){return String(e.id)===String(x.teamId)}))||void 0===v?void 0:v.name)||x.team&&x.team.name);var S=(t=x.primaryEndUsers,n=x.primaryEndUsersOther,null==t?void 0:t.map(function(e){switch(e){case"livingInBC":return"People living in BC";case"businessInBC":return"People doing business/travel in BC";case"bcGovEmployees":return"BC Gov Employees";case"other":return"Other: ".concat(null!=n?n:"");default:return""}}));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(d,{children:(0,u.jsxs)("tbody",{children:[y?(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Associated Team:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"associated-team",children:y})})]}):(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Are you accountable for this project?"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"you-accountable",children:void 0===(r=x.projectLead)?"":r?"Yes":"No"})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Client Protocol:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"client-protocol",children:j?"OpenID Connect":"SAML"})})]}),j&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Client Type:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"client-type-team",children:x.publicAccess?"Public":"Confidential"})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Usecase:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"use-case",children:c.F[x.authType||"browser-login"]})})]}),(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Project Name:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"project-name",children:x.projectName})})]}),S&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Primary End Users:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"project-name",children:S.join(", ")})})]}),x.additionalRoleAttribute&&(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:"Additional Role Attribute:"}),(0,u.jsx)("td",{children:(0,u.jsx)(p,{"data-testid":"add-role-attrib",children:x.additionalRoleAttribute})})]}),(0,u.jsx)(f,{list:g,title:"Identity Providers Required:",inline:!0,testid:"idp-required"}),(null===(a=x.environments)||void 0===a?void 0:a.includes("dev"))&&(0,u.jsx)(f,{list:x.devValidRedirectUris,title:"Dev Redirect URIs:",testid:"dev-uri"}),(null===(s=x.environments)||void 0===s?void 0:s.includes("test"))&&(0,u.jsx)(f,{list:x.testValidRedirectUris,title:"Test Redirect URIs:",testid:"test-uri"}),(null===(o=x.environments)||void 0===o?void 0:o.includes("prod"))&&(0,u.jsx)(f,{list:x.prodValidRedirectUris,title:"Prod Redirect URIs:",testid:"prod-uri"}),h]})})})}},63005:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r={idir:"IDIR",azureidir:"IDIR - MFA",bceidbasic:"Basic BCeID",bceidbusiness:"Business BCeID",bceidboth:"Basic or Business BCeID",githubbcgov:"GitHub BC Gov",githubpublic:"GitHub",digitalcredential:"Digital Credential"}},77740:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r={"browser-login":"Browser Login","service-account":"Service Account",both:"Browser Login & Service Account"}},80877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eS}});var r,i,a,s,o,c,l=n(16835),u=n(50029),d=n(71383),p=n(87794),v=n.n(p),f=n(67294),h=n(11163),x=n(20070),b=n.n(x),m=n(59417),j=n(53442),g=n(37226),y=n(76691),S=n(61165),w=n(63055),C=n(31513),E=n(71893),P=n(85330),Z=n(99154),A=n(19344),O=n(4826),k=n(23157),U=[{value:"draft",label:"Draft"},{value:"submitted",label:"Submitted"},{value:"planned",label:"Planned"},{value:"planFailed",label:"Plan Failed"},{value:"applied",label:"Applied"},{value:"applyFailed",label:"Apply Failed"}],R=n(85893),T=function(e){var t,n=e.request,r=e.onUpdate,i=(0,f.useState)(n.status),a=i[0],s=i[1],o="edit-metadata",c=(t=(0,u.Z)(v().mark(function e(){return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.Uw)({id:n.id,status:a});case 2:if(!r){e.next=5;break}return e.next=5,r();case 5:window.location.hash="#";case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,f.useEffect)(function(){s(n.status)},[n.id]);var l=(0,R.jsxs)("div",{"data-testid":"integration-status",children:[(0,R.jsx)("p",{style:{fontWeight:"bold"},children:"Integration Status"}),(0,R.jsx)(k.ZP,{className:"react-select-container",classNamePrefix:"select",options:U.filter(function(e){return["draft","submitted"].includes(e.value)}),onChange:function(e){return s(e.value)},isSearchable:!0})]});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(O.default,{variant:"bcPrimary",size:"small",onClick:function(){return window.location.hash=o},children:"Edit Metadata"}),(0,R.jsx)(S.Z,{id:o,content:l,onConfirm:c,icon:m.UJf,title:"Edit Metadata",closable:!0})]})},I=E.ZP.div(r||(r=(0,d.Z)(["\n max-height: calc(100vh - 250px);\n overflow: auto;\n"])));function D(e){var t=e.currentUser,n=e.request,r=e.onUpdate;return n?(0,R.jsxs)(I,{children:[(0,R.jsx)("br",{}),(0,R.jsxs)(A.Z,{request:n,children:[(0,R.jsx)("br",{}),t.isAdmin&&(0,R.jsx)(T,{request:n,onUpdate:r})]})]}):null}var F=n(59499),_=n(42894),q=n(70300),N=n(76944),L=n(83333);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;tsvg {\n overflow: initial;\n }\n ",close:"\n cursor: pointer !important;\n text-align: center;\n text-decoration: none;\n border-radius: 0.2222em;\n padding: 0.4em 0.5em;\n margin-right: 20px;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{success:{container:"\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #2d4821;\n\n & a {\n color: #2b542c;\n }\n ",content:"\n color: #2d4821;\n ",close:"\n color: #2d4821;\n border: 1px solid #2d4821;\n\n &:hover {\n background: #2d4821;\n color: #fff;\n }\n ",group:"\n color: #2d4821;\n "},info:{container:"\n background-color: #d9eaf7;\n border-color: #afd3ee;\n color: #313132;\n\n & a {\n color: #1a5a96;\n }\n ",content:"\n color: #313132;\n ",close:"\n color: #313132;\n border: 1px solid #313132;\n\n &:hover {\n background: #313132;\n color: #fff;\n }\n ",group:"\n color: #313132;\n "},warning:{container:"\n background-color: #f9f1c6;\n border-color: #faebcc;\n color: #6c4a00;\n\n & a {\n color: #66512c;\n }\n ",content:"\n color: #66512c;\n ",close:"\n color: #66512c;\n border: 1px solid #66512c;\n\n &:hover {\n background: #66512c;\n color: #fff;\n }\n ",group:"\n color: #66512c;\n "},danger:{container:"\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a12622;\n\n & a {\n color: #843534;\n }\n ",content:"\n color: #a12622;\n ",close:"\n color: #a12622;\n border: 1px solid #a12622;\n\n &:hover {\n background: #a12622;\n color: #fff;\n }\n ",group:"\n color: #a12622;\n "}},flex:{container:"\n display: flex;\n ",group:"\n margin: auto 0.5rem;\n "}},{defaultProps:{variant:"info",size:"medium",flex:!0},staticProps:[]},{group:{align:{left:"\n margin-right: auto;\n ",right:"\n margin-left: auto;\n "}}}),eL=function(e){switch(e){case"success":return eA.CheckCircle;case"info":return eA.InfoCircle;case"warning":return eA.ExclamationTriangle;default:return eA.ExclamationCircle}};function eM(e){return(0,ez.jsxs)(eq,eU(eU({},e),{},{children:[(0,ez.jsx)(eq.Group,{style:{marginTop:"1px"},children:(0,ez.jsx)(eA.FaSVG,{children:(0,ez.jsx)("path",{fill:"currentColor",d:eL(e.variant)})})}),(0,ez.jsx)(eq.Content,{children:e.content?e.content:e.children}),e.closable&&(0,ez.jsx)(eq.Group,{align:"right",children:(0,ez.jsx)(eq.Close,{children:"x"})})]}))}var eK=t(16835),eH=t(99603),eV=t(59417),e_=t(64735),eW=t(42894),eY=t(21963),eJ=(r=(0,eD.Z)(eF().mark(function e(n,t){var r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.post("installation",{requestId:n,environment:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[r,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return r.apply(this,arguments)}),e$=(a=(0,eD.Z)(eF().mark(function e(n,t){var r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.put("installation",{requestId:n,environment:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[r,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return a.apply(this,arguments)}),eQ=(i=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.idp,a=n.property,i=n.searchKey,s=n.integrationId,e.prev=1,e.next=4,eY.e.post("keycloak/users",{environment:t,idp:r,property:a,searchKey:i,integrationId:s}).then(function(e){return e.data});case 4:return o=e.sent,e.abrupt("return",[o,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return i.apply(this,arguments)}),eX=(s=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,i=void 0===(a=n.search)?"":a,e.prev=1,e.next=4,eY.e.post("keycloak/roles",{environment:t,integrationId:r,search:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return s.apply(this,arguments)}),e0=(o=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,i=n.compositeRoleNames,e.prev=1,e.next=4,eY.e.post("keycloak/set-composite-roles",{environment:t,integrationId:r,roleName:a,compositeRoleNames:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return o.apply(this,arguments)}),e1=(c=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,e.prev=1,e.next=4,eY.e.post("keycloak/get-composite-roles",{environment:t,integrationId:r,roleName:a}).then(function(e){return e.data});case 4:return i=e.sent,e.abrupt("return",[i,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return c.apply(this,arguments)}),e2=(l=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,s=void 0===(i=n.first)?0:i,c=void 0===(o=n.max)?50:o,e.prev=1,e.next=4,eY.e.post("keycloak/user-roles",{environment:t,integrationId:r,username:a,first:s,max:c}).then(function(e){return e.data});case 4:return l=e.sent,e.abrupt("return",[l,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return l.apply(this,arguments)}),e3=(u=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,i=n.roleName,s=n.mode,e.prev=1,e.next=4,eY.e.put("keycloak/user-role",{environment:t,integrationId:r,username:a,roleName:i,mode:s}).then(function(e){return e.data});case 4:return o=e.sent,e.abrupt("return",[o,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return u.apply(this,arguments)}),e5=(d=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,i=n.roleNames,e.prev=1,e.next=4,eY.e.put("keycloak/user-roles",{environment:t,integrationId:r,username:a,roleNames:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return d.apply(this,arguments)}),e4=(p=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,s=void 0===(i=n.first)?0:i,c=void 0===(o=n.max)?50:o,e.prev=1,e.next=4,eY.e.post("keycloak/role-users",{environment:t,integrationId:r,roleName:a,first:s,max:c}).then(function(e){return e.data});case 4:return l=e.sent,e.abrupt("return",[l,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return p.apply(this,arguments)}),e8=(h=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.integrationId,r=n.roles,e.prev=1,e.next=4,eY.e.post("keycloak/bulk-roles",{integrationId:t,roles:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return h.apply(this,arguments)}),e7=(f=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,e.prev=1,e.next=4,eY.e.post("keycloak/delete-role",{environment:t,integrationId:r,roleName:a}).then(function(e){return e.data});case 4:return i=e.sent,e.abrupt("return",[i,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return f.apply(this,arguments)}),e6=t(71057),e9=t(73923),ne=t(31513),nn=t(63055),nt=t(15812),nr=t(44e3),na=t(63005),ni=t(74150),ns=t(90352),no=eE.ZP.div(b||(b=(0,eO.Z)(["\n text-align: center;\n"]))),nc=eE.ZP.div(j||(j=(0,eO.Z)(["\n color: #000;\n font-size: ",";\n font-weight: bold;\n"])),nn.n5),nl=eE.ZP.span(y||(y=(0,eO.Z)(["\n color: #3e3e3e;\n font-size: 14px;\n font-weight: 700;\n"]))),nu=eE.ZP.div(w||(w=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),nd=eE.ZP.div(Z||(Z=(0,eO.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n border-bottom: 1px solid gray;\n"]))),np=(0,nt.hU)(function(e){var n,t,r,a=e.integration,i=e.alert,s=(0,eR.useState)(!1),o=s[0],c=s[1],l=(n=(0,eD.Z)(eF().mark(function e(n){var t,r,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,eJ(a.id,n);case 3:if(t=e.sent,s=(r=(0,eK.Z)(t,2))[0],o=r[1],c(!1),!o){e.next=11;break}return i.show({variant:"danger",content:"Failed to download installation"}),e.abrupt("return",null);case 11:return e.abrupt("return",s);case 12:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),u=(t=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:(t=e.sent)&&(0,e9.TE)((0,e9.ON)(t));case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),d=(r=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:(t=e.sent)&&(0,e9.Di)((0,e9.ON)(t),"".concat(a.projectName,"-installation-").concat(n,".json"));case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return o?(0,ez.jsxs)(no,{children:[(0,ez.jsx)(nu,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nu,{}),(0,ez.jsx)(nd,{children:"Installation JSONs"}),(0,ez.jsx)("br",{}),(0,ez.jsx)(e_.ZP,{cols:3,children:(0,ne.Dy)(a).map(function(e){if("service-account"!==a.authType&&0===e.idps.length)return null;var n=e.idps.length>0?"(".concat(e.idps.map(function(e){return na.S[e]}).join(", "),")"):"";return(0,ez.jsxs)(eR.Fragment,{children:[(0,ez.jsx)(e_.ZP.Row,{collapse:"992",gutter:[],align:"center",children:(0,ez.jsx)(e_.ZP.Col,{span:1,style:{width:"100%",height:"30px"},children:(0,ez.jsxs)(nc,{children:[e.display," ",n]})})}),(0,ez.jsx)(e_.ZP.Row,{collapse:"992",gutter:[],align:"center",children:(0,ez.jsxs)(e_.ZP.Col,{span:3,children:[(0,ez.jsx)(e6.Z,{size:"medium",variant:"grey",onClick:function(){return u(e.name)},children:"Copy"}),"\xa0",(0,ez.jsx)(e6.Z,{size:"medium",variant:"grey",onClick:function(){return d(e.name)},children:"Download"}),"\xa0\xa0",(0,ez.jsx)(eH.G,{color:"green",icon:eV.f8k,title:"Ready"}),"\xa0",(0,ez.jsx)(nl,{children:"Ready"})]})}),(0,ez.jsx)("br",{})]},e.name)})}),(0,ez.jsxs)(nr.$,{children:["For more information on how to use these details, or for the public endpoints associated to your client,"," ",(0,ez.jsx)(ni.default,{href:"".concat(ns.UN,"/integrating-your-application/installation-json"),external:!0,children:"click to learn more on our wiki page"}),"."]})]})}),nh=t(4826),nf=t(61165),nx=eE.ZP.div(k||(k=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),nv=eE.ZP.span(P||(P=(0,eO.Z)(["\n color: #000;\n font-size: 1.1rem;\n font-weight: bold;\n"])));(0,eE.ZP)(eH.G)(S||(S=(0,eO.Z)(["\n margin-right: 20px;\n"])));var nm=eE.ZP.div(C||(C=(0,eO.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"])));eE.ZP.hr(I||(I=(0,eO.Z)(["\n background-color: black;\n"])));var ng=(0,nt.hU)(function(e){var n,t=e.selectedRequest,r=e.alert,a=(0,eR.useState)(null),i=a[0],s=a[1],o=(0,ne.Dy)(t),c=function(e){s(e),window.location.hash="confirm-new-secret"},l=(n=(0,eD.Z)(eF().mark(function e(){var n,a,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,e$(t.id,(null==i?void 0:i.name)||null);case 2:n=e.sent,s=(a=(0,eK.Z)(n,2))[0],c=(o=a[1])?"danger":"success",l=o?"Failed to regenerate secret":"Client Secret Successfully Updated",r.show({variant:c,fadeOut:1e4,closable:!0,content:l}),window.location.hash="#",console.error(s,o);case 11:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),u=(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(nm,{children:[(0,ez.jsxs)("strong",{children:["You are about to change your client secret for your ",null==i?void 0:i.display," environment."]})," "]}),(0,ez.jsx)("br",{}),(0,ez.jsx)("p",{children:"Once you change your secret, your previous secret will no longer be valid for any applications using it."}),(0,ez.jsx)("p",{children:"This means you will need to update any applications using this client with the new JSON details before they are functional again."})]});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nx,{}),o.map(function(e){return(0,ez.jsxs)(eR.Fragment,{children:[(0,ez.jsxs)(nv,{children:[e.display,": "]}),!t.publicAccess&&(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(nh.default,{type:"button",onClick:function(){return c(e)},children:"Change your client secret"})]}),(0,ez.jsx)("br",{}),(0,ez.jsx)("br",{})]},e.name)})]}),(0,ez.jsx)(nf.Z,{id:"confirm-new-secret",content:u,onConfirm:l,icon:eV.eHv,buttonStyle:"custom",title:"You are about to change your client secret",closable:!0})]})}),nb=t(20070),nj=t.n(nb),ny=t(30233),nw=t(85330),nZ=t(23157),nk=t(11915),nP=t(43590),nS=t.n(nP);function nC(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function nI(e){for(var n=1;n * {\n padding-right: 0.5rem;\n }\n"]))),nF=eE.ZP.div(F||(F=(0,eO.Z)(["\n padding-top: 10px;\n padding-bottom: 10px;\n"]))),nR=eE.ZP.div(R||(R=(0,eO.Z)(["\n color: #ff0000;\n"]))),nE={name:"",envs:["dev"]},nT=(0,eR.forwardRef)(function(e,n){var t,r=e.integrationId,a=e.environments,i=void 0===a?["dev"]:a,s=(0,eR.useState)(!1),o=s[0],c=s[1],l=(0,eR.useState)({}),u=l[0],d=l[1],p=(0,eR.useState)({}),h=p[0],f=p[1],x=(0,eR.useState)([nE]),v=x[0],m=x[1];(0,eR.useImperativeHandle)(n,function(){var e;return{submit:(e=(0,eD.Z)(eF().mark(function e(){var n,t,a,i,s,l,p,h;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=v,o&&(n=[],nS()(u,function(e,t){n.push({name:t,envs:e})})),e.next=4,e8({integrationId:r,roles:n});case 4:if(t=e.sent,i=(a=(0,eK.Z)(t,2))[0],!a[1]){e.next=10;break}return e.abrupt("return",[!0,!1]);case 10:return s={},l={},p=!1,h=!1,nS()(i,function(e){e.failure.length>0&&nS()(e.failure,function(n){s[n]||(s[n]=[]),s[n].push(e.env),p=!0}),e.duplicate.length>0&&nS()(e.duplicate,function(n){l[n]||(l[n]=[]),l[n].push(e.env),h=!0})}),d(s),f(l),c(!0),e.abrupt("return",[p,h]);case 19:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),reset:function(){m([nE]),d({}),f({}),c(!1)}}});var g=function(e){m(v.filter(function(n,t){return t!==e}))},b=function(e,n){m(v.map(function(t,r){return r===e?{name:n,envs:t.envs}:t}))},j=(t=(0,eD.Z)(eF().mark(function e(n,t,r){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:m(v.map(function(e,r){return r===n?{name:e.name,envs:t.map(function(e){return e.value})}:e}));case 2:case"end":return e.stop()}},e)})),function(e,n,r){return t.apply(this,arguments)}),y=null;if(o){var w=null,Z=null;Object.keys(h).length>0&&(w=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:(0,ez.jsxs)(nN,{children:[(0,ez.jsx)(nF,{children:(0,ez.jsx)(eH.G,{icon:eV.sqG,color:"#17a2b8",title:"duplicated roles",size:"lg"})}),(0,ez.jsx)(nF,{children:"There are duplicated roles and we've skipped adding them."})]})})})),Object.keys(u).length>0&&(Z=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:(0,ez.jsxs)(nN,{children:[(0,ez.jsx)(nF,{children:(0,ez.jsx)(eH.G,{icon:eV.eHv,color:"#dc3545",title:"failed roles",size:"lg"})}),(0,ez.jsxs)(nF,{children:["We were unable to save some of your changes.",(0,ez.jsx)("br",{}),(0,ez.jsx)("div",{className:"fw-bold",children:"Please try submitting again."})]})]})})})),y=(0,ez.jsxs)(ez.Fragment,{children:[w,Z]})}else y=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:v.length<20?(0,ez.jsxs)(nO,{onClick:function(){m(v.concat(nE))},children:[(0,ez.jsx)(eH.G,{style:{color:"#006fc4"},icon:eV.KtF,title:"Add Role"}),(0,ez.jsx)("span",{children:"Add another role"})]}):(0,ez.jsx)(nR,{children:"You can only create 20 roles at a time. Please save before creating any new roles."})})});return(0,ez.jsx)("div",{children:(0,ez.jsxs)(nD,{children:[(0,ez.jsx)("thead",{children:(0,ez.jsxs)("tr",{children:[(0,ez.jsx)("th",{className:"role",children:"Role Name"}),(0,ez.jsx)("th",{className:"env",children:"Environments"}),(0,ez.jsx)("th",{})]})}),(0,ez.jsxs)("tbody",{children:[v.length>0?v.map(function(e,n){var t=function(n,t){return u[e.name]&&u[e.name].includes(t.children)?nI(nI({},n),{},{color:"#fff",backgroundColor:"#dc3545"}):h[e.name]&&h[e.name].includes(t.children)?nI(nI({},n),{},{color:"#fff",backgroundColor:"#17a2b8"}):n};return(0,ez.jsxs)("tr",{children:[(0,ez.jsx)("td",{className:"role",children:(0,ez.jsx)(nk.default,{size:"small","data-testid":"role-name-input-field",minLength:"2",maxLength:"100",value:e.name,disabled:o,onChange:function(e){return b(n,e.target.value)}})}),(0,ez.jsx)("td",{className:"env",children:(0,ez.jsx)(nZ.ZP,{value:e.envs.map(function(e){return{value:e,label:e}}),options:i.map(function(e){return{value:e,label:e}}),isMulti:!0,isDisabled:o,placeholder:"Select...",noOptionsMessage:function(){return"You selected all environments"},onChange:function(e,t){return j(n,e,t)},styles:{multiValueLabel:t,multiValue:t}})}),(0,ez.jsx)("td",{children:!o&&v.length>1&&(0,ez.jsx)(nO,{onClick:function(){return g(n)},children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,title:"Remove Role"})})})]})}):(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:"No roles added."})}),y]})]})})}),nB=t(20353),nA=t(27812),nz=t(93096),nG=t.n(nz),nU=t(29208),nq=t.n(nU),nL=t(34766),nM=t.n(nL),nK=t(76691),nH=t(53442),nV=t(75780),n_=t(80820),nW=t.n(n_),nY=t(99503),nJ=t.n(nY),n$=t(99245),nQ=t.n(n$),nX=t(96486),n0=eE.ZP.label(E||(E=(0,eO.Z)(["\n font-weight: bold;\n margin-bottom: 2px;\n"]))),n1=eE.ZP.div(T||(T=(0,eO.Z)(["\n display: flex;\n & > div:first-child {\n margin-right: 20px;\n }\n"]))),n2=eE.ZP.div(B||(B=(0,eO.Z)(["\n background-color: #f1f1f1;\n margin: 2px 0 2px 0;\n padding: 4px 6px;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"}),n3=eE.ZP.div(A||(A=(0,eO.Z)(["\n font-size: 0.9rem;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"}),n5=function(e){var n=e.children,t=e.width;return(0,ez.jsx)(n2,{width:t,children:(0,ez.jsx)(e_.ZP,{cols:6,children:(0,ez.jsxs)(e_.ZP.Row,{gutter:[],children:[(0,ez.jsx)(e_.ZP.Col,{span:5,children:n}),(0,ez.jsx)(e_.ZP.Col,{span:1,style:{textAlign:"right"},children:(0,ez.jsx)(eH.G,{icon:eV.byT,color:"#9F9F9F",size:"lg"})})]})})})},n4=function(e){var n=e.modalRef;return(0,ez.jsx)(ny.Z,{ref:n,id:"additiona-user-info",title:"Additional User Info",icon:null,cancelButtonText:"Close",cancelButtonVariant:"primary",showConfirmButton:!1,buttonAlign:"right",style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:function(e){if(!e)return(0,ez.jsx)(ez.Fragment,{});var n=nJ()(e.attributes,nQ());return n=(0,nX.mapKeys)(n,function(e,n){return nj()(n)}),(0,ez.jsxs)("div",{children:[(0,ez.jsx)(n0,{children:"GUID"}),(0,ez.jsx)(n5,{width:"400px",children:e.guid}),(0,ez.jsx)("br",{}),(0,ez.jsx)(n0,{children:"Attributes"}),(0,ez.jsxs)(n1,{children:[(0,ez.jsx)(n3,{width:"200px",children:"Key"}),(0,ez.jsx)(n3,{width:"700px",children:"Value"})]}),nW()(n,function(e,n){return(0,ez.jsxs)(n1,{children:[(0,ez.jsx)(n5,{width:"200px",children:n}),(0,ez.jsx)(n5,{width:"700px",children:e})]})})]})}})},n8=t(37226),n7=function(e){return"service-account-".concat(e)},n6=t(34798),n9=t.n(n6);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function tn(e){for(var n=1;n0?d.map(function(){var e=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.username.startsWith("service-account-")){e.next=8;break}return t=n.username.split("-"),e.next=4,(0,n8.A_)(t[t.length-1]);case 4:r=e.sent,a=(0,eK.Z)(r,1)[0],ep([].concat((0,nA.Z)(ed),[{username:n.username,integration:a}]));case 8:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()):ep([]),B(d.length===R),L(o.concat(d)),N(r+R),H(t),v(!1);case 23:case"end":return e.stop()}},e)})),function(e,n){return eC.apply(this,arguments)}),ew=(eI=(0,eD.Z)(eF().mark(function e(n){var t,r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=2;break}return e.abrupt("return");case 2:return b(!0),e.next=5,e1({environment:a,integrationId:i.id,roleName:n});case 5:if(t=e.sent,o=(r=(0,eK.Z)(t,2))[0],!(r[1]||!o)){e.next=12;break}return s.show({variant:"danger",fadeOut:5e3,closable:!0,content:"Failed to fetch composite roles."}),e.abrupt("return");case 12:W(o.map(function(e){return{label:e,value:e}})),b(!1);case 14:case"end":return e.stop()}},e)})),function(e){return eI.apply(this,arguments)}),eZ=(eO=(0,eD.Z)(eF().mark(function e(n){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c.current.open(n);case 1:case"end":return e.stop()}},e)})),function(e){return eO.apply(this,arguments)}),ek=null;if(0===O&&x)ek=(0,ez.jsx)(tx,{});else if(K){var eP,eS,eC,eI,eO,eN,eE=q.filter(function(e){return!e.username.startsWith("service-account-")}),eT=q.filter(function(e){return e.username.startsWith("service-account-")});ek="Users"===ec?(0,ez.jsx)(nH.Z,{variant:"mini",headers:[{accessor:"idp",Header:"IDP"},{accessor:"guid",Header:"GUID"},{accessor:"email",Header:"Email"},{accessor:"actions",Header:(0,ez.jsx)(tc,{}),disableSortBy:!0}],data:eE.length>0?eE.map(function(e){var n=e.username.split("@");if(n.length<2)return[];var t=(0,eK.Z)(n,2),r=t[0],a=t[1],i=th[a];return{idp:na.S[a],guid:r,email:e.email,actions:(0,ez.jsxs)(ts,{children:[(0,ez.jsx)("span",{onClick:function(n){n.stopPropagation(),o.current.open({guid:e.username.split("@")[0],attributes:tn(tn({},nM()(i,function(n,t){return n[t.label]=nq()(e,t.value),n},{})),e.attributes)})},children:(0,ez.jsx)(eH.G,{style:{color:"#000"},icon:eV.Mdf,size:"lg",title:"User Detail"})}),"\xa0\xa0",(0,ez.jsx)("span",{onClick:function(){return l.current.open(e)},children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,size:"lg",title:"Remove User"})})]})}}):[],loadMoreItem:function(){return ey(!1,K)},hasMoreItem:T,loader:(0,ez.jsx)(tx,{}),colfilters:[],activateRow:n9(),rowSelectorKey:"guid",noDataFoundElement:(0,ez.jsx)("td",{colSpan:5,children:"No users found."})}):"Service Accounts"===ec?(0,ez.jsx)(nH.Z,{variant:"mini",headers:[{accessor:"projectName",Header:"Project Name"},{accessor:"actions",Header:(0,ez.jsx)(tl,{}),disableSortBy:!0}],data:eT.length>0?eT.map(function(e){var n,t;return{projectName:null===(n=ed.find(function(n){return n.username==e.username}))||void 0===n?void 0:null===(t=n.integration)||void 0===t?void 0:t.projectName,actions:(0,ez.jsx)("span",{onClick:function(){return u.current.open(e)},children:(0,ez.jsx)(ti,{children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,size:"lg",title:"Remove Service Account"})})})}}):[],colfilters:[],activateRow:n9(),rowSelectorKey:"projectName",noDataFoundElement:(0,ez.jsx)("td",{colSpan:5,children:"No service accounts found."})}):g?(0,ez.jsx)(tx,{}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(tt,{children:["Select the roles to be nested under the Parent role"," ",(0,ez.jsx)(nV.Z,{content:"Composite roles associate (nest) one or more additional roles within it."})]}),(0,ez.jsx)(nZ.ZP,{value:_,options:eb.filter(function(e){return e.value!==K}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:(eN=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=em(n))||void 0===t?void 0:t.then(function(e){return e&&W(n)});case 2:case"end":return e.stop()}},e)})),function(e){return eN.apply(this,arguments)}),isDisabled:!ei}),(0,ez.jsx)(nw.Ad,{saving:y,content:k,variant:ef?"error":"success"})]})}var eB=(0,ez.jsx)(nH.Z,{headers:[{accessor:"role",Header:"Role Name"},{accessor:"actions",Header:"",disableSortBy:!0}],noDataFoundElement:(0,ez.jsx)("td",{children:"No roles found."}),activateRow:function(e){var n=e.cells[0].value;if(n.endsWith(" (Composite role)")){var t=e.cells[0].value.length;H(n.substr(0,t-17))}else H(n)},rowSelectorKey:"role",data:z.map(function(e,n){return{role:!0==J[n]?"".concat(e," (Composite role)"):e,actions:(0,ez.jsx)(ta,{children:(0,ez.jsx)(nK.Kk,{disabled:!ei,icon:eV.$aW,role:"button","aria-label":"delete",onClick:function(n){ei&&(n.stopPropagation(),eZ(e))},title:"Delete",size:"lg",style:{marginRight:"1rem"}})})}}),colfilters:[]});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:4,children:(0,ez.jsxs)("div",{style:{display:"flex",float:"left"},children:[(0,ez.jsx)(nw.E1,{type:"text",maxLength:"1000",placeholder:"Search existing roles",value:C,onChange:function(e){I(e.target.value)},onKeyUp:function(e){"Enter"===e.key&&ej()}}),(0,ez.jsx)(nw.zx,{type:"button",size:"small",variant:"bcPrimary",onClick:ej,children:"Search"})]})}),(0,ez.jsx)(e_.ZP.Col,{span:6,children:K&&(0,ez.jsx)(nw.mQ,{onChange:function(e){el(e)},activeKey:ec,tabBarGutter:30,children:X.map(function(e){return(0,ez.jsx)(nw.OK,{tab:e},e)})})})]})}),(0,ez.jsx)(to,{}),p?(0,ez.jsx)(tx,{}):(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:4,children:eB}),(0,ez.jsx)(e_.ZP.Col,{span:6,children:ek})]})}),(0,ez.jsx)(ny.Z,{ref:c,title:"Delete Role",icon:eV.eHv,onConfirm:(n=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,e7({environment:a,integrationId:i.id,roleName:t});case 2:return r=e.sent,(o=(0,eK.Z)(r,2))[0],o[1]&&s.show({variant:"danger",content:"Failed to delete role ".concat(t,". Please try again.")}),e.next=9,eg();case 9:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)}),confirmButtonText:"Delete",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to delete this role?"})}),(0,ez.jsx)(ny.Z,{id:"remove-user",ref:l,title:"Remove User from Role",icon:eV.eHv,onConfirm:(t=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(K){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,e3({environment:a,integrationId:i.id,username:t.username,roleName:K,mode:"del"});case 4:r=e.sent,(o=(0,eK.Z)(r,2)[1])&&s.show({variant:"danger",content:o}),ey(!0,K);case 9:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)}),confirmButtonText:"Remove",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to remove this user from this role?"})}),(0,ez.jsx)(ny.Z,{id:"remove-service-account",ref:u,title:"Remove Service Account from Role",icon:eV.eHv,onConfirm:(r=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(K){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,e3({environment:a,integrationId:i.id,username:t.username,roleName:K,mode:"del"});case 4:r=e.sent,(o=(0,eK.Z)(r,2)[1])&&s.show({variant:"danger",content:o}),ey(!0,K);case 9:case"end":return e.stop()}},e)})),function(e,n){return r.apply(this,arguments)}),confirmButtonText:"Remove",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to remove this service account from this role?"})}),(0,ez.jsx)(n4,{modalRef:o})]})}),tm=t(24444),tg=eE.ZP.div(K||(K=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),tb=function(e){var n,t=e.integration,r=(0,eR.useRef)(ny.V),a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(0,eR.useState)(!1),c=o[0],l=o[1],u=(0,eR.useState)(0),d=u[0],p=u[1],h=(0,eR.useContext)(tm.SurveyContext);(0,eR.useEffect)(function(){s("dev"),l((0,nB.Yr)(t))},[t.id]);var f=(null==t?void 0:t.environments)||[];return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tg,{}),(0,ez.jsx)(nw.zx,{disabled:!c,size:"medium",variant:"primary",onClick:function(){r.current.open()},"data-testid":"create-role-button",children:"+ Create a New Role"}),(0,ez.jsx)(tg,{}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){s(e)},activeKey:i,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),f.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)(tv,{environment:e,integration:t},d)},e)})]}),(0,ez.jsx)(ny.Z,{ref:r,title:"Create New Role",icon:null,onConfirm:(n=(0,eD.Z)(eF().mark(function e(n){var t,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.current.submit();case 2:if(t=e.sent,i=(a=(0,eK.Z)(t,2))[0],s=a[1],!i){e.next=11;break}return r.current.updateConfig({confirmButtonText:"Try Again"}),e.abrupt("return",!1);case 11:if(!s){e.next=17;break}return r.current.updateConfig({showConfirmButton:!1,cancelButtonText:"Close",buttonAlign:"right"}),p(function(e){return e+1}),e.abrupt("return",!1);case 17:return e.next=19,n.current.reset();case 19:p(function(e){return e+1}),null==h||h.setShowSurvey(!0,"createRole");case 21:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),onCancel:function(e){e.current.reset()},confirmButtonText:"Save",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:(0,ez.jsx)(nT,{integrationId:t.id,environments:f})})]})},tj=(x=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.field,r=n.search,e.prev=1,e.next=4,eY.e.post("bceid-webservice/idir/search",{field:t,search:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return x.apply(this,arguments)}),ty=(v=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.guid,r=n.userId,e.prev=1,e.next=4,eY.e.post("bceid-webservice/idir/import",{guid:t,userId:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return v.apply(this,arguments)}),tw=[{value:"idir",label:"IDIR"}],tZ=[{value:"firstName",label:"First Name",allowed:["idir"]},{value:"lastName",label:"Last Name",allowed:["idir"]},{value:"email",label:"Email",allowed:["idir","bceidbasic","bceidbusiness"]},{value:"userId",label:"Username",allowed:["idir","bceidbasic","bceidbusiness"]},{value:"guid",label:"IDP GUID",allowed:["bceidbasic","bceidbusiness"]}],tk=(0,eR.forwardRef)(function(e,n){e.key;var t,r,a=e.idp,i=e.property,s=e.search,o=e.infoModalRef,c=e.parentModalRef,l=(0,eR.useState)(!1),u=(l[0],l[1]),d=(0,eR.useState)(!1),p=d[0],h=d[1],f=(0,eR.useState)([]),x=f[0],v=f[1],m=(0,eR.useState)(""),g=m[0],b=m[1],j=(0,eR.useState)(i),y=j[0],w=j[1],Z=(0,eR.useState)(s),k=Z[0],P=Z[1],S=(0,eR.useState)(!1),C=S[0],I=S[1];(0,eR.useEffect)(function(){b(a)},[a]),(0,eR.useEffect)(function(){if(g){var e=tZ.find(function(e){return e.value===y});if(null==e?void 0:e.allowed.includes(g))D(k,y);else{var n=tZ.find(function(e){return e.allowed.includes(g)});w((null==n?void 0:n.value)||""),P("")}}},[g]);var D=(t=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s=arguments;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>1&&void 0!==s[1]?s[1]:y,!(n.length<2)){e.next=3;break}return e.abrupt("return");case 3:return h(!0),v([]),u(!0),e.next=8,tj({field:t,search:n});case 8:r=e.sent,i=(a=(0,eK.Z)(r,2))[0],a[1],i&&v(i),h(!1);case 14:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),O=(r=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return I(!1),e.next=3,ty({guid:n.guid,userId:n.userId});case 3:t=e.sent,(r=(0,eK.Z)(t,2))[0],r[1]?I(!0):c.current.close({idp:g,guid:n.guid});case 8:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nH.Z,{searchPlaceholder:"Enter search criteria",variant:"mini",headers:[{accessor:"firstName",Header:"First name"},{accessor:"lastName",Header:"Last Name"},{accessor:"email",Header:"Email"},{accessor:"idirUsername",Header:"IDIR username"},{accessor:"actions",Header:"",disableSortBy:!0}],rowSelectorKey:"guid",data:x.map(function(e){return{guid:e.guid,firstName:e.individualIdentity.name.firstname,lastName:e.individualIdentity.name.surname,email:e.contact.email,idirUsername:e.userId,actions:(0,ez.jsxs)(nK.c4,{children:[(0,ez.jsx)(nK.Kk,{icon:eV.Mdf,role:"button","aria-label":"view",onClick:function(){o.current.open({guid:e.guid,attributes:{username:e.userId,displayName:e.displayName,firstName:e.individualIdentity.name.firstname,middleName:e.individualIdentity.name.middleName,lastName:e.individualIdentity.name.surname,initials:e.individualIdentity.name.initials,email:e.contact.email,telephone:e.contact.telephone,company:e.internalIdentity.company,department:e.internalIdentity.department,title:e.internalIdentity.title},_hash:c.current.getId()})},title:"View",size:"lg"}),(0,ez.jsx)(nK.Kk,{icon:eV.q7m,role:"button","aria-label":"import",onClick:function(){return O(e)},title:"Import",size:"lg"})]})}}),colfilters:[{value:g,multiselect:!1,onChange:b,options:tw},{value:y,multiselect:!1,onChange:w,options:tZ.filter(function(e){return e.allowed.includes(g)})}],showFilters:!0,loading:p,totalColSpan:20,searchColSpan:10,headerAlign:"bottom",headerGutter:[5,0],searchKey:k,searchLocation:"right",onSearch:D,onEnter:D,noDataFoundElement:(0,ez.jsx)("p",{children:"The user you searched for does not exist. Please try again, by entering the full search criteria."})}),C&&(0,ez.jsx)("p",{className:"text-danger",children:"Failed to import the user. Please try again."})]})});function tP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function tS(e){for(var n=1;n * {\n padding-right: 0.5rem;\n }\n"]))),tN=eE.ZP.div(Y||(Y=(0,eO.Z)(["\n padding-top: 10px;\n padding-bottom: 10px;\n"]))),tF=eE.ZP.div(J||(J=(0,eO.Z)(["\n text-align: center;\n"]))),tR=function(){return(0,ez.jsxs)(tI,{children:[(0,ez.jsx)(tD,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]})},tE=[{value:"firstName",label:"First Name",search:!0,result:!0},{value:"lastName",label:"Last Name",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tT=[{value:"firstName",label:"Display Name",search:!0,result:!0},{value:"lastName",label:"Username",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tB=[{value:"firstName",label:"Name",search:!0,result:!0},{value:"lastName",label:"Login",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tA={idir:tE,azureidir:tE,bceidbasic:tT,bceidbusiness:tT,bceidboth:tT,githubpublic:tB,githubbcgov:tB},tz=(0,nt.hU)(function(e){var n,t,r,a,i,s=e.selectedRequest,o=e.alert,c=(0,eR.useRef)(ny.V),l=(0,eR.useRef)(ny.V),u=(0,eR.useState)(!1),d=u[0],p=u[1],h=(0,eR.useState)(1),f=h[0],x=h[1],v=(0,eR.useState)(0),m=v[0],g=v[1],b=(0,eR.useState)(15),j=b[0],y=b[1],w=(0,eR.useState)(!1),Z=w[0],k=w[1],P=(0,eR.useState)(!1),S=P[0],C=P[1],I=(0,eR.useState)(!1),D=I[0],O=I[1],N=(0,eR.useState)(""),F=N[0],R=N[1],E=(0,eR.useState)([]),T=E[0],B=E[1],A=(0,eR.useState)([]),z=A[0],G=A[1],U=(0,eR.useState)([]),q=U[0],L=U[1],M=(0,eR.useState)([]),K=M[0],H=M[1],V=(0,eR.useState)("dev"),_=V[0],W=V[1],Y=(0,eR.useState)(s.devIdps[0]),J=Y[0],$=Y[1],Q=(0,eR.useState)(""),X=Q[0],ee=Q[1],en=(0,eR.useState)(""),et=en[0],er=en[1],ea=(0,eR.useState)(void 0),ei=ea[0],es=ea[1],eo=(0,eR.useState)(!1),ec=eo[0],el=eo[1],eu=(0,eR.useContext)(tm.SurveyContext),ed=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(!0);case 2:return R("Assigning role..."),el(!1),e.next=6,e5({environment:_,integrationId:s.id,username:ei,roleNames:n});case 6:if(t=e.sent,r=(0,eK.Z)(t,2)[1],O(!1),r){e.next=16;break}return R("Last saved at ".concat(new Date().toLocaleString())),null==eu||eu.setShowSurvey(!0,"addUserToRole"),e.abrupt("return",!0);case 16:return el(!0),R("Failed to update roles."),e.abrupt("return",!1);case 19:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),2e3,{trailing:!0}),[null==s?void 0:s.id,_,ei,eu]),ep=(t=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,k(!0);case 4:return e.next=6,eX({environment:_,integrationId:s.id,first:0,max:1e3});case 6:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],t[1]&&o.show({variant:"danger",content:"Failed to fetch roles."}),G(null===r?[]:r.map(function(e){return e.name})),H(null===r?[]:r.map(function(e){return e.composite})),k(!1);case 15:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),eh=function(){B([]),L([]),x(1),g(0),es(void 0),p(!1)},ef=function(){if(er(""),W("dev"),s.devIdps){var e=s.devIdps.length>0?s.devIdps[0]:"";$(e);var n=tA[e]||[];n.length>0&&ee(n[0].value)}},ex=(r=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(!0);case 2:return e.next=4,e2({environment:_,integrationId:s.id,username:n});case 4:if(t=e.sent,a=(r=(0,eK.Z)(t,2))[0],!r[1]){e.next=12;break}return o.show({variant:"danger",content:"Failed to fetch user roles."}),C(!1),e.abrupt("return");case 12:return e.next=14,L(a||[]);case 14:C(!1);case 15:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});(0,eR.useEffect)(function(){eh(),ef(),G([])},[s.id]),(0,eR.useEffect)(function(){ev(et,void 0,f)},[f]),(0,eR.useEffect)(function(){ev(et,void 0,1)},[j]),(0,eR.useEffect)(function(){eh(),ep(),s.devIdps&&$(s.devIdps.length>0?s.devIdps[0]:"")},[_]),(0,eR.useEffect)(function(){eh();var e=tA[J]||[];!e.find(function(e){return e.search&&e.value===X})&&e.length>0&&ee(e[0].value)},[J]),(0,eR.useEffect)(function(){R(""),ei&&ex(ei)},[ei]);var ev=(a=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,c,l=arguments;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>1&&void 0!==l[1]?l[1]:X,r=l.length>2&&void 0!==l[2]?l[2]:f,!(n.length<2)){e.next=4;break}return e.abrupt("return");case 4:return k(!0),er(n),x(r),ee(t),B([]),L([]),es(void 0),e.next=13,eQ({environment:_,idp:J,property:t,searchKey:n,integrationId:s.id||-1});case 13:if(a=e.sent,c=(i=(0,eK.Z)(a,2))[0],i[1]&&o.show({variant:"danger",content:"Failed to fetch users."}),c){var u;p(!0),B((u=r,c.rows.slice((u-1)*15,15*u))),g(c.count)}k(!1);case 20:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),em=function(e){return ev(e,void 0,1)},eg=(i=(0,eD.Z)(eF().mark(function e(n,t){var r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],"clear"===t.action||(r="remove-value"===t.action?q.filter(function(e){var n;return e!==(null===(n=t.removedValue)||void 0===n?void 0:n.value)}):"pop-value"===t.action?(0,nA.Z)(q.slice(0,-1)):[].concat((0,nA.Z)(q),[null===(a=t.option)||void 0===a?void 0:a.value])),!(r.length!==q.length)){e.next=7;break}return e.next=5,ed(r);case 5:e.sent&&L(r);case 7:case"end":return e.stop()}},e)})),function(e,n){return i.apply(this,arguments)}),eb=null;S?eb=(0,ez.jsx)(tR,{}):ei&&(eb=(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tC,{children:"2. Assign User to a Role"}),(0,ez.jsx)(nZ.ZP,{value:q.map(function(e){return{value:e,label:e}}),options:z.map(function(e,n){return{value:e,label:!0==K[n]?"".concat(e," (Composite role)"):e}}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:eg,"data-testid":"user-role-select"}),(0,ez.jsx)(nw.Ad,{saving:D,content:F,variant:ec?"error":"success"})]}));var ej="idir"===J,ey=tA[J]||[],ew=ey.length>0?ey.filter(function(e){return e.result}):[],eZ=null;d&&ej&&(eZ=(0,ez.jsxs)(ez.Fragment,{children:[T.length>0&&(0,ez.jsx)(nw.XU,{italic:!0,children:"If you did not find the user you were looking for, you can try searching for the user in our IDIM Web Service Lookup tool. This tool uses a webservice to find IDIR users. so you will need to import the user that is found."}),(0,ez.jsx)(nh.default,{type:"button",size:"small","data-testid":"idim-search-button",onClick:function(){return l.current.open({key:new Date().getTime().toString(),idp:"idir",property:X,search:et})},children:"Search in IDIM Web Service Lookup"})]}));var ek=(null==s?void 0:s.environments)||[],eP=(null==s?void 0:s.devIdps)||[],eS="guid"===X||J.startsWith("bceid")?"Exact text match results will be displayed":"Partial text match results will be displayed",eC=function(e){var n=ey.find(function(n){return n.value===e});return null==n?void 0:n.label.toString()};return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tD,{}),(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsxs)(e_.ZP.Col,{span:6,children:[(0,ez.jsxs)(nw.h4,{variant:"dark",size:"sm",children:["1. Search for a user based on the selection criteria below \xa0",(0,ez.jsx)(nV.Z,{title:"",content:"When searching BCeID GUID, please ensure your end users has logged in via your app (and indirectly our IDP) for this search to be successful.",hide:200})]}),(0,ez.jsx)(nH.Z,{searchPlaceholder:"Enter search criteria",variant:"mini",rowSelectorKey:"username",headers:[{accessor:"firstName",Header:eC("firstName")||""},{accessor:"lastName",Header:eC("lastName")||""},{accessor:"email",Header:"Email"},{accessor:"actions",Header:"",disableSortBy:!0}],data:T.map(function(e){return{username:nq()(e,"username"),firstName:nq()(e,"firstName"),lastName:nq()(e,"lastName"),email:nq()(e,"email"),actions:(0,ez.jsx)(nK.c4,{children:(0,ez.jsx)(nK.Kk,{icon:eV.Mdf,role:"button","aria-label":"view",onClick:function(n){n.stopPropagation(),c.current.open({guid:e.username.split("@")[0],attributes:tS(tS({},nM()(ew,function(n,t){return n[t.label]=nq()(e,t.value),n},{})),e.attributes)})},title:"View",size:"lg"})})}}),colfilters:[{key:"user-role-filter-env",value:_,multiselect:!1,onChange:W,options:ek.map(function(e){return{value:e,label:nj()(e)}})},{key:"user-role-filter-idp",value:J,multiselect:!1,onChange:$,options:eP.filter(function(e){return"digitalcredential"!==e}).map(function(e){return{value:e,label:na.S[e]}})},{key:"user-role-filter-prop",value:X,multiselect:!1,onChange:ee,options:ey.filter(function(e){return e.search})}],showFilters:!0,loading:Z,totalColSpan:20,searchColSpan:10,headerAlign:"bottom",headerGutter:[5,0],searchKey:et,searchLocation:"right",onSearch:em,onEnter:em,noDataFoundElement:d?(0,ez.jsxs)(tO,{children:[(0,ez.jsx)(tN,{children:(0,ez.jsx)(eH.G,{icon:eV.RLE,color:"#D44331",title:"Edit",size:"lg"})}),ej?(0,ez.jsx)(tN,{children:"The user you searched for does not exist. Please try again, by entering the full search criteria or try using our IDIM Web Service Lookup tool."}):(0,ez.jsx)(tN,{children:"The user you searched for does not exist. Please try again, by entering the full search criteria."})]}):(0,ez.jsx)(tF,{children:"You have not searched for any users yet."}),pagination:!0,pageLimits:[15],onPage:x,rowCount:m,limit:j,onLimit:function(e){y(e)},activateRow:function(e){es(e.original.username)},searchTooltip:eS}),eZ]}),(0,ez.jsx)(e_.ZP.Col,{span:4,children:eb})]})}),(0,ez.jsx)(n4,{modalRef:c}),(0,ez.jsx)(ny.Z,{ref:l,id:"idim-webservice-lookup",title:"IDIM Web Service Lookup",icon:null,onClose:function(e,n,t){ev(t.guid,"guid",1)},cancelButtonText:"Close",cancelButtonVariant:"primary",showConfirmButton:!1,buttonAlign:"right",style:{minWidth:"800px",maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:function(e){return e?(0,ez.jsx)(tk,{idp:e.idp,property:e.property,search:e.search,infoModalRef:c,parentModalRef:l},e.key):(0,ez.jsx)(ez.Fragment,{})}})]})}),tG=t(62248),tU=t(42050),tq=eE.ZP.h3($||($=(0,eO.Z)(["\n color: #777777;\n font-size: ",";\n font-weight: bold;\n min-height: 30px;\n border-bottom: 1px solid #707070;\n margin-bottom: 5px;\n overflow: wrap;\n"])),nn.CA),tL=eE.ZP.p(Q||(Q=(0,eO.Z)(["\n font-size: ",";\n color: "," !important;\n"])),nn.KN,nn.we),tM=t(11752),tK=t.n(tM),tH=eE.ZP.ul(X||(X=(0,eO.Z)(["\n list-style-type: none;\n margin: 0;\n position: relative;\n\n & li {\n border-bottom: 1px solid #d4d4d4;\n & svg.svg-inline--fa {\n position: absolute;\n right: 0;\n }\n\n & div.icon {\n position: absolute;\n right: 0;\n bottom: 5px;\n }\n }\n"]))),tV=(tK()()||{}).publicRuntimeConfig,t_=(void 0===tV?{}:tV).app_env,tW=(0,eE.ZP)(tq)(ee||(ee=(0,eO.Z)(["\n border-bottom: none;\n margin-top: 10px;\n"]))),tY=(0,eE.ZP)(tW)(en||(en=(0,eO.Z)(["\n font-size: 14px;\n"]))),tJ=eE.ZP.a(et||(et=(0,eO.Z)(["\n color: ",";\n"])),nn.nc),t$=(0,eE.ZP)(tU.Z)(er||(er=(0,eO.Z)(["\n margin-bottom: 10px;\n"]))),tQ=function(e){switch(e){case"submitted":return 0;case"pr":return 33;case"planned":return 66;default:return 100}},tX=function(e){switch(e){case"submitted":return"Process request submitted...";case"pr":return"Pull request created...";case"planned":return"Terraform plan succeeded...";case"prFailed":case"planFailed":case"applyFailed":return"An error has occurred";default:return""}},t0=function(e){switch(e){case"prFailed":case"planFailed":case"applyFailed":return!0;default:return!1}},t1=function(e){switch(e){case"submitted":default:return 0;case"pr":return 1;case"prFailed":return 2;case"planned":return 3;case"planFailed":return 4;case"applied":return 5;case"applyFailed":return 6}};function t2(e){var n=e.integration,t=n.status,r=n.updatedAt,a=t0(t),i=new Date(r||"").toLocaleString();return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(t$,{now:tQ(t),animated:!0,variant:a?"danger":void 0}),(0,ez.jsxs)(tL,{children:["Last updated at ",i]})]})}(0,nt.hU)(function(e){var n=e.integration,t=e.title,r=e.alert,a=n.id,i=n.status,s=n.updatedAt,o=n.prNumber,c=(0,eR.useState)(!1),l=c[0],u=c[1],d=t0(i),p=tX(i),h=new Date(s||"");(0,eR.useEffect)(function(){u(12e5 *:nth-child(1) {\n margin-right: 5px;\n }\n"]))),rt="15px",rr=eE.ZP.div(es||(es=(0,eO.Z)(["\n height: ",";\n width: ",";\n border-radius: ",";\n margin: ",";\n margin-left: 0;\n border: 2px solid #b3b3b3;\n"])),rt,rt,rt,"0"),ra=eE.ZP.li(eo||(eo=(0,eO.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0;\n\n & p {\n max-width: 90%;\n margin: 5px 0;\n }\n"]))),ri=function(e){var n=e.integration;return(0,ez.jsxs)(rn,{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#2E8540"})}),(0,ez.jsxs)("div",{children:[(0,ez.jsx)("span",{children:"Your integration has been approved. Please wait approx. 10 min to get access to your installation information access again."}),(0,ez.jsx)(re,{children:"Progress Update"}),(0,ez.jsx)(t2,{integration:n})]})]})},rs=function(){return(0,ez.jsxs)(rn,{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#2E8540"})}),(0,ez.jsx)("div",{children:(0,ez.jsx)("span",{children:"Your integration is approved and available."})})]})};function ro(e){return e.integration,(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to IDIM",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsxs)("p",{children:["Please reach out to IDIM if you do not hear back within the next 2-3 business days (",(0,ez.jsx)(ni.default,{href:"mailto:IDIM.Consulting@gov.bc.ca",children:"IDIM.Consulting@gov.bc.ca"}),")"]}),(0,ez.jsx)(eH.G,{icon:eV.FU$,color:"#b3b3b3"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})})}var rc=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasBceid,i=t.awaitingBceidProd,s=t.bceidProdApplying,o=t.bceidApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(ro,{integration:n})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to BCeID Prod"}),(0,ez.jsx)("br",{}),c]})};function rl(e){return e.integration,(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to GCIO",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})})}var ru=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasGithub,i=t.awaitingGithubProd,s=t.githubProdApplying,o=t.githubApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(rl,{integration:n})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to GitHub Prod"}),(0,ez.jsx)("br",{}),c]})},rd=t(19287),rp=eE.ZP.label(ec||(ec=(0,eO.Z)(["\n font-weight: bold;\n margin-bottom: 2px;\n"])));eE.ZP.div(el||(el=(0,eO.Z)(["\n background-color: #f1f1f1;\n margin: 2px 0 2px 0;\n padding: 4px 6px;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"});var rh=eE.ZP.div(eu||(eu=(0,eO.Z)(["\n text-align: center;\n"]))),rf=eE.ZP.div(ed||(ed=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),rx=function(){return(0,ez.jsxs)(rh,{children:[(0,ez.jsx)(rf,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]})},rv=(0,nt.hU)(function(e){var n,t,r,a,i=e.selectedRequest,s=e.alert,o=(0,eR.useState)(!1),c=(o[0],o[1]),l=(0,eR.useState)(!1),u=l[0],d=l[1],p=(0,eR.useState)(!1),h=p[0],f=p[1],x=(0,eR.useState)(""),v=x[0],m=x[1],g=(0,eR.useState)([]),b=g[0],j=g[1],y=(0,eR.useState)([]),w=y[0],Z=y[1],k=(0,eR.useState)(void 0),P=k[0];k[1];var S=(0,eR.useState)("dev"),C=S[0],I=S[1],D=(0,eR.useState)(!1),O=D[0],N=D[1],F=(null==i?void 0:i.environments)||[],R=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),m("Assigning role..."),N(!1),e.next=5,e5({environment:C,integrationId:i.id,username:n7(i.clientId),roleNames:n});case 5:if(t=e.sent,r=(0,eK.Z)(t,2)[1],f(!1),!r){e.next=15;break}return N(!0),m("Failed to update roles."),e.abrupt("return",!1);case 15:return m("Last saved at ".concat(new Date().toLocaleString())),e.abrupt("return",!0);case 17:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),2e3,{trailing:!0}),[null==i?void 0:i.id,C,P]),E=(t=(0,eD.Z)(eF().mark(function e(n,t){var r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],"clear"===t.action||(r="remove-value"===t.action?w.filter(function(e){var n;return e!==(null===(n=t.removedValue)||void 0===n?void 0:n.value)}):"pop-value"===t.action?(0,nA.Z)(w.slice(0,-1)):[].concat((0,nA.Z)(w),[null===(a=t.option)||void 0===a?void 0:a.value])),!(w.length!==r.length)){e.next=7;break}return e.next=5,R(r);case 5:e.sent&&Z(r);case 7:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)}),T=(r=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,c(!0);case 4:return e.next=6,eX({environment:C,integrationId:i.id,first:0,max:1e3});case 6:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],t[1]&&s.show({variant:"danger",content:"Failed to fetch roles."}),j(null===r?[]:r.map(function(e){return e.name})),c(!1);case 14:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),B=(a=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(!0);case 2:return e.next=4,e2({environment:C,integrationId:i.id,username:n});case 4:if(t=e.sent,a=(r=(0,eK.Z)(t,2))[0],!r[1]){e.next=12;break}return s.show({variant:"danger",content:"Failed to fetch roles."}),d(!1),e.abrupt("return");case 12:return e.next=14,Z(a||[]);case 14:d(!1);case 15:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)});return(0,eR.useEffect)(function(){T(),m(""),B(n7(i.clientId))},[C]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(rd.Z,{children:(0,ez.jsx)(nw.bZ,{variant:"info",closable:!1,"data-testid":"assign-svc-acct-role-risk-alert",children:(0,ez.jsxs)("span",{className:"normal",children:["There may be a security risk if you rely on client roles of a service account,"," ",(0,ez.jsx)(ni.default,{external:!0,href:(0,ns.eO)("Creating-a-Role#service-account-role-management"),children:"click to visit our wiki page"})]})})}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){I(e)},activeKey:C,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),F.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:5,children:(0,ez.jsx)(nH.Z,{headers:[{accessor:"projectName",Header:"Service Account"}],data:[{projectName:i.projectName}],colfilters:[],activateRow:n9(),rowSelectorKey:"projectName"})}),(0,ez.jsx)(e_.ZP.Col,{span:5,children:u?(0,ez.jsx)(rx,{}):(0,ez.jsxs)("div",{children:[(0,ez.jsx)(rp,{children:"Assign Service Account to a Role"}),(0,ez.jsx)("div",{"data-testid":"assign-svc-acct-to-role-select",children:(0,ez.jsx)(nZ.ZP,{value:w.map(function(e){return{value:e,label:e}}),options:b.map(function(e){return{value:e,label:e}}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:E})}),(0,ez.jsx)(nw.Ad,{saving:h,content:v,variant:O?"error":"success"})]})})]})})},e)})]})]})});function rm(){return(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to DIT",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsxs)("p",{children:["Please reach out to DIT if you do not hear back within the next 2-3 business days (",(0,ez.jsx)(ni.default,{href:"mailto:ditp.support@gov.bc.ca",children:"ditp.support@gov.bc.ca"}),")."]}),(0,ez.jsx)(eH.G,{icon:eV.FU$,color:"#b3b3b3"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})}var rg=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasDigitalCredential,i=t.awaitingDigitalCredentialProd,s=t.digitalCredentialProdApplying,o=t.digitalCredentialApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(rm,{})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to Digital Credential Prod"}),(0,ez.jsx)("br",{}),c]})},rb=t(29009),rj=t(41087),ry=t(14195),rw=t(3023),rZ=t(75358),rk=t(26050),rP=t(33558),rS=t(18242),rC=t(84642),rI=(m=(0,eD.Z)(eF().mark(function e(n,t,r,a){var i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.get("requests/".concat(n,"/metrics?env=").concat(t,"&fromDate=").concat(r,"&toDate=").concat(a)).then(function(e){return null==e?void 0:e.data});case 3:return i=e.sent,e.abrupt("return",[i,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n,t,r){return m.apply(this,arguments)}),rD=(g=(0,eD.Z)(eF().mark(function e(n,t,r,a,i,s){var o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,eY.e)({url:"requests/".concat(n,"/logs?env=").concat(t,"&start=").concat(r,"&end=").concat(a),method:"GET",responseType:"blob",onDownloadProgress:i,signal:null==s?void 0:s.signal}).then(function(e){return null==e?void 0:e.data});case 3:return o=e.sent,e.abrupt("return",[o,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n,t,r,a,i){return g.apply(this,arguments)}),rO=t(9198),rN=t.n(rO);t(24394);var rF=t(31879);function rR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function rE(e){return(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsx)(rN(),function(e){for(var n=1;n * {\n margin-left: 15px;\n }\n"])));eE.ZP.label(eh||(eh=(0,eO.Z)(["\n margin-bottom: 2px;\n"])));var rz=eE.ZP.div(ef||(ef=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"])));eE.ZP.span(ex||(ex=(0,eO.Z)(["\n color: #000;\n font-size: 1.1rem;\n font-weight: bold;\n"]))),(0,eE.ZP)(eH.G)(ev||(ev=(0,eO.Z)(["\n margin-right: 20px;\n"]))),eE.ZP.div(em||(em=(0,eO.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"]))),eE.ZP.hr(eg||(eg=(0,eO.Z)(["\n background-color: black;\n"])));var rG=function(e){return"".concat(e.getFullYear(),"-").concat(e.getMonth()+1,"-").concat(e.getDate())},rU="December 01, 2023",rq=(0,nt.hU)(function(e){var n,t=e.integration,r=e.alert,a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(null==t?void 0:t.environments)||[],c=(0,eR.useState)([]),l=c[0],u=c[1],d=(0,eR.useState)(!1);d[0],d[1];var p=(0,eR.useState)((0,ne.F3)(14)),h=p[0],f=p[1],x=(0,eR.useState)(new Date),v=x[0],m=x[1],g=function(e){f(e)},b=function(e){m(e)},j=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n,a,i){var s,o,c;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rI(null==t?void 0:t.id,i,n,a);case 2:s=e.sent,c=(o=(0,eK.Z)(s,2))[0],o[1]?r.show({variant:"danger",content:"Failed to fetch metrics"}):u(c);case 7:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})),[null==t?void 0:t.clientId,i,h,v]);return(0,eR.useEffect)(function(){j(rG(h),rG(v),i)},[null==t?void 0:t.clientId,i,h,v]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(rz,{}),(0,ez.jsx)("div",{children:(0,ez.jsxs)(rA,{children:[(0,ez.jsx)(rE,{placeholderText:"Start Date",selected:new Date(h),onChange:function(e){return g(e)},minDate:new Date(rU),maxDate:v,label:"Start Date"}),(0,ez.jsx)(rE,{placeholderText:"End Date",selected:new Date(v),onChange:function(e){return b(e)},minDate:h,label:"End Date"})]})}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){s(e)},activeKey:i,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),o.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)("div",{style:{width:"100%",height:300},children:(null==l?void 0:l.length)>0?(0,ez.jsx)(rb.h,{children:(0,ez.jsxs)(rj.v,{data:l,margin:{top:20,right:20,bottom:30,left:20},children:[(0,ez.jsx)(ry.q,{strokeDasharray:"3 3"}),(0,ez.jsx)(rw.K,{dataKey:"event",tick:{fontSize:10},label:{value:"Events",position:"insideBottomRight"}}),(0,ez.jsx)(rZ.B,{dataKey:"count",label:{value:"Count",angle:-90,position:"insideLeft"}}),(0,ez.jsx)(rk.u,{}),(0,ez.jsx)(rP.D,{}),(0,ez.jsx)(rS.$,{dataKey:"count",fill:"#0d6efd",barSize:30,label:{fill:"#0d6efd",fontSize:20,position:"top"},background:{fill:"#eee"}})]})}):(0,ez.jsx)("div",{style:{textAlign:"center"},children:(0,ez.jsx)(rC.x,{children:"No data available yet!"})})})},e)})]}),(0,ez.jsxs)(nr.$,{children:["This tab was released ",rU,". Please refer to"," ",(0,ez.jsx)(rB.rU,{href:"https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.4/html/server_administration_guide/auditing_and_events#event_types",external:!0,children:"here"})," ","for event type details."]})]})}),rL=(0,eE.ZP)(nh.default)(eb||(eb=(0,eO.Z)(["\n width: 150px;\n text-align: center;\n"]))),rM=eE.ZP.form(ej||(ej=(0,eO.Z)(["\n display: flex;\n flex-direction: column;\n row-gap: 1.5em;\n\n .header {\n margin-top: 1em;\n display: flex;\n align-items: center;\n p {\n font-weight: bold;\n padding-right: 0.4em;\n margin: 0;\n font-size: 18px;\n }\n }\n\n .bold {\n font-weight: bold;\n }\n\n .env-controls {\n margin: 0;\n legend {\n font-size: unset;\n font-weight: bold;\n }\n\n input {\n margin-right: 0.2em;\n }\n\n label {\n margin-right: 1em;\n }\n }\n\n .date-picker-container {\n height: 100%;\n display: flex;\n align-items: center;\n column-gap: 1em;\n }\n\n select {\n margin-left: 0.5em;\n width: 200px;\n }\n\n .button-container {\n display: flex;\n flex-diretion: row;\n align-items: center;\n\n p {\n margin: 0;\n margin-left: 1em;\n }\n }\n\n .error-text {\n font-size: 14px;\n color: red;\n margin: 0;\n height: 1em;\n }\n"]))),rK=function(e,n){var t=new Blob([JSON.stringify(n)],{type:"text/json"}),r=document.createElement("a");r.download=e,r.href=window.URL.createObjectURL(t),r.dataset.downloadurl=["text/json",r.download,r.href].join(":");var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});r.dispatchEvent(a),r.remove()},rH={dev:"Development",test:"Test",prod:"Production"},rV=new Date("February 13, 2024"),r_=(0,nt.hU)(function(e){var n,t=e.integration,r=e.alert,a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(null==t?void 0:t.environments)||[],c=(0,eR.useState)(!1),l=c[0],u=c[1],d=(0,eR.useState)((0,ne.F3)(1)),p=d[0],h=d[1],f=(0,eR.useState)(new Date),x=f[0],v=f[1],m=(0,eR.useState)(""),g=m[0],b=m[1],j=(0,eR.useState)(0),y=j[0],w=j[1],Z=(0,eR.useState)(new Date),k=Z[0],P=Z[1],S=(0,eR.useState)(),C=S[0],I=S[1];(0,eR.useEffect)(function(){p&&(Date.now()-p.getTime()>1728e5?P(new Date(p.getTime()+1728e5)):P(new Date),x&&(x.getTime()1728e5)&&v(null))},[p]),(0,eR.useEffect)(function(){x&&p&&x.getTime()0&&w(e[0])}else(null==e?void 0:e.length)>0&&w(e[0])},k=(t=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,(0,n8.XJ)();case 3:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],f(!!t[1]),Z(r||[]),d(!1);case 10:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,eR.useEffect)(function(){k(),o.replace("/my-dashboard/integrations")},[]),(0,eR.useEffect)(function(){return(0,ne.rn)(v||[])&&(clearInterval(r),r=setInterval((0,eD.Z)(eF().mark(function e(){var n,t,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n8.XJ)();case 2:n=e.sent,a=(t=(0,eK.Z)(n,2))[0],t[1]?clearInterval(r):Z(a||[]);case 7:case"end":return e.stop()}},e)})),5e3)),function(){r&&clearInterval(r)}},[v,b]);var P=h?(0,ez.jsx)(ac.q1,{}):v&&0!==v.length?(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nw.h4,{size:"lg",children:"INTEGRATIONS"}),(0,ez.jsx)(nH.Z,{headers:[{accessor:"id",Header:"Request ID"},{accessor:"projectName",Header:"Project Name"},{accessor:"status",Header:"Status"},{accessor:"authType",Header:"Usecase"},{accessor:"serviceType",Header:"Service Type"},{accessor:"actions",Header:(0,ez.jsx)(ad,{}),disableSortBy:!0}],data:null==v?void 0:v.map(function(e){return{id:ap(e.id),projectName:e.projectName,status:(0,tG.n)(e.status||"draft"),authType:ao.F[e.authType||"browser-login"],serviceType:"Gold",actions:(0,ez.jsx)(al,{children:(0,ez.jsx)(nK.ZP,{request:e,onDelete:function(n,t){t?s.show({variant:"danger",content:"Failed to delete integration ".concat(e.projectName,".")}):k()},defaultActiveColor:"#fff",delIconStyle:{marginLeft:"7px"}})})}}),activateRow:function(e){var n=e.cells[0].value;v.forEach(function(e){e.id==n&&w(e)})},activeSelector:b&&ap(b),rowSelectorKey:"id",colfilters:[]})]}):(0,ez.jsx)(ac.Vs,{message:"No Requests Submitted"});return u?(0,ez.jsx)(t5.Z,{}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(ah,{handleNewIntegrationClick:y,integrations:v}),(0,ez.jsx)("br",{}),(0,ez.jsx)("br",{}),P]})}),ax=t(6178),av=eE.ZP.div(eI||(eI=(0,eO.Z)(["\n display: flex;\n flex-direction: column;\n flex-basis: 100%;\n flex: 1;\n"]))),am=function(e){e.session;var n,t=(0,as.useRouter)(),r=(0,eR.useState)(null),a=r[0],i=r[1],s=(0,eR.useState)(1),o=s[0],c=s[1],l=(0,eR.useState)(!1),u=(l[0],l[1]),d="integration-failed-modal",p=(n=(0,eD.Z)(eF().mark(function e(){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.location.hash=d);case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),h=(0,eR.useState)(""),f=h[0],x=h[1];return(0,eR.useEffect)(function(){var e;x(t.query.requestId),(null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.integrationFailedMessageModal)==="true"&&(u(!0),p())},[t.query.showModal]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(ax.Z,{tab:"integrations",leftPanel:function(){return(0,ez.jsx)(af,{setIntegration:i,setIntegrationCount:c})},rightPanel:function(){return a&&(0,ez.jsx)(ai,{integration:a})},showResizable:o>0}),(0,ez.jsx)(nf.Z,{title:"".concat(f," - Integration request failed"),icon:eV.eHv,id:d,content:(0,ez.jsxs)("div",{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)("p",{children:"The integration request could not be completed. Please contact the Pathfinder SSO Team."})}),(0,ez.jsxs)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%"},children:[(0,ez.jsx)(av,{children:(0,ez.jsx)("div",{children:(0,ez.jsxs)("a",{href:"https://chat.developer.gov.bc.ca/channel/sso",target:"_blank",title:"Rocket Chat",style:{color:"#0d6efd"},children:[(0,ez.jsx)(eH.G,{size:"1x",icon:eV.Z6I,color:"#0d6efd"})," Rocketchat"]})})}),(0,ez.jsx)(av,{children:(0,ez.jsx)("div",{children:(0,ez.jsxs)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"Pathfinder SSO",style:{color:"#0d6efd"},children:[(0,ez.jsx)(eH.G,{size:"1x",icon:eV.FU$,color:"#0d6efd"})," Email"]})})})]})]}),showCancel:!1,showConfirm:!1,closable:!0})]})}},76944:function(e,n,t){"use strict";t.d(n,{v:function(){return c}});var r,a=t(50029),i=t(87794),s=t.n(i),o=t(21963),c=(r=(0,a.Z)(s().mark(function e(n){var t;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.e.post("events",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[t,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return r.apply(this,arguments)})},37226:function(e,n,t){"use strict";t.d(n,{A_:function(){return P},H0:function(){return C},Jl:function(){return F},OS:function(){return D},Uw:function(){return R},WN:function(){return N},XJ:function(){return S},ct:function(){return I},hG:function(){return k},zD:function(){return O}});var r,a,i,s,o,c,l,u,d,p,h=t(50029),f=t(87794),x=t.n(f),v=t(21963),m=t(75316),g=t.n(m),b=t(25751),j=t.n(b),y=t(76427),w=t.n(y),Z=t(31513),k=(r=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return r.apply(this,arguments)}),P=(a=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("request",{requestId:j()(n)?parseInt(n):n}).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return a.apply(this,arguments)}),S=(i=(0,h.Z)(x().mark(function e(){var n,t,r=arguments;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={params:{include:r.length>0&&void 0!==r[0]?r[0]:"active"}},e.prev=2,e.next=5,v.e.get("requests",n).then(function(e){return e.data});case 5:return t=e.sent,t=g()(t,["createdAt"],["desc"]),e.abrupt("return",[t.map(Z.UB),null]);case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return",(0,v.z)(e.t0));case 13:case"end":return e.stop()}},e,null,[[2,10]])})),function(){return i.apply(this,arguments)}),C=(s=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.get("team-integrations/".concat(n)).then(function(e){return e.data});case 3:return t=e.sent,t=g()(t,["createdAt"],["desc"]),e.abrupt("return",[t.map(Z.UB),null]);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(e){return s.apply(this,arguments)}),I=(o=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.get("requests/".concat(n,"/resubmit")).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return o.apply(this,arguments)}),D=(c=(0,h.Z)(x().mark(function e(n,t){var r;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests/".concat(n,"/restore"),{email:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[(0,Z.UB)(r),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return c.apply(this,arguments)}),O=(l=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests-all",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[{count:t.count,rows:t.rows.map(Z.UB)},null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return l.apply(this,arguments)}),N=(u=(0,h.Z)(x().mark(function e(n){var t,r,a,i,s,o=arguments;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>1&&void 0!==o[1]&&o[1],e.prev=1,i="requests",t&&(i="".concat(i,"?submit=true")),(n=w()(n,["user","lastChanges"])).devLoginTitle=n.devLoginTitle||"",n.testLoginTitle=n.testLoginTitle||"",n.prodLoginTitle=n.prodLoginTitle||"",n.additionalRoleAttribute=n.additionalRoleAttribute||"",n.clientId=n.clientId||"",n.primaryEndUsers=null!==(r=n.primaryEndUsers)&&void 0!==r?r:[],n.primaryEndUsersOther=null!==(a=n.primaryEndUsersOther)&&void 0!==a?a:"",e.next=14,v.e.put(i,n).then(function(e){return e.data});case 14:return s=e.sent,e.abrupt("return",[(0,Z.UB)(s),null]);case 18:return e.prev=18,e.t0=e.catch(1),e.abrupt("return",(0,v.z)(e.t0));case 21:case"end":return e.stop()}},e,null,[[1,18]])})),function(e){return u.apply(this,arguments)}),F=(d=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.delete("requests",{params:{id:n}}).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[t,null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return d.apply(this,arguments)}),R=(p=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.put("request-metadata",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return p.apply(this,arguments)})},73923:function(e,n,t){"use strict";t.d(n,{Di:function(){return i},ON:function(){return r},TE:function(){return a}});var r=function(e){return JSON.stringify(e,void 0,2)},a=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.focus(),n.select();try{return document.execCommand("copy"),document.body.removeChild(n),!0}catch(e){return document.body.removeChild(n),!1}},i=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=window.URL.createObjectURL(new Blob([e],{type:t})),a=document.createElement("a");a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click(),document.body.removeChild(a)}},80382:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/integrations",function(){return t(21560)}])}},function(e){e.O(0,[662,528,591,442,759,184,954,774,888,179],function(){return e(e.s=80382)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[950],{83333:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r,a=t(71383);t(67294);var i=t(71893),s=t(31513),o=t(85893),c=i.ZP.div(r||(r=(0,a.Z)(["\n margin-top: 20px;\n max-height: calc(100vh - 250px);\n overflow: auto;\n"])));function l(e){var n=e.events;return(0,o.jsx)(c,{children:n&&0!==n.length?n.map(function(e){var n;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Event Code: "}),e.eventCode]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created Time: "}),(n=e.createdAt,new Date(n).toLocaleString())]}),e.idirUserDisplayName&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:"Created By: "}),e.idirUserDisplayName]})}),e.details&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("strong",{children:"Details"})}),"request-update-success"===e.eventCode?(0,o.jsxs)(o.Fragment,{children:[(0,s.Sx)(e.details.changes),(0,o.jsx)("strong",{children:"Comment: "}),(0,o.jsx)("p",{children:e.details.comment})]}):(0,o.jsx)("pre",{children:(0,o.jsx)("code",{children:JSON.stringify(e.details||{},void 0,2)})})]}),(0,o.jsx)("hr",{})]},e.id)}):(0,o.jsx)("div",{children:"No events found"})})}},63005:function(e,n,t){"use strict";t.d(n,{S:function(){return r}});var r={idir:"IDIR",azureidir:"IDIR - MFA",bceidbasic:"Basic BCeID",bceidbusiness:"Business BCeID",bceidboth:"Basic or Business BCeID",githubbcgov:"GitHub BC Gov",githubpublic:"GitHub",digitalcredential:"Digital Credential"}},71057:function(e,n,t){"use strict";var r=t(83024),a=t(63055),i={shared:{button:"\n border-radius: 0.222em;\n border-width: 0;\n padding: 0.6em 1.1em;\n text-align: center;\n text-decoration: none;\n font-weight: 700;\n letter-spacing: 1px;\n display: inline-block;\n cursor: pointer;\n box-shadow: 0px 0px 0px 2px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;\n "},size:{xsmall:{button:"\n font-size: 0.7rem;\n "},small:{button:"\n font-size: 0.8rem;\n "},medium:{button:"\n font-size: ".concat(a.n5,";\n ")},large:{button:"\n font-size: ".concat(a.zA,";\n ")}},variant:{primary:{button:"\n background-color: #D5EDFF;\n box-shadow: 0px 0px 0px 2px #D5EDFF inset !important;\n color: #3E3E3E;\n\n &:hover {\n text-decoration: underline;\n background-color: #FFF7D5;\n box-shadow: 0px 0px 0px 2px #FFF7D5 inset !important;\n opacity: 0.80;\n }\n\n &:active {\n opacity: 1;\n }\n "},grey:{button:"\n background-color: #B2B2B2;\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n color: #F8F8F8;\n min-width: 110px;\n\n &:hover {\n background-color: ".concat(a.TU,";\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n }\n ")}}},s=(0,r.applyTheme)(i,{defaultProps:{variant:"primary",size:"medium"},breakProps:[],staticProps:["fullHeight","fullWidth"]});n.Z=s},77740:function(e,n,t){"use strict";t.d(n,{F:function(){return r}});var r={"browser-login":"Browser Login","service-account":"Service Account",both:"Browser Login & Service Account"}},6178:function(e,n,t){"use strict";var r,a=t(71383);t(67294);var i=t(11163),s=t(46312),o=t(71893),c=t(85330),l=t(59912),u=t(49910),d=t(85893),p=o.ZP.div(r||(r=(0,a.Z)(["\n height: 100%;\n overflow: auto;\n"])));n.Z=function(e){var n=e.tab,t=e.leftPanel,r=e.rightPanel,a=e.showResizable;e.children;var o=(0,i.useRouter)(),h=(0,d.jsxs)(c.mQ,{onChange:function(e){o.replace("/my-dashboard/".concat(e))},activeKey:n,tabBarGutter:30,children:[(0,d.jsx)(c.OK,{tab:"My Projects"},"integrations"),(0,d.jsx)(c.OK,{tab:"My Teams"},"teams")]});return(0,d.jsxs)(l.Z,{rules:u.F,children:[h,void 0===a||a?(0,d.jsx)(s.e,{style:{paddingTop:"2px",borderBottom:"3px solid black"},defaultSize:{width:"100%",height:.4*window.innerHeight},enable:{bottom:!0},handleStyles:{bottom:{bottom:0}},children:(0,d.jsx)(p,{children:t&&t()})}):t&&t(),(0,d.jsx)("br",{}),r&&r()]})}},21560:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return am}});var r,a,i,s,o,c,l,u,d,p,h,f,x,v,m,g,b,j,y,w,Z,k,P,S,C,I,D,O,N,F,R,E,T,B,A,z,G,U,q,L,M,K,H,V,_,W,Y,J,$,Q,X,ee,en,et,er,ea,ei,es,eo,ec,el,eu,ed,ep,eh,ef,ex,ev,em,eg,eb,ej,ey,ew,eZ,ek,eP,eS,eC,eI,eD=t(50029),eO=t(71383),eN=t(87794),eF=t.n(eN),eR=t(67294),eE=t(71893),eT=t(59499),eB=t(16530),eA=t(69829),ez=t(85893);function eG(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function eU(e){for(var n=1;nsvg {\n overflow: initial;\n }\n ",close:"\n cursor: pointer !important;\n text-align: center;\n text-decoration: none;\n border-radius: 0.2222em;\n padding: 0.4em 0.5em;\n margin-right: 20px;\n "},size:{small:{container:"\n font-size: 0.8rem;\n "},medium:{container:"\n font-size: 1rem;\n "},large:{container:"\n font-size: 1.2rem;\n "}},variant:{success:{container:"\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #2d4821;\n\n & a {\n color: #2b542c;\n }\n ",content:"\n color: #2d4821;\n ",close:"\n color: #2d4821;\n border: 1px solid #2d4821;\n\n &:hover {\n background: #2d4821;\n color: #fff;\n }\n ",group:"\n color: #2d4821;\n "},info:{container:"\n background-color: #d9eaf7;\n border-color: #afd3ee;\n color: #313132;\n\n & a {\n color: #1a5a96;\n }\n ",content:"\n color: #313132;\n ",close:"\n color: #313132;\n border: 1px solid #313132;\n\n &:hover {\n background: #313132;\n color: #fff;\n }\n ",group:"\n color: #313132;\n "},warning:{container:"\n background-color: #f9f1c6;\n border-color: #faebcc;\n color: #6c4a00;\n\n & a {\n color: #66512c;\n }\n ",content:"\n color: #66512c;\n ",close:"\n color: #66512c;\n border: 1px solid #66512c;\n\n &:hover {\n background: #66512c;\n color: #fff;\n }\n ",group:"\n color: #66512c;\n "},danger:{container:"\n background-color: #f2dede;\n border-color: #ebccd1;\n color: #a12622;\n\n & a {\n color: #843534;\n }\n ",content:"\n color: #a12622;\n ",close:"\n color: #a12622;\n border: 1px solid #a12622;\n\n &:hover {\n background: #a12622;\n color: #fff;\n }\n ",group:"\n color: #a12622;\n "}},flex:{container:"\n display: flex;\n ",group:"\n margin: auto 0.5rem;\n "}},{defaultProps:{variant:"info",size:"medium",flex:!0},staticProps:[]},{group:{align:{left:"\n margin-right: auto;\n ",right:"\n margin-left: auto;\n "}}}),eL=function(e){switch(e){case"success":return eA.CheckCircle;case"info":return eA.InfoCircle;case"warning":return eA.ExclamationTriangle;default:return eA.ExclamationCircle}};function eM(e){return(0,ez.jsxs)(eq,eU(eU({},e),{},{children:[(0,ez.jsx)(eq.Group,{style:{marginTop:"1px"},children:(0,ez.jsx)(eA.FaSVG,{children:(0,ez.jsx)("path",{fill:"currentColor",d:eL(e.variant)})})}),(0,ez.jsx)(eq.Content,{children:e.content?e.content:e.children}),e.closable&&(0,ez.jsx)(eq.Group,{align:"right",children:(0,ez.jsx)(eq.Close,{children:"x"})})]}))}var eK=t(16835),eH=t(99603),eV=t(59417),e_=t(64735),eW=t(42894),eY=t(21963),eJ=(r=(0,eD.Z)(eF().mark(function e(n,t){var r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.post("installation",{requestId:n,environment:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[r,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return r.apply(this,arguments)}),e$=(a=(0,eD.Z)(eF().mark(function e(n,t){var r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.put("installation",{requestId:n,environment:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[r,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return a.apply(this,arguments)}),eQ=(i=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.idp,a=n.property,i=n.searchKey,s=n.integrationId,e.prev=1,e.next=4,eY.e.post("keycloak/users",{environment:t,idp:r,property:a,searchKey:i,integrationId:s}).then(function(e){return e.data});case 4:return o=e.sent,e.abrupt("return",[o,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return i.apply(this,arguments)}),eX=(s=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,i=void 0===(a=n.search)?"":a,e.prev=1,e.next=4,eY.e.post("keycloak/roles",{environment:t,integrationId:r,search:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return s.apply(this,arguments)}),e0=(o=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,i=n.compositeRoleNames,e.prev=1,e.next=4,eY.e.post("keycloak/set-composite-roles",{environment:t,integrationId:r,roleName:a,compositeRoleNames:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return o.apply(this,arguments)}),e1=(c=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,e.prev=1,e.next=4,eY.e.post("keycloak/get-composite-roles",{environment:t,integrationId:r,roleName:a}).then(function(e){return e.data});case 4:return i=e.sent,e.abrupt("return",[i,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return c.apply(this,arguments)}),e2=(l=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,s=void 0===(i=n.first)?0:i,c=void 0===(o=n.max)?50:o,e.prev=1,e.next=4,eY.e.post("keycloak/user-roles",{environment:t,integrationId:r,username:a,first:s,max:c}).then(function(e){return e.data});case 4:return l=e.sent,e.abrupt("return",[l,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return l.apply(this,arguments)}),e3=(u=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,i=n.roleName,s=n.mode,e.prev=1,e.next=4,eY.e.put("keycloak/user-role",{environment:t,integrationId:r,username:a,roleName:i,mode:s}).then(function(e){return e.data});case 4:return o=e.sent,e.abrupt("return",[o,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return u.apply(this,arguments)}),e5=(d=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.username,i=n.roleNames,e.prev=1,e.next=4,eY.e.put("keycloak/user-roles",{environment:t,integrationId:r,username:a,roleNames:i}).then(function(e){return e.data});case 4:return s=e.sent,e.abrupt("return",[s,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return d.apply(this,arguments)}),e4=(p=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,s=void 0===(i=n.first)?0:i,c=void 0===(o=n.max)?50:o,e.prev=1,e.next=4,eY.e.post("keycloak/role-users",{environment:t,integrationId:r,roleName:a,first:s,max:c}).then(function(e){return e.data});case 4:return l=e.sent,e.abrupt("return",[l,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return p.apply(this,arguments)}),e8=(h=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.integrationId,r=n.roles,e.prev=1,e.next=4,eY.e.post("keycloak/bulk-roles",{integrationId:t,roles:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return h.apply(this,arguments)}),e7=(f=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.environment,r=n.integrationId,a=n.roleName,e.prev=1,e.next=4,eY.e.post("keycloak/delete-role",{environment:t,integrationId:r,roleName:a}).then(function(e){return e.data});case 4:return i=e.sent,e.abrupt("return",[i,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return f.apply(this,arguments)}),e6=t(71057),e9=t(73923),ne=t(31513),nn=t(63055),nt=t(15812),nr=t(44e3),na=t(63005),ni=t(74150),ns=t(90352),no=eE.ZP.div(b||(b=(0,eO.Z)(["\n text-align: center;\n"]))),nc=eE.ZP.div(j||(j=(0,eO.Z)(["\n color: #000;\n font-size: ",";\n font-weight: bold;\n"])),nn.n5),nl=eE.ZP.span(y||(y=(0,eO.Z)(["\n color: #3e3e3e;\n font-size: 14px;\n font-weight: 700;\n"]))),nu=eE.ZP.div(w||(w=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),nd=eE.ZP.div(Z||(Z=(0,eO.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n border-bottom: 1px solid gray;\n"]))),np=(0,nt.hU)(function(e){var n,t,r,a=e.integration,i=e.alert,s=(0,eR.useState)(!1),o=s[0],c=s[1],l=(n=(0,eD.Z)(eF().mark(function e(n){var t,r,s,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,eJ(a.id,n);case 3:if(t=e.sent,s=(r=(0,eK.Z)(t,2))[0],o=r[1],c(!1),!o){e.next=11;break}return i.show({variant:"danger",content:"Failed to download installation"}),e.abrupt("return",null);case 11:return e.abrupt("return",s);case 12:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),u=(t=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:(t=e.sent)&&(0,e9.TE)((0,e9.ON)(t));case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),d=(r=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:(t=e.sent)&&(0,e9.Di)((0,e9.ON)(t),"".concat(a.projectName,"-installation-").concat(n,".json"));case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return o?(0,ez.jsxs)(no,{children:[(0,ez.jsx)(nu,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nu,{}),(0,ez.jsx)(nd,{children:"Installation JSONs"}),(0,ez.jsx)("br",{}),(0,ez.jsx)(e_.ZP,{cols:3,children:(0,ne.Dy)(a).map(function(e){if("service-account"!==a.authType&&0===e.idps.length)return null;var n=e.idps.length>0?"(".concat(e.idps.map(function(e){return na.S[e]}).join(", "),")"):"";return(0,ez.jsxs)(eR.Fragment,{children:[(0,ez.jsx)(e_.ZP.Row,{collapse:"992",gutter:[],align:"center",children:(0,ez.jsx)(e_.ZP.Col,{span:1,style:{width:"100%",height:"30px"},children:(0,ez.jsxs)(nc,{children:[e.display," ",n]})})}),(0,ez.jsx)(e_.ZP.Row,{collapse:"992",gutter:[],align:"center",children:(0,ez.jsxs)(e_.ZP.Col,{span:3,children:[(0,ez.jsx)(e6.Z,{size:"medium",variant:"grey",onClick:function(){return u(e.name)},children:"Copy"}),"\xa0",(0,ez.jsx)(e6.Z,{size:"medium",variant:"grey",onClick:function(){return d(e.name)},children:"Download"}),"\xa0\xa0",(0,ez.jsx)(eH.G,{color:"green",icon:eV.f8k,title:"Ready"}),"\xa0",(0,ez.jsx)(nl,{children:"Ready"})]})}),(0,ez.jsx)("br",{})]},e.name)})}),(0,ez.jsxs)(nr.$,{children:["For more information on how to use these details, or for the public endpoints associated to your client,"," ",(0,ez.jsx)(ni.default,{href:"".concat(ns.UN,"/integrating-your-application/installation-json"),external:!0,children:"click to learn more on our wiki page"}),"."]})]})}),nh=t(4826),nf=t(61165),nx=eE.ZP.div(k||(k=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),nv=eE.ZP.span(P||(P=(0,eO.Z)(["\n color: #000;\n font-size: 1.1rem;\n font-weight: bold;\n"])));(0,eE.ZP)(eH.G)(S||(S=(0,eO.Z)(["\n margin-right: 20px;\n"])));var nm=eE.ZP.div(C||(C=(0,eO.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"])));eE.ZP.hr(I||(I=(0,eO.Z)(["\n background-color: black;\n"])));var ng=(0,nt.hU)(function(e){var n,t=e.selectedRequest,r=e.alert,a=(0,eR.useState)(null),i=a[0],s=a[1],o=(0,ne.Dy)(t),c=function(e){s(e),window.location.hash="confirm-new-secret"},l=(n=(0,eD.Z)(eF().mark(function e(){var n,a,s,o,c,l;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,e$(t.id,(null==i?void 0:i.name)||null);case 2:n=e.sent,s=(a=(0,eK.Z)(n,2))[0],c=(o=a[1])?"danger":"success",l=o?"Failed to regenerate secret":"Client Secret Successfully Updated",r.show({variant:c,fadeOut:1e4,closable:!0,content:l}),window.location.hash="#",console.error(s,o);case 11:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),u=(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(nm,{children:[(0,ez.jsxs)("strong",{children:["You are about to change your client secret for your ",null==i?void 0:i.display," environment."]})," "]}),(0,ez.jsx)("br",{}),(0,ez.jsx)("p",{children:"Once you change your secret, your previous secret will no longer be valid for any applications using it."}),(0,ez.jsx)("p",{children:"This means you will need to update any applications using this client with the new JSON details before they are functional again."})]});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nx,{}),o.map(function(e){return(0,ez.jsxs)(eR.Fragment,{children:[(0,ez.jsxs)(nv,{children:[e.display,": "]}),!t.publicAccess&&(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(nh.default,{type:"button",onClick:function(){return c(e)},children:"Change your client secret"})]}),(0,ez.jsx)("br",{}),(0,ez.jsx)("br",{})]},e.name)})]}),(0,ez.jsx)(nf.Z,{id:"confirm-new-secret",content:u,onConfirm:l,icon:eV.eHv,buttonStyle:"custom",title:"You are about to change your client secret",closable:!0})]})}),nb=t(20070),nj=t.n(nb),ny=t(30233),nw=t(85330),nZ=t(23157),nk=t(11915),nP=t(43590),nS=t.n(nP);function nC(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function nI(e){for(var n=1;n * {\n padding-right: 0.5rem;\n }\n"]))),nF=eE.ZP.div(F||(F=(0,eO.Z)(["\n padding-top: 10px;\n padding-bottom: 10px;\n"]))),nR=eE.ZP.div(R||(R=(0,eO.Z)(["\n color: #ff0000;\n"]))),nE={name:"",envs:["dev"]},nT=(0,eR.forwardRef)(function(e,n){var t,r=e.integrationId,a=e.environments,i=void 0===a?["dev"]:a,s=(0,eR.useState)(!1),o=s[0],c=s[1],l=(0,eR.useState)({}),u=l[0],d=l[1],p=(0,eR.useState)({}),h=p[0],f=p[1],x=(0,eR.useState)([nE]),v=x[0],m=x[1];(0,eR.useImperativeHandle)(n,function(){var e;return{submit:(e=(0,eD.Z)(eF().mark(function e(){var n,t,a,i,s,l,p,h;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=v,o&&(n=[],nS()(u,function(e,t){n.push({name:t,envs:e})})),e.next=4,e8({integrationId:r,roles:n});case 4:if(t=e.sent,i=(a=(0,eK.Z)(t,2))[0],!a[1]){e.next=10;break}return e.abrupt("return",[!0,!1]);case 10:return s={},l={},p=!1,h=!1,nS()(i,function(e){e.failure.length>0&&nS()(e.failure,function(n){s[n]||(s[n]=[]),s[n].push(e.env),p=!0}),e.duplicate.length>0&&nS()(e.duplicate,function(n){l[n]||(l[n]=[]),l[n].push(e.env),h=!0})}),d(s),f(l),c(!0),e.abrupt("return",[p,h]);case 19:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),reset:function(){m([nE]),d({}),f({}),c(!1)}}});var g=function(e){m(v.filter(function(n,t){return t!==e}))},b=function(e,n){m(v.map(function(t,r){return r===e?{name:n,envs:t.envs}:t}))},j=(t=(0,eD.Z)(eF().mark(function e(n,t,r){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:m(v.map(function(e,r){return r===n?{name:e.name,envs:t.map(function(e){return e.value})}:e}));case 2:case"end":return e.stop()}},e)})),function(e,n,r){return t.apply(this,arguments)}),y=null;if(o){var w=null,Z=null;Object.keys(h).length>0&&(w=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:(0,ez.jsxs)(nN,{children:[(0,ez.jsx)(nF,{children:(0,ez.jsx)(eH.G,{icon:eV.sqG,color:"#17a2b8",title:"duplicated roles",size:"lg"})}),(0,ez.jsx)(nF,{children:"There are duplicated roles and we've skipped adding them."})]})})})),Object.keys(u).length>0&&(Z=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:(0,ez.jsxs)(nN,{children:[(0,ez.jsx)(nF,{children:(0,ez.jsx)(eH.G,{icon:eV.eHv,color:"#dc3545",title:"failed roles",size:"lg"})}),(0,ez.jsxs)(nF,{children:["We were unable to save some of your changes.",(0,ez.jsx)("br",{}),(0,ez.jsx)("div",{className:"fw-bold",children:"Please try submitting again."})]})]})})})),y=(0,ez.jsxs)(ez.Fragment,{children:[w,Z]})}else y=(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:v.length<20?(0,ez.jsxs)(nO,{onClick:function(){m(v.concat(nE))},children:[(0,ez.jsx)(eH.G,{style:{color:"#006fc4"},icon:eV.KtF,title:"Add Role"}),(0,ez.jsx)("span",{children:"Add another role"})]}):(0,ez.jsx)(nR,{children:"You can only create 20 roles at a time. Please save before creating any new roles."})})});return(0,ez.jsx)("div",{children:(0,ez.jsxs)(nD,{children:[(0,ez.jsx)("thead",{children:(0,ez.jsxs)("tr",{children:[(0,ez.jsx)("th",{className:"role",children:"Role Name"}),(0,ez.jsx)("th",{className:"env",children:"Environments"}),(0,ez.jsx)("th",{})]})}),(0,ez.jsxs)("tbody",{children:[v.length>0?v.map(function(e,n){var t=function(n,t){return u[e.name]&&u[e.name].includes(t.children)?nI(nI({},n),{},{color:"#fff",backgroundColor:"#dc3545"}):h[e.name]&&h[e.name].includes(t.children)?nI(nI({},n),{},{color:"#fff",backgroundColor:"#17a2b8"}):n};return(0,ez.jsxs)("tr",{children:[(0,ez.jsx)("td",{className:"role",children:(0,ez.jsx)(nk.default,{size:"small","data-testid":"role-name-input-field",minLength:"2",maxLength:"100",value:e.name,disabled:o,onChange:function(e){return b(n,e.target.value)}})}),(0,ez.jsx)("td",{className:"env",children:(0,ez.jsx)(nZ.ZP,{value:e.envs.map(function(e){return{value:e,label:e}}),options:i.map(function(e){return{value:e,label:e}}),isMulti:!0,isDisabled:o,placeholder:"Select...",noOptionsMessage:function(){return"You selected all environments"},onChange:function(e,t){return j(n,e,t)},styles:{multiValueLabel:t,multiValue:t}})}),(0,ez.jsx)("td",{children:!o&&v.length>1&&(0,ez.jsx)(nO,{onClick:function(){return g(n)},children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,title:"Remove Role"})})})]})}):(0,ez.jsx)("tr",{children:(0,ez.jsx)("td",{colSpan:3,children:"No roles added."})}),y]})]})})}),nB=t(20353),nA=t(27812),nz=t(93096),nG=t.n(nz),nU=t(29208),nq=t.n(nU),nL=t(34766),nM=t.n(nL),nK=t(76691),nH=t(53442),nV=t(75780),n_=t(80820),nW=t.n(n_),nY=t(99503),nJ=t.n(nY),n$=t(99245),nQ=t.n(n$),nX=t(96486),n0=eE.ZP.label(E||(E=(0,eO.Z)(["\n font-weight: bold;\n margin-bottom: 2px;\n"]))),n1=eE.ZP.div(T||(T=(0,eO.Z)(["\n display: flex;\n & > div:first-child {\n margin-right: 20px;\n }\n"]))),n2=eE.ZP.div(B||(B=(0,eO.Z)(["\n background-color: #f1f1f1;\n margin: 2px 0 2px 0;\n padding: 4px 6px;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"}),n3=eE.ZP.div(A||(A=(0,eO.Z)(["\n font-size: 0.9rem;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"}),n5=function(e){var n=e.children,t=e.width;return(0,ez.jsx)(n2,{width:t,children:(0,ez.jsx)(e_.ZP,{cols:6,children:(0,ez.jsxs)(e_.ZP.Row,{gutter:[],children:[(0,ez.jsx)(e_.ZP.Col,{span:5,children:n}),(0,ez.jsx)(e_.ZP.Col,{span:1,style:{textAlign:"right"},children:(0,ez.jsx)(eH.G,{icon:eV.byT,color:"#9F9F9F",size:"lg"})})]})})})},n4=function(e){var n=e.modalRef;return(0,ez.jsx)(ny.Z,{ref:n,id:"additiona-user-info",title:"Additional User Info",icon:null,cancelButtonText:"Close",cancelButtonVariant:"primary",showConfirmButton:!1,buttonAlign:"right",style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:function(e){if(!e)return(0,ez.jsx)(ez.Fragment,{});var n=nJ()(e.attributes,nQ());return n=(0,nX.mapKeys)(n,function(e,n){return nj()(n)}),(0,ez.jsxs)("div",{children:[(0,ez.jsx)(n0,{children:"GUID"}),(0,ez.jsx)(n5,{width:"400px",children:e.guid}),(0,ez.jsx)("br",{}),(0,ez.jsx)(n0,{children:"Attributes"}),(0,ez.jsxs)(n1,{children:[(0,ez.jsx)(n3,{width:"200px",children:"Key"}),(0,ez.jsx)(n3,{width:"700px",children:"Value"})]}),nW()(n,function(e,n){return(0,ez.jsxs)(n1,{children:[(0,ez.jsx)(n5,{width:"200px",children:n}),(0,ez.jsx)(n5,{width:"700px",children:e})]})})]})}})},n8=t(37226),n7=function(e){return"service-account-".concat(e)},n6=t(34798),n9=t.n(n6);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function tn(e){for(var n=1;n0?d.map(function(){var e=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.username.startsWith("service-account-")){e.next=8;break}return t=n.username.split("-"),e.next=4,(0,n8.A_)(t[t.length-1]);case 4:r=e.sent,a=(0,eK.Z)(r,1)[0],ep([].concat((0,nA.Z)(ed),[{username:n.username,integration:a}]));case 8:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()):ep([]),B(d.length===R),L(o.concat(d)),N(r+R),H(t),v(!1);case 23:case"end":return e.stop()}},e)})),function(e,n){return eC.apply(this,arguments)}),ew=(eI=(0,eD.Z)(eF().mark(function e(n){var t,r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=2;break}return e.abrupt("return");case 2:return b(!0),e.next=5,e1({environment:a,integrationId:i.id,roleName:n});case 5:if(t=e.sent,o=(r=(0,eK.Z)(t,2))[0],!(r[1]||!o)){e.next=12;break}return s.show({variant:"danger",fadeOut:5e3,closable:!0,content:"Failed to fetch composite roles."}),e.abrupt("return");case 12:W(o.map(function(e){return{label:e,value:e}})),b(!1);case 14:case"end":return e.stop()}},e)})),function(e){return eI.apply(this,arguments)}),eZ=(eO=(0,eD.Z)(eF().mark(function e(n){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c.current.open(n);case 1:case"end":return e.stop()}},e)})),function(e){return eO.apply(this,arguments)}),ek=null;if(0===O&&x)ek=(0,ez.jsx)(tx,{});else if(K){var eP,eS,eC,eI,eO,eN,eE=q.filter(function(e){return!e.username.startsWith("service-account-")}),eT=q.filter(function(e){return e.username.startsWith("service-account-")});ek="Users"===ec?(0,ez.jsx)(nH.Z,{variant:"mini",headers:[{accessor:"idp",Header:"IDP"},{accessor:"guid",Header:"GUID"},{accessor:"email",Header:"Email"},{accessor:"actions",Header:(0,ez.jsx)(tc,{}),disableSortBy:!0}],data:eE.length>0?eE.map(function(e){var n=e.username.split("@");if(n.length<2)return[];var t=(0,eK.Z)(n,2),r=t[0],a=t[1],i=th[a];return{idp:na.S[a],guid:r,email:e.email,actions:(0,ez.jsxs)(ts,{children:[(0,ez.jsx)("span",{onClick:function(n){n.stopPropagation(),o.current.open({guid:e.username.split("@")[0],attributes:tn(tn({},nM()(i,function(n,t){return n[t.label]=nq()(e,t.value),n},{})),e.attributes)})},children:(0,ez.jsx)(eH.G,{style:{color:"#000"},icon:eV.Mdf,size:"lg",title:"User Detail"})}),"\xa0\xa0",(0,ez.jsx)("span",{onClick:function(){return l.current.open(e)},children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,size:"lg",title:"Remove User"})})]})}}):[],loadMoreItem:function(){return ey(!1,K)},hasMoreItem:T,loader:(0,ez.jsx)(tx,{}),colfilters:[],activateRow:n9(),rowSelectorKey:"guid",noDataFoundElement:(0,ez.jsx)("td",{colSpan:5,children:"No users found."})}):"Service Accounts"===ec?(0,ez.jsx)(nH.Z,{variant:"mini",headers:[{accessor:"projectName",Header:"Project Name"},{accessor:"actions",Header:(0,ez.jsx)(tl,{}),disableSortBy:!0}],data:eT.length>0?eT.map(function(e){var n,t;return{projectName:null===(n=ed.find(function(n){return n.username==e.username}))||void 0===n?void 0:null===(t=n.integration)||void 0===t?void 0:t.projectName,actions:(0,ez.jsx)("span",{onClick:function(){return u.current.open(e)},children:(0,ez.jsx)(ti,{children:(0,ez.jsx)(eH.G,{style:{color:"#FF0303"},icon:eV.uMC,size:"lg",title:"Remove Service Account"})})})}}):[],colfilters:[],activateRow:n9(),rowSelectorKey:"projectName",noDataFoundElement:(0,ez.jsx)("td",{colSpan:5,children:"No service accounts found."})}):g?(0,ez.jsx)(tx,{}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsxs)(tt,{children:["Select the roles to be nested under the Parent role"," ",(0,ez.jsx)(nV.Z,{content:"Composite roles associate (nest) one or more additional roles within it."})]}),(0,ez.jsx)(nZ.ZP,{value:_,options:eb.filter(function(e){return e.value!==K}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:(eN=(0,eD.Z)(eF().mark(function e(n){var t;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=em(n))||void 0===t?void 0:t.then(function(e){return e&&W(n)});case 2:case"end":return e.stop()}},e)})),function(e){return eN.apply(this,arguments)}),isDisabled:!ei}),(0,ez.jsx)(nw.Ad,{saving:y,content:k,variant:ef?"error":"success"})]})}var eB=(0,ez.jsx)(nH.Z,{headers:[{accessor:"role",Header:"Role Name"},{accessor:"actions",Header:"",disableSortBy:!0}],noDataFoundElement:(0,ez.jsx)("td",{children:"No roles found."}),activateRow:function(e){var n=e.cells[0].value;if(n.endsWith(" (Composite role)")){var t=e.cells[0].value.length;H(n.substr(0,t-17))}else H(n)},rowSelectorKey:"role",data:z.map(function(e,n){return{role:!0==J[n]?"".concat(e," (Composite role)"):e,actions:(0,ez.jsx)(ta,{children:(0,ez.jsx)(nK.Kk,{disabled:!ei,icon:eV.$aW,role:"button","aria-label":"delete",onClick:function(n){ei&&(n.stopPropagation(),eZ(e))},title:"Delete",size:"lg",style:{marginRight:"1rem"}})})}}),colfilters:[]});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:4,children:(0,ez.jsxs)("div",{style:{display:"flex",float:"left"},children:[(0,ez.jsx)(nw.E1,{type:"text",maxLength:"1000",placeholder:"Search existing roles",value:C,onChange:function(e){I(e.target.value)},onKeyUp:function(e){"Enter"===e.key&&ej()}}),(0,ez.jsx)(nw.zx,{type:"button",size:"small",variant:"bcPrimary",onClick:ej,children:"Search"})]})}),(0,ez.jsx)(e_.ZP.Col,{span:6,children:K&&(0,ez.jsx)(nw.mQ,{onChange:function(e){el(e)},activeKey:ec,tabBarGutter:30,children:X.map(function(e){return(0,ez.jsx)(nw.OK,{tab:e},e)})})})]})}),(0,ez.jsx)(to,{}),p?(0,ez.jsx)(tx,{}):(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:4,children:eB}),(0,ez.jsx)(e_.ZP.Col,{span:6,children:ek})]})}),(0,ez.jsx)(ny.Z,{ref:c,title:"Delete Role",icon:eV.eHv,onConfirm:(n=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,e7({environment:a,integrationId:i.id,roleName:t});case 2:return r=e.sent,(o=(0,eK.Z)(r,2))[0],o[1]&&s.show({variant:"danger",content:"Failed to delete role ".concat(t,". Please try again.")}),e.next=9,eg();case 9:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)}),confirmButtonText:"Delete",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to delete this role?"})}),(0,ez.jsx)(ny.Z,{id:"remove-user",ref:l,title:"Remove User from Role",icon:eV.eHv,onConfirm:(t=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(K){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,e3({environment:a,integrationId:i.id,username:t.username,roleName:K,mode:"del"});case 4:r=e.sent,(o=(0,eK.Z)(r,2)[1])&&s.show({variant:"danger",content:o}),ey(!0,K);case 9:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)}),confirmButtonText:"Remove",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to remove this user from this role?"})}),(0,ez.jsx)(ny.Z,{id:"remove-service-account",ref:u,title:"Remove Service Account from Role",icon:eV.eHv,onConfirm:(r=(0,eD.Z)(eF().mark(function e(n,t){var r,o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(K){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,e3({environment:a,integrationId:i.id,username:t.username,roleName:K,mode:"del"});case 4:r=e.sent,(o=(0,eK.Z)(r,2)[1])&&s.show({variant:"danger",content:o}),ey(!0,K);case 9:case"end":return e.stop()}},e)})),function(e,n){return r.apply(this,arguments)}),confirmButtonText:"Remove",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",children:(0,ez.jsx)("div",{children:"Are you sure you want to remove this service account from this role?"})}),(0,ez.jsx)(n4,{modalRef:o})]})}),tm=t(24444),tg=eE.ZP.div(K||(K=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),tb=function(e){var n,t=e.integration,r=(0,eR.useRef)(ny.V),a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(0,eR.useState)(!1),c=o[0],l=o[1],u=(0,eR.useState)(0),d=u[0],p=u[1],h=(0,eR.useContext)(tm.SurveyContext);(0,eR.useEffect)(function(){s("dev"),l((0,nB.Yr)(t))},[t.id]);var f=(null==t?void 0:t.environments)||[];return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tg,{}),(0,ez.jsx)(nw.zx,{disabled:!c,size:"medium",variant:"primary",onClick:function(){r.current.open()},"data-testid":"create-role-button",children:"+ Create a New Role"}),(0,ez.jsx)(tg,{}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){s(e)},activeKey:i,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),f.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)(tv,{environment:e,integration:t},d)},e)})]}),(0,ez.jsx)(ny.Z,{ref:r,title:"Create New Role",icon:null,onConfirm:(n=(0,eD.Z)(eF().mark(function e(n){var t,a,i,s;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.current.submit();case 2:if(t=e.sent,i=(a=(0,eK.Z)(t,2))[0],s=a[1],!i){e.next=11;break}return r.current.updateConfig({confirmButtonText:"Try Again"}),e.abrupt("return",!1);case 11:if(!s){e.next=17;break}return r.current.updateConfig({showConfirmButton:!1,cancelButtonText:"Close",buttonAlign:"right"}),p(function(e){return e+1}),e.abrupt("return",!1);case 17:return e.next=19,n.current.reset();case 19:p(function(e){return e+1}),null==h||h.setShowSurvey(!0,"createRole");case 21:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),onCancel:function(e){e.current.reset()},confirmButtonText:"Save",confirmButtonVariant:"primary",cancelButtonVariant:"secondary",style:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:(0,ez.jsx)(nT,{integrationId:t.id,environments:f})})]})},tj=(x=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.field,r=n.search,e.prev=1,e.next=4,eY.e.post("bceid-webservice/idir/search",{field:t,search:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return x.apply(this,arguments)}),ty=(v=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.guid,r=n.userId,e.prev=1,e.next=4,eY.e.post("bceid-webservice/idir/import",{guid:t,userId:r}).then(function(e){return e.data});case 4:return a=e.sent,e.abrupt("return",[a,null]);case 8:return e.prev=8,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 12:case"end":return e.stop()}},e,null,[[1,8]])})),function(e){return v.apply(this,arguments)}),tw=[{value:"idir",label:"IDIR"}],tZ=[{value:"firstName",label:"First Name",allowed:["idir"]},{value:"lastName",label:"Last Name",allowed:["idir"]},{value:"email",label:"Email",allowed:["idir","bceidbasic","bceidbusiness"]},{value:"userId",label:"Username",allowed:["idir","bceidbasic","bceidbusiness"]},{value:"guid",label:"IDP GUID",allowed:["bceidbasic","bceidbusiness"]}],tk=(0,eR.forwardRef)(function(e,n){e.key;var t,r,a=e.idp,i=e.property,s=e.search,o=e.infoModalRef,c=e.parentModalRef,l=(0,eR.useState)(!1),u=(l[0],l[1]),d=(0,eR.useState)(!1),p=d[0],h=d[1],f=(0,eR.useState)([]),x=f[0],v=f[1],m=(0,eR.useState)(""),g=m[0],b=m[1],j=(0,eR.useState)(i),y=j[0],w=j[1],Z=(0,eR.useState)(s),k=Z[0],P=Z[1],S=(0,eR.useState)(!1),C=S[0],I=S[1];(0,eR.useEffect)(function(){b(a)},[a]),(0,eR.useEffect)(function(){if(g){var e=tZ.find(function(e){return e.value===y});if(null==e?void 0:e.allowed.includes(g))D(k,y);else{var n=tZ.find(function(e){return e.allowed.includes(g)});w((null==n?void 0:n.value)||""),P("")}}},[g]);var D=(t=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,s=arguments;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>1&&void 0!==s[1]?s[1]:y,!(n.length<2)){e.next=3;break}return e.abrupt("return");case 3:return h(!0),v([]),u(!0),e.next=8,tj({field:t,search:n});case 8:r=e.sent,i=(a=(0,eK.Z)(r,2))[0],a[1],i&&v(i),h(!1);case 14:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),O=(r=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return I(!1),e.next=3,ty({guid:n.guid,userId:n.userId});case 3:t=e.sent,(r=(0,eK.Z)(t,2))[0],r[1]?I(!0):c.current.close({idp:g,guid:n.guid});case 8:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nH.Z,{searchPlaceholder:"Enter search criteria",variant:"mini",headers:[{accessor:"firstName",Header:"First name"},{accessor:"lastName",Header:"Last Name"},{accessor:"email",Header:"Email"},{accessor:"idirUsername",Header:"IDIR username"},{accessor:"actions",Header:"",disableSortBy:!0}],rowSelectorKey:"guid",data:x.map(function(e){return{guid:e.guid,firstName:e.individualIdentity.name.firstname,lastName:e.individualIdentity.name.surname,email:e.contact.email,idirUsername:e.userId,actions:(0,ez.jsxs)(nK.c4,{children:[(0,ez.jsx)(nK.Kk,{icon:eV.Mdf,role:"button","aria-label":"view",onClick:function(){o.current.open({guid:e.guid,attributes:{username:e.userId,displayName:e.displayName,firstName:e.individualIdentity.name.firstname,middleName:e.individualIdentity.name.middleName,lastName:e.individualIdentity.name.surname,initials:e.individualIdentity.name.initials,email:e.contact.email,telephone:e.contact.telephone,company:e.internalIdentity.company,department:e.internalIdentity.department,title:e.internalIdentity.title},_hash:c.current.getId()})},title:"View",size:"lg"}),(0,ez.jsx)(nK.Kk,{icon:eV.q7m,role:"button","aria-label":"import",onClick:function(){return O(e)},title:"Import",size:"lg"})]})}}),colfilters:[{value:g,multiselect:!1,onChange:b,options:tw},{value:y,multiselect:!1,onChange:w,options:tZ.filter(function(e){return e.allowed.includes(g)})}],showFilters:!0,loading:p,totalColSpan:20,searchColSpan:10,headerAlign:"bottom",headerGutter:[5,0],searchKey:k,searchLocation:"right",onSearch:D,onEnter:D,noDataFoundElement:(0,ez.jsx)("p",{children:"The user you searched for does not exist. Please try again, by entering the full search criteria."})}),C&&(0,ez.jsx)("p",{className:"text-danger",children:"Failed to import the user. Please try again."})]})});function tP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function tS(e){for(var n=1;n * {\n padding-right: 0.5rem;\n }\n"]))),tN=eE.ZP.div(Y||(Y=(0,eO.Z)(["\n padding-top: 10px;\n padding-bottom: 10px;\n"]))),tF=eE.ZP.div(J||(J=(0,eO.Z)(["\n text-align: center;\n"]))),tR=function(){return(0,ez.jsxs)(tI,{children:[(0,ez.jsx)(tD,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]})},tE=[{value:"firstName",label:"First Name",search:!0,result:!0},{value:"lastName",label:"Last Name",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tT=[{value:"firstName",label:"Display Name",search:!0,result:!0},{value:"lastName",label:"Username",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tB=[{value:"firstName",label:"Name",search:!0,result:!0},{value:"lastName",label:"Login",search:!0,result:!0,style:{minWidth:"170px"}},{value:"email",label:"Email",search:!0,result:!0,style:{minWidth:"170px"}},{value:"guid",label:"IDP GUID",search:!0,result:!1}],tA={idir:tE,azureidir:tE,bceidbasic:tT,bceidbusiness:tT,bceidboth:tT,githubpublic:tB,githubbcgov:tB},tz=(0,nt.hU)(function(e){var n,t,r,a,i,s=e.selectedRequest,o=e.alert,c=(0,eR.useRef)(ny.V),l=(0,eR.useRef)(ny.V),u=(0,eR.useState)(!1),d=u[0],p=u[1],h=(0,eR.useState)(1),f=h[0],x=h[1],v=(0,eR.useState)(0),m=v[0],g=v[1],b=(0,eR.useState)(15),j=b[0],y=b[1],w=(0,eR.useState)(!1),Z=w[0],k=w[1],P=(0,eR.useState)(!1),S=P[0],C=P[1],I=(0,eR.useState)(!1),D=I[0],O=I[1],N=(0,eR.useState)(""),F=N[0],R=N[1],E=(0,eR.useState)([]),T=E[0],B=E[1],A=(0,eR.useState)([]),z=A[0],G=A[1],U=(0,eR.useState)([]),q=U[0],L=U[1],M=(0,eR.useState)([]),K=M[0],H=M[1],V=(0,eR.useState)("dev"),_=V[0],W=V[1],Y=(0,eR.useState)(s.devIdps[0]),J=Y[0],$=Y[1],Q=(0,eR.useState)(""),X=Q[0],ee=Q[1],en=(0,eR.useState)(""),et=en[0],er=en[1],ea=(0,eR.useState)(void 0),ei=ea[0],es=ea[1],eo=(0,eR.useState)(!1),ec=eo[0],el=eo[1],eu=(0,eR.useContext)(tm.SurveyContext),ed=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(!0);case 2:return R("Assigning role..."),el(!1),e.next=6,e5({environment:_,integrationId:s.id,username:ei,roleNames:n});case 6:if(t=e.sent,r=(0,eK.Z)(t,2)[1],O(!1),r){e.next=16;break}return R("Last saved at ".concat(new Date().toLocaleString())),null==eu||eu.setShowSurvey(!0,"addUserToRole"),e.abrupt("return",!0);case 16:return el(!0),R("Failed to update roles."),e.abrupt("return",!1);case 19:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),2e3,{trailing:!0}),[null==s?void 0:s.id,_,ei,eu]),ep=(t=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,k(!0);case 4:return e.next=6,eX({environment:_,integrationId:s.id,first:0,max:1e3});case 6:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],t[1]&&o.show({variant:"danger",content:"Failed to fetch roles."}),G(null===r?[]:r.map(function(e){return e.name})),H(null===r?[]:r.map(function(e){return e.composite})),k(!1);case 15:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),eh=function(){B([]),L([]),x(1),g(0),es(void 0),p(!1)},ef=function(){if(er(""),W("dev"),s.devIdps){var e=s.devIdps.length>0?s.devIdps[0]:"";$(e);var n=tA[e]||[];n.length>0&&ee(n[0].value)}},ex=(r=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(!0);case 2:return e.next=4,e2({environment:_,integrationId:s.id,username:n});case 4:if(t=e.sent,a=(r=(0,eK.Z)(t,2))[0],!r[1]){e.next=12;break}return o.show({variant:"danger",content:"Failed to fetch user roles."}),C(!1),e.abrupt("return");case 12:return e.next=14,L(a||[]);case 14:C(!1);case 15:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});(0,eR.useEffect)(function(){eh(),ef(),G([])},[s.id]),(0,eR.useEffect)(function(){ev(et,void 0,f)},[f]),(0,eR.useEffect)(function(){ev(et,void 0,1)},[j]),(0,eR.useEffect)(function(){eh(),ep(),s.devIdps&&$(s.devIdps.length>0?s.devIdps[0]:"")},[_]),(0,eR.useEffect)(function(){eh();var e=tA[J]||[];!e.find(function(e){return e.search&&e.value===X})&&e.length>0&&ee(e[0].value)},[J]),(0,eR.useEffect)(function(){R(""),ei&&ex(ei)},[ei]);var ev=(a=(0,eD.Z)(eF().mark(function e(n){var t,r,a,i,c,l=arguments;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>1&&void 0!==l[1]?l[1]:X,r=l.length>2&&void 0!==l[2]?l[2]:f,!(n.length<2)){e.next=4;break}return e.abrupt("return");case 4:return k(!0),er(n),x(r),ee(t),B([]),L([]),es(void 0),e.next=13,eQ({environment:_,idp:J,property:t,searchKey:n,integrationId:s.id||-1});case 13:if(a=e.sent,c=(i=(0,eK.Z)(a,2))[0],i[1]&&o.show({variant:"danger",content:"Failed to fetch users."}),c){var u;p(!0),B((u=r,c.rows.slice((u-1)*15,15*u))),g(c.count)}k(!1);case 20:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),em=function(e){return ev(e,void 0,1)},eg=(i=(0,eD.Z)(eF().mark(function e(n,t){var r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],"clear"===t.action||(r="remove-value"===t.action?q.filter(function(e){var n;return e!==(null===(n=t.removedValue)||void 0===n?void 0:n.value)}):"pop-value"===t.action?(0,nA.Z)(q.slice(0,-1)):[].concat((0,nA.Z)(q),[null===(a=t.option)||void 0===a?void 0:a.value])),!(r.length!==q.length)){e.next=7;break}return e.next=5,ed(r);case 5:e.sent&&L(r);case 7:case"end":return e.stop()}},e)})),function(e,n){return i.apply(this,arguments)}),eb=null;S?eb=(0,ez.jsx)(tR,{}):ei&&(eb=(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tC,{children:"2. Assign User to a Role"}),(0,ez.jsx)(nZ.ZP,{value:q.map(function(e){return{value:e,label:e}}),options:z.map(function(e,n){return{value:e,label:!0==K[n]?"".concat(e," (Composite role)"):e}}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:eg,"data-testid":"user-role-select"}),(0,ez.jsx)(nw.Ad,{saving:D,content:F,variant:ec?"error":"success"})]}));var ej="idir"===J,ey=tA[J]||[],ew=ey.length>0?ey.filter(function(e){return e.result}):[],eZ=null;d&&ej&&(eZ=(0,ez.jsxs)(ez.Fragment,{children:[T.length>0&&(0,ez.jsx)(nw.XU,{italic:!0,children:"If you did not find the user you were looking for, you can try searching for the user in our IDIM Web Service Lookup tool. This tool uses a webservice to find IDIR users. so you will need to import the user that is found."}),(0,ez.jsx)(nh.default,{type:"button",size:"small","data-testid":"idim-search-button",onClick:function(){return l.current.open({key:new Date().getTime().toString(),idp:"idir",property:X,search:et})},children:"Search in IDIM Web Service Lookup"})]}));var ek=(null==s?void 0:s.environments)||[],eP=(null==s?void 0:s.devIdps)||[],eS="guid"===X||J.startsWith("bceid")?"Exact text match results will be displayed":"Partial text match results will be displayed",eC=function(e){var n=ey.find(function(n){return n.value===e});return null==n?void 0:n.label.toString()};return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(tD,{}),(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsxs)(e_.ZP.Col,{span:6,children:[(0,ez.jsxs)(nw.h4,{variant:"dark",size:"sm",children:["1. Search for a user based on the selection criteria below \xa0",(0,ez.jsx)(nV.Z,{title:"",content:"When searching BCeID GUID, please ensure your end users has logged in via your app (and indirectly our IDP) for this search to be successful.",hide:200})]}),(0,ez.jsx)(nH.Z,{searchPlaceholder:"Enter search criteria",variant:"mini",rowSelectorKey:"username",headers:[{accessor:"firstName",Header:eC("firstName")||""},{accessor:"lastName",Header:eC("lastName")||""},{accessor:"email",Header:"Email"},{accessor:"actions",Header:"",disableSortBy:!0}],data:T.map(function(e){return{username:nq()(e,"username"),firstName:nq()(e,"firstName"),lastName:nq()(e,"lastName"),email:nq()(e,"email"),actions:(0,ez.jsx)(nK.c4,{children:(0,ez.jsx)(nK.Kk,{icon:eV.Mdf,role:"button","aria-label":"view",onClick:function(n){n.stopPropagation(),c.current.open({guid:e.username.split("@")[0],attributes:tS(tS({},nM()(ew,function(n,t){return n[t.label]=nq()(e,t.value),n},{})),e.attributes)})},title:"View",size:"lg"})})}}),colfilters:[{key:"user-role-filter-env",value:_,multiselect:!1,onChange:W,options:ek.map(function(e){return{value:e,label:nj()(e)}})},{key:"user-role-filter-idp",value:J,multiselect:!1,onChange:$,options:eP.filter(function(e){return"digitalcredential"!==e}).map(function(e){return{value:e,label:na.S[e]}})},{key:"user-role-filter-prop",value:X,multiselect:!1,onChange:ee,options:ey.filter(function(e){return e.search})}],showFilters:!0,loading:Z,totalColSpan:20,searchColSpan:10,headerAlign:"bottom",headerGutter:[5,0],searchKey:et,searchLocation:"right",onSearch:em,onEnter:em,noDataFoundElement:d?(0,ez.jsxs)(tO,{children:[(0,ez.jsx)(tN,{children:(0,ez.jsx)(eH.G,{icon:eV.RLE,color:"#D44331",title:"Edit",size:"lg"})}),ej?(0,ez.jsx)(tN,{children:"The user you searched for does not exist. Please try again, by entering the full search criteria or try using our IDIM Web Service Lookup tool."}):(0,ez.jsx)(tN,{children:"The user you searched for does not exist. Please try again, by entering the full search criteria."})]}):(0,ez.jsx)(tF,{children:"You have not searched for any users yet."}),pagination:!0,pageLimits:[15],onPage:x,rowCount:m,limit:j,onLimit:function(e){y(e)},activateRow:function(e){es(e.original.username)},searchTooltip:eS}),eZ]}),(0,ez.jsx)(e_.ZP.Col,{span:4,children:eb})]})}),(0,ez.jsx)(n4,{modalRef:c}),(0,ez.jsx)(ny.Z,{ref:l,id:"idim-webservice-lookup",title:"IDIM Web Service Lookup",icon:null,onClose:function(e,n,t){ev(t.guid,"guid",1)},cancelButtonText:"Close",cancelButtonVariant:"primary",showConfirmButton:!1,buttonAlign:"right",style:{minWidth:"800px",maxHeight:"calc(100vh - 200px)",overflowY:"auto"},children:function(e){return e?(0,ez.jsx)(tk,{idp:e.idp,property:e.property,search:e.search,infoModalRef:c,parentModalRef:l},e.key):(0,ez.jsx)(ez.Fragment,{})}})]})}),tG=t(62248),tU=t(42050),tq=eE.ZP.h3($||($=(0,eO.Z)(["\n color: #777777;\n font-size: ",";\n font-weight: bold;\n min-height: 30px;\n border-bottom: 1px solid #707070;\n margin-bottom: 5px;\n overflow: wrap;\n"])),nn.CA),tL=eE.ZP.p(Q||(Q=(0,eO.Z)(["\n font-size: ",";\n color: "," !important;\n"])),nn.KN,nn.we),tM=t(11752),tK=t.n(tM),tH=eE.ZP.ul(X||(X=(0,eO.Z)(["\n list-style-type: none;\n margin: 0;\n position: relative;\n\n & li {\n border-bottom: 1px solid #d4d4d4;\n & svg.svg-inline--fa {\n position: absolute;\n right: 0;\n }\n\n & div.icon {\n position: absolute;\n right: 0;\n bottom: 5px;\n }\n }\n"]))),tV=(tK()()||{}).publicRuntimeConfig,t_=(void 0===tV?{}:tV).app_env,tW=(0,eE.ZP)(tq)(ee||(ee=(0,eO.Z)(["\n border-bottom: none;\n margin-top: 10px;\n"]))),tY=(0,eE.ZP)(tW)(en||(en=(0,eO.Z)(["\n font-size: 14px;\n"]))),tJ=eE.ZP.a(et||(et=(0,eO.Z)(["\n color: ",";\n"])),nn.nc),t$=(0,eE.ZP)(tU.Z)(er||(er=(0,eO.Z)(["\n margin-bottom: 10px;\n"]))),tQ=function(e){switch(e){case"submitted":return 0;case"pr":return 33;case"planned":return 66;default:return 100}},tX=function(e){switch(e){case"submitted":return"Process request submitted...";case"pr":return"Pull request created...";case"planned":return"Terraform plan succeeded...";case"prFailed":case"planFailed":case"applyFailed":return"An error has occurred";default:return""}},t0=function(e){switch(e){case"prFailed":case"planFailed":case"applyFailed":return!0;default:return!1}},t1=function(e){switch(e){case"submitted":default:return 0;case"pr":return 1;case"prFailed":return 2;case"planned":return 3;case"planFailed":return 4;case"applied":return 5;case"applyFailed":return 6}};function t2(e){var n=e.integration,t=n.status,r=n.updatedAt,a=t0(t),i=new Date(r||"").toLocaleString();return(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(t$,{now:tQ(t),animated:!0,variant:a?"danger":void 0}),(0,ez.jsxs)(tL,{children:["Last updated at ",i]})]})}(0,nt.hU)(function(e){var n=e.integration,t=e.title,r=e.alert,a=n.id,i=n.status,s=n.updatedAt,o=n.prNumber,c=(0,eR.useState)(!1),l=c[0],u=c[1],d=t0(i),p=tX(i),h=new Date(s||"");(0,eR.useEffect)(function(){u(12e5 *:nth-child(1) {\n margin-right: 5px;\n }\n"]))),rt="15px",rr=eE.ZP.div(es||(es=(0,eO.Z)(["\n height: ",";\n width: ",";\n border-radius: ",";\n margin: ",";\n margin-left: 0;\n border: 2px solid #b3b3b3;\n"])),rt,rt,rt,"0"),ra=eE.ZP.li(eo||(eo=(0,eO.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0;\n\n & p {\n max-width: 90%;\n margin: 5px 0;\n }\n"]))),ri=function(e){var n=e.integration;return(0,ez.jsxs)(rn,{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#2E8540"})}),(0,ez.jsxs)("div",{children:[(0,ez.jsx)("span",{children:"Your integration has been approved. Please wait approx. 10 min to get access to your installation information access again."}),(0,ez.jsx)(re,{children:"Progress Update"}),(0,ez.jsx)(t2,{integration:n})]})]})},rs=function(){return(0,ez.jsxs)(rn,{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#2E8540"})}),(0,ez.jsx)("div",{children:(0,ez.jsx)("span",{children:"Your integration is approved and available."})})]})};function ro(e){return e.integration,(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to IDIM",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsxs)("p",{children:["Please reach out to IDIM if you do not hear back within the next 2-3 business days (",(0,ez.jsx)(ni.default,{href:"mailto:IDIM.Consulting@gov.bc.ca",children:"IDIM.Consulting@gov.bc.ca"}),")"]}),(0,ez.jsx)(eH.G,{icon:eV.FU$,color:"#b3b3b3"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})})}var rc=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasBceid,i=t.awaitingBceidProd,s=t.bceidProdApplying,o=t.bceidApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(ro,{integration:n})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to BCeID Prod"}),(0,ez.jsx)("br",{}),c]})};function rl(e){return e.integration,(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to GCIO",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})})}var ru=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasGithub,i=t.awaitingGithubProd,s=t.githubProdApplying,o=t.githubApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(rl,{integration:n})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to GitHub Prod"}),(0,ez.jsx)("br",{}),c]})},rd=t(19287),rp=eE.ZP.label(ec||(ec=(0,eO.Z)(["\n font-weight: bold;\n margin-bottom: 2px;\n"])));eE.ZP.div(el||(el=(0,eO.Z)(["\n background-color: #f1f1f1;\n margin: 2px 0 2px 0;\n padding: 4px 6px;\n ","\n"])),function(e){return e.width?"width: ".concat(e.width,";"):"width: 300px;"});var rh=eE.ZP.div(eu||(eu=(0,eO.Z)(["\n text-align: center;\n"]))),rf=eE.ZP.div(ed||(ed=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"]))),rx=function(){return(0,ez.jsxs)(rh,{children:[(0,ez.jsx)(rf,{}),(0,ez.jsx)(eW.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]})},rv=(0,nt.hU)(function(e){var n,t,r,a,i=e.selectedRequest,s=e.alert,o=(0,eR.useState)(!1),c=(o[0],o[1]),l=(0,eR.useState)(!1),u=l[0],d=l[1],p=(0,eR.useState)(!1),h=p[0],f=p[1],x=(0,eR.useState)(""),v=x[0],m=x[1],g=(0,eR.useState)([]),b=g[0],j=g[1],y=(0,eR.useState)([]),w=y[0],Z=y[1],k=(0,eR.useState)(void 0),P=k[0];k[1];var S=(0,eR.useState)("dev"),C=S[0],I=S[1],D=(0,eR.useState)(!1),O=D[0],N=D[1],F=(null==i?void 0:i.environments)||[],R=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n){var t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),m("Assigning role..."),N(!1),e.next=5,e5({environment:C,integrationId:i.id,username:n7(i.clientId),roleNames:n});case 5:if(t=e.sent,r=(0,eK.Z)(t,2)[1],f(!1),!r){e.next=15;break}return N(!0),m("Failed to update roles."),e.abrupt("return",!1);case 15:return m("Last saved at ".concat(new Date().toLocaleString())),e.abrupt("return",!0);case 17:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),2e3,{trailing:!0}),[null==i?void 0:i.id,C,P]),E=(t=(0,eD.Z)(eF().mark(function e(n,t){var r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],"clear"===t.action||(r="remove-value"===t.action?w.filter(function(e){var n;return e!==(null===(n=t.removedValue)||void 0===n?void 0:n.value)}):"pop-value"===t.action?(0,nA.Z)(w.slice(0,-1)):[].concat((0,nA.Z)(w),[null===(a=t.option)||void 0===a?void 0:a.value])),!(w.length!==r.length)){e.next=7;break}return e.next=5,R(r);case 5:e.sent&&Z(r);case 7:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)}),T=(r=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,c(!0);case 4:return e.next=6,eX({environment:C,integrationId:i.id,first:0,max:1e3});case 6:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],t[1]&&s.show({variant:"danger",content:"Failed to fetch roles."}),j(null===r?[]:r.map(function(e){return e.name})),c(!1);case 14:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),B=(a=(0,eD.Z)(eF().mark(function e(n){var t,r,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(!0);case 2:return e.next=4,e2({environment:C,integrationId:i.id,username:n});case 4:if(t=e.sent,a=(r=(0,eK.Z)(t,2))[0],!r[1]){e.next=12;break}return s.show({variant:"danger",content:"Failed to fetch roles."}),d(!1),e.abrupt("return");case 12:return e.next=14,Z(a||[]);case 14:d(!1);case 15:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)});return(0,eR.useEffect)(function(){T(),m(""),B(n7(i.clientId))},[C]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(rd.Z,{children:(0,ez.jsx)(nw.bZ,{variant:"info",closable:!1,"data-testid":"assign-svc-acct-role-risk-alert",children:(0,ez.jsxs)("span",{className:"normal",children:["There may be a security risk if you rely on client roles of a service account,"," ",(0,ez.jsx)(ni.default,{external:!0,href:(0,ns.eO)("Creating-a-Role#service-account-role-management"),children:"click to visit our wiki page"})]})})}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){I(e)},activeKey:C,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),F.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)(e_.ZP,{cols:10,children:(0,ez.jsxs)(e_.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,ez.jsx)(e_.ZP.Col,{span:5,children:(0,ez.jsx)(nH.Z,{headers:[{accessor:"projectName",Header:"Service Account"}],data:[{projectName:i.projectName}],colfilters:[],activateRow:n9(),rowSelectorKey:"projectName"})}),(0,ez.jsx)(e_.ZP.Col,{span:5,children:u?(0,ez.jsx)(rx,{}):(0,ez.jsxs)("div",{children:[(0,ez.jsx)(rp,{children:"Assign Service Account to a Role"}),(0,ez.jsx)("div",{"data-testid":"assign-svc-acct-to-role-select",children:(0,ez.jsx)(nZ.ZP,{value:w.map(function(e){return{value:e,label:e}}),options:b.map(function(e){return{value:e,label:e}}),isMulti:!0,placeholder:"Select...",noOptionsMessage:function(){return"No roles"},onChange:E})}),(0,ez.jsx)(nw.Ad,{saving:h,content:v,variant:O?"error":"success"})]})})]})})},e)})]})]})});function rm(){return(0,ez.jsxs)(tH,{children:[(0,ez.jsxs)(ra,{children:["Requirements email sent to DIT",(0,ez.jsx)(eH.G,{icon:eV.f8k,color:"#00C45B"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsxs)("p",{children:["Please reach out to DIT if you do not hear back within the next 2-3 business days (",(0,ez.jsx)(ni.default,{href:"mailto:ditp.support@gov.bc.ca",children:"ditp.support@gov.bc.ca"}),")."]}),(0,ez.jsx)(eH.G,{icon:eV.FU$,color:"#b3b3b3"})]}),(0,ez.jsxs)(ra,{children:[(0,ez.jsx)("p",{children:"Access to prod"}),(0,ez.jsx)(rr,{})]})]})}var rg=function(e){var n=e.integration,t=e.approvalContext,r=t.hasProd,a=t.hasDigitalCredential,i=t.awaitingDigitalCredentialProd,s=t.digitalCredentialProdApplying,o=t.digitalCredentialApproved;if(!r||!a)return null;var c=null;return s?c=(0,ez.jsx)(ri,{integration:n}):o?c=(0,ez.jsx)(rs,{}):i&&(c=(0,ez.jsx)(rm,{})),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(re,{children:"Access to Digital Credential Prod"}),(0,ez.jsx)("br",{}),c]})},rb=t(29009),rj=t(41087),ry=t(14195),rw=t(3023),rZ=t(75358),rk=t(26050),rP=t(33558),rS=t(18242),rC=t(84642),rI=(m=(0,eD.Z)(eF().mark(function e(n,t,r,a){var i;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eY.e.get("requests/".concat(n,"/metrics?env=").concat(t,"&fromDate=").concat(r,"&toDate=").concat(a)).then(function(e){return null==e?void 0:e.data});case 3:return i=e.sent,e.abrupt("return",[i,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n,t,r){return m.apply(this,arguments)}),rD=(g=(0,eD.Z)(eF().mark(function e(n,t,r,a,i,s){var o;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,eY.e)({url:"requests/".concat(n,"/logs?env=").concat(t,"&start=").concat(r,"&end=").concat(a),method:"GET",responseType:"blob",onDownloadProgress:i,signal:null==s?void 0:s.signal}).then(function(e){return null==e?void 0:e.data});case 3:return o=e.sent,e.abrupt("return",[o,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n,t,r,a,i){return g.apply(this,arguments)}),rO=t(9198),rN=t.n(rO);t(24394);var rF=t(31879);function rR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function rE(e){return(0,ez.jsx)(ez.Fragment,{children:(0,ez.jsx)(rN(),function(e){for(var n=1;n * {\n margin-left: 15px;\n }\n"])));eE.ZP.label(eh||(eh=(0,eO.Z)(["\n margin-bottom: 2px;\n"])));var rz=eE.ZP.div(ef||(ef=(0,eO.Z)(["\n height: var(--field-top-spacing);\n"])));eE.ZP.span(ex||(ex=(0,eO.Z)(["\n color: #000;\n font-size: 1.1rem;\n font-weight: bold;\n"]))),(0,eE.ZP)(eH.G)(ev||(ev=(0,eO.Z)(["\n margin-right: 20px;\n"]))),eE.ZP.div(em||(em=(0,eO.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"]))),eE.ZP.hr(eg||(eg=(0,eO.Z)(["\n background-color: black;\n"])));var rG=function(e){return"".concat(e.getFullYear(),"-").concat(e.getMonth()+1,"-").concat(e.getDate())},rU="December 01, 2023",rq=(0,nt.hU)(function(e){var n,t=e.integration,r=e.alert,a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(null==t?void 0:t.environments)||[],c=(0,eR.useState)([]),l=c[0],u=c[1],d=(0,eR.useState)(!1);d[0],d[1];var p=(0,eR.useState)((0,ne.F3)(14)),h=p[0],f=p[1],x=(0,eR.useState)(new Date),v=x[0],m=x[1],g=function(e){f(e)},b=function(e){m(e)},j=(0,eR.useCallback)(nG()((n=(0,eD.Z)(eF().mark(function e(n,a,i){var s,o,c;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rI(null==t?void 0:t.id,i,n,a);case 2:s=e.sent,c=(o=(0,eK.Z)(s,2))[0],o[1]?r.show({variant:"danger",content:"Failed to fetch metrics"}):u(c);case 7:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})),[null==t?void 0:t.clientId,i,h,v]);return(0,eR.useEffect)(function(){j(rG(h),rG(v),i)},[null==t?void 0:t.clientId,i,h,v]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(rz,{}),(0,ez.jsx)("div",{children:(0,ez.jsxs)(rA,{children:[(0,ez.jsx)(rE,{placeholderText:"Start Date",selected:new Date(h),onChange:function(e){return g(e)},minDate:new Date(rU),maxDate:v,label:"Start Date"}),(0,ez.jsx)(rE,{placeholderText:"End Date",selected:new Date(v),onChange:function(e){return b(e)},minDate:h,label:"End Date"})]})}),(0,ez.jsxs)(nw.mQ,{onChange:function(e){s(e)},activeKey:i,tabBarGutter:30,destroyInactiveTabPane:!0,children:[(0,ez.jsx)("br",{}),o.map(function(e){return(0,ez.jsx)(nw.OK,{tab:nj()(e),children:(0,ez.jsx)("div",{style:{width:"100%",height:300},children:(null==l?void 0:l.length)>0?(0,ez.jsx)(rb.h,{children:(0,ez.jsxs)(rj.v,{data:l,margin:{top:20,right:20,bottom:30,left:20},children:[(0,ez.jsx)(ry.q,{strokeDasharray:"3 3"}),(0,ez.jsx)(rw.K,{dataKey:"event",tick:{fontSize:10},label:{value:"Events",position:"insideBottomRight"}}),(0,ez.jsx)(rZ.B,{dataKey:"count",label:{value:"Count",angle:-90,position:"insideLeft"}}),(0,ez.jsx)(rk.u,{}),(0,ez.jsx)(rP.D,{}),(0,ez.jsx)(rS.$,{dataKey:"count",fill:"#0d6efd",barSize:30,label:{fill:"#0d6efd",fontSize:20,position:"top"},background:{fill:"#eee"}})]})}):(0,ez.jsx)("div",{style:{textAlign:"center"},children:(0,ez.jsx)(rC.x,{children:"No data available yet!"})})})},e)})]}),(0,ez.jsxs)(nr.$,{children:["This tab was released ",rU,". Please refer to"," ",(0,ez.jsx)(rB.rU,{href:"https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.4/html/server_administration_guide/auditing_and_events#event_types",external:!0,children:"here"})," ","for event type details."]})]})}),rL=(0,eE.ZP)(nh.default)(eb||(eb=(0,eO.Z)(["\n width: 150px;\n text-align: center;\n"]))),rM=eE.ZP.form(ej||(ej=(0,eO.Z)(["\n display: flex;\n flex-direction: column;\n row-gap: 1.5em;\n\n .header {\n margin-top: 1em;\n display: flex;\n align-items: center;\n p {\n font-weight: bold;\n padding-right: 0.4em;\n margin: 0;\n font-size: 18px;\n }\n }\n\n .bold {\n font-weight: bold;\n }\n\n .env-controls {\n margin: 0;\n legend {\n font-size: unset;\n font-weight: bold;\n }\n\n input {\n margin-right: 0.2em;\n }\n\n label {\n margin-right: 1em;\n }\n }\n\n .date-picker-container {\n height: 100%;\n display: flex;\n align-items: center;\n column-gap: 1em;\n }\n\n select {\n margin-left: 0.5em;\n width: 200px;\n }\n\n .button-container {\n display: flex;\n flex-diretion: row;\n align-items: center;\n\n p {\n margin: 0;\n margin-left: 1em;\n }\n }\n\n .error-text {\n font-size: 14px;\n color: red;\n margin: 0;\n height: 1em;\n }\n"]))),rK=function(e,n){var t=new Blob([JSON.stringify(n)],{type:"text/json"}),r=document.createElement("a");r.download=e,r.href=window.URL.createObjectURL(t),r.dataset.downloadurl=["text/json",r.download,r.href].join(":");var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});r.dispatchEvent(a),r.remove()},rH={dev:"Development",test:"Test",prod:"Production"},rV=new Date("February 13, 2024"),r_=(0,nt.hU)(function(e){var n,t=e.integration,r=e.alert,a=(0,eR.useState)("dev"),i=a[0],s=a[1],o=(null==t?void 0:t.environments)||[],c=(0,eR.useState)(!1),l=c[0],u=c[1],d=(0,eR.useState)((0,ne.F3)(1)),p=d[0],h=d[1],f=(0,eR.useState)(new Date),x=f[0],v=f[1],m=(0,eR.useState)(""),g=m[0],b=m[1],j=(0,eR.useState)(0),y=j[0],w=j[1],Z=(0,eR.useState)(new Date),k=Z[0],P=Z[1],S=(0,eR.useState)(),C=S[0],I=S[1];(0,eR.useEffect)(function(){p&&(Date.now()-p.getTime()>1728e5?P(new Date(p.getTime()+1728e5)):P(new Date),x&&(x.getTime()1728e5)&&v(null))},[p]),(0,eR.useEffect)(function(){x&&p&&x.getTime()0&&w(e[0])}else(null==e?void 0:e.length)>0&&w(e[0])},k=(t=(0,eD.Z)(eF().mark(function e(){var n,t,r;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,(0,n8.XJ)();case 3:n=e.sent,r=(t=(0,eK.Z)(n,2))[0],f(!!t[1]),Z(r||[]),d(!1);case 10:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});(0,eR.useEffect)(function(){k(),o.replace("/my-dashboard/integrations")},[]),(0,eR.useEffect)(function(){return(0,ne.rn)(v||[])&&(clearInterval(r),r=setInterval((0,eD.Z)(eF().mark(function e(){var n,t,a;return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n8.XJ)();case 2:n=e.sent,a=(t=(0,eK.Z)(n,2))[0],t[1]?clearInterval(r):Z(a||[]);case 7:case"end":return e.stop()}},e)})),5e3)),function(){r&&clearInterval(r)}},[v,b]);var P=h?(0,ez.jsx)(ac.q1,{}):v&&0!==v.length?(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(nw.h4,{size:"lg",children:"INTEGRATIONS"}),(0,ez.jsx)(nH.Z,{headers:[{accessor:"id",Header:"Request ID"},{accessor:"projectName",Header:"Project Name"},{accessor:"status",Header:"Status"},{accessor:"authType",Header:"Usecase"},{accessor:"serviceType",Header:"Service Type"},{accessor:"actions",Header:(0,ez.jsx)(ad,{}),disableSortBy:!0}],data:null==v?void 0:v.map(function(e){return{id:ap(e.id),projectName:e.projectName,status:(0,tG.n)(e.status||"draft"),authType:ao.F[e.authType||"browser-login"],serviceType:"Gold",actions:(0,ez.jsx)(al,{children:(0,ez.jsx)(nK.ZP,{request:e,onDelete:function(n,t){t?s.show({variant:"danger",content:"Failed to delete integration ".concat(e.projectName,".")}):k()},defaultActiveColor:"#fff",delIconStyle:{marginLeft:"7px"}})})}}),activateRow:function(e){var n=e.cells[0].value;v.forEach(function(e){e.id==n&&w(e)})},activeSelector:b&&ap(b),rowSelectorKey:"id",colfilters:[]})]}):(0,ez.jsx)(ac.Vs,{message:"No Requests Submitted"});return u?(0,ez.jsx)(t5.Z,{}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("br",{}),(0,ez.jsx)(ah,{handleNewIntegrationClick:y,integrations:v}),(0,ez.jsx)("br",{}),(0,ez.jsx)("br",{}),P]})}),ax=t(6178),av=eE.ZP.div(eI||(eI=(0,eO.Z)(["\n display: flex;\n flex-direction: column;\n flex-basis: 100%;\n flex: 1;\n"]))),am=function(e){e.session;var n,t=(0,as.useRouter)(),r=(0,eR.useState)(null),a=r[0],i=r[1],s=(0,eR.useState)(1),o=s[0],c=s[1],l=(0,eR.useState)(!1),u=(l[0],l[1]),d="integration-failed-modal",p=(n=(0,eD.Z)(eF().mark(function e(){return eF().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.location.hash=d);case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),h=(0,eR.useState)(""),f=h[0],x=h[1];return(0,eR.useEffect)(function(){var e;x(t.query.requestId),(null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.integrationFailedMessageModal)==="true"&&(u(!0),p())},[t.query.showModal]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(ax.Z,{tab:"integrations",leftPanel:function(){return(0,ez.jsx)(af,{setIntegration:i,setIntegrationCount:c})},rightPanel:function(){return a&&(0,ez.jsx)(ai,{integration:a})},showResizable:o>0}),(0,ez.jsx)(nf.Z,{title:"".concat(f," - Integration request failed"),icon:eV.eHv,id:d,content:(0,ez.jsxs)("div",{children:[(0,ez.jsx)("div",{children:(0,ez.jsx)("p",{children:"The integration request could not be completed. Please contact the Pathfinder SSO Team."})}),(0,ez.jsxs)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%"},children:[(0,ez.jsx)(av,{children:(0,ez.jsx)("div",{children:(0,ez.jsxs)("a",{href:"https://chat.developer.gov.bc.ca/channel/sso",target:"_blank",title:"Rocket Chat",style:{color:"#0d6efd"},children:[(0,ez.jsx)(eH.G,{size:"1x",icon:eV.Z6I,color:"#0d6efd"})," Rocketchat"]})})}),(0,ez.jsx)(av,{children:(0,ez.jsx)("div",{children:(0,ez.jsxs)("a",{href:"mailto:bcgov.sso@gov.bc.ca",title:"Pathfinder SSO",style:{color:"#0d6efd"},children:[(0,ez.jsx)(eH.G,{size:"1x",icon:eV.FU$,color:"#0d6efd"})," Email"]})})})]})]}),showCancel:!1,showConfirm:!1,closable:!0})]})}},76944:function(e,n,t){"use strict";t.d(n,{v:function(){return c}});var r,a=t(50029),i=t(87794),s=t.n(i),o=t(21963),c=(r=(0,a.Z)(s().mark(function e(n){var t;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.e.post("events",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[t,null]);case 7:return e.prev=7,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",[null,e.t0]);case 11:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return r.apply(this,arguments)})},37226:function(e,n,t){"use strict";t.d(n,{A_:function(){return P},H0:function(){return C},Jl:function(){return F},OS:function(){return D},Uw:function(){return R},WN:function(){return N},XJ:function(){return S},ct:function(){return I},hG:function(){return k},zD:function(){return O}});var r,a,i,s,o,c,l,u,d,p,h=t(50029),f=t(87794),x=t.n(f),v=t(21963),m=t(75316),g=t.n(m),b=t(25751),j=t.n(b),y=t(76427),w=t.n(y),Z=t(31513),k=(r=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return r.apply(this,arguments)}),P=(a=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("request",{requestId:j()(n)?parseInt(n):n}).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return a.apply(this,arguments)}),S=(i=(0,h.Z)(x().mark(function e(){var n,t,r=arguments;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={params:{include:r.length>0&&void 0!==r[0]?r[0]:"active"}},e.prev=2,e.next=5,v.e.get("requests",n).then(function(e){return e.data});case 5:return t=e.sent,t=g()(t,["createdAt"],["desc"]),e.abrupt("return",[t.map(Z.UB),null]);case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return",(0,v.z)(e.t0));case 13:case"end":return e.stop()}},e,null,[[2,10]])})),function(){return i.apply(this,arguments)}),C=(s=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.get("team-integrations/".concat(n)).then(function(e){return e.data});case 3:return t=e.sent,t=g()(t,["createdAt"],["desc"]),e.abrupt("return",[t.map(Z.UB),null]);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(e){return s.apply(this,arguments)}),I=(o=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.get("requests/".concat(n,"/resubmit")).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return o.apply(this,arguments)}),D=(c=(0,h.Z)(x().mark(function e(n,t){var r;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests/".concat(n,"/restore"),{email:t}).then(function(e){return e.data});case 3:return r=e.sent,e.abrupt("return",[(0,Z.UB)(r),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e,n){return c.apply(this,arguments)}),O=(l=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.post("requests-all",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[{count:t.count,rows:t.rows.map(Z.UB)},null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return l.apply(this,arguments)}),N=(u=(0,h.Z)(x().mark(function e(n){var t,r,a,i,s,o=arguments;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>1&&void 0!==o[1]&&o[1],e.prev=1,i="requests",t&&(i="".concat(i,"?submit=true")),(n=w()(n,["user","lastChanges"])).devLoginTitle=n.devLoginTitle||"",n.testLoginTitle=n.testLoginTitle||"",n.prodLoginTitle=n.prodLoginTitle||"",n.additionalRoleAttribute=n.additionalRoleAttribute||"",n.clientId=n.clientId||"",n.primaryEndUsers=null!==(r=n.primaryEndUsers)&&void 0!==r?r:[],n.primaryEndUsersOther=null!==(a=n.primaryEndUsersOther)&&void 0!==a?a:"",e.next=14,v.e.put(i,n).then(function(e){return e.data});case 14:return s=e.sent,e.abrupt("return",[(0,Z.UB)(s),null]);case 18:return e.prev=18,e.t0=e.catch(1),e.abrupt("return",(0,v.z)(e.t0));case 21:case"end":return e.stop()}},e,null,[[1,18]])})),function(e){return u.apply(this,arguments)}),F=(d=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.delete("requests",{params:{id:n}}).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[t,null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return d.apply(this,arguments)}),R=(p=(0,h.Z)(x().mark(function e(n){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.put("request-metadata",n).then(function(e){return e.data});case 3:return t=e.sent,e.abrupt("return",[(0,Z.UB)(t),null]);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,v.z)(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),function(e){return p.apply(this,arguments)})},73923:function(e,n,t){"use strict";t.d(n,{Di:function(){return i},ON:function(){return r},TE:function(){return a}});var r=function(e){return JSON.stringify(e,void 0,2)},a=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.focus(),n.select();try{return document.execCommand("copy"),document.body.removeChild(n),!0}catch(e){return document.body.removeChild(n),!1}},i=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=window.URL.createObjectURL(new Blob([e],{type:t})),a=document.createElement("a");a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click(),document.body.removeChild(a)}},80382:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/integrations",function(){return t(21560)}])}},function(e){e.O(0,[662,528,908,759,254,954,774,888,179],function(){return e(e.s=80382)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/my-dashboard/teams-3d95e0c6a0edbb66.js b/_next/static/chunks/pages/my-dashboard/teams-3d95e0c6a0edbb66.js deleted file mode 100644 index d4dbc47..0000000 --- a/_next/static/chunks/pages/my-dashboard/teams-3d95e0c6a0edbb66.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[592],{36575:function(e,n,t){"use strict";var r,a=t(71383),i=t(71893).ZP.span(r||(r=(0,a.Z)(["\n color: #dc3545;\n margin: 0;\n padding: 0;\n"])));n.Z=i},39772:function(e,n,t){"use strict";var r,a=t(16835),i=t(50029),o=t(71383),s=t(87794),c=t.n(s),l=t(67294),d=t(11915),u=t(71893),m=t(85330),h=t(3016),p=t(42894),f=t(15812),x=t(36575),b=t(91679),g=t(24444),v=t(85893),j=u.ZP.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"]))),w={idirEmail:"",role:"member",id:new Date().getTime()};n.Z=(0,f.hU)(function(e){var n,t=e.onSubmit,r=e.alert,o=((0,l.useContext)(g.SessionContext)||{}).session,s=(0,l.useState)([w]),u=s[0],f=s[1],y=(0,l.useState)(""),Z=y[0],S=y[1],P=(0,l.useState)(!1),k=P[0],C=P[1],O=(0,l.useState)(null),A=O[0],T=O[1],E=(n=(0,i.Z)(c().mark(function e(){var n,i,s,l,d,m,p,x;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n={name:Z,members:u},i=(0,b.p)(n,o.email),l=(s=(0,a.Z)(i,2))[0],d=s[1],!l){e.next=5;break}return e.abrupt("return",T(d));case 5:return C(!0),e.next=8,(0,h.Cm)(n);case 8:if(m=e.sent,x=(p=(0,a.Z)(m,2))[0],p[1]?r.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to create team. Please try again."}):r.show({variant:"success",fadeOut:1e4,closable:!0,content:"Team ".concat(Z," successfully created")}),!x){e.next=16;break}return e.next=16,t(x.id);case 16:f([w]),S(""),C(!1),T(null),window.location.hash="#";case 21:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,v.jsxs)("div",{children:[(0,v.jsx)(d.default,{label:"Team Name",onChange:function(e){S(e.target.value)},maxLength:"255","data-testid":"team-name",value:Z}),A&&A.name&&(0,v.jsx)(x.Z,{children:null==A?void 0:A.name}),(0,v.jsx)("br",{}),(0,v.jsx)("strong",{children:"Team Members"}),(0,v.jsx)(b.Z,{errors:A,members:u,setMembers:f,currentUser:o}),(0,v.jsxs)(j,{children:[(0,v.jsx)(m.zx,{variant:"secondary",onClick:function(){f([w]),S(""),C(!1),T(null),window.location.hash="#"},children:"Cancel"}),(0,v.jsx)(m.zx,{type:"button",onClick:E,"data-testid":"send-invitation",children:k?(0,v.jsx)(p.rj,{color:"#FFF",height:18,width:50,visible:k}):"Send Invitation"})]})]})})},91679:function(e,n,t){"use strict";t.d(n,{p:function(){return H}});var r,a,i,o,s,c,l,d,u,m,h=t(59499),p=t(27812),f=t(71383);t(67294);var x=t(11915),b=t(35611),g=t(71893),v=t(48966),j=t.n(v),w=t(99603),y=t(59417),Z=t(36575),S=t(74150),P=t(90352),k=t(35685),C=t(67888),O=t(85893);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function T(e){for(var n=1;n .select-inner__control {\n padding: 0.13em 0;\n border: 2px solid #606060;\n visibility: inherit;\n\n &:focus-within {\n outline: 4px solid #3b99fc !important;\n outline-offset: 2px !important;\n }\n }\n"]))),z=(0,g.ZP)(w.G)(l||(l=(0,f.Z)(["\n align-self: center;\n color: red;\n cursor: pointer;\n"]))),M=(0,g.ZP)(w.G)(d||(d=(0,f.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n"]))),U=(0,g.ZP)(w.G)(u||(u=(0,f.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n color: white;\n background-color: black;\n"]))),B=g.ZP.p(m||(m=(0,f.Z)(["\n font-style: italic;\n font-size: 0.95em;\n"]))),H=function(e,n){var t={name:null,members:[]};return e.name||(t.name="Please enter a name"),e.members.forEach(function(r,a){r.idirEmail?j().isEmail(r.idirEmail)?(e.members.filter(function(e){return e.idirEmail===r.idirEmail}).length>1||r.idirEmail===n)&&(t.members[a]="Please use unique email"):t.members[a]="Please enter a valid email":t.members[a]="Please enter an email"}),[t.name||t.members.length>0,t]};n.Z=function(e){var n=e.errors,t=e.members,r=e.setMembers,a=e.allowDelete,i=void 0===a||a,o=e.currentUser,s=void 0===o?null:o,c=function(e,n){var a=T({},t[n]);a.idirEmail=(null==e?void 0:e.label.toLowerCase())||"";var i=(0,p.Z)(t);i[n]=a,r(i)},l=function(e,n){var a=T({},t[e]);a.role=n.target.value;var i=(0,p.Z)(t);i[e]=a,r(i)},d=function(e){r(t.filter(function(n,t){return t!==e}))};return(0,O.jsxs)("div",{children:[(0,O.jsxs)("p",{children:["Enter your team member’s government email address and they will be sent an invitation to join the project. Once they accept the invitation, they will have access to your project. Their invitation will expire in"," ",(0,O.jsx)("strong",{children:"2 business days"}),"."]}),(0,O.jsxs)("p",{children:[(0,O.jsx)("span",{className:"strong",children:"Roles:"}),(0,O.jsx)("br",{}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:(0,O.jsx)(U,{icon:y.Tab})}),"\xa0\xa0",(0,O.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Admins"}),(0,O.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,O.jsx)("b",{children:"managing"})," powers"]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:(0,O.jsx)(M,{icon:y.Tab})}),"\xa0\xa0",(0,O.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Members"}),(0,O.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,O.jsx)("b",{children:"viewing"})," powers"]})]}),(0,O.jsx)("br",{}),(0,O.jsx)("div",{children:(0,O.jsx)("span",{className:"underline",children:(0,O.jsx)(S.default,{external:!0,href:(0,P.eO)("CSS-App-My-Teams#ive-created-a-team-now-what"),children:"View a detailed breakdown of roles on our wiki page"})})})]}),(0,O.jsxs)(I,{children:[(0,O.jsxs)(E,{children:[(0,O.jsx)("strong",{children:"Member"}),(0,O.jsx)("strong",{children:"Role"}),(0,O.jsx)(N,{})]}),(0,O.jsx)(B,{children:"*Please enter email address tied to an IDIR to allow your user to login"}),s&&(0,O.jsxs)(R,{children:[(0,O.jsx)(x.default,{value:(null==s?void 0:s.email)||"",readOnly:!0,fullWidth:!0}),(0,O.jsx)(D,{label:"Role",disabled:!0,value:"admin",readOnlyRole:!0,children:(0,O.jsx)("option",{value:"admin",children:"Admin"})})]}),t.map(function(e,t){return(0,O.jsxs)(R,{children:[(0,O.jsxs)("div",{children:[(0,O.jsx)(k.Z,{loadOptions:C.c,onChange:function(e){return c(e,t)},noOptionsMessage:function(){return"Start typing email..."},className:"email-select",menuPlacement:"top",maxMenuHeight:120,classNamePrefix:"select-inner",placeholder:"Enter email address"}),n&&n.members&&n.members[t]&&(0,O.jsx)(Z.Z,{children:n.members[t]})]}),(0,O.jsxs)(D,{label:"Role",onChange:function(e){return l(t,e)},value:e.role,"data-testid":"user-role",children:[(0,O.jsx)("option",{value:"member",children:"Member"}),(0,O.jsx)("option",{value:"admin",children:"Admin"})]}),t>=0&&i&&(0,O.jsx)(z,{icon:y.uMC,onClick:function(){return d(t)},title:"Delete","data-testid":"delete-user-role"})]},e.id)}),(0,O.jsxs)(F,{onClick:function(){r([].concat((0,p.Z)(t),[{idirEmail:"",role:"member",id:new Date().getTime(),pending:!0}]))},children:[(0,O.jsx)(w.G,{style:{color:"#006fc4"},icon:y.KtF,title:"Add Item","data-testid":"add-user-role"}),(0,O.jsx)("span",{children:"Add another team member"})]})]})]})}},71057:function(e,n,t){"use strict";var r=t(83024),a=t(63055),i={shared:{button:"\n border-radius: 0.222em;\n border-width: 0;\n padding: 0.6em 1.1em;\n text-align: center;\n text-decoration: none;\n font-weight: 700;\n letter-spacing: 1px;\n display: inline-block;\n cursor: pointer;\n box-shadow: 0px 0px 0px 2px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;\n "},size:{xsmall:{button:"\n font-size: 0.7rem;\n "},small:{button:"\n font-size: 0.8rem;\n "},medium:{button:"\n font-size: ".concat(a.n5,";\n ")},large:{button:"\n font-size: ".concat(a.zA,";\n ")}},variant:{primary:{button:"\n background-color: #D5EDFF;\n box-shadow: 0px 0px 0px 2px #D5EDFF inset !important;\n color: #3E3E3E;\n\n &:hover {\n text-decoration: underline;\n background-color: #FFF7D5;\n box-shadow: 0px 0px 0px 2px #FFF7D5 inset !important;\n opacity: 0.80;\n }\n\n &:active {\n opacity: 1;\n }\n "},grey:{button:"\n background-color: #B2B2B2;\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n color: #F8F8F8;\n min-width: 110px;\n\n &:hover {\n background-color: ".concat(a.TU,";\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n }\n ")}}},o=(0,r.applyTheme)(i,{defaultProps:{variant:"primary",size:"medium"},breakProps:[],staticProps:["fullHeight","fullWidth"]});n.Z=o},6178:function(e,n,t){"use strict";var r,a=t(71383);t(67294);var i=t(11163),o=t(46312),s=t(71893),c=t(85330),l=t(59912),d=t(49910),u=t(85893),m=s.ZP.div(r||(r=(0,a.Z)(["\n height: 100%;\n overflow: auto;\n"])));n.Z=function(e){var n=e.tab,t=e.leftPanel,r=e.rightPanel,a=e.showResizable;e.children;var s=(0,i.useRouter)(),h=(0,u.jsxs)(c.mQ,{onChange:function(e){s.replace("/my-dashboard/".concat(e))},activeKey:n,tabBarGutter:30,children:[(0,u.jsx)(c.OK,{tab:"My Projects"},"integrations"),(0,u.jsx)(c.OK,{tab:"My Teams"},"teams")]});return(0,u.jsxs)(l.Z,{rules:d.F,children:[h,void 0===a||a?(0,u.jsx)(o.e,{style:{paddingTop:"2px",borderBottom:"3px solid black"},defaultSize:{width:"100%",height:.4*window.innerHeight},enable:{bottom:!0},handleStyles:{bottom:{bottom:0}},children:(0,u.jsx)(m,{children:t&&t()})}):t&&t(),(0,u.jsx)("br",{}),r&&r()]})}},37222:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eQ}});var r,a,i,o,s,c,l,d,u,m,h,p,f,x,b,g,v,j,w,y,Z,S=t(16835),P=t(50029),k=t(87794),C=t.n(k),O=t(67294),A=t(6178),T=t(59499),E=t(71383),D=t(11163),N=t(71893),F=t(85330),I=t(53442),R=t(71057),z=t(35611),M=t(61165),U=t(91679),B=t(37226),H=t(3016),G=t(15812),K=t(76457),_=t(99603),q=t(59417),L=t(31513),Y=t(76691),W=t(85893),V=(0,N.ZP)(_.G)(r||(r=(0,E.Z)(["\n color: #ff0303;\n"]))),X=N.ZP.div(a||(a=(0,E.Z)(["\n display: grid;\n grid-template-columns: 1fr 6fr;\n"]))),$=function(e){var n=e.title,t=e.content,r=e.note;return(0,W.jsxs)(X,{children:[(0,W.jsx)(V,{icon:q.RLE,size:"3x"}),(0,W.jsxs)("div",{children:[n&&(0,W.jsx)("strong",{children:n}),t&&(0,W.jsx)("p",{children:t}),r&&(0,W.jsx)("i",{children:r})]})]})},Q=t(75780),J=t(64735),ee=t(42894),en=t(63055),et=N.ZP.div(i||(i=(0,E.Z)(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding-right: 15px;\n & > * {\n margin-left: 15px;\n }\n"]))),er=(0,N.ZP)(_.G)(o||(o=(0,E.Z)(["\n cursor: ",";\n ","\n ",";\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"color: #CACACA;":"color: inherit; &:hover { color: ".concat(e.activeColor||"#000","; }")},function(e){return e.isUnread?"color: ".concat(en.Uo):""});function ea(e){var n=e.copyOrDownloadAction,t=e.showDeleteModal,r=e.showUpdateModal,a=e.actionsDisabled;return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(et,{children:[(0,W.jsx)(er,{icon:q.kZ_,role:"button","aria-label":"copy",onClick:function(){return n(!1)},title:"Copy to clipboard",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.q7m,role:"button","aria-label":"download",onClick:function(){return n(!0)},title:"Download",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.lUd,role:"button","aria-label":"download",onClick:r,title:"Update secret",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.$aW,role:"button","aria-label":"delete",onClick:t,title:"Delete",size:"lg",disabled:a})]})})}N.ZP.div(s||(s=(0,E.Z)(["\n height: 40px;\n border-right: 2px solid #e3e3e3;\n"])));var ei=t(73923),eo=N.ZP.td(c||(c=(0,E.Z)(["\n float: right;\n"])));(0,N.ZP)(_.G)(l||(l=(0,E.Z)(["\n color: #000000;\n"])));var es=N.ZP.div(d||(d=(0,E.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"])));function ec(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"2.7em"},children:"Actions"})}N.ZP.div(u||(u=(0,E.Z)(["\n display: grid;\n grid-template-columns: 1fr 6fr;\n"])));var el=(0,G.hU)(function(e){var n,t,r,a=e.team,i=e.selectedServiceAccount,o=e.setSelectedServiceAccount,s=e.teamServiceAccounts,c=e.getTeamServiceAccounts,l=e.alert,d="delete-service-account-modal",u="update-service-account-secret-modal",m=function(e){return e&&(null==e?void 0:e.status)!=="applied"&&!(null!=e&&e.archived)},h=function(){m(i)||(window.location.hash=d)},p=(n=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.yN)(a.id,null==i?void 0:i.id);case 2:if(n=e.sent,(t=(0,S.Z)(n,2))[0],!t[1]){e.next=9;break}return l.show({variant:"danger",content:"Failed to delete service account, please try again."}),e.abrupt("return");case 9:c(a.id);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),f=function(){m(i)||(window.location.hash=u)},x=(t=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.Gc)(a.id,null==i?void 0:i.id);case 2:n=e.sent,(t=(0,S.Z)(n,2))[0],t[1]&&l.show({variant:"danger",content:"Failed to update secret, please try again."});case 7:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),b=(r=(0,P.Z)(C().mark(function e(n){var t,r,o,s,c;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!m(i)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,H.vM)(a.id,null==i?void 0:i.id);case 4:if(r=e.sent,s=(o=(0,S.Z)(r,2))[0],!o[1]){e.next=11;break}return l.show({variant:"danger",content:"Failed to ".concat(n?"download":"copy",", please try again.")}),e.abrupt("return");case 11:s=s||{},c={tokenUrl:"".concat(s["auth-server-url"],"/realms/").concat(s.realm,"/protocol/openid-connect/token"),clientId:"".concat(s.resource),clientSecret:"".concat(null===(t=s.credentials)||void 0===t?void 0:t.secret)},n?(0,ei.Di)((0,ei.ON)(c),"".concat(null==i?void 0:i.clientId,".json")):(0,ei.TE)((0,ei.ON)(c));case 14:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(I.Z,{headers:[{accessor:"id",Header:"API Account ID"},{accessor:"actions",Header:(0,W.jsx)(ec,{}),disableSortBy:!0}],data:s.map(function(e){return{id:e.id,actions:(0,W.jsx)(eo,{children:(0,W.jsx)(ea,{copyOrDownloadAction:b,showUpdateModal:f,showDeleteModal:h,actionsDisabled:Boolean(m(e))})})}}),colfilters:[],activateRow:function(e){var n=e.cells[0].row.original.id;s.forEach(function(e){e.id==n&&o(e)})},rowSelectorKey:"id"}),(0,W.jsx)(M.Z,{title:"Request a new secret for CSS API Account",icon:q.eHv,onConfirm:x,id:u,content:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(es,{children:(0,W.jsx)("strong",{children:"You are about to request a new secret for CSS API Account"})}),(0,W.jsx)("br",{}),(0,W.jsx)("p",{children:"Once the new secret gets generated, your previous secret will no longer be valid for any applications using it."}),(0,W.jsx)("p",{children:"This means any application using CSS API through this account should be configured with the new secret."})]}),buttonStyle:"custom",confirmText:"Confirm",closable:!0}),(0,W.jsx)(M.Z,{title:"Delete CSS API Account",icon:null,onConfirm:p,id:d,content:(0,W.jsx)($,{title:"Are you sure that you want to delete this CSS API Account?",content:"Once you delete this CSS PI Account, this action cannot be undone."}),buttonStyle:"danger",confirmText:"Delete CSS API Account",closable:!0})]})}),ed=t(44e3),eu=t(9206),em=t(24444),eh=t(90352);function ep(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}var ef=N.ZP.div(m||(m=(0,E.Z)(["\n padding-left: 1rem;\n ","\n"])),function(e){return"\n margin-top: ".concat(e.marginTop||"0",";\n margin-bottom: ").concat(e.marginBottom||"0",";\n margin-left: ").concat(e.marginLeft||"0",";\n margin-right: ").concat(e.marginRight||"0",";\n ")}),ex=N.ZP.td(h||(h=(0,E.Z)(["\n float: right;\n"]))),eb=(0,N.ZP)(R.Z)(p||(p=(0,E.Z)(["\n padding: 0 !important;\n margin: 10px 0 !important;\n"]))),eg=N.ZP.td(f||(f=(0,E.Z)(["\n text-align: left !important;\n"]))),ev=N.ZP.div(x||(x=(0,E.Z)(["\n height: var(--field-top-spacing);\n"])));function ej(){return(0,W.jsxs)("span",{children:["Role\xa0",(0,W.jsx)(Q.Z,{title:"",content:'Admin: can manage integrations and teams.
Members: can only manage integrations.',hide:200})]})}function ew(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"1.8em"},children:"Actions"})}function ey(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"0.4em"},children:"Actions"})}var eZ="add-member-modal",eS="delete-member-modal",eP={idirEmail:"",role:"member",pending:!0},ek=function(e){var n=e.onConfirmDelete,t=e.type,r={confirmText:"Delete",buttonStyle:"danger"},a="",i="";switch(t){case"allow":a="Once they are deleted, they will no longer have access to the team's integrations.",i="Are you sure that you want to delete this team member?",r.onConfirm=n;break;case"notAllowed":a="Before you delete the last team admin, you must assign a new admin.",r.confirmText="Okay",r.buttonStyle="custom"}return(0,W.jsx)(M.Z,function(e){for(var n=1;n2?(n=q.RLE,t="#ff0303",r="Invitation Expired"):a?(n=q.SZw,t="#fcba19",r="Invitation Sent"):(t="#2e8540",n=q.f8k,r="Active Member"),(0,W.jsx)(_.G,{icon:n,title:r,style:{color:t}})};N.ZP.div(g||(g=(0,E.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n margin-bottom: 1rem;\n"]))),N.ZP.div(v||(v=(0,E.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n border-bottom: 1px solid gray;\n"])));var eT=N.ZP.div(j||(j=(0,E.Z)(["\n text-align: center;\n"]))),eE=(0,G.hU)(function(e){var n,t,r,a,i,o,s,c=e.alert,l=e.currentUser,d=e.team,u=e.loadTeams,m=(0,D.useRouter)(),h=(0,O.useState)([]),p=h[0],f=h[1],x=(0,O.useState)([]),b=x[0],g=x[1],v=(0,O.useState)([]),j=v[0],w=v[1],y=(0,O.useState)(null),Z=y[0],k=y[1],A=(0,O.useState)(null),T=A[0],E=A[1],N=(0,O.useState)(null),R=N[0],G=N[1],_=(0,O.useState)([eP]),V=_[0],X=_[1],$=(0,O.useState)(),Q=$[0],en=$[1],et=(0,O.useState)(!1),er=et[0],ea=et[1],ei=(0,O.useState)(),eo=ei[0],es=ei[1],ec=(0,O.useState)("allow"),ep=ec[0],eE=ec[1],eD=(0,O.useContext)(em.SurveyContext),eN=(n=(0,P.Z)(C().mark(function e(n){var t,r,a,i,o,s,c,d,u,m;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ea(!0),e.next=3,Promise.all([(0,H.YY)(n),(0,B.H0)(n)]);case 3:return t=e.sent,a=(r=(0,S.Z)(t,2))[0],i=r[1],s=(o=(0,S.Z)(a,2))[0],c=o[1],u=(d=(0,S.Z)(i,2))[0],m=d[1],c||m?(f([]),G(null),g([])):(f(s),G(s.find(function(e){return e.idirEmail===l.email})),g(u||[])),e.next=12,eF(n);case 12:ea(!1);case 13:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),eF=(t=(0,P.Z)(C().mark(function e(n){var t,r,a;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ea(!0),"admin"!==d.role){e.next=11;break}return e.next=4,(0,H.Sx)(n);case 4:t=e.sent,a=(r=(0,S.Z)(t,2))[0],r[1]?w([]):(w(a),k(a&&a.length>0?a[0]:null)),e.next=13;break;case 11:w([]),k(null);case 13:ea(!1);case 14:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});(0,O.useEffect)(function(){E(null),eN(d.id)},[d.id]),(0,O.useEffect)(function(){Z&&"applied"!==Z.status&&!Z.archived&&E(Z)},[Z]),(0,O.useEffect)(function(){return T&&"applied"!==T.status?(clearInterval(s),s=setInterval((0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.ZT)(d.id,T.id);case 2:n=e.sent,r=(t=(0,S.Z)(n,2))[0],t[1]?clearInterval(s):E(r);case 7:case"end":return e.stop()}},e)})),5e3)):(eF(d.id),E(null)),function(){s&&clearInterval(s)}},[T]);var eI=function(e){e&&((0,L.Wv)(p,e)?eE("allow"):eE("notAllowed"),es(e),window.location.hash=eS)},eR=(r=(0,P.Z)(C().mark(function e(){var n,t,r,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,U.p)({name:d.name,members:V},l.email),r=(t=(0,S.Z)(n,2))[0],a=t[1],!r){e.next=4;break}return en(a),e.abrupt("return");case 4:return e.next=6,(0,H.yG)({members:V,id:d.id});case 6:if(i=e.sent,!(0,S.Z)(i,2)[1]){e.next=13;break}c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to add new members. Please ensure the emails you have entered are valid,\n and reach out to the SSO team if the problem persists"}),e.next=18;break;case 13:return e.next=15,eN(d.id);case 15:X([eP]),window.location.hash="",c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Invited new members to your team!"});case 18:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),ez=(a=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!eo||!d.id)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,H.MH)(Number(eo),d.id);case 4:n=e.sent,(0,S.Z)(n,2)[1]?c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to delete team member."}):(f(p.filter(function(e){return e.id!==eo})),r=null===(t=p.find(function(e){return e.id===eo}))||void 0===t?void 0:t.idirEmail,c.show({variant:"success",fadeOut:1e4,closable:!0,content:"".concat(r," has successfully been deleted.")}));case 8:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)}),eM=function(e){m.push({pathname:"/my-dashboard/integrations",query:{integr:e}})},eU=(i=(0,P.Z)(C().mark(function e(n){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d.id){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,H.rU)(n,d.id);case 4:t=e.sent,(0,S.Z)(t,2)[1]?c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to resend invitation."}):c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Sent new invitation for team member ".concat(n.idirEmail)});case 8:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}),eB=(o=(0,P.Z)(C().mark(function e(n,t){var r,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.zZ)(d.id,n,{role:t});case 2:if(r=e.sent,i=(a=(0,S.Z)(r,2))[0],!a[1]){e.next=9;break}return c.show({variant:"danger",content:"Failed to update user role. Please try again."}),e.abrupt("return");case 9:f(p.map(function(e){return e.id===n?i:e})),c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Member role updated successfully"});case 12:case"end":return e.stop()}},e)})),function(e,n){return o.apply(this,arguments)});if(!d||!R)return null;var eH="admin"===R.role;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("h2",{children:"Team Details"}),(0,W.jsxs)(F.mQ,{defaultActiveKey:"members",tabBarGutter:30,children:[(0,W.jsx)(F.OK,{tab:"Members",children:(0,W.jsxs)(ef,{children:[eH?(0,W.jsx)(eb,{children:(0,W.jsx)(F.zx,{onClick:function(){return window.location.hash=eZ},"data-testid":"add-new-team-member",children:"+ Add New Team Members"})}):(0,W.jsx)("br",{}),(0,W.jsx)(K.Z,{type:"text",rows:7,ready:!er,style:{marginTop:"20px"},children:(0,W.jsx)(I.Z,{"data-testid":"team-members-table",variant:"medium",headers:[{accessor:"status",Header:"Invite Status",disableSortBy:!0},{accessor:"idirEmail",Header:"Email"},{accessor:"role",Header:(0,W.jsx)(ej,{}),disableSortBy:!0},{accessor:"actions",Header:(0,W.jsx)(ey,{}),disableSortBy:!0}],data:p.map(function(e){var n=eH&&R.id!==e.id;return{status:(0,W.jsx)(eA,{pending:e.pending,invitationSendTime:e.createdAt}),idirEmail:e.idirEmail,role:n&&!e.pending?(0,W.jsxs)(z.default,{onChange:function(n){return eB(e.id,n.target.value)},value:e.role,children:[(0,W.jsx)("option",{value:"member",children:"Member"}),(0,W.jsx)("option",{value:"admin",children:"Admin"})]}):(0,L.kC)(e.role),actions:(0,W.jsxs)(ex,{children:[n&&e.pending&&(0,W.jsx)(eC,{icon:q.zBy,size:"lg",onClick:function(){return eU(e)},title:"Resend Invitation",style:{marginRight:"6px"},"data-testid":"resend-invitation"}),n&&(0,W.jsx)(eC,{icon:q.$aW,onClick:function(){return eI(e.id)},size:"lg",title:"Delete User",style:{marginRight:"16px"},"data-testid":"delete-member"})]})}}),colfilters:[],rowSelectorKey:"status",readOnly:!0})})]})},"members"),(0,W.jsx)(F.OK,{tab:"Integrations",children:(0,W.jsx)(ef,{marginTop:"20px",children:(0,W.jsx)(K.Z,{type:"text",rows:7,ready:!er,style:{marginTop:"20px"},children:(0,W.jsx)(I.Z,{variant:"medium",headers:[{accessor:"status",Header:"Status",disableSortBy:!0},{accessor:"id",Header:"Request ID"},{accessor:"projectName",Header:"Project Name"},{accessor:"actions",Header:(0,W.jsx)(ew,{}),disableSortBy:!0}],data:(null==b?void 0:b.length)>0?null==b?void 0:b.map(function(e){return{status:(0,W.jsx)(eO,{status:null==e?void 0:e.status}),id:e.id,projectName:e.projectName,actions:(0,W.jsx)(ex,{children:(0,W.jsx)(Y.ZP,{request:e,onDelete:function(){u(),eN(null==d?void 0:d.id)},children:(0,W.jsx)(Y.Kk,{icon:q.Mdf,"aria-label":"view",onClick:function(){return eM(e.id)},size:"lg"})})})}}):[],readOnly:!0,colfilters:[],rowSelectorKey:"status",noDataFoundElement:(0,W.jsxs)(eg,{colSpan:5,children:[(0,W.jsx)("br",{}),"There are no integrations for this team yet.",(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),"To add this team to an ",(0,W.jsx)("span",{className:"strong",children:"existing integration"}),":",(0,W.jsx)("span",{className:"line-height-200"}),(0,W.jsxs)("ol",{children:[(0,W.jsxs)("li",{children:["Go to your"," ",(0,W.jsx)("span",{className:"text-blue",children:(0,W.jsx)("span",{className:"strong",children:"Projects"})})," ","tab"]}),(0,W.jsx)("li",{children:"Select the “pencil” icon to edit the integration"}),(0,W.jsx)("li",{children:"Select this team from the “Project Team” drop down"})]}),(0,W.jsx)("br",{}),"To add this team to a ",(0,W.jsx)("span",{className:"strong",children:"new integration"}),":",(0,W.jsx)("span",{className:"line-height-200"}),(0,W.jsxs)("ol",{children:[(0,W.jsxs)("li",{children:["Go to your"," ",(0,W.jsx)("span",{className:"text-blue",children:(0,W.jsx)("span",{className:"strong",children:"Projects"})})," ","tab"]}),(0,W.jsx)("li",{children:"Select “+ Request SSO Integration”"}),(0,W.jsx)("li",{children:"Select “Yes” to allow multiple team members to manage the integration"}),(0,W.jsx)("li",{children:"Select this team from the “Project Team” drop down"})]})]})})})})},"integrations"),eH&&(0,W.jsx)(F.OK,{tab:"CSS API Account",children:(0,W.jsx)(ef,{marginTop:"10px",children:er?(0,W.jsxs)(eT,{children:[(0,W.jsx)(ev,{}),(0,W.jsx)(ee.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]}):(0,W.jsxs)(J.ZP,{cols:10,children:[(0,W.jsxs)(J.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,W.jsx)(J.ZP.Col,{span:4,children:j.length>0?(0,W.jsx)(el,{team:d,selectedServiceAccount:Z,setSelectedServiceAccount:k,teamServiceAccounts:j,getTeamServiceAccounts:eF}):(0,W.jsx)(F.zx,{style:{marginBottom:10},onClick:(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ea(!0),e.next=3,(0,H.rl)(d.id);case 3:n=e.sent,(t=(0,S.Z)(n,2))[0],(r=t[1])?(ea(!1),c.show({variant:"danger",fadeOut:1e4,closable:!0,content:r})):(null==eD||eD.setShowSurvey(!0,"cssApiRequest"),eF(d.id));case 8:case"end":return e.stop()}},e)})),children:"+ Request CSS API Account"})}),(0,W.jsx)(J.ZP.Col,{span:6,children:T&&(0,W.jsx)("div",{style:{display:"inline-flex",margin:"20px 0 20px 0",background:"#FFCCCB",borderRadius:"5px"},children:(0,W.jsx)("div",{style:{padding:5},children:(0,W.jsxs)(ed.B,{children:["Your request for an API account could not be completed. Please"," ",(0,W.jsx)(eu.rU,{external:!0,href:"mailto:bcgov.sso@gov.bc.ca",children:"contact the Pathfinder SSO Team"})]})})})})]}),j.length>0&&(0,W.jsx)(J.ZP.Row,{children:(0,W.jsxs)(ed.$,{children:["For more information on how to use the CSS API Account with your integrations,"," ",(0,W.jsx)(eu.rU,{href:"".concat(eh.UN,"/integrating-your-application/css-app-api"),external:!0,children:"click to learn more on our wiki page"}),"."]})})]})})},"service-accounts")]}),(0,W.jsx)(M.Z,{title:"Add a New Team Member",icon:null,id:eZ,content:(0,W.jsx)(U.Z,{members:V,setMembers:X,allowDelete:eH,errors:Q,currentUser:l}),onConfirm:eR,onClose:function(){X([eP]),f([]),en(null)},skipCloseOnConfirm:!0,buttonStyle:"custom",closable:!0}),(0,W.jsx)(ek,{onConfirmDelete:ez,type:ep})]})}),eD=t(39772),eN=t(11915),eF=t(36575),eI=N.ZP.div(w||(w=(0,E.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"])));function eR(e){var n,t=e.onSubmit,r=e.teamId,a=e.initialTeamName,i=(0,O.useState)(""),o=i[0],s=i[1],c=(0,O.useState)(!1),l=c[0],d=c[1],u=(0,O.useState)(),m=u[0],h=u[1],p=(0,O.useState)(!1),f=p[0],x=p[1];(0,O.useEffect)(function(){s(a)},[a]);var b=function(e){var n={members:[]},t=!1;return(e.name.trim()||(n.name="Please enter a name",t=!0),t)?n:(h(void 0),null)},g=(n=(0,P.Z)(C().mark(function e(){var n,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x(!1),!(a=b(n={name:o.trim(),id:r}))){e.next=5;break}return e.abrupt("return",h(a));case 5:return d(!0),e.next=8,(0,H.w2)(n);case 8:if(i=e.sent,!(0,S.Z)(i,2)[1]){e.next=15;break}return x(!0),d(!1),e.abrupt("return");case 15:return e.next=17,t();case 17:d(!1),window.location.hash="#";case 19:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,W.jsxs)("div",{children:[(0,W.jsx)(eN.default,{label:"New Team Name",onChange:function(e){s(e.target.value)},value:o,"data-testid":"edit-name"}),m&&m.name&&(0,W.jsx)(eF.Z,{children:null==m?void 0:m.name}),f&&(0,W.jsx)(eF.Z,{children:"Failed to update team name"}),(0,W.jsx)("br",{}),(0,W.jsxs)(eI,{children:[(0,W.jsx)(F.zx,{variant:"secondary",onClick:function(){s(a),window.location.hash="#"},style:{marginRight:"20px"},"data-testid":"cancel-edit-name",children:"Cancel"}),(0,W.jsx)(F.zx,{type:"button",onClick:g,"data-testid":"save-edit-name",children:l?(0,W.jsx)(ee.rj,{color:"#FFF",height:18,width:50,visible:l}):"Save"})]})]})}var ez=t(31637),eM=t(20353),eU=t(34798),eB=t.n(eU);function eH(e){var n=e.team,t=e.showEditTeamNameModal,r=e.showDeleteModal,a=(0,eM.te)(n),i=(0,eM.VV)(n);return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(Y.c4,{children:[(0,W.jsx)(Y.Kk,{disabled:!i,icon:q.Xcf,role:"button","aria-label":"edit",title:"Edit",size:"lg",onClick:function(){return i?t(n):eB()},"data-testid":"edit-team-button"}),(0,W.jsx)(Y.Kk,{disabled:!a,icon:q.$aW,role:"button","aria-label":"delete",title:"Delete",size:"lg",onClick:function(){return a?r(n):eB()},style:{marginLeft:"7px"},"data-testid":"delete-team-button"})]})})}var eG=t(99245),eK=t.n(eG),e_=t(48398),eq="delete-team-modal",eL="edit-team-name-modal",eY=N.ZP.tr(y||(y=(0,E.Z)(["\n float: right;\n padding-right: 0.5em;\n"])));function eW(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"1em"},children:"Actions"})}var eV=(0,N.ZP)(F.zx)(Z||(Z=(0,E.Z)(["\n &&& {\n margin: 0;\n }\n"]))),eX=function(e){var n=e.handleNewTeamClick;return(0,W.jsx)(eV,{size:"large",onClick:n,variant:"callout",children:"+ Create a New Team"})},e$=(0,G.hU)(function(e){var n,t,r,a=e.currentUser,i=e.setTeam,o=e.loading,s=e.teams,c=e.loadTeams,l=e.hasError,d=e.alert,u=(0,O.useState)(null),m=u[0],h=u[1],p=(0,O.useState)(void 0),f=p[0],x=p[1],b=(0,O.useState)([]),g=b[0],v=b[1],j=(0,O.useState)(!1),w=j[0],y=j[1],Z=m&&0===Number(m.integrationCount),k=function(e){h(e),x(null==e?void 0:e.id),i(e)},A=(n=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((null==m?void 0:m.role)!=="admin"){e.next=13;break}return e.next=3,(0,H.Sx)(f);case 3:if(n=e.sent,r=(t=(0,S.Z)(n,2))[0],!t[1]){e.next=10;break}return d.show({variant:"danger",content:"Failed to load service accounts for team. Please refresh."}),e.abrupt("return");case 10:v(r),e.next=14;break;case 13:v([]);case 14:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});(0,O.useEffect)(function(){(null==s?void 0:s.length)>0?f&&s.find(function(e){return e.id===f})||k(s[0]):k(null)},[s]),(0,O.useEffect)(function(){Number(null==m?void 0:m.serviceAccountCount)>0&&A()},[f]);var T=(t=(0,P.Z)(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.location.hash=eh.zw);case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),E=function(e){y(!1),k(e),f===e.id&&(window.location.hash=eq)},D=function(e){k(e),window.location.hash=eL},N=l?(0,W.jsx)(e_.q1,{}):s&&(null==s?void 0:s.length)!==0?(0,W.jsx)(I.Z,{headers:[{accessor:"name",Header:"Team Name"},{accessor:"actions",Header:(0,W.jsx)(eW,{}),disableSortBy:!0}],data:s&&s.map(function(e){return{teamId:e.id,name:e.name,actions:(0,W.jsx)(eY,{children:(0,W.jsx)(eH,{team:e,showEditTeamNameModal:D,showDeleteModal:E})})}}),activateRow:function(e){var n=e.cells[0].row.original.teamId;s.forEach(function(e){e.id==n&&k(e)})},rowSelectorKey:"teamId",activeSelector:f,colfilters:[]}):(0,W.jsx)(e_.Vs,{message:"You have not been added to any teams yet."}),F=(r=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(y(!1),Z){e.next=3;break}return e.abrupt("return");case 3:return g.length>0&&Promise.all(g.map(function(e){(0,H.yN)(f,e.id)})),e.next=6,(0,H.fC)(f);case 6:if(n=e.sent,(t=(0,S.Z)(n,2))[0],!t[1]){e.next=14;break}y(!0),e.next=16;break;case 14:return e.next=16,c();case 16:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)});return o?(0,W.jsx)(ez.Z,{}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("br",{}),(0,W.jsx)(eX,{handleNewTeamClick:T}),(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),N,(0,W.jsx)(M.Z,{title:"Create a New Team",icon:null,onConfirm:function(){return console.log("confirm")},id:eh.zw,content:(0,W.jsx)(eD.Z,{onSubmit:c,currentUser:a}),showCancel:!1,showConfirm:!1,closable:!0}),(0,W.jsx)(M.Z,{title:"Edit Team Name",icon:null,onConfirm:function(){return console.log("confirm")},id:eL,content:(0,W.jsx)(eR,{onSubmit:c,teamId:f,initialTeamName:(null==m?void 0:m.name)||""}),showCancel:!1,showConfirm:!1,closable:!0}),(0,W.jsx)(M.Z,{title:"Delete team",icon:null,onConfirm:F,id:eq,content:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)($,{title:"Are you sure that you want to delete this team?",content:Z?"Once you delete this team, this action cannot be undone.":"Before you delete this team, you will need to delete the integration(s) the team is responsible for.",note:Z&&!eK()(g)?"*By deleting this team, you are also deleting the CSS App API Account that belongs to this team.":""}),w&&(0,W.jsx)(eF.Z,{children:"Failed to delete. Please try again"})]}),buttonStyle:Z?"danger":"custom",confirmText:Z?"Delete Team":"Okay",skipCloseOnConfirm:!0,closable:!0})]})}),eQ=function(e){var n,t=e.session,r=(0,O.useState)(!0),a=r[0],i=r[1],o=(0,O.useState)(!1),s=o[0],c=o[1],l=(0,O.useState)(null),d=l[0],u=l[1],m=(0,O.useState)([]),h=m[0],p=m[1],f=(n=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i(!0),e.next=3,(0,H.Dc)();case 3:n=e.sent,r=(t=(0,S.Z)(n,2))[0],c(!!t[1]),p(r||[]),i(!1);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,O.useEffect)(function(){f()},[]),(0,W.jsx)(A.Z,{tab:"teams",leftPanel:function(){return(0,W.jsx)(e$,{currentUser:t,setTeam:u,loading:a,teams:h,loadTeams:f,hasError:s})},rightPanel:function(){return d&&(0,W.jsx)(eE,{team:d,currentUser:t,loadTeams:f})}})}},73923:function(e,n,t){"use strict";t.d(n,{Di:function(){return i},ON:function(){return r},TE:function(){return a}});var r=function(e){return JSON.stringify(e,void 0,2)},a=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.focus(),n.select();try{return document.execCommand("copy"),document.body.removeChild(n),!0}catch(e){return document.body.removeChild(n),!1}},i=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=window.URL.createObjectURL(new Blob([e],{type:t})),a=document.createElement("a");a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click(),document.body.removeChild(a)}},69137:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/teams",function(){return t(37222)}])}},function(e){e.O(0,[528,591,442,760,974,954,774,888,179],function(){return e(e.s=69137)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/my-dashboard/teams-9f044e1dddb815d3.js b/_next/static/chunks/pages/my-dashboard/teams-9f044e1dddb815d3.js new file mode 100644 index 0000000..d5e4f1b --- /dev/null +++ b/_next/static/chunks/pages/my-dashboard/teams-9f044e1dddb815d3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[592],{99245:function(e,n,t){e=t.nmd(e);var r,a,i,o="[object Map]",s="[object Promise]",c="[object Set]",l="[object WeakMap]",u="[object DataView]",d=/^\[object .+?Constructor\]$/,m="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,p="object"==typeof self&&self&&self.Object===Object&&self,f=m||p||Function("return this")(),h=n&&!n.nodeType&&n,x=h&&e&&!e.nodeType&&e,b=x&&x.exports===h,v=Function.prototype,g=Object.prototype,j=f["__core-js_shared__"],y=(r=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",w=v.toString,Z=g.hasOwnProperty,S=g.toString,P=RegExp("^"+w.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=b?f.Buffer:void 0,C=g.propertyIsEnumerable,O=k?k.isBuffer:void 0,A=(a=Object.keys,i=Object,function(e){return a(i(e))}),T=_(f,"DataView"),E=_(f,"Map"),D=_(f,"Promise"),F=_(f,"Set"),N=_(f,"WeakMap"),I=!C.call({valueOf:1},"valueOf"),R=G(T),M=G(E),z=G(D),U=G(F),B=G(N);function _(e,n){var t=null==e?void 0:e[n];return!(!W(t)||y&&y in t)&&(L(t)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(t)?P:d).test(G(t))?t:void 0}var H=function(e){return S.call(e)};function G(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(T&&H(new T(new ArrayBuffer(1)))!=u||E&&H(new E)!=o||D&&H(D.resolve())!=s||F&&H(new F)!=c||N&&H(new N)!=l)&&(H=function(e){var n=S.call(e),t="[object Object]"==n?e.constructor:void 0,r=t?G(t):void 0;if(r)switch(r){case R:return u;case M:return o;case z:return s;case U:return c;case B:return l}return n});var K=Array.isArray;function q(e){var n;return null!=e&&"number"==typeof(n=e.length)&&n>-1&&n%1==0&&n<=9007199254740991&&!L(e)}var $=O||function(){return!1};function L(e){var n=W(e)?S.call(e):"";return"[object Function]"==n||"[object GeneratorFunction]"==n}function W(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}e.exports=function(e){if(q(e)&&(K(e)||"string"==typeof e||"function"==typeof e.splice||$(e)||e&&"object"==typeof e&&q(e)&&Z.call(e,"callee")&&(!C.call(e,"callee")||"[object Arguments]"==S.call(e))))return!e.length;var n,t,r=H(e);if(r==o||r==c)return!e.size;if(I||(t="function"==typeof(n=e&&e.constructor)&&n.prototype||g,e===t))return!A(e).length;for(var a in e)if(Z.call(e,a))return!1;return!0}},36575:function(e,n,t){"use strict";var r,a=t(71383),i=t(71893).ZP.span(r||(r=(0,a.Z)(["\n color: #dc3545;\n margin: 0;\n padding: 0;\n"])));n.Z=i},39772:function(e,n,t){"use strict";var r,a=t(16835),i=t(50029),o=t(71383),s=t(87794),c=t.n(s),l=t(67294),u=t(11915),d=t(71893),m=t(85330),p=t(3016),f=t(42894),h=t(15812),x=t(36575),b=t(91679),v=t(24444),g=t(85893),j=d.ZP.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"]))),y={idirEmail:"",role:"member",id:new Date().getTime()};n.Z=(0,h.hU)(function(e){var n,t=e.onSubmit,r=e.alert,o=((0,l.useContext)(v.SessionContext)||{}).session,s=(0,l.useState)([y]),d=s[0],h=s[1],w=(0,l.useState)(""),Z=w[0],S=w[1],P=(0,l.useState)(!1),k=P[0],C=P[1],O=(0,l.useState)(null),A=O[0],T=O[1],E=(n=(0,i.Z)(c().mark(function e(){var n,i,s,l,u,m,f,x;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n={name:Z,members:d},i=(0,b.p)(n,o.email),l=(s=(0,a.Z)(i,2))[0],u=s[1],!l){e.next=5;break}return e.abrupt("return",T(u));case 5:return C(!0),e.next=8,(0,p.Cm)(n);case 8:if(m=e.sent,x=(f=(0,a.Z)(m,2))[0],f[1]?r.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to create team. Please try again."}):r.show({variant:"success",fadeOut:1e4,closable:!0,content:"Team ".concat(Z," successfully created")}),!x){e.next=16;break}return e.next=16,t(x.id);case 16:h([y]),S(""),C(!1),T(null),window.location.hash="#";case 21:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,g.jsxs)("div",{children:[(0,g.jsx)(u.default,{label:"Team Name",onChange:function(e){S(e.target.value)},maxLength:"255","data-testid":"team-name",value:Z}),A&&A.name&&(0,g.jsx)(x.Z,{children:null==A?void 0:A.name}),(0,g.jsx)("br",{}),(0,g.jsx)("strong",{children:"Team Members"}),(0,g.jsx)(b.Z,{errors:A,members:d,setMembers:h,currentUser:o}),(0,g.jsxs)(j,{children:[(0,g.jsx)(m.zx,{variant:"secondary",onClick:function(){h([y]),S(""),C(!1),T(null),window.location.hash="#"},children:"Cancel"}),(0,g.jsx)(m.zx,{type:"button",onClick:E,"data-testid":"send-invitation",children:k?(0,g.jsx)(f.rj,{color:"#FFF",height:18,width:50,visible:k}):"Send Invitation"})]})]})})},91679:function(e,n,t){"use strict";t.d(n,{p:function(){return _}});var r,a,i,o,s,c,l,u,d,m,p=t(59499),f=t(27812),h=t(71383);t(67294);var x=t(11915),b=t(35611),v=t(71893),g=t(48966),j=t.n(g),y=t(99603),w=t(59417),Z=t(36575),S=t(74150),P=t(90352),k=t(35685),C=t(67888),O=t(85893);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function T(e){for(var n=1;n .select-inner__control {\n padding: 0.13em 0;\n border: 2px solid #606060;\n visibility: inherit;\n\n &:focus-within {\n outline: 4px solid #3b99fc !important;\n outline-offset: 2px !important;\n }\n }\n"]))),M=(0,v.ZP)(y.G)(l||(l=(0,h.Z)(["\n align-self: center;\n color: red;\n cursor: pointer;\n"]))),z=(0,v.ZP)(y.G)(u||(u=(0,h.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n"]))),U=(0,v.ZP)(y.G)(d||(d=(0,h.Z)(["\n padding: 3px;\n border-radius: 25px;\n border-style: solid;\n border-color: black;\n border-width: thin;\n color: white;\n background-color: black;\n"]))),B=v.ZP.p(m||(m=(0,h.Z)(["\n font-style: italic;\n font-size: 0.95em;\n"]))),_=function(e,n){var t={name:null,members:[]};return e.name||(t.name="Please enter a name"),e.members.forEach(function(r,a){r.idirEmail?j().isEmail(r.idirEmail)?(e.members.filter(function(e){return e.idirEmail===r.idirEmail}).length>1||r.idirEmail===n)&&(t.members[a]="Please use unique email"):t.members[a]="Please enter a valid email":t.members[a]="Please enter an email"}),[t.name||t.members.length>0,t]};n.Z=function(e){var n=e.errors,t=e.members,r=e.setMembers,a=e.allowDelete,i=void 0===a||a,o=e.currentUser,s=void 0===o?null:o,c=function(e,n){var a=T({},t[n]);a.idirEmail=(null==e?void 0:e.label.toLowerCase())||"";var i=(0,f.Z)(t);i[n]=a,r(i)},l=function(e,n){var a=T({},t[e]);a.role=n.target.value;var i=(0,f.Z)(t);i[e]=a,r(i)},u=function(e){r(t.filter(function(n,t){return t!==e}))};return(0,O.jsxs)("div",{children:[(0,O.jsxs)("p",{children:["Enter your team member’s government email address and they will be sent an invitation to join the project. Once they accept the invitation, they will have access to your project. Their invitation will expire in"," ",(0,O.jsx)("strong",{children:"2 business days"}),"."]}),(0,O.jsxs)("p",{children:[(0,O.jsx)("span",{className:"strong",children:"Roles:"}),(0,O.jsx)("br",{}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:(0,O.jsx)(U,{icon:w.Tab})}),"\xa0\xa0",(0,O.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Admins"}),(0,O.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,O.jsx)("b",{children:"managing"})," powers"]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:(0,O.jsx)(z,{icon:w.Tab})}),"\xa0\xa0",(0,O.jsx)("span",{className:"underline",style:{verticalAlign:"top"},children:"Members"}),(0,O.jsxs)("span",{style:{verticalAlign:"top"},children:["\xa0have ",(0,O.jsx)("b",{children:"viewing"})," powers"]})]}),(0,O.jsx)("br",{}),(0,O.jsx)("div",{children:(0,O.jsx)("span",{className:"underline",children:(0,O.jsx)(S.default,{external:!0,href:(0,P.eO)("CSS-App-My-Teams#ive-created-a-team-now-what"),children:"View a detailed breakdown of roles on our wiki page"})})})]}),(0,O.jsxs)(I,{children:[(0,O.jsxs)(E,{children:[(0,O.jsx)("strong",{children:"Member"}),(0,O.jsx)("strong",{children:"Role"}),(0,O.jsx)(F,{})]}),(0,O.jsx)(B,{children:"*Please enter email address tied to an IDIR to allow your user to login"}),s&&(0,O.jsxs)(R,{children:[(0,O.jsx)(x.default,{value:(null==s?void 0:s.email)||"",readOnly:!0,fullWidth:!0}),(0,O.jsx)(D,{label:"Role",disabled:!0,value:"admin",readOnlyRole:!0,children:(0,O.jsx)("option",{value:"admin",children:"Admin"})})]}),t.map(function(e,t){return(0,O.jsxs)(R,{children:[(0,O.jsxs)("div",{children:[(0,O.jsx)(k.Z,{loadOptions:C.c,onChange:function(e){return c(e,t)},noOptionsMessage:function(){return"Start typing email..."},className:"email-select",menuPlacement:"top",maxMenuHeight:120,classNamePrefix:"select-inner",placeholder:"Enter email address"}),n&&n.members&&n.members[t]&&(0,O.jsx)(Z.Z,{children:n.members[t]})]}),(0,O.jsxs)(D,{label:"Role",onChange:function(e){return l(t,e)},value:e.role,"data-testid":"user-role",children:[(0,O.jsx)("option",{value:"member",children:"Member"}),(0,O.jsx)("option",{value:"admin",children:"Admin"})]}),t>=0&&i&&(0,O.jsx)(M,{icon:w.uMC,onClick:function(){return u(t)},title:"Delete","data-testid":"delete-user-role"})]},e.id)}),(0,O.jsxs)(N,{onClick:function(){r([].concat((0,f.Z)(t),[{idirEmail:"",role:"member",id:new Date().getTime(),pending:!0}]))},children:[(0,O.jsx)(y.G,{style:{color:"#006fc4"},icon:w.KtF,title:"Add Item","data-testid":"add-user-role"}),(0,O.jsx)("span",{children:"Add another team member"})]})]})]})}},71057:function(e,n,t){"use strict";var r=t(83024),a=t(63055),i={shared:{button:"\n border-radius: 0.222em;\n border-width: 0;\n padding: 0.6em 1.1em;\n text-align: center;\n text-decoration: none;\n font-weight: 700;\n letter-spacing: 1px;\n display: inline-block;\n cursor: pointer;\n box-shadow: 0px 0px 0px 2px transparent inset, 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;\n "},size:{xsmall:{button:"\n font-size: 0.7rem;\n "},small:{button:"\n font-size: 0.8rem;\n "},medium:{button:"\n font-size: ".concat(a.n5,";\n ")},large:{button:"\n font-size: ".concat(a.zA,";\n ")}},variant:{primary:{button:"\n background-color: #D5EDFF;\n box-shadow: 0px 0px 0px 2px #D5EDFF inset !important;\n color: #3E3E3E;\n\n &:hover {\n text-decoration: underline;\n background-color: #FFF7D5;\n box-shadow: 0px 0px 0px 2px #FFF7D5 inset !important;\n opacity: 0.80;\n }\n\n &:active {\n opacity: 1;\n }\n "},grey:{button:"\n background-color: #B2B2B2;\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n color: #F8F8F8;\n min-width: 110px;\n\n &:hover {\n background-color: ".concat(a.TU,";\n box-shadow: 0px 0px 0px 1px #707070 inset !important;\n }\n ")}}},o=(0,r.applyTheme)(i,{defaultProps:{variant:"primary",size:"medium"},breakProps:[],staticProps:["fullHeight","fullWidth"]});n.Z=o},6178:function(e,n,t){"use strict";var r,a=t(71383);t(67294);var i=t(11163),o=t(46312),s=t(71893),c=t(85330),l=t(59912),u=t(49910),d=t(85893),m=s.ZP.div(r||(r=(0,a.Z)(["\n height: 100%;\n overflow: auto;\n"])));n.Z=function(e){var n=e.tab,t=e.leftPanel,r=e.rightPanel,a=e.showResizable;e.children;var s=(0,i.useRouter)(),p=(0,d.jsxs)(c.mQ,{onChange:function(e){s.replace("/my-dashboard/".concat(e))},activeKey:n,tabBarGutter:30,children:[(0,d.jsx)(c.OK,{tab:"My Projects"},"integrations"),(0,d.jsx)(c.OK,{tab:"My Teams"},"teams")]});return(0,d.jsxs)(l.Z,{rules:u.F,children:[p,void 0===a||a?(0,d.jsx)(o.e,{style:{paddingTop:"2px",borderBottom:"3px solid black"},defaultSize:{width:"100%",height:.4*window.innerHeight},enable:{bottom:!0},handleStyles:{bottom:{bottom:0}},children:(0,d.jsx)(m,{children:t&&t()})}):t&&t(),(0,d.jsx)("br",{}),r&&r()]})}},37222:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eQ}});var r,a,i,o,s,c,l,u,d,m,p,f,h,x,b,v,g,j,y,w,Z,S=t(16835),P=t(50029),k=t(87794),C=t.n(k),O=t(67294),A=t(6178),T=t(59499),E=t(71383),D=t(11163),F=t(71893),N=t(85330),I=t(53442),R=t(71057),M=t(35611),z=t(61165),U=t(91679),B=t(37226),_=t(3016),H=t(15812),G=t(76457),K=t(99603),q=t(59417),$=t(31513),L=t(76691),W=t(85893),Y=(0,F.ZP)(K.G)(r||(r=(0,E.Z)(["\n color: #ff0303;\n"]))),V=F.ZP.div(a||(a=(0,E.Z)(["\n display: grid;\n grid-template-columns: 1fr 6fr;\n"]))),X=function(e){var n=e.title,t=e.content,r=e.note;return(0,W.jsxs)(V,{children:[(0,W.jsx)(Y,{icon:q.RLE,size:"3x"}),(0,W.jsxs)("div",{children:[n&&(0,W.jsx)("strong",{children:n}),t&&(0,W.jsx)("p",{children:t}),r&&(0,W.jsx)("i",{children:r})]})]})},Q=t(75780),J=t(64735),ee=t(42894),en=t(63055),et=F.ZP.div(i||(i=(0,E.Z)(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding-right: 15px;\n & > * {\n margin-left: 15px;\n }\n"]))),er=(0,F.ZP)(K.G)(o||(o=(0,E.Z)(["\n cursor: ",";\n ","\n ",";\n"])),function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.disabled?"color: #CACACA;":"color: inherit; &:hover { color: ".concat(e.activeColor||"#000","; }")},function(e){return e.isUnread?"color: ".concat(en.Uo):""});function ea(e){var n=e.copyOrDownloadAction,t=e.showDeleteModal,r=e.showUpdateModal,a=e.actionsDisabled;return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(et,{children:[(0,W.jsx)(er,{icon:q.kZ_,role:"button","aria-label":"copy",onClick:function(){return n(!1)},title:"Copy to clipboard",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.q7m,role:"button","aria-label":"download",onClick:function(){return n(!0)},title:"Download",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.lUd,role:"button","aria-label":"download",onClick:r,title:"Update secret",size:"lg",disabled:a}),(0,W.jsx)(er,{icon:q.$aW,role:"button","aria-label":"delete",onClick:t,title:"Delete",size:"lg",disabled:a})]})})}F.ZP.div(s||(s=(0,E.Z)(["\n height: 40px;\n border-right: 2px solid #e3e3e3;\n"])));var ei=t(73923),eo=F.ZP.td(c||(c=(0,E.Z)(["\n float: right;\n"])));(0,F.ZP)(K.G)(l||(l=(0,E.Z)(["\n color: #000000;\n"])));var es=F.ZP.div(u||(u=(0,E.Z)(["\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n"])));function ec(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"2.7em"},children:"Actions"})}F.ZP.div(d||(d=(0,E.Z)(["\n display: grid;\n grid-template-columns: 1fr 6fr;\n"])));var el=(0,H.hU)(function(e){var n,t,r,a=e.team,i=e.selectedServiceAccount,o=e.setSelectedServiceAccount,s=e.teamServiceAccounts,c=e.getTeamServiceAccounts,l=e.alert,u="delete-service-account-modal",d="update-service-account-secret-modal",m=function(e){return e&&(null==e?void 0:e.status)!=="applied"&&!(null!=e&&e.archived)},p=function(){m(i)||(window.location.hash=u)},f=(n=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.yN)(a.id,null==i?void 0:i.id);case 2:if(n=e.sent,(t=(0,S.Z)(n,2))[0],!t[1]){e.next=9;break}return l.show({variant:"danger",content:"Failed to delete service account, please try again."}),e.abrupt("return");case 9:c(a.id);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),h=function(){m(i)||(window.location.hash=d)},x=(t=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.Gc)(a.id,null==i?void 0:i.id);case 2:n=e.sent,(t=(0,S.Z)(n,2))[0],t[1]&&l.show({variant:"danger",content:"Failed to update secret, please try again."});case 7:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),b=(r=(0,P.Z)(C().mark(function e(n){var t,r,o,s,c;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!m(i)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,_.vM)(a.id,null==i?void 0:i.id);case 4:if(r=e.sent,s=(o=(0,S.Z)(r,2))[0],!o[1]){e.next=11;break}return l.show({variant:"danger",content:"Failed to ".concat(n?"download":"copy",", please try again.")}),e.abrupt("return");case 11:s=s||{},c={tokenUrl:"".concat(s["auth-server-url"],"/realms/").concat(s.realm,"/protocol/openid-connect/token"),clientId:"".concat(s.resource),clientSecret:"".concat(null===(t=s.credentials)||void 0===t?void 0:t.secret)},n?(0,ei.Di)((0,ei.ON)(c),"".concat(null==i?void 0:i.clientId,".json")):(0,ei.TE)((0,ei.ON)(c));case 14:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(I.Z,{headers:[{accessor:"id",Header:"API Account ID"},{accessor:"actions",Header:(0,W.jsx)(ec,{}),disableSortBy:!0}],data:s.map(function(e){return{id:e.id,actions:(0,W.jsx)(eo,{children:(0,W.jsx)(ea,{copyOrDownloadAction:b,showUpdateModal:h,showDeleteModal:p,actionsDisabled:Boolean(m(e))})})}}),colfilters:[],activateRow:function(e){var n=e.cells[0].row.original.id;s.forEach(function(e){e.id==n&&o(e)})},rowSelectorKey:"id"}),(0,W.jsx)(z.Z,{title:"Request a new secret for CSS API Account",icon:q.eHv,onConfirm:x,id:d,content:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(es,{children:(0,W.jsx)("strong",{children:"You are about to request a new secret for CSS API Account"})}),(0,W.jsx)("br",{}),(0,W.jsx)("p",{children:"Once the new secret gets generated, your previous secret will no longer be valid for any applications using it."}),(0,W.jsx)("p",{children:"This means any application using CSS API through this account should be configured with the new secret."})]}),buttonStyle:"custom",confirmText:"Confirm",closable:!0}),(0,W.jsx)(z.Z,{title:"Delete CSS API Account",icon:null,onConfirm:f,id:u,content:(0,W.jsx)(X,{title:"Are you sure that you want to delete this CSS API Account?",content:"Once you delete this CSS PI Account, this action cannot be undone."}),buttonStyle:"danger",confirmText:"Delete CSS API Account",closable:!0})]})}),eu=t(44e3),ed=t(9206),em=t(24444),ep=t(90352);function ef(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}var eh=F.ZP.div(m||(m=(0,E.Z)(["\n padding-left: 1rem;\n ","\n"])),function(e){return"\n margin-top: ".concat(e.marginTop||"0",";\n margin-bottom: ").concat(e.marginBottom||"0",";\n margin-left: ").concat(e.marginLeft||"0",";\n margin-right: ").concat(e.marginRight||"0",";\n ")}),ex=F.ZP.td(p||(p=(0,E.Z)(["\n float: right;\n"]))),eb=(0,F.ZP)(R.Z)(f||(f=(0,E.Z)(["\n padding: 0 !important;\n margin: 10px 0 !important;\n"]))),ev=F.ZP.td(h||(h=(0,E.Z)(["\n text-align: left !important;\n"]))),eg=F.ZP.div(x||(x=(0,E.Z)(["\n height: var(--field-top-spacing);\n"])));function ej(){return(0,W.jsxs)("span",{children:["Role\xa0",(0,W.jsx)(Q.Z,{title:"",content:'Admin: can manage integrations and teams.
Members: can only manage integrations.',hide:200})]})}function ey(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"1.8em"},children:"Actions"})}function ew(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"0.4em"},children:"Actions"})}var eZ="add-member-modal",eS="delete-member-modal",eP={idirEmail:"",role:"member",pending:!0},ek=function(e){var n=e.onConfirmDelete,t=e.type,r={confirmText:"Delete",buttonStyle:"danger"},a="",i="";switch(t){case"allow":a="Once they are deleted, they will no longer have access to the team's integrations.",i="Are you sure that you want to delete this team member?",r.onConfirm=n;break;case"notAllowed":a="Before you delete the last team admin, you must assign a new admin.",r.confirmText="Okay",r.buttonStyle="custom"}return(0,W.jsx)(z.Z,function(e){for(var n=1;n2?(n=q.RLE,t="#ff0303",r="Invitation Expired"):a?(n=q.SZw,t="#fcba19",r="Invitation Sent"):(t="#2e8540",n=q.f8k,r="Active Member"),(0,W.jsx)(K.G,{icon:n,title:r,style:{color:t}})};F.ZP.div(v||(v=(0,E.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n margin-bottom: 1rem;\n"]))),F.ZP.div(g||(g=(0,E.Z)(["\n font-size: 18px;\n font-weight: bold;\n color: #000;\n border-bottom: 1px solid gray;\n"])));var eT=F.ZP.div(j||(j=(0,E.Z)(["\n text-align: center;\n"]))),eE=(0,H.hU)(function(e){var n,t,r,a,i,o,s,c=e.alert,l=e.currentUser,u=e.team,d=e.loadTeams,m=(0,D.useRouter)(),p=(0,O.useState)([]),f=p[0],h=p[1],x=(0,O.useState)([]),b=x[0],v=x[1],g=(0,O.useState)([]),j=g[0],y=g[1],w=(0,O.useState)(null),Z=w[0],k=w[1],A=(0,O.useState)(null),T=A[0],E=A[1],F=(0,O.useState)(null),R=F[0],H=F[1],K=(0,O.useState)([eP]),Y=K[0],V=K[1],X=(0,O.useState)(),Q=X[0],en=X[1],et=(0,O.useState)(!1),er=et[0],ea=et[1],ei=(0,O.useState)(),eo=ei[0],es=ei[1],ec=(0,O.useState)("allow"),ef=ec[0],eE=ec[1],eD=(0,O.useContext)(em.SurveyContext),eF=(n=(0,P.Z)(C().mark(function e(n){var t,r,a,i,o,s,c,u,d,m;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ea(!0),e.next=3,Promise.all([(0,_.YY)(n),(0,B.H0)(n)]);case 3:return t=e.sent,a=(r=(0,S.Z)(t,2))[0],i=r[1],s=(o=(0,S.Z)(a,2))[0],c=o[1],d=(u=(0,S.Z)(i,2))[0],m=u[1],c||m?(h([]),H(null),v([])):(h(s),H(s.find(function(e){return e.idirEmail===l.email})),v(d||[])),e.next=12,eN(n);case 12:ea(!1);case 13:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),eN=(t=(0,P.Z)(C().mark(function e(n){var t,r,a;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ea(!0),"admin"!==u.role){e.next=11;break}return e.next=4,(0,_.Sx)(n);case 4:t=e.sent,a=(r=(0,S.Z)(t,2))[0],r[1]?y([]):(y(a),k(a&&a.length>0?a[0]:null)),e.next=13;break;case 11:y([]),k(null);case 13:ea(!1);case 14:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});(0,O.useEffect)(function(){E(null),eF(u.id)},[u.id]),(0,O.useEffect)(function(){Z&&"applied"!==Z.status&&!Z.archived&&E(Z)},[Z]),(0,O.useEffect)(function(){return T&&"applied"!==T.status?(clearInterval(s),s=setInterval((0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZT)(u.id,T.id);case 2:n=e.sent,r=(t=(0,S.Z)(n,2))[0],t[1]?clearInterval(s):E(r);case 7:case"end":return e.stop()}},e)})),5e3)):(eN(u.id),E(null)),function(){s&&clearInterval(s)}},[T]);var eI=function(e){e&&((0,$.Wv)(f,e)?eE("allow"):eE("notAllowed"),es(e),window.location.hash=eS)},eR=(r=(0,P.Z)(C().mark(function e(){var n,t,r,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,U.p)({name:u.name,members:Y},l.email),r=(t=(0,S.Z)(n,2))[0],a=t[1],!r){e.next=4;break}return en(a),e.abrupt("return");case 4:return e.next=6,(0,_.yG)({members:Y,id:u.id});case 6:if(i=e.sent,!(0,S.Z)(i,2)[1]){e.next=13;break}c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to add new members. Please ensure the emails you have entered are valid,\n and reach out to the SSO team if the problem persists"}),e.next=18;break;case 13:return e.next=15,eF(u.id);case 15:V([eP]),window.location.hash="",c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Invited new members to your team!"});case 18:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),eM=(a=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!eo||!u.id)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,_.MH)(Number(eo),u.id);case 4:n=e.sent,(0,S.Z)(n,2)[1]?c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to delete team member."}):(h(f.filter(function(e){return e.id!==eo})),r=null===(t=f.find(function(e){return e.id===eo}))||void 0===t?void 0:t.idirEmail,c.show({variant:"success",fadeOut:1e4,closable:!0,content:"".concat(r," has successfully been deleted.")}));case 8:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)}),ez=function(e){m.push({pathname:"/my-dashboard/integrations",query:{integr:e}})},eU=(i=(0,P.Z)(C().mark(function e(n){var t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u.id){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,_.rU)(n,u.id);case 4:t=e.sent,(0,S.Z)(t,2)[1]?c.show({variant:"danger",fadeOut:1e4,closable:!0,content:"Failed to resend invitation."}):c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Sent new invitation for team member ".concat(n.idirEmail)});case 8:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}),eB=(o=(0,P.Z)(C().mark(function e(n,t){var r,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.zZ)(u.id,n,{role:t});case 2:if(r=e.sent,i=(a=(0,S.Z)(r,2))[0],!a[1]){e.next=9;break}return c.show({variant:"danger",content:"Failed to update user role. Please try again."}),e.abrupt("return");case 9:h(f.map(function(e){return e.id===n?i:e})),c.show({variant:"success",fadeOut:1e4,closable:!0,content:"Member role updated successfully"});case 12:case"end":return e.stop()}},e)})),function(e,n){return o.apply(this,arguments)});if(!u||!R)return null;var e_="admin"===R.role;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("h2",{children:"Team Details"}),(0,W.jsxs)(N.mQ,{defaultActiveKey:"members",tabBarGutter:30,children:[(0,W.jsx)(N.OK,{tab:"Members",children:(0,W.jsxs)(eh,{children:[e_?(0,W.jsx)(eb,{children:(0,W.jsx)(N.zx,{onClick:function(){return window.location.hash=eZ},"data-testid":"add-new-team-member",children:"+ Add New Team Members"})}):(0,W.jsx)("br",{}),(0,W.jsx)(G.Z,{type:"text",rows:7,ready:!er,style:{marginTop:"20px"},children:(0,W.jsx)(I.Z,{"data-testid":"team-members-table",variant:"medium",headers:[{accessor:"status",Header:"Invite Status",disableSortBy:!0},{accessor:"idirEmail",Header:"Email"},{accessor:"role",Header:(0,W.jsx)(ej,{}),disableSortBy:!0},{accessor:"actions",Header:(0,W.jsx)(ew,{}),disableSortBy:!0}],data:f.map(function(e){var n=e_&&R.id!==e.id;return{status:(0,W.jsx)(eA,{pending:e.pending,invitationSendTime:e.createdAt}),idirEmail:e.idirEmail,role:n&&!e.pending?(0,W.jsxs)(M.default,{onChange:function(n){return eB(e.id,n.target.value)},value:e.role,children:[(0,W.jsx)("option",{value:"member",children:"Member"}),(0,W.jsx)("option",{value:"admin",children:"Admin"})]}):(0,$.kC)(e.role),actions:(0,W.jsxs)(ex,{children:[n&&e.pending&&(0,W.jsx)(eC,{icon:q.zBy,size:"lg",onClick:function(){return eU(e)},title:"Resend Invitation",style:{marginRight:"6px"},"data-testid":"resend-invitation"}),n&&(0,W.jsx)(eC,{icon:q.$aW,onClick:function(){return eI(e.id)},size:"lg",title:"Delete User",style:{marginRight:"16px"},"data-testid":"delete-member"})]})}}),colfilters:[],rowSelectorKey:"status",readOnly:!0})})]})},"members"),(0,W.jsx)(N.OK,{tab:"Integrations",children:(0,W.jsx)(eh,{marginTop:"20px",children:(0,W.jsx)(G.Z,{type:"text",rows:7,ready:!er,style:{marginTop:"20px"},children:(0,W.jsx)(I.Z,{variant:"medium",headers:[{accessor:"status",Header:"Status",disableSortBy:!0},{accessor:"id",Header:"Request ID"},{accessor:"projectName",Header:"Project Name"},{accessor:"actions",Header:(0,W.jsx)(ey,{}),disableSortBy:!0}],data:(null==b?void 0:b.length)>0?null==b?void 0:b.map(function(e){return{status:(0,W.jsx)(eO,{status:null==e?void 0:e.status}),id:e.id,projectName:e.projectName,actions:(0,W.jsx)(ex,{children:(0,W.jsx)(L.ZP,{request:e,onDelete:function(){d(),eF(null==u?void 0:u.id)},children:(0,W.jsx)(L.Kk,{icon:q.Mdf,"aria-label":"view",onClick:function(){return ez(e.id)},size:"lg"})})})}}):[],readOnly:!0,colfilters:[],rowSelectorKey:"status",noDataFoundElement:(0,W.jsxs)(ev,{colSpan:5,children:[(0,W.jsx)("br",{}),"There are no integrations for this team yet.",(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),"To add this team to an ",(0,W.jsx)("span",{className:"strong",children:"existing integration"}),":",(0,W.jsx)("span",{className:"line-height-200"}),(0,W.jsxs)("ol",{children:[(0,W.jsxs)("li",{children:["Go to your"," ",(0,W.jsx)("span",{className:"text-blue",children:(0,W.jsx)("span",{className:"strong",children:"Projects"})})," ","tab"]}),(0,W.jsx)("li",{children:"Select the “pencil” icon to edit the integration"}),(0,W.jsx)("li",{children:"Select this team from the “Project Team” drop down"})]}),(0,W.jsx)("br",{}),"To add this team to a ",(0,W.jsx)("span",{className:"strong",children:"new integration"}),":",(0,W.jsx)("span",{className:"line-height-200"}),(0,W.jsxs)("ol",{children:[(0,W.jsxs)("li",{children:["Go to your"," ",(0,W.jsx)("span",{className:"text-blue",children:(0,W.jsx)("span",{className:"strong",children:"Projects"})})," ","tab"]}),(0,W.jsx)("li",{children:"Select “+ Request SSO Integration”"}),(0,W.jsx)("li",{children:"Select “Yes” to allow multiple team members to manage the integration"}),(0,W.jsx)("li",{children:"Select this team from the “Project Team” drop down"})]})]})})})})},"integrations"),e_&&(0,W.jsx)(N.OK,{tab:"CSS API Account",children:(0,W.jsx)(eh,{marginTop:"10px",children:er?(0,W.jsxs)(eT,{children:[(0,W.jsx)(eg,{}),(0,W.jsx)(ee.rj,{color:"#000",height:45,width:45,wrapperClass:"d-block",visible:!0})]}):(0,W.jsxs)(J.ZP,{cols:10,children:[(0,W.jsxs)(J.ZP.Row,{collapse:"1100",gutter:[15,2],children:[(0,W.jsx)(J.ZP.Col,{span:4,children:j.length>0?(0,W.jsx)(el,{team:u,selectedServiceAccount:Z,setSelectedServiceAccount:k,teamServiceAccounts:j,getTeamServiceAccounts:eN}):(0,W.jsx)(N.zx,{style:{marginBottom:10},onClick:(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ea(!0),e.next=3,(0,_.rl)(u.id);case 3:n=e.sent,(t=(0,S.Z)(n,2))[0],(r=t[1])?(ea(!1),c.show({variant:"danger",fadeOut:1e4,closable:!0,content:r})):(null==eD||eD.setShowSurvey(!0,"cssApiRequest"),eN(u.id));case 8:case"end":return e.stop()}},e)})),children:"+ Request CSS API Account"})}),(0,W.jsx)(J.ZP.Col,{span:6,children:T&&(0,W.jsx)("div",{style:{display:"inline-flex",margin:"20px 0 20px 0",background:"#FFCCCB",borderRadius:"5px"},children:(0,W.jsx)("div",{style:{padding:5},children:(0,W.jsxs)(eu.B,{children:["Your request for an API account could not be completed. Please"," ",(0,W.jsx)(ed.rU,{external:!0,href:"mailto:bcgov.sso@gov.bc.ca",children:"contact the Pathfinder SSO Team"})]})})})})]}),j.length>0&&(0,W.jsx)(J.ZP.Row,{children:(0,W.jsxs)(eu.$,{children:["For more information on how to use the CSS API Account with your integrations,"," ",(0,W.jsx)(ed.rU,{href:"".concat(ep.UN,"/integrating-your-application/css-app-api"),external:!0,children:"click to learn more on our wiki page"}),"."]})})]})})},"service-accounts")]}),(0,W.jsx)(z.Z,{title:"Add a New Team Member",icon:null,id:eZ,content:(0,W.jsx)(U.Z,{members:Y,setMembers:V,allowDelete:e_,errors:Q,currentUser:l}),onConfirm:eR,onClose:function(){V([eP]),h([]),en(null)},skipCloseOnConfirm:!0,buttonStyle:"custom",closable:!0}),(0,W.jsx)(ek,{onConfirmDelete:eM,type:ef})]})}),eD=t(39772),eF=t(11915),eN=t(36575),eI=F.ZP.div(y||(y=(0,E.Z)(["\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n & button {\n min-width: 180px;\n }\n"])));function eR(e){var n,t=e.onSubmit,r=e.teamId,a=e.initialTeamName,i=(0,O.useState)(""),o=i[0],s=i[1],c=(0,O.useState)(!1),l=c[0],u=c[1],d=(0,O.useState)(),m=d[0],p=d[1],f=(0,O.useState)(!1),h=f[0],x=f[1];(0,O.useEffect)(function(){s(a)},[a]);var b=function(e){var n={members:[]},t=!1;return(e.name.trim()||(n.name="Please enter a name",t=!0),t)?n:(p(void 0),null)},v=(n=(0,P.Z)(C().mark(function e(){var n,a,i;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x(!1),!(a=b(n={name:o.trim(),id:r}))){e.next=5;break}return e.abrupt("return",p(a));case 5:return u(!0),e.next=8,(0,_.w2)(n);case 8:if(i=e.sent,!(0,S.Z)(i,2)[1]){e.next=15;break}return x(!0),u(!1),e.abrupt("return");case 15:return e.next=17,t();case 17:u(!1),window.location.hash="#";case 19:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,W.jsxs)("div",{children:[(0,W.jsx)(eF.default,{label:"New Team Name",onChange:function(e){s(e.target.value)},value:o,"data-testid":"edit-name"}),m&&m.name&&(0,W.jsx)(eN.Z,{children:null==m?void 0:m.name}),h&&(0,W.jsx)(eN.Z,{children:"Failed to update team name"}),(0,W.jsx)("br",{}),(0,W.jsxs)(eI,{children:[(0,W.jsx)(N.zx,{variant:"secondary",onClick:function(){s(a),window.location.hash="#"},style:{marginRight:"20px"},"data-testid":"cancel-edit-name",children:"Cancel"}),(0,W.jsx)(N.zx,{type:"button",onClick:v,"data-testid":"save-edit-name",children:l?(0,W.jsx)(ee.rj,{color:"#FFF",height:18,width:50,visible:l}):"Save"})]})]})}var eM=t(31637),ez=t(20353),eU=t(34798),eB=t.n(eU);function e_(e){var n=e.team,t=e.showEditTeamNameModal,r=e.showDeleteModal,a=(0,ez.te)(n),i=(0,ez.VV)(n);return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(L.c4,{children:[(0,W.jsx)(L.Kk,{disabled:!i,icon:q.Xcf,role:"button","aria-label":"edit",title:"Edit",size:"lg",onClick:function(){return i?t(n):eB()},"data-testid":"edit-team-button"}),(0,W.jsx)(L.Kk,{disabled:!a,icon:q.$aW,role:"button","aria-label":"delete",title:"Delete",size:"lg",onClick:function(){return a?r(n):eB()},style:{marginLeft:"7px"},"data-testid":"delete-team-button"})]})})}var eH=t(99245),eG=t.n(eH),eK=t(48398),eq="delete-team-modal",e$="edit-team-name-modal",eL=F.ZP.tr(w||(w=(0,E.Z)(["\n float: right;\n padding-right: 0.5em;\n"])));function eW(){return(0,W.jsx)("span",{style:{float:"right",paddingRight:"1em"},children:"Actions"})}var eY=(0,F.ZP)(N.zx)(Z||(Z=(0,E.Z)(["\n &&& {\n margin: 0;\n }\n"]))),eV=function(e){var n=e.handleNewTeamClick;return(0,W.jsx)(eY,{size:"large",onClick:n,variant:"callout",children:"+ Create a New Team"})},eX=(0,H.hU)(function(e){var n,t,r,a=e.currentUser,i=e.setTeam,o=e.loading,s=e.teams,c=e.loadTeams,l=e.hasError,u=e.alert,d=(0,O.useState)(null),m=d[0],p=d[1],f=(0,O.useState)(void 0),h=f[0],x=f[1],b=(0,O.useState)([]),v=b[0],g=b[1],j=(0,O.useState)(!1),y=j[0],w=j[1],Z=m&&0===Number(m.integrationCount),k=function(e){p(e),x(null==e?void 0:e.id),i(e)},A=(n=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((null==m?void 0:m.role)!=="admin"){e.next=13;break}return e.next=3,(0,_.Sx)(h);case 3:if(n=e.sent,r=(t=(0,S.Z)(n,2))[0],!t[1]){e.next=10;break}return u.show({variant:"danger",content:"Failed to load service accounts for team. Please refresh."}),e.abrupt("return");case 10:g(r),e.next=14;break;case 13:g([]);case 14:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});(0,O.useEffect)(function(){(null==s?void 0:s.length)>0?h&&s.find(function(e){return e.id===h})||k(s[0]):k(null)},[s]),(0,O.useEffect)(function(){Number(null==m?void 0:m.serviceAccountCount)>0&&A()},[h]);var T=(t=(0,P.Z)(C().mark(function e(){return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.location.hash=ep.zw);case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),E=function(e){w(!1),k(e),h===e.id&&(window.location.hash=eq)},D=function(e){k(e),window.location.hash=e$},F=l?(0,W.jsx)(eK.q1,{}):s&&(null==s?void 0:s.length)!==0?(0,W.jsx)(I.Z,{headers:[{accessor:"name",Header:"Team Name"},{accessor:"actions",Header:(0,W.jsx)(eW,{}),disableSortBy:!0}],data:s&&s.map(function(e){return{teamId:e.id,name:e.name,actions:(0,W.jsx)(eL,{children:(0,W.jsx)(e_,{team:e,showEditTeamNameModal:D,showDeleteModal:E})})}}),activateRow:function(e){var n=e.cells[0].row.original.teamId;s.forEach(function(e){e.id==n&&k(e)})},rowSelectorKey:"teamId",activeSelector:h,colfilters:[]}):(0,W.jsx)(eK.Vs,{message:"You have not been added to any teams yet."}),N=(r=(0,P.Z)(C().mark(function e(){var n,t;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(w(!1),Z){e.next=3;break}return e.abrupt("return");case 3:return v.length>0&&Promise.all(v.map(function(e){(0,_.yN)(h,e.id)})),e.next=6,(0,_.fC)(h);case 6:if(n=e.sent,(t=(0,S.Z)(n,2))[0],!t[1]){e.next=14;break}w(!0),e.next=16;break;case 14:return e.next=16,c();case 16:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)});return o?(0,W.jsx)(eM.Z,{}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("br",{}),(0,W.jsx)(eV,{handleNewTeamClick:T}),(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),F,(0,W.jsx)(z.Z,{title:"Create a New Team",icon:null,onConfirm:function(){return console.log("confirm")},id:ep.zw,content:(0,W.jsx)(eD.Z,{onSubmit:c,currentUser:a}),showCancel:!1,showConfirm:!1,closable:!0}),(0,W.jsx)(z.Z,{title:"Edit Team Name",icon:null,onConfirm:function(){return console.log("confirm")},id:e$,content:(0,W.jsx)(eR,{onSubmit:c,teamId:h,initialTeamName:(null==m?void 0:m.name)||""}),showCancel:!1,showConfirm:!1,closable:!0}),(0,W.jsx)(z.Z,{title:"Delete team",icon:null,onConfirm:N,id:eq,content:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(X,{title:"Are you sure that you want to delete this team?",content:Z?"Once you delete this team, this action cannot be undone.":"Before you delete this team, you will need to delete the integration(s) the team is responsible for.",note:Z&&!eG()(v)?"*By deleting this team, you are also deleting the CSS App API Account that belongs to this team.":""}),y&&(0,W.jsx)(eN.Z,{children:"Failed to delete. Please try again"})]}),buttonStyle:Z?"danger":"custom",confirmText:Z?"Delete Team":"Okay",skipCloseOnConfirm:!0,closable:!0})]})}),eQ=function(e){var n,t=e.session,r=(0,O.useState)(!0),a=r[0],i=r[1],o=(0,O.useState)(!1),s=o[0],c=o[1],l=(0,O.useState)(null),u=l[0],d=l[1],m=(0,O.useState)([]),p=m[0],f=m[1],h=(n=(0,P.Z)(C().mark(function e(){var n,t,r;return C().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i(!0),e.next=3,(0,_.Dc)();case 3:n=e.sent,r=(t=(0,S.Z)(n,2))[0],c(!!t[1]),f(r||[]),i(!1);case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,O.useEffect)(function(){h()},[]),(0,W.jsx)(A.Z,{tab:"teams",leftPanel:function(){return(0,W.jsx)(eX,{currentUser:t,setTeam:d,loading:a,teams:p,loadTeams:h,hasError:s})},rightPanel:function(){return u&&(0,W.jsx)(eE,{team:u,currentUser:t,loadTeams:h})}})}},73923:function(e,n,t){"use strict";t.d(n,{Di:function(){return i},ON:function(){return r},TE:function(){return a}});var r=function(e){return JSON.stringify(e,void 0,2)},a=function(e){var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.focus(),n.select();try{return document.execCommand("copy"),document.body.removeChild(n),!0}catch(e){return document.body.removeChild(n),!1}},i=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=window.URL.createObjectURL(new Blob([e],{type:t})),a=document.createElement("a");a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click(),document.body.removeChild(a)}},69137:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-dashboard/teams",function(){return t(37222)}])},27812:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(52587),a=t(2937);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[528,830,908,974,954,774,888,179],function(){return e(e.s=69137)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/request-85a6b2cca7d72ca0.js b/_next/static/chunks/pages/request-1520cfd51e2300a7.js similarity index 94% rename from _next/static/chunks/pages/request-85a6b2cca7d72ca0.js rename to _next/static/chunks/pages/request-1520cfd51e2300a7.js index bf03829..7ec471a 100644 --- a/_next/static/chunks/pages/request-85a6b2cca7d72ca0.js +++ b/_next/static/chunks/pages/request-1520cfd51e2300a7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[800],{7529:function(e,r,t){"use strict";t.r(r);var n=t(59499),c=t(9225),o=t(59912),u=t(85893);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function s(e){for(var r=1;r0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[a])})?n.splice(a--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[a])})?n.splice(a--,1):(c=!1,o

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/admin-reports.html b/admin-reports.html index 2f5cb8a..043e7b7 100644 --- a/admin-reports.html +++ b/admin-reports.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/application-error.html b/application-error.html index 605cdd1..8f58e03 100644 --- a/application-error.html +++ b/application-error.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/faq.html b/faq.html index da57144..dc64e5b 100644 --- a/faq.html +++ b/faq.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/index.html b/index.html index 14ed203..914a4d4 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/my-dashboard.html b/my-dashboard.html index c13a995..68c2a8d 100644 --- a/my-dashboard.html +++ b/my-dashboard.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/my-dashboard/integrations.html b/my-dashboard/integrations.html index 8da20e6..49b296f 100644 --- a/my-dashboard/integrations.html +++ b/my-dashboard/integrations.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/my-dashboard/s2g.html b/my-dashboard/s2g.html index f086116..25195c4 100644 --- a/my-dashboard/s2g.html +++ b/my-dashboard/s2g.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/my-dashboard/teams.html b/my-dashboard/teams.html index 9bc5c00..020d0df 100644 --- a/my-dashboard/teams.html +++ b/my-dashboard/teams.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/request.html b/request.html index 8b6f76a..562717d 100644 --- a/request.html +++ b/request.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/request/[rid].html b/request/[rid].html index a5a0c2f..8c66f1e 100644 --- a/request/[rid].html +++ b/request/[rid].html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/terms-conditions.html b/terms-conditions.html index db2f1fe..a10dc3e 100644 --- a/terms-conditions.html +++ b/terms-conditions.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file diff --git a/verify-user.html b/verify-user.html index 0fc752d..dcfbdd4 100644 --- a/verify-user.html +++ b/verify-user.html @@ -1,4 +1,4 @@ -

Loading information...

\ No newline at end of file +

Loading information...

\ No newline at end of file